EVOLUTION-MANAGER
Edit File: DashboardPage.4d0490a94b199a11f40c.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{"1uty":function(e,t,n){"use strict";var r="_erd";function o(e){return e[r]}e.exports={initState:function(e){return e[r]={},o(e)},getState:o,cleanState:function(e){delete e[r]}}},"5rhN":function(e,t,n){"use strict";var r,o,i,a,s,l=n("mrSG"),c=n("q1tI"),u=n.n(c),d=n("PAeb"),h=n("kDLi"),p=n("ZFWI"),f=n("K47g"),g=n("Yuww"),y=n("lubD"),m=Object(h.stylesFactory)(function(e){return{wrapper:Object(d.css)(r||(r=Object(l.__makeTemplateObject)(["\n width: 100%;\n height: 100%;\n position: fixed;\n z-index: ",";\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: ",";\n display: flex;\n padding: ",";\n flex-direction: row;\n "],["\n width: 100%;\n height: 100%;\n position: fixed;\n z-index: ",";\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: ",";\n display: flex;\n padding: ",";\n flex-direction: row;\n "])),e.zIndex.modal,e.colors.pageBg,e.spacing.md),leftPane:Object(d.css)(o||(o=Object(l.__makeTemplateObject)(["\n flex-grow: 1;\n height: 100%;\n "],["\n flex-grow: 1;\n height: 100%;\n "]))),rightPane:Object(d.css)(i||(i=Object(l.__makeTemplateObject)(["\n width: 450px;\n height: 100%;\n flex-grow: 0;\n "],["\n width: 450px;\n height: 100%;\n flex-grow: 0;\n "]))),leftPaneViz:Object(d.css)(a||(a=Object(l.__makeTemplateObject)(["\n width: 100%;\n height: 50%;\n "],["\n width: 100%;\n height: 50%;\n "]))),leftPaneData:Object(d.css)(s||(s=Object(l.__makeTemplateObject)(["\n width: 100%;\n height: 50%;\n padding-top: ",";\n "],["\n width: 100%;\n height: 50%;\n padding-top: ",";\n "])),e.spacing.md)}}),v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t}return Object(l.__extends)(t,e),t.prototype.componentDidMount=function(){var e=this.props.panel,t=new f.a(e.getSaveModel());this.setState({dirtyPanel:t})},t.prototype.render=function(){var e=this.props.dashboard,t=this.state.dirtyPanel,n=m(p.b.theme);return t?u.a.createElement("div",{className:n.wrapper},u.a.createElement("div",{className:n.leftPane},u.a.createElement("div",{className:n.leftPaneViz},u.a.createElement(g.a,{dashboard:e,panel:t,isEditing:!1,isFullscreen:!1,isInView:!0})),u.a.createElement("div",{className:n.leftPaneData},u.a.createElement(y.a,{panel:t,dashboard:e}),";")),u.a.createElement("div",{className:n.rightPane},"Visualization settings")):null},t}(c.PureComponent);n.d(t,"a",function(){return v})},"6iOD":function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=u(n("q1tI")),i=u(n("17x9")),a=u(n("XaGS")),s=n("T0XP"),l=n("Qgwu"),c=u(n("fEyB"));function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var h=function(e){return Object.prototype.toString.call(e)},p=function(e){function t(){var n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=o=d(this,e.call.apply(e,[this].concat(a))),o.state=o.generateInitialState(),o.onLayoutChange=function(e){var t;o.props.onLayoutChange(e,r({},o.props.layouts,((t={})[o.state.breakpoint]=e,t)))},d(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.generateInitialState=function(){var e=this.props,t=e.width,n=e.breakpoints,r=e.layouts,o=e.cols,i=(0,l.getBreakpointFromWidth)(n,t),a=(0,l.getColsFromBreakpoint)(i,o),s=!1===this.props.verticalCompact?null:this.props.compactType;return{layout:(0,l.findOrGenerateResponsiveLayout)(r,n,i,i,a,s),breakpoint:i,cols:a}},t.prototype.componentWillReceiveProps=function(e){if(e.width==this.props.width&&e.breakpoint===this.props.breakpoint&&(0,a.default)(e.breakpoints,this.props.breakpoints)&&(0,a.default)(e.cols,this.props.cols)){if(!(0,a.default)(e.layouts,this.props.layouts)){var t=this.state,n=t.breakpoint,r=t.cols,o=(0,l.findOrGenerateResponsiveLayout)(e.layouts,e.breakpoints,n,n,r,e.compactType);this.setState({layout:o})}}else this.onWidthChange(e)},t.prototype.onWidthChange=function(e){var t=e.breakpoints,n=e.cols,r=e.layouts,o=e.compactType,i=e.breakpoint||(0,l.getBreakpointFromWidth)(e.breakpoints,e.width),a=this.state.breakpoint;if(a!==i||this.props.breakpoints!==t||this.props.cols!==n){a in r||(r[a]=(0,s.cloneLayout)(this.state.layout));var c=(0,l.getColsFromBreakpoint)(i,n),u=(0,l.findOrGenerateResponsiveLayout)(r,t,i,a,c,o);u=(0,s.synchronizeLayoutWithChildren)(u,e.children,c,o),r[i]=u,this.props.onLayoutChange(u,r),this.props.onBreakpointChange(i,c),this.props.onWidthChange(e.width,e.margin,c,e.containerPadding),this.setState({breakpoint:i,layout:u,cols:c})}},t.prototype.render=function(){var e=this.props,t=(e.breakpoint,e.breakpoints,e.cols,e.layouts,e.onBreakpointChange,e.onLayoutChange,e.onWidthChange,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["breakpoint","breakpoints","cols","layouts","onBreakpointChange","onLayoutChange","onWidthChange"]));return o.default.createElement(c.default,r({},t,{onLayoutChange:this.onLayoutChange,layout:this.state.layout,cols:this.state.cols}))},t}(o.default.Component);p.propTypes={breakpoint:i.default.string,breakpoints:i.default.object,cols:i.default.object,layouts:function(e,t){if("[object Object]"!==h(e[t]))throw new Error("Layout property must be an object. Received: "+h(e[t]));Object.keys(e[t]).forEach(function(t){if(!(t in e.breakpoints))throw new Error("Each key in layouts must align with a key in breakpoints.");(0,s.validateLayout)(e.layouts[t],"layouts."+t)})},width:i.default.number.isRequired,onBreakpointChange:i.default.func,onLayoutChange:i.default.func,onWidthChange:i.default.func},p.defaultProps={breakpoints:{lg:1200,md:996,sm:768,xs:480,xxs:0},cols:{lg:12,md:10,sm:6,xs:4,xxs:2},layouts:{},onBreakpointChange:s.noop,onLayoutChange:s.noop,onWidthChange:s.noop},t.default=p},"7sSR":function(e,t,n){"use strict";var r=n("t3DW").forEach,o=n("W+U1"),i=n("Sa1T"),a=n("LO96"),s=n("UFhH"),l=n("q7TX"),c=n("GOnX"),u=n("wnTG"),d=n("1uty"),h=n("GNKm"),p=n("yUZ2");function f(e){return Array.isArray(e)||void 0!==e.length}function g(e){if(Array.isArray(e))return e;var t=[];return r(e,function(e){t.push(e)}),t}function y(e){return e&&1===e.nodeType}function m(e,t,n){var r=e[t];return null==r&&void 0!==n?n:r}e.exports=function(e){var t;if((e=e||{}).idHandler)t={get:function(t){return e.idHandler.get(t,!0)},set:e.idHandler.set};else{var n=a(),v=s({idGenerator:n,stateHandler:d});t=v}var b=e.reporter;b||(b=l(!1===b));var w=m(e,"batchProcessor",u({reporter:b})),S={};S.callOnAdd=!!m(e,"callOnAdd",!0),S.debug=!!m(e,"debug",!1);var x,z=i(t),E=o({stateHandler:d}),_=m(e,"strategy","object"),O={reporter:b,batchProcessor:w,stateHandler:d,idHandler:t};if("scroll"===_&&(c.isLegacyOpera()?(b.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),_="object"):c.isIE(9)&&(b.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),_="object")),"scroll"===_)x=p(O);else{if("object"!==_)throw new Error("Invalid strategy name: "+_);x=h(O)}var j={};return{listenTo:function(e,n,o){function i(e){var t=z.get(e);r(t,function(t){t(e)})}function a(e,t,n){z.add(t,n),e&&n(t)}if(o||(o=n,n=e,e={}),!n)throw new Error("At least one element required.");if(!o)throw new Error("Listener required.");if(y(n))n=[n];else{if(!f(n))return b.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=g(n)}var s=0,l=m(e,"callOnAdd",S.callOnAdd),c=m(e,"onReady",function(){}),u=m(e,"debug",S.debug);r(n,function(e){d.getState(e)||(d.initState(e),t.set(e));var h=t.get(e);if(u&&b.log("Attaching listener to element",h,e),!E.isDetectable(e))return u&&b.log(h,"Not detectable."),E.isBusy(e)?(u&&b.log(h,"System busy making it detectable"),a(l,e,o),j[h]=j[h]||[],void j[h].push(function(){++s===n.length&&c()})):(u&&b.log(h,"Making detectable..."),E.markBusy(e,!0),x.makeDetectable({debug:u},e,function(e){if(u&&b.log(h,"onElementDetectable"),d.getState(e)){E.markAsDetectable(e),E.markBusy(e,!1),x.addListener(e,i),a(l,e,o);var t=d.getState(e);if(t&&t.startSize){var p=e.offsetWidth,f=e.offsetHeight;t.startSize.width===p&&t.startSize.height===f||i(e)}j[h]&&r(j[h],function(e){e()})}else u&&b.log(h,"Element uninstalled before being detectable.");delete j[h],++s===n.length&&c()}));u&&b.log(h,"Already detecable, adding listener."),a(l,e,o),s++}),s===n.length&&c()},removeListener:z.removeListener,removeAllListeners:z.removeAllListeners,uninstall:function(e){if(!e)return b.error("At least one element is required.");if(y(e))e=[e];else{if(!f(e))return b.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");e=g(e)}r(e,function(e){z.removeAllListeners(e),x.uninstall(e),d.cleanState(e)})}}}},"9/5/":function(e,t,n){(function(t){var n="Expected a function",r=NaN,o="[object Symbol]",i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt,u="object"==typeof t&&t&&t.Object===Object&&t,d="object"==typeof self&&self&&self.Object===Object&&self,h=u||d||Function("return this")(),p=Object.prototype.toString,f=Math.max,g=Math.min,y=function(){return h.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&p.call(e)==o}(e))return r;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,r){var o,i,a,s,l,c,u=0,d=!1,h=!1,p=!0;if("function"!=typeof e)throw new TypeError(n);function b(t){var n=o,r=i;return o=i=void 0,u=t,s=e.apply(r,n)}function w(e){var n=e-c;return void 0===c||n>=t||n<0||h&&e-u>=a}function S(){var e=y();if(w(e))return x(e);l=setTimeout(S,function(e){var n=t-(e-c);return h?g(n,a-(e-u)):n}(e))}function x(e){return l=void 0,p&&o?b(e):(o=i=void 0,s)}function z(){var e=y(),n=w(e);if(o=arguments,i=this,c=e,n){if(void 0===l)return function(e){return u=e,l=setTimeout(S,t),d?b(e):s}(c);if(h)return l=setTimeout(S,t),b(c)}return void 0===l&&(l=setTimeout(S,t)),s}return t=v(t)||0,m(r)&&(d=!!r.leading,a=(h="maxWait"in r)?f(v(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p),z.cancel=function(){void 0!==l&&clearTimeout(l),u=0,o=c=i=l=void 0},z.flush=function(){return void 0===l?s:x(y())},z}}).call(this,n("yLpj"))},ChGz:function(e,t,n){e.exports=n("fEyB").default,e.exports.utils=n("T0XP"),e.exports.Responsive=n("6iOD").default,e.exports.Responsive.utils=n("Qgwu"),e.exports.WidthProvider=n("NmA4").default},"E56+":function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=s(n("q1tI")),i=s(n("17x9")),a=s(n("jqYm"));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=l(this,e.call.apply(e,[this].concat(i))),r.state={width:r.props.width,height:r.props.height},r.onResize=function(e,t){var n=t.size;n.width,n.height;r.props.onResize?(e.persist&&e.persist(),r.setState(n,function(){return r.props.onResize&&r.props.onResize(e,t)})):r.setState(n)},l(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillReceiveProps=function(e){e.width===this.props.width&&e.height===this.props.height||this.setState({width:e.width,height:e.height})},t.prototype.render=function(){var e=this.props,t=e.handle,n=e.handleSize,i=(e.onResize,e.onResizeStart),s=e.onResizeStop,l=e.draggableOpts,c=e.minConstraints,u=e.maxConstraints,d=e.lockAspectRatio,h=e.axis,p=(e.width,e.height,e.resizeHandles),f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles"]);return o.default.createElement(a.default,{handle:t,handleSize:n,width:this.state.width,height:this.state.height,onResizeStart:i,onResize:this.onResize,onResizeStop:s,draggableOpts:l,minConstraints:c,maxConstraints:u,lockAspectRatio:d,axis:h,resizeHandles:p},o.default.createElement("div",r({style:{width:this.state.width+"px",height:this.state.height+"px"}},f)))},t}(o.default.Component);c.propTypes={height:i.default.number,width:i.default.number},c.defaultProps={handleSize:[20,20]},t.default=c},GNKm:function(e,t,n){"use strict";var r=n("GOnX");e.exports=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,o=e.stateHandler.getState;if(!t)throw new Error("Missing required dependency: reporter.");function i(e){return o(e).object}return{makeDetectable:function(e,i,a){a||(a=i,i=e,e=null),(e=e||{}).debug,r.isIE(8)?a(i):function(e,i){var a="display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; padding: 0; margin: 0; opacity: 0; z-index: -1000; pointer-events: none;",s=!1,l=window.getComputedStyle(e),c=e.offsetWidth,u=e.offsetHeight;function d(){function n(){if("static"===l.position){e.style.position="relative";var n=function(e,t,n,r){var o=n[r];"auto"!==o&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(o)&&(e.warn("An element that is positioned static has style."+r+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",t),t.style[r]=0)};n(t,e,l,"top"),n(t,e,l,"right"),n(t,e,l,"bottom"),n(t,e,l,"left")}}""!==l.position&&(n(),s=!0);var c=document.createElement("object");c.style.cssText=a,c.tabIndex=-1,c.type="text/html",c.setAttribute("aria-hidden","true"),c.onload=function(){s||n(),function e(t,n){t.contentDocument?n(t.contentDocument):setTimeout(function(){e(t,n)},100)}(this,function(t){i(e)})},r.isIE()||(c.data="about:blank"),e.appendChild(c),o(e).object=c,r.isIE()&&(c.data="about:blank")}o(e).startSize={width:c,height:u},n?n.add(d):d()}(i,a)},addListener:function(e,t){if(!i(e))throw new Error("Element is not detectable by this strategy.");function n(){t(e)}r.isIE(8)?(o(e).object={proxy:n},e.attachEvent("onresize",n)):i(e).contentDocument.defaultView.addEventListener("resize",n)},uninstall:function(e){r.isIE(8)?e.detachEvent("onresize",o(e).object.proxy):e.removeChild(i(e)),delete o(e).object}}}},GOnX:function(e,t,n){"use strict";var r=e.exports={};r.isIE=function(e){return(-1!==(t=navigator.userAgent.toLowerCase()).indexOf("msie")||-1!==t.indexOf("trident")||-1!==t.indexOf(" edge/"))&&(!e||e===function(){var e=3,t=document.createElement("div"),n=t.getElementsByTagName("i");do{t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e"}while(n[0]);return e>4?e:void 0}());var t},r.isLegacyOpera=function(){return!!window.opera}},Gytx:function(e,t){e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var c=i[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(o=n?n.call(r,u,d,c):void 0)||void 0===o&&u!==d)return!1}return!0}},IZOP:function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var o=r(n("7sSR")),i=n("q1tI"),a=r(i),s=r(n("17x9")),l=r(n("i8i4")),c=r(n("QLaP")),u=r(n("hKI/")),d=r(n("9/5/")),h=r(n("Gytx")),p={};var f=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},g=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},v=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},b=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},w={monitorWidth:!0,monitorHeight:!1,monitorPosition:!1,refreshRate:16,refreshMode:"throttle",noPlaceholder:!1,resizeDetectorStrategy:"scroll"};function S(e){return e.displayName||e.name||"Component"}var x=function(e){function t(){return f(this,t),b(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return m(t,e),g(t,[{key:"render",value:function(){return i.Children.only(this.props.children)}}]),t}(i.Component);function z(e){var t=e.className,n=e.style,r={};return t||n?(t&&(r.className=t),n&&(r.style=n)):r.style={width:"100%",height:"100%"},a.createElement("div",r)}x.displayName="SizeMeReferenceWrapper",x.propTypes={children:s.element.isRequired},z.displayName="SizeMePlaceholder",z.propTypes={className:s.string,style:s.object};var E=function(e){function t(t){var n=t.explicitRef,r=t.className,o=t.style,i=t.size,s=t.disablePlaceholder,l=(t.onSize,v(t,["explicitRef","className","style","size","disablePlaceholder","onSize"])),c=(null==i||null==i.width&&null==i.height&&null==i.position)&&!s,u={className:r,style:o};null!=i&&(u.size=i);var d=c?a.createElement(z,{className:r,style:o}):a.createElement(e,y({},u,l));return a.createElement(x,{ref:n},d)}return t.displayName="SizeMeRenderer("+S(e)+")",t.propTypes={explicitRef:s.func.isRequired,className:s.string,style:s.object,size:s.shape({width:s.number,height:s.number}),disablePlaceholder:s.bool,onSize:s.func},t};function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:w,t=e.monitorWidth,n=void 0===t?w.monitorWidth:t,r=e.monitorHeight,i=void 0===r?w.monitorHeight:r,h=e.monitorPosition,v=void 0===h?w.monitorPosition:h,x=e.refreshRate,z=void 0===x?w.refreshRate:x,O=e.refreshMode,j=void 0===O?w.refreshMode:O,R=e.noPlaceholder,C=void 0===R?w.noPlaceholder:R,P=e.resizeDetectorStrategy,T=void 0===P?w.resizeDetectorStrategy:P;c(n||i||v,'You have to monitor at least one of the width, height, or position when using "sizeMe"'),c(z>=16,"It is highly recommended that you don't put your refreshRate lower than 16 as this may cause layout thrashing."),c("throttle"===j||"debounce"===j,'The refreshMode should have a value of "throttle" or "debounce"');var k="throttle"===j?u:d;return function(e){var t=E(e),r=function(e){function r(){var e,t,o;f(this,r);for(var a=arguments.length,s=Array(a),l=0;l<a;l++)s[l]=arguments[l];return t=o=b(this,(e=r.__proto__||Object.getPrototypeOf(r)).call.apply(e,[this].concat(s))),o.state={width:void 0,height:void 0,position:void 0},o.determineStrategy=function(e){e.onSize?(o.callbackState||(o.callbackState=y({},o.state)),o.strategy="callback"):o.strategy="render"},o.strategisedSetState=function(e){"callback"===o.strategy&&(o.callbackState=e,o.props.onSize(e)),o.setState(e)},o.strategisedGetState=function(){return"callback"===o.strategy?o.callbackState:o.state},o.refCallback=function(e){o.element=e},o.hasSizeChanged=function(e,t){var r=e,o=t,a=r.position||{},s=o.position||{};return i&&r.height!==o.height||v&&(a.top!==s.top||a.left!==s.left||a.bottom!==s.bottom||a.right!==s.right)||n&&r.width!==o.width},o.checkIfSizeChanged=k(function(e){var t=e.getBoundingClientRect(),r=t.width,a=t.height,s=t.right,l=t.left,c=t.top,u=t.bottom,d={width:n?r:null,height:i?a:null,position:v?{right:s,left:l,top:c,bottom:u}:null};o.hasSizeChanged(o.strategisedGetState(),d)&&o.strategisedSetState(d)},z),b(o,t)}return m(r,e),g(r,[{key:"componentDidMount",value:function(){this.detector=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scroll";return p[e]||(p[e]=o({strategy:e})),p[e]}(T),this.determineStrategy(this.props),this.handleDOMNode(!0)}},{key:"componentWillReceiveProps",value:function(e){this.determineStrategy(e)}},{key:"componentDidUpdate",value:function(){this.handleDOMNode()}},{key:"componentWillUnmount",value:function(){this.hasSizeChanged=function(){},this.checkIfSizeChanged=function(){},this.domEl&&(this.detector.uninstall(this.domEl),this.domEl=null)}},{key:"handleDOMNode",value:function(e){var t=this.element&&l.findDOMNode(this.element);t?(!e&&this.domEl&&this.detector.removeAllListeners(this.domEl),this.domEl=t,this.detector.listenTo(this.domEl,this.checkIfSizeChanged)):!e&&this.domEl&&(this.detector.removeAllListeners(this.domEl),this.domEl=null)}},{key:"render",value:function(){var e=_.enableSSRBehaviour||_.noPlaceholders||C||"callback"===this.strategy,n=y({},this.state);return a.createElement(t,y({explicitRef:this.refCallback,size:"callback"===this.strategy?null:n,disablePlaceholder:e},this.props))}}]),r}(a.Component);return r.displayName="SizeMe("+S(e)+")",r.propTypes={onSize:s.func},r.WrappedComponent=e,r}}_.enableSSRBehaviour=!1,_.noPlaceholders=!1;var O=function(e){function t(e){f(this,t);var n=b(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));j.call(n);e.children,e.render;var r=v(e,["children","render"]);return n.createComponent(r),n.state={size:{width:void 0,height:void 0}},n}return m(t,e),g(t,[{key:"componentWillReceiveProps",value:function(e){var t=this.props,n=(t.children,t.render,v(t,["children","render"])),r=(e.children,e.render,v(e,["children","render"]));h(n,r)||this.createComponent(r)}},{key:"render",value:function(){var e=this.SizeAware,t=this.props.children||this.props.render;return a.createElement(e,{onSize:this.onSize},t({size:this.state.size}))}}]),t}(i.Component);O.propTypes={children:s.func,render:s.func},O.defaultProps={children:void 0,render:void 0};var j=function(){var e=this;this.createComponent=function(t){e.SizeAware=_(t)(function(e){return e.children})},this.onSize=function(t){return e.setState({size:t})}};_.SizeMe=O,_.withSize=_,e.exports=_},LO96:function(e,t,n){"use strict";e.exports=function(){var e=1;return{generate:function(){return e++}}}},LvXN:function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=u(n("q1tI")),i=u(n("17x9")),a=n("01jY"),s=n("bNWW"),l=n("T0XP"),c=u(n("TSYQ"));function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var h=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=d(this,e.call.apply(e,[this].concat(i))),r.state={resizing:null,dragging:null,className:""},d(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.calcColWidth=function(){var e=this.props,t=e.margin,n=e.containerPadding,r=e.containerWidth,o=e.cols;return(r-t[0]*(o-1)-2*n[0])/o},t.prototype.calcPosition=function(e,t,n,r,o){var i=this.props,a=i.margin,s=i.containerPadding,l=i.rowHeight,c=this.calcColWidth(),u={left:Math.round((c+a[0])*e+s[0]),top:Math.round((l+a[1])*t+s[1]),width:n===1/0?n:Math.round(c*n+Math.max(0,n-1)*a[0]),height:r===1/0?r:Math.round(l*r+Math.max(0,r-1)*a[1])};return o&&o.resizing&&(u.width=Math.round(o.resizing.width),u.height=Math.round(o.resizing.height)),o&&o.dragging&&(u.top=Math.round(o.dragging.top),u.left=Math.round(o.dragging.left)),u},t.prototype.calcXY=function(e,t){var n=this.props,r=n.margin,o=n.cols,i=n.rowHeight,a=n.w,s=n.h,l=n.maxRows,c=this.calcColWidth(),u=Math.round((t-r[0])/(c+r[0])),d=Math.round((e-r[1])/(i+r[1]));return{x:u=Math.max(Math.min(u,o-a),0),y:d=Math.max(Math.min(d,l-s),0)}},t.prototype.calcWH=function(e){var t=e.height,n=e.width,r=this.props,o=r.margin,i=r.maxRows,a=r.cols,s=r.rowHeight,l=r.x,c=r.y,u=this.calcColWidth(),d=Math.round((n+o[0])/(u+o[0])),h=Math.round((t+o[1])/(s+o[1]));return{w:d=Math.max(Math.min(d,a-l),0),h:h=Math.max(Math.min(h,i-c),0)}},t.prototype.createStyle=function(e){var t=this.props,n=t.usePercentages,r=t.containerWidth,o=void 0;return t.useCSSTransforms?o=(0,l.setTransform)(e):(o=(0,l.setTopLeft)(e),n&&(o.left=(0,l.perc)(e.left/r),o.width=(0,l.perc)(e.width/r))),o},t.prototype.mixinDraggable=function(e){return o.default.createElement(a.DraggableCore,{onStart:this.onDragHandler("onDragStart"),onDrag:this.onDragHandler("onDrag"),onStop:this.onDragHandler("onDragStop"),handle:this.props.handle,cancel:".react-resizable-handle"+(this.props.cancel?","+this.props.cancel:"")},e)},t.prototype.mixinResizable=function(e,t){var n=this.props,r=n.cols,i=n.x,a=n.minW,l=n.minH,c=n.maxW,u=n.maxH,d=this.calcPosition(0,0,r-i,0).width,h=this.calcPosition(0,0,a,l),p=this.calcPosition(0,0,c,u),f=[h.width,h.height],g=[Math.min(p.width,d),Math.min(p.height,1/0)];return o.default.createElement(s.Resizable,{width:t.width,height:t.height,minConstraints:f,maxConstraints:g,onResizeStop:this.onResizeHandler("onResizeStop"),onResizeStart:this.onResizeHandler("onResizeStart"),onResize:this.onResizeHandler("onResize")},e)},t.prototype.onDragHandler=function(e){var t=this;return function(n,r){var o=r.node,i=r.deltaX,a=r.deltaY,s=t.props[e];if(s){var l={top:0,left:0};switch(e){case"onDragStart":var c=o.offsetParent;if(!c)return;var u=c.getBoundingClientRect(),d=o.getBoundingClientRect();l.left=d.left-u.left+c.scrollLeft,l.top=d.top-u.top+c.scrollTop,t.setState({dragging:l});break;case"onDrag":if(!t.state.dragging)throw new Error("onDrag called before onDragStart.");l.left=t.state.dragging.left+i,l.top=t.state.dragging.top+a,t.setState({dragging:l});break;case"onDragStop":if(!t.state.dragging)throw new Error("onDragEnd called before onDragStart.");l.left=t.state.dragging.left,l.top=t.state.dragging.top,t.setState({dragging:null});break;default:throw new Error("onDragHandler called with unrecognized handlerName: "+e)}var h=t.calcXY(l.top,l.left),p=h.x,f=h.y;return s.call(t,t.props.i,p,f,{e:n,node:o,newPosition:l})}}},t.prototype.onResizeHandler=function(e){var t=this;return function(n,r){var o=r.node,i=r.size,a=t.props[e];if(a){var s=t.props,l=s.cols,c=s.x,u=s.i,d=s.maxW,h=s.minW,p=s.maxH,f=s.minH,g=t.calcWH(i),y=g.w,m=g.h;y=Math.min(y,l-c),y=Math.max(y,1),y=Math.max(Math.min(y,d),h),m=Math.max(Math.min(m,p),f),t.setState({resizing:"onResizeStop"===e?null:i}),a.call(t,u,y,m,{e:n,node:o,size:i})}}},t.prototype.render=function(){var e=this.props,t=e.x,n=e.y,i=e.w,a=e.h,s=e.isDraggable,l=e.isResizable,u=e.useCSSTransforms,d=this.calcPosition(t,n,i,a,this.state),h=o.default.Children.only(this.props.children),p=o.default.cloneElement(h,{className:(0,c.default)("react-grid-item",h.props.className,this.props.className,{static:this.props.static,resizing:Boolean(this.state.resizing),"react-draggable":s,"react-draggable-dragging":Boolean(this.state.dragging),cssTransforms:u}),style:r({},this.props.style,h.props.style,this.createStyle(d))});return l&&(p=this.mixinResizable(p,d)),s&&(p=this.mixinDraggable(p)),p},t}(o.default.Component);h.propTypes={children:i.default.element,cols:i.default.number.isRequired,containerWidth:i.default.number.isRequired,rowHeight:i.default.number.isRequired,margin:i.default.array.isRequired,maxRows:i.default.number.isRequired,containerPadding:i.default.array.isRequired,x:i.default.number.isRequired,y:i.default.number.isRequired,w:i.default.number.isRequired,h:i.default.number.isRequired,minW:function(e,t){var n=e[t];return"number"!=typeof n?new Error("minWidth not Number"):n>e.w||n>e.maxW?new Error("minWidth larger than item width/maxWidth"):void 0},maxW:function(e,t){var n=e[t];return"number"!=typeof n?new Error("maxWidth not Number"):n<e.w||n<e.minW?new Error("maxWidth smaller than item width/minWidth"):void 0},minH:function(e,t){var n=e[t];return"number"!=typeof n?new Error("minHeight not Number"):n>e.h||n>e.maxH?new Error("minHeight larger than item height/maxHeight"):void 0},maxH:function(e,t){var n=e[t];return"number"!=typeof n?new Error("maxHeight not Number"):n<e.h||n<e.minH?new Error("maxHeight smaller than item height/minHeight"):void 0},i:i.default.string.isRequired,onDragStop:i.default.func,onDragStart:i.default.func,onDrag:i.default.func,onResizeStop:i.default.func,onResizeStart:i.default.func,onResize:i.default.func,isDraggable:i.default.bool.isRequired,isResizable:i.default.bool.isRequired,static:i.default.bool,useCSSTransforms:i.default.bool.isRequired,className:i.default.string,handle:i.default.string,cancel:i.default.string},h.defaultProps={className:"",cancel:"",handle:"",minH:1,minW:1,maxH:1/0,maxW:1/0},t.default=h},NmA4:function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e){var t,n;return n=t=function(t){function n(){var e,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=l(this,t.call.apply(t,[this].concat(i))),e=r,r.state={width:1280},r.mounted=!1,r.onWindowResize=function(){if(r.mounted){var e=a.default.findDOMNode(r);e instanceof HTMLElement&&r.setState({width:e.offsetWidth})}},l(r,e)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),n.prototype.componentDidMount=function(){this.mounted=!0,window.addEventListener("resize",this.onWindowResize),this.onWindowResize()},n.prototype.componentWillUnmount=function(){this.mounted=!1,window.removeEventListener("resize",this.onWindowResize)},n.prototype.render=function(){var t=this.props,n=t.measureBeforeMount,i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["measureBeforeMount"]);return n&&!this.mounted?o.default.createElement("div",{className:this.props.className,style:this.props.style}):o.default.createElement(e,r({},i,this.state))},n}(o.default.Component),t.defaultProps={measureBeforeMount:!1},t.propTypes={measureBeforeMount:i.default.bool},n};var o=s(n("q1tI")),i=s(n("17x9")),a=s(n("i8i4"));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}},Qgwu:function(e,t,n){"use strict";t.__esModule=!0,t.getBreakpointFromWidth=function(e,t){for(var n=o(e),r=n[0],i=1,a=n.length;i<a;i++){var s=n[i];t>e[s]&&(r=s)}return r},t.getColsFromBreakpoint=function(e,t){if(!t[e])throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+e+" is missing!");return t[e]},t.findOrGenerateResponsiveLayout=function(e,t,n,i,a,s){if(e[n])return(0,r.cloneLayout)(e[n]);for(var l=e[i],c=o(t),u=c.slice(c.indexOf(n)),d=0,h=u.length;d<h;d++){var p=u[d];if(e[p]){l=e[p];break}}return l=(0,r.cloneLayout)(l||[]),(0,r.compact)((0,r.correctBounds)(l,{cols:a}),s,a)},t.sortBreakpoints=o;var r=n("T0XP");function o(e){return Object.keys(e).sort(function(t,n){return e[t]-e[n]})}},Sa1T:function(e,t,n){"use strict";e.exports=function(e){var t={};function n(n){var r=e.get(n);return void 0===r?[]:t[r]||[]}return{get:n,add:function(n,r){var o=e.get(n);t[o]||(t[o]=[]),t[o].push(r)},removeListener:function(e,t){for(var r=n(e),o=0,i=r.length;o<i;++o)if(r[o]===t){r.splice(o,1);break}},removeAllListeners:function(e){var t=n(e);t&&(t.length=0)}}}},T0XP:function(e,t,n){"use strict";t.__esModule=!0,t.noop=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.bottom=c,t.cloneLayout=function(e){for(var t=Array(e.length),n=0,r=e.length;n<r;n++)t[n]=u(e[n]);return t},t.cloneLayoutItem=u,t.childrenEqual=function(e,t){return(0,o.default)(i.default.Children.map(e,function(e){return e.key}),i.default.Children.map(t,function(e){return e.key}))},t.collides=d,t.compact=h,t.compactItem=g,t.correctBounds=y,t.getLayoutItem=m,t.getFirstCollision=v,t.getAllCollisions=b,t.getStatics=w,t.moveElement=S,t.moveElementAwayFromCollision=x,t.perc=function(e){return 100*e+"%"},t.setTransform=function(e){var t=e.top,n=e.left,r=e.width,o=e.height,i="translate("+n+"px,"+t+"px)";return{transform:i,WebkitTransform:i,MozTransform:i,msTransform:i,OTransform:i,width:r+"px",height:o+"px",position:"absolute"}},t.setTopLeft=function(e){var t=e.top,n=e.left,r=e.width,o=e.height;return{top:t+"px",left:n+"px",width:r+"px",height:o+"px",position:"absolute"}},t.sortLayoutItems=z,t.sortLayoutItemsByRowCol=E,t.sortLayoutItemsByColRow=_,t.synchronizeLayoutWithChildren=function(e,t,n,o){e=e||[];var a=[];return i.default.Children.forEach(t,function(t,n){var o=m(e,String(t.key));if(o)a[n]=u(o);else{!s&&t.props._grid&&console.warn("`_grid` properties on children have been deprecated as of React 15.2. Please use `data-grid` or add your properties directly to the `layout`.");var i=t.props["data-grid"]||t.props._grid;i?(s||O([i],"ReactGridLayout.children"),a[n]=u(r({},i,{i:t.key}))):a[n]=u({w:1,h:1,x:0,y:c(a),i:String(t.key)})}}),a=h(a=y(a,{cols:n}),o,n)},t.validateLayout=O,t.autoBindHandlers=function(e,t){t.forEach(function(t){return e[t]=e[t].bind(e)})};var o=a(n("XaGS")),i=a(n("q1tI"));function a(e){return e&&e.__esModule?e:{default:e}}var s=!0,l=!1;function c(e){for(var t=0,n=void 0,r=0,o=e.length;r<o;r++)(n=e[r].y+e[r].h)>t&&(t=n);return t}function u(e){return{w:e.w,h:e.h,x:e.x,y:e.y,i:e.i,minW:e.minW,maxW:e.maxW,minH:e.minH,maxH:e.maxH,moved:Boolean(e.moved),static:Boolean(e.static),isDraggable:e.isDraggable,isResizable:e.isResizable}}function d(e,t){return e!==t&&(!(e.x+e.w<=t.x)&&(!(e.x>=t.x+t.w)&&(!(e.y+e.h<=t.y)&&!(e.y>=t.y+t.h))))}function h(e,t,n){for(var r=w(e),o=z(e,t),i=Array(e.length),a=0,s=o.length;a<s;a++){var l=u(o[a]);l.static||(l=g(r,l,t,n,o),r.push(l)),i[e.indexOf(o[a])]=l,l.moved=!1}return i}var p={x:"w",y:"h"};function f(e,t,n,r){var o=p[r];t[r]+=1;for(var i=e.indexOf(t)+1;i<e.length;i++){var a=e[i];if(!a.static){if(a.y>t.y+t.h)break;d(t,a)&&f(e,a,n+t[o],r)}}t[r]=n}function g(e,t,n,r,o){var i="horizontal"===n;if("vertical"===n)for(t.y=Math.min(c(e),t.y);t.y>0&&!v(e,t);)t.y--;else if(i)for(t.y=Math.min(c(e),t.y);t.x>0&&!v(e,t);)t.x--;for(var a=void 0;a=v(e,t);)i?f(o,t,a.x+a.w,"x"):f(o,t,a.y+a.h,"y"),i&&t.x+t.w>r&&(t.x=r-t.w,t.y++);return t}function y(e,t){for(var n=w(e),r=0,o=e.length;r<o;r++){var i=e[r];if(i.x+i.w>t.cols&&(i.x=t.cols-i.w),i.x<0&&(i.x=0,i.w=t.cols),i.static)for(;v(n,i);)i.y++;else n.push(i)}return e}function m(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n].i===t)return e[n]}function v(e,t){for(var n=0,r=e.length;n<r;n++)if(d(e[n],t))return e[n]}function b(e,t){return e.filter(function(e){return d(e,t)})}function w(e){return e.filter(function(e){return e.static})}function S(e,t,n,r,o,i,a,s){if(t.static)return e;if(t.y===r&&t.x===n)return e;j("Moving element "+t.i+" to ["+String(n)+","+String(r)+"] from ["+t.x+","+t.y+"]");var l=t.x,c=t.y;"number"==typeof n&&(t.x=n),"number"==typeof r&&(t.y=r),t.moved=!0;var u=z(e,a);("vertical"===a&&"number"==typeof r?c>=r:"horizontal"===a&&"number"==typeof n&&l>=n)&&(u=u.reverse());var d=b(u,t);if(i&&d.length)return j("Collision prevented on "+t.i+", reverting."),t.x=l,t.y=c,t.moved=!1,e;for(var h=0,p=d.length;h<p;h++){var f=d[h];j("Resolving collision between "+t.i+" at ["+t.x+","+t.y+"] and "+f.i+" at ["+f.x+","+f.y+"]"),f.moved||(e=f.static?x(e,f,t,o,a,s):x(e,t,f,o,a,s))}return e}function x(e,t,n,r,o,i){var a="horizontal"===o,s="vertical"===o;if(r){r=!1;var l={x:a?Math.max(t.x-n.w,0):n.x,y:s?Math.max(t.y-n.h,0):n.y,w:n.w,h:n.h,i:"-1"};if(!v(e,l))return j("Doing reverse collision on "+n.i+" up to ["+l.x+","+l.y+"]."),S(e,n,a?l.x:void 0,s?l.y:void 0,r,!1,o,i)}return S(e,n,a?n.x+1:void 0,s?n.y+1:void 0,r,!1,o,i)}function z(e,t){return"horizontal"===t?_(e):E(e)}function E(e){return[].concat(e).sort(function(e,t){return e.y>t.y||e.y===t.y&&e.x>t.x?1:e.y===t.y&&e.x===t.x?0:-1})}function _(e){return[].concat(e).sort(function(e,t){return e.x>t.x||e.x===t.x&&e.y>t.y?1:-1})}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Layout",n=["x","y","w","h"];if(!Array.isArray(e))throw new Error(t+" must be an array!");for(var r=0,o=e.length;r<o;r++){for(var i=e[r],a=0;a<n.length;a++)if("number"!=typeof i[n[a]])throw new Error("ReactGridLayout: "+t+"["+r+"]."+n[a]+" must be a number!");if(i.i&&"string"!=typeof i.i)throw new Error("ReactGridLayout: "+t+"["+r+"].i must be a string!");if(void 0!==i.static&&"boolean"!=typeof i.static)throw new Error("ReactGridLayout: "+t+"["+r+"].static must be a boolean!")}}function j(){var e;l&&(e=console).log.apply(e,arguments)}t.noop=function(){}},UFhH:function(e,t,n){"use strict";e.exports=function(e){var t=e.idGenerator,n=e.stateHandler.getState;return{get:function(e){var t=n(e);return t&&void 0!==t.id?t.id:null},set:function(e){var r=n(e);if(!r)throw new Error("setId required the element to have a resize detection state.");var o=t.generate();return r.id=o,o}}}},UL9e:function(e,t,n){"use strict";(e.exports={}).getOption=function(e,t,n){var r=e[t];if(null==r&&void 0!==n)return n;return r}},"W+U1":function(e,t,n){"use strict";e.exports=function(e){var t=e.stateHandler.getState;return{isDetectable:function(e){var n=t(e);return n&&!!n.isDetectable},markAsDetectable:function(e){t(e).isDetectable=!0},isBusy:function(e){return!!t(e).busy},markBusy:function(e,n){t(e).busy=!!n}}}},XaGS:function(e,t,n){(function(e,n){var r=200,o="__lodash_hash_undefined__",i=1,a=2,s=9007199254740991,l="[object Arguments]",c="[object Array]",u="[object AsyncFunction]",d="[object Boolean]",h="[object Date]",p="[object Error]",f="[object Function]",g="[object GeneratorFunction]",y="[object Map]",m="[object Number]",v="[object Null]",b="[object Object]",w="[object Proxy]",S="[object RegExp]",x="[object Set]",z="[object String]",E="[object Symbol]",_="[object Undefined]",O="[object ArrayBuffer]",j="[object DataView]",R=/^\[object .+?Constructor\]$/,C=/^(?:0|[1-9]\d*)$/,P={};P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P[l]=P[c]=P[O]=P[d]=P[j]=P[h]=P[p]=P[f]=P[y]=P[m]=P[b]=P[S]=P[x]=P[z]=P["[object WeakMap]"]=!1;var T="object"==typeof e&&e&&e.Object===Object&&e,k="object"==typeof self&&self&&self.Object===Object&&self,D=T||k||Function("return this")(),M=t&&!t.nodeType&&t,L=M&&"object"==typeof n&&n&&!n.nodeType&&n,I=L&&L.exports===M,N=I&&T.process,W=function(){try{return N&&N.binding&&N.binding("util")}catch(e){}}(),H=W&&W.isTypedArray;function A(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function F(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function B(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var q,U,G,X=Array.prototype,V=Function.prototype,$=Object.prototype,Y=D["__core-js_shared__"],Q=V.toString,J=$.hasOwnProperty,Z=(q=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||""))?"Symbol(src)_1."+q:"",K=$.toString,ee=RegExp("^"+Q.call(J).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),te=I?D.Buffer:void 0,ne=D.Symbol,re=D.Uint8Array,oe=$.propertyIsEnumerable,ie=X.splice,ae=ne?ne.toStringTag:void 0,se=Object.getOwnPropertySymbols,le=te?te.isBuffer:void 0,ce=(U=Object.keys,G=Object,function(e){return U(G(e))}),ue=We(D,"DataView"),de=We(D,"Map"),he=We(D,"Promise"),pe=We(D,"Set"),fe=We(D,"WeakMap"),ge=We(Object,"create"),ye=Be(ue),me=Be(de),ve=Be(he),be=Be(pe),we=Be(fe),Se=ne?ne.prototype:void 0,xe=Se?Se.valueOf:void 0;function ze(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ee(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function _e(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Oe(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new _e;++t<n;)this.add(e[t])}function je(e){var t=this.__data__=new Ee(e);this.size=t.size}function Re(e,t){var n=Ge(e),r=!n&&Ue(e),o=!n&&!r&&Xe(e),i=!n&&!r&&!o&&Je(e),a=n||r||o||i,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var c in e)!t&&!J.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Fe(c,l))||s.push(c);return s}function Ce(e,t){for(var n=e.length;n--;)if(qe(e[n][0],t))return n;return-1}function Pe(e){return null==e?void 0===e?_:v:ae&&ae in Object(e)?function(e){var t=J.call(e,ae),n=e[ae];try{e[ae]=void 0;var r=!0}catch(e){}var o=K.call(e);r&&(t?e[ae]=n:delete e[ae]);return o}(e):function(e){return K.call(e)}(e)}function Te(e){return Qe(e)&&Pe(e)==l}function ke(e,t,n,r,o){return e===t||(null==e||null==t||!Qe(e)&&!Qe(t)?e!=e&&t!=t:function(e,t,n,r,o,s){var u=Ge(e),f=Ge(t),g=u?c:Ae(e),v=f?c:Ae(t),w=(g=g==l?b:g)==b,_=(v=v==l?b:v)==b,R=g==v;if(R&&Xe(e)){if(!Xe(t))return!1;u=!0,w=!1}if(R&&!w)return s||(s=new je),u||Je(e)?Le(e,t,n,r,o,s):function(e,t,n,r,o,s,l){switch(n){case j:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case O:return!(e.byteLength!=t.byteLength||!s(new re(e),new re(t)));case d:case h:case m:return qe(+e,+t);case p:return e.name==t.name&&e.message==t.message;case S:case z:return e==t+"";case y:var c=F;case x:var u=r&i;if(c||(c=B),e.size!=t.size&&!u)return!1;var f=l.get(e);if(f)return f==t;r|=a,l.set(e,t);var g=Le(c(e),c(t),r,o,s,l);return l.delete(e),g;case E:if(xe)return xe.call(e)==xe.call(t)}return!1}(e,t,g,n,r,o,s);if(!(n&i)){var C=w&&J.call(e,"__wrapped__"),P=_&&J.call(t,"__wrapped__");if(C||P){var T=C?e.value():e,k=P?t.value():t;return s||(s=new je),o(T,k,n,r,s)}}if(!R)return!1;return s||(s=new je),function(e,t,n,r,o,a){var s=n&i,l=Ie(e),c=l.length,u=Ie(t).length;if(c!=u&&!s)return!1;for(var d=c;d--;){var h=l[d];if(!(s?h in t:J.call(t,h)))return!1}var p=a.get(e);if(p&&a.get(t))return p==t;var f=!0;a.set(e,t),a.set(t,e);for(var g=s;++d<c;){h=l[d];var y=e[h],m=t[h];if(r)var v=s?r(m,y,h,t,e,a):r(y,m,h,e,t,a);if(!(void 0===v?y===m||o(y,m,n,r,a):v)){f=!1;break}g||(g="constructor"==h)}if(f&&!g){var b=e.constructor,w=t.constructor;b!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w)&&(f=!1)}return a.delete(e),a.delete(t),f}(e,t,n,r,o,s)}(e,t,n,r,ke,o))}function De(e){return!(!Ye(e)||(t=e,Z&&Z in t))&&(Ve(e)?ee:R).test(Be(e));var t}function Me(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||$,t!==r)return ce(e);var t,n,r,o=[];for(var i in Object(e))J.call(e,i)&&"constructor"!=i&&o.push(i);return o}function Le(e,t,n,r,o,s){var l=n&i,c=e.length,u=t.length;if(c!=u&&!(l&&u>c))return!1;var d=s.get(e);if(d&&s.get(t))return d==t;var h=-1,p=!0,f=n&a?new Oe:void 0;for(s.set(e,t),s.set(t,e);++h<c;){var g=e[h],y=t[h];if(r)var m=l?r(y,g,h,t,e,s):r(g,y,h,e,t,s);if(void 0!==m){if(m)continue;p=!1;break}if(f){if(!A(t,function(e,t){if(i=t,!f.has(i)&&(g===e||o(g,e,n,r,s)))return f.push(t);var i})){p=!1;break}}else if(g!==y&&!o(g,y,n,r,s)){p=!1;break}}return s.delete(e),s.delete(t),p}function Ie(e){return function(e,t,n){var r=t(e);return Ge(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Ze,He)}function Ne(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function We(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return De(n)?n:void 0}ze.prototype.clear=function(){this.__data__=ge?ge(null):{},this.size=0},ze.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ze.prototype.get=function(e){var t=this.__data__;if(ge){var n=t[e];return n===o?void 0:n}return J.call(t,e)?t[e]:void 0},ze.prototype.has=function(e){var t=this.__data__;return ge?void 0!==t[e]:J.call(t,e)},ze.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ge&&void 0===t?o:t,this},Ee.prototype.clear=function(){this.__data__=[],this.size=0},Ee.prototype.delete=function(e){var t=this.__data__,n=Ce(t,e);return!(n<0||(n==t.length-1?t.pop():ie.call(t,n,1),--this.size,0))},Ee.prototype.get=function(e){var t=this.__data__,n=Ce(t,e);return n<0?void 0:t[n][1]},Ee.prototype.has=function(e){return Ce(this.__data__,e)>-1},Ee.prototype.set=function(e,t){var n=this.__data__,r=Ce(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},_e.prototype.clear=function(){this.size=0,this.__data__={hash:new ze,map:new(de||Ee),string:new ze}},_e.prototype.delete=function(e){var t=Ne(this,e).delete(e);return this.size-=t?1:0,t},_e.prototype.get=function(e){return Ne(this,e).get(e)},_e.prototype.has=function(e){return Ne(this,e).has(e)},_e.prototype.set=function(e,t){var n=Ne(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Oe.prototype.add=Oe.prototype.push=function(e){return this.__data__.set(e,o),this},Oe.prototype.has=function(e){return this.__data__.has(e)},je.prototype.clear=function(){this.__data__=new Ee,this.size=0},je.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},je.prototype.get=function(e){return this.__data__.get(e)},je.prototype.has=function(e){return this.__data__.has(e)},je.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ee){var o=n.__data__;if(!de||o.length<r-1)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new _e(o)}return n.set(e,t),this.size=n.size,this};var He=se?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}(se(e),function(t){return oe.call(e,t)}))}:function(){return[]},Ae=Pe;function Fe(e,t){return!!(t=null==t?s:t)&&("number"==typeof e||C.test(e))&&e>-1&&e%1==0&&e<t}function Be(e){if(null!=e){try{return Q.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function qe(e,t){return e===t||e!=e&&t!=t}(ue&&Ae(new ue(new ArrayBuffer(1)))!=j||de&&Ae(new de)!=y||he&&"[object Promise]"!=Ae(he.resolve())||pe&&Ae(new pe)!=x||fe&&"[object WeakMap]"!=Ae(new fe))&&(Ae=function(e){var t=Pe(e),n=t==b?e.constructor:void 0,r=n?Be(n):"";if(r)switch(r){case ye:return j;case me:return y;case ve:return"[object Promise]";case be:return x;case we:return"[object WeakMap]"}return t});var Ue=Te(function(){return arguments}())?Te:function(e){return Qe(e)&&J.call(e,"callee")&&!oe.call(e,"callee")},Ge=Array.isArray;var Xe=le||function(){return!1};function Ve(e){if(!Ye(e))return!1;var t=Pe(e);return t==f||t==g||t==u||t==w}function $e(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=s}function Ye(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Qe(e){return null!=e&&"object"==typeof e}var Je=H?function(e){return function(t){return e(t)}}(H):function(e){return Qe(e)&&$e(e.length)&&!!P[Pe(e)]};function Ze(e){return null!=(t=e)&&$e(t.length)&&!Ve(t)?Re(e):Me(e);var t}n.exports=function(e,t){return ke(e,t)}}).call(this,n("yLpj"),n("YuTi")(e))},bNWW:function(e,t,n){"use strict";e.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},e.exports.Resizable=n("jqYm").default,e.exports.ResizableBox=n("E56+").default},fEyB:function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=u(n("q1tI")),i=u(n("17x9")),a=u(n("XaGS")),s=u(n("TSYQ")),l=n("T0XP"),c=u(n("LvXN"));function u(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return h.call(o),(0,l.autoBindHandlers)(o,["onDragStart","onDrag","onDragStop","onResizeStart","onResize","onResizeStop"]),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.setState({mounted:!0}),this.onLayoutMaybeChanged(this.state.layout,this.props.layout)},t.prototype.componentWillReceiveProps=function(e){var t=void 0;if((0,a.default)(e.layout,this.props.layout)&&e.compactType===this.props.compactType?(0,l.childrenEqual)(this.props.children,e.children)||(t=this.state.layout):t=e.layout,t){var n=(0,l.synchronizeLayoutWithChildren)(t,e.children,e.cols,this.compactType(e)),r=this.state.layout;this.setState({layout:n}),this.onLayoutMaybeChanged(n,r)}},t.prototype.containerHeight=function(){if(this.props.autoSize){var e=(0,l.bottom)(this.state.layout),t=this.props.containerPadding?this.props.containerPadding[1]:this.props.margin[1];return e*this.props.rowHeight+(e-1)*this.props.margin[1]+2*t+"px"}},t.prototype.compactType=function(e){return e||(e=this.props),!1===e.verticalCompact?null:e.compactType},t.prototype.onDragStart=function(e,t,n,r){var o=r.e,i=r.node,a=this.state.layout,s=(0,l.getLayoutItem)(a,e);if(s)return this.setState({oldDragItem:(0,l.cloneLayoutItem)(s),oldLayout:this.state.layout}),this.props.onDragStart(a,s,s,null,o,i)},t.prototype.onDrag=function(e,t,n,r){var o=r.e,i=r.node,a=this.state.oldDragItem,s=this.state.layout,c=this.props.cols,u=(0,l.getLayoutItem)(s,e);if(u){var d={w:u.w,h:u.h,x:u.x,y:u.y,placeholder:!0,i:e};s=(0,l.moveElement)(s,u,t,n,!0,this.props.preventCollision,this.compactType(),c),this.props.onDrag(s,a,u,d,o,i),this.setState({layout:(0,l.compact)(s,this.compactType(),c),activeDrag:d})}},t.prototype.onDragStop=function(e,t,n,r){var o=r.e,i=r.node,a=this.state.oldDragItem,s=this.state.layout,c=this.props,u=c.cols,d=c.preventCollision,h=(0,l.getLayoutItem)(s,e);if(h){s=(0,l.moveElement)(s,h,t,n,!0,d,this.compactType(),u),this.props.onDragStop(s,a,h,null,o,i);var p=(0,l.compact)(s,this.compactType(),u),f=this.state.oldLayout;this.setState({activeDrag:null,layout:p,oldDragItem:null,oldLayout:null}),this.onLayoutMaybeChanged(p,f)}},t.prototype.onLayoutMaybeChanged=function(e,t){t||(t=this.state.layout),(0,a.default)(t,e)||this.props.onLayoutChange(e)},t.prototype.onResizeStart=function(e,t,n,r){var o=r.e,i=r.node,a=this.state.layout,s=(0,l.getLayoutItem)(a,e);s&&(this.setState({oldResizeItem:(0,l.cloneLayoutItem)(s),oldLayout:this.state.layout}),this.props.onResizeStart(a,s,s,null,o,i))},t.prototype.onResize=function(e,t,n,o){var i=o.e,a=o.node,s=this.state,c=s.layout,u=s.oldResizeItem,d=this.props,h=d.cols,p=d.preventCollision,f=(0,l.getLayoutItem)(c,e);if(f){var g=void 0;if(p){var y=(0,l.getAllCollisions)(c,r({},f,{w:t,h:n})).filter(function(e){return e.i!==f.i});if(g=y.length>0){var m=1/0,v=1/0;y.forEach(function(e){e.x>f.x&&(m=Math.min(m,e.x)),e.y>f.y&&(v=Math.min(v,e.y))}),Number.isFinite(m)&&(f.w=m-f.x),Number.isFinite(v)&&(f.h=v-f.y)}}g||(f.w=t,f.h=n);var b={w:f.w,h:f.h,x:f.x,y:f.y,static:!0,i:e};this.props.onResize(c,u,f,b,i,a),this.setState({layout:(0,l.compact)(c,this.compactType(),h),activeDrag:b})}},t.prototype.onResizeStop=function(e,t,n,r){var o=r.e,i=r.node,a=this.state,s=a.layout,c=a.oldResizeItem,u=this.props.cols,d=(0,l.getLayoutItem)(s,e);this.props.onResizeStop(s,c,d,null,o,i);var h=(0,l.compact)(s,this.compactType(),u),p=this.state.oldLayout;this.setState({activeDrag:null,layout:h,oldResizeItem:null,oldLayout:null}),this.onLayoutMaybeChanged(h,p)},t.prototype.placeholder=function(){var e=this.state.activeDrag;if(!e)return null;var t=this.props,n=t.width,r=t.cols,i=t.margin,a=t.containerPadding,s=t.rowHeight,l=t.maxRows,u=t.useCSSTransforms;return o.default.createElement(c.default,{w:e.w,h:e.h,x:e.x,y:e.y,i:e.i,className:"react-grid-placeholder",containerWidth:n,cols:r,margin:i,containerPadding:a||i,maxRows:l,rowHeight:s,isDraggable:!1,isResizable:!1,useCSSTransforms:u},o.default.createElement("div",null))},t.prototype.processGridItem=function(e){if(e&&e.key){var t=(0,l.getLayoutItem)(this.state.layout,String(e.key));if(!t)return null;var n=this.props,r=n.width,i=n.cols,a=n.margin,s=n.containerPadding,u=n.rowHeight,d=n.maxRows,h=n.isDraggable,p=n.isResizable,f=n.useCSSTransforms,g=n.draggableCancel,y=n.draggableHandle,m=this.state.mounted,v=Boolean(!t.static&&h&&(t.isDraggable||null==t.isDraggable)),b=Boolean(!t.static&&p&&(t.isResizable||null==t.isResizable));return o.default.createElement(c.default,{containerWidth:r,cols:i,margin:a,containerPadding:s||a,maxRows:d,rowHeight:u,cancel:g,handle:y,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:v,isResizable:b,useCSSTransforms:f&&m,usePercentages:!m,w:t.w,h:t.h,x:t.x,y:t.y,i:t.i,minH:t.minH,minW:t.minW,maxH:t.maxH,maxW:t.maxW,static:t.static},e)}},t.prototype.render=function(){var e=this,t=this.props,n=t.className,i=t.style,a=(0,s.default)("react-grid-layout",n),l=r({height:this.containerHeight()},i);return o.default.createElement("div",{className:a,style:l},o.default.Children.map(this.props.children,function(t){return e.processGridItem(t)}),this.placeholder())},t}(o.default.Component);d.displayName="ReactGridLayout",d.propTypes={className:i.default.string,style:i.default.object,width:i.default.number,autoSize:i.default.bool,cols:i.default.number,draggableCancel:i.default.string,draggableHandle:i.default.string,verticalCompact:function(e){e.verticalCompact,0},compactType:i.default.oneOf(["vertical","horizontal"]),layout:function(e){var t=e.layout;void 0!==t&&(0,l.validateLayout)(t,"layout")},margin:i.default.arrayOf(i.default.number),containerPadding:i.default.arrayOf(i.default.number),rowHeight:i.default.number,maxRows:i.default.number,isDraggable:i.default.bool,isResizable:i.default.bool,preventCollision:i.default.bool,useCSSTransforms:i.default.bool,onLayoutChange:i.default.func,onDragStart:i.default.func,onDrag:i.default.func,onDragStop:i.default.func,onResizeStart:i.default.func,onResize:i.default.func,onResizeStop:i.default.func,children:function(e,t){var n=e[t],r={};o.default.Children.forEach(n,function(e){if(r[e.key])throw new Error('Duplicate child key "'+e.key+'" found! This will cause problems in ReactGridLayout.');r[e.key]=!0})}},d.defaultProps={autoSize:!0,cols:12,className:"",style:{},draggableHandle:"",draggableCancel:"",containerPadding:null,rowHeight:150,maxRows:1/0,layout:[],margin:[10,10],isDraggable:!0,isResizable:!0,useCSSTransforms:!0,verticalCompact:!0,compactType:"vertical",preventCollision:!1,onLayoutChange:l.noop,onDragStart:l.noop,onDrag:l.noop,onDragStop:l.noop,onResizeStart:l.noop,onResize:l.noop,onResizeStop:l.noop};var h=function(){this.state={activeDrag:null,layout:(0,l.synchronizeLayoutWithChildren)(this.props.layout,this.props.children,this.props.cols,this.compactType()),mounted:!1,oldDragItem:null,oldLayout:null,oldResizeItem:null}};t.default=d},gHze:function(e,t,n){"use strict";var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n("q1tI"),a=(r=i)&&r.__esModule?r:{default:r};e.exports=function(e,t){return t.style&&e.props.style&&(t.style=o({},e.props.style,t.style)),t.className&&e.props.className&&(t.className=e.props.className+" "+t.className),a.default.cloneElement(e,t)}},"hKI/":function(e,t,n){(function(t){var n="Expected a function",r=NaN,o="[object Symbol]",i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt,u="object"==typeof t&&t&&t.Object===Object&&t,d="object"==typeof self&&self&&self.Object===Object&&self,h=u||d||Function("return this")(),p=Object.prototype.toString,f=Math.max,g=Math.min,y=function(){return h.Date.now()};function m(e,t,r){var o,i,a,s,l,c,u=0,d=!1,h=!1,p=!0;if("function"!=typeof e)throw new TypeError(n);function m(t){var n=o,r=i;return o=i=void 0,u=t,s=e.apply(r,n)}function w(e){var n=e-c;return void 0===c||n>=t||n<0||h&&e-u>=a}function S(){var e=y();if(w(e))return x(e);l=setTimeout(S,function(e){var n=t-(e-c);return h?g(n,a-(e-u)):n}(e))}function x(e){return l=void 0,p&&o?m(e):(o=i=void 0,s)}function z(){var e=y(),n=w(e);if(o=arguments,i=this,c=e,n){if(void 0===l)return function(e){return u=e,l=setTimeout(S,t),d?m(e):s}(c);if(h)return l=setTimeout(S,t),m(c)}return void 0===l&&(l=setTimeout(S,t)),s}return t=b(t)||0,v(r)&&(d=!!r.leading,a=(h="maxWait"in r)?f(b(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p),z.cancel=function(){void 0!==l&&clearTimeout(l),u=0,o=c=i=l=void 0},z.flush=function(){return void 0===l?s:x(y())},z}function v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&p.call(e)==o}(e))return r;if(v(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=v(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,r){var o=!0,i=!0;if("function"!=typeof e)throw new TypeError(n);return v(r)&&(o="leading"in r?!!r.leading:o,i="trailing"in r?!!r.trailing:i),m(e,t,{leading:o,maxWait:t,trailing:i})}}).call(this,n("yLpj"))},jqYm:function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=l(n("q1tI")),i=l(n("17x9")),a=n("01jY"),s=l(n("gHze"));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=c(this,e.call.apply(e,[this].concat(i))),r.state={resizing:!1,width:r.props.width,height:r.props.height,slackW:0,slackH:0},c(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillReceiveProps=function(e){this.state.resizing||e.width===this.props.width&&e.height===this.props.height||this.setState({width:e.width,height:e.height})},t.prototype.lockAspectRatio=function(e,t,n){return[e=(t=e/n)*n,t]},t.prototype.runConstraints=function(e,t){var n=[this.props.minConstraints,this.props.maxConstraints],r=n[0],o=n[1];if(this.props.lockAspectRatio){var i=this.state.width/this.state.height;e=(t=e/i)*i}if(!r&&!o)return[e,t];var a=e,s=t,l=this.state,c=l.slackW,u=l.slackH;return e+=c,t+=u,r&&(e=Math.max(r[0],e),t=Math.max(r[1],t)),o&&(e=Math.min(o[0],e),t=Math.min(o[1],t)),u+=s-t,(c+=a-e)===this.state.slackW&&u===this.state.slackH||this.setState({slackW:c,slackH:u}),[e,t]},t.prototype.resizeHandler=function(e,t){var n=this;return function(r,o){var i=o.node,a=o.deltaX,s=o.deltaY,l=("both"===n.props.axis||"x"===n.props.axis)&&-1===["n","s"].indexOf(t),c=("both"===n.props.axis||"y"===n.props.axis)&&-1===["e","w"].indexOf(t);l&&"w"===t[t.length-1]&&(a=-a),c&&"n"===t[0]&&(s=-s);var u=n.state.width+(l?a:0),d=n.state.height+(c?s:0),h=u!==n.state.width,p=d!==n.state.height;if("onResize"!==e||h||p){var f=n.runConstraints(u,d);u=f[0],d=f[1];var g={};if("onResizeStart"===e)g.resizing=!0;else if("onResizeStop"===e)g.resizing=!1,g.slackW=g.slackH=0;else{if(u===n.state.width&&d===n.state.height)return;g.width=u,g.height=d}"function"==typeof n.props[e]?("function"==typeof r.persist&&r.persist(),n.setState(g,function(){return n.props[e](r,{node:i,size:{width:u,height:d},handle:t})})):n.setState(g)}}},t.prototype.renderResizeHandle=function(e){var t=this.props.handle;return t?"function"==typeof t?t(e):t:o.default.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+e})},t.prototype.render=function(){var e=this,t=this.props,n=t.children,i=t.draggableOpts,l=(t.width,t.height,t.handleSize,t.lockAspectRatio,t.axis,t.minConstraints,t.maxConstraints,t.onResize,t.onResizeStop,t.onResizeStart,t.resizeHandles),c=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["children","draggableOpts","width","height","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles"]),u=c.className?c.className+" react-resizable":"react-resizable";return(0,s.default)(n,r({},c,{className:u,children:[n.props.children,l.map(function(t){return o.default.createElement(a.DraggableCore,r({},i,{key:"resizableHandle-"+t,onStop:e.resizeHandler("onResizeStop",t),onStart:e.resizeHandler("onResizeStart",t),onDrag:e.resizeHandler("onResize",t)}),e.renderResizeHandle(t))})]}))},t}(o.default.Component);u.propTypes={children:i.default.element.isRequired,width:i.default.number.isRequired,height:i.default.number.isRequired,handle:i.default.element,handleSize:i.default.array,resizeHandles:i.default.arrayOf(i.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),lockAspectRatio:i.default.bool,axis:i.default.oneOf(["both","x","y","none"]),minConstraints:i.default.arrayOf(i.default.number),maxConstraints:i.default.arrayOf(i.default.number),onResizeStop:i.default.func,onResizeStart:i.default.func,onResize:i.default.func,draggableOpts:i.default.object},u.defaultProps={handleSize:[20,20],lockAspectRatio:!1,axis:"both",minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"]},t.default=u},kt0J:function(e,t,n){"use strict";n.d(t,"a",function(){return v});var r,o=n("mrSG"),i=n("q1tI"),a=n.n(i),s=n("jYz7"),l=n("JEAp"),c=n("PAeb"),u=n("kDLi"),d=n("t8hP"),h=n("Obii"),p=n("ZFWI");!function(e){e.Data="data",e.Raw="raw",e.Issue="issue",e.Meta="meta"}(r||(r={}));var f,g,y,m=Object(u.stylesFactory)(function(){return{toolbar:Object(c.css)(f||(f=Object(o.__makeTemplateObject)(["\n display: flex;\n margin: 8px 0;\n justify-content: flex-end;\n align-items: center;\n "],["\n display: flex;\n margin: 8px 0;\n justify-content: flex-end;\n align-items: center;\n "]))),dataFrameSelect:Object(c.css)(g||(g=Object(o.__makeTemplateObject)(["\n flex-grow: 2;\n "],["\n flex-grow: 2;\n "]))),downloadCsv:Object(c.css)(y||(y=Object(o.__makeTemplateObject)(["\n margin-left: 16px;\n "],["\n margin-left: 16px;\n "])))}}),v=function(e){function t(t){var n=e.call(this,t)||this;return n.onDismiss=function(){Object(d.getLocationSrv)().update({query:{inspect:null},partial:!0})},n.onSelectTab=function(e){n.setState({tab:e.value||r.Data})},n.onSelectedFrameChanged=function(e){n.setState({selected:e.value||0})},n.exportCsv=function(e){var t=Object(h.toCSV)([e]),n=new Blob([t],{type:"application/csv;charset=utf-8"});Object(l.saveAs)(n,e.name+"-"+(new Date).getUTCDate()+".csv")},n.state={data:[],selected:0,tab:r.Data},n}return Object(o.__extends)(t,e),t.prototype.componentDidMount=function(){var e,t;return Object(o.__awaiter)(this,void 0,void 0,function(){var n,r,i,a,s,l,c,u,h,p,f,g;return Object(o.__generator)(this,function(y){switch(y.label){case 0:if(!(n=this.props.panel))return this.onDismiss(),[2];if(!(r=n.getQueryRunner().lastResult))return this.onDismiss(),[2];if(!(a=null===(e=r)||void 0===e?void 0:e.series))return[3,8];y.label=1;case 1:y.trys.push([1,6,7,8]),s=Object(o.__values)(a),l=s.next(),y.label=2;case 2:return l.done?[3,5]:(c=l.value,(u=null===(t=c.meta)||void 0===t?void 0:t.datasource)?[4,Object(d.getDataSourceSrv)().get(u)]:[3,4]);case 3:if((h=y.sent())&&h.components.MetadataInspector)return i=h,[3,5];y.label=4;case 4:return l=s.next(),[3,2];case 5:return[3,8];case 6:return p=y.sent(),f={error:p},[3,8];case 7:try{l&&!l.done&&(g=s.return)&&g.call(s)}finally{if(f)throw f.error}return[7];case 8:return this.setState({last:r,data:a,metaDS:i}),[2]}})})},t.prototype.renderMetadataInspector=function(){var e,t=this.state,n=t.metaDS,r=t.data;return n&&(null===(e=n.components)||void 0===e?void 0:e.MetadataInspector)?a.a.createElement(n.components.MetadataInspector,{datasource:n,data:r}):a.a.createElement("div",null,"No Metadata Inspector")},t.prototype.renderDataTab=function(e,t){var n=this,r=this.state,o=r.data,i=r.selected,s=m();if(!o||!o.length)return a.a.createElement("div",null,"No Data");var l=o.map(function(e,t){return{value:t,label:e.name+" ("+t+")"}}),c=Object(h.applyFieldOverrides)({data:o,theme:p.a.theme,fieldOptions:{defaults:{},overrides:[]},replaceVariables:function(e){return e}});return a.a.createElement("div",null,a.a.createElement("div",{className:s.toolbar},l.length>1&&a.a.createElement("div",{className:s.dataFrameSelect},a.a.createElement(u.Select,{options:l,value:l.find(function(e){return e.value===i}),onChange:this.onSelectedFrameChanged})),a.a.createElement("div",{className:s.downloadCsv},a.a.createElement(u.Forms.Button,{variant:"primary",onClick:function(){return n.exportCsv(c[i])}},"Download CSV"))),a.a.createElement(u.Table,{width:e,height:t,data:c[i]}))},t.prototype.renderIssueTab=function(){return a.a.createElement("div",null,"TODO: show issue form")},t.prototype.render=function(){var e=this,t=this.props.panel,n=this.state,o=n.last,i=n.tab;if(!t)return this.onDismiss(),null;var l=[{label:"Data",value:r.Data},{label:"Issue",value:r.Issue},{label:"Raw JSON",value:r.Raw}];return this.state.metaDS&&l.push({label:"Meta Data",value:r.Meta}),a.a.createElement(u.Drawer,{title:t.title,onClose:this.onDismiss},a.a.createElement(u.TabsBar,null,l.map(function(t){return a.a.createElement(u.Tab,{label:t.label,active:t.value===i,onChangeTab:function(){return e.onSelectTab(t)}})})),a.a.createElement(u.TabContent,null,a.a.createElement(s.a,null,function(t){var n=t.width,s=t.height;return 0===n?null:a.a.createElement("div",{style:{width:n}},i===r.Data&&e.renderDataTab(n,s),i===r.Meta&&e.renderMetadataInspector(),i===r.Issue&&e.renderIssueTab(),i===r.Raw&&a.a.createElement("div",null,a.a.createElement(u.JSONFormatter,{json:o,open:2})))})))},t}(i.PureComponent)},lIMf:function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"DashboardPage",function(){return _}),n.d(t,"mapStateToProps",function(){return O});var r=n("mrSG"),o=n("+2Rf"),i=n.n(o),a=n("q1tI"),s=n.n(a),l=n("0cfB"),c=n("/MKj"),u=n("TSYQ"),d=n.n(u),h=n("UvM7"),p=n("v4Fa"),f=n("nU/Z"),g=n("hfOi"),y=n("PVeq"),m=n("2t1j"),v=n("5rhN"),b=n("kDLi"),w=n("8M//"),S=n("J4KJ"),x=n("3SGO"),z=n("GQ3c"),E=n("kt0J"),_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={isSettingsOpening:!1,isEditing:!1,isFullscreen:!1,showLoadingState:!1,fullscreenPanel:null,scrollTop:0,updateScrollTop:null,rememberScrollTop:0},t.setScrollTop=function(e){var n=e.target;t.setState({scrollTop:n.scrollTop,updateScrollTop:null})},t.onAddPanel=function(){var e=t.props.dashboard;e.panels.length>0&&"add-panel"===e.panels[0].type||(e.addPanel({type:"add-panel",gridPos:{x:0,y:0,w:12,h:8},title:"Panel Title"}),t.setState({scrollTop:0}))},t}return Object(r.__extends)(t,e),t.prototype.componentDidMount=function(){return Object(r.__awaiter)(this,void 0,void 0,function(){return Object(r.__generator)(this,function(e){return this.props.initDashboard({$injector:this.props.$injector,$scope:this.props.$scope,urlSlug:this.props.urlSlug,urlUid:this.props.urlUid,urlType:this.props.urlType,urlFolderId:this.props.urlFolderId,routeInfo:this.props.routeInfo,fixUrl:!0}),[2]})})},t.prototype.componentWillUnmount=function(){this.props.dashboard&&(this.props.cleanUpDashboard(),this.setPanelFullscreenClass(!1))},t.prototype.componentDidUpdate=function(e){var t=this,n=this.props,r=n.dashboard,o=n.editview,i=n.urlEdit,a=n.urlFullscreen,s=n.urlPanelId,l=n.urlUid;r&&(e.dashboard||(document.title=r.title+" - Grafana"),e.urlUid===l&&(!e.editview&&o&&(this.setState({isSettingsOpening:!0}),setTimeout(function(){t.setState({isSettingsOpening:!1})},10)),a===r.meta.fullscreen&&i===r.meta.isEditing||(isNaN(parseInt(s,10))?this.onLeaveFullscreen():this.onEnterFullscreen())))},t.prototype.onEnterFullscreen=function(){var e=this.props,t=e.dashboard,n=e.urlEdit,r=e.urlFullscreen,o=e.urlPanelId,i=parseInt(o,10);t.expandParentRowFor(i);var a=t.getPanelById(i);a?(t.setViewMode(a,r,n),this.setState({isEditing:n&&t.meta.canEdit,isFullscreen:r,fullscreenPanel:a,rememberScrollTop:this.state.scrollTop}),this.setPanelFullscreenClass(r)):this.handleFullscreenPanelNotFound(o)},t.prototype.onLeaveFullscreen=function(){var e=this.props.dashboard;this.state.fullscreenPanel&&e.setViewMode(this.state.fullscreenPanel,!1,!1),this.setState({isEditing:!1,isFullscreen:!1,fullscreenPanel:null,updateScrollTop:this.state.rememberScrollTop},this.triggerPanelsRendering.bind(this)),this.setPanelFullscreenClass(!1)},t.prototype.triggerPanelsRendering=function(){try{this.props.dashboard.render()}catch(e){this.props.notifyApp(Object(h.a)("Panel rendering error",e))}},t.prototype.handleFullscreenPanelNotFound=function(e){this.props.notifyApp(Object(h.a)("Panel with id "+e+" not found")),this.props.updateLocation({query:{edit:null,fullscreen:null,panelId:null},partial:!0})},t.prototype.setPanelFullscreenClass=function(e){i()("body").toggleClass("panel-in-fullscreen",e)},t.prototype.renderSlowInitState=function(){return s.a.createElement("div",{className:"dashboard-loading"},s.a.createElement("div",{className:"dashboard-loading__text"},s.a.createElement("i",{className:"fa fa-spinner fa-spin"})," ",this.props.initPhase))},t.prototype.renderInitFailedState=function(){var e=this.props.initError;return s.a.createElement("div",{className:"dashboard-loading"},s.a.createElement(b.Alert,{severity:z.AppNotificationSeverity.Error,title:e.message,children:Object(p.a)(e.error)}))},t.prototype.render=function(){var e=this.props,t=e.dashboard,n=e.editview,r=e.$injector,o=e.isInitSlow,i=e.initError,a=e.inspectPanelId,l=e.urlEditPanel,c=this.state,u=c.isSettingsOpening,h=c.isEditing,p=c.isFullscreen,w=c.scrollTop,S=c.updateScrollTop;if(!t)return o?this.renderSlowInitState():null;var x=d()({"dashboard-page--settings-opening":u,"dashboard-page--settings-open":!u&&n}),z=d()({"dashboard-container":!0,"dashboard-container--has-submenu":t.meta.submenuEnabled}),_=a?t.getPanelById(parseInt(a,10)):null,O=l?t.getPanelById(parseInt(l,10)):null,j=25*Math.round(w/25);return s.a.createElement("div",{className:x},s.a.createElement(g.a,{dashboard:t,isEditing:h,isFullscreen:p,editview:n,$injector:r,onAddPanel:this.onAddPanel}),s.a.createElement("div",{className:"scroll-canvas scroll-canvas--dashboard"},s.a.createElement(b.CustomScrollbar,{autoHeightMin:"100%",setScrollTop:this.setScrollTop,scrollTop:S,updateAfterMountMs:500,className:"custom-scrollbar--page"},n&&s.a.createElement(m.a,{dashboard:t}),i&&this.renderInitFailedState(),s.a.createElement("div",{className:z},s.a.createElement(y.a,{dashboard:t}),s.a.createElement(f.a,{dashboard:t,isEditing:h,isFullscreen:p,scrollTop:j})))),_&&s.a.createElement(E.a,{dashboard:t,panel:_}),O&&s.a.createElement(v.a,{dashboard:t,panel:O}))},t}(a.PureComponent),O=function(e){return{urlUid:e.location.routeParams.uid,urlSlug:e.location.routeParams.slug,urlType:e.location.routeParams.type,editview:e.location.query.editview,urlPanelId:e.location.query.panelId,urlEditPanel:e.location.query.editPanel,urlFolderId:e.location.query.folderId,urlFullscreen:!!e.location.query.fullscreen,urlEdit:!!e.location.query.edit,inspectPanelId:e.location.query.inspect,initPhase:e.dashboard.initPhase,isInitSlow:e.dashboard.isInitSlow,initError:e.dashboard.initError,dashboard:e.dashboard.model}},j={initDashboard:w.a,cleanUpDashboard:S.b,notifyApp:x.b,updateLocation:x.c};t.default=Object(l.hot)(e)(Object(c.connect)(O,j)(_))}.call(this,n("3UD+")(e))},"nU/Z":function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return S});var r=n("mrSG"),o=n("q1tI"),i=n.n(o),a=n("0cfB"),s=n("ChGz"),l=n.n(s),c=n("TSYQ"),u=n.n(c),d=n("IZOP"),h=n.n(d),p=n("eXZ6"),f=n("Yuww"),g=n("GQ3c"),y=n("Obii"),m=n("K47g"),v=1200,b=!1;var w=h()({monitorWidth:!0})(function(e){var t=e.size,n=e.layout,r=e.onLayoutChange,o=e.children,a=e.onDragStop,s=e.onResize,c=e.onResizeStop,u=e.onWidthChange,d=e.className,h=e.isResizable,f=e.isDraggable,g=e.isFullscreen,y=t.width>0?t.width:v;y!==v&&(b?b=!1:!g&&Math.abs(y-v)>8&&(u(),v=y));var m=!(y<=420)&&f;return i.a.createElement(l.a,{width:v,className:d,isDraggable:m,isResizable:h,containerPadding:[0,0],useCSSTransforms:!1,margin:[p.d,p.d],cols:p.e,rowHeight:p.c,draggableHandle:".grid-drag-handle",layout:n,onResize:s,onResizeStop:c,onDragStop:a,onLayoutChange:r},o)}),S=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.panelRef={},t.onLayoutChange=function(e){var n,o;try{for(var i=Object(r.__values)(e),a=i.next();!a.done;a=i.next()){var s=a.value;t.panelMap[s.i].updateGridPos(s)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}t.props.dashboard.sortPanelsByGridPos(),t.forceUpdate()},t.triggerForceUpdate=function(){t.forceUpdate()},t.onWidthChange=function(){var e,n;try{for(var o=Object(r.__values)(t.props.dashboard.panels),i=o.next();!i.done;i=o.next()){i.value.resizeDone()}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}t.forceUpdate()},t.onViewModeChanged=function(){b=!0},t.updateGridPos=function(e,n){t.panelMap[e.i].updateGridPos(e),t.onLayoutChange(n)},t.onResize=function(e,n,r){t.panelMap[r.i].updateGridPos(r)},t.onResizeStop=function(e,n,r){t.updateGridPos(r,e),t.panelMap[r.i].resizeDone()},t.onDragStop=function(e,n,r){t.updateGridPos(r,e)},t.isInView=function(e){if(e.fullscreen||e.isEditing)return!0;var n=t.panelRef[e.id.toString()];if(!n)return!1;var r=n.offsetTop,o=r+(e.gridPos.h*p.c+40),i=t.props.scrollTop;return!(i>o+250)&&(!(r>i+(isNaN(window.innerHeight)?window.clientHeight:window.innerHeight)+250)&&!t.props.dashboard.otherPanelInFullscreen(e))},t}return Object(r.__extends)(t,e),t.prototype.componentDidMount=function(){var e=this.props.dashboard;e.on(m.b,this.triggerForceUpdate),e.on(m.c,this.triggerForceUpdate),e.on(g.CoreEvents.repeatsProcessed,this.triggerForceUpdate),e.on(y.PanelEvents.viewModeChanged,this.onViewModeChanged),e.on(g.CoreEvents.rowCollapsed,this.triggerForceUpdate),e.on(g.CoreEvents.rowExpanded,this.triggerForceUpdate)},t.prototype.componentWillUnmount=function(){var e=this.props.dashboard;e.off(m.b,this.triggerForceUpdate),e.off(m.c,this.triggerForceUpdate),e.off(g.CoreEvents.repeatsProcessed,this.triggerForceUpdate),e.off(y.PanelEvents.viewModeChanged,this.onViewModeChanged),e.off(g.CoreEvents.rowCollapsed,this.triggerForceUpdate),e.off(g.CoreEvents.rowExpanded,this.triggerForceUpdate)},t.prototype.buildLayout=function(){var e,t,n=[];this.panelMap={};try{for(var o=Object(r.__values)(this.props.dashboard.panels),i=o.next();!i.done;i=o.next()){var a=i.value,s=a.id.toString();if(this.panelMap[s]=a,a.gridPos){var l={i:s,x:a.gridPos.x,y:a.gridPos.y,w:a.gridPos.w,h:a.gridPos.h};"row"===a.type&&(l.w=p.e,l.h=1,l.isResizable=!1,l.isDraggable=a.collapsed),n.push(l)}else console.log("panel without gridpos")}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return n},t.prototype.renderPanels=function(){var e,t,n=this,o=[],a=function(e){var t=u()({"react-grid-item--fullscreen":e.fullscreen}),r=e.id.toString();e.isInView=s.isInView(e),o.push(i.a.createElement("div",{key:r,className:t,id:"panel-"+r,ref:function(e){n.panelRef[r]=e}},i.a.createElement(f.a,{panel:e,dashboard:s.props.dashboard,isEditing:e.isEditing,isFullscreen:e.fullscreen,isInView:e.isInView})))},s=this;try{for(var l=Object(r.__values)(this.props.dashboard.panels),c=l.next();!c.done;c=l.next()){a(c.value)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}return o},t.prototype.render=function(){var e=this.props,t=e.dashboard,n=e.isFullscreen;return i.a.createElement(w,{className:u()({layout:!0}),layout:this.buildLayout(),isResizable:t.meta.canEdit,isDraggable:t.meta.canEdit,onLayoutChange:this.onLayoutChange,onWidthChange:this.onWidthChange,onDragStop:this.onDragStop,onResize:this.onResize,onResizeStop:this.onResizeStop,isFullscreen:n},this.renderPanels())},t}(o.PureComponent);Object(a.hot)(e)(S)}).call(this,n("3UD+")(e))},q7TX:function(e,t,n){"use strict";e.exports=function(e){function t(){}var n={log:t,warn:t,error:t};if(!e&&window.console){var r=function(e,t){e[t]=function(){var e=console[t];if(e.apply)e.apply(console,arguments);else for(var n=0;n<arguments.length;n++)e(arguments[n])}};r(n,"log"),r(n,"warn"),r(n,"error")}return n}},t3DW:function(e,t,n){"use strict";(e.exports={}).forEach=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n]);if(r)return r}}},wnTG:function(e,t,n){"use strict";var r=n("UL9e");function o(){var e={},t=0,n=0,r=0;return{add:function(o,i){i||(i=o,o=0),o>n?n=o:o<r&&(r=o),e[o]||(e[o]=[]),e[o].push(i),t++},process:function(){for(var t=r;t<=n;t++)for(var o=e[t],i=0;i<o.length;i++)(0,o[i])()},size:function(){return t}}}e.exports=function(e){var t=(e=e||{}).reporter,n=r.getOption(e,"async",!0),i=r.getOption(e,"auto",!0);i&&!n&&(t&&t.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var a,s=o(),l=!1;function c(){for(l=!0;s.size();){var e=s;s=o(),e.process()}l=!1}function u(){var e;e=c,a=setTimeout(e,0)}return{add:function(e,t){!l&&i&&n&&0===s.size()&&u(),s.add(e,t)},force:function(e){l||(void 0===e&&(e=n),a&&(clearTimeout(a),a=null),e?u():c())}}}},yUZ2:function(e,t,n){"use strict";var r=n("t3DW").forEach;e.exports=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,o=e.stateHandler.getState,i=(e.stateHandler.hasState,e.idHandler);if(!n)throw new Error("Missing required dependency: batchProcessor");if(!t)throw new Error("Missing required dependency: reporter.");var a=function(){var e=document.createElement("div");e.style.cssText="position: absolute; width: 1000px; height: 1000px; visibility: hidden; margin: 0; padding: 0;";var t=document.createElement("div");t.style.cssText="position: absolute; width: 500px; height: 500px; overflow: scroll; visibility: none; top: -1500px; left: -1500px; visibility: hidden; margin: 0; padding: 0;",t.appendChild(e),document.body.insertBefore(t,document.body.firstChild);var n=500-t.clientWidth,r=500-t.clientHeight;return document.body.removeChild(t),{width:n,height:r}}(),s="erd_scroll_detection_container";function l(e,n,r){if(e.addEventListener)e.addEventListener(n,r);else{if(!e.attachEvent)return t.error("[scroll] Don't know how to add event listeners.");e.attachEvent("on"+n,r)}}function c(e,n,r){if(e.removeEventListener)e.removeEventListener(n,r);else{if(!e.detachEvent)return t.error("[scroll] Don't know how to remove event listeners.");e.detachEvent("on"+n,r)}}function u(e){return o(e).container.childNodes[0].childNodes[0].childNodes[0]}function d(e){return o(e).container.childNodes[0].childNodes[0].childNodes[1]}return function(e,t){if(!document.getElementById(e)){var n=t+"_animation",r=t+"_animation_active",o="/* Created by the element-resize-detector library. */\n";o+="."+t+" > div::-webkit-scrollbar { display: none; }\n\n",o+="."+r+" { -webkit-animation-duration: 0.1s; animation-duration: 0.1s; -webkit-animation-name: "+n+"; animation-name: "+n+"; }\n",o+="@-webkit-keyframes "+n+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(t,n){n=n||function(e){document.head.appendChild(e)};var r=document.createElement("style");r.innerHTML=t,r.id=e,n(r)}(o+="@keyframes "+n+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}("erd_scroll_detection_scrollbar_style",s),{makeDetectable:function(e,c,h){function p(){if(e.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(i.get(c),"Scroll: "),t.log.apply)t.log.apply(null,n);else for(var r=0;r<n.length;r++)t.log(n[r])}}function f(e){var t=o(e).container.childNodes[0],n=window.getComputedStyle(t);return!n.width||-1===n.width.indexOf("px")}function g(){var e=window.getComputedStyle(c),t={};return t.position=e.position,t.width=c.offsetWidth,t.height=c.offsetHeight,t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left,t.widthCSS=e.width,t.heightCSS=e.height,t}function y(){if(p("storeStyle invoked."),o(c)){var e=g();o(c).style=e}else p("Aborting because element has been uninstalled")}function m(e,t,n){o(e).lastWidth=t,o(e).lastHeight=n}function v(){return 2*a.width+1}function b(){return 2*a.height+1}function w(e){return e+10+v()}function S(e){return e+10+b()}function x(e,t,n){var r=u(e),o=d(e),i=w(t),a=S(n),s=function(e){return 2*e+v()}(t),l=function(e){return 2*e+b()}(n);r.scrollLeft=i,r.scrollTop=a,o.scrollLeft=s,o.scrollTop=l}function z(){var e=o(c).container;if(!e){(e=document.createElement("div")).className=s,e.style.cssText="visibility: hidden; display: inline; width: 0px; height: 0px; z-index: -1; overflow: hidden; margin: 0; padding: 0;",o(c).container=e,function(e){e.className+=" "+s+"_animation_active"}(e),c.appendChild(e);var t=function(){o(c).onRendered&&o(c).onRendered()};l(e,"animationstart",t),o(c).onAnimationStart=t}return e}function E(){if(p("Injecting elements"),o(c)){!function(){var e=o(c).style;if("static"===e.position){c.style.position="relative";var n=function(e,t,n,r){var o=n[r];"auto"!==o&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(o)&&(e.warn("An element that is positioned static has style."+r+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",t),t.style[r]=0)};n(t,c,e,"top"),n(t,c,e,"right"),n(t,c,e,"bottom"),n(t,c,e,"left")}}();var e=o(c).container;e||(e=z());var n,r,i,u,d=a.width,h=a.height,f="position: absolute; flex: none; overflow: hidden; z-index: -1; visibility: hidden; left: "+(n=(n=-(1+d))?n+"px":"0")+"; top: "+(r=(r=-(1+h))?r+"px":"0")+"; right: "+(u=(u=-d)?u+"px":"0")+"; bottom: "+(i=(i=-h)?i+"px":"0")+";",g=document.createElement("div"),y=document.createElement("div"),m=document.createElement("div"),v=document.createElement("div"),b=document.createElement("div"),w=document.createElement("div");g.dir="ltr",g.style.cssText="position: absolute; flex: none; overflow: hidden; z-index: -1; visibility: hidden; width: 100%; height: 100%; left: 0px; top: 0px;",g.className=s,y.className=s,y.style.cssText=f,m.style.cssText="position: absolute; flex: none; overflow: scroll; z-index: -1; visibility: hidden; width: 100%; height: 100%;",v.style.cssText="position: absolute; left: 0; top: 0;",b.style.cssText="position: absolute; flex: none; overflow: scroll; z-index: -1; visibility: hidden; width: 100%; height: 100%;",w.style.cssText="position: absolute; width: 200%; height: 200%;",m.appendChild(v),b.appendChild(w),y.appendChild(m),y.appendChild(b),g.appendChild(y),e.appendChild(g),l(m,"scroll",S),l(b,"scroll",x),o(c).onExpandScroll=S,o(c).onShrinkScroll=x}else p("Aborting because element has been uninstalled");function S(){o(c).onExpand&&o(c).onExpand()}function x(){o(c).onShrink&&o(c).onShrink()}}function _(){function a(e,t,n){var r=function(e){return u(e).childNodes[0]}(e),o=w(t),i=S(n);r.style.width=o+"px",r.style.height=i+"px"}function s(r){var s=c.offsetWidth,u=c.offsetHeight;p("Storing current size",s,u),m(c,s,u),n.add(0,function(){if(o(c))if(l()){if(e.debug){var n=c.offsetWidth,r=c.offsetHeight;n===s&&r===u||t.warn(i.get(c),"Scroll: Size changed before updating detector elements.")}a(c,s,u)}else p("Aborting because element container has not been initialized");else p("Aborting because element has been uninstalled")}),n.add(1,function(){o(c)?l()?x(c,s,u):p("Aborting because element container has not been initialized"):p("Aborting because element has been uninstalled")}),r&&n.add(2,function(){o(c)?l()?r():p("Aborting because element container has not been initialized"):p("Aborting because element has been uninstalled")})}function l(){return!!o(c).container}function h(){p("notifyListenersIfNeeded invoked");var e=o(c);return void 0===o(c).lastNotifiedWidth&&e.lastWidth===e.startSize.width&&e.lastHeight===e.startSize.height?p("Not notifying: Size is the same as the start size, and there has been no notification yet."):e.lastWidth===e.lastNotifiedWidth&&e.lastHeight===e.lastNotifiedHeight?p("Not notifying: Size already notified"):(p("Current size not notified, notifying..."),e.lastNotifiedWidth=e.lastWidth,e.lastNotifiedHeight=e.lastHeight,void r(o(c).listeners,function(e){e(c)}))}function g(){if(p("Scroll detected."),f(c))p("Scroll event fired while unrendered. Ignoring...");else{var e=c.offsetWidth,t=c.offsetHeight;e!==o(c).lastWidth||t!==o(c).lastHeight?(p("Element size changed."),s(h)):p("Element size has not changed ("+e+"x"+t+").")}}if(p("registerListenersAndPositionElements invoked."),o(c)){o(c).onRendered=function(){if(p("startanimation triggered."),f(c))p("Ignoring since element is still unrendered...");else{p("Element rendered.");var e=u(c),t=d(c);0!==e.scrollLeft&&0!==e.scrollTop&&0!==t.scrollLeft&&0!==t.scrollTop||(p("Scrollbars out of sync. Updating detector elements..."),s(h))}},o(c).onExpand=g,o(c).onShrink=g;var y=o(c).style;a(c,y.width,y.height)}else p("Aborting because element has been uninstalled")}function O(){if(p("finalizeDomMutation invoked."),o(c)){var e=o(c).style;m(c,e.width,e.height),x(c,e.width,e.height)}else p("Aborting because element has been uninstalled")}function j(){h(c)}function R(){var e;p("Installing..."),o(c).listeners=[],e=g(),o(c).startSize={width:e.width,height:e.height},p("Element start size",o(c).startSize),n.add(0,y),n.add(1,E),n.add(2,_),n.add(3,O),n.add(4,j)}h||(h=c,c=e,e=null),e=e||{},p("Making detectable..."),function(e){return!function(e){return e===e.ownerDocument.body||e.ownerDocument.body.contains(e)}(e)||null===window.getComputedStyle(e)}(c)?(p("Element is detached"),z(),p("Waiting until element is attached..."),o(c).onRendered=function(){p("Element is now attached"),R()}):R()},addListener:function(e,t){if(!o(e).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");o(e).listeners.push(t)},uninstall:function(e){var t=o(e);t&&(t.onExpandScroll&&c(u(e),"scroll",t.onExpandScroll),t.onShrinkScroll&&c(d(e),"scroll",t.onShrinkScroll),t.onAnimationStart&&c(t.container,"animationstart",t.onAnimationStart),t.container&&e.removeChild(t.container))}}}}}]); //# sourceMappingURL=DashboardPage.4d0490a94b199a11f40c.js.map