UNPKG

react-reflex

Version:

Flex layout component for advanced React web applications

15 lines 218 kB
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=32)}([function(e,t,n){"use strict";e.exports=n(39)},function(e,t,n){"use strict";var r=n(22);n.d(t,"a",(function(){return r.a}));var i=n(14);n.d(t,"d",(function(){return i.a}));var o=n(24);n.d(t,"b",(function(){return o.a}));var a=n(18);n.d(t,"c",(function(){return a.a}))},function(e,t,n){e.exports=n(46)()},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(20);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(20);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}e.exports=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(37);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(){return e.exports=n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(this,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(4);e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&i.push.apply(i,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach((function(t){r(e,t,n[t])}))}return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(38)},function(e,t,n){var r=n(42),i=n(43),o=n(44),a=n(45);e.exports=function(e){return r(e)||i(e)||o(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(17).default,i=n(3);e.exports=function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n.d(t,"a",(function(){return z}));var r=n(8),i=n.n(r),o=n(12),a=n.n(o),l=n(5),u=n.n(l),s=n(6),c=n.n(s),f=n(3),d=n.n(f),p=n(7),h=n.n(p),m=n(13),v=n.n(m),y=n(9),g=n.n(y),b=n(4),w=n.n(b),x=n(15),E=n(2),k=n.n(E),S=n(0),_=n.n(S);function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return v()(this,n)}}var z=function(e){h()(n,e);var t=T(n);function n(e){var r;return u()(this,n),r=t.call(this,e),w()(d()(r),"ref",_.a.createRef()),w()(d()(r),"onMouseMove",(function(e){if(r.state.active){var t=r.ref.current;r.props.events.emit("resize",{index:r.props.index,domElement:t,event:e}),r.props.onResize&&r.props.onResize({component:d()(r),domElement:t}),e.stopPropagation(),e.preventDefault()}})),w()(d()(r),"onMouseDown",(function(e){r.setState({active:!0}),r.props.onStartResize&&r.props.onStartResize({domElement:r.ref.current,component:d()(r)})||r.props.events.emit("startResize",{index:r.props.index,event:e})})),w()(d()(r),"onMouseUp",(function(e){r.state.active&&(r.setState({active:!1}),r.props.onStopResize&&r.props.onStopResize({domElement:r.ref.current,component:d()(r)}),r.props.events.emit("stopResize",{index:r.props.index,event:e}))})),r.state={active:!1},r.document=e.document,r}return c()(n,[{key:"componentDidMount",value:function(){this.document&&(this.document.addEventListener("touchend",this.onMouseUp),this.document.addEventListener("mouseup",this.onMouseUp),this.document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),this.document.addEventListener("touchmove",this.onMouseMove,{passive:!1}))}},{key:"componentWillUnmount",value:function(){this.document&&(this.document.removeEventListener("mouseup",this.onMouseUp),this.document.removeEventListener("touchend",this.onMouseUp),this.document.removeEventListener("mousemove",this.onMouseMove),this.document.removeEventListener("touchmove",this.onMouseMove),this.state.active&&this.props.events.emit("stopResize",{index:this.props.index,event:null}))}},{key:"render",value:function(){var e=[x.a.isMobile()?"reflex-thin":""].concat(a()(this.props.className.split(" ")),[this.state.active?"active":"","reflex-splitter"]).join(" ").trim();return _.a.createElement("div",i()({},Object(x.b)(this.props),{onTouchStart:this.onMouseDown,onMouseDown:this.onMouseDown,style:this.props.style,className:e,id:this.props.id,ref:this.ref}),this.props.children)}}],[{key:"isA",value:function(e){return!!e&&e.type===_.a.createElement(n,null).type}}]),n}(_.a.Component);w()(z,"propTypes",{children:k.a.oneOfType([k.a.arrayOf(k.a.node),k.a.node]),onStartResize:k.a.func,onStopResize:k.a.func,className:k.a.string,propagate:k.a.bool,onResize:k.a.func,style:k.a.object}),w()(z,"defaultProps",{document:"undefined"!=typeof document?document:null,onStartResize:null,onStopResize:null,propagate:!1,onResize:null,className:"",style:{}})},function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return f}));var r=n(4),i=n.n(r),o=n(10),a=n.n(o),l=n(5),u=n.n(l),s=n(6),c=n.n(s),f=function(){function e(){u()(this,e)}return c()(e,null,[{key:"isBrowser",value:function(){return"undefined"!=typeof window}},{key:"isOpera",value:function(){return e.isBrowser()&&e.getUserAgent().match(/Opera Mini/i)}},{key:"isFirefox",value:function(){return e.isBrowser()&&"undefined"!=typeof InstallTrigger}},{key:"isSafari",value:function(){return!!e.isBrowser()&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{key:"isIE",value:function(){ /*@cc_on!@*/ return e.isBrowser()&&!!document.documentMode}},{key:"isEdge",value:function(){return e.isBrowser()&&!e.isIE()&&!!window.StyleMedia}},{key:"isChrome",value:function(){return e.isBrowser()&&!!window.chrome&&!!window.chrome.webstore}},{key:"isBlink",value:function(){return e.isBrowser()&&(e.isChrome()||e.isOpera())&&!!window.CSS}},{key:"getUserAgent",value:function(){return"undefined"==typeof navigator?"":navigator.userAgent}},{key:"isAndroid",value:function(){return e.isBrowser()&&e.getUserAgent().match(/Android/i)}},{key:"isBlackBerry",value:function(){return e.isBrowser()&&e.getUserAgent().match(/BlackBerry/i)}},{key:"isIOS",value:function(){return e.isBrowser()&&e.getUserAgent().match(/iPhone|iPad|iPod/i)}},{key:"isWindows",value:function(){return e.isBrowser()&&e.isWindowsDesktop()||e.isWindowsMobile()}},{key:"isWindowsMobile",value:function(){return e.isBrowser()&&e.getUserAgent().match(/IEMobile/i)}},{key:"isWindowsDesktop",value:function(){return e.isBrowser()&&e.getUserAgent().match(/WPDesktop/i)}},{key:"isMobile",value:function(){return e.isBrowser()&&(e.isWindowsMobile()||e.isBlackBerry()||e.isAndroid()||e.isIOS())}}]),e}(),d=function(e){return Object.keys(e).reduce((function(t,n){return"data-"===n.substr(0,5)?a()({},t,i()({},n,e[n])):t}),{})}},function(e,t,n){(function(t,n){ /*! * @overview es6-promise - a tiny implementation of Promises/A+. * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) * @license Licensed under MIT license * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE * @version v4.2.8+1e68dce6 */var r;r=function(){"use strict";function e(e){return"function"==typeof e}var r=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=0,o=void 0,a=void 0,l=function(e,t){h[i]=e,h[i+1]=t,2===(i+=2)&&(a?a(m):w())},u="undefined"!=typeof window?window:void 0,s=u||{},c=s.MutationObserver||s.WebKitMutationObserver,f="undefined"==typeof self&&void 0!==t&&"[object process]"==={}.toString.call(t),d="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function p(){var e=setTimeout;return function(){return e(m,1)}}var h=new Array(1e3);function m(){for(var e=0;e<i;e+=2)(0,h[e])(h[e+1]),h[e]=void 0,h[e+1]=void 0;i=0}var v,y,g,b,w=void 0;function x(e,t){var n=this,r=new this.constructor(S);void 0===r[k]&&L(r);var i=n._state;if(i){var o=arguments[i-1];l((function(){return M(i,r,o,n._result)}))}else O(n,r,e,t);return r}function E(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(S);return T(t,e),t}f?w=function(){return t.nextTick(m)}:c?(y=0,g=new c(m),b=document.createTextNode(""),g.observe(b,{characterData:!0}),w=function(){b.data=y=++y%2}):d?((v=new MessageChannel).port1.onmessage=m,w=function(){return v.port2.postMessage(0)}):w=void 0===u?function(){try{var e=Function("return this")().require("vertx");return void 0!==(o=e.runOnLoop||e.runOnContext)?function(){o(m)}:p()}catch(e){return p()}}():p();var k=Math.random().toString(36).substring(2);function S(){}function _(t,n,r){n.constructor===t.constructor&&r===x&&n.constructor.resolve===E?function(e,t){1===t._state?C(e,t._result):2===t._state?P(e,t._result):O(t,void 0,(function(t){return T(e,t)}),(function(t){return P(e,t)}))}(t,n):void 0===r?C(t,n):e(r)?function(e,t,n){l((function(e){var r=!1,i=function(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}(n,t,(function(n){r||(r=!0,t!==n?T(e,n):C(e,n))}),(function(t){r||(r=!0,P(e,t))}),e._label);!r&&i&&(r=!0,P(e,i))}),e)}(t,n,r):C(t,n)}function T(e,t){if(e===t)P(e,new TypeError("You cannot resolve a promise with itself"));else if(i=typeof(r=t),null===r||"object"!==i&&"function"!==i)C(e,t);else{var n=void 0;try{n=t.then}catch(t){return void P(e,t)}_(e,t,n)}var r,i}function z(e){e._onerror&&e._onerror(e._result),R(e)}function C(e,t){void 0===e._state&&(e._result=t,e._state=1,0!==e._subscribers.length&&l(R,e))}function P(e,t){void 0===e._state&&(e._state=2,e._result=t,l(z,e))}function O(e,t,n,r){var i=e._subscribers,o=i.length;e._onerror=null,i[o]=t,i[o+1]=n,i[o+2]=r,0===o&&e._state&&l(R,e)}function R(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,i=void 0,o=e._result,a=0;a<t.length;a+=3)r=t[a],i=t[a+n],r?M(n,r,i,o):i(o);e._subscribers.length=0}}function M(t,n,r,i){var o=e(r),a=void 0,l=void 0,u=!0;if(o){try{a=r(i)}catch(e){u=!1,l=e}if(n===a)return void P(n,new TypeError("A promises callback cannot return that same promise."))}else a=i;void 0!==n._state||(o&&u?T(n,a):!1===u?P(n,l):1===t?C(n,a):2===t&&P(n,a))}var N=0;function L(e){e[k]=N++,e._state=void 0,e._result=void 0,e._subscribers=[]}var A=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(S),this.promise[k]||L(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?C(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&C(this.promise,this._result))):P(this.promise,new Error("Array Methods must be provided an Array"))}return e.prototype._enumerate=function(e){for(var t=0;void 0===this._state&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===E){var i=void 0,o=void 0,a=!1;try{i=e.then}catch(e){a=!0,o=e}if(i===x&&void 0!==e._state)this._settledAt(e._state,t,e._result);else if("function"!=typeof i)this._remaining--,this._result[t]=e;else if(n===I){var l=new n(S);a?P(l,o):_(l,e,i),this._willSettleAt(l,t)}else this._willSettleAt(new n((function(t){return t(e)})),t)}else this._willSettleAt(r(e),t)},e.prototype._settledAt=function(e,t,n){var r=this.promise;void 0===r._state&&(this._remaining--,2===e?P(r,n):this._result[t]=n),0===this._remaining&&C(r,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;O(e,void 0,(function(e){return n._settledAt(1,t,e)}),(function(e){return n._settledAt(2,t,e)}))},e}(),I=function(){function t(e){this[k]=N++,this._result=this._state=void 0,this._subscribers=[],S!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(e,t){try{t((function(t){T(e,t)}),(function(t){P(e,t)}))}catch(t){P(e,t)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return t.prototype.catch=function(e){return this.then(null,e)},t.prototype.finally=function(t){var n=this.constructor;return e(t)?this.then((function(e){return n.resolve(t()).then((function(){return e}))}),(function(e){return n.resolve(t()).then((function(){throw e}))})):this.then(t,t)},t}();return I.prototype.then=x,I.all=function(e){return new A(this,e).promise},I.race=function(e){var t=this;return r(e)?new t((function(n,r){for(var i=e.length,o=0;o<i;o++)t.resolve(e[o]).then(n,r)})):new t((function(e,t){return t(new TypeError("You must pass an array to race."))}))},I.resolve=E,I.reject=function(e){var t=new this(S);return P(t,e),t},I._setScheduler=function(e){a=e},I._setAsap=function(e){l=e},I._asap=l,I.polyfill=function(){var e=void 0;if(void 0!==n)e=n;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===r&&!t.cast)return}e.Promise=I},I.Promise=I,I},e.exports=r()}).call(this,n(35),n(19))},function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n.d(t,"a",(function(){return z}));var r=n(8),i=n.n(r),o=n(12),a=n.n(o),l=n(5),u=n.n(l),s=n(6),c=n.n(s),f=n(3),d=n.n(f),p=n(7),h=n.n(p),m=n(13),v=n.n(m),y=n(9),g=n.n(y),b=n(4),w=n.n(b),x=n(15),E=n(2),k=n.n(E),S=n(0),_=n.n(S);function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return v()(this,n)}}var z=function(e){h()(n,e);var t=T(n);function n(e){var r;return u()(this,n),r=t.call(this,e),w()(d()(r),"ref",_.a.createRef()),w()(d()(r),"onMouseMove",(function(e){if(r.state.active){var t=r.ref.current;r.props.events.emit("resize",{index:r.props.index,domElement:t,event:e}),r.props.onResize&&r.props.onResize({component:d()(r),domElement:t}),e.stopPropagation(),e.preventDefault()}})),w()(d()(r),"onMouseDown",(function(e){r.setState({active:!0}),r.props.onStartResize&&r.props.onStartResize({domElement:r.ref.current,component:d()(r)})||r.props.events.emit("startResize",{index:r.props.index,event:e})})),w()(d()(r),"onMouseUp",(function(e){r.state.active&&(r.setState({active:!1}),r.props.onStopResize&&r.props.onStopResize({domElement:r.ref.current,component:d()(r)}),r.props.events.emit("stopResize",{index:r.props.index,event:e}))})),r.state={active:!1},r.document=e.document,r}return c()(n,[{key:"componentDidMount",value:function(){this.document&&(this.document.addEventListener("touchend",this.onMouseUp),this.document.addEventListener("mouseup",this.onMouseUp),this.document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),this.document.addEventListener("touchmove",this.onMouseMove,{passive:!1}))}},{key:"componentWillUnmount",value:function(){this.document&&(this.document.removeEventListener("mouseup",this.onMouseUp),this.document.removeEventListener("touchend",this.onMouseUp),this.document.removeEventListener("mousemove",this.onMouseMove),this.document.removeEventListener("touchmove",this.onMouseMove),this.state.active&&this.props.events.emit("stopResize",{index:this.props.index,event:null}))}},{key:"render",value:function(){var e=[].concat(a()(this.props.className.split(" ")),[this.state.active?"active":"","reflex-handle"]).join(" ").trim();return _.a.createElement("div",i()({},Object(x.b)(this.props),{onTouchStart:this.onMouseDown,onMouseDown:this.onMouseDown,style:this.props.style,className:e,id:this.props.id,ref:this.ref}),this.props.children)}}],[{key:"isA",value:function(e){return!!e&&e.type===n}}]),n}(_.a.Component);w()(z,"propTypes",{children:k.a.oneOfType([k.a.arrayOf(k.a.node),k.a.node]),onStartResize:k.a.func,onStopResize:k.a.func,className:k.a.string,propagate:k.a.bool,onResize:k.a.func,style:k.a.object}),w()(z,"defaultProps",{document:"undefined"==typeof document?null:document,onStartResize:null,onStopResize:null,propagate:!1,onResize:null,className:"",style:{}})},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(17).default,i=n(36);e.exports=function(e){var t=i(e,"string");return"symbol"===r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT */var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,l,u=a(e),s=1;s<arguments.length;s++){for(var c in n=Object(arguments[s]))i.call(n,c)&&(u[c]=n[c]);if(r){l=r(n);for(var f=0;f<l.length;f++)o.call(n,l[f])&&(u[l[f]]=n[l[f]])}}return u}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return R}));var r=n(8),i=n.n(r),o=n(10),a=n.n(o),l=n(12),u=n.n(l),s=n(5),c=n.n(s),f=n(6),d=n.n(f),p=n(3),h=n.n(p),m=n(7),v=n.n(m),y=n(13),g=n.n(y),b=n(9),w=n.n(b),x=n(4),E=n.n(x),k=n(14),S=n(27),_=n(15),T=n(2),z=n.n(T),C=n(0),P=n.n(C);n(48);function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w()(e);if(t){var i=w()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return g()(this,n)}}var R=function(t){v()(r,t);var n=O(r);function r(t){var i;return c()(this,r),i=n.call(this,t),E()(h()(i),"onWindowResize",(function(){i.setState({flexData:i.computeFlexData()})})),E()(h()(i),"onStartResize",(function(e){var t=e.event.changedTouches?e.event.changedTouches[0]:e.event;switch(i.props.orientation){case"horizontal":document.body.classList.add("reflex-row-resize"),i.previousPos=t.clientY;break;case"vertical":default:document.body.classList.add("reflex-col-resize"),i.previousPos=t.clientX}i.elements=[i.children[e.index-1],i.children[e.index+1]],i.emitElementsEvent(i.elements,"onStartResize")})),E()(h()(i),"onResize",(function(e){var t=e.event.changedTouches?e.event.changedTouches[0]:e.event,n=i.getOffset(t,e.domElement);switch(i.props.orientation){case"horizontal":i.previousPos=t.clientY;break;case"vertical":default:i.previousPos=t.clientX}if(n){var r=i.computeAvailableOffset(e.index,n);r&&(i.elements=i.dispatchOffset(e.index,r),i.adjustFlex(i.elements),i.setState({resizing:!0},(function(){i.emitElementsEvent(i.elements,"onResize")})))}})),E()(h()(i),"onStopResize",(function(e){document.body.classList.remove("reflex-row-resize"),document.body.classList.remove("reflex-col-resize");var t=i.elements?i.elements.map((function(e){return e.ref})):[],n=i.children.filter((function(e){return!k.a.isA(e)&&t.includes(e.ref)}));i.emitElementsEvent(n,"onStopResize"),i.setState({resizing:!1})})),E()(h()(i),"onElementSize",(function(t){return new e((function(e){try{var n=t.index,r=i.getSize(i.children[n]),o=t.size-r,a=t.direction,l=n+a,u=i.computeAvailableOffset(l,a*o);i.elements=null,u&&(i.elements=i.dispatchOffset(l,u),i.adjustFlex(i.elements)),i.setState(i.state,(function(){i.emitElementsEvent(i.elements,"onResize"),e()}))}catch(e){console.log(e)}}))})),i.events=new S.a,i.children=[],i.state={flexData:[]},i.ref=P.a.createRef(),i}return d()(r,[{key:"componentDidMount",value:function(){var e=this.computeFlexData(),t=this.props.windowResizeAware;t&&window.addEventListener("resize",this.onWindowResize),this.setState({windowResizeAware:t,flexData:e}),this.events.on("element.size",this.onElementSize),this.events.on("startResize",this.onStartResize),this.events.on("stopResize",this.onStopResize),this.events.on("resize",this.onResize)}},{key:"componentWillUnmount",value:function(){this.events.off(),window.removeEventListener("resize",this.onWindowResize)}},{key:"getValidChildren",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;return this.toArray(e.children).filter((function(e){return!!e}))}},{key:"componentDidUpdate",value:function(e,t){var n=this.getValidChildren(this.props);if(n.length!==this.state.flexData.length||e.orientation!==this.props.orientation||this.flexHasChanged(e)){var r=this.computeFlexData(n,this.props);this.setState({flexData:r})}this.props.windowResizeAware!==this.state.windowResizeAware&&(this.props.windowResizeAware?window.addEventListener("resize",this.onWindowResize):window.removeEventListener("resize",this.onWindowResize),this.setState({windowResizeAware:this.props.windowResizeAware}))}},{key:"flexHasChanged",value:function(e){var t=this.getValidChildren(e).map((function(e){return e.props.flex||0}));return!this.getValidChildren().map((function(e){return e.props.flex||0})).every((function(e,n){return e===t[n]}))}},{key:"getSize",value:function(e){var t,n,r,i=null==e||null===(t=e.ref)||void 0===t?void 0:t.current;switch(this.props.orientation){case"horizontal":return null!==(n=null==i?void 0:i.offsetHeight)&&void 0!==n?n:0;case"vertical":default:return null!==(r=null==i?void 0:i.offsetWidth)&&void 0!==r?r:0}}},{key:"getOffset",value:function(e,t){var n=t.getBoundingClientRect(),r=n.top,i=n.bottom,o=n.left,a=n.right;switch(this.props.orientation){case"horizontal":var l=e.clientY-this.previousPos;if(l>0){if(e.clientY>=r)return l}else if(e.clientY<=i)return l;break;case"vertical":default:var u=e.clientX-this.previousPos;if(u>0){if(e.clientX>o)return u}else if(e.clientX<a)return u}return 0}},{key:"adjustFlex",value:function(e){var t=this,n=e.reduce((function(n,r){var i=r.props.index;return n+(r.props.flex-t.state.flexData[i].flex)/e.length}),0);e.forEach((function(e){t.state.flexData[e.props.index].flex+=n}))}},{key:"computeAvailableOffset",value:function(e,t){var n=this.computeAvailableStretch(e,t),r=this.computeAvailableShrink(e,t);return Math.min(n,r)*Math.sign(t)}},{key:"checkPropagate",value:function(e,t){if(t>0){if(e<this.children.length-2){var n=this.children[e+2];return k.a.isA(n)&&n.props.propagate}}else if(e>2){var r=this.children[e-2];return k.a.isA(r)&&r.props.propagate}return!1}},{key:"computeAvailableStretch",value:function(e,t){var n,r=t<0?e+1:e-1,i=this.children[r],o=this.getSize(i),a=(null!==(n=null==i?void 0:i.props.maxSize)&&void 0!==n?n:0)-o;if(a<Math.abs(t)&&this.checkPropagate(e,-1*t)){var l=Math.sign(t)*(Math.abs(t)-a);return a+this.computeAvailableStretch(t<0?e+2:e-2,l)}return Math.min(a,Math.abs(t))}},{key:"computeAvailableShrink",value:function(e,t){var n,r=t>0?e+1:e-1,i=this.children[r],o=this.getSize(i)-Math.max(null!==(n=null==i?void 0:i.props.minSize)&&void 0!==n?n:0,0);if(o<Math.abs(t)&&this.checkPropagate(e,t)){var a=Math.sign(t)*(Math.abs(t)-o);return o+this.computeAvailableShrink(t>0?e+2:e-2,a)}return Math.min(o,Math.abs(t))}},{key:"computePixelFlex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.orientation;if(!this.ref.current)return console.warn("Unable to locate ReflexContainer dom node"),0;switch(e){case"horizontal":return 0===this.ref.current.offsetHeight?(console.warn("Found ReflexContainer with height=0, this will cause invalid behavior..."),console.warn(this.ref.current),0):1/this.ref.current.offsetHeight;case"vertical":default:return 0===this.ref.current.offsetWidth?(console.warn("Found ReflexContainer with width=0, this will cause invalid behavior..."),console.warn(this.ref.current),0):1/this.ref.current.offsetWidth}}},{key:"addOffset",value:function(e,t){var n=this.getSize(e),r=e.props.index,i=Math.max(n+t,0),o=this.state.flexData[r].flex,a=o>0?o*i/n:this.computePixelFlex()*i;this.state.flexData[r].flex=!isFinite(a)||isNaN(a)?0:a}},{key:"dispatchStretch",value:function(e,t){var n=t<0?e+1:e-1;if(n<0||n>this.children.length-1)return[];var r=this.children[n],i=this.getSize(r),o=Math.min(r.props.maxSize,i+Math.abs(t))-i;if(this.addOffset(r,o),o<Math.abs(t)){var a=e-2*Math.sign(t),l=Math.sign(t)*(Math.abs(t)-o);return[r].concat(u()(this.dispatchStretch(a,l)))}return[r]}},{key:"dispatchShrink",value:function(e,t){var n=t>0?e+1:e-1;if(n<0||n>this.children.length-1)return[];var r=this.children[n],i=this.getSize(r),o=Math.max(r.props.minSize,i-Math.abs(t))-i;if(this.addOffset(r,o),Math.abs(o)<Math.abs(t)){var a=e+2*Math.sign(t),l=Math.sign(t)*(Math.abs(t)+o);return[r].concat(u()(this.dispatchShrink(a,l)))}return[r]}},{key:"dispatchOffset",value:function(e,t){return[].concat(u()(this.dispatchStretch(e,t)),u()(this.dispatchShrink(e,t)))}},{key:"emitElementsEvent",value:function(e,t){this.toArray(e).forEach((function(e){e.props[t]&&e.props[t]({domElement:e.ref.current,component:e})}))}},{key:"computeFlexData",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getValidChildren(),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props,r=this.computePixelFlex(n.orientation),i=function(e){return e.reduce((function(e,t){return!k.a.isA(t)&&t.constrained?e-t.flex:e}),1)},o=function(e){return e.reduce((function(e,t){return k.a.isA(t)||t.constrained?e:e+1}),0)},l=t.map((function(e){var t=e.props;return{maxFlex:(t.maxSize||Number.MAX_VALUE)*r,sizeFlex:(t.size||Number.MAX_VALUE)*r,minFlex:(t.minSize||1)*r,constrained:void 0!==t.flex,flex:t.flex||0,type:e.type}})),u=function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,l=!1,u=o(n),s=i(n),c=n.map((function(e){if(k.a.isA(e))return e;var t=e.constrained?e.flex:s/u,n=Math.min(e.sizeFlex,Math.min(e.maxFlex,Math.max(e.minFlex,t))),r=e.constrained||n!==t;return l=l||r,a()({},e,{flex:n,constrained:r})}));return l&&r<e.props.maxRecDepth?t(c,r+1):c},s=u(l);return s.map((function(e){return{flex:k.a.isA(e)?0:e.flex,ref:P.a.createRef()}}))}},{key:"toArray",value:function(e){return e?Array.isArray(e)?e:[e]:[]}},{key:"render",value:function(){var e=this,t=[this.state.resizing?"reflex-resizing":""].concat(u()(this.props.className.split(" ")),[this.props.orientation,"reflex-container"]).join(" ").trim();return this.children=P.a.Children.map(this.getValidChildren(),(function(t,n){if(n>e.state.flexData.length-1)return P.a.createElement("div",null);var r=e.state.flexData[n],i=a()({},t.props,{maxSize:t.props.maxSize||Number.MAX_VALUE,orientation:e.props.orientation,minSize:t.props.minSize||1,events:e.events,flex:r.flex,ref:r.ref,index:n});return P.a.cloneElement(t,i)})),P.a.createElement("div",i()({},Object(_.b)(this.props),{style:this.props.style,className:t,ref:this.ref}),this.children)}}]),r}(P.a.Component);E()(R,"propTypes",{windowResizeAware:z.a.bool,orientation:z.a.oneOf(["horizontal","vertical"]),maxRecDepth:z.a.number,className:z.a.string,style:z.a.object}),E()(R,"defaultProps",{orientation:"horizontal",windowResizeAware:!1,maxRecDepth:100,className:"",style:{}})}).call(this,n(16))},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";(function(e){var r=n(17),i=n.n(r),o=n(8),a=n.n(o),l=n(12),u=n.n(l),s=n(28),c=n.n(s),f=n(10),d=n.n(f),p=n(5),h=n.n(p),m=n(6),v=n.n(m),y=n(3),g=n.n(y),b=n(7),w=n.n(b),x=n(13),E=n.n(x),k=n(9),S=n.n(k),_=n(4),T=n.n(_),z=n(18),C=n(15),P=n(29),O=n.n(P),R=n(31),M=n(2),N=n.n(M),L=n(0),A=n.n(L);function I(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */I=function(){return t};var t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),l=new z(r||[]);return o(a,"_invoke",{value:k(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var p={};function h(){}function m(){}function v(){}var y={};c(y,l,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(C([])));b&&b!==n&&r.call(b,l)&&(y=b);var w=v.prototype=h.prototype=Object.create(y);function x(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){var n;o(this,"_invoke",{value:function(o,a){function l(){return new t((function(n,l){!function n(o,a,l,u){var s=d(e[o],e,a);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==i()(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,l,u)}),(function(e){n("throw",e,l,u)})):t.resolve(f).then((function(e){c.value=e,l(c)}),(function(e){return n("throw",e,l,u)}))}u(s.arg)}(o,a,n,l)}))}return n=n?n.then(l,l):l()}})}function k(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return P()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var l=S(a,n);if(l){if(l===p)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=d(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var i=d(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,p;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function z(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function C(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:P}}function P(){return{value:void 0,done:!0}}return m.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:m,configurable:!0}),m.displayName=c(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},x(E.prototype),c(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(n,r,i,o,a){void 0===a&&(a=e);var l=new E(f(n,r,i,o),a);return t.isGeneratorFunction(r)?l:l.next().then((function(e){return e.done?e.value:l.next()}))},x(w),c(w,s,"Generator"),c(w,l,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=C,z.prototype={constructor:z,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var l=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(l&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},t}function D(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=S()(e);if(t){var i=S()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return E()(this,n)}}var U=function(e){return e?Array.isArray(e)?e:[e]:[]},B=function(e){w()(n,e);var t=F(n);function n(e){var r;return h()(this,n),r=t.call(this,e),T()(g()(r),"onResize",(function(e){var t=r.props,n=t.resizeHeight,i=t.resizeWidth,o=e.bounds,a=o.height,l=o.width;r.setDimensions(d()({},n&&{height:a},i&&{width:l}))})),r.setDimensions=O()((function(e){r.setState(e)}),r.props.propagateDimensionsRate/1e3),r.state={height:"100%",width:"100%"},r}return v()(n,[{key:"renderChildren",value:function(){var e=this,t=this.props.propagateDimensions,n=U(this.props.children).filter((function(e){return!!e}));return A.a.Children.map(n,(function(n){return e.props.withHandle||z.a.isA(n)?A.a.cloneElement(n,d()({dimensions:t&&e.state},n.props,{index:e.props.index-1,events:e.props.events})):t?A.a.cloneElement(n,d()({},n.props,{dimensions:e.state})):n}))}},{key:"render",value:function(){var e=this;return A.a.createElement(R.a,{bounds:!0,onResize:this.onResize},(function(t){var n=t.measureRef;return A.a.createElement("div",{ref:n,className:"reflex-size-aware"},A.a.createElement("div",{style:e.state},e.renderChildren()))}))}}]),n}(A.a.Component),W=function(e){w()(r,e);var t,n=F(r);function r(e){var t;return h()(this,r),(t=n.call(this,e)).state={size:e.size},t}return v()(r,[{key:"componentDidUpdate",value:(t=c()(I().mark((function e(t,n,r){var i,o,a,l;return I().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.size===this.state.size){e.next=19;break}i=U(this.props.direction),o=D(i),e.prev=3,o.s();case 5:if((a=o.n()).done){e.next=11;break}return l=a.value,e.next=9,this.props.events.emit("element.size",{index:this.props.index,size:this.props.size,direction:l});case 9:e.next=5;break;case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(3),o.e(e.t0);case 16:return e.prev=16,o.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[3,13,16,19]])}))),function(e,n,r){return t.apply(this,arguments)})},{key:"renderChildren",value:function(){var e=this,t=U(this.props.children).filter((function(e){return!!e}));return A.a.Children.map(t,(function(t){return e.props.withHandle||z.a.isA(t)?A.a.cloneElement(t,d()({},t.props,{index:e.props.index-1,events:e.props.events})):t}))}},{key:"render",value:function(){var e=[].concat(u()(this.props.className.split(" ")),[this.props.orientation,"reflex-element"]).join(" ").trim(),t=d()({},this.props.style,{flexGrow:this.props.flex,flexShrink:1,flexBasis:"0%"});return A.a.createElement("div",a()({},Object(C.b)(this.props),{ref:this.props.innerRef,className:e,style:t}),this.props.propagateDimensions?A.a.createElement(B,this.props):this.renderChildren())}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.size!==t.size?d()({},t,{size:e.size}):null}}]),r}(A.a.Component);T()(W,"propTypes",{propagateDimensions:N.a.bool,resizeHeight:N.a.bool,resizeWidth:N.a.bool,className:N.a.string,size:N.a.number}),T()(W,"defaultProps",{propagateDimensionsRate:100,propagateDimensions:!1,resizeHeight:!0,resizeWidth:!0,direction:[1],className:""}),t.a=A.a.forwardRef((function(e,t){return A.a.createElement(W,a()({innerRef:t},e))}))}).call(this,n(16))},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),o=r.sources.map((function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"}));return[n].concat(o).concat([i]).join("\n")}var a;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var a=e[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){var r,i,o={},a=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===i&&(i=r.apply(this,arguments)),i}),l=function(e,t){return t?t.querySelector(e):document.querySelector(e)},u=function(e){var t={};return function(e,n){if("function"==typeof e)return e();if(void 0===t[e]){var r=l.call(this,e,n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}}(),s=null,c=0,f=[],d=n(51);function p(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=o[r.id];if(i){i.refs++;for(var a=0;a<i.parts.length;a++)i.parts[a](r.parts[a]);for(;a<r.parts.length;a++)i.parts.push(b(r.parts[a],t))}else{var l=[];for(a=0;a<r.parts.length;a++)l.push(b(r.parts[a],t));o[r.id]={id:r.id,refs:1,parts:l}}}}function h(e,t){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],a=t.base?o[0]+t.base:o[0],l={css:o[1],media:o[2],sourceMap:o[3]};r[a]?r[a].parts.push(l):n.push(r[a]={id:a,parts:[l]})}return n}function m(e,t){var n=u(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=f[f.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),f.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var i=u(e.insertAt.before,n);n.insertBefore(t,i)}}function v(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=f.indexOf(e);t>=0&&f.splice(t,1)}function y(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var r=function(){0;return n.nc}();r&&(e.attrs.nonce=r)}return g(t,e.attrs),m(e,t),t}function g(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function b(e,t){var n,r,i,o;if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}if(t.singleton){var a=c++;n=s||(s=y(t)),r=E.bind(null,n,a,!1),i=E.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",g(t,e.attrs),m(e,t),t}(t),r=S.bind(null,n,t),i=function(){v(n),n.href&&URL.revokeObjectURL(n.href)}):(n=y(t),r=k.bind(null,n),i=function(){v(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=h(e,t);return p(n,t),function(e){for(var r=[],i=0;i<n.length;i++){var a=n[i];(l=o[a.id]).refs--,r.push(l)}e&&p(h(e,t),t);for(i=0;i<r.length;i++){var l;if(0===(l=r[i]).refs){for(var u=0;u<l.parts.length;u++)l.parts[u]();delete o[l.id]}}}};var w,x=(w=[],function(e,t){return w[e]=t,w.filter(Boolean).join("\n")});function E(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=x(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function k(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function S(e,t,n){var r=n.css,i=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||o)&&(r=d(r)),i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([r],{type:"text/css"}),l=e.href;e.href=URL.createObjectURL(a),l&&URL.revokeObjectURL(l)}},function(e,t,n){"use strict";var r=n(5),i=n.n(r),o=n(6),a=n.n(o),l=function(){function e(){i()(this,e),this._events={}}return a()(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n._events[e]=n._events[e]||[],n._events[e].push(t)})),this}},{key:"off",value:function(e,t){var n=this;if(null!=e)return e.split(" ").forEach((function(e){e in n._events!=!1&&(t?n._events[e].splice(n._events[e].indexOf(t),1):n._events[e]=[])})),this;this._events={}}},{key:"emit",value:function(e){if(void 0!==this._events[e])for(var t=this._events[e].slice(),n=0;n<t.length;++n){var r=t[n].apply(this,Array.prototype.slice.call(arguments,1));if(void 0!==r)return r}}}]),e}();t.a=l},function(e,t,n){(function(t){function n(e,n,r,i,o,a,l){try{var u=e[a](l),s=u.value}catch(e){return void r(e)}u.done?n(s):t.resolve(s).then(i,o)}e.exports=function(e){return function(){var r=this,i=arguments;return new t((function(t,o){var a=e.apply(r,i);function l(e){n(a,t,o,l,u,"next",e)}function u(e){n(a,t,o,l,u,"throw",e)}l(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports}).call(this,n(16))},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,l="object"==typeof t&&t&&t.Object===Object&&t,u="object"==typeof self&&self&&self.Object===Object&&self,s=l||u||Function("return this")(),c=Object.prototype.toString,f=Math.max,d=Math.min,p=function(){return s.Date.now()};function h(e,t,n){var r,i,o,a,l,u,s=0,c=!1,h=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var n=r,o=i;return r=i=void 0,s=t,a=e.apply(o,n)}function b(e){return s=e,l=setTimeout(x,t),c?g(e):a}function w(e){var n=e-u;return void 0===u||n>=t||n<0||h&&e-s>=o}function x(){var e=p();if(w(e))return E(e);l=setTimeout(x,function(e){var n=t-(e-u);return h?d(n,o-(e-s)):n}(e))}function E(e){return l=void 0,y&&r?g(e):(r=i=void 0,a)}function k(){var e=p(),n=w(e);if(r=arguments,i=this,u=e,n){if(void 0===l)return b(u);if(h)return l=setTimeout(x,t),g(u)}return void 0===l&&(l=setTimeout(x,t)),a}return t=v(t)||0,m(n)&&(c=!!n.leading,o=(h="maxWait"in n)?f(v(n.maxWait)||0,t):o,y="trailing"in n?!!n.trailing:y),k.cancel=function(){void 0!==l&&clearTimeout(l),s=0,r=u=i=l=void 0},k.flush=function(){return void 0===l?a:E(p())},k}function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Sym