1c67f8fe15d44f2adec2f3bb22aa687e483451dd351aa3cc5b3d8d9862a1a28d

Source Code:

(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{"524d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n("8af1")),o=n("733c"),i=n("dc68");function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?y(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(e){function t(){var e,n;s(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return h(y(n=p(this,(e=f(t)).call.apply(e,[this].concat(o)))),"mounted",!1),h(y(n),"isReady",!1),h(y(n),"isPlaying",!1),h(y(n),"isLoading",!0),h(y(n),"loadOnReady",null),h(y(n),"startOnPlay",!0),h(y(n),"seekOnPlay",null),h(y(n),"onDurationCalled",!1),h(y(n),"getInternalPlayer",(function(e){return n.player?n.player[e]:null})),h(y(n),"progress",(function(){if(n.props.url&&n.player&&n.isReady){var e=n.getCurrentTime()||0,t=n.getSecondsLoaded(),r=n.getDuration();if(r){var o={playedSeconds:e,played:e/r};null!==t&&(o.loadedSeconds=t,o.loaded=t/r),o.playedSeconds===n.prevPlayed&&o.loadedSeconds===n.prevLoaded||n.props.onProgress(o),n.prevPlayed=o.playedSeconds,n.prevLoaded=o.loadedSeconds}}n.progressTimeout=setTimeout(n.progress,n.props.progressFrequency||n.props.progressInterval)})),h(y(n),"handleReady",(function(){if(n.mounted){n.isReady=!0,n.isLoading=!1;var e=n.props,t=e.onReady,r=e.playing,o=e.volume,i=e.muted;t(),i||null===o||n.player.setVolume(o),n.loadOnReady?(n.player.load(n.loadOnReady,!0),n.loadOnReady=null):r&&n.player.play(),n.handleDurationCheck()}})),h(y(n),"handlePlay",(function(){n.isPlaying=!0,n.isLoading=!1;var e=n.props,t=e.onStart,r=e.onPlay,o=e.playbackRate;n.startOnPlay&&(n.player.setPlaybackRate&&1!==o&&n.player.setPlaybackRate(o),t(),n.startOnPlay=!1),r(),n.seekOnPlay&&(n.seekTo(n.seekOnPlay),n.seekOnPlay=null),n.handleDurationCheck()})),h(y(n),"handlePause",(function(e){n.isPlaying=!1,n.isLoading||n.props.onPause(e)})),h(y(n),"handleEnded",(function(){var e=n.props,t=e.activePlayer,r=e.loop,o=e.onEnded;t.loopOnEnded&&r&&n.seekTo(0),r||(n.isPlaying=!1,o())})),h(y(n),"handleError",(function(){var e;n.isLoading=!1,(e=n.props).onError.apply(e,arguments)})),h(y(n),"handleDurationCheck",(function(){clearTimeout(n.durationCheckTimeout);var e=n.getDuration();e?n.onDurationCalled||(n.props.onDuration(e),n.onDurationCalled=!0):n.durationCheckTimeout=setTimeout(n.handleDurationCheck,100)})),h(y(n),"handleLoaded",(function(){n.isLoading=!1})),h(y(n),"ref",(function(e){e&&(n.player=e)})),n}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){this.mounted=!0,this.player.load(this.props.url),this.progress()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.player.stop(),this.player.disablePIP&&this.player.disablePIP(),this.mounted=!1}},{key:"componentDidUpdate",value:function(e){var t=this,n=this.props,r=n.url,o=n.playing,a=n.volume,u=n.muted,l=n.playbackRate,s=n.pip,c=n.loop,p=n.activePlayer;if(!(0,i.isEqual)(e.url,r)){if(this.isLoading&&!p.forceLoad)return console.warn("ReactPlayer: the attempt to load ".concat(r," is being deferred until the player has loaded")),void(this.loadOnReady=r);this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(r,this.isReady)}e.playing||!o||this.isPlaying||this.player.play(),e.playing&&!o&&this.isPlaying&&this.player.pause(),!e.pip&&s&&this.player.enablePIP&&this.player.enablePIP(),e.pip&&!s&&this.player.disablePIP&&this.player.disablePIP(),e.volume!==a&&null!==a&&this.player.setVolume(a),e.muted!==u&&(u?this.player.mute():(this.player.unmute(),null!==a&&setTimeout((function(){return t.player.setVolume(a)})))),e.playbackRate!==l&&this.player.setPlaybackRate&&this.player.setPlaybackRate(l),e.loop!==c&&this.player.setLoop&&this.player.setLoop(c)}},{key:"getDuration",value:function(){return this.isReady?this.player.getDuration():null}},{key:"getCurrentTime",value:function(){return this.isReady?this.player.getCurrentTime():null}},{key:"getSecondsLoaded",value:function(){return this.isReady?this.player.getSecondsLoaded():null}},{key:"seekTo",value:function(e,t){var n=this;if(!this.isReady&&0!==e)return this.seekOnPlay=e,void setTimeout((function(){n.seekOnPlay=null}),5e3);if(t?"fraction"===t:e>0&&e<1){var r=this.player.getDuration();return r?void this.player.seekTo(r*e):void console.warn("ReactPlayer: could not seek using fraction – duration not yet available")}this.player.seekTo(e)}},{key:"render",value:function(){var e=this.props.activePlayer;return e?r.default.createElement(e,l({},this.props,{ref:this.ref,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError})):null}}])&&c(n.prototype,o),a&&c(n,a),t}(r.Component);t.default=v,h(v,"displayName","Player"),h(v,"propTypes",o.propTypes),h(v,"defaultProps",o.defaultProps)},"733c":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEPRECATED_CONFIG_PROPS=t.defaultProps=t.propTypes=void 0;var r,o=(r=n("8a2d"))&&r.__esModule?r:{default:r};var i=o.default.string,a=o.default.bool,u=o.default.number,l=o.default.array,s=o.default.oneOfType,c=o.default.shape,p=o.default.object,f=o.default.func,y=o.default.node,d={url:s([i,l,p]),playing:a,loop:a,controls:a,volume:u,muted:a,playbackRate:u,width:s([i,u]),height:s([i,u]),style:p,progressInterval:u,playsinline:a,pip:a,light:s([a,i]),playIcon:y,wrapper:s([i,f,c({render:f.isRequired})]),config:c({soundcloud:c({options:p,preload:a}),youtube:c({playerVars:p,embedOptions:p,preload:a}),facebook:c({appId:i,version:i,playerId:i}),dailymotion:c({params:p,preload:a}),vimeo:c({playerOptions:p,preload:a}),file:c({attributes:p,tracks:l,forceVideo:a,forceAudio:a,forceHLS:a,forceDASH:a,hlsOptions:p,hlsVersion:i,dashVersion:i}),wistia:c({options:p}),mixcloud:c({options:p}),twitch:c({options:p,playerId:i})}),onReady:f,onStart:f,onPlay:f,onPause:f,onBuffer:f,onBufferEnd:f,onEnded:f,onError:f,onDuration:f,onSeek:f,onProgress:f,onEnablePIP:f,onDisablePIP:f};t.propTypes=d;t.defaultProps={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,light:!1,wrapper:"div",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},preload:!1},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null},dailymotion:{params:{api:1,"endscreen-enable":!1},preload:!1},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},preload:!1},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,hlsOptions:{},hlsVersion:"0.13.1",dashVersion:"2.9.2"},wistia:{options:{}},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null}},onReady:function(){},onStart:function(){},onPlay:function(){},onPause:function(){},onBuffer:function(){},onBufferEnd:function(){},onEnded:function(){},onError:function(){},onDuration:function(){},onSeek:function(){},onProgress:function(){},onEnablePIP:function(){},onDisablePIP:function(){}};t.DEPRECATED_CONFIG_PROPS=["soundcloudConfig","youtubeConfig","facebookConfig","dailymotionConfig","vimeoConfig","fileConfig","wistiaConfig"]},"80a1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n;return n=t=function(t){function n(){var e,t;y(this,n);for(var r=arguments.length,o=new Array(r),u=0;u<r;u++)o[u]=arguments[u];return g(b(t=h(this,(e=v(n)).call.apply(e,[this].concat(o)))),"config",(0,a.getConfig)(t.props,i.defaultProps,!0)),g(b(t),"getDuration",(function(){return t.player?t.player.getDuration():null})),g(b(t),"getCurrentTime",(function(){return t.player?t.player.getCurrentTime():null})),g(b(t),"getSecondsLoaded",(function(){return t.player?t.player.getSecondsLoaded():null})),g(b(t),"getInternalPlayer",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"player";return t.player?t.player.getInternalPlayer(e):null})),g(b(t),"seekTo",(function(e,n){if(!t.player)return null;t.player.seekTo(e,n)})),g(b(t),"ref",(function(e){t.player=e})),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(n,t),function(e,t,n){t&&d(e.prototype,t);n&&d(e,n)}(n,[{key:"shouldComponentUpdate",value:function(e){return!(0,a.isEqual)(this.props,e)}},{key:"componentDidUpdate",value:function(){this.config=(0,a.getConfig)(this.props,i.defaultProps)}},{key:"render",value:function(){var t=this.config.file,n=t.forceVideo,r=t.forceAudio,l=t.forceHLS,s=t.forceDASH,p=n||r||l||s;if(!e.canPlay(this.props.url)&&!p)return null;var y=this.props,d=y.style,h=y.width,v=y.height,b=y.wrapper,m=(0,a.omit)(this.props,P,i.DEPRECATED_CONFIG_PROPS);return o.default.createElement(b,c({style:f({},d,{width:h,height:v})},m),o.default.createElement(u.default,c({},this.props,{ref:this.ref,activePlayer:e,config:this.config})))}}]),n}(o.Component),g(t,"displayName","".concat(e.displayName,"Player")),g(t,"propTypes",i.propTypes),g(t,"defaultProps",i.defaultProps),g(t,"canPlay",e.canPlay),n};var r,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==s(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n("8af1")),i=n("733c"),a=n("dc68"),u=(r=n("524d"))&&r.__esModule?r:{default:r};function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?b(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var P=Object.keys(i.propTypes)},d660:function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function a(e,t,n){return e.concat(t).map((function(e){return i(e,n)}))}function u(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function l(e,t){try{return t in e}catch(e){return!1}}function s(e,t,n){var r={};return n.isMergeableObject(e)&&u(e).forEach((function(t){r[t]=i(e[t],n)})),u(t).forEach((function(o){(function(e,t){return l(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(l(e,o)&&n.isMergeableObject(t[o])?r[o]=function(e,t){if(!t.customMerge)return c;var n=t.customMerge(e);return"function"==typeof n?n:c}(o,n)(e[o],t[o],n):r[o]=i(t[o],n))})),r}function c(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||a,n.isMergeableObject=n.isMergeableObject||r,n.cloneUnlessOtherwiseSpecified=i;var o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):s(e,t,n):i(t,n)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return c(e,n,t)}),{})};var p=c;e.exports=p},dc64:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FilePlayer=void 0;var r,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n("8af1")),i=n("dc68"),a=(r=n("80a1"))&&r.__esModule?r:{default:r};function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?d(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b="undefined"!=typeof navigator&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,m=/\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,g=/\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i,P=/\.(m3u8)($|\?)/i,O=/\.(mpd)($|\?)/i,w=/www\.dropbox\.com\/.+/;function E(e){if(e instanceof Array){var t=!0,n=!1,r=void 0;try{for(var o,a=e[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var u=o.value;if("string"==typeof u&&E(u))return!0;if(E(u.src))return!0}}catch(e){n=!0,r=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw r}}return!1}return!!(0,i.isMediaStream)(e)||(m.test(e)||g.test(e)||P.test(e)||O.test(e))}function k(e){return e||(e=document.createElement("video")),e.webkitSupportsPresentationMode&&"function"==typeof e.webkitSetPresentationMode&&!/iPhone|iPod/.test(navigator.userAgent)}var S=function(e){function t(){var e,n;c(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return v(d(n=f(this,(e=y(t)).call.apply(e,[this].concat(i)))),"onReady",(function(){var e;return(e=n.props).onReady.apply(e,arguments)})),v(d(n),"onPlay",(function(){var e;return(e=n.props).onPlay.apply(e,arguments)})),v(d(n),"onBuffer",(function(){var e;return(e=n.props).onBuffer.apply(e,arguments)})),v(d(n),"onBufferEnd",(function(){var e;return(e=n.props).onBufferEnd.apply(e,arguments)})),v(d(n),"onPause",(function(){var e;return(e=n.props).onPause.apply(e,arguments)})),v(d(n),"onEnded",(function(){var e;return(e=n.props).onEnded.apply(e,arguments)})),v(d(n),"onError",(function(){var e;return(e=n.props).onError.apply(e,arguments)})),v(d(n),"onEnablePIP",(function(){var e;return(e=n.props).onEnablePIP.apply(e,arguments)})),v(d(n),"onDisablePIP",(function(e){var t=n.props,r=t.onDisablePIP,o=t.playing;r(e),o&&n.play()})),v(d(n),"onPresentationModeChange",(function(e){if(n.player&&k(n.player)){var t=n.player.webkitPresentationMode;"picture-in-picture"===t?n.onEnablePIP(e):"inline"===t&&n.onDisablePIP(e)}})),v(d(n),"onSeek",(function(e){n.props.onSeek(e.target.currentTime)})),v(d(n),"mute",(function(){n.player.muted=!0})),v(d(n),"unmute",(function(){n.player.muted=!1})),v(d(n),"renderSourceElement",(function(e,t){return"string"==typeof e?o.default.createElement("source",{key:t,src:e}):o.default.createElement("source",s({key:t},e))})),v(d(n),"renderTrack",(function(e,t){return o.default.createElement("track",s({key:t},e))})),v(d(n),"ref",(function(e){n.player&&(n.prevPlayer=n.player),n.player=e})),n}var n,r,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){this.addListeners(this.player),b&&this.player.load()}},{key:"componentDidUpdate",value:function(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer),this.addListeners(this.player))}},{key:"componentWillUnmount",value:function(){this.removeListeners(this.player)}},{key:"addListeners",value:function(e){var t=this.props.playsinline;e.addEventListener("canplay",this.onReady),e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),t&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}},{key:"removeListeners",value:function(e){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange)}},{key:"shouldUseAudio",value:function(e){return!e.config.file.forceVideo&&!e.config.file.attributes.poster&&(m.test(e.url)||e.config.file.forceAudio)}},{key:"shouldUseHLS",value:function(e){return P.test(e)&&!b||this.props.config.file.forceHLS}},{key:"shouldUseDASH",value:function(e){return O.test(e)||this.props.config.file.forceDASH}},{key:"load",value:function(e){var t=this,n=this.props.config.file,r=n.hlsVersion,o=n.dashVersion;if(this.shouldUseHLS(e)&&(0,i.getSDK)("https://cdn.jsdelivr.net/npm/hls.js@VERSION".replace("VERSION",r),"Hls").then((function(n){t.hls=new n(t.props.config.file.hlsOptions),t.hls.on(n.Events.ERROR,(function(e,r){t.props.onError(e,r,t.hls,n)})),t.hls.loadSource(e),t.hls.attachMedia(t.player)})),this.shouldUseDASH(e)&&(0,i.getSDK)("https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js".replace("VERSION",o),"dashjs").then((function(n){t.dash=n.MediaPlayer().create(),t.dash.initialize(t.player,e,t.props.playing),t.dash.on("error",t.props.onError),t.dash.getDebug().setLogToBrowserConsole(!1)})),e instanceof Array)this.player.load();else if((0,i.isMediaStream)(e))try{this.player.srcObject=e}catch(t){this.player.src=window.URL.createObjectURL(e)}}},{key:"play",value:function(){var e=this.player.play();e&&e.catch(this.props.onError)}},{key:"pause",value:function(){this.player.pause()}},{key:"stop",value:function(){this.player.removeAttribute("src"),this.hls&&this.hls.destroy(),this.dash&&this.dash.reset()}},{key:"seekTo",value:function(e){this.player.currentTime=e}},{key:"setVolume",value:function(e){this.player.volume=e}},{key:"enablePIP",value:function(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():k(this.player)&&"picture-in-picture"!==this.player.webkitPresentationMode&&this.player.webkitSetPresentationMode("picture-in-picture")}},{key:"disablePIP",value:function(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():k(this.player)&&"inline"!==this.player.webkitPresentationMode&&this.player.webkitSetPresentationMode("inline")}},{key:"setPlaybackRate",value:function(e){this.player.playbackRate=e}},{key:"getDuration",value:function(){if(!this.player)return null;var e=this.player,t=e.duration,n=e.seekable;return t===1/0&&n.length>0?n.end(n.length-1):t}},{key:"getCurrentTime",value:function(){return this.player?this.player.currentTime:null}},{key:"getSecondsLoaded",value:function(){if(!this.player)return null;var e=this.player.buffered;if(0===e.length)return 0;var t=e.end(e.length-1),n=this.getDuration();return t>n?n:t}},{key:"getSource",value:function(e){var t=this.shouldUseHLS(e),n=this.shouldUseDASH(e);if(!(e instanceof Array||(0,i.isMediaStream)(e)||t||n))return w.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.playing,r=e.loop,i=e.controls,a=e.muted,u=e.config,l=e.width,c=e.height,p=this.shouldUseAudio(this.props)?"audio":"video",f={width:"auto"===l?l:"100%",height:"auto"===c?c:"100%"};return o.default.createElement(p,s({ref:this.ref,src:this.getSource(t),style:f,preload:"auto",autoPlay:n||void 0,controls:i,muted:a,loop:r},u.file.attributes),t instanceof Array&&t.map(this.renderSourceElement),u.file.tracks.map(this.renderTrack))}}])&&p(n.prototype,r),a&&p(n,a),t}(o.Component);t.FilePlayer=S,v(S,"displayName","FilePlayer"),v(S,"canPlay",E),v(S,"canEnablePIP",(function(e){return E(e)&&(!!document.pictureInPictureEnabled||k())&&!m.test(e)}));var j=(0,a.default)(S);t.default=j},dc68:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseStartTime=function(e){return h(e,p)},t.parseEndTime=function(e){return h(e,f)},t.randomString=function(){return Math.random().toString(36).substr(2,5)},t.queryString=function(e){return Object.keys(e).map((function(t){return"".concat(t,"=").concat(e[t])})).join("&")},t.getSDK=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){return!0},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:o.default;if(window[t]&&r(window[t]))return Promise.resolve(window[t]);return new Promise((function(r,o){if(v[e])v[e].push({resolve:r,reject:o});else{v[e]=[{resolve:r,reject:o}];var a=function(t){v[e].forEach((function(e){return e.resolve(t)}))};if(n){var u=window[n];window[n]=function(){u&&u(),a(window[t])}}i(e,(function(r){r?(v[e].forEach((function(e){return e.reject(r)})),v[e]=null):n||a(window[t])}))}}))},t.getConfig=function(e,t,n){var r=(0,i.default)(t.config,e.config),o=!0,u=!1,l=void 0;try{for(var c,p=a.DEPRECATED_CONFIG_PROPS[Symbol.iterator]();!(o=(c=p.next()).done);o=!0){var f=c.value;if(e[f]){var y=f.replace(/Config$/,"");if(r=(0,i.default)(r,s({},y,e[f])),n){var d="ReactPlayer: %c".concat(f," %cis deprecated, please use the config prop instead – ").concat("https://github.com/CookPete/react-player#config-prop");console.warn(d,"font-weight: bold","")}}}}catch(e){u=!0,l=e}finally{try{o||null==p.return||p.return()}finally{if(u)throw l}}return r},t.omit=function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(var i=(t=[]).concat.apply(t,r),a={},u=Object.keys(e),l=0,s=u;l<s.length;l++){var c=s[l];-1===i.indexOf(c)&&(a[c]=e[c])}return a},t.callPlayer=function(e){var t;if(!this.player||!this.player[e]){var n="ReactPlayer: ".concat(this.constructor.displayName," player could not call %c").concat(e,"%c – ");return this.player?this.player[e]||(n+="The method was not available"):n+="The player was not available",console.warn(n,"font-weight: bold",""),null}for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return(t=this.player)[e].apply(t,o)},t.isObject=b,t.isEqual=function e(t,n){if("function"==typeof t&&"function"==typeof n)return!0;if((0,r.isValidElement)(t)&&(0,r.isValidElement)(n))return!0;if(t instanceof Array&&n instanceof Array){if(t.length!==n.length)return!1;for(var o=0;o!==t.length;o++)if(!e(t[o],n[o]))return!1;return!0}if(b(t)&&b(n)){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(var i=0,a=Object.keys(t);i<a.length;i++){var u=a[i];if(!e(t[u],n[u]))return!1}return!0}return t===n},t.isMediaStream=function(e){return"undefined"!=typeof window&&void 0!==window.MediaStream&&e instanceof window.MediaStream};var r=n("8af1"),o=u(n("de43")),i=u(n("d660")),a=n("733c");function u(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var p=/[?&#](?:start|t)=([0-9hms]+)/,f=/[?&#]end=([0-9hms]+)/,y=/(\d+)(h|m|s)/g,d=/^\d+$/;function h(e,t){var n=e.match(t);if(n){var r=n[1];if(r.match(y))return function(e){var t=0,n=y.exec(e);for(;null!==n;){var r=c(n,3),o=r[1],i=r[2];"h"===i&&(t+=60*parseInt(o,10)*60),"m"===i&&(t+=60*parseInt(o,10)),"s"===i&&(t+=parseInt(o,10)),n=y.exec(e)}return t}(r);if(d.test(r))return parseInt(r)}}var v={};function b(e){return null!==e&&"object"===l(e)}},de43:function(e,t){function n(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function r(e,t){e.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,t(null,e))}}e.exports=function(e,t,o){var i=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");"function"==typeof t&&(o=t,t={}),t=t||{},o=o||function(){},a.type=t.type||"text/javascript",a.charset=t.charset||"utf8",a.async=!("async"in t)||!!t.async,a.src=e,t.attrs&&function(e,t){for(var n in t)e.setAttribute(n,t[n])}(a,t.attrs),t.text&&(a.text=""+t.text),("onload"in a?n:r)(a,o),a.onload||n(a,o),i.appendChild(a)}}}]);