@vkontakte/videoplayer 1.1.15 → 1.1.16-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es2015.cjs.js +11 -11
- package/es2015.esm.js +11 -11
- package/es2018.cjs.js +11 -11
- package/es2018.esm.js +11 -11
- package/esnext.cjs.js +11 -11
- package/esnext.esm.js +11 -11
- package/index.d.ts +7 -0
- package/package.json +1 -1
package/es2015.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.
|
|
3
|
-
*
|
|
4
|
-
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-
|
|
2
|
+
* @vkontakte/videoplayer v1.1.16-beta.0
|
|
3
|
+
* Tue, 21 Feb 2023 14:44:40 GMT
|
|
4
|
+
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-16/doc/
|
|
5
5
|
*/
|
|
6
|
-
import{VideoQuality as
|
|
7
|
-
`)},bo=(t,e,i)=>{const n=t.info,{width:l,height:o}=Be(i.ui.playerSize),s={version:ul,viewport:`${l}x${o}`,volume:Math.round(Be(i.state.volume$)*100)},a=i.videoId;a&&(s.id=a),n.currentFormat$.getValue()&&(s.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(s.cdn=n.hostname$.getValue());const d=n.intrinsicVideoSize$.getValue();d&&(s.videoSize=`${d.width}x${d.height}`);const m=n.currentBuffer$.getValue();m&&(s.buffer=Math.max(m.end-Be(i.state.positionExact$),0));const _=n.throughputEstimation$.getValue();_&&(s.speed=_);const h=n.videoBitrate$.getValue();return h&&(s.bitrate=h),s},wo=500,Ei=3e3,Ni=2e3,_o=3e3,ko=6e3,yo=300,ni="\u0410\u0432\u0442\u043E",fl="vk_player_preferred_volume",ml="vk_player_prefer_volume_mute",pi="vk_player_debug_panel_opened",si=1,Vo=.05,Bi=1,Ii=.05,Fi=10,Po=300,So=5,Ao="https://vk.com/support?act=new&from=v",Co=500;var Oe;(function(t){t.ArrowLeft="ArrowLeft",t.ArrowUp="ArrowUp",t.ArrowRight="ArrowRight",t.ArrowDown="ArrowDown",t.Comma="Comma",t.Period="Period",t.Space="Space",t.KeyM="KeyM",t.KeyF="KeyF",t.KeyK="KeyK",t.KeyL="KeyL",t.KeyJ="KeyJ"})(Oe||(Oe={}));var bi="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",Mo="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",zo="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",To="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",Lo="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",Eo="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",No="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",vl="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",Ri="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",Bo="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",Io="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",Fo="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";const gl=t=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){const e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}};function Ro(t){we(t,"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 qi(t,e,i){const n=t.slice();return n[42]=e[i],n}function Di(t,e,i){const n=t.slice();return n[45]=e[i],n}function ji(t){let e,i,n,l,o,s,a,r;return{c(){e=g("div"),i=g("div"),i.textContent="\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",n=L(),l=g("div"),o=L(),s=g("div"),c(l,"class","close v-1f29v8g"),c(e,"class","item menu-header v-1f29v8g"),A(e,"item-mobile",t[0]),c(s,"class","menu-divider v-1f29v8g")},m(u,d){M(u,e,d),f(e,i),f(e,n),f(e,l),M(u,o,d),M(u,s,d),a||(r=le(l,"click",t[22]),a=!0)},p(u,d){d[0]&1&&A(e,"item-mobile",u[0])},d(u){u&&C(e),u&&C(o),u&&C(s),a=!1,r()}}}function Hi(t){let e,i;return{c(){e=g("img"),c(e,"class","menu-valueIcon v-1f29v8g"),ye(e.src,i=t[6])||c(e,"src",i),c(e,"alt","")},m(n,l){M(n,e,l)},p(n,l){l[0]&64&&!ye(e.src,i=n[6])&&c(e,"src",i)},d(n){n&&C(e)}}}function Ui(t){let e,i,n,l,o,s,a,r,u,d,m;return{c(){e=g("li"),i=g("img"),l=L(),o=g("div"),o.textContent="\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",s=L(),a=g("div"),r=de(t[10]),u=de("x"),c(i,"class","menu-icon v-1f29v8g"),ye(i.src,n=Mo)||c(i,"src",n),c(i,"alt",""),c(o,"class","menu-title v-1f29v8g"),c(a,"class","menu-value v-1f29v8g"),c(e,"class","item v-1f29v8g"),c(e,"role","menuitemradio"),c(e,"tabindex","0"),A(e,"item-mobile",t[0])},m(_,h){M(_,e,h),f(e,i),f(e,l),f(e,o),f(e,s),f(e,a),f(a,r),f(a,u),d||(m=le(e,"click",t[26]),d=!0)},p(_,h){h[0]&1024&&Me(r,_[10]),h[0]&1&&A(e,"item-mobile",_[0])},d(_){_&&C(e),d=!1,m()}}}function Oi(t){let e,i,n,l,o,s,a,r,u,d,m,_,h,b,w,z,E,p,k;return{c(){e=g("li"),i=g("img"),l=L(),o=g("div"),o.textContent="\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",s=L(),a=g("li"),r=g("img"),d=L(),m=g("div"),m.textContent="\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",_=L(),h=g("li"),b=g("img"),z=L(),E=g("div"),E.textContent="\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",c(i,"class","menu-icon v-1f29v8g"),ye(i.src,n=Bo)||c(i,"src",n),c(i,"alt",""),c(o,"class","menu-title v-1f29v8g"),c(e,"class","item item-mobile v-1f29v8g"),c(e,"role","menuitemradio"),c(e,"tabindex","0"),c(r,"class","menu-icon v-1f29v8g"),ye(r.src,u=Io)||c(r,"src",u),c(r,"alt",""),c(m,"class","menu-title v-1f29v8g"),c(a,"class","item item-mobile v-1f29v8g"),c(a,"role","menuitemradio"),c(a,"tabindex","0"),c(b,"class","menu-icon v-1f29v8g"),ye(b.src,w=Fo)||c(b,"src",w),c(b,"alt",""),c(E,"class","menu-title v-1f29v8g"),c(h,"class","item item-mobile v-1f29v8g"),c(h,"role","menuitemradio"),c(h,"tabindex","0")},m(T,F){M(T,e,F),f(e,i),f(e,l),f(e,o),M(T,s,F),M(T,a,F),f(a,r),f(a,d),f(a,m),M(T,_,F),M(T,h,F),f(h,b),f(h,z),f(h,E),p||(k=[le(e,"click",t[28]),le(a,"click",t[29]),le(h,"click",t[30])],p=!0)},p:B,d(T){T&&C(e),T&&C(s),T&&C(a),T&&C(_),T&&C(h),p=!1,We(k)}}}function Qi(t){let e,i;return{c(){e=g("img"),c(e,"class","itemIcon v-1f29v8g"),ye(e.src,i=vl)||c(e,"src",i),c(e,"alt","")},m(n,l){M(n,e,l)},p:B,d(n){n&&C(e)}}}function Yi(t){let e,i;return{c(){e=g("img"),c(e,"class","menu-valueIcon-list v-1f29v8g"),ye(e.src,i=t[31](t[45].value))||c(e,"src",i),c(e,"alt","")},m(n,l){M(n,e,l)},p(n,l){l[0]&2&&!ye(e.src,i=n[31](n[45].value))&&c(e,"src",i)},d(n){n&&C(e)}}}function Wi(t){let e,i,n,l=t[45].displayValue+"",o,s,a,r,u,d,m=t[45].selected&&Qi(),_=!t[0]&&Yi(t);function h(){return t[37](t[45])}return{c(){e=g("li"),m&&m.c(),i=L(),n=g("div"),o=de(l),s=L(),_&&_.c(),a=L(),c(n,"class","v-1f29v8g"),A(n,"quality-title-mobile",t[0]),c(e,"class","item item-quality v-1f29v8g"),c(e,"data-value",r=t[45].value),c(e,"role","menuitemradio"),c(e,"tabindex","0"),A(e,"item-mobile",t[0])},m(b,w){M(b,e,w),m&&m.m(e,null),f(e,i),f(e,n),f(n,o),f(e,s),_&&_.m(e,null),f(e,a),u||(d=le(e,"click",h),u=!0)},p(b,w){t=b,t[45].selected?m?m.p(t,w):(m=Qi(),m.c(),m.m(e,i)):m&&(m.d(1),m=null),w[0]&2&&l!==(l=t[45].displayValue+"")&&Me(o,l),w[0]&1&&A(n,"quality-title-mobile",t[0]),t[0]?_&&(_.d(1),_=null):_?_.p(t,w):(_=Yi(t),_.c(),_.m(e,a)),w[0]&2&&r!==(r=t[45].value)&&c(e,"data-value",r),w[0]&1&&A(e,"item-mobile",t[0])},d(b){b&&C(e),m&&m.d(),_&&_.d(),u=!1,d()}}}function Ki(t){let e,i;return{c(){e=g("img"),c(e,"class","itemIcon v-1f29v8g"),ye(e.src,i=vl)||c(e,"src",i),c(e,"alt","")},m(n,l){M(n,e,l)},p:B,d(n){n&&C(e)}}}function Xi(t){let e,i,n,l=t[42].displayValue+"",o,s,a,r,u,d=t[42].selected&&Ki();function m(){return t[38](t[42])}return{c(){e=g("li"),d&&d.c(),i=L(),n=g("div"),o=de(l),s=L(),c(n,"class","v-1f29v8g"),A(n,"quality-title-mobile",t[0]),c(e,"class","item item-quality v-1f29v8g"),c(e,"data-value",a=t[42].value),c(e,"role","menuitemradio"),c(e,"tabindex","0"),A(e,"item-mobile",t[0])},m(_,h){M(_,e,h),d&&d.m(e,null),f(e,i),f(e,n),f(n,o),f(e,s),r||(u=le(e,"click",m),r=!0)},p(_,h){t=_,t[42].selected?d?d.p(t,h):(d=Ki(),d.c(),d.m(e,i)):d&&(d.d(1),d=null),h[0]&2048&&l!==(l=t[42].displayValue+"")&&Me(o,l),h[0]&1&&A(n,"quality-title-mobile",t[0]),h[0]&2048&&a!==(a=t[42].value)&&c(e,"data-value",a),h[0]&1&&A(e,"item-mobile",t[0])},d(_){_&&C(e),d&&d.d(),r=!1,u()}}}function qo(t){let e,i,n,l,o,s,a,r,u,d,m,_,h,b,w,z,E,p,k,T,F,V,I,O,D,N,K,J,H,U,X,pe,Z,j,ie,re,Se,ze,Re,ue=t[0]&&ji(t),fe=t[6]&&!t[0]&&Hi(t),ce=!t[9]&&Ui(t),ve=t[0]&&Oi(t),_e=t[1],Q=[];for(let R=0;R<_e.length;R+=1)Q[R]=Wi(Di(t,_e,R));let be=t[11],ae=[];for(let R=0;R<be.length;R+=1)ae[R]=Xi(qi(t,be,R));return{c(){e=g("div"),i=g("div"),ue&&ue.c(),n=L(),l=g("ul"),o=g("li"),s=g("img"),r=L(),u=g("div"),u.textContent="\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",d=L(),m=g("div"),_=de(t[7]),h=L(),fe&&fe.c(),b=L(),ce&&ce.c(),w=L(),ve&&ve.c(),z=L(),E=g("div"),p=g("div"),k=g("img"),F=L(),V=g("div"),V.textContent="\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",I=L(),O=g("div"),D=L(),N=g("ul");for(let R=0;R<Q.length;R+=1)Q[R].c();K=L(),J=g("div"),H=g("div"),U=g("img"),pe=L(),Z=g("div"),Z.textContent="\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",j=L(),ie=g("div"),re=L(),Se=g("ul");for(let R=0;R<ae.length;R+=1)ae[R].c();c(s,"class","menu-icon v-1f29v8g"),ye(s.src,a=bi)||c(s,"src",a),c(s,"alt",""),c(u,"class","menu-title v-1f29v8g"),c(m,"class","menu-value v-1f29v8g"),c(o,"class","item v-1f29v8g"),c(o,"role","menuitemradio"),c(o,"tabindex","0"),A(o,"item-mobile",t[0]),c(l,"class","items v-1f29v8g"),A(l,"items-mobile",t[0]),c(i,"class","menu v-1f29v8g"),c(i,"role","menu"),A(i,"menu-desktop",!t[0]),A(i,"menu-mobile",t[0]),A(i,"hidden",!t[3]),ye(k.src,T=Ri)||c(k,"src",T),c(k,"class","menu-header-back-icon v-1f29v8g"),c(k,"alt",""),c(p,"class","item menu-header v-1f29v8g"),A(p,"item-mobile",t[0]),c(O,"class","menu-divider v-1f29v8g"),c(N,"class","items v-1f29v8g"),c(N,"style",t[8]),A(N,"items-mobile",t[0]),c(E,"class","menu menu-subList v-1f29v8g"),A(E,"menu-desktop",!t[0]),A(E,"menu-mobile",t[0]),A(E,"hidden",!t[4]),ye(U.src,X=Ri)||c(U,"src",X),c(U,"class","menu-header-back-icon v-1f29v8g"),c(U,"alt",""),c(H,"class","item menu-header v-1f29v8g"),A(H,"item-mobile",t[0]),c(ie,"class","menu-divider v-1f29v8g"),c(Se,"class","items v-1f29v8g"),A(Se,"items-mobile",t[0]),c(J,"class","menu menu-subList v-1f29v8g"),A(J,"menu-desktop",!t[0]),A(J,"menu-mobile",t[0]),A(J,"hidden",!t[5]),c(e,"class","v-1f29v8g"),A(e,"hidden",!t[2]),A(e,"container-mobile",t[0])},m(R,q){M(R,e,q),f(e,i),ue&&ue.m(i,null),f(i,n),f(i,l),f(l,o),f(o,s),f(o,r),f(o,u),f(o,d),f(o,m),f(m,_),f(m,h),fe&&fe.m(m,null),f(l,b),ce&&ce.m(l,null),f(l,w),ve&&ve.m(l,null),f(e,z),f(e,E),f(E,p),f(p,k),f(p,F),f(p,V),f(E,I),f(E,O),f(E,D),f(E,N);for(let x=0;x<Q.length;x+=1)Q[x].m(N,null);f(e,K),f(e,J),f(J,H),f(H,U),f(H,pe),f(H,Z),f(J,j),f(J,ie),f(J,re),f(J,Se);for(let x=0;x<ae.length;x+=1)ae[x].m(Se,null);ze||(Re=[le(o,"click",t[23]),le(p,"click",t[27]),le(H,"click",t[27])],ze=!0)},p(R,q){if(R[0]?ue?ue.p(R,q):(ue=ji(R),ue.c(),ue.m(i,n)):ue&&(ue.d(1),ue=null),q[0]&128&&Me(_,R[7]),R[6]&&!R[0]?fe?fe.p(R,q):(fe=Hi(R),fe.c(),fe.m(m,null)):fe&&(fe.d(1),fe=null),q[0]&1&&A(o,"item-mobile",R[0]),R[9]?ce&&(ce.d(1),ce=null):ce?ce.p(R,q):(ce=Ui(R),ce.c(),ce.m(l,w)),R[0]?ve?ve.p(R,q):(ve=Oi(R),ve.c(),ve.m(l,null)):ve&&(ve.d(1),ve=null),q[0]&1&&A(l,"items-mobile",R[0]),q[0]&1&&A(i,"menu-desktop",!R[0]),q[0]&1&&A(i,"menu-mobile",R[0]),q[0]&8&&A(i,"hidden",!R[3]),q[0]&1&&A(p,"item-mobile",R[0]),q[0]&16777219|q[1]&1){_e=R[1];let x;for(x=0;x<_e.length;x+=1){const je=Di(R,_e,x);Q[x]?Q[x].p(je,q):(Q[x]=Wi(je),Q[x].c(),Q[x].m(N,null))}for(;x<Q.length;x+=1)Q[x].d(1);Q.length=_e.length}if(q[0]&256&&c(N,"style",R[8]),q[0]&1&&A(N,"items-mobile",R[0]),q[0]&1&&A(E,"menu-desktop",!R[0]),q[0]&1&&A(E,"menu-mobile",R[0]),q[0]&16&&A(E,"hidden",!R[4]),q[0]&1&&A(H,"item-mobile",R[0]),q[0]&33556481){be=R[11];let x;for(x=0;x<be.length;x+=1){const je=qi(R,be,x);ae[x]?ae[x].p(je,q):(ae[x]=Xi(je),ae[x].c(),ae[x].m(Se,null))}for(;x<ae.length;x+=1)ae[x].d(1);ae.length=be.length}q[0]&1&&A(Se,"items-mobile",R[0]),q[0]&1&&A(J,"menu-desktop",!R[0]),q[0]&1&&A(J,"menu-mobile",R[0]),q[0]&32&&A(J,"hidden",!R[5]),q[0]&4&&A(e,"hidden",!R[2]),q[0]&1&&A(e,"container-mobile",R[0])},i:B,o:B,d(R){R&&C(e),ue&&ue.d(),fe&&fe.d(),ce&&ce.d(),ve&&ve.d(),Li(Q,R),Li(ae,R),ze=!1,We(Re)}}}function Do(t,e,i){let n,l,o,s,a,r,u,d,m,_,{supportLink:h}=e;const b=De(),w=b.state.currentQuality$;Y(t,w,Q=>i(36,r=Q));const z=b.state.availableQualities$;Y(t,z,Q=>i(1,a=Q));const E=b.state.isAutoQualityEnabled$;Y(t,E,Q=>i(35,s=Q));const p=b.state.currentPlaybackRate$;Y(t,p,Q=>i(10,m=Q));const k=b.state.availablePlaybackRates$;Y(t,k,Q=>i(11,_=Q));const T=b.ui.settingsMenuVisible;Y(t,T,Q=>i(2,u=Q));const F=b.ui.isMobile;Y(t,F,Q=>i(0,o=Q));const V=b.ui.isFullscreen;Y(t,V,Q=>i(34,l=Q));const I=b.state.isLive$;Y(t,I,Q=>i(9,d=Q));const O=b.ui.playerSize;Y(t,O,Q=>i(33,n=Q));const D=b.ui.debugPanelVisible;let N=!0,K=!1,J=!1;function H(){T.set(!1)}function U(){i(3,N=!1),i(4,K=!0)}function X(Q){b.actions.internal.setQuality(Q),H()}function pe(Q){b.actions.internal.setPlaybackRate(Q),H()}function Z(){i(3,N=!1),i(5,J=!0)}function j(){i(3,N=!0),i(4,K=!1),i(5,J=!1)}function ie(){window.open(h,"_blank"),H(),b.actions.internal.pause()}function re(){gl(b.actions.internal.getDebugTextData()),H()}function Se(){D.set(!0),H()}function ze(Q){switch(Q){case Qe.Q_720P:return zo;case Qe.Q_1080P:return No;case Qe.Q_1440P:return To;case Qe.Q_2160P:return Lo;case Qe.Q_4320P:return Eo}}function Re(Q,be,ae){if(!Q)return"...";const R=be.find(x=>x.value===Q),q=R?R.displayValue:Q;return ae?Q===Qe.INVARIANT?ni:`${ni} ${q}`:q}let ue,fe,ce;const ve=Q=>X(Q.value),_e=Q=>pe(Q.value);return t.$$set=Q=>{"supportLink"in Q&&i(32,h=Q.supportLink)},t.$$.update=()=>{t.$$.dirty[0]&4&&u&&(i(3,N=!0),i(4,K=!1),i(5,J=!1)),t.$$.dirty[1]&32&&i(6,ue=ze(r)),t.$$.dirty[0]&2|t.$$.dirty[1]&48&&i(7,fe=Re(r,a,s)),t.$$.dirty[0]&1|t.$$.dirty[1]&12&&i(8,ce=o&&l?`max-height: ${Math.round(n.height*.6)}px`:"")},[o,a,u,N,K,J,ue,fe,ce,d,m,_,w,z,E,p,k,T,F,V,I,O,H,U,X,pe,Z,j,ie,re,Se,ze,h,n,l,s,r,ve,_e]}class hl extends he{constructor(e){super(),ge(this,e,Do,qo,me,{supportLink:32},Ro,[-1,-1])}}var jo="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",Ho="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",Uo="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",Oo="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",Qo="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";function Yo(t){we(t,"v-1qf7s4g",".settingsButton-icon.v-1qf7s4g{display:block;width:40px;height:24px}.settingsButton-icon.mobile.v-1qf7s4g{width:auto}")}function Wo(t){let e,i,n,l,o,s,a;return{c(){e=g("div"),i=g("div"),n=g("img"),ye(n.src,l=t[7](t[2],t[1]))||c(n,"src",l),c(n,"alt",""),c(i,"class","settingsButton-icon v-1qf7s4g"),A(i,"mobile",t[1]),c(e,"class",o=vt(t[0])+" v-1qf7s4g"),c(e,"aria-label","\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432\u0438\u0434\u0435\u043E\u043F\u043B\u0435\u0435\u0440\u0430"),c(e,"tabindex","-1"),c(e,"role","button")},m(r,u){M(r,e,u),f(e,i),f(i,n),s||(a=le(e,"click",t[6]),s=!0)},p(r,[u]){u&6&&!ye(n.src,l=r[7](r[2],r[1]))&&c(n,"src",l),u&2&&A(i,"mobile",r[1]),u&1&&o!==(o=vt(r[0])+" v-1qf7s4g")&&c(e,"class",o)},i:B,o:B,d(r){r&&C(e),s=!1,a()}}}function Ko(t,e,i){let n,l,o,{className:s=""}=e;const a=De(),r=a.state.currentQuality$;Y(t,r,h=>i(2,o=h));const u=a.ui.settingsMenuVisible;Y(t,u,h=>i(8,n=h));const d=a.ui.isMobile;Y(t,d,h=>i(1,l=h));function m(){u.set(!n)}function _(h,b){if(b)return bi;switch(h){case Qe.Q_720P:return jo;case Qe.Q_1080P:return Qo;case Qe.Q_1440P:return Ho;case Qe.Q_2160P:return Uo;case Qe.Q_4320P:return Oo;default:return bi}}return t.$$set=h=>{"className"in h&&i(0,s=h.className)},[s,l,o,r,u,d,m,_]}class pl extends he{constructor(e){super(),ge(this,e,Ko,Wo,me,{className:0},Yo)}}const mt=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t);const i=Math.floor(e/(60*60));e-=i*(60*60);const n=Math.floor(e/60);return e-=n*60,(i>0?[i,n,e]:[n,e]).map(o=>o>9?String(o):`0${o}`).join(":")};function Xo(t){we(t,"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 Gi(t){let e,i;return{c(){e=g("span"),i=de(t[2]),c(e,"class","duration v-1bjfp5n")},m(n,l){M(n,e,l),f(e,i)},p(n,l){l&4&&Me(i,n[2])},d(n){n&&C(e)}}}function Go(t){let e,i,n,l,o,s=t[0]&&Gi(t);return{c(){e=g("div"),i=g("span"),n=de(t[3]),l=L(),s&&s.c(),c(i,"class","current v-1bjfp5n"),c(e,"class",o="time "+t[1]+" v-1bjfp5n")},m(a,r){M(a,e,r),f(e,i),f(i,n),f(e,l),s&&s.m(e,null)},p(a,[r]){r&8&&Me(n,a[3]),a[0]?s?s.p(a,r):(s=Gi(a),s.c(),s.m(e,null)):s&&(s.d(1),s=null),r&2&&o!==(o="time "+a[1]+" v-1bjfp5n")&&c(e,"class",o)},i:B,o:B,d(a){a&&C(e),s&&s.d()}}}function Jo(t,e,i){let{duration:n}=e,{position:l}=e,{showDuration:o=!0}=e,{className:s=""}=e,a,r;return t.$$set=u=>{"duration"in u&&i(4,n=u.duration),"position"in u&&i(5,l=u.position),"showDuration"in u&&i(0,o=u.showDuration),"className"in u&&i(1,s=u.className)},t.$$.update=()=>{t.$$.dirty&16&&i(2,a=mt(n)),t.$$.dirty&32&&i(3,r=mt(l))},[o,s,a,r,n,l]}class Zo extends he{constructor(e){super(),ge(this,e,Jo,Go,me,{duration:4,position:5,showDuration:0,className:1},Xo)}}function xo(t){we(t,"v-mgwd2i",".slider.v-mgwd2i.v-mgwd2i{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-mgwd2i.v-mgwd2i{cursor:default}.slider.v-mgwd2i.v-mgwd2i: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-mgwd2i.v-mgwd2i{position:absolute;width:100%;height:100%;border-radius:var(--videoplayer-slider-radius);overflow:hidden}.loaded.v-mgwd2i.v-mgwd2i{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-mgwd2i.v-mgwd2i{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--videoplayer-slider-radius);background-color:var(--videoplayer-slider-filled-bg)}.slider.square.v-mgwd2i.v-mgwd2i,.slider.square.v-mgwd2i>.bars.v-mgwd2i,.slider.square.v-mgwd2i .loaded.v-mgwd2i,.slider.square.v-mgwd2i .filled.v-mgwd2i{border-radius:unset}.filled.active-live.v-mgwd2i.v-mgwd2i{background-color:var(--videoplayer-slider-filled-active-live-bg)}.filled.ads.v-mgwd2i.v-mgwd2i{background-color:var(--videoplayer-slider-filled-ads)}.handleWrap.v-mgwd2i.v-mgwd2i{position:absolute;left:-100%;width:100%}.handle.v-mgwd2i.v-mgwd2i{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-mgwd2i.v-mgwd2i{background-color:var(--videoplayer-slider-filled-active-live-bg)}.slider.v-mgwd2i:hover .handle.v-mgwd2i,.slider-dragging.v-mgwd2i .handle.v-mgwd2i{visibility:visible;opacity:1;transform:scale(1)}.slider-dragging.v-mgwd2i .handle.v-mgwd2i{transform:scale(1.3)}.slider-vertical.v-mgwd2i.v-mgwd2i{position:absolute;left:-26px;top:-18px;transform-origin:0 0;transform:rotate(-90deg)}.hidden.v-mgwd2i.v-mgwd2i{visibility:hidden;opacity:0}")}function $o(t){let e,i,n,l,o,s,a,r,u,d,m,_,h,b;return{c(){e=g("div"),i=g("div"),n=g("div"),o=L(),s=g("div"),r=L(),u=g("div"),d=g("div"),c(n,"class","loaded v-mgwd2i"),c(n,"style",l=`transform: translateX(${t[6]*100}%);`),c(s,"class","filled v-mgwd2i"),c(s,"style",a=`transform: translateX(${t[7]*100}%);`),A(s,"active-live",t[3]),A(s,"ads",t[4]),c(i,"class","bars v-mgwd2i"),c(d,"class","handle v-mgwd2i"),A(d,"active-live",t[3]),c(u,"class","handleWrap v-mgwd2i"),c(u,"style",m=`transform: translateX(${t[8]*100}%);`),A(u,"hidden",t[4]),c(e,"class",_="slider "+t[0]+" v-mgwd2i"),c(e,"aria-label",t[9]),c(e,"aria-valuemin",t[10]),c(e,"aria-valuemax",t[11]),c(e,"aria-valuenow",t[12]),c(e,"aria-valuetext",t[13]),c(e,"role","slider"),c(e,"tabindex","0"),A(e,"slider-dragging",t[15]),A(e,"hidden",t[1]),A(e,"slider-vertical",t[2]),A(e,"no-handle",t[4]),A(e,"square",t[5])},m(w,z){M(w,e,z),f(e,i),f(i,n),f(i,o),f(i,s),f(e,r),f(e,u),f(u,d),t[27](e),h||(b=[le(e,"pointerdown",Pt(t[16])),le(e,"pointermove",Pt(t[17])),le(e,"pointerup",Pt(t[18])),le(e,"pointerenter",Pt(t[19])),le(e,"pointerleave",Pt(t[20]))],h=!0)},p(w,[z]){z&64&&l!==(l=`transform: translateX(${w[6]*100}%);`)&&c(n,"style",l),z&128&&a!==(a=`transform: translateX(${w[7]*100}%);`)&&c(s,"style",a),z&8&&A(s,"active-live",w[3]),z&16&&A(s,"ads",w[4]),z&8&&A(d,"active-live",w[3]),z&256&&m!==(m=`transform: translateX(${w[8]*100}%);`)&&c(u,"style",m),z&16&&A(u,"hidden",w[4]),z&1&&_!==(_="slider "+w[0]+" v-mgwd2i")&&c(e,"class",_),z&512&&c(e,"aria-label",w[9]),z&1024&&c(e,"aria-valuemin",w[10]),z&2048&&c(e,"aria-valuemax",w[11]),z&4096&&c(e,"aria-valuenow",w[12]),z&8192&&c(e,"aria-valuetext",w[13]),z&32769&&A(e,"slider-dragging",w[15]),z&3&&A(e,"hidden",w[1]),z&5&&A(e,"slider-vertical",w[2]),z&17&&A(e,"no-handle",w[4]),z&33&&A(e,"square",w[5])},i:B,o:B,d(w){w&&C(e),t[27](null),h=!1,We(b)}}}function es(t,e,i){let{className:n=""}=e,{isHidden:l=!1}=e,{isVertical:o=!1}=e,{isActiveLive:s=!1}=e,{isAds:a=!1}=e,{squareBorders:r=!1}=e,u,d,{onPointerDown:m=B}=e,{onHandleMove:_=B}=e,{onPointerUp:h=B}=e,{onPointerEnter:b=B}=e,{onPointerMove:w=B}=e,{onPointerLeave:z=B}=e,{loadedProgress:E=0}=e,{filledProgress:p=0}=e,{handleProgress:k=0}=e,{ariaLabel:T=""}=e,{ariaValueMin:F=void 0}=e,{ariaValueMax:V=void 0}=e,{ariaValueNow:I=void 0}=e,{ariaValueText:O=""}=e,D=!1;function N(j){if(D)return;i(15,D=!0),d=u.getBoundingClientRect();const ie=X(j.clientX,j.clientY);m(ie),u.setPointerCapture(j.pointerId)}function K(j){const ie=X(j.clientX,j.clientY),re=pe(j.clientX);w(ie,re),D&&_(ie)}function J(j){if(!D)return;i(15,D=!1);const ie=X(j.clientX,j.clientY);h(ie)}function H(j){d=u.getBoundingClientRect();const ie=X(j.clientX,j.clientY),re=pe(j.clientX);b(ie,re)}function U(){z()}function X(j,ie){return o?Math.max(0,Math.min(1,(d.height-(ie-d.top))/d.height)):Math.min(Math.max(j-d.x,0),d.width)/d.width}function pe(j){return Math.min(Math.max(j-d.x,0),d.width)}function Z(j){Ye[j?"unshift":"push"](()=>{u=j,i(14,u)})}return t.$$set=j=>{"className"in j&&i(0,n=j.className),"isHidden"in j&&i(1,l=j.isHidden),"isVertical"in j&&i(2,o=j.isVertical),"isActiveLive"in j&&i(3,s=j.isActiveLive),"isAds"in j&&i(4,a=j.isAds),"squareBorders"in j&&i(5,r=j.squareBorders),"onPointerDown"in j&&i(21,m=j.onPointerDown),"onHandleMove"in j&&i(22,_=j.onHandleMove),"onPointerUp"in j&&i(23,h=j.onPointerUp),"onPointerEnter"in j&&i(24,b=j.onPointerEnter),"onPointerMove"in j&&i(25,w=j.onPointerMove),"onPointerLeave"in j&&i(26,z=j.onPointerLeave),"loadedProgress"in j&&i(6,E=j.loadedProgress),"filledProgress"in j&&i(7,p=j.filledProgress),"handleProgress"in j&&i(8,k=j.handleProgress),"ariaLabel"in j&&i(9,T=j.ariaLabel),"ariaValueMin"in j&&i(10,F=j.ariaValueMin),"ariaValueMax"in j&&i(11,V=j.ariaValueMax),"ariaValueNow"in j&&i(12,I=j.ariaValueNow),"ariaValueText"in j&&i(13,O=j.ariaValueText)},[n,l,o,s,a,r,E,p,k,T,F,V,I,O,u,D,N,K,J,H,U,m,_,h,b,w,z,Z]}class ki extends he{constructor(e){super(),ge(this,e,es,$o,me,{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},xo)}}function ts(t){we(t,"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 is(t){let e,i,n,l,o,s,a,r,u,d,m,_;return u=new ki({props:{className:t[0]?"volumeBar-slider-vertical":"",isHidden:t[0]&&!t[1],isVertical:t[0],onPointerDown:t[6],onHandleMove:t[7],onPointerUp:t[8],onPointerEnter:t[0]?t[9]:B,onPointerLeave:t[0]?t[10]:B,ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,ariaValueNow:Math.round(t[3]*100),ariaValueText:`${Math.round(t[3]*100)}%`,filledProgress:t[3],handleProgress:t[3]}}),{c(){e=g("div"),i=Pe("svg"),n=Pe("g"),l=Pe("path"),o=Pe("path"),s=Pe("path"),a=L(),r=g("div"),te(u.$$.fragment),c(l,"class","wave2 v-t7t1oe"),c(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-.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"),c(o,"class","wave1 v-t7t1oe"),c(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-.5029032z"),c(s,"class","cross v-t7t1oe"),c(s,"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"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(i,"xmlns","http://www.w3.org/2000/svg"),c(i,"class","icon v-t7t1oe"),c(i,"data-value",t[2]),c(e,"tabindex","0"),c(e,"role","button"),c(r,"class","volumeBar v-t7t1oe"),A(r,"volumeBar-vertical",t[0])},m(h,b){M(h,e,b),f(e,i),f(i,n),f(n,l),f(n,o),f(n,s),M(h,a,b),M(h,r,b),$(u,r,null),d=!0,m||(_=[le(e,"mouseenter",function(){Fe(t[0]?t[11]:B)&&(t[0]?t[11]:B).apply(this,arguments)}),le(e,"mouseleave",function(){Fe(t[0]?t[12]:B)&&(t[0]?t[12]:B).apply(this,arguments)}),le(e,"click",t[15])],m=!0)},p(h,[b]){t=h,(!d||b&4)&&c(i,"data-value",t[2]);const w={};b&1&&(w.className=t[0]?"volumeBar-slider-vertical":""),b&3&&(w.isHidden=t[0]&&!t[1]),b&1&&(w.isVertical=t[0]),b&1&&(w.onPointerEnter=t[0]?t[9]:B),b&1&&(w.onPointerLeave=t[0]?t[10]:B),b&8&&(w.ariaValueNow=Math.round(t[3]*100)),b&8&&(w.ariaValueText=`${Math.round(t[3]*100)}%`),b&8&&(w.filledProgress=t[3]),b&8&&(w.handleProgress=t[3]),u.$set(w),(!d||b&1)&&A(r,"volumeBar-vertical",t[0])},i(h){d||(v(u.$$.fragment,h),d=!0)},o(h){y(u.$$.fragment,h),d=!1},d(h){h&&C(e),h&&C(a),h&&C(r),ee(u),m=!1,We(_)}}}function ns(t,e){return e?"off":t>.5?"max":t>.2?"mid":t>0?"min":"off"}function ls(t,e,i){let n,l,{isVerticalVolume:o=!1}=e;const s=De(),a=s.state.volume$;Y(t,a,D=>i(13,n=D));const r=s.state.muted$;Y(t,r,D=>i(14,l=D));const u=s.actions.internal.setVolume;let d=!1,m,_,h,b=1,w=!1;function z(D){b=n,u(D)}function E(D){u(D)}function p(D){const N=D;u(N,N===0?b:N)}function k(){w=!0}function T(){w=!1,I()}function F(){clearTimeout(m),i(1,d=!0)}function V(){I()}function I(){m=window.setTimeout(()=>{w||i(1,d=!1)},yo)}function O(D){xe.call(this,t,D)}return t.$$set=D=>{"isVerticalVolume"in D&&i(0,o=D.isVerticalVolume)},t.$$.update=()=>{t.$$.dirty&24576&&i(2,_=ns(n,l)),t.$$.dirty&24576&&i(3,h=l?0:n)},[o,d,_,h,a,r,z,E,p,k,T,F,V,n,l,O]}class os extends he{constructor(e){super(),ge(this,e,ls,is,me,{isVerticalVolume:0},ts)}}function ss(t){we(t,"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 as(t){let e,i,n;const l=t[3].default,o=Jl(l,t,t[2],null);return{c(){e=g("div"),o&&o.c(),c(e,"class",i="container "+t[0]+" v-1fkqq1h"),A(e,"disabled",t[1])},m(s,a){M(s,e,a),o&&o.m(e,null),n=!0},p(s,[a]){o&&o.p&&(!n||a&4)&&xl(o,l,s,s[2],n?Zl(l,s[2],a,null):$l(s[2]),null),(!n||a&1&&i!==(i="container "+s[0]+" v-1fkqq1h"))&&c(e,"class",i),(!n||a&3)&&A(e,"disabled",s[1])},i(s){n||(v(o,s),n=!0)},o(s){y(o,s),n=!1},d(s){s&&C(e),o&&o.d(s)}}}function rs(t,e,i){let{$$slots:n={},$$scope:l}=e,{className:o=""}=e,{disabled:s=!1}=e;return t.$$set=a=>{"className"in a&&i(0,o=a.className),"disabled"in a&&i(1,s=a.disabled),"$$scope"in a&&i(2,l=a.$$scope)},[o,s,l,n]}class ot extends he{constructor(e){super(),ge(this,e,rs,as,me,{className:0,disabled:1},ss)}}function cs(t){we(t,"v-daygaf",".icon.v-daygaf{display:block;width:24px;height:24px}")}function us(t){let e;return{c(){e=Pe("path"),c(e,"class","_enter"),c(e,"d","M10.5 19c0 .5522847-.4477153 1-1 1H5c-.55228475 0-1-.4477153-1-1v-4.5c0-.5522847.44771525-1 1-1s1 .4477153 1 1v2.0715l3.36290054-3.3643932.00012963-.0001296c.39052429-.3905243 1.02368923-.3905243 1.41421353 0l.0157791.0157791.0001297.0001296c.3904527.3905959.3903366 1.0237609-.0002593 1.4142136L7.4285 18H9.5c.5522847 0 1 .4477153 1 1zM18 7.4285l-3.3629005 3.3643932c-.0000432.0000432-.0000865.0000864-.0001297.0001296-.3905243.3905243-1.0236892.3905243-1.4142135 0l-.0157791-.0157791c-.0000433-.0000432-.0000865-.0000864-.0001297-.0001296-.3904527-.3905959-.3903366-1.02376087.0002593-1.41421356L16.5715 6H14.5c-.5522847 0-1-.44771525-1-1s.4477153-1 1-1H19c.5522847 0 1 .44771525 1 1v4.5c0 .5522847-.4477153 1-1 1s-1-.4477153-1-1z")},m(i,n){M(i,e,n)},d(i){i&&C(e)}}}function ds(t){let e;return{c(){e=Pe("path"),c(e,"class","_exit"),c(e,"d","M4.57969048 13.9787492c0-.5464165.44295809-.9893746.9893746-.9893746h4.45218572c.5464165 0 .9893746.4429581.9893746.9893746v4.4521857c0 .5464165-.4429581.9893746-.9893746.9893746-.54641651 0-.98937461-.4429581-.98937461-.9893746v-2.0494895l-3.3196551 3.3211319-.00012963.0001297c-.39052429.3905243-1.02368927.3905243-1.41421356 0l-.00058487-.0005849-.00012964-.0001297c-.39045268-.3905958-.3903366-1.0237608.00025929-1.4142135l3.32113189-3.3196551H5.56906508c-.54641651 0-.9893746-.4429581-.9893746-.9893746zM14.9681238 7.61855457l3.3196551-3.32113189.0001296-.00012966c.3905243-.39052429 1.0236893-.39052429 1.4142136 0l.0005849.00058488.0001296.00012965c.3904527.39059589.3903366 1.02376086-.0002593 1.41421354l-3.3211319 3.3196551h2.0494895c.5464165 0 .9893746.4429581.9893746.98937461 0 .5464165-.4429581.9893746-.9893746.9893746h-4.4415603c-.5522847 0-1-.4477153-1-1V5.56906508c0-.54641651.4429581-.9893746.9893746-.9893746s.9893746.44295809.9893746.9893746z")},m(i,n){M(i,e,n)},d(i){i&&C(e)}}}function fs(t){let e,i,n,l,o;function s(u,d){return u[0]?ds:us}let a=s(t),r=a(t);return{c(){e=g("div"),i=Pe("svg"),n=Pe("g"),r.c(),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(i,"class","icon v-daygaf"),c(i,"xmlns","http://www.w3.org/2000/svg"),c(e,"role","button"),c(e,"tabindex","0")},m(u,d){M(u,e,d),f(e,i),f(i,n),r.m(n,null),l||(o=le(e,"click",t[2]),l=!0)},p(u,[d]){a!==(a=s(u))&&(r.d(1),r=a(u),r&&(r.c(),r.m(n,null)))},i:B,o:B,d(u){u&&C(e),r.d(),l=!1,o()}}}function ms(t,e,i){let n;const o=De().ui.isFullscreen;Y(t,o,a=>i(0,n=a));function s(a){xe.call(this,t,a)}return[n,o,s]}class vs extends he{constructor(e){super(),ge(this,e,ms,fs,me,{},cs)}}var wi="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",Ji="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",gs="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",Yt;(function(t){t.AUTO="auto"})(Yt||(Yt={}));var Ve;(function(t){t.Thumb="thumb",t.Video="video",t.Ads="ads",t.Crashed="crashed"})(Ve||(Ve={}));var lt;(function(t){t.Preroll="preroll",t.Midroll="midroll",t.Postroll="postroll"})(lt||(lt={}));var Ie;(function(t){t.INACTIVE="inactive",t.PLAYING="playing",t.PAUSED="paused"})(Ie||(Ie={}));function hs(t){we(t,"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 ps(t){let e,i,n,l,o,s;return{c(){e=g("div"),i=g("img"),ye(i.src,n=t[2])||c(i,"src",n),c(i,"class","icon v-1kcq5gq"),c(i,"alt",""),c(e,"class",l=vt(t[0])+" v-1kcq5gq"),c(e,"role","button"),c(e,"tabindex","0")},m(a,r){M(a,e,r),f(e,i),o||(s=le(e,"click",function(){Fe(t[1])&&t[1].apply(this,arguments)}),o=!0)},p(a,r){t=a,r&4&&!ye(i.src,n=t[2])&&c(i,"src",n),r&1&&l!==(l=vt(t[0])+" v-1kcq5gq")&&c(e,"class",l)},d(a){a&&C(e),o=!1,s()}}}function bs(t){let e,i,n,l,o,s,a;return{c(){e=g("div"),i=g("div"),n=L(),l=g("img"),c(i,"class","icon-background-mobile v-1kcq5gq"),ye(l.src,o=t[2])||c(l,"src",o),c(l,"class","icon-mobile v-1kcq5gq"),c(l,"alt",""),c(e,"class","container-mobile v-1kcq5gq"),c(e,"role","button"),c(e,"tabindex","0")},m(r,u){M(r,e,u),f(e,i),f(e,n),f(e,l),s||(a=le(e,"click",function(){Fe(t[1])&&t[1].apply(this,arguments)}),s=!0)},p(r,u){t=r,u&4&&!ye(l.src,o=t[2])&&c(l,"src",o)},d(r){r&&C(e),s=!1,a()}}}function ws(t){let e;function i(o,s){return o[3]?bs:ps}let n=i(t),l=n(t);return{c(){l.c(),e=Je()},m(o,s){l.m(o,s),M(o,e,s)},p(o,[s]){n===(n=i(o))&&l?l.p(o,s):(l.d(1),l=n(o),l&&(l.c(),l.m(e.parentNode,e)))},i:B,o:B,d(o){l.d(o),o&&C(e)}}}function _s(t,e,i){let n,l,o,{isEnded:s}=e,{isAds:a}=e,{playbackState:r}=e,{adPlaybackState:u}=e,{className:d=""}=e,{handlePlayClick:m}=e,{repeatPlaylist:_}=e,{isOneVideoPlaylist:h}=e;const w=De().ui.isMobile;Y(t,w,p=>i(3,o=p));function z(p,k){return k?gs:p===At.PLAYING?Ji:wi}function E(p){return p===Ie.PLAYING?Ji:wi}return t.$$set=p=>{"isEnded"in p&&i(5,s=p.isEnded),"isAds"in p&&i(6,a=p.isAds),"playbackState"in p&&i(7,r=p.playbackState),"adPlaybackState"in p&&i(8,u=p.adPlaybackState),"className"in p&&i(0,d=p.className),"handlePlayClick"in p&&i(9,m=p.handlePlayClick),"repeatPlaylist"in p&&i(10,_=p.repeatPlaylist),"isOneVideoPlaylist"in p&&i(11,h=p.isOneVideoPlaylist)},t.$$.update=()=>{t.$$.dirty&480&&i(2,n=a?E(u):z(r,s)),t.$$.dirty&3680&&i(1,l=!a&&s&&!h?_:m)},[d,l,n,o,w,s,a,r,u,m,_,h]}class yi extends he{constructor(e){super(),ge(this,e,_s,ws,me,{isEnded:5,isAds:6,playbackState:7,adPlaybackState:8,className:0,handlePlayClick:9,repeatPlaylist:10,isOneVideoPlaylist:11},hs)}}var bl="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 ks(t){we(t,"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 ys(t){let e,i,n,l,o;return{c(){e=g("div"),i=g("img"),c(i,"class","icon v-1tmb7ku"),ye(i.src,n=bl)||c(i,"src",n),c(i,"alt",""),A(i,"icon-prev",t[1]==="prev"),c(e,"role","button"),c(e,"tabindex","0"),c(e,"class","v-1tmb7ku"),A(e,"disabled",t[0])},m(s,a){M(s,e,a),f(e,i),l||(o=le(e,"click",t[5]),l=!0)},p(s,a){a&2&&A(i,"icon-prev",s[1]==="prev"),a&1&&A(e,"disabled",s[0])},d(s){s&&C(e),l=!1,o()}}}function Vs(t){let e,i,n,l,o;return{c(){e=g("div"),i=g("img"),c(i,"class","icon-mobile v-1tmb7ku"),ye(i.src,n=bl)||c(i,"src",n),c(i,"alt",""),A(i,"icon-prev",t[1]==="prev"),c(e,"role","button"),c(e,"tabindex","0"),c(e,"class","v-1tmb7ku"),A(e,"container-mobile-prev",t[1]==="prev"),A(e,"container-mobile-next",t[1]==="next"),A(e,"disabled",t[0])},m(s,a){M(s,e,a),f(e,i),l||(o=le(e,"click",t[4]),l=!0)},p(s,a){a&2&&A(i,"icon-prev",s[1]==="prev"),a&2&&A(e,"container-mobile-prev",s[1]==="prev"),a&2&&A(e,"container-mobile-next",s[1]==="next"),a&1&&A(e,"disabled",s[0])},d(s){s&&C(e),l=!1,o()}}}function Ps(t){let e;function i(o,s){return o[2]?Vs:ys}let n=i(t),l=n(t);return{c(){l.c(),e=Je()},m(o,s){l.m(o,s),M(o,e,s)},p(o,[s]){n===(n=i(o))&&l?l.p(o,s):(l.d(1),l=n(o),l&&(l.c(),l.m(e.parentNode,e)))},i:B,o:B,d(o){l.d(o),o&&C(e)}}}function Ss(t,e,i){let n,{disabled:l=!1}=e,{type:o}=e;const a=De().ui.isMobile;Y(t,a,d=>i(2,n=d));function r(d){xe.call(this,t,d)}function u(d){xe.call(this,t,d)}return t.$$set=d=>{"disabled"in d&&i(0,l=d.disabled),"type"in d&&i(1,o=d.type)},[l,o,n,a,r,u]}class ai extends he{constructor(e){super(),ge(this,e,Ss,Ps,me,{disabled:0,type:1},ks)}}var wl="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 As(t){we(t,"v-j4644b",".no-hover.v-j4644b{pointer-events:none}.icon.v-j4644b{display:block;width:24px;height:24px}")}function Cs(t){let e,i;return{c(){e=g("img"),ye(e.src,i=wl)||c(e,"src",i),c(e,"class","icon v-j4644b"),c(e,"alt","")},m(n,l){M(n,e,l)},p:B,d(n){n&&C(e)}}}function Ms(t){let e,i,n,l,o;return{c(){e=g("a"),i=g("img"),ye(i.src,n=wl)||c(i,"src",n),c(i,"class","icon v-j4644b"),c(i,"alt",""),c(e,"href","https://vk.com/video"),c(e,"target","_blank"),c(e,"rel","noreferrer")},m(s,a){M(s,e,a),f(e,i),l||(o=le(e,"click",t[2]),l=!0)},p:B,d(s){s&&C(e),l=!1,o()}}}function zs(t){let e,i;function n(s,a){return s[1]?Ms:Cs}let l=n(t),o=l(t);return{c(){e=g("div"),o.c(),c(e,"class",i=vt(t[0])+" v-j4644b"),c(e,"role","button"),c(e,"tabindex","0"),A(e,"no-hover",!t[1])},m(s,a){M(s,e,a),o.m(e,null)},p(s,[a]){l===(l=n(s))&&o?o.p(s,a):(o.d(1),o=l(s),o&&(o.c(),o.m(e,null))),a&1&&i!==(i=vt(s[0])+" v-j4644b")&&c(e,"class",i),a&3&&A(e,"no-hover",!s[1])},i:B,o:B,d(s){s&&C(e),o.d()}}}function Ts(t,e,i){let{className:n=""}=e,{logoClickable:l=!1}=e;function o(s){xe.call(this,t,s)}return t.$$set=s=>{"className"in s&&i(0,n=s.className),"logoClickable"in s&&i(1,l=s.logoClickable)},[n,l,o]}class _l extends he{constructor(e){super(),ge(this,e,Ts,zs,me,{className:0,logoClickable:1},As)}}function Ls(t){we(t,"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 Zi(t){let e,i,n,l;function o(r,u){if(r[1]===qt.AVAILABLE)return Bs;if(r[1]===qt.CONNECTED)return Ns;if(r[1]===qt.CONNECTING)return Es}let s=o(t),a=s&&s(t);return{c(){e=g("div"),a&&a.c(),c(e,"class",i=vt(t[0])+" v-1gdbwrb"),c(e,"role","button"),c(e,"tabindex","0")},m(r,u){M(r,e,u),a&&a.m(e,null),n||(l=le(e,"click",t[4]),n=!0)},p(r,u){s!==(s=o(r))&&(a&&a.d(1),a=s&&s(r),a&&(a.c(),a.m(e,null))),u&1&&i!==(i=vt(r[0])+" v-1gdbwrb")&&c(e,"class",i)},d(r){r&&C(e),a&&a.d(),n=!1,l()}}}function Es(t){let e,i,n,l,o,s,a;return{c(){e=Pe("svg"),i=Pe("g"),n=Pe("path"),l=Pe("path"),o=Pe("path"),s=Pe("path"),a=Pe("path"),c(n,"class","wave wave1 v-1gdbwrb"),c(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3z"),c(n,"opacity",".3"),c(n,"fill","#fff"),c(l,"class","wave wave2 v-1gdbwrb"),c(l,"d","M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"),c(l,"opacity",".3"),c(l,"fill","#fff"),c(o,"class","wave wave3 v-1gdbwrb"),c(o,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),c(o,"opacity",".3"),c(o,"fill","#fff"),c(s,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),c(s,"fill","#fff"),c(a,"d","M0 0h24v24H0z"),c(i,"fill","none"),c(i,"fill-rule","evenodd"),c(e,"class","icon v-1gdbwrb"),c(e,"width","22"),c(e,"height","22"),c(e,"viewBox","0 0 24 24"),c(e,"xmlns","http://www.w3.org/2000/svg")},m(r,u){M(r,e,u),f(e,i),f(i,n),f(i,l),f(i,o),f(i,s),f(i,a)},d(r){r&&C(e)}}}function Ns(t){let e,i,n,l;return{c(){e=Pe("svg"),i=Pe("g"),n=Pe("path"),l=Pe("path"),c(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"),c(n,"fill","#fff"),c(l,"d","M0 0h24v24H0z"),c(i,"fill","none"),c(i,"fill-rule","evenodd"),c(e,"class","icon v-1gdbwrb"),c(e,"width","22"),c(e,"height","22"),c(e,"viewBox","0 0 24 24"),c(e,"xmlns","http://www.w3.org/2000/svg")},m(o,s){M(o,e,s),f(e,i),f(i,n),f(i,l)},d(o){o&&C(e)}}}function Bs(t){let e,i,n,l;return{c(){e=Pe("svg"),i=Pe("g"),n=Pe("path"),l=Pe("path"),c(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"),c(n,"fill","#fff"),c(l,"d","M0 0h24v24H0z"),c(i,"fill","none"),c(i,"fill-rule","evenodd"),c(e,"class","icon v-1gdbwrb"),c(e,"width","22"),c(e,"height","22"),c(e,"viewBox","0 0 24 24"),c(e,"xmlns","http://www.w3.org/2000/svg")},m(o,s){M(o,e,s),f(e,i),f(i,n),f(i,l)},d(o){o&&C(e)}}}function Is(t){let e,i=t[1]!==qt.NOT_AVAILABLE&&Zi(t);return{c(){i&&i.c(),e=Je()},m(n,l){i&&i.m(n,l),M(n,e,l)},p(n,[l]){n[1]!==qt.NOT_AVAILABLE?i?i.p(n,l):(i=Zi(n),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},i:B,o:B,d(n){i&&i.d(n),n&&C(e)}}}function Fs(t,e,i){let n,{className:l=""}=e;const s=De().state.chromecastState$;Y(t,s,u=>i(3,n=u));let a;function r(u){xe.call(this,t,u)}return t.$$set=u=>{"className"in u&&i(0,l=u.className)},t.$$.update=()=>{t.$$.dirty&8&&i(1,a=n)},[l,a,s,n,r]}class Rs extends he{constructor(e){super(),ge(this,e,Fs,Is,me,{className:0},Ls)}}var qs="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",Ds="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";function js(t){we(t,"v-rwtbzf",".icon.v-rwtbzf{display:block;width:42px;height:20px}")}function Hs(t){let e,i,n,l,o;return{c(){e=g("div"),i=g("img"),ye(i.src,n=t[0])||c(i,"src",n),c(i,"class","icon v-rwtbzf"),c(i,"alt",""),c(e,"role","button"),c(e,"tabindex","0")},m(s,a){M(s,e,a),f(e,i),l||(o=le(e,"click",t[2]),l=!0)},p(s,[a]){a&1&&!ye(i.src,n=s[0])&&c(i,"src",n)},i:B,o:B,d(s){s&&C(e),l=!1,o()}}}function Us(t,e,i){let{isActiveLive:n=!1}=e,l="";function o(s){xe.call(this,t,s)}return t.$$set=s=>{"isActiveLive"in s&&i(1,n=s.isActiveLive)},t.$$.update=()=>{t.$$.dirty&2&&i(0,l=n?Ds:qs)},[l,n,o]}class Os extends he{constructor(e){super(),ge(this,e,Us,Hs,me,{isActiveLive:1},js)}}var xi="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",$i="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 Qs(t){we(t,"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 en(t){let e;return{c(){e=g("span"),e.textContent="\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",c(e,"class","text v-dsbe5p")},m(i,n){M(i,e,n)},d(i){i&&C(e)}}}function Ys(t){let e,i,n,l,o,s,a=t[0]&&en();return{c(){e=g("div"),i=g("img"),l=L(),a&&a.c(),ye(i.src,n=t[0]?$i:xi)||c(i,"src",n),c(i,"class","icon v-dsbe5p"),c(i,"alt",""),c(e,"class","container v-dsbe5p"),A(e,"expanded",t[0])},m(r,u){M(r,e,u),f(e,i),f(e,l),a&&a.m(e,null),o||(s=le(e,"click",t[1]),o=!0)},p(r,[u]){u&1&&!ye(i.src,n=r[0]?$i:xi)&&c(i,"src",n),r[0]?a||(a=en(),a.c(),a.m(e,null)):a&&(a.d(1),a=null),u&1&&A(e,"expanded",r[0])},i:B,o:B,d(r){r&&C(e),a&&a.d(),o=!1,s()}}}function Ws(t,e,i){let{expanded:n=!1}=e;function l(o){xe.call(this,t,o)}return t.$$set=o=>{"expanded"in o&&i(0,n=o.expanded)},[n,l]}class kl extends he{constructor(e){super(),ge(this,e,Ws,Ys,me,{expanded:0},Qs)}}function Ks(t){we(t,"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 Xs(t){let e,i,n,l,o;return{c(){e=g("div"),i=g("div"),n=g("div"),l=de(t[0]),c(n,"class","content v-1bwjmdb"),c(i,"class","tooltip v-1bwjmdb"),A(i,"active",t[1]),c(e,"class","tooltip-wrapper v-1bwjmdb"),c(e,"style",o=`transform: translate(${t[2]}px, ${t[3]}px);`)},m(s,a){M(s,e,a),f(e,i),f(i,n),f(n,l)},p(s,[a]){a&1&&Me(l,s[0]),a&2&&A(i,"active",s[1]),a&12&&o!==(o=`transform: translate(${s[2]}px, ${s[3]}px);`)&&c(e,"style",o)},i:B,o:B,d(s){s&&C(e)}}}function Gs(t,e,i){let{content:n=""}=e,{active:l=!1}=e,{translateXPx:o=0}=e,{translateYPx:s=0}=e;return t.$$set=a=>{"content"in a&&i(0,n=a.content),"active"in a&&i(1,l=a.active),"translateXPx"in a&&i(2,o=a.translateXPx),"translateYPx"in a&&i(3,s=a.translateYPx)},[n,l,o,s]}class Js extends he{constructor(e){super(),ge(this,e,Gs,Xs,me,{content:0,active:1,translateXPx:2,translateYPx:3},Ks)}}function tn(t){let e,i;return e=new Js({props:{content:t[5],active:t[4],translateXPx:t[6],translateYPx:-16}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l&32&&(o.content=n[5]),l&16&&(o.active=n[4]),l&64&&(o.translateXPx=n[6]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Zs(t){let e,i,n,l=(!t[8]||t[8]&&t[7])&&tn(t);return i=new ki({props:{isActiveLive:t[9],ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",ariaValueMin:0,ariaValueMax:t[0],ariaValueNow:Math.round(t[3]*100),ariaValueText:`${t[2]} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C ${t[1]})`,loadedProgress:t[10],filledProgress:t[3],handleProgress:t[3],onPointerDown:t[17],onHandleMove:t[18],onPointerMove:t[21],onPointerUp:t[19],onPointerEnter:t[20],onPointerLeave:t[22]}}),{c(){l&&l.c(),e=L(),te(i.$$.fragment)},m(o,s){l&&l.m(o,s),M(o,e,s),$(i,o,s),n=!0},p(o,[s]){!o[8]||o[8]&&o[7]?l?(l.p(o,s),s&384&&v(l,1)):(l=tn(o),l.c(),v(l,1),l.m(e.parentNode,e)):l&&(oe(),y(l,1,1,()=>{l=null}),se());const a={};s&512&&(a.isActiveLive=o[9]),s&1&&(a.ariaValueMax=o[0]),s&8&&(a.ariaValueNow=Math.round(o[3]*100)),s&6&&(a.ariaValueText=`${o[2]} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C ${o[1]})`),s&1024&&(a.loadedProgress=o[10]),s&8&&(a.filledProgress=o[3]),s&8&&(a.handleProgress=o[3]),i.$set(a)},i(o){n||(v(l),v(i.$$.fragment,o),n=!0)},o(o){y(l),y(i.$$.fragment,o),n=!1},d(o){l&&l.d(o),o&&C(e),ee(i,o)}}}function xs(t,e,i){let n,l,o,s,a,r;const u=De(),d=u.state.bufferedProgress$;Y(t,d,U=>i(10,r=U));const m=u.state.positionWithScrubbing$;Y(t,m,U=>i(23,o=U));const _=u.state.duration$;Y(t,_,U=>i(0,l=U));const h=u.state.isLive$;Y(t,h,U=>i(7,n=U));const b=u.state.isActiveLive$;Y(t,b,U=>i(9,a=U));const w=u.ui.isMobile;Y(t,w,U=>i(8,s=U));let z,E,p,k=!1,T="",F=0;function V(U){u.actions.internal.startScrubbing(U)}function I(U){u.actions.internal.progressScrubbing(U)}function O(U){u.actions.internal.completeScrubbing(U)}function D(U,X){J(U,X),i(4,k=!0)}function N(U,X){J(U,X)}function K(){i(4,k=!1)}function J(U,X){i(6,F=X),i(5,T=H(U))}function H(U){const X=mt((n?1-U:U)*l);return n?`-${X}`:X}return t.$$.update=()=>{t.$$.dirty&1&&i(1,z=mt(l)),t.$$.dirty&8388608&&i(2,E=mt(o)),t.$$.dirty&8388609&&i(3,p=o/l)},[l,z,E,p,k,T,F,n,s,a,r,d,m,_,h,b,w,V,I,O,D,N,K,o]}let $s=class extends he{constructor(e){super(),ge(this,e,xs,Zs,me,{})}};function e1(t){let e,i;return e=new ki({props:{ariaValueMin:0,ariaValueMax:t[0],ariaValueNow:Math.round(t[3]*100),ariaValueText:`${t[2]} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C ${t[1]})`,filledProgress:t[3],isAds:!0,squareBorders:t[4]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,[l]){const o={};l&1&&(o.ariaValueMax=n[0]),l&8&&(o.ariaValueNow=Math.round(n[3]*100)),l&6&&(o.ariaValueText=`${n[2]} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C ${n[1]})`),l&8&&(o.filledProgress=n[3]),l&16&&(o.squareBorders=n[4]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function t1(t,e,i){let n,{position:l=0}=e,{duration:o=0}=e;const a=De().ui.isMobile;Y(t,a,m=>i(4,n=m));let r,u,d;return t.$$set=m=>{"position"in m&&i(6,l=m.position),"duration"in m&&i(0,o=m.duration)},t.$$.update=()=>{t.$$.dirty&1&&i(1,r=mt(o)),t.$$.dirty&64&&i(2,u=mt(l)),t.$$.dirty&65&&i(3,d=l/o)},[o,r,u,d,n,a,l]}class yl extends he{constructor(e){super(),ge(this,e,t1,e1,me,{position:6,duration:0})}}function i1(t){we(t,"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 n1(t){let e;return{c(){e=g("div"),c(e,"class","timeline-stub v-17msmwz")},m(i,n){M(i,e,n)},p:B,i:B,o:B,d(i){i&&C(e)}}}function l1(t){let e,i,n,l,o;const s=[s1,o1],a=[];function r(u,d){return u[0]?0:1}return i=r(t),n=a[i]=s[i](t),{c(){e=g("div"),n.c(),c(e,"class",l="timeline "+t[1]+" v-17msmwz")},m(u,d){M(u,e,d),a[i].m(e,null),o=!0},p(u,d){let m=i;i=r(u),i===m?a[i].p(u,d):(oe(),y(a[m],1,1,()=>{a[m]=null}),se(),n=a[i],n?n.p(u,d):(n=a[i]=s[i](u),n.c()),v(n,1),n.m(e,null)),(!o||d&2&&l!==(l="timeline "+u[1]+" v-17msmwz"))&&c(e,"class",l)},i(u){o||(v(n),o=!0)},o(u){y(n),o=!1},d(u){u&&C(e),a[i].d()}}}function o1(t){let e,i;return e=new $s({}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p:B,i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function s1(t){let e,i;return e=new yl({props:{position:t[3],duration:t[4]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l&8&&(o.position=n[3]),l&16&&(o.duration=n[4]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function a1(t){let e,i,n,l;const o=[l1,n1],s=[];function a(r,u){return r[2]?0:1}return e=a(t),i=s[e]=o[e](t),{c(){i.c(),n=Je()},m(r,u){s[e].m(r,u),M(r,n,u),l=!0},p(r,[u]){let d=e;e=a(r),e===d?s[e].p(r,u):(oe(),y(s[d],1,1,()=>{s[d]=null}),se(),i=s[e],i?i.p(r,u):(i=s[e]=o[e](r),i.c()),v(i,1),i.m(n.parentNode,n))},i(r){l||(v(i),l=!0)},o(r){y(i),l=!1},d(r){s[e].d(r),r&&C(n)}}}function r1(t,e,i){let n,l,o,{isAds:s=!1}=e,{canRewindLive:a}=e,{isHidden:r=!1}=e,{className:u=""}=e;const d=De(),m=d.state.isLive$;Y(t,m,w=>i(10,n=w));const _=d.ads.duration;Y(t,_,w=>i(4,o=w));const h=d.ads.position;Y(t,h,w=>i(3,l=w));let b;return t.$$set=w=>{"isAds"in w&&i(0,s=w.isAds),"canRewindLive"in w&&i(8,a=w.canRewindLive),"isHidden"in w&&i(9,r=w.isHidden),"className"in w&&i(1,u=w.className)},t.$$.update=()=>{t.$$.dirty&1793&&i(2,b=!r&&(!n||n&&a||s))},[s,u,b,l,o,m,_,h,a,r,n]}class Vl extends he{constructor(e){super(),ge(this,e,r1,a1,me,{isAds:0,canRewindLive:8,isHidden:9,className:1},i1)}}function c1(t){we(t,"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(
|
|
6
|
+
import{VideoQuality as Xe,PlaybackState as Tt,ChromecastState as Ot,Player as $l,VideoFormat as Fi}from"@vkontakte/videoplayer-core/es2015.esm.js";import eo from"lodash/debounce.js";import{assertNonNullable as Ce,checkNever as to,Subject as Ct,addScript as io,Subscription as ai,Logger as vl,isNonNullable as no,merge as lo}from"@vkontakte/videoplayer-shared/es2015.esm.js";import oo from"lodash/debounce";import{OneStat as so,ApiEnv as ro}from"@vkontakte/videoplayer-statistics/es2015.esm.js";import ao from"lodash/cloneDeepWith.js";function B(){}function co(t,e){for(const i in e)t[i]=e[i];return t}function gl(t){return t()}function qi(){return Object.create(null)}function xe(t){t.forEach(gl)}function Re(t){return typeof t=="function"}function ve(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let oi;function Pe(t,e){return oi||(oi=document.createElement("a")),oi.href=e,t===oi.href}function uo(t){return Object.keys(t).length===0}function Ei(t,...e){if(t==null)return B;const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function Ie(t){let e;return Ei(t,i=>e=i)(),e}function Q(t,e,i){t.$$.on_destroy.push(Ei(e,i))}function fo(t,e,i,n){if(t){const l=hl(t,e,i,n);return t[0](l)}}function hl(t,e,i,n){return t[1]&&n?co(i.ctx.slice(),t[1](n(e))):i.ctx}function mo(t,e,i,n){if(t[2]&&n){const l=t[2](n(i));if(e.dirty===void 0)return l;if(typeof l=="object"){const o=[],s=Math.max(e.dirty.length,l.length);for(let r=0;r<s;r+=1)o[r]=e.dirty[r]|l[r];return o}return e.dirty|l}return e.dirty}function vo(t,e,i,n,l,o){if(l){const s=hl(e,i,n,o);t.p(s,l)}}function go(t){if(t.ctx.length>32){const e=[],i=t.ctx.length/32;for(let n=0;n<i;n++)e[n]=-1;return e}return-1}function pt(t){return t==null?"":t}function f(t,e){t.appendChild(e)}function _e(t,e,i){const n=ho(t);if(!n.getElementById(e)){const l=h("style");l.id=e,l.textContent=i,po(n,l)}}function ho(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function po(t,e){return f(t.head||t,e),e.sheet}function E(t,e,i){t.insertBefore(e,i||null)}function M(t){t.parentNode&&t.parentNode.removeChild(t)}function Hi(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function h(t){return document.createElement(t)}function Ae(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function fe(t){return document.createTextNode(t)}function z(){return fe(" ")}function $e(){return fe("")}function oe(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function Mt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function bo(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function c(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function wo(t){return Array.from(t.childNodes)}function Me(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function Dt(t,e,i,n){i===null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}function S(t,e,i){t.classList[i?"add":"remove"](e)}let Zt;function xt(t){Zt=t}function di(){if(!Zt)throw new Error("Function called outside component initialization");return Zt}function Nt(t){di().$$.on_mount.push(t)}function pl(t){di().$$.on_destroy.push(t)}function _o(t,e){return di().$$.context.set(t,e),e}function yo(t){return di().$$.context.get(t)}function it(t,e){const i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}const Ht=[],Ge=[],si=[],ki=[],ko=Promise.resolve();let Pi=!1;function Po(){Pi||(Pi=!0,ko.then(bl))}function Vi(t){si.push(t)}function Vo(t){ki.push(t)}const bi=new Set;let Ft=0;function bl(){if(Ft!==0)return;const t=Zt;do{try{for(;Ft<Ht.length;){const e=Ht[Ft];Ft++,xt(e),Ao(e.$$)}}catch(e){throw Ht.length=0,Ft=0,e}for(xt(null),Ht.length=0,Ft=0;Ge.length;)Ge.pop()();for(let e=0;e<si.length;e+=1){const i=si[e];bi.has(i)||(bi.add(i),i())}si.length=0}while(Ht.length);for(;ki.length;)ki.pop()();Pi=!1,bi.clear(),xt(t)}function Ao(t){if(t.fragment!==null){t.update(),xe(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Vi)}}const ri=new Set;let Et;function se(){Et={r:0,c:[],p:Et}}function re(){Et.r||xe(Et.c),Et=Et.p}function g(t,e){t&&t.i&&(ri.delete(t),t.i(e))}function P(t,e,i,n){if(t&&t.o){if(ri.has(t))return;ri.add(t),Et.c.push(()=>{ri.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}const So=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function Co(t,e,i){const n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function te(t){t&&t.c()}function $(t,e,i,n){const{fragment:l,after_update:o}=t.$$;l&&l.m(e,i),n||Vi(()=>{const s=t.$$.on_mount.map(gl).filter(Re);t.$$.on_destroy?t.$$.on_destroy.push(...s):xe(s),t.$$.on_mount=[]}),o.forEach(Vi)}function ee(t,e){const i=t.$$;i.fragment!==null&&(xe(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function Mo(t,e){t.$$.dirty[0]===-1&&(Ht.push(t),Po(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function he(t,e,i,n,l,o,s,r=[-1]){const a=Zt;xt(t);const u=t.$$={fragment:null,ctx:[],props:o,update:B,not_equal:l,bound:qi(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:qi(),dirty:r,skip_bound:!1,root:e.target||a.$$.root};s&&s(u.root);let d=!1;if(u.ctx=i?i(t,e.props||{},(m,b,...v)=>{const p=v.length?v[0]:b;return u.ctx&&l(u.ctx[m],u.ctx[m]=p)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](p),d&&Mo(t,m)),b}):[],u.update(),d=!0,xe(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){const m=wo(e.target);u.fragment&&u.fragment.l(m),m.forEach(M)}else u.fragment&&u.fragment.c();e.intro&&g(t.$$.fragment),$(t,e.target,e.anchor,e.customElement),bl()}xt(a)}class pe{$destroy(){ee(this,1),this.$destroy=B}$on(e,i){if(!Re(i))return B;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{const l=n.indexOf(i);l!==-1&&n.splice(l,1)}}$set(e){this.$$set&&!uo(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const qt=[];function jt(t,e){return{subscribe:Ne(t,e).subscribe}}function Ne(t,e=B){let i;const n=new Set;function l(r){if(ve(t,r)&&(t=r,i)){const a=!qt.length;for(const u of n)u[1](),qt.push(u,t);if(a){for(let u=0;u<qt.length;u+=2)qt[u][0](qt[u+1]);qt.length=0}}}function o(r){l(r(t))}function s(r,a=B){const u=[r,a];return n.add(u),n.size===1&&(i=e(l)||B),r(t),()=>{n.delete(u),n.size===0&&(i(),i=null)}}return{set:l,update:o,subscribe:s}}function st(t,e,i){const n=!Array.isArray(t),l=n?[t]:t,o=e.length<2;return jt(i,s=>{let r=!1;const a=[];let u=0,d=B;const m=()=>{if(u)return;d();const v=e(n?a[0]:a,s);o?s(v):d=Re(v)?v:B},b=l.map((v,p)=>Ei(v,w=>{a[p]=w,u&=~(1<<p),r&&m()},()=>{u|=1<<p}));return r=!0,m(),function(){xe(b),d()}})}const wl="1.1.16-beta.0",Eo="@vkontakte/videoplayer",_l=Symbol("storeContext"),zo=t=>{_o(_l,t)},De=()=>{const t=yo(_l);return Ce(t,"Store context is empty!"),t},He=(t,e)=>jt(t.getValue(),i=>{const n=t.subscribe(l=>{i(l),e==null||e(l)});return()=>n.unsubscribe()}),To=(t,e,i)=>{var n,l,o,s;const r=t.info,{width:a,height:u}=Ie(i.ui.playerSize),d=(l=(n=r.throughputEstimation$.getValue())===null||n===void 0?void 0:n.toFixed(0))!==null&&l!==void 0?l:0,m=(s=(o=r.rttEstimation$.getValue())===null||o===void 0?void 0:o.toFixed(0))!==null&&s!==void 0?s:0,b=r.isAutoQualityEnabled$.getValue()?"auto":"manual",v={Version:`${Eo}@${wl}`,Browser:navigator.userAgent,"United video id":i.videoId,"Content host":r.hostname$.getValue(),"Connection type":r.httpConnectionType$.getValue()+(r.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${d}Kbps @ ${m}ms RTT`,Format:r.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Quality:`${b} ${r.currentQuality$.getValue()}`,"Available qualities":r.availableQualities$.getValue().join(", "),Position:`${Ie(i.state.positionExact$)}s`,State:`${Ie(i.playerPhase)} ${r.playbackState$.getValue()}`,"Player size":`${a}x${u}`,URL:window.location.href,Errors:Ie(i.state.errorLog$).map(({id:p})=>p).join(", ")};return Object.entries(v).map(([p,w])=>`${p}: ${w}`).join(`
|
|
7
|
+
`)},Lo=(t,e,i)=>{const n=t.info,{width:l,height:o}=Ie(i.ui.playerSize),s={version:wl,viewport:`${l}x${o}`,volume:Math.round(Ie(i.state.volume$)*100)},r=i.videoId;r&&(s.id=r),n.currentFormat$.getValue()&&(s.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(s.cdn=n.hostname$.getValue());const d=n.intrinsicVideoSize$.getValue();d&&(s.videoSize=`${d.width}x${d.height}`);const m=n.currentBuffer$.getValue();m&&(s.buffer=Math.max(m.end-Ie(i.state.positionExact$),0));const b=n.throughputEstimation$.getValue();b&&(s.speed=b);const v=n.videoBitrate$.getValue();return v&&(s.bitrate=v),s},No=500,Di=3e3,ji=2e3,Io=3e3,Bo=6e3,Ro=300,ci="\u0410\u0432\u0442\u043E",yl="vk_player_preferred_volume",kl="vk_player_prefer_volume_mute",Ai="vk_player_debug_panel_opened",fi=1,Fo=.05,Oi=1,Ui=.05,Qi=10,Pl=300,qo=5,Ho="https://vk.com/support?act=new&from=v",Do=500;var Ke;(function(t){t.ArrowLeft="ArrowLeft",t.ArrowUp="ArrowUp",t.ArrowRight="ArrowRight",t.ArrowDown="ArrowDown",t.Comma="Comma",t.Period="Period",t.Space="Space",t.KeyM="KeyM",t.KeyF="KeyF",t.KeyK="KeyK",t.KeyL="KeyL",t.KeyJ="KeyJ"})(Ke||(Ke={}));var Si="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",jo="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",Oo="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",Uo="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",Qo="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",Wo="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",Yo="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",Vl="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",Wi="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",Ko="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",Xo="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",Go="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";const Al=t=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){const e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}};function xo(t){_e(t,"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 Yi(t,e,i){const n=t.slice();return n[42]=e[i],n}function Ki(t,e,i){const n=t.slice();return n[45]=e[i],n}function Xi(t){let e,i,n,l,o,s,r,a;return{c(){e=h("div"),i=h("div"),i.textContent="\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",n=z(),l=h("div"),o=z(),s=h("div"),c(l,"class","close v-1f29v8g"),c(e,"class","item menu-header v-1f29v8g"),S(e,"item-mobile",t[0]),c(s,"class","menu-divider v-1f29v8g")},m(u,d){E(u,e,d),f(e,i),f(e,n),f(e,l),E(u,o,d),E(u,s,d),r||(a=oe(l,"click",t[22]),r=!0)},p(u,d){d[0]&1&&S(e,"item-mobile",u[0])},d(u){u&&M(e),u&&M(o),u&&M(s),r=!1,a()}}}function Gi(t){let e,i;return{c(){e=h("img"),c(e,"class","menu-valueIcon v-1f29v8g"),Pe(e.src,i=t[6])||c(e,"src",i),c(e,"alt","")},m(n,l){E(n,e,l)},p(n,l){l[0]&64&&!Pe(e.src,i=n[6])&&c(e,"src",i)},d(n){n&&M(e)}}}function xi(t){let e,i,n,l,o,s,r,a,u,d,m;return{c(){e=h("li"),i=h("img"),l=z(),o=h("div"),o.textContent="\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",s=z(),r=h("div"),a=fe(t[10]),u=fe("x"),c(i,"class","menu-icon v-1f29v8g"),Pe(i.src,n=jo)||c(i,"src",n),c(i,"alt",""),c(o,"class","menu-title v-1f29v8g"),c(r,"class","menu-value v-1f29v8g"),c(e,"class","item v-1f29v8g"),c(e,"role","menuitemradio"),c(e,"tabindex","0"),S(e,"item-mobile",t[0])},m(b,v){E(b,e,v),f(e,i),f(e,l),f(e,o),f(e,s),f(e,r),f(r,a),f(r,u),d||(m=oe(e,"click",t[26]),d=!0)},p(b,v){v[0]&1024&&Me(a,b[10]),v[0]&1&&S(e,"item-mobile",b[0])},d(b){b&&M(e),d=!1,m()}}}function Ji(t){let e,i,n,l,o,s,r,a,u,d,m,b,v,p,w,C,N,_,k;return{c(){e=h("li"),i=h("img"),l=z(),o=h("div"),o.textContent="\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",s=z(),r=h("li"),a=h("img"),d=z(),m=h("div"),m.textContent="\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",b=z(),v=h("li"),p=h("img"),C=z(),N=h("div"),N.textContent="\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",c(i,"class","menu-icon v-1f29v8g"),Pe(i.src,n=Ko)||c(i,"src",n),c(i,"alt",""),c(o,"class","menu-title v-1f29v8g"),c(e,"class","item item-mobile v-1f29v8g"),c(e,"role","menuitemradio"),c(e,"tabindex","0"),c(a,"class","menu-icon v-1f29v8g"),Pe(a.src,u=Xo)||c(a,"src",u),c(a,"alt",""),c(m,"class","menu-title v-1f29v8g"),c(r,"class","item item-mobile v-1f29v8g"),c(r,"role","menuitemradio"),c(r,"tabindex","0"),c(p,"class","menu-icon v-1f29v8g"),Pe(p.src,w=Go)||c(p,"src",w),c(p,"alt",""),c(N,"class","menu-title v-1f29v8g"),c(v,"class","item item-mobile v-1f29v8g"),c(v,"role","menuitemradio"),c(v,"tabindex","0")},m(L,I){E(L,e,I),f(e,i),f(e,l),f(e,o),E(L,s,I),E(L,r,I),f(r,a),f(r,d),f(r,m),E(L,b,I),E(L,v,I),f(v,p),f(v,C),f(v,N),_||(k=[oe(e,"click",t[28]),oe(r,"click",t[29]),oe(v,"click",t[30])],_=!0)},p:B,d(L){L&&M(e),L&&M(s),L&&M(r),L&&M(b),L&&M(v),_=!1,xe(k)}}}function Zi(t){let e,i;return{c(){e=h("img"),c(e,"class","itemIcon v-1f29v8g"),Pe(e.src,i=Vl)||c(e,"src",i),c(e,"alt","")},m(n,l){E(n,e,l)},p:B,d(n){n&&M(e)}}}function $i(t){let e,i;return{c(){e=h("img"),c(e,"class","menu-valueIcon-list v-1f29v8g"),Pe(e.src,i=t[31](t[45].value))||c(e,"src",i),c(e,"alt","")},m(n,l){E(n,e,l)},p(n,l){l[0]&2&&!Pe(e.src,i=n[31](n[45].value))&&c(e,"src",i)},d(n){n&&M(e)}}}function en(t){let e,i,n,l=t[45].displayValue+"",o,s,r,a,u,d,m=t[45].selected&&Zi(),b=!t[0]&&$i(t);function v(){return t[37](t[45])}return{c(){e=h("li"),m&&m.c(),i=z(),n=h("div"),o=fe(l),s=z(),b&&b.c(),r=z(),c(n,"class","v-1f29v8g"),S(n,"quality-title-mobile",t[0]),c(e,"class","item item-quality v-1f29v8g"),c(e,"data-value",a=t[45].value),c(e,"role","menuitemradio"),c(e,"tabindex","0"),S(e,"item-mobile",t[0])},m(p,w){E(p,e,w),m&&m.m(e,null),f(e,i),f(e,n),f(n,o),f(e,s),b&&b.m(e,null),f(e,r),u||(d=oe(e,"click",v),u=!0)},p(p,w){t=p,t[45].selected?m?m.p(t,w):(m=Zi(),m.c(),m.m(e,i)):m&&(m.d(1),m=null),w[0]&2&&l!==(l=t[45].displayValue+"")&&Me(o,l),w[0]&1&&S(n,"quality-title-mobile",t[0]),t[0]?b&&(b.d(1),b=null):b?b.p(t,w):(b=$i(t),b.c(),b.m(e,r)),w[0]&2&&a!==(a=t[45].value)&&c(e,"data-value",a),w[0]&1&&S(e,"item-mobile",t[0])},d(p){p&&M(e),m&&m.d(),b&&b.d(),u=!1,d()}}}function tn(t){let e,i;return{c(){e=h("img"),c(e,"class","itemIcon v-1f29v8g"),Pe(e.src,i=Vl)||c(e,"src",i),c(e,"alt","")},m(n,l){E(n,e,l)},p:B,d(n){n&&M(e)}}}function nn(t){let e,i,n,l=t[42].displayValue+"",o,s,r,a,u,d=t[42].selected&&tn();function m(){return t[38](t[42])}return{c(){e=h("li"),d&&d.c(),i=z(),n=h("div"),o=fe(l),s=z(),c(n,"class","v-1f29v8g"),S(n,"quality-title-mobile",t[0]),c(e,"class","item item-quality v-1f29v8g"),c(e,"data-value",r=t[42].value),c(e,"role","menuitemradio"),c(e,"tabindex","0"),S(e,"item-mobile",t[0])},m(b,v){E(b,e,v),d&&d.m(e,null),f(e,i),f(e,n),f(n,o),f(e,s),a||(u=oe(e,"click",m),a=!0)},p(b,v){t=b,t[42].selected?d?d.p(t,v):(d=tn(),d.c(),d.m(e,i)):d&&(d.d(1),d=null),v[0]&2048&&l!==(l=t[42].displayValue+"")&&Me(o,l),v[0]&1&&S(n,"quality-title-mobile",t[0]),v[0]&2048&&r!==(r=t[42].value)&&c(e,"data-value",r),v[0]&1&&S(e,"item-mobile",t[0])},d(b){b&&M(e),d&&d.d(),a=!1,u()}}}function Jo(t){let e,i,n,l,o,s,r,a,u,d,m,b,v,p,w,C,N,_,k,L,I,R,y,H,q,T,W,J,D,U,G,ie,Z,j,ne,ce,Ve,je,ze,me=t[0]&&Xi(t),ae=t[6]&&!t[0]&&Gi(t),de=!t[9]&&xi(t),ge=t[0]&&Ji(t),be=t[1],Y=[];for(let F=0;F<be.length;F+=1)Y[F]=en(Ki(t,be,F));let we=t[11],ue=[];for(let F=0;F<we.length;F+=1)ue[F]=nn(Yi(t,we,F));return{c(){e=h("div"),i=h("div"),me&&me.c(),n=z(),l=h("ul"),o=h("li"),s=h("img"),a=z(),u=h("div"),u.textContent="\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",d=z(),m=h("div"),b=fe(t[7]),v=z(),ae&&ae.c(),p=z(),de&&de.c(),w=z(),ge&&ge.c(),C=z(),N=h("div"),_=h("div"),k=h("img"),I=z(),R=h("div"),R.textContent="\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",y=z(),H=h("div"),q=z(),T=h("ul");for(let F=0;F<Y.length;F+=1)Y[F].c();W=z(),J=h("div"),D=h("div"),U=h("img"),ie=z(),Z=h("div"),Z.textContent="\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",j=z(),ne=h("div"),ce=z(),Ve=h("ul");for(let F=0;F<ue.length;F+=1)ue[F].c();c(s,"class","menu-icon v-1f29v8g"),Pe(s.src,r=Si)||c(s,"src",r),c(s,"alt",""),c(u,"class","menu-title v-1f29v8g"),c(m,"class","menu-value v-1f29v8g"),c(o,"class","item v-1f29v8g"),c(o,"role","menuitemradio"),c(o,"tabindex","0"),S(o,"item-mobile",t[0]),c(l,"class","items v-1f29v8g"),S(l,"items-mobile",t[0]),c(i,"class","menu v-1f29v8g"),c(i,"role","menu"),S(i,"menu-desktop",!t[0]),S(i,"menu-mobile",t[0]),S(i,"hidden",!t[3]),Pe(k.src,L=Wi)||c(k,"src",L),c(k,"class","menu-header-back-icon v-1f29v8g"),c(k,"alt",""),c(_,"class","item menu-header v-1f29v8g"),S(_,"item-mobile",t[0]),c(H,"class","menu-divider v-1f29v8g"),c(T,"class","items v-1f29v8g"),c(T,"style",t[8]),S(T,"items-mobile",t[0]),c(N,"class","menu menu-subList v-1f29v8g"),S(N,"menu-desktop",!t[0]),S(N,"menu-mobile",t[0]),S(N,"hidden",!t[4]),Pe(U.src,G=Wi)||c(U,"src",G),c(U,"class","menu-header-back-icon v-1f29v8g"),c(U,"alt",""),c(D,"class","item menu-header v-1f29v8g"),S(D,"item-mobile",t[0]),c(ne,"class","menu-divider v-1f29v8g"),c(Ve,"class","items v-1f29v8g"),S(Ve,"items-mobile",t[0]),c(J,"class","menu menu-subList v-1f29v8g"),S(J,"menu-desktop",!t[0]),S(J,"menu-mobile",t[0]),S(J,"hidden",!t[5]),c(e,"class","v-1f29v8g"),S(e,"hidden",!t[2]),S(e,"container-mobile",t[0])},m(F,O){E(F,e,O),f(e,i),me&&me.m(i,null),f(i,n),f(i,l),f(l,o),f(o,s),f(o,a),f(o,u),f(o,d),f(o,m),f(m,b),f(m,v),ae&&ae.m(m,null),f(l,p),de&&de.m(l,null),f(l,w),ge&&ge.m(l,null),f(e,C),f(e,N),f(N,_),f(_,k),f(_,I),f(_,R),f(N,y),f(N,H),f(N,q),f(N,T);for(let x=0;x<Y.length;x+=1)Y[x].m(T,null);f(e,W),f(e,J),f(J,D),f(D,U),f(D,ie),f(D,Z),f(J,j),f(J,ne),f(J,ce),f(J,Ve);for(let x=0;x<ue.length;x+=1)ue[x].m(Ve,null);je||(ze=[oe(o,"click",t[23]),oe(_,"click",t[27]),oe(D,"click",t[27])],je=!0)},p(F,O){if(F[0]?me?me.p(F,O):(me=Xi(F),me.c(),me.m(i,n)):me&&(me.d(1),me=null),O[0]&128&&Me(b,F[7]),F[6]&&!F[0]?ae?ae.p(F,O):(ae=Gi(F),ae.c(),ae.m(m,null)):ae&&(ae.d(1),ae=null),O[0]&1&&S(o,"item-mobile",F[0]),F[9]?de&&(de.d(1),de=null):de?de.p(F,O):(de=xi(F),de.c(),de.m(l,w)),F[0]?ge?ge.p(F,O):(ge=Ji(F),ge.c(),ge.m(l,null)):ge&&(ge.d(1),ge=null),O[0]&1&&S(l,"items-mobile",F[0]),O[0]&1&&S(i,"menu-desktop",!F[0]),O[0]&1&&S(i,"menu-mobile",F[0]),O[0]&8&&S(i,"hidden",!F[3]),O[0]&1&&S(_,"item-mobile",F[0]),O[0]&16777219|O[1]&1){be=F[1];let x;for(x=0;x<be.length;x+=1){const Fe=Ki(F,be,x);Y[x]?Y[x].p(Fe,O):(Y[x]=en(Fe),Y[x].c(),Y[x].m(T,null))}for(;x<Y.length;x+=1)Y[x].d(1);Y.length=be.length}if(O[0]&256&&c(T,"style",F[8]),O[0]&1&&S(T,"items-mobile",F[0]),O[0]&1&&S(N,"menu-desktop",!F[0]),O[0]&1&&S(N,"menu-mobile",F[0]),O[0]&16&&S(N,"hidden",!F[4]),O[0]&1&&S(D,"item-mobile",F[0]),O[0]&33556481){we=F[11];let x;for(x=0;x<we.length;x+=1){const Fe=Yi(F,we,x);ue[x]?ue[x].p(Fe,O):(ue[x]=nn(Fe),ue[x].c(),ue[x].m(Ve,null))}for(;x<ue.length;x+=1)ue[x].d(1);ue.length=we.length}O[0]&1&&S(Ve,"items-mobile",F[0]),O[0]&1&&S(J,"menu-desktop",!F[0]),O[0]&1&&S(J,"menu-mobile",F[0]),O[0]&32&&S(J,"hidden",!F[5]),O[0]&4&&S(e,"hidden",!F[2]),O[0]&1&&S(e,"container-mobile",F[0])},i:B,o:B,d(F){F&&M(e),me&&me.d(),ae&&ae.d(),de&&de.d(),ge&&ge.d(),Hi(Y,F),Hi(ue,F),je=!1,xe(ze)}}}function Zo(t,e,i){let n,l,o,s,r,a,u,d,m,b,{supportLink:v}=e;const p=De(),w=p.state.currentQuality$;Q(t,w,Y=>i(36,a=Y));const C=p.state.availableQualities$;Q(t,C,Y=>i(1,r=Y));const N=p.state.isAutoQualityEnabled$;Q(t,N,Y=>i(35,s=Y));const _=p.state.currentPlaybackRate$;Q(t,_,Y=>i(10,m=Y));const k=p.state.availablePlaybackRates$;Q(t,k,Y=>i(11,b=Y));const L=p.ui.settingsMenuVisible;Q(t,L,Y=>i(2,u=Y));const I=p.ui.isMobile;Q(t,I,Y=>i(0,o=Y));const R=p.ui.isFullscreen;Q(t,R,Y=>i(34,l=Y));const y=p.state.isLive$;Q(t,y,Y=>i(9,d=Y));const H=p.ui.playerSize;Q(t,H,Y=>i(33,n=Y));const q=p.ui.debugPanelVisible;let T=!0,W=!1,J=!1;function D(){L.set(!1)}function U(){i(3,T=!1),i(4,W=!0)}function G(Y){p.actions.internal.setQuality(Y),D()}function ie(Y){p.actions.internal.setPlaybackRate(Y),D()}function Z(){i(3,T=!1),i(5,J=!0)}function j(){i(3,T=!0),i(4,W=!1),i(5,J=!1)}function ne(){window.open(v,"_blank"),D(),p.actions.internal.pause()}function ce(){Al(p.actions.internal.getDebugTextData()),D()}function Ve(){q.set(!0),D()}function je(Y){switch(Y){case Xe.Q_720P:return Oo;case Xe.Q_1080P:return Yo;case Xe.Q_1440P:return Uo;case Xe.Q_2160P:return Qo;case Xe.Q_4320P:return Wo}}function ze(Y,we,ue){if(!Y)return"...";const F=we.find(x=>x.value===Y),O=F?F.displayValue:Y;return ue?Y===Xe.INVARIANT?ci:`${ci} ${O}`:O}let me,ae,de;const ge=Y=>G(Y.value),be=Y=>ie(Y.value);return t.$$set=Y=>{"supportLink"in Y&&i(32,v=Y.supportLink)},t.$$.update=()=>{t.$$.dirty[0]&4&&u&&(i(3,T=!0),i(4,W=!1),i(5,J=!1)),t.$$.dirty[1]&32&&i(6,me=je(a)),t.$$.dirty[0]&2|t.$$.dirty[1]&48&&i(7,ae=ze(a,r,s)),t.$$.dirty[0]&1|t.$$.dirty[1]&12&&i(8,de=o&&l?`max-height: ${Math.round(n.height*.6)}px`:"")},[o,r,u,T,W,J,me,ae,de,d,m,b,w,C,N,_,k,L,I,R,y,H,D,U,G,ie,Z,j,ne,ce,Ve,je,v,n,l,s,a,ge,be]}class Sl extends pe{constructor(e){super(),he(this,e,Zo,Jo,ve,{supportLink:32},xo,[-1,-1])}}var $o="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",es="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",ts="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",is="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",ns="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";function ls(t){_e(t,"v-1qf7s4g",".settingsButton-icon.v-1qf7s4g{display:block;width:40px;height:24px}.settingsButton-icon.mobile.v-1qf7s4g{width:auto}")}function os(t){let e,i,n,l,o,s,r;return{c(){e=h("div"),i=h("div"),n=h("img"),Pe(n.src,l=t[7](t[2],t[1]))||c(n,"src",l),c(n,"alt",""),c(i,"class","settingsButton-icon v-1qf7s4g"),S(i,"mobile",t[1]),c(e,"class",o=pt(t[0])+" v-1qf7s4g"),c(e,"aria-label","\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432\u0438\u0434\u0435\u043E\u043F\u043B\u0435\u0435\u0440\u0430"),c(e,"tabindex","-1"),c(e,"role","button")},m(a,u){E(a,e,u),f(e,i),f(i,n),s||(r=oe(e,"click",t[6]),s=!0)},p(a,[u]){u&6&&!Pe(n.src,l=a[7](a[2],a[1]))&&c(n,"src",l),u&2&&S(i,"mobile",a[1]),u&1&&o!==(o=pt(a[0])+" v-1qf7s4g")&&c(e,"class",o)},i:B,o:B,d(a){a&&M(e),s=!1,r()}}}function ss(t,e,i){let n,l,o,{className:s=""}=e;const r=De(),a=r.state.currentQuality$;Q(t,a,v=>i(2,o=v));const u=r.ui.settingsMenuVisible;Q(t,u,v=>i(8,n=v));const d=r.ui.isMobile;Q(t,d,v=>i(1,l=v));function m(){u.set(!n)}function b(v,p){if(p)return Si;switch(v){case Xe.Q_720P:return $o;case Xe.Q_1080P:return ns;case Xe.Q_1440P:return es;case Xe.Q_2160P:return ts;case Xe.Q_4320P:return is;default:return Si}}return t.$$set=v=>{"className"in v&&i(0,s=v.className)},[s,l,o,a,u,d,m,b]}class Cl extends pe{constructor(e){super(),he(this,e,ss,os,ve,{className:0},ls)}}const ht=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t);const i=Math.floor(e/(60*60));e-=i*(60*60);const n=Math.floor(e/60);return e-=n*60,(i>0?[i,n,e]:[n,e]).map(o=>o>9?String(o):`0${o}`).join(":")};function rs(t){_e(t,"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 ln(t){let e,i;return{c(){e=h("span"),i=fe(t[2]),c(e,"class","duration v-1bjfp5n")},m(n,l){E(n,e,l),f(e,i)},p(n,l){l&4&&Me(i,n[2])},d(n){n&&M(e)}}}function as(t){let e,i,n,l,o,s=t[0]&&ln(t);return{c(){e=h("div"),i=h("span"),n=fe(t[3]),l=z(),s&&s.c(),c(i,"class","current v-1bjfp5n"),c(e,"class",o="time "+t[1]+" v-1bjfp5n")},m(r,a){E(r,e,a),f(e,i),f(i,n),f(e,l),s&&s.m(e,null)},p(r,[a]){a&8&&Me(n,r[3]),r[0]?s?s.p(r,a):(s=ln(r),s.c(),s.m(e,null)):s&&(s.d(1),s=null),a&2&&o!==(o="time "+r[1]+" v-1bjfp5n")&&c(e,"class",o)},i:B,o:B,d(r){r&&M(e),s&&s.d()}}}function cs(t,e,i){let{duration:n}=e,{position:l}=e,{showDuration:o=!0}=e,{className:s=""}=e,r,a;return t.$$set=u=>{"duration"in u&&i(4,n=u.duration),"position"in u&&i(5,l=u.position),"showDuration"in u&&i(0,o=u.showDuration),"className"in u&&i(1,s=u.className)},t.$$.update=()=>{t.$$.dirty&16&&i(2,r=ht(n)),t.$$.dirty&32&&i(3,a=ht(l))},[o,s,r,a,n,l]}class us extends pe{constructor(e){super(),he(this,e,cs,as,ve,{duration:4,position:5,showDuration:0,className:1},rs)}}function ds(t){_e(t,"v-mgwd2i",".slider.v-mgwd2i.v-mgwd2i{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-mgwd2i.v-mgwd2i{cursor:default}.slider.v-mgwd2i.v-mgwd2i: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-mgwd2i.v-mgwd2i{position:absolute;width:100%;height:100%;border-radius:var(--videoplayer-slider-radius);overflow:hidden}.loaded.v-mgwd2i.v-mgwd2i{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-mgwd2i.v-mgwd2i{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--videoplayer-slider-radius);background-color:var(--videoplayer-slider-filled-bg)}.slider.square.v-mgwd2i.v-mgwd2i,.slider.square.v-mgwd2i>.bars.v-mgwd2i,.slider.square.v-mgwd2i .loaded.v-mgwd2i,.slider.square.v-mgwd2i .filled.v-mgwd2i{border-radius:unset}.filled.active-live.v-mgwd2i.v-mgwd2i{background-color:var(--videoplayer-slider-filled-active-live-bg)}.filled.ads.v-mgwd2i.v-mgwd2i{background-color:var(--videoplayer-slider-filled-ads)}.handleWrap.v-mgwd2i.v-mgwd2i{position:absolute;left:-100%;width:100%}.handle.v-mgwd2i.v-mgwd2i{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-mgwd2i.v-mgwd2i{background-color:var(--videoplayer-slider-filled-active-live-bg)}.slider.v-mgwd2i:hover .handle.v-mgwd2i,.slider-dragging.v-mgwd2i .handle.v-mgwd2i{visibility:visible;opacity:1;transform:scale(1)}.slider-dragging.v-mgwd2i .handle.v-mgwd2i{transform:scale(1.3)}.slider-vertical.v-mgwd2i.v-mgwd2i{position:absolute;left:-26px;top:-18px;transform-origin:0 0;transform:rotate(-90deg)}.hidden.v-mgwd2i.v-mgwd2i{visibility:hidden;opacity:0}")}function fs(t){let e,i,n,l,o,s,r,a,u,d,m,b,v,p;return{c(){e=h("div"),i=h("div"),n=h("div"),o=z(),s=h("div"),a=z(),u=h("div"),d=h("div"),c(n,"class","loaded v-mgwd2i"),c(n,"style",l=`transform: translateX(${t[6]*100}%);`),c(s,"class","filled v-mgwd2i"),c(s,"style",r=`transform: translateX(${t[7]*100}%);`),S(s,"active-live",t[3]),S(s,"ads",t[4]),c(i,"class","bars v-mgwd2i"),c(d,"class","handle v-mgwd2i"),S(d,"active-live",t[3]),c(u,"class","handleWrap v-mgwd2i"),c(u,"style",m=`transform: translateX(${t[8]*100}%);`),S(u,"hidden",t[4]),c(e,"class",b="slider "+t[0]+" v-mgwd2i"),c(e,"aria-label",t[9]),c(e,"aria-valuemin",t[10]),c(e,"aria-valuemax",t[11]),c(e,"aria-valuenow",t[12]),c(e,"aria-valuetext",t[13]),c(e,"role","slider"),c(e,"tabindex","0"),S(e,"slider-dragging",t[15]),S(e,"hidden",t[1]),S(e,"slider-vertical",t[2]),S(e,"no-handle",t[4]),S(e,"square",t[5])},m(w,C){E(w,e,C),f(e,i),f(i,n),f(i,o),f(i,s),f(e,a),f(e,u),f(u,d),t[27](e),v||(p=[oe(e,"pointerdown",Mt(t[16])),oe(e,"pointermove",Mt(t[17])),oe(e,"pointerup",Mt(t[18])),oe(e,"pointerenter",Mt(t[19])),oe(e,"pointerleave",Mt(t[20]))],v=!0)},p(w,[C]){C&64&&l!==(l=`transform: translateX(${w[6]*100}%);`)&&c(n,"style",l),C&128&&r!==(r=`transform: translateX(${w[7]*100}%);`)&&c(s,"style",r),C&8&&S(s,"active-live",w[3]),C&16&&S(s,"ads",w[4]),C&8&&S(d,"active-live",w[3]),C&256&&m!==(m=`transform: translateX(${w[8]*100}%);`)&&c(u,"style",m),C&16&&S(u,"hidden",w[4]),C&1&&b!==(b="slider "+w[0]+" v-mgwd2i")&&c(e,"class",b),C&512&&c(e,"aria-label",w[9]),C&1024&&c(e,"aria-valuemin",w[10]),C&2048&&c(e,"aria-valuemax",w[11]),C&4096&&c(e,"aria-valuenow",w[12]),C&8192&&c(e,"aria-valuetext",w[13]),C&32769&&S(e,"slider-dragging",w[15]),C&3&&S(e,"hidden",w[1]),C&5&&S(e,"slider-vertical",w[2]),C&17&&S(e,"no-handle",w[4]),C&33&&S(e,"square",w[5])},i:B,o:B,d(w){w&&M(e),t[27](null),v=!1,xe(p)}}}function ms(t,e,i){let{className:n=""}=e,{isHidden:l=!1}=e,{isVertical:o=!1}=e,{isActiveLive:s=!1}=e,{isAds:r=!1}=e,{squareBorders:a=!1}=e,u,d,{onPointerDown:m=B}=e,{onHandleMove:b=B}=e,{onPointerUp:v=B}=e,{onPointerEnter:p=B}=e,{onPointerMove:w=B}=e,{onPointerLeave:C=B}=e,{loadedProgress:N=0}=e,{filledProgress:_=0}=e,{handleProgress:k=0}=e,{ariaLabel:L=""}=e,{ariaValueMin:I=void 0}=e,{ariaValueMax:R=void 0}=e,{ariaValueNow:y=void 0}=e,{ariaValueText:H=""}=e,q=!1;function T(j){if(q)return;i(15,q=!0),d=u.getBoundingClientRect();const ne=G(j.clientX,j.clientY);m(ne),u.setPointerCapture(j.pointerId)}function W(j){const ne=G(j.clientX,j.clientY),ce=ie(j.clientX);w(ne,ce),q&&b(ne)}function J(j){if(!q)return;i(15,q=!1);const ne=G(j.clientX,j.clientY);v(ne)}function D(j){d=u.getBoundingClientRect();const ne=G(j.clientX,j.clientY),ce=ie(j.clientX);p(ne,ce)}function U(){C()}function G(j,ne){return o?Math.max(0,Math.min(1,(d.height-(ne-d.top))/d.height)):Math.min(Math.max(j-d.x,0),d.width)/d.width}function ie(j){return Math.min(Math.max(j-d.x,0),d.width)}function Z(j){Ge[j?"unshift":"push"](()=>{u=j,i(14,u)})}return t.$$set=j=>{"className"in j&&i(0,n=j.className),"isHidden"in j&&i(1,l=j.isHidden),"isVertical"in j&&i(2,o=j.isVertical),"isActiveLive"in j&&i(3,s=j.isActiveLive),"isAds"in j&&i(4,r=j.isAds),"squareBorders"in j&&i(5,a=j.squareBorders),"onPointerDown"in j&&i(21,m=j.onPointerDown),"onHandleMove"in j&&i(22,b=j.onHandleMove),"onPointerUp"in j&&i(23,v=j.onPointerUp),"onPointerEnter"in j&&i(24,p=j.onPointerEnter),"onPointerMove"in j&&i(25,w=j.onPointerMove),"onPointerLeave"in j&&i(26,C=j.onPointerLeave),"loadedProgress"in j&&i(6,N=j.loadedProgress),"filledProgress"in j&&i(7,_=j.filledProgress),"handleProgress"in j&&i(8,k=j.handleProgress),"ariaLabel"in j&&i(9,L=j.ariaLabel),"ariaValueMin"in j&&i(10,I=j.ariaValueMin),"ariaValueMax"in j&&i(11,R=j.ariaValueMax),"ariaValueNow"in j&&i(12,y=j.ariaValueNow),"ariaValueText"in j&&i(13,H=j.ariaValueText)},[n,l,o,s,r,a,N,_,k,L,I,R,y,H,u,q,T,W,J,D,U,m,b,v,p,w,C,Z]}class zi extends pe{constructor(e){super(),he(this,e,ms,fs,ve,{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},ds)}}function vs(t){_e(t,"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 gs(t){let e,i,n,l,o,s,r,a,u,d,m,b;return u=new zi({props:{className:t[0]?"volumeBar-slider-vertical":"",isHidden:t[0]&&!t[1],isVertical:t[0],onPointerDown:t[6],onHandleMove:t[7],onPointerUp:t[8],onPointerEnter:t[0]?t[9]:B,onPointerLeave:t[0]?t[10]:B,ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,ariaValueNow:Math.round(t[3]*100),ariaValueText:`${Math.round(t[3]*100)}%`,filledProgress:t[3],handleProgress:t[3]}}),{c(){e=h("div"),i=Ae("svg"),n=Ae("g"),l=Ae("path"),o=Ae("path"),s=Ae("path"),r=z(),a=h("div"),te(u.$$.fragment),c(l,"class","wave2 v-t7t1oe"),c(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-.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"),c(o,"class","wave1 v-t7t1oe"),c(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-.5029032z"),c(s,"class","cross v-t7t1oe"),c(s,"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"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(i,"xmlns","http://www.w3.org/2000/svg"),c(i,"class","icon v-t7t1oe"),c(i,"data-value",t[2]),c(e,"tabindex","0"),c(e,"role","button"),c(a,"class","volumeBar v-t7t1oe"),S(a,"volumeBar-vertical",t[0])},m(v,p){E(v,e,p),f(e,i),f(i,n),f(n,l),f(n,o),f(n,s),E(v,r,p),E(v,a,p),$(u,a,null),d=!0,m||(b=[oe(e,"mouseenter",function(){Re(t[0]?t[11]:B)&&(t[0]?t[11]:B).apply(this,arguments)}),oe(e,"mouseleave",function(){Re(t[0]?t[12]:B)&&(t[0]?t[12]:B).apply(this,arguments)}),oe(e,"click",t[15])],m=!0)},p(v,[p]){t=v,(!d||p&4)&&c(i,"data-value",t[2]);const w={};p&1&&(w.className=t[0]?"volumeBar-slider-vertical":""),p&3&&(w.isHidden=t[0]&&!t[1]),p&1&&(w.isVertical=t[0]),p&1&&(w.onPointerEnter=t[0]?t[9]:B),p&1&&(w.onPointerLeave=t[0]?t[10]:B),p&8&&(w.ariaValueNow=Math.round(t[3]*100)),p&8&&(w.ariaValueText=`${Math.round(t[3]*100)}%`),p&8&&(w.filledProgress=t[3]),p&8&&(w.handleProgress=t[3]),u.$set(w),(!d||p&1)&&S(a,"volumeBar-vertical",t[0])},i(v){d||(g(u.$$.fragment,v),d=!0)},o(v){P(u.$$.fragment,v),d=!1},d(v){v&&M(e),v&&M(r),v&&M(a),ee(u),m=!1,xe(b)}}}function hs(t,e){return e?"off":t>.5?"max":t>.2?"mid":t>0?"min":"off"}function ps(t,e,i){let n,l,{isVerticalVolume:o=!1}=e;const s=De(),r=s.state.volume$;Q(t,r,q=>i(13,n=q));const a=s.state.muted$;Q(t,a,q=>i(14,l=q));const u=s.actions.internal.setVolume;let d=!1,m,b,v,p=1,w=!1;function C(q){p=n,u(q)}function N(q){u(q)}function _(q){const T=q;u(T,T===0?p:T)}function k(){w=!0}function L(){w=!1,y()}function I(){clearTimeout(m),i(1,d=!0)}function R(){y()}function y(){m=window.setTimeout(()=>{w||i(1,d=!1)},Ro)}function H(q){it.call(this,t,q)}return t.$$set=q=>{"isVerticalVolume"in q&&i(0,o=q.isVerticalVolume)},t.$$.update=()=>{t.$$.dirty&24576&&i(2,b=hs(n,l)),t.$$.dirty&24576&&i(3,v=l?0:n)},[o,d,b,v,r,a,C,N,_,k,L,I,R,n,l,H]}class bs extends pe{constructor(e){super(),he(this,e,ps,gs,ve,{isVerticalVolume:0},vs)}}function ws(t){_e(t,"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 _s(t){let e,i,n;const l=t[3].default,o=fo(l,t,t[2],null);return{c(){e=h("div"),o&&o.c(),c(e,"class",i="container "+t[0]+" v-1fkqq1h"),S(e,"disabled",t[1])},m(s,r){E(s,e,r),o&&o.m(e,null),n=!0},p(s,[r]){o&&o.p&&(!n||r&4)&&vo(o,l,s,s[2],n?mo(l,s[2],r,null):go(s[2]),null),(!n||r&1&&i!==(i="container "+s[0]+" v-1fkqq1h"))&&c(e,"class",i),(!n||r&3)&&S(e,"disabled",s[1])},i(s){n||(g(o,s),n=!0)},o(s){P(o,s),n=!1},d(s){s&&M(e),o&&o.d(s)}}}function ys(t,e,i){let{$$slots:n={},$$scope:l}=e,{className:o=""}=e,{disabled:s=!1}=e;return t.$$set=r=>{"className"in r&&i(0,o=r.className),"disabled"in r&&i(1,s=r.disabled),"$$scope"in r&&i(2,l=r.$$scope)},[o,s,l,n]}class at extends pe{constructor(e){super(),he(this,e,ys,_s,ve,{className:0,disabled:1},ws)}}function ks(t){_e(t,"v-daygaf",".icon.v-daygaf{display:block;width:24px;height:24px}")}function Ps(t){let e;return{c(){e=Ae("path"),c(e,"class","_enter"),c(e,"d","M10.5 19c0 .5522847-.4477153 1-1 1H5c-.55228475 0-1-.4477153-1-1v-4.5c0-.5522847.44771525-1 1-1s1 .4477153 1 1v2.0715l3.36290054-3.3643932.00012963-.0001296c.39052429-.3905243 1.02368923-.3905243 1.41421353 0l.0157791.0157791.0001297.0001296c.3904527.3905959.3903366 1.0237609-.0002593 1.4142136L7.4285 18H9.5c.5522847 0 1 .4477153 1 1zM18 7.4285l-3.3629005 3.3643932c-.0000432.0000432-.0000865.0000864-.0001297.0001296-.3905243.3905243-1.0236892.3905243-1.4142135 0l-.0157791-.0157791c-.0000433-.0000432-.0000865-.0000864-.0001297-.0001296-.3904527-.3905959-.3903366-1.02376087.0002593-1.41421356L16.5715 6H14.5c-.5522847 0-1-.44771525-1-1s.4477153-1 1-1H19c.5522847 0 1 .44771525 1 1v4.5c0 .5522847-.4477153 1-1 1s-1-.4477153-1-1z")},m(i,n){E(i,e,n)},d(i){i&&M(e)}}}function Vs(t){let e;return{c(){e=Ae("path"),c(e,"class","_exit"),c(e,"d","M4.57969048 13.9787492c0-.5464165.44295809-.9893746.9893746-.9893746h4.45218572c.5464165 0 .9893746.4429581.9893746.9893746v4.4521857c0 .5464165-.4429581.9893746-.9893746.9893746-.54641651 0-.98937461-.4429581-.98937461-.9893746v-2.0494895l-3.3196551 3.3211319-.00012963.0001297c-.39052429.3905243-1.02368927.3905243-1.41421356 0l-.00058487-.0005849-.00012964-.0001297c-.39045268-.3905958-.3903366-1.0237608.00025929-1.4142135l3.32113189-3.3196551H5.56906508c-.54641651 0-.9893746-.4429581-.9893746-.9893746zM14.9681238 7.61855457l3.3196551-3.32113189.0001296-.00012966c.3905243-.39052429 1.0236893-.39052429 1.4142136 0l.0005849.00058488.0001296.00012965c.3904527.39059589.3903366 1.02376086-.0002593 1.41421354l-3.3211319 3.3196551h2.0494895c.5464165 0 .9893746.4429581.9893746.98937461 0 .5464165-.4429581.9893746-.9893746.9893746h-4.4415603c-.5522847 0-1-.4477153-1-1V5.56906508c0-.54641651.4429581-.9893746.9893746-.9893746s.9893746.44295809.9893746.9893746z")},m(i,n){E(i,e,n)},d(i){i&&M(e)}}}function As(t){let e,i,n,l,o;function s(u,d){return u[0]?Vs:Ps}let r=s(t),a=r(t);return{c(){e=h("div"),i=Ae("svg"),n=Ae("g"),a.c(),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(i,"class","icon v-daygaf"),c(i,"xmlns","http://www.w3.org/2000/svg"),c(e,"role","button"),c(e,"tabindex","0")},m(u,d){E(u,e,d),f(e,i),f(i,n),a.m(n,null),l||(o=oe(e,"click",t[2]),l=!0)},p(u,[d]){r!==(r=s(u))&&(a.d(1),a=r(u),a&&(a.c(),a.m(n,null)))},i:B,o:B,d(u){u&&M(e),a.d(),l=!1,o()}}}function Ss(t,e,i){let n;const o=De().ui.isFullscreen;Q(t,o,r=>i(0,n=r));function s(r){it.call(this,t,r)}return[n,o,s]}class Cs extends pe{constructor(e){super(),he(this,e,Ss,As,ve,{},ks)}}var Ci="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",on="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",Ms="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";function zt(t,e,i,n){function l(o){return o instanceof i?o:new i(function(s){s(o)})}return new(i||(i=Promise))(function(o,s){function r(d){try{u(n.next(d))}catch(m){s(m)}}function a(d){try{u(n.throw(d))}catch(m){s(m)}}function u(d){d.done?o(d.value):l(d.value).then(r,a)}u((n=n.apply(t,e||[])).next())})}class Ml{constructor(){this.isRequested=!1,this.videoElement=void 0,this.externalEventHandlers={},this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:oo(this.onResize.bind(this),Pl)}}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}revealPictureInPicture(){return zt(this,void 0,void 0,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.request(),this.registryEventHandlers())})}hidePictureInPicture(){return zt(this,void 0,void 0,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.remove(),this.registryEventHandlers())})}request(){var e;return zt(this,void 0,void 0,function*(){if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)===null||e===void 0?void 0:e.requestPictureInPicture()}catch(i){this.isRequested=!1}})}remove(){return zt(this,void 0,void 0,function*(){!this.isSupported()||!this.isActive||(yield document.exitPictureInPicture())})}updateVideoElement(e){this.isSupported()&&(this.videoElement=e)}registryEventHandlers(){var e,i;(e=this.videoElement)===null||e===void 0||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)===null||i===void 0||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers=Object.assign({},e)}unregistryEventHandlers(){var e,i;(e=this.videoElement)===null||e===void 0||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)===null||i===void 0||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}onEnterPictureInPicture(e){var i,n;this.isRequested=!0,e.pictureInPictureWindow.addEventListener("resize",this.eventHandlers.resize),(n=(i=this.externalEventHandlers).enterpictureinpicture)===null||n===void 0||n.call(i,e)}onLeavePictureInPicture(e){var i,n;this.isRequested=!1,e.pictureInPictureWindow.removeEventListener("resize",this.eventHandlers.resize),(n=(i=this.externalEventHandlers).leavepictureinpicture)===null||n===void 0||n.call(i,e)}onResize(e){var i,n;(n=(i=this.externalEventHandlers).resize)===null||n===void 0||n.call(i,e)}}const Es=460,zs=280;class Ts{isSupported(){return"documentPictureInPicture"in window}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}request(){var e,i;return zt(this,void 0,void 0,function*(){!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot||(this.pipWindow=yield documentPictureInPicture.requestWindow({width:Es,height:zs,copyStyleSheets:!0}),(e=this.pipWindow)===null||e===void 0||e.document.body.append(this.playerDomElement),(i=this.pipWindow)===null||i===void 0||i.addEventListener("unload",n=>{!this.playerDomElement||!this.playerParentShadowRoot||this.playerParentShadowRoot.append(this.playerDomElement)}))})}remove(){return zt(this,void 0,void 0,function*(){return new Promise(e=>{documentPictureInPicture.window.close(),e()})})}}var Jt;(function(t){t.AUTO="auto"})(Jt||(Jt={}));var ke;(function(t){t.Thumb="thumb",t.Video="video",t.Ads="ads",t.Crashed="crashed"})(ke||(ke={}));var rt;(function(t){t.Preroll="preroll",t.Midroll="midroll",t.Postroll="postroll"})(rt||(rt={}));var Be;(function(t){t.INACTIVE="inactive",t.PLAYING="playing",t.PAUSED="paused"})(Be||(Be={}));function Mi(t){return t instanceof Ml}function Ls(t){return t instanceof Ts}function Ns(t){_e(t,"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 Is(t){let e,i,n,l,o,s;return{c(){e=h("div"),i=h("img"),Pe(i.src,n=t[2])||c(i,"src",n),c(i,"class","icon v-1kcq5gq"),c(i,"alt",""),c(e,"class",l=pt(t[0])+" v-1kcq5gq"),c(e,"role","button"),c(e,"tabindex","0")},m(r,a){E(r,e,a),f(e,i),o||(s=oe(e,"click",function(){Re(t[1])&&t[1].apply(this,arguments)}),o=!0)},p(r,a){t=r,a&4&&!Pe(i.src,n=t[2])&&c(i,"src",n),a&1&&l!==(l=pt(t[0])+" v-1kcq5gq")&&c(e,"class",l)},d(r){r&&M(e),o=!1,s()}}}function Bs(t){let e,i,n,l,o,s,r;return{c(){e=h("div"),i=h("div"),n=z(),l=h("img"),c(i,"class","icon-background-mobile v-1kcq5gq"),Pe(l.src,o=t[2])||c(l,"src",o),c(l,"class","icon-mobile v-1kcq5gq"),c(l,"alt",""),c(e,"class","container-mobile v-1kcq5gq"),c(e,"role","button"),c(e,"tabindex","0")},m(a,u){E(a,e,u),f(e,i),f(e,n),f(e,l),s||(r=oe(e,"click",function(){Re(t[1])&&t[1].apply(this,arguments)}),s=!0)},p(a,u){t=a,u&4&&!Pe(l.src,o=t[2])&&c(l,"src",o)},d(a){a&&M(e),s=!1,r()}}}function Rs(t){let e;function i(o,s){return o[3]?Bs:Is}let n=i(t),l=n(t);return{c(){l.c(),e=$e()},m(o,s){l.m(o,s),E(o,e,s)},p(o,[s]){n===(n=i(o))&&l?l.p(o,s):(l.d(1),l=n(o),l&&(l.c(),l.m(e.parentNode,e)))},i:B,o:B,d(o){l.d(o),o&&M(e)}}}function Fs(t,e,i){let n,l,o,{isEnded:s}=e,{isAds:r}=e,{playbackState:a}=e,{adPlaybackState:u}=e,{className:d=""}=e,{handlePlayClick:m}=e,{repeatPlaylist:b}=e,{isOneVideoPlaylist:v}=e;const w=De().ui.isMobile;Q(t,w,_=>i(3,o=_));function C(_,k){return k?Ms:_===Tt.PLAYING?on:Ci}function N(_){return _===Be.PLAYING?on:Ci}return t.$$set=_=>{"isEnded"in _&&i(5,s=_.isEnded),"isAds"in _&&i(6,r=_.isAds),"playbackState"in _&&i(7,a=_.playbackState),"adPlaybackState"in _&&i(8,u=_.adPlaybackState),"className"in _&&i(0,d=_.className),"handlePlayClick"in _&&i(9,m=_.handlePlayClick),"repeatPlaylist"in _&&i(10,b=_.repeatPlaylist),"isOneVideoPlaylist"in _&&i(11,v=_.isOneVideoPlaylist)},t.$$.update=()=>{t.$$.dirty&480&&i(2,n=r?N(u):C(a,s)),t.$$.dirty&3680&&i(1,l=!r&&s&&!v?b:m)},[d,l,n,o,w,s,r,a,u,m,b,v]}class Ti extends pe{constructor(e){super(),he(this,e,Fs,Rs,ve,{isEnded:5,isAds:6,playbackState:7,adPlaybackState:8,className:0,handlePlayClick:9,repeatPlaylist:10,isOneVideoPlaylist:11},Ns)}}var El="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 qs(t){_e(t,"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 Hs(t){let e,i,n,l,o;return{c(){e=h("div"),i=h("img"),c(i,"class","icon v-1tmb7ku"),Pe(i.src,n=El)||c(i,"src",n),c(i,"alt",""),S(i,"icon-prev",t[1]==="prev"),c(e,"role","button"),c(e,"tabindex","0"),c(e,"class","v-1tmb7ku"),S(e,"disabled",t[0])},m(s,r){E(s,e,r),f(e,i),l||(o=oe(e,"click",t[5]),l=!0)},p(s,r){r&2&&S(i,"icon-prev",s[1]==="prev"),r&1&&S(e,"disabled",s[0])},d(s){s&&M(e),l=!1,o()}}}function Ds(t){let e,i,n,l,o;return{c(){e=h("div"),i=h("img"),c(i,"class","icon-mobile v-1tmb7ku"),Pe(i.src,n=El)||c(i,"src",n),c(i,"alt",""),S(i,"icon-prev",t[1]==="prev"),c(e,"role","button"),c(e,"tabindex","0"),c(e,"class","v-1tmb7ku"),S(e,"container-mobile-prev",t[1]==="prev"),S(e,"container-mobile-next",t[1]==="next"),S(e,"disabled",t[0])},m(s,r){E(s,e,r),f(e,i),l||(o=oe(e,"click",t[4]),l=!0)},p(s,r){r&2&&S(i,"icon-prev",s[1]==="prev"),r&2&&S(e,"container-mobile-prev",s[1]==="prev"),r&2&&S(e,"container-mobile-next",s[1]==="next"),r&1&&S(e,"disabled",s[0])},d(s){s&&M(e),l=!1,o()}}}function js(t){let e;function i(o,s){return o[2]?Ds:Hs}let n=i(t),l=n(t);return{c(){l.c(),e=$e()},m(o,s){l.m(o,s),E(o,e,s)},p(o,[s]){n===(n=i(o))&&l?l.p(o,s):(l.d(1),l=n(o),l&&(l.c(),l.m(e.parentNode,e)))},i:B,o:B,d(o){l.d(o),o&&M(e)}}}function Os(t,e,i){let n,{disabled:l=!1}=e,{type:o}=e;const r=De().ui.isMobile;Q(t,r,d=>i(2,n=d));function a(d){it.call(this,t,d)}function u(d){it.call(this,t,d)}return t.$$set=d=>{"disabled"in d&&i(0,l=d.disabled),"type"in d&&i(1,o=d.type)},[l,o,n,r,a,u]}class mi extends pe{constructor(e){super(),he(this,e,Os,js,ve,{disabled:0,type:1},qs)}}var zl="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 Us(t){_e(t,"v-j4644b",".no-hover.v-j4644b{pointer-events:none}.icon.v-j4644b{display:block;width:24px;height:24px}")}function Qs(t){let e,i;return{c(){e=h("img"),Pe(e.src,i=zl)||c(e,"src",i),c(e,"class","icon v-j4644b"),c(e,"alt","")},m(n,l){E(n,e,l)},p:B,d(n){n&&M(e)}}}function Ws(t){let e,i,n,l,o;return{c(){e=h("a"),i=h("img"),Pe(i.src,n=zl)||c(i,"src",n),c(i,"class","icon v-j4644b"),c(i,"alt",""),c(e,"href","https://vk.com/video"),c(e,"target","_blank"),c(e,"rel","noreferrer")},m(s,r){E(s,e,r),f(e,i),l||(o=oe(e,"click",t[2]),l=!0)},p:B,d(s){s&&M(e),l=!1,o()}}}function Ys(t){let e,i;function n(s,r){return s[1]?Ws:Qs}let l=n(t),o=l(t);return{c(){e=h("div"),o.c(),c(e,"class",i=pt(t[0])+" v-j4644b"),c(e,"role","button"),c(e,"tabindex","0"),S(e,"no-hover",!t[1])},m(s,r){E(s,e,r),o.m(e,null)},p(s,[r]){l===(l=n(s))&&o?o.p(s,r):(o.d(1),o=l(s),o&&(o.c(),o.m(e,null))),r&1&&i!==(i=pt(s[0])+" v-j4644b")&&c(e,"class",i),r&3&&S(e,"no-hover",!s[1])},i:B,o:B,d(s){s&&M(e),o.d()}}}function Ks(t,e,i){let{className:n=""}=e,{logoClickable:l=!1}=e;function o(s){it.call(this,t,s)}return t.$$set=s=>{"className"in s&&i(0,n=s.className),"logoClickable"in s&&i(1,l=s.logoClickable)},[n,l,o]}class Tl extends pe{constructor(e){super(),he(this,e,Ks,Ys,ve,{className:0,logoClickable:1},Us)}}function Xs(t){_e(t,"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 sn(t){let e,i,n,l;function o(a,u){if(a[1]===Ot.AVAILABLE)return Js;if(a[1]===Ot.CONNECTED)return xs;if(a[1]===Ot.CONNECTING)return Gs}let s=o(t),r=s&&s(t);return{c(){e=h("div"),r&&r.c(),c(e,"class",i=pt(t[0])+" v-1gdbwrb"),c(e,"role","button"),c(e,"tabindex","0")},m(a,u){E(a,e,u),r&&r.m(e,null),n||(l=oe(e,"click",t[4]),n=!0)},p(a,u){s!==(s=o(a))&&(r&&r.d(1),r=s&&s(a),r&&(r.c(),r.m(e,null))),u&1&&i!==(i=pt(a[0])+" v-1gdbwrb")&&c(e,"class",i)},d(a){a&&M(e),r&&r.d(),n=!1,l()}}}function Gs(t){let e,i,n,l,o,s,r;return{c(){e=Ae("svg"),i=Ae("g"),n=Ae("path"),l=Ae("path"),o=Ae("path"),s=Ae("path"),r=Ae("path"),c(n,"class","wave wave1 v-1gdbwrb"),c(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3z"),c(n,"opacity",".3"),c(n,"fill","#fff"),c(l,"class","wave wave2 v-1gdbwrb"),c(l,"d","M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"),c(l,"opacity",".3"),c(l,"fill","#fff"),c(o,"class","wave wave3 v-1gdbwrb"),c(o,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),c(o,"opacity",".3"),c(o,"fill","#fff"),c(s,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),c(s,"fill","#fff"),c(r,"d","M0 0h24v24H0z"),c(i,"fill","none"),c(i,"fill-rule","evenodd"),c(e,"class","icon v-1gdbwrb"),c(e,"width","22"),c(e,"height","22"),c(e,"viewBox","0 0 24 24"),c(e,"xmlns","http://www.w3.org/2000/svg")},m(a,u){E(a,e,u),f(e,i),f(i,n),f(i,l),f(i,o),f(i,s),f(i,r)},d(a){a&&M(e)}}}function xs(t){let e,i,n,l;return{c(){e=Ae("svg"),i=Ae("g"),n=Ae("path"),l=Ae("path"),c(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"),c(n,"fill","#fff"),c(l,"d","M0 0h24v24H0z"),c(i,"fill","none"),c(i,"fill-rule","evenodd"),c(e,"class","icon v-1gdbwrb"),c(e,"width","22"),c(e,"height","22"),c(e,"viewBox","0 0 24 24"),c(e,"xmlns","http://www.w3.org/2000/svg")},m(o,s){E(o,e,s),f(e,i),f(i,n),f(i,l)},d(o){o&&M(e)}}}function Js(t){let e,i,n,l;return{c(){e=Ae("svg"),i=Ae("g"),n=Ae("path"),l=Ae("path"),c(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"),c(n,"fill","#fff"),c(l,"d","M0 0h24v24H0z"),c(i,"fill","none"),c(i,"fill-rule","evenodd"),c(e,"class","icon v-1gdbwrb"),c(e,"width","22"),c(e,"height","22"),c(e,"viewBox","0 0 24 24"),c(e,"xmlns","http://www.w3.org/2000/svg")},m(o,s){E(o,e,s),f(e,i),f(i,n),f(i,l)},d(o){o&&M(e)}}}function Zs(t){let e,i=t[1]!==Ot.NOT_AVAILABLE&&sn(t);return{c(){i&&i.c(),e=$e()},m(n,l){i&&i.m(n,l),E(n,e,l)},p(n,[l]){n[1]!==Ot.NOT_AVAILABLE?i?i.p(n,l):(i=sn(n),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},i:B,o:B,d(n){i&&i.d(n),n&&M(e)}}}function $s(t,e,i){let n,{className:l=""}=e;const s=De().state.chromecastState$;Q(t,s,u=>i(3,n=u));let r;function a(u){it.call(this,t,u)}return t.$$set=u=>{"className"in u&&i(0,l=u.className)},t.$$.update=()=>{t.$$.dirty&8&&i(1,r=n)},[l,r,s,n,a]}class er extends pe{constructor(e){super(),he(this,e,$s,Zs,ve,{className:0},Xs)}}var tr="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",ir="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";function nr(t){_e(t,"v-rwtbzf",".icon.v-rwtbzf{display:block;width:42px;height:20px}")}function lr(t){let e,i,n,l,o;return{c(){e=h("div"),i=h("img"),Pe(i.src,n=t[0])||c(i,"src",n),c(i,"class","icon v-rwtbzf"),c(i,"alt",""),c(e,"role","button"),c(e,"tabindex","0")},m(s,r){E(s,e,r),f(e,i),l||(o=oe(e,"click",t[2]),l=!0)},p(s,[r]){r&1&&!Pe(i.src,n=s[0])&&c(i,"src",n)},i:B,o:B,d(s){s&&M(e),l=!1,o()}}}function or(t,e,i){let{isActiveLive:n=!1}=e,l="";function o(s){it.call(this,t,s)}return t.$$set=s=>{"isActiveLive"in s&&i(1,n=s.isActiveLive)},t.$$.update=()=>{t.$$.dirty&2&&i(0,l=n?ir:tr)},[l,n,o]}class sr extends pe{constructor(e){super(),he(this,e,or,lr,ve,{isActiveLive:1},nr)}}var rn="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",an="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 rr(t){_e(t,"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 cn(t){let e;return{c(){e=h("span"),e.textContent="\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",c(e,"class","text v-dsbe5p")},m(i,n){E(i,e,n)},d(i){i&&M(e)}}}function ar(t){let e,i,n,l,o,s,r=t[0]&&cn();return{c(){e=h("div"),i=h("img"),l=z(),r&&r.c(),Pe(i.src,n=t[0]?an:rn)||c(i,"src",n),c(i,"class","icon v-dsbe5p"),c(i,"alt",""),c(e,"class","container v-dsbe5p"),S(e,"expanded",t[0])},m(a,u){E(a,e,u),f(e,i),f(e,l),r&&r.m(e,null),o||(s=oe(e,"click",t[1]),o=!0)},p(a,[u]){u&1&&!Pe(i.src,n=a[0]?an:rn)&&c(i,"src",n),a[0]?r||(r=cn(),r.c(),r.m(e,null)):r&&(r.d(1),r=null),u&1&&S(e,"expanded",a[0])},i:B,o:B,d(a){a&&M(e),r&&r.d(),o=!1,s()}}}function cr(t,e,i){let{expanded:n=!1}=e;function l(o){it.call(this,t,o)}return t.$$set=o=>{"expanded"in o&&i(0,n=o.expanded)},[n,l]}class Ll extends pe{constructor(e){super(),he(this,e,cr,ar,ve,{expanded:0},rr)}}function ur(t){_e(t,"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 dr(t){let e,i,n,l,o;return{c(){e=h("div"),i=h("div"),n=h("div"),l=fe(t[0]),c(n,"class","content v-1bwjmdb"),c(i,"class","tooltip v-1bwjmdb"),S(i,"active",t[1]),c(e,"class","tooltip-wrapper v-1bwjmdb"),c(e,"style",o=`transform: translate(${t[2]}px, ${t[3]}px);`)},m(s,r){E(s,e,r),f(e,i),f(i,n),f(n,l)},p(s,[r]){r&1&&Me(l,s[0]),r&2&&S(i,"active",s[1]),r&12&&o!==(o=`transform: translate(${s[2]}px, ${s[3]}px);`)&&c(e,"style",o)},i:B,o:B,d(s){s&&M(e)}}}function fr(t,e,i){let{content:n=""}=e,{active:l=!1}=e,{translateXPx:o=0}=e,{translateYPx:s=0}=e;return t.$$set=r=>{"content"in r&&i(0,n=r.content),"active"in r&&i(1,l=r.active),"translateXPx"in r&&i(2,o=r.translateXPx),"translateYPx"in r&&i(3,s=r.translateYPx)},[n,l,o,s]}class mr extends pe{constructor(e){super(),he(this,e,fr,dr,ve,{content:0,active:1,translateXPx:2,translateYPx:3},ur)}}function un(t){let e,i;return e=new mr({props:{content:t[5],active:t[4],translateXPx:t[6],translateYPx:-16}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l&32&&(o.content=n[5]),l&16&&(o.active=n[4]),l&64&&(o.translateXPx=n[6]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function vr(t){let e,i,n,l=(!t[8]||t[8]&&t[7])&&un(t);return i=new zi({props:{isActiveLive:t[9],ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",ariaValueMin:0,ariaValueMax:t[0],ariaValueNow:Math.round(t[3]*100),ariaValueText:`${t[2]} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C ${t[1]})`,loadedProgress:t[10],filledProgress:t[3],handleProgress:t[3],onPointerDown:t[17],onHandleMove:t[18],onPointerMove:t[21],onPointerUp:t[19],onPointerEnter:t[20],onPointerLeave:t[22]}}),{c(){l&&l.c(),e=z(),te(i.$$.fragment)},m(o,s){l&&l.m(o,s),E(o,e,s),$(i,o,s),n=!0},p(o,[s]){!o[8]||o[8]&&o[7]?l?(l.p(o,s),s&384&&g(l,1)):(l=un(o),l.c(),g(l,1),l.m(e.parentNode,e)):l&&(se(),P(l,1,1,()=>{l=null}),re());const r={};s&512&&(r.isActiveLive=o[9]),s&1&&(r.ariaValueMax=o[0]),s&8&&(r.ariaValueNow=Math.round(o[3]*100)),s&6&&(r.ariaValueText=`${o[2]} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C ${o[1]})`),s&1024&&(r.loadedProgress=o[10]),s&8&&(r.filledProgress=o[3]),s&8&&(r.handleProgress=o[3]),i.$set(r)},i(o){n||(g(l),g(i.$$.fragment,o),n=!0)},o(o){P(l),P(i.$$.fragment,o),n=!1},d(o){l&&l.d(o),o&&M(e),ee(i,o)}}}function gr(t,e,i){let n,l,o,s,r,a;const u=De(),d=u.state.bufferedProgress$;Q(t,d,U=>i(10,a=U));const m=u.state.positionWithScrubbing$;Q(t,m,U=>i(23,o=U));const b=u.state.duration$;Q(t,b,U=>i(0,l=U));const v=u.state.isLive$;Q(t,v,U=>i(7,n=U));const p=u.state.isActiveLive$;Q(t,p,U=>i(9,r=U));const w=u.ui.isMobile;Q(t,w,U=>i(8,s=U));let C,N,_,k=!1,L="",I=0;function R(U){u.actions.internal.startScrubbing(U)}function y(U){u.actions.internal.progressScrubbing(U)}function H(U){u.actions.internal.completeScrubbing(U)}function q(U,G){J(U,G),i(4,k=!0)}function T(U,G){J(U,G)}function W(){i(4,k=!1)}function J(U,G){i(6,I=G),i(5,L=D(U))}function D(U){const G=ht((n?1-U:U)*l);return n?`-${G}`:G}return t.$$.update=()=>{t.$$.dirty&1&&i(1,C=ht(l)),t.$$.dirty&8388608&&i(2,N=ht(o)),t.$$.dirty&8388609&&i(3,_=o/l)},[l,C,N,_,k,L,I,n,s,r,a,d,m,b,v,p,w,R,y,H,q,T,W,o]}let hr=class extends pe{constructor(e){super(),he(this,e,gr,vr,ve,{})}};function pr(t){let e,i;return e=new zi({props:{ariaValueMin:0,ariaValueMax:t[0],ariaValueNow:Math.round(t[3]*100),ariaValueText:`${t[2]} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C ${t[1]})`,filledProgress:t[3],isAds:!0,squareBorders:t[4]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,[l]){const o={};l&1&&(o.ariaValueMax=n[0]),l&8&&(o.ariaValueNow=Math.round(n[3]*100)),l&6&&(o.ariaValueText=`${n[2]} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C ${n[1]})`),l&8&&(o.filledProgress=n[3]),l&16&&(o.squareBorders=n[4]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function br(t,e,i){let n,{position:l=0}=e,{duration:o=0}=e;const r=De().ui.isMobile;Q(t,r,m=>i(4,n=m));let a,u,d;return t.$$set=m=>{"position"in m&&i(6,l=m.position),"duration"in m&&i(0,o=m.duration)},t.$$.update=()=>{t.$$.dirty&1&&i(1,a=ht(o)),t.$$.dirty&64&&i(2,u=ht(l)),t.$$.dirty&65&&i(3,d=l/o)},[o,a,u,d,n,r,l]}class Nl extends pe{constructor(e){super(),he(this,e,br,pr,ve,{position:6,duration:0})}}function wr(t){_e(t,"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 _r(t){let e;return{c(){e=h("div"),c(e,"class","timeline-stub v-17msmwz")},m(i,n){E(i,e,n)},p:B,i:B,o:B,d(i){i&&M(e)}}}function yr(t){let e,i,n,l,o;const s=[Pr,kr],r=[];function a(u,d){return u[0]?0:1}return i=a(t),n=r[i]=s[i](t),{c(){e=h("div"),n.c(),c(e,"class",l="timeline "+t[1]+" v-17msmwz")},m(u,d){E(u,e,d),r[i].m(e,null),o=!0},p(u,d){let m=i;i=a(u),i===m?r[i].p(u,d):(se(),P(r[m],1,1,()=>{r[m]=null}),re(),n=r[i],n?n.p(u,d):(n=r[i]=s[i](u),n.c()),g(n,1),n.m(e,null)),(!o||d&2&&l!==(l="timeline "+u[1]+" v-17msmwz"))&&c(e,"class",l)},i(u){o||(g(n),o=!0)},o(u){P(n),o=!1},d(u){u&&M(e),r[i].d()}}}function kr(t){let e,i;return e=new hr({}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p:B,i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Pr(t){let e,i;return e=new Nl({props:{position:t[3],duration:t[4]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l&8&&(o.position=n[3]),l&16&&(o.duration=n[4]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Vr(t){let e,i,n,l;const o=[yr,_r],s=[];function r(a,u){return a[2]?0:1}return e=r(t),i=s[e]=o[e](t),{c(){i.c(),n=$e()},m(a,u){s[e].m(a,u),E(a,n,u),l=!0},p(a,[u]){let d=e;e=r(a),e===d?s[e].p(a,u):(se(),P(s[d],1,1,()=>{s[d]=null}),re(),i=s[e],i?i.p(a,u):(i=s[e]=o[e](a),i.c()),g(i,1),i.m(n.parentNode,n))},i(a){l||(g(i),l=!0)},o(a){P(i),l=!1},d(a){s[e].d(a),a&&M(n)}}}function Ar(t,e,i){let n,l,o,{isAds:s=!1}=e,{canRewindLive:r}=e,{isHidden:a=!1}=e,{className:u=""}=e;const d=De(),m=d.state.isLive$;Q(t,m,w=>i(10,n=w));const b=d.ads.duration;Q(t,b,w=>i(4,o=w));const v=d.ads.position;Q(t,v,w=>i(3,l=w));let p;return t.$$set=w=>{"isAds"in w&&i(0,s=w.isAds),"canRewindLive"in w&&i(8,r=w.canRewindLive),"isHidden"in w&&i(9,a=w.isHidden),"className"in w&&i(1,u=w.className)},t.$$.update=()=>{t.$$.dirty&1793&&i(2,p=!a&&(!n||n&&r||s))},[s,u,p,l,o,m,b,v,r,a,n]}class Il extends pe{constructor(e){super(),he(this,e,Ar,Vr,ve,{isAds:0,canRewindLive:8,isHidden:9,className:1},wr)}}function Sr(t){_e(t,"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(
|
|
8
8
|
180deg,
|
|
9
9
|
rgba(0, 0, 0, 0) 0%,
|
|
10
10
|
rgba(0, 0, 0, 0.02) 19%,
|
|
@@ -13,10 +13,10 @@ import{VideoQuality as Qe,PlaybackState as At,ChromecastState as qt,Player as Dl
|
|
|
13
13
|
rgba(0, 0, 0, 0.60) 100%
|
|
14
14
|
);transition:transform var(--videoplayer-controls-transition-duration)
|
|
15
15
|
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)
|
|
16
|
-
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 nn(t){let e,i,n,l,o,s,a,r,u,d,m,_,h,b=t[28]&&ln(t);s=new pl({props:{className:"mobile-top-right-button"}});let w=!t[6]&&on(t),z=t[7]&&sn(t);m=new yi({props:{playbackState:t[31],adPlaybackState:t[32],isAds:t[3],handlePlayClick:t[41],repeatPlaylist:t[14],isEnded:t[33],isOneVideoPlaylist:t[10]}});let E=t[7]&&an(t);return{c(){e=g("div"),i=L(),n=g("div"),b&&b.c(),l=L(),o=g("div"),te(s.$$.fragment),a=L(),w&&w.c(),r=L(),u=g("div"),z&&z.c(),d=L(),te(m.$$.fragment),_=L(),E&&E.c(),c(e,"class","overlay-mobile v-1qfxnal"),A(e,"hidden",!t[26]),c(n,"class","wrapper-top-left v-1qfxnal"),A(n,"hidden",!t[2]),A(n,"wrapper-top-fullscreen-mobile",t[27]&&t[18]),c(o,"class","wrapper-top-right v-1qfxnal"),A(o,"hidden",!t[2]),A(o,"wrapper-top-fullscreen-mobile",t[27]&&t[18]),c(u,"class","wrapper-middle v-1qfxnal"),A(u,"hidden",!t[2]||t[30])},m(p,k){M(p,e,k),M(p,i,k),M(p,n,k),b&&b.m(n,null),M(p,l,k),M(p,o,k),$(s,o,null),f(o,a),w&&w.m(o,null),M(p,r,k),M(p,u,k),z&&z.m(u,null),f(u,d),$(m,u,null),f(u,_),E&&E.m(u,null),h=!0},p(p,k){(!h||k[0]&67108864)&&A(e,"hidden",!p[26]),p[28]?b?(b.p(p,k),k[0]&268435456&&v(b,1)):(b=ln(p),b.c(),v(b,1),b.m(n,null)):b&&(oe(),y(b,1,1,()=>{b=null}),se()),(!h||k[0]&4)&&A(n,"hidden",!p[2]),(!h||k[0]&134479872)&&A(n,"wrapper-top-fullscreen-mobile",p[27]&&p[18]),p[6]?w&&(oe(),y(w,1,1,()=>{w=null}),se()):w?(w.p(p,k),k[0]&64&&v(w,1)):(w=on(p),w.c(),v(w,1),w.m(o,null)),(!h||k[0]&4)&&A(o,"hidden",!p[2]),(!h||k[0]&134479872)&&A(o,"wrapper-top-fullscreen-mobile",p[27]&&p[18]),p[7]?z?(z.p(p,k),k[0]&128&&v(z,1)):(z=sn(p),z.c(),v(z,1),z.m(u,d)):z&&(oe(),y(z,1,1,()=>{z=null}),se());const T={};k[1]&1&&(T.playbackState=p[31]),k[1]&2&&(T.adPlaybackState=p[32]),k[0]&8&&(T.isAds=p[3]),k[0]&16384&&(T.repeatPlaylist=p[14]),k[1]&4&&(T.isEnded=p[33]),k[0]&1024&&(T.isOneVideoPlaylist=p[10]),m.$set(T),p[7]?E?(E.p(p,k),k[0]&128&&v(E,1)):(E=an(p),E.c(),v(E,1),E.m(u,null)):E&&(oe(),y(E,1,1,()=>{E=null}),se()),(!h||k[0]&1073741828)&&A(u,"hidden",!p[2]||p[30])},i(p){h||(v(b),v(s.$$.fragment,p),v(w),v(z),v(m.$$.fragment,p),v(E),h=!0)},o(p){y(b),y(s.$$.fragment,p),y(w),y(z),y(m.$$.fragment,p),y(E),h=!1},d(p){p&&C(e),p&&C(i),p&&C(n),b&&b.d(),p&&C(l),p&&C(o),ee(s),w&&w.d(),p&&C(r),p&&C(u),z&&z.d(),ee(m),E&&E.d()}}}function ln(t){let e,i;return e=new kl({props:{expanded:t[29]}}),e.$on("click",t[62]),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&536870912&&(o.expanded=n[29]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function on(t){let e,i;return e=new _l({props:{className:"mobile-top-right-button",logoClickable:t[5]}}),e.$on("click",t[42]),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&32&&(o.logoClickable=n[5]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function sn(t){let e,i;return e=new ai({props:{type:"prev",disabled:!t[9]}}),e.$on("click",function(){Fe(t[13])&&t[13].apply(this,arguments)}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){t=n;const o={};l[0]&512&&(o.disabled=!t[9]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function an(t){let e,i;return e=new ai({props:{type:"next",disabled:!t[8]}}),e.$on("click",function(){Fe(t[12])&&t[12].apply(this,arguments)}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){t=n;const o={};l[0]&256&&(o.disabled=!t[8]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function rn(t){let e,i,n,l,o,s=t[28]&&cn(t),a=t[32]===Ie.PAUSED&&un(t);return l=new yl({props:{position:t[34],duration:t[35]}}),{c(){s&&s.c(),e=L(),a&&a.c(),i=L(),n=g("div"),te(l.$$.fragment),c(n,"class","wrapper-bottom ads-timeline-mobile v-1qfxnal")},m(r,u){s&&s.m(r,u),M(r,e,u),a&&a.m(r,u),M(r,i,u),M(r,n,u),$(l,n,null),o=!0},p(r,u){r[28]?s?(s.p(r,u),u[0]&268435456&&v(s,1)):(s=cn(r),s.c(),v(s,1),s.m(e.parentNode,e)):s&&(oe(),y(s,1,1,()=>{s=null}),se()),r[32]===Ie.PAUSED?a?(a.p(r,u),u[1]&2&&v(a,1)):(a=un(r),a.c(),v(a,1),a.m(i.parentNode,i)):a&&(oe(),y(a,1,1,()=>{a=null}),se());const d={};u[1]&8&&(d.position=r[34]),u[1]&16&&(d.duration=r[35]),l.$set(d)},i(r){o||(v(s),v(a),v(l.$$.fragment,r),o=!0)},o(r){y(s),y(a),y(l.$$.fragment,r),o=!1},d(r){s&&s.d(r),r&&C(e),a&&a.d(r),r&&C(i),r&&C(n),ee(l)}}}function cn(t){let e,i,n;return i=new kl({props:{expanded:!1}}),i.$on("click",t[62]),{c(){e=g("div"),te(i.$$.fragment),c(e,"class","wrapper-top-right v-1qfxnal")},m(l,o){M(l,e,o),$(i,e,null),n=!0},p:B,i(l){n||(v(i.$$.fragment,l),n=!0)},o(l){y(i.$$.fragment,l),n=!1},d(l){l&&C(e),ee(i)}}}function un(t){let e,i,n;return i=new yi({props:{playbackState:t[31],adPlaybackState:t[32],isAds:!0,handlePlayClick:t[41],repeatPlaylist:B,isEnded:!1,isOneVideoPlaylist:!1}}),{c(){e=g("div"),te(i.$$.fragment),c(e,"class","wrapper-middle v-1qfxnal")},m(l,o){M(l,e,o),$(i,e,null),n=!0},p(l,o){const s={};o[1]&1&&(s.playbackState=l[31]),o[1]&2&&(s.adPlaybackState=l[32]),i.$set(s)},i(l){n||(v(i.$$.fragment,l),n=!0)},o(l){y(i.$$.fragment,l),n=!1},d(l){l&&C(e),ee(i)}}}function dn(t){let e,i,n,l,o,s=t[7]&&!t[3]&&fn(t);i=new ot({props:{className:"controls-element",$$slots:{default:[d1]},$$scope:{ctx:t}}});let a=t[7]&&!t[3]&&mn(t);return{c(){s&&s.c(),e=L(),te(i.$$.fragment),n=L(),a&&a.c(),l=Je()},m(r,u){s&&s.m(r,u),M(r,e,u),$(i,r,u),M(r,n,u),a&&a.m(r,u),M(r,l,u),o=!0},p(r,u){r[7]&&!r[3]?s?(s.p(r,u),u[0]&136&&v(s,1)):(s=fn(r),s.c(),v(s,1),s.m(e.parentNode,e)):s&&(oe(),y(s,1,1,()=>{s=null}),se());const d={};u[0]&17416|u[1]&7|u[2]&16&&(d.$$scope={dirty:u,ctx:r}),i.$set(d),r[7]&&!r[3]?a?(a.p(r,u),u[0]&136&&v(a,1)):(a=mn(r),a.c(),v(a,1),a.m(l.parentNode,l)):a&&(oe(),y(a,1,1,()=>{a=null}),se())},i(r){o||(v(s),v(i.$$.fragment,r),v(a),o=!0)},o(r){y(s),y(i.$$.fragment,r),y(a),o=!1},d(r){s&&s.d(r),r&&C(e),ee(i,r),r&&C(n),a&&a.d(r),r&&C(l)}}}function fn(t){let e,i;return e=new ot({props:{className:"controls-element",disabled:!t[9],$$slots:{default:[u1]},$$scope:{ctx:t}}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&512&&(o.disabled=!n[9]),l[0]&8704|l[2]&16&&(o.$$scope={dirty:l,ctx:n}),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function u1(t){let e,i;return e=new ai({props:{type:"prev",disabled:!t[9]}}),e.$on("click",function(){Fe(t[13])&&t[13].apply(this,arguments)}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){t=n;const o={};l[0]&512&&(o.disabled=!t[9]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function d1(t){let e,i;return e=new yi({props:{className:"controls-play-button",playbackState:t[31],adPlaybackState:t[32],isAds:t[3],handlePlayClick:t[41],repeatPlaylist:t[14],isEnded:t[33],isOneVideoPlaylist:t[10]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[1]&1&&(o.playbackState=n[31]),l[1]&2&&(o.adPlaybackState=n[32]),l[0]&8&&(o.isAds=n[3]),l[0]&16384&&(o.repeatPlaylist=n[14]),l[1]&4&&(o.isEnded=n[33]),l[0]&1024&&(o.isOneVideoPlaylist=n[10]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function mn(t){let e,i;return e=new ot({props:{className:"controls-element",disabled:!t[8],$$slots:{default:[f1]},$$scope:{ctx:t}}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&256&&(o.disabled=!n[8]),l[0]&4352|l[2]&16&&(o.$$scope={dirty:l,ctx:n}),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function f1(t){let e,i;return e=new ai({props:{type:"next",disabled:!t[8]}}),e.$on("click",function(){Fe(t[12])&&t[12].apply(this,arguments)}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){t=n;const o={};l[0]&256&&(o.disabled=!t[8]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function vn(t){let e,i;return e=new ot({props:{className:"controls-element",$$slots:{default:[m1]},$$scope:{ctx:t}}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[1]&32|l[2]&16&&(o.$$scope={dirty:l,ctx:n}),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function m1(t){let e,i;return e=new Os({props:{isActiveLive:t[36]}}),e.$on("click",t[61]),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[1]&32&&(o.isActiveLive=n[36]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function gn(t){let e,i;return e=new Vl({props:{isHidden:!t[23],isAds:t[3],canRewindLive:t[4],className:"controls-element"}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&8388608&&(o.isHidden=!n[23]),l[0]&8&&(o.isAds=n[3]),l[0]&16&&(o.canRewindLive=n[4]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function hn(t){let e,i;return e=new Zo({props:{className:"ui-time controls-element",showDuration:t[20],position:t[3]?t[34]:t[37],duration:t[3]?t[35]:t[38]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&1048576&&(o.showDuration=n[20]),l[0]&8|l[1]&72&&(o.position=n[3]?n[34]:n[37]),l[0]&8|l[1]&144&&(o.duration=n[3]?n[35]:n[38]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function pn(t){let e,i;return e=new Vl({props:{isAds:t[3],canRewindLive:t[4],className:"controls-element"}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&8&&(o.isAds=n[3]),l[0]&16&&(o.canRewindLive=n[4]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function bn(t){let e,i,n,l;e=new ot({props:{className:"controls-element",$$slots:{default:[v1]},$$scope:{ctx:t}}});let o=!t[39]&&!t[3]&&wn(t);return{c(){te(e.$$.fragment),i=L(),o&&o.c(),n=Je()},m(s,a){$(e,s,a),M(s,i,a),o&&o.m(s,a),M(s,n,a),l=!0},p(s,a){const r={};a[0]&524288|a[2]&16&&(r.$$scope={dirty:a,ctx:s}),e.$set(r),!s[39]&&!s[3]?o?(o.p(s,a),a[0]&8|a[1]&256&&v(o,1)):(o=wn(s),o.c(),v(o,1),o.m(n.parentNode,n)):o&&(oe(),y(o,1,1,()=>{o=null}),se())},i(s){l||(v(e.$$.fragment,s),v(o),l=!0)},o(s){y(e.$$.fragment,s),y(o),l=!1},d(s){ee(e,s),s&&C(i),o&&o.d(s),s&&C(n)}}}function v1(t){let e,i;return e=new os({props:{isVerticalVolume:t[19]}}),e.$on("click",t[40]),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&524288&&(o.isVerticalVolume=n[19]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function wn(t){let e,i,n,l,o;i=new hl({props:{supportLink:t[11]}});let s=t[22]&&_n(t);return{c(){e=g("div"),te(i.$$.fragment),n=L(),s&&s.c(),l=Je(),c(e,"class","settings-desktop v-1qfxnal")},m(a,r){M(a,e,r),$(i,e,null),M(a,n,r),s&&s.m(a,r),M(a,l,r),o=!0},p(a,r){const u={};r[0]&2048&&(u.supportLink=a[11]),i.$set(u),a[22]?s?r[0]&4194304&&v(s,1):(s=_n(a),s.c(),v(s,1),s.m(l.parentNode,l)):s&&(oe(),y(s,1,1,()=>{s=null}),se())},i(a){o||(v(i.$$.fragment,a),v(s),o=!0)},o(a){y(i.$$.fragment,a),y(s),o=!1},d(a){a&&C(e),ee(i),a&&C(n),s&&s.d(a),a&&C(l)}}}function _n(t){let e,i;return e=new ot({props:{className:"controls-element",$$slots:{default:[g1]},$$scope:{ctx:t}}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function g1(t){let e,i;return e=new pl({props:{className:"ui-settings"}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p:B,i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function kn(t){let e,i;return e=new ot({props:{className:"controls-element",$$slots:{default:[h1]},$$scope:{ctx:t}}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&32768|l[2]&16&&(o.$$scope={dirty:l,ctx:n}),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function h1(t){let e,i;return e=new vs({}),e.$on("click",function(){Fe(t[15])&&t[15].apply(this,arguments)}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){t=n},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function yn(t){let e,i,n,l=t[21]&&Vn(t),o=!t[6]&&Pn(t);return{c(){l&&l.c(),e=L(),o&&o.c(),i=Je()},m(s,a){l&&l.m(s,a),M(s,e,a),o&&o.m(s,a),M(s,i,a),n=!0},p(s,a){s[21]?l?(l.p(s,a),a[0]&2097152&&v(l,1)):(l=Vn(s),l.c(),v(l,1),l.m(e.parentNode,e)):l&&(oe(),y(l,1,1,()=>{l=null}),se()),s[6]?o&&(oe(),y(o,1,1,()=>{o=null}),se()):o?(o.p(s,a),a[0]&64&&v(o,1)):(o=Pn(s),o.c(),v(o,1),o.m(i.parentNode,i))},i(s){n||(v(l),v(o),n=!0)},o(s){y(l),y(o),n=!1},d(s){l&&l.d(s),s&&C(e),o&&o.d(s),s&&C(i)}}}function Vn(t){let e,i;return e=new ot({props:{className:"controls-element",$$slots:{default:[p1]},$$scope:{ctx:t}}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[2]&16&&(o.$$scope={dirty:l,ctx:n}),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function p1(t){let e,i;return e=new Rs({props:{className:"ui-chromecast"}}),e.$on("click",t[60]),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p:B,i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Pn(t){let e,i;return e=new ot({props:{className:"controls-element",disabled:!t[5],$$slots:{default:[b1]},$$scope:{ctx:t}}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&32&&(o.disabled=!n[5]),l[0]&32|l[2]&16&&(o.$$scope={dirty:l,ctx:n}),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function b1(t){let e,i;return e=new _l({props:{logoClickable:t[5]}}),e.$on("click",t[42]),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&32&&(o.logoClickable=n[5]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Sn(t){let e,i,n;return i=new hl({props:{supportLink:t[11]}}),{c(){e=g("div"),te(i.$$.fragment),c(e,"class","settings-mobile v-1qfxnal")},m(l,o){M(l,e,o),$(i,e,null),n=!0},p(l,o){const s={};o[0]&2048&&(s.supportLink=l[11]),i.$set(s)},i(l){n||(v(i.$$.fragment,l),n=!0)},o(l){y(i.$$.fragment,l),n=!1},d(l){l&&C(e),ee(i)}}}function w1(t){let e,i,n,l,o,s,a,r,u,d,m,_,h,b,w=t[18]&&!t[3]&&nn(t),z=t[18]&&t[3]&&t[32]!==Ie.INACTIVE&&rn(t),E=!t[18]&&dn(t),p=!t[3]&&t[17]&&vn(t),k=!t[18]&&gn(t),T=t[25]&&hn(t),F=t[18]&&pn(t),V=!t[18]&&bn(t),I=t[24]&&kn(t),O=!t[18]&&yn(t),D=t[18]&&t[16]&&Sn(t);return{c(){w&&w.c(),e=L(),z&&z.c(),i=L(),n=g("div"),l=g("div"),E&&E.c(),o=L(),p&&p.c(),s=L(),k&&k.c(),a=L(),T&&T.c(),r=L(),F&&F.c(),u=L(),V&&V.c(),d=L(),I&&I.c(),m=L(),O&&O.c(),_=L(),D&&D.c(),h=Je(),c(l,"class","controls v-1qfxnal"),A(l,"controls-hidden",!t[2]),A(l,"controls-fullscreen-mobile",t[27]&&t[18]),c(n,"class","wrapper-bottom v-1qfxnal"),A(n,"hidden",t[1]),A(n,"controls-hidden",!t[2]),A(n,"wrapper-bottom-fullscreen-desktop",t[27]&&!t[18])},m(N,K){w&&w.m(N,K),M(N,e,K),z&&z.m(N,K),M(N,i,K),M(N,n,K),f(n,l),E&&E.m(l,null),f(l,o),p&&p.m(l,null),f(l,s),k&&k.m(l,null),f(l,a),T&&T.m(l,null),f(l,r),F&&F.m(l,null),f(l,u),V&&V.m(l,null),f(l,d),I&&I.m(l,null),f(l,m),O&&O.m(l,null),t[64](n),M(N,_,K),D&&D.m(N,K),M(N,h,K),b=!0},p(N,K){N[18]&&!N[3]?w?(w.p(N,K),K[0]&262152&&v(w,1)):(w=nn(N),w.c(),v(w,1),w.m(e.parentNode,e)):w&&(oe(),y(w,1,1,()=>{w=null}),se()),N[18]&&N[3]&&N[32]!==Ie.INACTIVE?z?(z.p(N,K),K[0]&262152|K[1]&2&&v(z,1)):(z=rn(N),z.c(),v(z,1),z.m(i.parentNode,i)):z&&(oe(),y(z,1,1,()=>{z=null}),se()),N[18]?E&&(oe(),y(E,1,1,()=>{E=null}),se()):E?(E.p(N,K),K[0]&262144&&v(E,1)):(E=dn(N),E.c(),v(E,1),E.m(l,o)),!N[3]&&N[17]?p?(p.p(N,K),K[0]&131080&&v(p,1)):(p=vn(N),p.c(),v(p,1),p.m(l,s)):p&&(oe(),y(p,1,1,()=>{p=null}),se()),N[18]?k&&(oe(),y(k,1,1,()=>{k=null}),se()):k?(k.p(N,K),K[0]&262144&&v(k,1)):(k=gn(N),k.c(),v(k,1),k.m(l,a)),N[25]?T?(T.p(N,K),K[0]&33554432&&v(T,1)):(T=hn(N),T.c(),v(T,1),T.m(l,r)):T&&(oe(),y(T,1,1,()=>{T=null}),se()),N[18]?F?(F.p(N,K),K[0]&262144&&v(F,1)):(F=pn(N),F.c(),v(F,1),F.m(l,u)):F&&(oe(),y(F,1,1,()=>{F=null}),se()),N[18]?V&&(oe(),y(V,1,1,()=>{V=null}),se()):V?(V.p(N,K),K[0]&262144&&v(V,1)):(V=bn(N),V.c(),v(V,1),V.m(l,d)),N[24]?I?(I.p(N,K),K[0]&16777216&&v(I,1)):(I=kn(N),I.c(),v(I,1),I.m(l,m)):I&&(oe(),y(I,1,1,()=>{I=null}),se()),N[18]?O&&(oe(),y(O,1,1,()=>{O=null}),se()):O?(O.p(N,K),K[0]&262144&&v(O,1)):(O=yn(N),O.c(),v(O,1),O.m(l,null)),(!b||K[0]&4)&&A(l,"controls-hidden",!N[2]),(!b||K[0]&134479872)&&A(l,"controls-fullscreen-mobile",N[27]&&N[18]),(!b||K[0]&2)&&A(n,"hidden",N[1]),(!b||K[0]&4)&&A(n,"controls-hidden",!N[2]),(!b||K[0]&134479872)&&A(n,"wrapper-bottom-fullscreen-desktop",N[27]&&!N[18]),N[18]&&N[16]?D?(D.p(N,K),K[0]&327680&&v(D,1)):(D=Sn(N),D.c(),v(D,1),D.m(h.parentNode,h)):D&&(oe(),y(D,1,1,()=>{D=null}),se())},i(N){b||(v(w),v(z),v(E),v(p),v(k),v(T),v(F),v(V),v(I),v(O),v(D),b=!0)},o(N){y(w),y(z),y(E),y(p),y(k),y(T),y(F),y(V),y(I),y(O),y(D),b=!1},d(N){w&&w.d(N),N&&C(e),z&&z.d(N),N&&C(i),N&&C(n),E&&E.d(),p&&p.d(),k&&k.d(),T&&T.d(),F&&F.d(),V&&V.d(),I&&I.d(),O&&O.d(),t[64](null),N&&C(_),D&&D.d(N),N&&C(h)}}}function _1(t,e,i){let n,l,o,s,a,r,u,d,m,_,h,b,w,z,E,p,k,{hidden:T}=e,{showControls:F}=e,{controlsElementRef:V=void 0}=e,{isAds:I=!1}=e,{canRewindLive:O}=e,{logoClickable:D}=e,{logoHidden:N}=e,{showNextPrevButtons:K}=e,{nextButtonActive:J}=e,{prevButtonActive:H}=e,{isOneVideoPlaylist:U=!1}=e,{supportLink:X}=e,{playNextVideo:pe}=e,{playPrevVideo:Z}=e,{repeatPlaylist:j}=e,{toggleFullscreen:ie}=e;const re=De(),Se=re.actions.internal.toggleMuted,ze=re.actions.internal.togglePlay,Re=re.actions.internal.pause,ue=re.state.duration$;Y(t,ue,W=>i(38,p=W));const fe=re.state.positionWithScrubbing$;Y(t,fe,W=>i(37,E=W));const ce=re.state.playbackState$;Y(t,ce,W=>i(31,m=W));const ve=re.state.chromecastConnected$;Y(t,ve,W=>i(39,k=W));const _e=re.state.isEnded$;Y(t,_e,W=>i(33,h=W));const Q=re.state.isLive$;Y(t,Q,W=>i(17,o=W));const be=re.state.isActiveLive$;Y(t,be,W=>i(36,z=W));const ae=re.ui.scrubbingInProgress;Y(t,ae,W=>i(30,d=W));const R=re.ui.isMobile;Y(t,R,W=>i(18,s=W));const q=re.ui.mobileUnmuteButtonExpanded;Y(t,q,W=>i(29,u=W));const x=re.ui.mobileUnmuteButtonVisible;Y(t,x,W=>i(28,r=W));const je=re.ui.settingsMenuVisible;Y(t,je,W=>i(16,n=W));const Ze=re.ads.duration;Y(t,Ze,W=>i(35,w=W));const gt=re.ads.position;Y(t,gt,W=>i(34,b=W));const ht=re.ads.playbackState;Y(t,ht,W=>i(32,_=W));const st=re.ui.isFullscreen;Y(t,st,W=>i(27,a=W));const at=re.ui.playerSize;Y(t,at,W=>i(63,l=W));const zt=()=>re.actions.internal.toggleChromecast(),rt=()=>re.actions.internal.switchToActiveLive();let He,$e,pt,ct,et,ut,tt,it;function Tt(){x.set(!1),Se()}function bt(W){Ye[W?"unshift":"push"](()=>{V=W,i(0,V)})}return t.$$set=W=>{"hidden"in W&&i(1,T=W.hidden),"showControls"in W&&i(2,F=W.showControls),"controlsElementRef"in W&&i(0,V=W.controlsElementRef),"isAds"in W&&i(3,I=W.isAds),"canRewindLive"in W&&i(4,O=W.canRewindLive),"logoClickable"in W&&i(5,D=W.logoClickable),"logoHidden"in W&&i(6,N=W.logoHidden),"showNextPrevButtons"in W&&i(7,K=W.showNextPrevButtons),"nextButtonActive"in W&&i(8,J=W.nextButtonActive),"prevButtonActive"in W&&i(9,H=W.prevButtonActive),"isOneVideoPlaylist"in W&&i(10,U=W.isOneVideoPlaylist),"supportLink"in W&&i(11,X=W.supportLink),"playNextVideo"in W&&i(12,pe=W.playNextVideo),"playPrevVideo"in W&&i(13,Z=W.playPrevVideo),"repeatPlaylist"in W&&i(14,j=W.repeatPlaylist),"toggleFullscreen"in W&&i(15,ie=W.toggleFullscreen)},t.$$.update=()=>{t.$$.dirty[2]&2&&i(19,He=l.width<600),t.$$.dirty[0]&262144|t.$$.dirty[2]&2&&i(20,$e=s||l.width>550),t.$$.dirty[0]&262144|t.$$.dirty[2]&2&&i(21,pt=s||l.width>450),t.$$.dirty[0]&262144|t.$$.dirty[2]&2&&i(22,ct=s||l.width>380),t.$$.dirty[0]&262144|t.$$.dirty[2]&2&&i(23,et=s||l.width>300),t.$$.dirty[0]&262144|t.$$.dirty[2]&2&&i(24,ut=s||l.width>220),t.$$.dirty[0]&131080|t.$$.dirty[2]&2&&i(25,tt=(!o||I)&&l.width>200),t.$$.dirty[0]&65540&&i(26,it=n||F)},[V,T,F,I,O,D,N,K,J,H,U,X,pe,Z,j,ie,n,o,s,He,$e,pt,ct,et,ut,tt,it,a,r,u,d,m,_,h,b,w,z,E,p,k,Se,ze,Re,ue,fe,ce,ve,_e,Q,be,ae,R,q,x,je,Ze,gt,ht,st,at,zt,rt,Tt,l,bt]}class k1 extends he{constructor(e){super(),ge(this,e,_1,w1,me,{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},c1,[-1,-1,-1])}}function y1(t){we(t,"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 V1(t){let e,i,n,l,o,s,a,r,u;return{c(){e=g("div"),i=g("div"),n=g("div"),l=L(),o=g("img"),c(n,"class","playButtonBackground v-y9pij4"),ye(o.src,s=wi)||c(o,"src",s),c(o,"class","playButtonIcon v-y9pij4"),c(o,"alt",""),c(i,"class","playButton v-y9pij4"),c(e,"class","container v-y9pij4"),c(e,"style",a=`background-color: #222; background-image: url('${t[0]||""}')`),A(e,"hidden",t[1])},m(d,m){M(d,e,m),f(e,i),f(i,n),f(i,l),f(i,o),r||(u=le(e,"click",function(){Fe(t[2])&&t[2].apply(this,arguments)}),r=!0)},p(d,[m]){t=d,m&1&&a!==(a=`background-color: #222; background-image: url('${t[0]||""}')`)&&c(e,"style",a),m&2&&A(e,"hidden",t[1])},i:B,o:B,d(d){d&&C(e),r=!1,u()}}}function P1(t,e,i){let{thumbUrl:n}=e,{hidden:l}=e,{startVideo:o}=e;return t.$$set=s=>{"thumbUrl"in s&&i(0,n=s.thumbUrl),"hidden"in s&&i(1,l=s.hidden),"startVideo"in s&&i(2,o=s.startVideo)},[n,l,o]}class S1 extends he{constructor(e){super(),ge(this,e,P1,V1,me,{thumbUrl:0,hidden:1,startVideo:2},y1)}}function A1(t){we(t,"v-8nkw5s",".container.v-8nkw5s.v-8nkw5s{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex}.dot.v-8nkw5s.v-8nkw5s:nth-child(1){animation-delay:calc(0 * 180ms)}.dot.v-8nkw5s.v-8nkw5s:nth-child(2){animation-delay:calc(1 * 180ms)}.dot.v-8nkw5s.v-8nkw5s:nth-child(3){animation-delay:calc(2 * 180ms)}@keyframes v-8nkw5s-dot_animation{0%{opacity:0.2}30%{opacity:1}100%{opacity:0.2}}.dot.v-8nkw5s.v-8nkw5s{border-radius:4px;width:8px;height:8px;background:var(--white);animation-duration:750ms;animation-name:v-8nkw5s-dot_animation;animation-iteration-count:infinite}.dot.v-8nkw5s+.dot.v-8nkw5s{margin-left:4px}")}function C1(t){let e;return{c(){e=g("div"),e.innerHTML=`<div class="dot v-8nkw5s"></div>
|
|
16
|
+
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 dn(t){let e,i,n,l,o,s,r,a,u,d,m,b,v,p=t[28]&&fn(t);s=new Cl({props:{className:"mobile-top-right-button"}});let w=!t[6]&&mn(t),C=t[7]&&vn(t);m=new Ti({props:{playbackState:t[31],adPlaybackState:t[32],isAds:t[3],handlePlayClick:t[41],repeatPlaylist:t[14],isEnded:t[33],isOneVideoPlaylist:t[10]}});let N=t[7]&&gn(t);return{c(){e=h("div"),i=z(),n=h("div"),p&&p.c(),l=z(),o=h("div"),te(s.$$.fragment),r=z(),w&&w.c(),a=z(),u=h("div"),C&&C.c(),d=z(),te(m.$$.fragment),b=z(),N&&N.c(),c(e,"class","overlay-mobile v-1qfxnal"),S(e,"hidden",!t[26]),c(n,"class","wrapper-top-left v-1qfxnal"),S(n,"hidden",!t[2]),S(n,"wrapper-top-fullscreen-mobile",t[27]&&t[18]),c(o,"class","wrapper-top-right v-1qfxnal"),S(o,"hidden",!t[2]),S(o,"wrapper-top-fullscreen-mobile",t[27]&&t[18]),c(u,"class","wrapper-middle v-1qfxnal"),S(u,"hidden",!t[2]||t[30])},m(_,k){E(_,e,k),E(_,i,k),E(_,n,k),p&&p.m(n,null),E(_,l,k),E(_,o,k),$(s,o,null),f(o,r),w&&w.m(o,null),E(_,a,k),E(_,u,k),C&&C.m(u,null),f(u,d),$(m,u,null),f(u,b),N&&N.m(u,null),v=!0},p(_,k){(!v||k[0]&67108864)&&S(e,"hidden",!_[26]),_[28]?p?(p.p(_,k),k[0]&268435456&&g(p,1)):(p=fn(_),p.c(),g(p,1),p.m(n,null)):p&&(se(),P(p,1,1,()=>{p=null}),re()),(!v||k[0]&4)&&S(n,"hidden",!_[2]),(!v||k[0]&134479872)&&S(n,"wrapper-top-fullscreen-mobile",_[27]&&_[18]),_[6]?w&&(se(),P(w,1,1,()=>{w=null}),re()):w?(w.p(_,k),k[0]&64&&g(w,1)):(w=mn(_),w.c(),g(w,1),w.m(o,null)),(!v||k[0]&4)&&S(o,"hidden",!_[2]),(!v||k[0]&134479872)&&S(o,"wrapper-top-fullscreen-mobile",_[27]&&_[18]),_[7]?C?(C.p(_,k),k[0]&128&&g(C,1)):(C=vn(_),C.c(),g(C,1),C.m(u,d)):C&&(se(),P(C,1,1,()=>{C=null}),re());const L={};k[1]&1&&(L.playbackState=_[31]),k[1]&2&&(L.adPlaybackState=_[32]),k[0]&8&&(L.isAds=_[3]),k[0]&16384&&(L.repeatPlaylist=_[14]),k[1]&4&&(L.isEnded=_[33]),k[0]&1024&&(L.isOneVideoPlaylist=_[10]),m.$set(L),_[7]?N?(N.p(_,k),k[0]&128&&g(N,1)):(N=gn(_),N.c(),g(N,1),N.m(u,null)):N&&(se(),P(N,1,1,()=>{N=null}),re()),(!v||k[0]&1073741828)&&S(u,"hidden",!_[2]||_[30])},i(_){v||(g(p),g(s.$$.fragment,_),g(w),g(C),g(m.$$.fragment,_),g(N),v=!0)},o(_){P(p),P(s.$$.fragment,_),P(w),P(C),P(m.$$.fragment,_),P(N),v=!1},d(_){_&&M(e),_&&M(i),_&&M(n),p&&p.d(),_&&M(l),_&&M(o),ee(s),w&&w.d(),_&&M(a),_&&M(u),C&&C.d(),ee(m),N&&N.d()}}}function fn(t){let e,i;return e=new Ll({props:{expanded:t[29]}}),e.$on("click",t[62]),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&536870912&&(o.expanded=n[29]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function mn(t){let e,i;return e=new Tl({props:{className:"mobile-top-right-button",logoClickable:t[5]}}),e.$on("click",t[42]),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&32&&(o.logoClickable=n[5]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function vn(t){let e,i;return e=new mi({props:{type:"prev",disabled:!t[9]}}),e.$on("click",function(){Re(t[13])&&t[13].apply(this,arguments)}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){t=n;const o={};l[0]&512&&(o.disabled=!t[9]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function gn(t){let e,i;return e=new mi({props:{type:"next",disabled:!t[8]}}),e.$on("click",function(){Re(t[12])&&t[12].apply(this,arguments)}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){t=n;const o={};l[0]&256&&(o.disabled=!t[8]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function hn(t){let e,i,n,l,o,s=t[28]&&pn(t),r=t[32]===Be.PAUSED&&bn(t);return l=new Nl({props:{position:t[34],duration:t[35]}}),{c(){s&&s.c(),e=z(),r&&r.c(),i=z(),n=h("div"),te(l.$$.fragment),c(n,"class","wrapper-bottom ads-timeline-mobile v-1qfxnal")},m(a,u){s&&s.m(a,u),E(a,e,u),r&&r.m(a,u),E(a,i,u),E(a,n,u),$(l,n,null),o=!0},p(a,u){a[28]?s?(s.p(a,u),u[0]&268435456&&g(s,1)):(s=pn(a),s.c(),g(s,1),s.m(e.parentNode,e)):s&&(se(),P(s,1,1,()=>{s=null}),re()),a[32]===Be.PAUSED?r?(r.p(a,u),u[1]&2&&g(r,1)):(r=bn(a),r.c(),g(r,1),r.m(i.parentNode,i)):r&&(se(),P(r,1,1,()=>{r=null}),re());const d={};u[1]&8&&(d.position=a[34]),u[1]&16&&(d.duration=a[35]),l.$set(d)},i(a){o||(g(s),g(r),g(l.$$.fragment,a),o=!0)},o(a){P(s),P(r),P(l.$$.fragment,a),o=!1},d(a){s&&s.d(a),a&&M(e),r&&r.d(a),a&&M(i),a&&M(n),ee(l)}}}function pn(t){let e,i,n;return i=new Ll({props:{expanded:!1}}),i.$on("click",t[62]),{c(){e=h("div"),te(i.$$.fragment),c(e,"class","wrapper-top-right v-1qfxnal")},m(l,o){E(l,e,o),$(i,e,null),n=!0},p:B,i(l){n||(g(i.$$.fragment,l),n=!0)},o(l){P(i.$$.fragment,l),n=!1},d(l){l&&M(e),ee(i)}}}function bn(t){let e,i,n;return i=new Ti({props:{playbackState:t[31],adPlaybackState:t[32],isAds:!0,handlePlayClick:t[41],repeatPlaylist:B,isEnded:!1,isOneVideoPlaylist:!1}}),{c(){e=h("div"),te(i.$$.fragment),c(e,"class","wrapper-middle v-1qfxnal")},m(l,o){E(l,e,o),$(i,e,null),n=!0},p(l,o){const s={};o[1]&1&&(s.playbackState=l[31]),o[1]&2&&(s.adPlaybackState=l[32]),i.$set(s)},i(l){n||(g(i.$$.fragment,l),n=!0)},o(l){P(i.$$.fragment,l),n=!1},d(l){l&&M(e),ee(i)}}}function wn(t){let e,i,n,l,o,s=t[7]&&!t[3]&&_n(t);i=new at({props:{className:"controls-element",$$slots:{default:[Mr]},$$scope:{ctx:t}}});let r=t[7]&&!t[3]&&yn(t);return{c(){s&&s.c(),e=z(),te(i.$$.fragment),n=z(),r&&r.c(),l=$e()},m(a,u){s&&s.m(a,u),E(a,e,u),$(i,a,u),E(a,n,u),r&&r.m(a,u),E(a,l,u),o=!0},p(a,u){a[7]&&!a[3]?s?(s.p(a,u),u[0]&136&&g(s,1)):(s=_n(a),s.c(),g(s,1),s.m(e.parentNode,e)):s&&(se(),P(s,1,1,()=>{s=null}),re());const d={};u[0]&17416|u[1]&7|u[2]&16&&(d.$$scope={dirty:u,ctx:a}),i.$set(d),a[7]&&!a[3]?r?(r.p(a,u),u[0]&136&&g(r,1)):(r=yn(a),r.c(),g(r,1),r.m(l.parentNode,l)):r&&(se(),P(r,1,1,()=>{r=null}),re())},i(a){o||(g(s),g(i.$$.fragment,a),g(r),o=!0)},o(a){P(s),P(i.$$.fragment,a),P(r),o=!1},d(a){s&&s.d(a),a&&M(e),ee(i,a),a&&M(n),r&&r.d(a),a&&M(l)}}}function _n(t){let e,i;return e=new at({props:{className:"controls-element",disabled:!t[9],$$slots:{default:[Cr]},$$scope:{ctx:t}}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&512&&(o.disabled=!n[9]),l[0]&8704|l[2]&16&&(o.$$scope={dirty:l,ctx:n}),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Cr(t){let e,i;return e=new mi({props:{type:"prev",disabled:!t[9]}}),e.$on("click",function(){Re(t[13])&&t[13].apply(this,arguments)}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){t=n;const o={};l[0]&512&&(o.disabled=!t[9]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Mr(t){let e,i;return e=new Ti({props:{className:"controls-play-button",playbackState:t[31],adPlaybackState:t[32],isAds:t[3],handlePlayClick:t[41],repeatPlaylist:t[14],isEnded:t[33],isOneVideoPlaylist:t[10]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[1]&1&&(o.playbackState=n[31]),l[1]&2&&(o.adPlaybackState=n[32]),l[0]&8&&(o.isAds=n[3]),l[0]&16384&&(o.repeatPlaylist=n[14]),l[1]&4&&(o.isEnded=n[33]),l[0]&1024&&(o.isOneVideoPlaylist=n[10]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function yn(t){let e,i;return e=new at({props:{className:"controls-element",disabled:!t[8],$$slots:{default:[Er]},$$scope:{ctx:t}}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&256&&(o.disabled=!n[8]),l[0]&4352|l[2]&16&&(o.$$scope={dirty:l,ctx:n}),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Er(t){let e,i;return e=new mi({props:{type:"next",disabled:!t[8]}}),e.$on("click",function(){Re(t[12])&&t[12].apply(this,arguments)}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){t=n;const o={};l[0]&256&&(o.disabled=!t[8]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function kn(t){let e,i;return e=new at({props:{className:"controls-element",$$slots:{default:[zr]},$$scope:{ctx:t}}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[1]&32|l[2]&16&&(o.$$scope={dirty:l,ctx:n}),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function zr(t){let e,i;return e=new sr({props:{isActiveLive:t[36]}}),e.$on("click",t[61]),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[1]&32&&(o.isActiveLive=n[36]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Pn(t){let e,i;return e=new Il({props:{isHidden:!t[23],isAds:t[3],canRewindLive:t[4],className:"controls-element"}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&8388608&&(o.isHidden=!n[23]),l[0]&8&&(o.isAds=n[3]),l[0]&16&&(o.canRewindLive=n[4]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Vn(t){let e,i;return e=new us({props:{className:"ui-time controls-element",showDuration:t[20],position:t[3]?t[34]:t[37],duration:t[3]?t[35]:t[38]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&1048576&&(o.showDuration=n[20]),l[0]&8|l[1]&72&&(o.position=n[3]?n[34]:n[37]),l[0]&8|l[1]&144&&(o.duration=n[3]?n[35]:n[38]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function An(t){let e,i;return e=new Il({props:{isAds:t[3],canRewindLive:t[4],className:"controls-element"}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&8&&(o.isAds=n[3]),l[0]&16&&(o.canRewindLive=n[4]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Sn(t){let e,i,n,l;e=new at({props:{className:"controls-element",$$slots:{default:[Tr]},$$scope:{ctx:t}}});let o=!t[39]&&!t[3]&&Cn(t);return{c(){te(e.$$.fragment),i=z(),o&&o.c(),n=$e()},m(s,r){$(e,s,r),E(s,i,r),o&&o.m(s,r),E(s,n,r),l=!0},p(s,r){const a={};r[0]&524288|r[2]&16&&(a.$$scope={dirty:r,ctx:s}),e.$set(a),!s[39]&&!s[3]?o?(o.p(s,r),r[0]&8|r[1]&256&&g(o,1)):(o=Cn(s),o.c(),g(o,1),o.m(n.parentNode,n)):o&&(se(),P(o,1,1,()=>{o=null}),re())},i(s){l||(g(e.$$.fragment,s),g(o),l=!0)},o(s){P(e.$$.fragment,s),P(o),l=!1},d(s){ee(e,s),s&&M(i),o&&o.d(s),s&&M(n)}}}function Tr(t){let e,i;return e=new bs({props:{isVerticalVolume:t[19]}}),e.$on("click",t[40]),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&524288&&(o.isVerticalVolume=n[19]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Cn(t){let e,i,n,l,o;i=new Sl({props:{supportLink:t[11]}});let s=t[22]&&Mn(t);return{c(){e=h("div"),te(i.$$.fragment),n=z(),s&&s.c(),l=$e(),c(e,"class","settings-desktop v-1qfxnal")},m(r,a){E(r,e,a),$(i,e,null),E(r,n,a),s&&s.m(r,a),E(r,l,a),o=!0},p(r,a){const u={};a[0]&2048&&(u.supportLink=r[11]),i.$set(u),r[22]?s?a[0]&4194304&&g(s,1):(s=Mn(r),s.c(),g(s,1),s.m(l.parentNode,l)):s&&(se(),P(s,1,1,()=>{s=null}),re())},i(r){o||(g(i.$$.fragment,r),g(s),o=!0)},o(r){P(i.$$.fragment,r),P(s),o=!1},d(r){r&&M(e),ee(i),r&&M(n),s&&s.d(r),r&&M(l)}}}function Mn(t){let e,i;return e=new at({props:{className:"controls-element",$$slots:{default:[Lr]},$$scope:{ctx:t}}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Lr(t){let e,i;return e=new Cl({props:{className:"ui-settings"}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p:B,i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function En(t){let e,i;return e=new at({props:{className:"controls-element",$$slots:{default:[Nr]},$$scope:{ctx:t}}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&32768|l[2]&16&&(o.$$scope={dirty:l,ctx:n}),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Nr(t){let e,i;return e=new Cs({}),e.$on("click",function(){Re(t[15])&&t[15].apply(this,arguments)}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){t=n},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function zn(t){let e,i,n,l=t[21]&&Tn(t),o=!t[6]&&Ln(t);return{c(){l&&l.c(),e=z(),o&&o.c(),i=$e()},m(s,r){l&&l.m(s,r),E(s,e,r),o&&o.m(s,r),E(s,i,r),n=!0},p(s,r){s[21]?l?(l.p(s,r),r[0]&2097152&&g(l,1)):(l=Tn(s),l.c(),g(l,1),l.m(e.parentNode,e)):l&&(se(),P(l,1,1,()=>{l=null}),re()),s[6]?o&&(se(),P(o,1,1,()=>{o=null}),re()):o?(o.p(s,r),r[0]&64&&g(o,1)):(o=Ln(s),o.c(),g(o,1),o.m(i.parentNode,i))},i(s){n||(g(l),g(o),n=!0)},o(s){P(l),P(o),n=!1},d(s){l&&l.d(s),s&&M(e),o&&o.d(s),s&&M(i)}}}function Tn(t){let e,i;return e=new at({props:{className:"controls-element",$$slots:{default:[Ir]},$$scope:{ctx:t}}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[2]&16&&(o.$$scope={dirty:l,ctx:n}),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Ir(t){let e,i;return e=new er({props:{className:"ui-chromecast"}}),e.$on("click",t[60]),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p:B,i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Ln(t){let e,i;return e=new at({props:{className:"controls-element",disabled:!t[5],$$slots:{default:[Br]},$$scope:{ctx:t}}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&32&&(o.disabled=!n[5]),l[0]&32|l[2]&16&&(o.$$scope={dirty:l,ctx:n}),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Br(t){let e,i;return e=new Tl({props:{logoClickable:t[5]}}),e.$on("click",t[42]),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&32&&(o.logoClickable=n[5]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Nn(t){let e,i,n;return i=new Sl({props:{supportLink:t[11]}}),{c(){e=h("div"),te(i.$$.fragment),c(e,"class","settings-mobile v-1qfxnal")},m(l,o){E(l,e,o),$(i,e,null),n=!0},p(l,o){const s={};o[0]&2048&&(s.supportLink=l[11]),i.$set(s)},i(l){n||(g(i.$$.fragment,l),n=!0)},o(l){P(i.$$.fragment,l),n=!1},d(l){l&&M(e),ee(i)}}}function Rr(t){let e,i,n,l,o,s,r,a,u,d,m,b,v,p,w=t[18]&&!t[3]&&dn(t),C=t[18]&&t[3]&&t[32]!==Be.INACTIVE&&hn(t),N=!t[18]&&wn(t),_=!t[3]&&t[17]&&kn(t),k=!t[18]&&Pn(t),L=t[25]&&Vn(t),I=t[18]&&An(t),R=!t[18]&&Sn(t),y=t[24]&&En(t),H=!t[18]&&zn(t),q=t[18]&&t[16]&&Nn(t);return{c(){w&&w.c(),e=z(),C&&C.c(),i=z(),n=h("div"),l=h("div"),N&&N.c(),o=z(),_&&_.c(),s=z(),k&&k.c(),r=z(),L&&L.c(),a=z(),I&&I.c(),u=z(),R&&R.c(),d=z(),y&&y.c(),m=z(),H&&H.c(),b=z(),q&&q.c(),v=$e(),c(l,"class","controls v-1qfxnal"),S(l,"controls-hidden",!t[2]),S(l,"controls-fullscreen-mobile",t[27]&&t[18]),c(n,"class","wrapper-bottom v-1qfxnal"),S(n,"hidden",t[1]),S(n,"controls-hidden",!t[2]),S(n,"wrapper-bottom-fullscreen-desktop",t[27]&&!t[18])},m(T,W){w&&w.m(T,W),E(T,e,W),C&&C.m(T,W),E(T,i,W),E(T,n,W),f(n,l),N&&N.m(l,null),f(l,o),_&&_.m(l,null),f(l,s),k&&k.m(l,null),f(l,r),L&&L.m(l,null),f(l,a),I&&I.m(l,null),f(l,u),R&&R.m(l,null),f(l,d),y&&y.m(l,null),f(l,m),H&&H.m(l,null),t[64](n),E(T,b,W),q&&q.m(T,W),E(T,v,W),p=!0},p(T,W){T[18]&&!T[3]?w?(w.p(T,W),W[0]&262152&&g(w,1)):(w=dn(T),w.c(),g(w,1),w.m(e.parentNode,e)):w&&(se(),P(w,1,1,()=>{w=null}),re()),T[18]&&T[3]&&T[32]!==Be.INACTIVE?C?(C.p(T,W),W[0]&262152|W[1]&2&&g(C,1)):(C=hn(T),C.c(),g(C,1),C.m(i.parentNode,i)):C&&(se(),P(C,1,1,()=>{C=null}),re()),T[18]?N&&(se(),P(N,1,1,()=>{N=null}),re()):N?(N.p(T,W),W[0]&262144&&g(N,1)):(N=wn(T),N.c(),g(N,1),N.m(l,o)),!T[3]&&T[17]?_?(_.p(T,W),W[0]&131080&&g(_,1)):(_=kn(T),_.c(),g(_,1),_.m(l,s)):_&&(se(),P(_,1,1,()=>{_=null}),re()),T[18]?k&&(se(),P(k,1,1,()=>{k=null}),re()):k?(k.p(T,W),W[0]&262144&&g(k,1)):(k=Pn(T),k.c(),g(k,1),k.m(l,r)),T[25]?L?(L.p(T,W),W[0]&33554432&&g(L,1)):(L=Vn(T),L.c(),g(L,1),L.m(l,a)):L&&(se(),P(L,1,1,()=>{L=null}),re()),T[18]?I?(I.p(T,W),W[0]&262144&&g(I,1)):(I=An(T),I.c(),g(I,1),I.m(l,u)):I&&(se(),P(I,1,1,()=>{I=null}),re()),T[18]?R&&(se(),P(R,1,1,()=>{R=null}),re()):R?(R.p(T,W),W[0]&262144&&g(R,1)):(R=Sn(T),R.c(),g(R,1),R.m(l,d)),T[24]?y?(y.p(T,W),W[0]&16777216&&g(y,1)):(y=En(T),y.c(),g(y,1),y.m(l,m)):y&&(se(),P(y,1,1,()=>{y=null}),re()),T[18]?H&&(se(),P(H,1,1,()=>{H=null}),re()):H?(H.p(T,W),W[0]&262144&&g(H,1)):(H=zn(T),H.c(),g(H,1),H.m(l,null)),(!p||W[0]&4)&&S(l,"controls-hidden",!T[2]),(!p||W[0]&134479872)&&S(l,"controls-fullscreen-mobile",T[27]&&T[18]),(!p||W[0]&2)&&S(n,"hidden",T[1]),(!p||W[0]&4)&&S(n,"controls-hidden",!T[2]),(!p||W[0]&134479872)&&S(n,"wrapper-bottom-fullscreen-desktop",T[27]&&!T[18]),T[18]&&T[16]?q?(q.p(T,W),W[0]&327680&&g(q,1)):(q=Nn(T),q.c(),g(q,1),q.m(v.parentNode,v)):q&&(se(),P(q,1,1,()=>{q=null}),re())},i(T){p||(g(w),g(C),g(N),g(_),g(k),g(L),g(I),g(R),g(y),g(H),g(q),p=!0)},o(T){P(w),P(C),P(N),P(_),P(k),P(L),P(I),P(R),P(y),P(H),P(q),p=!1},d(T){w&&w.d(T),T&&M(e),C&&C.d(T),T&&M(i),T&&M(n),N&&N.d(),_&&_.d(),k&&k.d(),L&&L.d(),I&&I.d(),R&&R.d(),y&&y.d(),H&&H.d(),t[64](null),T&&M(b),q&&q.d(T),T&&M(v)}}}function Fr(t,e,i){let n,l,o,s,r,a,u,d,m,b,v,p,w,C,N,_,k,{hidden:L}=e,{showControls:I}=e,{controlsElementRef:R=void 0}=e,{isAds:y=!1}=e,{canRewindLive:H}=e,{logoClickable:q}=e,{logoHidden:T}=e,{showNextPrevButtons:W}=e,{nextButtonActive:J}=e,{prevButtonActive:D}=e,{isOneVideoPlaylist:U=!1}=e,{supportLink:G}=e,{playNextVideo:ie}=e,{playPrevVideo:Z}=e,{repeatPlaylist:j}=e,{toggleFullscreen:ne}=e;const ce=De(),Ve=ce.actions.internal.toggleMuted,je=ce.actions.internal.togglePlay,ze=ce.actions.internal.pause,me=ce.state.duration$;Q(t,me,K=>i(38,_=K));const ae=ce.state.positionWithScrubbing$;Q(t,ae,K=>i(37,N=K));const de=ce.state.playbackState$;Q(t,de,K=>i(31,m=K));const ge=ce.state.chromecastConnected$;Q(t,ge,K=>i(39,k=K));const be=ce.state.isEnded$;Q(t,be,K=>i(33,v=K));const Y=ce.state.isLive$;Q(t,Y,K=>i(17,o=K));const we=ce.state.isActiveLive$;Q(t,we,K=>i(36,C=K));const ue=ce.ui.scrubbingInProgress;Q(t,ue,K=>i(30,d=K));const F=ce.ui.isMobile;Q(t,F,K=>i(18,s=K));const O=ce.ui.mobileUnmuteButtonExpanded;Q(t,O,K=>i(29,u=K));const x=ce.ui.mobileUnmuteButtonVisible;Q(t,x,K=>i(28,a=K));const Fe=ce.ui.settingsMenuVisible;Q(t,Fe,K=>i(16,n=K));const It=ce.ads.duration;Q(t,It,K=>i(35,w=K));const nt=ce.ads.position;Q(t,nt,K=>i(34,p=K));const lt=ce.ads.playbackState;Q(t,lt,K=>i(32,b=K));const bt=ce.ui.isFullscreen;Q(t,bt,K=>i(27,r=K));const wt=ce.ui.playerSize;Q(t,wt,K=>i(63,l=K));const _t=()=>ce.actions.internal.toggleChromecast(),yt=()=>ce.actions.internal.switchToActiveLive();let ot,We,Je,kt,ct,et,ut,Pt;function dt(){x.set(!1),Ve()}function ft(K){Ge[K?"unshift":"push"](()=>{R=K,i(0,R)})}return t.$$set=K=>{"hidden"in K&&i(1,L=K.hidden),"showControls"in K&&i(2,I=K.showControls),"controlsElementRef"in K&&i(0,R=K.controlsElementRef),"isAds"in K&&i(3,y=K.isAds),"canRewindLive"in K&&i(4,H=K.canRewindLive),"logoClickable"in K&&i(5,q=K.logoClickable),"logoHidden"in K&&i(6,T=K.logoHidden),"showNextPrevButtons"in K&&i(7,W=K.showNextPrevButtons),"nextButtonActive"in K&&i(8,J=K.nextButtonActive),"prevButtonActive"in K&&i(9,D=K.prevButtonActive),"isOneVideoPlaylist"in K&&i(10,U=K.isOneVideoPlaylist),"supportLink"in K&&i(11,G=K.supportLink),"playNextVideo"in K&&i(12,ie=K.playNextVideo),"playPrevVideo"in K&&i(13,Z=K.playPrevVideo),"repeatPlaylist"in K&&i(14,j=K.repeatPlaylist),"toggleFullscreen"in K&&i(15,ne=K.toggleFullscreen)},t.$$.update=()=>{t.$$.dirty[2]&2&&i(19,ot=l.width<600),t.$$.dirty[0]&262144|t.$$.dirty[2]&2&&i(20,We=s||l.width>550),t.$$.dirty[0]&262144|t.$$.dirty[2]&2&&i(21,Je=s||l.width>450),t.$$.dirty[0]&262144|t.$$.dirty[2]&2&&i(22,kt=s||l.width>380),t.$$.dirty[0]&262144|t.$$.dirty[2]&2&&i(23,ct=s||l.width>300),t.$$.dirty[0]&262144|t.$$.dirty[2]&2&&i(24,et=s||l.width>220),t.$$.dirty[0]&131080|t.$$.dirty[2]&2&&i(25,ut=(!o||y)&&l.width>200),t.$$.dirty[0]&65540&&i(26,Pt=n||I)},[R,L,I,y,H,q,T,W,J,D,U,G,ie,Z,j,ne,n,o,s,ot,We,Je,kt,ct,et,ut,Pt,r,a,u,d,m,b,v,p,w,C,N,_,k,Ve,je,ze,me,ae,de,ge,be,Y,we,ue,F,O,x,Fe,It,nt,lt,bt,wt,_t,yt,dt,l,ft]}class qr extends pe{constructor(e){super(),he(this,e,Fr,Rr,ve,{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},Sr,[-1,-1,-1])}}function Hr(t){_e(t,"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 Dr(t){let e,i,n,l,o,s,r,a,u;return{c(){e=h("div"),i=h("div"),n=h("div"),l=z(),o=h("img"),c(n,"class","playButtonBackground v-y9pij4"),Pe(o.src,s=Ci)||c(o,"src",s),c(o,"class","playButtonIcon v-y9pij4"),c(o,"alt",""),c(i,"class","playButton v-y9pij4"),c(e,"class","container v-y9pij4"),c(e,"style",r=`background-color: #222; background-image: url('${t[0]||""}')`),S(e,"hidden",t[1])},m(d,m){E(d,e,m),f(e,i),f(i,n),f(i,l),f(i,o),a||(u=oe(e,"click",function(){Re(t[2])&&t[2].apply(this,arguments)}),a=!0)},p(d,[m]){t=d,m&1&&r!==(r=`background-color: #222; background-image: url('${t[0]||""}')`)&&c(e,"style",r),m&2&&S(e,"hidden",t[1])},i:B,o:B,d(d){d&&M(e),a=!1,u()}}}function jr(t,e,i){let{thumbUrl:n}=e,{hidden:l}=e,{startVideo:o}=e;return t.$$set=s=>{"thumbUrl"in s&&i(0,n=s.thumbUrl),"hidden"in s&&i(1,l=s.hidden),"startVideo"in s&&i(2,o=s.startVideo)},[n,l,o]}class Or extends pe{constructor(e){super(),he(this,e,jr,Dr,ve,{thumbUrl:0,hidden:1,startVideo:2},Hr)}}function Ur(t){_e(t,"v-8nkw5s",".container.v-8nkw5s.v-8nkw5s{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex}.dot.v-8nkw5s.v-8nkw5s:nth-child(1){animation-delay:calc(0 * 180ms)}.dot.v-8nkw5s.v-8nkw5s:nth-child(2){animation-delay:calc(1 * 180ms)}.dot.v-8nkw5s.v-8nkw5s:nth-child(3){animation-delay:calc(2 * 180ms)}@keyframes v-8nkw5s-dot_animation{0%{opacity:0.2}30%{opacity:1}100%{opacity:0.2}}.dot.v-8nkw5s.v-8nkw5s{border-radius:4px;width:8px;height:8px;background:var(--white);animation-duration:750ms;animation-name:v-8nkw5s-dot_animation;animation-iteration-count:infinite}.dot.v-8nkw5s+.dot.v-8nkw5s{margin-left:4px}")}function Qr(t){let e;return{c(){e=h("div"),e.innerHTML=`<div class="dot v-8nkw5s"></div>
|
|
17
17
|
<div class="dot v-8nkw5s"></div>
|
|
18
|
-
<div class="dot v-8nkw5s"></div>`,c(e,"class","container v-8nkw5s")},m(i,n){
|
|
19
|
-
<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>`,c(e,"class","skip v-22jj8o")},m(l,o){
|
|
18
|
+
<div class="dot v-8nkw5s"></div>`,c(e,"class","container v-8nkw5s")},m(i,n){E(i,e,n)},p:B,i:B,o:B,d(i){i&&M(e)}}}class Wr extends pe{constructor(e){super(),he(this,e,null,Qr,ve,{},Ur)}}function Yr(t){const e=De();return Nt(()=>{e.getAdmanWrapper().startPostroll()}),[]}class Kr extends pe{constructor(e){super(),he(this,e,Yr,null,ve,{})}}function Xr(t){_e(t,"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 Gr(t){let e,i,n;return{c(){e=h("div"),i=fe("\u0420\u0435\u043A\u043B\u0430\u043C\u0430 "),n=fe(t[0]),c(e,"class","container v-17pubzn"),S(e,"container-mobile",t[1])},m(l,o){E(l,e,o),f(e,i),f(e,n)},p(l,[o]){o&1&&Me(n,l[0]),o&2&&S(e,"container-mobile",l[1])},i:B,o:B,d(l){l&&M(e)}}}function xr(t,e,i){let n,{position:l=0}=e,{duration:o=0}=e;const r=De().ui.isMobile;Q(t,r,u=>i(1,n=u));let a;return t.$$set=u=>{"position"in u&&i(3,l=u.position),"duration"in u&&i(4,o=u.duration)},t.$$.update=()=>{t.$$.dirty&24&&i(0,a=ht(o-l))},[a,n,r,l,o]}class Jr extends pe{constructor(e){super(),he(this,e,xr,Gr,ve,{position:3,duration:4},Xr)}}function Zr(t){_e(t,"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 $r(t){let e,i=Math.ceil(t[1]-t[0])+"",n,l;return{c(){e=fe("\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443 \u0447\u0435\u0440\u0435\u0437 "),n=fe(i),l=fe(" \u0441")},m(o,s){E(o,e,s),E(o,n,s),E(o,l,s)},p(o,s){s&3&&i!==(i=Math.ceil(o[1]-o[0])+"")&&Me(n,i)},d(o){o&&M(e),o&&M(n),o&&M(l)}}}function ea(t){let e,i,n;return{c(){e=h("div"),e.innerHTML=`\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443
|
|
19
|
+
<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>`,c(e,"class","skip v-22jj8o")},m(l,o){E(l,e,o),i||(n=oe(e,"click",function(){Re(t[2])&&t[2].apply(this,arguments)}),i=!0)},p(l,o){t=l},d(l){l&&M(e),i=!1,n()}}}function ta(t){let e;function i(o,s){return o[3]?ea:$r}let n=i(t),l=n(t);return{c(){e=h("div"),l.c(),c(e,"class","container v-22jj8o"),S(e,"container-mobile",t[4]),S(e,"skippable",t[3])},m(o,s){E(o,e,s),l.m(e,null)},p(o,[s]){n===(n=i(o))&&l?l.p(o,s):(l.d(1),l=n(o),l&&(l.c(),l.m(e,null))),s&16&&S(e,"container-mobile",o[4]),s&8&&S(e,"skippable",o[3])},i:B,o:B,d(o){o&&M(e),l.d()}}}function ia(t,e,i){let n,{position:l=0}=e,{secondsToWatchBeforeSkip:o=0}=e,{skipAd:s=B}=e;const a=De().ui.isMobile;Q(t,a,d=>i(4,n=d));let u;return t.$$set=d=>{"position"in d&&i(0,l=d.position),"secondsToWatchBeforeSkip"in d&&i(1,o=d.secondsToWatchBeforeSkip),"skipAd"in d&&i(2,s=d.skipAd)},t.$$.update=()=>{t.$$.dirty&3&&i(3,u=l>0&&l>=o)},[l,o,s,u,n,a]}class na extends pe{constructor(e){super(),he(this,e,ia,ta,ve,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},Zr)}}function la(t){_e(t,"v-1wy3dql","button.v-1wy3dql{position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black}")}function oa(t){let e;return{c(){e=h("button"),e.textContent="\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",c(e,"class","v-1wy3dql")},m(i,n){E(i,e,n)},p:B,i:B,o:B,d(i){i&&M(e)}}}class sa extends pe{constructor(e){super(),he(this,e,null,oa,ve,{},la)}}function ra(t){_e(t,"v-354ajf",`.container.v-354ajf{width:100%;height:100%}.top-gradient-mobile.v-354ajf{position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
|
|
20
20
|
360deg,
|
|
21
21
|
rgba(0, 0, 0, 0) 0%,
|
|
22
22
|
rgba(0, 0, 0, 0.05) 12%,
|
|
@@ -26,12 +26,12 @@ import{VideoQuality as Qe,PlaybackState as At,ChromecastState as qt,Player as Dl
|
|
|
26
26
|
rgba(0, 0, 0, 0.5) 77%,
|
|
27
27
|
rgba(0, 0, 0, 0.55) 88%,
|
|
28
28
|
rgba(0, 0, 0, 0.65) 100%
|
|
29
|
-
)}`)}function An(t){let e;return{c(){e=g("div"),c(e,"class","top-gradient-mobile v-354ajf")},m(i,n){M(i,e,n)},d(i){i&&C(e)}}}function Cn(t){let e,i;return e=new B1({props:{position:t[6],duration:t[7]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l&64&&(o.position=n[6]),l&128&&(o.duration=n[7]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Mn(t){let e,i;return e=new j1({props:{position:t[6],secondsToWatchBeforeSkip:t[8],skipAd:t[10].actions.internal.skipAd}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l&64&&(o.position=n[6]),l&256&&(o.secondsToWatchBeforeSkip=n[8]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function zn(t){let e,i;return e=new T1({}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Tn(t){let e,i;return e=new O1({}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Y1(t){let e,i,n,l,o,s,a,r,u=t[0]&&An(),d=t[3]&&Cn(t),m=t[4]&&Mn(t),_=t[9]&&zn(),h=t[5]&&Tn();return{c(){e=g("div"),u&&u.c(),i=L(),n=g("video"),l=L(),d&&d.c(),o=L(),m&&m.c(),s=L(),_&&_.c(),a=L(),h&&h.c(),Ft(n,"width","100%"),Ft(n,"height","100%"),n.playsInline=!0,c(e,"class","container v-354ajf")},m(b,w){M(b,e,w),u&&u.m(e,null),f(e,i),f(e,n),t[22](n),f(e,l),d&&d.m(e,null),f(e,o),m&&m.m(e,null),f(e,s),_&&_.m(e,null),f(e,a),h&&h.m(e,null),t[23](e),r=!0},p(b,[w]){b[0]?u||(u=An(),u.c(),u.m(e,i)):u&&(u.d(1),u=null),b[3]?d?(d.p(b,w),w&8&&v(d,1)):(d=Cn(b),d.c(),v(d,1),d.m(e,o)):d&&(oe(),y(d,1,1,()=>{d=null}),se()),b[4]?m?(m.p(b,w),w&16&&v(m,1)):(m=Mn(b),m.c(),v(m,1),m.m(e,s)):m&&(oe(),y(m,1,1,()=>{m=null}),se()),b[9]?_?w&512&&v(_,1):(_=zn(),_.c(),v(_,1),_.m(e,a)):_&&(oe(),y(_,1,1,()=>{_=null}),se()),b[5]?h?w&32&&v(h,1):(h=Tn(),h.c(),v(h,1),h.m(e,null)):h&&(oe(),y(h,1,1,()=>{h=null}),se())},i(b){r||(v(d),v(m),v(_),v(h),r=!0)},o(b){y(d),y(m),y(_),y(h),r=!1},d(b){b&&C(e),u&&u.d(),t[22](null),d&&d.d(),m&&m.d(),_&&_.d(),h&&h.d(),t[23](null)}}}function W1(t,e,i){let n,l,o,s,a,r,{adsSlotId:u=void 0}=e,{adsParams:d=void 0}=e,{adsPreviewParam:m=void 0}=e,{duration:_=0}=e;const h=De(),b=h.state.isEnded$;Y(t,b,H=>i(9,r=H));const w=h.ui.isMobile;Y(t,w,H=>i(0,l=H));let z,E,p=!1;const k=h.ads.playbackState;Y(t,k,H=>i(21,n=H));const T=h.ads.canSkip,F=h.ads.duration;Y(t,F,H=>i(7,s=H));const V=h.ads.position;Y(t,V,H=>i(6,o=H));const I=h.ads.secondsToWatchBeforeSkip;Y(t,I,H=>i(8,a=H));let O,D,N;Mt(()=>{const H=new AbortController;let U=()=>{H.abort()};const X=h.getAdmanWrapper();if(!u){X.onAdmanLoadingError();return}const{width:pe,height:Z}=Be(h.ui.playerSize),j=Be(h.ui.isFullscreen),ie=Be(h.ui.isAutoplay),re={width:pe,height:Z,isFullscreen:j,isAutoplay:ie,adsContainer:z,adsVideoElement:E,slotId:u,params:d,previewParam:m,duration:_};return window.AdmanHTML?(X.initAdman(re),p=!0):X.loadAdman(H.signal).then(()=>{X.initAdman(re),p=!0}).catch(()=>{X.onAdmanLoadingError()}),()=>{!p&&U()}});function K(H){Ye[H?"unshift":"push"](()=>{E=H,i(2,E)})}function J(H){Ye[H?"unshift":"push"](()=>{z=H,i(1,z)})}return t.$$set=H=>{"adsSlotId"in H&&i(17,u=H.adsSlotId),"adsParams"in H&&i(18,d=H.adsParams),"adsPreviewParam"in H&&i(19,m=H.adsPreviewParam),"duration"in H&&i(20,_=H.duration)},t.$$.update=()=>{t.$$.dirty&2097152&&i(3,O=n!==Ie.INACTIVE),t.$$.dirty&2097152&&i(4,D=T&&n!==Ie.INACTIVE),t.$$.dirty&2097153&&i(5,N=l&&n!==Ie.INACTIVE)},[l,z,E,O,D,N,o,s,a,r,h,b,w,k,F,V,I,u,d,m,_,n,K,J]}class K1 extends he{constructor(e){super(),ge(this,e,W1,Y1,me,{adsSlotId:17,adsParams:18,adsPreviewParam:19,duration:20},Q1)}}function X1(t){we(t,"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 G1(t){let e,i,n,l,o,s,a,r;return{c(){e=g("ul"),i=g("li"),i.textContent="\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",n=L(),l=g("li"),l.textContent="\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",o=L(),s=g("li"),s.textContent="\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",c(i,"class","v-p5rs9b"),c(l,"class","v-p5rs9b"),c(s,"class","v-p5rs9b"),Ft(e,"top",t[1]+"px"),Ft(e,"left",t[0]+"px"),c(e,"class","v-p5rs9b"),A(e,"hidden",!t[2])},m(u,d){M(u,e,d),f(e,i),f(e,n),f(e,l),f(e,o),f(e,s),t[10](e),a||(r=[le(i,"click",t[4]),le(l,"click",t[5]),le(s,"click",t[6])],a=!0)},p(u,[d]){d&2&&Ft(e,"top",u[1]+"px"),d&1&&Ft(e,"left",u[0]+"px"),d&4&&A(e,"hidden",!u[2])},i:B,o:B,d(u){u&&C(e),t[10](null),a=!1,We(r)}}}function J1(t,e,i){let{visible:n=!1}=e,{supportLink:l}=e,{x:o=0}=e,{y:s=0}=e,{playerContainerRef:a=void 0}=e,{controlsContainerRef:r=void 0}=e;const u=De(),d=u.ui.contextMenuVisible,m=u.ui.debugPanelVisible;let _;const h=(p,k)=>{if(!_||!a||!r)return;const T=_.getBoundingClientRect(),F=a.getBoundingClientRect(),V=r.getBoundingClientRect();i(0,o=p-F.left),i(1,s=k-F.top),o+T.width>F.width&&i(0,o-=T.width),s+T.height>F.height-V.height&&i(1,s-=T.height)},b=p=>{window.open(l,"_blank"),d.set(!1),u.actions.internal.pause(),p.stopPropagation()},w=p=>{gl(u.actions.internal.getDebugTextData()),d.set(!1),p.stopPropagation()},z=p=>{m.set(!0),d.set(!1),p.stopPropagation()};function E(p){Ye[p?"unshift":"push"](()=>{_=p,i(3,_)})}return t.$$set=p=>{"visible"in p&&i(2,n=p.visible),"supportLink"in p&&i(7,l=p.supportLink),"x"in p&&i(0,o=p.x),"y"in p&&i(1,s=p.y),"playerContainerRef"in p&&i(8,a=p.playerContainerRef),"controlsContainerRef"in p&&i(9,r=p.controlsContainerRef)},t.$$.update=()=>{t.$$.dirty&3&&h(o,s)},[o,s,n,_,b,w,z,l,a,r,E]}class Z1 extends he{constructor(e){super(),ge(this,e,J1,G1,me,{visible:2,supportLink:7,x:0,y:1,playerContainerRef:8,controlsContainerRef:9},X1)}}class x1{constructor(e){this.value=e,this.next=null}}class di{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){const i=new x1(e);this.top?(this.top.next=i,this.top=i):(this.top=i,this.bottom=i),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){const e=[];let i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}}function $1(t){we(t,"v-1ssl9eb",".container.v-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.v-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function ea(t){let e,i;return{c(){e=g("div"),i=g("canvas"),c(i,"class","v-1ssl9eb"),c(e,"class","container v-1ssl9eb")},m(n,l){M(n,e,l),f(e,i),t[3](i)},p:B,i:B,o:B,d(n){n&&C(e),t[3](null)}}}const fi=16,mi=120,Ln=60;function ta(t,e,i,n,l){l===0&&(l=1),t.fillStyle="#fff",t.fillRect(e,i,n,l)}function ia(t,e,i){let{values:n=[]}=e,l,o;const s=mi/Ln;Mt(()=>{i(0,l.width=mi,l),i(0,l.height=fi,l),i(2,o=l.getContext("2d"))});function a(r){Ye[r?"unshift":"push"](()=>{l=r,i(0,l)})}return t.$$set=r=>{"values"in r&&i(1,n=r.values)},t.$$.update=()=>{if(t.$$.dirty&6&&o){let r=n[0];for(let d=1;d<n.length;d++)n[d]>r&&(r=n[d]);o.clearRect(0,0,mi,fi);let u=Ln-1;for(let d=n.length-1;d>=0;d--){const m=u*s,_=r>0?fi*(n[d]/r):0;ta(o,m,0,s,_),u--}}},[l,n,o,a]}class Vi extends he{constructor(e){super(),ge(this,e,ia,ea,me,{values:1},$1)}}const Ct={set:(t,e)=>{try{localStorage.setItem(t,JSON.stringify(e))}catch(i){}},get:t=>{try{const e=localStorage.getItem(t);return e?JSON.parse(e):null}catch(e){return null}},remove(t){try{localStorage.removeItem(t)}catch(e){}}};function na(t){we(t,"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 En(t){let e,i,n,l,o=t[0].id+"",s;return{c(){e=g("div"),i=g("div"),i.textContent="Video id",n=L(),l=g("span"),s=de(o),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(a,r){M(a,e,r),f(e,i),f(e,n),f(e,l),f(l,s)},p(a,r){r&1&&o!==(o=a[0].id+"")&&Me(s,o)},d(a){a&&C(e)}}}function Nn(t){let e,i,n,l,o=t[0].provider+"",s;return{c(){e=g("div"),i=g("div"),i.textContent="Provider",n=L(),l=g("span"),s=de(o),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(a,r){M(a,e,r),f(e,i),f(e,n),f(e,l),f(l,s)},p(a,r){r&1&&o!==(o=a[0].provider+"")&&Me(s,o)},d(a){a&&C(e)}}}function Bn(t){let e,i,n,l,o=t[0].viewport+"",s;return{c(){e=g("div"),i=g("div"),i.textContent="Viewport",n=L(),l=g("span"),s=de(o),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(a,r){M(a,e,r),f(e,i),f(e,n),f(e,l),f(l,s)},p(a,r){r&1&&o!==(o=a[0].viewport+"")&&Me(s,o)},d(a){a&&C(e)}}}function In(t){let e,i,n,l,o=t[0].videoSize+"",s;return{c(){e=g("div"),i=g("div"),i.textContent="Video size",n=L(),l=g("span"),s=de(o),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(a,r){M(a,e,r),f(e,i),f(e,n),f(e,l),f(l,s)},p(a,r){r&1&&o!==(o=a[0].videoSize+"")&&Me(s,o)},d(a){a&&C(e)}}}function Fn(t){let e,i,n,l,o=t[0].cdn+"",s;return{c(){e=g("div"),i=g("div"),i.textContent="CDN host",n=L(),l=g("span"),s=de(o),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(a,r){M(a,e,r),f(e,i),f(e,n),f(e,l),f(l,s)},p(a,r){r&1&&o!==(o=a[0].cdn+"")&&Me(s,o)},d(a){a&&C(e)}}}function Rn(t){let e,i,n,l,o=t[0].volume+"",s,a;return{c(){e=g("div"),i=g("div"),i.textContent="Volume",n=L(),l=g("span"),s=de(o),a=de(" %"),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(r,u){M(r,e,u),f(e,i),f(e,n),f(e,l),f(l,s),f(l,a)},p(r,u){u&1&&o!==(o=r[0].volume+"")&&Me(s,o)},d(r){r&&C(e)}}}function qn(t){let e,i,n,l,o=t[0].buffer.toFixed(2)+"",s,a;return{c(){e=g("div"),i=g("div"),i.textContent="Buffer",n=L(),l=g("span"),s=de(o),a=de(" s"),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(r,u){M(r,e,u),f(e,i),f(e,n),f(e,l),f(l,s),f(l,a)},p(r,u){u&1&&o!==(o=r[0].buffer.toFixed(2)+"")&&Me(s,o)},d(r){r&&C(e)}}}function Dn(t){let e,i,n,l,o,s,a=t[0].speed.toFixed(2)+"",r,u,d;return l=new Vi({props:{values:t[5]}}),{c(){e=g("div"),i=g("div"),i.textContent="Network",n=L(),te(l.$$.fragment),o=L(),s=g("span"),r=de(a),u=de(" Kbps"),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(m,_){M(m,e,_),f(e,i),f(e,n),$(l,e,null),f(e,o),f(e,s),f(s,r),f(s,u),d=!0},p(m,_){const h={};_&32&&(h.values=m[5]),l.$set(h),(!d||_&1)&&a!==(a=m[0].speed.toFixed(2)+"")&&Me(r,a)},i(m){d||(v(l.$$.fragment,m),d=!0)},o(m){y(l.$$.fragment,m),d=!1},d(m){m&&C(e),ee(l)}}}function jn(t){let e,i,n,l,o,s,a=t[0].bitrate.toFixed(2)+"",r,u,d;return l=new Vi({props:{values:t[6]}}),{c(){e=g("div"),i=g("div"),i.textContent="V bitrate",n=L(),te(l.$$.fragment),o=L(),s=g("span"),r=de(a),u=de(" Kbps"),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(m,_){M(m,e,_),f(e,i),f(e,n),$(l,e,null),f(e,o),f(e,s),f(s,r),f(s,u),d=!0},p(m,_){const h={};_&64&&(h.values=m[6]),l.$set(h),(!d||_&1)&&a!==(a=m[0].bitrate.toFixed(2)+"")&&Me(r,a)},i(m){d||(v(l.$$.fragment,m),d=!0)},o(m){y(l.$$.fragment,m),d=!1},d(m){m&&C(e),ee(l)}}}function la(t){let e,i,n,l,o,s,a,r,u=t[0].version+"",d,m,_,h,b,w,z,E,p,k,T,F,V,I,O,D,N,K,J,H,U,X,pe,Z,j,ie,re,Se,ze,Re,ue=t[0].id&&En(t),fe=t[0].provider&&Nn(t),ce=t[0].viewport&&Bn(t),ve=t[0].videoSize&&In(t),_e=t[0].cdn&&Fn(t),Q=t[0].volume&&Rn(t),be=t[0].buffer&&qn(t),ae=t[0].speed&&Dn(t),R=t[0].bitrate&&jn(t);return Z=new Vi({props:{values:t[4]}}),{c(){e=g("div"),i=g("button"),i.textContent="[x]",n=L(),l=g("div"),o=g("div"),s=g("div"),s.textContent="Version",a=L(),r=g("span"),d=de(u),m=L(),ue&&ue.c(),_=L(),fe&&fe.c(),h=L(),ce&&ce.c(),b=L(),ve&&ve.c(),w=L(),_e&&_e.c(),z=L(),Q&&Q.c(),E=L(),be&&be.c(),p=L(),k=g("div"),T=g("div"),T.textContent="Dropped",F=L(),V=g("span"),I=de(t[2]),O=de(" / "),D=de(t[1]),N=de(" frames"),K=L(),ae&&ae.c(),J=L(),R&&R.c(),H=L(),U=g("div"),X=g("div"),X.textContent="FPS",pe=L(),te(Z.$$.fragment),j=L(),ie=g("span"),re=de(t[3]),c(i,"class","close v-1gy2e68"),c(i,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),c(s,"class","v-1gy2e68"),c(o,"class","v-1gy2e68"),c(T,"class","v-1gy2e68"),c(k,"class","v-1gy2e68"),c(X,"class","v-1gy2e68"),c(U,"class","v-1gy2e68"),c(l,"class","content v-1gy2e68"),c(e,"class","container v-1gy2e68"),A(e,"container-mobile",t[7])},m(q,x){M(q,e,x),f(e,i),f(e,n),f(e,l),f(l,o),f(o,s),f(o,a),f(o,r),f(r,d),f(l,m),ue&&ue.m(l,null),f(l,_),fe&&fe.m(l,null),f(l,h),ce&&ce.m(l,null),f(l,b),ve&&ve.m(l,null),f(l,w),_e&&_e.m(l,null),f(l,z),Q&&Q.m(l,null),f(l,E),be&&be.m(l,null),f(l,p),f(l,k),f(k,T),f(k,F),f(k,V),f(V,I),f(V,O),f(V,D),f(V,N),f(l,K),ae&&ae.m(l,null),f(l,J),R&&R.m(l,null),f(l,H),f(l,U),f(U,X),f(U,pe),$(Z,U,null),f(U,j),f(U,ie),f(ie,re),Se=!0,ze||(Re=le(i,"click",t[9]),ze=!0)},p(q,[x]){(!Se||x&1)&&u!==(u=q[0].version+"")&&Me(d,u),q[0].id?ue?ue.p(q,x):(ue=En(q),ue.c(),ue.m(l,_)):ue&&(ue.d(1),ue=null),q[0].provider?fe?fe.p(q,x):(fe=Nn(q),fe.c(),fe.m(l,h)):fe&&(fe.d(1),fe=null),q[0].viewport?ce?ce.p(q,x):(ce=Bn(q),ce.c(),ce.m(l,b)):ce&&(ce.d(1),ce=null),q[0].videoSize?ve?ve.p(q,x):(ve=In(q),ve.c(),ve.m(l,w)):ve&&(ve.d(1),ve=null),q[0].cdn?_e?_e.p(q,x):(_e=Fn(q),_e.c(),_e.m(l,z)):_e&&(_e.d(1),_e=null),q[0].volume?Q?Q.p(q,x):(Q=Rn(q),Q.c(),Q.m(l,E)):Q&&(Q.d(1),Q=null),q[0].buffer?be?be.p(q,x):(be=qn(q),be.c(),be.m(l,p)):be&&(be.d(1),be=null),(!Se||x&4)&&Me(I,q[2]),(!Se||x&2)&&Me(D,q[1]),q[0].speed?ae?(ae.p(q,x),x&1&&v(ae,1)):(ae=Dn(q),ae.c(),v(ae,1),ae.m(l,J)):ae&&(oe(),y(ae,1,1,()=>{ae=null}),se()),q[0].bitrate?R?(R.p(q,x),x&1&&v(R,1)):(R=jn(q),R.c(),v(R,1),R.m(l,H)):R&&(oe(),y(R,1,1,()=>{R=null}),se());const je={};x&16&&(je.values=q[4]),Z.$set(je),(!Se||x&8)&&Me(re,q[3]),(!Se||x&128)&&A(e,"container-mobile",q[7])},i(q){Se||(v(ae),v(R),v(Z.$$.fragment,q),Se=!0)},o(q){y(ae),y(R),y(Z.$$.fragment,q),Se=!1},d(q){q&&C(e),ue&&ue.d(),fe&&fe.d(),ce&&ce.d(),ve&&ve.d(),_e&&_e.d(),Q&&Q.d(),be&&be.d(),ae&&ae.d(),R&&R.d(),ee(Z),ze=!1,Re()}}}function oa(t,e,i){let n;const l=De(),o=l.ui.debugPanelVisible,s=l.ui.isMobile;Y(t,s,k=>i(7,n=k));const a=k=>{Ct.set(pi,!1),o.set(!1),k.stopPropagation()};let r=l.actions.internal.getDebugPanelData(),u=l.actions.internal.getVideoElement(),d=0,m=0,_=0;const h=new di(60),b=new di(60),w=new di(60);let z=[],E=[],p=[];return Mt(()=>{Ct.set(pi,!0),l.actions.internal.startLogging(),u&&(i(2,m=u.getVideoPlaybackQuality().droppedVideoFrames),i(1,d=u.getVideoPlaybackQuality().totalVideoFrames));const k=window.setInterval(()=>{i(0,r=l.actions.internal.getDebugPanelData())},500);let T;return u&&(T=window.setInterval(()=>{if(u){i(2,m=u.getVideoPlaybackQuality().droppedVideoFrames);const F=u.getVideoPlaybackQuality().totalVideoFrames;i(3,_=F-d),i(1,d=F),h.push(_),r.speed&&b.push(r.speed),r.bitrate&&w.push(r.bitrate),i(4,z=h.getValuesFromBottom()),i(5,E=b.getValuesFromBottom()),i(6,p=w.getValuesFromBottom())}},1e3)),()=>{l.actions.internal.stopLogging(),clearInterval(k),T&&clearInterval(T)}}),[r,d,m,_,z,E,p,n,s,a]}class sa extends he{constructor(e){super(),ge(this,e,oa,la,me,{},na)}}function aa(t){we(t,"v-1ome55p",".close.v-1ome55p{cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px}.close.v-1ome55p:hover{opacity:1}.close.v-1ome55p:before,.close.v-1ome55p:after{position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white)}.close.v-1ome55p:before{transform:rotate(45deg)}.close.v-1ome55p:after{transform:rotate(-45deg)}")}function ra(t){let e,i,n;return{c(){e=g("div"),c(e,"class","close v-1ome55p")},m(l,o){M(l,e,o),i||(n=le(e,"click",t[0]),i=!0)},p:B,i:B,o:B,d(l){l&&C(e),i=!1,n()}}}function ca(t){function e(i){xe.call(this,t,i)}return[e]}class ua extends he{constructor(e){super(),ge(this,e,ca,ra,me,{},aa)}}function da(t){we(t,"v-8jhsry",`.timer.v-8jhsry{border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around}.timer.v-8jhsry:hover{background:rgba(31, 31, 31, .85)
|
|
30
|
-
}.timer-canvas.v-8jhsry{width:50px;height:50px;position:absolute}.timer-play-icon.v-8jhsry{width:22px;height:26px}`)}function
|
|
29
|
+
)}`)}function In(t){let e;return{c(){e=h("div"),c(e,"class","top-gradient-mobile v-354ajf")},m(i,n){E(i,e,n)},d(i){i&&M(e)}}}function Bn(t){let e,i;return e=new Jr({props:{position:t[6],duration:t[7]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l&64&&(o.position=n[6]),l&128&&(o.duration=n[7]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Rn(t){let e,i;return e=new na({props:{position:t[6],secondsToWatchBeforeSkip:t[8],skipAd:t[10].actions.internal.skipAd}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l&64&&(o.position=n[6]),l&256&&(o.secondsToWatchBeforeSkip=n[8]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Fn(t){let e,i;return e=new Kr({}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function qn(t){let e,i;return e=new sa({}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function aa(t){let e,i,n,l,o,s,r,a,u=t[0]&&In(),d=t[3]&&Bn(t),m=t[4]&&Rn(t),b=t[9]&&Fn(),v=t[5]&&qn();return{c(){e=h("div"),u&&u.c(),i=z(),n=h("video"),l=z(),d&&d.c(),o=z(),m&&m.c(),s=z(),b&&b.c(),r=z(),v&&v.c(),Dt(n,"width","100%"),Dt(n,"height","100%"),n.playsInline=!0,c(e,"class","container v-354ajf")},m(p,w){E(p,e,w),u&&u.m(e,null),f(e,i),f(e,n),t[22](n),f(e,l),d&&d.m(e,null),f(e,o),m&&m.m(e,null),f(e,s),b&&b.m(e,null),f(e,r),v&&v.m(e,null),t[23](e),a=!0},p(p,[w]){p[0]?u||(u=In(),u.c(),u.m(e,i)):u&&(u.d(1),u=null),p[3]?d?(d.p(p,w),w&8&&g(d,1)):(d=Bn(p),d.c(),g(d,1),d.m(e,o)):d&&(se(),P(d,1,1,()=>{d=null}),re()),p[4]?m?(m.p(p,w),w&16&&g(m,1)):(m=Rn(p),m.c(),g(m,1),m.m(e,s)):m&&(se(),P(m,1,1,()=>{m=null}),re()),p[9]?b?w&512&&g(b,1):(b=Fn(),b.c(),g(b,1),b.m(e,r)):b&&(se(),P(b,1,1,()=>{b=null}),re()),p[5]?v?w&32&&g(v,1):(v=qn(),v.c(),g(v,1),v.m(e,null)):v&&(se(),P(v,1,1,()=>{v=null}),re())},i(p){a||(g(d),g(m),g(b),g(v),a=!0)},o(p){P(d),P(m),P(b),P(v),a=!1},d(p){p&&M(e),u&&u.d(),t[22](null),d&&d.d(),m&&m.d(),b&&b.d(),v&&v.d(),t[23](null)}}}function ca(t,e,i){let n,l,o,s,r,a,{adsSlotId:u=void 0}=e,{adsParams:d=void 0}=e,{adsPreviewParam:m=void 0}=e,{duration:b=0}=e;const v=De(),p=v.state.isEnded$;Q(t,p,D=>i(9,a=D));const w=v.ui.isMobile;Q(t,w,D=>i(0,l=D));let C,N,_=!1;const k=v.ads.playbackState;Q(t,k,D=>i(21,n=D));const L=v.ads.canSkip,I=v.ads.duration;Q(t,I,D=>i(7,s=D));const R=v.ads.position;Q(t,R,D=>i(6,o=D));const y=v.ads.secondsToWatchBeforeSkip;Q(t,y,D=>i(8,r=D));let H,q,T;Nt(()=>{const D=new AbortController;let U=()=>{D.abort()};const G=v.getAdmanWrapper();if(!u){G.onAdmanLoadingError();return}const{width:ie,height:Z}=Ie(v.ui.playerSize),j=Ie(v.ui.isFullscreen),ne=Ie(v.ui.isAutoplay),ce={width:ie,height:Z,isFullscreen:j,isAutoplay:ne,adsContainer:C,adsVideoElement:N,slotId:u,params:d,previewParam:m,duration:b};return window.AdmanHTML?(G.initAdman(ce),_=!0):G.loadAdman(D.signal).then(()=>{G.initAdman(ce),_=!0}).catch(()=>{G.onAdmanLoadingError()}),()=>{!_&&U()}});function W(D){Ge[D?"unshift":"push"](()=>{N=D,i(2,N)})}function J(D){Ge[D?"unshift":"push"](()=>{C=D,i(1,C)})}return t.$$set=D=>{"adsSlotId"in D&&i(17,u=D.adsSlotId),"adsParams"in D&&i(18,d=D.adsParams),"adsPreviewParam"in D&&i(19,m=D.adsPreviewParam),"duration"in D&&i(20,b=D.duration)},t.$$.update=()=>{t.$$.dirty&2097152&&i(3,H=n!==Be.INACTIVE),t.$$.dirty&2097152&&i(4,q=L&&n!==Be.INACTIVE),t.$$.dirty&2097153&&i(5,T=l&&n!==Be.INACTIVE)},[l,C,N,H,q,T,o,s,r,a,v,p,w,k,I,R,y,u,d,m,b,n,W,J]}class ua extends pe{constructor(e){super(),he(this,e,ca,aa,ve,{adsSlotId:17,adsParams:18,adsPreviewParam:19,duration:20},ra)}}function da(t){_e(t,"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 fa(t){let e,i,n;return{c(){e=h("li"),e.textContent="\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",c(e,"class","v-p5rs9b")},m(l,o){E(l,e,o),i||(n=oe(e,"click",t[8]),i=!0)},p:B,d(l){l&&M(e),i=!1,n()}}}function ma(t){let e,i,n,l,o,s,r,a,u,d=t[4]&&fa(t);return{c(){e=h("ul"),d&&d.c(),i=z(),n=h("li"),n.textContent="\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",l=z(),o=h("li"),o.textContent="\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",s=z(),r=h("li"),r.textContent="\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",c(n,"class","v-p5rs9b"),c(o,"class","v-p5rs9b"),c(r,"class","v-p5rs9b"),Dt(e,"top",t[1]+"px"),Dt(e,"left",t[0]+"px"),c(e,"class","v-p5rs9b"),S(e,"hidden",!t[2])},m(m,b){E(m,e,b),d&&d.m(e,null),f(e,i),f(e,n),f(e,l),f(e,o),f(e,s),f(e,r),t[12](e),a||(u=[oe(n,"click",t[5]),oe(o,"click",t[6]),oe(r,"click",t[7])],a=!0)},p(m,[b]){m[4]&&d.p(m,b),b&2&&Dt(e,"top",m[1]+"px"),b&1&&Dt(e,"left",m[0]+"px"),b&4&&S(e,"hidden",!m[2])},i:B,o:B,d(m){m&&M(e),d&&d.d(),t[12](null),a=!1,xe(u)}}}function va(t,e,i){var n=this&&this.__awaiter||function(I,R,y,H){function q(T){return T instanceof y?T:new y(function(W){W(T)})}return new(y||(y=Promise))(function(T,W){function J(G){try{U(H.next(G))}catch(ie){W(ie)}}function D(G){try{U(H.throw(G))}catch(ie){W(ie)}}function U(G){G.done?T(G.value):q(G.value).then(J,D)}U((H=H.apply(I,R||[])).next())})};let{visible:l=!1}=e,{supportLink:o}=e,{x:s=0}=e,{y:r=0}=e,{playerContainerRef:a=void 0}=e,{controlsContainerRef:u=void 0}=e;const d=De(),m=d.ui.contextMenuVisible,b=d.ui.debugPanelVisible,v=d.webApi.pictureInPictureApi;let p;const w=(I,R)=>{if(!p||!a||!u)return;const y=p.getBoundingClientRect(),H=a.getBoundingClientRect(),q=u.getBoundingClientRect();i(0,s=I-H.left),i(1,r=R-H.top),s+y.width>H.width&&i(0,s-=y.width),r+y.height>H.height-q.height&&i(1,r-=y.height)},C=I=>{window.open(o,"_blank"),m.set(!1),d.actions.internal.pause(),I.stopPropagation()},N=I=>{Al(d.actions.internal.getDebugTextData()),m.set(!1),I.stopPropagation()},_=I=>{b.set(!0),m.set(!1),I.stopPropagation()},k=I=>n(void 0,void 0,void 0,function*(){v!=null&&v.isActive()?yield v==null?void 0:v.remove():yield v==null?void 0:v.request(),m.set(!1),I.stopPropagation()});function L(I){Ge[I?"unshift":"push"](()=>{p=I,i(3,p)})}return t.$$set=I=>{"visible"in I&&i(2,l=I.visible),"supportLink"in I&&i(9,o=I.supportLink),"x"in I&&i(0,s=I.x),"y"in I&&i(1,r=I.y),"playerContainerRef"in I&&i(10,a=I.playerContainerRef),"controlsContainerRef"in I&&i(11,u=I.controlsContainerRef)},t.$$.update=()=>{t.$$.dirty&3&&w(s,r)},[s,r,l,p,v,C,N,_,k,o,a,u,L]}class ga extends pe{constructor(e){super(),he(this,e,va,ma,ve,{visible:2,supportLink:9,x:0,y:1,playerContainerRef:10,controlsContainerRef:11},da)}}class ha{constructor(e){this.value=e,this.next=null}}class wi{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){const i=new ha(e);this.top?(this.top.next=i,this.top=i):(this.top=i,this.bottom=i),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){const e=[];let i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}}function pa(t){_e(t,"v-1ssl9eb",".container.v-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.v-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function ba(t){let e,i;return{c(){e=h("div"),i=h("canvas"),c(i,"class","v-1ssl9eb"),c(e,"class","container v-1ssl9eb")},m(n,l){E(n,e,l),f(e,i),t[3](i)},p:B,i:B,o:B,d(n){n&&M(e),t[3](null)}}}const _i=16,yi=120,Hn=60;function wa(t,e,i,n,l){l===0&&(l=1),t.fillStyle="#fff",t.fillRect(e,i,n,l)}function _a(t,e,i){let{values:n=[]}=e,l,o;const s=yi/Hn;Nt(()=>{i(0,l.width=yi,l),i(0,l.height=_i,l),i(2,o=l.getContext("2d"))});function r(a){Ge[a?"unshift":"push"](()=>{l=a,i(0,l)})}return t.$$set=a=>{"values"in a&&i(1,n=a.values)},t.$$.update=()=>{if(t.$$.dirty&6&&o){let a=n[0];for(let d=1;d<n.length;d++)n[d]>a&&(a=n[d]);o.clearRect(0,0,yi,_i);let u=Hn-1;for(let d=n.length-1;d>=0;d--){const m=u*s,b=a>0?_i*(n[d]/a):0;wa(o,m,0,s,b),u--}}},[l,n,o,r]}class Li extends pe{constructor(e){super(),he(this,e,_a,ba,ve,{values:1},pa)}}const Lt={set:(t,e)=>{try{localStorage.setItem(t,JSON.stringify(e))}catch(i){}},get:t=>{try{const e=localStorage.getItem(t);return e?JSON.parse(e):null}catch(e){return null}},remove(t){try{localStorage.removeItem(t)}catch(e){}}};function ya(t){_e(t,"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 Dn(t){let e,i,n,l,o=t[0].id+"",s;return{c(){e=h("div"),i=h("div"),i.textContent="Video id",n=z(),l=h("span"),s=fe(o),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(r,a){E(r,e,a),f(e,i),f(e,n),f(e,l),f(l,s)},p(r,a){a&1&&o!==(o=r[0].id+"")&&Me(s,o)},d(r){r&&M(e)}}}function jn(t){let e,i,n,l,o=t[0].provider+"",s;return{c(){e=h("div"),i=h("div"),i.textContent="Provider",n=z(),l=h("span"),s=fe(o),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(r,a){E(r,e,a),f(e,i),f(e,n),f(e,l),f(l,s)},p(r,a){a&1&&o!==(o=r[0].provider+"")&&Me(s,o)},d(r){r&&M(e)}}}function On(t){let e,i,n,l,o=t[0].viewport+"",s;return{c(){e=h("div"),i=h("div"),i.textContent="Viewport",n=z(),l=h("span"),s=fe(o),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(r,a){E(r,e,a),f(e,i),f(e,n),f(e,l),f(l,s)},p(r,a){a&1&&o!==(o=r[0].viewport+"")&&Me(s,o)},d(r){r&&M(e)}}}function Un(t){let e,i,n,l,o=t[0].videoSize+"",s;return{c(){e=h("div"),i=h("div"),i.textContent="Video size",n=z(),l=h("span"),s=fe(o),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(r,a){E(r,e,a),f(e,i),f(e,n),f(e,l),f(l,s)},p(r,a){a&1&&o!==(o=r[0].videoSize+"")&&Me(s,o)},d(r){r&&M(e)}}}function Qn(t){let e,i,n,l,o=t[0].cdn+"",s;return{c(){e=h("div"),i=h("div"),i.textContent="CDN host",n=z(),l=h("span"),s=fe(o),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(r,a){E(r,e,a),f(e,i),f(e,n),f(e,l),f(l,s)},p(r,a){a&1&&o!==(o=r[0].cdn+"")&&Me(s,o)},d(r){r&&M(e)}}}function Wn(t){let e,i,n,l,o=t[0].volume+"",s,r;return{c(){e=h("div"),i=h("div"),i.textContent="Volume",n=z(),l=h("span"),s=fe(o),r=fe(" %"),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(a,u){E(a,e,u),f(e,i),f(e,n),f(e,l),f(l,s),f(l,r)},p(a,u){u&1&&o!==(o=a[0].volume+"")&&Me(s,o)},d(a){a&&M(e)}}}function Yn(t){let e,i,n,l,o=t[0].buffer.toFixed(2)+"",s,r;return{c(){e=h("div"),i=h("div"),i.textContent="Buffer",n=z(),l=h("span"),s=fe(o),r=fe(" s"),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(a,u){E(a,e,u),f(e,i),f(e,n),f(e,l),f(l,s),f(l,r)},p(a,u){u&1&&o!==(o=a[0].buffer.toFixed(2)+"")&&Me(s,o)},d(a){a&&M(e)}}}function Kn(t){let e,i,n,l,o,s,r=t[0].speed.toFixed(2)+"",a,u,d;return l=new Li({props:{values:t[5]}}),{c(){e=h("div"),i=h("div"),i.textContent="Network",n=z(),te(l.$$.fragment),o=z(),s=h("span"),a=fe(r),u=fe(" Kbps"),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(m,b){E(m,e,b),f(e,i),f(e,n),$(l,e,null),f(e,o),f(e,s),f(s,a),f(s,u),d=!0},p(m,b){const v={};b&32&&(v.values=m[5]),l.$set(v),(!d||b&1)&&r!==(r=m[0].speed.toFixed(2)+"")&&Me(a,r)},i(m){d||(g(l.$$.fragment,m),d=!0)},o(m){P(l.$$.fragment,m),d=!1},d(m){m&&M(e),ee(l)}}}function Xn(t){let e,i,n,l,o,s,r=t[0].bitrate.toFixed(2)+"",a,u,d;return l=new Li({props:{values:t[6]}}),{c(){e=h("div"),i=h("div"),i.textContent="V bitrate",n=z(),te(l.$$.fragment),o=z(),s=h("span"),a=fe(r),u=fe(" Kbps"),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(m,b){E(m,e,b),f(e,i),f(e,n),$(l,e,null),f(e,o),f(e,s),f(s,a),f(s,u),d=!0},p(m,b){const v={};b&64&&(v.values=m[6]),l.$set(v),(!d||b&1)&&r!==(r=m[0].bitrate.toFixed(2)+"")&&Me(a,r)},i(m){d||(g(l.$$.fragment,m),d=!0)},o(m){P(l.$$.fragment,m),d=!1},d(m){m&&M(e),ee(l)}}}function ka(t){let e,i,n,l,o,s,r,a,u=t[0].version+"",d,m,b,v,p,w,C,N,_,k,L,I,R,y,H,q,T,W,J,D,U,G,ie,Z,j,ne,ce,Ve,je,ze,me=t[0].id&&Dn(t),ae=t[0].provider&&jn(t),de=t[0].viewport&&On(t),ge=t[0].videoSize&&Un(t),be=t[0].cdn&&Qn(t),Y=t[0].volume&&Wn(t),we=t[0].buffer&&Yn(t),ue=t[0].speed&&Kn(t),F=t[0].bitrate&&Xn(t);return Z=new Li({props:{values:t[4]}}),{c(){e=h("div"),i=h("button"),i.textContent="[x]",n=z(),l=h("div"),o=h("div"),s=h("div"),s.textContent="Version",r=z(),a=h("span"),d=fe(u),m=z(),me&&me.c(),b=z(),ae&&ae.c(),v=z(),de&&de.c(),p=z(),ge&&ge.c(),w=z(),be&&be.c(),C=z(),Y&&Y.c(),N=z(),we&&we.c(),_=z(),k=h("div"),L=h("div"),L.textContent="Dropped",I=z(),R=h("span"),y=fe(t[2]),H=fe(" / "),q=fe(t[1]),T=fe(" frames"),W=z(),ue&&ue.c(),J=z(),F&&F.c(),D=z(),U=h("div"),G=h("div"),G.textContent="FPS",ie=z(),te(Z.$$.fragment),j=z(),ne=h("span"),ce=fe(t[3]),c(i,"class","close v-1gy2e68"),c(i,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),c(s,"class","v-1gy2e68"),c(o,"class","v-1gy2e68"),c(L,"class","v-1gy2e68"),c(k,"class","v-1gy2e68"),c(G,"class","v-1gy2e68"),c(U,"class","v-1gy2e68"),c(l,"class","content v-1gy2e68"),c(e,"class","container v-1gy2e68"),S(e,"container-mobile",t[7])},m(O,x){E(O,e,x),f(e,i),f(e,n),f(e,l),f(l,o),f(o,s),f(o,r),f(o,a),f(a,d),f(l,m),me&&me.m(l,null),f(l,b),ae&&ae.m(l,null),f(l,v),de&&de.m(l,null),f(l,p),ge&&ge.m(l,null),f(l,w),be&&be.m(l,null),f(l,C),Y&&Y.m(l,null),f(l,N),we&&we.m(l,null),f(l,_),f(l,k),f(k,L),f(k,I),f(k,R),f(R,y),f(R,H),f(R,q),f(R,T),f(l,W),ue&&ue.m(l,null),f(l,J),F&&F.m(l,null),f(l,D),f(l,U),f(U,G),f(U,ie),$(Z,U,null),f(U,j),f(U,ne),f(ne,ce),Ve=!0,je||(ze=oe(i,"click",t[9]),je=!0)},p(O,[x]){(!Ve||x&1)&&u!==(u=O[0].version+"")&&Me(d,u),O[0].id?me?me.p(O,x):(me=Dn(O),me.c(),me.m(l,b)):me&&(me.d(1),me=null),O[0].provider?ae?ae.p(O,x):(ae=jn(O),ae.c(),ae.m(l,v)):ae&&(ae.d(1),ae=null),O[0].viewport?de?de.p(O,x):(de=On(O),de.c(),de.m(l,p)):de&&(de.d(1),de=null),O[0].videoSize?ge?ge.p(O,x):(ge=Un(O),ge.c(),ge.m(l,w)):ge&&(ge.d(1),ge=null),O[0].cdn?be?be.p(O,x):(be=Qn(O),be.c(),be.m(l,C)):be&&(be.d(1),be=null),O[0].volume?Y?Y.p(O,x):(Y=Wn(O),Y.c(),Y.m(l,N)):Y&&(Y.d(1),Y=null),O[0].buffer?we?we.p(O,x):(we=Yn(O),we.c(),we.m(l,_)):we&&(we.d(1),we=null),(!Ve||x&4)&&Me(y,O[2]),(!Ve||x&2)&&Me(q,O[1]),O[0].speed?ue?(ue.p(O,x),x&1&&g(ue,1)):(ue=Kn(O),ue.c(),g(ue,1),ue.m(l,J)):ue&&(se(),P(ue,1,1,()=>{ue=null}),re()),O[0].bitrate?F?(F.p(O,x),x&1&&g(F,1)):(F=Xn(O),F.c(),g(F,1),F.m(l,D)):F&&(se(),P(F,1,1,()=>{F=null}),re());const Fe={};x&16&&(Fe.values=O[4]),Z.$set(Fe),(!Ve||x&8)&&Me(ce,O[3]),(!Ve||x&128)&&S(e,"container-mobile",O[7])},i(O){Ve||(g(ue),g(F),g(Z.$$.fragment,O),Ve=!0)},o(O){P(ue),P(F),P(Z.$$.fragment,O),Ve=!1},d(O){O&&M(e),me&&me.d(),ae&&ae.d(),de&&de.d(),ge&&ge.d(),be&&be.d(),Y&&Y.d(),we&&we.d(),ue&&ue.d(),F&&F.d(),ee(Z),je=!1,ze()}}}function Pa(t,e,i){let n;const l=De(),o=l.ui.debugPanelVisible,s=l.ui.isMobile;Q(t,s,k=>i(7,n=k));const r=k=>{Lt.set(Ai,!1),o.set(!1),k.stopPropagation()};let a=l.actions.internal.getDebugPanelData(),u=l.actions.internal.getVideoElement(),d=0,m=0,b=0;const v=new wi(60),p=new wi(60),w=new wi(60);let C=[],N=[],_=[];return Nt(()=>{Lt.set(Ai,!0),l.actions.internal.startLogging(),u&&(i(2,m=u.getVideoPlaybackQuality().droppedVideoFrames),i(1,d=u.getVideoPlaybackQuality().totalVideoFrames));const k=window.setInterval(()=>{i(0,a=l.actions.internal.getDebugPanelData())},500);let L;return u&&(L=window.setInterval(()=>{if(u){i(2,m=u.getVideoPlaybackQuality().droppedVideoFrames);const I=u.getVideoPlaybackQuality().totalVideoFrames;i(3,b=I-d),i(1,d=I),v.push(b),a.speed&&p.push(a.speed),a.bitrate&&w.push(a.bitrate),i(4,C=v.getValuesFromBottom()),i(5,N=p.getValuesFromBottom()),i(6,_=w.getValuesFromBottom())}},1e3)),()=>{l.actions.internal.stopLogging(),clearInterval(k),L&&clearInterval(L)}}),[a,d,m,b,C,N,_,n,s,r]}class Va extends pe{constructor(e){super(),he(this,e,Pa,ka,ve,{},ya)}}function Aa(t){_e(t,"v-1ome55p",".close.v-1ome55p{cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px}.close.v-1ome55p:hover{opacity:1}.close.v-1ome55p:before,.close.v-1ome55p:after{position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white)}.close.v-1ome55p:before{transform:rotate(45deg)}.close.v-1ome55p:after{transform:rotate(-45deg)}")}function Sa(t){let e,i,n;return{c(){e=h("div"),c(e,"class","close v-1ome55p")},m(l,o){E(l,e,o),i||(n=oe(e,"click",t[0]),i=!0)},p:B,i:B,o:B,d(l){l&&M(e),i=!1,n()}}}function Ca(t){function e(i){it.call(this,t,i)}return[e]}class Ma extends pe{constructor(e){super(),he(this,e,Ca,Sa,ve,{},Aa)}}function Ea(t){_e(t,"v-8jhsry",`.timer.v-8jhsry{border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around}.timer.v-8jhsry:hover{background:rgba(31, 31, 31, .85)
|
|
30
|
+
}.timer-canvas.v-8jhsry{width:50px;height:50px;position:absolute}.timer-play-icon.v-8jhsry{width:22px;height:26px}`)}function za(t){let e,i,n,l,o,s,r;return{c(){e=h("div"),i=h("canvas"),n=z(),l=Ae("svg"),o=Ae("g"),s=Ae("g"),r=Ae("path"),c(i,"class","timer-canvas v-8jhsry"),c(i,"width","100"),c(i,"height","100"),c(r,"class","_play"),c(r,"d","m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z"),c(r,"fill","#fff"),c(s,"fill-rule","nonzero"),c(o,"fill","none"),c(o,"fill-rule","evenodd"),c(l,"class","timer-play-icon v-8jhsry"),c(l,"viewBox","0 0 24 24"),c(l,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","timer v-8jhsry")},m(a,u){E(a,e,u),f(e,i),t[2](i),f(e,n),f(e,l),f(l,o),f(o,s),f(s,r)},p:B,i:B,o:B,d(a){a&&M(e),t[2](null)}}}const Ta=5e3;function La(t,e,i){let{onTimerEnded:n=B}=e,l;Nt(()=>{let s;const r=l.getContext("2d");if(!r)return;r.lineWidth=6,r.lineCap="round",r.strokeStyle="#fff";const a=Date.now(),u=()=>{const d=(Date.now()-a)/Ta;d<1?(r.clearRect(0,0,100,100),r.beginPath(),r.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*d),r.stroke(),s=requestAnimationFrame(u)):n()};return s=requestAnimationFrame(u),()=>{cancelAnimationFrame(s)}});function o(s){Ge[s?"unshift":"push"](()=>{l=s,i(0,l)})}return t.$$set=s=>{"onTimerEnded"in s&&i(1,n=s.onTimerEnded)},[l,n,o]}class Na extends pe{constructor(e){super(),he(this,e,La,za,ve,{onTimerEnded:1},Ea)}}function Ia(t){_e(t,"v-kisfwc",".overlay.v-kisfwc{width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute}.next-video.v-kisfwc{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column}.top.v-kisfwc{display:flex;justify-content:space-between}.caption.v-kisfwc{font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8}.row.v-kisfwc{height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.column.v-kisfwc{display:flex;flex-direction:column;flex-basis:50%}.thumb.v-kisfwc{width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around}.thumb-overlay.v-kisfwc{width:100%;height:100%;background:var(--black);opacity:0.3;position:absolute}.title.v-kisfwc{padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden}")}function Gn(t){let e,i;return e=new Na({props:{onTimerEnded:t[2]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l&4&&(o.onTimerEnded=n[2]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Ba(t){let e,i,n,l,o,s,r,a,u,d,m,b,v,p,w,C,N,_,k,L,I;r=new Ma({}),r.$on("click",t[4]);let R=t[3]&&Gn(t);return{c(){e=h("div"),i=z(),n=h("div"),l=h("div"),o=h("div"),o.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",s=z(),te(r.$$.fragment),a=z(),u=h("div"),d=h("div"),m=h("div"),b=h("div"),v=z(),R&&R.c(),w=z(),C=h("div"),N=h("div"),_=fe(t[0]),c(e,"class","overlay v-kisfwc"),c(o,"class","caption v-kisfwc"),c(l,"class","top v-kisfwc"),c(b,"class","thumb-overlay v-kisfwc"),c(m,"class","thumb v-kisfwc"),c(m,"style",p=`background-image: url('${t[1]}')`),c(d,"class","column v-kisfwc"),c(N,"class","title v-kisfwc"),c(C,"class","column v-kisfwc"),c(u,"class","row v-kisfwc"),c(n,"class","next-video v-kisfwc")},m(y,H){E(y,e,H),E(y,i,H),E(y,n,H),f(n,l),f(l,o),f(l,s),$(r,l,null),f(n,a),f(n,u),f(u,d),f(d,m),f(m,b),f(m,v),R&&R.m(m,null),f(u,w),f(u,C),f(C,N),f(N,_),k=!0,L||(I=oe(u,"click",function(){Re(t[2])&&t[2].apply(this,arguments)}),L=!0)},p(y,[H]){t=y,t[3]?R?(R.p(t,H),H&8&&g(R,1)):(R=Gn(t),R.c(),g(R,1),R.m(m,null)):R&&(se(),P(R,1,1,()=>{R=null}),re()),(!k||H&2&&p!==(p=`background-image: url('${t[1]}')`))&&c(m,"style",p),(!k||H&1)&&Me(_,t[0])},i(y){k||(g(r.$$.fragment,y),g(R),k=!0)},o(y){P(r.$$.fragment,y),P(R),k=!1},d(y){y&&M(e),y&&M(i),y&&M(n),ee(r),R&&R.d(),L=!1,I()}}}function Ra(t,e,i){let{title:n}=e,{thumb:l}=e,{playNextVideo:o}=e,s=!0;const r=()=>i(3,s=!1);return t.$$set=a=>{"title"in a&&i(0,n=a.title),"thumb"in a&&i(1,l=a.thumb),"playNextVideo"in a&&i(2,o=a.playNextVideo)},[n,l,o,s,r]}class Fa extends pe{constructor(e){super(),he(this,e,Ra,Ba,ve,{title:0,thumb:1,playNextVideo:2},Ia)}}function qa(t,e,i){let{playNextVideo:n}=e;return Nt(()=>{n()}),t.$$set=l=>{"playNextVideo"in l&&i(0,n=l.playNextVideo)},[n]}class Ha extends pe{constructor(e){super(),he(this,e,qa,null,ve,{playNextVideo:0})}}function Da(t){_e(t,"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(
|
|
31
31
|
0deg,
|
|
32
32
|
rgba(0, 0, 0, 0) 0%,
|
|
33
33
|
rgba(0, 0, 0, 0.02) 19%,
|
|
34
34
|
rgba(0, 0, 0, 0.10) 34%,
|
|
35
35
|
rgba(0, 0, 0, 0.40) 60%,
|
|
36
36
|
rgba(0, 0, 0, 0.60) 100%
|
|
37
|
-
)}.hidden.v-cus9x4{visibility:hidden;transform:translateY(calc(var(--videoplayer-controls-gradient-height) * -1));opacity:0}`)}function Va(t){let e,i;return{c(){e=g("div"),i=de(t[0]),c(e,"class","title v-cus9x4"),A(e,"hidden",t[1])},m(n,l){M(n,e,l),f(e,i)},p(n,[l]){l&1&&Me(i,n[0]),l&2&&A(e,"hidden",n[1])},i:B,o:B,d(n){n&&C(e)}}}function Pa(t,e,i){let{title:n=""}=e,{isHidden:l=!1}=e;return t.$$set=o=>{"title"in o&&i(0,n=o.title),"isHidden"in o&&i(1,l=o.isHidden)},[n,l]}class Sa extends he{constructor(e){super(),ge(this,e,Pa,Va,me,{title:0,isHidden:1},ya)}}function Aa(t){we(t,"v-1o62kpz",".wrapper.v-1o62kpz{height:100%;background-position:center;background-size:cover;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column}.icon_wrapper.v-1o62kpz{display:flex;flex-direction:column;align-items:center;width:400px}.icon.v-1o62kpz{width:50px;height:50px}.text.v-1o62kpz{margin-top:20px}")}function Un(t){let e,i,n;return{c(){e=g("div"),i=de("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=de(t[1]),c(e,"class","text v-1o62kpz")},m(l,o){M(l,e,o),f(e,i),f(e,n)},p(l,o){o&2&&Me(n,l[1])},d(l){l&&C(e)}}}function Ca(t){let e,i,n,l,o,s,a=t[1]&&Un(t);return{c(){e=g("div"),i=g("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=L(),a&&a.c(),c(i,"class","icon_wrapper v-1o62kpz"),c(e,"class","wrapper v-1o62kpz"),c(e,"style",l=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${t[0]||""}')`)},m(r,u){M(r,e,u),f(e,i),f(e,n),a&&a.m(e,null),o||(s=le(e,"click",t[2]),o=!0)},p(r,[u]){r[1]?a?a.p(r,u):(a=Un(r),a.c(),a.m(e,null)):a&&(a.d(1),a=null),u&1&&l!==(l=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${r[0]||""}')`)&&c(e,"style",l)},i:B,o:B,d(r){r&&C(e),a&&a.d(),o=!1,s()}}}function Ma(t,e,i){let{thumbUrl:n}=e,{chromecastDeviceName:l}=e;function o(s){xe.call(this,t,s)}return t.$$set=s=>{"thumbUrl"in s&&i(0,n=s.thumbUrl),"chromecastDeviceName"in s&&i(1,l=s.chromecastDeviceName)},[n,l,o]}class za extends he{constructor(e){super(),ge(this,e,Ma,Ca,me,{thumbUrl:0,chromecastDeviceName:1},Aa)}}var Ta="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";function La(t){we(t,"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 Ea(t){let e,i,n;return{c(){e=g("div"),i=g("img"),ye(i.src,n=Ta)||c(i,"src",n),c(i,"class","icon v-zd9h6u"),c(i,"alt",""),c(e,"class","container v-zd9h6u")},m(l,o){M(l,e,o),f(e,i)},p:B,i:B,o:B,d(l){l&&C(e)}}}class Na extends he{constructor(e){super(),ge(this,e,null,Ea,me,{},La)}}function Ba(t,e,i){let n,l,o,s,a,{isAds:r}=e,{hideContextMenu:u}=e,{toggleFullscreen:d}=e;const m=De(),_=m.getLogger().createComponentLog("KeyboardControls component"),h=m.state.playbackState$;Y(t,h,k=>i(13,a=k));const b=m.ads.playbackState;Y(t,b,k=>i(12,s=k));const w=m.state.positionExact$;Y(t,w,k=>i(11,o=k));const z=m.state.duration$;Y(t,z,k=>i(10,l=k));const E=m.state.volume$;Y(t,E,k=>i(9,n=k));const p=k=>{u();const T=k.code;if(k.ctrlKey||k.altKey||k.metaKey)return;const F=a===At.PLAYING||a===At.PAUSED,V=r&&(s===Ie.PAUSED||s===Ie.PLAYING);if(F||V)switch(_({message:`key down, code: ${T}`}),T){case Oe.KeyJ:case Oe.ArrowLeft:{if(V)break;const I=Math.max(o-Fi,0);o>0&&m.actions.internal.seekTime(I),k.preventDefault();break}case Oe.KeyL:case Oe.ArrowRight:{if(V)break;const I=Math.min(o+Fi,l);o<l&&m.actions.internal.seekTime(I),k.preventDefault();break}case Oe.ArrowUp:{const I=Math.min(n+Ii,Bi);n<Bi&&m.actions.internal.setVolume(I),k.preventDefault();break}case Oe.ArrowDown:{const I=Math.max(n-Ii,0);n>0&&m.actions.internal.setVolume(I),k.preventDefault();break}case Oe.Comma:{k.shiftKey&&(m.actions.internal.decrementPlaybackRate(),k.preventDefault());break}case Oe.Period:{k.shiftKey&&(m.actions.internal.incrementPlaybackRate(),k.preventDefault());break}case Oe.KeyK:case Oe.Space:m.actions.internal.togglePlay(),k.preventDefault();break;case Oe.KeyM:m.actions.internal.toggleMuted(),k.preventDefault();break;case Oe.KeyF:d(),k.preventDefault();break;default:Hl(T);break}};return t.$$set=k=>{"isAds"in k&&i(5,r=k.isAds),"hideContextMenu"in k&&i(6,u=k.hideContextMenu),"toggleFullscreen"in k&&i(7,d=k.toggleFullscreen)},[h,b,w,z,E,r,u,d,p]}class Ia extends he{constructor(e){super(),ge(this,e,Ba,null,me,{isAds:5,hideContextMenu:6,toggleFullscreen:7,keyDownHandler:8})}get keyDownHandler(){return this.$$.ctx[8]}}function Fa(t){we(t,"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 On(t){let e,i,n,l,o,s,a,r,u,d,m,_,h,b,w,z,E;return{c(){e=g("div"),n=L(),l=g("div"),o=g("div"),s=g("div"),r=L(),u=g("div"),m=L(),_=g("div"),b=L(),w=g("p"),z=de(t[1]),E=de(" \u0441\u0435\u043A\u0443\u043D\u0434"),c(e,"class",i="semicircle "+t[0]+" v-1c30l04"),c(s,"class",a="triangle "+t[0]+" v-1c30l04"),c(u,"class",d="triangle "+t[0]+" v-1c30l04"),c(_,"class",h="triangle "+t[0]+" v-1c30l04"),c(o,"class","triangles-wrapper v-1c30l04"),c(w,"class","step-caption v-1c30l04"),c(l,"class","info v-1c30l04")},m(p,k){M(p,e,k),M(p,n,k),M(p,l,k),f(l,o),f(o,s),f(o,r),f(o,u),f(o,m),f(o,_),f(l,b),f(l,w),f(w,z),f(w,E)},p(p,k){k&1&&i!==(i="semicircle "+p[0]+" v-1c30l04")&&c(e,"class",i),k&1&&a!==(a="triangle "+p[0]+" v-1c30l04")&&c(s,"class",a),k&1&&d!==(d="triangle "+p[0]+" v-1c30l04")&&c(u,"class",d),k&1&&h!==(h="triangle "+p[0]+" v-1c30l04")&&c(_,"class",h),k&2&&Me(z,p[1])},d(p){p&&C(e),p&&C(n),p&&C(l)}}}function Ra(t){let e,i,n,l,o=t[2]&&On(t);return{c(){e=g("div"),o&&o.c(),c(e,"class",i="double-click-area "+t[0]+" v-1c30l04")},m(s,a){M(s,e,a),o&&o.m(e,null),n||(l=le(e,"click",io(t[3]())),n=!0)},p(s,[a]){s[2]?o?o.p(s,a):(o=On(s),o.c(),o.m(e,null)):o&&(o.d(1),o=null),a&1&&i!==(i="double-click-area "+s[0]+" v-1c30l04")&&c(e,"class",i)},i:B,o:B,d(s){s&&C(e),o&&o.d(),n=!1,l()}}}function qa(t,e,i){let{side:n}=e,{seekStep:l}=e,{handleSingleFirstClick:o}=e,{handleSecondClick:s}=e,a=!1,r=0,u=0;const d=()=>{let _=0;return()=>{_+=1,_===1?r=window.setTimeout(()=>{o(),_=0},300):(window.clearTimeout(r),_=0,s(),i(2,a=!0),u=window.setTimeout(()=>{i(2,a=!1)},500))}};return lo(()=>{window.clearTimeout(r),window.clearTimeout(u)}),t.$$set=m=>{"side"in m&&i(0,n=m.side),"seekStep"in m&&i(1,l=m.seekStep),"handleSingleFirstClick"in m&&i(4,o=m.handleSingleFirstClick),"handleSecondClick"in m&&i(5,s=m.handleSecondClick)},[n,l,a,d,o,s]}class Pl extends he{constructor(e){super(),ge(this,e,qa,Ra,me,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},Fa)}}function Da(t,e){var i,n,l,o,s;return t?((s=(o=(l=(n=(i=t.matches)!==null&&i!==void 0?i:t.matchesSelector)!==null&&n!==void 0?n:t.mozMatchesSelector)!==null&&l!==void 0?l:t.msMatchesSelector)!==null&&o!==void 0?o:t.oMatchesSelector)!==null&&s!==void 0?s:t.webkitMatchesSelector).call(t,e):!1}function ja(t){return Da(t,":hover")}const Sl=t=>t>1?si:t<0?0:t,Qn=t=>Ct.set(fl,Sl(t)),Al=()=>{const t=parseFloat(Ct.get(fl));return isNaN(t)?si:Sl(t)},Yn=t=>Ct.set(ml,t),Ha=()=>{const t=Ct.get(ml);return typeof t=="boolean"?t:!1},Ua=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();const e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},Oa=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),Qa=t=>{const e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},Wn=()=>{const t=document;return!!(t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement)},Ya=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Wa=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},{window:Ka}=fo;function Xa(t){we(t,"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 Kn(t){let e,i,n,l;e=new Pl({props:{side:"left",seekStep:li,handleSingleFirstClick:t[66],handleSecondClick:t[92]}});let o=!t[37]&&Xn(t);return{c(){te(e.$$.fragment),i=L(),o&&o.c(),n=Je()},m(s,a){$(e,s,a),M(s,i,a),o&&o.m(s,a),M(s,n,a),l=!0},p(s,a){s[37]?o&&(oe(),y(o,1,1,()=>{o=null}),se()):o?(o.p(s,a),a[1]&64&&v(o,1)):(o=Xn(s),o.c(),v(o,1),o.m(n.parentNode,n))},i(s){l||(v(e.$$.fragment,s),v(o),l=!0)},o(s){y(e.$$.fragment,s),y(o),l=!1},d(s){ee(e,s),s&&C(i),o&&o.d(s),s&&C(n)}}}function Xn(t){let e,i;return e=new Pl({props:{side:"right",seekStep:li,handleSingleFirstClick:t[66],handleSecondClick:t[93]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p:B,i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Gn(t){let e,i,n;return i=new K1({props:{adsSlotId:t[5],adsParams:t[6],adsPreviewParam:t[7],duration:t[8]}}),{c(){e=g("div"),te(i.$$.fragment),c(e,"class","ads-container v-phigzb"),A(e,"hidden",t[25]!==Ve.Ads)},m(l,o){M(l,e,o),$(i,e,null),n=!0},p(l,o){const s={};o[0]&32&&(s.adsSlotId=l[5]),o[0]&64&&(s.adsParams=l[6]),o[0]&128&&(s.adsPreviewParam=l[7]),o[0]&256&&(s.duration=l[8]),i.$set(s),(!n||o[0]&33554432)&&A(e,"hidden",l[25]!==Ve.Ads)},i(l){n||(v(i.$$.fragment,l),n=!0)},o(l){y(i.$$.fragment,l),n=!1},d(l){l&&C(e),ee(i)}}}function Jn(t){let e,i,n,l;const o=[Ja,Ga],s=[];function a(r,u){return r[11]?0:1}return e=a(t),i=s[e]=o[e](t),{c(){i.c(),n=Je()},m(r,u){s[e].m(r,u),M(r,n,u),l=!0},p(r,u){let d=e;e=a(r),e===d?s[e].p(r,u):(oe(),y(s[d],1,1,()=>{s[d]=null}),se(),i=s[e],i?i.p(r,u):(i=s[e]=o[e](r),i.c()),v(i,1),i.m(n.parentNode,n))},i(r){l||(v(i),l=!0)},o(r){y(i),l=!1},d(r){s[e].d(r),r&&C(n)}}}function Ga(t){let e,i;return e=new wa({props:{title:t[15],thumb:t[16],playNextVideo:t[18]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&32768&&(o.title=n[15]),l[0]&65536&&(o.thumb=n[16]),l[0]&262144&&(o.playNextVideo=n[18]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Ja(t){let e,i;return e=new ka({props:{playNextVideo:t[18]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&262144&&(o.playNextVideo=n[18]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Zn(t){let e,i;return e=new Sa({props:{title:t[0],isHidden:!t[21]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&1&&(o.title=n[0]),l[0]&2097152&&(o.isHidden=!n[21]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function xn(t){let e,i;return e=new za({props:{thumbUrl:t[1],chromecastDeviceName:t[38]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&2&&(o.thumbUrl=n[1]),l[1]&128&&(o.chromecastDeviceName=n[38]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function $n(t){let e,i,n={toggleFullscreen:t[63],hideContextMenu:t[64],isAds:t[25]===Ve.Ads};return e=new Ia({props:n}),t[95](e),{c(){te(e.$$.fragment)},m(l,o){$(e,l,o),i=!0},p(l,o){const s={};o[0]&33554432&&(s.isAds=l[25]===Ve.Ads),e.$set(s)},i(l){i||(v(e.$$.fragment,l),i=!0)},o(l){y(e.$$.fragment,l),i=!1},d(l){t[95](null),ee(e,l)}}}function el(t){let e,i,n,l,o;return i=new Na({}),{c(){e=g("div"),te(i.$$.fragment)},m(s,a){M(s,e,a),$(i,e,null),n=!0,l||(o=[le(e,"contextmenu",Pt(t[65])),le(e,"click",t[68])],l=!0)},p:B,i(s){n||(v(i.$$.fragment,s),n=!0)},o(s){y(i.$$.fragment,s),n=!1},d(s){s&&C(e),ee(i),l=!1,We(o)}}}function tl(t){let e,i;return e=new Z1({props:{supportLink:t[3],visible:t[36],playerContainerRef:t[27],controlsContainerRef:t[29],x:t[31],y:t[32]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&8&&(o.supportLink=n[3]),l[1]&32&&(o.visible=n[36]),l[0]&134217728&&(o.playerContainerRef=n[27]),l[0]&536870912&&(o.controlsContainerRef=n[29]),l[1]&1&&(o.x=n[31]),l[1]&2&&(o.y=n[32]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function il(t){let e,i;return e=new M1({}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function nl(t){let e,i;return e=new sa({}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Za(t){let e,i,n,l,o,s,a,r,u,d,m,_,h,b,w,z,E,p,k;i=new S1({props:{hidden:t[25]!==Ve.Thumb||t[23],thumbUrl:t[1],startVideo:t[61]}});let T=t[11]&&Kn(t),F=t[4]&&t[30]&&Gn(t),V=t[22]&&t[15]&&t[16]&&Jn(t),I=!t[11]&&t[25]===Ve.Video&&Zn(t),O=t[24]&&xn(t),D=!t[11]&&$n(t);function N(pe){t[96](pe)}let K={hidden:t[25]===Ve.Thumb||t[11]&&t[25]===Ve.Ads,showControls:t[21],isAds:t[25]===Ve.Ads,canRewindLive:t[2]&&t[26]!==0,logoClickable:t[9],logoHidden:t[10],showNextPrevButtons:t[12],nextButtonActive:t[13],prevButtonActive:t[14],isOneVideoPlaylist:t[17],supportLink:t[3],playNextVideo:t[18],playPrevVideo:t[19],repeatPlaylist:t[20],toggleFullscreen:t[63]};t[29]!==void 0&&(K.controlsElementRef=t[29]),m=new k1({props:K}),Ye.push(()=>mo(m,"controlsElementRef",N));let J=t[23]&&el(t),H=!t[11]&&tl(t),U=t[34]&&il(),X=t[39]&&nl();return{c(){e=g("div"),te(i.$$.fragment),n=L(),l=g("div"),T&&T.c(),o=L(),F&&F.c(),s=L(),V&&V.c(),a=L(),I&&I.c(),r=L(),O&&O.c(),u=L(),D&&D.c(),d=L(),te(m.$$.fragment),h=L(),J&&J.c(),b=L(),H&&H.c(),w=L(),U&&U.c(),z=L(),X&&X.c(),c(l,"class","video-container v-phigzb"),A(l,"hidden",t[25]!==Ve.Video),A(l,"nocursor",t[35]),c(e,"class","player-wrapper v-phigzb"),c(e,"tabindex","0")},m(pe,Z){M(pe,e,Z),$(i,e,null),f(e,n),f(e,l),T&&T.m(l,null),t[94](l),f(e,o),F&&F.m(e,null),f(e,s),V&&V.m(e,null),f(e,a),I&&I.m(e,null),f(e,r),O&&O.m(e,null),f(e,u),D&&D.m(e,null),f(e,d),$(m,e,null),f(e,h),J&&J.m(e,null),f(e,b),H&&H.m(e,null),f(e,w),U&&U.m(e,null),f(e,z),X&&X.m(e,null),t[97](e),E=!0,p||(k=[le(Ka,"blur",t[64]),le(l,"contextmenu",Pt(t[65])),le(l,"click",t[67]),le(e,"mouseenter",function(){Fe(t[11]?B:t[58])&&(t[11]?B:t[58]).apply(this,arguments)}),le(e,"mouseleave",function(){Fe(t[11]?B:t[59])&&(t[11]?B:t[59]).apply(this,arguments)}),le(e,"mousemove",function(){Fe(t[11]?B:t[60])&&(t[11]?B:t[60]).apply(this,arguments)}),le(e,"keydown",function(){Fe(t[11]?B:t[69])&&(t[11]?B:t[69]).apply(this,arguments)})],p=!0)},p(pe,Z){t=pe;const j={};Z[0]&41943040&&(j.hidden=t[25]!==Ve.Thumb||t[23]),Z[0]&2&&(j.thumbUrl=t[1]),i.$set(j),t[11]?T?(T.p(t,Z),Z[0]&2048&&v(T,1)):(T=Kn(t),T.c(),v(T,1),T.m(l,null)):T&&(oe(),y(T,1,1,()=>{T=null}),se()),(!E||Z[0]&33554432)&&A(l,"hidden",t[25]!==Ve.Video),(!E||Z[1]&16)&&A(l,"nocursor",t[35]),t[4]&&t[30]?F?(F.p(t,Z),Z[0]&1073741840&&v(F,1)):(F=Gn(t),F.c(),v(F,1),F.m(e,s)):F&&(oe(),y(F,1,1,()=>{F=null}),se()),t[22]&&t[15]&&t[16]?V?(V.p(t,Z),Z[0]&4292608&&v(V,1)):(V=Jn(t),V.c(),v(V,1),V.m(e,a)):V&&(oe(),y(V,1,1,()=>{V=null}),se()),!t[11]&&t[25]===Ve.Video?I?(I.p(t,Z),Z[0]&33556480&&v(I,1)):(I=Zn(t),I.c(),v(I,1),I.m(e,r)):I&&(oe(),y(I,1,1,()=>{I=null}),se()),t[24]?O?(O.p(t,Z),Z[0]&16777216&&v(O,1)):(O=xn(t),O.c(),v(O,1),O.m(e,u)):O&&(oe(),y(O,1,1,()=>{O=null}),se()),t[11]?D&&(oe(),y(D,1,1,()=>{D=null}),se()):D?(D.p(t,Z),Z[0]&2048&&v(D,1)):(D=$n(t),D.c(),v(D,1),D.m(e,d));const ie={};Z[0]&33556480&&(ie.hidden=t[25]===Ve.Thumb||t[11]&&t[25]===Ve.Ads),Z[0]&2097152&&(ie.showControls=t[21]),Z[0]&33554432&&(ie.isAds=t[25]===Ve.Ads),Z[0]&67108868&&(ie.canRewindLive=t[2]&&t[26]!==0),Z[0]&512&&(ie.logoClickable=t[9]),Z[0]&1024&&(ie.logoHidden=t[10]),Z[0]&4096&&(ie.showNextPrevButtons=t[12]),Z[0]&8192&&(ie.nextButtonActive=t[13]),Z[0]&16384&&(ie.prevButtonActive=t[14]),Z[0]&131072&&(ie.isOneVideoPlaylist=t[17]),Z[0]&8&&(ie.supportLink=t[3]),Z[0]&262144&&(ie.playNextVideo=t[18]),Z[0]&524288&&(ie.playPrevVideo=t[19]),Z[0]&1048576&&(ie.repeatPlaylist=t[20]),!_&&Z[0]&536870912&&(_=!0,ie.controlsElementRef=t[29],co(()=>_=!1)),m.$set(ie),t[23]?J?(J.p(t,Z),Z[0]&8388608&&v(J,1)):(J=el(t),J.c(),v(J,1),J.m(e,b)):J&&(oe(),y(J,1,1,()=>{J=null}),se()),t[11]?H&&(oe(),y(H,1,1,()=>{H=null}),se()):H?(H.p(t,Z),Z[0]&2048&&v(H,1)):(H=tl(t),H.c(),v(H,1),H.m(e,w)),t[34]?U?Z[1]&8&&v(U,1):(U=il(),U.c(),v(U,1),U.m(e,z)):U&&(oe(),y(U,1,1,()=>{U=null}),se()),t[39]?X?Z[1]&256&&v(X,1):(X=nl(),X.c(),v(X,1),X.m(e,null)):X&&(oe(),y(X,1,1,()=>{X=null}),se())},i(pe){E||(v(i.$$.fragment,pe),v(T),v(F),v(V),v(I),v(O),v(D),v(m.$$.fragment,pe),v(J),v(H),v(U),v(X),E=!0)},o(pe){y(i.$$.fragment,pe),y(T),y(F),y(V),y(I),y(O),y(D),y(m.$$.fragment,pe),y(J),y(H),y(U),y(X),E=!1},d(pe){pe&&C(e),ee(i),T&&T.d(),t[94](null),F&&F.d(),V&&V.d(),I&&I.d(),O&&O.d(),D&&D.d(),ee(m),J&&J.d(),H&&H.d(),U&&U.d(),X&&X.d(),t[97](null),p=!1,We(k)}}}let li=15;function xa(t,e,i){let n,l,o,s,a,r,u,d,m,_,h,b,w,z,E,p,k,T,{sources:F}=e,{store:V}=e,{title:I}=e,{thumbUrl:O}=e,{autoplay:D=!1}=e,{volume:N=void 0}=e,{muted:K=void 0}=e,{fromTime:J=0}=e,{canRewindLive:H=!0}=e,{supportLink:U=Ao}=e,{showAds:X=!1}=e,{adsSlotId:pe=void 0}=e,{adsParams:Z=void 0}=e,{adsPreviewParam:j=void 0}=e,{duration:ie=void 0}=e,{logoClickable:re=!1}=e,{logoHidden:Se=!1}=e,{isMobile:ze=!1}=e,{showNextPrevButtons:Re=!1}=e,{nextButtonActive:ue=!1}=e,{prevButtonActive:fe=!1}=e,{endScreenVideoTitle:ce=void 0}=e,{endScreenVideoThumb:ve=void 0}=e,{isOneVideoPlaylist:_e=!1}=e,{outerContainerRef:Q=void 0}=e,{playNextVideo:be=B}=e,{playPrevVideo:ae=B}=e,{repeatPlaylist:R=B}=e,{fullScreenTarget:q=void 0}=e,{failoverHosts:x=void 0}=e;const je=P=>{He.set(!0),P?ze&&(Kt.set(!0),Dt.set(!0),window.setTimeout(()=>{Dt.set(!1),Ae(Ni)},ko)):Ae(Ni)};V.setUiCallbacks({onStarted:je}),V.getAdmanWrapper().init({switchFromAdsToVideo:V.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:V.actions.internal.switchFromVideoToAds,setMuted:V.actions.external.setMuted},V.ads,{isMobile:V.ui.isMobile,mobileUnmuteButtonVisible:V.ui.mobileUnmuteButtonVisible});const Ze=V.getLogger().createComponentLog("Root component"),gt=V.state.playbackState$;Y(t,gt,P=>i(103,d=P));const ht=V.ads.playbackState;Y(t,ht,P=>i(90,w=P));const st=V.state.positionWithScrubbing$;Y(t,st,P=>i(101,r=P));const at=V.state.duration$;Y(t,at,P=>i(100,a=P));const zt=V.playerPhase;Y(t,zt,P=>i(25,z=P));const rt=V.ui.isFullscreen;Y(t,rt,P=>i(99,s=P));const He=V.ui.controlsVisible;Y(t,He,P=>i(87,o=P));const $e=V.ui.settingsMenuVisible;Y(t,$e,P=>i(102,u=P));const pt=V.ui.scrubbingInProgress;Y(t,pt,P=>i(88,m=P));const ct=V.ui.playerSize,et=V.ui.contextMenuVisible;Y(t,et,P=>i(36,n=P));const ut=V.ui.debugPanelVisible;Y(t,ut,P=>i(39,T=P));const tt=V.state.isLoaderVisible;Y(t,tt,P=>i(91,E=P));const it=V.state.isEnded$;Y(t,it,P=>i(86,l=P));const Tt=V.state.chromecastConnected$;Y(t,Tt,P=>i(24,b=P));const bt=V.state.chromecastDeviceName$;Y(t,bt,P=>i(38,k=P));const W=V.ads.postrollPassed;Y(t,W,P=>i(89,h=P));const Dt=V.ui.mobileUnmuteButtonExpanded,Kt=V.ui.mobileUnmuteButtonVisible,Xt=V.state.isActiveLive$;Y(t,Xt,P=>i(37,p=P));const Gt=V.state.crashed$;Y(t,Gt,P=>i(23,_=P));let Jt=0;V.state.duration$.subscribe(P=>{i(26,Jt=P)}),ho(V);let wt,Lt,_t,dt,kt=null,jt=!1,Zt=0,Ht=0,Et,Ut,Ot,Te,S,G=!1;function ne(){clearTimeout(dt),He.set(!0)}function ke(){Ae(wo)}function Ue(){clearTimeout(dt),He.set(!0),s&&_t&&!ja(_t)&&Ae(_o)}function Ae(P){i(84,dt=window.setTimeout(()=>{if(d===At.PLAYING){if(ze&&u)return;He.set(!1),$e.set(!1)}},P))}const Ge=P=>{if(window.ResizeObserver){let Ne,Ke;kt=new ResizeObserver(jl(yt=>{const Xe=yt[0];if(Xe){if(Xe.contentBoxSize){const Mi=Array.isArray(Xe.contentBoxSize)?Xe.contentBoxSize[0]:Xe.contentBoxSize;Ne=Mi.inlineSize,Ke=Mi.blockSize}else Xe.contentRect&&(Ne=Xe.contentRect.width,Ke=Xe.contentRect.height);ct.set({width:Ne,height:Ke})}},Po)),kt.observe(P)}ct.set({width:P.clientWidth,height:P.clientHeight})},Ee=(P=!1)=>{i(30,jt=!0),P?V.actions.external.firstStart(X):V.actions.internal.firstStart(X)};Mt(()=>{Ya(Ai),Ge(wt),V.initVideo({container:Lt,sources:F,failoverHosts:x}),J>0&&V.actions.external.seekTime(J);const P=ze?si:N!=null?N:Al(),Ne=K!=null?K:Ha();V.actions.external.setVolume(P),V.actions.external.setMuted(Ne),V.getAdmanWrapper().setInitialVolume(Ne?0:P),V.ui.isAutoplay.set(D),D&&Ee();const Ke=Boolean(Ct.get(pi));return ut.set(Ke),()=>{Wa(Ai),kt==null||kt.disconnect(),V.destroy()}});function ft(){jt?V.actions.external.play():Ee(!0)}function ri(){V.actions.external.pause()}function Cl(P){ze||V.actions.external.setMuted(P)}function Ml(P){ze||P>=0&&P<=1&&V.actions.external.setVolume(P)}function Pi(P){V.actions.internal.seekTime(P)}const ci=P=>{let Ne=r+(P==="forward"?li:-li);Ne<0?Ne=0:Ne>a&&(Ne=a-1),Pi(Ne)},Si=()=>{if(Wn())Oa(document),Ze({message:"exit fullscreen"});else{Ze({message:"request fullscreen"});const P=Q!=null?Q:wt,Ne=P.getRootNode(),Ke=Ne instanceof ShadowRoot?Ne.host:Ne,yt=q instanceof HTMLElement&&q.contains(Ke);Ua(q&&yt?q:P)}},Ai=()=>{var P,Ne,Ke,yt;const Xe=Wn();rt.set(Xe),V.getAdmanWrapper().setFullscreen(Xe),s?(Ne=(P=V.callbacks)===null||P===void 0?void 0:P.onFullscreenEnter)===null||Ne===void 0||Ne.call(P):(yt=(Ke=V.callbacks)===null||Ke===void 0?void 0:Ke.onFullscreenExit)===null||yt===void 0||yt.call(Ke)},xt=()=>et.set(!1),zl=P=>{et.set(!0),i(31,Zt=P.clientX),i(32,Ht=P.clientY)},Ci=()=>{o?He.set(!1):(He.set(!0),clearTimeout(dt),Ae(Ei))},Tl=P=>{if(ze){Ci();return}if(n){xt();return}xt(),!l&&(V.actions.internal.togglePlay(),$e.set(!1),P.detail===2&&(Ze({message:"double click on video"}),Si()))},Ll=()=>{if(n){xt();return}},El=P=>{Et.keyDownHandler(P)},Nl=()=>ci("backward"),Bl=()=>ci("forward");function Il(P){Ye[P?"unshift":"push"](()=>{Lt=P,i(28,Lt)})}function Fl(P){Ye[P?"unshift":"push"](()=>{Et=P,i(33,Et)})}function Rl(P){_t=P,i(29,_t)}function ql(P){Ye[P?"unshift":"push"](()=>{wt=P,i(27,wt)})}return t.$$set=P=>{"sources"in P&&i(70,F=P.sources),"store"in P&&i(71,V=P.store),"title"in P&&i(0,I=P.title),"thumbUrl"in P&&i(1,O=P.thumbUrl),"autoplay"in P&&i(72,D=P.autoplay),"volume"in P&&i(73,N=P.volume),"muted"in P&&i(74,K=P.muted),"fromTime"in P&&i(75,J=P.fromTime),"canRewindLive"in P&&i(2,H=P.canRewindLive),"supportLink"in P&&i(3,U=P.supportLink),"showAds"in P&&i(4,X=P.showAds),"adsSlotId"in P&&i(5,pe=P.adsSlotId),"adsParams"in P&&i(6,Z=P.adsParams),"adsPreviewParam"in P&&i(7,j=P.adsPreviewParam),"duration"in P&&i(8,ie=P.duration),"logoClickable"in P&&i(9,re=P.logoClickable),"logoHidden"in P&&i(10,Se=P.logoHidden),"isMobile"in P&&i(11,ze=P.isMobile),"showNextPrevButtons"in P&&i(12,Re=P.showNextPrevButtons),"nextButtonActive"in P&&i(13,ue=P.nextButtonActive),"prevButtonActive"in P&&i(14,fe=P.prevButtonActive),"endScreenVideoTitle"in P&&i(15,ce=P.endScreenVideoTitle),"endScreenVideoThumb"in P&&i(16,ve=P.endScreenVideoThumb),"isOneVideoPlaylist"in P&&i(17,_e=P.isOneVideoPlaylist),"outerContainerRef"in P&&i(76,Q=P.outerContainerRef),"playNextVideo"in P&&i(18,be=P.playNextVideo),"playPrevVideo"in P&&i(19,ae=P.playPrevVideo),"repeatPlaylist"in P&&i(20,R=P.repeatPlaylist),"fullScreenTarget"in P&&i(77,q=P.fullScreenTarget),"failoverHosts"in P&&i(78,x=P.failoverHosts)},t.$$.update=()=>{t.$$.dirty[0]&41943040|t.$$.dirty[2]&805306368&&i(34,Ut=(z===Ve.Video&&E||z===Ve.Ads&&w===Ie.INACTIVE)&&!_),t.$$.dirty[0]&25165824|t.$$.dirty[2]&50331648&&i(21,Ot=(o||b||l)&&!_),t.$$.dirty[0]&8388624|t.$$.dirty[2]&150994944&&i(22,Te=(X&&h||!X)&&l&&!_),t.$$.dirty[0]&6291456&&i(35,S=rt&&!(Ot||Te)),t.$$.dirty[0]&2048|t.$$.dirty[2]&512&&V.ui.isMobile.set(ze),t.$$.dirty[0]&2048|t.$$.dirty[2]&79691776&&(G!==m&&ze&&(clearTimeout(dt),m?He.set(!0):Ae(Ei)),i(85,G=m))},[I,O,H,U,X,pe,Z,j,ie,re,Se,ze,Re,ue,fe,ce,ve,_e,be,ae,R,Ot,Te,_,b,z,Jt,wt,Lt,_t,jt,Zt,Ht,Et,Ut,S,n,p,k,T,gt,ht,st,at,zt,rt,He,$e,pt,et,ut,tt,it,Tt,bt,W,Xt,Gt,ne,ke,Ue,Ee,ci,Si,xt,zl,Ci,Tl,Ll,El,F,V,D,N,K,J,Q,q,x,ft,ri,Cl,Ml,Pi,dt,G,l,o,m,h,w,E,Nl,Bl,Il,Fl,Rl,ql]}class $a extends he{constructor(e){super(),ge(this,e,xa,Za,me,{sources:70,store:71,title:0,thumbUrl:1,autoplay:72,volume:73,muted:74,fromTime:75,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:76,playNextVideo:18,playPrevVideo:19,repeatPlaylist:20,fullScreenTarget:77,failoverHosts:78,play:79,pause:80,setMuted:81,setVolume:82,seekTime:83},Xa,[-1,-1,-1,-1])}get play(){return this.$$.ctx[79]}get pause(){return this.$$.ctx[80]}get setMuted(){return this.$$.ctx[81]}get setVolume(){return this.$$.ctx[82]}get seekTime(){return this.$$.ctx[83]}}var er="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";function tr(t){we(t,"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 ll(t){let e,i;return{c(){e=g("div"),i=de(t[0]),c(e,"class","title v-1oqts7t")},m(n,l){M(n,e,l),f(e,i)},p(n,l){l&1&&Me(i,n[0])},d(n){n&&C(e)}}}function ol(t){let e,i;return{c(){e=g("img"),ye(e.src,i=er)||c(e,"src",i),c(e,"class","stubImage v-1oqts7t"),c(e,"alt",""),A(e,"stubImage-white",t[1]||"")},m(n,l){M(n,e,l)},p(n,l){l&2&&A(e,"stubImage-white",n[1]||"")},d(n){n&&C(e)}}}function ir(t){let e,i,n,l=t[0]&&ll(t),o=(!t[0]||!t[1])&&ol(t);return{c(){e=g("div"),l&&l.c(),i=L(),o&&o.c(),c(e,"class","playerStub v-1oqts7t"),c(e,"style",n=t[1]?`background-image: url('${t[1]}')`:"")},m(s,a){M(s,e,a),l&&l.m(e,null),f(e,i),o&&o.m(e,null)},p(s,[a]){s[0]?l?l.p(s,a):(l=ll(s),l.c(),l.m(e,i)):l&&(l.d(1),l=null),!s[0]||!s[1]?o?o.p(s,a):(o=ol(s),o.c(),o.m(e,null)):o&&(o.d(1),o=null),a&2&&n!==(n=s[1]?`background-image: url('${s[1]}')`:"")&&c(e,"style",n)},i:B,o:B,d(s){s&&C(e),l&&l.d(),o&&o.d()}}}function nr(t,e,i){let{title:n}=e,{thumbUrl:l}=e;return t.$$set=o=>{"title"in o&&i(0,n=o.title),"thumbUrl"in o&&i(1,l=o.thumbUrl)},[n,l]}class lr extends he{constructor(e){super(),ge(this,e,nr,ir,me,{title:0,thumbUrl:1},tr)}}const or=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3,sr="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",ar=2e3,rr=2e3;class cr{constructor(e){this.adman=null,this.initialVolume=si,this.videoElement=null,this.currentAdSection=null,this.actions=null,this.adsState=null,this.uiState=null,this.events={slotRequested$:new Vt,started$:new Vt,paused$:new Vt,resumed$:new Vt,ended$:new Vt,skipped$:new Vt,clicked$:new Vt},this.loadAdman=i=>new Promise((n,l)=>{let o;const s=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?n():l()};Ul(sr,i,ar).then(()=>{window.AdmanHTML?n():(window.admanAsyncInit=s,o=window.setTimeout(s,rr))}).catch(()=>{l()})}),this.onAdsReady=()=>{this.log({message:"ads ready"}),this.startPreroll()},this.onAdStarted=(i,n)=>{Ce(this.adsState),Ce(this.uiState),Ce(this.actions),this.log({message:`ad started, section: ${i}, banner: ${JSON.stringify(n)}`}),this.events.started$.next(i),n.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),Be(this.uiState.isMobile)&&this.uiState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(n.duration),this.adsState.playbackState.set(Ie.PLAYING),this.adsState.canSkip.set(n.allowClose),this.adsState.secondsToWatchBeforeSkip.set(n.allowCloseDelay)},this.onAdTimeRemained=({currentTime:i})=>{Ce(this.adsState),this.adsState.position.set(i)},this.onAdPaused=()=>{Ce(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set(Ie.PAUSED)},this.onAdPlayed=()=>{Ce(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set(Ie.PLAYING)},this.onAdMidrollPoint=()=>{Ce(this.adman),Ce(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection=lt.Midroll,this.adman.start(lt.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 i;this.log({message:"ad clicked"}),(i=this.videoElement)===null||i===void 0||i.pause(),this.events.clicked$.next()},this.onAdError=()=>{this.log({message:"ad error"}),this.switchToVideo(!0)},this.log=e.createComponentLog("AdmanWrapper")}init(e,i,n){this.actions=e,this.adsState=i,this.uiState=n}onAdmanLoadingError(){this.log({message:"adman loading error"}),this.switchToVideo(!0)}initAdman(e){const{width:i,height:n,isFullscreen:l,isAutoplay:o,adsContainer:s,adsVideoElement:a,slotId:r,params:u={},duration:d,previewParam:m}=e,_=Object.assign({dl:encodeURIComponent(window.location.href),autoplay:o,player_width:i,player_height:n,puid10:or(i,n),puid11:l?0:1,preview:m,duration:d},u),h={slot:r,wrapper:s,videoEl:a,videoQuality:n,params:_,browser:{mobile:!1}},b=new window.AdmanHTML;b.setDebug(!1),b.onReady(this.onAdsReady),b.onStarted(this.onAdStarted),b.onPlayed(this.onAdPlayed),b.onPaused(this.onAdPaused),b.adMidrollPoint(this.onAdMidrollPoint),b.onClosed(this.onAdClosed),b.onSkipped(this.onAdSkipped),b.onClicked(this.onAdClicked),b.onTimeRemained(this.onAdTimeRemained),b.onCompleted(this.onAdCompleted),b.onError(this.onAdError),b.init(h),this.adman=b,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(h)}`})}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}Ce(this.actions),Ce(this.adsState),Ce(this.uiState);const i=this.currentAdSection===lt.Postroll;this.adsState.playbackState.set(Ie.INACTIVE),this.currentAdSection=null,this.uiState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${i}`}),i&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"})),this.actions.switchFromAdsToVideo(!i)}togglePlay(){Ce(this.adsState),this.log({message:"toggle play"});const e=Be(this.adsState.playbackState);e===Ie.PLAYING?this.pause():e===Ie.PAUSED&&this.play()}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){var i;this.log({message:`set volume ${e}`}),(i=this.adman)===null||i===void 0||i.setVolume(e),this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){var i;this.log({message:`set fullscreen ${e}`}),(i=this.adman)===null||i===void 0||i.setFullscreen(e)}startPreroll(){Ce(this.adman),this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection=lt.Preroll,this.adman.start(lt.Preroll)}startPostroll(){Ce(this.adman),Ce(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection=lt.Postroll,this.adman.start(lt.Postroll)}play(){Ce(this.adman),this.log({message:"ad play"}),this.adman.resume(),this.events.resumed$.next()}pause(){Ce(this.adman),this.log({message:"ad pause"}),this.adman.pause(),this.events.paused$.next()}skip(){Ce(this.adman),this.log({message:"ad skip"}),this.adman.skip(),this.events.skipped$.next()}setPosition(e,i){var n;(n=this.adman)===null||n===void 0||n.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e;this.log({message:"destroy"}),(e=this.adman)===null||e===void 0||e.destroy()}}const ur=()=>/ipad|iphone|ipod/.test(window.navigator.userAgent.toLowerCase()),dr=t=>{const e=Math.round(t);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""},fr=(t,e,i)=>{const n=new ii;return n.add(i.attachTo(t)),n.add(e.slotRequested$.subscribe(()=>{i.logAdSlotRequest()})).add(e.started$.subscribe(l=>{i.logAdStarted(l)})).add(e.paused$.subscribe(()=>{i.logAdPaused()})).add(e.resumed$.subscribe(()=>{i.logAdResumed()})).add(e.ended$.subscribe(()=>{i.logAdEnded()})).add(e.skipped$.subscribe(()=>{i.logAdSkipped()})).add(e.clicked$.subscribe(()=>{i.logAdClicked()})),n},mr=({videoId:t,albumId:e,autoplay:i,statPlace:n,callbacks:l})=>{const o=new Dl,s=new sl,a=new cr(s),r=s.createComponentLog("Store");let u,d,m={};const _=Rt([],S=>{let G=[];const ne=Ql(o.events.managedError$,o.events.fatalError$).subscribe(ke=>{G=[...G,ke],S(G)});return()=>ne.unsubscribe()}),h=Rt(!1,S=>{const G=o.events.fatalError$.subscribe(()=>S(!0));return()=>G.unsubscribe()}),b=Le(Ve.Thumb),w=nt([h,b],([S,G])=>S?Ve.Crashed:G);r({message:"create store"});const z=S=>{r({message:`init video, config: ${JSON.stringify(S)}`}),o.initVideo(S),u=S},E=new Yl({movieId:t,albumId:e,place:n,autoplay:i},{apiEnv:Wl.VK_ALIAS}),p=fr(o,a.events,E),k=()=>{ur()&&d&&Qa(d)},T=new ii().add(o.experimental.element$.subscribe(S=>{S&&(d=S,S.classList.add("player-media"))})).add(o.events.ended$.subscribe(()=>{var S;k(),(S=l==null?void 0:l.onEnded)===null||S===void 0||S.call(l)})).add(o.events.started$.subscribe(()=>{var S,G;const ne=o.info.muted$.getValue();(S=l==null?void 0:l.onStarted)===null||S===void 0||S.call(l),(G=m.onStarted)===null||G===void 0||G.call(m,ne)})).add(o.events.willSeek$.subscribe(({from:S,to:G})=>{var ne;(ne=l==null?void 0:l.onSeek)===null||ne===void 0||ne.call(l,S,G)})).add(o.info.position$.subscribe(S=>{var G;const ne=o.info.duration$.getValue();(G=l==null?void 0:l.onTimeupdate)===null||G===void 0||G.call(l,ne,S),a.setPosition(S,ne)})).add(o.events.fatalError$.subscribe(()=>{var S;(S=l==null?void 0:l.onCrashed)===null||S===void 0||S.call(l)})),F=new ii,V=()=>{F.add(o.events.log$.subscribe(S=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${S.component}`,S.message)})).add(s.log$.subscribe(S=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${S.component}.`,S.message)}))},I=()=>{F.unsubscribe()},O=Rt(o.info.position$.getValue(),S=>{let G,ne;const ke=()=>{const Ue=o.info.playbackState$.getValue(),Ae=o.info.isLive$.getValue(),Ge=o.info.duration$.getValue(),Ee=o.info.position$.getValue();if([At.PLAYING,At.PAUSED].includes(Ue)){const ft=Ae?Ee-Ge:o.getExactTime();ft!==ne&&S(ft),ne=ft}G=requestAnimationFrame(ke)};return ke(),()=>cancelAnimationFrame(G)}),D=qe(o.info.playbackState$),N=qe(o.info.currentBuffer$),K=qe(o.info.isEnded$),J=qe(o.info.isLive$),H=qe(o.info.volume$),U=qe(o.info.muted$),X=qe(o.info.availableQualities$),pe=qe(o.info.availableQualitiesFps$),Z=qe(o.info.chromecastState$),j=qe(o.info.chromecastDeviceName$),ie=qe(o.info.currentFormat$),re=qe(o.info.throughputEstimation$),Se=qe(o.info.videoBitrate$),ze=qe(o.info.duration$);let Re=null;const ue=o.info.isBuffering$,fe=Rt(ue.getValue(),S=>{const G=ue.subscribe(ne=>{ne&&Re===null?Re=window.setTimeout(()=>{S(ue.getValue()),Re=null},Co):S(ne)});return()=>{G.unsubscribe(),Re&&clearTimeout(Re)}}),ce=nt([ze,J],([S,G])=>G?-S:S),ve=qe(o.info.position$),_e=nt([J,ve],([S,G])=>Boolean(S&&G>-So)),Q=nt([Z],([S])=>S===qt.CONNECTED),be=Le(void 0),ae=qe(o.info.isAutoQualityEnabled$,S=>S&&be.set(void 0)),R=qe(o.info.currentQuality$,()=>be.set(void 0)),q=nt([be,R],([S,G])=>S!=null?S:G),x=nt([X,pe,ae,q,ie],([S,G,ne,ke,Ue])=>{const Ae=[];Ue!==zi.MPEG&&Ae.push({value:Yt.AUTO,displayValue:ni,selected:ne});const Ge=S.filter(Ee=>Ee!==Qe.INVARIANT);for(const Ee of Ge){const ft=G[Ee],ri=Ee===Qe.INVARIANT?ni:Ee;Ae.push({value:Ee,displayValue:`${ri}${ft?dr(ft):""}`,selected:ne?!1:Ee===ke})}return Ae}),je=qe(o.info.currentPlaybackRate$),Ze=nt([je],([S])=>{const Ue=[];for(let Ae=.25;Ae<=2;Ae+=.25)Ue.push({value:Ae,displayValue:Ae===1?"\u041E\u0431\u044B\u0447\u043D\u0430\u044F":Ae+"x",selected:S===Ae});return Ue}),gt=nt([N,ce],([S,G],ne)=>{var ke;return ne(((ke=S==null?void 0:S.end)!==null&&ke!==void 0?ke:0)/G)}),ht=()=>{r({message:"toggle muted"});const S=o.info.muted$.getValue(),ke=!(o.info.volume$.getValue()===0||S);at(ke)},st=(S,G=S,ne=!1)=>{var ke,Ue;const Ae=!ne,Ge=o.info.muted$.getValue();r({message:`set volume, volume: ${S}, preferredVolume: ${G}, internalCall: ${Ae}`}),o.setVolume(S),a.setVolume(S),Ae&&((ke=l==null?void 0:l.onVolumeChange)===null||ke===void 0||ke.call(l,S)),Qn(G),Ge&&(o.setMuted(!1),Ae&&((Ue=l==null?void 0:l.onUnmute)===null||Ue===void 0||Ue.call(l)),Yn(!1))},at=(S,G=!1)=>{var ne,ke,Ue;const Ae=!G,Ge=o.info.volume$.getValue();if(r({message:`set muted, currentVolume: ${Ge}, mute: ${S}, internalCall: ${Ae}`}),o.setMuted(S),a.setVolume(S?0:Ge),Yn(S),Ae&&(S?(ne=l==null?void 0:l.onMute)===null||ne===void 0||ne.call(l):(ke=l==null?void 0:l.onUnmute)===null||ke===void 0||ke.call(l)),Ge===0){let Ee=Al();Ee===0&&(Ee=Vo,Qn(Ee)),o.setVolume(Ee),a.setVolume(Ee),Ae&&((Ue=l==null?void 0:l.onVolumeChange)===null||Ue===void 0||Ue.call(l,Ee))}},zt=()=>{var S,G;if(Ce(Te),r({message:"toggle play"}),Be(Te.playerPhase)===Ve.Ads){a.togglePlay();return}o.info.playbackState$.getValue()!==At.PLAYING?(o.info.isEnded$.getValue()&&(r({message:"toggle play, video ended, seek to 0"}),o.seekTime(0)),r({message:"toggle play, call player.play"}),o.play(),(S=l==null?void 0:l.onPlay)===null||S===void 0||S.call(l)):(r({message:"toggle play, call player.pause"}),o.pause(),(G=l==null?void 0:l.onPause)===null||G===void 0||G.call(l))},rt=S=>{r({message:`set quality, quality: ${S}`}),o.setAutoQuality(S===Yt.AUTO),S!==Yt.AUTO&&(be.set(S),o.setQuality(S))},He=S=>{o.setPlaybackRate(S)},$e=()=>{const S=Be(Ze),G=S.findIndex(({selected:ke})=>ke);if(G===S.length-1)return;const ne=S[G+1];He(ne.value)},pt=()=>{const S=Be(Ze),G=S.findIndex(({selected:ke})=>ke);if(G===0)return;const ne=S[G-1];He(ne.value)},ct=(S,G=!0)=>{if(r({message:`seek to time, time: ${S}`}),o.info.isLive$.getValue()){const ne=o.info.duration$.getValue(),ke=Math.min(0,ne+S);o.seekTime(ke,G)}else o.seekTime(S,G)},et=S=>{r({message:`seek to percent, percent: ${S}`});const G=Math.round(Be(ce)*S);ct(G,!1)},ut=S=>{r({message:`seek external, time: ${S}`}),o.seekTime(o.info.isLive$.getValue()?-S:S)},tt=Le(void 0),it=Le(!1),Tt=S=>{r({message:`start scrubbing, progress: ${S}`}),it.set(!0),bt(S)},bt=S=>{tt.set(S)};let W;const Dt=()=>{tt.set(void 0),it.set(!1)},Kt=()=>{clearTimeout(W),W=window.setTimeout(()=>{Dt()},500),d==null||d.removeEventListener("canplay",Kt)},Xt=S=>{r({message:`complete scrubbing, progress: ${S}`}),et(S),Be(Te.ui.isMobile)&&Be(Te.state.currentFormat$)===zi.HLS?d==null||d.addEventListener("canplay",Kt):Dt()},Gt=nt([O,ce,tt],([S,G,ne],ke)=>{ke(Ol(ne)?ne*G:S)}),Jt=()=>{r({message:"switch to active live"}),o.seekTime(0)},wt=()=>a.skip(),Lt=(S=!0)=>{Ce(Te),r({message:`switch from ads to video, callPlay: ${S}`}),b.set(Ve.Video),S&&o.play()},_t=()=>{Ce(Te),r({message:"switch from video to ads"}),Te.actions.internal.pause(),k(),b.set(Ve.Ads)},dt=()=>(Ce(Te),po(o,u,Te)),kt=()=>(Ce(Te),bo(o,u,Te)),jt=()=>d,Zt=()=>{r({message:"toggle chromecast"}),o.toggleChromecast()},Ht=S=>{var G;Ce(Te);const ne=!S;if(Be(Te.playerPhase)===Ve.Ads){r({message:`pause ads, internalCall: ${ne}`}),a.pause();return}r({message:`pause video, internalCall: ${ne}`}),ne&&((G=l==null?void 0:l.onPause)===null||G===void 0||G.call(l)),o.pause()},Et=S=>{var G;Ce(Te);const ne=!S;if(Be(Te.playerPhase)===Ve.Ads){r({message:`play ads, internalCall: ${ne}`}),a.play();return}r({message:`play video, internalCall: ${ne}`}),ne&&((G=l==null?void 0:l.onPlay)===null||G===void 0||G.call(l)),o.play()},Ut=(S,G)=>{Ce(Te),r({message:`first start, show ads: ${S}, internalCall: ${!G}`}),S?b.set(Ve.Ads):(b.set(Ve.Video),G?o.play():Te.actions.internal.togglePlay())},Ot=()=>{E.destroy(),p.unsubscribe(),T.unsubscribe(),F.unsubscribe(),o.destroy(),a.destroy()},Te={initVideo:z,videoId:t,playerPhase:w,state:{positionExact$:O,positionWithScrubbing$:Gt,duration$:ce,playbackState$:D,isLoaderVisible:fe,bufferedProgress$:gt,isLive$:J,isActiveLive$:_e,isEnded$:K,muted$:U,volume$:H,currentQuality$:q,isAutoQualityEnabled$:ae,availableQualities$:x,currentPlaybackRate$:je,availablePlaybackRates$:Ze,chromecastState$:Z,chromecastDeviceName$:j,chromecastConnected$:Q,currentFormat$:ie,throughputEstimation$:re,videoBitrate$:Se,errorLog$:_,crashed$:h},ui:{controlsVisible:Le(!1),isFullscreen:Le(!1),isAutoplay:Le(!1),contextMenuVisible:Le(!1),debugPanelVisible:Le(!1),playerSize:Le({width:0,height:0}),isMobile:Le(!1),mobileUnmuteButtonExpanded:Le(!1),mobileUnmuteButtonVisible:Le(!1),settingsMenuVisible:Le(!1),scrubbingInProgress:it},ads:{position:Le(0),duration:Le(0),playbackState:Le(Ie.INACTIVE),canSkip:Le(!1),secondsToWatchBeforeSkip:Le(0),postrollPassed:Le(!1)},actions:{internal:{firstStart:S=>Ut(S,!1),pause:()=>Ht(!1),togglePlay:zt,toggleMuted:ht,setVolume:st,setQuality:rt,setPlaybackRate:He,incrementPlaybackRate:$e,decrementPlaybackRate:pt,startScrubbing:Tt,progressScrubbing:bt,completeScrubbing:Xt,toggleChromecast:Zt,switchToActiveLive:Jt,switchFromAdsToVideo:Lt,switchFromVideoToAds:_t,skipAd:wt,getDebugTextData:dt,getDebugPanelData:kt,getVideoElement:jt,seekTime:S=>ct(S),startLogging:V,stopLogging:I},external:{firstStart:S=>Ut(S,!0),play:()=>Et(!0),pause:()=>Ht(!0),seekTime:S=>ut(S),setMuted:S=>at(S,!0),setVolume:S=>st(S,S,!0)}},callbacks:l,setUiCallbacks:S=>{m=Object.assign({},S)},getAdmanWrapper:()=>a,getLogger:()=>s,destroy:Ot};return Te};class vr 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 sl,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new ii,!((e=window==null?void 0:window.videoPlayerConfig)===null||e===void 0)&&e.debugLogs&&this.subscription.add(this.logger.log$.subscribe(i=>{console.log("%c player web component ","background:#77dd77;",`${i.component}`,i.message)}))}connectedCallback(){var e,i;const n=(e=this.getAttribute("stub-title"))!==null&&e!==void 0?e:void 0,l=(i=this.getAttribute("stub-thumb-url"))!==null&&i!==void 0?i:void 0;this.svelteStubComponent=new lr({target:this.playerContainer,props:{title:n,thumbUrl:l}})}disconnectedCallback(){var e,i;(e=this.svelteRootComponent)===null||e===void 0||e.$destroy(),(i=this.svelteStubComponent)===null||i===void 0||i.$destroy(),this.subscription.unsubscribe()}needToShowNextPrevButtons(){return this.config?this.config.videos.length>1:!1}isNextButtonActive(){return this.config?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.config.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.config?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}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,i={}){if(!this.config)return;const{albumId:n,statPlace:l,autoplay:o,volume:s,muted:a,fromTime:r,canRewindLive:u,supportLink:d,showAds:m,adsSlotId:_,adsParams:h={},adsPreviewParam:b,logoClickable:w,logoHidden:z,isMobile:E,fullScreenTarget:p,failoverHosts:k,callbacks:T}=Object.assign(Object.assign({},this.config),i),{sources:F,title:V,thumbUrl:I,unitedVideoId:O,duration:D,adsParams:N={}}=e,K=Object.assign(Object.assign({},h),N),J=this.getNextVideoInfo(),H={sources:F,title:V,thumbUrl:I,unitedVideoId:O,albumId:n,statPlace:l,autoplay:o,muted:a,volume:s,fromTime:r,canRewindLive:u,supportLink:d,showAds:m,adsSlotId:_,adsParams:K,adsPreviewParam:b,duration:D,logoClickable:w,logoHidden:z,isMobile:E,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:J.nextVideoTitle,endScreenVideoThumb:J.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()};this.log({message:`create player, props: ${JSON.stringify(H)}`}),this.store=mr({videoId:O,albumId:n,autoplay:o,statPlace:l,callbacks:T}),this.store.state.currentFormat$.subscribe(U=>{var X;(X=T==null?void 0:T.onCurrentFormatChanged)===null||X===void 0||X.call(T,U)}),this.store.state.throughputEstimation$.subscribe(U=>{var X;(X=T==null?void 0:T.onThroughputEstimationChanged)===null||X===void 0||X.call(T,U)}),this.store.state.videoBitrate$.subscribe(U=>{var X;(X=T==null?void 0:T.onVideoBitrateChanged)===null||X===void 0||X.call(T,U)}),this.svelteRootComponent=new $a({target:this.playerContainer,props:{sources:F,store:this.store,title:V,thumbUrl:I,autoplay:o,muted:a,volume:s,fromTime:r,canRewindLive:u,supportLink:d,showAds:m,adsSlotId:_,adsParams:K,adsPreviewParam:b,duration:D,logoClickable:w,logoHidden:z,isMobile:E,failoverHosts:k,fullScreenTarget:p,outerContainerRef:this.playerContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:J.nextVideoTitle,endScreenVideoThumb:J.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 i=this.config.videos[this.currentPlayingVideoIndex];if(!i){this.log({message:"no next video"});return}(e=this.svelteRootComponent)===null||e===void 0||e.$destroy(),setTimeout(()=>this.createPlayer(i,{autoplay:!0,fromTime:0}),0)}initPlayer(e){var i,n,l;if(!Array.isArray(e.videos)||e.videos.length===0)throw new Error("empty videos");this.config=Kl(e,o=>o instanceof HTMLElement?o:void 0),this.config.callbacks=(i=e.callbacks)!==null&&i!==void 0?i:{},this.currentPlayingVideoIndex=0,(n=this.svelteStubComponent)===null||n===void 0||n.$destroy(),(l=this.svelteRootComponent)===null||l===void 0||l.$destroy(),this.createPlayer(e.videos[0])}isOneVideoPlaylist(){return this.config?this.config.videos.length===1:!1}updateNextVideos(e){var i;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 n=this.getNextVideoInfo();(i=this.svelteRootComponent)===null||i===void 0||i.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}play(){var e;this.log({message:"play"}),(e=this.svelteRootComponent)===null||e===void 0||e.play()}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)===null||e===void 0||e.pause()}stop(){var e,i;if(!this.config)return;this.log({message:"stop"}),(e=this.svelteStubComponent)===null||e===void 0||e.$destroy();const n=this.config.videos[0];n&&((i=this.svelteRootComponent)===null||i===void 0||i.$destroy(),this.createPlayer(n))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)===null||i===void 0||i.setMuted(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)===null||i===void 0||i.setVolume(e)}setRepeat(e){var i;this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,(i=this.svelteRootComponent)===null||i===void 0||i.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(e){var i;this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)===null||i===void 0||i.seekTime(e)}}const kr=()=>{window.customElements.define("vk-video-player",vr)};export{kr as registerPlayerWebComponent};
|
|
37
|
+
)}.hidden.v-cus9x4{visibility:hidden;transform:translateY(calc(var(--videoplayer-controls-gradient-height) * -1));opacity:0}`)}function ja(t){let e,i;return{c(){e=h("div"),i=fe(t[0]),c(e,"class","title v-cus9x4"),S(e,"hidden",t[1])},m(n,l){E(n,e,l),f(e,i)},p(n,[l]){l&1&&Me(i,n[0]),l&2&&S(e,"hidden",n[1])},i:B,o:B,d(n){n&&M(e)}}}function Oa(t,e,i){let{title:n=""}=e,{isHidden:l=!1}=e;return t.$$set=o=>{"title"in o&&i(0,n=o.title),"isHidden"in o&&i(1,l=o.isHidden)},[n,l]}class Ua extends pe{constructor(e){super(),he(this,e,Oa,ja,ve,{title:0,isHidden:1},Da)}}function Qa(t){_e(t,"v-1o62kpz",".wrapper.v-1o62kpz{height:100%;background-position:center;background-size:cover;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column}.icon_wrapper.v-1o62kpz{display:flex;flex-direction:column;align-items:center;width:400px}.icon.v-1o62kpz{width:50px;height:50px}.text.v-1o62kpz{margin-top:20px}")}function xn(t){let e,i,n;return{c(){e=h("div"),i=fe("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=fe(t[1]),c(e,"class","text v-1o62kpz")},m(l,o){E(l,e,o),f(e,i),f(e,n)},p(l,o){o&2&&Me(n,l[1])},d(l){l&&M(e)}}}function Wa(t){let e,i,n,l,o,s,r=t[1]&&xn(t);return{c(){e=h("div"),i=h("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=z(),r&&r.c(),c(i,"class","icon_wrapper v-1o62kpz"),c(e,"class","wrapper v-1o62kpz"),c(e,"style",l=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${t[0]||""}')`)},m(a,u){E(a,e,u),f(e,i),f(e,n),r&&r.m(e,null),o||(s=oe(e,"click",t[2]),o=!0)},p(a,[u]){a[1]?r?r.p(a,u):(r=xn(a),r.c(),r.m(e,null)):r&&(r.d(1),r=null),u&1&&l!==(l=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${a[0]||""}')`)&&c(e,"style",l)},i:B,o:B,d(a){a&&M(e),r&&r.d(),o=!1,s()}}}function Ya(t,e,i){let{thumbUrl:n}=e,{chromecastDeviceName:l}=e;function o(s){it.call(this,t,s)}return t.$$set=s=>{"thumbUrl"in s&&i(0,n=s.thumbUrl),"chromecastDeviceName"in s&&i(1,l=s.chromecastDeviceName)},[n,l,o]}class Ka extends pe{constructor(e){super(),he(this,e,Ya,Wa,ve,{thumbUrl:0,chromecastDeviceName:1},Qa)}}var Xa="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";function Ga(t){_e(t,"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 xa(t){let e,i,n;return{c(){e=h("div"),i=h("img"),Pe(i.src,n=Xa)||c(i,"src",n),c(i,"class","icon v-zd9h6u"),c(i,"alt",""),c(e,"class","container v-zd9h6u")},m(l,o){E(l,e,o),f(e,i)},p:B,i:B,o:B,d(l){l&&M(e)}}}class Ja extends pe{constructor(e){super(),he(this,e,null,xa,ve,{},Ga)}}function Za(t,e,i){let n,l,o,s,r,{isAds:a}=e,{hideContextMenu:u}=e,{toggleFullscreen:d}=e;const m=De(),b=m.getLogger().createComponentLog("KeyboardControls component"),v=m.state.playbackState$;Q(t,v,k=>i(13,r=k));const p=m.ads.playbackState;Q(t,p,k=>i(12,s=k));const w=m.state.positionExact$;Q(t,w,k=>i(11,o=k));const C=m.state.duration$;Q(t,C,k=>i(10,l=k));const N=m.state.volume$;Q(t,N,k=>i(9,n=k));const _=k=>{u();const L=k.code;if(k.ctrlKey||k.altKey||k.metaKey)return;const I=r===Tt.PLAYING||r===Tt.PAUSED,R=a&&(s===Be.PAUSED||s===Be.PLAYING);if(I||R)switch(b({message:`key down, code: ${L}`}),L){case Ke.KeyJ:case Ke.ArrowLeft:{if(R)break;const y=Math.max(o-Qi,0);o>0&&m.actions.internal.seekTime(y),k.preventDefault();break}case Ke.KeyL:case Ke.ArrowRight:{if(R)break;const y=Math.min(o+Qi,l);o<l&&m.actions.internal.seekTime(y),k.preventDefault();break}case Ke.ArrowUp:{const y=Math.min(n+Ui,Oi);n<Oi&&m.actions.internal.setVolume(y),k.preventDefault();break}case Ke.ArrowDown:{const y=Math.max(n-Ui,0);n>0&&m.actions.internal.setVolume(y),k.preventDefault();break}case Ke.Comma:{k.shiftKey&&(m.actions.internal.decrementPlaybackRate(),k.preventDefault());break}case Ke.Period:{k.shiftKey&&(m.actions.internal.incrementPlaybackRate(),k.preventDefault());break}case Ke.KeyK:case Ke.Space:m.actions.internal.togglePlay(),k.preventDefault();break;case Ke.KeyM:m.actions.internal.toggleMuted(),k.preventDefault();break;case Ke.KeyF:d(),k.preventDefault();break;default:to(L);break}};return t.$$set=k=>{"isAds"in k&&i(5,a=k.isAds),"hideContextMenu"in k&&i(6,u=k.hideContextMenu),"toggleFullscreen"in k&&i(7,d=k.toggleFullscreen)},[v,p,w,C,N,a,u,d,_]}class $a extends pe{constructor(e){super(),he(this,e,Za,null,ve,{isAds:5,hideContextMenu:6,toggleFullscreen:7,keyDownHandler:8})}get keyDownHandler(){return this.$$.ctx[8]}}function e1(t){_e(t,"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 Jn(t){let e,i,n,l,o,s,r,a,u,d,m,b,v,p,w,C,N;return{c(){e=h("div"),n=z(),l=h("div"),o=h("div"),s=h("div"),a=z(),u=h("div"),m=z(),b=h("div"),p=z(),w=h("p"),C=fe(t[1]),N=fe(" \u0441\u0435\u043A\u0443\u043D\u0434"),c(e,"class",i="semicircle "+t[0]+" v-1c30l04"),c(s,"class",r="triangle "+t[0]+" v-1c30l04"),c(u,"class",d="triangle "+t[0]+" v-1c30l04"),c(b,"class",v="triangle "+t[0]+" v-1c30l04"),c(o,"class","triangles-wrapper v-1c30l04"),c(w,"class","step-caption v-1c30l04"),c(l,"class","info v-1c30l04")},m(_,k){E(_,e,k),E(_,n,k),E(_,l,k),f(l,o),f(o,s),f(o,a),f(o,u),f(o,m),f(o,b),f(l,p),f(l,w),f(w,C),f(w,N)},p(_,k){k&1&&i!==(i="semicircle "+_[0]+" v-1c30l04")&&c(e,"class",i),k&1&&r!==(r="triangle "+_[0]+" v-1c30l04")&&c(s,"class",r),k&1&&d!==(d="triangle "+_[0]+" v-1c30l04")&&c(u,"class",d),k&1&&v!==(v="triangle "+_[0]+" v-1c30l04")&&c(b,"class",v),k&2&&Me(C,_[1])},d(_){_&&M(e),_&&M(n),_&&M(l)}}}function t1(t){let e,i,n,l,o=t[2]&&Jn(t);return{c(){e=h("div"),o&&o.c(),c(e,"class",i="double-click-area "+t[0]+" v-1c30l04")},m(s,r){E(s,e,r),o&&o.m(e,null),n||(l=oe(e,"click",bo(t[3]())),n=!0)},p(s,[r]){s[2]?o?o.p(s,r):(o=Jn(s),o.c(),o.m(e,null)):o&&(o.d(1),o=null),r&1&&i!==(i="double-click-area "+s[0]+" v-1c30l04")&&c(e,"class",i)},i:B,o:B,d(s){s&&M(e),o&&o.d(),n=!1,l()}}}function i1(t,e,i){let{side:n}=e,{seekStep:l}=e,{handleSingleFirstClick:o}=e,{handleSecondClick:s}=e,r=!1,a=0,u=0;const d=()=>{let b=0;return()=>{b+=1,b===1?a=window.setTimeout(()=>{o(),b=0},300):(window.clearTimeout(a),b=0,s(),i(2,r=!0),u=window.setTimeout(()=>{i(2,r=!1)},500))}};return pl(()=>{window.clearTimeout(a),window.clearTimeout(u)}),t.$$set=m=>{"side"in m&&i(0,n=m.side),"seekStep"in m&&i(1,l=m.seekStep),"handleSingleFirstClick"in m&&i(4,o=m.handleSingleFirstClick),"handleSecondClick"in m&&i(5,s=m.handleSecondClick)},[n,l,r,d,o,s]}class Bl extends pe{constructor(e){super(),he(this,e,i1,t1,ve,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},e1)}}function n1(t,e){var i,n,l,o,s;return t?((s=(o=(l=(n=(i=t.matches)!==null&&i!==void 0?i:t.matchesSelector)!==null&&n!==void 0?n:t.mozMatchesSelector)!==null&&l!==void 0?l:t.msMatchesSelector)!==null&&o!==void 0?o:t.oMatchesSelector)!==null&&s!==void 0?s:t.webkitMatchesSelector).call(t,e):!1}function l1(t){return n1(t,":hover")}const Rl=t=>t>1?fi:t<0?0:t,Zn=t=>Lt.set(yl,Rl(t)),Fl=()=>{const t=parseFloat(Lt.get(yl));return isNaN(t)?fi:Rl(t)},$n=t=>Lt.set(kl,t),o1=()=>{const t=Lt.get(kl);return typeof t=="boolean"?t:!1},s1=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();const e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},r1=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),a1=t=>{const e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},el=()=>{const t=document;return!!(t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement)},c1=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},u1=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},{window:d1}=So;function f1(t){_e(t,"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 tl(t){let e,i,n,l;e=new Bl({props:{side:"left",seekStep:ui,handleSingleFirstClick:t[66],handleSecondClick:t[92]}});let o=!t[37]&&il(t);return{c(){te(e.$$.fragment),i=z(),o&&o.c(),n=$e()},m(s,r){$(e,s,r),E(s,i,r),o&&o.m(s,r),E(s,n,r),l=!0},p(s,r){s[37]?o&&(se(),P(o,1,1,()=>{o=null}),re()):o?(o.p(s,r),r[1]&64&&g(o,1)):(o=il(s),o.c(),g(o,1),o.m(n.parentNode,n))},i(s){l||(g(e.$$.fragment,s),g(o),l=!0)},o(s){P(e.$$.fragment,s),P(o),l=!1},d(s){ee(e,s),s&&M(i),o&&o.d(s),s&&M(n)}}}function il(t){let e,i;return e=new Bl({props:{side:"right",seekStep:ui,handleSingleFirstClick:t[66],handleSecondClick:t[93]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p:B,i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function nl(t){let e,i,n;return i=new ua({props:{adsSlotId:t[5],adsParams:t[6],adsPreviewParam:t[7],duration:t[8]}}),{c(){e=h("div"),te(i.$$.fragment),c(e,"class","ads-container v-phigzb"),S(e,"hidden",t[25]!==ke.Ads)},m(l,o){E(l,e,o),$(i,e,null),n=!0},p(l,o){const s={};o[0]&32&&(s.adsSlotId=l[5]),o[0]&64&&(s.adsParams=l[6]),o[0]&128&&(s.adsPreviewParam=l[7]),o[0]&256&&(s.duration=l[8]),i.$set(s),(!n||o[0]&33554432)&&S(e,"hidden",l[25]!==ke.Ads)},i(l){n||(g(i.$$.fragment,l),n=!0)},o(l){P(i.$$.fragment,l),n=!1},d(l){l&&M(e),ee(i)}}}function ll(t){let e,i,n,l;const o=[v1,m1],s=[];function r(a,u){return a[11]?0:1}return e=r(t),i=s[e]=o[e](t),{c(){i.c(),n=$e()},m(a,u){s[e].m(a,u),E(a,n,u),l=!0},p(a,u){let d=e;e=r(a),e===d?s[e].p(a,u):(se(),P(s[d],1,1,()=>{s[d]=null}),re(),i=s[e],i?i.p(a,u):(i=s[e]=o[e](a),i.c()),g(i,1),i.m(n.parentNode,n))},i(a){l||(g(i),l=!0)},o(a){P(i),l=!1},d(a){s[e].d(a),a&&M(n)}}}function m1(t){let e,i;return e=new Fa({props:{title:t[15],thumb:t[16],playNextVideo:t[18]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&32768&&(o.title=n[15]),l[0]&65536&&(o.thumb=n[16]),l[0]&262144&&(o.playNextVideo=n[18]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function v1(t){let e,i;return e=new Ha({props:{playNextVideo:t[18]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&262144&&(o.playNextVideo=n[18]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function ol(t){let e,i;return e=new Ua({props:{title:t[0],isHidden:!t[21]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&1&&(o.title=n[0]),l[0]&2097152&&(o.isHidden=!n[21]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function sl(t){let e,i;return e=new Ka({props:{thumbUrl:t[1],chromecastDeviceName:t[38]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&2&&(o.thumbUrl=n[1]),l[1]&128&&(o.chromecastDeviceName=n[38]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function rl(t){let e,i,n={toggleFullscreen:t[63],hideContextMenu:t[64],isAds:t[25]===ke.Ads};return e=new $a({props:n}),t[95](e),{c(){te(e.$$.fragment)},m(l,o){$(e,l,o),i=!0},p(l,o){const s={};o[0]&33554432&&(s.isAds=l[25]===ke.Ads),e.$set(s)},i(l){i||(g(e.$$.fragment,l),i=!0)},o(l){P(e.$$.fragment,l),i=!1},d(l){t[95](null),ee(e,l)}}}function al(t){let e,i,n,l,o;return i=new Ja({}),{c(){e=h("div"),te(i.$$.fragment)},m(s,r){E(s,e,r),$(i,e,null),n=!0,l||(o=[oe(e,"contextmenu",Mt(t[65])),oe(e,"click",t[68])],l=!0)},p:B,i(s){n||(g(i.$$.fragment,s),n=!0)},o(s){P(i.$$.fragment,s),n=!1},d(s){s&&M(e),ee(i),l=!1,xe(o)}}}function cl(t){let e,i;return e=new ga({props:{supportLink:t[3],visible:t[36],playerContainerRef:t[27],controlsContainerRef:t[29],x:t[31],y:t[32]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&8&&(o.supportLink=n[3]),l[1]&32&&(o.visible=n[36]),l[0]&134217728&&(o.playerContainerRef=n[27]),l[0]&536870912&&(o.controlsContainerRef=n[29]),l[1]&1&&(o.x=n[31]),l[1]&2&&(o.y=n[32]),e.$set(o)},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function ul(t){let e,i;return e=new Wr({}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function dl(t){let e,i;return e=new Va({}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){P(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function g1(t){let e,i,n,l,o,s,r,a,u,d,m,b,v,p,w,C,N,_,k;i=new Or({props:{hidden:t[25]!==ke.Thumb||t[23],thumbUrl:t[1],startVideo:t[61]}});let L=t[11]&&tl(t),I=t[4]&&t[30]&&nl(t),R=t[22]&&t[15]&&t[16]&&ll(t),y=!t[11]&&t[25]===ke.Video&&ol(t),H=t[24]&&sl(t),q=!t[11]&&rl(t);function T(ie){t[96](ie)}let W={hidden:t[25]===ke.Thumb||t[11]&&t[25]===ke.Ads,showControls:t[21],isAds:t[25]===ke.Ads,canRewindLive:t[2]&&t[26]!==0,logoClickable:t[9],logoHidden:t[10],showNextPrevButtons:t[12],nextButtonActive:t[13],prevButtonActive:t[14],isOneVideoPlaylist:t[17],supportLink:t[3],playNextVideo:t[18],playPrevVideo:t[19],repeatPlaylist:t[20],toggleFullscreen:t[63]};t[29]!==void 0&&(W.controlsElementRef=t[29]),m=new qr({props:W}),Ge.push(()=>Co(m,"controlsElementRef",T));let J=t[23]&&al(t),D=!t[11]&&cl(t),U=t[34]&&ul(),G=t[39]&&dl();return{c(){e=h("div"),te(i.$$.fragment),n=z(),l=h("div"),L&&L.c(),o=z(),I&&I.c(),s=z(),R&&R.c(),r=z(),y&&y.c(),a=z(),H&&H.c(),u=z(),q&&q.c(),d=z(),te(m.$$.fragment),v=z(),J&&J.c(),p=z(),D&&D.c(),w=z(),U&&U.c(),C=z(),G&&G.c(),c(l,"class","video-container v-phigzb"),S(l,"hidden",t[25]!==ke.Video),S(l,"nocursor",t[35]),c(e,"class","player-wrapper v-phigzb"),c(e,"tabindex","0")},m(ie,Z){E(ie,e,Z),$(i,e,null),f(e,n),f(e,l),L&&L.m(l,null),t[94](l),f(e,o),I&&I.m(e,null),f(e,s),R&&R.m(e,null),f(e,r),y&&y.m(e,null),f(e,a),H&&H.m(e,null),f(e,u),q&&q.m(e,null),f(e,d),$(m,e,null),f(e,v),J&&J.m(e,null),f(e,p),D&&D.m(e,null),f(e,w),U&&U.m(e,null),f(e,C),G&&G.m(e,null),t[97](e),N=!0,_||(k=[oe(d1,"blur",t[64]),oe(l,"contextmenu",Mt(t[65])),oe(l,"click",t[67]),oe(e,"mouseenter",function(){Re(t[11]?B:t[58])&&(t[11]?B:t[58]).apply(this,arguments)}),oe(e,"mouseleave",function(){Re(t[11]?B:t[59])&&(t[11]?B:t[59]).apply(this,arguments)}),oe(e,"mousemove",function(){Re(t[11]?B:t[60])&&(t[11]?B:t[60]).apply(this,arguments)}),oe(e,"keydown",function(){Re(t[11]?B:t[69])&&(t[11]?B:t[69]).apply(this,arguments)})],_=!0)},p(ie,Z){t=ie;const j={};Z[0]&41943040&&(j.hidden=t[25]!==ke.Thumb||t[23]),Z[0]&2&&(j.thumbUrl=t[1]),i.$set(j),t[11]?L?(L.p(t,Z),Z[0]&2048&&g(L,1)):(L=tl(t),L.c(),g(L,1),L.m(l,null)):L&&(se(),P(L,1,1,()=>{L=null}),re()),(!N||Z[0]&33554432)&&S(l,"hidden",t[25]!==ke.Video),(!N||Z[1]&16)&&S(l,"nocursor",t[35]),t[4]&&t[30]?I?(I.p(t,Z),Z[0]&1073741840&&g(I,1)):(I=nl(t),I.c(),g(I,1),I.m(e,s)):I&&(se(),P(I,1,1,()=>{I=null}),re()),t[22]&&t[15]&&t[16]?R?(R.p(t,Z),Z[0]&4292608&&g(R,1)):(R=ll(t),R.c(),g(R,1),R.m(e,r)):R&&(se(),P(R,1,1,()=>{R=null}),re()),!t[11]&&t[25]===ke.Video?y?(y.p(t,Z),Z[0]&33556480&&g(y,1)):(y=ol(t),y.c(),g(y,1),y.m(e,a)):y&&(se(),P(y,1,1,()=>{y=null}),re()),t[24]?H?(H.p(t,Z),Z[0]&16777216&&g(H,1)):(H=sl(t),H.c(),g(H,1),H.m(e,u)):H&&(se(),P(H,1,1,()=>{H=null}),re()),t[11]?q&&(se(),P(q,1,1,()=>{q=null}),re()):q?(q.p(t,Z),Z[0]&2048&&g(q,1)):(q=rl(t),q.c(),g(q,1),q.m(e,d));const ne={};Z[0]&33556480&&(ne.hidden=t[25]===ke.Thumb||t[11]&&t[25]===ke.Ads),Z[0]&2097152&&(ne.showControls=t[21]),Z[0]&33554432&&(ne.isAds=t[25]===ke.Ads),Z[0]&67108868&&(ne.canRewindLive=t[2]&&t[26]!==0),Z[0]&512&&(ne.logoClickable=t[9]),Z[0]&1024&&(ne.logoHidden=t[10]),Z[0]&4096&&(ne.showNextPrevButtons=t[12]),Z[0]&8192&&(ne.nextButtonActive=t[13]),Z[0]&16384&&(ne.prevButtonActive=t[14]),Z[0]&131072&&(ne.isOneVideoPlaylist=t[17]),Z[0]&8&&(ne.supportLink=t[3]),Z[0]&262144&&(ne.playNextVideo=t[18]),Z[0]&524288&&(ne.playPrevVideo=t[19]),Z[0]&1048576&&(ne.repeatPlaylist=t[20]),!b&&Z[0]&536870912&&(b=!0,ne.controlsElementRef=t[29],Vo(()=>b=!1)),m.$set(ne),t[23]?J?(J.p(t,Z),Z[0]&8388608&&g(J,1)):(J=al(t),J.c(),g(J,1),J.m(e,p)):J&&(se(),P(J,1,1,()=>{J=null}),re()),t[11]?D&&(se(),P(D,1,1,()=>{D=null}),re()):D?(D.p(t,Z),Z[0]&2048&&g(D,1)):(D=cl(t),D.c(),g(D,1),D.m(e,w)),t[34]?U?Z[1]&8&&g(U,1):(U=ul(),U.c(),g(U,1),U.m(e,C)):U&&(se(),P(U,1,1,()=>{U=null}),re()),t[39]?G?Z[1]&256&&g(G,1):(G=dl(),G.c(),g(G,1),G.m(e,null)):G&&(se(),P(G,1,1,()=>{G=null}),re())},i(ie){N||(g(i.$$.fragment,ie),g(L),g(I),g(R),g(y),g(H),g(q),g(m.$$.fragment,ie),g(J),g(D),g(U),g(G),N=!0)},o(ie){P(i.$$.fragment,ie),P(L),P(I),P(R),P(y),P(H),P(q),P(m.$$.fragment,ie),P(J),P(D),P(U),P(G),N=!1},d(ie){ie&&M(e),ee(i),L&&L.d(),t[94](null),I&&I.d(),R&&R.d(),y&&y.d(),H&&H.d(),q&&q.d(),ee(m),J&&J.d(),D&&D.d(),U&&U.d(),G&&G.d(),t[97](null),_=!1,xe(k)}}}let ui=15;function h1(t,e,i){let n,l,o,s,r,a,u,d,m,b,v,p,w,C,N,_,k,L;var I=this&&this.__awaiter||function(V,Ee,Oe,Ye){function Qe(gt){return gt instanceof Oe?gt:new Oe(function(li){li(gt)})}return new(Oe||(Oe=Promise))(function(gt,li){function Jl(St){try{hi(Ye.next(St))}catch(pi){li(pi)}}function Zl(St){try{hi(Ye.throw(St))}catch(pi){li(pi)}}function hi(St){St.done?gt(St.value):Qe(St.value).then(Jl,Zl)}hi((Ye=Ye.apply(V,Ee||[])).next())})};let{sources:R}=e,{store:y}=e,{title:H}=e,{thumbUrl:q}=e,{autoplay:T=!1}=e,{volume:W=void 0}=e,{muted:J=void 0}=e,{fromTime:D=0}=e,{canRewindLive:U=!0}=e,{supportLink:G=Ho}=e,{showAds:ie=!1}=e,{adsSlotId:Z=void 0}=e,{adsParams:j=void 0}=e,{adsPreviewParam:ne=void 0}=e,{duration:ce=void 0}=e,{logoClickable:Ve=!1}=e,{logoHidden:je=!1}=e,{isMobile:ze=!1}=e,{showNextPrevButtons:me=!1}=e,{nextButtonActive:ae=!1}=e,{prevButtonActive:de=!1}=e,{endScreenVideoTitle:ge=void 0}=e,{endScreenVideoThumb:be=void 0}=e,{isOneVideoPlaylist:Y=!1}=e,{outerContainerRef:we=void 0}=e,{playNextVideo:ue=B}=e,{playPrevVideo:F=B}=e,{repeatPlaylist:O=B}=e,{fullScreenTarget:x=void 0}=e,{failoverHosts:Fe=void 0}=e;const It=V=>{We.set(!0),V?ze&&($t.set(!0),Qt.set(!0),window.setTimeout(()=>{Qt.set(!1),Se(ji)},Bo)):Se(ji)};y.setUiCallbacks({onStarted:It}),y.getAdmanWrapper().init({switchFromAdsToVideo:y.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:y.actions.internal.switchFromVideoToAds,setMuted:y.actions.external.setMuted},y.ads,{isMobile:y.ui.isMobile,mobileUnmuteButtonVisible:y.ui.mobileUnmuteButtonVisible});const nt=y.getLogger().createComponentLog("Root component"),lt=y.state.playbackState$;Q(t,lt,V=>i(103,d=V));const bt=y.ads.playbackState;Q(t,bt,V=>i(90,w=V));const wt=y.state.positionWithScrubbing$;Q(t,wt,V=>i(101,a=V));const _t=y.state.duration$;Q(t,_t,V=>i(100,r=V));const yt=y.playerPhase;Q(t,yt,V=>i(25,C=V));const ot=y.ui.isFullscreen;Q(t,ot,V=>i(99,s=V));const We=y.ui.controlsVisible;Q(t,We,V=>i(87,o=V));const Je=y.ui.settingsMenuVisible;Q(t,Je,V=>i(102,u=V));const kt=y.ui.scrubbingInProgress;Q(t,kt,V=>i(88,m=V));const ct=y.ui.playerSize,et=y.ui.contextMenuVisible;Q(t,et,V=>i(36,n=V));const ut=y.ui.debugPanelVisible;Q(t,ut,V=>i(39,L=V));const Pt=y.state.isLoaderVisible;Q(t,Pt,V=>i(91,N=V));const dt=y.state.isEnded$;Q(t,dt,V=>i(86,l=V));const ft=y.state.chromecastConnected$;Q(t,ft,V=>i(24,p=V));const K=y.state.chromecastDeviceName$;Q(t,K,V=>i(38,k=V));const Ut=y.ads.postrollPassed;Q(t,Ut,V=>i(89,v=V));const Qt=y.ui.mobileUnmuteButtonExpanded,$t=y.ui.mobileUnmuteButtonVisible,Wt=y.state.isActiveLive$;Q(t,Wt,V=>i(37,_=V));const ei=y.state.crashed$;Q(t,ei,V=>i(23,b=V));const Te=y.webApi.pictureInPictureApi;let ti=0;y.state.duration$.subscribe(V=>{i(26,ti=V)}),zo(y);let mt,Bt,Vt,vt,At=null,Yt=!1,ii=0,Kt=0,Rt,Xt,Gt,Le,A,X=!1;function le(){clearTimeout(vt),We.set(!0)}function ye(){Se(No)}function Ue(){clearTimeout(vt),We.set(!0),s&&Vt&&!l1(Vt)&&Se(Io)}function Se(V){i(84,vt=window.setTimeout(()=>{if(d===Tt.PLAYING){if(ze&&u)return;We.set(!1),Je.set(!1)}},V))}const Ze=V=>{if(window.ResizeObserver){let Ee,Oe;At=new ResizeObserver(eo(Ye=>{const Qe=Ye[0];if(Qe){if(Qe.contentBoxSize){const gt=Array.isArray(Qe.contentBoxSize)?Qe.contentBoxSize[0]:Qe.contentBoxSize;Ee=gt.inlineSize,Oe=gt.blockSize}else Qe.contentRect&&(Ee=Qe.contentRect.width,Oe=Qe.contentRect.height);ct.set({width:Ee,height:Oe})}},Pl)),At.observe(V)}ct.set({width:V.clientWidth,height:V.clientHeight})},qe=V=>{const Ee=V;ct.set({width:Ee.target.width,height:Ee.target.height})},tt=(V=!1)=>{i(30,Yt=!0),V?y.actions.external.firstStart(ie):y.actions.internal.firstStart(ie)};Nt(()=>{if(c1(Bi),Ze(mt),y.initVideo({container:Bt,sources:R,failoverHosts:Fe}),Mi(Te)){const Ye=mt.querySelector("video");Te==null||Te.updateVideoElement(Ye),Te==null||Te.registryEventHandlers(),Te==null||Te.registryExternalEventHandlers({resize:qe})}D>0&&y.actions.external.seekTime(D);const V=ze?fi:W!=null?W:Fl(),Ee=J!=null?J:o1();y.actions.external.setVolume(V),y.actions.external.setMuted(Ee),y.getAdmanWrapper().setInitialVolume(Ee?0:V),y.ui.isAutoplay.set(T),T&&tt();const Oe=Boolean(Lt.get(Ai));return ut.set(Oe),()=>{u1(Bi),At==null||At.disconnect(),y.destroy()}}),pl(()=>I(void 0,void 0,void 0,function*(){Mi(Te)&&(yield Te==null?void 0:Te.hidePictureInPicture(),Te==null||Te.unregistryEventHandlers())}));function vi(){Yt?y.actions.external.play():tt(!0)}function ql(){y.actions.external.pause()}function Hl(V){ze||y.actions.external.setMuted(V)}function Dl(V){ze||V>=0&&V<=1&&y.actions.external.setVolume(V)}function Ni(V){y.actions.internal.seekTime(V)}const gi=V=>{let Ee=a+(V==="forward"?ui:-ui);Ee<0?Ee=0:Ee>r&&(Ee=r-1),Ni(Ee)},Ii=()=>{if(el())r1(document),nt({message:"exit fullscreen"});else{nt({message:"request fullscreen"});const V=we!=null?we:mt,Ee=V.getRootNode(),Oe=Ee instanceof ShadowRoot?Ee.host:Ee,Ye=x instanceof HTMLElement&&x.contains(Oe);s1(x&&Ye?x:V)}},Bi=()=>I(void 0,void 0,void 0,function*(){var V,Ee,Oe,Ye;const Qe=el();Qe&&(yield Te==null?void 0:Te.remove()),ot.set(Qe),y.getAdmanWrapper().setFullscreen(Qe),s?(Ee=(V=y.callbacks)===null||V===void 0?void 0:V.onFullscreenEnter)===null||Ee===void 0||Ee.call(V):(Ye=(Oe=y.callbacks)===null||Oe===void 0?void 0:Oe.onFullscreenExit)===null||Ye===void 0||Ye.call(Oe)}),ni=()=>et.set(!1),jl=V=>{et.set(!0),i(31,ii=V.clientX),i(32,Kt=V.clientY)},Ri=()=>{o?We.set(!1):(We.set(!0),clearTimeout(vt),Se(Di))},Ol=V=>{if(ze){Ri();return}if(n){ni();return}ni(),!l&&(y.actions.internal.togglePlay(),Je.set(!1),V.detail===2&&(nt({message:"double click on video"}),Ii()))},Ul=()=>{if(n){ni();return}},Ql=V=>{Rt.keyDownHandler(V)},Wl=()=>gi("backward"),Yl=()=>gi("forward");function Kl(V){Ge[V?"unshift":"push"](()=>{Bt=V,i(28,Bt)})}function Xl(V){Ge[V?"unshift":"push"](()=>{Rt=V,i(33,Rt)})}function Gl(V){Vt=V,i(29,Vt)}function xl(V){Ge[V?"unshift":"push"](()=>{mt=V,i(27,mt)})}return t.$$set=V=>{"sources"in V&&i(70,R=V.sources),"store"in V&&i(71,y=V.store),"title"in V&&i(0,H=V.title),"thumbUrl"in V&&i(1,q=V.thumbUrl),"autoplay"in V&&i(72,T=V.autoplay),"volume"in V&&i(73,W=V.volume),"muted"in V&&i(74,J=V.muted),"fromTime"in V&&i(75,D=V.fromTime),"canRewindLive"in V&&i(2,U=V.canRewindLive),"supportLink"in V&&i(3,G=V.supportLink),"showAds"in V&&i(4,ie=V.showAds),"adsSlotId"in V&&i(5,Z=V.adsSlotId),"adsParams"in V&&i(6,j=V.adsParams),"adsPreviewParam"in V&&i(7,ne=V.adsPreviewParam),"duration"in V&&i(8,ce=V.duration),"logoClickable"in V&&i(9,Ve=V.logoClickable),"logoHidden"in V&&i(10,je=V.logoHidden),"isMobile"in V&&i(11,ze=V.isMobile),"showNextPrevButtons"in V&&i(12,me=V.showNextPrevButtons),"nextButtonActive"in V&&i(13,ae=V.nextButtonActive),"prevButtonActive"in V&&i(14,de=V.prevButtonActive),"endScreenVideoTitle"in V&&i(15,ge=V.endScreenVideoTitle),"endScreenVideoThumb"in V&&i(16,be=V.endScreenVideoThumb),"isOneVideoPlaylist"in V&&i(17,Y=V.isOneVideoPlaylist),"outerContainerRef"in V&&i(76,we=V.outerContainerRef),"playNextVideo"in V&&i(18,ue=V.playNextVideo),"playPrevVideo"in V&&i(19,F=V.playPrevVideo),"repeatPlaylist"in V&&i(20,O=V.repeatPlaylist),"fullScreenTarget"in V&&i(77,x=V.fullScreenTarget),"failoverHosts"in V&&i(78,Fe=V.failoverHosts)},t.$$.update=()=>{t.$$.dirty[0]&41943040|t.$$.dirty[2]&805306368&&i(34,Xt=(C===ke.Video&&N||C===ke.Ads&&w===Be.INACTIVE)&&!b),t.$$.dirty[0]&25165824|t.$$.dirty[2]&50331648&&i(21,Gt=(o||p||l)&&!b),t.$$.dirty[0]&8388624|t.$$.dirty[2]&150994944&&i(22,Le=(ie&&v||!ie)&&l&&!b),t.$$.dirty[0]&6291456&&i(35,A=ot&&!(Gt||Le)),t.$$.dirty[0]&2048|t.$$.dirty[2]&512&&y.ui.isMobile.set(ze),t.$$.dirty[0]&2048|t.$$.dirty[2]&79691776&&(X!==m&&ze&&(clearTimeout(vt),m?We.set(!0):Se(Di)),i(85,X=m))},[H,q,U,G,ie,Z,j,ne,ce,Ve,je,ze,me,ae,de,ge,be,Y,ue,F,O,Gt,Le,b,p,C,ti,mt,Bt,Vt,Yt,ii,Kt,Rt,Xt,A,n,_,k,L,lt,bt,wt,_t,yt,ot,We,Je,kt,et,ut,Pt,dt,ft,K,Ut,Wt,ei,le,ye,Ue,tt,gi,Ii,ni,jl,Ri,Ol,Ul,Ql,R,y,T,W,J,D,we,x,Fe,vi,ql,Hl,Dl,Ni,vt,X,l,o,m,v,w,N,Wl,Yl,Kl,Xl,Gl,xl]}class p1 extends pe{constructor(e){super(),he(this,e,h1,g1,ve,{sources:70,store:71,title:0,thumbUrl:1,autoplay:72,volume:73,muted:74,fromTime:75,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:76,playNextVideo:18,playPrevVideo:19,repeatPlaylist:20,fullScreenTarget:77,failoverHosts:78,play:79,pause:80,setMuted:81,setVolume:82,seekTime:83},f1,[-1,-1,-1,-1])}get play(){return this.$$.ctx[79]}get pause(){return this.$$.ctx[80]}get setMuted(){return this.$$.ctx[81]}get setVolume(){return this.$$.ctx[82]}get seekTime(){return this.$$.ctx[83]}}var b1="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";function w1(t){_e(t,"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 fl(t){let e,i;return{c(){e=h("div"),i=fe(t[0]),c(e,"class","title v-1oqts7t")},m(n,l){E(n,e,l),f(e,i)},p(n,l){l&1&&Me(i,n[0])},d(n){n&&M(e)}}}function ml(t){let e,i;return{c(){e=h("img"),Pe(e.src,i=b1)||c(e,"src",i),c(e,"class","stubImage v-1oqts7t"),c(e,"alt",""),S(e,"stubImage-white",t[1]||"")},m(n,l){E(n,e,l)},p(n,l){l&2&&S(e,"stubImage-white",n[1]||"")},d(n){n&&M(e)}}}function _1(t){let e,i,n,l=t[0]&&fl(t),o=(!t[0]||!t[1])&&ml(t);return{c(){e=h("div"),l&&l.c(),i=z(),o&&o.c(),c(e,"class","playerStub v-1oqts7t"),c(e,"style",n=t[1]?`background-image: url('${t[1]}')`:"")},m(s,r){E(s,e,r),l&&l.m(e,null),f(e,i),o&&o.m(e,null)},p(s,[r]){s[0]?l?l.p(s,r):(l=fl(s),l.c(),l.m(e,i)):l&&(l.d(1),l=null),!s[0]||!s[1]?o?o.p(s,r):(o=ml(s),o.c(),o.m(e,null)):o&&(o.d(1),o=null),r&2&&n!==(n=s[1]?`background-image: url('${s[1]}')`:"")&&c(e,"style",n)},i:B,o:B,d(s){s&&M(e),l&&l.d(),o&&o.d()}}}function y1(t,e,i){let{title:n}=e,{thumbUrl:l}=e;return t.$$set=o=>{"title"in o&&i(0,n=o.title),"thumbUrl"in o&&i(1,l=o.thumbUrl)},[n,l]}class k1 extends pe{constructor(e){super(),he(this,e,y1,_1,ve,{title:0,thumbUrl:1},w1)}}const P1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3,V1="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",A1=2e3,S1=2e3;class C1{constructor(e){this.adman=null,this.initialVolume=fi,this.videoElement=null,this.currentAdSection=null,this.actions=null,this.adsState=null,this.uiState=null,this.events={slotRequested$:new Ct,started$:new Ct,paused$:new Ct,resumed$:new Ct,ended$:new Ct,skipped$:new Ct,clicked$:new Ct},this.loadAdman=i=>new Promise((n,l)=>{let o;const s=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?n():l()};io(V1,i,A1).then(()=>{window.AdmanHTML?n():(window.admanAsyncInit=s,o=window.setTimeout(s,S1))}).catch(()=>{l()})}),this.onAdsReady=()=>{this.log({message:"ads ready"}),this.startPreroll()},this.onAdStarted=(i,n)=>{Ce(this.adsState),Ce(this.uiState),Ce(this.actions),this.log({message:`ad started, section: ${i}, banner: ${JSON.stringify(n)}`}),this.events.started$.next(i),n.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),Ie(this.uiState.isMobile)&&this.uiState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(n.duration),this.adsState.playbackState.set(Be.PLAYING),this.adsState.canSkip.set(n.allowClose),this.adsState.secondsToWatchBeforeSkip.set(n.allowCloseDelay)},this.onAdTimeRemained=({currentTime:i})=>{Ce(this.adsState),this.adsState.position.set(i)},this.onAdPaused=()=>{Ce(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set(Be.PAUSED)},this.onAdPlayed=()=>{Ce(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set(Be.PLAYING)},this.onAdMidrollPoint=()=>{Ce(this.adman),Ce(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection=rt.Midroll,this.adman.start(rt.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 i;this.log({message:"ad clicked"}),(i=this.videoElement)===null||i===void 0||i.pause(),this.events.clicked$.next()},this.onAdError=()=>{this.log({message:"ad error"}),this.switchToVideo(!0)},this.log=e.createComponentLog("AdmanWrapper")}init(e,i,n){this.actions=e,this.adsState=i,this.uiState=n}onAdmanLoadingError(){this.log({message:"adman loading error"}),this.switchToVideo(!0)}initAdman(e){const{width:i,height:n,isFullscreen:l,isAutoplay:o,adsContainer:s,adsVideoElement:r,slotId:a,params:u={},duration:d,previewParam:m}=e,b=Object.assign({dl:encodeURIComponent(window.location.href),autoplay:o,player_width:i,player_height:n,puid10:P1(i,n),puid11:l?0:1,preview:m,duration:d},u),v={slot:a,wrapper:s,videoEl:r,videoQuality:n,params:b,browser:{mobile:!1}},p=new window.AdmanHTML;p.setDebug(!1),p.onReady(this.onAdsReady),p.onStarted(this.onAdStarted),p.onPlayed(this.onAdPlayed),p.onPaused(this.onAdPaused),p.adMidrollPoint(this.onAdMidrollPoint),p.onClosed(this.onAdClosed),p.onSkipped(this.onAdSkipped),p.onClicked(this.onAdClicked),p.onTimeRemained(this.onAdTimeRemained),p.onCompleted(this.onAdCompleted),p.onError(this.onAdError),p.init(v),this.adman=p,this.videoElement=r,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(v)}`})}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}Ce(this.actions),Ce(this.adsState),Ce(this.uiState);const i=this.currentAdSection===rt.Postroll;this.adsState.playbackState.set(Be.INACTIVE),this.currentAdSection=null,this.uiState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${i}`}),i&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"})),this.actions.switchFromAdsToVideo(!i)}togglePlay(){Ce(this.adsState),this.log({message:"toggle play"});const e=Ie(this.adsState.playbackState);e===Be.PLAYING?this.pause():e===Be.PAUSED&&this.play()}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){var i;this.log({message:`set volume ${e}`}),(i=this.adman)===null||i===void 0||i.setVolume(e),this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){var i;this.log({message:`set fullscreen ${e}`}),(i=this.adman)===null||i===void 0||i.setFullscreen(e)}startPreroll(){Ce(this.adman),this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection=rt.Preroll,this.adman.start(rt.Preroll)}startPostroll(){Ce(this.adman),Ce(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection=rt.Postroll,this.adman.start(rt.Postroll)}play(){Ce(this.adman),this.log({message:"ad play"}),this.adman.resume(),this.events.resumed$.next()}pause(){Ce(this.adman),this.log({message:"ad pause"}),this.adman.pause(),this.events.paused$.next()}skip(){Ce(this.adman),this.log({message:"ad skip"}),this.adman.skip(),this.events.skipped$.next()}setPosition(e,i){var n;(n=this.adman)===null||n===void 0||n.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e;this.log({message:"destroy"}),(e=this.adman)===null||e===void 0||e.destroy()}}const M1=()=>/ipad|iphone|ipod/.test(window.navigator.userAgent.toLowerCase()),E1=t=>{const e=Math.round(t);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""},z1=(t,e,i)=>{const n=new ai;return n.add(i.attachTo(t)),n.add(e.slotRequested$.subscribe(()=>{i.logAdSlotRequest()})).add(e.started$.subscribe(l=>{i.logAdStarted(l)})).add(e.paused$.subscribe(()=>{i.logAdPaused()})).add(e.resumed$.subscribe(()=>{i.logAdResumed()})).add(e.ended$.subscribe(()=>{i.logAdEnded()})).add(e.skipped$.subscribe(()=>{i.logAdSkipped()})).add(e.clicked$.subscribe(()=>{i.logAdClicked()})),n},T1=({videoId:t,albumId:e,autoplay:i,statPlace:n,callbacks:l,webApi:o})=>{const s=new $l,r=new vl,a=new C1(r),u=o==null?void 0:o.pictureInPictureApi,d=r.createComponentLog("Store");let m,b,v={};const p=jt([],A=>{let X=[];const le=lo(s.events.managedError$,s.events.fatalError$).subscribe(ye=>{X=[...X,ye],A(X)});return()=>le.unsubscribe()}),w=jt(!1,A=>{const X=s.events.fatalError$.subscribe(()=>A(!0));return()=>X.unsubscribe()}),C=Ne(ke.Thumb),N=st([w,C],([A,X])=>A?ke.Crashed:X);d({message:"create store"});const _=A=>{d({message:`init video, config: ${JSON.stringify(A)}`}),s.initVideo(A),m=A},k=new so({movieId:t,albumId:e,place:n,autoplay:i},{apiEnv:ro.VK_ALIAS}),L=z1(s,a.events,k),I=()=>{M1()&&b&&a1(b)},R=new ai().add(s.experimental.element$.subscribe(A=>{A&&(b=A,A.classList.add("player-media"))})).add(s.events.ended$.subscribe(()=>{var A;I(),(A=l==null?void 0:l.onEnded)===null||A===void 0||A.call(l)})).add(s.events.started$.subscribe(()=>zt(void 0,void 0,void 0,function*(){var A,X;Mi(u)&&(yield u==null?void 0:u.revealPictureInPicture());const le=s.info.muted$.getValue();(A=l==null?void 0:l.onStarted)===null||A===void 0||A.call(l),(X=v.onStarted)===null||X===void 0||X.call(v,le)}))).add(s.events.willSeek$.subscribe(({from:A,to:X})=>{var le;(le=l==null?void 0:l.onSeek)===null||le===void 0||le.call(l,A,X)})).add(s.info.position$.subscribe(A=>{var X;const le=s.info.duration$.getValue();(X=l==null?void 0:l.onTimeupdate)===null||X===void 0||X.call(l,le,A),a.setPosition(A,le)})).add(s.events.fatalError$.subscribe(()=>{var A;(A=l==null?void 0:l.onCrashed)===null||A===void 0||A.call(l)})),y=new ai,H=()=>{y.add(s.events.log$.subscribe(A=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${A.component}`,A.message)})).add(r.log$.subscribe(A=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${A.component}.`,A.message)}))},q=()=>{y.unsubscribe()},T=jt(s.info.position$.getValue(),A=>{let X,le;const ye=()=>{const Ue=s.info.playbackState$.getValue(),Se=s.info.isLive$.getValue(),Ze=s.info.duration$.getValue(),qe=s.info.position$.getValue();if([Tt.PLAYING,Tt.PAUSED].includes(Ue)){const tt=Se?qe-Ze:s.getExactTime();tt!==le&&A(tt),le=tt}X=requestAnimationFrame(ye)};return ye(),()=>cancelAnimationFrame(X)}),W=He(s.info.playbackState$),J=He(s.info.currentBuffer$),D=He(s.info.isEnded$),U=He(s.info.isLive$),G=He(s.info.volume$),ie=He(s.info.muted$),Z=He(s.info.availableQualities$),j=He(s.info.availableQualitiesFps$),ne=He(s.info.chromecastState$),ce=He(s.info.chromecastDeviceName$),Ve=He(s.info.currentFormat$),je=He(s.info.throughputEstimation$),ze=He(s.info.videoBitrate$),me=He(s.info.duration$);let ae=null;const de=s.info.isBuffering$,ge=jt(de.getValue(),A=>{const X=de.subscribe(le=>{le&&ae===null?ae=window.setTimeout(()=>{A(de.getValue()),ae=null},Do):A(le)});return()=>{X.unsubscribe(),ae&&clearTimeout(ae)}}),be=st([me,U],([A,X])=>X?-A:A),Y=He(s.info.position$),we=st([U,Y],([A,X])=>Boolean(A&&X>-qo)),ue=st([ne],([A])=>A===Ot.CONNECTED),F=Ne(void 0),O=He(s.info.isAutoQualityEnabled$,A=>A&&F.set(void 0)),x=He(s.info.currentQuality$,()=>F.set(void 0)),Fe=st([F,x],([A,X])=>A!=null?A:X),It=st([Z,j,O,Fe,Ve],([A,X,le,ye,Ue])=>{const Se=[];Ue!==Fi.MPEG&&Se.push({value:Jt.AUTO,displayValue:ci,selected:le});const Ze=A.filter(qe=>qe!==Xe.INVARIANT);for(const qe of Ze){const tt=X[qe],vi=qe===Xe.INVARIANT?ci:qe;Se.push({value:qe,displayValue:`${vi}${tt?E1(tt):""}`,selected:le?!1:qe===ye})}return Se}),nt=He(s.info.currentPlaybackRate$),lt=st([nt],([A])=>{const Ue=[];for(let Se=.25;Se<=2;Se+=.25)Ue.push({value:Se,displayValue:Se===1?"\u041E\u0431\u044B\u0447\u043D\u0430\u044F":Se+"x",selected:A===Se});return Ue}),bt=st([J,be],([A,X],le)=>{var ye;return le(((ye=A==null?void 0:A.end)!==null&&ye!==void 0?ye:0)/X)}),wt=()=>{d({message:"toggle muted"});const A=s.info.muted$.getValue(),ye=!(s.info.volume$.getValue()===0||A);yt(ye)},_t=(A,X=A,le=!1)=>{var ye,Ue;const Se=!le,Ze=s.info.muted$.getValue();d({message:`set volume, volume: ${A}, preferredVolume: ${X}, internalCall: ${Se}`}),s.setVolume(A),a.setVolume(A),Se&&((ye=l==null?void 0:l.onVolumeChange)===null||ye===void 0||ye.call(l,A)),Zn(X),Ze&&(s.setMuted(!1),Se&&((Ue=l==null?void 0:l.onUnmute)===null||Ue===void 0||Ue.call(l)),$n(!1))},yt=(A,X=!1)=>{var le,ye,Ue;const Se=!X,Ze=s.info.volume$.getValue();if(d({message:`set muted, currentVolume: ${Ze}, mute: ${A}, internalCall: ${Se}`}),s.setMuted(A),a.setVolume(A?0:Ze),$n(A),Se&&(A?(le=l==null?void 0:l.onMute)===null||le===void 0||le.call(l):(ye=l==null?void 0:l.onUnmute)===null||ye===void 0||ye.call(l)),Ze===0){let qe=Fl();qe===0&&(qe=Fo,Zn(qe)),s.setVolume(qe),a.setVolume(qe),Se&&((Ue=l==null?void 0:l.onVolumeChange)===null||Ue===void 0||Ue.call(l,qe))}},ot=()=>{var A,X;if(Ce(Le),d({message:"toggle play"}),Ie(Le.playerPhase)===ke.Ads){a.togglePlay();return}s.info.playbackState$.getValue()!==Tt.PLAYING?(s.info.isEnded$.getValue()&&(d({message:"toggle play, video ended, seek to 0"}),s.seekTime(0)),d({message:"toggle play, call player.play"}),s.play(),(A=l==null?void 0:l.onPlay)===null||A===void 0||A.call(l)):(d({message:"toggle play, call player.pause"}),s.pause(),(X=l==null?void 0:l.onPause)===null||X===void 0||X.call(l))},We=A=>{d({message:`set quality, quality: ${A}`}),s.setAutoQuality(A===Jt.AUTO),A!==Jt.AUTO&&(F.set(A),s.setQuality(A))},Je=A=>{s.setPlaybackRate(A)},kt=()=>{const A=Ie(lt),X=A.findIndex(({selected:ye})=>ye);if(X===A.length-1)return;const le=A[X+1];Je(le.value)},ct=()=>{const A=Ie(lt),X=A.findIndex(({selected:ye})=>ye);if(X===0)return;const le=A[X-1];Je(le.value)},et=(A,X=!0)=>{if(d({message:`seek to time, time: ${A}`}),s.info.isLive$.getValue()){const le=s.info.duration$.getValue(),ye=Math.min(0,le+A);s.seekTime(ye,X)}else s.seekTime(A,X)},ut=A=>{d({message:`seek to percent, percent: ${A}`});const X=Math.round(Ie(be)*A);et(X,!1)},Pt=A=>{d({message:`seek external, time: ${A}`}),s.seekTime(s.info.isLive$.getValue()?-A:A)},dt=Ne(void 0),ft=Ne(!1),K=A=>{d({message:`start scrubbing, progress: ${A}`}),ft.set(!0),Ut(A)},Ut=A=>{dt.set(A)};let Qt;const $t=()=>{dt.set(void 0),ft.set(!1)},Wt=()=>{clearTimeout(Qt),Qt=window.setTimeout(()=>{$t()},500),b==null||b.removeEventListener("canplay",Wt)},ei=A=>{d({message:`complete scrubbing, progress: ${A}`}),ut(A),Ie(Le.ui.isMobile)&&Ie(Le.state.currentFormat$)===Fi.HLS?b==null||b.addEventListener("canplay",Wt):$t()},Te=st([T,be,dt],([A,X,le],ye)=>{ye(no(le)?le*X:A)}),ti=()=>{d({message:"switch to active live"}),s.seekTime(0)},mt=()=>a.skip(),Bt=(A=!0)=>{Ce(Le),d({message:`switch from ads to video, callPlay: ${A}`}),C.set(ke.Video),A&&s.play()},Vt=()=>{Ce(Le),d({message:"switch from video to ads"}),Le.actions.internal.pause(),I(),C.set(ke.Ads)},vt=()=>(Ce(Le),To(s,m,Le)),At=()=>(Ce(Le),Lo(s,m,Le)),Yt=()=>b,ii=()=>{d({message:"toggle chromecast"}),s.toggleChromecast()},Kt=A=>{var X;Ce(Le);const le=!A;if(Ie(Le.playerPhase)===ke.Ads){d({message:`pause ads, internalCall: ${le}`}),a.pause();return}d({message:`pause video, internalCall: ${le}`}),le&&((X=l==null?void 0:l.onPause)===null||X===void 0||X.call(l)),s.pause()},Rt=A=>{var X;Ce(Le);const le=!A;if(Ie(Le.playerPhase)===ke.Ads){d({message:`play ads, internalCall: ${le}`}),a.play();return}d({message:`play video, internalCall: ${le}`}),le&&((X=l==null?void 0:l.onPlay)===null||X===void 0||X.call(l)),s.play()},Xt=(A,X)=>{Ce(Le),d({message:`first start, show ads: ${A}, internalCall: ${!X}`}),A?C.set(ke.Ads):(C.set(ke.Video),X?s.play():Le.actions.internal.togglePlay())},Gt=()=>{k.destroy(),L.unsubscribe(),R.unsubscribe(),y.unsubscribe(),s.destroy(),a.destroy()},Le={initVideo:_,videoId:t,playerPhase:N,state:{positionExact$:T,positionWithScrubbing$:Te,duration$:be,playbackState$:W,isLoaderVisible:ge,bufferedProgress$:bt,isLive$:U,isActiveLive$:we,isEnded$:D,muted$:ie,volume$:G,currentQuality$:Fe,isAutoQualityEnabled$:O,availableQualities$:It,currentPlaybackRate$:nt,availablePlaybackRates$:lt,chromecastState$:ne,chromecastDeviceName$:ce,chromecastConnected$:ue,currentFormat$:Ve,throughputEstimation$:je,videoBitrate$:ze,errorLog$:p,crashed$:w},ui:{controlsVisible:Ne(!1),isFullscreen:Ne(!1),isAutoplay:Ne(!1),contextMenuVisible:Ne(!1),debugPanelVisible:Ne(!1),playerSize:Ne({width:0,height:0}),isMobile:Ne(!1),mobileUnmuteButtonExpanded:Ne(!1),mobileUnmuteButtonVisible:Ne(!1),settingsMenuVisible:Ne(!1),scrubbingInProgress:ft},ads:{position:Ne(0),duration:Ne(0),playbackState:Ne(Be.INACTIVE),canSkip:Ne(!1),secondsToWatchBeforeSkip:Ne(0),postrollPassed:Ne(!1)},webApi:{pictureInPictureApi:u},actions:{internal:{firstStart:A=>Xt(A,!1),pause:()=>Kt(!1),togglePlay:ot,toggleMuted:wt,setVolume:_t,setQuality:We,setPlaybackRate:Je,incrementPlaybackRate:kt,decrementPlaybackRate:ct,startScrubbing:K,progressScrubbing:Ut,completeScrubbing:ei,toggleChromecast:ii,switchToActiveLive:ti,switchFromAdsToVideo:Bt,switchFromVideoToAds:Vt,skipAd:mt,getDebugTextData:vt,getDebugPanelData:At,getVideoElement:Yt,seekTime:A=>et(A),startLogging:H,stopLogging:q},external:{firstStart:A=>Xt(A,!0),play:()=>Rt(!0),pause:()=>Kt(!0),seekTime:A=>Pt(A),setMuted:A=>yt(A,!0),setVolume:A=>_t(A,A,!0)}},callbacks:l,setUiCallbacks:A=>{v=Object.assign({},A)},getAdmanWrapper:()=>a,getLogger:()=>r,destroy:Gt};return Le};class L1{isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:n=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:n,sizes:"96x96",type:"image/png"},{src:n,sizes:"128x128",type:"image/png"},{src:n,sizes:"192x192",type:"image/png"},{src:n,sizes:"256x256",type:"image/png"},{src:n,sizes:"384x384",type:"image/png"},{src:n,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){const e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",i=>null],["seekbackward",i=>null],["seekforward",i=>null]];this.setActionHandlers(e)}setActionHandlers(e){if(this.isSupported())for(const[i,n]of e)try{navigator.mediaSession.setActionHandler(i,n)}catch(l){throw new Error(`The media session action "${i}" is not supported yet.`)}}}class N1{static getLatestSupportedVersion(){return new Ml}}class I1 extends HTMLElement{constructor(){var e;super(),this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=!1,this.config=void 0,this.pictureInPictureApi=void 0,this.mediaSessionApi=void 0,this.unsubscribePlayerPhaseSubscription=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 vl,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new ai,!((e=window==null?void 0:window.videoPlayerConfig)===null||e===void 0)&&e.debugLogs&&this.subscription.add(this.logger.log$.subscribe(i=>{console.log("%c player web component ","background:#77dd77;",`${i.component}`,i.message)}))}connectedCallback(){var e,i;const n=(e=this.getAttribute("stub-title"))!==null&&e!==void 0?e:void 0,l=(i=this.getAttribute("stub-thumb-url"))!==null&&i!==void 0?i:void 0;this.svelteStubComponent=new k1({target:this.playerContainer,props:{title:n,thumbUrl:l}})}disconnectedCallback(){var e,i,n;(e=this.svelteRootComponent)===null||e===void 0||e.$destroy(),(i=this.svelteStubComponent)===null||i===void 0||i.$destroy(),this.subscription.unsubscribe(),(n=this.unsubscribePlayerPhaseSubscription)===null||n===void 0||n.call(this)}needToShowNextPrevButtons(){return this.config?this.config.videos.length>1:!1}isNextButtonActive(){return this.config?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.config.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.config?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}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,i={}){if(!this.config)return;const{albumId:n,statPlace:l,autoplay:o,volume:s,muted:r,fromTime:a,canRewindLive:u,supportLink:d,showAds:m,adsSlotId:b,adsParams:v={},adsPreviewParam:p,logoClickable:w,logoHidden:C,isMobile:N,fullScreenTarget:_,failoverHosts:k,callbacks:L}=Object.assign(Object.assign({},this.config),i),{sources:I,title:R,thumbUrl:y,unitedVideoId:H,duration:q,adsParams:T={}}=e,W=Object.assign(Object.assign({},v),T),J=this.getNextVideoInfo(),D={sources:I,title:R,thumbUrl:y,unitedVideoId:H,albumId:n,statPlace:l,autoplay:o,muted:r,volume:s,fromTime:a,canRewindLive:u,supportLink:d,showAds:m,adsSlotId:b,adsParams:W,adsPreviewParam:p,duration:q,logoClickable:w,logoHidden:C,isMobile:N,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:J.nextVideoTitle,endScreenVideoThumb:J.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},U={pictureInPictureApi:this.pictureInPictureApi};this.log({message:`create player, props: ${JSON.stringify(D)}`}),this.store=T1({videoId:H,albumId:n,autoplay:o,statPlace:l,callbacks:L,webApi:U}),this.store.state.currentFormat$.subscribe(G=>{var ie;(ie=L==null?void 0:L.onCurrentFormatChanged)===null||ie===void 0||ie.call(L,G)}),this.store.state.throughputEstimation$.subscribe(G=>{var ie;(ie=L==null?void 0:L.onThroughputEstimationChanged)===null||ie===void 0||ie.call(L,G)}),this.store.state.videoBitrate$.subscribe(G=>{var ie;(ie=L==null?void 0:L.onVideoBitrateChanged)===null||ie===void 0||ie.call(L,G)}),this.initMediaSession(),this.svelteRootComponent=new p1({target:this.playerContainer,props:{sources:I,store:this.store,title:R,thumbUrl:y,autoplay:o,muted:r,volume:s,fromTime:a,canRewindLive:u,supportLink:d,showAds:m,adsSlotId:b,adsParams:W,adsPreviewParam:p,duration:q,logoClickable:w,logoHidden:C,isMobile:N,failoverHosts:k,fullScreenTarget:_,outerContainerRef:this.playerContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:J.nextVideoTitle,endScreenVideoThumb:J.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 i=this.config.videos[this.currentPlayingVideoIndex];if(!i){this.log({message:"no next video"});return}(e=this.svelteRootComponent)===null||e===void 0||e.$destroy(),setTimeout(()=>this.createPlayer(i,{autoplay:!0,fromTime:0}),0)}initPlayer(e){var i,n,l;if(!Array.isArray(e.videos)||e.videos.length===0)throw new Error("empty videos");this.config=ao(e,o=>o instanceof HTMLElement?o:void 0),this.config.callbacks=(i=e.callbacks)!==null&&i!==void 0?i:{},this.currentPlayingVideoIndex=0,this.pictureInPictureApi=N1.getLatestSupportedVersion(),this.mediaSessionApi=this.config.isMediaSessionEnabled?new L1:void 0,(n=this.svelteStubComponent)===null||n===void 0||n.$destroy(),(l=this.svelteRootComponent)===null||l===void 0||l.$destroy(),this.createPlayer(e.videos[0]),Ls(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.config?this.config.videos.length===1:!1}updateNextVideos(e){var i;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 n=this.getNextVideoInfo();(i=this.svelteRootComponent)===null||i===void 0||i.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)===null||e===void 0||e.call(this),this.unsubscribePlayerPhaseSubscription=(i=this.store)===null||i===void 0?void 0:i.playerPhase.subscribe(n=>{n===ke.Video?this.setupMediaSessionForVideo():n===ke.Ads&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.config||!this.mediaSessionApi))try{const{title:e,thumbUrl:i}=Object.assign({},this.config.videos[this.currentPlayingVideoIndex]),n=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",l=>this.seekTime(l.seekTime)],["nexttrack",()=>this.playNextVideo()],["previoustrack",()=>this.playPrevVideo()]];this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(n)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.config||!this.mediaSessionApi))try{const e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i)}catch(e){this.log({message:e.message})}}play(){var e;this.log({message:"play"}),(e=this.svelteRootComponent)===null||e===void 0||e.play()}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)===null||e===void 0||e.pause()}stop(){var e,i;if(!this.config)return;this.log({message:"stop"}),(e=this.svelteStubComponent)===null||e===void 0||e.$destroy();const n=this.config.videos[0];n&&((i=this.svelteRootComponent)===null||i===void 0||i.$destroy(),this.createPlayer(n))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)===null||i===void 0||i.setMuted(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)===null||i===void 0||i.setVolume(e)}setRepeat(e){var i;this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,(i=this.svelteRootComponent)===null||i===void 0||i.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(e){var i;this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)===null||i===void 0||i.seekTime(e)}}const O1=()=>{window.customElements.define("vk-video-player",I1)};export{O1 as registerPlayerWebComponent};
|