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

react-player

Package Overview
Dependencies
Maintainers
1
Versions
162
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-player - npm Package Compare versions

Comparing version 0.12.0 to 0.12.1

7

CHANGELOG.md

@@ -7,2 +7,9 @@ # Change Log

#### [v0.12.1](https://github.com/CookPete/react-player/compare/v0.12.0...v0.12.1)
> 19 November 2016
* Add fullscreen example to demo [`563252b`](https://github.com/CookPete/react-player/commit/563252be94cafd5d973271f56c91fda4b1f87e4f)
* Fullscreen youtube player fix [`83e8e60`](https://github.com/CookPete/react-player/commit/83e8e60a018e85bb27aa907360142f0a63761d54)
#### [v0.12.0](https://github.com/CookPete/react-player/compare/v0.11.0...v0.12.0)

@@ -9,0 +16,0 @@ > 10 October 2016

2

dist/ReactPlayer.js
var ReactPlayer=function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(1),f=r(c),p=n(5),d=n(15),h=r(d),y=n(11),v=r(y),m=n(14),b=r(m),g=n(3),_=r(g),w=n(12),P=r(w),O=n(13),T=r(O),E=function(t){function e(){var t,n,r,u;i(this,e);for(var l=arguments.length,c=Array(l),p=0;p<l;p++)c[p]=arguments[p];return n=r=a(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(c))),r.seekTo=function(t){r.player&&r.player.seekTo(t)},r.progress=function(){if(r.props.url&&r.player){var t=r.player.getFractionLoaded()||0,e=r.player.getFractionPlayed()||0,n={};t!==r.prevLoaded&&(n.loaded=t),e!==r.prevPlayed&&r.props.playing&&(n.played=e),(n.loaded||n.played)&&r.props.onProgress(n),r.prevLoaded=t,r.prevPlayed=e}r.progressTimeout=setTimeout(r.progress,r.props.progressFrequency)},r.ref=function(t){r.player=t},r.renderPlayer=function(t){var e=t.canPlay(r.props.url),n=r.props,i=n.youtubeConfig,a=n.soundcloudConfig,u=n.vimeoConfig,l=n.fileConfig,c=o(n,["youtubeConfig","soundcloudConfig","vimeoConfig","fileConfig"]),p=e?s({},c,{ref:r.ref}):{};return f["default"].createElement(t,s({key:t.displayName,youtubeConfig:i,soundcloudConfig:a,vimeoConfig:u,fileConfig:l},p))},u=n,a(r,u)}return u(e,t),l(e,[{key:"componentDidMount",value:function(){this.progress()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.progressTimeout)}},{key:"shouldComponentUpdate",value:function(t){return this.props.url!==t.url||this.props.playing!==t.playing||this.props.volume!==t.volume||this.props.height!==t.height||this.props.width!==t.width||this.props.hidden!==t.hidden}},{key:"renderPlayers",value:function(){var t=this.props,e=t.url,n=t.youtubeConfig,r=t.vimeoConfig,o=[];return h["default"].canPlay(e)?o.push(h["default"]):v["default"].canPlay(e)?o.push(v["default"]):b["default"].canPlay(e)?o.push(b["default"]):P["default"].canPlay(e)?o.push(P["default"]):T["default"].canPlay(e)?o.push(T["default"]):e&&o.push(_["default"]),!h["default"].canPlay(e)&&n.preload&&o.push(h["default"]),!b["default"].canPlay(e)&&r.preload&&o.push(b["default"]),o.map(this.renderPlayer)}},{key:"render",value:function(){var t=this.props,e=t.style,n=t.width,r=t.height,o=t.className,i=t.hidden,a=this.renderPlayers();return f["default"].createElement("div",{style:s({},e,{width:n,height:r}),className:o,hidden:i},a)}}]),e}(c.Component);E.displayName="ReactPlayer",E.propTypes=p.propTypes,E.defaultProps=p.defaultProps,e["default"]=E,t.exports=e["default"]},function(t,e){t.exports=React},function(t,e,n){var r;(function(t,o,i){(function(){"use strict";function a(t){return"function"==typeof t||"object"==typeof t&&null!==t}function u(t){return"function"==typeof t}function s(t){J=t}function l(t){tt=t}function c(){return function(){t.nextTick(y)}}function f(){return function(){z(y)}}function p(){var t=0,e=new rt(y),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function d(){var t=new MessageChannel;return t.port1.onmessage=y,function(){t.port2.postMessage(0)}}function h(){return function(){setTimeout(y,1)}}function y(){for(var t=0;t<Z;t+=2){var e=at[t],n=at[t+1];e(n),at[t]=void 0,at[t+1]=void 0}Z=0}function v(){try{var t=n(24);return z=t.runOnLoop||t.runOnContext,f()}catch(e){return h()}}function m(t,e){var n=this,r=new this.constructor(g);void 0===r[lt]&&U(r);var o=n._state;if(o){var i=arguments[o-1];tt(function(){I(o,r,i,n._result)})}else S(n,r,t,e);return r}function b(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(g);return k(n,t),n}function g(){}function _(){return new TypeError("You cannot resolve a promise with itself")}function w(){return new TypeError("A promises callback cannot return that same promise.")}function P(t){try{return t.then}catch(e){return dt.error=e,dt}}function O(t,e,n,r){try{t.call(e,n,r)}catch(o){return o}}function T(t,e,n){tt(function(t){var r=!1,o=O(n,e,function(n){r||(r=!0,e!==n?k(t,n):x(t,n))},function(e){r||(r=!0,A(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&o&&(r=!0,A(t,o))},t)}function E(t,e){e._state===ft?x(t,e._result):e._state===pt?A(t,e._result):S(e,void 0,function(e){k(t,e)},function(e){A(t,e)})}function j(t,e,n){e.constructor===t.constructor&&n===ut&&constructor.resolve===st?E(t,e):n===dt?A(t,dt.error):void 0===n?x(t,e):u(n)?T(t,e,n):x(t,e)}function k(t,e){t===e?A(t,_()):a(e)?j(t,e,P(e)):x(t,e)}function C(t){t._onerror&&t._onerror(t._result),R(t)}function x(t,e){t._state===ct&&(t._result=e,t._state=ft,0!==t._subscribers.length&&tt(R,t))}function A(t,e){t._state===ct&&(t._state=pt,t._result=e,tt(C,t))}function S(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+ft]=n,o[i+pt]=r,0===i&&t._state&&tt(R,t)}function R(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r,o,i=t._result,a=0;a<e.length;a+=3)r=e[a],o=e[a+n],r?I(n,r,o,i):o(i);t._subscribers.length=0}}function D(){this.error=null}function M(t,e){try{return t(e)}catch(n){return ht.error=n,ht}}function I(t,e,n,r){var o,i,a,s,l=u(n);if(l){if(o=M(n,r),o===ht?(s=!0,i=o.error,o=null):a=!0,e===o)return void A(e,w())}else o=r,a=!0;e._state!==ct||(l&&a?k(e,o):s?A(e,i):t===ft?x(e,o):t===pt&&A(e,o))}function L(t,e){try{e(function(e){k(t,e)},function(e){A(t,e)})}catch(n){A(t,n)}}function F(){return yt++}function U(t){t[lt]=yt++,t._state=void 0,t._result=void 0,t._subscribers=[]}function B(t){return new _t(this,t).promise}function N(t){var e=this;return new e(Q(t)?function(n,r){for(var o=t.length,i=0;i<o;i++)e.resolve(t[i]).then(n,r)}:function(t,e){e(new TypeError("You must pass an array to race."))})}function V(t){var e=this,n=new e(g);return A(n,t),n}function q(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function W(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function H(t){this[lt]=F(),this._result=this._state=void 0,this._subscribers=[],g!==t&&("function"!=typeof t&&q(),this instanceof H?L(this,t):W())}function Y(t,e){this._instanceConstructor=t,this.promise=new t(g),this.promise[lt]||U(this.promise),Q(e)?(this._input=e,this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?x(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&x(this.promise,this._result))):A(this.promise,$())}function $(){return new Error("Array Methods must be provided an Array")}function G(){var t;if("undefined"!=typeof o)t=o;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=t.Promise;n&&"[object Promise]"===Object.prototype.toString.call(n.resolve())&&!n.cast||(t.Promise=gt)}var K;K=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var z,J,X,Q=K,Z=0,tt=function(t,e){at[Z]=t,at[Z+1]=e,Z+=2,2===Z&&(J?J(y):X())},et="undefined"!=typeof window?window:void 0,nt=et||{},rt=nt.MutationObserver||nt.WebKitMutationObserver,ot="undefined"==typeof self&&"undefined"!=typeof t&&"[object process]"==={}.toString.call(t),it="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,at=new Array(1e3);X=ot?c():rt?p():it?d():void 0===et?v():h();var ut=m,st=b,lt=Math.random().toString(36).substring(16),ct=void 0,ft=1,pt=2,dt=new D,ht=new D,yt=0,vt=B,mt=N,bt=V,gt=H;H.all=vt,H.race=mt,H.resolve=st,H.reject=bt,H._setScheduler=s,H._setAsap=l,H._asap=tt,H.prototype={constructor:H,then:ut,"catch":function(t){return this.then(null,t)}};var _t=Y;Y.prototype._enumerate=function(){for(var t=this.length,e=this._input,n=0;this._state===ct&&n<t;n++)this._eachEntry(e[n],n)},Y.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===st){var o=P(t);if(o===ut&&t._state!==ct)this._settledAt(t._state,e,t._result);else if("function"!=typeof o)this._remaining--,this._result[e]=t;else if(n===gt){var i=new n(g);j(i,t,o),this._willSettleAt(i,e)}else this._willSettleAt(new n(function(e){e(t)}),e)}else this._willSettleAt(r(t),e)},Y.prototype._settledAt=function(t,e,n){var r=this.promise;r._state===ct&&(this._remaining--,t===pt?A(r,n):this._result[e]=n),0===this._remaining&&x(r,this._result)},Y.prototype._willSettleAt=function(t,e){var n=this;S(t,void 0,function(t){n._settledAt(ft,e,t)},function(t){n._settledAt(pt,e,t)})};var wt=G,Pt={Promise:gt,polyfill:wt};n(9).amd?(r=function(){return Pt}.call(e,n,e,i),!(void 0!==r&&(i.exports=r))):"undefined"!=typeof i&&i.exports?i.exports=Pt:"undefined"!=typeof this&&(this.ES6Promise=Pt),wt()}).call(this),i.exports=o.Promise}).call(e,n(8),function(){return this}(),n(10)(t))},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=function v(t,e,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,e);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:v(o,e,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},c=n(1),f=r(c),p=n(4),d=r(p),h=/\.(mp3|wav|m4a)($|\?)/i,y=function(t){function e(){var t,n,r,a;o(this,e);for(var u=arguments.length,s=Array(u),l=0;l<u;l++)s[l]=arguments[l];return n=r=i(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(s))),r.ref=function(t){r.player=t},a=n,i(r,a)}return a(e,t),s(e,[{key:"componentDidMount",value:function(){var t=this,n=this.props,r=n.onPause,o=n.onEnded,i=n.onError;this.player.addEventListener("canplay",this.onReady),this.player.addEventListener("play",this.onPlay),this.player.addEventListener("pause",function(){t.mounted&&r()}),this.player.addEventListener("ended",o),this.player.addEventListener("error",i),this.player.setAttribute("webkit-playsinline",""),l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"componentDidMount",this).call(this)}},{key:"componentWillUnmount",value:function(){var t=this.props,n=t.onPause,r=t.onEnded,o=t.onError;this.player.removeEventListener("canplay",this.onReady),this.player.removeEventListener("play",this.onPlay),this.player.removeEventListener("pause",n),this.player.removeEventListener("ended",r),this.player.removeEventListener("error",o),l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"componentWillUnmount",this).call(this)}},{key:"load",value:function(t){this.player.src=t}},{key:"play",value:function(){this.player.play()}},{key:"pause",value:function(){this.player.pause()}},{key:"stop",value:function(){this.player.removeAttribute("src")}},{key:"seekTo",value:function(t){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"seekTo",this).call(this,t),this.player.currentTime=this.getDuration()*t}},{key:"setVolume",value:function(t){this.player.volume=t}},{key:"getDuration",value:function(){return this.isReady?this.player.duration:null}},{key:"getFractionPlayed",value:function(){return this.isReady?this.player.currentTime/this.getDuration():null}},{key:"getFractionLoaded",value:function(){return this.isReady&&0!==this.player.buffered.length?this.player.buffered.end(0)/this.getDuration():null}},{key:"render",value:function(){var t=this.props,e=t.url,n=t.loop,r=t.controls,o=t.fileConfig,i=h.test(e)?"audio":"video",a={width:"100%",height:"100%",display:e?"block":"none"};return f["default"].createElement(i,u({ref:this.ref,style:a,preload:"auto",controls:r,loop:n},o.attributes))}}],[{key:"canPlay",value:function(t){return!0}}]),e}(d["default"]);y.displayName="FilePlayer",e["default"]=y,t.exports=e["default"]},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=n(1),s=n(5),l=5e3,c=function(t){function e(){var t,n,i,a;r(this,e);for(var u=arguments.length,s=Array(u),l=0;l<u;l++)s[l]=arguments[l];return n=i=o(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(s))),i.isReady=!1,i.startOnPlay=!0,i.durationOnPlay=!1,i.seekOnPlay=null,i.onPlay=function(){var t=i.props,e=t.volume,n=t.onStart,r=t.onPlay,o=t.onDuration;i.startOnPlay&&(i.setVolume(e),n(),i.startOnPlay=!1),r(),i.seekOnPlay&&(i.seekTo(i.seekOnPlay),i.seekOnPlay=null),i.durationOnPlay&&(o(i.getDuration()),i.durationOnPlay=!1)},i.onReady=function(){var t=i.props,e=t.onReady,n=t.playing,r=t.onDuration;i.isReady=!0,e(),(n||i.preloading)&&(i.preloading=!1,i.loadOnReady?(i.load(i.loadOnReady),i.loadOnReady=null):i.play());var o=i.getDuration();o?r(o):i.durationOnPlay=!0},a=n,o(i,a)}return i(e,t),a(e,[{key:"componentDidMount",value:function(){var t=this.props.url;this.mounted=!0,t&&this.load(t)}},{key:"componentWillUnmount",value:function(){this.stop(),this.mounted=!1}},{key:"componentWillReceiveProps",value:function(t){var e=this.props,n=e.url,r=e.playing,o=e.volume;n!==t.url&&t.url?(this.seekOnPlay=null,this.startOnPlay=!0,this.load(t.url)):n&&!t.url?(this.stop(),clearTimeout(this.updateTimeout)):!r&&t.playing?this.play():r&&!t.playing?this.pause():o!==t.volume&&this.setVolume(t.volume)}},{key:"shouldComponentUpdate",value:function(t){return this.props.url!==t.url}},{key:"seekTo",value:function(t){var e=this;this.isReady||0===t||(this.seekOnPlay=t,setTimeout(function(){e.seekOnPlay=null},l))}}]),e}(u.Component);c.propTypes=s.propTypes,c.defaultProps=s.defaultProps,e["default"]=c,t.exports=e["default"]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultProps=e.propTypes=void 0;var r=n(1),o=r.PropTypes.string,i=r.PropTypes.bool,a=r.PropTypes.number,u=r.PropTypes.oneOfType,s=r.PropTypes.shape,l=r.PropTypes.object,c=r.PropTypes.func;e.propTypes={url:o,playing:i,loop:i,controls:i,volume:a,width:u([o,a]),height:u([o,a]),hidden:i,className:o,style:l,progressFrequency:a,soundcloudConfig:s({clientId:o,showArtwork:i}),youtubeConfig:s({playerVars:l,preload:i}),vimeoConfig:s({iframeParams:l,preload:i}),fileConfig:s({attributes:l}),onReady:c,onStart:c,onPlay:c,onPause:c,onBuffer:c,onEnded:c,onError:c,onDuration:c,onProgress:c},e.defaultProps={playing:!1,loop:!1,controls:!1,volume:.8,width:640,height:360,hidden:!1,progressFrequency:1e3,soundcloudConfig:{clientId:"e8b6f84fbcad14c301ca1355cae1dea2",showArtwork:!0},youtubeConfig:{playerVars:{},preload:!1},vimeoConfig:{iframeParams:{},preload:!1},fileConfig:{attributes:{}},onReady:function(){},onStart:function(){},onPlay:function(){},onPause:function(){},onBuffer:function(){},onEnded:function(){},onError:function(){},onDuration:function(){},onProgress:function(){}}},function(t,e,n){(function(t,r){function o(t,e){this._id=t,this._clearFn=e}var i=n(23).nextTick,a=Function.prototype.apply,u=Array.prototype.slice,s={},l=0;e.setTimeout=function(){return new o(a.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return new o(a.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},e.setImmediate="function"==typeof t?t:function(t){var n=l++,r=!(arguments.length<2)&&u.call(arguments,1);return s[n]=!0,i(function(){s[n]&&(r?t.apply(null,r):t.call(null),e.clearImmediate(n))}),n},e.clearImmediate="function"==typeof r?r:function(t){delete s[t]}}).call(e,n(6).setImmediate,n(6).clearImmediate)},function(t,e,n){(function(e){!function(t){"use strict";function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function r(t){return"string"!=typeof t&&(t=String(t)),t}function o(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return v.iterable&&(e[Symbol.iterator]=function(){return e}),e}function i(t){this.map={},t instanceof i?t.forEach(function(t,e){this.append(e,t)},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function a(t){return t.bodyUsed?e.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function u(t){return new e(function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}})}function s(t){var e=new FileReader;return e.readAsArrayBuffer(t),u(e)}function l(t){var e=new FileReader;return e.readAsText(t),u(e)}function c(){return this.bodyUsed=!1,this._initBody=function(t){if(this._bodyInit=t,"string"==typeof t)this._bodyText=t;else if(v.blob&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t;else if(v.formData&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(v.searchParams&&URLSearchParams.prototype.isPrototypeOf(t))this._bodyText=t.toString();else if(t){if(!v.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(t))throw new Error("unsupported BodyInit type")}else this._bodyText="";this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):v.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},v.blob?(this.blob=function(){var t=a(this);if(t)return t;if(this._bodyBlob)return e.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return e.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(s)},this.text=function(){var t=a(this);if(t)return t;if(this._bodyBlob)return l(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as text");return e.resolve(this._bodyText)}):this.text=function(){var t=a(this);return t?t:e.resolve(this._bodyText)},v.formData&&(this.formData=function(){return this.text().then(d)}),this.json=function(){return this.text().then(JSON.parse)},this}function f(t){var e=t.toUpperCase();return m.indexOf(e)>-1?e:t}function p(t,e){e=e||{};var n=e.body;if(p.prototype.isPrototypeOf(t)){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new i(t.headers)),this.method=t.method,this.mode=t.mode,n||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=t;if(this.credentials=e.credentials||this.credentials||"omit",!e.headers&&this.headers||(this.headers=new i(e.headers)),this.method=f(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function d(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}}),e}function h(t){var e=new i,n=(t.getAllResponseHeaders()||"").trim().split("\n");return n.forEach(function(t){var n=t.trim().split(":"),r=n.shift().trim(),o=n.join(":").trim();e.append(r,o)}),e}function y(t,e){e||(e={}),this.type="default",this.status=e.status,this.ok=this.status>=200&&this.status<300,this.statusText=e.statusText,this.headers=e.headers instanceof i?e.headers:new i(e.headers),this.url=e.url||"",this._initBody(t)}if(!t.fetch){var v={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};i.prototype.append=function(t,e){t=n(t),e=r(e);var o=this.map[t];o||(o=[],this.map[t]=o),o.push(e)},i.prototype["delete"]=function(t){delete this.map[n(t)]},i.prototype.get=function(t){var e=this.map[n(t)];return e?e[0]:null},i.prototype.getAll=function(t){return this.map[n(t)]||[]},i.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},i.prototype.set=function(t,e){this.map[n(t)]=[r(e)]},i.prototype.forEach=function(t,e){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(r){t.call(e,r,n,this)},this)},this)},i.prototype.keys=function(){var t=[];return this.forEach(function(e,n){t.push(n)}),o(t)},i.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),o(t)},i.prototype.entries=function(){var t=[];return this.forEach(function(e,n){t.push([n,e])}),o(t)},v.iterable&&(i.prototype[Symbol.iterator]=i.prototype.entries);var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];p.prototype.clone=function(){return new p(this)},c.call(p.prototype),c.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new i(this.headers),url:this.url})},y.error=function(){var t=new y(null,{status:0,statusText:""});return t.type="error",t};var b=[301,302,303,307,308];y.redirect=function(t,e){if(b.indexOf(e)===-1)throw new RangeError("Invalid status code");return new y(null,{status:e,headers:{location:t}})},t.Headers=i,t.Request=p,t.Response=y,t.fetch=function(t,n){return new e(function(e,r){function o(){return"responseURL"in a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):void 0}var i;i=p.prototype.isPrototypeOf(t)&&!n?t:new p(t,n);var a=new XMLHttpRequest;a.onload=function(){var t={status:a.status,statusText:a.statusText,headers:h(a),url:o()},n="response"in a?a.response:a.responseText;e(new y(n,t))},a.onerror=function(){r(new TypeError("Network request failed"))},a.ontimeout=function(){r(new TypeError("Network request failed"))},a.open(i.method,i.url,!0),"include"===i.credentials&&(a.withCredentials=!0),"responseType"in a&&v.blob&&(a.responseType="blob"),i.headers.forEach(function(t,e){a.setRequestHeader(e,t)}),a.send("undefined"==typeof i._bodyInit?null:i._bodyInit)})},t.fetch.polyfill=!0}}("undefined"!=typeof self?self:this),t.exports=self.fetch}).call(e,n(2))},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(c===setTimeout)return setTimeout(t,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(t,0);try{return c(t,0)}catch(e){try{return c.call(null,t,0)}catch(e){return c.call(this,t,0)}}}function i(t){if(f===clearTimeout)return clearTimeout(t);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function a(){y&&d&&(y=!1,d.length?h=d.concat(h):v=-1,h.length&&u())}function u(){if(!y){var t=o(a);y=!0;for(var e=h.length;e;){for(d=h,h=[];++v<e;)d&&d[v].run();v=-1,e=h.length}d=null,y=!1,i(t)}}function s(t,e){this.fun=t,this.array=e}function l(){}var c,f,p=t.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(t){c=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(t){f=r}}();var d,h=[],y=!1,v=-1;p.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];h.push(new s(t,e)),1!==h.length||y||o(u)},s.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=l,p.addListener=l,p.once=l,p.off=l,p.removeListener=l,p.removeAllListeners=l,p.emit=l,p.binding=function(t){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(t){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e,n){(function(r){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=function w(t,e,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,e);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:w(o,e,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},c=n(1),f=o(c),p=n(18),d=o(p),h=n(3),y=o(h),v=n(5),m="//api.soundcloud.com/resolve.json",b=/^https?:\/\/(soundcloud.com|snd.sc)\/([a-z0-9-_]+\/[a-z0-9-_]+)$/,g={},_=function(t){function e(){var t,n,r,o;i(this,e);for(var u=arguments.length,s=Array(u),l=0;l<u;l++)s[l]=arguments[l];return n=r=a(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(s))),r.state={image:null},r.clientId=r.props.soundcloudConfig.clientId||v.defaultProps.soundcloudConfig.clientId,r.ref=function(t){r.player=t},o=n,a(r,o)}return u(e,t),s(e,[{key:"shouldComponentUpdate",value:function(t,n){return l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"shouldComponentUpdate",this).call(this,t,n)||this.state.image!==n.image}},{key:"getSongData",value:function(t){var e=this;return g[t]?r.resolve(g[t]):(0,d["default"])(m+"?url="+t+"&client_id="+this.clientId).then(function(n){return n.ok?(g[t]=n.json(),g[t]):void e.props.onError(new Error("SoundCloud track could not be resolved"))})}},{key:"load",value:function(t){var e=this,n=this.props,r=n.soundcloudConfig,o=n.onError;this.stop(),this.getSongData(t).then(function(t){if(e.mounted){if(!t.streamable)return void o(new Error("SoundCloud track is not streamable"));var n=t.artwork_url||t.user.avatar_url;n&&r.showArtwork&&e.setState({image:n.replace("-large","-t500x500")}),e.player.src=t.stream_url+"?client_id="+e.clientId}},o)}},{key:"render",value:function(){var t=this.props,e=t.url,n=t.loop,r=t.controls,o={display:e?"block":"none",height:"100%",backgroundImage:this.state.image?"url("+this.state.image+")":null,backgroundSize:"cover",backgroundPosition:"center"};return f["default"].createElement("div",{style:o},f["default"].createElement("audio",{ref:this.ref,type:"audio/mpeg",preload:"auto",style:{width:"100%",height:"100%"},controls:r,loop:n}))}}],[{key:"canPlay",value:function(t){return b.test(t)}}]),e}(y["default"]);_.displayName="SoundCloud",e["default"]=_,t.exports=e["default"]}).call(e,n(2))},function(t,e,n){(function(r,o){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(3),f=i(c),p="https://api.streamable.com/videos/",d=/^https?:\/\/streamable.com\/([a-z0-9]+)$/,h={},y=function(t){function e(){return a(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,t),l(e,[{key:"getData",value:function(t){var e=this.props.onError,n=t.match(d)[1];return h[n]?r.resolve(h[n]):o(p+n).then(function(t){return 200===t.status?(h[n]=t.json(),h[n]):void e(new Error("Streamable track could not be resolved"))})}},{key:"load",value:function(t){var e=this,n=this.props.onError;this.stop(),this.getData(t).then(function(t){e.mounted&&(e.player.src=t.files.mp4.url)},n)}}],[{key:"canPlay",value:function(t){return d.test(t)}}]),e}(f["default"]);y.displayName="Streamable",e["default"]=y,t.exports=e["default"]}).call(e,n(2),n(7))},function(t,e,n){
(function(r,o){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(3),f=i(c),p="https://api.vid.me/videoByUrl/",d=/^https?:\/\/vid.me\/([a-z0-9]+)$/,h={},y=function(t){function e(){return a(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,t),l(e,[{key:"getData",value:function(t){var e=this.props.onError,n=t.match(d)[1];return h[n]?r.resolve(h[n]):o(p+n).then(function(t){return 200===t.status?(h[n]=t.json(),h[n]):void e(new Error("Vidme track could not be resolved"))})}},{key:"load",value:function(t){var e=this,n=this.props.onError;this.stop(),this.getData(t).then(function(t){e.mounted&&(e.player.src=t.video.complete_url)},n)}}],[{key:"canPlay",value:function(t){return d.test(t)}}]),e}(f["default"]);y.displayName="Vidme",e["default"]=y,t.exports=e["default"]}).call(e,n(2),n(7))},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=function w(t,e,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,e);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:w(o,e,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},c=n(1),f=r(c),p=n(20),d=n(4),h=r(d),y="https://player.vimeo.com/video/",v=/https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)/,m=/^https?:\/\/player.vimeo.com/,b="https://vimeo.com/127250231",g={api:1,autoplay:0,badge:0,byline:0,fullscreen:1,portrait:0,title:0},_=function(t){function e(){var t,n,r,a;o(this,e);for(var u=arguments.length,s=Array(u),l=0;l<u;l++)s[l]=arguments[l];return n=r=i(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(s))),r.onMessage=function(t){if(m.test(t.origin)){r.origin=r.origin||t.origin;var e=JSON.parse(t.data);"ready"===e.event&&(r.postMessage("getDuration"),r.postMessage("addEventListener","playProgress"),r.postMessage("addEventListener","loadProgress"),r.postMessage("addEventListener","play"),r.postMessage("addEventListener","pause"),r.postMessage("addEventListener","finish")),"playProgress"===e.event&&(r.fractionPlayed=e.data.percent),"loadProgress"===e.event&&(r.fractionLoaded=e.data.percent),"play"===e.event&&r.onPlay(),"pause"===e.event&&r.props.onPause(),"finish"===e.event&&r.onEnded(),"getDuration"===e.method&&(r.duration=e.value,r.onReady())}},r.onEnded=function(){var t=r.props,e=t.loop,n=t.onEnded;e&&r.seekTo(0),n()},r.postMessage=function(t,e){if(r.origin){var n=JSON.stringify({method:t,value:e});return r.iframe.contentWindow&&r.iframe.contentWindow.postMessage(n,r.origin)}},r.ref=function(t){r.iframe=t},a=n,i(r,a)}return a(e,t),s(e,[{key:"componentDidMount",value:function(){var t=this.props,n=t.url,r=t.vimeoConfig;window.addEventListener("message",this.onMessage,!1),!n&&r.preload&&(this.preloading=!0,this.load(b)),l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"componentDidMount",this).call(this)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("message",this.onMessage,!1),l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"componentWillUnmount",this).call(this)}},{key:"getIframeParams",value:function(){return u({},g,this.props.vimeoConfig.iframeParams)}},{key:"load",value:function(t){var e=t.match(v)[3];this.iframe.src=y+e+"?"+(0,p.stringify)(this.getIframeParams())}},{key:"play",value:function(){this.postMessage("play")}},{key:"pause",value:function(){this.postMessage("pause")}},{key:"stop",value:function(){this.iframe.src=""}},{key:"seekTo",value:function(t){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"seekTo",this).call(this,t),this.postMessage("seekTo",this.duration*t)}},{key:"setVolume",value:function(t){this.postMessage("setVolume",t)}},{key:"getDuration",value:function(){return this.duration}},{key:"getFractionPlayed",value:function(){return this.fractionPlayed||null}},{key:"getFractionLoaded",value:function(){return this.fractionLoaded||null}},{key:"render",value:function(){var t=this.getIframeParams(),e=t.fullscreen,n={display:this.props.url?"block":"none",width:"100%",height:"100%"};return f["default"].createElement("iframe",{ref:this.ref,frameBorder:"0",style:n,allowFullScreen:e})}}],[{key:"canPlay",value:function(t){return v.test(t)}}]),e}(h["default"]);_.displayName="Vimeo",e["default"]=_,t.exports=e["default"]},function(t,e,n){(function(r){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=function E(t,e,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,e);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:E(o,e,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},f=n(1),p=o(f),d=n(19),h=o(d),y=n(4),v=o(y),m=n(16),b="https://www.youtube.com/iframe_api",g="YT",_="onYouTubeIframeAPIReady",w=/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/,P="https://www.youtube.com/watch?v=GlCmAC4MHek",O={autoplay:0,playsinline:1,showinfo:0,rel:0,iv_load_policy:3},T=function(t){function e(){var t,n,r,o;i(this,e);for(var u=arguments.length,s=Array(u),l=0;l<u;l++)s[l]=arguments[l];return n=r=a(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(s))),r.onStateChange=function(t){var e=t.data,n=r.props,o=n.onPause,i=n.onBuffer,a=window[g].PlayerState,u=a.PLAYING,s=a.PAUSED,l=a.BUFFERING,c=a.ENDED,f=a.CUED;e===u&&r.onPlay(),e===s&&o(),e===l&&i(),e===c&&r.onEnded(),e===f&&r.onReady()},r.onEnded=function(){var t=r.props,e=t.loop,n=t.onEnded;e&&r.seekTo(0),n()},r.ref=function(t){r.container=t},o=n,a(r,o)}return u(e,t),l(e,[{key:"componentDidMount",value:function(){var t=this.props,n=t.url,r=t.youtubeConfig;!n&&r.preload&&(this.preloading=!0,this.load(P)),c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"componentDidMount",this).call(this)}},{key:"getSDK",value:function(){return window[g]&&window[g].loaded?r.resolve(window[g]):new r(function(t,e){var n=window[_];window[_]=function(){n&&n(),t(window[g])},(0,h["default"])(b,function(t){t&&e(t)})})}},{key:"load",value:function(t){var e=this,n=this.props,r=n.controls,o=n.youtubeConfig,i=n.onError,a=t&&t.match(w)[1];return this.isReady?void this.player.cueVideoById({videoId:a,startSeconds:(0,m.parseStartTime)(t)}):this.loadingSDK?void(this.loadOnReady=t):(this.loadingSDK=!0,void this.getSDK().then(function(n){e.player=new n.Player(e.container,{width:"100%",height:"100%",videoId:a,playerVars:s({},O,{controls:r?1:0},o.playerVars,{start:(0,m.parseStartTime)(t),origin:window.location.origin}),events:{onReady:function(){e.loadingSDK=!1,e.onReady()},onStateChange:e.onStateChange,onError:function(t){return i(t.data)}}})},i))}},{key:"play",value:function(){this.isReady&&this.player.playVideo&&this.player.playVideo()}},{key:"pause",value:function(){this.isReady&&this.player.pauseVideo&&this.player.pauseVideo()}},{key:"stop",value:function(){this.isReady&&this.player.stopVideo&&this.player.stopVideo()}},{key:"seekTo",value:function(t){c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"seekTo",this).call(this,t),this.isReady&&this.player.seekTo&&this.player.seekTo(this.getDuration()*t)}},{key:"setVolume",value:function(t){this.isReady&&this.player.setVolume&&this.player.setVolume(100*t)}},{key:"getDuration",value:function(){return this.isReady&&this.player.getDuration?this.player.getDuration():null}},{key:"getFractionPlayed",value:function(){return this.isReady&&this.getDuration()?this.player.getCurrentTime()/this.getDuration():null}},{key:"getFractionLoaded",value:function(){return this.isReady&&this.player.getVideoLoadedFraction?this.player.getVideoLoadedFraction():null}},{key:"render",value:function(){var t={height:"100%",display:this.props.url?"block":"none"};return p["default"].createElement("div",{style:t},p["default"].createElement("div",{ref:this.ref}))}}],[{key:"canPlay",value:function(t){return w.test(t)}}]),e}(v["default"]);T.displayName="YouTube",e["default"]=T,t.exports=e["default"]}).call(e,n(2))},function(t,e){"use strict";function n(t){var e=t.match(i);if(e){var n=e[1];if(n.match(a))return r(n);if(u.test(n))return parseInt(n,10)}return 0}function r(t){for(var e=0,n=a.exec(t);null!==n;){var r=n,i=o(r,3),u=i[1],s=i[2];"h"===s&&(e+=60*parseInt(u,10)*60),"m"===s&&(e+=60*parseInt(u,10)),"s"===s&&(e+=parseInt(u,10)),n=a.exec(t)}return e}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&u["return"]&&u["return"]()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e.parseStartTime=n;var i=/[\?&#](?:start|t)=([0-9hms]+)/,a=/(\d+)(h|m|s)/g,u=/^\d+$/},function(t,e,n){var r;(function(t,o,i,a){(function(){"use strict";function u(t){return"function"==typeof t||"object"==typeof t&&null!==t}function s(t){return"function"==typeof t}function l(t){return"object"==typeof t&&null!==t}function c(t){K=t}function f(t){Q=t}function p(){var e=t.nextTick,n=t.versions.node.match(/^(?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)$/);return Array.isArray(n)&&"0"===n[1]&&"10"===n[2]&&(e=o),function(){e(m)}}function d(){return function(){G(m)}}function h(){var t=0,e=new et(m),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function y(){var t=new MessageChannel;return t.port1.onmessage=m,function(){t.port2.postMessage(0)}}function v(){return function(){setTimeout(m,1)}}function m(){for(var t=0;t<X;t+=2){var e=ot[t],n=ot[t+1];e(n),ot[t]=void 0,ot[t+1]=void 0}X=0}function b(){try{var t=n(25);return G=t.runOnLoop||t.runOnContext,d()}catch(e){return v()}}function g(){}function _(){return new TypeError("You cannot resolve a promise with itself")}function w(){return new TypeError("A promises callback cannot return that same promise.")}function P(t){try{return t.then}catch(e){return st.error=e,st}}function O(t,e,n,r){try{t.call(e,n,r)}catch(o){return o}}function T(t,e,n){Q(function(t){var r=!1,o=O(n,e,function(n){r||(r=!0,e!==n?k(t,n):x(t,n))},function(e){r||(r=!0,A(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&o&&(r=!0,A(t,o))},t)}function E(t,e){e._state===at?x(t,e._result):e._state===ut?A(t,e._result):S(e,void 0,function(e){k(t,e)},function(e){A(t,e)})}function j(t,e){if(e.constructor===t.constructor)E(t,e);else{var n=P(e);n===st?A(t,st.error):void 0===n?x(t,e):s(n)?T(t,e,n):x(t,e)}}function k(t,e){t===e?A(t,_()):u(e)?j(t,e):x(t,e)}function C(t){t._onerror&&t._onerror(t._result),R(t)}function x(t,e){t._state===it&&(t._result=e,t._state=at,0!==t._subscribers.length&&Q(R,t))}function A(t,e){t._state===it&&(t._state=ut,t._result=e,Q(C,t))}function S(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+at]=n,o[i+ut]=r,0===i&&t._state&&Q(R,t)}function R(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r,o,i=t._result,a=0;a<e.length;a+=3)r=e[a],o=e[a+n],r?I(n,r,o,i):o(i);t._subscribers.length=0}}function D(){this.error=null}function M(t,e){try{return t(e)}catch(n){return lt.error=n,lt}}function I(t,e,n,r){var o,i,a,u,l=s(n);if(l){if(o=M(n,r),o===lt?(u=!0,i=o.error,o=null):a=!0,e===o)return void A(e,w())}else o=r,a=!0;e._state!==it||(l&&a?k(e,o):u?A(e,i):t===at?x(e,o):t===ut&&A(e,o))}function L(t,e){try{e(function(e){k(t,e)},function(e){A(t,e)})}catch(n){A(t,n)}}function F(t,e){var n=this;n._instanceConstructor=t,n.promise=new t(g),n._validateInput(e)?(n._input=e,n.length=e.length,n._remaining=e.length,n._init(),0===n.length?x(n.promise,n._result):(n.length=n.length||0,n._enumerate(),0===n._remaining&&x(n.promise,n._result))):A(n.promise,n._validationError())}function U(t){return new ct(this,t).promise}function B(t){function e(t){k(o,t)}function n(t){A(o,t)}var r=this,o=new r(g);if(!J(t))return A(o,new TypeError("You must pass an array to race.")),o;for(var i=t.length,a=0;o._state===it&&a<i;a++)S(r.resolve(t[a]),void 0,e,n);return o}function N(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(g);return k(n,t),n}function V(t){var e=this,n=new e(g);return A(n,t),n}function q(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function W(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function H(t){this._id=yt++,this._state=void 0,this._result=void 0,this._subscribers=[],g!==t&&(s(t)||q(),this instanceof H||W(),L(this,t))}function Y(){var t;if("undefined"!=typeof i)t=i;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=t.Promise;n&&"[object Promise]"===Object.prototype.toString.call(n.resolve())&&!n.cast||(t.Promise=vt)}var $;$=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var G,K,z,J=$,X=0,Q=({}.toString,function(t,e){ot[X]=t,ot[X+1]=e,X+=2,2===X&&(K?K(m):z())}),Z="undefined"!=typeof window?window:void 0,tt=Z||{},et=tt.MutationObserver||tt.WebKitMutationObserver,nt="undefined"!=typeof t&&"[object process]"==={}.toString.call(t),rt="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,ot=new Array(1e3);z=nt?p():et?h():rt?y():void 0===Z?b():v();var it=void 0,at=1,ut=2,st=new D,lt=new D;F.prototype._validateInput=function(t){return J(t)},F.prototype._validationError=function(){return new Error("Array Methods must be provided an Array")},F.prototype._init=function(){this._result=new Array(this.length)};var ct=F;F.prototype._enumerate=function(){for(var t=this,e=t.length,n=t.promise,r=t._input,o=0;n._state===it&&o<e;o++)t._eachEntry(r[o],o)},F.prototype._eachEntry=function(t,e){var n=this,r=n._instanceConstructor;l(t)?t.constructor===r&&t._state!==it?(t._onerror=null,n._settledAt(t._state,e,t._result)):n._willSettleAt(r.resolve(t),e):(n._remaining--,n._result[e]=t)},F.prototype._settledAt=function(t,e,n){var r=this,o=r.promise;o._state===it&&(r._remaining--,t===ut?A(o,n):r._result[e]=n),0===r._remaining&&x(o,r._result)},F.prototype._willSettleAt=function(t,e){var n=this;S(t,void 0,function(t){n._settledAt(at,e,t)},function(t){n._settledAt(ut,e,t)})};var ft=U,pt=B,dt=N,ht=V,yt=0,vt=H;H.all=ft,H.race=pt,H.resolve=dt,H.reject=ht,H._setScheduler=c,H._setAsap=f,H._asap=Q,H.prototype={constructor:H,then:function(t,e){var n=this,r=n._state;if(r===at&&!t||r===ut&&!e)return this;var o=new this.constructor(g),i=n._result;if(r){var a=arguments[r-1];Q(function(){I(r,o,a,i)})}else S(n,o,t,e);return o},"catch":function(t){return this.then(null,t)}};var mt=Y,bt={Promise:vt,polyfill:mt};n(9).amd?(r=function(){return bt}.call(e,n,e,a),!(void 0!==r&&(a.exports=r))):"undefined"!=typeof a&&a.exports?a.exports=bt:"undefined"!=typeof this&&(this.ES6Promise=bt),mt()}).call(this),a.exports=i.Promise}).call(e,n(8),n(6).setImmediate,function(){return this}(),n(10)(t))},function(t,e,n){var r,o,i;(function(n){!function(n,a){o=[e,t],r=a,i="function"==typeof r?r.apply(e,o):r,!(void 0!==i&&(t.exports=i))}(this,function(t,e){"use strict";function r(){return"jsonp_"+Date.now()+"_"+Math.ceil(1e5*Math.random())}function o(t){try{delete window[t]}catch(e){window[t]=void 0}}function i(t){var e=document.getElementById(t);document.getElementsByTagName("head")[0].removeChild(e)}function a(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],a=t,s=e.timeout||u.timeout,l=e.jsonpCallback||u.jsonpCallback,c=void 0;return new n(function(t,u){var f=e.jsonpCallbackFunction||r(),p=l+"_"+f;window[f]=function(e){t({ok:!0,json:function(){return n.resolve(e)}}),c&&clearTimeout(c),i(p),o(f)},a+=a.indexOf("?")===-1?"?":"&";var d=document.createElement("script");d.setAttribute("src",""+a+l+"="+f),d.id=p,document.getElementsByTagName("head")[0].appendChild(d),c=setTimeout(function(){u(new Error("JSONP request to "+a+" timed out")),o(f),i(p)},s)})}var u={timeout:5e3,jsonpCallback:"callback",jsonpCallbackFunction:null};e.exports=a})}).call(e,n(17))},function(t,e){function n(t,e){for(var n in e)t.setAttribute(n,e[n])}function r(t,e){t.onload=function(){this.onerror=this.onload=null,e(null,t)},t.onerror=function(){this.onerror=this.onload=null,e(new Error("Failed to load "+this.src),t)}}function o(t,e){t.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,e(null,t))}}t.exports=function(t,e,i){var a=document.head||document.getElementsByTagName("head")[0],u=document.createElement("script");"function"==typeof e&&(i=e,e={}),e=e||{},i=i||function(){},u.type=e.type||"text/javascript",u.charset=e.charset||"utf8",u.async=!("async"in e)||!!e.async,u.src=t,e.attrs&&n(u,e.attrs),e.text&&(u.text=""+e.text);var s="onload"in u?r:o;s(u,i),u.onload||r(u,i),a.appendChild(u)}},function(t,e,n){"use strict";function r(t,e){return e.encode?e.strict?o(t):encodeURIComponent(t):t}var o=n(22),i=n(21);e.extract=function(t){return t.split("?")[1]||""},e.parse=function(t){var e=Object.create(null);return"string"!=typeof t?e:(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(t){var n=t.replace(/\+/g," ").split("="),r=n.shift(),o=n.length>0?n.join("="):void 0;r=decodeURIComponent(r),o=void 0===o?null:decodeURIComponent(o),void 0===e[r]?e[r]=o:Array.isArray(e[r])?e[r].push(o):e[r]=[e[r],o]}),e):e},e.stringify=function(t,e){var n={encode:!0,strict:!0};return e=i(n,e),t?Object.keys(t).sort().map(function(n){var o=t[n];if(void 0===o)return"";if(null===o)return r(n,e);if(Array.isArray(o)){var i=[];return o.slice().forEach(function(t){void 0!==t&&(null===t?i.push(r(n,e)):i.push(r(n,e)+"="+r(t,e)))}),i.join("&")}return r(n,e)+"="+r(o,e)}).filter(function(t){return t.length>0}).join("&"):""}},function(t,e){"use strict";function n(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function r(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(e).map(function(t){return e[t]});if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(t){o[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(i){return!1}}var o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;t.exports=r()?Object.assign:function(t,e){for(var r,a,u=n(t),s=1;s<arguments.length;s++){r=Object(arguments[s]);for(var l in r)o.call(r,l)&&(u[l]=r[l]);if(Object.getOwnPropertySymbols){a=Object.getOwnPropertySymbols(r);for(var c=0;c<a.length;c++)i.call(r,a[c])&&(u[a[c]]=r[a[c]])}}return u}},function(t,e){"use strict";t.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(c===setTimeout)return setTimeout(t,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(t,0);try{return c(t,0)}catch(e){try{return c.call(null,t,0)}catch(e){return c.call(this,t,0)}}}function i(t){if(f===clearTimeout)return clearTimeout(t);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function a(){y&&d&&(y=!1,d.length?h=d.concat(h):v=-1,h.length&&u())}function u(){if(!y){var t=o(a);y=!0;for(var e=h.length;e;){for(d=h,h=[];++v<e;)d&&d[v].run();v=-1,e=h.length}d=null,y=!1,i(t)}}function s(t,e){this.fun=t,this.array=e}function l(){}var c,f,p=t.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(t){c=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(t){f=r}}();var d,h=[],y=!1,v=-1;p.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];h.push(new s(t,e)),1!==h.length||y||o(u)},s.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=l,p.addListener=l,p.once=l,p.off=l,p.removeListener=l,p.removeAllListeners=l,p.emit=l,p.binding=function(t){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(t){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(t,e){},function(t,e){}]);
(function(r,o){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(3),f=i(c),p="https://api.vid.me/videoByUrl/",d=/^https?:\/\/vid.me\/([a-z0-9]+)$/,h={},y=function(t){function e(){return a(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,t),l(e,[{key:"getData",value:function(t){var e=this.props.onError,n=t.match(d)[1];return h[n]?r.resolve(h[n]):o(p+n).then(function(t){return 200===t.status?(h[n]=t.json(),h[n]):void e(new Error("Vidme track could not be resolved"))})}},{key:"load",value:function(t){var e=this,n=this.props.onError;this.stop(),this.getData(t).then(function(t){e.mounted&&(e.player.src=t.video.complete_url)},n)}}],[{key:"canPlay",value:function(t){return d.test(t)}}]),e}(f["default"]);y.displayName="Vidme",e["default"]=y,t.exports=e["default"]}).call(e,n(2),n(7))},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=function w(t,e,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,e);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:w(o,e,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},c=n(1),f=r(c),p=n(20),d=n(4),h=r(d),y="https://player.vimeo.com/video/",v=/https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)/,m=/^https?:\/\/player.vimeo.com/,b="https://vimeo.com/127250231",g={api:1,autoplay:0,badge:0,byline:0,fullscreen:1,portrait:0,title:0},_=function(t){function e(){var t,n,r,a;o(this,e);for(var u=arguments.length,s=Array(u),l=0;l<u;l++)s[l]=arguments[l];return n=r=i(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(s))),r.onMessage=function(t){if(m.test(t.origin)){r.origin=r.origin||t.origin;var e=JSON.parse(t.data);"ready"===e.event&&(r.postMessage("getDuration"),r.postMessage("addEventListener","playProgress"),r.postMessage("addEventListener","loadProgress"),r.postMessage("addEventListener","play"),r.postMessage("addEventListener","pause"),r.postMessage("addEventListener","finish")),"playProgress"===e.event&&(r.fractionPlayed=e.data.percent),"loadProgress"===e.event&&(r.fractionLoaded=e.data.percent),"play"===e.event&&r.onPlay(),"pause"===e.event&&r.props.onPause(),"finish"===e.event&&r.onEnded(),"getDuration"===e.method&&(r.duration=e.value,r.onReady())}},r.onEnded=function(){var t=r.props,e=t.loop,n=t.onEnded;e&&r.seekTo(0),n()},r.postMessage=function(t,e){if(r.origin){var n=JSON.stringify({method:t,value:e});return r.iframe.contentWindow&&r.iframe.contentWindow.postMessage(n,r.origin)}},r.ref=function(t){r.iframe=t},a=n,i(r,a)}return a(e,t),s(e,[{key:"componentDidMount",value:function(){var t=this.props,n=t.url,r=t.vimeoConfig;window.addEventListener("message",this.onMessage,!1),!n&&r.preload&&(this.preloading=!0,this.load(b)),l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"componentDidMount",this).call(this)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("message",this.onMessage,!1),l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"componentWillUnmount",this).call(this)}},{key:"getIframeParams",value:function(){return u({},g,this.props.vimeoConfig.iframeParams)}},{key:"load",value:function(t){var e=t.match(v)[3];this.iframe.src=y+e+"?"+(0,p.stringify)(this.getIframeParams())}},{key:"play",value:function(){this.postMessage("play")}},{key:"pause",value:function(){this.postMessage("pause")}},{key:"stop",value:function(){this.iframe.src=""}},{key:"seekTo",value:function(t){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"seekTo",this).call(this,t),this.postMessage("seekTo",this.duration*t)}},{key:"setVolume",value:function(t){this.postMessage("setVolume",t)}},{key:"getDuration",value:function(){return this.duration}},{key:"getFractionPlayed",value:function(){return this.fractionPlayed||null}},{key:"getFractionLoaded",value:function(){return this.fractionLoaded||null}},{key:"render",value:function(){var t=this.getIframeParams(),e=t.fullscreen,n={display:this.props.url?"block":"none",width:"100%",height:"100%"};return f["default"].createElement("iframe",{ref:this.ref,frameBorder:"0",style:n,allowFullScreen:e})}}],[{key:"canPlay",value:function(t){return v.test(t)}}]),e}(h["default"]);_.displayName="Vimeo",e["default"]=_,t.exports=e["default"]},function(t,e,n){(function(r){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=function E(t,e,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,e);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:E(o,e,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},f=n(1),p=o(f),d=n(19),h=o(d),y=n(4),v=o(y),m=n(16),b="https://www.youtube.com/iframe_api",g="YT",_="onYouTubeIframeAPIReady",w=/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/,P="https://www.youtube.com/watch?v=GlCmAC4MHek",O={autoplay:0,playsinline:1,showinfo:0,rel:0,iv_load_policy:3},T=function(t){function e(){var t,n,r,o;i(this,e);for(var u=arguments.length,s=Array(u),l=0;l<u;l++)s[l]=arguments[l];return n=r=a(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(s))),r.onStateChange=function(t){var e=t.data,n=r.props,o=n.onPause,i=n.onBuffer,a=window[g].PlayerState,u=a.PLAYING,s=a.PAUSED,l=a.BUFFERING,c=a.ENDED,f=a.CUED;e===u&&r.onPlay(),e===s&&o(),e===l&&i(),e===c&&r.onEnded(),e===f&&r.onReady()},r.onEnded=function(){var t=r.props,e=t.loop,n=t.onEnded;e&&r.seekTo(0),n()},r.ref=function(t){r.container=t},o=n,a(r,o)}return u(e,t),l(e,[{key:"componentDidMount",value:function(){var t=this.props,n=t.url,r=t.youtubeConfig;!n&&r.preload&&(this.preloading=!0,this.load(P)),c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"componentDidMount",this).call(this)}},{key:"getSDK",value:function(){return window[g]&&window[g].loaded?r.resolve(window[g]):new r(function(t,e){var n=window[_];window[_]=function(){n&&n(),t(window[g])},(0,h["default"])(b,function(t){t&&e(t)})})}},{key:"load",value:function(t){var e=this,n=this.props,r=n.controls,o=n.youtubeConfig,i=n.onError,a=t&&t.match(w)[1];return this.isReady?void this.player.cueVideoById({videoId:a,startSeconds:(0,m.parseStartTime)(t)}):this.loadingSDK?void(this.loadOnReady=t):(this.loadingSDK=!0,void this.getSDK().then(function(n){e.player=new n.Player(e.container,{width:"100%",height:"100%",videoId:a,playerVars:s({},O,{controls:r?1:0},o.playerVars,{start:(0,m.parseStartTime)(t),origin:window.location.origin}),events:{onReady:function(){e.loadingSDK=!1,e.onReady()},onStateChange:e.onStateChange,onError:function(t){return i(t.data)}}})},i))}},{key:"play",value:function(){this.isReady&&this.player.playVideo&&this.player.playVideo()}},{key:"pause",value:function(){this.isReady&&this.player.pauseVideo&&this.player.pauseVideo()}},{key:"stop",value:function(){this.isReady&&this.player.stopVideo&&this.player.stopVideo()}},{key:"seekTo",value:function(t){c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"seekTo",this).call(this,t),this.isReady&&this.player.seekTo&&this.player.seekTo(this.getDuration()*t)}},{key:"setVolume",value:function(t){this.isReady&&this.player.setVolume&&this.player.setVolume(100*t)}},{key:"getDuration",value:function(){return this.isReady&&this.player.getDuration?this.player.getDuration():null}},{key:"getFractionPlayed",value:function(){return this.isReady&&this.getDuration()?this.player.getCurrentTime()/this.getDuration():null}},{key:"getFractionLoaded",value:function(){return this.isReady&&this.player.getVideoLoadedFraction?this.player.getVideoLoadedFraction():null}},{key:"render",value:function(){var t={width:"100%",height:"100%",display:this.props.url?"block":"none"};return p["default"].createElement("div",{style:t},p["default"].createElement("div",{ref:this.ref}))}}],[{key:"canPlay",value:function(t){return w.test(t)}}]),e}(v["default"]);T.displayName="YouTube",e["default"]=T,t.exports=e["default"]}).call(e,n(2))},function(t,e){"use strict";function n(t){var e=t.match(i);if(e){var n=e[1];if(n.match(a))return r(n);if(u.test(n))return parseInt(n,10)}return 0}function r(t){for(var e=0,n=a.exec(t);null!==n;){var r=n,i=o(r,3),u=i[1],s=i[2];"h"===s&&(e+=60*parseInt(u,10)*60),"m"===s&&(e+=60*parseInt(u,10)),"s"===s&&(e+=parseInt(u,10)),n=a.exec(t)}return e}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&u["return"]&&u["return"]()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e.parseStartTime=n;var i=/[\?&#](?:start|t)=([0-9hms]+)/,a=/(\d+)(h|m|s)/g,u=/^\d+$/},function(t,e,n){var r;(function(t,o,i,a){(function(){"use strict";function u(t){return"function"==typeof t||"object"==typeof t&&null!==t}function s(t){return"function"==typeof t}function l(t){return"object"==typeof t&&null!==t}function c(t){K=t}function f(t){Q=t}function p(){var e=t.nextTick,n=t.versions.node.match(/^(?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)$/);return Array.isArray(n)&&"0"===n[1]&&"10"===n[2]&&(e=o),function(){e(m)}}function d(){return function(){G(m)}}function h(){var t=0,e=new et(m),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function y(){var t=new MessageChannel;return t.port1.onmessage=m,function(){t.port2.postMessage(0)}}function v(){return function(){setTimeout(m,1)}}function m(){for(var t=0;t<X;t+=2){var e=ot[t],n=ot[t+1];e(n),ot[t]=void 0,ot[t+1]=void 0}X=0}function b(){try{var t=n(25);return G=t.runOnLoop||t.runOnContext,d()}catch(e){return v()}}function g(){}function _(){return new TypeError("You cannot resolve a promise with itself")}function w(){return new TypeError("A promises callback cannot return that same promise.")}function P(t){try{return t.then}catch(e){return st.error=e,st}}function O(t,e,n,r){try{t.call(e,n,r)}catch(o){return o}}function T(t,e,n){Q(function(t){var r=!1,o=O(n,e,function(n){r||(r=!0,e!==n?k(t,n):x(t,n))},function(e){r||(r=!0,A(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&o&&(r=!0,A(t,o))},t)}function E(t,e){e._state===at?x(t,e._result):e._state===ut?A(t,e._result):S(e,void 0,function(e){k(t,e)},function(e){A(t,e)})}function j(t,e){if(e.constructor===t.constructor)E(t,e);else{var n=P(e);n===st?A(t,st.error):void 0===n?x(t,e):s(n)?T(t,e,n):x(t,e)}}function k(t,e){t===e?A(t,_()):u(e)?j(t,e):x(t,e)}function C(t){t._onerror&&t._onerror(t._result),R(t)}function x(t,e){t._state===it&&(t._result=e,t._state=at,0!==t._subscribers.length&&Q(R,t))}function A(t,e){t._state===it&&(t._state=ut,t._result=e,Q(C,t))}function S(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+at]=n,o[i+ut]=r,0===i&&t._state&&Q(R,t)}function R(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r,o,i=t._result,a=0;a<e.length;a+=3)r=e[a],o=e[a+n],r?I(n,r,o,i):o(i);t._subscribers.length=0}}function D(){this.error=null}function M(t,e){try{return t(e)}catch(n){return lt.error=n,lt}}function I(t,e,n,r){var o,i,a,u,l=s(n);if(l){if(o=M(n,r),o===lt?(u=!0,i=o.error,o=null):a=!0,e===o)return void A(e,w())}else o=r,a=!0;e._state!==it||(l&&a?k(e,o):u?A(e,i):t===at?x(e,o):t===ut&&A(e,o))}function L(t,e){try{e(function(e){k(t,e)},function(e){A(t,e)})}catch(n){A(t,n)}}function F(t,e){var n=this;n._instanceConstructor=t,n.promise=new t(g),n._validateInput(e)?(n._input=e,n.length=e.length,n._remaining=e.length,n._init(),0===n.length?x(n.promise,n._result):(n.length=n.length||0,n._enumerate(),0===n._remaining&&x(n.promise,n._result))):A(n.promise,n._validationError())}function U(t){return new ct(this,t).promise}function B(t){function e(t){k(o,t)}function n(t){A(o,t)}var r=this,o=new r(g);if(!J(t))return A(o,new TypeError("You must pass an array to race.")),o;for(var i=t.length,a=0;o._state===it&&a<i;a++)S(r.resolve(t[a]),void 0,e,n);return o}function N(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(g);return k(n,t),n}function V(t){var e=this,n=new e(g);return A(n,t),n}function q(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function W(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function H(t){this._id=yt++,this._state=void 0,this._result=void 0,this._subscribers=[],g!==t&&(s(t)||q(),this instanceof H||W(),L(this,t))}function Y(){var t;if("undefined"!=typeof i)t=i;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=t.Promise;n&&"[object Promise]"===Object.prototype.toString.call(n.resolve())&&!n.cast||(t.Promise=vt)}var $;$=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var G,K,z,J=$,X=0,Q=({}.toString,function(t,e){ot[X]=t,ot[X+1]=e,X+=2,2===X&&(K?K(m):z())}),Z="undefined"!=typeof window?window:void 0,tt=Z||{},et=tt.MutationObserver||tt.WebKitMutationObserver,nt="undefined"!=typeof t&&"[object process]"==={}.toString.call(t),rt="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,ot=new Array(1e3);z=nt?p():et?h():rt?y():void 0===Z?b():v();var it=void 0,at=1,ut=2,st=new D,lt=new D;F.prototype._validateInput=function(t){return J(t)},F.prototype._validationError=function(){return new Error("Array Methods must be provided an Array")},F.prototype._init=function(){this._result=new Array(this.length)};var ct=F;F.prototype._enumerate=function(){for(var t=this,e=t.length,n=t.promise,r=t._input,o=0;n._state===it&&o<e;o++)t._eachEntry(r[o],o)},F.prototype._eachEntry=function(t,e){var n=this,r=n._instanceConstructor;l(t)?t.constructor===r&&t._state!==it?(t._onerror=null,n._settledAt(t._state,e,t._result)):n._willSettleAt(r.resolve(t),e):(n._remaining--,n._result[e]=t)},F.prototype._settledAt=function(t,e,n){var r=this,o=r.promise;o._state===it&&(r._remaining--,t===ut?A(o,n):r._result[e]=n),0===r._remaining&&x(o,r._result)},F.prototype._willSettleAt=function(t,e){var n=this;S(t,void 0,function(t){n._settledAt(at,e,t)},function(t){n._settledAt(ut,e,t)})};var ft=U,pt=B,dt=N,ht=V,yt=0,vt=H;H.all=ft,H.race=pt,H.resolve=dt,H.reject=ht,H._setScheduler=c,H._setAsap=f,H._asap=Q,H.prototype={constructor:H,then:function(t,e){var n=this,r=n._state;if(r===at&&!t||r===ut&&!e)return this;var o=new this.constructor(g),i=n._result;if(r){var a=arguments[r-1];Q(function(){I(r,o,a,i)})}else S(n,o,t,e);return o},"catch":function(t){return this.then(null,t)}};var mt=Y,bt={Promise:vt,polyfill:mt};n(9).amd?(r=function(){return bt}.call(e,n,e,a),!(void 0!==r&&(a.exports=r))):"undefined"!=typeof a&&a.exports?a.exports=bt:"undefined"!=typeof this&&(this.ES6Promise=bt),mt()}).call(this),a.exports=i.Promise}).call(e,n(8),n(6).setImmediate,function(){return this}(),n(10)(t))},function(t,e,n){var r,o,i;(function(n){!function(n,a){o=[e,t],r=a,i="function"==typeof r?r.apply(e,o):r,!(void 0!==i&&(t.exports=i))}(this,function(t,e){"use strict";function r(){return"jsonp_"+Date.now()+"_"+Math.ceil(1e5*Math.random())}function o(t){try{delete window[t]}catch(e){window[t]=void 0}}function i(t){var e=document.getElementById(t);document.getElementsByTagName("head")[0].removeChild(e)}function a(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],a=t,s=e.timeout||u.timeout,l=e.jsonpCallback||u.jsonpCallback,c=void 0;return new n(function(t,u){var f=e.jsonpCallbackFunction||r(),p=l+"_"+f;window[f]=function(e){t({ok:!0,json:function(){return n.resolve(e)}}),c&&clearTimeout(c),i(p),o(f)},a+=a.indexOf("?")===-1?"?":"&";var d=document.createElement("script");d.setAttribute("src",""+a+l+"="+f),d.id=p,document.getElementsByTagName("head")[0].appendChild(d),c=setTimeout(function(){u(new Error("JSONP request to "+a+" timed out")),o(f),i(p)},s)})}var u={timeout:5e3,jsonpCallback:"callback",jsonpCallbackFunction:null};e.exports=a})}).call(e,n(17))},function(t,e){function n(t,e){for(var n in e)t.setAttribute(n,e[n])}function r(t,e){t.onload=function(){this.onerror=this.onload=null,e(null,t)},t.onerror=function(){this.onerror=this.onload=null,e(new Error("Failed to load "+this.src),t)}}function o(t,e){t.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,e(null,t))}}t.exports=function(t,e,i){var a=document.head||document.getElementsByTagName("head")[0],u=document.createElement("script");"function"==typeof e&&(i=e,e={}),e=e||{},i=i||function(){},u.type=e.type||"text/javascript",u.charset=e.charset||"utf8",u.async=!("async"in e)||!!e.async,u.src=t,e.attrs&&n(u,e.attrs),e.text&&(u.text=""+e.text);var s="onload"in u?r:o;s(u,i),u.onload||r(u,i),a.appendChild(u)}},function(t,e,n){"use strict";function r(t,e){return e.encode?e.strict?o(t):encodeURIComponent(t):t}var o=n(22),i=n(21);e.extract=function(t){return t.split("?")[1]||""},e.parse=function(t){var e=Object.create(null);return"string"!=typeof t?e:(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(t){var n=t.replace(/\+/g," ").split("="),r=n.shift(),o=n.length>0?n.join("="):void 0;r=decodeURIComponent(r),o=void 0===o?null:decodeURIComponent(o),void 0===e[r]?e[r]=o:Array.isArray(e[r])?e[r].push(o):e[r]=[e[r],o]}),e):e},e.stringify=function(t,e){var n={encode:!0,strict:!0};return e=i(n,e),t?Object.keys(t).sort().map(function(n){var o=t[n];if(void 0===o)return"";if(null===o)return r(n,e);if(Array.isArray(o)){var i=[];return o.slice().forEach(function(t){void 0!==t&&(null===t?i.push(r(n,e)):i.push(r(n,e)+"="+r(t,e)))}),i.join("&")}return r(n,e)+"="+r(o,e)}).filter(function(t){return t.length>0}).join("&"):""}},function(t,e){"use strict";function n(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function r(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(e).map(function(t){return e[t]});if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(t){o[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(i){return!1}}var o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;t.exports=r()?Object.assign:function(t,e){for(var r,a,u=n(t),s=1;s<arguments.length;s++){r=Object(arguments[s]);for(var l in r)o.call(r,l)&&(u[l]=r[l]);if(Object.getOwnPropertySymbols){a=Object.getOwnPropertySymbols(r);for(var c=0;c<a.length;c++)i.call(r,a[c])&&(u[a[c]]=r[a[c]])}}return u}},function(t,e){"use strict";t.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(c===setTimeout)return setTimeout(t,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(t,0);try{return c(t,0)}catch(e){try{return c.call(null,t,0)}catch(e){return c.call(this,t,0)}}}function i(t){if(f===clearTimeout)return clearTimeout(t);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function a(){y&&d&&(y=!1,d.length?h=d.concat(h):v=-1,h.length&&u())}function u(){if(!y){var t=o(a);y=!0;for(var e=h.length;e;){for(d=h,h=[];++v<e;)d&&d[v].run();v=-1,e=h.length}d=null,y=!1,i(t)}}function s(t,e){this.fun=t,this.array=e}function l(){}var c,f,p=t.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(t){c=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(t){f=r}}();var d,h=[],y=!1,v=-1;p.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];h.push(new s(t,e)),1!==h.length||y||o(u)},s.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=l,p.addListener=l,p.once=l,p.off=l,p.removeListener=l,p.removeAllListeners=l,p.emit=l,p.binding=function(t){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(t){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(t,e){},function(t,e){}]);
//# sourceMappingURL=ReactPlayer.js.map

@@ -223,2 +223,3 @@ 'use strict';

var style = {
width: '100%',
height: '100%',

@@ -225,0 +226,0 @@ display: this.props.url ? 'block' : 'none'

{
"name": "react-player",
"version": "0.12.0",
"version": "0.12.1",
"description": "A react component for playing a variety of URLs, including file paths, YouTube, SoundCloud, Streamable, Vidme and Vimeo",

@@ -60,3 +60,3 @@ "main": "lib/ReactPlayer.js",

"chai": "^3.5.0",
"css-loader": "^0.25.0",
"css-loader": "^0.26.0",
"es6-promise": "^4.0.3",

@@ -83,2 +83,3 @@ "exports-loader": "^0.6.3",

"sass-loader": "^4.0.2",
"screenfull": "^3.0.2",
"snazzy": "^5.0.0",

@@ -90,3 +91,3 @@ "standard": "^8.3.0",

"webpack-hot-middleware": "^2.12.2",
"whatwg-fetch": "^1.0.0"
"whatwg-fetch": "^2.0.1"
},

@@ -93,0 +94,0 @@ "dependencies": {

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