(("undefined"!=typeof self?self:this).webpackJsonp__wix_thunderbolt_elements=("undefined"!=typeof self?self:this).webpackJsonp__wix_thunderbolt_elements||[]).push([[393],{1815:function(n,e,t){var r=t(676);n.exports=r.create("PlayableCover1036756629",{classes:{root:"PlayableCover1036756629__root",responsiveMode:"PlayableCover1036756629__responsiveMode",overlay:"PlayableCover1036756629__overlay",title:"PlayableCover1036756629__title",poster:"PlayableCover1036756629__poster",playButton:"PlayableCover1036756629__playButton"},vars:{},stVars:{},keyframes:{}},"",-1,n.i)},579:function(n,e,t){"use strict";t.r(e);var r=t(5),u=t(181),o=t.n(u),i=function(){var n=o.a.useRef(),e=o.a.useRef([]);return[function(){return void 0!==n.current?Promise.resolve(n.current):new Promise((function(n){e.current.push(n)}))},function(){return n.current},function(t){n.current=t,e.current.forEach((function(n){return n(t)})),e.current=[]},function(){return n.current=void 0}]},a=t(769),c=t(782),l=t(711),s=t(763),f="playable-cover",d="playable",v="dailymotion",y="twitch",m="youtube",p="facebook",b="vimeo",h="playable-title",g=t(742),P=function(){var n=u.useRef(0),e=u.useRef([]),t=function(){clearTimeout(n.current)},r=function(){t(),e.current.forEach((function(n){return n()})),n.current=setTimeout(r,1e3)};return u.useEffect((function(){t(),e.current=[]}),[]),{update:r,stop:t,subscribe:function(n){e.current.push(n)}}},w=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,_=/(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;var E=u.forwardRef((function(n,e){var t=n.src,r=n.playing,o=n.muted,a=n.volume,f=void 0===a?0:a,d=n.onReady,v=n.onInit,m=n.onDuration,p=n.onProgress,b=n.onPlay,h=n.onPause,E=n.onEnded,O=n.onFirstPlay,j=n.onFirstEnded,C=u.useRef(null),R=u.useRef(null),V=u.useRef(!1),M=u.useRef(!1),T=u.useRef(!1),D=i(),F=D[0],I=D[1],k=P(),S=function(n){var e=_.test(n);return{channelId:e?n.match(_)[1]:"",videoId:e?"":n.match(w)[1]}}(t),N=S.channelId,A=S.videoId,x=function(n,e,t){var r=i(),u=r[0],o=r[1],a=r[2];return Object(l.a)((function(){Object(g.a)("twitch").then((function(r){e.current=r,a(new r.Player(n.current,t))}))})),[u,o]}(C,R,{video:A,channel:N,height:"100%",width:"100%",playsinline:!0,autoplay:r,muted:o}),z=x[0],U=x[1];return Object(l.a)((function(){z().then((function(n){!function(n,e,t,r,u,o,i,a,c){var l=t.onReady,s=t.onPlay,f=t.onPause,d=t.onEnded,v=t.onDuration,y=t.onProgress,m=t.onFirstPlay,p=t.onFirstEnded,b=e.READY,h=e.PLAY,g=e.PAUSE,P=e.ENDED;if(o.subscribe((function(){null==y||y(n.getCurrentTime()||0)})),v)var w=setInterval((function(){var e=n.getDuration();e&&(r(e),clearInterval(w))}),1e3);n.addEventListener(b,(function(){v&&u().then((function(n){return v(n)})),null==l||l()})),n.addEventListener(h,(function(){c.current||(c.current=!0,null==m||m()),i.current=!0,null==s||s(),o.update()})),n.addEventListener(g,(function(){i.current=!1,null==f||f(),o.stop()})),n.addEventListener(P,(function(){a.current||(a.current=!0,null==p||p()),i.current=!1,null==d||d(),o.stop()}))}(n,R.current.Player,{onReady:d,onPlay:b,onPause:h,onEnded:E,onDuration:m,onProgress:p,onFirstPlay:O,onFirstEnded:j},I,F,k,V,T,T),null==v||v(n,"twitch")}))})),function(n,e,t,r){var u=n.src,o=n.playing,i=n.muted,a=n.volume;Object(s.a)(u,(function(){e.current=!1,t.current=!1})),Object(s.a)(o,(function(){return r().then((function(n){return o?n.play():n.pause()}))})),Object(s.a)(i,(function(){return r().then((function(n){return n.setMuted(i)}))})),Object(s.a)(a,(function(){return r().then((function(n){return n.setVolume(a/100)}))}))}({src:t,playing:r,muted:o,volume:f},M,T,z),u.useImperativeHandle(e,(function(){return function(n,e,t){var r={play:function(){return n().then((function(n){return n.play()}))},pause:function(){return n().then((function(n){return n.pause()}))},togglePlay:function(){return t.current?r.pause():r.play()},getDuration:function(){var n=e();return n&&n.getDuration()||0},getCurrentTime:function(){var n=e();return n&&n.getCurrentTime()||0},seekTo:function(e){return n().then((function(n){return n.seek(e)}))},getVolume:function(){var n=e();return n?100*n.getVolume():0},setVolume:function(e){return n().then((function(n){return n.setVolume(e/100)}))},isMuted:function(){var n=e();return!n||n.getMuted()},isPlaying:function(){return t.current},mute:function(){return n().then((function(n){return n.setMuted(!0)}))},unMute:function(){return n().then((function(n){return n.setMuted(!1)}))}};return r}(z,U,V)})),u.createElement("div",{ref:C,className:c.classes.playerContainer,"data-player-name":"Twitch","data-testid":y})})),O=t(1624),j=t(942),C=t.n(j),R=t(1019),V=t.n(R),M=t(682),T=t(1815);function D(){return(D=Object.assign||function(n){for(var e=1;e