UNPKG

react-leap-feature-selector

Version:
5 lines 53.1 kB
/*! * react-leap-feature-selector v0.1.1 * MIT Licensed */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.LeapFeatureSelector=t(require("react")):e.LeapFeatureSelector=t(e.React)}("undefined"!=typeof self?self:this,function(e){return function(e){var t={};function n(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:a})},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=11)}([function(t,n){t.exports=e},function(e,t,n){e.exports=n(18)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.screenClasses=["xs","sm","md","lg","xl"];var a=t.defaultBreakpoints=[576,768,992,1200];t.defaultContainerWidths=[540,750,960,1140],t.defaultGutterWidth=30,t.getScreenClass=function(e){var t=e.serverSideScreenClass,n=e.breakpoints,r=n&&n.length?n:a,i=t||"xl",o="undefined"!=typeof window&&window.innerWidth?window.innerWidth:null;return o&&(i="xs",r[0]&&o>=r[0]&&(i="sm"),r[1]&&o>=r[1]&&(i="md"),r[2]&&o>=r[2]&&(i="lg"),r[3]&&o>=r[3]&&(i="xl")),i},t.normalizeColumnWidth=function(e){return Math.max(0,Math.min(12,e))}},function(e,t,n){var a=n(22),r=n(4),i="Expected a function";e.exports=function(e,t,n){var o=!0,s=!0;if("function"!=typeof e)throw new TypeError(i);return r(n)&&(o="leading"in n?!!n.leading:o,s="trailing"in n?!!n.trailing:s),a(e,t,{leading:o,maxWait:t,trailing:s})}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a="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},r=o(n(0)),i=o(n(1));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t=e.children;return t?"function"==typeof t?t():"object"===(void 0===t?"undefined":a(t))&&Array.isArray(t)?r.default.createElement("div",null,t):t:null};s.propTypes={children:i.default.oneOfType([i.default.element,i.default.node,i.default.func])},s.defaultProps={children:null},t.default=s},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var a=n(24),r="object"==typeof self&&self&&self.Object===Object&&self,i=a||r||Function("return this")();e.exports=i},function(e,t,n){var a=n(7).Symbol;e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=s(n(0)),r=s(n(1)),i=s(n(10)),o=n(37);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var s=arguments.length,c=Array(s),f=0;f<s;f++)c[f]=arguments[f];return n=r=l(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),r.render=function(){return a.default.createElement(i.default,{xs:r.props.xs,sm:r.props.sm,md:r.props.md,lg:r.props.lg,xl:r.props.xl},a.default.createElement("div",{style:(0,o.getAfterStyle)()},a.default.createElement("span",{style:(0,o.getAfterContentStyle)()}," ")))},l(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default.Component),t}();c.propTypes={xs:r.default.bool,sm:r.default.bool,md:r.default.bool,lg:r.default.bool,xl:r.default.bool},c.defaultProps={xs:!1,sm:!1,md:!1,lg:!1,xl:!1},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=c(n(0)),r=c(n(1)),i=c(n(3)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(36)),s=n(2),l=c(n(5));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var c=arguments.length,d=Array(c),u=0;u<c;u++)d[u]=arguments[u];return n=r=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(d))),r.componentWillMount=function(){r.setScreenClass()},r.componentDidMount=function(){r.eventListener=(0,i.default)(r.setScreenClass,100),window.addEventListener("resize",r.eventListener)},r.componentWillUnmount=function(){r.eventListener.cancel(),window.removeEventListener("resize",r.eventListener)},r.setScreenClass=function(){r.setState({screenClass:(0,s.getScreenClass)(r.context)})},r.render=function(){return!!o.visible({screenClass:r.state.screenClass,xs:r.props.xs,sm:r.props.sm,md:r.props.md,lg:r.props.lg,xl:r.props.xl})&&a.default.createElement(l.default,null,r.props.children)},f(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default.Component),t}();d.propTypes={children:r.default.oneOfType([r.default.element,r.default.node,r.default.func]).isRequired,xs:r.default.bool,sm:r.default.bool,md:r.default.bool,lg:r.default.bool,xl:r.default.bool},d.contextTypes={serverSideScreenClass:r.default.oneOf(["xs","sm","md","lg","xl"]),breakpoints:r.default.arrayOf(r.default.number)},d.defaultProps={xs:!1,sm:!1,md:!1,lg:!1,xl:!1},t.default=d},function(e,t,n){e.exports=n(12)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),r=n.n(a),i=n(13),o=n(15),s=n.n(o),l=n(16),c=(n.n(l),n(41));n.n(c);function f(e){return r.a.createElement("div",{className:"hand"},r.a.createElement("div",{className:"handLabel"},e.name+" "+e.selectedData.id),r.a.createElement(i.a,{label:"Direction",name:e.selectedData.id+".0.direction.",x:e.d_x,y:e.d_y,z:e.d_z,selectedData:e.selectedData.direction,onSelectedDataChange:e.onSelectedDataChange}),r.a.createElement(i.a,{label:"Palm Position",name:e.selectedData.id+".0.position.",x:e.pp_x,y:e.pp_y,z:e.pp_z,selectedData:e.selectedData.position,onSelectedDataChange:e.onSelectedDataChange}),r.a.createElement(i.a,{label:"Palm Velocity",name:e.selectedData.id+".0.velocity.",x:e.pv_x,y:e.pv_y,z:e.pv_z,selectedData:e.selectedData.velocity,onSelectedDataChange:e.onSelectedDataChange}),r.a.createElement(i.a,{label:"Palm Normal",name:e.selectedData.id+".0.normal.",x:e.pn_x,y:e.pn_y,z:e.pn_z,selectedData:e.selectedData.normal,onSelectedDataChange:e.onSelectedDataChange}))}function d(e){return r.a.createElement("div",{className:"finger"},r.a.createElement("div",{className:"fingerLabel"},e.name),r.a.createElement(i.a,{label:"Direction",name:e.selectedData.hand+"."+e.selectedData.id+".direction.",x:e.d_x,y:e.d_y,z:e.d_z,selectedData:e.selectedData.direction,onSelectedDataChange:e.onSelectedDataChange}),r.a.createElement(i.a,{label:"Tip Position",name:e.selectedData.hand+"."+e.selectedData.id+".position.",x:e.pp_x,y:e.pp_y,z:e.pp_z,selectedData:e.selectedData.position,onSelectedDataChange:e.onSelectedDataChange}),r.a.createElement(i.a,{label:"Tip Velocity",name:e.selectedData.hand+"."+e.selectedData.id+".velocity.",x:e.pv_x,y:e.pv_y,z:e.pv_z,selectedData:e.selectedData.velocity,onSelectedDataChange:e.onSelectedDataChange}))}function u(e){return r.a.createElement(l.Row,null,r.a.createElement(l.Col,{sm:2},r.a.createElement(f,{name:"Hand",d_x:e.frameData.direction[0],d_y:e.frameData.direction[1],d_z:e.frameData.direction[2],pp_x:e.frameData.palmPosition[0],pp_y:e.frameData.palmPosition[1],pp_z:e.frameData.palmPosition[2],pn_x:e.frameData.palmNormal[0],pn_y:e.frameData.palmNormal[1],pn_z:e.frameData.palmNormal[2],pv_x:e.frameData.palmVelocity[0],pv_y:e.frameData.palmVelocity[1],pv_z:e.frameData.palmVelocity[2],selectedData:e.selectedData,onSelectedDataChange:e.onSelectedDataChange})),r.a.createElement(l.Col,{sm:2},r.a.createElement(d,{name:"Fingertip 1",d_x:e.frameData.fingers[0].direction[0],d_y:e.frameData.fingers[0].direction[1],d_z:e.frameData.fingers[0].direction[2],pp_x:e.frameData.fingers[0].tipPosition[0],pp_y:e.frameData.fingers[0].tipPosition[1],pp_z:e.frameData.fingers[0].tipPosition[2],pv_x:e.frameData.fingers[0].tipVelocity[0],pv_y:e.frameData.fingers[0].tipVelocity[0],pv_z:e.frameData.fingers[0].tipVelocity[2],selectedData:e.selectedData.finger1,onSelectedDataChange:e.onSelectedDataChange})),r.a.createElement(l.Col,{sm:2},r.a.createElement(d,{name:"Fingertip 2",d_x:e.frameData.fingers[1].direction[0],d_y:e.frameData.fingers[1].direction[1],d_z:e.frameData.fingers[1].direction[2],pp_x:e.frameData.fingers[1].tipPosition[0],pp_y:e.frameData.fingers[1].tipPosition[1],pp_z:e.frameData.fingers[1].tipPosition[2],pv_x:e.frameData.fingers[1].tipVelocity[0],pv_y:e.frameData.fingers[1].tipVelocity[1],pv_z:e.frameData.fingers[1].tipVelocity[2],selectedData:e.selectedData.finger2,onSelectedDataChange:e.onSelectedDataChange})),r.a.createElement(l.Col,{sm:2},r.a.createElement(d,{name:"Fingertip 3",d_x:e.frameData.fingers[2].direction[0],d_y:e.frameData.fingers[2].direction[1],d_z:e.frameData.fingers[2].direction[2],pp_x:e.frameData.fingers[2].tipPosition[0],pp_y:e.frameData.fingers[2].tipPosition[1],pp_z:e.frameData.fingers[2].tipPosition[2],pv_x:e.frameData.fingers[2].tipVelocity[0],pv_y:e.frameData.fingers[2].tipVelocity[1],pv_z:e.frameData.fingers[2].tipVelocity[2],selectedData:e.selectedData.finger3,onSelectedDataChange:e.onSelectedDataChange})),r.a.createElement(l.Col,{sm:2},r.a.createElement(d,{name:"Fingertip 4",d_x:e.frameData.fingers[3].direction[0],d_y:e.frameData.fingers[3].direction[1],d_z:e.frameData.fingers[3].direction[2],pp_x:e.frameData.fingers[3].tipPosition[0],pp_y:e.frameData.fingers[3].tipPosition[1],pp_z:e.frameData.fingers[3].tipPosition[2],pv_x:e.frameData.fingers[3].tipVelocity[0],pv_y:e.frameData.fingers[3].tipVelocity[1],pv_z:e.frameData.fingers[3].tipVelocity[2],selectedData:e.selectedData.finger4,onSelectedDataChange:e.onSelectedDataChange})),r.a.createElement(l.Col,{sm:2},r.a.createElement(d,{name:"Fingertip 5",d_x:e.frameData.fingers[4].direction[0],d_y:e.frameData.fingers[4].direction[1],d_z:e.frameData.fingers[4].direction[2],pp_x:e.frameData.fingers[4].tipPosition[0],pp_y:e.frameData.fingers[4].tipPosition[1],pp_z:e.frameData.fingers[4].tipPosition[2],pv_x:e.frameData.fingers[4].tipVelocity[0],pv_y:e.frameData.fingers[4].tipVelocity[1],pv_z:e.frameData.fingers[4].tipVelocity[2],selectedData:e.selectedData.finger5,onSelectedDataChange:e.onSelectedDataChange})))}var p=function(e){var t=function(e){var t=[];return e.frameData.hands&&e.frameData.hands.length&&(1===e.frameData.hands.length&&(e.selectedData.hand1.direction.x&&t.push(e.frameData.hands[0].direction[0]),e.selectedData.hand1.direction.y&&t.push(e.frameData.hands[0].direction[1]),e.selectedData.hand1.direction.z&&t.push(e.frameData.hands[0].direction[2]),e.selectedData.hand1.position.x&&t.push(e.frameData.hands[0].palmPosition[0]),e.selectedData.hand1.position.y&&t.push(e.frameData.hands[0].palmPosition[1]),e.selectedData.hand1.position.z&&t.push(e.frameData.hands[0].palmPosition[2]),e.selectedData.hand1.velocity.x&&t.push(e.frameData.hands[0].palmVelocity[0]),e.selectedData.hand1.velocity.y&&t.push(e.frameData.hands[0].palmVelocity[1]),e.selectedData.hand1.velocity.z&&t.push(e.frameData.hands[0].palmVelocity[2]),e.selectedData.hand1.normal.x&&t.push(e.frameData.hands[0].palmNormal[0]),e.selectedData.hand1.normal.y&&t.push(e.frameData.hands[0].palmNormal[1]),e.selectedData.hand1.normal.z&&t.push(e.frameData.hands[0].palmNormal[2]),e.selectedData.hand1.finger1.direction.x&&t.push(e.frameData.hands[0].fingers[0].direction[0]),e.selectedData.hand1.finger1.direction.y&&t.push(e.frameData.hands[0].fingers[0].direction[1]),e.selectedData.hand1.finger1.direction.z&&t.push(e.frameData.hands[0].fingers[0].direction[2]),e.selectedData.hand1.finger1.position.x&&t.push(e.frameData.hands[0].fingers[0].tipPosition[0]),e.selectedData.hand1.finger1.position.y&&t.push(e.frameData.hands[0].fingers[0].tipPosition[1]),e.selectedData.hand1.finger1.position.z&&t.push(e.frameData.hands[0].fingers[0].tipPosition[2]),e.selectedData.hand1.finger1.velocity.x&&t.push(e.frameData.hands[0].fingers[0].tipVelocity[0]),e.selectedData.hand1.finger1.velocity.y&&t.push(e.frameData.hands[0].fingers[0].tipVelocity[1]),e.selectedData.hand1.finger1.velocity.z&&t.push(e.frameData.hands[0].fingers[0].tipVelocity[2]),e.selectedData.hand1.finger2.direction.x&&t.push(e.frameData.hands[0].fingers[1].direction[0]),e.selectedData.hand1.finger2.direction.y&&t.push(e.frameData.hands[0].fingers[1].direction[1]),e.selectedData.hand1.finger2.direction.z&&t.push(e.frameData.hands[0].fingers[1].direction[2]),e.selectedData.hand1.finger2.position.x&&t.push(e.frameData.hands[0].fingers[1].tipPosition[0]),e.selectedData.hand1.finger2.position.y&&t.push(e.frameData.hands[0].fingers[1].tipPosition[1]),e.selectedData.hand1.finger2.position.z&&t.push(e.frameData.hands[0].fingers[1].tipPosition[2]),e.selectedData.hand1.finger2.velocity.x&&t.push(e.frameData.hands[0].fingers[1].tipVelocity[0]),e.selectedData.hand1.finger2.velocity.y&&t.push(e.frameData.hands[0].fingers[1].tipVelocity[1]),e.selectedData.hand1.finger2.velocity.z&&t.push(e.frameData.hands[0].fingers[1].tipVelocity[2]),e.selectedData.hand1.finger3.direction.x&&t.push(e.frameData.hands[0].fingers[2].direction[0]),e.selectedData.hand1.finger3.direction.y&&t.push(e.frameData.hands[0].fingers[2].direction[1]),e.selectedData.hand1.finger3.direction.z&&t.push(e.frameData.hands[0].fingers[2].direction[2]),e.selectedData.hand1.finger3.position.x&&t.push(e.frameData.hands[0].fingers[2].tipPosition[0]),e.selectedData.hand1.finger3.position.y&&t.push(e.frameData.hands[0].fingers[2].tipPosition[1]),e.selectedData.hand1.finger3.position.z&&t.push(e.frameData.hands[0].fingers[2].tipPosition[2]),e.selectedData.hand1.finger3.velocity.x&&t.push(e.frameData.hands[0].fingers[2].tipVelocity[0]),e.selectedData.hand1.finger3.velocity.y&&t.push(e.frameData.hands[0].fingers[2].tipVelocity[1]),e.selectedData.hand1.finger3.velocity.z&&t.push(e.frameData.hands[0].fingers[2].tipVelocity[2]),e.selectedData.hand1.finger4.direction.x&&t.push(e.frameData.hands[0].fingers[3].direction[0]),e.selectedData.hand1.finger4.direction.y&&t.push(e.frameData.hands[0].fingers[3].direction[1]),e.selectedData.hand1.finger4.direction.z&&t.push(e.frameData.hands[0].fingers[3].direction[2]),e.selectedData.hand1.finger4.position.x&&t.push(e.frameData.hands[0].fingers[3].tipPosition[0]),e.selectedData.hand1.finger4.position.y&&t.push(e.frameData.hands[0].fingers[3].tipPosition[1]),e.selectedData.hand1.finger4.position.z&&t.push(e.frameData.hands[0].fingers[3].tipPosition[2]),e.selectedData.hand1.finger4.velocity.x&&t.push(e.frameData.hands[0].fingers[3].tipVelocity[0]),e.selectedData.hand1.finger4.velocity.y&&t.push(e.frameData.hands[0].fingers[3].tipVelocity[1]),e.selectedData.hand1.finger4.velocity.z&&t.push(e.frameData.hands[0].fingers[3].tipVelocity[2]),e.selectedData.hand1.finger5.direction.x&&t.push(e.frameData.hands[0].fingers[4].direction[0]),e.selectedData.hand1.finger5.direction.y&&t.push(e.frameData.hands[0].fingers[4].direction[1]),e.selectedData.hand1.finger5.direction.z&&t.push(e.frameData.hands[0].fingers[4].direction[2]),e.selectedData.hand1.finger5.position.x&&t.push(e.frameData.hands[0].fingers[4].tipPosition[0]),e.selectedData.hand1.finger5.position.y&&t.push(e.frameData.hands[0].fingers[4].tipPosition[1]),e.selectedData.hand1.finger5.position.z&&t.push(e.frameData.hands[0].fingers[4].tipPosition[2]),e.selectedData.hand1.finger5.velocity.x&&t.push(e.frameData.hands[0].fingers[4].tipVelocity[0]),e.selectedData.hand1.finger5.velocity.y&&t.push(e.frameData.hands[0].fingers[4].tipVelocity[1]),e.selectedData.hand1.finger5.velocity.z&&t.push(e.frameData.hands[0].fingers[4].tipVelocity[2])),2===e.frameData.hands.length&&(e.selectedData.hand2.direction.x&&t.push(e.frameData.hands[1].direction[0]),e.selectedData.hand2.direction.y&&t.push(e.frameData.hands[1].direction[1]),e.selectedData.hand2.direction.z&&t.push(e.frameData.hands[1].direction[2]),e.selectedData.hand2.position.x&&t.push(e.frameData.hands[1].palmPosition[0]),e.selectedData.hand2.position.y&&t.push(e.frameData.hands[1].palmPosition[1]),e.selectedData.hand2.position.z&&t.push(e.frameData.hands[1].palmPosition[2]),e.selectedData.hand2.velocity.x&&t.push(e.frameData.hands[1].palmVelocity[0]),e.selectedData.hand2.velocity.y&&t.push(e.frameData.hands[1].palmVelocity[1]),e.selectedData.hand2.velocity.z&&t.push(e.frameData.hands[1].palmVelocity[2]),e.selectedData.hand2.normal.x&&t.push(e.frameData.hands[1].palmNormal[0]),e.selectedData.hand2.normal.y&&t.push(e.frameData.hands[1].palmNormal[1]),e.selectedData.hand2.normal.z&&t.push(e.frameData.hands[1].palmNormal[2]),e.selectedData.hand2.finger1.direction.x&&t.push(e.frameData.hands[1].fingers[0].direction[0]),e.selectedData.hand2.finger1.direction.y&&t.push(e.frameData.hands[1].fingers[0].direction[1]),e.selectedData.hand2.finger1.direction.z&&t.push(e.frameData.hands[1].fingers[0].direction[2]),e.selectedData.hand2.finger1.position.x&&t.push(e.frameData.hands[1].fingers[0].tipPosition[0]),e.selectedData.hand2.finger1.position.y&&t.push(e.frameData.hands[1].fingers[0].tipPosition[1]),e.selectedData.hand2.finger1.position.z&&t.push(e.frameData.hands[1].fingers[0].tipPosition[2]),e.selectedData.hand2.finger1.velocity.x&&t.push(e.frameData.hands[1].fingers[0].tipVelocity[0]),e.selectedData.hand2.finger1.velocity.y&&t.push(e.frameData.hands[1].fingers[0].tipVelocity[1]),e.selectedData.hand2.finger1.velocity.z&&t.push(e.frameData.hands[1].fingers[0].tipVelocity[2]),e.selectedData.hand2.finger2.direction.x&&t.push(e.frameData.hands[1].fingers[1].direction[0]),e.selectedData.hand2.finger2.direction.y&&t.push(e.frameData.hands[1].fingers[1].direction[1]),e.selectedData.hand2.finger2.direction.z&&t.push(e.frameData.hands[1].fingers[1].direction[2]),e.selectedData.hand2.finger2.position.x&&t.push(e.frameData.hands[1].fingers[1].tipPosition[0]),e.selectedData.hand2.finger2.position.y&&t.push(e.frameData.hands[1].fingers[1].tipPosition[1]),e.selectedData.hand2.finger2.position.z&&t.push(e.frameData.hands[1].fingers[1].tipPosition[2]),e.selectedData.hand2.finger2.velocity.x&&t.push(e.frameData.hands[1].fingers[1].tipVelocity[0]),e.selectedData.hand2.finger2.velocity.y&&t.push(e.frameData.hands[1].fingers[1].tipVelocity[1]),e.selectedData.hand2.finger2.velocity.z&&t.push(e.frameData.hands[1].fingers[1].tipVelocity[2]),e.selectedData.hand2.finger3.direction.x&&t.push(e.frameData.hands[1].fingers[2].direction[0]),e.selectedData.hand2.finger3.direction.y&&t.push(e.frameData.hands[1].fingers[2].direction[1]),e.selectedData.hand2.finger3.direction.z&&t.push(e.frameData.hands[1].fingers[2].direction[2]),e.selectedData.hand2.finger3.position.x&&t.push(e.frameData.hands[1].fingers[2].tipPosition[0]),e.selectedData.hand2.finger3.position.y&&t.push(e.frameData.hands[1].fingers[2].tipPosition[1]),e.selectedData.hand2.finger3.position.z&&t.push(e.frameData.hands[1].fingers[2].tipPosition[2]),e.selectedData.hand2.finger3.velocity.x&&t.push(e.frameData.hands[1].fingers[2].tipVelocity[0]),e.selectedData.hand2.finger3.velocity.y&&t.push(e.frameData.hands[1].fingers[2].tipVelocity[1]),e.selectedData.hand2.finger3.velocity.z&&t.push(e.frameData.hands[1].fingers[2].tipVelocity[2]),e.selectedData.hand2.finger4.direction.x&&t.push(e.frameData.hands[1].fingers[3].direction[0]),e.selectedData.hand2.finger4.direction.y&&t.push(e.frameData.hands[1].fingers[3].direction[1]),e.selectedData.hand2.finger4.direction.z&&t.push(e.frameData.hands[1].fingers[3].direction[2]),e.selectedData.hand2.finger4.position.x&&t.push(e.frameData.hands[1].fingers[3].tipPosition[0]),e.selectedData.hand2.finger4.position.y&&t.push(e.frameData.hands[1].fingers[3].tipPosition[1]),e.selectedData.hand2.finger4.position.z&&t.push(e.frameData.hands[1].fingers[3].tipPosition[2]),e.selectedData.hand2.finger4.velocity.x&&t.push(e.frameData.hands[1].fingers[3].tipVelocity[0]),e.selectedData.hand2.finger4.velocity.y&&t.push(e.frameData.hands[1].fingers[3].tipVelocity[1]),e.selectedData.hand2.finger4.velocity.z&&t.push(e.frameData.hands[1].fingers[3].tipVelocity[2]),e.selectedData.hand2.finger5.direction.x&&t.push(e.frameData.hands[1].fingers[4].direction[0]),e.selectedData.hand2.finger5.direction.y&&t.push(e.frameData.hands[1].fingers[4].direction[1]),e.selectedData.hand2.finger5.direction.z&&t.push(e.frameData.hands[1].fingers[4].direction[2]),e.selectedData.hand2.finger5.position.x&&t.push(e.frameData.hands[1].fingers[4].tipPosition[0]),e.selectedData.hand2.finger5.position.y&&t.push(e.frameData.hands[1].fingers[4].tipPosition[1]),e.selectedData.hand2.finger5.position.z&&t.push(e.frameData.hands[1].fingers[4].tipPosition[2]),e.selectedData.hand2.finger5.velocity.x&&t.push(e.frameData.hands[1].fingers[4].tipVelocity[0]),e.selectedData.hand2.finger5.velocity.y&&t.push(e.frameData.hands[1].fingers[4].tipVelocity[1]),e.selectedData.hand2.finger5.velocity.z&&t.push(e.frameData.hands[1].fingers[4].tipVelocity[2]))),t}(e);return r.a.createElement("div",{className:"currentFrameContainer"},r.a.createElement("div",null," Current Frame [ "),r.a.createElement("div",{className:"currentFrame"},t.map(function(e,t){return r.a.createElement("span",{key:t},(n=e,(Math.floor(1e5*n)/1e5).toFixed(4).substr(0,6).replace(/\.$/,"")),", ");var n})),r.a.createElement("div",null," ] "))},h=function(e){var t=e.frame,n=function(e,t){var n={};for(var a in e)t.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}(e,["frame"]),a=s()(n,"children");return t.hands&&t.hands.length?1===t.hands.length?r.a.createElement("div",null,r.a.createElement(l.Container,null,r.a.createElement(l.Row,null,r.a.createElement("div",{className:"currentFrameRate"},"Current framerate: ",t.currentFrameRate)),r.a.createElement(u,{frameData:t.hands[0],selectedData:a.selectedData.hand1,onSelectedDataChange:a.onSelectedDataChange}),r.a.createElement(p,{className:"currentSelectedFrame",frameData:t,selectedData:a.selectedData}))):2===t.hands.length&&t.hands[0].fingers&&t.hands[0].fingers.length&&t.hands[1].fingers&&t.hands[1].fingers.length?r.a.createElement("div",null,r.a.createElement(l.Container,null,r.a.createElement(l.Row,null,r.a.createElement("div",{className:"currentFrameRate"},"Current framerate: ",t.currentFrameRate)),r.a.createElement(u,{frameData:t.hands[0],selectedData:a.selectedData.hand1,onSelectedDataChange:a.onSelectedDataChange}),r.a.createElement(u,{frameData:t.hands[1],selectedData:a.selectedData.hand2,onSelectedDataChange:a.onSelectedDataChange}),r.a.createElement(l.Row,null,r.a.createElement(l.Col,{sm:8},r.a.createElement(p,{frameData:t,selectedData:a.selectedData}))))):void 0:r.a.createElement("div",null,r.a.createElement(l.Container,null,r.a.createElement("div",{className:"currentFrameRate"},"Current framerate: ",t.currentFrameRate)))};h.defaultProps={frame:{},selectedData:{hand1:{id:1,direction:{x:!0,y:!1,z:!1},position:{x:!1,y:!1,z:!1},velocity:{x:!1,y:!1,z:!1},normal:{x:!1,y:!1,z:!1},finger1:{id:1,hand:1,direction:{x:!0,y:!1,z:!1},position:{x:!1,y:!1,z:!1},velocity:{x:!1,y:!1,z:!1}},finger2:{id:2,hand:1,direction:{x:!1,y:!1,z:!1},position:{x:!1,y:!1,z:!1},velocity:{x:!1,y:!1,z:!1}},finger3:{id:3,hand:1,direction:{x:!1,y:!1,z:!1},position:{x:!1,y:!1,z:!1},velocity:{x:!1,y:!1,z:!1}},finger4:{id:4,hand:1,direction:{x:!1,y:!1,z:!1},position:{x:!1,y:!1,z:!1},velocity:{x:!1,y:!1,z:!1}},finger5:{id:5,hand:1,direction:{x:!1,y:!0,z:!1},position:{x:!1,y:!1,z:!1},velocity:{x:!1,y:!1,z:!1}},confidence:0,grabStrength:0,pinchStrength:0,sphereCenter:{x:!1,y:!1,z:!1},sphereRadius:0},hand2:{id:2,direction:{x:!1,y:!1,z:!1},position:{x:!1,y:!1,z:!1},velocity:{x:!1,y:!1,z:!1},normal:{x:!1,y:!1,z:!1},finger1:{id:1,hand:2,direction:{x:!0,y:!1,z:!1},position:{x:!1,y:!1,z:!1},velocity:{x:!1,y:!1,z:!1}},finger2:{id:2,hand:2,direction:{x:!1,y:!1,z:!1},position:{x:!1,y:!1,z:!1},velocity:{x:!1,y:!1,z:!1}},finger3:{id:3,hand:2,direction:{x:!1,y:!1,z:!1},position:{x:!1,y:!1,z:!1},velocity:{x:!1,y:!1,z:!1}},finger4:{id:4,hand:2,direction:{x:!1,y:!1,z:!1},position:{x:!1,y:!1,z:!1},velocity:{x:!1,y:!1,z:!1}},finger5:{id:5,hand:2,direction:{x:!1,y:!0,z:!1},position:{x:!1,y:!1,z:!1},velocity:{x:!1,y:!1,z:!1}},confidence:0,grabStrength:0,pinchStrength:0,sphereCenter:{x:!1,y:!1,z:!1},sphereRadius:0}}},t.default=h},function(e,t,n){"use strict";var a=n(0),r=n.n(a),i=n(14);n.n(i);var o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.handleClick=function(e){this.props.onSelectedDataChange(e)},t.prototype.render=function(){var e=this;return r.a.createElement("div",{className:"featureGroupName"},r.a.createElement("div",null,this.props.label),r.a.createElement("div",{className:"row"},r.a.createElement("div",{id:"ck-button1",className:"ck-button"},r.a.createElement("label",null,r.a.createElement("input",{type:"checkbox",hidden:!0,defaultChecked:this.props.selectedData.x,onClick:function(){return e.handleClick(e.props.name+"x: "+e.props.x)}}),r.a.createElement("span",{id:"mySpan1"},this.props.x))),r.a.createElement("div",{id:"ck-button2",className:"ck-button"},r.a.createElement("label",null,r.a.createElement("input",{type:"checkbox",hidden:!0,defaultChecked:this.props.selectedData.y,onClick:function(){return e.handleClick(e.props.name+"y: "+e.props.y)}}),r.a.createElement("span",{id:"mySpan2"},this.props.y))),r.a.createElement("div",{id:"ck-button3",className:"ck-button"},r.a.createElement("label",null,r.a.createElement("input",{type:"checkbox",hidden:!0,defaultChecked:this.props.selectedData.z,onClick:function(){return e.handleClick(e.props.name+"z: "+e.props.z)}}),r.a.createElement("span",{id:"mySpan3"},this.props.z)))))},t}(a.Component);t.a=o},function(e,t){},function(e,t,n){(function(t){var n=200,a="__lodash_hash_undefined__",r=1/0,i=9007199254740991,o="[object Arguments]",s="[object Function]",l="[object GeneratorFunction]",c="[object Symbol]",f=/^\[object .+?Constructor\]$/,d=/^(?:0|[1-9]\d*)$/,u="object"==typeof t&&t&&t.Object===Object&&t,p="object"==typeof self&&self&&self.Object===Object&&self,h=u||p||Function("return this")();function m(e,t){return!!(e?e.length:0)&&function(e,t,n){if(t!=t)return function(e,t,n,a){var r=e.length,i=n+(a?1:-1);for(;a?i--:++i<r;)if(t(e[i],i,e))return i;return-1}(e,v,n);var a=n-1,r=e.length;for(;++a<r;)if(e[a]===t)return a;return-1}(e,t,0)>-1}function y(e,t,n){for(var a=-1,r=e?e.length:0;++a<r;)if(n(t,e[a]))return!0;return!1}function g(e,t){for(var n=-1,a=e?e.length:0,r=Array(a);++n<a;)r[n]=t(e[n],n,e);return r}function D(e,t){for(var n=-1,a=t.length,r=e.length;++n<a;)e[r+n]=t[n];return e}function v(e){return e!=e}function b(e,t){return e.has(t)}function x(e,t){return function(n){return e(t(n))}}var _,O=Array.prototype,C=Function.prototype,P=Object.prototype,S=h["__core-js_shared__"],w=(_=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||""))?"Symbol(src)_1."+_:"",z=C.toString,j=P.hasOwnProperty,E=P.toString,T=RegExp("^"+z.call(j).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),V=h.Symbol,W=x(Object.getPrototypeOf,Object),M=P.propertyIsEnumerable,R=O.splice,L=V?V.isConcatSpreadable:void 0,k=Object.getOwnPropertySymbols,N=Math.max,F=Q(h,"Map"),A=Q(Object,"create");function $(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}function G(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}function I(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}function U(e){var t=-1,n=e?e.length:0;for(this.__data__=new I;++t<n;)this.add(e[t])}function q(e,t){var n=re(e)||ae(e)?function(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}(e.length,String):[],a=n.length,r=!!a;for(var i in e)!t&&!j.call(e,i)||r&&("length"==i||te(i,a))||n.push(i);return n}function B(e,t){for(var n,a,r=e.length;r--;)if((n=e[r][0])===(a=t)||n!=n&&a!=a)return r;return-1}function H(e){return!(!se(e)||w&&w in e)&&(oe(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?T:f).test(function(e){if(null!=e){try{return z.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function Y(e){if(!se(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t,n,a,r=(n=(t=e)&&t.constructor,a="function"==typeof n&&n.prototype||P,t===a),i=[];for(var o in e)("constructor"!=o||!r&&j.call(e,o))&&i.push(o);return i}function J(e){return function(e,t,n){var a=t(e);return re(e)?a:D(a,n(e))}(e,ce,Z)}function K(e,t){var n,a,r=e.__data__;return("string"==(a=typeof(n=t))||"number"==a||"symbol"==a||"boolean"==a?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function Q(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return H(n)?n:void 0}$.prototype.clear=function(){this.__data__=A?A(null):{}},$.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},$.prototype.get=function(e){var t=this.__data__;if(A){var n=t[e];return n===a?void 0:n}return j.call(t,e)?t[e]:void 0},$.prototype.has=function(e){var t=this.__data__;return A?void 0!==t[e]:j.call(t,e)},$.prototype.set=function(e,t){return this.__data__[e]=A&&void 0===t?a:t,this},G.prototype.clear=function(){this.__data__=[]},G.prototype.delete=function(e){var t=this.__data__,n=B(t,e);return!(n<0||(n==t.length-1?t.pop():R.call(t,n,1),0))},G.prototype.get=function(e){var t=this.__data__,n=B(t,e);return n<0?void 0:t[n][1]},G.prototype.has=function(e){return B(this.__data__,e)>-1},G.prototype.set=function(e,t){var n=this.__data__,a=B(n,e);return a<0?n.push([e,t]):n[a][1]=t,this},I.prototype.clear=function(){this.__data__={hash:new $,map:new(F||G),string:new $}},I.prototype.delete=function(e){return K(this,e).delete(e)},I.prototype.get=function(e){return K(this,e).get(e)},I.prototype.has=function(e){return K(this,e).has(e)},I.prototype.set=function(e,t){return K(this,e).set(e,t),this},U.prototype.add=U.prototype.push=function(e){return this.__data__.set(e,a),this},U.prototype.has=function(e){return this.__data__.has(e)};var X=k?x(k,Object):pe,Z=k?function(e){for(var t=[];e;)D(t,X(e)),e=W(e);return t}:pe;function ee(e){return re(e)||ae(e)||!!(L&&e&&e[L])}function te(e,t){return!!(t=null==t?i:t)&&("number"==typeof e||d.test(e))&&e>-1&&e%1==0&&e<t}function ne(e){if("string"==typeof e||function(e){return"symbol"==typeof e||le(e)&&E.call(e)==c}(e))return e;var t=e+"";return"0"==t&&1/e==-r?"-0":t}function ae(e){return function(e){return le(e)&&ie(e)}(e)&&j.call(e,"callee")&&(!M.call(e,"callee")||E.call(e)==o)}var re=Array.isArray;function ie(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}(e.length)&&!oe(e)}function oe(e){var t=se(e)?E.call(e):"";return t==s||t==l}function se(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function le(e){return!!e&&"object"==typeof e}function ce(e){return ie(e)?q(e,!0):Y(e)}var fe,de,ue=(fe=function(e,t){return null==e?{}:(t=g(function e(t,n,a,r,i){var o=-1,s=t.length;for(a||(a=ee),i||(i=[]);++o<s;){var l=t[o];n>0&&a(l)?n>1?e(l,n-1,a,r,i):D(i,l):r||(i[i.length]=l)}return i}(t,1),ne),function(e,t){return function(e,t,n){for(var a=-1,r=t.length,i={};++a<r;){var o=t[a],s=e[o];n(s,o)&&(i[o]=s)}return i}(e=Object(e),t,function(t,n){return n in e})}(e,function(e,t,a,r){var i,o=-1,s=m,l=!0,c=e.length,f=[],d=t.length;if(!c)return f;a&&(t=g(t,(i=a,function(e){return i(e)}))),r?(s=y,l=!1):t.length>=n&&(s=b,l=!1,t=new U(t));e:for(;++o<c;){var u=e[o],p=a?a(u):u;if(u=r||0!==u?u:0,l&&p==p){for(var h=d;h--;)if(t[h]===p)continue e;f.push(u)}else s(t,p,r)||f.push(u)}return f}(J(e),t)))},de=N(void 0===de?fe.length-1:de,0),function(){for(var e=arguments,t=-1,n=N(e.length-de,0),a=Array(n);++t<n;)a[t]=e[de+t];t=-1;for(var r=Array(de+1);++t<de;)r[t]=e[t];return r[de]=a,function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(fe,this,r)});function pe(){return[]}e.exports=ue}).call(t,n(6))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScreenClassRender=t.Visible=t.Hidden=t.ClearFix=t.Row=t.Container=t.Col=void 0;var a=f(n(17)),r=f(n(32)),i=f(n(34)),o=f(n(9)),s=f(n(38)),l=f(n(10)),c=f(n(40));function f(e){return e&&e.__esModule?e:{default:e}}t.Col=a.default,t.Container=r.default,t.Row=i.default,t.ClearFix=o.default,t.Hidden=s.default,t.Visible=l.default,t.ScreenClassRender=c.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},r=c(n(0)),i=c(n(1)),o=c(n(3)),s=c(n(31)),l=n(2);function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=function(e){function t(){var e,n,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var c=arguments.length,d=Array(c),u=0;u<c;u++)d[u]=arguments[u];return n=i=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(d))),i.componentWillMount=function(){i.setScreenClass()},i.componentDidMount=function(){i.eventListener=(0,o.default)(i.setScreenClass,100),window.addEventListener("resize",i.eventListener)},i.componentWillUnmount=function(){i.eventListener.cancel(),window.removeEventListener("resize",i.eventListener)},i.setScreenClass=function(){i.setState({screenClass:(0,l.getScreenClass)(i.context)})},i.render=function(){var e=i.props,t=e.children,n=e.xs,o=e.sm,l=e.md,c=e.lg,f=e.xl,d=e.offset,u=e.pull,p=e.push,h=e.debug,m=e.style,y=function(e,t){var n={};for(var a in e)t.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}(e,["children","xs","sm","md","lg","xl","offset","pull","push","debug","style"]),g=(0,s.default)({width:{xs:n,sm:o,md:l,lg:c,xl:f},offset:d,pull:u,push:p,debug:h,screenClass:i.state.screenClass,gutterWidth:i.context.gutterWidth,moreStyle:m});return r.default.createElement("div",a({style:g},y),t)},f(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default.Component),t}();d.propTypes={children:i.default.node,xs:i.default.number,sm:i.default.number,md:i.default.number,lg:i.default.number,xl:i.default.number,offset:i.default.shape({xs:i.default.number,sm:i.default.number,md:i.default.number,lg:i.default.number,xl:i.default.number}),push:i.default.shape({xs:i.default.number,sm:i.default.number,md:i.default.number,lg:i.default.number,xl:i.default.number}),pull:i.default.shape({xs:i.default.number,sm:i.default.number,md:i.default.number,lg:i.default.number,xl:i.default.number}),style:i.default.objectOf(i.default.oneOfType([i.default.number,i.default.string])),debug:i.default.bool},d.defaultProps={children:null,xs:null,sm:null,md:null,lg:null,xl:null,offset:{},push:{},pull:{},style:{},debug:!1},d.contextTypes={serverSideScreenClass:i.default.oneOf(["xs","sm","md","lg","xl"]),breakpoints:i.default.arrayOf(i.default.number),gutterWidth:i.default.number},t.default=d},function(e,t,n){"use strict";var a=n(19),r=n(20),i=n(21);e.exports=function(){function e(e,t,n,a,o,s){s!==i&&r(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=a,n.PropTypes=n,n}},function(e,t,n){"use strict";function a(e){return function(){return e}}var r=function(){};r.thatReturns=a,r.thatReturnsFalse=a(!1),r.thatReturnsTrue=a(!0),r.thatReturnsNull=a(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";var a=function(e){};e.exports=function(e,t,n,r,i,o,s,l){if(a(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[n,r,i,o,s,l],d=0;(c=new Error(t.replace(/%s/g,function(){return f[d++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var a=n(4),r=n(23),i=n(25),o="Expected a function",s=Math.max,l=Math.min;e.exports=function(e,t,n){var c,f,d,u,p,h,m=0,y=!1,g=!1,D=!0;if("function"!=typeof e)throw new TypeError(o);function v(t){var n=c,a=f;return c=f=void 0,m=t,u=e.apply(a,n)}function b(e){var n=e-h;return void 0===h||n>=t||n<0||g&&e-m>=d}function x(){var e=r();if(b(e))return _(e);p=setTimeout(x,function(e){var n=t-(e-h);return g?l(n,d-(e-m)):n}(e))}function _(e){return p=void 0,D&&c?v(e):(c=f=void 0,u)}function O(){var e=r(),n=b(e);if(c=arguments,f=this,h=e,n){if(void 0===p)return function(e){return m=e,p=setTimeout(x,t),y?v(e):u}(h);if(g)return p=setTimeout(x,t),v(h)}return void 0===p&&(p=setTimeout(x,t)),u}return t=i(t)||0,a(n)&&(y=!!n.leading,d=(g="maxWait"in n)?s(i(n.maxWait)||0,t):d,D="trailing"in n?!!n.trailing:D),O.cancel=function(){void 0!==p&&clearTimeout(p),m=0,c=h=f=p=void 0},O.flush=function(){return void 0===p?u:_(r())},O}},function(e,t,n){var a=n(7);e.exports=function(){return a.Date.now()}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(t,n(6))},function(e,t,n){var a=n(4),r=n(26),i=NaN,o=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(r(e))return i;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=l.test(e);return n||c.test(e)?f(e.slice(2),n?2:8):s.test(e)?i:+e}},function(e,t,n){var a=n(27),r=n(30),i="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||r(e)&&a(e)==i}},function(e,t,n){var a=n(8),r=n(28),i=n(29),o="[object Null]",s="[object Undefined]",l=a?a.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:o:l&&l in Object(e)?r(e):i(e)}},function(e,t,n){var a=n(8),r=Object.prototype,i=r.hasOwnProperty,o=r.toString,s=a?a.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var a=!0}catch(e){}var r=o.call(e);return a&&(t?e[s]=n:delete e[s]),r}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},r=n(2),i=function(e){if("number"==typeof e)return 100/12*(0,r.normalizeColumnWidth)(e)+"%"};t.default=function(e){var t,n=e.width,o=void 0===n?{}:n,s=e.offset,l=void 0===s?{}:s,c=e.pull,f=void 0===c?{}:c,d=e.push,u=void 0===d?{}:d,p=e.debug,h=e.screenClass,m=e.gutterWidth,y=e.moreStyle,g="number"==typeof m?m:r.defaultGutterWidth,D=a({boxSizing:"border-box",minHeight:"1px",position:"relative",paddingLeft:g/2+"px",paddingRight:g/2+"px",width:"100%",overflow:"hidden"},y);return p&&(D.outline="1px solid silver",D.background="rgba(0,0,0,.05)"),D.flexBasis="100%",D.flexGrow=0,D.flexShrink=0,D.maxWidth="100%",D.marginLeft="0%",D.right="auto",D.left="auto",r.screenClasses.forEach(function(e,t){r.screenClasses.indexOf(h)>=t&&(D.flexBasis=i(o[e])||D.flexBasis,D.maxWidth=i(o[e])||D.maxWidth,D.marginLeft=i(l[e])||D.marginLeft,D.right=i(f[e])||D.right,D.left=i(u[e])||D.left)}),t=o,Object.keys(t).reduce(function(e,n){return e||t[n]},!1)||(D.flexBasis=0,D.flexGrow=1),D}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},r=f(n(0)),i=f(n(1)),o=f(n(3)),s=n(33),l=f(s),c=n(2);function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){var e,n,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var f=arguments.length,u=Array(f),p=0;p<f;p++)u[p]=arguments[p];return n=i=d(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),i.componentWillMount=function(){i.setScreenClass()},i.componentDidMount=function(){i.eventListener=(0,o.default)(i.setScreenClass,100),window.addEventListener("resize",i.eventListener)},i.componentWillUnmount=function(){i.eventListener.cancel(),window.removeEventListener("resize",i.eventListener)},i.setScreenClass=function(){i.setState({screenClass:(0,c.getScreenClass)(i.context)})},i.render=function(){var e=i.props,t=e.children,n=e.fluid,o=e.xs,c=e.sm,f=e.md,d=e.lg,u=e.xl,p=e.style,h=function(e,t){var n={};for(var a in e)t.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}(e,["children","fluid","xs","sm","md","lg","xl","style"]),m=(0,l.default)({fluid:n,xs:o,sm:c,md:f,lg:d,xl:u,screenClass:i.state.screenClass,containerWidths:i.context.containerWidths,gutterWidth:i.context.gutterWidth,moreStyle:p});return r.default.createElement("div",a({style:m},h),t,r.default.createElement("span",{style:(0,s.getAfterStyle)()}))},d(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default.Component),t}();u.propTypes={children:i.default.node.isRequired,fluid:i.default.bool,xs:i.default.bool,sm:i.default.bool,md:i.default.bool,lg:i.default.bool,xl:i.default.bool,style:i.default.objectOf(i.default.oneOfType([i.default.number,i.default.string]))},u.contextTypes={serverSideScreenClass:i.default.oneOf(["xs","sm","md","lg","xl"]),breakpoints:i.default.arrayOf(i.default.number),containerWidths:i.default.arrayOf(i.default.number),gutterWidth:i.default.number},u.defaultProps={fluid:!1,xs:!1,sm:!1,md:!1,lg:!1,xl:!1,style:{}},t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAfterStyle=void 0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},r=n(2);t.default=function(e){var t=e.fluid,n=e.xs,i=e.sm,o=e.md,s=e.lg,l=e.xl,c=e.screenClass,f=e.containerWidths,d=e.gutterWidth,u=e.moreStyle,p=f&&f.length?f:r.defaultContainerWidths,h="number"==typeof d?d:r.defaultGutterWidth,m=a({boxSizing:"border-box",position:"relative",marginLeft:"auto",marginRight:"auto",paddingLeft:h/2+"px",paddingRight:h/2+"px"},u);return!t||i||o||s||l?("sm"!==c||!p[0]||i||n||(m.maxWidth=p[0]+"px"),"md"===c&&p[1]&&!o&&(m.maxWidth=p[1]+"px"),"lg"===c&&p[2]&&!s&&(m.maxWidth=p[2]+"px"),"xl"===c&&p[3]&&!l&&(m.maxWidth=p[3]+"px"),m):m};t.getAfterStyle=function(){return{display:"table",clear:"both"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},r=l(n(0)),i=l(n(1)),o=l(n(35)),s=l(n(9));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=function(e){function t(){var e,n,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var l=arguments.length,f=Array(l),d=0;d<l;d++)f[d]=arguments[d];return n=i=c(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(f))),i.getChildContext=function(){return{gutterWidth:i.props.nogutter?0:i.context.gutterWidth}},i.render=function(){var e=i.props,t=e.children,n=e.style,l=e.align,c=e.debug,f=e.nogutter,d=function(e,t){var n={};for(var a in e)t.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}(e,["children","style","align","debug","nogutter"]),u=(0,o.default)({gutterWidth:f?0:i.context.gutterWidth,align:l,debug:c,moreStyle:n});return r.default.createElement("div",a({style:u},d),t,r.default.createElement(s.default,{xs:!0,sm:!0,md:!0,lg:!0,xl:!0}))},c(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default.Component),t}();f.propTypes={children:i.default.node.isRequired,align:i.default.oneOf(["normal","start","center","end"]),nogutter:i.default.bool,style:i.default.objectOf(i.default.oneOfType([i.default.number,i.default.string])),debug:i.default.bool},f.defaultProps={align:"normal",nogutter:!1,style:{},debug:!1},f.contextTypes={gutterWidth:i.default.number},f.childContextTypes={gutterWidth:i.default.number},t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},r=n(2);t.default=function(e){var t=e.gutterWidth,n=e.align,i=e.debug,o=e.moreStyle,s="number"==typeof t?t:r.defaultGutterWidth,l=n;"start"===n&&(l="flex-start"),"end"===n&&(l="flex-end");var c=a({marginLeft:"-"+s/2+"px",marginRight:"-"+s/2+"px",display:"flex",flexWrap:"wrap",flexGrow:0,flexShrink:0,alignItems:l},o);return i&&(c.background="rgba(128,128,128,.05)"),c}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=t.visible=function(e){var t=e.screenClass,n=e.xs,a=e.sm,r=e.md,i=e.lg,o=e.xl;return"xl"===t?o:"lg"===t?i:"md"===t?r:"sm"===t?a:n};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getAfterStyle=function(){return{display:"table",clear:"both"}},t.getAfterContentStyle=function(){return{display:"none"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=c(n(0)),r=c(n(1)),i=c(n(3)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(39)),s=n(2),l=c(n(5));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var c=arguments.length,d=Array(c),u=0;u<c;u++)d[u]=arguments[u];return n=r=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(d))),r.componentWillMount=function(){r.setScreenClass()},r.componentDidMount=function(){r.eventListener=(0,i.default)(r.setScreenClass,100),window.addEventListener("resize",r.eventListener)},r.componentWillUnmount=function(){r.eventListener.cancel(),window.removeEventListener("resize",r.eventListener)},r.setScreenClass=function(){r.setState({screenClass:(0,s.getScreenClass)(r.context)})},r.render=function(){return!o.hidden({screenClass:r.state.screenClass,xs:r.props.xs,sm:r.props.sm,md:r.props.md,lg:r.props.lg,xl:r.props.x