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

react-dropdown-button

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-dropdown-button - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

dist/react-dropdown-button.min.js

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

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("React")):"function"==typeof define&&define.amd?define(["React"],e):"object"==typeof exports?exports.ReactDropDownButton=e(require("React")):t.ReactDropDownButton=e(t.React)}(this,function(t){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}(function(t){for(var e in t)switch(typeof t[e]){case"number":t[e]=t[t[e]];break;case"object":t[e]=function(e){var n=e.slice(1),i=t[e[0]];return function(t,e,r){i.apply(null,[t,e,r].concat(n))}}(t[e])}return t}([function(t,e,n){"use strict";function i(){}var r=n(2),o=n(1),s=n(62),a=n(5),l=n(7),u=n(67),h=r.createFactory(u),c="ReactDropDownButton",p=o({},s.themes);p["default"]=o({},p["default"],{openedStyle:{background:"linear-gradient(to bottom, rgb(162,210,246) 0%,rgb(151,204,245) 50%,rgb(154,206,246) 100%)",color:"white"}});var f=r.createClass({displayName:c,getInitialState:function(){return{}},getDefaultProps:function(){return{"data-display-name":c,stopClickPropagation:!1,hideMenuOnClick:!0,smartArrowPadding:!0,defaultStyle:{boxSizing:"border-box",verticalAlign:"top",padding:5},defaultArrowStyle:{display:"inline-block",boxSizing:"border-box",fontSize:"0.8em"},defaultMenuStyle:{},alignOffset:{left:0,top:1},enforceNonStatic:!0,arrowPosition:"right"}},render:function(){var t=this.prepareProps(this.props,this.state),e=this.prepareWrapperProps(t);return r.createElement("div",r.__spread({},e),r.createElement(s,r.__spread({themes:this.constructor.themes,ref:"button"},t)),this.state.menu)},handleWrapperClick:function(t,e){e&&e.nativeEvent&&e.nativeEvent.clickInsideMenu||(t.stopClickPropagation&&e.stopPropagation(),this.ignoreClick(function(){this.toggleMenu(t)}))},prepareWrapperProps:function(t){var e={verticalAlign:"top",display:t.block?"block":"inline-block"},n=o({},e,t.wrapperStyle);n.position="absolute"==n.position?n.position:"relative",n.overflow="visible";var i=o({style:n},t.wrapperProps);return i.onClick=this.handleWrapperClick.bind(this,t),i},prepareProps:function(t){var e=o({},t);return e.style=this.prepareStyle(e),e.addStateStyle=this.addStateStyle,e.renderChildren=this.renderChildren.bind(this,e),e},prepareStyle:function(t){var e=o({},t.defaultStyle,t.style);return delete t.defaultStyle,e},addStateStyle:function(t){this.menu&&t.push("openedStyle")},renderChildren:function(t,e){var n,i=this.renderArrow(t),r=i;"right"!=t.arrowPosition&&(n=i,r=null);var e=[n,e,r];return"function"==typeof this.props.renderChildren?this.props.renderChildren(e):e},renderArrow:function(t){var e=t.arrow;return t.renderArrow&&(e=t.renderArrow(t)),e!==!1?e||this.getDefaultArrow(t):void 0},getDefaultArrow:function(t){var e="right"!=t.arrowPosition?"Right":"Left",n=t.defaultArrowStyle;t.smartArrowPadding&&(n=o({},n),n["padding"+e]=t.style.padding);var i=o({},n,t.arrowStyle);return r.createElement("span",{style:i},"▼")},toggleMenu:function(t){this.menu?this.hideMenu():this.showMenu(t)},setMenu:function(t){this.menu=t,"function"==typeof this.props.onMenuChange&&this.props.onMenuChange(t,this,this._rootNodeID),this.props.renderMenu!==!1&&this.setState({menu:t})},showMenu:function(t){var e=t.getAlignTarget?t.getAlignTarget.call(this):this.refs.button.getDOMNode();this.removeClickListener(),window.addEventListener("click",this.clickEventListener=this.onDocumentClick);var n=o({},t.menuProps),i=o({position:"absolute",zIndex:1},t.defaultMenuStyle,n.style,t.menuStyle);n.style=i,n.alignPositions=t.alignPositions||n.alignPositions||["tl-bl","tr-br","bl-tl","br-tr"],o(n,{onChildClick:this.onMenuChildClick.bind(this,t),alignOffset:t.alignOffset||n.alignOffset,alignTo:e,items:n.items||t.items});var r;t.menu?r=a(t.menu,n):(r="function"==typeof t.menuFactory?t.menuFactory(n):void 0,void 0===r&&n.items&&(r=h(n))),this.setMenu(r)},isExpanderClick:function(t){return l&&t&&(t.nativeEvent&&t.nativeEvent.expanderClick||t.expanderClick)?!0:!1},onDocumentClick:function(t){this.ignoreWindowClick||this.isExpanderClick(t)||this.hideMenu()},componentWillUnmount:function(){this.removeClickListener(),this.setMenu(!1)},removeClickListener:function(){this.clickEventListener&&(window.removeEventListener("click",this.clickEventListener),this.clickEventListener=null)},hideMenu:function(){this.menu&&(this.removeClickListener(),this.setMenu(!1))},onMenuChildClick:function(t,e,n){void 0!==n&&(this.isExpanderClick(e)||(this.props.menuProps&&(this.props.menuProps.onChildClick||i)(e,n),e.nativeEvent.clickInsideMenu=!0,(this.props.onMenuClick||i)(e,n),!this.props.hideMenuOnClick||e.nativeEvent.hideMenu===!1||n&&n.data&&n.data.hideMenu===!1?this.ignoreClick():(this.menu&&this.refs.button&&this.refs.button.handleMouseLeave(t,e),this.hideMenu())))},ignoreClick:function(t){this.ignoreWindowClick=!0,setTimeout(function(){this.ignoreWindowClick=!1,"function"==typeof t&&t.call(this)}.bind(this),0)}});f.themes=p,t.exports=f},function(t){"use strict";function e(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=Object.assign||function(t){for(var n,i,r=e(t),o=1;o<arguments.length;o++){n=arguments[o],i=Object.keys(Object(n));for(var s=0;s<i.length;s++)r[i[s]]=n[i[s]]}return r}},function(e){e.exports=t},function(t,e,n){t.exports=n(51)},function(t,e,n){"use strict";var i=n(2),r=n(1),o=i.createClass({displayName:"ReactMenuItemCell",getDefaultProps:function(){return{defaultStyle:{padding:5,whiteSpace:"nowrap"}}},render:function(){var t=this.prepareProps(this.props),e=t.children;return t.expander&&(e=t.expander===!0?"›":t.expander),i.createElement("td",i.__spread({},t),e)},prepareProps:function(t){var e={};return r(e,t),e.style=this.prepareStyle(e),e},prepareStyle:function(t){var e={};return r(e,t.defaultStyle,t.style),e}});t.exports=o},function(t,e,n){"use strict";function i(t,e){var n,i=s(t);for(n in e)l.call(h,n)?h[n](i,e[n],n):l.call(i,n)||(i[n]=e[n]);return i}function r(t){return function(e,n,i){e[i]=l.call(e,i)?t(e[i],n):n}}function o(t,e){return t?t+(e?" "+e:""):e||""}function s(){for(var t={},e=0;e<arguments.length;e++)for(var n in arguments[e])l.call(arguments[e],n)&&(t[n]=arguments[e][n]);return t}var a=n(2),l=Object.prototype.hasOwnProperty,u=a.version.split(".").map(parseFloat),h={className:r(o),children:function(){},key:function(){},ref:function(){},style:r(s)};t.exports=function(t,e){function n(){}var r=i(e,t.props);return!l.call(r,"children")&&l.call(t.props,"children")&&(r.children=t.props.children),0===u[0]&&u[1]<11?t.constructor.ConvenienceConstructor(r):0===u[0]&&11===u[1]?t.constructor(r):0===u[0]&&12===u[1]?(n.isReactLegacyFactory=!0,n.type=t.type,a.createElement(n,r)):a.createElement(t.type,r)}},function(t,e,n){"use strict";function i(){}var r=n(2),o=n(1),s=n(3),a=n(35),l=n(7),u=n(16),h=n(22),c=n(21),p=n(58),f=n(70),d=n(69),m=n(68),v=n(60),g=n(65),y=(n(14),r.createClass({displayName:"Menu",propTypes:v,getDefaultProps:function(){return{isMenu:!0,constrainTo:!0,enableScroll:!0,interactionStyles:!0,applyDefaultTheme:!0,defaultStyle:{display:"inline-block",boxSizing:"border-box",position:"relative",background:"white",border:"1px solid rgb(46, 153, 235)"},defaultSubMenuStyle:{position:"absolute"},subMenuStyle:null,scrollerProps:{},columns:["label"],items:null,visible:!0,defaultItemStyle:{},itemStyle:{},defaultItemOverStyle:{},itemOverStyle:{},defaultItemDisabledStyle:{},itemDisabledStyle:{},defaultItemExpandedStyle:{},itemExpandedStyle:{},defaultCellStyle:{},cellStyle:{},stopClickPropagation:!0}},getInitialState:function(){return{mouseOver:!1}},componentWillUnmount:function(){this.didMount=!1},componentDidMount:function(){(this.props.onMount||i)(this),this.didMount=!0,!this.props.constrainTo&&!this.props.alignTo||this.props.subMenu||setTimeout(function(){if(this.isMounted()){var t,e=this.props,n=s.from(this.refs.scrollContainer.getDOMNode()),i=this.getDOMNode(),r=s.from(i),o=r.height,a=n.height+o,l=s({left:r.left,right:r.right,top:r.top,bottom:r.top+a}),u=e.constrainTo?c(e.constrainTo):null;if(e.alignTo){var h=s.from(i.parentNode),p=s.from(e.alignTo);l.alignTo(p,e.alignPositions,{offset:e.alignOffset,constrain:u});var f=l.top-h.top,d=l.left-h.left;t={style:{left:d,top:f}}}u&&(t=t||{},l.bottom>u.bottom&&(t.maxHeight=u.bottom-l.top-o)),t&&this.setState(t)}}.bind(this),0)},prepareProps:function(t,e){var n={};return o(n,this.props),n.style=this.prepareStyle(n,e),n.className=this.prepareClassName(n),n.itemStyleProps=p(n,e),n.children=this.prepareChildren(n,e),n.scrollerProps=this.prepareScrollerProps(n),n},prepareScrollerProps:function(t){return o({},t.scrollerProps)},prepareChildren:function(t,e){var n=t.children;return t.items&&t.items.length&&(n=t.items.map(this.prepareItem.bind(this,t,e))),n},prepareItem:m,prepareClassName:function(t){var e=t.className||"";return e+=" z-menu"},prepareStyle:function(t,e){var n=t.subMenu?t.defaultSubMenuStyle:null,i=o({},t.defaultStyle,n,t.style,t.subMenuStyle);if((!t.visible||t.items&&!t.items.length)&&(i.display="none"),t.absolute&&(i.position="absolute"),t.at){var r=Array.isArray(t.at),s={left:r?t.at[0]:void 0===t.at.left?t.at.x||t.at.pageX:t.at.left,top:r?t.at[1]:void 0===t.at.top?t.at.y||t.at.pageY:t.at.top};o(i,s)}return e.style&&o(i,e.style),this.didMount||!t.constrainTo&&!t.alignTo||t.subMenu||(i.visibility="hidden",i.maxHeight=0,i.overflow="hidden"),u(i)},renderSubMenu:f,render:function(){var t=this.state,e=this.prepareProps(this.props,t),n=this.renderSubMenu(e,t),i=this.renderChildren(e,t);return r.createElement("div",r.__spread({},e),n,r.createElement(g,{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,scrollerProps:e.scrollerProps,ref:"scrollContainer",enableScroll:e.enableScroll,maxHeight:t.maxHeight||e.maxHeight},r.createElement("table",{ref:"table",style:{borderSpacing:0}},r.createElement("tbody",null,i))))},renderChildren:d,handleMouseEnter:function(){this.setState({mouseInside:!0}),this.onActivate()},handleMouseLeave:function(){this.setState({mouseInside:!1}),this.state.menu||this.state.nextItem||this.onInactivate()},onActivate:function(){this.state.activated||(this.setState({activated:!0}),(this.props.onActivate||i)())},onInactivate:function(){this.state.activated&&(this.setState({activated:!1}),(this.props.onInactivate||i)())},handleSubMenuMouseEnter:function(){this.setState({mouseOverSubMenu:!0})},handleSubMenuMouseLeave:function(){this.setState({mouseOverSubMenu:!1})},isSubMenuActive:function(){return this.state.subMenuActive},onSubMenuActivate:function(){this.setState({subMenuActive:!0})},onSubMenuInactivate:function(){var t=+new Date,e=this.state.nextItem,n=this.state.nextTimestamp||0;this.setState({subMenuActive:!1,timestamp:t},function(){setTimeout(function(){return t!=this.state.timestamp||e&&100>t-n?void this.setItem(this.state.nextItem,this.state.nextOffset):void(this.isSubMenuActive()||this.setItem())}.bind(this),10)})},removeMouseMoveListener:function(){this.onWindowMouseMove&&(window.removeEventListener("mousemove",this.onWindowMouseMove),this.onWindowMouseMove=null)},onMenuItemMouseOut:function(t,e){this.state.menu&&this.setupCheck(e)},onMenuItemMouseOver:function(t,e){if(this.didMount){{var n=t.menu;+new Date}n&&(this.state.menu?this.setNextItem(t,e):this.setItem(t,e))}},setupCheck:function(t){if(this.didMount){var e=5,n=this.getDOMNode(),i=n.querySelector(".z-menu");if(i){var r=s.from(i),o=r.left,l=r.top,u=r.left,h=r.bottom;"left"==this.subMenuPosition&&(o=r.right,u=r.right);var c=t.x+("left"==this.subMenuPosition?e:-e),p=t.y,f=[[o,l],[u,h],[c,p]];this.removeMouseMoveListener(),this.onWindowMouseMove=function(t){var e=[t.pageX,t.pageY];a(e,f)||(this.removeMouseMoveListener(),this.state.mouseOverSubMenu||this.setItem(this.state.nextItem,this.state.nextOffset))}.bind(this),window.addEventListener("mousemove",this.onWindowMouseMove)}}},setNextItem:function(t,e){var n=+new Date;this.setState({timestamp:n,nextItem:t,nextOffset:e,nextTimestamp:+new Date})},setItem:function(t,e){var n=t?t.menu:null;this.removeMouseMoveListener(),this.didMount&&(n||this.state.mouseInside||this.onInactivate(),this.setState({itemProps:t,menu:n,menuOffset:e,timestamp:+new Date,nextItem:null,nextOffset:null,nextTimestamp:null}))},onMenuItemExpanderClick:function(t){t.nativeEvent.expanderClick=!0},onMenuItemClick:function(t,e,n){var r=t.isPropagationStopped();if(this.props.stopClickPropagation&&t.stopPropagation(),l&&e&&t&&t.nativeEvent&&t.nativeEvent.expanderClick){var o={x:t.pageX,y:t.pageY},s=h(t.currentTarget);return void this.onMenuItemMouseOver(e,s,o)}r||(e&&(this.props.onClick||i)(t,e,n),this.onChildClick(t,e))},onChildClick:function(t,e){(this.props.onChildClick||i)(t,e),this.props.parentMenu&&this.props.parentMenu.onChildClick(t,e)}}));y.themes=n(56),t.exports=y},function(t,e){(function(e){t.exports="ontouchstart"in e||e.DocumentTouch&&document instanceof DocumentTouch}).call(e,function(){return this}())},function(t,e){(function(e){"use strict";var n;t.exports=function(){return!n&&e.document&&(n=e.document.createElement("div")),n||(n={style:{}}),n}}).call(e,function(){return this}())},[75,10,8],function(t){"use strict";t.exports=function(t){return t?t.charAt(0).toUpperCase()+t.slice(1):""}},8,[75,13,11],10,function(t,e,n){"use strict";function i(t){return t?t.charAt(0).toUpperCase()+t.substring(1):""}var r=n(2),o=n(1),s=n(16),a=(n(36),n(22)),l=n(63),u=(n(6),n(4),function(){}),h=r.createClass({displayName:"ReactMenuItem",getInitialState:function(){return{}},getDefaultProps:function(){return{isMenuItem:!0,interactionStyles:!0,defaultStyle:{cursor:"pointer",userSelect:"none",boxSizing:"border-box"},expander:"›"}},render:function(){var t=this.prepareProps(this.props,this.state);return r.createElement("tr",r.__spread({},t))},componentDidMount:function(){this.didMount=!0},prepareProps:function(t,e){var n={};return o(n,t),n.theme=this.prepareTheme(n),n.mouseOver=!!e.mouseOver,n.active=!!e.active,n.disabled=!!n.disabled,n.style=this.prepareStyle(n),n.className=this.prepareClassName(n),n.children=this.prepareChildren(n),n.onClick=this.handleClick.bind(this,n),n.onMouseEnter=this.handleMouseEnter.bind(this,n),n.onMouseLeave=this.handleMouseLeave.bind(this,n),n.onMouseDown=this.handleMouseDown,n.onMouseMove=this.handleMouseMove,n},prepareTheme:function(t){var e=t.themes=t.themes||this.constructor.theme||THEME,n=t.theme;return"string"==typeof n&&(n=e[n]),n||e["default"]},handleClick:function(t,e){return t.disabled?void e.stopPropagation():void(this.props.onClick||this.props.fn||u)(e,t,t.index)},handleMouseMove:function(){},handleMouseDown:function(){var t=function(){this.setState({active:!1}),window.removeEventListener("mouseup",t)}.bind(this);window.addEventListener("mouseup",t),this.setState({active:!0})},showMenu:function(t,e){e.showMenu(t,offset)},handleMouseEnter:function(t,e){if(!t.disabled){var n={x:e.pageX,y:e.pageY};if(this.setState({mouseOver:!0}),t.onMenuItemMouseOver){var i;t.menu&&(i=a(this.getDOMNode())),t.onMenuItemMouseOver(t,i,n)}}},handleMouseLeave:function(t,e){if(!t.disabled){var n={x:e.pageX,y:e.pageY};this.didMount&&this.setState({active:!1,mouseOver:!1}),t.onMenuItemMouseOut&&t.onMenuItemMouseOut(t,n)}},prepareChildren:l,prepareClassName:function(t){var e=t.className||"";return e+=" menu-row",t.disabled?e+=" disabled "+(t.disabledClassName||""):(t.mouseOver&&(e+=" over "+(t.overClassName||"")),t.active&&(e+=" active "+(t.activeClassName||"")),t.expanded&&(e+=" expanded "+(t.expandedClassName||""))),e},prepareDefaultStyle:function(t){var e=o({},t.defaultStyle);return t.disabled&&o(e,t.defaultDisabledStyle),e},prepareComputedStyleNames:function(t){var e=["style"];if(t.disabled)return e.push("disabledStyle"),e;t.expanded&&e.push("expandedStyle");var n;t.mouseOver&&(n=e.map(function(t){return"over"+i(t)}));var r;return t.active&&(r=e.map(function(t){return"active"+i(t)})),n&&e.push.apply(e,n),r&&e.push.apply(e,r),e},prepareStyle:function(t){var e=o({},this.prepareDefaultStyle(t)),n=this.prepareComputedStyleNames(t),i=t.theme,r=t.themes;return i&&(t.applyDefaultTheme&&i!=r["default"]&&r["default"]&&n.forEach(function(t){o(e,r["default"][t])}),n.forEach(function(t){o(e,i[t])})),(t.onThemeStyleReady||u)(e,t),n.forEach(function(n){o(e,t[n])}),(t.onStyleReady||u)(e,t),s(e)}});t.exports=h},function(t){"use strict";t.exports={alignItems:1,justifyContent:1,flex:1,flexFlow:1,userSelect:1,transform:1,transition:1,transformOrigin:1,transformStyle:1,transitionProperty:1,transitionDuration:1,transitionTimingFunction:1,transitionDelay:1,borderImage:1,borderImageSlice:1,boxShadow:1,backgroundClip:1,backfaceVisibility:1,perspective:1,perspectiveOrigin:1,animation:1,animationDuration:1,animationName:1,animationDelay:1,animationDirection:1,animationIterationCount:1,animationTimingFunction:1,animationPlayState:1,animationFillMode:1,appearance:1}},[72,41,39,42,43],15,function(t){"use strict";function e(t,e){function n(i){function r(){var r=arguments.length,o=[].concat(i);return r&&o.push.apply(o,arguments),o.length<e?n(o):t.apply(this,o)}return r}return"number"!=typeof e&&(e=t.length),n([])}var n=Object.prototype.hasOwnProperty;t.exports=e(function(t,e){return n.call(t,e)})},function(t){"use strict";t.exports=function(t){var e=!0;return t.right<t.left&&(e=!1,t.right=t.left),t.bottom<t.top&&(e=!1,t.bottom=t.top),e}},function(t,e,n){"use strict";var i,r=n(54);t.exports=r(function(t,e){for(i=i||n(55);e=e.parentElement;)if(i.call(e,t))return e})},function(t,e,n){"use strict";var i=n(3),r=n(20);t.exports=function(t){var e;if(t===!0&&(e=i.getDocRegion()),!e&&"string"==typeof t){var n=r(t,this.getDOMNode());e=i.from(n)}return e||"function"!=typeof t||(e=i.from(t())),e}},function(t,e,n){"use strict";var i=n(3),r=n(20);t.exports=function(t){var e=i.from(r(".z-menu",t)),n=i.from(t);return{left:n.left-e.left,top:n.top-e.top,width:n.width,height:n.height}}},function(t,e,n){"use strict";var i=n(2),r=n(1),o=n(4);t.exports=function(t,e){var n=r({},t.defaultCellStyle,t.cellStyle);return i.createElement(o,{style:n},t.data[e])}},function(t,e,n){"use strict";var i=n(2),r=n(1),o=i.createClass({displayName:"ReactMenuSeparator",getDefaultProps:function(){return{size:1}},render:function(){var t=this.prepareProps(this.props);return i.createElement("tr",i.__spread({},t),i.createElement("td",{colSpan:10,style:{padding:0}}))},prepareProps:function(t){var e={};return r(e,t),e.style=this.prepareStyle(e),e.className=this.prepareClassName(e),e},prepareClassName:function(t){var e=t.className||"";return e+=" menu-separator"},prepareStyle:function(t){var e={};return r(e,o.defaultStyle,o.style,{height:o.size||t.size},t.style),e}});o.defaultStyle={cursor:"auto",background:"gray"},o.style={},t.exports=o},[71,10,9,15],[77,9,25,8],[73,28,15],[74,10,9,8],function(t){"use strict";t.exports=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}},[72,29,27,31,32],function(t){"use strict";t.exports=function(t,e){return e?Array.isArray(e)?e.map(t).filter(function(t){return!!t}):t(e):void 0}},[76,26],function(t){"use strict";t.exports=function(t,e){var n,i=e.size||8,r=e.width||i,o=e.height||i,s=e.color||"black",a=e.includePosition;return("up"==t||"down"==t)&&(n={borderLeft:r+"px solid transparent",borderRight:r+"px solid transparent"},a&&(n.marginTop=-Math.round(o/2)+"px",n.position="relative",n.top="50%"),n["up"===t?"borderBottom":"borderTop"]=o+"px solid "+s),("left"==t||"right"==t)&&(n={borderTop:o+"px solid transparent",borderBottom:o+"px solid transparent"},a&&(n.marginLeft=-Math.round(r/2)+"px",n.position="relative",n.left="50%"),n["left"===t?"borderRight":"borderLeft"]=r+"px solid "+s),n}},function(t,e){(function(e){"use strict";var n=e.setImmediate,i=e.clearImmediate;t.exports=function(t,e,r){var o=-1;return function(){var s=r||this,a=arguments;if(0>e)return void t.apply(s,a);var l=e||!n,u=l?clearTimeout:i,h=l?setTimeout:n;-1!==o&&u(o),o=h(function(){t.apply(s,a),s=null},e)}}}).call(e,function(){return this}())},function(t){t.exports=function(t,e){var n=t[0],i=t[1],r=e[0],o=e[1],s=e[2],a=s[0]-r[0],l=s[1]-r[1],u=o[0]-r[0],h=o[1]-r[1],c=n-r[0],p=i-r[1],f=a*a+l*l,d=a*u+l*h,m=a*c+l*p,v=u*u+h*h,g=u*c+h*p,y=f*v-d*d,b=0===y?0:1/y,S=(v*m-d*g)*b,M=(f*g-d*m)*b;return S>=0&&M>=0&&1>S+M}},function(t,e,n){"use strict";t.exports=n(7)?{onMouseDown:"onTouchStart",onMouseUp:"onTouchEnd",onMouseMove:"onTouchMove"}:{onMouseDown:"onMouseDown",onMouseUp:"onMouseUp",onMouseMove:"onMouseMove"}},[71,13,12,17],[77,12,37,11],[73,40,17],[74,13,12,11],29,31,[76,38],function(t,e,n){"use strict";var i=n(3);i.prototype.alignToRegion=function(t,e){return i.align(this,t,e),this},i.prototype.alignToPoint=function(t,e){return i.alignToPoint(this,t,e),this}},function(t,e,n){"use strict";var i=n(3);i.align=function(t,e,n){return e=i.from(e),n=(n||"c-c").split("-"),2!=n.length&&console.warn("Incorrect region alignment! The align parameter need to be in the form 'br-c', that is, a - separated string!",n),i.alignToPoint(t,e.getPoint(n[1]),n[0])},i.alignToPoint=function(t,e,n){t=i.from(t);var r=t.getPoint(n),o=0,s={};return null!=r.x&&null!=e.x&&(o++,s.left=e.x-r.x),null!=r.y&&null!=e.y&&(o++,s.top=e.y-r.y),o&&t.shift(s),t}},function(t,e,n){"use strict";function i(t,e,n,i){e=r.from(e),i=i||{};var o=i.constrain,s=i.sync,a=i.offset||[],l=!1,u=!1,h=t.clone();Array.isArray(n)||(n=n?[n]:[]),Array.isArray(a)||(a=a?[a]:[]),o&&(o=o===!0?r.getDocRegion():o.getRegion()),s&&(s.size?(l=!0,u=!0):(l=s===!0?!0:s.width||!1,u=s===!0?!0:s.height||!1)),l&&h.setWidth(e.getWidth()),u&&h.setHeight(e.getHeight());for(var c,p,f,d,m=0,v=n.length,g=-1,y=-1;v>m;m++){if(p=n[m],c=a[m],h.alignToRegion(e,p),c&&(Array.isArray(c)||(c=a[m]=[c.x||c.left,c.y||c.top]),h.shift({left:c[0],top:c[1]})),!o)return t.set(h),p;if(f=h.getIntersection(o),f&&f.equals(h))return t.set(h),p;f&&(d=f.getArea())>g&&(g=d,y=m)}return~y?(p=n[y],c=a[y],h.alignToRegion(e,p),c&&h.shift({left:c[0],top:c[1]}),f=h.getIntersection(o),h.setRegion(f),h.alignToRegion(e,p),c&&h.shift({left:c[0],top:c[1]}),t.set(h),p):void 0}var r=n(3);t.exports=i},function(t,e,n){"use strict";function i(t,e,n,i){t=o.from(t);var s=t.clone(),a=r(s,e,n,i);return{position:a,region:s,widthChanged:s.getWidth()!=t.getWidth(),heightChanged:s.getHeight()!=t.getHeight(),positionChanged:s.equalsPosition(t)}}var r=n(46),o=n(3);t.exports=i},function(t,e,n){"use strict";var i=n(3);n(45),n(44);var r=n(47);i.alignRegions=function(t,e,n,i){var o=r(t,e,n,i),s=o.region;return s.equals(t)||t.setRegion(s),o.position},i.prototype.alignTo=function(t,e,n){n=n||{};var o=this,s=i.from(t),a=r(o,s,e,n),l=a.region;return l.equalsSize(o)||this.setSize(l.getSize()),l.equalsPosition(o)||this.setPosition(l.getPosition(),{absolute:!!n.absolute}),a.position},t.exports=i},function(t){t.exports=function(){"use strict";var t={};return function(e){if(!t[e]){for(var n=[],i=0;e>i;i++)n.push("a["+i+"]");t[e]=new Function("c","a","return new c("+n.join(",")+")")}return t[e]}}()},function(t,e,n){var i=n(49);t.exports=function(t,e){return i(e.length)(t,e)}},function(t,e,n){"use strict";function i(t,e,n){return t&&n.forEach(function(n){r(t,n)&&(e[n]=t[n])}),e}var r=n(18),o=n(50),s=n(1),a=n(61).EventEmitter,l=n(52),u=n(19),h=Object.prototype.toString,c=function(t){return"[object Object]"===h.apply(t)},p={cy:"YCenter",cx:"XCenter",t:"Top",tc:"TopCenter",tl:"TopLeft",tr:"TopRight",b:"Bottom",bc:"BottomCenter",bl:"BottomLeft",br:"BottomRight",l:"Left",lc:"LeftCenter",r:"Right",rc:"RightCenter",c:"Center"},f=function(t,e,n,r){return this instanceof f?(a.call(this),c(t)?(i(t,this,["top","right","bottom","left"]),null==t.bottom&&null!=t.height&&(this.bottom=this.top+t.height),null==t.right&&null!=t.width&&(this.right=this.left+t.width),t.emitChangeEvents&&(this.emitChangeEvents=t.emitChangeEvents)):(this.top=t,this.right=e,this.bottom=n,this.left=r),this[0]=this.left,this[1]=this.top,void u(this)):o(f,arguments)};l(f,a),s(f.prototype,{emitChangeEvents:!1,getRegion:function(t){return t?this.clone():this},setRegion:function(t){return this.set(t instanceof f?t.get():t),this},validate:function(){return f.validate(this)},_before:function(){return this.emitChangeEvents?i(this,{},["left","top","bottom","right"]):void 0},_after:function(t){this.emitChangeEvents&&((this.top!=t.top||this.left!=t.left)&&this.emitPositionChange(),(this.right!=t.right||this.bottom!=t.bottom)&&this.emitSizeChange())},notifyPositionChange:function(){this.emit("changeposition",this)},emitPositionChange:function(){this.notifyPositionChange()},notifySizeChange:function(){this.emit("changesize",this)},emitSizeChange:function(){this.notifySizeChange()},add:function(t){var e,n=this._before();for(e in t)r(t,e)&&(this[e]+=t[e]);return this[0]=this.left,this[1]=this.top,this._after(n),this},substract:function(t){var e,n=this._before();for(e in t)r(t,e)&&(this[e]-=t[e]);return this[0]=this.left,this[1]=this.top,this._after(n),this},getSize:function(){return{width:this.width,height:this.height}},setPosition:function(t){var e=this.width,n=this.height;return void 0!=t.left&&(t.right=t.left+e),void 0!=t.top&&(t.bottom=t.top+n),this.set(t)},setSize:function(t){return void 0!=t.height&&void 0!=t.width?this.set({right:this.left+t.width,bottom:this.top+t.height}):(void 0!=t.width&&this.setWidth(t.width),void 0!=t.height&&this.setHeight(t.height),this)},setWidth:function(t){return this.set({right:this.left+t})},setHeight:function(t){return this.set({bottom:this.top+t})},set:function(t){var e=this._before();return i(t,this,["left","top","bottom","right"]),null==t.bottom&&null!=t.height&&(this.bottom=this.top+t.height),null==t.right&&null!=t.width&&(this.right=this.left+t.width),this[0]=this.left,this[1]=this.top,this._after(e),this},get:function(t){return t?this[t]:i(this,{},["left","right","top","bottom"])},shift:function(t){var e=this._before();return t.top&&(this.top+=t.top,this.bottom+=t.top),t.left&&(this.left+=t.left,this.right+=t.left),this[0]=this.left,this[1]=this.top,this._after(e),this},unshift:function(t){return t.top&&(t.top*=-1),t.left&&(t.left*=-1),this.shift(t)},equals:function(t){return this.equalsPosition(t)&&this.equalsSize(t)},equalsSize:function(t){var e=t instanceof f,n={width:null==t.width&&e?t.getWidth():t.width,height:null==t.height&&e?t.getHeight():t.height};return this.getWidth()==n.width&&this.getHeight()==n.height},equalsPosition:function(t){return this.top==t.top&&this.left==t.left},addLeft:function(t){var e=this._before();return this.left=this[0]=this.left+t,this._after(e),this},addTop:function(t){var e=this._before();return this.top=this[1]=this.top+t,this._after(e),this},addBottom:function(t){var e=this._before();return this.bottom+=t,this._after(e),this},addRight:function(t){var e=this._before();return this.right+=t,this._after(e),this},minTop:function(){return this.expand({top:1})},maxBottom:function(){return this.expand({bottom:1})},minLeft:function(){return this.expand({left:1})},maxRight:function(){return this.expand({right:1})},expand:function(t,e){var n,o=e||f.getDocRegion(),s=[],a=this._before();for(n in t)r(t,n)&&s.push(n);return i(o,this,s),this[0]=this.left,this[1]=this.top,this._after(a),this},clone:function(){return new f({top:this.top,left:this.left,right:this.right,bottom:this.bottom})},containsPoint:function(t,e){return 1==arguments.length&&(e=t.y,t=t.x),this.left<=t&&t<=this.right&&this.top<=e&&e<=this.bottom},containsRegion:function(t){return this.containsPoint(t.left,t.top)&&this.containsPoint(t.right,t.bottom)},diffHeight:function(t){return this.diff(t,{top:!0,bottom:!0})},diffWidth:function(t){return this.diff(t,{left:!0,right:!0})},diff:function(t,e){var n,i={};for(n in e)r(e,n)&&(i[n]=this[n]-t[n]);return i},getPosition:function(){return{left:this.left,top:this.top}},getPoint:function(t,e){p[t]||console.warn("The position ",t," could not be found! Available options are tl, bl, tr, br, l, r, t, b.");var n="getPoint"+p[t],i=this[n]();return e?{left:i.x,top:i.y}:i},getPointYCenter:function(){return{x:null,y:this.top+this.getHeight()/2}},getPointXCenter:function(){return{x:this.left+this.getWidth()/2,y:null}},getPointTop:function(){return{x:null,y:this.top}},getPointTopCenter:function(){return{x:this.left+this.getWidth()/2,y:this.top}},getPointTopLeft:function(){return{x:this.left,y:this.top}},getPointTopRight:function(){return{x:this.right,y:this.top}},getPointBottom:function(){return{x:null,y:this.bottom}},getPointBottomCenter:function(){return{x:this.left+this.getWidth()/2,y:this.bottom}},getPointBottomLeft:function(){return{x:this.left,y:this.bottom}},getPointBottomRight:function(){return{x:this.right,y:this.bottom}},getPointLeft:function(){return{x:this.left,y:null}},getPointLeftCenter:function(){return{x:this.left,y:this.top+this.getHeight()/2}},getPointRight:function(){return{x:this.right,y:null}},getPointRightCenter:function(){return{x:this.right,y:this.top+this.getHeight()/2}},getPointCenter:function(){return{x:this.left+this.getWidth()/2,y:this.top+this.getHeight()/2}},getHeight:function(){return this.bottom-this.top},getWidth:function(){return this.right-this.left},getTop:function(){return this.top},getLeft:function(){return this.left},getBottom:function(){return this.bottom},getRight:function(){return this.right},getArea:function(){return this.getWidth()*this.getHeight()},constrainTo:function(t){var e,n=this.getIntersection(t);if(!n||!n.equals(this)){var i=t.getWidth(),r=t.getHeight();return this.getWidth()>i&&(this.left=t.left,this.setWidth(i)),this.getHeight()>r&&(this.top=t.top,this.setHeight(r)),e={},this.right>t.right&&(e.left=t.right-this.right),this.bottom>t.bottom&&(e.top=t.bottom-this.bottom),this.left<t.left&&(e.left=t.left-this.left),this.top<t.top&&(e.top=t.top-this.top),this.shift(e),!0}return!1},__IS_REGION:!0}),Object.defineProperties(f.prototype,{width:{get:function(){return this.getWidth()},set:function(t){return this.setWidth(t)}},height:{get:function(){return this.getHeight()},set:function(t){return this.setHeight(t)}}}),n(53)(f),t.exports=f},function(t){"use strict";t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}},function(t,e,n){"use strict";var i=n(18),r=n(19);t.exports=function(t){var e=Math.max,n=Math.min,o={init:function(){var e,n,r={getIntersection:!0,getIntersectionArea:!0,getIntersectionHeight:!0,getIntersectionWidth:!0,getUnion:!0},o=t.prototype,s=i(r);for(n in r)s(n)&&(e=r[n],"string"!=typeof e&&(e=n),function(e,n,i){e[n]=function(e){return t[i]||console.warn("cannot find method ",i," on ",t),t[i](this,e)}}(o,e,n))},validate:r,getDocRegion:function(){return t.fromDOM(document.documentElement)},from:function(e){if(e.__IS_REGION)return e;if("undefined"!=typeof document){if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return t.fromDOM(e);if(e.type&&"undefined"!=typeof e.pageX&&"undefined"!=typeof e.pageY)return t.fromEvent(e)}return t(e)},fromEvent:function(e){return t.fromPoint({x:e.pageX,y:e.pageY})},fromDOM:function(e){var n=e.getBoundingClientRect();return new t({top:n.top,left:n.left,bottom:n.bottom,right:n.right})},getIntersection:function(e,n){var i=this.getIntersectionArea(e,n);return i?new t(i):!1},getIntersectionWidth:function(t,i){var r=n(t.right,i.right),o=e(t.left,i.left);return r>o?r-o:0},getIntersectionHeight:function(t,i){var r=e(t.top,i.top),o=n(t.bottom,i.bottom);return o>r?o-r:0},getIntersectionArea:function(t,i){var r=e(t.top,i.top),o=n(t.right,i.right),s=n(t.bottom,i.bottom),a=e(t.left,i.left);return s>r&&o>a?{top:r,right:o,bottom:s,left:a,width:o-a,height:s-r}:!1},getUnion:function(i,r){var o=n(i.top,r.top),s=e(i.right,r.right),a=e(i.bottom,r.bottom),l=n(i.left,r.left);return new t(o,s,a,l)},getRegion:function(e){return t.from(e)},fromPoint:function(e){return new t({top:e.y,bottom:e.y,left:e.x,right:e.x})}};Object.keys(o).forEach(function(e){t[e]=o[e]}),t.init()}},function(t){"use strict";function e(t,e){function n(i){function r(){var r=arguments.length,o=[].concat(i);return r&&o.push.apply(o,arguments),o.length<e?n(o):t.apply(this,o)
}return r}return"number"!=typeof e&&(e=t.length),n([])}t.exports=e},function(t){"use strict";var e=Element.prototype,n=e.matches||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;t.exports=n},function(t){"use strict";t.exports={"default":{overStyle:{background:"linear-gradient(to bottom, rgb(125, 191, 242) 0%, rgb(110, 184, 241) 50%, rgb(117, 188, 242) 100%)",color:"white"},activeStyle:{background:" linear-gradient(to bottom, rgb(106,182,240) 0%,rgb(91,175,239) 50%,rgb(96,178,240) 100%)",color:"white"},expandedStyle:{background:"linear-gradient(to bottom, rgb(162,210,246) 0%,rgb(151,204,245) 50%,rgb(154,206,246) 100%)",color:"white"},disabledStyle:{color:"gray",cursor:"default"}}}},function(t,e,n){"use strict";var i=(n(48),n(21));t.exports=function(t,e,n,r){var o=i.call(this,r);if(o){if("function"!=typeof t.alignSubMenu){var s=e.alignTo(n,["tl-tr","bl-br","tr-tl","br-bl"],{constrain:o});return"tl-tr"==s||"tr-tl"==s?1:-1}t.alignSubMenu(e,n,o)}}},function(t,e,n){"use strict";var i=n(1);t.exports=function(t){var e=i({},t.defaultItemStyle,t.itemStyle),n=i({},t.defaultItemOverStyle,t.itemOverStyle),r=i({},t.defaultItemActiveStyle,t.itemActiveStyle),o=i({},t.defaultItemDisabledStyle,t.itemDisabledStyle),s=i({},t.defaultItemExpandedStyle,t.itemExpandedStyle),a=i({},t.defaultCellStyle,t.cellStyle);return{itemStyle:e,itemOverStyle:n,itemActiveStyle:r,itemDisabledStyle:o,itemExpandedStyle:s,cellStyle:a}}},function(t,e,n){"use strict";var i=n(3),r=n(1),o=n(57);t.exports=function(t,e){if(!e.menu||!this.didMount)return void(this.prevMenuIndex=-1);var n=e.menuOffset,s=n.left+n.width,a=n.top,l=e.itemProps.index,u=this.prevMenuIndex==l;this.aligning&&!u&&(this.aligning=!1),this.prevMenuIndex=l;var h={position:"absolute",visibility:"hidden",overflow:"hidden",pointerEvents:"none",left:s,top:a,zIndex:1};return this.aligning||u||setTimeout(function(){if(this.didMount){var e=i.from(this.getDOMNode()),r=i.from({left:e.left,top:e.top+n.top,width:n.width,height:n.height}),l=this.refs.subMenu&&this.refs.subMenu.isMounted();if(l){var u,h=i.from(this.refs.subMenu.refs.scrollContainer.getCurrentSizeDOM()),c=h.height,p=o(t,h,r,t.constrainTo),f=h.height;c>f&&(u=f-t.subMenuConstrainMargin),u&&-1==p&&(h.top=h.bottom-u);var d=h.left-e.left,m=h.top-e.top;Math.abs(d-s)<5&&(d=s),Math.abs(m-a)<5&&(m=a),this.subMenuPosition=0>d?"left":"right",this.alignOffset={left:d,top:m},this.aligning=!0,this.setState({subMenuMaxHeight:u})}}}.bind(this),0),(u||this.aligning&&this.alignOffset)&&(r(h,this.alignOffset),h.visibility="visible",delete h.pointerEvents,delete h.overflow),this.aligning=!1,h}},function(t,e,n){"use strict";var i=n(2);t.exports={items:i.PropTypes.array,columns:i.PropTypes.array,onMount:i.PropTypes.func,defaultRowActiveStyle:i.PropTypes.object,defaultRowOverStyle:i.PropTypes.object,defaultRowStyle:i.PropTypes.object,rowActiveStyle:i.PropTypes.object,rowOverStyle:i.PropTypes.object,rowStyle:i.PropTypes.object,cellStyle:i.PropTypes.object}},function(t){function e(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(t){return"function"==typeof t}function i(t){return"number"==typeof t}function r(t){return"object"==typeof t&&null!==t}function o(t){return void 0===t}t.exports=e,e.EventEmitter=e,e.prototype._events=void 0,e.prototype._maxListeners=void 0,e.defaultMaxListeners=10,e.prototype.setMaxListeners=function(t){if(!i(t)||0>t||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},e.prototype.emit=function(t){var e,i,s,a,l,u;if(this._events||(this._events={}),"error"===t&&(!this._events.error||r(this._events.error)&&!this._events.error.length)){if(e=arguments[1],e instanceof Error)throw e;throw TypeError('Uncaught, unspecified "error" event.')}if(i=this._events[t],o(i))return!1;if(n(i))switch(arguments.length){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;default:for(s=arguments.length,a=new Array(s-1),l=1;s>l;l++)a[l-1]=arguments[l];i.apply(this,a)}else if(r(i)){for(s=arguments.length,a=new Array(s-1),l=1;s>l;l++)a[l-1]=arguments[l];for(u=i.slice(),s=u.length,l=0;s>l;l++)u[l].apply(this,a)}return!0},e.prototype.addListener=function(t,i){var s;if(!n(i))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,n(i.listener)?i.listener:i),this._events[t]?r(this._events[t])?this._events[t].push(i):this._events[t]=[this._events[t],i]:this._events[t]=i,r(this._events[t])&&!this._events[t].warned){var s;s=o(this._maxListeners)?e.defaultMaxListeners:this._maxListeners,s&&s>0&&this._events[t].length>s&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace())}return this},e.prototype.on=e.prototype.addListener,e.prototype.once=function(t,e){function i(){this.removeListener(t,i),r||(r=!0,e.apply(this,arguments))}if(!n(e))throw TypeError("listener must be a function");var r=!1;return i.listener=e,this.on(t,i),this},e.prototype.removeListener=function(t,e){var i,o,s,a;if(!n(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(i=this._events[t],s=i.length,o=-1,i===e||n(i.listener)&&i.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(r(i)){for(a=s;a-->0;)if(i[a]===e||i[a].listener&&i[a].listener===e){o=a;break}if(0>o)return this;1===i.length?(i.length=0,delete this._events[t]):i.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},e.prototype.removeAllListeners=function(t){var e,i;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(i=this._events[t],n(i))this.removeListener(t,i);else for(;i.length;)this.removeListener(t,i[i.length-1]);return delete this._events[t],this},e.prototype.listeners=function(t){var e;return e=this._events&&this._events[t]?n(this._events[t])?[this._events[t]]:this._events[t].slice():[]},e.listenerCount=function(t,e){var i;return i=t._events&&t._events[e]?n(t._events[e])?1:t._events[e].length:0}},function(t,e,n){"use strict";function i(){}function r(t){return t?t.charAt(0).toUpperCase()+t.substring(1):""}var o=n(2),s=n(1),a=n(30),l=function(){var t={left:"flex-start",start:"flex-start",center:"center",right:"flex-end",end:"flex-end"};return function(e){return t[e]||e}}(),u=o.PropTypes,h="ReactButton",c={"default":{style:{border:"1px solid rgb(46, 153, 235)",color:"rgb(84, 84, 84)"},overStyle:{background:"linear-gradient(to bottom, rgb(125, 191, 242) 0%, rgb(110, 184, 241) 50%, rgb(117, 188, 242) 100%)",color:"white"},activeStyle:{background:" linear-gradient(to bottom, rgb(106,182,240) 0%,rgb(91,175,239) 50%,rgb(96,178,240) 100%)",color:"white"},disabledStyle:{background:"rgb(221, 221, 221)",border:"1px solid rgb(147, 147, 147)",color:"rgb(128, 128, 128)"},pressedStyle:{background:"linear-gradient(to bottom, rgb(22,135,222) 0%,rgb(20,129,212) 50%,rgb(20,132,218) 100%)",color:"white"},overPressedStyle:{background:"linear-gradient(to bottom, rgb(48,153,234) 0%,rgb(36,148,234) 50%,rgb(41,151,235) 100%)"},activePressedStyle:{background:"linear-gradient(to bottom, rgb(58,159,236) 0%,rgb(45,153,235) 50%,rgb(50,155,236) 100%)"},focusedStyle:{}},primary:{style:{background:"linear-gradient(to bottom, #4ea9ee 0%,#41a2ed 50%,#46a5ee 100%)",color:"white"},overStyle:{background:"linear-gradient(to bottom, rgb(96,178,240) 0%,rgb(83,171,239) 50%,rgb(88,174,240) 100%)"},activeStyle:{background:"linear-gradient(to bottom, rgb(64,162,236) 0%,rgb(50,155,236) 50%,rgb(55,158,237) 100%)"},disabledStyle:{background:"rgb(116, 144, 166)",color:"rgb(190, 190, 190)"}}},p=o.createClass({displayName:h,propTypes:{fn:u.func,onClick:u.func,primary:u.bool,disabled:u.bool,pressed:u.bool,defaultPressed:u.bool,href:u.string,align:u.string,style:u.object,className:u.string,activeClassName:u.string,overClassName:u.string,focusedClassName:u.string,disabledClassName:u.string},getDefaultProps:function(){return{isReactButton:!0,applyDefaultTheme:!0,buttonStates:["focused","pressed"],"data-display-name":h,align:"center",defaultStyle:{boxSizing:"border-box",display:"inline-flex",alignItems:"center",justifyContent:"center",userSelect:"none",textDecoration:"none",cursor:"pointer",overflow:"hidden",whiteSpace:"nowrap",padding:5,margin:2},defaultDisabledStyle:{cursor:"default"},defaultLabelStyle:{display:"inline-block"},ellipsisLabelStyle:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},ellipsis:!0,href:""}},getInitialState:function(){return{mouseOver:!1,active:!1,defaultPressed:this.props.defaultPressed}},isFocused:function(){return this.state.focused},isActive:function(){return!!this.state.active},render:function(){var t=this.prepareProps(this.props,this.state);return(t.factory||o.DOM.a)(t)},prepareProps:function(t,e){var n={};s(n,t),n.theme=this.prepareTheme(n);var i=null!=n.pressed?n.pressed:e.defaultPressed;null!=i&&(n.pressed=i),n.active=null==n.activeState?!!e.active:n.activeState,n.over=null==n.overState?!!e.mouseOver:n.overState,n.focused=null==n.focusedState?!!e.focused:n.focusedState,n["data-active"]=n.active,n["data-over"]=n.over,n["data-focused"]=n.focused,n["data-pressed"]=n.pressed,n["data-disabled"]=n.disabled,n.style=this.prepareStyle(n,e),n.className=this.prepareClassName(n,e),n.children=this.prepareChildren(n);var r=this.handleClick.bind(this,n);return n.onClick="function"==typeof n.interceptClick?n.interceptClick.bind(this,r):r,n.onFocus=this.handleFocus.bind(this,n),n.onBlur=this.handleBlur.bind(this,n),n.onMouseEnter=this.handleMouseEnter.bind(this,n),n.onMouseLeave=this.handleMouseLeave.bind(this,n),n.onMouseDown=this.handleMouseDown.bind(this,n),n.onMouseUp=this.handleMouseUp.bind(this,n),n},handleFocus:function(t,e){t.disabled||(this.setState({focused:!0}),(this.props.onFocus||i)(e))},handleBlur:function(t,e){t.disabled||(this.setState({focused:!1}),(this.props.onBlur||i)(e))},handleClick:function(t,e){if((!t.href||t.disabled)&&e.preventDefault(),!t.disabled){if(null!=t.pressed){var n=!t.pressed;null==this.props.pressed&&this.setState({defaultPressed:n}),(this.props.onToggle||i)(n,e)}(this.props.onClick||i)(e),(this.props.fn||i)(t,e)}},handleMouseEnter:function(t,e){t.disabled||(this.setState({mouseOver:!0}),(this.props.onMouseEnter||i)(e))},handleMouseLeave:function(t,e){t.disabled||(this.setState({mouseOver:!1}),(this.props.onMouseLeave||i)(e))},handleMouseUp:function(t,e){t.disabled||(this.setState({active:!1}),window.removeEventListener("mouseup",this.handleMouseUp),(this.props.onMouseUp||i)(e),(this.props.onDeactivate||i)(e))},handleMouseDown:function(t,e){t.disabled||(this.setState({active:!0}),window.addEventListener("mouseup",this.handleMouseUp),(this.props.onMouseDown||i)(e),(this.props.onActivate||i)(e))},prepareTheme:function(t){var e=t.theme,n=t.themes=t.themes||this.constructor.theme||c;return"string"==typeof e&&(e=n[e]?n[e]:null),null==e?n["default"]:e},prepareChildren:function(t){var e=t.children;if(t.label){var n=s({},t.defaultLabelProps,t.labelProps),i=s({},t.defaultLabelStyle);t.ellipsis&&s(i,t.ellipsisLabelStyle);var r=s({},i,n.style,t.labelStyle);n.style=r,e=o.createElement("span",o.__spread({},n),t.label)}return"function"==typeof this.props.renderChildren?this.props.renderChildren(e):e},prepareClassName:function(t){var e=t.className||"";return t.disabled?t.disabledClassName&&(e+=" "+t.disabledClassName):(t.active&&t.activeClassName&&(e+=" "+t.activeClassName),t.pressed&&t.pressedClassName&&(e+=" "+t.pressedClassName),t.over&&t.overClassName&&(e+=" "+t.overClassName),t.focused&&t.focusedClassName&&(e+=" "+t.focusedClassName)),e},prepareComputedStyleNames:function(t){if("function"==typeof t.computeStyleNames)return t.computeStyleNames(t);var e=["style"];if(t.disabled)return e.push("disabledStyle"),e;t.focused&&e.push("focusedStyle"),t.pressed&&e.push("pressedStyle"),"function"==typeof t.addStateStyle&&t.addStateStyle(e),t.focused&&t.pressed&&e.push("focusedPressedStyle"),"function"==typeof t.addCombinedStateStyle&&t.addCombinedStateStyle(e);var n;t.over&&(n=e.map(function(t){return"over"+r(t)}));var i;return t.active&&(i=e.map(function(t){return"active"+r(t)})),n&&e.push.apply(e,n),i&&e.push.apply(e,i),e},prepareStyle:function(t){var e=s({},this.prepareDefaultStyle(t)),n=this.prepareComputedStyleNames(t),r=t.theme,o=t.themes;return r&&(t.applyDefaultTheme&&o["default"]&&r!=o["default"]&&n.forEach(function(t){s(e,o["default"][t])}),n.forEach(function(t){s(e,r[t])})),(t.onThemeStyleReady||i)(e,t),n.forEach(function(n){s(e,t[n])}),(t.onStyleReady||i)(e,t),a(e)},prepareDefaultStyle:function(t){var e=s({},t.defaultStyle);return t.block&&(e.display="flex"),e.justifyContent=l(t.align),t.disabled&&s(e,t.defaultDisabledStyle),e}});p.themes=c,t.exports=p},function(t,e,n){"use strict";var i=n(2),r=(n(6),n(4)),o=(n(23),n(5));t.exports=function(t){var e,n=[];if(i.Children.forEach(t.children,function(i){if(i){if(i.props&&i.props.isMenu)return e=o(i,{ref:"subMenu"}),void(e.props.subMenu=!0);"string"!=typeof i&&(i=o(i,{style:t.cellStyle,itemIndex:t.itemIndex,itemCount:t.itemCount})),n.push(i)}}),e){t.menu=e;var s=t.expander||!0,a={};s&&(a.onClick=t.onExpanderClick),n.push(i.createElement(r,i.__spread({expander:s},a)))}return n}},function(t,e,n){"use strict";var i=n(23);t.exports=function(t){return t.columns.map(i.bind(null,t))}},function(t,e,n){"use strict";function i(t){t.preventDefault(),t.stopPropagation()}var r=n(2),o=n(1),s=n(34),a=n(66);t.exports=r.createClass({displayName:"ReactMenuScrollContainer",getInitialState:function(){return{adjustScroll:!0,scrollPos:0}},getDefaultProps:function(){return{scrollStep:5,scrollSpeed:50}},componentWillUnmount:function(){this.props.enableScroll&&window.removeEventListener("resize",this.onResizeListener)},componentDidMount:function(){this.props.enableScroll&&setTimeout(function(){this.isMounted()&&(this.adjustScroll(),window.addEventListener("resize",this.onResizeListener=s(this.onWindowResize,this.props.onWindowResizeBuffer,this)))}.bind(this),0)},componentDidUpdate:function(){this.props.enableScroll&&this.adjustScroll()},onWindowResize:function(){this.adjustScroll(),this.doScroll(0)},render:function(){var t=this.props,e=t.children;if(!t.enableScroll)return e;var n={position:"relative"};this.state.scrollPos&&(n.top=-this.state.scrollPos);var i={position:"relative",overflow:"hidden"};return t.maxHeight&&(i.maxHeight=t.maxHeight),r.createElement("div",{onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,className:"z-menu-scroll-container",style:i},r.createElement("div",{ref:"tableWrap",style:n},e),this.renderScroller(t,-1),this.renderScroller(t,1))},renderScroller:function(t,e){var n=-1==e?this.handleScrollTop:this.handleScrollBottom,i=-1==e?this.handleScrollTopMax:this.handleScrollBottomMax,s=-1==e?this.state.hasTopScroll:this.state.hasBottomScroll,l=o({},t.scrollerProps,{visible:s,side:-1==e?"top":"bottom",onMouseDown:n,onDoubleClick:i});return r.createElement(a,r.__spread({},l))},adjustScroll:function(){if(this.props.enableScroll){if(!this.state.adjustScroll)return void(this.state.adjustScroll=!0);var t=this.getAvailableHeight(),e=this.getCurrentTableHeight(),n={adjustScroll:!1,hasTopScroll:!1,hasBottomScroll:!1};e>t?(n.maxScrollPos=e-t,n.hasTopScroll=0!==this.state.scrollPos,n.hasBottomScroll=this.state.scrollPos!=n.maxScrollPos):(n.maxScrollPos=0,n.scrollPos=0),this.setState(n)}},getAvailableHeight:function(){return this.getAvailableSizeDOM().clientHeight},getAvailableSizeDOM:function(){return this.getDOMNode()},getCurrentTableHeight:function(){return this.getCurrentSizeDOM().clientHeight},getCurrentSizeDOM:function(){return this.refs.tableWrap.getDOMNode()},handleScrollTop:function(t){t.preventDefault(),this.handleScroll(-1)},handleScrollBottom:function(t){t.preventDefault(),this.handleScroll(1)},handleScrollTopMax:function(t){i(t),this.handleScrollMax(-1)},handleScrollBottomMax:function(t){i(t),this.handleScrollMax(1)},handleScrollMax:function(t){var e=-1==t?0:this.state.maxScrollPos;this.setScrollPosition(e)},handleScroll:function(t){var e=function(){this.stopScroll(),window.removeEventListener("mouseup",e)}.bind(this);window.addEventListener("mouseup",e),this.scrollInterval=setInterval(this.doScroll.bind(this,t),this.props.scrollSpeed)},doScroll:function(t){this.setState({scrollDirection:t});var e=this.state.scrollPos+t*this.props.scrollStep;this.setScrollPosition(e)},setScrollPosition:function(t){t>this.state.maxScrollPos&&(t=this.state.maxScrollPos),0>t&&(t=0),this.setState({scrollPos:t,scrolling:!0})},stopScroll:function(){clearInterval(this.scrollInterval),this.setState({scrolling:!1})}})},function(t,e,n){"use strict";function i(){}function r(t,e,n){var i=s({},n),r={color:i.color||t.arrowColor},o=4,l=i.width||t.arrowWidth||t.arrowSize||t.style.height-o,u=i.height||t.arrowHeight||t.arrowSize||t.style.height-o;return r.width=l,r.height=u,s(i,a("top"==t.side?"up":"down",r)),i.display="inline-block",i.position="absolute",i.left="50%",i.marginLeft=-l,i.top="50%",i.marginTop=-u/2,e.active&&(i.marginTop+="top"==t.side?-1:1),i}var o=n(2),s=n(1),a=n(33),l={left:0,right:0,position:"absolute",cursor:"pointer",zIndex:1},u=o.createClass({displayName:"Scroller",display:"ReactMenuScroller",getInitialState:function(){return{}},getDefaultProps:function(){return{height:10,defaultStyle:{background:"white"},defaultOverStyle:{},overStyle:{},defaultTopStyle:{borderBottom:"1px solid gray"},topStyle:{},defaultBottomStyle:{borderTop:"1px solid gray"},bottomStyle:{},arrowColor:"gray",arrowStyle:{},defaultArrowStyle:{},defaultArrowOverStyle:{color:"rgb(74, 74, 74)"},arrowOverStyle:{}}},handleMouseEnter:function(){this.setState({mouseOver:!0})},handleMouseLeave:function(){this.setState({mouseOver:!1})},handleMouseDown:function(t){this.setState({active:!0}),(this.props.onMouseDown||i)(t)},handleMouseUp:function(t){this.setState({active:!1}),(this.props.onMouseUp||i)(t)},render:function(){var t=s({},this.props,{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp}),e=this.state,n=t.side;t.className=this.prepareClassName(t,e),t.style=this.prepareStyle(t,e);var i=this.prepareArrowStyle(t,e);return t.factory?t.factory(t,n):o.createElement("div",o.__spread({},t),o.createElement("div",{style:i}))},prepareStyle:function(t,e){var n,i;e.mouseOver&&(i=t.overStyle,n=t.defaultOverStyle);var r="top"==t.side?t.defaultTopStyle:t.defaultBottomStyle,o="top"==t.side?t.topStyle:t.bottomStyle,a=s({},l,t.defaultStyle,r,n,t.style,o,i);return a.height=a.height||t.height,a[t.side]=0,t.visible||(a.display="none"),a},prepareClassName:function(t){var e=t.className||"";return e+=" z-menu-scroller "+t.side,t.active&&t.visible&&(e+=" active"),e},prepareArrowStyle:function(t,e){var n,i;e.mouseOver&&(n=t.defaultArrowOverStyle,i=t.arrowOverStyle);var o=s({},t.defaultArrowStyle,n,t.arrowStyle,i);return r(t,e,o)},handleClick:function(t){t.stopPropagation}});t.exports=u},function(t,e,n){"use strict";var i=n(6),r=n(14),o=n(4),s=n(24);i.Item=r,i.Item.Cell=o,i.ItemCell=o,i.Separator=s,t.exports=i},function(t,e,n){"use strict";var i=n(2),r=n(1),o=n(64),s=n(14),a=i.createFactory(s),l=n(24);t.exports=function(t,e,s,u){var h=e.itemProps?e.itemProps.index:-1;if("-"===s)return i.createElement(l,{key:u});var c=[t.itemClassName,s.cls,s.className].filter(function(t){return!!t}).join(" "),p=r({className:c,key:u,data:s,columns:t.columns,expanded:u===h,disabled:s.disabled,onClick:s.onClick||s.fn},t.itemStyleProps);if(p.children=o(p),s.items){var f=n(6);p.children.push(i.createElement(f,{items:s.items}))}return(t.itemFactory||a)(p)}},function(t,e,n){"use strict";function i(){}var r=n(2),o=n(4),s=n(5),a=n(1);t.exports=function(t,e){var n=e.itemProps?e.itemProps.index:-1,l=t.children,u=1,h=[];r.Children.map(l,function(t){var e=t.props;if(h.push(t),e&&e.isMenuItem){var n=r.Children.count(e.children);u=Math.max(u,n)}});var c=t.itemStyleProps,p=-1,f=h.map(function(e,l){var f=e.props;f&&f.isMenuItem&&(p++,f.onMenuItemMouseOver=this.onMenuItemMouseOver,f.onMenuItemMouseOut=this.onMenuItemMouseOut);var d=r.Children.map(f.children,function(t){return t}),m=r.Children.count(d);for(u>m&&(d=d?[d]:[]);u>m;)m++,d.push(r.createElement(o,null));var v=f.onClick||i,g=s(e,a({interactionStyles:t.interactionStyles,itemIndex:p,itemCount:h.length,key:l,index:l,expanded:n==l,children:d,expander:t.expander,applyDefaultTheme:t.applyDefaultTheme,theme:t.theme,themes:t.themes||this.constructor.themes,onExpanderClick:this.onMenuItemExpanderClick,onClick:function(t,e,n){v.apply(null,arguments),this.onMenuItemClick(t,e,n)}.bind(this)},{style:c.itemStyle,overStyle:c.itemOverStyle,activeStyle:c.itemActiveStyle,disabledStyle:c.itemDisabledStyle,expandedStyle:c.itemExpandedStyle,cellStyle:c.cellStyle}));return g},this);return f}},function(t,e,n){"use strict";var i=(n(3),n(1)),r=n(5),o=n(59);t.exports=function(t,e){var n=e.menu;if(n&&this.didMount){var s=o.call(this,t,e);return n=r(n,i({ref:"subMenu",subMenu:!0,parentMenu:this,maxHeight:e.subMenuMaxHeight,onActivate:this.onSubMenuActivate,onInactivate:this.onSubMenuInactivate,scrollerProps:t.scrollerProps,constrainTo:t.constrainTo,expander:t.expander,theme:t.theme,themes:t.themes||this.constructor.themes},t.itemStyleProps)),React.createElement("div",{ref:"subMenuWrap",style:s,onMouseEnter:this.handleSubMenuMouseEnter,onMouseLeave:this.handleSubMenuMouseLeave},n)}}},function(t,e,n,i,r,o){"use strict";var s=n(i),a=n(r),l=n(o);t.exports=function(t){if(!l[t])return t;var e=a(t);return e?e+s(t):t}},function(t,e,n,i,r,o,s){"use strict";function a(t,e){var n={key:t,value:e};return(f.plugins||[]).forEach(function(i){var r=c(function(n){return i(t,e,n)},n);r&&(n=r)}),n}function l(t,e){var n=a(t,e);return c(function(t){return{key:h(t.key,t.value),value:t.value}},n)}var u=n(i),h=n(r),c=n(o),p=n(s),f=function(t){var e,n,i={};for(e in t)if(u(t,e)){if(n=l(e,t[e]),!n)continue;c(function(t){i[t.key]=t.value},n)}return i};t.exports=p(f)},function(t,e,n,i,r){"use strict";var o=n(i),s=n(r);t.exports=function(t,e){return s[t]?o(t,e):t}},function(t,e,n,i,r,o){"use strict";var s,a,l=n(i),u=n(r),h=n(o),c={};t.exports=function(t){a=a||h(),s=s||a.style;var e=t;if(c[e])return c[e];var n,i;return t in s||(n=u("appearance"),n&&(i=n+l(t),i in s&&(t=i))),c[e]=t,t}},function(t,e,n,i,r){"use strict";var o,s,a=n(i),l=["ms","Moz","Webkit","O"],u=n(r);t.exports=function(t){if(void 0!==s)return s;o=o||u();for(var e,n,i=0,r=l.length;r>i;i++)if(n=l[i],e=n+a(t),"undefined"!=typeof o.style[e])return s=n;return s}},function(t,e,n,i){"use strict";var r=n(i);t.exports=function(t){return t.plugins=t.plugins||[function(){var t={flex:1,"inline-flex":1};return function(e,n){return"display"===e&&n in t?{key:e,value:r(e,n)}:void 0}}()],t.plugin=function(e){t.plugins=t.plugins||[],t.plugins.push(e)},t}},function(t,e,n,i,r,o){"use strict";var s,a,l=n(i),u=n(r),h=n(o),c={};t.exports=function(t,e){a=a||h(),s=s||a.style;var n=t+": "+e;if(c[n])return c[n];var i,r,o;return t in s||(i=l("appearance"),i&&(r=u(t,e),o="-"+i.toLowerCase()+"-"+e,r in s&&(a.style[r]="",a.style[r]=o,""!==a.style[r]&&(e=o)))),c[n]=e,e}}]))});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("React")):"function"==typeof define&&define.amd?define(["React"],e):"object"==typeof exports?exports.ReactDropDownButton=e(require("React")):t.ReactDropDownButton=e(t.React)}(this,function(t){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}(function(t){for(var e in t)switch(typeof t[e]){case"number":t[e]=t[t[e]];break;case"object":t[e]=function(e){var n=e.slice(1),i=t[e[0]];return function(t,e,r){i.apply(null,[t,e,r].concat(n))}}(t[e])}return t}([function(t,e,n){"use strict";function i(){}var r=n(2),o=n(1),s=n(25),a=n(5),l=n(7),u=n(42),h=r.createFactory(u),c="ReactDropDownButton",p=o({},s.themes);p["default"]=o({},p["default"],{openedStyle:{background:"linear-gradient(to bottom, rgb(162,210,246) 0%,rgb(151,204,245) 50%,rgb(154,206,246) 100%)",color:"white"}});var f=r.createClass({displayName:c,getInitialState:function(){return{}},getDefaultProps:function(){return{"data-display-name":c,stopClickPropagation:!1,hideMenuOnClick:!0,smartArrowPadding:!0,defaultStyle:{boxSizing:"border-box",verticalAlign:"top",padding:5},defaultArrowStyle:{display:"inline-block",boxSizing:"border-box",fontSize:"0.8em"},defaultMenuStyle:{},alignOffset:{left:0,top:1},enforceNonStatic:!0,arrowPosition:"right"}},render:function(){var t=this.prepareProps(this.props,this.state),e=this.prepareWrapperProps(t);return r.createElement("div",r.__spread({},e),r.createElement(s,r.__spread({themes:this.constructor.themes,ref:"button"},t)),this.state.menu)},handleWrapperClick:function(t,e){e&&e.nativeEvent&&e.nativeEvent.clickInsideMenu||(t.stopClickPropagation&&e.stopPropagation(),this.ignoreClick(function(){this.toggleMenu(t)}))},prepareWrapperProps:function(t){var e={verticalAlign:"top",display:t.block?"block":"inline-block"},n=o({},e,t.wrapperStyle);n.position="absolute"==n.position?n.position:"relative",n.overflow="visible";var i=o({style:n},t.wrapperProps);return i.onClick=this.handleWrapperClick.bind(this,t),i},prepareProps:function(t){var e=o({},t);return e.style=this.prepareStyle(e),e.addStateStyle=this.addStateStyle,e.renderChildren=this.renderChildren.bind(this,e),e},prepareStyle:function(t){var e=o({},t.defaultStyle,t.style);return delete t.defaultStyle,e},addStateStyle:function(t){this.menu&&t.push("openedStyle")},renderChildren:function(t,e){var n,i=this.renderArrow(t),r=i;"right"!=t.arrowPosition&&(n=i,r=null);var e=[n,e,r];return"function"==typeof this.props.renderChildren?this.props.renderChildren(e):e},renderArrow:function(t){var e=t.arrow;return t.renderArrow&&(e=t.renderArrow(t)),e!==!1?e||this.getDefaultArrow(t):void 0},getDefaultArrow:function(t){var e="right"!=t.arrowPosition?"Right":"Left",n=t.defaultArrowStyle;t.smartArrowPadding&&(n=o({},n),n["padding"+e]=t.style.padding);var i=o({},n,t.arrowStyle);return r.createElement("span",{style:i},"▼")},toggleMenu:function(t){this.menu?this.hideMenu():this.showMenu(t)},setMenu:function(t){this.menu=t,"function"==typeof this.props.onMenuChange&&this.props.onMenuChange(t,this,this._rootNodeID),this.props.renderMenu!==!1&&this.setState({menu:t})},showMenu:function(t){var e=t.getAlignTarget?t.getAlignTarget.call(this):this.refs.button.getDOMNode();this.removeClickListener(),window.addEventListener("click",this.clickEventListener=this.onDocumentClick);var n=o({},t.menuProps),i=o({position:"absolute",zIndex:1},t.defaultMenuStyle,n.style,t.menuStyle);n.style=i,n.alignPositions=t.alignPositions||n.alignPositions||["tl-bl","tr-br","bl-tl","br-tr"],o(n,{onChildClick:this.onMenuChildClick.bind(this,t),alignOffset:t.alignOffset||n.alignOffset,alignTo:e,items:n.items||t.items});var r;t.menu?r=a(t.menu,n):(r="function"==typeof t.menuFactory?t.menuFactory(n):void 0,void 0===r&&n.items&&(r=h(n))),this.setMenu(r)},isExpanderClick:function(t){return l&&t&&(t.nativeEvent&&t.nativeEvent.expanderClick||t.expanderClick)?!0:!1},onDocumentClick:function(t){this.ignoreWindowClick||this.isExpanderClick(t)||this.hideMenu()},componentWillUnmount:function(){this.removeClickListener(),this.setMenu(!1)},removeClickListener:function(){this.clickEventListener&&(window.removeEventListener("click",this.clickEventListener),this.clickEventListener=null)},hideMenu:function(){this.menu&&(this.removeClickListener(),this.setMenu(!1))},onMenuChildClick:function(t,e,n){void 0!==n&&(this.isExpanderClick(e)||(this.props.menuProps&&(this.props.menuProps.onChildClick||i)(e,n),e.nativeEvent.clickInsideMenu=!0,(this.props.onMenuClick||i)(e,n),!this.props.hideMenuOnClick||e.nativeEvent.hideMenu===!1||n&&n.data&&n.data.hideMenu===!1?this.ignoreClick():(this.menu&&this.refs.button&&this.refs.button.handleMouseLeave(t,e),this.hideMenu())))},ignoreClick:function(t){this.ignoreWindowClick=!0,setTimeout(function(){this.ignoreWindowClick=!1,"function"==typeof t&&t.call(this)}.bind(this),0)}});f.themes=p,t.exports=f},function(t){"use strict";function e(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=Object.assign||function(t){for(var n,i,r=e(t),o=1;o<arguments.length;o++){n=arguments[o],i=Object.keys(Object(n));for(var s=0;s<i.length;s++)r[i[s]]=n[i[s]]}return r}},function(e){e.exports=t},function(t,e,n){t.exports=n(65)},function(t,e,n){"use strict";var i=n(2),r=n(1),o=i.createClass({displayName:"ReactMenuItemCell",getDefaultProps:function(){return{defaultStyle:{padding:5,whiteSpace:"nowrap"}}},render:function(){var t=this.prepareProps(this.props),e=t.children;return t.expander&&(e=t.expander===!0?"›":t.expander),i.createElement("td",i.__spread({},t),e)},prepareProps:function(t){var e={};return r(e,t),e.style=this.prepareStyle(e),e},prepareStyle:function(t){var e={};return r(e,t.defaultStyle,t.style),e}});t.exports=o},function(t,e,n){"use strict";function i(t,e){var n,i=s(t);for(n in e)l.call(h,n)?h[n](i,e[n],n):l.call(i,n)||(i[n]=e[n]);return i}function r(t){return function(e,n,i){e[i]=l.call(e,i)?t(e[i],n):n}}function o(t,e){return t?t+(e?" "+e:""):e||""}function s(){for(var t={},e=0;e<arguments.length;e++)for(var n in arguments[e])l.call(arguments[e],n)&&(t[n]=arguments[e][n]);return t}var a=n(2),l=Object.prototype.hasOwnProperty,u=a.version.split(".").map(parseFloat),h={className:r(o),children:function(){},key:function(){},ref:function(){},style:r(s)};t.exports=function(t,e){function n(){}var r=i(e,t.props);return!l.call(r,"children")&&l.call(t.props,"children")&&(r.children=t.props.children),0===u[0]&&u[1]<11?t.constructor.ConvenienceConstructor(r):0===u[0]&&11===u[1]?t.constructor(r):0===u[0]&&12===u[1]?(n.isReactLegacyFactory=!0,n.type=t.type,a.createElement(n,r)):a.createElement(t.type,r)}},function(t,e,n){"use strict";function i(){}var r=n(2),o=n(1),s=n(3),a=n(49),l=n(7),u=n(20),h=n(19),c=n(18),p=n(40),f=n(46),d=n(45),m=n(43),v=n(44),g=n(37),y=(n(11),r.createClass({displayName:"Menu",propTypes:v,getDefaultProps:function(){return{isMenu:!0,constrainTo:!0,enableScroll:!0,interactionStyles:!0,applyDefaultTheme:!0,defaultStyle:{display:"inline-block",boxSizing:"border-box",position:"relative",background:"white",border:"1px solid rgb(46, 153, 235)"},defaultSubMenuStyle:{position:"absolute"},subMenuStyle:null,scrollerProps:{},columns:["label"],items:null,visible:!0,defaultItemStyle:{},itemStyle:{},defaultItemOverStyle:{},itemOverStyle:{},defaultItemDisabledStyle:{},itemDisabledStyle:{},defaultItemExpandedStyle:{},itemExpandedStyle:{},defaultCellStyle:{},cellStyle:{},stopClickPropagation:!0}},getInitialState:function(){return{mouseOver:!1}},componentWillUnmount:function(){this.didMount=!1},componentDidMount:function(){(this.props.onMount||i)(this),this.didMount=!0,!this.props.constrainTo&&!this.props.alignTo||this.props.subMenu||setTimeout(function(){if(this.isMounted()){var t,e=this.props,n=s.from(this.refs.scrollContainer.getDOMNode()),i=this.getDOMNode(),r=s.from(i),o=r.height,a=n.height+o,l=s({left:r.left,right:r.right,top:r.top,bottom:r.top+a}),u=e.constrainTo?c(e.constrainTo):null;if(e.alignTo){var h=s.from(i.parentNode),p=s.from(e.alignTo);l.alignTo(p,e.alignPositions,{offset:e.alignOffset,constrain:u});var f=l.top-h.top,d=l.left-h.left;t={style:{left:d,top:f}}}u&&(t=t||{},l.bottom>u.bottom&&(t.maxHeight=u.bottom-l.top-o)),t&&this.setState(t)}}.bind(this),0)},prepareProps:function(t,e){var n={};return o(n,this.props),n.style=this.prepareStyle(n,e),n.className=this.prepareClassName(n),n.itemStyleProps=p(n,e),n.children=this.prepareChildren(n,e),n.scrollerProps=this.prepareScrollerProps(n),n},prepareScrollerProps:function(t){return o({},t.scrollerProps)},prepareChildren:function(t,e){var n=t.children;return t.items&&t.items.length&&(n=t.items.map(this.prepareItem.bind(this,t,e))),n},prepareItem:m,prepareClassName:function(t){var e=t.className||"";return e+=" z-menu"},prepareStyle:function(t,e){var n=t.subMenu?t.defaultSubMenuStyle:null,i=o({},t.defaultStyle,n,t.style,t.subMenuStyle);if((!t.visible||t.items&&!t.items.length)&&(i.display="none"),t.absolute&&(i.position="absolute"),t.at){var r=Array.isArray(t.at),s={left:r?t.at[0]:void 0===t.at.left?t.at.x||t.at.pageX:t.at.left,top:r?t.at[1]:void 0===t.at.top?t.at.y||t.at.pageY:t.at.top};o(i,s)}return e.style&&o(i,e.style),this.didMount||!t.constrainTo&&!t.alignTo||t.subMenu||(i.visibility="hidden",i.maxHeight=0,i.overflow="hidden"),u(i)},renderSubMenu:f,render:function(){var t=this.state,e=this.prepareProps(this.props,t),n=this.renderSubMenu(e,t),i=this.renderChildren(e,t);return r.createElement("div",r.__spread({},e),n,r.createElement(g,{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,scrollerProps:e.scrollerProps,ref:"scrollContainer",enableScroll:e.enableScroll,maxHeight:t.maxHeight||e.maxHeight},r.createElement("table",{ref:"table",style:{borderSpacing:0}},r.createElement("tbody",null,i))))},renderChildren:d,handleMouseEnter:function(){this.setState({mouseInside:!0}),this.onActivate()},handleMouseLeave:function(){this.setState({mouseInside:!1}),this.state.menu||this.state.nextItem||this.onInactivate()},onActivate:function(){this.state.activated||(this.setState({activated:!0}),(this.props.onActivate||i)())},onInactivate:function(){this.state.activated&&(this.setState({activated:!1}),(this.props.onInactivate||i)())},handleSubMenuMouseEnter:function(){this.setState({mouseOverSubMenu:!0})},handleSubMenuMouseLeave:function(){this.setState({mouseOverSubMenu:!1})},isSubMenuActive:function(){return this.state.subMenuActive},onSubMenuActivate:function(){this.setState({subMenuActive:!0})},onSubMenuInactivate:function(){var t=+new Date,e=this.state.nextItem,n=this.state.nextTimestamp||0;this.setState({subMenuActive:!1,timestamp:t},function(){setTimeout(function(){return t!=this.state.timestamp||e&&100>t-n?void this.setItem(this.state.nextItem,this.state.nextOffset):void(this.isSubMenuActive()||this.setItem())}.bind(this),10)})},removeMouseMoveListener:function(){this.onWindowMouseMove&&(window.removeEventListener("mousemove",this.onWindowMouseMove),this.onWindowMouseMove=null)},onMenuItemMouseOut:function(t,e){this.state.menu&&this.setupCheck(e)},onMenuItemMouseOver:function(t,e){if(this.didMount){{var n=t.menu;+new Date}n&&(this.state.menu?this.setNextItem(t,e):this.setItem(t,e))}},setupCheck:function(t){if(this.didMount){var e=5,n=this.getDOMNode(),i=n.querySelector(".z-menu");if(i){var r=s.from(i),o=r.left,l=r.top,u=r.left,h=r.bottom;"left"==this.subMenuPosition&&(o=r.right,u=r.right);var c=t.x+("left"==this.subMenuPosition?e:-e),p=t.y,f=[[o,l],[u,h],[c,p]];this.removeMouseMoveListener(),this.onWindowMouseMove=function(t){var e=[t.pageX,t.pageY];a(e,f)||(this.removeMouseMoveListener(),this.state.mouseOverSubMenu||this.setItem(this.state.nextItem,this.state.nextOffset))}.bind(this),window.addEventListener("mousemove",this.onWindowMouseMove)}}},setNextItem:function(t,e){var n=+new Date;this.setState({timestamp:n,nextItem:t,nextOffset:e,nextTimestamp:+new Date})},setItem:function(t,e){var n=t?t.menu:null;this.removeMouseMoveListener(),this.didMount&&(n||this.state.mouseInside||this.onInactivate(),this.setState({itemProps:t,menu:n,menuOffset:e,timestamp:+new Date,nextItem:null,nextOffset:null,nextTimestamp:null}))},onMenuItemExpanderClick:function(t){t.nativeEvent.expanderClick=!0},onMenuItemClick:function(t,e,n){var r=t.isPropagationStopped();if(this.props.stopClickPropagation&&t.stopPropagation(),l&&e&&t&&t.nativeEvent&&t.nativeEvent.expanderClick){var o={x:t.pageX,y:t.pageY},s=h(t.currentTarget);return void this.onMenuItemMouseOver(e,s,o)}r||(e&&(this.props.onClick||i)(t,e,n),this.onChildClick(t,e))},onChildClick:function(t,e){(this.props.onChildClick||i)(t,e),this.props.parentMenu&&this.props.parentMenu.onChildClick(t,e)}}));y.themes=n(36),t.exports=y},function(t,e){(function(e){t.exports="ontouchstart"in e||e.DocumentTouch&&document instanceof DocumentTouch}).call(e,function(){return this}())},function(t,e){(function(e){"use strict";var n;t.exports=function(){return!n&&e.document&&(n=e.document.createElement("div")),n||(n={style:{}}),n}}).call(e,function(){return this}())},[75,10,8],function(t){"use strict";t.exports=function(t){return t?t.charAt(0).toUpperCase()+t.slice(1):""}},function(t,e,n){"use strict";function i(t){return t?t.charAt(0).toUpperCase()+t.substring(1):""}var r=n(2),o=n(1),s=n(20),a=(n(50),n(19)),l=n(34),u=(n(6),n(4),function(){}),h=r.createClass({displayName:"ReactMenuItem",getInitialState:function(){return{}},getDefaultProps:function(){return{isMenuItem:!0,interactionStyles:!0,defaultStyle:{cursor:"pointer",userSelect:"none",boxSizing:"border-box"},expander:"›"}},render:function(){var t=this.prepareProps(this.props,this.state);return r.createElement("tr",r.__spread({},t))},componentDidMount:function(){this.didMount=!0},prepareProps:function(t,e){var n={};return o(n,t),n.theme=this.prepareTheme(n),n.mouseOver=!!e.mouseOver,n.active=!!e.active,n.disabled=!!n.disabled,n.style=this.prepareStyle(n),n.className=this.prepareClassName(n),n.children=this.prepareChildren(n),n.onClick=this.handleClick.bind(this,n),n.onMouseEnter=this.handleMouseEnter.bind(this,n),n.onMouseLeave=this.handleMouseLeave.bind(this,n),n.onMouseDown=this.handleMouseDown,n.onMouseMove=this.handleMouseMove,n},prepareTheme:function(t){var e=t.themes=t.themes||this.constructor.theme||THEME,n=t.theme;return"string"==typeof n&&(n=e[n]),n||e["default"]},handleClick:function(t,e){return t.disabled?void e.stopPropagation():void(this.props.onClick||this.props.fn||u)(e,t,t.index)},handleMouseMove:function(){},handleMouseDown:function(){var t=function(){this.setState({active:!1}),window.removeEventListener("mouseup",t)}.bind(this);window.addEventListener("mouseup",t),this.setState({active:!0})},showMenu:function(t,e){e.showMenu(t,offset)},handleMouseEnter:function(t,e){if(!t.disabled){var n={x:e.pageX,y:e.pageY};if(this.setState({mouseOver:!0}),t.onMenuItemMouseOver){var i;t.menu&&(i=a(this.getDOMNode())),t.onMenuItemMouseOver(t,i,n)}}},handleMouseLeave:function(t,e){if(!t.disabled){var n={x:e.pageX,y:e.pageY};this.didMount&&this.setState({active:!1,mouseOver:!1}),t.onMenuItemMouseOut&&t.onMenuItemMouseOut(t,n)}},prepareChildren:l,prepareClassName:function(t){var e=t.className||"";return e+=" menu-row",t.disabled?e+=" disabled "+(t.disabledClassName||""):(t.mouseOver&&(e+=" over "+(t.overClassName||"")),t.active&&(e+=" active "+(t.activeClassName||"")),t.expanded&&(e+=" expanded "+(t.expandedClassName||""))),e},prepareDefaultStyle:function(t){var e=o({},t.defaultStyle);return t.disabled&&o(e,t.defaultDisabledStyle),e},prepareComputedStyleNames:function(t){var e=["style"];if(t.disabled)return e.push("disabledStyle"),e;t.expanded&&e.push("expandedStyle");var n;t.mouseOver&&(n=e.map(function(t){return"over"+i(t)}));var r;return t.active&&(r=e.map(function(t){return"active"+i(t)})),n&&e.push.apply(e,n),r&&e.push.apply(e,r),e},prepareStyle:function(t){var e=o({},this.prepareDefaultStyle(t)),n=this.prepareComputedStyleNames(t),i=t.theme,r=t.themes;return i&&(t.applyDefaultTheme&&i!=r["default"]&&r["default"]&&n.forEach(function(t){o(e,r["default"][t])}),n.forEach(function(t){o(e,i[t])})),(t.onThemeStyleReady||u)(e,t),n.forEach(function(n){o(e,t[n])}),(t.onStyleReady||u)(e,t),s(e)}});t.exports=h},8,[75,14,12],10,function(t){"use strict";t.exports={alignItems:1,justifyContent:1,flex:1,flexFlow:1,userSelect:1,transform:1,transition:1,transformOrigin:1,transformStyle:1,transitionProperty:1,transitionDuration:1,transitionTimingFunction:1,transitionDelay:1,borderImage:1,borderImageSlice:1,boxShadow:1,backgroundClip:1,backfaceVisibility:1,perspective:1,perspectiveOrigin:1,animation:1,animationDuration:1,animationName:1,animationDelay:1,animationDirection:1,animationIterationCount:1,animationTimingFunction:1,animationPlayState:1,animationFillMode:1,appearance:1}},function(t,e,n){"use strict";var i=n(2),r=n(1),o=n(4);t.exports=function(t,e){var n=r({},t.defaultCellStyle,t.cellStyle);return i.createElement(o,{style:n},t.data[e])}},function(t,e,n){"use strict";var i=n(2),r=n(1),o=i.createClass({displayName:"ReactMenuSeparator",getDefaultProps:function(){return{size:1}},render:function(){var t=this.prepareProps(this.props);return i.createElement("tr",i.__spread({},t),i.createElement("td",{colSpan:10,style:{padding:0}}))},prepareProps:function(t){var e={};return r(e,t),e.style=this.prepareStyle(e),e.className=this.prepareClassName(e),e},prepareClassName:function(t){var e=t.className||"";return e+=" menu-separator"},prepareStyle:function(t){var e={};return r(e,o.defaultStyle,o.style,{height:o.size||t.size},t.style),e}});o.defaultStyle={cursor:"auto",background:"gray"},o.style={},t.exports=o},function(t,e,n){"use strict";var i=n(3),r=n(24);t.exports=function(t){var e;if(t===!0&&(e=i.getDocRegion()),!e&&"string"==typeof t){var n=r(t,this.getDOMNode());e=i.from(n)}return e||"function"!=typeof t||(e=i.from(t())),e}},function(t,e,n){"use strict";var i=n(3),r=n(24);t.exports=function(t){var e=i.from(r(".z-menu",t)),n=i.from(t);return{left:n.left-e.left,top:n.top-e.top,width:n.width,height:n.height}}},[72,55,53,56,57],15,function(t){"use strict";function e(t,e){function n(i){function r(){var r=arguments.length,o=[].concat(i);return r&&o.push.apply(o,arguments),o.length<e?n(o):t.apply(this,o)}return r}return"number"!=typeof e&&(e=t.length),n([])}var n=Object.prototype.hasOwnProperty;t.exports=e(function(t,e){return n.call(t,e)})},function(t){"use strict";t.exports=function(t){var e=!0;return t.right<t.left&&(e=!1,t.right=t.left),t.bottom<t.top&&(e=!1,t.bottom=t.top),e}},function(t,e,n){"use strict";var i,r=n(68);t.exports=r(function(t,e){for(i=i||n(69);e=e.parentElement;)if(i.call(e,t))return e})},function(t,e,n){"use strict";function i(){}function r(t){return t?t.charAt(0).toUpperCase()+t.substring(1):""}var o=n(2),s=n(1),a=n(31),l=function(){var t={left:"flex-start",start:"flex-start",center:"center",right:"flex-end",end:"flex-end"};return function(e){return t[e]||e}}(),u=o.PropTypes,h="ReactButton",c={"default":{style:{border:"1px solid rgb(46, 153, 235)",color:"rgb(84, 84, 84)"},overStyle:{background:"linear-gradient(to bottom, rgb(125, 191, 242) 0%, rgb(110, 184, 241) 50%, rgb(117, 188, 242) 100%)",color:"white"},activeStyle:{background:" linear-gradient(to bottom, rgb(106,182,240) 0%,rgb(91,175,239) 50%,rgb(96,178,240) 100%)",color:"white"},disabledStyle:{background:"rgb(221, 221, 221)",border:"1px solid rgb(147, 147, 147)",color:"rgb(128, 128, 128)"},pressedStyle:{background:"linear-gradient(to bottom, rgb(22,135,222) 0%,rgb(20,129,212) 50%,rgb(20,132,218) 100%)",color:"white"},overPressedStyle:{background:"linear-gradient(to bottom, rgb(48,153,234) 0%,rgb(36,148,234) 50%,rgb(41,151,235) 100%)"},activePressedStyle:{background:"linear-gradient(to bottom, rgb(58,159,236) 0%,rgb(45,153,235) 50%,rgb(50,155,236) 100%)"},focusedStyle:{}},primary:{style:{background:"linear-gradient(to bottom, #4ea9ee 0%,#41a2ed 50%,#46a5ee 100%)",color:"white"},overStyle:{background:"linear-gradient(to bottom, rgb(96,178,240) 0%,rgb(83,171,239) 50%,rgb(88,174,240) 100%)"},activeStyle:{background:"linear-gradient(to bottom, rgb(64,162,236) 0%,rgb(50,155,236) 50%,rgb(55,158,237) 100%)"},disabledStyle:{background:"rgb(116, 144, 166)",color:"rgb(190, 190, 190)"}}},p=o.createClass({displayName:h,propTypes:{fn:u.func,onClick:u.func,primary:u.bool,disabled:u.bool,pressed:u.bool,defaultPressed:u.bool,href:u.string,align:u.string,style:u.object,className:u.string,activeClassName:u.string,overClassName:u.string,focusedClassName:u.string,disabledClassName:u.string},getDefaultProps:function(){return{isReactButton:!0,applyDefaultTheme:!0,buttonStates:["focused","pressed"],"data-display-name":h,align:"center",defaultStyle:{boxSizing:"border-box",display:"inline-flex",alignItems:"center",justifyContent:"center",userSelect:"none",textDecoration:"none",cursor:"pointer",overflow:"hidden",whiteSpace:"nowrap",padding:5,margin:2},defaultDisabledStyle:{cursor:"default"},defaultLabelStyle:{display:"inline-block"},ellipsisLabelStyle:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},ellipsis:!0,href:""}},getInitialState:function(){return{mouseOver:!1,active:!1,defaultPressed:this.props.defaultPressed}},isFocused:function(){return this.state.focused},isActive:function(){return!!this.state.active},render:function(){var t=this.prepareProps(this.props,this.state);return(t.factory||o.DOM.a)(t)},prepareProps:function(t,e){var n={};s(n,t),n.theme=this.prepareTheme(n);var i=null!=n.pressed?n.pressed:e.defaultPressed;null!=i&&(n.pressed=i),n.active=null==n.activeState?!!e.active:n.activeState,n.over=null==n.overState?!!e.mouseOver:n.overState,n.focused=null==n.focusedState?!!e.focused:n.focusedState,n["data-active"]=n.active,n["data-over"]=n.over,n["data-focused"]=n.focused,n["data-pressed"]=n.pressed,n["data-disabled"]=n.disabled,n.style=this.prepareStyle(n,e),n.className=this.prepareClassName(n,e),n.children=this.prepareChildren(n);var r=this.handleClick.bind(this,n);return n.onClick="function"==typeof n.interceptClick?n.interceptClick.bind(this,r):r,n.onFocus=this.handleFocus.bind(this,n),n.onBlur=this.handleBlur.bind(this,n),n.onMouseEnter=this.handleMouseEnter.bind(this,n),n.onMouseLeave=this.handleMouseLeave.bind(this,n),n.onMouseDown=this.handleMouseDown.bind(this,n),n.onMouseUp=this.handleMouseUp.bind(this,n),n},handleFocus:function(t,e){t.disabled||(this.setState({focused:!0}),(this.props.onFocus||i)(e))},handleBlur:function(t,e){t.disabled||(this.setState({focused:!1}),(this.props.onBlur||i)(e))},handleClick:function(t,e){if((!t.href||t.disabled)&&e.preventDefault(),!t.disabled){if(null!=t.pressed){var n=!t.pressed;null==this.props.pressed&&this.setState({defaultPressed:n}),(this.props.onToggle||i)(n,e)}(this.props.onClick||i)(e),(this.props.fn||i)(t,e)}},handleMouseEnter:function(t,e){t.disabled||(this.setState({mouseOver:!0}),(this.props.onMouseEnter||i)(e))},handleMouseLeave:function(t,e){t.disabled||(this.setState({mouseOver:!1}),(this.props.onMouseLeave||i)(e))},handleMouseUp:function(t,e){t.disabled||(this.setState({active:!1}),window.removeEventListener("mouseup",this.handleMouseUp),(this.props.onMouseUp||i)(e),(this.props.onDeactivate||i)(e))},handleMouseDown:function(t,e){t.disabled||(this.setState({active:!0}),window.addEventListener("mouseup",this.handleMouseUp),(this.props.onMouseDown||i)(e),(this.props.onActivate||i)(e))},prepareTheme:function(t){var e=t.theme,n=t.themes=t.themes||this.constructor.theme||c;return"string"==typeof e&&(e=n[e]?n[e]:null),null==e?n["default"]:e},prepareChildren:function(t){var e=t.children;if(t.label){var n=s({},t.defaultLabelProps,t.labelProps),i=s({},t.defaultLabelStyle);t.ellipsis&&s(i,t.ellipsisLabelStyle);var r=s({},i,n.style,t.labelStyle);n.style=r,e=o.createElement("span",o.__spread({},n),t.label)}return"function"==typeof this.props.renderChildren?this.props.renderChildren(e):e},prepareClassName:function(t){var e=t.className||"";return t.disabled?t.disabledClassName&&(e+=" "+t.disabledClassName):(t.active&&t.activeClassName&&(e+=" "+t.activeClassName),t.pressed&&t.pressedClassName&&(e+=" "+t.pressedClassName),t.over&&t.overClassName&&(e+=" "+t.overClassName),t.focused&&t.focusedClassName&&(e+=" "+t.focusedClassName)),e},prepareComputedStyleNames:function(t){if("function"==typeof t.computeStyleNames)return t.computeStyleNames(t);var e=["style"];if(t.disabled)return e.push("disabledStyle"),e;t.focused&&e.push("focusedStyle"),t.pressed&&e.push("pressedStyle"),"function"==typeof t.addStateStyle&&t.addStateStyle(e),t.focused&&t.pressed&&e.push("focusedPressedStyle"),"function"==typeof t.addCombinedStateStyle&&t.addCombinedStateStyle(e);var n;t.over&&(n=e.map(function(t){return"over"+r(t)}));var i;return t.active&&(i=e.map(function(t){return"active"+r(t)})),n&&e.push.apply(e,n),i&&e.push.apply(e,i),e},prepareStyle:function(t){var e=s({},this.prepareDefaultStyle(t)),n=this.prepareComputedStyleNames(t),r=t.theme,o=t.themes;return r&&(t.applyDefaultTheme&&o["default"]&&r!=o["default"]&&n.forEach(function(t){s(e,o["default"][t])}),n.forEach(function(t){s(e,r[t])})),(t.onThemeStyleReady||i)(e,t),n.forEach(function(n){s(e,t[n])}),(t.onStyleReady||i)(e,t),a(e)},prepareDefaultStyle:function(t){var e=s({},t.defaultStyle);return t.block&&(e.display="flex"),e.justifyContent=l(t.align),t.disabled&&s(e,t.defaultDisabledStyle),e}});p.themes=c,t.exports=p},[71,10,9,15],[77,9,26,8],[73,29,15],[74,10,9,8],function(t){"use strict";t.exports=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}},[72,30,28,32,33],function(t){"use strict";t.exports=function(t,e){return e?Array.isArray(e)?e.map(t).filter(function(t){return!!t}):t(e):void 0}},[76,27],function(t,e,n){"use strict";var i=n(2),r=(n(6),n(4)),o=(n(16),n(5));t.exports=function(t){var e,n=[];if(i.Children.forEach(t.children,function(i){if(i){if(i.props&&i.props.isMenu)return e=o(i,{ref:"subMenu"}),void(e.props.subMenu=!0);"string"!=typeof i&&(i=o(i,{style:t.cellStyle,itemIndex:t.itemIndex,itemCount:t.itemCount})),n.push(i)}}),e){t.menu=e;var s=t.expander||!0,a={};s&&(a.onClick=t.onExpanderClick),n.push(i.createElement(r,i.__spread({expander:s},a)))}return n}},function(t,e,n){"use strict";var i=n(16);t.exports=function(t){return t.columns.map(i.bind(null,t))}},function(t){"use strict";t.exports={"default":{overStyle:{background:"linear-gradient(to bottom, rgb(125, 191, 242) 0%, rgb(110, 184, 241) 50%, rgb(117, 188, 242) 100%)",color:"white"},activeStyle:{background:" linear-gradient(to bottom, rgb(106,182,240) 0%,rgb(91,175,239) 50%,rgb(96,178,240) 100%)",color:"white"},expandedStyle:{background:"linear-gradient(to bottom, rgb(162,210,246) 0%,rgb(151,204,245) 50%,rgb(154,206,246) 100%)",color:"white"},disabledStyle:{color:"gray",cursor:"default"}}}},function(t,e,n){"use strict";function i(t){t.preventDefault(),t.stopPropagation()}var r=n(2),o=n(1),s=n(48),a=n(38);t.exports=r.createClass({displayName:"ReactMenuScrollContainer",getInitialState:function(){return{adjustScroll:!0,scrollPos:0}},getDefaultProps:function(){return{scrollStep:5,scrollSpeed:50}},componentWillUnmount:function(){this.props.enableScroll&&window.removeEventListener("resize",this.onResizeListener)},componentDidMount:function(){this.props.enableScroll&&setTimeout(function(){this.isMounted()&&(this.adjustScroll(),window.addEventListener("resize",this.onResizeListener=s(this.onWindowResize,this.props.onWindowResizeBuffer,this)))}.bind(this),0)},componentDidUpdate:function(){this.props.enableScroll&&this.adjustScroll()},onWindowResize:function(){this.adjustScroll(),this.doScroll(0)},render:function(){var t=this.props,e=t.children;if(!t.enableScroll)return e;var n={position:"relative"};this.state.scrollPos&&(n.top=-this.state.scrollPos);var i={position:"relative",overflow:"hidden"};return t.maxHeight&&(i.maxHeight=t.maxHeight),r.createElement("div",{onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,className:"z-menu-scroll-container",style:i},r.createElement("div",{ref:"tableWrap",style:n},e),this.renderScroller(t,-1),this.renderScroller(t,1))},renderScroller:function(t,e){var n=-1==e?this.handleScrollTop:this.handleScrollBottom,i=-1==e?this.handleScrollTopMax:this.handleScrollBottomMax,s=-1==e?this.state.hasTopScroll:this.state.hasBottomScroll,l=o({},t.scrollerProps,{visible:s,side:-1==e?"top":"bottom",onMouseDown:n,onDoubleClick:i});return r.createElement(a,r.__spread({},l))},adjustScroll:function(){if(this.props.enableScroll){if(!this.state.adjustScroll)return void(this.state.adjustScroll=!0);var t=this.getAvailableHeight(),e=this.getCurrentTableHeight(),n={adjustScroll:!1,hasTopScroll:!1,hasBottomScroll:!1};e>t?(n.maxScrollPos=e-t,n.hasTopScroll=0!==this.state.scrollPos,n.hasBottomScroll=this.state.scrollPos!=n.maxScrollPos):(n.maxScrollPos=0,n.scrollPos=0),this.setState(n)}},getAvailableHeight:function(){return this.getAvailableSizeDOM().clientHeight},getAvailableSizeDOM:function(){return this.getDOMNode()},getCurrentTableHeight:function(){return this.getCurrentSizeDOM().clientHeight},getCurrentSizeDOM:function(){return this.refs.tableWrap.getDOMNode()},handleScrollTop:function(t){t.preventDefault(),this.handleScroll(-1)},handleScrollBottom:function(t){t.preventDefault(),this.handleScroll(1)},handleScrollTopMax:function(t){i(t),this.handleScrollMax(-1)},handleScrollBottomMax:function(t){i(t),this.handleScrollMax(1)},handleScrollMax:function(t){var e=-1==t?0:this.state.maxScrollPos;this.setScrollPosition(e)},handleScroll:function(t){var e=function(){this.stopScroll(),window.removeEventListener("mouseup",e)}.bind(this);window.addEventListener("mouseup",e),this.scrollInterval=setInterval(this.doScroll.bind(this,t),this.props.scrollSpeed)},doScroll:function(t){this.setState({scrollDirection:t});var e=this.state.scrollPos+t*this.props.scrollStep;this.setScrollPosition(e)},setScrollPosition:function(t){t>this.state.maxScrollPos&&(t=this.state.maxScrollPos),0>t&&(t=0),this.setState({scrollPos:t,scrolling:!0})},stopScroll:function(){clearInterval(this.scrollInterval),this.setState({scrolling:!1})}})},function(t,e,n){"use strict";function i(){}function r(t,e,n){var i=s({},n),r={color:i.color||t.arrowColor},o=4,l=i.width||t.arrowWidth||t.arrowSize||t.style.height-o,u=i.height||t.arrowHeight||t.arrowSize||t.style.height-o;return r.width=l,r.height=u,s(i,a("top"==t.side?"up":"down",r)),i.display="inline-block",i.position="absolute",i.left="50%",i.marginLeft=-l,i.top="50%",i.marginTop=-u/2,e.active&&(i.marginTop+="top"==t.side?-1:1),i}var o=n(2),s=n(1),a=n(47),l={left:0,right:0,position:"absolute",cursor:"pointer",zIndex:1},u=o.createClass({displayName:"Scroller",display:"ReactMenuScroller",getInitialState:function(){return{}},getDefaultProps:function(){return{height:10,defaultStyle:{background:"white"},defaultOverStyle:{},overStyle:{},defaultTopStyle:{borderBottom:"1px solid gray"},topStyle:{},defaultBottomStyle:{borderTop:"1px solid gray"},bottomStyle:{},arrowColor:"gray",arrowStyle:{},defaultArrowStyle:{},defaultArrowOverStyle:{color:"rgb(74, 74, 74)"},arrowOverStyle:{}}},handleMouseEnter:function(){this.setState({mouseOver:!0})},handleMouseLeave:function(){this.setState({mouseOver:!1})},handleMouseDown:function(t){this.setState({active:!0}),(this.props.onMouseDown||i)(t)},handleMouseUp:function(t){this.setState({active:!1}),(this.props.onMouseUp||i)(t)},render:function(){var t=s({},this.props,{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp}),e=this.state,n=t.side;t.className=this.prepareClassName(t,e),t.style=this.prepareStyle(t,e);var i=this.prepareArrowStyle(t,e);return t.factory?t.factory(t,n):o.createElement("div",o.__spread({},t),o.createElement("div",{style:i}))},prepareStyle:function(t,e){var n,i;e.mouseOver&&(i=t.overStyle,n=t.defaultOverStyle);var r="top"==t.side?t.defaultTopStyle:t.defaultBottomStyle,o="top"==t.side?t.topStyle:t.bottomStyle,a=s({},l,t.defaultStyle,r,n,t.style,o,i);
return a.height=a.height||t.height,a[t.side]=0,t.visible||(a.display="none"),a},prepareClassName:function(t){var e=t.className||"";return e+=" z-menu-scroller "+t.side,t.active&&t.visible&&(e+=" active"),e},prepareArrowStyle:function(t,e){var n,i;e.mouseOver&&(n=t.defaultArrowOverStyle,i=t.arrowOverStyle);var o=s({},t.defaultArrowStyle,n,t.arrowStyle,i);return r(t,e,o)},handleClick:function(t){t.stopPropagation}});t.exports=u},function(t,e,n){"use strict";var i=(n(62),n(18));t.exports=function(t,e,n,r){var o=i.call(this,r);if(o){if("function"!=typeof t.alignSubMenu){var s=e.alignTo(n,["tl-tr","bl-br","tr-tl","br-bl"],{constrain:o});return"tl-tr"==s||"tr-tl"==s?1:-1}t.alignSubMenu(e,n,o)}}},function(t,e,n){"use strict";var i=n(1);t.exports=function(t){var e=i({},t.defaultItemStyle,t.itemStyle),n=i({},t.defaultItemOverStyle,t.itemOverStyle),r=i({},t.defaultItemActiveStyle,t.itemActiveStyle),o=i({},t.defaultItemDisabledStyle,t.itemDisabledStyle),s=i({},t.defaultItemExpandedStyle,t.itemExpandedStyle),a=i({},t.defaultCellStyle,t.cellStyle);return{itemStyle:e,itemOverStyle:n,itemActiveStyle:r,itemDisabledStyle:o,itemExpandedStyle:s,cellStyle:a}}},function(t,e,n){"use strict";var i=n(3),r=n(1),o=n(39);t.exports=function(t,e){if(!e.menu||!this.didMount)return void(this.prevMenuIndex=-1);var n=e.menuOffset,s=n.left+n.width,a=n.top,l=e.itemProps.index,u=this.prevMenuIndex==l;this.aligning&&!u&&(this.aligning=!1),this.prevMenuIndex=l;var h={position:"absolute",visibility:"hidden",overflow:"hidden",pointerEvents:"none",left:s,top:a,zIndex:1};return this.aligning||u||setTimeout(function(){if(this.didMount){var e=i.from(this.getDOMNode()),r=i.from({left:e.left,top:e.top+n.top,width:n.width,height:n.height}),l=this.refs.subMenu&&this.refs.subMenu.isMounted();if(l){var u,h=i.from(this.refs.subMenu.refs.scrollContainer.getCurrentSizeDOM()),c=h.height,p=o(t,h,r,t.constrainTo),f=h.height;c>f&&(u=f-t.subMenuConstrainMargin),u&&-1==p&&(h.top=h.bottom-u);var d=h.left-e.left,m=h.top-e.top;Math.abs(d-s)<5&&(d=s),Math.abs(m-a)<5&&(m=a),this.subMenuPosition=0>d?"left":"right",this.alignOffset={left:d,top:m},this.aligning=!0,this.setState({subMenuMaxHeight:u})}}}.bind(this),0),(u||this.aligning&&this.alignOffset)&&(r(h,this.alignOffset),h.visibility="visible",delete h.pointerEvents,delete h.overflow),this.aligning=!1,h}},function(t,e,n){"use strict";var i=n(6),r=n(11),o=n(4),s=n(17);i.Item=r,i.Item.Cell=o,i.ItemCell=o,i.Separator=s,t.exports=i},function(t,e,n){"use strict";var i=n(2),r=n(1),o=n(35),s=n(11),a=i.createFactory(s),l=n(17);t.exports=function(t,e,s,u){var h=e.itemProps?e.itemProps.index:-1;if("-"===s)return i.createElement(l,{key:u});var c=[t.itemClassName,s.cls,s.className].filter(function(t){return!!t}).join(" "),p=r({className:c,key:u,data:s,columns:t.columns,expanded:u===h,disabled:s.disabled,onClick:s.onClick||s.fn},t.itemStyleProps);if(p.children=o(p),s.items){var f=n(6);p.children.push(i.createElement(f,{items:s.items}))}return(t.itemFactory||a)(p)}},function(t,e,n){"use strict";var i=n(2);t.exports={items:i.PropTypes.array,columns:i.PropTypes.array,onMount:i.PropTypes.func,defaultRowActiveStyle:i.PropTypes.object,defaultRowOverStyle:i.PropTypes.object,defaultRowStyle:i.PropTypes.object,rowActiveStyle:i.PropTypes.object,rowOverStyle:i.PropTypes.object,rowStyle:i.PropTypes.object,cellStyle:i.PropTypes.object}},function(t,e,n){"use strict";function i(){}var r=n(2),o=n(4),s=n(5),a=n(1);t.exports=function(t,e){var n=e.itemProps?e.itemProps.index:-1,l=t.children,u=1,h=[];r.Children.map(l,function(t){var e=t.props;if(h.push(t),e&&e.isMenuItem){var n=r.Children.count(e.children);u=Math.max(u,n)}});var c=t.itemStyleProps,p=-1,f=h.map(function(e,l){var f=e.props;f&&f.isMenuItem&&(p++,f.onMenuItemMouseOver=this.onMenuItemMouseOver,f.onMenuItemMouseOut=this.onMenuItemMouseOut);var d=r.Children.map(f.children,function(t){return t}),m=r.Children.count(d);for(u>m&&(d=d?[d]:[]);u>m;)m++,d.push(r.createElement(o,null));var v=f.onClick||i,g=s(e,a({interactionStyles:t.interactionStyles,itemIndex:p,itemCount:h.length,key:l,index:l,expanded:n==l,children:d,expander:t.expander,applyDefaultTheme:t.applyDefaultTheme,theme:t.theme,themes:t.themes||this.constructor.themes,onExpanderClick:this.onMenuItemExpanderClick,onClick:function(t,e,n){v.apply(null,arguments),this.onMenuItemClick(t,e,n)}.bind(this)},{style:c.itemStyle,overStyle:c.itemOverStyle,activeStyle:c.itemActiveStyle,disabledStyle:c.itemDisabledStyle,expandedStyle:c.itemExpandedStyle,cellStyle:c.cellStyle}));return g},this);return f}},function(t,e,n){"use strict";var i=(n(3),n(1)),r=n(5),o=n(41);t.exports=function(t,e){var n=e.menu;if(n&&this.didMount){var s=o.call(this,t,e);return n=r(n,i({ref:"subMenu",subMenu:!0,parentMenu:this,maxHeight:e.subMenuMaxHeight,onActivate:this.onSubMenuActivate,onInactivate:this.onSubMenuInactivate,scrollerProps:t.scrollerProps,constrainTo:t.constrainTo,expander:t.expander,theme:t.theme,themes:t.themes||this.constructor.themes},t.itemStyleProps)),React.createElement("div",{ref:"subMenuWrap",style:s,onMouseEnter:this.handleSubMenuMouseEnter,onMouseLeave:this.handleSubMenuMouseLeave},n)}}},function(t){"use strict";t.exports=function(t,e){var n,i=e.size||8,r=e.width||i,o=e.height||i,s=e.color||"black",a=e.includePosition;return("up"==t||"down"==t)&&(n={borderLeft:r+"px solid transparent",borderRight:r+"px solid transparent"},a&&(n.marginTop=-Math.round(o/2)+"px",n.position="relative",n.top="50%"),n["up"===t?"borderBottom":"borderTop"]=o+"px solid "+s),("left"==t||"right"==t)&&(n={borderTop:o+"px solid transparent",borderBottom:o+"px solid transparent"},a&&(n.marginLeft=-Math.round(r/2)+"px",n.position="relative",n.left="50%"),n["left"===t?"borderRight":"borderLeft"]=r+"px solid "+s),n}},function(t,e){(function(e){"use strict";var n=e.setImmediate,i=e.clearImmediate;t.exports=function(t,e,r){var o=-1;return function(){var s=r||this,a=arguments;if(0>e)return void t.apply(s,a);var l=e||!n,u=l?clearTimeout:i,h=l?setTimeout:n;-1!==o&&u(o),o=h(function(){t.apply(s,a),s=null},e)}}}).call(e,function(){return this}())},function(t){t.exports=function(t,e){var n=t[0],i=t[1],r=e[0],o=e[1],s=e[2],a=s[0]-r[0],l=s[1]-r[1],u=o[0]-r[0],h=o[1]-r[1],c=n-r[0],p=i-r[1],f=a*a+l*l,d=a*u+l*h,m=a*c+l*p,v=u*u+h*h,g=u*c+h*p,y=f*v-d*d,b=0===y?0:1/y,S=(v*m-d*g)*b,M=(f*g-d*m)*b;return S>=0&&M>=0&&1>S+M}},function(t,e,n){"use strict";t.exports=n(7)?{onMouseDown:"onTouchStart",onMouseUp:"onTouchEnd",onMouseMove:"onTouchMove"}:{onMouseDown:"onMouseDown",onMouseUp:"onMouseUp",onMouseMove:"onMouseMove"}},[71,14,13,21],[77,13,51,12],[73,54,21],[74,14,13,12],30,32,[76,52],function(t,e,n){"use strict";var i=n(3);i.prototype.alignToRegion=function(t,e){return i.align(this,t,e),this},i.prototype.alignToPoint=function(t,e){return i.alignToPoint(this,t,e),this}},function(t,e,n){"use strict";var i=n(3);i.align=function(t,e,n){return e=i.from(e),n=(n||"c-c").split("-"),2!=n.length&&console.warn("Incorrect region alignment! The align parameter need to be in the form 'br-c', that is, a - separated string!",n),i.alignToPoint(t,e.getPoint(n[1]),n[0])},i.alignToPoint=function(t,e,n){t=i.from(t);var r=t.getPoint(n),o=0,s={};return null!=r.x&&null!=e.x&&(o++,s.left=e.x-r.x),null!=r.y&&null!=e.y&&(o++,s.top=e.y-r.y),o&&t.shift(s),t}},function(t,e,n){"use strict";function i(t,e,n,i){e=r.from(e),i=i||{};var o=i.constrain,s=i.sync,a=i.offset||[],l=!1,u=!1,h=t.clone();Array.isArray(n)||(n=n?[n]:[]),Array.isArray(a)||(a=a?[a]:[]),o&&(o=o===!0?r.getDocRegion():o.getRegion()),s&&(s.size?(l=!0,u=!0):(l=s===!0?!0:s.width||!1,u=s===!0?!0:s.height||!1)),l&&h.setWidth(e.getWidth()),u&&h.setHeight(e.getHeight());for(var c,p,f,d,m=0,v=n.length,g=-1,y=-1;v>m;m++){if(p=n[m],c=a[m],h.alignToRegion(e,p),c&&(Array.isArray(c)||(c=a[m]=[c.x||c.left,c.y||c.top]),h.shift({left:c[0],top:c[1]})),!o)return t.set(h),p;if(f=h.getIntersection(o),f&&f.equals(h))return t.set(h),p;f&&(d=f.getArea())>g&&(g=d,y=m)}return~y?(p=n[y],c=a[y],h.alignToRegion(e,p),c&&h.shift({left:c[0],top:c[1]}),f=h.getIntersection(o),h.setRegion(f),h.alignToRegion(e,p),c&&h.shift({left:c[0],top:c[1]}),t.set(h),p):void 0}var r=n(3);t.exports=i},function(t,e,n){"use strict";function i(t,e,n,i){t=o.from(t);var s=t.clone(),a=r(s,e,n,i);return{position:a,region:s,widthChanged:s.getWidth()!=t.getWidth(),heightChanged:s.getHeight()!=t.getHeight(),positionChanged:s.equalsPosition(t)}}var r=n(60),o=n(3);t.exports=i},function(t,e,n){"use strict";var i=n(3);n(59),n(58);var r=n(61);i.alignRegions=function(t,e,n,i){var o=r(t,e,n,i),s=o.region;return s.equals(t)||t.setRegion(s),o.position},i.prototype.alignTo=function(t,e,n){n=n||{};var o=this,s=i.from(t),a=r(o,s,e,n),l=a.region;return l.equalsSize(o)||this.setSize(l.getSize()),l.equalsPosition(o)||this.setPosition(l.getPosition(),{absolute:!!n.absolute}),a.position},t.exports=i},function(t){t.exports=function(){"use strict";var t={};return function(e){if(!t[e]){for(var n=[],i=0;e>i;i++)n.push("a["+i+"]");t[e]=new Function("c","a","return new c("+n.join(",")+")")}return t[e]}}()},function(t,e,n){var i=n(63);t.exports=function(t,e){return i(e.length)(t,e)}},function(t,e,n){"use strict";function i(t,e,n){return t&&n.forEach(function(n){r(t,n)&&(e[n]=t[n])}),e}var r=n(22),o=n(64),s=n(1),a=n(70).EventEmitter,l=n(66),u=n(23),h=Object.prototype.toString,c=function(t){return"[object Object]"===h.apply(t)},p={cy:"YCenter",cx:"XCenter",t:"Top",tc:"TopCenter",tl:"TopLeft",tr:"TopRight",b:"Bottom",bc:"BottomCenter",bl:"BottomLeft",br:"BottomRight",l:"Left",lc:"LeftCenter",r:"Right",rc:"RightCenter",c:"Center"},f=function(t,e,n,r){return this instanceof f?(a.call(this),c(t)?(i(t,this,["top","right","bottom","left"]),null==t.bottom&&null!=t.height&&(this.bottom=this.top+t.height),null==t.right&&null!=t.width&&(this.right=this.left+t.width),t.emitChangeEvents&&(this.emitChangeEvents=t.emitChangeEvents)):(this.top=t,this.right=e,this.bottom=n,this.left=r),this[0]=this.left,this[1]=this.top,void u(this)):o(f,arguments)};l(f,a),s(f.prototype,{emitChangeEvents:!1,getRegion:function(t){return t?this.clone():this},setRegion:function(t){return this.set(t instanceof f?t.get():t),this},validate:function(){return f.validate(this)},_before:function(){return this.emitChangeEvents?i(this,{},["left","top","bottom","right"]):void 0},_after:function(t){this.emitChangeEvents&&((this.top!=t.top||this.left!=t.left)&&this.emitPositionChange(),(this.right!=t.right||this.bottom!=t.bottom)&&this.emitSizeChange())},notifyPositionChange:function(){this.emit("changeposition",this)},emitPositionChange:function(){this.notifyPositionChange()},notifySizeChange:function(){this.emit("changesize",this)},emitSizeChange:function(){this.notifySizeChange()},add:function(t){var e,n=this._before();for(e in t)r(t,e)&&(this[e]+=t[e]);return this[0]=this.left,this[1]=this.top,this._after(n),this},substract:function(t){var e,n=this._before();for(e in t)r(t,e)&&(this[e]-=t[e]);return this[0]=this.left,this[1]=this.top,this._after(n),this},getSize:function(){return{width:this.width,height:this.height}},setPosition:function(t){var e=this.width,n=this.height;return void 0!=t.left&&(t.right=t.left+e),void 0!=t.top&&(t.bottom=t.top+n),this.set(t)},setSize:function(t){return void 0!=t.height&&void 0!=t.width?this.set({right:this.left+t.width,bottom:this.top+t.height}):(void 0!=t.width&&this.setWidth(t.width),void 0!=t.height&&this.setHeight(t.height),this)},setWidth:function(t){return this.set({right:this.left+t})},setHeight:function(t){return this.set({bottom:this.top+t})},set:function(t){var e=this._before();return i(t,this,["left","top","bottom","right"]),null==t.bottom&&null!=t.height&&(this.bottom=this.top+t.height),null==t.right&&null!=t.width&&(this.right=this.left+t.width),this[0]=this.left,this[1]=this.top,this._after(e),this},get:function(t){return t?this[t]:i(this,{},["left","right","top","bottom"])},shift:function(t){var e=this._before();return t.top&&(this.top+=t.top,this.bottom+=t.top),t.left&&(this.left+=t.left,this.right+=t.left),this[0]=this.left,this[1]=this.top,this._after(e),this},unshift:function(t){return t.top&&(t.top*=-1),t.left&&(t.left*=-1),this.shift(t)},equals:function(t){return this.equalsPosition(t)&&this.equalsSize(t)},equalsSize:function(t){var e=t instanceof f,n={width:null==t.width&&e?t.getWidth():t.width,height:null==t.height&&e?t.getHeight():t.height};return this.getWidth()==n.width&&this.getHeight()==n.height},equalsPosition:function(t){return this.top==t.top&&this.left==t.left},addLeft:function(t){var e=this._before();return this.left=this[0]=this.left+t,this._after(e),this},addTop:function(t){var e=this._before();return this.top=this[1]=this.top+t,this._after(e),this},addBottom:function(t){var e=this._before();return this.bottom+=t,this._after(e),this},addRight:function(t){var e=this._before();return this.right+=t,this._after(e),this},minTop:function(){return this.expand({top:1})},maxBottom:function(){return this.expand({bottom:1})},minLeft:function(){return this.expand({left:1})},maxRight:function(){return this.expand({right:1})},expand:function(t,e){var n,o=e||f.getDocRegion(),s=[],a=this._before();for(n in t)r(t,n)&&s.push(n);return i(o,this,s),this[0]=this.left,this[1]=this.top,this._after(a),this},clone:function(){return new f({top:this.top,left:this.left,right:this.right,bottom:this.bottom})},containsPoint:function(t,e){return 1==arguments.length&&(e=t.y,t=t.x),this.left<=t&&t<=this.right&&this.top<=e&&e<=this.bottom},containsRegion:function(t){return this.containsPoint(t.left,t.top)&&this.containsPoint(t.right,t.bottom)},diffHeight:function(t){return this.diff(t,{top:!0,bottom:!0})},diffWidth:function(t){return this.diff(t,{left:!0,right:!0})},diff:function(t,e){var n,i={};for(n in e)r(e,n)&&(i[n]=this[n]-t[n]);return i},getPosition:function(){return{left:this.left,top:this.top}},getPoint:function(t,e){p[t]||console.warn("The position ",t," could not be found! Available options are tl, bl, tr, br, l, r, t, b.");var n="getPoint"+p[t],i=this[n]();return e?{left:i.x,top:i.y}:i},getPointYCenter:function(){return{x:null,y:this.top+this.getHeight()/2}},getPointXCenter:function(){return{x:this.left+this.getWidth()/2,y:null}},getPointTop:function(){return{x:null,y:this.top}},getPointTopCenter:function(){return{x:this.left+this.getWidth()/2,y:this.top}},getPointTopLeft:function(){return{x:this.left,y:this.top}},getPointTopRight:function(){return{x:this.right,y:this.top}},getPointBottom:function(){return{x:null,y:this.bottom}},getPointBottomCenter:function(){return{x:this.left+this.getWidth()/2,y:this.bottom}},getPointBottomLeft:function(){return{x:this.left,y:this.bottom}},getPointBottomRight:function(){return{x:this.right,y:this.bottom}},getPointLeft:function(){return{x:this.left,y:null}},getPointLeftCenter:function(){return{x:this.left,y:this.top+this.getHeight()/2}},getPointRight:function(){return{x:this.right,y:null}},getPointRightCenter:function(){return{x:this.right,y:this.top+this.getHeight()/2}},getPointCenter:function(){return{x:this.left+this.getWidth()/2,y:this.top+this.getHeight()/2}},getHeight:function(){return this.bottom-this.top},getWidth:function(){return this.right-this.left},getTop:function(){return this.top},getLeft:function(){return this.left},getBottom:function(){return this.bottom},getRight:function(){return this.right},getArea:function(){return this.getWidth()*this.getHeight()},constrainTo:function(t){var e,n=this.getIntersection(t);if(!n||!n.equals(this)){var i=t.getWidth(),r=t.getHeight();return this.getWidth()>i&&(this.left=t.left,this.setWidth(i)),this.getHeight()>r&&(this.top=t.top,this.setHeight(r)),e={},this.right>t.right&&(e.left=t.right-this.right),this.bottom>t.bottom&&(e.top=t.bottom-this.bottom),this.left<t.left&&(e.left=t.left-this.left),this.top<t.top&&(e.top=t.top-this.top),this.shift(e),!0}return!1},__IS_REGION:!0}),Object.defineProperties(f.prototype,{width:{get:function(){return this.getWidth()},set:function(t){return this.setWidth(t)}},height:{get:function(){return this.getHeight()},set:function(t){return this.setHeight(t)}}}),n(67)(f),t.exports=f},function(t){"use strict";t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}},function(t,e,n){"use strict";var i=n(22),r=n(23);t.exports=function(t){var e=Math.max,n=Math.min,o={init:function(){var e,n,r={getIntersection:!0,getIntersectionArea:!0,getIntersectionHeight:!0,getIntersectionWidth:!0,getUnion:!0},o=t.prototype,s=i(r);for(n in r)s(n)&&(e=r[n],"string"!=typeof e&&(e=n),function(e,n,i){e[n]=function(e){return t[i]||console.warn("cannot find method ",i," on ",t),t[i](this,e)}}(o,e,n))},validate:r,getDocRegion:function(){return t.fromDOM(document.documentElement)},from:function(e){if(e.__IS_REGION)return e;if("undefined"!=typeof document){if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return t.fromDOM(e);if(e.type&&"undefined"!=typeof e.pageX&&"undefined"!=typeof e.pageY)return t.fromEvent(e)}return t(e)},fromEvent:function(e){return t.fromPoint({x:e.pageX,y:e.pageY})},fromDOM:function(e){var n=e.getBoundingClientRect();return new t({top:n.top,left:n.left,bottom:n.bottom,right:n.right})},getIntersection:function(e,n){var i=this.getIntersectionArea(e,n);return i?new t(i):!1},getIntersectionWidth:function(t,i){var r=n(t.right,i.right),o=e(t.left,i.left);return r>o?r-o:0},getIntersectionHeight:function(t,i){var r=e(t.top,i.top),o=n(t.bottom,i.bottom);return o>r?o-r:0},getIntersectionArea:function(t,i){var r=e(t.top,i.top),o=n(t.right,i.right),s=n(t.bottom,i.bottom),a=e(t.left,i.left);return s>r&&o>a?{top:r,right:o,bottom:s,left:a,width:o-a,height:s-r}:!1},getUnion:function(i,r){var o=n(i.top,r.top),s=e(i.right,r.right),a=e(i.bottom,r.bottom),l=n(i.left,r.left);return new t(o,s,a,l)},getRegion:function(e){return t.from(e)},fromPoint:function(e){return new t({top:e.y,bottom:e.y,left:e.x,right:e.x})}};Object.keys(o).forEach(function(e){t[e]=o[e]}),t.init()}},function(t){"use strict";function e(t,e){function n(i){function r(){var r=arguments.length,o=[].concat(i);return r&&o.push.apply(o,arguments),o.length<e?n(o):t.apply(this,o)}return r}return"number"!=typeof e&&(e=t.length),n([])}t.exports=e},function(t){"use strict";var e=Element.prototype,n=e.matches||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;t.exports=n},function(t){function e(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(t){return"function"==typeof t}function i(t){return"number"==typeof t}function r(t){return"object"==typeof t&&null!==t}function o(t){return void 0===t}t.exports=e,e.EventEmitter=e,e.prototype._events=void 0,e.prototype._maxListeners=void 0,e.defaultMaxListeners=10,e.prototype.setMaxListeners=function(t){if(!i(t)||0>t||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},e.prototype.emit=function(t){var e,i,s,a,l,u;if(this._events||(this._events={}),"error"===t&&(!this._events.error||r(this._events.error)&&!this._events.error.length)){if(e=arguments[1],e instanceof Error)throw e;throw TypeError('Uncaught, unspecified "error" event.')}if(i=this._events[t],o(i))return!1;if(n(i))switch(arguments.length){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;default:for(s=arguments.length,a=new Array(s-1),l=1;s>l;l++)a[l-1]=arguments[l];i.apply(this,a)}else if(r(i)){for(s=arguments.length,a=new Array(s-1),l=1;s>l;l++)a[l-1]=arguments[l];for(u=i.slice(),s=u.length,l=0;s>l;l++)u[l].apply(this,a)}return!0},e.prototype.addListener=function(t,i){var s;if(!n(i))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,n(i.listener)?i.listener:i),this._events[t]?r(this._events[t])?this._events[t].push(i):this._events[t]=[this._events[t],i]:this._events[t]=i,r(this._events[t])&&!this._events[t].warned){var s;s=o(this._maxListeners)?e.defaultMaxListeners:this._maxListeners,s&&s>0&&this._events[t].length>s&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace())}return this},e.prototype.on=e.prototype.addListener,e.prototype.once=function(t,e){function i(){this.removeListener(t,i),r||(r=!0,e.apply(this,arguments))}if(!n(e))throw TypeError("listener must be a function");var r=!1;return i.listener=e,this.on(t,i),this},e.prototype.removeListener=function(t,e){var i,o,s,a;if(!n(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(i=this._events[t],s=i.length,o=-1,i===e||n(i.listener)&&i.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(r(i)){for(a=s;a-->0;)if(i[a]===e||i[a].listener&&i[a].listener===e){o=a;break}if(0>o)return this;1===i.length?(i.length=0,delete this._events[t]):i.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},e.prototype.removeAllListeners=function(t){var e,i;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(i=this._events[t],n(i))this.removeListener(t,i);else for(;i.length;)this.removeListener(t,i[i.length-1]);return delete this._events[t],this},e.prototype.listeners=function(t){var e;return e=this._events&&this._events[t]?n(this._events[t])?[this._events[t]]:this._events[t].slice():[]},e.listenerCount=function(t,e){var i;return i=t._events&&t._events[e]?n(t._events[e])?1:t._events[e].length:0}},function(t,e,n,i,r,o){"use strict";var s=n(i),a=n(r),l=n(o);t.exports=function(t){if(!l[t])return t;var e=a(t);return e?e+s(t):t}},function(t,e,n,i,r,o,s){"use strict";function a(t,e){var n={key:t,value:e};return(f.plugins||[]).forEach(function(i){var r=c(function(n){return i(t,e,n)},n);r&&(n=r)}),n}function l(t,e){var n=a(t,e);return c(function(t){return{key:h(t.key,t.value),value:t.value}},n)}var u=n(i),h=n(r),c=n(o),p=n(s),f=function(t){var e,n,i={};for(e in t)if(u(t,e)){if(n=l(e,t[e]),!n)continue;c(function(t){i[t.key]=t.value},n)}return i};t.exports=p(f)},function(t,e,n,i,r){"use strict";var o=n(i),s=n(r);t.exports=function(t,e){return s[t]?o(t,e):t}},function(t,e,n,i,r,o){"use strict";var s,a,l=n(i),u=n(r),h=n(o),c={};t.exports=function(t){a=a||h(),s=s||a.style;var e=t;if(c[e])return c[e];var n,i;return t in s||(n=u("appearance"),n&&(i=n+l(t),i in s&&(t=i))),c[e]=t,t}},function(t,e,n,i,r){"use strict";var o,s,a=n(i),l=["ms","Moz","Webkit","O"],u=n(r);t.exports=function(t){if(void 0!==s)return s;o=o||u();for(var e,n,i=0,r=l.length;r>i;i++)if(n=l[i],e=n+a(t),"undefined"!=typeof o.style[e])return s=n;return s}},function(t,e,n,i){"use strict";var r=n(i);t.exports=function(t){return t.plugins=t.plugins||[function(){var t={flex:1,"inline-flex":1};return function(e,n){return"display"===e&&n in t?{key:e,value:r(e,n)}:void 0}}()],t.plugin=function(e){t.plugins=t.plugins||[],t.plugins.push(e)},t}},function(t,e,n,i,r,o){"use strict";var s,a,l=n(i),u=n(r),h=n(o),c={};t.exports=function(t,e){a=a||h(),s=s||a.style;var n=t+": "+e;if(c[n])return c[n];var i,r,o;return t in s||(i=l("appearance"),i&&(r=u(t,e),o="-"+i.toLowerCase()+"-"+e,r in s&&(a.style[r]="",a.style[r]=o,""!==a.style[r]&&(e=o)))),c[n]=e,e}}]))});

@@ -5,3 +5,3 @@ 'use strict';

var assign = require('object-assign')
var Button = require('react-button/src')
var Button = require('react-button')

@@ -13,3 +13,3 @@ // debugger

var Menu = require('react-menus/src')
var Menu = require('react-menus')
var MenuFactory = React.createFactory(Menu)

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

{
"name": "react-dropdown-button",
"version": "1.0.0",
"version": "1.0.1",
"description": "A carefully crafted drop-down button for React",

@@ -5,0 +5,0 @@ "author": "Radu Brehar",

@@ -5,3 +5,3 @@ 'use strict';

var assign = require('object-assign')
var Button = require('react-button/src')
var Button = require('react-button')

@@ -13,3 +13,3 @@ // debugger

var Menu = require('react-menus/src')
var Menu = require('react-menus')
var MenuFactory = React.createFactory(Menu)

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

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc