Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

video-react

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

video-react - npm Package Compare versions

Comparing version 0.13.6 to 0.13.7

15

CHANGELOG.md

@@ -0,1 +1,16 @@

<a name="0.13.7"></a>
## [0.13.7](https://github.com/video-react/video-react/compare/0.13.6...0.13.7) (2019-05-02)
### Bug Fixes
* add tabindex to video tag to make it focusable in latest Chrome ([#262](https://github.com/video-react/video-react/issues/262)) ([01291c7](https://github.com/video-react/video-react/commit/01291c7))
### Features
* expose MenuButton ([ed835a2](https://github.com/video-react/video-react/commit/ed835a2))
<a name="0.13.6"></a>

@@ -2,0 +17,0 @@ ## [0.13.6](https://github.com/video-react/video-react/compare/0.13.5...0.13.6) (2019-03-18)

2

dist/video-react.min.js

@@ -1,2 +0,2 @@

(function(e,a){"object"==typeof exports&&"undefined"!=typeof module?a(exports,require("react"),require("redux"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","redux","react-dom"],a):(e=e||self,a(e["video-react"]={},e.React,e.Redux,e.ReactDOM))})(this,function(e,a,t,n){"use strict";function o(e,a){for(var t,n=0;n<a.length;n++)t=a[n],t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}function r(e,a,t){return a&&o(e.prototype,a),t&&o(e,t),e}function l(){return l=Object.assign||function(e){for(var a,t=1;t<arguments.length;t++)for(var n in a=arguments[t],a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);return e},l.apply(this,arguments)}function d(e,a){e.prototype=Object.create(a.prototype),e.prototype.constructor=e,e.__proto__=a}function i(e,a){if(null==e)return{};var t,n,o={},r=Object.keys(e);for(n=0;n<r.length;n++)t=r[n],0<=a.indexOf(t)||(o[t]=e[t]);return o}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,a){return a={exports:{}},e(a,a.exports),a.exports}function p(e){if(null===e||e===void 0)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function u(){}function h(e,a){switch(void 0===e&&(e=Y),a.type){case"video-react/USER_ACTIVATE":return l({},e,{userActivity:a.activity});case"video-react/PLAYER_ACTIVATE":return l({},e,{isActive:a.activity});case"video-react/FULLSCREEN_CHANGE":return l({},e,{isFullscreen:!!a.isFullscreen});case"video-react/SEEKING_TIME":return l({},e,{seekingTime:a.time});case"video-react/END_SEEKING":return l({},e,{seekingTime:0});case"video-react/LOAD_START":return l({},e,a.videoProps,{hasStarted:!1,ended:!1});case"video-react/CAN_PLAY":return l({},e,a.videoProps,{waiting:!1});case"video-react/WAITING":return l({},e,a.videoProps,{waiting:!0});case"video-react/CAN_PLAY_THROUGH":case"video-react/PLAYING":return l({},e,a.videoProps,{waiting:!1});case"video-react/PLAY":return l({},e,a.videoProps,{ended:!1,paused:!1,autoPaused:!1,waiting:!1,hasStarted:!0});case"video-react/PAUSE":return l({},e,a.videoProps,{paused:!0});case"video-react/END":return l({},e,a.videoProps,{ended:!0});case"video-react/SEEKING":return l({},e,a.videoProps,{seeking:!0});case"video-react/SEEKED":return l({},e,a.videoProps,{seeking:!1});case"video-react/ERROR":return l({},e,a.videoProps,{error:"UNKNOWN ERROR",ended:!0});case"video-react/DURATION_CHANGE":case"video-react/TIME_UPDATE":case"video-react/VOLUME_CHANGE":case"video-react/PROGRESS_CHANGE":case"video-react/RATE_CHANGE":case"video-react/SUSPEND":case"video-react/ABORT":case"video-react/EMPTIED":case"video-react/STALLED":case"video-react/LOADED_META_DATA":case"video-react/LOADED_DATA":case"video-react/RESIZE":return l({},e,a.videoProps);default:return e;}}function m(e,a){switch(void 0===e&&(e=q),a.type){case"video-react/OPERATE":return l({},e,{count:e.count+1,operation:l({},e.operation,a.operation)});default:return e;}}function v(e,a){return void 0===e&&(e={}),{player:h(e.player,a),operation:m(e.operation,a)}}function y(e){var a=e.player,t=e.className;return a.error?null:x.createElement("div",{className:K("video-react-loading-spinner",t)})}function g(e){var a=e.poster,t=e.player,n=e.actions,o=e.className;return!a||t.hasStarted?null:x.createElement("div",{className:K("video-react-poster",o),style:{backgroundImage:"url(\""+a+"\")"},onClick:function(){t.paused&&n.play()}})}function E(e,a){var t=Math.floor;void 0===e&&(e=0),void 0===a&&(a=e);var n=t(e%60),o=t(e/60%60),r=t(e/3600),l=t(a/60%60),d=t(a/3600);return(ee(e)||e===1/0)&&(r="-",o="-",n="-"),r=0<r||0<d?r+":":"",o=((r||10<=l)&&10>o?"0"+o:o)+":",n=10>n?"0"+n:n,r+o+n}function b(e){return!!(e.props&&e.props.isVideoChild)||"source"===e.type||"track"===e.type}function C(a,t,n,o){void 0===o&&(o=1);var r=x.Children.toArray(t),d=n.order,s=i(n,["order"]);return r.filter(function(a){return!a.props.disabled}).concat(a.filter(function(e){return!ae(r,function(a){return te(a,e)})})).map(function(t){var n=ae(a,function(e){return te(e,t)}),o=n?n.props:{},r=l({},s,o,t.props),d=x.cloneElement(t,r,t.props.children);return d}).sort(function(e,a){return(e.props.order||o)-(a.props.order||o)})}function k(e,a){console.warn("WARNING: "+e+" will be deprecated soon! Please use "+a+" instead.")}function P(e,a){var t=arguments,n=!1;return function(){n||(e.apply(void 0,t),n=!0,setTimeout(function(){n=!1},a))}}function f(e){var t,a=Math.round;if(e.getBoundingClientRect&&e.parentNode&&(t=e.getBoundingClientRect()),!t)return{left:0,top:0};var n=document,o=n.body,r=n.documentElement,l=r.clientLeft||o.clientLeft||0,d=window.pageXOffset||o.scrollLeft,i=t.left+d-l,s=r.clientTop||o.clientTop||0,c=window.pageYOffset||o.scrollTop,p=t.top+c-s;return{left:a(i),top:a(p)}}function T(e,a){var t=Math.max,n=Math.min,o={},r=f(e),l=e.offsetWidth,d=e.offsetHeight,i=r.top,s=r.left,c=a.pageY,p=a.pageX;return a.changedTouches&&(p=a.changedTouches[0].pageX,c=a.changedTouches[0].pageY),o.y=t(0,n(1,(i-c+d)/d)),o.x=t(0,n(1,(p-s)/l)),o}function N(e,a){for(var t=e.className.split(" "),n=0;n<t.length;n++)if(t[n].toLowerCase()===a.toLowerCase())return!0;return!1}function S(e){var a=e.currentTime,t=e.duration,n=e.percentage,o=e.className;return x.createElement("div",{"data-current-time":E(a,t),className:K("video-react-play-progress video-react-slider-bar",o),style:{width:n}},x.createElement("span",{className:"video-react-control-text"},"Progress: "+n))}function A(e){function a(e,a){var t=e/a||0;return 100*(1<=t?1:t)+"%"}var t=e.buffered,n=e.duration,o=e.className;if(!t||!t.length)return null;var r=t.end(t.length-1),l={};r>n&&(r=n),l.width=a(r,n);for(var d=[],s=0;s<t.length;s++){var c=t.start(s),p=t.end(s),u=x.createElement("div",{style:{left:a(c,r),width:a(p-c,r)},key:"part-"+s});d.push(u)}return 0===d.length&&(d=null),x.createElement("div",{style:l,className:K("video-react-load-progress",o)},x.createElement("span",{className:"video-react-control-text"},"Loaded: 0%"),d)}function D(e){var a=e.duration,t=e.mouseTime,n=e.className,o=e.text;if(!t.time)return null;var r=o||E(t.time,a);return x.createElement("div",{className:K("video-react-mouse-display",n),style:{left:t.position+"px"},"data-current-time":r})}function M(e){var a=e.player,t=a.currentTime,n=a.duration,o=e.className,r=E(n-t);return x.createElement("div",{className:K("video-react-remaining-time video-react-time-control video-react-control",o)},x.createElement("div",{className:"video-react-remaining-time-display","aria-live":"off"},x.createElement("span",{className:"video-react-control-text"},"Remaining Time "),"-"+r))}function R(e){var a=e.player,t=a.currentTime,n=a.duration,o=e.className,r=E(t,n);return x.createElement("div",{className:K("video-react-current-time video-react-time-control video-react-control",o)},x.createElement("div",{className:"video-react-current-time-display","aria-live":"off"},x.createElement("span",{className:"video-react-control-text"},"Current Time "),r))}function w(e){var a=e.player.duration,t=e.className,n=E(a);return x.createElement("div",{className:K(t,"video-react-duration video-react-time-control video-react-control")},x.createElement("div",{className:"video-react-duration-display","aria-live":"off"},x.createElement("span",{className:"video-react-control-text"},"Duration Time "),n))}function L(e){var a=e.separator,t=e.className;return x.createElement("div",{className:K("video-react-time-control video-react-time-divider",t),dir:"ltr"},x.createElement("div",null,x.createElement("span",null,a||"/")))}function F(e){var a=e.inline,t=e.className,n=l({},e);return delete n.children,delete n.inline,delete n.className,x.createElement(Le,l({className:K(t,{"video-react-menu-button-inline":!!a,"video-react-menu-button-popup":!a},"video-react-control video-react-button video-react-menu-button")},n),x.createElement(Ie,e))}function I(e){var a=e.percentage,t=e.vertical,n=e.className,o={};return t?o.height=a:o.width=a,x.createElement("div",{className:K(n,"video-react-volume-level"),style:o},x.createElement("span",{className:"video-react-control-text"}))}var x="default"in a?a["default"]:a,B=Object.getOwnPropertySymbols,O=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable,U=function(){var e=String.fromCharCode;try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de","5"===Object.getOwnPropertyNames(a)[0])return!1;for(var t={},n=0;10>n;n++)t["_"+e(n)]=n;var o=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==o.join(""))return!1;var r={};return["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t"].forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e){for(var a,t,n=p(e),o=1;o<arguments.length;o++){for(var r in a=Object(arguments[o]),a)O.call(a,r)&&(n[r]=a[r]);if(B){t=B(a);for(var l=0;l<t.length;l++)_.call(a,t[l])&&(n[t[l]]=a[t[l]])}}return n},H=function(){function e(e,a,t,n,o,r){if(r!=="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function a(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:a,element:e,instanceOf:a,node:e,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a};return t.checkPropTypes=u,t.PropTypes=t,t},G=c(function(e){e.exports=H()}),K=c(function(e){(function(){function a(){for(var e,n=[],o=0;o<arguments.length;o++)if(e=arguments[o],e){var r=typeof e;if("string"===r||"number"===r)n.push(e);else if(Array.isArray(e)&&e.length){var l=a.apply(null,e);l&&n.push(l)}else if("object"===r)for(var d in e)t.call(e,d)&&e[d]&&n.push(d)}return n.join(" ")}var t={}.hasOwnProperty;e.exports?(a.default=a,e.exports=a):window.classNames=a})()}),j=Object.freeze({LOAD_START:"video-react/LOAD_START",CAN_PLAY:"video-react/CAN_PLAY",WAITING:"video-react/WAITING",CAN_PLAY_THROUGH:"video-react/CAN_PLAY_THROUGH",PLAYING:"video-react/PLAYING",PLAY:"video-react/PLAY",PAUSE:"video-react/PAUSE",END:"video-react/END",SEEKING:"video-react/SEEKING",SEEKED:"video-react/SEEKED",SEEKING_TIME:"video-react/SEEKING_TIME",END_SEEKING:"video-react/END_SEEKING",DURATION_CHANGE:"video-react/DURATION_CHANGE",TIME_UPDATE:"video-react/TIME_UPDATE",VOLUME_CHANGE:"video-react/VOLUME_CHANGE",PROGRESS_CHANGE:"video-react/PROGRESS_CHANGE",RATE_CHANGE:"video-react/RATE_CHANGE",SUSPEND:"video-react/SUSPEND",ABORT:"video-react/ABORT",EMPTIED:"video-react/EMPTIED",STALLED:"video-react/STALLED",LOADED_META_DATA:"video-react/LOADED_META_DATA",LOADED_DATA:"video-react/LOADED_DATA",RESIZE:"video-react/RESIZE",ERROR:"video-react/ERROR",handleLoadStart:function(e){return{type:"video-react/LOAD_START",videoProps:e}},handleCanPlay:function(e){return{type:"video-react/CAN_PLAY",videoProps:e}},handleWaiting:function(e){return{type:"video-react/WAITING",videoProps:e}},handleCanPlayThrough:function(e){return{type:"video-react/CAN_PLAY_THROUGH",videoProps:e}},handlePlaying:function(e){return{type:"video-react/PLAYING",videoProps:e}},handlePlay:function(e){return{type:"video-react/PLAY",videoProps:e}},handlePause:function(e){return{type:"video-react/PAUSE",videoProps:e}},handleEnd:function(e){return{type:"video-react/END",videoProps:e}},handleSeeking:function(e){return{type:"video-react/SEEKING",videoProps:e}},handleSeeked:function(e){return{type:"video-react/SEEKED",videoProps:e}},handleDurationChange:function(e){return{type:"video-react/DURATION_CHANGE",videoProps:e}},handleTimeUpdate:function(e){return{type:"video-react/TIME_UPDATE",videoProps:e}},handleVolumeChange:function(e){return{type:"video-react/VOLUME_CHANGE",videoProps:e}},handleProgressChange:function(e){return{type:"video-react/PROGRESS_CHANGE",videoProps:e}},handleRateChange:function(e){return{type:"video-react/RATE_CHANGE",videoProps:e}},handleSuspend:function(e){return{type:"video-react/SUSPEND",videoProps:e}},handleAbort:function(e){return{type:"video-react/ABORT",videoProps:e}},handleEmptied:function(e){return{type:"video-react/EMPTIED",videoProps:e}},handleStalled:function(e){return{type:"video-react/STALLED",videoProps:e}},handleLoadedMetaData:function(e){return{type:"video-react/LOADED_META_DATA",videoProps:e}},handleLoadedData:function(e){return{type:"video-react/LOADED_DATA",videoProps:e}},handleResize:function(e){return{type:"video-react/RESIZE",videoProps:e}},handleError:function(e){return{type:"video-react/ERROR",videoProps:e}},handleSeekingTime:function(e){return{type:"video-react/SEEKING_TIME",time:e}},handleEndSeeking:function(e){return{type:"video-react/END_SEEKING",time:e}}}),V=function(){function e(){}var a=e.prototype;return a.request=function(e){e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen()},a.exit=function(){document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen()},a.addEventListener=function(e){document.addEventListener("fullscreenchange",e),document.addEventListener("webkitfullscreenchange",e),document.addEventListener("mozfullscreenchange",e),document.addEventListener("MSFullscreenChange",e)},a.removeEventListener=function(e){document.removeEventListener("fullscreenchange",e),document.removeEventListener("webkitfullscreenchange",e),document.removeEventListener("mozfullscreenchange",e),document.removeEventListener("MSFullscreenChange",e)},r(e,[{key:"isFullscreen",get:function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement}},{key:"enabled",get:function(){return document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled}}]),e}(),z=new V,W=Object.freeze({OPERATE:"video-react/OPERATE",FULLSCREEN_CHANGE:"video-react/FULLSCREEN_CHANGE",PLAYER_ACTIVATE:"video-react/PLAYER_ACTIVATE",USER_ACTIVATE:"video-react/USER_ACTIVATE",handleFullscreenChange:function(e){return{type:"video-react/FULLSCREEN_CHANGE",isFullscreen:e}},activate:function(e){return{type:"video-react/PLAYER_ACTIVATE",activity:e}},userActivate:function(e){return{type:"video-react/USER_ACTIVATE",activity:e}},play:function(e){return void 0===e&&(e={action:"play",source:""}),this.video.play(),{type:"video-react/OPERATE",operation:e}},pause:function(e){return void 0===e&&(e={action:"pause",source:""}),this.video.pause(),{type:"video-react/OPERATE",operation:e}},togglePlay:function(e){return void 0===e&&(e={action:"toggle-play",source:""}),this.video.togglePlay(),{type:"video-react/OPERATE",operation:e}},seek:function(e,a){return void 0===a&&(a={action:"seek",source:""}),this.video.seek(e),{type:"video-react/OPERATE",operation:a}},forward:function(e,a){return void 0===a&&(a={action:"forward-"+e,source:""}),this.video.forward(e),{type:"video-react/OPERATE",operation:a}},replay:function(e,a){return void 0===a&&(a={action:"replay-"+e,source:""}),this.video.replay(e),{type:"video-react/OPERATE",operation:a}},changeRate:function(e,a){return void 0===a&&(a={action:"change-rate",source:""}),this.video.playbackRate=e,{type:"video-react/OPERATE",operation:a}},changeVolume:function(e,a){void 0===a&&(a={action:"change-volume",source:""});var t=e;return 0>e&&(t=0),1<e&&(t=1),this.video.volume=t,{type:"video-react/OPERATE",operation:a}},mute:function(e,a){return void 0===a&&(a={action:e?"muted":"unmuted",source:""}),this.video.muted=e,{type:"video-react/OPERATE",operation:a}},toggleFullscreen:function(e){return z.enabled?(z.isFullscreen?z.exit():z.request(this.rootElement),{type:"video-react/OPERATE",operation:{action:"toggle-fullscreen",source:""}}):{type:"video-react/FULLSCREEN_CHANGE",isFullscreen:!e.isFullscreen}}}),Y={currentSrc:null,duration:0,currentTime:0,seekingTime:0,buffered:null,waiting:!1,seeking:!1,paused:!0,autoPaused:!1,ended:!1,playbackRate:1,muted:!1,volume:1,readyState:0,networkState:0,videoWidth:0,videoHeight:0,hasStarted:!1,userActivity:!0,isActive:!1,isFullscreen:!1},q={count:0,operation:{action:"",source:""}},X=function(){function e(e){this.store=e||t.createStore(v),this.video=null,this.rootElement=null}var a=e.prototype;return a.getActions=function(){function e(e){return function(){var n=e.apply(a,arguments);"undefined"!=typeof n&&t(n)}}var a=this,t=this.store.dispatch,n=l({},W,j);return Object.keys(n).filter(function(e){return"function"==typeof n[e]}).reduce(function(a,t){return a[t]=e(n[t]),a},{})},a.getState=function(){return this.store.getState()},a.subscribeToStateChange=function(e,a){a||(a=this.getState.bind(this));var t=a(),n=function(){var n=a();if(n!==t){var o=t;t=n,e(n,o)}};return this.store.subscribe(n)},a.subscribeToOperationStateChange=function(e){var a=this;return this.subscribeToStateChange(e,function(){return a.getState().operation})},a.subscribeToPlayerStateChange=function(e){var a=this;return this.subscribeToStateChange(e,function(){return a.getState().player})},e}(),Z={actions:G.object,player:G.object,position:G.string,className:G.string},Q=function(e){function a(a,t){var n;return n=e.call(this,a,t)||this,n.handleClick=n.handleClick.bind(s(s(n))),n}d(a,e);var t=a.prototype;return t.componentDidMount=function(){},t.handleClick=function(){var e=this.props.actions;e.play()},t.render=function(){var e=this.props,a=e.player,t=e.position;return x.createElement("button",{className:K("video-react-big-play-button","video-react-big-play-button-"+t,this.props.className,{"big-play-button-hide":a.hasStarted||!a.currentSrc}),type:"button","aria-live":"polite",tabIndex:"0",onClick:this.handleClick},x.createElement("span",{className:"video-react-control-text"},"Play Video"))},a}(a.Component);Q.propTypes=Z,Q.defaultProps={position:"left"},Q.displayName="BigPlayButton";var J={player:G.object,className:G.string};y.propTypes=J,y.displayName="LoadingSpinner";var $={poster:G.string,player:G.object,actions:G.object,className:G.string};g.propTypes=$,g.displayName="PosterImage";var ee=Number.isNaN||function(e){return e!==e},ae=function(e,a){return e.filter(a)[0]},te=function(e,a){var t=e.type,n=a.type;return"string"==typeof t||"string"==typeof n?t===n:!("function"!=typeof t||"function"!=typeof n)&&t.displayName===n.displayName},ne=["error","src","srcObject","currentSrc","crossOrigin","networkState","preload","buffered","readyState","seeking","currentTime","duration","paused","defaultPlaybackRate","playbackRate","played","seekable","ended","autoplay","loop","mediaGroup","controller","controls","volume","muted","defaultMuted","audioTracks","videoTracks","textTracks","width","height","videoWidth","videoHeight","poster"],oe={actions:G.object,player:G.object,children:G.any,startTime:G.number,loop:G.bool,muted:G.bool,autoPlay:G.bool,playsInline:G.bool,src:G.string,poster:G.string,className:G.string,preload:G.oneOf(["auto","metadata","none"]),crossOrigin:G.string,onLoadStart:G.func,onWaiting:G.func,onCanPlay:G.func,onCanPlayThrough:G.func,onPlaying:G.func,onEnded:G.func,onSeeking:G.func,onSeeked:G.func,onPlay:G.func,onPause:G.func,onProgress:G.func,onDurationChange:G.func,onError:G.func,onSuspend:G.func,onAbort:G.func,onEmptied:G.func,onStalled:G.func,onLoadedMetadata:G.func,onLoadedData:G.func,onTimeUpdate:G.func,onRateChange:G.func,onVolumeChange:G.func,onResize:G.func},re=function(e){function a(a){var t;return t=e.call(this,a)||this,t.video=null,t.play=t.play.bind(s(s(t))),t.pause=t.pause.bind(s(s(t))),t.seek=t.seek.bind(s(s(t))),t.forward=t.forward.bind(s(s(t))),t.replay=t.replay.bind(s(s(t))),t.toggleFullscreen=t.toggleFullscreen.bind(s(s(t))),t.getProperties=t.getProperties.bind(s(s(t))),t.renderChildren=t.renderChildren.bind(s(s(t))),t.handleLoadStart=t.handleLoadStart.bind(s(s(t))),t.handleCanPlay=t.handleCanPlay.bind(s(s(t))),t.handleCanPlayThrough=t.handleCanPlayThrough.bind(s(s(t))),t.handlePlay=t.handlePlay.bind(s(s(t))),t.handlePlaying=t.handlePlaying.bind(s(s(t))),t.handlePause=t.handlePause.bind(s(s(t))),t.handleEnded=t.handleEnded.bind(s(s(t))),t.handleWaiting=t.handleWaiting.bind(s(s(t))),t.handleSeeking=t.handleSeeking.bind(s(s(t))),t.handleSeeked=t.handleSeeked.bind(s(s(t))),t.handleFullscreenChange=t.handleFullscreenChange.bind(s(s(t))),t.handleError=t.handleError.bind(s(s(t))),t.handleSuspend=t.handleSuspend.bind(s(s(t))),t.handleAbort=t.handleAbort.bind(s(s(t))),t.handleEmptied=t.handleEmptied.bind(s(s(t))),t.handleStalled=t.handleStalled.bind(s(s(t))),t.handleLoadedMetaData=t.handleLoadedMetaData.bind(s(s(t))),t.handleLoadedData=t.handleLoadedData.bind(s(s(t))),t.handleTimeUpdate=t.handleTimeUpdate.bind(s(s(t))),t.handleRateChange=t.handleRateChange.bind(s(s(t))),t.handleVolumeChange=t.handleVolumeChange.bind(s(s(t))),t.handleDurationChange=t.handleDurationChange.bind(s(s(t))),t.handleProgress=P(t.handleProgress.bind(s(s(t))),250),t.handleKeypress=t.handleKeypress.bind(s(s(t))),t}d(a,e);var t=a.prototype;return t.componentDidMount=function(){this.forceUpdate()},t.getProperties=function(){var e=this;return this.video?ne.reduce(function(a,t){return a[t]=e.video[t],a},{}):null},t.play=function(){var e=this.video.play();void 0!==e&&e.catch(function(){}).then(function(){})},t.pause=function(){var e=this.video.pause();void 0!==e&&e.catch(function(){}).then(function(){})},t.load=function(){this.video.load()},t.addTextTrack=function(){var e;(e=this.video).addTextTrack.apply(e,arguments)},t.canPlayType=function(){var e;(e=this.video).canPlayType.apply(e,arguments)},t.togglePlay=function(){this.video.paused?this.play():this.pause()},t.seek=function(e){try{this.video.currentTime=e}catch(a){}},t.forward=function(e){this.seek(this.video.currentTime+e)},t.replay=function(e){this.forward(-e)},t.toggleFullscreen=function(){var e=this.props,a=e.player,t=e.actions;t.toggleFullscreen(a)},t.handleLoadStart=function(){var e=this.props,a=e.actions,t=e.onLoadStart;a.handleLoadStart(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleCanPlay=function(){var e=this.props,a=e.actions,t=e.onCanPlay;a.handleCanPlay(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleCanPlayThrough=function(){var e=this.props,a=e.actions,t=e.onCanPlayThrough;a.handleCanPlayThrough(this.getProperties()),t&&t.apply(void 0,arguments)},t.handlePlaying=function(){var e=this.props,a=e.actions,t=e.onPlaying;a.handlePlaying(this.getProperties()),t&&t.apply(void 0,arguments)},t.handlePlay=function(){var e=this.props,a=e.actions,t=e.onPlay;a.handlePlay(this.getProperties()),t&&t.apply(void 0,arguments)},t.handlePause=function(){var e=this.props,a=e.actions,t=e.onPause;a.handlePause(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleDurationChange=function(){var e=this.props,a=e.actions,t=e.onDurationChange;a.handleDurationChange(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleProgress=function(){var e=this.props,a=e.actions,t=e.onProgress;this.video&&a.handleProgressChange(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleEnded=function(){var e=this.props,a=e.loop,t=e.player,n=e.actions,o=e.onEnded;a?(this.seek(0),this.play()):!t.paused&&this.pause(),n.handleEnd(this.getProperties()),o&&o.apply(void 0,arguments)},t.handleWaiting=function(){var e=this.props,a=e.actions,t=e.onWaiting;a.handleWaiting(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleSeeking=function(){var e=this.props,a=e.actions,t=e.onSeeking;a.handleSeeking(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleSeeked=function(){var e=this.props,a=e.actions,t=e.onSeeked;a.handleSeeked(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleFullscreenChange=function(){},t.handleSuspend=function(){var e=this.props,a=e.actions,t=e.onSuspend;a.handleSuspend(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleAbort=function(){var e=this.props,a=e.actions,t=e.onAbort;a.handleAbort(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleEmptied=function(){var e=this.props,a=e.actions,t=e.onEmptied;a.handleEmptied(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleStalled=function(){var e=this.props,a=e.actions,t=e.onStalled;a.handleStalled(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleLoadedMetaData=function(){var e=this.props,a=e.actions,t=e.onLoadedMetadata,n=e.startTime;n&&0<n&&(this.video.currentTime=n),a.handleLoadedMetaData(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleLoadedData=function(){var e=this.props,a=e.actions,t=e.onLoadedData;a.handleLoadedData(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleTimeUpdate=function(){var e=this.props,a=e.actions,t=e.onTimeUpdate;a.handleTimeUpdate(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleRateChange=function(){var e=this.props,a=e.actions,t=e.onRateChange;a.handleRateChange(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleVolumeChange=function(){var e=this.props,a=e.actions,t=e.onVolumeChange;a.handleVolumeChange(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleError=function(){var e=this.props,a=e.actions,t=e.onError;a.handleError(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleResize=function(){var e=this.props,a=e.actions,t=e.onResize;a.handleResize(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleKeypress=function(){},t.renderChildren=function(){var e=this,a=l({},this.props,{video:this.video});return this.video?x.Children.toArray(this.props.children).filter(b).map(function(t){var n;if("string"!=typeof t.type)n=a;else if("source"===t.type){n=l({},t.props);var o=n.onError;n.onError=function(){o&&o.apply(void 0,arguments),e.handleError.apply(e,arguments)}}return x.cloneElement(t,n)}):null},t.render=function(){var e=this,a=this.props,t=a.loop,n=a.poster,o=a.preload,r=a.src,l=a.autoPlay,d=a.playsInline,i=a.muted,s=a.crossOrigin,c=a.videoId;return x.createElement("video",{className:K("video-react-video",this.props.className),id:c,crossOrigin:s,ref:function(a){e.video=a},muted:i,preload:o,loop:t,playsInline:d,autoPlay:l,poster:n,src:r,onLoadStart:this.handleLoadStart,onWaiting:this.handleWaiting,onCanPlay:this.handleCanPlay,onCanPlayThrough:this.handleCanPlayThrough,onPlaying:this.handlePlaying,onEnded:this.handleEnded,onSeeking:this.handleSeeking,onSeeked:this.handleSeeked,onPlay:this.handlePlay,onPause:this.handlePause,onProgress:this.handleProgress,onDurationChange:this.handleDurationChange,onError:this.handleError,onSuspend:this.handleSuspend,onAbort:this.handleAbort,onEmptied:this.handleEmptied,onStalled:this.handleStalled,onLoadedMetadata:this.handleLoadedMetaData,onLoadedData:this.handleLoadedData,onTimeUpdate:this.handleTimeUpdate,onRateChange:this.handleRateChange,onVolumeChange:this.handleVolumeChange},this.renderChildren())},r(a,[{key:"playbackRate",get:function(){return this.video.playbackRate},set:function(e){this.video.playbackRate=e}},{key:"muted",get:function(){return this.video.muted},set:function(e){this.video.muted=e}},{key:"volume",get:function(){return this.video.volume},set:function(e){1<e&&(e=1),0>e&&(e=0),this.video.volume=e}},{key:"videoWidth",get:function(){return this.video.videoWidth}},{key:"videoHeight",get:function(){return this.video.videoHeight}}]),a}(a.Component);re.propTypes=oe,re.displayName="Video";var le={manager:G.object,className:G.string},de=function(e){function a(a,t){var n;return n=e.call(this,a,t)||this,n.timer=null,a.manager.subscribeToOperationStateChange(n.handleStateChange.bind(s(s(n)))),n.state={hidden:!0,operation:{}},n}d(a,e);var t=a.prototype;return t.handleStateChange=function(e,a){var t=this;e.count!==a.count&&"shortcut"===e.operation.source&&(this.timer&&(clearTimeout(this.timer),this.timer=null),this.setState({hidden:!1,count:e.count,operation:e.operation}),this.timer=setTimeout(function(){t.setState({hidden:!0}),t.timer=null},500))},t.render=function(){if("shortcut"!==this.state.operation.source)return null;var e=this.state.hidden?{display:"none"}:null;return x.createElement("div",{className:K({"video-react-bezel":!0,"video-react-bezel-animation":0==this.state.count%2,"video-react-bezel-animation-alt":1==this.state.count%2},this.props.className),style:e,role:"status","aria-label":this.state.operation.action},x.createElement("div",{className:K("video-react-bezel-icon","video-react-bezel-icon-"+this.state.operation.action)}))},a}(a.Component);de.propTypes=le,de.displayName="Bezel";var ie={clickable:G.bool,dblclickable:G.bool,manager:G.object,actions:G.object,player:G.object,shortcuts:G.array},se=function(e){function a(a,t){var n;return n=e.call(this,a,t)||this,n.defaultShortcuts=[{keyCode:32,handle:n.togglePlay},{keyCode:75,handle:n.togglePlay},{keyCode:70,handle:n.toggleFullscreen},{keyCode:37,handle:function(e,a){e.hasStarted&&a.replay(5,{action:"replay-5",source:"shortcut"})}},{keyCode:74,handle:function(e,a){e.hasStarted&&a.replay(10,{action:"replay-10",source:"shortcut"})}},{keyCode:39,handle:function(e,a){e.hasStarted&&a.forward(5,{action:"forward-5",source:"shortcut"})}},{keyCode:76,handle:function(e,a){e.hasStarted&&a.forward(10,{action:"forward-10",source:"shortcut"})}},{keyCode:36,handle:function(e,a){e.hasStarted&&a.seek(0)}},{keyCode:35,handle:function(e,a){e.hasStarted&&a.seek(e.duration)}},{keyCode:38,handle:function(e,a){var t=e.volume+.05;1<t&&(t=1),a.changeVolume(t,{action:"volume-up",source:"shortcut"})}},{keyCode:40,handle:function(e,a){var t=e.volume-.05;0>t&&(t=0);var n=0<t?"volume-down":"volume-off";a.changeVolume(t,{action:n,source:"shortcut"})}},{keyCode:190,shift:!0,handle:function(e,a){var t=e.playbackRate;1.5<=t?t=2:1.25<=t?t=1.5:1<=t?t=1.25:.5<=t?t=1:.25<=t?t=.5:0<=t&&(t=.25),a.changeRate(t,{action:"fast-forward",source:"shortcut"})}},{keyCode:188,shift:!0,handle:function(e,a){var t=e.playbackRate;.5>=t?t=.25:1>=t?t=.5:1.25>=t?t=1:1.5>=t?t=1.25:2>=t&&(t=1.5),a.changeRate(t,{action:"fast-rewind",source:"shortcut"})}}],n.shortcuts=[].concat(n.defaultShortcuts),n.mergeShortcuts=n.mergeShortcuts.bind(s(s(n))),n.handleKeyPress=n.handleKeyPress.bind(s(s(n))),n.handleClick=n.handleClick.bind(s(s(n))),n.handleDoubleClick=n.handleDoubleClick.bind(s(s(n))),n}d(a,e);var t=a.prototype;return t.componentDidMount=function(){this.mergeShortcuts(),document.addEventListener("keydown",this.handleKeyPress),document.addEventListener("click",this.handleClick),document.addEventListener("dblclick",this.handleDoubleClick)},t.componentDidUpdate=function(e){e.shortcuts!==this.props.shortcuts&&this.mergeShortcuts()},t.componentWillUnmount=function(){document.removeEventListener("keydown",this.handleKeyPress),document.removeEventListener("click",this.handleClick),document.removeEventListener("dblclick",this.handleDoubleClick)},t.mergeShortcuts=function(){var e=function(e){var a=e.keyCode,t=void 0===a?0:a,n=e.ctrl,o=e.shift,r=e.alt;return t+":"+(void 0!==n&&n)+":"+(void 0!==o&&o)+":"+(void 0!==r&&r)},a=this.defaultShortcuts.reduce(function(a,t){var n;return Object.assign(a,(n={},n[e(t)]=t,n))},{}),t=(this.props.shortcuts||[]).reduce(function(a,t){var n=t.keyCode,o=t.handle;if(n&&"function"==typeof o){var r;return Object.assign(a,(r={},r[e(t)]=t,r))}return a},a),n=function(e){var a=0;return["ctrl","shift","alt"].forEach(function(t){e[t]&&a++}),a};this.shortcuts=Object.keys(t).map(function(e){return t[e]}).sort(function(e,a){return n(a)-n(e)})},t.togglePlay=function(e,a){e.paused?a.play({action:"play",source:"shortcut"}):a.pause({action:"pause",source:"shortcut"})},t.toggleFullscreen=function(e,a){a.toggleFullscreen(e)},t.handleKeyPress=function(a){var e=this.props,t=e.player,n=e.actions;if(t.isActive&&!(document.activeElement&&(N(document.activeElement,"video-react-control")||N(document.activeElement,"video-react-menu-button-active")||N(document.activeElement,"video-react-big-play-button")))){var o=a.keyCode||a.which,r=a.ctrlKey||a.metaKey,l=a.shiftKey,d=a.altKey,i=this.shortcuts.filter(function(e){return!!(e.keyCode&&0==e.keyCode-o)&&(void 0===e.ctrl||e.ctrl===r)&&(void 0===e.shift||e.shift===l)&&(void 0===e.alt||e.alt===d)})[0];i&&(i.handle(t,n),a.preventDefault())}},t.canBeClicked=function(a,t){return!!(a.isActive&&"VIDEO"===t.target.nodeName&&4===a.readyState)},t.handleClick=function(a){var e=this.props,t=e.player,n=e.actions,o=e.clickable;this.canBeClicked(t,a)&&o&&this.togglePlay(t,n)},t.handleDoubleClick=function(a){var e=this.props,t=e.player,n=e.actions,o=e.dblclickable;this.canBeClicked(t,a)&&o&&this.toggleFullscreen(t,n)},t.render=function(){return null},a}(a.Component);se.propTypes=ie,se.defaultProps={clickable:!0,dblclickable:!0},se.displayName="Shortcut";var ce={className:G.string,onMouseDown:G.func,onMouseMove:G.func,stepForward:G.func,stepBack:G.func,sliderActive:G.func,sliderInactive:G.func,onMouseUp:G.func,onFocus:G.func,onBlur:G.func,onClick:G.func,getPercent:G.func,vertical:G.bool,children:G.node,label:G.string,valuenow:G.string,valuetext:G.string},pe=function(e){function a(a,t){var n;return n=e.call(this,a,t)||this,n.handleMouseDown=n.handleMouseDown.bind(s(s(n))),n.handleMouseMove=n.handleMouseMove.bind(s(s(n))),n.handleMouseUp=n.handleMouseUp.bind(s(s(n))),n.handleFocus=n.handleFocus.bind(s(s(n))),n.handleBlur=n.handleBlur.bind(s(s(n))),n.handleClick=n.handleClick.bind(s(s(n))),n.handleKeyPress=n.handleKeyPress.bind(s(s(n))),n.stepForward=n.stepForward.bind(s(s(n))),n.stepBack=n.stepBack.bind(s(s(n))),n.calculateDistance=n.calculateDistance.bind(s(s(n))),n.getProgress=n.getProgress.bind(s(s(n))),n.renderChildren=n.renderChildren.bind(s(s(n))),n.state={active:!1},n}d(a,e);var t=a.prototype;return t.componentWillUnmount=function(){document.removeEventListener("mousemove",this.handleMouseMove,!0),document.removeEventListener("mouseup",this.handleMouseUp,!0),document.removeEventListener("touchmove",this.handleMouseMove,!0),document.removeEventListener("touchend",this.handleMouseUp,!0),document.removeEventListener("keydown",this.handleKeyPress,!0)},t.getProgress=function(){var e=this.props.getPercent;if(!e)return 0;var a=e();return("number"!=typeof a||0>a||a===1/0)&&(a=0),a},t.handleMouseDown=function(e){var a=this.props.onMouseDown;document.addEventListener("mousemove",this.handleMouseMove,!0),document.addEventListener("mouseup",this.handleMouseUp,!0),document.addEventListener("touchmove",this.handleMouseMove,!0),document.addEventListener("touchend",this.handleMouseUp,!0),this.setState({active:!0}),this.props.sliderActive&&this.props.sliderActive(e),this.handleMouseMove(e),a&&a(e)},t.handleMouseMove=function(e){var a=this.props.onMouseMove;a&&a(e)},t.handleMouseUp=function(e){var a=this.props.onMouseUp;document.removeEventListener("mousemove",this.handleMouseMove,!0),document.removeEventListener("mouseup",this.handleMouseUp,!0),document.removeEventListener("touchmove",this.handleMouseMove,!0),document.removeEventListener("touchend",this.handleMouseUp,!0),this.setState({active:!1}),this.props.sliderInactive&&this.props.sliderInactive(e),a&&a(e)},t.handleFocus=function(a){document.addEventListener("keydown",this.handleKeyPress,!0),this.props.onFocus&&this.props.onFocus(a)},t.handleBlur=function(a){document.removeEventListener("keydown",this.handleKeyPress,!0),this.props.onBlur&&this.props.onBlur(a)},t.handleClick=function(e){e.preventDefault(),this.props.onClick&&this.props.onClick(e)},t.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),e.stopPropagation(),this.stepBack()):(38===e.which||39===e.which)&&(e.preventDefault(),e.stopPropagation(),this.stepForward())},t.stepForward=function(){this.props.stepForward&&this.props.stepForward()},t.stepBack=function(){this.props.stepBack&&this.props.stepBack()},t.calculateDistance=function(e){var a=n.findDOMNode(this),t=T(a,e);return this.props.vertical?t.y:t.x},t.renderChildren=function(){var e=this.getProgress(),a=(100*e).toFixed(2)+"%";return x.Children.map(this.props.children,function(t){return x.cloneElement(t,{progress:e,percentage:a})})},t.render=function(){var e=this.props,a=e.vertical,t=e.label,n=e.valuenow,o=e.valuetext;return x.createElement("div",{className:K(this.props.className,{"video-react-slider-vertical":a,"video-react-slider-horizontal":!a,"video-react-sliding":this.state.active},"video-react-slider"),tabIndex:"0",role:"slider",onMouseDown:this.handleMouseDown,onTouchStart:this.handleMouseDown,onFocus:this.handleFocus,onBlur:this.handleBlur,onClick:this.handleClick,"aria-label":t||"","aria-valuenow":n||"","aria-valuetext":o||"","aria-valuemin":0,"aria-valuemax":100},this.renderChildren())},a}(a.Component);pe.propTypes=ce,pe.displayName="Slider";var ue={currentTime:G.number,duration:G.number,percentage:G.string,className:G.string};S.propTypes=ue,S.displayName="PlayProgressBar";var he={duration:G.number,buffered:G.object,className:G.string};A.propTypes=he,A.displayName="LoadProgressBar",D.propTypes={duration:G.number,mouseTime:G.object,className:G.string},D.displayName="MouseTimeDisplay";var me={player:G.object,mouseTime:G.object,actions:G.object,className:G.string},ve=function(e){function a(a,t){var n;return n=e.call(this,a,t)||this,n.getPercent=n.getPercent.bind(s(s(n))),n.getNewTime=n.getNewTime.bind(s(s(n))),n.stepForward=n.stepForward.bind(s(s(n))),n.stepBack=n.stepBack.bind(s(s(n))),n.handleMouseDown=n.handleMouseDown.bind(s(s(n))),n.handleMouseMove=n.handleMouseMove.bind(s(s(n))),n.handleMouseUp=n.handleMouseUp.bind(s(s(n))),n}d(a,e);var t=a.prototype;return t.componentDidMount=function(){},t.componentDidUpdate=function(){},t.getPercent=function(){var e=this.props.player,a=e.currentTime,t=e.seekingTime,n=e.duration,o=(t||a)/n;return 1<=o?1:o},t.getNewTime=function(e){var a=this.props.player.duration,t=this.slider.calculateDistance(e),n=t*a;return n===a?n-.1:n},t.handleMouseDown=function(){},t.handleMouseUp=function(e){var a=this.props.actions,t=this.getNewTime(e);a.seek(t),a.handleEndSeeking(t)},t.handleMouseMove=function(e){var a=this.props.actions,t=this.getNewTime(e);a.handleSeekingTime(t)},t.stepForward=function(){var e=this.props.actions;e.forward(5)},t.stepBack=function(){var e=this.props.actions;e.replay(5)},t.render=function(){var e=this,a=this.props,t=a.player,n=t.currentTime,o=t.seekingTime,r=t.duration,l=t.buffered,d=a.mouseTime,i=o||n;return x.createElement(pe,{ref:function(a){e.slider=a},label:"video progress bar",className:K("video-react-progress-holder",this.props.className),valuenow:(100*this.getPercent()).toFixed(2),valuetext:E(i,r),onMouseDown:this.handleMouseDown,onMouseMove:this.handleMouseMove,onMouseUp:this.handleMouseUp,getPercent:this.getPercent,stepForward:this.stepForward,stepBack:this.stepBack},x.createElement(A,{buffered:l,currentTime:i,duration:r}),x.createElement(D,{duration:r,mouseTime:d}),x.createElement(S,{currentTime:i,duration:r}))},a}(a.Component);ve.propTypes=me,ve.displayName="SeekBar";var ye={player:G.object,className:G.string},ge=function(e){function a(a,t){var n;return n=e.call(this,a,t)||this,n.state={mouseTime:{time:null,position:0}},n.handleMouseMoveThrottle=n.handleMouseMove.bind(s(s(n))),n}d(a,e);var t=a.prototype;return t.handleMouseMove=function(e){if(e.pageX){var a=this.props.player.duration,t=n.findDOMNode(this.seekBar),o=T(t,e).x*a,r=e.pageX-f(t).left;this.setState({mouseTime:{time:o,position:r}})}},t.render=function(){var e=this,a=this.props.className;return x.createElement("div",{onMouseMove:this.handleMouseMoveThrottle,className:K("video-react-progress-control video-react-control",a)},x.createElement(ve,l({mouseTime:this.state.mouseTime,ref:function(a){e.seekBar=a}},this.props)))},a}(a.Component);ge.propTypes=ye,ge.displayName="ProgressControl";var Ee={actions:G.object,player:G.object,className:G.string},be=function(e){function a(a,t){var n;return n=e.call(this,a,t)||this,n.handleClick=n.handleClick.bind(s(s(n))),n}d(a,e);var t=a.prototype;return t.handleClick=function(){var e=this.props,a=e.actions,t=e.player;t.paused?a.play():a.pause()},t.render=function(){var e=this,a=this.props,t=a.player,n=a.className,o=t.paused?"Play":"Pause";return x.createElement("button",{ref:function(a){e.button=a},className:K(n,{"video-react-play-control":!0,"video-react-control":!0,"video-react-button":!0,"video-react-paused":t.paused,"video-react-playing":!t.paused}),type:"button",tabIndex:"0",onClick:this.handleClick},x.createElement("span",{className:"video-react-control-text"},o))},a}(a.Component);be.propTypes=Ee,be.displayName="PlayToggle";var Ce={actions:G.object,className:G.string,seconds:G.oneOf([5,10,30])},ke={seconds:10},Pe=function(e){var t=function(a){function t(e,t){var n;return n=a.call(this,e,t)||this,n.handleClick=n.handleClick.bind(s(s(n))),n}d(t,a);var n=t.prototype;return n.handleClick=function(){var a=this.props,t=a.actions,n=a.seconds;"forward"===e?t.forward(n):t.replay(n)},n.render=function(){var a=this,t=this.props,n=t.seconds,o=t.className,r=["video-react-control","video-react-button","video-react-icon"];return r.push("video-react-icon-"+e+"-"+n,"video-react-"+e+"-control"),o&&r.push(o),x.createElement("button",{ref:function(e){a.button=e},className:r.join(" "),type:"button",onClick:this.handleClick},x.createElement("span",{className:"video-react-control-text"},e+" "+n+" seconds"))},t}(a.Component);return t.propTypes=Ce,t.defaultProps=ke,t},fe=Pe("forward");fe.displayName="ForwardControl";var Te=Pe("replay");Te.displayName="ReplayControl";var Ne={actions:G.object,player:G.object,className:G.string},Se=function(e){function a(a,t){var n;return n=e.call(this,a,t)||this,n.handleClick=n.handleClick.bind(s(s(n))),n}d(a,e);var t=a.prototype;return t.handleClick=function(){var e=this.props,a=e.player,t=e.actions;t.toggleFullscreen(a)},t.render=function(){var e=this,a=this.props,t=a.player,n=a.className;return x.createElement("button",{className:K(n,{"video-react-icon-fullscreen-exit":t.isFullscreen,"video-react-icon-fullscreen":!t.isFullscreen},"video-react-fullscreen-control video-react-control video-react-button video-react-icon"),ref:function(a){e.button=a},type:"button",tabIndex:"0",onClick:this.handleClick},x.createElement("span",{className:"video-react-control-text"},"Non-Fullscreen"))},a}(a.Component);Se.propTypes=Ne,Se.displayName="FullscreenToggle";var Ae={player:G.object,className:G.string};M.propTypes=Ae,M.displayName="RemainingTimeDisplay";var De={player:G.object,className:G.string};R.propTypes=De,R.displayName="CurrentTimeDisplay";var Me={player:G.object,className:G.string};w.propTypes=Me,w.displayName="DurationDisplay";var Re={separator:G.string,className:G.string};L.propTypes=Re,L.displayName="TimeDivider";var we={tagName:G.string,onClick:G.func.isRequired,onFocus:G.func,onBlur:G.func,className:G.string},Le=function(e){function a(a,t){var n;return n=e.call(this,a,t)||this,n.handleClick=n.handleClick.bind(s(s(n))),n.handleFocus=n.handleFocus.bind(s(s(n))),n.handleBlur=n.handleBlur.bind(s(s(n))),n.handleKeypress=n.handleKeypress.bind(s(s(n))),n}d(a,e);var t=a.prototype;return t.handleKeypress=function(e){(32===e.which||13===e.which)&&(e.preventDefault(),this.handleClick(e))},t.handleClick=function(e){var a=this.props.onClick;a(e)},t.handleFocus=function(a){document.addEventListener("keydown",this.handleKeypress),this.props.onFocus&&this.props.onFocus(a)},t.handleBlur=function(a){document.removeEventListener("keydown",this.handleKeypress),this.props.onBlur&&this.props.onBlur(a)},t.render=function(){var e=this.props.tagName,a=l({},this.props);return delete a.tagName,delete a.className,x.createElement(e,l({className:K(this.props.className),role:"button",tabIndex:"0",onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur},a))},a}(a.Component);Le.propTypes=we,Le.defaultProps={tagName:"div"},Le.displayName="ClickableComponent";var Fe={player:G.object,children:G.any},Ie=function(e){function a(a,t){var n;return n=e.call(this,a,t)||this,n.handleClick=n.handleClick.bind(s(s(n))),n}d(a,e);var t=a.prototype;return t.handleClick=function(e){e.preventDefault()},t.render=function(){var e=this.props.children;return x.createElement("div",{className:"video-react-menu",onClick:this.handleClick},x.createElement("div",{className:"video-react-menu-content"},e))},a}(a.Component);Ie.propTypes=Fe,Ie.displayName="Popup";var xe={inline:G.bool,onClick:G.func.isRequired,onFocus:G.func,onBlur:G.func,className:G.string};F.propTypes=xe,F.defaultProps={inline:!0},F.displayName="PopupButton";var Be={percentage:G.string,vertical:G.bool,className:G.string};I.propTypes=Be,I.defaultProps={percentage:"100%",vertical:!1},I.displayName="VolumeLevel";var Oe={actions:G.object,player:G.object,className:G.string,onFocus:G.func,onBlur:G.func},_e=function(e){function a(a,t){var n;return n=e.call(this,a,t)||this,n.state={percentage:"0%"},n.handleMouseMove=n.handleMouseMove.bind(s(s(n))),n.handlePercentageChange=n.handlePercentageChange.bind(s(s(n))),n.checkMuted=n.checkMuted.bind(s(s(n))),n.getPercent=n.getPercent.bind(s(s(n))),n.stepForward=n.stepForward.bind(s(s(n))),n.stepBack=n.stepBack.bind(s(s(n))),n.handleFocus=n.handleFocus.bind(s(s(n))),n.handleBlur=n.handleBlur.bind(s(s(n))),n.handleClick=n.handleClick.bind(s(s(n))),n}d(a,e);var t=a.prototype;return t.componentDidMount=function(){},t.getPercent=function(){var e=this.props.player;return e.muted?0:e.volume},t.checkMuted=function(){var e=this.props,a=e.player,t=e.actions;a.muted&&t.mute(!1)},t.handleMouseMove=function(e){var a=this.props.actions;this.checkMuted();var t=this.slider.calculateDistance(e);a.changeVolume(t)},t.stepForward=function(){var e=this.props,a=e.player,t=e.actions;this.checkMuted(),t.changeVolume(a.volume+.1)},t.stepBack=function(){var e=this.props,a=e.player,t=e.actions;this.checkMuted(),t.changeVolume(a.volume-.1)},t.handleFocus=function(a){this.props.onFocus&&this.props.onFocus(a)},t.handleBlur=function(a){this.props.onBlur&&this.props.onBlur(a)},t.handlePercentageChange=function(e){e!==this.state.percentage&&this.setState({percentage:e})},t.handleClick=function(e){e.stopPropagation()},t.render=function(){var e=this,a=this.props,t=a.player,n=a.className,o=(100*t.volume).toFixed(2);return x.createElement(pe,l({ref:function(a){e.slider=a},label:"volume level",valuenow:o,valuetext:o+"%",onMouseMove:this.handleMouseMove,onFocus:this.handleFocus,onBlur:this.handleBlur,onClick:this.handleClick,sliderActive:this.handleFocus,sliderInactive:this.handleBlur,getPercent:this.getPercent,onPercentageChange:this.handlePercentageChange,stepForward:this.stepForward,stepBack:this.stepBack},this.props,{className:K(n,"video-react-volume-bar video-react-slider-bar")}),x.createElement(I,this.props))},a}(a.Component);_e.propTypes=Oe,_e.displayName="VolumeBar";var Ue={player:G.object,actions:G.object,vertical:G.bool,className:G.string,alwaysShowVolume:G.bool},He=function(e){function a(a,t){var n;return n=e.call(this,a,t)||this,n.state={active:!1},n.handleClick=n.handleClick.bind(s(s(n))),n.handleFocus=n.handleFocus.bind(s(s(n))),n.handleBlur=n.handleBlur.bind(s(s(n))),n}d(a,e);var t=a.prototype;return t.handleClick=function(){var e=this.props,a=e.player,t=e.actions;t.mute(!a.muted)},t.handleFocus=function(){this.setState({active:!0})},t.handleBlur=function(){this.setState({active:!1})},t.render=function(){var e=this.props,a=e.vertical,t=e.player,n=e.className,o=this.volumeLevel;return x.createElement(F,{className:K(n,{"video-react-volume-menu-button-vertical":a,"video-react-volume-menu-button-horizontal":!a,"video-react-vol-muted":t.muted,"video-react-vol-0":0===o&&!t.muted,"video-react-vol-1":1===o,"video-react-vol-2":2===o,"video-react-vol-3":3===o,"video-react-slider-active":this.props.alwaysShowVolume||this.state.active,"video-react-lock-showing":this.props.alwaysShowVolume||this.state.active},"video-react-volume-menu-button"),onClick:this.handleClick,inline:!a},x.createElement(_e,l({onFocus:this.handleFocus,onBlur:this.handleBlur},this.props)))},r(a,[{key:"volumeLevel",get:function(){var e=this.props.player,a=e.volume,t=e.muted,n=3;return 0===a||t?n=0:.33>a?n=1:.67>a&&(n=2),n}}]),a}(a.Component);He.propTypes=Ue,He.defaultProps={vertical:!1},He.displayName="VolumeMenuButton";var Ge={children:G.any},Ke=function(e){function a(a,t){var n;return n=e.call(this,a,t)||this,n.handleClick=n.handleClick.bind(s(s(n))),n}d(a,e);var t=a.prototype;return t.handleClick=function(e){e.preventDefault()},t.render=function(){return x.createElement("div",{className:"video-react-menu video-react-lock-showing",role:"presentation",onClick:this.handleClick},x.createElement("ul",{className:"video-react-menu-content"},this.props.children))},a}(a.Component);Ke.propTypes=Ge,Ke.displayName="Menu";var je={item:G.object,index:G.number,activateIndex:G.number,onSelectItem:G.func},Ve=function(e){function a(a,t){var n;return n=e.call(this,a,t)||this,n.handleClick=n.handleClick.bind(s(s(n))),n}d(a,e);var t=a.prototype;return t.handleClick=function(){var e=this.props,a=e.index,t=e.onSelectItem;t(a)},t.render=function(){var e=this.props,a=e.item,t=e.index,n=e.activateIndex;return x.createElement("li",{className:K({"video-react-menu-item":!0,"video-react-selected":t===n}),role:"menuitem",onClick:this.handleClick},a.label,x.createElement("span",{className:"video-react-control-text"}))},a}(a.Component);Ve.propTypes=je,Ve.displayName="MenuItem";var ze={inline:G.bool,items:G.array,className:G.string,onSelectItem:G.func,children:G.any,selectedIndex:G.number},We=function(e){function a(a,t){var n;return n=e.call(this,a,t)||this,n.state={active:!1,activateIndex:a.selectedIndex||0},n.commitSelection=n.commitSelection.bind(s(s(n))),n.activateMenuItem=n.activateMenuItem.bind(s(s(n))),n.handleClick=n.handleClick.bind(s(s(n))),n.renderMenu=n.renderMenu.bind(s(s(n))),n.handleFocus=n.handleFocus.bind(s(s(n))),n.handleBlur=n.handleBlur.bind(s(s(n))),n.handleUpArrow=n.handleUpArrow.bind(s(s(n))),n.handleDownArrow=n.handleDownArrow.bind(s(s(n))),n.handleEscape=n.handleEscape.bind(s(s(n))),n.handleReturn=n.handleReturn.bind(s(s(n))),n.handleTab=n.handleTab.bind(s(s(n))),n.handleKeyPress=n.handleKeyPress.bind(s(s(n))),n.handleSelectItem=n.handleSelectItem.bind(s(s(n))),n.handleIndexChange=n.handleIndexChange.bind(s(s(n))),n}d(a,e);var t=a.prototype;return t.componentDidUpdate=function(e){e.selectedIndex!==this.props.selectedIndex&&this.activateMenuItem(this.props.selectedIndex)},t.commitSelection=function(e){this.setState({activateIndex:e,active:!1}),this.handleIndexChange(e)},t.activateMenuItem=function(e){this.setState({activateIndex:e}),this.handleIndexChange(e)},t.handleIndexChange=function(e){var a=this.props.onSelectItem;a(e)},t.handleClick=function(){this.setState(function(e){return{active:!e.active}})},t.handleFocus=function(){document.addEventListener("keydown",this.handleKeyPress)},t.handleBlur=function(){this.setState({active:!1}),document.removeEventListener("keydown",this.handleKeyPress)},t.handleUpArrow=function(a){var e=this.props.items;if(this.state.active){a.preventDefault();var t=this.state.activateIndex-1;0>t&&(t=e.length?e.length-1:0),this.activateMenuItem(t)}},t.handleDownArrow=function(a){var e=this.props.items;if(this.state.active){a.preventDefault();var t=this.state.activateIndex+1;t>=e.length&&(t=0),this.activateMenuItem(t)}},t.handleTab=function(a){this.state.active&&(a.preventDefault(),this.commitSelection(this.state.activateIndex))},t.handleReturn=function(a){a.preventDefault(),this.state.active?this.commitSelection(this.state.activateIndex):this.setState({active:!0})},t.handleEscape=function(){this.setState({active:!1,activateIndex:0})},t.handleKeyPress=function(e){27===e.which?this.handleEscape(e):9===e.which?this.handleTab(e):13===e.which?this.handleReturn(e):38===e.which?this.handleUpArrow(e):40===e.which&&this.handleDownArrow(e)},t.handleSelectItem=function(e){this.commitSelection(e)},t.renderMenu=function(){var e=this;if(!this.state.active)return null;var a=this.props.items;return x.createElement(Ke,null,a.map(function(a,t){return x.createElement(Ve,{item:a,index:t,onSelectItem:e.handleSelectItem,activateIndex:e.state.activateIndex,key:"item-"+t++})}))},t.render=function(){var e=this,a=this.props,t=a.inline,n=a.className;return x.createElement(Le,{className:K(n,{"video-react-menu-button-inline":!!t,"video-react-menu-button-popup":!t,"video-react-menu-button-active":this.state.active},"video-react-control video-react-button video-react-menu-button"),role:"button",tabIndex:"0",ref:function(a){e.menuButton=a},onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur},this.props.children,this.renderMenu())},a}(a.Component);We.propTypes=ze,We.displayName="MenuButton";var Ye={player:G.object,actions:G.object,rates:G.array,className:G.string},qe=function(e){function a(a,t){var n;return n=e.call(this,a,t)||this,n.handleSelectItem=n.handleSelectItem.bind(s(s(n))),n}d(a,e);var t=a.prototype;return t.handleSelectItem=function(e){var a=this.props,t=a.rates,n=a.actions;0<=e&&e<t.length&&n.changeRate(t[e])},t.render=function(){var e=this.props,a=e.rates,t=e.player,n=a.map(function(e){return{label:e+"x",value:e}}),o=a.indexOf(t.playbackRate)||0;return x.createElement(We,{className:K("video-react-playback-rate",this.props.className),onSelectItem:this.handleSelectItem,items:n,selectedIndex:o},x.createElement("span",{className:"video-react-control-text"},"Playback Rate"),x.createElement("div",{className:"video-react-playback-rate-value"},t.playbackRate.toFixed(2)+"x"))},a}(a.Component);qe.propTypes=Ye,qe.defaultProps={rates:[2,1.5,1.25,1,.5,.25]},qe.displayName="PlaybackRateMenuButton";var Xe={children:G.any,autoHide:G.bool,autoHideTime:G.number,disableDefaultControls:G.bool,disableCompletely:G.bool,className:G.string},Ze=function(e){function a(a){var t;return t=e.call(this,a)||this,t.getDefaultChildren=t.getDefaultChildren.bind(s(s(t))),t.getFullChildren=t.getFullChildren.bind(s(s(t))),t}d(a,e);var t=a.prototype;return t.getDefaultChildren=function(){return[x.createElement(be,{key:"play-toggle",order:1}),x.createElement(He,{key:"volume-menu-button",order:4}),x.createElement(R,{key:"current-time-display",order:5.1}),x.createElement(L,{key:"time-divider",order:5.2}),x.createElement(w,{key:"duration-display",order:5.3}),x.createElement(ge,{key:"progress-control",order:6}),x.createElement(Se,{key:"fullscreen-toggle",order:8})]},t.getFullChildren=function(){return[x.createElement(be,{key:"play-toggle",order:1}),x.createElement(Te,{key:"replay-control",order:2}),x.createElement(fe,{key:"forward-control",order:3}),x.createElement(He,{key:"volume-menu-button",order:4}),x.createElement(R,{key:"current-time-display",order:5}),x.createElement(L,{key:"time-divider",order:6}),x.createElement(w,{key:"duration-display",order:7}),x.createElement(ge,{key:"progress-control",order:8}),x.createElement(M,{key:"remaining-time-display",order:9}),x.createElement(qe,{rates:[1,1.25,1.5,2],key:"playback-rate",order:10}),x.createElement(Se,{key:"fullscreen-toggle",order:11})]},t.getChildren=function(){var e=x.Children.toArray(this.props.children),a=this.props.disableDefaultControls?[]:this.getDefaultChildren(),t=this.props,n=t.className,o=i(t,["className"]);return C(a,e,o)},t.render=function(){var e=this.props,a=e.autoHide,t=e.className,n=e.disableCompletely,o=this.getChildren();return n?null:x.createElement("div",{className:K("video-react-control-bar",{"video-react-control-bar-auto-hide":a},t)},o)},a}(a.Component);Ze.propTypes=Xe,Ze.defaultProps={autoHide:!0,disableCompletely:!1},Ze.displayName="ControlBar";var Qe="undefined"!=typeof window&&window.navigator?window.navigator.userAgent:"",Je=/iPad/i.test(Qe),$e=/iPhone/i.test(Qe)&&!Je,ea=/iPod/i.test(Qe),aa={children:G.any,width:G.oneOfType([G.string,G.number]),height:G.oneOfType([G.string,G.number]),fluid:G.bool,muted:G.bool,playsInline:G.bool,aspectRatio:G.string,className:G.string,videoId:G.string,startTime:G.number,loop:G.bool,autoPlay:G.bool,src:G.string,poster:G.string,preload:G.oneOf(["auto","metadata","none"]),onLoadStart:G.func,onWaiting:G.func,onCanPlay:G.func,onCanPlayThrough:G.func,onPlaying:G.func,onEnded:G.func,onSeeking:G.func,onSeeked:G.func,onPlay:G.func,onPause:G.func,onProgress:G.func,onDurationChange:G.func,onError:G.func,onSuspend:G.func,onAbort:G.func,onEmptied:G.func,onStalled:G.func,onLoadedMetadata:G.func,onLoadedData:G.func,onTimeUpdate:G.func,onRateChange:G.func,onVolumeChange:G.func,store:G.object},ta=function(e){function a(a){var t;return t=e.call(this,a)||this,t.controlsHideTimer=null,t.video=null,t.manager=new X(a.store),t.actions=t.manager.getActions(),t.manager.subscribeToPlayerStateChange(t.handleStateChange.bind(s(s(t)))),t.getStyle=t.getStyle.bind(s(s(t))),t.handleResize=t.handleResize.bind(s(s(t))),t.getChildren=t.getChildren.bind(s(s(t))),t.handleMouseMove=P(t.handleMouseMove.bind(s(s(t))),250),t.handleMouseDown=t.handleMouseDown.bind(s(s(t))),t.startControlsTimer=t.startControlsTimer.bind(s(s(t))),t.handleFullScreenChange=t.handleFullScreenChange.bind(s(s(t))),t.handleKeyDown=t.handleKeyDown.bind(s(s(t))),t.handleFocus=t.handleFocus.bind(s(s(t))),t.handleBlur=t.handleBlur.bind(s(s(t))),t}d(a,e);var t=a.prototype;return t.componentDidMount=function(){this.handleResize(),window.addEventListener("resize",this.handleResize),z.addEventListener(this.handleFullScreenChange)},t.componentWillUnmount=function(){window.removeEventListener("resize",this.handleResize),z.removeEventListener(this.handleFullScreenChange),this.controlsHideTimer&&window.clearTimeout(this.controlsHideTimer)},t.getDefaultChildren=function(e){var a=this;return[x.createElement(re,{ref:function(e){a.video=e,a.manager.video=a.video},key:"video",order:0},e),x.createElement(g,{key:"poster-image",order:1}),x.createElement(y,{key:"loading-spinner",order:2}),x.createElement(de,{key:"bezel",order:3}),x.createElement(Q,{key:"big-play-button",order:4}),x.createElement(Ze,{key:"control-bar",order:5}),x.createElement(se,{key:"shortcut",order:99})]},t.getChildren=function(e){var a=e.className,t=e.children,n=i(e,["className","children"]),o=x.Children.toArray(this.props.children).filter(function(a){return!b(a)}),r=this.getDefaultChildren(t);return C(r,o,n)},t.setWidthOrHeight=function(e,a,t){var n,o;"string"==typeof t?"auto"===t?o="auto":t.match(/\d+%/)&&(o=t):"number"==typeof t&&(o=t+"px"),Object.assign(e,(n={},n[a]=o,n))},t.getStyle=function(){var e,a,t,n=this.props,o=n.fluid,r=n.aspectRatio,l=n.height,d=n.width,i=this.manager.getState(),s=i.player,c={};t=void 0!==r&&"auto"!==r?r:s.videoWidth?s.videoWidth+":"+s.videoHeight:"16:9";var p=t.split(":"),u=p[1]/p[0];return e=void 0===d?void 0===l?s.videoWidth||400:l/u:d,a=void 0===l?e*u:l,o?c.paddingTop=100*u+"%":(this.setWidthOrHeight(c,"width",e),this.setWidthOrHeight(c,"height",a)),c},t.getState=function(){return this.manager.getState()},t.play=function(){this.video.play()},t.pause=function(){this.video.pause()},t.load=function(){this.video.load()},t.addTextTrack=function(){var e;(e=this.video).addTextTrack.apply(e,arguments)},t.canPlayType=function(){var e;(e=this.video).canPlayType.apply(e,arguments)},t.seek=function(e){this.video.seek(e)},t.forward=function(e){this.video.forward(e)},t.replay=function(e){this.video.replay(e)},t.toggleFullscreen=function(){this.video.toggleFullscreen()},t.subscribeToStateChange=function(e){return this.manager.subscribeToPlayerStateChange(e)},t.handleResize=function(){},t.handleFullScreenChange=function(){this.actions.handleFullscreenChange(z.isFullscreen)},t.handleMouseDown=function(){this.startControlsTimer()},t.handleMouseMove=function(){this.startControlsTimer()},t.handleKeyDown=function(){this.startControlsTimer()},t.startControlsTimer=function(){var e=this,a=3e3;x.Children.forEach(this.props.children,function(e){if(x.isValidElement(e)&&e.type===Ze){var t=e.props.autoHideTime;"number"==typeof t&&(a=t)}}),this.actions.userActivate(!0),clearTimeout(this.controlsHideTimer),this.controlsHideTimer=setTimeout(function(){e.actions.userActivate(!1)},a)},t.handleStateChange=function(e,a){e.isFullscreen!==a.isFullscreen&&this.handleResize(),this.forceUpdate()},t.handleFocus=function(){this.actions.activate(!0)},t.handleBlur=function(){this.actions.activate(!1)},t.render=function(){var e=this,a=this.props.fluid,t=this.manager.getState(),n=t.player,o=n.paused,r=n.hasStarted,d=n.waiting,i=n.seeking,s=n.isFullscreen,c=n.userActivity,p=l({},this.props,{player:n,actions:this.actions,manager:this.manager,store:this.manager.store,video:this.video?this.video.video:null}),u=this.getChildren(p);return x.createElement("div",{className:K({"video-react-controls-enabled":!0,"video-react-has-started":r,"video-react-paused":o,"video-react-playing":!o,"video-react-waiting":d,"video-react-seeking":i,"video-react-fluid":a,"video-react-fullscreen":s,"video-react-user-inactive":!c,"video-react-user-active":c,"video-react-workinghover":!($e||Je||ea)},"video-react",this.props.className),style:this.getStyle(),ref:function(a){e.manager.rootElement=a},role:"region",onTouchStart:this.handleMouseDown,onMouseDown:this.handleMouseDown,onMouseMove:this.handleMouseMove,onKeyDown:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,tabIndex:"-1"},u)},r(a,[{key:"playbackRate",get:function(){return this.video.playbackRate},set:function(e){this.video.playbackRate=e}},{key:"muted",get:function(){return this.video.muted},set:function(e){this.video.muted=e}},{key:"volume",get:function(){return this.video.volume},set:function(e){this.video.volume=e}},{key:"videoWidth",get:function(){return this.video.videoWidth}},{key:"videoHeight",get:function(){return this.video.videoHeight}}]),a}(a.Component);ta.contextTypes={store:G.object},ta.propTypes=aa,ta.defaultProps={fluid:!0,muted:!1,playsInline:!1,preload:"auto",aspectRatio:"auto"},ta.displayName="Player";var na=function(e){function a(a,t){var n;return n=e.call(this,a,t)||this,k("PlaybackRate","PlaybackRateMenuButton"),n}d(a,e);var t=a.prototype;return t.render=function(){return x.createElement(qe,this.props)},a}(a.Component);na.displayName="PlaybackRate",e.Player=ta,e.Video=re,e.BigPlayButton=Q,e.LoadingSpinner=y,e.PosterImage=g,e.Bezel=de,e.Shortcut=se,e.ControlBar=Ze,e.PlayToggle=be,e.ForwardControl=fe,e.ReplayControl=Te,e.FullscreenToggle=Se,e.ProgressControl=ge,e.SeekBar=ve,e.Slider=pe,e.PlayProgressBar=S,e.LoadProgressBar=A,e.MouseTimeDisplay=D,e.RemainingTimeDisplay=M,e.CurrentTimeDisplay=R,e.DurationDisplay=w,e.TimeDivider=L,e.VolumeMenuButton=He,e.PlaybackRateMenuButton=qe,e.PlaybackRate=na,e.playerActions=W,e.videoActions=j,e.playerReducer=h,e.operationReducer=m,Object.defineProperty(e,"__esModule",{value:!0})});
(function(e,a){"object"==typeof exports&&"undefined"!=typeof module?a(exports,require("react"),require("redux"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","redux","react-dom"],a):(e=e||self,a(e["video-react"]={},e.React,e.Redux,e.ReactDOM))})(this,function(e,a,t,n){"use strict";function o(e,a){for(var t,n=0;n<a.length;n++)t=a[n],t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}function r(e,a,t){return a&&o(e.prototype,a),t&&o(e,t),e}function l(){return l=Object.assign||function(e){for(var a,t=1;t<arguments.length;t++)for(var n in a=arguments[t],a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);return e},l.apply(this,arguments)}function d(e,a){e.prototype=Object.create(a.prototype),e.prototype.constructor=e,e.__proto__=a}function i(e,a){if(null==e)return{};var t,n,o={},r=Object.keys(e);for(n=0;n<r.length;n++)t=r[n],0<=a.indexOf(t)||(o[t]=e[t]);return o}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,a){return a={exports:{}},e(a,a.exports),a.exports}function p(e){if(null===e||e===void 0)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function u(){}function h(e,a){switch(void 0===e&&(e=Y),a.type){case"video-react/USER_ACTIVATE":return l({},e,{userActivity:a.activity});case"video-react/PLAYER_ACTIVATE":return l({},e,{isActive:a.activity});case"video-react/FULLSCREEN_CHANGE":return l({},e,{isFullscreen:!!a.isFullscreen});case"video-react/SEEKING_TIME":return l({},e,{seekingTime:a.time});case"video-react/END_SEEKING":return l({},e,{seekingTime:0});case"video-react/LOAD_START":return l({},e,a.videoProps,{hasStarted:!1,ended:!1});case"video-react/CAN_PLAY":return l({},e,a.videoProps,{waiting:!1});case"video-react/WAITING":return l({},e,a.videoProps,{waiting:!0});case"video-react/CAN_PLAY_THROUGH":case"video-react/PLAYING":return l({},e,a.videoProps,{waiting:!1});case"video-react/PLAY":return l({},e,a.videoProps,{ended:!1,paused:!1,autoPaused:!1,waiting:!1,hasStarted:!0});case"video-react/PAUSE":return l({},e,a.videoProps,{paused:!0});case"video-react/END":return l({},e,a.videoProps,{ended:!0});case"video-react/SEEKING":return l({},e,a.videoProps,{seeking:!0});case"video-react/SEEKED":return l({},e,a.videoProps,{seeking:!1});case"video-react/ERROR":return l({},e,a.videoProps,{error:"UNKNOWN ERROR",ended:!0});case"video-react/DURATION_CHANGE":case"video-react/TIME_UPDATE":case"video-react/VOLUME_CHANGE":case"video-react/PROGRESS_CHANGE":case"video-react/RATE_CHANGE":case"video-react/SUSPEND":case"video-react/ABORT":case"video-react/EMPTIED":case"video-react/STALLED":case"video-react/LOADED_META_DATA":case"video-react/LOADED_DATA":case"video-react/RESIZE":return l({},e,a.videoProps);default:return e;}}function m(e,a){switch(void 0===e&&(e=q),a.type){case"video-react/OPERATE":return l({},e,{count:e.count+1,operation:l({},e.operation,a.operation)});default:return e;}}function v(e,a){return void 0===e&&(e={}),{player:h(e.player,a),operation:m(e.operation,a)}}function y(e){var a=e.player,t=e.className;return a.error?null:x.createElement("div",{className:K("video-react-loading-spinner",t)})}function g(e){var a=e.poster,t=e.player,n=e.actions,o=e.className;return!a||t.hasStarted?null:x.createElement("div",{className:K("video-react-poster",o),style:{backgroundImage:"url(\""+a+"\")"},onClick:function(){t.paused&&n.play()}})}function E(e,a){var t=Math.floor;void 0===e&&(e=0),void 0===a&&(a=e);var n=t(e%60),o=t(e/60%60),r=t(e/3600),l=t(a/60%60),d=t(a/3600);return(ee(e)||e===1/0)&&(r="-",o="-",n="-"),r=0<r||0<d?r+":":"",o=((r||10<=l)&&10>o?"0"+o:o)+":",n=10>n?"0"+n:n,r+o+n}function b(e){return!!(e.props&&e.props.isVideoChild)||"source"===e.type||"track"===e.type}function C(a,t,n,o){void 0===o&&(o=1);var r=x.Children.toArray(t),d=n.order,s=i(n,["order"]);return r.filter(function(a){return!a.props.disabled}).concat(a.filter(function(e){return!ae(r,function(a){return te(a,e)})})).map(function(t){var n=ae(a,function(e){return te(e,t)}),o=n?n.props:{},r=l({},s,o,t.props),d=x.cloneElement(t,r,t.props.children);return d}).sort(function(e,a){return(e.props.order||o)-(a.props.order||o)})}function k(e,a){console.warn("WARNING: "+e+" will be deprecated soon! Please use "+a+" instead.")}function P(e,a){var t=arguments,n=!1;return function(){n||(e.apply(void 0,t),n=!0,setTimeout(function(){n=!1},a))}}function f(e){var t,a=Math.round;if(e.getBoundingClientRect&&e.parentNode&&(t=e.getBoundingClientRect()),!t)return{left:0,top:0};var n=document,o=n.body,r=n.documentElement,l=r.clientLeft||o.clientLeft||0,d=window.pageXOffset||o.scrollLeft,i=t.left+d-l,s=r.clientTop||o.clientTop||0,c=window.pageYOffset||o.scrollTop,p=t.top+c-s;return{left:a(i),top:a(p)}}function T(e,a){var t=Math.max,n=Math.min,o={},r=f(e),l=e.offsetWidth,d=e.offsetHeight,i=r.top,s=r.left,c=a.pageY,p=a.pageX;return a.changedTouches&&(p=a.changedTouches[0].pageX,c=a.changedTouches[0].pageY),o.y=t(0,n(1,(i-c+d)/d)),o.x=t(0,n(1,(p-s)/l)),o}function N(e,a){for(var t=e.className.split(" "),n=0;n<t.length;n++)if(t[n].toLowerCase()===a.toLowerCase())return!0;return!1}function S(e){var a=e.currentTime,t=e.duration,n=e.percentage,o=e.className;return x.createElement("div",{"data-current-time":E(a,t),className:K("video-react-play-progress video-react-slider-bar",o),style:{width:n}},x.createElement("span",{className:"video-react-control-text"},"Progress: "+n))}function A(e){function a(e,a){var t=e/a||0;return 100*(1<=t?1:t)+"%"}var t=e.buffered,n=e.duration,o=e.className;if(!t||!t.length)return null;var r=t.end(t.length-1),l={};r>n&&(r=n),l.width=a(r,n);for(var d=[],s=0;s<t.length;s++){var c=t.start(s),p=t.end(s),u=x.createElement("div",{style:{left:a(c,r),width:a(p-c,r)},key:"part-"+s});d.push(u)}return 0===d.length&&(d=null),x.createElement("div",{style:l,className:K("video-react-load-progress",o)},x.createElement("span",{className:"video-react-control-text"},"Loaded: 0%"),d)}function D(e){var a=e.duration,t=e.mouseTime,n=e.className,o=e.text;if(!t.time)return null;var r=o||E(t.time,a);return x.createElement("div",{className:K("video-react-mouse-display",n),style:{left:t.position+"px"},"data-current-time":r})}function M(e){var a=e.player,t=a.currentTime,n=a.duration,o=e.className,r=E(n-t);return x.createElement("div",{className:K("video-react-remaining-time video-react-time-control video-react-control",o)},x.createElement("div",{className:"video-react-remaining-time-display","aria-live":"off"},x.createElement("span",{className:"video-react-control-text"},"Remaining Time "),"-"+r))}function R(e){var a=e.player,t=a.currentTime,n=a.duration,o=e.className,r=E(t,n);return x.createElement("div",{className:K("video-react-current-time video-react-time-control video-react-control",o)},x.createElement("div",{className:"video-react-current-time-display","aria-live":"off"},x.createElement("span",{className:"video-react-control-text"},"Current Time "),r))}function w(e){var a=e.player.duration,t=e.className,n=E(a);return x.createElement("div",{className:K(t,"video-react-duration video-react-time-control video-react-control")},x.createElement("div",{className:"video-react-duration-display","aria-live":"off"},x.createElement("span",{className:"video-react-control-text"},"Duration Time "),n))}function L(e){var a=e.separator,t=e.className;return x.createElement("div",{className:K("video-react-time-control video-react-time-divider",t),dir:"ltr"},x.createElement("div",null,x.createElement("span",null,a||"/")))}function F(e){var a=e.inline,t=e.className,n=l({},e);return delete n.children,delete n.inline,delete n.className,x.createElement(Le,l({className:K(t,{"video-react-menu-button-inline":!!a,"video-react-menu-button-popup":!a},"video-react-control video-react-button video-react-menu-button")},n),x.createElement(Ie,e))}function I(e){var a=e.percentage,t=e.vertical,n=e.className,o={};return t?o.height=a:o.width=a,x.createElement("div",{className:K(n,"video-react-volume-level"),style:o},x.createElement("span",{className:"video-react-control-text"}))}var x="default"in a?a["default"]:a,B=Object.getOwnPropertySymbols,O=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable,U=function(){var e=String.fromCharCode;try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de","5"===Object.getOwnPropertyNames(a)[0])return!1;for(var t={},n=0;10>n;n++)t["_"+e(n)]=n;var o=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==o.join(""))return!1;var r={};return["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t"].forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e){for(var a,t,n=p(e),o=1;o<arguments.length;o++){for(var r in a=Object(arguments[o]),a)O.call(a,r)&&(n[r]=a[r]);if(B){t=B(a);for(var l=0;l<t.length;l++)_.call(a,t[l])&&(n[t[l]]=a[t[l]])}}return n},H=function(){function e(e,a,t,n,o,r){if(r!=="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function a(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:a,element:e,instanceOf:a,node:e,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a};return t.checkPropTypes=u,t.PropTypes=t,t},G=c(function(e){e.exports=H()}),K=c(function(e){(function(){function a(){for(var e,n=[],o=0;o<arguments.length;o++)if(e=arguments[o],e){var r=typeof e;if("string"===r||"number"===r)n.push(e);else if(Array.isArray(e)&&e.length){var l=a.apply(null,e);l&&n.push(l)}else if("object"===r)for(var d in e)t.call(e,d)&&e[d]&&n.push(d)}return n.join(" ")}var t={}.hasOwnProperty;e.exports?(a.default=a,e.exports=a):window.classNames=a})()}),j=Object.freeze({LOAD_START:"video-react/LOAD_START",CAN_PLAY:"video-react/CAN_PLAY",WAITING:"video-react/WAITING",CAN_PLAY_THROUGH:"video-react/CAN_PLAY_THROUGH",PLAYING:"video-react/PLAYING",PLAY:"video-react/PLAY",PAUSE:"video-react/PAUSE",END:"video-react/END",SEEKING:"video-react/SEEKING",SEEKED:"video-react/SEEKED",SEEKING_TIME:"video-react/SEEKING_TIME",END_SEEKING:"video-react/END_SEEKING",DURATION_CHANGE:"video-react/DURATION_CHANGE",TIME_UPDATE:"video-react/TIME_UPDATE",VOLUME_CHANGE:"video-react/VOLUME_CHANGE",PROGRESS_CHANGE:"video-react/PROGRESS_CHANGE",RATE_CHANGE:"video-react/RATE_CHANGE",SUSPEND:"video-react/SUSPEND",ABORT:"video-react/ABORT",EMPTIED:"video-react/EMPTIED",STALLED:"video-react/STALLED",LOADED_META_DATA:"video-react/LOADED_META_DATA",LOADED_DATA:"video-react/LOADED_DATA",RESIZE:"video-react/RESIZE",ERROR:"video-react/ERROR",handleLoadStart:function(e){return{type:"video-react/LOAD_START",videoProps:e}},handleCanPlay:function(e){return{type:"video-react/CAN_PLAY",videoProps:e}},handleWaiting:function(e){return{type:"video-react/WAITING",videoProps:e}},handleCanPlayThrough:function(e){return{type:"video-react/CAN_PLAY_THROUGH",videoProps:e}},handlePlaying:function(e){return{type:"video-react/PLAYING",videoProps:e}},handlePlay:function(e){return{type:"video-react/PLAY",videoProps:e}},handlePause:function(e){return{type:"video-react/PAUSE",videoProps:e}},handleEnd:function(e){return{type:"video-react/END",videoProps:e}},handleSeeking:function(e){return{type:"video-react/SEEKING",videoProps:e}},handleSeeked:function(e){return{type:"video-react/SEEKED",videoProps:e}},handleDurationChange:function(e){return{type:"video-react/DURATION_CHANGE",videoProps:e}},handleTimeUpdate:function(e){return{type:"video-react/TIME_UPDATE",videoProps:e}},handleVolumeChange:function(e){return{type:"video-react/VOLUME_CHANGE",videoProps:e}},handleProgressChange:function(e){return{type:"video-react/PROGRESS_CHANGE",videoProps:e}},handleRateChange:function(e){return{type:"video-react/RATE_CHANGE",videoProps:e}},handleSuspend:function(e){return{type:"video-react/SUSPEND",videoProps:e}},handleAbort:function(e){return{type:"video-react/ABORT",videoProps:e}},handleEmptied:function(e){return{type:"video-react/EMPTIED",videoProps:e}},handleStalled:function(e){return{type:"video-react/STALLED",videoProps:e}},handleLoadedMetaData:function(e){return{type:"video-react/LOADED_META_DATA",videoProps:e}},handleLoadedData:function(e){return{type:"video-react/LOADED_DATA",videoProps:e}},handleResize:function(e){return{type:"video-react/RESIZE",videoProps:e}},handleError:function(e){return{type:"video-react/ERROR",videoProps:e}},handleSeekingTime:function(e){return{type:"video-react/SEEKING_TIME",time:e}},handleEndSeeking:function(e){return{type:"video-react/END_SEEKING",time:e}}}),V=function(){function e(){}var a=e.prototype;return a.request=function(e){e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen()},a.exit=function(){document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen()},a.addEventListener=function(e){document.addEventListener("fullscreenchange",e),document.addEventListener("webkitfullscreenchange",e),document.addEventListener("mozfullscreenchange",e),document.addEventListener("MSFullscreenChange",e)},a.removeEventListener=function(e){document.removeEventListener("fullscreenchange",e),document.removeEventListener("webkitfullscreenchange",e),document.removeEventListener("mozfullscreenchange",e),document.removeEventListener("MSFullscreenChange",e)},r(e,[{key:"isFullscreen",get:function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement}},{key:"enabled",get:function(){return document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled}}]),e}(),z=new V,W=Object.freeze({OPERATE:"video-react/OPERATE",FULLSCREEN_CHANGE:"video-react/FULLSCREEN_CHANGE",PLAYER_ACTIVATE:"video-react/PLAYER_ACTIVATE",USER_ACTIVATE:"video-react/USER_ACTIVATE",handleFullscreenChange:function(e){return{type:"video-react/FULLSCREEN_CHANGE",isFullscreen:e}},activate:function(e){return{type:"video-react/PLAYER_ACTIVATE",activity:e}},userActivate:function(e){return{type:"video-react/USER_ACTIVATE",activity:e}},play:function(e){return void 0===e&&(e={action:"play",source:""}),this.video.play(),{type:"video-react/OPERATE",operation:e}},pause:function(e){return void 0===e&&(e={action:"pause",source:""}),this.video.pause(),{type:"video-react/OPERATE",operation:e}},togglePlay:function(e){return void 0===e&&(e={action:"toggle-play",source:""}),this.video.togglePlay(),{type:"video-react/OPERATE",operation:e}},seek:function(e,a){return void 0===a&&(a={action:"seek",source:""}),this.video.seek(e),{type:"video-react/OPERATE",operation:a}},forward:function(e,a){return void 0===a&&(a={action:"forward-"+e,source:""}),this.video.forward(e),{type:"video-react/OPERATE",operation:a}},replay:function(e,a){return void 0===a&&(a={action:"replay-"+e,source:""}),this.video.replay(e),{type:"video-react/OPERATE",operation:a}},changeRate:function(e,a){return void 0===a&&(a={action:"change-rate",source:""}),this.video.playbackRate=e,{type:"video-react/OPERATE",operation:a}},changeVolume:function(e,a){void 0===a&&(a={action:"change-volume",source:""});var t=e;return 0>e&&(t=0),1<e&&(t=1),this.video.volume=t,{type:"video-react/OPERATE",operation:a}},mute:function(e,a){return void 0===a&&(a={action:e?"muted":"unmuted",source:""}),this.video.muted=e,{type:"video-react/OPERATE",operation:a}},toggleFullscreen:function(e){return z.enabled?(z.isFullscreen?z.exit():z.request(this.rootElement),{type:"video-react/OPERATE",operation:{action:"toggle-fullscreen",source:""}}):{type:"video-react/FULLSCREEN_CHANGE",isFullscreen:!e.isFullscreen}}}),Y={currentSrc:null,duration:0,currentTime:0,seekingTime:0,buffered:null,waiting:!1,seeking:!1,paused:!0,autoPaused:!1,ended:!1,playbackRate:1,muted:!1,volume:1,readyState:0,networkState:0,videoWidth:0,videoHeight:0,hasStarted:!1,userActivity:!0,isActive:!1,isFullscreen:!1},q={count:0,operation:{action:"",source:""}},X=function(){function e(e){this.store=e||t.createStore(v),this.video=null,this.rootElement=null}var a=e.prototype;return a.getActions=function(){function e(e){return function(){var n=e.apply(a,arguments);"undefined"!=typeof n&&t(n)}}var a=this,t=this.store.dispatch,n=l({},W,j);return Object.keys(n).filter(function(e){return"function"==typeof n[e]}).reduce(function(a,t){return a[t]=e(n[t]),a},{})},a.getState=function(){return this.store.getState()},a.subscribeToStateChange=function(e,a){a||(a=this.getState.bind(this));var t=a(),n=function(){var n=a();if(n!==t){var o=t;t=n,e(n,o)}};return this.store.subscribe(n)},a.subscribeToOperationStateChange=function(e){var a=this;return this.subscribeToStateChange(e,function(){return a.getState().operation})},a.subscribeToPlayerStateChange=function(e){var a=this;return this.subscribeToStateChange(e,function(){return a.getState().player})},e}(),Z={actions:G.object,player:G.object,position:G.string,className:G.string},Q=function(e){function a(a,t){var n;return n=e.call(this,a,t)||this,n.handleClick=n.handleClick.bind(s(s(n))),n}d(a,e);var t=a.prototype;return t.componentDidMount=function(){},t.handleClick=function(){var e=this.props.actions;e.play()},t.render=function(){var e=this.props,a=e.player,t=e.position;return x.createElement("button",{className:K("video-react-big-play-button","video-react-big-play-button-"+t,this.props.className,{"big-play-button-hide":a.hasStarted||!a.currentSrc}),type:"button","aria-live":"polite",tabIndex:"0",onClick:this.handleClick},x.createElement("span",{className:"video-react-control-text"},"Play Video"))},a}(a.Component);Q.propTypes=Z,Q.defaultProps={position:"left"},Q.displayName="BigPlayButton";var J={player:G.object,className:G.string};y.propTypes=J,y.displayName="LoadingSpinner";var $={poster:G.string,player:G.object,actions:G.object,className:G.string};g.propTypes=$,g.displayName="PosterImage";var ee=Number.isNaN||function(e){return e!==e},ae=function(e,a){return e.filter(a)[0]},te=function(e,a){var t=e.type,n=a.type;return"string"==typeof t||"string"==typeof n?t===n:!("function"!=typeof t||"function"!=typeof n)&&t.displayName===n.displayName},ne=["error","src","srcObject","currentSrc","crossOrigin","networkState","preload","buffered","readyState","seeking","currentTime","duration","paused","defaultPlaybackRate","playbackRate","played","seekable","ended","autoplay","loop","mediaGroup","controller","controls","volume","muted","defaultMuted","audioTracks","videoTracks","textTracks","width","height","videoWidth","videoHeight","poster"],oe={actions:G.object,player:G.object,children:G.any,startTime:G.number,loop:G.bool,muted:G.bool,autoPlay:G.bool,playsInline:G.bool,src:G.string,poster:G.string,className:G.string,preload:G.oneOf(["auto","metadata","none"]),crossOrigin:G.string,onLoadStart:G.func,onWaiting:G.func,onCanPlay:G.func,onCanPlayThrough:G.func,onPlaying:G.func,onEnded:G.func,onSeeking:G.func,onSeeked:G.func,onPlay:G.func,onPause:G.func,onProgress:G.func,onDurationChange:G.func,onError:G.func,onSuspend:G.func,onAbort:G.func,onEmptied:G.func,onStalled:G.func,onLoadedMetadata:G.func,onLoadedData:G.func,onTimeUpdate:G.func,onRateChange:G.func,onVolumeChange:G.func,onResize:G.func},re=function(e){function a(a){var t;return t=e.call(this,a)||this,t.video=null,t.play=t.play.bind(s(s(t))),t.pause=t.pause.bind(s(s(t))),t.seek=t.seek.bind(s(s(t))),t.forward=t.forward.bind(s(s(t))),t.replay=t.replay.bind(s(s(t))),t.toggleFullscreen=t.toggleFullscreen.bind(s(s(t))),t.getProperties=t.getProperties.bind(s(s(t))),t.renderChildren=t.renderChildren.bind(s(s(t))),t.handleLoadStart=t.handleLoadStart.bind(s(s(t))),t.handleCanPlay=t.handleCanPlay.bind(s(s(t))),t.handleCanPlayThrough=t.handleCanPlayThrough.bind(s(s(t))),t.handlePlay=t.handlePlay.bind(s(s(t))),t.handlePlaying=t.handlePlaying.bind(s(s(t))),t.handlePause=t.handlePause.bind(s(s(t))),t.handleEnded=t.handleEnded.bind(s(s(t))),t.handleWaiting=t.handleWaiting.bind(s(s(t))),t.handleSeeking=t.handleSeeking.bind(s(s(t))),t.handleSeeked=t.handleSeeked.bind(s(s(t))),t.handleFullscreenChange=t.handleFullscreenChange.bind(s(s(t))),t.handleError=t.handleError.bind(s(s(t))),t.handleSuspend=t.handleSuspend.bind(s(s(t))),t.handleAbort=t.handleAbort.bind(s(s(t))),t.handleEmptied=t.handleEmptied.bind(s(s(t))),t.handleStalled=t.handleStalled.bind(s(s(t))),t.handleLoadedMetaData=t.handleLoadedMetaData.bind(s(s(t))),t.handleLoadedData=t.handleLoadedData.bind(s(s(t))),t.handleTimeUpdate=t.handleTimeUpdate.bind(s(s(t))),t.handleRateChange=t.handleRateChange.bind(s(s(t))),t.handleVolumeChange=t.handleVolumeChange.bind(s(s(t))),t.handleDurationChange=t.handleDurationChange.bind(s(s(t))),t.handleProgress=P(t.handleProgress.bind(s(s(t))),250),t.handleKeypress=t.handleKeypress.bind(s(s(t))),t}d(a,e);var t=a.prototype;return t.componentDidMount=function(){this.forceUpdate()},t.getProperties=function(){var e=this;return this.video?ne.reduce(function(a,t){return a[t]=e.video[t],a},{}):null},t.play=function(){var e=this.video.play();void 0!==e&&e.catch(function(){}).then(function(){})},t.pause=function(){var e=this.video.pause();void 0!==e&&e.catch(function(){}).then(function(){})},t.load=function(){this.video.load()},t.addTextTrack=function(){var e;(e=this.video).addTextTrack.apply(e,arguments)},t.canPlayType=function(){var e;(e=this.video).canPlayType.apply(e,arguments)},t.togglePlay=function(){this.video.paused?this.play():this.pause()},t.seek=function(e){try{this.video.currentTime=e}catch(a){}},t.forward=function(e){this.seek(this.video.currentTime+e)},t.replay=function(e){this.forward(-e)},t.toggleFullscreen=function(){var e=this.props,a=e.player,t=e.actions;t.toggleFullscreen(a)},t.handleLoadStart=function(){var e=this.props,a=e.actions,t=e.onLoadStart;a.handleLoadStart(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleCanPlay=function(){var e=this.props,a=e.actions,t=e.onCanPlay;a.handleCanPlay(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleCanPlayThrough=function(){var e=this.props,a=e.actions,t=e.onCanPlayThrough;a.handleCanPlayThrough(this.getProperties()),t&&t.apply(void 0,arguments)},t.handlePlaying=function(){var e=this.props,a=e.actions,t=e.onPlaying;a.handlePlaying(this.getProperties()),t&&t.apply(void 0,arguments)},t.handlePlay=function(){var e=this.props,a=e.actions,t=e.onPlay;a.handlePlay(this.getProperties()),t&&t.apply(void 0,arguments)},t.handlePause=function(){var e=this.props,a=e.actions,t=e.onPause;a.handlePause(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleDurationChange=function(){var e=this.props,a=e.actions,t=e.onDurationChange;a.handleDurationChange(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleProgress=function(){var e=this.props,a=e.actions,t=e.onProgress;this.video&&a.handleProgressChange(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleEnded=function(){var e=this.props,a=e.loop,t=e.player,n=e.actions,o=e.onEnded;a?(this.seek(0),this.play()):!t.paused&&this.pause(),n.handleEnd(this.getProperties()),o&&o.apply(void 0,arguments)},t.handleWaiting=function(){var e=this.props,a=e.actions,t=e.onWaiting;a.handleWaiting(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleSeeking=function(){var e=this.props,a=e.actions,t=e.onSeeking;a.handleSeeking(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleSeeked=function(){var e=this.props,a=e.actions,t=e.onSeeked;a.handleSeeked(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleFullscreenChange=function(){},t.handleSuspend=function(){var e=this.props,a=e.actions,t=e.onSuspend;a.handleSuspend(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleAbort=function(){var e=this.props,a=e.actions,t=e.onAbort;a.handleAbort(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleEmptied=function(){var e=this.props,a=e.actions,t=e.onEmptied;a.handleEmptied(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleStalled=function(){var e=this.props,a=e.actions,t=e.onStalled;a.handleStalled(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleLoadedMetaData=function(){var e=this.props,a=e.actions,t=e.onLoadedMetadata,n=e.startTime;n&&0<n&&(this.video.currentTime=n),a.handleLoadedMetaData(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleLoadedData=function(){var e=this.props,a=e.actions,t=e.onLoadedData;a.handleLoadedData(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleTimeUpdate=function(){var e=this.props,a=e.actions,t=e.onTimeUpdate;a.handleTimeUpdate(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleRateChange=function(){var e=this.props,a=e.actions,t=e.onRateChange;a.handleRateChange(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleVolumeChange=function(){var e=this.props,a=e.actions,t=e.onVolumeChange;a.handleVolumeChange(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleError=function(){var e=this.props,a=e.actions,t=e.onError;a.handleError(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleResize=function(){var e=this.props,a=e.actions,t=e.onResize;a.handleResize(this.getProperties()),t&&t.apply(void 0,arguments)},t.handleKeypress=function(){},t.renderChildren=function(){var e=this,a=l({},this.props,{video:this.video});return this.video?x.Children.toArray(this.props.children).filter(b).map(function(t){var n;if("string"!=typeof t.type)n=a;else if("source"===t.type){n=l({},t.props);var o=n.onError;n.onError=function(){o&&o.apply(void 0,arguments),e.handleError.apply(e,arguments)}}return x.cloneElement(t,n)}):null},t.render=function(){var e=this,a=this.props,t=a.loop,n=a.poster,o=a.preload,r=a.src,l=a.autoPlay,d=a.playsInline,i=a.muted,s=a.crossOrigin,c=a.videoId;return x.createElement("video",{className:K("video-react-video",this.props.className),id:c,crossOrigin:s,ref:function(a){e.video=a},muted:i,preload:o,loop:t,playsInline:d,autoPlay:l,poster:n,src:r,onLoadStart:this.handleLoadStart,onWaiting:this.handleWaiting,onCanPlay:this.handleCanPlay,onCanPlayThrough:this.handleCanPlayThrough,onPlaying:this.handlePlaying,onEnded:this.handleEnded,onSeeking:this.handleSeeking,onSeeked:this.handleSeeked,onPlay:this.handlePlay,onPause:this.handlePause,onProgress:this.handleProgress,onDurationChange:this.handleDurationChange,onError:this.handleError,onSuspend:this.handleSuspend,onAbort:this.handleAbort,onEmptied:this.handleEmptied,onStalled:this.handleStalled,onLoadedMetadata:this.handleLoadedMetaData,onLoadedData:this.handleLoadedData,onTimeUpdate:this.handleTimeUpdate,onRateChange:this.handleRateChange,onVolumeChange:this.handleVolumeChange,tabIndex:"-1"},this.renderChildren())},r(a,[{key:"playbackRate",get:function(){return this.video.playbackRate},set:function(e){this.video.playbackRate=e}},{key:"muted",get:function(){return this.video.muted},set:function(e){this.video.muted=e}},{key:"volume",get:function(){return this.video.volume},set:function(e){1<e&&(e=1),0>e&&(e=0),this.video.volume=e}},{key:"videoWidth",get:function(){return this.video.videoWidth}},{key:"videoHeight",get:function(){return this.video.videoHeight}}]),a}(a.Component);re.propTypes=oe,re.displayName="Video";var le={manager:G.object,className:G.string},de=function(e){function a(a,t){var n;return n=e.call(this,a,t)||this,n.timer=null,a.manager.subscribeToOperationStateChange(n.handleStateChange.bind(s(s(n)))),n.state={hidden:!0,operation:{}},n}d(a,e);var t=a.prototype;return t.handleStateChange=function(e,a){var t=this;e.count!==a.count&&"shortcut"===e.operation.source&&(this.timer&&(clearTimeout(this.timer),this.timer=null),this.setState({hidden:!1,count:e.count,operation:e.operation}),this.timer=setTimeout(function(){t.setState({hidden:!0}),t.timer=null},500))},t.render=function(){if("shortcut"!==this.state.operation.source)return null;var e=this.state.hidden?{display:"none"}:null;return x.createElement("div",{className:K({"video-react-bezel":!0,"video-react-bezel-animation":0==this.state.count%2,"video-react-bezel-animation-alt":1==this.state.count%2},this.props.className),style:e,role:"status","aria-label":this.state.operation.action},x.createElement("div",{className:K("video-react-bezel-icon","video-react-bezel-icon-"+this.state.operation.action)}))},a}(a.Component);de.propTypes=le,de.displayName="Bezel";var ie={clickable:G.bool,dblclickable:G.bool,manager:G.object,actions:G.object,player:G.object,shortcuts:G.array},se=function(e){function a(a,t){var n;return n=e.call(this,a,t)||this,n.defaultShortcuts=[{keyCode:32,handle:n.togglePlay},{keyCode:75,handle:n.togglePlay},{keyCode:70,handle:n.toggleFullscreen},{keyCode:37,handle:function(e,a){e.hasStarted&&a.replay(5,{action:"replay-5",source:"shortcut"})}},{keyCode:74,handle:function(e,a){e.hasStarted&&a.replay(10,{action:"replay-10",source:"shortcut"})}},{keyCode:39,handle:function(e,a){e.hasStarted&&a.forward(5,{action:"forward-5",source:"shortcut"})}},{keyCode:76,handle:function(e,a){e.hasStarted&&a.forward(10,{action:"forward-10",source:"shortcut"})}},{keyCode:36,handle:function(e,a){e.hasStarted&&a.seek(0)}},{keyCode:35,handle:function(e,a){e.hasStarted&&a.seek(e.duration)}},{keyCode:38,handle:function(e,a){var t=e.volume+.05;1<t&&(t=1),a.changeVolume(t,{action:"volume-up",source:"shortcut"})}},{keyCode:40,handle:function(e,a){var t=e.volume-.05;0>t&&(t=0);var n=0<t?"volume-down":"volume-off";a.changeVolume(t,{action:n,source:"shortcut"})}},{keyCode:190,shift:!0,handle:function(e,a){var t=e.playbackRate;1.5<=t?t=2:1.25<=t?t=1.5:1<=t?t=1.25:.5<=t?t=1:.25<=t?t=.5:0<=t&&(t=.25),a.changeRate(t,{action:"fast-forward",source:"shortcut"})}},{keyCode:188,shift:!0,handle:function(e,a){var t=e.playbackRate;.5>=t?t=.25:1>=t?t=.5:1.25>=t?t=1:1.5>=t?t=1.25:2>=t&&(t=1.5),a.changeRate(t,{action:"fast-rewind",source:"shortcut"})}}],n.shortcuts=[].concat(n.defaultShortcuts),n.mergeShortcuts=n.mergeShortcuts.bind(s(s(n))),n.handleKeyPress=n.handleKeyPress.bind(s(s(n))),n.handleClick=n.handleClick.bind(s(s(n))),n.handleDoubleClick=n.handleDoubleClick.bind(s(s(n))),n}d(a,e);var t=a.prototype;return t.componentDidMount=function(){this.mergeShortcuts(),document.addEventListener("keydown",this.handleKeyPress),document.addEventListener("click",this.handleClick),document.addEventListener("dblclick",this.handleDoubleClick)},t.componentDidUpdate=function(e){e.shortcuts!==this.props.shortcuts&&this.mergeShortcuts()},t.componentWillUnmount=function(){document.removeEventListener("keydown",this.handleKeyPress),document.removeEventListener("click",this.handleClick),document.removeEventListener("dblclick",this.handleDoubleClick)},t.mergeShortcuts=function(){var e=function(e){var a=e.keyCode,t=void 0===a?0:a,n=e.ctrl,o=e.shift,r=e.alt;return t+":"+(void 0!==n&&n)+":"+(void 0!==o&&o)+":"+(void 0!==r&&r)},a=this.defaultShortcuts.reduce(function(a,t){var n;return Object.assign(a,(n={},n[e(t)]=t,n))},{}),t=(this.props.shortcuts||[]).reduce(function(a,t){var n=t.keyCode,o=t.handle;if(n&&"function"==typeof o){var r;return Object.assign(a,(r={},r[e(t)]=t,r))}return a},a),n=function(e){var a=0;return["ctrl","shift","alt"].forEach(function(t){e[t]&&a++}),a};this.shortcuts=Object.keys(t).map(function(e){return t[e]}).sort(function(e,a){return n(a)-n(e)})},t.togglePlay=function(e,a){e.paused?a.play({action:"play",source:"shortcut"}):a.pause({action:"pause",source:"shortcut"})},t.toggleFullscreen=function(e,a){a.toggleFullscreen(e)},t.handleKeyPress=function(a){var e=this.props,t=e.player,n=e.actions;if(t.isActive&&!(document.activeElement&&(N(document.activeElement,"video-react-control")||N(document.activeElement,"video-react-menu-button-active")||N(document.activeElement,"video-react-big-play-button")))){var o=a.keyCode||a.which,r=a.ctrlKey||a.metaKey,l=a.shiftKey,d=a.altKey,i=this.shortcuts.filter(function(e){return!!(e.keyCode&&0==e.keyCode-o)&&(void 0===e.ctrl||e.ctrl===r)&&(void 0===e.shift||e.shift===l)&&(void 0===e.alt||e.alt===d)})[0];i&&(i.handle(t,n),a.preventDefault())}},t.canBeClicked=function(a,t){return!!(a.isActive&&"VIDEO"===t.target.nodeName&&4===a.readyState)},t.handleClick=function(a){var e=this.props,t=e.player,n=e.actions,o=e.clickable;this.canBeClicked(t,a)&&o&&this.togglePlay(t,n)},t.handleDoubleClick=function(a){var e=this.props,t=e.player,n=e.actions,o=e.dblclickable;this.canBeClicked(t,a)&&o&&this.toggleFullscreen(t,n)},t.render=function(){return null},a}(a.Component);se.propTypes=ie,se.defaultProps={clickable:!0,dblclickable:!0},se.displayName="Shortcut";var ce={className:G.string,onMouseDown:G.func,onMouseMove:G.func,stepForward:G.func,stepBack:G.func,sliderActive:G.func,sliderInactive:G.func,onMouseUp:G.func,onFocus:G.func,onBlur:G.func,onClick:G.func,getPercent:G.func,vertical:G.bool,children:G.node,label:G.string,valuenow:G.string,valuetext:G.string},pe=function(e){function a(a,t){var n;return n=e.call(this,a,t)||this,n.handleMouseDown=n.handleMouseDown.bind(s(s(n))),n.handleMouseMove=n.handleMouseMove.bind(s(s(n))),n.handleMouseUp=n.handleMouseUp.bind(s(s(n))),n.handleFocus=n.handleFocus.bind(s(s(n))),n.handleBlur=n.handleBlur.bind(s(s(n))),n.handleClick=n.handleClick.bind(s(s(n))),n.handleKeyPress=n.handleKeyPress.bind(s(s(n))),n.stepForward=n.stepForward.bind(s(s(n))),n.stepBack=n.stepBack.bind(s(s(n))),n.calculateDistance=n.calculateDistance.bind(s(s(n))),n.getProgress=n.getProgress.bind(s(s(n))),n.renderChildren=n.renderChildren.bind(s(s(n))),n.state={active:!1},n}d(a,e);var t=a.prototype;return t.componentWillUnmount=function(){document.removeEventListener("mousemove",this.handleMouseMove,!0),document.removeEventListener("mouseup",this.handleMouseUp,!0),document.removeEventListener("touchmove",this.handleMouseMove,!0),document.removeEventListener("touchend",this.handleMouseUp,!0),document.removeEventListener("keydown",this.handleKeyPress,!0)},t.getProgress=function(){var e=this.props.getPercent;if(!e)return 0;var a=e();return("number"!=typeof a||0>a||a===1/0)&&(a=0),a},t.handleMouseDown=function(e){var a=this.props.onMouseDown;document.addEventListener("mousemove",this.handleMouseMove,!0),document.addEventListener("mouseup",this.handleMouseUp,!0),document.addEventListener("touchmove",this.handleMouseMove,!0),document.addEventListener("touchend",this.handleMouseUp,!0),this.setState({active:!0}),this.props.sliderActive&&this.props.sliderActive(e),this.handleMouseMove(e),a&&a(e)},t.handleMouseMove=function(e){var a=this.props.onMouseMove;a&&a(e)},t.handleMouseUp=function(e){var a=this.props.onMouseUp;document.removeEventListener("mousemove",this.handleMouseMove,!0),document.removeEventListener("mouseup",this.handleMouseUp,!0),document.removeEventListener("touchmove",this.handleMouseMove,!0),document.removeEventListener("touchend",this.handleMouseUp,!0),this.setState({active:!1}),this.props.sliderInactive&&this.props.sliderInactive(e),a&&a(e)},t.handleFocus=function(a){document.addEventListener("keydown",this.handleKeyPress,!0),this.props.onFocus&&this.props.onFocus(a)},t.handleBlur=function(a){document.removeEventListener("keydown",this.handleKeyPress,!0),this.props.onBlur&&this.props.onBlur(a)},t.handleClick=function(e){e.preventDefault(),this.props.onClick&&this.props.onClick(e)},t.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),e.stopPropagation(),this.stepBack()):(38===e.which||39===e.which)&&(e.preventDefault(),e.stopPropagation(),this.stepForward())},t.stepForward=function(){this.props.stepForward&&this.props.stepForward()},t.stepBack=function(){this.props.stepBack&&this.props.stepBack()},t.calculateDistance=function(e){var a=n.findDOMNode(this),t=T(a,e);return this.props.vertical?t.y:t.x},t.renderChildren=function(){var e=this.getProgress(),a=(100*e).toFixed(2)+"%";return x.Children.map(this.props.children,function(t){return x.cloneElement(t,{progress:e,percentage:a})})},t.render=function(){var e=this.props,a=e.vertical,t=e.label,n=e.valuenow,o=e.valuetext;return x.createElement("div",{className:K(this.props.className,{"video-react-slider-vertical":a,"video-react-slider-horizontal":!a,"video-react-sliding":this.state.active},"video-react-slider"),tabIndex:"0",role:"slider",onMouseDown:this.handleMouseDown,onTouchStart:this.handleMouseDown,onFocus:this.handleFocus,onBlur:this.handleBlur,onClick:this.handleClick,"aria-label":t||"","aria-valuenow":n||"","aria-valuetext":o||"","aria-valuemin":0,"aria-valuemax":100},this.renderChildren())},a}(a.Component);pe.propTypes=ce,pe.displayName="Slider";var ue={currentTime:G.number,duration:G.number,percentage:G.string,className:G.string};S.propTypes=ue,S.displayName="PlayProgressBar";var he={duration:G.number,buffered:G.object,className:G.string};A.propTypes=he,A.displayName="LoadProgressBar",D.propTypes={duration:G.number,mouseTime:G.object,className:G.string},D.displayName="MouseTimeDisplay";var me={player:G.object,mouseTime:G.object,actions:G.object,className:G.string},ve=function(e){function a(a,t){var n;return n=e.call(this,a,t)||this,n.getPercent=n.getPercent.bind(s(s(n))),n.getNewTime=n.getNewTime.bind(s(s(n))),n.stepForward=n.stepForward.bind(s(s(n))),n.stepBack=n.stepBack.bind(s(s(n))),n.handleMouseDown=n.handleMouseDown.bind(s(s(n))),n.handleMouseMove=n.handleMouseMove.bind(s(s(n))),n.handleMouseUp=n.handleMouseUp.bind(s(s(n))),n}d(a,e);var t=a.prototype;return t.componentDidMount=function(){},t.componentDidUpdate=function(){},t.getPercent=function(){var e=this.props.player,a=e.currentTime,t=e.seekingTime,n=e.duration,o=(t||a)/n;return 1<=o?1:o},t.getNewTime=function(e){var a=this.props.player.duration,t=this.slider.calculateDistance(e),n=t*a;return n===a?n-.1:n},t.handleMouseDown=function(){},t.handleMouseUp=function(e){var a=this.props.actions,t=this.getNewTime(e);a.seek(t),a.handleEndSeeking(t)},t.handleMouseMove=function(e){var a=this.props.actions,t=this.getNewTime(e);a.handleSeekingTime(t)},t.stepForward=function(){var e=this.props.actions;e.forward(5)},t.stepBack=function(){var e=this.props.actions;e.replay(5)},t.render=function(){var e=this,a=this.props,t=a.player,n=t.currentTime,o=t.seekingTime,r=t.duration,l=t.buffered,d=a.mouseTime,i=o||n;return x.createElement(pe,{ref:function(a){e.slider=a},label:"video progress bar",className:K("video-react-progress-holder",this.props.className),valuenow:(100*this.getPercent()).toFixed(2),valuetext:E(i,r),onMouseDown:this.handleMouseDown,onMouseMove:this.handleMouseMove,onMouseUp:this.handleMouseUp,getPercent:this.getPercent,stepForward:this.stepForward,stepBack:this.stepBack},x.createElement(A,{buffered:l,currentTime:i,duration:r}),x.createElement(D,{duration:r,mouseTime:d}),x.createElement(S,{currentTime:i,duration:r}))},a}(a.Component);ve.propTypes=me,ve.displayName="SeekBar";var ye={player:G.object,className:G.string},ge=function(e){function a(a,t){var n;return n=e.call(this,a,t)||this,n.state={mouseTime:{time:null,position:0}},n.handleMouseMoveThrottle=n.handleMouseMove.bind(s(s(n))),n}d(a,e);var t=a.prototype;return t.handleMouseMove=function(e){if(e.pageX){var a=this.props.player.duration,t=n.findDOMNode(this.seekBar),o=T(t,e).x*a,r=e.pageX-f(t).left;this.setState({mouseTime:{time:o,position:r}})}},t.render=function(){var e=this,a=this.props.className;return x.createElement("div",{onMouseMove:this.handleMouseMoveThrottle,className:K("video-react-progress-control video-react-control",a)},x.createElement(ve,l({mouseTime:this.state.mouseTime,ref:function(a){e.seekBar=a}},this.props)))},a}(a.Component);ge.propTypes=ye,ge.displayName="ProgressControl";var Ee={actions:G.object,player:G.object,className:G.string},be=function(e){function a(a,t){var n;return n=e.call(this,a,t)||this,n.handleClick=n.handleClick.bind(s(s(n))),n}d(a,e);var t=a.prototype;return t.handleClick=function(){var e=this.props,a=e.actions,t=e.player;t.paused?a.play():a.pause()},t.render=function(){var e=this,a=this.props,t=a.player,n=a.className,o=t.paused?"Play":"Pause";return x.createElement("button",{ref:function(a){e.button=a},className:K(n,{"video-react-play-control":!0,"video-react-control":!0,"video-react-button":!0,"video-react-paused":t.paused,"video-react-playing":!t.paused}),type:"button",tabIndex:"0",onClick:this.handleClick},x.createElement("span",{className:"video-react-control-text"},o))},a}(a.Component);be.propTypes=Ee,be.displayName="PlayToggle";var Ce={actions:G.object,className:G.string,seconds:G.oneOf([5,10,30])},ke={seconds:10},Pe=function(e){var t=function(a){function t(e,t){var n;return n=a.call(this,e,t)||this,n.handleClick=n.handleClick.bind(s(s(n))),n}d(t,a);var n=t.prototype;return n.handleClick=function(){var a=this.props,t=a.actions,n=a.seconds;"forward"===e?t.forward(n):t.replay(n)},n.render=function(){var a=this,t=this.props,n=t.seconds,o=t.className,r=["video-react-control","video-react-button","video-react-icon"];return r.push("video-react-icon-"+e+"-"+n,"video-react-"+e+"-control"),o&&r.push(o),x.createElement("button",{ref:function(e){a.button=e},className:r.join(" "),type:"button",onClick:this.handleClick},x.createElement("span",{className:"video-react-control-text"},e+" "+n+" seconds"))},t}(a.Component);return t.propTypes=Ce,t.defaultProps=ke,t},fe=Pe("forward");fe.displayName="ForwardControl";var Te=Pe("replay");Te.displayName="ReplayControl";var Ne={actions:G.object,player:G.object,className:G.string},Se=function(e){function a(a,t){var n;return n=e.call(this,a,t)||this,n.handleClick=n.handleClick.bind(s(s(n))),n}d(a,e);var t=a.prototype;return t.handleClick=function(){var e=this.props,a=e.player,t=e.actions;t.toggleFullscreen(a)},t.render=function(){var e=this,a=this.props,t=a.player,n=a.className;return x.createElement("button",{className:K(n,{"video-react-icon-fullscreen-exit":t.isFullscreen,"video-react-icon-fullscreen":!t.isFullscreen},"video-react-fullscreen-control video-react-control video-react-button video-react-icon"),ref:function(a){e.button=a},type:"button",tabIndex:"0",onClick:this.handleClick},x.createElement("span",{className:"video-react-control-text"},"Non-Fullscreen"))},a}(a.Component);Se.propTypes=Ne,Se.displayName="FullscreenToggle";var Ae={player:G.object,className:G.string};M.propTypes=Ae,M.displayName="RemainingTimeDisplay";var De={player:G.object,className:G.string};R.propTypes=De,R.displayName="CurrentTimeDisplay";var Me={player:G.object,className:G.string};w.propTypes=Me,w.displayName="DurationDisplay";var Re={separator:G.string,className:G.string};L.propTypes=Re,L.displayName="TimeDivider";var we={tagName:G.string,onClick:G.func.isRequired,onFocus:G.func,onBlur:G.func,className:G.string},Le=function(e){function a(a,t){var n;return n=e.call(this,a,t)||this,n.handleClick=n.handleClick.bind(s(s(n))),n.handleFocus=n.handleFocus.bind(s(s(n))),n.handleBlur=n.handleBlur.bind(s(s(n))),n.handleKeypress=n.handleKeypress.bind(s(s(n))),n}d(a,e);var t=a.prototype;return t.handleKeypress=function(e){(32===e.which||13===e.which)&&(e.preventDefault(),this.handleClick(e))},t.handleClick=function(e){var a=this.props.onClick;a(e)},t.handleFocus=function(a){document.addEventListener("keydown",this.handleKeypress),this.props.onFocus&&this.props.onFocus(a)},t.handleBlur=function(a){document.removeEventListener("keydown",this.handleKeypress),this.props.onBlur&&this.props.onBlur(a)},t.render=function(){var e=this.props.tagName,a=l({},this.props);return delete a.tagName,delete a.className,x.createElement(e,l({className:K(this.props.className),role:"button",tabIndex:"0",onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur},a))},a}(a.Component);Le.propTypes=we,Le.defaultProps={tagName:"div"},Le.displayName="ClickableComponent";var Fe={player:G.object,children:G.any},Ie=function(e){function a(a,t){var n;return n=e.call(this,a,t)||this,n.handleClick=n.handleClick.bind(s(s(n))),n}d(a,e);var t=a.prototype;return t.handleClick=function(e){e.preventDefault()},t.render=function(){var e=this.props.children;return x.createElement("div",{className:"video-react-menu",onClick:this.handleClick},x.createElement("div",{className:"video-react-menu-content"},e))},a}(a.Component);Ie.propTypes=Fe,Ie.displayName="Popup";var xe={inline:G.bool,onClick:G.func.isRequired,onFocus:G.func,onBlur:G.func,className:G.string};F.propTypes=xe,F.defaultProps={inline:!0},F.displayName="PopupButton";var Be={percentage:G.string,vertical:G.bool,className:G.string};I.propTypes=Be,I.defaultProps={percentage:"100%",vertical:!1},I.displayName="VolumeLevel";var Oe={actions:G.object,player:G.object,className:G.string,onFocus:G.func,onBlur:G.func},_e=function(e){function a(a,t){var n;return n=e.call(this,a,t)||this,n.state={percentage:"0%"},n.handleMouseMove=n.handleMouseMove.bind(s(s(n))),n.handlePercentageChange=n.handlePercentageChange.bind(s(s(n))),n.checkMuted=n.checkMuted.bind(s(s(n))),n.getPercent=n.getPercent.bind(s(s(n))),n.stepForward=n.stepForward.bind(s(s(n))),n.stepBack=n.stepBack.bind(s(s(n))),n.handleFocus=n.handleFocus.bind(s(s(n))),n.handleBlur=n.handleBlur.bind(s(s(n))),n.handleClick=n.handleClick.bind(s(s(n))),n}d(a,e);var t=a.prototype;return t.componentDidMount=function(){},t.getPercent=function(){var e=this.props.player;return e.muted?0:e.volume},t.checkMuted=function(){var e=this.props,a=e.player,t=e.actions;a.muted&&t.mute(!1)},t.handleMouseMove=function(e){var a=this.props.actions;this.checkMuted();var t=this.slider.calculateDistance(e);a.changeVolume(t)},t.stepForward=function(){var e=this.props,a=e.player,t=e.actions;this.checkMuted(),t.changeVolume(a.volume+.1)},t.stepBack=function(){var e=this.props,a=e.player,t=e.actions;this.checkMuted(),t.changeVolume(a.volume-.1)},t.handleFocus=function(a){this.props.onFocus&&this.props.onFocus(a)},t.handleBlur=function(a){this.props.onBlur&&this.props.onBlur(a)},t.handlePercentageChange=function(e){e!==this.state.percentage&&this.setState({percentage:e})},t.handleClick=function(e){e.stopPropagation()},t.render=function(){var e=this,a=this.props,t=a.player,n=a.className,o=(100*t.volume).toFixed(2);return x.createElement(pe,l({ref:function(a){e.slider=a},label:"volume level",valuenow:o,valuetext:o+"%",onMouseMove:this.handleMouseMove,onFocus:this.handleFocus,onBlur:this.handleBlur,onClick:this.handleClick,sliderActive:this.handleFocus,sliderInactive:this.handleBlur,getPercent:this.getPercent,onPercentageChange:this.handlePercentageChange,stepForward:this.stepForward,stepBack:this.stepBack},this.props,{className:K(n,"video-react-volume-bar video-react-slider-bar")}),x.createElement(I,this.props))},a}(a.Component);_e.propTypes=Oe,_e.displayName="VolumeBar";var Ue={player:G.object,actions:G.object,vertical:G.bool,className:G.string,alwaysShowVolume:G.bool},He=function(e){function a(a,t){var n;return n=e.call(this,a,t)||this,n.state={active:!1},n.handleClick=n.handleClick.bind(s(s(n))),n.handleFocus=n.handleFocus.bind(s(s(n))),n.handleBlur=n.handleBlur.bind(s(s(n))),n}d(a,e);var t=a.prototype;return t.handleClick=function(){var e=this.props,a=e.player,t=e.actions;t.mute(!a.muted)},t.handleFocus=function(){this.setState({active:!0})},t.handleBlur=function(){this.setState({active:!1})},t.render=function(){var e=this.props,a=e.vertical,t=e.player,n=e.className,o=this.volumeLevel;return x.createElement(F,{className:K(n,{"video-react-volume-menu-button-vertical":a,"video-react-volume-menu-button-horizontal":!a,"video-react-vol-muted":t.muted,"video-react-vol-0":0===o&&!t.muted,"video-react-vol-1":1===o,"video-react-vol-2":2===o,"video-react-vol-3":3===o,"video-react-slider-active":this.props.alwaysShowVolume||this.state.active,"video-react-lock-showing":this.props.alwaysShowVolume||this.state.active},"video-react-volume-menu-button"),onClick:this.handleClick,inline:!a},x.createElement(_e,l({onFocus:this.handleFocus,onBlur:this.handleBlur},this.props)))},r(a,[{key:"volumeLevel",get:function(){var e=this.props.player,a=e.volume,t=e.muted,n=3;return 0===a||t?n=0:.33>a?n=1:.67>a&&(n=2),n}}]),a}(a.Component);He.propTypes=Ue,He.defaultProps={vertical:!1},He.displayName="VolumeMenuButton";var Ge={children:G.any},Ke=function(e){function a(a,t){var n;return n=e.call(this,a,t)||this,n.handleClick=n.handleClick.bind(s(s(n))),n}d(a,e);var t=a.prototype;return t.handleClick=function(e){e.preventDefault()},t.render=function(){return x.createElement("div",{className:"video-react-menu video-react-lock-showing",role:"presentation",onClick:this.handleClick},x.createElement("ul",{className:"video-react-menu-content"},this.props.children))},a}(a.Component);Ke.propTypes=Ge,Ke.displayName="Menu";var je={item:G.object,index:G.number,activateIndex:G.number,onSelectItem:G.func},Ve=function(e){function a(a,t){var n;return n=e.call(this,a,t)||this,n.handleClick=n.handleClick.bind(s(s(n))),n}d(a,e);var t=a.prototype;return t.handleClick=function(){var e=this.props,a=e.index,t=e.onSelectItem;t(a)},t.render=function(){var e=this.props,a=e.item,t=e.index,n=e.activateIndex;return x.createElement("li",{className:K({"video-react-menu-item":!0,"video-react-selected":t===n}),role:"menuitem",onClick:this.handleClick},a.label,x.createElement("span",{className:"video-react-control-text"}))},a}(a.Component);Ve.propTypes=je,Ve.displayName="MenuItem";var ze={inline:G.bool,items:G.array,className:G.string,onSelectItem:G.func,children:G.any,selectedIndex:G.number},We=function(e){function a(a,t){var n;return n=e.call(this,a,t)||this,n.state={active:!1,activateIndex:a.selectedIndex||0},n.commitSelection=n.commitSelection.bind(s(s(n))),n.activateMenuItem=n.activateMenuItem.bind(s(s(n))),n.handleClick=n.handleClick.bind(s(s(n))),n.renderMenu=n.renderMenu.bind(s(s(n))),n.handleFocus=n.handleFocus.bind(s(s(n))),n.handleBlur=n.handleBlur.bind(s(s(n))),n.handleUpArrow=n.handleUpArrow.bind(s(s(n))),n.handleDownArrow=n.handleDownArrow.bind(s(s(n))),n.handleEscape=n.handleEscape.bind(s(s(n))),n.handleReturn=n.handleReturn.bind(s(s(n))),n.handleTab=n.handleTab.bind(s(s(n))),n.handleKeyPress=n.handleKeyPress.bind(s(s(n))),n.handleSelectItem=n.handleSelectItem.bind(s(s(n))),n.handleIndexChange=n.handleIndexChange.bind(s(s(n))),n}d(a,e);var t=a.prototype;return t.componentDidUpdate=function(e){e.selectedIndex!==this.props.selectedIndex&&this.activateMenuItem(this.props.selectedIndex)},t.commitSelection=function(e){this.setState({activateIndex:e,active:!1}),this.handleIndexChange(e)},t.activateMenuItem=function(e){this.setState({activateIndex:e}),this.handleIndexChange(e)},t.handleIndexChange=function(e){var a=this.props.onSelectItem;a(e)},t.handleClick=function(){this.setState(function(e){return{active:!e.active}})},t.handleFocus=function(){document.addEventListener("keydown",this.handleKeyPress)},t.handleBlur=function(){this.setState({active:!1}),document.removeEventListener("keydown",this.handleKeyPress)},t.handleUpArrow=function(a){var e=this.props.items;if(this.state.active){a.preventDefault();var t=this.state.activateIndex-1;0>t&&(t=e.length?e.length-1:0),this.activateMenuItem(t)}},t.handleDownArrow=function(a){var e=this.props.items;if(this.state.active){a.preventDefault();var t=this.state.activateIndex+1;t>=e.length&&(t=0),this.activateMenuItem(t)}},t.handleTab=function(a){this.state.active&&(a.preventDefault(),this.commitSelection(this.state.activateIndex))},t.handleReturn=function(a){a.preventDefault(),this.state.active?this.commitSelection(this.state.activateIndex):this.setState({active:!0})},t.handleEscape=function(){this.setState({active:!1,activateIndex:0})},t.handleKeyPress=function(e){27===e.which?this.handleEscape(e):9===e.which?this.handleTab(e):13===e.which?this.handleReturn(e):38===e.which?this.handleUpArrow(e):40===e.which&&this.handleDownArrow(e)},t.handleSelectItem=function(e){this.commitSelection(e)},t.renderMenu=function(){var e=this;if(!this.state.active)return null;var a=this.props.items;return x.createElement(Ke,null,a.map(function(a,t){return x.createElement(Ve,{item:a,index:t,onSelectItem:e.handleSelectItem,activateIndex:e.state.activateIndex,key:"item-"+t++})}))},t.render=function(){var e=this,a=this.props,t=a.inline,n=a.className;return x.createElement(Le,{className:K(n,{"video-react-menu-button-inline":!!t,"video-react-menu-button-popup":!t,"video-react-menu-button-active":this.state.active},"video-react-control video-react-button video-react-menu-button"),role:"button",tabIndex:"0",ref:function(a){e.menuButton=a},onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur},this.props.children,this.renderMenu())},a}(a.Component);We.propTypes=ze,We.displayName="MenuButton";var Ye={player:G.object,actions:G.object,rates:G.array,className:G.string},qe=function(e){function a(a,t){var n;return n=e.call(this,a,t)||this,n.handleSelectItem=n.handleSelectItem.bind(s(s(n))),n}d(a,e);var t=a.prototype;return t.handleSelectItem=function(e){var a=this.props,t=a.rates,n=a.actions;0<=e&&e<t.length&&n.changeRate(t[e])},t.render=function(){var e=this.props,a=e.rates,t=e.player,n=a.map(function(e){return{label:e+"x",value:e}}),o=a.indexOf(t.playbackRate)||0;return x.createElement(We,{className:K("video-react-playback-rate",this.props.className),onSelectItem:this.handleSelectItem,items:n,selectedIndex:o},x.createElement("span",{className:"video-react-control-text"},"Playback Rate"),x.createElement("div",{className:"video-react-playback-rate-value"},t.playbackRate.toFixed(2)+"x"))},a}(a.Component);qe.propTypes=Ye,qe.defaultProps={rates:[2,1.5,1.25,1,.5,.25]},qe.displayName="PlaybackRateMenuButton";var Xe={children:G.any,autoHide:G.bool,autoHideTime:G.number,disableDefaultControls:G.bool,disableCompletely:G.bool,className:G.string},Ze=function(e){function a(a){var t;return t=e.call(this,a)||this,t.getDefaultChildren=t.getDefaultChildren.bind(s(s(t))),t.getFullChildren=t.getFullChildren.bind(s(s(t))),t}d(a,e);var t=a.prototype;return t.getDefaultChildren=function(){return[x.createElement(be,{key:"play-toggle",order:1}),x.createElement(He,{key:"volume-menu-button",order:4}),x.createElement(R,{key:"current-time-display",order:5.1}),x.createElement(L,{key:"time-divider",order:5.2}),x.createElement(w,{key:"duration-display",order:5.3}),x.createElement(ge,{key:"progress-control",order:6}),x.createElement(Se,{key:"fullscreen-toggle",order:8})]},t.getFullChildren=function(){return[x.createElement(be,{key:"play-toggle",order:1}),x.createElement(Te,{key:"replay-control",order:2}),x.createElement(fe,{key:"forward-control",order:3}),x.createElement(He,{key:"volume-menu-button",order:4}),x.createElement(R,{key:"current-time-display",order:5}),x.createElement(L,{key:"time-divider",order:6}),x.createElement(w,{key:"duration-display",order:7}),x.createElement(ge,{key:"progress-control",order:8}),x.createElement(M,{key:"remaining-time-display",order:9}),x.createElement(qe,{rates:[1,1.25,1.5,2],key:"playback-rate",order:10}),x.createElement(Se,{key:"fullscreen-toggle",order:11})]},t.getChildren=function(){var e=x.Children.toArray(this.props.children),a=this.props.disableDefaultControls?[]:this.getDefaultChildren(),t=this.props,n=t.className,o=i(t,["className"]);return C(a,e,o)},t.render=function(){var e=this.props,a=e.autoHide,t=e.className,n=e.disableCompletely,o=this.getChildren();return n?null:x.createElement("div",{className:K("video-react-control-bar",{"video-react-control-bar-auto-hide":a},t)},o)},a}(a.Component);Ze.propTypes=Xe,Ze.defaultProps={autoHide:!0,disableCompletely:!1},Ze.displayName="ControlBar";var Qe="undefined"!=typeof window&&window.navigator?window.navigator.userAgent:"",Je=/iPad/i.test(Qe),$e=/iPhone/i.test(Qe)&&!Je,ea=/iPod/i.test(Qe),aa={children:G.any,width:G.oneOfType([G.string,G.number]),height:G.oneOfType([G.string,G.number]),fluid:G.bool,muted:G.bool,playsInline:G.bool,aspectRatio:G.string,className:G.string,videoId:G.string,startTime:G.number,loop:G.bool,autoPlay:G.bool,src:G.string,poster:G.string,preload:G.oneOf(["auto","metadata","none"]),onLoadStart:G.func,onWaiting:G.func,onCanPlay:G.func,onCanPlayThrough:G.func,onPlaying:G.func,onEnded:G.func,onSeeking:G.func,onSeeked:G.func,onPlay:G.func,onPause:G.func,onProgress:G.func,onDurationChange:G.func,onError:G.func,onSuspend:G.func,onAbort:G.func,onEmptied:G.func,onStalled:G.func,onLoadedMetadata:G.func,onLoadedData:G.func,onTimeUpdate:G.func,onRateChange:G.func,onVolumeChange:G.func,store:G.object},ta=function(e){function a(a){var t;return t=e.call(this,a)||this,t.controlsHideTimer=null,t.video=null,t.manager=new X(a.store),t.actions=t.manager.getActions(),t.manager.subscribeToPlayerStateChange(t.handleStateChange.bind(s(s(t)))),t.getStyle=t.getStyle.bind(s(s(t))),t.handleResize=t.handleResize.bind(s(s(t))),t.getChildren=t.getChildren.bind(s(s(t))),t.handleMouseMove=P(t.handleMouseMove.bind(s(s(t))),250),t.handleMouseDown=t.handleMouseDown.bind(s(s(t))),t.startControlsTimer=t.startControlsTimer.bind(s(s(t))),t.handleFullScreenChange=t.handleFullScreenChange.bind(s(s(t))),t.handleKeyDown=t.handleKeyDown.bind(s(s(t))),t.handleFocus=t.handleFocus.bind(s(s(t))),t.handleBlur=t.handleBlur.bind(s(s(t))),t}d(a,e);var t=a.prototype;return t.componentDidMount=function(){this.handleResize(),window.addEventListener("resize",this.handleResize),z.addEventListener(this.handleFullScreenChange)},t.componentWillUnmount=function(){window.removeEventListener("resize",this.handleResize),z.removeEventListener(this.handleFullScreenChange),this.controlsHideTimer&&window.clearTimeout(this.controlsHideTimer)},t.getDefaultChildren=function(e){var a=this;return[x.createElement(re,{ref:function(e){a.video=e,a.manager.video=a.video},key:"video",order:0},e),x.createElement(g,{key:"poster-image",order:1}),x.createElement(y,{key:"loading-spinner",order:2}),x.createElement(de,{key:"bezel",order:3}),x.createElement(Q,{key:"big-play-button",order:4}),x.createElement(Ze,{key:"control-bar",order:5}),x.createElement(se,{key:"shortcut",order:99})]},t.getChildren=function(e){var a=e.className,t=e.children,n=i(e,["className","children"]),o=x.Children.toArray(this.props.children).filter(function(a){return!b(a)}),r=this.getDefaultChildren(t);return C(r,o,n)},t.setWidthOrHeight=function(e,a,t){var n,o;"string"==typeof t?"auto"===t?o="auto":t.match(/\d+%/)&&(o=t):"number"==typeof t&&(o=t+"px"),Object.assign(e,(n={},n[a]=o,n))},t.getStyle=function(){var e,a,t,n=this.props,o=n.fluid,r=n.aspectRatio,l=n.height,d=n.width,i=this.manager.getState(),s=i.player,c={};t=void 0!==r&&"auto"!==r?r:s.videoWidth?s.videoWidth+":"+s.videoHeight:"16:9";var p=t.split(":"),u=p[1]/p[0];return e=void 0===d?void 0===l?s.videoWidth||400:l/u:d,a=void 0===l?e*u:l,o?c.paddingTop=100*u+"%":(this.setWidthOrHeight(c,"width",e),this.setWidthOrHeight(c,"height",a)),c},t.getState=function(){return this.manager.getState()},t.play=function(){this.video.play()},t.pause=function(){this.video.pause()},t.load=function(){this.video.load()},t.addTextTrack=function(){var e;(e=this.video).addTextTrack.apply(e,arguments)},t.canPlayType=function(){var e;(e=this.video).canPlayType.apply(e,arguments)},t.seek=function(e){this.video.seek(e)},t.forward=function(e){this.video.forward(e)},t.replay=function(e){this.video.replay(e)},t.toggleFullscreen=function(){this.video.toggleFullscreen()},t.subscribeToStateChange=function(e){return this.manager.subscribeToPlayerStateChange(e)},t.handleResize=function(){},t.handleFullScreenChange=function(){this.actions.handleFullscreenChange(z.isFullscreen)},t.handleMouseDown=function(){this.startControlsTimer()},t.handleMouseMove=function(){this.startControlsTimer()},t.handleKeyDown=function(){this.startControlsTimer()},t.startControlsTimer=function(){var e=this,a=3e3;x.Children.forEach(this.props.children,function(e){if(x.isValidElement(e)&&e.type===Ze){var t=e.props.autoHideTime;"number"==typeof t&&(a=t)}}),this.actions.userActivate(!0),clearTimeout(this.controlsHideTimer),this.controlsHideTimer=setTimeout(function(){e.actions.userActivate(!1)},a)},t.handleStateChange=function(e,a){e.isFullscreen!==a.isFullscreen&&this.handleResize(),this.forceUpdate()},t.handleFocus=function(){this.actions.activate(!0)},t.handleBlur=function(){this.actions.activate(!1)},t.render=function(){var e=this,a=this.props.fluid,t=this.manager.getState(),n=t.player,o=n.paused,r=n.hasStarted,d=n.waiting,i=n.seeking,s=n.isFullscreen,c=n.userActivity,p=l({},this.props,{player:n,actions:this.actions,manager:this.manager,store:this.manager.store,video:this.video?this.video.video:null}),u=this.getChildren(p);return x.createElement("div",{className:K({"video-react-controls-enabled":!0,"video-react-has-started":r,"video-react-paused":o,"video-react-playing":!o,"video-react-waiting":d,"video-react-seeking":i,"video-react-fluid":a,"video-react-fullscreen":s,"video-react-user-inactive":!c,"video-react-user-active":c,"video-react-workinghover":!($e||Je||ea)},"video-react",this.props.className),style:this.getStyle(),ref:function(a){e.manager.rootElement=a},role:"region",onTouchStart:this.handleMouseDown,onMouseDown:this.handleMouseDown,onMouseMove:this.handleMouseMove,onKeyDown:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,tabIndex:"-1"},u)},r(a,[{key:"playbackRate",get:function(){return this.video.playbackRate},set:function(e){this.video.playbackRate=e}},{key:"muted",get:function(){return this.video.muted},set:function(e){this.video.muted=e}},{key:"volume",get:function(){return this.video.volume},set:function(e){this.video.volume=e}},{key:"videoWidth",get:function(){return this.video.videoWidth}},{key:"videoHeight",get:function(){return this.video.videoHeight}}]),a}(a.Component);ta.contextTypes={store:G.object},ta.propTypes=aa,ta.defaultProps={fluid:!0,muted:!1,playsInline:!1,preload:"auto",aspectRatio:"auto"},ta.displayName="Player";var na=function(e){function a(a,t){var n;return n=e.call(this,a,t)||this,k("PlaybackRate","PlaybackRateMenuButton"),n}d(a,e);var t=a.prototype;return t.render=function(){return x.createElement(qe,this.props)},a}(a.Component);na.displayName="PlaybackRate",e.Player=ta,e.Video=re,e.BigPlayButton=Q,e.LoadingSpinner=y,e.PosterImage=g,e.Bezel=de,e.Shortcut=se,e.ControlBar=Ze,e.PlayToggle=be,e.ForwardControl=fe,e.ReplayControl=Te,e.FullscreenToggle=Se,e.ProgressControl=ge,e.SeekBar=ve,e.Slider=pe,e.PlayProgressBar=S,e.LoadProgressBar=A,e.MouseTimeDisplay=D,e.RemainingTimeDisplay=M,e.CurrentTimeDisplay=R,e.DurationDisplay=w,e.TimeDivider=L,e.VolumeMenuButton=He,e.PlaybackRateMenuButton=qe,e.PlaybackRate=na,e.MenuButton=We,e.playerActions=W,e.videoActions=j,e.playerReducer=h,e.operationReducer=m,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=video-react.min.js.map

@@ -653,3 +653,4 @@ "use strict";

onRateChange: this.handleRateChange,
onVolumeChange: this.handleVolumeChange
onVolumeChange: this.handleVolumeChange,
tabIndex: "-1"
}, this.renderChildren());

@@ -656,0 +657,0 @@ }

@@ -160,2 +160,8 @@ "use strict";

});
Object.defineProperty(exports, "MenuButton", {
enumerable: true,
get: function get() {
return _MenuButton.default;
}
});
Object.defineProperty(exports, "playerReducer", {

@@ -225,2 +231,4 @@ enumerable: true,

var _MenuButton = _interopRequireDefault(require("./components/menu/MenuButton"));
var playerActions = _interopRequireWildcard(require("./actions/player"));

@@ -227,0 +235,0 @@

{
"name": "video-react",
"version": "0.13.6",
"version": "0.13.7",
"description": "Video-React is a web video player built from the ground up for an HTML5 world using React library.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -67,20 +67,6 @@ # video-react

## Releasing
## Contribution
### Create Release Branch
Interested in making contribution to this project? Want to report a bug? Please read the [contribution guide](./CONTRIBUTION.md).
To create a release branch and changelog, run the following command, optionally with a semantic release type (major, minor, patch) (if not provided, it will default to semver (it's best to let it default)):
```
./scripts/release <release-type>
```
Verify changelog in branch. Create a PR if everything looks good. Merge when tests are green.
### Tagging and Publishing
Once the release branch is merged, checkout master and run:
./scripts/publish
## Inspiration & Credits

@@ -87,0 +73,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc