(this.webpackJsonpvertical=this.webpackJsonpvertical||[]).push([[107],{1684:function(e,t,a){var n,o=a(1110),r=a(1158),l=a(1099),i=a(1100),s=a(1097),u=a(1101),c=a(1102),y=a(1094),p=Object.create,f=Object.defineProperty,d=Object.getOwnPropertyDescriptor,h=Object.getOwnPropertyNames,v=Object.getPrototypeOf,P=Object.prototype.hasOwnProperty,g=function(e,t,a,n){if(t&&"object"===typeof t||"function"===typeof t){var o,r=y(h(t));try{var l=function(){var r=o.value;P.call(e,r)||r===a||f(e,r,{get:function(){return t[r]},enumerable:!(n=d(t,r))||n.enumerable})};for(r.s();!(o=r.n()).done;)l()}catch(i){r.e(i)}finally{r.f()}}return e},m=function(e,t,a){return function(e,t,a){t in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a}(e,"symbol"!==typeof t?t+"":t,a),a},b={};!function(e,t){for(var a in t)f(e,a,{get:t[a],enumerable:!0})}(b,{default:function(){return O}}),e.exports=(n=b,g(f({},"__esModule",{value:!0}),n));var k=function(e,t,a){return a=null!=e?p(v(e)):{},g(!t&&e&&e.__esModule?a:f(a,"default",{value:e,enumerable:!0}),e)}(a(2)),w=a(1098),T=a(1109),E=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,D=/user\/([a-zA-Z0-9_-]+)\/?/,C=/youtube-nocookie\.com/,O=function(e){"use strict";c(a,e);var t=u(a);function a(){var e;return l(this,a),e=t.apply(this,arguments),m(s(e),"callPlayer",w.callPlayer),m(s(e),"parsePlaylist",(function(t){if(t instanceof Array)return{listType:"playlist",playlist:t.map(e.getID).join(",")};if(E.test(t)){var a=t.match(E);return{listType:"playlist",list:r(a,2)[1].replace(/^UC/,"UU")}}if(D.test(t)){var n=t.match(D);return{listType:"user_uploads",list:r(n,2)[1]}}return{}})),m(s(e),"onStateChange",(function(t){var a=t.data,n=e.props,o=n.onPlay,r=n.onPause,l=n.onBuffer,i=n.onBufferEnd,s=n.onEnded,u=n.onReady,c=n.loop,y=n.config,p=y.playerVars,f=y.onUnstarted,d=window.YT.PlayerState,h=d.UNSTARTED,v=d.PLAYING,P=d.PAUSED,g=d.BUFFERING,m=d.ENDED,b=d.CUED;if(a===h&&f(),a===v&&(o(),i()),a===P&&r(),a===g&&l(),a===m){var k=!!e.callPlayer("getPlaylist");c&&!k&&(p.start?e.seekTo(p.start):e.play()),s()}a===b&&u()})),m(s(e),"mute",(function(){e.callPlayer("mute")})),m(s(e),"unmute",(function(){e.callPlayer("unMute")})),m(s(e),"ref",(function(t){e.container=t})),e}return i(a,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"getID",value:function(e){return!e||e instanceof Array||E.test(e)?null:e.match(T.MATCH_URL_YOUTUBE)[1]}},{key:"load",value:function(e,t){var a=this,n=this.props,r=n.playing,l=n.muted,i=n.playsinline,s=n.controls,u=n.loop,c=n.config,y=n.onError,p=c.playerVars,f=c.embedOptions,d=this.getID(e);if(t)return E.test(e)||D.test(e)||e instanceof Array?void this.player.loadPlaylist(this.parsePlaylist(e)):void this.player.cueVideoById({videoId:d,startSeconds:(0,w.parseStartTime)(e)||p.start,endSeconds:(0,w.parseEndTime)(e)||p.end});(0,w.getSDK)("https://www.youtube.com/iframe_api","YT","onYouTubeIframeAPIReady",(function(e){return e.loaded})).then((function(t){a.container&&(a.player=new t.Player(a.container,o({width:"100%",height:"100%",videoId:d,playerVars:o({autoplay:r?1:0,mute:l?1:0,controls:s?1:0,start:(0,w.parseStartTime)(e),end:(0,w.parseEndTime)(e),origin:window.location.origin,playsinline:i?1:0},a.parsePlaylist(e),{},p),events:{onReady:function(){u&&a.player.setLoop(!0),a.props.onReady()},onPlaybackRateChange:function(e){return a.props.onPlaybackRateChange(e.data)},onPlaybackQualityChange:function(e){return a.props.onPlaybackQualityChange(e)},onStateChange:a.onStateChange,onError:function(e){return y(e.data)}},host:C.test(e)?"https://www.youtube-nocookie.com":void 0},f)))}),y),f.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer\u2019s callback props instead, eg onReady, onPlay, onPause")}},{key:"play",value:function(){this.callPlayer("playVideo")}},{key:"pause",value:function(){this.callPlayer("pauseVideo")}},{key:"stop",value:function(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}},{key:"seekTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.callPlayer("seekTo",e),t||this.props.playing||this.pause()}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",100*e)}},{key:"setPlaybackRate",value:function(e){this.callPlayer("setPlaybackRate",e)}},{key:"setLoop",value:function(e){this.callPlayer("setLoop",e)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentTime")}},{key:"getSecondsLoaded",value:function(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}},{key:"render",value:function(){var e={width:"100%",height:"100%",display:this.props.display};return k.default.createElement("div",{style:e},k.default.createElement("div",{ref:this.ref}))}}]),a}(k.Component);m(O,"displayName","YouTube"),m(O,"canPlay",T.canPlay.youtube)}}]);