forked from react-grid-layout/react-grid-layout
-
Notifications
You must be signed in to change notification settings - Fork 0
/
react-grid-layout.min.js
12 lines (12 loc) · 79 KB
/
react-grid-layout.min.js
1
2
3
4
5
6
7
8
9
10
11
12
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports.ReactGridLayout=e(require("react"),require("react-dom")):t.ReactGridLayout=e(t.React,t.ReactDOM)}(window,(function(t,e){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=11)}([function(t,e,n){t.exports=n(12)()},function(t,e,n){"use strict";n.r(e),n.d(e,"bottom",(function(){return p})),n.d(e,"cloneLayout",(function(){return f})),n.d(e,"cloneLayoutItem",(function(){return d})),n.d(e,"childrenEqual",(function(){return h})),n.d(e,"collides",(function(){return y})),n.d(e,"compact",(function(){return g})),n.d(e,"compactItem",(function(){return v})),n.d(e,"correctBounds",(function(){return O})),n.d(e,"getLayoutItem",(function(){return w})),n.d(e,"getFirstCollision",(function(){return j})),n.d(e,"getAllCollisions",(function(){return S})),n.d(e,"getStatics",(function(){return x})),n.d(e,"moveElement",(function(){return D})),n.d(e,"moveElementAwayFromCollision",(function(){return P})),n.d(e,"perc",(function(){return _})),n.d(e,"setTransform",(function(){return R})),n.d(e,"setTopLeft",(function(){return k})),n.d(e,"sortLayoutItems",(function(){return z})),n.d(e,"sortLayoutItemsByRowCol",(function(){return C})),n.d(e,"sortLayoutItemsByColRow",(function(){return E})),n.d(e,"synchronizeLayoutWithChildren",(function(){return T})),n.d(e,"validateLayout",(function(){return M})),n.d(e,"autoBindHandlers",(function(){return L})),n.d(e,"noop",(function(){return W}));var r=n(3),o=n.n(r),a=n(2),i=n.n(a);function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=!0,l=!1;function p(t){for(var e,n=0,r=0,o=t.length;r<o;r++)(e=t[r].y+t[r].h)>n&&(n=e);return n}function f(t){for(var e=Array(t.length),n=0,r=t.length;n<r;n++)e[n]=d(t[n]);return e}function d(t){return{w:t.w,h:t.h,x:t.x,y:t.y,i:t.i,minW:t.minW,maxW:t.maxW,minH:t.minH,maxH:t.maxH,moved:Boolean(t.moved),static:Boolean(t.static),isDraggable:t.isDraggable,isResizable:t.isResizable}}function h(t,e){return o()(i.a.Children.map(t,(function(t){return t.key})),i.a.Children.map(e,(function(t){return t.key})))}function y(t,e){return t.i!==e.i&&(!(t.x+t.w<=e.x)&&(!(t.x>=e.x+e.w)&&(!(t.y+t.h<=e.y)&&!(t.y>=e.y+e.h))))}function g(t,e,n){for(var r=x(t),o=z(t,e),a=Array(t.length),i=0,s=o.length;i<s;i++){var c=d(o[i]);c.static||(c=v(r,c,e,n,o),r.push(c)),a[t.indexOf(o[i])]=c,c.moved=!1}return a}var b={x:"w",y:"h"};function m(t,e,n,r){var o=b[r];e[r]+=1;for(var a=t.map((function(t){return t.i})).indexOf(e.i)+1;a<t.length;a++){var i=t[a];if(!i.static){if(i.y>e.y+e.h)break;y(e,i)&&m(t,i,n+e[o],r)}}e[r]=n}function v(t,e,n,r,o){var a,i="horizontal"===n;if("vertical"===n)for(e.y=Math.min(p(t),e.y);e.y>0&&!j(t,e);)e.y--;else if(i)for(e.y=Math.min(p(t),e.y);e.x>0&&!j(t,e);)e.x--;for(;a=j(t,e);)i?m(o,e,a.x+a.w,"x"):m(o,e,a.y+a.h,"y"),i&&e.x+e.w>r&&(e.x=r-e.w,e.y++);return e}function O(t,e){for(var n=x(t),r=0,o=t.length;r<o;r++){var a=t[r];if(a.x+a.w>e.cols&&(a.x=e.cols-a.w),a.x<0&&(a.x=0,a.w=e.cols),a.static)for(;j(n,a);)a.y++;else n.push(a)}return t}function w(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n].i===e)return t[n]}function j(t,e){for(var n=0,r=t.length;n<r;n++)if(y(t[n],e))return t[n]}function S(t,e){return t.filter((function(t){return y(t,e)}))}function x(t){return t.filter((function(t){return t.static}))}function D(t,e,n,r,o,a,i,s){if(e.static)return t;if(e.y===r&&e.x===n)return t;N("Moving element ".concat(e.i," to [").concat(String(n),",").concat(String(r),"] from [").concat(e.x,",").concat(e.y,"]"));var c=e.x,u=e.y;"number"==typeof n&&(e.x=n),"number"==typeof r&&(e.y=r),e.moved=!0;var l=z(t,i);("vertical"===i&&"number"==typeof r?u>=r:"horizontal"===i&&"number"==typeof n&&c>=n)&&(l=l.reverse());var p=S(l,e);if(a&&p.length)return N("Collision prevented on ".concat(e.i,", reverting.")),e.x=c,e.y=u,e.moved=!1,t;for(var f=0,d=p.length;f<d;f++){var h=p[f];N("Resolving collision between ".concat(e.i," at [").concat(e.x,",").concat(e.y,"] and ").concat(h.i," at [").concat(h.x,",").concat(h.y,"]")),h.moved||(t=h.static?P(t,h,e,o,i,s):P(t,e,h,o,i,s))}return t}function P(t,e,n,r,o,a){var i="horizontal"===o,s="horizontal"!==o,c=e.static;if(r){r=!1;var u={x:i?Math.max(e.x-n.w,0):n.x,y:s?Math.max(e.y-n.h,0):n.y,w:n.w,h:n.h,i:"-1"};if(!j(t,u))return N("Doing reverse collision on ".concat(n.i," up to [").concat(u.x,",").concat(u.y,"].")),D(t,n,i?u.x:void 0,s?u.y:void 0,r,c,o,a)}return D(t,n,i?n.x+1:void 0,s?n.y+1:void 0,r,c,o,a)}function _(t){return 100*t+"%"}function R(t){var e=t.top,n=t.left,r=t.width,o=t.height,a="translate(".concat(n,"px,").concat(e,"px)");return{transform:a,WebkitTransform:a,MozTransform:a,msTransform:a,OTransform:a,width:"".concat(r,"px"),height:"".concat(o,"px"),position:"absolute"}}function k(t){var e=t.top,n=t.left,r=t.width,o=t.height;return{top:"".concat(e,"px"),left:"".concat(n,"px"),width:"".concat(r,"px"),height:"".concat(o,"px"),position:"absolute"}}function z(t,e){return"horizontal"===e?E(t):C(t)}function C(t){return[].concat(t).sort((function(t,e){return t.y>e.y||t.y===e.y&&t.x>e.x?1:t.y===e.y&&t.x===e.x?0:-1}))}function E(t){return[].concat(t).sort((function(t,e){return t.x>e.x||t.x===e.x&&t.y>e.y?1:-1}))}function T(t,e,n,r){t=t||[];var o=[];return i.a.Children.forEach(e,(function(e,n){var r=w(t,String(e.key));if(r)o[n]=d(r);else{!u&&e.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 a=e.props["data-grid"]||e.props._grid;a?(u||M([a],"ReactGridLayout.children"),o[n]=d(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(n,!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},a,{i:e.key}))):o[n]=d({w:1,h:1,x:0,y:p(o),i:String(e.key)})}})),o=g(o=O(o,{cols:n}),r,n)}function M(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Layout",n=["x","y","w","h"];if(!Array.isArray(t))throw new Error(e+" must be an array!");for(var r=0,o=t.length;r<o;r++){for(var a=t[r],i=0;i<n.length;i++)if("number"!=typeof a[n[i]])throw new Error("ReactGridLayout: "+e+"["+r+"]."+n[i]+" must be a number!");if(a.i&&"string"!=typeof a.i)throw new Error("ReactGridLayout: "+e+"["+r+"].i must be a string!");if(void 0!==a.static&&"boolean"!=typeof a.static)throw new Error("ReactGridLayout: "+e+"["+r+"].static must be a boolean!")}}function L(t,e){e.forEach((function(e){return t[e]=t[e].bind(t)}))}function N(){var t;l&&(t=console).log.apply(t,arguments)}var W=function(){}},function(e,n){e.exports=t},function(t,e,n){(function(t,n){var r=200,o="__lodash_hash_undefined__",a=1,i=2,s=9007199254740991,c="[object Arguments]",u="[object Array]",l="[object AsyncFunction]",p="[object Boolean]",f="[object Date]",d="[object Error]",h="[object Function]",y="[object GeneratorFunction]",g="[object Map]",b="[object Number]",m="[object Null]",v="[object Object]",O="[object Proxy]",w="[object RegExp]",j="[object Set]",S="[object String]",x="[object Symbol]",D="[object Undefined]",P="[object ArrayBuffer]",_="[object DataView]",R=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,z={};z["[object Float32Array]"]=z["[object Float64Array]"]=z["[object Int8Array]"]=z["[object Int16Array]"]=z["[object Int32Array]"]=z["[object Uint8Array]"]=z["[object Uint8ClampedArray]"]=z["[object Uint16Array]"]=z["[object Uint32Array]"]=!0,z[c]=z[u]=z[P]=z[p]=z[_]=z[f]=z[d]=z[h]=z[g]=z[b]=z[v]=z[w]=z[j]=z[S]=z["[object WeakMap]"]=!1;var C="object"==typeof t&&t&&t.Object===Object&&t,E="object"==typeof self&&self&&self.Object===Object&&self,T=C||E||Function("return this")(),M=e&&!e.nodeType&&e,L=M&&"object"==typeof n&&n&&!n.nodeType&&n,N=L&&L.exports===M,W=N&&C.process,H=function(){try{return W&&W.binding&&W.binding("util")}catch(t){}}(),A=H&&H.isTypedArray;function I(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function B(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function q(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var Y,X,U,F=Array.prototype,G=Function.prototype,V=Object.prototype,$=T["__core-js_shared__"],J=G.toString,K=V.hasOwnProperty,Q=(Y=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||""))?"Symbol(src)_1."+Y:"",Z=V.toString,tt=RegExp("^"+J.call(K).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),et=N?T.Buffer:void 0,nt=T.Symbol,rt=T.Uint8Array,ot=V.propertyIsEnumerable,at=F.splice,it=nt?nt.toStringTag:void 0,st=Object.getOwnPropertySymbols,ct=et?et.isBuffer:void 0,ut=(X=Object.keys,U=Object,function(t){return X(U(t))}),lt=Ht(T,"DataView"),pt=Ht(T,"Map"),ft=Ht(T,"Promise"),dt=Ht(T,"Set"),ht=Ht(T,"WeakMap"),yt=Ht(Object,"create"),gt=qt(lt),bt=qt(pt),mt=qt(ft),vt=qt(dt),Ot=qt(ht),wt=nt?nt.prototype:void 0,jt=wt?wt.valueOf:void 0;function St(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function xt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Dt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Pt(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Dt;++e<n;)this.add(t[e])}function _t(t){var e=this.__data__=new xt(t);this.size=e.size}function Rt(t,e){var n=Ut(t),r=!n&&Xt(t),o=!n&&!r&&Ft(t),a=!n&&!r&&!o&&Kt(t),i=n||r||o||a,s=i?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],c=s.length;for(var u in t)!e&&!K.call(t,u)||i&&("length"==u||o&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Bt(u,c))||s.push(u);return s}function kt(t,e){for(var n=t.length;n--;)if(Yt(t[n][0],e))return n;return-1}function zt(t){return null==t?void 0===t?D:m:it&&it in Object(t)?function(t){var e=K.call(t,it),n=t[it];try{t[it]=void 0;var r=!0}catch(t){}var o=Z.call(t);r&&(e?t[it]=n:delete t[it]);return o}(t):function(t){return Z.call(t)}(t)}function Ct(t){return Jt(t)&&zt(t)==c}function Et(t,e,n,r,o){return t===e||(null==t||null==e||!Jt(t)&&!Jt(e)?t!=t&&e!=e:function(t,e,n,r,o,s){var l=Ut(t),h=Ut(e),y=l?u:It(t),m=h?u:It(e),O=(y=y==c?v:y)==v,D=(m=m==c?v:m)==v,R=y==m;if(R&&Ft(t)){if(!Ft(e))return!1;l=!0,O=!1}if(R&&!O)return s||(s=new _t),l||Kt(t)?Lt(t,e,n,r,o,s):function(t,e,n,r,o,s,c){switch(n){case _:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case P:return!(t.byteLength!=e.byteLength||!s(new rt(t),new rt(e)));case p:case f:case b:return Yt(+t,+e);case d:return t.name==e.name&&t.message==e.message;case w:case S:return t==e+"";case g:var u=B;case j:var l=r&a;if(u||(u=q),t.size!=e.size&&!l)return!1;var h=c.get(t);if(h)return h==e;r|=i,c.set(t,e);var y=Lt(u(t),u(e),r,o,s,c);return c.delete(t),y;case x:if(jt)return jt.call(t)==jt.call(e)}return!1}(t,e,y,n,r,o,s);if(!(n&a)){var k=O&&K.call(t,"__wrapped__"),z=D&&K.call(e,"__wrapped__");if(k||z){var C=k?t.value():t,E=z?e.value():e;return s||(s=new _t),o(C,E,n,r,s)}}if(!R)return!1;return s||(s=new _t),function(t,e,n,r,o,i){var s=n&a,c=Nt(t),u=c.length,l=Nt(e).length;if(u!=l&&!s)return!1;var p=u;for(;p--;){var f=c[p];if(!(s?f in e:K.call(e,f)))return!1}var d=i.get(t);if(d&&i.get(e))return d==e;var h=!0;i.set(t,e),i.set(e,t);var y=s;for(;++p<u;){f=c[p];var g=t[f],b=e[f];if(r)var m=s?r(b,g,f,e,t,i):r(g,b,f,t,e,i);if(!(void 0===m?g===b||o(g,b,n,r,i):m)){h=!1;break}y||(y="constructor"==f)}if(h&&!y){var v=t.constructor,O=e.constructor;v!=O&&"constructor"in t&&"constructor"in e&&!("function"==typeof v&&v instanceof v&&"function"==typeof O&&O instanceof O)&&(h=!1)}return i.delete(t),i.delete(e),h}(t,e,n,r,o,s)}(t,e,n,r,Et,o))}function Tt(t){return!(!$t(t)||function(t){return!!Q&&Q in t}(t))&&(Gt(t)?tt:R).test(qt(t))}function Mt(t){if(n=(e=t)&&e.constructor,r="function"==typeof n&&n.prototype||V,e!==r)return ut(t);var e,n,r,o=[];for(var a in Object(t))K.call(t,a)&&"constructor"!=a&&o.push(a);return o}function Lt(t,e,n,r,o,s){var c=n&a,u=t.length,l=e.length;if(u!=l&&!(c&&l>u))return!1;var p=s.get(t);if(p&&s.get(e))return p==e;var f=-1,d=!0,h=n&i?new Pt:void 0;for(s.set(t,e),s.set(e,t);++f<u;){var y=t[f],g=e[f];if(r)var b=c?r(g,y,f,e,t,s):r(y,g,f,t,e,s);if(void 0!==b){if(b)continue;d=!1;break}if(h){if(!I(e,(function(t,e){if(a=e,!h.has(a)&&(y===t||o(y,t,n,r,s)))return h.push(e);var a}))){d=!1;break}}else if(y!==g&&!o(y,g,n,r,s)){d=!1;break}}return s.delete(t),s.delete(e),d}function Nt(t){return function(t,e,n){var r=e(t);return Ut(t)?r:function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}(r,n(t))}(t,Qt,At)}function Wt(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function Ht(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return Tt(n)?n:void 0}St.prototype.clear=function(){this.__data__=yt?yt(null):{},this.size=0},St.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},St.prototype.get=function(t){var e=this.__data__;if(yt){var n=e[t];return n===o?void 0:n}return K.call(e,t)?e[t]:void 0},St.prototype.has=function(t){var e=this.__data__;return yt?void 0!==e[t]:K.call(e,t)},St.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=yt&&void 0===e?o:e,this},xt.prototype.clear=function(){this.__data__=[],this.size=0},xt.prototype.delete=function(t){var e=this.__data__,n=kt(e,t);return!(n<0)&&(n==e.length-1?e.pop():at.call(e,n,1),--this.size,!0)},xt.prototype.get=function(t){var e=this.__data__,n=kt(e,t);return n<0?void 0:e[n][1]},xt.prototype.has=function(t){return kt(this.__data__,t)>-1},xt.prototype.set=function(t,e){var n=this.__data__,r=kt(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Dt.prototype.clear=function(){this.size=0,this.__data__={hash:new St,map:new(pt||xt),string:new St}},Dt.prototype.delete=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e},Dt.prototype.get=function(t){return Wt(this,t).get(t)},Dt.prototype.has=function(t){return Wt(this,t).has(t)},Dt.prototype.set=function(t,e){var n=Wt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Pt.prototype.add=Pt.prototype.push=function(t){return this.__data__.set(t,o),this},Pt.prototype.has=function(t){return this.__data__.has(t)},_t.prototype.clear=function(){this.__data__=new xt,this.size=0},_t.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},_t.prototype.get=function(t){return this.__data__.get(t)},_t.prototype.has=function(t){return this.__data__.has(t)},_t.prototype.set=function(t,e){var n=this.__data__;if(n instanceof xt){var o=n.__data__;if(!pt||o.length<r-1)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Dt(o)}return n.set(t,e),this.size=n.size,this};var At=st?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,a=[];++n<r;){var i=t[n];e(i,n,t)&&(a[o++]=i)}return a}(st(t),(function(e){return ot.call(t,e)})))}:function(){return[]},It=zt;function Bt(t,e){return!!(e=null==e?s:e)&&("number"==typeof t||k.test(t))&&t>-1&&t%1==0&&t<e}function qt(t){if(null!=t){try{return J.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Yt(t,e){return t===e||t!=t&&e!=e}(lt&&It(new lt(new ArrayBuffer(1)))!=_||pt&&It(new pt)!=g||ft&&"[object Promise]"!=It(ft.resolve())||dt&&It(new dt)!=j||ht&&"[object WeakMap]"!=It(new ht))&&(It=function(t){var e=zt(t),n=e==v?t.constructor:void 0,r=n?qt(n):"";if(r)switch(r){case gt:return _;case bt:return g;case mt:return"[object Promise]";case vt:return j;case Ot:return"[object WeakMap]"}return e});var Xt=Ct(function(){return arguments}())?Ct:function(t){return Jt(t)&&K.call(t,"callee")&&!ot.call(t,"callee")},Ut=Array.isArray;var Ft=ct||function(){return!1};function Gt(t){if(!$t(t))return!1;var e=zt(t);return e==h||e==y||e==l||e==O}function Vt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=s}function $t(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Jt(t){return null!=t&&"object"==typeof t}var Kt=A?function(t){return function(e){return t(e)}}(A):function(t){return Jt(t)&&Vt(t.length)&&!!z[zt(t)]};function Qt(t){return null!=(e=t)&&Vt(e.length)&&!Gt(e)?Rt(t):Mt(t);var e}n.exports=function(t,e){return Et(t,e)}}).call(this,n(14),n(15)(t))},function(t,e,n){"use strict";n.r(e),n.d(e,"getBreakpointFromWidth",(function(){return o})),n.d(e,"getColsFromBreakpoint",(function(){return a})),n.d(e,"findOrGenerateResponsiveLayout",(function(){return i})),n.d(e,"sortBreakpoints",(function(){return s}));var r=n(1);function o(t,e){for(var n=s(t),r=n[0],o=1,a=n.length;o<a;o++){var i=n[o];e>t[i]&&(r=i)}return r}function a(t,e){if(!e[t])throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+t+" is missing!");return e[t]}function i(t,e,n,o,a,i){if(t[n])return Object(r.cloneLayout)(t[n]);for(var c=t[o],u=s(e),l=u.slice(u.indexOf(n)),p=0,f=l.length;p<f;p++){var d=l[p];if(t[d]){c=t[d];break}}return c=Object(r.cloneLayout)(c||[]),Object(r.compact)(Object(r.correctBounds)(c,{cols:a}),i,a)}function s(t){return Object.keys(t).sort((function(e,n){return t[e]-t[n]}))}},function(t,n){t.exports=e},function(t,e,n){var r;
/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var a=typeof r;if("string"===a||"number"===a)t.push(r);else if(Array.isArray(r)&&r.length){var i=o.apply(null,r);i&&t.push(i)}else if("object"===a)for(var s in r)n.call(r,s)&&r[s]&&t.push(s)}}return t.join(" ")}t.exports?(o.default=o,t.exports=o):void 0===(r=function(){return o}.apply(e,[]))||(t.exports=r)}()},function(t,e,n){var r,o;window,t.exports=(r=n(2),o=n(5),function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=9)}([function(t,e,n){t.exports=n(11)()},function(t,e,n){"use strict";function r(t,e){for(var n=0,r=t.length;n<r;n++)if(e.apply(e,[t[n],n,t]))return t[n]}function o(t){return"function"==typeof t||"[object Function]"===Object.prototype.toString.call(t)}function a(t){return"number"==typeof t&&!isNaN(t)}function i(t){return parseInt(t,10)}function s(t,e,n){if(t[e])return new Error("Invalid prop ".concat(e," passed to ").concat(n," - do not set this, set it on the child."))}n.d(e,"b",(function(){return r})),n.d(e,"d",(function(){return o})),n.d(e,"e",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return s}))},function(t,e,n){"use strict";var r=n(1),o=["Moz","Webkit","O","ms"];function a(t,e){return e?"".concat(e).concat(function(t){for(var e="",n=!0,r=0;r<t.length;r++)n?(e+=t[r].toUpperCase(),n=!1):"-"===t[r]?n=!0:e+=t[r];return e}(t)):t}var i=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window||void 0===window.document)return"";var e=window.document.documentElement.style;if(t in e)return"";for(var n=0;n<o.length;n++)if(a(t,o[n])in e)return o[n];return""}();function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"i",(function(){return p})),n.d(e,"a",(function(){return f})),n.d(e,"m",(function(){return d})),n.d(e,"k",(function(){return h})),n.d(e,"l",(function(){return y})),n.d(e,"g",(function(){return g})),n.d(e,"h",(function(){return b})),n.d(e,"j",(function(){return m})),n.d(e,"c",(function(){return v})),n.d(e,"d",(function(){return O})),n.d(e,"e",(function(){return j})),n.d(e,"f",(function(){return S})),n.d(e,"b",(function(){return x})),n.d(e,"n",(function(){return D})),n.d(e,"o",(function(){return P}));var u="";function l(t,e){return u||(u=Object(r.b)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(e){return Object(r.d)(t[e])}))),!!Object(r.d)(t[u])&&t[u](e)}function p(t,e,n){var r=t;do{if(l(r,e))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1}function f(t,e,n){t&&(t.attachEvent?t.attachEvent("on"+e,n):t.addEventListener?t.addEventListener(e,n,!0):t["on"+e]=n)}function d(t,e,n){t&&(t.detachEvent?t.detachEvent("on"+e,n):t.removeEventListener?t.removeEventListener(e,n,!0):t["on"+e]=null)}function h(t){var e=t.clientHeight,n=t.ownerDocument.defaultView.getComputedStyle(t);return(e+=Object(r.c)(n.borderTopWidth))+Object(r.c)(n.borderBottomWidth)}function y(t){var e=t.clientWidth,n=t.ownerDocument.defaultView.getComputedStyle(t);return(e+=Object(r.c)(n.borderLeftWidth))+Object(r.c)(n.borderRightWidth)}function g(t){var e=t.clientHeight,n=t.ownerDocument.defaultView.getComputedStyle(t);return(e-=Object(r.c)(n.paddingTop))-Object(r.c)(n.paddingBottom)}function b(t){var e=t.clientWidth,n=t.ownerDocument.defaultView.getComputedStyle(t);return(e-=Object(r.c)(n.paddingLeft))-Object(r.c)(n.paddingRight)}function m(t,e){var n=e===e.ownerDocument.body?{left:0,top:0}:e.getBoundingClientRect();return{x:t.clientX+e.scrollLeft-n.left,y:t.clientY+e.scrollTop-n.top}}function v(t,e){var n=w(t,e,"px");return c({},a("transform",i),n)}function O(t,e){return w(t,e,"")}function w(t,e,n){var r=t.x,o=t.y,a="translate(".concat(r).concat(n,",").concat(o).concat(n,")");if(e){var i="".concat("string"==typeof e.x?e.x:e.x+n),s="".concat("string"==typeof e.y?e.y:e.y+n);a="translate(".concat(i,", ").concat(s,")")+a}return a}function j(t,e){return t.targetTouches&&Object(r.b)(t.targetTouches,(function(t){return e===t.identifier}))||t.changedTouches&&Object(r.b)(t.changedTouches,(function(t){return e===t.identifier}))}function S(t){return t.targetTouches&&t.targetTouches[0]?t.targetTouches[0].identifier:t.changedTouches&&t.changedTouches[0]?t.changedTouches[0].identifier:void 0}function x(t){if(t){var e,n,r=t.getElementById("react-draggable-style-el");r||((r=t.createElement("style")).type="text/css",r.id="react-draggable-style-el",r.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",r.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",t.getElementsByTagName("head")[0].appendChild(r)),t.body&&(n="react-draggable-transparent-selection",(e=t.body).classList?e.classList.add(n):e.className.match(new RegExp("(?:^|\\s)".concat(n,"(?!\\S)")))||(e.className+=" ".concat(n)))}}function D(t){try{t&&t.body&&(e=t.body,n="react-draggable-transparent-selection",e.classList?e.classList.remove(n):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(n,"(?!\\S)"),"g"),"")),t.selection?t.selection.empty():window.getSelection().removeAllRanges()}catch(t){}var e,n}function P(){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(n,!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({touchAction:"none"},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}},function(t,e,n){"use strict";n.d(e,"e",(function(){return s})),n.d(e,"g",(function(){return c})),n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return l})),n.d(e,"f",(function(){return p})),n.d(e,"c",(function(){return f})),n.d(e,"d",(function(){return d}));var r=n(1),o=n(6),a=n.n(o),i=n(2);function s(t,e,n){if(!t.props.bounds)return[e,n];var o=t.props.bounds;o="string"==typeof o?o:function(t){return{left:t.left,top:t.top,right:t.right,bottom:t.bottom}}(o);var a=h(t);if("string"==typeof o){var s,c=a.ownerDocument,u=c.defaultView;if(!((s="parent"===o?a.parentNode:c.querySelector(o))instanceof u.HTMLElement))throw new Error('Bounds selector "'+o+'" could not find an element.');var l=u.getComputedStyle(a),p=u.getComputedStyle(s);o={left:-a.offsetLeft+Object(r.c)(p.paddingLeft)+Object(r.c)(l.marginLeft),top:-a.offsetTop+Object(r.c)(p.paddingTop)+Object(r.c)(l.marginTop),right:Object(i.h)(s)-Object(i.l)(a)-a.offsetLeft+Object(r.c)(p.paddingRight)-Object(r.c)(l.marginRight),bottom:Object(i.g)(s)-Object(i.k)(a)-a.offsetTop+Object(r.c)(p.paddingBottom)-Object(r.c)(l.marginBottom)}}return Object(r.e)(o.right)&&(e=Math.min(e,o.right)),Object(r.e)(o.bottom)&&(n=Math.min(n,o.bottom)),Object(r.e)(o.left)&&(e=Math.max(e,o.left)),Object(r.e)(o.top)&&(n=Math.max(n,o.top)),[e,n]}function c(t,e,n){return[Math.round(e/t[0])*t[0],Math.round(n/t[1])*t[1]]}function u(t){return"both"===t.props.axis||"x"===t.props.axis}function l(t){return"both"===t.props.axis||"y"===t.props.axis}function p(t,e,n){var r="number"==typeof e?Object(i.e)(t,e):null;if("number"==typeof e&&!r)return null;var o=h(n),a=n.props.offsetParent||o.offsetParent||o.ownerDocument.body;return Object(i.j)(r||t,a)}function f(t,e,n){var o=t.state,a=!Object(r.e)(o.lastX),i=h(t);return a?{node:i,deltaX:0,deltaY:0,lastX:e,lastY:n,x:e,y:n}:{node:i,deltaX:e-o.lastX,deltaY:n-o.lastY,lastX:o.lastX,lastY:o.lastY,x:e,y:n}}function d(t,e){var n=t.props.scale;return{node:e.node,x:t.state.x+e.deltaX/n,y:t.state.y+e.deltaY/n,deltaX:e.deltaX/n,deltaY:e.deltaY/n,lastX:t.state.x,lastY:t.state.y}}function h(t){var e=a.a.findDOMNode(t);if(!e)throw new Error("<DraggableCore>: Unmounted during event!");return e}},function(t,e,n){"use strict";function r(){}n.d(e,"a",(function(){return r}))},function(t,e){t.exports=r},function(t,e){t.exports=o},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return w}));var r=n(5),o=n.n(r),a=n(0),i=n.n(a),s=n(6),c=n.n(s),u=n(2),l=n(3),p=n(1),f=n(4);function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function g(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function b(t,e){return(b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function m(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var v={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},O=v.mouse,w=function(t){function e(){var t,n,r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=(t=y(e)).call.apply(t,[this].concat(a)),n=!r||"object"!==d(r)&&"function"!=typeof r?g(this):r,m(g(n),"state",{dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null}),m(g(n),"handleDragStart",(function(t){if(n.props.onMouseDown(t),!n.props.allowAnyClick&&"number"==typeof t.button&&0!==t.button)return!1;var e=c.a.findDOMNode(g(n));if(!e||!e.ownerDocument||!e.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");var r=e.ownerDocument;if(!(n.props.disabled||!(t.target instanceof r.defaultView.Node)||n.props.handle&&!Object(u.i)(t.target,n.props.handle,e)||n.props.cancel&&Object(u.i)(t.target,n.props.cancel,e))){var o=Object(u.f)(t);n.setState({touchIdentifier:o});var a=Object(l.f)(t,o,g(n));if(null!=a){var i=a.x,s=a.y,p=Object(l.c)(g(n),i,s);Object(f.a)("DraggableCore: handleDragStart: %j",p),Object(f.a)("calling",n.props.onStart),!1!==n.props.onStart(t,p)&&(n.props.enableUserSelectHack&&Object(u.b)(r),n.setState({dragging:!0,lastX:i,lastY:s}),Object(u.a)(r,O.move,n.handleDrag),Object(u.a)(r,O.stop,n.handleDragStop))}}})),m(g(n),"handleDrag",(function(t){"touchmove"===t.type&&t.preventDefault();var e=Object(l.f)(t,n.state.touchIdentifier,g(n));if(null!=e){var r=e.x,o=e.y;if(Array.isArray(n.props.grid)){var a=r-n.state.lastX,i=o-n.state.lastY,s=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){o=!0,a=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(Object(l.g)(n.props.grid,a,i),2);if(a=s[0],i=s[1],!a&&!i)return;r=n.state.lastX+a,o=n.state.lastY+i}var c=Object(l.c)(g(n),r,o);if(Object(f.a)("DraggableCore: handleDrag: %j",c),!1!==n.props.onDrag(t,c))n.setState({lastX:r,lastY:o});else try{n.handleDragStop(new MouseEvent("mouseup"))}catch(t){var u=document.createEvent("MouseEvents");u.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),n.handleDragStop(u)}}})),m(g(n),"handleDragStop",(function(t){if(n.state.dragging){var e=Object(l.f)(t,n.state.touchIdentifier,g(n));if(null!=e){var r=e.x,o=e.y,a=Object(l.c)(g(n),r,o),i=c.a.findDOMNode(g(n));i&&n.props.enableUserSelectHack&&Object(u.n)(i.ownerDocument),Object(f.a)("DraggableCore: handleDragStop: %j",a),n.setState({dragging:!1,lastX:NaN,lastY:NaN}),n.props.onStop(t,a),i&&(Object(f.a)("DraggableCore: Removing handlers"),Object(u.m)(i.ownerDocument,O.move,n.handleDrag),Object(u.m)(i.ownerDocument,O.stop,n.handleDragStop))}}})),m(g(n),"onMouseDown",(function(t){return O=v.mouse,n.handleDragStart(t)})),m(g(n),"onMouseUp",(function(t){return O=v.mouse,n.handleDragStop(t)})),m(g(n),"onTouchStart",(function(t){return O=v.touch,n.handleDragStart(t)})),m(g(n),"onTouchEnd",(function(t){return O=v.touch,n.handleDragStop(t)})),n}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}(e,o.a.Component),n=e,(r=[{key:"componentWillUnmount",value:function(){var t=c.a.findDOMNode(this);if(t){var e=t.ownerDocument;Object(u.m)(e,v.mouse.move,this.handleDrag),Object(u.m)(e,v.touch.move,this.handleDrag),Object(u.m)(e,v.mouse.stop,this.handleDragStop),Object(u.m)(e,v.touch.stop,this.handleDragStop),this.props.enableUserSelectHack&&Object(u.n)(e)}}},{key:"render",value:function(){return o.a.cloneElement(o.a.Children.only(this.props.children),{style:Object(u.o)(this.props.children.props.style),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}])&&h(n.prototype,r),e}();m(w,"displayName","DraggableCore"),m(w,"propTypes",{allowAnyClick:i.a.bool,disabled:i.a.bool,enableUserSelectHack:i.a.bool,offsetParent:function(t,e){if(t[e]&&1!==t[e].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:i.a.arrayOf(i.a.number),handle:i.a.string,cancel:i.a.string,onStart:i.a.func,onDrag:i.a.func,onStop:i.a.func,onMouseDown:i.a.func,className:p.a,style:p.a,transform:p.a}),m(w,"defaultProps",{allowAnyClick:!1,cancel:null,disabled:!1,enableUserSelectHack:!0,offsetParent:null,handle:null,grid:null,transform:null,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){}})},function(t,e,n){var r;
/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var a=typeof r;if("string"===a||"number"===a)t.push(r);else if(Array.isArray(r)&&r.length){var i=o.apply(null,r);i&&t.push(i)}else if("object"===a)for(var s in r)n.call(r,s)&&r[s]&&t.push(s)}}return t.join(" ")}t.exports?(o.default=o,t.exports=o):void 0===(r=function(){return o}.apply(e,[]))||(t.exports=r)}()},function(t,e,n){var r=n(10).default;t.exports=r,t.exports.default=r,t.exports.DraggableCore=n(7).default},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return P}));var r=n(5),o=n.n(r),a=n(0),i=n.n(a),s=n(6),c=n.n(s),u=n(8),l=n.n(u),p=n(2),f=n(3),d=n(1),h=n(7),y=n(4);function g(t){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(){return(b=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function v(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(n,!0).forEach((function(e){D(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function O(t){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function w(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function j(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function S(t,e,n){return e&&j(t.prototype,e),n&&j(t,n),t}function x(t,e){return(x=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function D(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var P=function(t){function e(t){var n,r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r=O(e).call(this,t),n=!r||"object"!==g(r)&&"function"!=typeof r?w(this):r,D(w(n),"onDragStart",(function(t,e){if(Object(y.a)("Draggable: onDragStart: %j",e),!1===n.props.onStart(t,Object(f.d)(w(n),e)))return!1;n.setState({dragging:!0,dragged:!0})})),D(w(n),"onDrag",(function(t,e){if(!n.state.dragging)return!1;Object(y.a)("Draggable: onDrag: %j",e);var r=Object(f.d)(w(n),e),o={x:r.x,y:r.y};if(n.props.bounds){var a=o.x,i=o.y;o.x+=n.state.slackX,o.y+=n.state.slackY;var s=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){o=!0,a=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(Object(f.e)(w(n),o.x,o.y),2),c=s[0],u=s[1];o.x=c,o.y=u,o.slackX=n.state.slackX+(a-o.x),o.slackY=n.state.slackY+(i-o.y),r.x=o.x,r.y=o.y,r.deltaX=o.x-n.state.x,r.deltaY=o.y-n.state.y}if(!1===n.props.onDrag(t,r))return!1;n.setState(o)})),D(w(n),"onDragStop",(function(t,e){if(!n.state.dragging)return!1;if(!1===n.props.onStop(t,Object(f.d)(w(n),e)))return!1;Object(y.a)("Draggable: onDragStop: %j",e);var r={dragging:!1,slackX:0,slackY:0};if(Boolean(n.props.position)){var o=n.props.position,a=o.x,i=o.y;r.x=a,r.y=i}n.setState(r)})),n.state={dragging:!1,dragged:!1,x:t.position?t.position.x:t.defaultPosition.x,y:t.position?t.position.y:t.defaultPosition.y,prevPropsPosition:v({},t.position),slackX:0,slackY:0,isElementSVG:!1},!t.position||t.onDrag||t.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&x(t,e)}(e,o.a.Component),S(e,null,[{key:"getDerivedStateFromProps",value:function(t,e){var n=t.position,r=e.prevPropsPosition;return!n||r&&n.x===r.x&&n.y===r.y?null:(Object(y.a)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:v({},n)})}}]),S(e,[{key:"componentDidMount",value:function(){void 0!==window.SVGElement&&c.a.findDOMNode(this)instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"render",value:function(){var t,e=this.props,n=(e.axis,e.bounds,e.children),r=e.defaultPosition,a=e.defaultClassName,i=e.defaultClassNameDragging,s=e.defaultClassNameDragged,c=e.position,u=e.positionOffset,d=(e.scale,function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},a=Object.keys(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(e,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"])),y={},g=null,m=!Boolean(c)||this.state.dragging,O=c||r,w={x:Object(f.a)(this)&&m?this.state.x:O.x,y:Object(f.b)(this)&&m?this.state.y:O.y};this.state.isElementSVG?g=Object(p.d)(w,u):y=Object(p.c)(w,u);var j=l()(n.props.className||"",a,(D(t={},i,this.state.dragging),D(t,s,this.state.dragged),t));return o.a.createElement(h.default,b({},d,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),o.a.cloneElement(o.a.Children.only(n),{className:j,style:v({},n.props.style,{},y),transform:g}))}}]),e}();D(P,"displayName","Draggable"),D(P,"propTypes",v({},h.default.propTypes,{axis:i.a.oneOf(["both","x","y","none"]),bounds:i.a.oneOfType([i.a.shape({left:i.a.number,right:i.a.number,top:i.a.number,bottom:i.a.number}),i.a.string,i.a.oneOf([!1])]),defaultClassName:i.a.string,defaultClassNameDragging:i.a.string,defaultClassNameDragged:i.a.string,defaultPosition:i.a.shape({x:i.a.number,y:i.a.number}),positionOffset:i.a.shape({x:i.a.oneOfType([i.a.number,i.a.string]),y:i.a.oneOfType([i.a.number,i.a.string])}),position:i.a.shape({x:i.a.number,y:i.a.number}),className:d.a,style:d.a,transform:d.a})),D(P,"defaultProps",v({},h.default.defaultProps,{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},position:null,scale:1}))},function(t,e,n){"use strict";var r=n(12);function o(){}function a(){}a.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,a,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}]))},function(t,e,n){"use strict";n.r(e);var r=n(2),o=n.n(r),a=n(0),i=n.n(a),s=n(3),c=n.n(s),u=n(6),l=n.n(u),p=n(1),f=n(5),d=n.n(f),h=n(7),y=n(10);function g(t){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?b(n,!0).forEach((function(e){S(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):b(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function O(t){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function w(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function j(t,e){return(j=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function S(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var x=function(t){function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=function(t,e){return!e||"object"!==g(e)&&"function"!=typeof e?w(t):e}(this,(t=O(e)).call.apply(t,[this].concat(o))),S(w(n),"state",{resizing:null,dragging:null,className:""}),S(w(n),"currentNode",void 0),S(w(n),"onDragStart",(function(t,e){var r=e.node;if(n.props.onDragStart){var o={top:0,left:0},a=r.offsetParent;if(a){var i=a.getBoundingClientRect(),s=r.getBoundingClientRect(),c=s.left/n.props.transformScale,u=i.left/n.props.transformScale,l=s.top/n.props.transformScale,p=i.top/n.props.transformScale;o.left=c-u+a.scrollLeft,o.top=l-p+a.scrollTop,n.setState({dragging:o});var f=n.calcXY(o.top,o.left),d=f.x,h=f.y;return n.props.onDragStart&&n.props.onDragStart.call(w(n),n.props.i,d,h,{e:t,node:r,newPosition:o})}}})),S(w(n),"onDrag",(function(t,e){var r=e.node,o=e.deltaX,a=e.deltaY;if(n.props.onDrag){var i={top:0,left:0};if(!n.state.dragging)throw new Error("onDrag called before onDragStart.");i.left=n.state.dragging.left+o,i.top=n.state.dragging.top+a,n.setState({dragging:i});var s=n.calcXY(i.top,i.left),c=s.x,u=s.y;return n.props.onDrag&&n.props.onDrag.call(w(n),n.props.i,c,u,{e:t,node:r,newPosition:i})}})),S(w(n),"onDragStop",(function(t,e){var r=e.node;if(n.props.onDragStop){var o={top:0,left:0};if(!n.state.dragging)throw new Error("onDragEnd called before onDragStart.");o.left=n.state.dragging.left,o.top=n.state.dragging.top,n.setState({dragging:null});var a=n.calcXY(o.top,o.left),i=a.x,s=a.y;return n.props.onDragStop&&n.props.onDragStop.call(w(n),n.props.i,i,s,{e:t,node:r,newPosition:o})}})),S(w(n),"onResizeStop",(function(t,e){n.onResizeHandler(t,e,"onResizeStop")})),S(w(n),"onResizeStart",(function(t,e){n.onResizeHandler(t,e,"onResizeStart")})),S(w(n),"onResize",(function(t,e){n.onResizeHandler(t,e,"onResize")})),n}var n,r,a;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&j(t,e)}(e,t),n=e,(r=[{key:"componentDidUpdate",value:function(t){this.props.droppingPosition&&t.droppingPosition&&this.moveDroppingItem(t)}},{key:"moveDroppingItem",value:function(t){var e=this.props.droppingPosition,n=this.state.dragging;if(e&&t.droppingPosition){this.currentNode||(this.currentNode=d.a.findDOMNode(this));var r=n&&e.x!==t.droppingPosition.x||e.y!==t.droppingPosition.y;if(n){if(r){var o=e.x-n.left,a=e.y-n.top;this.onDrag(e.e,{node:this.currentNode,deltaX:o,deltaY:a})}}else this.onDragStart(e.e,{node:this.currentNode,deltaX:e.x,deltaY:e.y})}}},{key:"calcColWidth",value:function(){var t=this.props,e=t.margin,n=t.containerPadding,r=t.containerWidth,o=t.cols;return(r-e[0]*(o-1)-2*n[0])/o}},{key:"calcPosition",value:function(t,e,n,r,o){var a=this.props,i=a.margin,s=a.containerPadding,c=a.rowHeight,u=this.calcColWidth(),l={};return o&&o.resizing?(l.width=Math.round(o.resizing.width),l.height=Math.round(o.resizing.height)):(l.width=n===1/0?n:Math.round(u*n+Math.max(0,n-1)*i[0]),l.height=r===1/0?r:Math.round(c*r+Math.max(0,r-1)*i[1])),o&&o.dragging?(l.top=Math.round(o.dragging.top),l.left=Math.round(o.dragging.left)):(l.top=Math.round((c+i[1])*e+s[1]),l.left=Math.round((u+i[0])*t+s[0])),l}},{key:"calcXY",value:function(t,e){var n=this.props,r=n.margin,o=n.cols,a=n.rowHeight,i=n.w,s=n.h,c=n.maxRows,u=this.calcColWidth(),l=Math.round((e-r[0])/(u+r[0])),p=Math.round((t-r[1])/(a+r[1]));return{x:l=Math.max(Math.min(l,o-i),0),y:p=Math.max(Math.min(p,c-s),0)}}},{key:"calcWH",value:function(t){var e=t.height,n=t.width,r=this.props,o=r.margin,a=r.maxRows,i=r.cols,s=r.rowHeight,c=r.x,u=r.y,l=this.calcColWidth(),p=Math.round((n+o[0])/(l+o[0])),f=Math.round((e+o[1])/(s+o[1]));return{w:p=Math.max(Math.min(p,i-c),0),h:f=Math.max(Math.min(f,a-u),0)}}},{key:"createStyle",value:function(t){var e,n=this.props,r=n.usePercentages,o=n.containerWidth;return n.useCSSTransforms?e=Object(p.setTransform)(t):(e=Object(p.setTopLeft)(t),r&&(e.left=Object(p.perc)(t.left/o),e.width=Object(p.perc)(t.width/o))),e}},{key:"mixinDraggable",value:function(t){return o.a.createElement(h.DraggableCore,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,handle:this.props.handle,cancel:".react-resizable-handle"+(this.props.cancel?","+this.props.cancel:""),scale:this.props.transformScale},t)}},{key:"mixinResizable",value:function(t,e){var n=this.props,r=n.cols,a=n.x,i=n.minW,s=n.minH,c=n.maxW,u=n.maxH,l=this.calcPosition(0,0,r-a,0).width,p=this.calcPosition(0,0,i,s),f=this.calcPosition(0,0,c,u),d=[p.width,p.height],h=[Math.min(f.width,l),Math.min(f.height,1/0)];return o.a.createElement(y.Resizable,{width:e.width,height:e.height,minConstraints:d,maxConstraints:h,onResizeStop:this.onResizeStop,onResizeStart:this.onResizeStart,onResize:this.onResize},t)}},{key:"onResizeHandler",value:function(t,e,n){var r=e.node,o=e.size,a=this.props[n];if(a){var i=this.props,s=i.cols,c=i.x,u=i.i,l=i.maxW,p=i.minW,f=i.maxH,d=i.minH,h=this.calcWH(o),y=h.w,g=h.h;y=Math.min(y,s-c),y=Math.max(y,1),y=Math.max(Math.min(y,l),p),g=Math.max(Math.min(g,f),d),this.setState({resizing:"onResizeStop"===n?null:o}),a.call(this,u,y,g,{e:t,node:r,size:o})}}},{key:"render",value:function(){var t=this.props,e=t.x,n=t.y,r=t.w,a=t.h,i=t.isDraggable,s=t.isResizable,c=t.droppingPosition,u=t.useCSSTransforms,p=this.calcPosition(e,n,r,a,this.state),f=o.a.Children.only(this.props.children),d=o.a.cloneElement(f,{className:l()("react-grid-item",f.props.className,this.props.className,{static:this.props.static,resizing:Boolean(this.state.resizing),"react-draggable":i,"react-draggable-dragging":Boolean(this.state.dragging),dropping:Boolean(c),cssTransforms:u}),style:m({},this.props.style,{},f.props.style,{},this.createStyle(p))});return s&&(d=this.mixinResizable(d,p)),i&&(d=this.mixinDraggable(d)),d}}])&&v(n.prototype,r),a&&v(n,a),e}(o.a.Component);function D(t){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function P(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?P(n,!0).forEach((function(e){T(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):P(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function R(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function k(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function z(t){return(z=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function C(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function E(t,e){return(E=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function T(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}S(x,"propTypes",{children:i.a.element,cols:i.a.number.isRequired,containerWidth:i.a.number.isRequired,rowHeight:i.a.number.isRequired,margin:i.a.array.isRequired,maxRows:i.a.number.isRequired,containerPadding:i.a.array.isRequired,x:i.a.number.isRequired,y:i.a.number.isRequired,w:i.a.number.isRequired,h:i.a.number.isRequired,minW:function(t,e){var n=t[e];return"number"!=typeof n?new Error("minWidth not Number"):n>t.w||n>t.maxW?new Error("minWidth larger than item width/maxWidth"):void 0},maxW:function(t,e){var n=t[e];return"number"!=typeof n?new Error("maxWidth not Number"):n<t.w||n<t.minW?new Error("maxWidth smaller than item width/minWidth"):void 0},minH:function(t,e){var n=t[e];return"number"!=typeof n?new Error("minHeight not Number"):n>t.h||n>t.maxH?new Error("minHeight larger than item height/maxHeight"):void 0},maxH:function(t,e){var n=t[e];return"number"!=typeof n?new Error("maxHeight not Number"):n<t.h||n<t.minH?new Error("maxHeight smaller than item height/minHeight"):void 0},i:i.a.string.isRequired,onDragStop:i.a.func,onDragStart:i.a.func,onDrag:i.a.func,onResizeStop:i.a.func,onResizeStart:i.a.func,onResize:i.a.func,isDraggable:i.a.bool.isRequired,isResizable:i.a.bool.isRequired,static:i.a.bool,useCSSTransforms:i.a.bool.isRequired,transformScale:i.a.number,className:i.a.string,handle:i.a.string,cancel:i.a.string,droppingPosition:i.a.shape({e:i.a.object.isRequired,x:i.a.number.isRequired,y:i.a.number.isRequired})}),S(x,"defaultProps",{className:"",cancel:"",handle:"",minH:1,minW:1,maxH:1/0,maxW:1/0,transformScale:1}),n.d(e,"default",(function(){return W}));var M=function(t){var e=t||{},n=e.verticalCompact,r=e.compactType;return!1===n?null:r},L="react-grid-layout",N=!1;try{N=navigator.userAgent.toLowerCase().includes("firefox")}catch(t){}var W=function(t){function e(t,n){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r=function(t,e){return!e||"object"!==D(e)&&"function"!=typeof e?C(t):e}(this,z(e).call(this,t,n)),T(C(r),"state",{activeDrag:null,layout:Object(p.synchronizeLayoutWithChildren)(r.props.layout,r.props.children,r.props.cols,M(r.props)),mounted:!1,oldDragItem:null,oldLayout:null,oldResizeItem:null,droppingDOMNode:null,children:[]}),T(C(r),"dragEnterCounter",0),T(C(r),"onDragOver",(function(t){if(N&&!t.nativeEvent.target.className.includes(L))return!1;var e=r.props.droppingItem,n=r.state.layout,a=t.nativeEvent,i=a.layerX,s=a.layerY,c={x:i,y:s,e:t};if(r.state.droppingDOMNode){if(r.state.droppingPosition){(r.state.droppingPosition.x!=i||r.state.droppingPosition.y!=s)&&r.setState({droppingPosition:c})}}else r.setState({droppingDOMNode:o.a.createElement("div",{key:e.i}),droppingPosition:c,layout:[].concat(R(n),[_({},e,{x:0,y:0,static:!1,isDraggable:!0})])});t.stopPropagation(),t.preventDefault()})),T(C(r),"removeDroppingPlaceholder",(function(){var t=r.props,e=t.droppingItem,n=t.cols,o=r.state.layout,a=Object(p.compact)(o.filter((function(t){return t.i!==e.i})),M(r.props),n);r.setState({layout:a,droppingDOMNode:null,activeDrag:null,droppingPosition:void 0})})),T(C(r),"onDragLeave",(function(){r.dragEnterCounter--,0===r.dragEnterCounter&&r.removeDroppingPlaceholder()})),T(C(r),"onDragEnter",(function(){r.dragEnterCounter++})),T(C(r),"onDrop",(function(){var t=r.props.droppingItem,e=r.state.layout.find((function(e){return e.i===t.i}))||{},n=e.x,o=e.y,a=e.w,i=e.h;r.dragEnterCounter=0,r.removeDroppingPlaceholder(),r.props.onDrop({x:n,y:o,w:a,h:i})})),Object(p.autoBindHandlers)(C(r),["onDragStart","onDrag","onDragStop","onResizeStart","onResize","onResizeStop"]),r}var n,r,a;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&E(t,e)}(e,t),n=e,a=[{key:"getDerivedStateFromProps",value:function(t,e){var n;return e.activeDrag?null:(c()(t.layout,e.propsLayout)&&t.compactType===e.compactType?Object(p.childrenEqual)(t.children,e.children)||(n=e.layout):n=t.layout,n?{layout:Object(p.synchronizeLayoutWithChildren)(n,t.children,t.cols,M(t)),compactType:t.compactType,children:t.children,propsLayout:t.layout}:null)}}],(r=[{key:"componentDidMount",value:function(){this.setState({mounted:!0}),this.onLayoutMaybeChanged(this.state.layout,this.props.layout)}},{key:"componentDidUpdate",value:function(t,e){if(!this.state.activeDrag){var n=this.state.layout,r=e.layout;this.onLayoutMaybeChanged(n,r)}}},{key:"containerHeight",value:function(){if(this.props.autoSize){var t=Object(p.bottom)(this.state.layout),e=this.props.containerPadding?this.props.containerPadding[1]:this.props.margin[1];return t*this.props.rowHeight+(t-1)*this.props.margin[1]+2*e+"px"}}},{key:"onDragStart",value:function(t,e,n,r){var o=r.e,a=r.node,i=this.state.layout,s=Object(p.getLayoutItem)(i,t);if(s)return this.setState({oldDragItem:Object(p.cloneLayoutItem)(s),oldLayout:this.state.layout}),this.props.onDragStart(i,s,s,null,o,a)}},{key:"onDrag",value:function(t,e,n,r){var o=r.e,a=r.node,i=this.state.oldDragItem,s=this.state.layout,c=this.props.cols,u=Object(p.getLayoutItem)(s,t);if(u){var l={w:u.w,h:u.h,x:u.x,y:u.y,placeholder:!0,i:t};s=Object(p.moveElement)(s,u,e,n,!0,this.props.preventCollision,M(this.props),c),this.props.onDrag(s,i,u,l,o,a),this.setState({layout:Object(p.compact)(s,M(this.props),c),activeDrag:l})}}},{key:"onDragStop",value:function(t,e,n,r){var o=r.e,a=r.node,i=this.state.oldDragItem,s=this.state.layout,c=this.props,u=c.cols,l=c.preventCollision,f=Object(p.getLayoutItem)(s,t);if(f){s=Object(p.moveElement)(s,f,e,n,!0,l,M(this.props),u),this.state.activeDrag&&this.props.onDragStop(s,i,f,null,o,a);var d=Object(p.compact)(s,M(this.props),u),h=this.state.oldLayout;this.setState({activeDrag:null,layout:d,oldDragItem:null,oldLayout:null}),this.onLayoutMaybeChanged(d,h)}}},{key:"onLayoutMaybeChanged",value:function(t,e){e||(e=this.state.layout),c()(e,t)||this.props.onLayoutChange(t)}},{key:"onResizeStart",value:function(t,e,n,r){var o=r.e,a=r.node,i=this.state.layout,s=Object(p.getLayoutItem)(i,t);s&&(this.setState({oldResizeItem:Object(p.cloneLayoutItem)(s),oldLayout:this.state.layout}),this.props.onResizeStart(i,s,s,null,o,a))}},{key:"onResize",value:function(t,e,n,r){var o=r.e,a=r.node,i=this.state,s=i.layout,c=i.oldResizeItem,u=this.props,l=u.cols,f=u.preventCollision,d=Object(p.getLayoutItem)(s,t);if(d){var h;if(f){var y=Object(p.getAllCollisions)(s,_({},d,{w:e,h:n})).filter((function(t){return t.i!==d.i}));if(h=y.length>0){var g=1/0,b=1/0;y.forEach((function(t){t.x>d.x&&(g=Math.min(g,t.x)),t.y>d.y&&(b=Math.min(b,t.y))})),Number.isFinite(g)&&(d.w=g-d.x),Number.isFinite(b)&&(d.h=b-d.y)}}h||(d.w=e,d.h=n);var m={w:d.w,h:d.h,x:d.x,y:d.y,static:!0,i:t};this.props.onResize(s,c,d,m,o,a),this.setState({layout:Object(p.compact)(s,M(this.props),l),activeDrag:m})}}},{key:"onResizeStop",value:function(t,e,n,r){var o=r.e,a=r.node,i=this.state,s=i.layout,c=i.oldResizeItem,u=this.props.cols,l=Object(p.getLayoutItem)(s,t);this.props.onResizeStop(s,c,l,null,o,a);var f=Object(p.compact)(s,M(this.props),u),d=this.state.oldLayout;this.setState({activeDrag:null,layout:f,oldResizeItem:null,oldLayout:null}),this.onLayoutMaybeChanged(f,d)}},{key:"placeholder",value:function(){var t=this.state.activeDrag;if(!t)return null;var e=this.props,n=e.width,r=e.cols,a=e.margin,i=e.containerPadding,s=e.rowHeight,c=e.maxRows,u=e.useCSSTransforms,l=e.transformScale;return o.a.createElement(x,{w:t.w,h:t.h,x:t.x,y:t.y,i:t.i,className:"react-grid-placeholder",containerWidth:n,cols:r,margin:a,containerPadding:i||a,maxRows:c,rowHeight:s,isDraggable:!1,isResizable:!1,useCSSTransforms:u,transformScale:l},o.a.createElement("div",null))}},{key:"processGridItem",value:function(t,e){if(t&&t.key){var n=Object(p.getLayoutItem)(this.state.layout,String(t.key));if(!n)return null;var r=this.props,a=r.width,i=r.cols,s=r.margin,c=r.containerPadding,u=r.rowHeight,l=r.maxRows,f=r.isDraggable,d=r.isResizable,h=r.useCSSTransforms,y=r.transformScale,g=r.draggableCancel,b=r.draggableHandle,m=this.state,v=m.mounted,O=m.droppingPosition,w=Boolean(!n.static&&f&&(n.isDraggable||null==n.isDraggable)),j=Boolean(!n.static&&d&&(n.isResizable||null==n.isResizable));return o.a.createElement(x,{containerWidth:a,cols:i,margin:s,containerPadding:c||s,maxRows:l,rowHeight:u,cancel:g,handle:b,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:w,isResizable:j,useCSSTransforms:h&&v,usePercentages:!v,transformScale:y,w:n.w,h:n.h,x:n.x,y:n.y,i:n.i,minH:n.minH,minW:n.minW,maxH:n.maxH,maxW:n.maxW,static:n.static,droppingPosition:e?O:void 0},t)}}},{key:"render",value:function(){var t=this,e=this.props,n=e.className,r=e.style,a=e.isDroppable,i=l()(L,n),s=_({height:this.containerHeight()},r);return o.a.createElement("div",{className:i,style:s,onDrop:a?this.onDrop:p.noop,onDragLeave:a?this.onDragLeave:p.noop,onDragEnter:a?this.onDragEnter:p.noop,onDragOver:a?this.onDragOver:p.noop},o.a.Children.map(this.props.children,(function(e){return t.processGridItem(e)})),a&&this.state.droppingDOMNode&&this.processGridItem(this.state.droppingDOMNode,!0),this.placeholder())}}])&&k(n.prototype,r),a&&k(n,a),e}(o.a.Component);T(W,"displayName","ReactGridLayout"),T(W,"propTypes",{className:i.a.string,style:i.a.object,width:i.a.number,autoSize:i.a.bool,cols:i.a.number,draggableCancel:i.a.string,draggableHandle:i.a.string,verticalCompact:function(t){t.verticalCompact,0},compactType:i.a.oneOf(["vertical","horizontal"]),layout:function(t){var e=t.layout;void 0!==e&&Object(p.validateLayout)(e,"layout")},margin:i.a.arrayOf(i.a.number),containerPadding:i.a.arrayOf(i.a.number),rowHeight:i.a.number,maxRows:i.a.number,isDraggable:i.a.bool,isResizable:i.a.bool,preventCollision:i.a.bool,useCSSTransforms:i.a.bool,transformScale:i.a.number,isDroppable:i.a.bool,onLayoutChange:i.a.func,onDragStart:i.a.func,onDrag:i.a.func,onDragStop:i.a.func,onResizeStart:i.a.func,onResize:i.a.func,onResizeStop:i.a.func,onDrop:i.a.func,droppingItem:i.a.shape({i:i.a.string.isRequired,w:i.a.number.isRequired,h:i.a.number.isRequired}),children:function(t,e){var n=t[e],r={};o.a.Children.forEach(n,(function(t){if(r[t.key])throw new Error('Duplicate child key "'+t.key+'" found! This will cause problems in ReactGridLayout.');r[t.key]=!0}))}}),T(W,"defaultProps",{autoSize:!0,cols:12,className:"",style:{},draggableHandle:"",draggableCancel:"",containerPadding:null,rowHeight:150,maxRows:1/0,layout:[],margin:[10,10],isDraggable:!0,isResizable:!0,isDroppable:!1,useCSSTransforms:!0,transformScale:1,verticalCompact:!0,compactType:"vertical",preventCollision:!1,droppingItem:{i:"__dropping-elem__",h:1,w:1},onLayoutChange:p.noop,onDragStart:p.noop,onDrag:p.noop,onDragStop:p.noop,onResizeStart:p.noop,onResize:p.noop,onResizeStop:p.noop,onDrop:p.noop})},function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r=s(n(2)),o=s(n(0)),a=n(7),i=n(16);function s(t){return t&&t.__esModule?t:{default:t}}function c(){return(c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var p=function(t){var e,n;function o(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return l(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e=t.call.apply(t,[this].concat(r))||this),"state",{slackW:0,slackH:0}),e}n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var s=o.prototype;return s.lockAspectRatio=function(t,e,n){return[t=(e=t/n)*n,e]},s.runConstraints=function(t,e){var n=[this.props.minConstraints,this.props.maxConstraints],r=n[0],o=n[1];if(!r&&!o)return[t,e];if(this.props.lockAspectRatio)if(e===this.props.height){var a=this.props.width/this.props.height;t=(e=t/a)*a}else{var i=this.props.height/this.props.width;e=(t=e/i)*i}var s=t,c=e,u=this.state,l=u.slackW,p=u.slackH;return t+=l,e+=p,r&&(t=Math.max(r[0],t),e=Math.max(r[1],e)),o&&(t=Math.min(o[0],t),e=Math.min(o[1],e)),p+=c-e,(l+=s-t)===this.state.slackW&&p===this.state.slackH||this.setState({slackW:l,slackH:p}),[t,e]},s.resizeHandler=function(t,e){var n=this;return function(r,o){var a=o.node,i=o.deltaX,s=o.deltaY,c=("both"===n.props.axis||"x"===n.props.axis)&&-1===["n","s"].indexOf(e),u=("both"===n.props.axis||"y"===n.props.axis)&&-1===["e","w"].indexOf(e);c&&"w"===e[e.length-1]&&(i=-i),u&&"n"===e[0]&&(s=-s);var l=n.props.width+(c?i:0),p=n.props.height+(u?s:0),f=l!==n.props.width,d=p!==n.props.height;if("onResize"!==t||f||d){var h=n.runConstraints(l,p);l=h[0],p=h[1];var y={};if("onResizeStart"===t);else if("onResizeStop"===t)y.slackW=y.slackH=0;else if(l===n.props.width&&p===n.props.height)return;"function"==typeof n.props[t]?("function"==typeof r.persist&&r.persist(),n.setState(y,(function(){return n.props[t](r,{node:a,size:{width:l,height:p},handle:e})}))):n.setState(y)}}},s.renderResizeHandle=function(t){var e=this.props.handle;return e?"function"==typeof e?e(t):e:r.default.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+t})},s.render=function(){var t=this,e=this.props,n=e.children,o=e.draggableOpts,s=(e.width,e.height,e.handleSize,e.lockAspectRatio,e.axis,e.minConstraints,e.maxConstraints,e.onResize,e.onResizeStop,e.onResizeStart,e.resizeHandles),p=function(t,e){if(null==t)return{};var n,r,o={},a=Object.keys(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(e,["children","draggableOpts","width","height","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles"]),f=p.className?p.className+" react-resizable":"react-resizable";return(0,i.cloneElement)(n,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(n,!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},p,{className:f,children:[n.props.children,s.map((function(e){return r.default.createElement(a.DraggableCore,c({},o,{key:"resizableHandle-"+e,onStop:t.resizeHandler("onResizeStop",e),onStart:t.resizeHandler("onResizeStart",e),onDrag:t.resizeHandler("onResize",e)}),t.renderResizeHandle(e))}))]}))},o}(r.default.Component);e.default=p,l(p,"propTypes",{children:o.default.element.isRequired,width:o.default.number.isRequired,height:o.default.number.isRequired,handle:o.default.element,handleSize:o.default.array,resizeHandles:o.default.arrayOf(o.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),lockAspectRatio:o.default.bool,axis:o.default.oneOf(["both","x","y","none"]),minConstraints:o.default.arrayOf(o.default.number),maxConstraints:o.default.arrayOf(o.default.number),onResizeStop:o.default.func,onResizeStart:o.default.func,onResize:o.default.func,draggableOpts:o.default.object}),l(p,"defaultProps",{handleSize:[20,20],lockAspectRatio:!1,axis:"both",minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"]})},function(t,e,n){"use strict";t.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},t.exports.Resizable=n(9).default,t.exports.ResizableBox=n(17).default},function(t,e,n){t.exports=n(8).default,t.exports.utils=n(1),t.exports.Responsive=n(18).default,t.exports.Responsive.utils=n(4),t.exports.WidthProvider=n(19).default},function(t,e,n){"use strict";var r=n(13);function o(){}function a(){}a.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,a,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";e.__esModule=!0,e.cloneElement=function(t,e){e.style&&t.props.style&&(e.style=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(n,!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t.props.style,{},e.style));e.className&&t.props.className&&(e.className=t.props.className+" "+e.className);return o.default.cloneElement(t,e)};var r,o=(r=n(2))&&r.__esModule?r:{default:r};function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r=i(n(2)),o=i(n(0)),a=i(n(9));function i(t){return t&&t.__esModule?t:{default:t}}function s(){return(s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var l=function(t){var e,n;function o(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return u(c(e=t.call.apply(t,[this].concat(r))||this),"state",{width:e.props.width,height:e.props.height,propsWidth:e.props.width,propsHeight:e.props.height}),u(c(e),"onResize",(function(t,n){var r=n.size;r.width,r.height;e.props.onResize?(t.persist&&t.persist(),e.setState(r,(function(){return e.props.onResize&&e.props.onResize(t,n)}))):e.setState(r)})),e}return n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,o.getDerivedStateFromProps=function(t,e){if(e.propsWidth!==t.width||e.propsHeight!==t.height)return{width:t.width,height:t.height,propsWidth:t.width,propsHeight:t.height}},o.prototype.render=function(){var t=this.props,e=t.handle,n=t.handleSize,o=(t.onResize,t.onResizeStart),i=t.onResizeStop,c=t.draggableOpts,u=t.minConstraints,l=t.maxConstraints,p=t.lockAspectRatio,f=t.axis,d=(t.width,t.height,t.resizeHandles),h=function(t,e){if(null==t)return{};var n,r,o={},a=Object.keys(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles"]);return r.default.createElement(a.default,{handle:e,handleSize:n,width:this.state.width,height:this.state.height,onResizeStart:o,onResize:this.onResize,onResizeStop:i,draggableOpts:c,minConstraints:u,maxConstraints:l,lockAspectRatio:p,axis:f,resizeHandles:d},r.default.createElement("div",s({style:{width:this.state.width+"px",height:this.state.height+"px"}},h)))},o}(r.default.Component);e.default=l,u(l,"propTypes",{height:o.default.number,width:o.default.number}),u(l,"defaultProps",{handleSize:[20,20]})},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return S}));var r=n(2),o=n.n(r),a=n(0),i=n.n(a),s=n(3),c=n.n(s),u=n(1),l=n(4),p=n(8);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(){return(d=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function h(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},a=Object.keys(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t,e){return(v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function O(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var w=function(t){return Object.prototype.toString.call(t)};function j(t,e){return Array.isArray(t)?t:t[e]}var S=function(t){function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=function(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?m(t):e}(this,(t=b(e)).call.apply(t,[this].concat(o))),O(m(n),"state",n.generateInitialState()),O(m(n),"onLayoutChange",(function(t){n.props.onLayoutChange(t,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?y(n,!0).forEach((function(e){O(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},n.props.layouts,O({},n.state.breakpoint,t)))})),n}var n,r,a;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&v(t,e)}(e,t),n=e,a=[{key:"getDerivedStateFromProps",value:function(t,e){if(!c()(t.layouts,e.layouts)){var n=e.breakpoint,r=e.cols;return{layout:Object(l.findOrGenerateResponsiveLayout)(t.layouts,t.breakpoints,n,n,r,t.compactType),layouts:t.layouts}}return null}}],(r=[{key:"generateInitialState",value:function(){var t=this.props,e=t.width,n=t.breakpoints,r=t.layouts,o=t.cols,a=Object(l.getBreakpointFromWidth)(n,e),i=Object(l.getColsFromBreakpoint)(a,o),s=!1===this.props.verticalCompact?null:this.props.compactType;return{layout:Object(l.findOrGenerateResponsiveLayout)(r,n,a,a,i,s),breakpoint:a,cols:i}}},{key:"componentDidUpdate",value:function(t){this.props.width==t.width&&this.props.breakpoint===t.breakpoint&&c()(this.props.breakpoints,t.breakpoints)&&c()(this.props.cols,t.cols)||this.onWidthChange(this.props)}},{key:"onWidthChange",value:function(t){var e=t.breakpoints,n=t.cols,r=t.layouts,o=t.compactType,a=t.breakpoint||Object(l.getBreakpointFromWidth)(t.breakpoints,t.width),i=this.state.breakpoint,s=Object(l.getColsFromBreakpoint)(a,n);if(i!==a||this.props.breakpoints!==e||this.props.cols!==n){i in r||(r[i]=Object(u.cloneLayout)(this.state.layout));var c=Object(l.findOrGenerateResponsiveLayout)(r,e,a,i,s,o);c=Object(u.synchronizeLayoutWithChildren)(c,t.children,s,o),r[a]=c,this.props.onLayoutChange(c,r),this.props.onBreakpointChange(a,s),this.setState({breakpoint:a,layout:c,cols:s})}var p=j(t.margin,a),f=j(t.containerPadding,a);this.props.onWidthChange(t.width,p,s,f)}},{key:"render",value:function(){var t=this.props,e=(t.breakpoint,t.breakpoints,t.cols,t.layouts,t.margin),n=t.containerPadding,r=(t.onBreakpointChange,t.onLayoutChange,t.onWidthChange,h(t,["breakpoint","breakpoints","cols","layouts","margin","containerPadding","onBreakpointChange","onLayoutChange","onWidthChange"]));return o.a.createElement(p.default,d({},r,{margin:j(e,this.state.breakpoint),containerPadding:j(n,this.state.breakpoint),onLayoutChange:this.onLayoutChange,layout:this.state.layout,cols:this.state.cols}))}}])&&g(n.prototype,r),a&&g(n,a),e}(o.a.Component);O(S,"propTypes",{breakpoint:i.a.string,breakpoints:i.a.object,cols:i.a.object,margin:i.a.oneOfType([i.a.array,i.a.object]),containerPadding:i.a.oneOfType([i.a.array,i.a.object]),layouts:function(t,e){if("[object Object]"!==w(t[e]))throw new Error("Layout property must be an object. Received: "+w(t[e]));Object.keys(t[e]).forEach((function(e){if(!(e in t.breakpoints))throw new Error("Each key in layouts must align with a key in breakpoints.");Object(u.validateLayout)(t.layouts[e],"layouts."+e)}))},width:i.a.number.isRequired,onBreakpointChange:i.a.func,onLayoutChange:i.a.func,onWidthChange:i.a.func}),O(S,"defaultProps",{breakpoints:{lg:1200,md:996,sm:768,xs:480,xxs:0},cols:{lg:12,md:10,sm:6,xs:4,xxs:2},layouts:{},margin:[10,10],containerPadding:{lg:null,md:null,sm:null,xs:null,xxs:null},onBreakpointChange:u.noop,onLayoutChange:u.noop,onWidthChange:u.noop})},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return b}));var r=n(2),o=n.n(r),a=n(0),i=n.n(a),s=n(5),c=n.n(s);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(){return(l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function p(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},a=Object.keys(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b(t){var e,n;return n=e=function(e){function n(){var t,e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=function(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?h(t):e}(this,(t=d(n)).call.apply(t,[this].concat(o))),g(h(e),"state",{width:1280}),g(h(e),"mounted",!1),g(h(e),"onWindowResize",(function(){if(e.mounted){var t=c.a.findDOMNode(h(e));t instanceof HTMLElement&&e.setState({width:t.offsetWidth})}})),e}var r,a,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}(n,e),r=n,(a=[{key:"componentDidMount",value:function(){this.mounted=!0,window.addEventListener("resize",this.onWindowResize),this.onWindowResize()}},{key:"componentWillUnmount",value:function(){this.mounted=!1,window.removeEventListener("resize",this.onWindowResize)}},{key:"render",value:function(){var e=this.props,n=e.measureBeforeMount,r=p(e,["measureBeforeMount"]);return n&&!this.mounted?o.a.createElement("div",{className:this.props.className,style:this.props.style}):o.a.createElement(t,l({},r,this.state))}}])&&f(r.prototype,a),i&&f(r,i),n}(o.a.Component),g(e,"defaultProps",{measureBeforeMount:!1}),g(e,"propTypes",{measureBeforeMount:i.a.bool}),n}}])}));
//# sourceMappingURL=react-grid-layout.min.js.map