text: !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 r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=17)}([function(t,e,r){t.exports=r(21)()},function(t,e,r){"use strict";r.r(e),r.d(e,"bottom",(function(){return l})),r.d(e,"cloneLayout",(function(){return p})),r.d(e,"cloneLayoutItem",(function(){return f})),r.d(e,"childrenEqual",(function(){return h})),r.d(e,"fastRGLPropsEqual",(function(){return d})),r.d(e,"fastPositionEqual",(function(){return g})),r.d(e,"collides",(function(){return y})),r.d(e,"compact",(function(){return b})),r.d(e,"compactItem",(function(){return w})),r.d(e,"correctBounds",(function(){return S})),r.d(e,"getLayoutItem",(function(){return O})),r.d(e,"getFirstCollision",(function(){return z})),r.d(e,"getAllCollisions",(function(){return x})),r.d(e,"getStatics",(function(){return j})),r.d(e,"moveElement",(function(){return R})),r.d(e,"moveElementAwayFromCollision",(function(){return D})),r.d(e,"perc",(function(){return P})),r.d(e,"setTransform",(function(){return _})),r.d(e,"setTopLeft",(function(){return E})),r.d(e,"sortLayoutItems",(function(){return C})),r.d(e,"sortLayoutItemsByRowCol",(function(){return k})),r.d(e,"sortLayoutItemsByColRow",(function(){return M})),r.d(e,"synchronizeLayoutWithChildren",(function(){return H})),r.d(e,"validateLayout",(function(){return W})),r.d(e,"compactType",(function(){return N})),r.d(e,"autoBindHandlers",(function(){return T})),r.d(e,"noop",(function(){return A}));var n=r(3),o=r.n(n),i=r(2),a=r.n(i);function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){c(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function c(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function l(t){for(var e,r=0,n=0,o=t.length;n<o;n++)(e=t[n].y+t[n].h)>r&&(r=e);return r}function p(t){for(var e=Array(t.length),r=0,n=t.length;r<n;r++)e[r]=f(t[r]);return e}function f(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,resizeHandles:t.resizeHandles,isBounded:t.isBounded}}function h(t,e){return o()(a.a.Children.map(t,(function(t){return t.key})),a.a.Children.map(e,(function(t){return t.key})))}var d=r(20);function g(t,e){return t.left===e.left&&t.top===e.top&&t.width===e.width&&t.height===e.height}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 b(t,e,r){for(var n=j(t),o=C(t,e),i=Array(t.length),a=0,s=o.length;a<s;a++){var u=f(o[a]);u.static||(u=w(n,u,e,r,o),n.push(u)),i[t.indexOf(o[a])]=u,u.moved=!1}return i}var m={x:"w",y:"h"};function v(t,e,r,n){var o=m[n];e[n]+=1;for(var i=t.map((function(t){return t.i})).indexOf(e.i)+1;i<t.length;i++){var a=t[i];if(!a.static){if(a.y>e.y+e.h)break;y(e,a)&&v(t,a,r+e[o],n)}}e[n]=r}function w(t,e,r,n,o){var i,a="horizontal"===r;if("vertical"===r)for(e.y=Math.min(l(t),e.y);e.y>0&&!z(t,e);)e.y--;else if(a)for(e.y=Math.min(l(t),e.y);e.x>0&&!z(t,e);)e.x--;for(;i=z(t,e);)a?v(o,e,i.x+i.w,"x"):v(o,e,i.y+i.h,"y"),a&&e.x+e.w>n&&(e.x=n-e.w,e.y++);return e}function S(t,e){for(var r=j(t),n=0,o=t.length;n<o;n++){var i=t[n];if(i.x+i.w>e.cols&&(i.x=e.cols-i.w),i.x<0&&(i.x=0,i.w=e.cols),i.static)for(;z(r,i);)i.y++;else r.push(i)}return t}function O(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r].i===e)return t[r]}function z(t,e){for(var r=0,n=t.length;r<n;r++)if(y(t[r],e))return t[r]}function x(t,e){return t.filter((function(t){return y(t,e)}))}function j(t){return t.filter((function(t){return t.static}))}function R(t,e,r,n,o,i,a,s){if(e.static&&!0!==e.isDraggable)return t;if(e.y===n&&e.x===r)return t;L("Moving element ".concat(e.i," to [").concat(String(r),",").concat(String(n),"] from [").concat(e.x,",").concat(e.y,"]"));var u=e.x,c=e.y;"number"==typeof r&&(e.x=r),"number"==typeof n&&(e.y=n),e.moved=!0;var l=C(t,a);("vertical"===a&&"number"==typeof n?c>=n:"horizontal"===a&&"number"==typeof r&&u>=r)&&(l=l.reverse());var p=x(l,e);if(i&&p.length)return L("Collision prevented on ".concat(e.i,", reverting.")),e.x=u,e.y=c,e.moved=!1,t;for(var f=0,h=p.length;f<h;f++){var d=p[f];L("Resolving collision between ".concat(e.i," at [").concat(e.x,",").concat(e.y,"] and ").concat(d.i," at [").concat(d.x,",").concat(d.y,"]")),d.moved||(t=d.static?D(t,d,e,o,a,s):D(t,e,d,o,a,s))}return t}function D(t,e,r,n,o,i){var a="horizontal"===o,s="horizontal"!==o,u=e.static;if(n){n=!1;var c={x:a?Math.max(e.x-r.w,0):r.x,y:s?Math.max(e.y-r.h,0):r.y,w:r.w,h:r.h,i:"-1"};if(!z(t,c))return L("Doing reverse collision on ".concat(r.i," up to [").concat(c.x,",").concat(c.y,"].")),R(t,r,a?c.x:void 0,s?c.y:void 0,n,u,o,i)}return R(t,r,a?r.x+1:void 0,s?r.y+1:void 0,n,u,o,i)}function P(t){return 100*t+"%"}function _(t){var e=t.top,r=t.left,n=t.width,o=t.height,i="translate(".concat(r,"px,").concat(e,"px)");return{transform:i,WebkitTransform:i,MozTransform:i,msTransform:i,OTransform:i,width:"".concat(n,"px"),height:"".concat(o,"px"),position:"absolute"}}function E(t){var e=t.top,r=t.left,n=t.width,o=t.height;return{top:"".concat(e,"px"),left:"".concat(r,"px"),width:"".concat(n,"px"),height:"".concat(o,"px"),position:"absolute"}}function C(t,e){return"horizontal"===e?M(t):k(t)}function k(t){return t.slice(0).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 M(t){return t.slice(0).sort((function(t,e){return t.x>e.x||t.x===e.x&&t.y>e.y?1:-1}))}function H(t,e,r,n){t=t||[];var o=[];return a.a.Children.forEach(e,(function(e,r){var n=O(t,String(e.key));if(n)o[r]=f(n);else{0;var i=e.props["data-grid"]||e.props._grid;o[r]=f(i?u(u({},i),{},{i:e.key}):{w:1,h:1,x:0,y:l(o),i:String(e.key)})}})),b(S(o,{cols:r}),n,r)}function W(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Layout",r=["x","y","w","h"];if(!Array.isArray(t))throw new Error(e+" must be an array!");for(var n=0,o=t.length;n<o;n++){for(var i=t[n],a=0;a<r.length;a++)if("number"!=typeof i[r[a]])throw new Error("ReactGridLayout: "+e+"["+n+"]."+r[a]+" must be a number!");if(i.i&&"string"!=typeof i.i)throw new Error("ReactGridLayout: "+e+"["+n+"].i must be a string!");if(void 0!==i.static&&"boolean"!=typeof i.static)throw new Error("ReactGridLayout: "+e+"["+n+"].static must be a boolean!")}}function N(t){var e=t||{},r=e.verticalCompact,n=e.compactType;return!1===r?null:n}function T(t,e){e.forEach((function(e){return t[e]=t[e].bind(t)}))}function L(){}var A=function(){}},function(e,r){e.exports=t},function(t,e,r){(function(t,r){var n="[object Arguments]",o="[object Map]",i="[object Object]",a="[object Set]",s=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[n]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c["[object Function]"]=c[o]=c["[object Number]"]=c[i]=c["[object RegExp]"]=c[a]=c["[object String]"]=c["[object WeakMap]"]=!1;var l="object"==typeof t&&t&&t.Object===Object&&t,p="object"==typeof self&&self&&self.Object===Object&&self,f=l||p||Function("return this")(),h=e&&!e.nodeType&&e,d=h&&"object"==typeof r&&r&&!r.nodeType&&r,g=d&&d.exports===h,y=g&&l.process,b=function(){try{return y&&y.binding&&y.binding("util")}catch(t){}}(),m=b&&b.isTypedArray;function v(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}function w(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function S(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var O,z,x,j=Array.prototype,R=Function.prototype,D=Object.prototype,P=f["__core-js_shared__"],_=R.toString,E=D.hasOwnProperty,C=(O=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||""))?"Symbol(src)_1."+O:"",k=D.toString,M=RegExp("^"+_.call(E).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),H=g?f.Buffer:void 0,W=f.Symbol,N=f.Uint8Array,T=D.propertyIsEnumerable,L=j.splice,A=W?W.toStringTag:void 0,B=Object.getOwnPropertySymbols,I=H?H.isBuffer:void 0,F=(z=Object.keys,x=Object,function(t){return z(x(t))}),U=bt(f,"DataView"),X=bt(f,"Map"),Y=bt(f,"Promise"),q=bt(f,"Set"),G=bt(f,"WeakMap"),V=bt(Object,"create"),$=St(U),K=St(X),J=St(Y),Q=St(q),Z=St(G),tt=W?W.prototype:void 0,et=tt?tt.valueOf:void 0;function rt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function nt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function ot(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function it(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new ot;++e<r;)this.add(t[e])}function at(t){var e=this.__data__=new nt(t);this.size=e.size}function st(t,e){var r=xt(t),n=!r&&zt(t),o=!r&&!n&&jt(t),i=!r&&!n&&!o&&Et(t),a=r||n||o||i,s=a?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],u=s.length;for(var c in t)!e&&!E.call(t,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||wt(c,u))||s.push(c);return s}function ut(t,e){for(var r=t.length;r--;)if(Ot(t[r][0],e))return r;return-1}function ct(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":A&&A in Object(t)?function(t){var e=E.call(t,A),r=t[A];try{t[A]=void 0;var n=!0}catch(t){}var o=k.call(t);n&&(e?t[A]=r:delete t[A]);return o}(t):function(t){return k.call(t)}(t)}function lt(t){return _t(t)&&ct(t)==n}function pt(t,e,r,s,u){return t===e||(null==t||null==e||!_t(t)&&!_t(e)?t!=t&&e!=e:function(t,e,r,s,u,c){var l=xt(t),p=xt(e),f=l?"[object Array]":vt(t),h=p?"[object Array]":vt(e),d=(f=f==n?i:f)==i,g=(h=h==n?i:h)==i,y=f==h;if(y&&jt(t)){if(!jt(e))return!1;l=!0,d=!1}if(y&&!d)return c||(c=new at),l||Et(t)?dt(t,e,r,s,u,c):function(t,e,r,n,i,s,u){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!s(new N(t),new N(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Ot(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case o:var c=w;case a:var l=1&n;if(c||(c=S),t.size!=e.size&&!l)return!1;var p=u.get(t);if(p)return p==e;n|=2,u.set(t,e);var f=dt(c(t),c(e),n,i,s,u);return u.delete(t),f;case"[object Symbol]":if(et)return et.call(t)==et.call(e)}return!1}(t,e,f,r,s,u,c);if(!(1&r)){var b=d&&E.call(t,"__wrapped__"),m=g&&E.call(e,"__wrapped__");if(b||m){var v=b?t.value():t,O=m?e.value():e;return c||(c=new at),u(v,O,r,s,c)}}if(!y)return!1;return c||(c=new at),function(t,e,r,n,o,i){var a=1&r,s=gt(t),u=s.length,c=gt(e).length;if(u!=c&&!a)return!1;var l=u;for(;l--;){var p=s[l];if(!(a?p in e:E.call(e,p)))return!1}var f=i.get(t);if(f&&i.get(e))return f==e;var h=!0;i.set(t,e),i.set(e,t);var d=a;for(;++l<u;){p=s[l];var g=t[p],y=e[p];if(n)var b=a?n(y,g,p,e,t,i):n(g,y,p,t,e,i);if(!(void 0===b?g===y||o(g,y,r,n,i):b)){h=!1;break}d||(d="constructor"==p)}if(h&&!d){var m=t.constructor,v=e.constructor;m==v||!("constructor"in t)||!("constructor"in e)||"function"==typeof m&&m instanceof m&&"function"==typeof v&&v instanceof v||(h=!1)}return i.delete(t),i.delete(e),h}(t,e,r,s,u,c)}(t,e,r,s,pt,u))}function ft(t){return!(!Pt(t)||function(t){return!!C&&C in t}(t))&&(Rt(t)?M:s).test(St(t))}function ht(t){if(r=(e=t)&&e.constructor,n="function"==typeof r&&r.prototype||D,e!==n)return F(t);var e,r,n,o=[];for(var i in Object(t))E.call(t,i)&&"constructor"!=i&&o.push(i);return o}function dt(t,e,r,n,o,i){var a=1&r,s=t.length,u=e.length;if(s!=u&&!(a&&u>s))return!1;var c=i.get(t);if(c&&i.get(e))return c==e;var l=-1,p=!0,f=2&r?new it:void 0;for(i.set(t,e),i.set(e,t);++l<s;){var h=t[l],d=e[l];if(n)var g=a?n(d,h,l,e,t,i):n(h,d,l,t,e,i);if(void 0!==g){if(g)continue;p=!1;break}if(f){if(!v(e,(function(t,e){if(a=e,!f.has(a)&&(h===t||o(h,t,r,n,i)))return f.push(e);var a}))){p=!1;break}}else if(h!==d&&!o(h,d,r,n,i)){p=!1;break}}return i.delete(t),i.delete(e),p}function gt(t){return function(t,e,r){var n=e(t);return xt(t)?n:function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}(n,r(t))}(t,Ct,mt)}function yt(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function bt(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return ft(r)?r:void 0}rt.prototype.clear=function(){this.__data__=V?V(null):{},this.size=0},rt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},rt.prototype.get=function(t){var e=this.__data__;if(V){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return E.call(e,t)?e[t]:void 0},rt.prototype.has=function(t){var e=this.__data__;return V?void 0!==e[t]:E.call(e,t)},rt.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=V&&void 0===e?"__lodash_hash_undefined__":e,this},nt.prototype.clear=function(){this.__data__=[],this.size=0},nt.prototype.delete=function(t){var e=this.__data__,r=ut(e,t);return!(r<0)&&(r==e.length-1?e.pop():L.call(e,r,1),--this.size,!0)},nt.prototype.get=function(t){var e=this.__data__,r=ut(e,t);return r<0?void 0:e[r][1]},nt.prototype.has=function(t){return ut(this.__data__,t)>-1},nt.prototype.set=function(t,e){var r=this.__data__,n=ut(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},ot.prototype.clear=function(){this.size=0,this.__data__={hash:new rt,map:new(X||nt),string:new rt}},ot.prototype.delete=function(t){var e=yt(this,t).delete(t);return this.size-=e?1:0,e},ot.prototype.get=function(t){return yt(this,t).get(t)},ot.prototype.has=function(t){return yt(this,t).has(t)},ot.prototype.set=function(t,e){var r=yt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},it.prototype.add=it.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},it.prototype.has=function(t){return this.__data__.has(t)},at.prototype.clear=function(){this.__data__=new nt,this.size=0},at.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},at.prototype.get=function(t){return this.__data__.get(t)},at.prototype.has=function(t){return this.__data__.has(t)},at.prototype.set=function(t,e){var r=this.__data__;if(r instanceof nt){var n=r.__data__;if(!X||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new ot(n)}return r.set(t,e),this.size=r.size,this};var mt=B?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i}(B(t),(function(e){return T.call(t,e)})))}:function(){return[]},vt=ct;function wt(t,e){return!!(e=null==e?9007199254740991:e)&&("number"==typeof t||u.test(t))&&t>-1&&t%1==0&&t<e}function St(t){if(null!=t){try{return _.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Ot(t,e){return t===e||t!=t&&e!=e}(U&&"[object DataView]"!=vt(new U(new ArrayBuffer(1)))||X&&vt(new X)!=o||Y&&"[object Promise]"!=vt(Y.resolve())||q&&vt(new q)!=a||G&&"[object WeakMap]"!=vt(new G))&&(vt=function(t){var e=ct(t),r=e==i?t.constructor:void 0,n=r?St(r):"";if(n)switch(n){case $:return"[object DataView]";case K:return o;case J:return"[object Promise]";case Q:return a;case Z:return"[object WeakMap]"}return e});var zt=lt(function(){return arguments}())?lt:function(t){return _t(t)&&E.call(t,"callee")&&!T.call(t,"callee")},xt=Array.isArray;var jt=I||function(){return!1};function Rt(t){if(!Pt(t))return!1;var e=ct(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Dt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Pt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function _t(t){return null!=t&&"object"==typeof t}var Et=m?function(t){return function(e){return t(e)}}(m):function(t){return _t(t)&&Dt(t.length)&&!!c[ct(t)]};function Ct(t){return null!=(e=t)&&Dt(e.length)&&!Rt(e)?st(t):ht(t);var e}r.exports=function(t,e){return pt(t,e)}}).call(this,r(18),r(19)(t))},function(t,e,r){"use strict";r.r(e),r.d(e,"getBreakpointFromWidth",(function(){return o})),r.d(e,"getColsFromBreakpoint",(function(){return i})),r.d(e,"findOrGenerateResponsiveLayout",(function(){return a})),r.d(e,"sortBreakpoints",(function(){return s}));var n=r(1);function o(t,e){for(var r=s(t),n=r[0],o=1,i=r.length;o<i;o++){var a=r[o];e>t[a]&&(n=a)}return n}function i(t,e){if(!e[t])throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+t+" is missing!");return e[t]}function a(t,e,r,o,i,a){if(t[r])return Object(n.cloneLayout)(t[r]);for(var u=t[o],c=s(e),l=c.slice(c.indexOf(r)),p=0,f=l.length;p<f;p++){var h=l[p];if(t[h]){u=t[h];break}}return u=Object(n.cloneLayout)(u||[]),Object(n.compact)(Object(n.correctBounds)(u,{cols:i}),a,i)}function s(t){return Object.keys(t).sort((function(e,r){return t[e]-t[r]}))}},function(t,e){function r(t,e,r,n){var o,i=null==(o=n)||"number"==typeof o||"boolean"==typeof o?n:r(n),a=e.get(i);return void 0===a&&(a=t.call(this,n),e.set(i,a)),a}function n(t,e,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),i=e.get(o);return void 0===i&&(i=t.apply(this,n),e.set(o,i)),i}function o(t,e,r,n,o){return r.bind(e,t,n,o)}function i(t,e){return o(t,this,1===t.length?r:n,e.cache.create(),e.serializer)}function a(){return JSON.stringify(arguments)}function s(){this.cache=Object.create(null)}s.prototype.has=function(t){return t in this.cache},s.prototype.get=function(t){return this.cache[t]},s.prototype.set=function(t,e){this.cache[t]=e};var u={create:function(){return new s}};t.exports=function(t,e){var r=e&&e.cache?e.cache:u,n=e&&e.serializer?e.serializer:a;return(e&&e.strategy?e.strategy:i)(t,{cache:r,serializer:n})},t.exports.strategies={variadic:function(t,e){return o(t,this,n,e.cache.create(),e.serializer)},monadic:function(t,e){return o(t,this,r,e.cache.create(),e.serializer)}}},function(t,r){t.exports=e},function(t,e,r){"use strict";var n=r(23),o=n.default,i=n.DraggableCore;t.exports=o,t.exports.default=o,t.exports.DraggableCore=i},function(t,e,r){var n;
  /*!
    Copyright (c) 2017 Jed Watson.
    Licensed under the MIT License (MIT), see
    http://jedwatson.github.io/classnames
  */!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e];if(n){var i=typeof n;if("string"===i||"number"===i)t.push(n);else if(Array.isArray(n)&&n.length){var a=o.apply(null,n);a&&t.push(a)}else if("object"===i)for(var s in n)r.call(n,s)&&n[s]&&t.push(s)}}return t.join(" ")}t.exports?(o.default=o,t.exports=o):void 0===(n=function(){return o}.apply(e,[]))||(t.exports=n)}()},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.findInArray=function(t,e){for(var r=0,n=t.length;r<n;r++)if(e.apply(e,[t[r],r,t]))return t[r]},e.isFunction=function(t){return"function"==typeof t||"[object Function]"===Object.prototype.toString.call(t)},e.isNum=function(t){return"number"==typeof t&&!isNaN(t)},e.int=function(t){return parseInt(t,10)},e.dontSetMe=function(t,e,r){if(t[e])return new Error("Invalid prop ".concat(e," passed to ").concat(r," - do not set this, set it on the child."))}},function(t,e,r){"use strict";function n(t){return(n="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)}Object.defineProperty(e,"__esModule",{value:!0}),e.matchesSelector=p,e.matchesSelectorAndParentsTo=function(t,e,r){var n=t;do{if(p(n,e))return!0;if(n===r)return!1;n=n.parentNode}while(n);return!1},e.addEvent=function(t,e,r,n){if(!t)return;var o=u({capture:!0},n);t.addEventListener?t.addEventListener(e,r,o):t.attachEvent?t.attachEvent("on"+e,r):t["on"+e]=r},e.removeEvent=function(t,e,r,n){if(!t)return;var o=u({capture:!0},n);t.removeEventListener?t.removeEventListener(e,r,o):t.detachEvent?t.detachEvent("on"+e,r):t["on"+e]=null},e.outerHeight=function(t){var e=t.clientHeight,r=t.ownerDocument.defaultView.getComputedStyle(t);return e+=(0,o.int)(r.borderTopWidth),e+=(0,o.int)(r.borderBottomWidth)},e.outerWidth=function(t){var e=t.clientWidth,r=t.ownerDocument.defaultView.getComputedStyle(t);return e+=(0,o.int)(r.borderLeftWidth),e+=(0,o.int)(r.borderRightWidth)},e.innerHeight=function(t){var e=t.clientHeight,r=t.ownerDocument.defaultView.getComputedStyle(t);return e-=(0,o.int)(r.paddingTop),e-=(0,o.int)(r.paddingBottom)},e.innerWidth=function(t){var e=t.clientWidth,r=t.ownerDocument.defaultView.getComputedStyle(t);return e-=(0,o.int)(r.paddingLeft),e-=(0,o.int)(r.paddingRight)},e.offsetXYFromParent=function(t,e,r){var n=e===e.ownerDocument.body?{left:0,top:0}:e.getBoundingClientRect(),o=(t.clientX+e.scrollLeft-n.left)/r,i=(t.clientY+e.scrollTop-n.top)/r;return{x:o,y:i}},e.createCSSTransform=function(t,e){var r=f(t,e,"px");return c({},(0,i.browserPrefixToKey)("transform",i.default),r)},e.createSVGTransform=function(t,e){return f(t,e,"")},e.getTranslation=f,e.getTouch=function(t,e){return t.targetTouches&&(0,o.findInArray)(t.targetTouches,(function(t){return e===t.identifier}))||t.changedTouches&&(0,o.findInArray)(t.changedTouches,(function(t){return e===t.identifier}))},e.getTouchIdentifier=function(t){if(t.targetTouches&&t.targetTouches[0])return t.targetTouches[0].identifier;if(t.changedTouches&&t.changedTouches[0])return t.changedTouches[0].identifier},e.addUserSelectStyles=function(t){if(!t)return;var e=t.getElementById("react-draggable-style-el");e||((e=t.createElement("style")).type="text/css",e.id="react-draggable-style-el",e.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",e.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",t.getElementsByTagName("head")[0].appendChild(e));t.body&&h(t.body,"react-draggable-transparent-selection")},e.removeUserSelectStyles=function(t){if(!t)return;try{if(t.body&&d(t.body,"react-draggable-transparent-selection"),t.selection)t.selection.empty();else{var e=(t.defaultView||window).getSelection();e&&"Caret"!==e.type&&e.removeAllRanges()}}catch(t){}},e.addClassName=h,e.removeClassName=d;var o=r(9),i=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!=typeof t)return{default:t};var e=a();if(e&&e.has(t))return e.get(t);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var s=o?Object.getOwnPropertyDescriptor(t,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=t[i]}r.default=t,e&&e.set(t,r);return r}(r(24));function a(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return a=function(){return t},t}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){c(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function c(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var l="";function p(t,e){return l||(l=(0,o.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(e){return(0,o.isFunction)(t[e])}))),!!(0,o.isFunction)(t[l])&&t[l](e)}function f(t,e,r){var n=t.x,o=t.y,i="translate(".concat(n).concat(r,",").concat(o).concat(r,")");if(e){var a="".concat("string"==typeof e.x?e.x:e.x+r),s="".concat("string"==typeof e.y?e.y:e.y+r);i="translate(".concat(a,", ").concat(s,")")+i}return i}function h(t,e){t.classList?t.classList.add(e):t.className.match(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)")))||(t.className+=" ".concat(e))}function d(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)"),"g"),"")}},function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return wt}));var n=r(2),o=r.n(n),i=r(3),a=r.n(i),s=r(8),u=r.n(s),c=r(1);function l(t){var e=t.margin,r=t.containerPadding,n=t.containerWidth,o=t.cols;return(n-e[0]*(o-1)-2*r[0])/o}function p(t,e,r){return Number.isFinite(t)?Math.round(e*t+Math.max(0,t-1)*r):t}function f(t,e,r,n,o,i){var a=t.margin,s=t.containerPadding,u=t.rowHeight,c=l(t),f={};if(i&&i.resizing?(f.width=Math.round(i.resizing.width),f.height=Math.round(i.resizing.height)):(f.width=p(n,c,a[0]),f.height=p(o,u,a[1])),i&&i.dragging)f.top=Math.round(i.dragging.top),f.left=Math.round(i.dragging.left);else{var h=Math.round((c+a[0])*e+s[0]),d=Math.round((u+a[1])*r+s[1]);if(i&&i.onStartResizeWidth){if(i.anchorRight){var g,y=i.onStartResizeX-e;h=Math.round((c+a[0])*(e+y)+s[0]),f.left=h+(null==i?void 0:i.onStartResizeWidth)-(null===(g=i.resizing)||void 0===g?void 0:g.width)}else f.left=h;if(i.anchorBottom){var b,m=i.onStartResizeY-r;d=Math.round((u+a[1])*(r+m)+s[1]),f.top=d+(null==i?void 0:i.onStartResizeHeight)-(null===(b=i.resizing)||void 0===b?void 0:b.height)}else f.top=d}else f.left=h,f.top=d}return f}function h(t,e,r,n,o){var i=t.margin,a=t.cols,s=t.rows,u=t.rowHeight,c=(t.maxRows,l(t)),p=Math.round((r-i[0])/(c+i[0])),f=Math.round((e-i[1])/(u+i[1]));return{x:p=d(p,0,a-n),y:f=d(f,0,s-o)}}function d(t,e,r){return Math.max(Math.min(t,r),e)}var g=r(6),y=r.n(g),b=r(0),m=r.n(b),v=r(7),w=r.n(v),S=r(16),O=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),z=function(){return(z=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},x={top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",top:"-10px",cursor:"nw-resize"}},j=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onMouseDown=function(t){e.props.onResizeStart(t,e.props.direction)},e.onTouchStart=function(t){e.props.onResizeStart(t,e.props.direction)},e}return O(e,t),e.prototype.render=function(){return n.createElement("div",{className:this.props.className||"",style:z(z({position:"absolute",userSelect:"none"},x[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},e}(n.PureComponent),R=r(5),D=r.n(R),P=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),_=function(){return(_=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},E={width:"auto",height:"auto"},C=D()((function(t,e,r){return Math.max(Math.min(t,r),e)})),k=D()((function(t,e){return Math.round(t/e)*e})),M=D()((function(t,e){return new RegExp(t,"i").test(e)})),H=function(t){return Boolean(t.touches&&t.touches.length)},W=D()((function(t,e,r){void 0===r&&(r=0);var n=e.reduce((function(r,n,o){return Math.abs(n-t)<Math.abs(e[r]-t)?o:r}),0),o=Math.abs(e[n]-t);return 0===r||o<r?e[n]:t})),N=D()((function(t,e){return t.substr(t.length-e.length,e.length)===e})),T=D()((function(t){return"auto"===(t=t.toString())||N(t,"px")||N(t,"%")||N(t,"vh")||N(t,"vw")||N(t,"vmax")||N(t,"vmin")?t:t+"px"})),L=function(t,e,r,n){if(t&&"string"==typeof t){if(N(t,"px"))return Number(t.replace("px",""));if(N(t,"%"))return e*(Number(t.replace("%",""))/100);if(N(t,"vw"))return r*(Number(t.replace("vw",""))/100);if(N(t,"vh"))return n*(Number(t.replace("vh",""))/100)}return t},A=D()((function(t,e,r,n,o,i,a){return n=L(n,t.width,e,r),o=L(o,t.height,e,r),i=L(i,t.width,e,r),a=L(a,t.height,e,r),{maxWidth:void 0===n?void 0:Number(n),maxHeight:void 0===o?void 0:Number(o),minWidth:void 0===i?void 0:Number(i),minHeight:void 0===a?void 0:Number(a)}})),B=["as","style","className","grid","snap","bounds","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],I=function(t){function e(e){var r=t.call(this,e)||this;return r.ratio=1,r.resizable=null,r.parentLeft=0,r.parentTop=0,r.resizableLeft=0,r.resizableTop=0,r.targetLeft=0,r.targetTop=0,r.appendBase=function(){if(!r.resizable||!r.window)return null;var t=r.parentNode;if(!t)return null;var e=r.window.document.createElement("div");return e.style.width="100%",e.style.height="100%",e.style.position="absolute",e.style.transform="scale(0, 0)",e.style.left="0",e.style.flex="0",e.classList?e.classList.add("__resizable_base__"):e.className+="__resizable_base__",t.appendChild(e),e},r.removeBase=function(t){var e=r.parentNode;e&&e.removeChild(t)},r.ref=function(t){t&&(r.resizable=t)},r.state={isResizing:!1,width:void 0===(r.propsSize&&r.propsSize.width)?"auto":r.propsSize&&r.propsSize.width,height:void 0===(r.propsSize&&r.propsSize.height)?"auto":r.propsSize&&r.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},r.onResizeStart=r.onResizeStart.bind(r),r.onMouseMove=r.onMouseMove.bind(r),r.onMouseUp=r.onMouseUp.bind(r),r}return P(e,t),Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||E},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){var t=0,e=0;if(this.resizable&&this.window){var r=this.resizable.offsetWidth,n=this.resizable.offsetHeight,o=this.resizable.style.position;"relative"!==o&&(this.resizable.style.position="relative"),t="auto"!==this.resizable.style.width?this.resizable.offsetWidth:r,e="auto"!==this.resizable.style.height?this.resizable.offsetHeight:n,this.resizable.style.position=o}return{width:t,height:e}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sizeStyle",{get:function(){var t=this,e=this.props.size,r=function(e){if(void 0===t.state[e]||"auto"===t.state[e])return"auto";if(t.propsSize&&t.propsSize[e]&&N(t.propsSize[e].toString(),"%")){if(N(t.state[e].toString(),"%"))return t.state[e].toString();var r=t.getParentSize();return Number(t.state[e].toString().replace("px",""))/r[e]*100+"%"}return T(t.state[e])};return{width:e&&void 0!==e.width&&!this.state.isResizing?T(e.width):r("width"),height:e&&void 0!==e.height&&!this.state.isResizing?T(e.height):r("height")}},enumerable:!1,configurable:!0}),e.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var t=this.appendBase();if(!t)return{width:0,height:0};var e=!1,r=this.parentNode.style.flexWrap;"wrap"!==r&&(e=!0,this.parentNode.style.flexWrap="wrap"),t.style.position="relative",t.style.minWidth="100%";var n={width:t.offsetWidth,height:t.offsetHeight};return e&&(this.parentNode.style.flexWrap=r),this.removeBase(t),n},e.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},e.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},e.prototype.componentDidMount=function(){if(this.resizable&&this.window){var t=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==t.flexBasis?t.flexBasis:void 0})}},e.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},e.prototype.createSizeForCssProperty=function(t,e){var r=this.propsSize&&this.propsSize[e];return"auto"!==this.state[e]||this.state.original[e]!==t||void 0!==r&&"auto"!==r?t:"auto"},e.prototype.calculateNewMaxFromBoundary=function(t,e){if("parent"===this.props.bounds){var r=this.parentNode;if(r){var n=r.offsetWidth+(this.parentLeft-this.resizableLeft),o=r.offsetHeight+(this.parentTop-this.resizableTop);t=t&&t<n?t:n,e=e&&e<o?e:o}}else if("window"===this.props.bounds){if(this.window){n=this.window.innerWidth-this.resizableLeft,o=this.window.innerHeight-this.resizableTop;t=t&&t<n?t:n,e=e&&e<o?e:o}}else if(this.props.bounds){n=this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),o=this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop);t=t&&t<n?t:n,e=e&&e<o?e:o}return{maxWidth:t,maxHeight:e}},e.prototype.calculateNewSizeFromDirection=function(t,e){var r=this.props.scale||1,n=this.props.resizeRatio||1,o=this.state,i=o.direction,a=o.original,s=this.props,u=s.lockAspectRatio,c=s.lockAspectRatioExtraHeight,l=s.lockAspectRatioExtraWidth,p=a.width,f=a.height,h=c||0,d=l||0;return M("right",i)&&(p=a.width+(t-a.x)*n/r,u&&(f=(p-d)/this.ratio+h)),M("left",i)&&(p=a.width-(t-a.x)*n/r,u&&(f=(p-d)/this.ratio+h)),M("bottom",i)&&(f=a.height+(e-a.y)*n/r,u&&(p=(f-h)*this.ratio+d)),M("top",i)&&(f=a.height-(e-a.y)*n/r,u&&(p=(f-h)*this.ratio+d)),{newWidth:p,newHeight:f}},e.prototype.calculateNewSizeFromAspectRatio=function(t,e,r,n){var o=this.props,i=o.lockAspectRatio,a=o.lockAspectRatioExtraHeight,s=o.lockAspectRatioExtraWidth,u=void 0===n.width?10:n.width,c=void 0===r.width||r.width<0?t:r.width,l=void 0===n.height?10:n.height,p=void 0===r.height||r.height<0?e:r.height,f=a||0,h=s||0;if(i){var d=(l-f)*this.ratio+h,g=(p-f)*this.ratio+h,y=(u-h)/this.ratio+f,b=(c-h)/this.ratio+f,m=Math.max(u,d),v=Math.min(c,g),w=Math.max(l,y),S=Math.min(p,b);t=C(t,m,v),e=C(e,w,S)}else t=C(t,u,c),e=C(e,l,p);return{newWidth:t,newHeight:e}},e.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var t=this.parentNode;if(t){var e=t.getBoundingClientRect();this.parentLeft=e.left,this.parentTop=e.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var r=this.props.bounds.getBoundingClientRect();this.targetLeft=r.left,this.targetTop=r.top}if(this.resizable){var n=this.resizable.getBoundingClientRect(),o=n.left,i=n.top;this.resizableLeft=o,this.resizableTop=i}},e.prototype.onResizeStart=function(t,e){if(this.resizable&&this.window){var r,n=0,o=0;if(t.nativeEvent&&function(t){return Boolean((t.clientX||0===t.clientX)&&(t.clientY||0===t.clientY))}(t.nativeEvent)){if(n=t.nativeEvent.clientX,o=t.nativeEvent.clientY,3===t.nativeEvent.which)return}else t.nativeEvent&&H(t.nativeEvent)&&(n=t.nativeEvent.touches[0].clientX,o=t.nativeEvent.touches[0].clientY);if(this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(t,e,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var i=this.window.getComputedStyle(this.resizable);if("auto"!==i.flexBasis){var a=this.parentNode;if(a){var s=this.window.getComputedStyle(a).flexDirection;this.flexDir=s.startsWith("row")?"row":"column",r=i.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var u={original:{x:n,y:o,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:_(_({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(t.target).cursor||"auto"}),direction:e,flexBasis:r};this.setState(u)}},e.prototype.onMouseMove=function(t){if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&H(t))try{t.preventDefault(),t.stopPropagation()}catch(t){}var e=this.props,r=e.maxWidth,n=e.maxHeight,o=e.minWidth,i=e.minHeight,a=H(t)?t.touches[0].clientX:t.clientX,s=H(t)?t.touches[0].clientY:t.clientY,u=this.state,c=u.direction,l=u.original,p=u.width,f=u.height,h=this.getParentSize(),d=A(h,this.window.innerWidth,this.window.innerHeight,r,n,o,i);r=d.maxWidth,n=d.maxHeight,o=d.minWidth,i=d.minHeight;var g=this.calculateNewSizeFromDirection(a,s),y=g.newHeight,b=g.newWidth,m=this.calculateNewMaxFromBoundary(r,n),v=this.calculateNewSizeFromAspectRatio(b,y,{width:m.maxWidth,height:m.maxHeight},{width:o,height:i});if(b=v.newWidth,y=v.newHeight,this.props.grid){var w=k(b,this.props.grid[0]),S=k(y,this.props.grid[1]),O=this.props.snapGap||0;b=0===O||Math.abs(w-b)<=O?w:b,y=0===O||Math.abs(S-y)<=O?S:y}this.props.snap&&this.props.snap.x&&(b=W(b,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(y=W(y,this.props.snap.y,this.props.snapGap));var z={width:b-l.width,height:y-l.height};if(p&&"string"==typeof p)if(N(p,"%"))b=b/h.width*100+"%";else if(N(p,"vw")){b=b/this.window.innerWidth*100+"vw"}else if(N(p,"vh")){b=b/this.window.innerHeight*100+"vh"}if(f&&"string"==typeof f)if(N(f,"%"))y=y/h.height*100+"%";else if(N(f,"vw")){y=y/this.window.innerWidth*100+"vw"}else if(N(f,"vh")){y=y/this.window.innerHeight*100+"vh"}var x={width:this.createSizeForCssProperty(b,"width"),height:this.createSizeForCssProperty(y,"height")};"row"===this.flexDir?x.flexBasis=x.width:"column"===this.flexDir&&(x.flexBasis=x.height),this.setState(x),this.props.onResize&&this.props.onResize(t,c,this.resizable,z)}},e.prototype.onMouseUp=function(t){var e=this.state,r=e.isResizing,n=e.direction,o=e.original;if(r&&this.resizable){var i={width:this.size.width-o.width,height:this.size.height-o.height};this.props.onResizeStop&&this.props.onResizeStop(t,n,this.resizable,i),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:_(_({},this.state.backgroundStyle),{cursor:"auto"})})}},e.prototype.updateSize=function(t){this.setState({width:t.width,height:t.height})},e.prototype.renderResizer=function(){var t=this,e=this.props,r=e.enable,o=e.handleStyles,i=e.handleClasses,a=e.handleWrapperStyle,s=e.handleWrapperClass,u=e.handleComponent;if(!r)return null;var c=Object.keys(r).map((function(e){return!1!==r[e]?n.createElement(j,{key:e,direction:e,onResizeStart:t.onResizeStart,replaceStyles:o&&o[e],className:i&&i[e]},u&&u[e]?u[e]:null):null}));return n.createElement("span",{className:s,style:a},c)},e.prototype.render=function(){var t=this,e=Object.keys(this.props).reduce((function(e,r){return-1!==B.indexOf(r)||(e[r]=t.props[r]),e}),{}),r=_(_(_({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(r.flexBasis=this.state.flexBasis);var o=this.props.as||"div";return n.createElement(o,_({ref:this.ref,style:r,className:this.props.className},e),this.state.isResizing&&n.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},e.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},e}(n.PureComponent),F=function(t,e){return(F=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};var U=function(){return(U=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};var X=w.a,Y={width:"auto",height:"auto",display:"inline-block",position:"absolute",top:0,left:0},q=(function(t){function e(e){var r=t.call(this,e)||this;return r.resizing=!1,r.resizingPosition={x:0,y:0},r.offsetFromParent={left:0,top:0},r.resizableElement={current:null},r.refDraggable=function(t){t&&(r.draggable=t)},r.refResizable=function(t){t&&(r.resizable=t,r.resizableElement.current=t.resizable)},r.state={original:{x:0,y:0},bounds:{top:0,right:0,bottom:0,left:0},maxWidth:e.maxWidth,maxHeight:e.maxHeight},r.onResizeStart=r.onResizeStart.bind(r),r.onResize=r.onResize.bind(r),r.onResizeStop=r.onResizeStop.bind(r),r.onDragStart=r.onDragStart.bind(r),r.onDrag=r.onDrag.bind(r),r.onDragStop=r.onDragStop.bind(r),r.getMaxSizesFromProps=r.getMaxSizesFromProps.bind(r),r}(function(t,e){function r(){this.constructor=t}F(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)})(e,t),e.prototype.componentDidMount=function(){this.updateOffsetFromParent();var t=this.offsetFromParent,e=t.left,r=t.top,n=this.getDraggablePosition(),o=n.x,i=n.y;this.draggable.setState({x:o-e,y:i-r}),this.forceUpdate()},e.prototype.getDraggablePosition=function(){var t=this.draggable.state;return{x:t.x,y:t.y}},e.prototype.getParent=function(){return this.resizable&&this.resizable.parentNode},e.prototype.getParentSize=function(){return this.resizable.getParentSize()},e.prototype.getMaxSizesFromProps=function(){return{maxWidth:void 0===this.props.maxWidth?Number.MAX_SAFE_INTEGER:this.props.maxWidth,maxHeight:void 0===this.props.maxHeight?Number.MAX_SAFE_INTEGER:this.props.maxHeight}},e.prototype.getSelfElement=function(){return this.resizable&&this.resizable.resizable},e.prototype.getOffsetHeight=function(t){var e=this.props.scale;switch(this.props.bounds){case"window":return window.innerHeight/e;case"body":return document.body.offsetHeight/e;default:return t.offsetHeight}},e.prototype.getOffsetWidth=function(t){var e=this.props.scale;switch(this.props.bounds){case"window":return window.innerWidth/e;case"body":return document.body.offsetWidth/e;default:return t.offsetWidth}},e.prototype.onDragStart=function(t,e){if(this.props.onDragStart&&this.props.onDragStart(t,e),this.props.bounds){var r,n=this.getParent(),o=this.props.scale;if("parent"===this.props.bounds)r=n;else{if("body"===this.props.bounds){var i=n.getBoundingClientRect(),a=i.left,s=i.top,u=document.body.getBoundingClientRect(),c=-(a-n.offsetLeft*o-u.left)/o,l=-(s-n.offsetTop*o-u.top)/o,p=(document.body.offsetWidth-this.resizable.size.width*o)/o+c,f=(document.body.offsetHeight-this.resizable.size.height*o)/o+l;return this.setState({bounds:{top:l,right:p,bottom:f,left:c}})}if("window"===this.props.bounds){if(!this.resizable)return;var h=n.getBoundingClientRect(),d=h.left,g=h.top,y=-(d-n.offsetLeft*o)/o,b=-(g-n.offsetTop*o)/o;p=(window.innerWidth-this.resizable.size.width*o)/o+y,f=(window.innerHeight-this.resizable.size.height*o)/o+b;return this.setState({bounds:{top:b,right:p,bottom:f,left:y}})}r=document.querySelector(this.props.bounds)}if(r instanceof HTMLElement&&n instanceof HTMLElement){var m=r.getBoundingClientRect(),v=m.left,w=m.top,S=n.getBoundingClientRect(),O=(v-S.left)/o,z=w-S.top;if(this.resizable){this.updateOffsetFromParent();var x=this.offsetFromParent;this.setState({bounds:{top:z-x.top,right:O+(r.offsetWidth-this.resizable.size.width)-x.left/o,bottom:z+(r.offsetHeight-this.resizable.size.height)-x.top,left:O-x.left/o}})}}}},e.prototype.onDrag=function(t,e){if(this.props.onDrag){var r=this.offsetFromParent;return this.props.onDrag(t,U(U({},e),{x:e.x-r.left,y:e.y-r.top}))}},e.prototype.onDragStop=function(t,e){if(this.props.onDragStop){var r=this.offsetFromParent,n=r.left,o=r.top;return this.props.onDragStop(t,U(U({},e),{x:e.x+n,y:e.y+o}))}},e.prototype.onResizeStart=function(t,e,r){t.stopPropagation(),this.resizing=!0;var n=this.props.scale,o=this.offsetFromParent,i=this.getDraggablePosition();if(this.resizingPosition={x:i.x+o.left,y:i.y+o.top},this.setState({original:i}),this.props.bounds){var a=this.getParent(),s=void 0;s="parent"===this.props.bounds?a:"body"===this.props.bounds?document.body:"window"===this.props.bounds?window:document.querySelector(this.props.bounds);var u=this.getSelfElement();if(u instanceof Element&&(s instanceof HTMLElement||s===window)&&a instanceof HTMLElement){var c=this.getMaxSizesFromProps(),l=c.maxWidth,p=c.maxHeight,f=this.getParentSize();if(l&&"string"==typeof l)if(l.endsWith("%")){var h=Number(l.replace("%",""))/100;l=f.width*h}else l.endsWith("px")&&(l=Number(l.replace("px","")));if(p&&"string"==typeof p)if(p.endsWith("%")){h=Number(p.replace("%",""))/100;p=f.width*h}else p.endsWith("px")&&(p=Number(p.replace("px","")));var d=u.getBoundingClientRect(),g=d.left,y=d.top,b="window"===this.props.bounds?{left:0,top:0}:s.getBoundingClientRect(),m=b.left,v=b.top,w=this.getOffsetWidth(s),S=this.getOffsetHeight(s),O=e.toLowerCase().endsWith("left"),z=e.toLowerCase().endsWith("right"),x=e.startsWith("top"),j=e.startsWith("bottom");if(O&&this.resizable){var R=(g-m)/n+this.resizable.size.width;this.setState({maxWidth:R>Number(l)?l:R})}if(z||this.props.lockAspectRatio&&!O){R=w+(m-g)/n;this.setState({maxWidth:R>Number(l)?l:R})}if(x&&this.resizable){R=(y-v)/n+this.resizable.size.height;this.setState({maxHeight:R>Number(p)?p:R})}if(j||this.props.lockAspectRatio&&!x){R=S+(v-y)/n;this.setState({maxHeight:R>Number(p)?p:R})}}}else this.setState({maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight});this.props.onResizeStart&&this.props.onResizeStart(t,e,r)},e.prototype.onResize=function(t,e,r,n){var o={x:this.state.original.x,y:this.state.original.y},i=-n.width,a=-n.height;-1!==["top","left","topLeft","bottomLeft","topRight"].indexOf(e)&&("bottomLeft"===e?o.x+=i:("topRight"===e||(o.x+=i),o.y+=a)),o.x===this.draggable.state.x&&o.y===this.draggable.state.y||this.draggable.setState(o),this.updateOffsetFromParent();var s=this.offsetFromParent,u=this.getDraggablePosition().x+s.left,c=this.getDraggablePosition().y+s.top;this.resizingPosition={x:u,y:c},this.props.onResize&&this.props.onResize(t,e,r,n,{x:u,y:c})},e.prototype.onResizeStop=function(t,e,r,n){this.resizing=!1;var o=this.getMaxSizesFromProps(),i=o.maxWidth,a=o.maxHeight;this.setState({maxWidth:i,maxHeight:a}),this.props.onResizeStop&&this.props.onResizeStop(t,e,r,n,this.resizingPosition)},e.prototype.updateSize=function(t){this.resizable&&this.resizable.updateSize({width:t.width,height:t.height})},e.prototype.updatePosition=function(t){this.draggable.setState(t)},e.prototype.updateOffsetFromParent=function(){var t=this.props.scale,e=this.getParent(),r=this.getSelfElement();if(!e||null===r)return{top:0,left:0};var n=e.getBoundingClientRect(),o=n.left,i=n.top,a=r.getBoundingClientRect(),s=this.getDraggablePosition();this.offsetFromParent={left:a.left-o-s.x*t,top:a.top-i-s.y*t}},e.prototype.render=function(){var t=this.props,e=t.disableDragging,r=t.style,o=t.dragHandleClassName,i=t.position,a=t.onMouseDown,s=t.onMouseUp,u=t.dragAxis,c=t.dragGrid,l=t.bounds,p=t.enableUserSelectHack,f=t.cancel,h=t.children,d=(t.onResizeStart,t.onResize,t.onResizeStop,t.onDragStart,t.onDrag,t.onDragStop,t.resizeHandleStyles),g=t.resizeHandleClasses,y=t.resizeHandleComponent,b=t.enableResizing,m=t.resizeGrid,v=t.resizeHandleWrapperClass,w=t.resizeHandleWrapperStyle,S=t.scale,O=t.allowAnyClick,z=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}(t,["disableDragging","style","dragHandleClassName","position","onMouseDown","onMouseUp","dragAxis","dragGrid","bounds","enableUserSelectHack","cancel","children","onResizeStart","onResize","onResizeStop","onDragStart","onDrag","onDragStop","resizeHandleStyles","resizeHandleClasses","resizeHandleComponent","enableResizing","resizeGrid","resizeHandleWrapperClass","resizeHandleWrapperStyle","scale","allowAnyClick"]),x=this.props.default?U({},this.props.default):void 0;delete z.default;var j,R=e||o?{cursor:"auto"}:{cursor:"move"},D=U(U(U({},Y),R),r),P=this.offsetFromParent,_=P.left,E=P.top;i&&(j={x:i.x-_,y:i.y-E});var C,k=this.resizing?void 0:j;return Object(n.createElement)(X,{ref:this.refDraggable,handle:o?"."+o:void 0,defaultPosition:x,onMouseDown:a,onMouseUp:s,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,axis:u,disabled:e,grid:c,bounds:l?this.state.bounds:void 0,position:k,enableUserSelectHack:p,cancel:f,scale:S,allowAnyClick:O,nodeRef:this.resizableElement},Object(n.createElement)(I,U({},z,{ref:this.refResizable,defaultSize:x,size:this.props.size,enable:"boolean"==typeof b?(C=b,{bottom:C,bottomLeft:C,bottomRight:C,left:C,right:C,top:C,topLeft:C,topRight:C}):b,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,style:D,minWidth:this.props.minWidth,minHeight:this.props.minHeight,maxWidth:this.resizing?this.state.maxWidth:this.props.maxWidth,maxHeight:this.resizing?this.state.maxHeight:this.props.maxHeight,grid:m,handleWrapperClass:v,handleWrapperStyle:w,lockAspectRatio:this.props.lockAspectRatio,lockAspectRatioExtraWidth:this.props.lockAspectRatioExtraWidth,lockAspectRatioExtraHeight:this.props.lockAspectRatioExtraHeight,handleStyles:d,handleClasses:g,handleComponent:y,scale:this.props.scale}),h))},e.defaultProps={maxWidth:Number.MAX_SAFE_INTEGER,maxHeight:Number.MAX_SAFE_INTEGER,scale:1,onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},onDragStart:function(){},onDrag:function(){},onDragStop:function(){}}}(n.PureComponent),m.a.arrayOf(m.a.oneOf(["s","w","e","n","sw","nw","se","ne"]))),G=m.a.oneOfType([m.a.node,m.a.func]),V={className:m.a.string,style:m.a.object,width:m.a.number,autoSize:m.a.bool,cols:m.a.number,draggableCancel:m.a.string,draggableHandle:m.a.string,verticalCompact:function(t){t.verticalCompact,0},compactType:m.a.oneOf(["vertical","horizontal"]),layout:function(t){var e=t.layout;void 0!==e&&r(1).validateLayout(e,"layout")},margin:m.a.arrayOf(m.a.number),containerPadding:m.a.arrayOf(m.a.number),rowHeight:m.a.number,maxRows:m.a.number,isBounded:m.a.bool,isDraggable:m.a.bool,isResizable:m.a.bool,preventCollision:m.a.bool,useCSSTransforms:m.a.bool,transformScale:m.a.number,isDroppable:m.a.bool,resizeHandles:q,resizeHandle:G,onLayoutChange:m.a.func,onDragStart:m.a.func,onDrag:m.a.func,onDragStop:m.a.func,onResizeStart:m.a.func,onResize:m.a.func,onResizeStop:m.a.func,onDrop:m.a.func,droppingItem:m.a.shape({i:m.a.string.isRequired,w:m.a.number.isRequired,h:m.a.number.isRequired}),children:function(t,e){var r=t[e],n={};o.a.Children.forEach(r,(function(t){if(n[t.key])throw new Error('Duplicate child key "'+t.key+'" found! This will cause problems in ReactGridLayout.');n[t.key]=!0}))},innerRef:m.a.any};function $(t){return($="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 K(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function J(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?K(Object(r),!0).forEach((function(e){it(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):K(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Q(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Z(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function tt(t,e){return(tt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function et(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=ot(t);if(e){var o=ot(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return rt(this,r)}}function rt(t,e){return!e||"object"!==$(e)&&"function"!=typeof e?nt(t):e}function nt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ot(t){return(ot=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function it(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var at=function(t){!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&&tt(t,e)}(a,t);var e,r,n,i=et(a);function a(){var t;Q(this,a);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return it(nt(t=i.call.apply(i,[this].concat(r))),"state",{resizing:null,anchorRight:null,anchorBottom:null,dragging:null,resizeDiffX:0,resizeDiffY:0,className:""}),it(nt(t),"currentNode",void 0),it(nt(t),"onDragStart",(function(e,r){var n=r.node,o=t.props.onDragStart;if(o){var i={top:0,left:0},a=n.offsetParent;if(a){var s=a.getBoundingClientRect(),u=n.getBoundingClientRect(),c=u.left/t.props.transformScale,l=s.left/t.props.transformScale,p=u.top/t.props.transformScale,f=s.top/t.props.transformScale;i.left=c-l+a.scrollLeft,i.top=p-f+a.scrollTop,t.setState({dragging:i});var d=h(t.getPositionParams(),i.top,i.left,t.props.w,t.props.h),g=d.x,y=d.y;return o.call(nt(t),t.props.i,g,y,{e:e,node:n,newPosition:i})}}})),it(nt(t),"onDrag",(function(e,r){var n=r.node,o=r.deltaX,i=r.deltaY,a=t.props,s=a.onDrag,u=a.transformScale;if(s){if(o/=u,i/=u,!t.state.dragging)throw new Error("onDrag called before onDragStart.");var c=t.state.dragging.top+i,f=t.state.dragging.left+o,g=t.props,y=g.isBounded,b=g.i,m=g.w,v=g.h,w=g.containerWidth,S=t.getPositionParams();if(y){var O=n.offsetParent;if(O){var z=t.props,x=z.margin,j=z.rowHeight;c=d(c,0,O.clientHeight-p(v,j,x[1])),f=d(f,0,w-p(m,l(S),x[0]))}}var R={top:c,left:f};t.setState({dragging:R});var D=h(S,c,f,m,v),P=D.x,_=D.y;return s.call(nt(t),b,P,_,{e:e,node:n,newPosition:R})}})),it(nt(t),"onDragStop",(function(e,r){var n=r.node,o=t.props.onDragStop;if(o){if(!t.state.dragging)throw new Error("onDragEnd called before onDragStart.");var i=t.props,a=i.w,s=i.h,u=i.i,c=t.state.dragging,l=c.left,p=c.top,f={top:p,left:l};t.setState({dragging:null});var d=h(t.getPositionParams(),p,l,a,s),g=d.x,y=d.y;return o.call(nt(t),u,g,y,{e:e,node:n,newPosition:f})}})),it(nt(t),"onResizeStop",(function(e,r){t.setState({anchorRight:!1,anchorBottom:!1}),t.onResizeHandler(e,r,"onResizeStop")})),it(nt(t),"onResizeStart",(function(e,r){var n=r.node.className.includes("react-resizable-handle-w")||r.node.className.includes("react-resizable-handle-sw")||r.node.className.includes("react-resizable-handle-nw"),o=r.node.className.includes("react-resizable-handle-n")||r.node.className.includes("react-resizable-handle-nw")||r.node.className.includes("react-resizable-handle-ne"),i=t.props,a=i.x,s=i.y;t.setState({onStartResizeWidth:r.size.width,onStartResizeHeight:r.size.height,onStartResizeX:a,onStartResizeY:s,anchorRight:n,anchorBottom:o}),t.onResizeHandler(e,r,"onResizeStart")})),it(nt(t),"onResize",(function(e,r){t.onResizeHandler(e,r,"onResize")})),t}return e=a,(r=[{key:"shouldComponentUpdate",value:function(t,e){if(this.props.children!==t.children)return!0;if(this.props.droppingPosition!==t.droppingPosition)return!0;var r=f(this.getPositionParams(this.props),this.props.x,this.props.y,this.props.w,this.props.h,this.state),n=f(this.getPositionParams(t),t.x,t.y,t.w,t.h,e);return!Object(c.fastPositionEqual)(r,n)||this.props.useCSSTransforms!==t.useCSSTransforms}},{key:"componentDidMount",value:function(){this.moveDroppingItem({})}},{key:"componentDidUpdate",value:function(t){this.moveDroppingItem(t)}},{key:"moveDroppingItem",value:function(t){var e=this.props.droppingPosition;if(e){var r=t.droppingPosition||{left:0,top:0},n=this.state.dragging;this.currentNode||(this.currentNode=y.a.findDOMNode(this));var o=n&&e.left!==r.left||e.top!==r.top;if(n){if(o){var i=e.left-n.left,a=e.top-n.top;this.onDrag(e.e,{node:this.currentNode,deltaX:i,deltaY:a})}}else this.onDragStart(e.e,{node:this.currentNode,deltaX:e.left,deltaY:e.top})}}},{key:"getPositionParams",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;return{cols:t.cols,rows:t.rows,containerPadding:t.containerPadding,containerWidth:t.containerWidth,margin:t.margin,maxRows:t.maxRows,rowHeight:t.rowHeight}}},{key:"createStyle",value:function(t){var e,r=this.props,n=r.usePercentages,o=r.containerWidth,i=r.useCSSTransforms;return r.margin,i?e=Object(c.setTransform)(t):(e=Object(c.setTopLeft)(t),n&&(e.left=Object(c.perc)(t.left/o),e.width=Object(c.perc)(t.width/o))),e}},{key:"mixinDraggable",value:function(t,e){return o.a.createElement(v.DraggableCore,{disabled:!e,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,r){var n=this.props,i=n.cols,a=n.rows,s=(n.x,n.y),u=(n.w,n.h),c=n.minW,l=n.minH,p=n.maxW,h=n.maxH,d=n.transformScale,g=n.resizeHandle,y=this.props.resizeHandles,b=this.getPositionParams(),m=f(b,0,0,i,0).width,v=f(b,0,0,0,a).height,w=f(b,0,0,c,l),O=f(b,0,0,p,h),z=[w.width,w.height],x=[Math.min(O.width,m),Math.min(O.height,v)];return y&&(0===s&&(y=y.filter((function(t){return"nw"!==t&&"ne"!==t&&"n"!==t}))),s+u===a&&(y=y.filter((function(t){return"sw"!==t&&"se"!==t&&"s"!==t})))),o.a.createElement(S.Resizable,{draggableOpts:{disabled:!r},className:r?void 0:"react-resizable-hide",width:e.width,height:e.height,minConstraints:z,maxConstraints:x,onResizeStop:this.onResizeStop,onResizeStart:this.onResizeStart,onResize:this.onResize,transformScale:d,resizeHandles:y,handle:g},t)}},{key:"onResizeHandler",value:function(t,e,r){var n=e.node,o=e.size,i=this.props[r];if(i){var a=this.state,s=a.anchorRight,u=a.anchorBottom,c=this.state,p=c.resizeDiffX,f=c.resizeDiffY,h=this.props,g=h.cols,y=h.rows,b=h.x,m=h.y,v=h.i,w=this.props,S=w.minW,O=w.maxW,z=w.maxH,x=w.minH,j=function(t,e,r,n,o){var i=t.margin,a=(t.maxRows,t.cols),s=t.rows,u=t.rowHeight,c=l(t),p=Math.round((e+i[0])/(c+i[0])),f=Math.round((r+i[1])/(u+i[1]));return{w:p=d(p,0,a),h:f=d(f,0,s)}}(this.getPositionParams(),o.width,o.height),R=j.w,D=j.h;"onResizeStart"===r?(p=0,f=0):"onResize"===r&&(p=s?p+this.props.w-R:p,f=u?f+this.props.h-D:f),S=Math.max(S,1),x=Math.max(x,1),R=d(R,S,O=s?Math.min(O,g):Math.min(O,g-b)),D=d(D,x,z=u?Math.min(z,y):Math.min(z,y-m)),this.setState({resizeDiffX:p,resizeDiffY:f,resizing:"onResizeStop"===r?null:o}),i.call(this,v,R,D,p,f,{e:t,node:n,size:o})}}},{key:"render",value:function(){var t=this.props,e=t.x,r=t.y,n=t.w,i=t.h,a=t.isDraggable,s=t.isResizable,c=t.droppingPosition,l=t.useCSSTransforms,p=f(this.getPositionParams(),e,r,n,i,this.state),h=o.a.Children.only(this.props.children),d=o.a.cloneElement(h,{className:u()("react-grid-item",h.props.className,this.props.className,{static:this.props.static,resizing:Boolean(this.state.resizing),"react-draggable":a,"react-draggable-dragging":Boolean(this.state.dragging),dropping:Boolean(c),cssTransforms:l}),style:J(J(J({},this.props.style),h.props.style),this.createStyle(p,!0))});return d=this.mixinResizable(d,p,s),d=this.mixinDraggable(d,a)}}])&&Z(e.prototype,r),n&&Z(e,n),a}(o.a.Component);function st(t){return(st="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 ut(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ct(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ut(Object(r),!0).forEach((function(e){mt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ut(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function lt(t){return function(t){if(Array.isArray(t))return pt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return pt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pt(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ft(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function ht(t,e){return(ht=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function dt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=bt(t);if(e){var o=bt(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return gt(this,r)}}function gt(t,e){return!e||"object"!==st(e)&&"function"!=typeof e?yt(t):e}function yt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function bt(t){return(bt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function mt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}it(at,"propTypes",{children:m.a.element,cols:m.a.number.isRequired,rows:m.a.number,containerWidth:m.a.number.isRequired,rowHeight:m.a.number.isRequired,margin:m.a.array.isRequired,maxRows:m.a.number.isRequired,containerPadding:m.a.array.isRequired,x:m.a.number.isRequired,y:m.a.number.isRequired,w:m.a.number.isRequired,h:m.a.number.isRequired,minW:function(t,e){var r=t[e];return"number"!=typeof r?new Error("minWidth not Number"):r>t.w||r>t.maxW?new Error("minWidth larger than item width/maxWidth"):void 0},maxW:function(t,e){var r=t[e];return"number"!=typeof r?new Error("maxWidth not Number"):r<t.w||r<t.minW?new Error("maxWidth smaller than item width/minWidth"):void 0},minH:function(t,e){var r=t[e];return"number"!=typeof r?new Error("minHeight not Number"):r>t.h||r>t.maxH?new Error("minHeight larger than item height/maxHeight"):void 0},maxH:function(t,e){var r=t[e];return"number"!=typeof r?new Error("maxHeight not Number"):r<t.h||r<t.minH?new Error("maxHeight smaller than item height/minHeight"):void 0},i:m.a.string.isRequired,resizeHandles:q,resizeHandle:G,onDragStop:m.a.func,onDragStart:m.a.func,onDrag:m.a.func,onResizeStop:m.a.func,onResizeStart:m.a.func,onResize:m.a.func,isDraggable:m.a.bool.isRequired,isResizable:m.a.bool.isRequired,isBounded:m.a.bool.isRequired,static:m.a.bool,useCSSTransforms:m.a.bool.isRequired,transformScale:m.a.number,className:m.a.string,handle:m.a.string,cancel:m.a.string,droppingPosition:m.a.shape({e:m.a.object.isRequired,left:m.a.number.isRequired,top:m.a.number.isRequired})}),it(at,"defaultProps",{className:"",cancel:"",handle:"",rows:1/0,minH:1,minW:1,maxH:1/0,maxW:1/0,transformScale:1});var vt=!1;try{vt=/firefox/i.test(navigator.userAgent)}catch(t){}var wt=function(t){!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&&ht(t,e)}(s,t);var e,r,n,i=dt(s);function s(t,e){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),mt(yt(r=i.call(this,t,e)),"state",{activeDrag:null,layout:Object(c.synchronizeLayoutWithChildren)(r.props.layout,r.props.children,r.props.cols,Object(c.compactType)(r.props)),mounted:!1,oldDragItem:null,oldLayout:null,oldResizeItem:null,droppingDOMNode:null,children:[]}),mt(yt(r),"dragEnterCounter",0),mt(yt(r),"onDragOver",(function(t){if(vt&&-1===t.nativeEvent.target.className.indexOf("react-grid-layout"))return t.preventDefault(),!1;var e=r.props,n=e.droppingItem,i=e.margin,a=e.cols,s=e.rowHeight,u=e.maxRows,c=e.width,l=e.containerPadding,p=r.state.layout,f=t.nativeEvent,d=f.layerX,g=f.layerY,y={left:d,top:g,e:t};if(r.state.droppingDOMNode){if(r.state.droppingPosition){var b=r.state.droppingPosition,m=b.left,v=b.top;(m!=d||v!=g)&&r.setState({droppingPosition:y})}}else{var w=h({cols:a,margin:i,maxRows:u,rowHeight:s,containerWidth:c,containerPadding:l||i},g,d,n.w,n.h);r.setState({droppingDOMNode:o.a.createElement("div",{key:n.i}),droppingPosition:y,layout:[].concat(lt(p),[ct(ct({},n),{},{x:w.x,y:w.y,static:!1,isDraggable:!0})])})}t.stopPropagation(),t.preventDefault()})),mt(yt(r),"removeDroppingPlaceholder",(function(){var t=r.props,e=t.droppingItem,n=t.cols,o=r.state.layout,i=Object(c.compact)(o.filter((function(t){return t.i!==e.i})),Object(c.compactType)(r.props),n);r.setState({layout:i,droppingDOMNode:null,activeDrag:null,droppingPosition:void 0})})),mt(yt(r),"onDragLeave",(function(){r.dragEnterCounter--,0===r.dragEnterCounter&&r.removeDroppingPlaceholder()})),mt(yt(r),"onDragEnter",(function(){r.dragEnterCounter++})),mt(yt(r),"onDrop",(function(t){var e=r.props.droppingItem,n=r.state.layout,o=n.find((function(t){return t.i===e.i}));r.dragEnterCounter=0,r.removeDroppingPlaceholder(),r.props.onDrop(n,o,t)})),Object(c.autoBindHandlers)(yt(r),["onDragStart","onDrag","onDragStop","onResizeStart","onResize","onResizeStop"]),r}return e=s,n=[{key:"getDerivedStateFromProps",value:function(t,e){var r;return e.activeDrag?null:(a()(t.layout,e.propsLayout)&&t.compactType===e.compactType?Object(c.childrenEqual)(t.children,e.children)||(r=e.layout):r=t.layout,r?{layout:Object(c.synchronizeLayoutWithChildren)(r,t.children,t.cols,Object(c.compactType)(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:"shouldComponentUpdate",value:function(t,e){return this.props.children!==t.children||!Object(c.fastRGLPropsEqual)(this.props,t,a.a)||this.state.activeDrag!==e.activeDrag||this.state.mounted!==e.mounted||this.state.droppingPosition!==e.droppingPosition}},{key:"componentDidUpdate",value:function(t,e){if(!this.state.activeDrag){var r=this.state.layout,n=e.layout;this.onLayoutMaybeChanged(r,n)}}},{key:"containerHeight",value:function(){if(this.props.autoSize){var t=Object(c.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,r,n){var o=n.e,i=n.node,a=this.state.layout,s=Object(c.getLayoutItem)(a,t);if(s)return this.setState({oldDragItem:Object(c.cloneLayoutItem)(s),oldLayout:this.state.layout}),this.props.onDragStart(a,s,s,null,o,i)}},{key:"onDrag",value:function(t,e,r,n){var o=n.e,i=n.node,a=this.state.oldDragItem,s=this.state.layout,u=this.props.cols,l=Object(c.getLayoutItem)(s,t);if(l){var p={w:l.w,h:l.h,x:l.x,y:l.y,diffX:0,diffY:0,placeholder:!0,i:t};s=Object(c.moveElement)(s,l,e,r,!0,this.props.preventCollision,Object(c.compactType)(this.props),u),this.props.onDrag(s,a,l,p,o,i),this.setState({layout:Object(c.compact)(s,Object(c.compactType)(this.props),u),activeDrag:p})}}},{key:"onDragStop",value:function(t,e,r,n){var o=n.e,i=n.node;if(this.state.activeDrag){var a=this.state.oldDragItem,s=this.state.layout,u=this.props,l=u.cols,p=u.preventCollision,f=Object(c.getLayoutItem)(s,t);if(f){s=Object(c.moveElement)(s,f,e,r,!0,p,Object(c.compactType)(this.props),l),this.props.onDragStop(s,a,f,null,o,i);var h=Object(c.compact)(s,Object(c.compactType)(this.props),l),d=this.state.oldLayout;this.setState({activeDrag:null,layout:h,oldDragItem:null,oldLayout:null}),this.onLayoutMaybeChanged(h,d)}}}},{key:"onLayoutMaybeChanged",value:function(t,e){e||(e=this.state.layout),a()(e,t)||this.props.onLayoutChange(t)}},{key:"onResizeStart",value:function(t,e,r,n){var o=n.e,i=n.node,a=this.state.layout,s=Object(c.getLayoutItem)(a,t);s&&(this.setState({oldResizeItem:Object(c.cloneLayoutItem)(s),oldLayout:this.state.layout}),this.props.onResizeStart(a,s,s,null,o,i))}},{key:"onResize",value:function(t,e,r,n,o,i){var a=i.e,s=i.node,u=this.state,l=u.layout,p=u.oldResizeItem,f=this.props,h=f.cols,d=f.rows,g=f.preventCollision,y=Object(c.getLayoutItem)(l,t);if(y){var b;if(y.placeholderX=y.x,y.placeholderY=y.y,g){var m=Object(c.getAllCollisions)(l,ct(ct({},y),{},{w:e,h:r})).filter((function(t){return t.i!==y.i}));if(b=m.length>0){var v=1/0,w=1/0;m.forEach((function(t){t.x>y.x&&(v=Math.min(v,t.x)),t.y>y.y&&(w=Math.min(w,t.y))})),Number.isFinite(v)&&(y.w=v-y.x),Number.isFinite(w)&&(y.h=w-y.y)}}b||(y.w=e,y.h=r);var S={w:y.w,h:y.h,x:y.x,y:y.y,diffX:n,diffY:o,static:!0,i:t};this.props.onResize(l,p,y,S,a,s),this.setState({layout:Object(c.compact)(l,Object(c.compactType)(this.props),h,d),activeDrag:S})}}},{key:"onResizeStop",value:function(t,e,r,n,o,i){var a=i.e,s=i.node,u=this.state,l=u.layout,p=u.oldResizeItem,f=this.props.cols,h=Object(c.getLayoutItem)(l,t);h.x+=n,h.y+=o,this.props.onResizeStop(l,p,h,null,a,s);var d=Object(c.compact)(l,Object(c.compactType)(this.props),f),g=this.state.oldLayout;this.setState({activeDrag:null,layout:d,oldResizeItem:null,oldLayout:null}),this.onLayoutMaybeChanged(d,g)}},{key:"placeholder",value:function(){var t=this.state.activeDrag;if(!t)return null;var e=this.props,r=e.width,n=e.cols,i=e.rows,a=e.margin,s=e.containerPadding,u=e.rowHeight,c=e.maxRows,l=e.useCSSTransforms,p=e.transformScale;return o.a.createElement(at,{w:t.w,h:t.h,x:t.x+t.diffX,y:t.y+t.diffY,i:t.i,className:"react-grid-placeholder",containerWidth:r,cols:n,rows:i,margin:a,containerPadding:s||a,maxRows:c,rowHeight:u,isDraggable:!1,isResizable:!1,isBounded:!1,useCSSTransforms:l,transformScale:p},o.a.createElement("div",null))}},{key:"processGridItem",value:function(t,e){if(t&&t.key){var r=Object(c.getLayoutItem)(this.state.layout,String(t.key));if(!r)return null;var n=this.props,i=n.width,a=n.cols,s=n.rows,u=n.margin,l=n.containerPadding,p=n.rowHeight,f=n.maxRows,h=n.isDraggable,d=n.isResizable,g=n.isBounded,y=n.useCSSTransforms,b=n.transformScale,m=n.draggableCancel,v=n.draggableHandle,w=n.resizeHandles,S=n.resizeHandle,O=this.state,z=O.mounted,x=O.droppingPosition,j="boolean"==typeof r.isDraggable?r.isDraggable:!r.static&&h,R="boolean"==typeof r.isResizable?r.isResizable:!r.static&&d,D=r.resizeHandles||w,P=j&&g&&!1!==r.isBounded;return o.a.createElement(at,{containerWidth:i,cols:a,rows:s,margin:u,containerPadding:l||u,maxRows:f,rowHeight:p,cancel:m,handle:v,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:j,isResizable:R,isBounded:P,useCSSTransforms:y&&z,usePercentages:!z,transformScale:b,w:r.w,h:r.h,x:r.x,y:r.y,i:r.i,minH:r.minH,minW:r.minW,maxH:r.maxH,maxW:r.maxW,static:r.static,droppingPosition:e?x:void 0,resizeHandles:D,resizeHandle:S},t)}}},{key:"render",value:function(){var t=this,e=this.props,r=e.className,n=e.style,i=e.isDroppable,a=e.innerRef,s=u()("react-grid-layout",r),l=ct({height:this.containerHeight()},n);return o.a.createElement("div",{ref:a,className:s,style:l,onDrop:i?this.onDrop:c.noop,onDragLeave:i?this.onDragLeave:c.noop,onDragEnter:i?this.onDragEnter:c.noop,onDragOver:i?this.onDragOver:c.noop},o.a.Children.map(this.props.children,(function(e){return t.processGridItem(e)})),i&&this.state.droppingDOMNode&&this.processGridItem(this.state.droppingDOMNode,!0),this.placeholder())}}])&&ft(e.prototype,r),n&&ft(e,n),s}(o.a.Component);mt(wt,"displayName","ReactGridLayout"),mt(wt,"propTypes",V),mt(wt,"defaultProps",{autoSize:!0,cols:12,className:"",style:{},draggableHandle:"",draggableCancel:"",containerPadding:null,rowHeight:150,rows:1/0,maxRows:1/0,layout:[],margin:[10,10],isBounded:!1,isDraggable:!0,isResizable:!0,isDroppable:!1,useCSSTransforms:!0,transformScale:1,verticalCompact:!0,compactType:"vertical",preventCollision:!1,droppingItem:{i:"__dropping-elem__",h:1,w:1},resizeHandles:["se"],onLayoutChange:c.noop,onDragStart:c.noop,onDrag:c.noop,onDragStop:c.noop,onResizeStart:c.noop,onResize:c.noop,onResizeStop:c.noop,onDrop:c.noop})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getBoundPosition=function(t,e,r){if(!t.props.bounds)return[e,r];var a=t.props.bounds;a="string"==typeof a?a:function(t){return{left:t.left,top:t.top,right:t.right,bottom:t.bottom}}(a);var s=i(t);if("string"==typeof a){var u,c=s.ownerDocument,l=c.defaultView;if(!((u="parent"===a?s.parentNode:c.querySelector(a))instanceof l.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');var p=l.getComputedStyle(s),f=l.getComputedStyle(u);a={left:-s.offsetLeft+(0,n.int)(f.paddingLeft)+(0,n.int)(p.marginLeft),top:-s.offsetTop+(0,n.int)(f.paddingTop)+(0,n.int)(p.marginTop),right:(0,o.innerWidth)(u)-(0,o.outerWidth)(s)-s.offsetLeft+(0,n.int)(f.paddingRight)-(0,n.int)(p.marginRight),bottom:(0,o.innerHeight)(u)-(0,o.outerHeight)(s)-s.offsetTop+(0,n.int)(f.paddingBottom)-(0,n.int)(p.marginBottom)}}(0,n.isNum)(a.right)&&(e=Math.min(e,a.right));(0,n.isNum)(a.bottom)&&(r=Math.min(r,a.bottom));(0,n.isNum)(a.left)&&(e=Math.max(e,a.left));(0,n.isNum)(a.top)&&(r=Math.max(r,a.top));return[e,r]},e.snapToGrid=function(t,e,r){var n=Math.round(e/t[0])*t[0],o=Math.round(r/t[1])*t[1];return[n,o]},e.canDragX=function(t){return"both"===t.props.axis||"x"===t.props.axis},e.canDragY=function(t){return"both"===t.props.axis||"y"===t.props.axis},e.getControlPosition=function(t,e,r){var n="number"==typeof e?(0,o.getTouch)(t,e):null;if("number"==typeof e&&!n)return null;var a=i(r),s=r.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,o.offsetXYFromParent)(n||t,s,r.props.scale)},e.createCoreData=function(t,e,r){var o=t.state,a=!(0,n.isNum)(o.lastX),s=i(t);return a?{node:s,deltaX:0,deltaY:0,lastX:e,lastY:r,x:e,y:r}:{node:s,deltaX:e-o.lastX,deltaY:r-o.lastY,lastX:o.lastX,lastY:o.lastY,x:e,y:r}},e.createDraggableData=function(t,e){var r=t.props.scale;return{node:e.node,x:t.state.x+e.deltaX/r,y:t.state.y+e.deltaY/r,deltaX:e.deltaX/r,deltaY:e.deltaY/r,lastX:t.state.x,lastY:t.state.y}};var n=r(9),o=r(10);function i(t){var e=t.findDOMNode();if(!e)throw new Error("<DraggableCore>: Unmounted during event!");return e}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){void 0}},function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,o=(n=r(2))&&n.__esModule?n:{default:n},i=r(7),a=r(26),s=r(15);function u(){return(u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){f(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var h=function(t){var e,r;function n(){for(var e,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return f(p(e=t.call.apply(t,[this].concat(n))||this),"state",void 0),f(p(e),"lastHandleRect",null),f(p(e),"slack",null),e}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var s=n.prototype;return s.componentWillUnmount=function(){this.resetData()},s.lockAspectRatio=function(t,e,r){return[t=(e=t/r)*r,e]},s.resetData=function(){this.lastHandleRect=this.slack=null},s.runConstraints=function(t,e){var r=[this.props.minConstraints,this.props.maxConstraints],n=r[0],o=r[1];if(!n&&!o)return[t,e];if(this.props.lockAspectRatio)if(e===this.props.height){var i=this.props.width/this.props.height;t=(e=t/i)*i}else{var a=this.props.height/this.props.width;e=(t=e/a)*a}var s=t,u=e,c=this.slack||[0,0],l=c[0],p=c[1];return t+=l,e+=p,n&&(t=Math.max(n[0],t),e=Math.max(n[1],e)),o&&(t=Math.min(o[0],t),e=Math.min(o[1],e)),this.slack=[l+(s-t),p+(u-e)],[t,e]},s.resizeHandler=function(t,e){var r=this;return function(n,o){var i=o.node,a=o.deltaX,s=o.deltaY;"onResizeStart"===t&&r.resetData();var u=("both"===r.props.axis||"x"===r.props.axis)&&"n"!==e&&"s"!==e,c=("both"===r.props.axis||"y"===r.props.axis)&&"e"!==e&&"w"!==e;if(u||c){var l=e[0],p=e[e.length-1],f=i.getBoundingClientRect();if(null!=r.lastHandleRect){if("w"===p)a+=f.left-r.lastHandleRect.left;if("n"===l)s+=f.top-r.lastHandleRect.top}r.lastHandleRect=f,"w"===p&&(a=-a),"n"===l&&(s=-s);var h=r.props.width+(u?a/r.props.transformScale:0),d=r.props.height+(c?s/r.props.transformScale:0),g=r.runConstraints(h,d);h=g[0],d=g[1];var y=h!==r.props.width||d!==r.props.height,b="function"==typeof r.props[t]?r.props[t]:null;b&&!("onResize"===t&&!y)&&("function"==typeof n.persist&&n.persist(),b(n,{node:i,size:{width:h,height:d},handle:e})),"onResizeStop"===t&&r.resetData()}}},s.renderResizeHandle=function(t){var e=this.props.handle;return e?"function"==typeof e?e(t):e:o.default.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+t})},s.render=function(){var t=this,e=this.props,r=e.children,n=e.className,s=e.draggableOpts,c=(e.width,e.height,e.handle,e.handleSize,e.lockAspectRatio,e.axis,e.minConstraints,e.maxConstraints,e.onResize,e.onResizeStop,e.onResizeStart,e.resizeHandles),p=(e.transformScale,function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(e,["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"]));return(0,a.cloneElement)(r,l(l({},p),{},{className:(n?n+" ":"")+"react-resizable",children:[].concat(r.props.children,c.map((function(e){return o.default.createElement(i.DraggableCore,u({},s,{key:"resizableHandle-"+e,onStop:t.resizeHandler("onResizeStop",e),onStart:t.resizeHandler("onResizeStart",e),onDrag:t.resizeHandler("onResize",e)}),t.renderResizeHandle(e))})))}))},n}(o.default.Component);e.default=h,f(h,"propTypes",s.resizableProps),f(h,"defaultProps",{handleSize:[20,20],lockAspectRatio:!1,axis:"both",minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1})},function(t,e,r){"use strict";e.__esModule=!0,e.resizableProps=void 0;var n,o=(n=r(0))&&n.__esModule?n:{default:n};r(7);var i={axis:o.default.oneOf(["both","x","y","none"]),className:o.default.string,children:o.default.element.isRequired,draggableOpts:o.default.shape({allowAnyClick:o.default.bool,cancel:o.default.string,children:o.default.node,disabled:o.default.bool,enableUserSelectHack:o.default.bool,offsetParent:o.default.node,grid:o.default.arrayOf(o.default.number),handle:o.default.string,nodeRef:o.default.object,onStart:o.default.func,onDrag:o.default.func,onStop:o.default.func,onMouseDown:o.default.func,scale:o.default.number}),height:o.default.number.isRequired,handle:o.default.oneOfType([o.default.node,o.default.func]),handleSize:o.default.arrayOf(o.default.number),lockAspectRatio:o.default.bool,maxConstraints:o.default.arrayOf(o.default.number),minConstraints:o.default.arrayOf(o.default.number),onResizeStop:o.default.func,onResizeStart:o.default.func,onResize:o.default.func,resizeHandles:o.default.arrayOf(o.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:o.default.number,width:o.default.number.isRequired};e.resizableProps=i},function(t,e,r){"use strict";t.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},t.exports.Resizable=r(14).default,t.exports.ResizableBox=r(27).default},function(t,e,r){t.exports=r(11).default,t.exports.utils=r(1),t.exports.Responsive=r(28).default,t.exports.Responsive.utils=r(4),t.exports.WidthProvider=r(29).default},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},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){t.exports=function(t,e,r){return t===e||t.className===e.className&&r(t.style,e.style)&&t.width===e.width&&t.autoSize===e.autoSize&&t.cols===e.cols&&t.draggableCancel===e.draggableCancel&&t.draggableHandle===e.draggableHandle&&r(t.verticalCompact,e.verticalCompact)&&r(t.compactType,e.compactType)&&r(t.layout,e.layout)&&r(t.margin,e.margin)&&r(t.containerPadding,e.containerPadding)&&t.rowHeight===e.rowHeight&&t.maxRows===e.maxRows&&t.isBounded===e.isBounded&&t.isDraggable===e.isDraggable&&t.isResizable===e.isResizable&&t.preventCollision===e.preventCollision&&t.useCSSTransforms===e.useCSSTransforms&&t.transformScale===e.transformScale&&t.isDroppable===e.isDroppable&&r(t.resizeHandles,e.resizeHandles)&&r(t.resizeHandle,e.resizeHandle)&&t.onLayoutChange===e.onLayoutChange&&t.onDragStart===e.onDragStart&&t.onDrag===e.onDrag&&t.onDragStop===e.onDragStop&&t.onResizeStart===e.onResizeStart&&t.onResize===e.onResize&&t.onResizeStop===e.onResizeStop&&t.onDrop===e.onDrop&&r(t.droppingItem,e.droppingItem)&&r(t.innerRef,e.innerRef)}},function(t,e,r){"use strict";var n=r(22);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,r,o,i,a){if(a!==n){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 r={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:i,resetWarningCache:o};return r.PropTypes=r,r}},function(t,e,r){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return l.default}}),e.default=void 0;var n=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==d(t)&&"function"!=typeof t)return{default:t};var e=h();if(e&&e.has(t))return e.get(t);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var i=n?Object.getOwnPropertyDescriptor(t,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=t[o]}r.default=t,e&&e.set(t,r);return r}(r(2)),o=f(r(0)),i=f(r(6)),a=f(r(8)),s=r(10),u=r(12),c=r(9),l=f(r(25)),p=f(r(13));function f(t){return t&&t.__esModule?t:{default:t}}function h(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return h=function(){return t},t}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 g(){return(g=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function y(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function b(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return m(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function v(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function w(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?v(Object(r),!0).forEach((function(e){P(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function S(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function O(t,e,r){return e&&S(t.prototype,e),r&&S(t,r),t}function z(t,e){return(z=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function x(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=D(t);if(e){var o=D(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return j(this,r)}}function j(t,e){return!e||"object"!==d(e)&&"function"!=typeof e?R(t):e}function R(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function D(t){return(D=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function P(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var _=function(t){!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&&z(t,e)}(r,t);var e=x(r);function r(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),P(R(n=e.call(this,t)),"onDragStart",(function(t,e){if((0,p.default)("Draggable: onDragStart: %j",e),!1===n.props.onStart(t,(0,u.createDraggableData)(R(n),e)))return!1;n.setState({dragging:!0,dragged:!0})})),P(R(n),"onDrag",(function(t,e){if(!n.state.dragging)return!1;(0,p.default)("Draggable: onDrag: %j",e);var r=(0,u.createDraggableData)(R(n),e),o={x:r.x,y:r.y};if(n.props.bounds){var i=o.x,a=o.y;o.x+=n.state.slackX,o.y+=n.state.slackY;var s=b((0,u.getBoundPosition)(R(n),o.x,o.y),2),c=s[0],l=s[1];o.x=c,o.y=l,o.slackX=n.state.slackX+(i-o.x),o.slackY=n.state.slackY+(a-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)})),P(R(n),"onDragStop",(function(t,e){if(!n.state.dragging)return!1;if(!1===n.props.onStop(t,(0,u.createDraggableData)(R(n),e)))return!1;(0,p.default)("Draggable: onDragStop: %j",e);var r={dragging:!1,slackX:0,slackY:0};if(Boolean(n.props.position)){var o=n.props.position,i=o.x,a=o.y;r.x=i,r.y=a}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:w({},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 O(r,null,[{key:"getDerivedStateFromProps",value:function(t,e){var r=t.position,n=e.prevPropsPosition;return!r||n&&r.x===n.x&&r.y===n.y?null:((0,p.default)("Draggable: getDerivedStateFromProps %j",{position:r,prevPropsPosition:n}),{x:r.x,y:r.y,prevPropsPosition:w({},r)})}}]),O(r,[{key:"componentDidMount",value:function(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){return this.props.nodeRef?this.props.nodeRef.current:i.default.findDOMNode(this)}},{key:"render",value:function(){var t,e=this.props,r=(e.axis,e.bounds,e.children),o=e.defaultPosition,i=e.defaultClassName,c=e.defaultClassNameDragging,p=e.defaultClassNameDragged,f=e.position,h=e.positionOffset,d=(e.scale,y(e,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"])),b={},m=null,v=!Boolean(f)||this.state.dragging,S=f||o,O={x:(0,u.canDragX)(this)&&v?this.state.x:S.x,y:(0,u.canDragY)(this)&&v?this.state.y:S.y};this.state.isElementSVG?m=(0,s.createSVGTransform)(O,h):b=(0,s.createCSSTransform)(O,h);var z=(0,a.default)(r.props.className||"",i,(P(t={},c,this.state.dragging),P(t,p,this.state.dragged),t));return n.createElement(l.default,g({},d,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),n.cloneElement(n.Children.only(r),{className:z,style:w(w({},r.props.style),b),transform:m}))}}]),r}(n.Component);e.default=_,P(_,"displayName","Draggable"),P(_,"propTypes",w(w({},l.default.propTypes),{},{axis:o.default.oneOf(["both","x","y","none"]),bounds:o.default.oneOfType([o.default.shape({left:o.default.number,right:o.default.number,top:o.default.number,bottom:o.default.number}),o.default.string,o.default.oneOf([!1])]),defaultClassName:o.default.string,defaultClassNameDragging:o.default.string,defaultClassNameDragged:o.default.string,defaultPosition:o.default.shape({x:o.default.number,y:o.default.number}),positionOffset:o.default.shape({x:o.default.oneOfType([o.default.number,o.default.string]),y:o.default.oneOfType([o.default.number,o.default.string])}),position:o.default.shape({x:o.default.number,y:o.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe})),P(_,"defaultProps",w(w({},l.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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getPrefix=o,e.browserPrefixToKey=i,e.browserPrefixToStyle=function(t,e){return e?"-".concat(e.toLowerCase(),"-").concat(t):t},e.default=void 0;var n=["Moz","Webkit","O","ms"];function o(){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 r=0;r<n.length;r++)if(i(t,n[r])in e)return n[r];return""}function i(t,e){return e?"".concat(e).concat(function(t){for(var e="",r=!0,n=0;n<t.length;n++)r?(e+=t[n].toUpperCase(),r=!1):"-"===t[n]?r=!0:e+=t[n];return e}(t)):t}var a=o();e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==f(t)&&"function"!=typeof t)return{default:t};var e=p();if(e&&e.has(t))return e.get(t);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var i=n?Object.getOwnPropertyDescriptor(t,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=t[o]}r.default=t,e&&e.set(t,r);return r}(r(2)),o=l(r(0)),i=l(r(6)),a=r(10),s=r(12),u=r(9),c=l(r(13));function l(t){return t&&t.__esModule?t:{default:t}}function p(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return p=function(){return t},t}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 h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return d(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function b(t,e){return(b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function m(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=S(t);if(e){var o=S(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return v(this,r)}}function v(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?w(t):e}function w(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function S(t){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function O(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var z={start:"touchstart",move:"touchmove",stop:"touchend"},x={start:"mousedown",move:"mousemove",stop:"mouseup"},j=x,R=function(t){!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)}(l,t);var e,r,o,u=m(l);function l(){var t;g(this,l);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return O(w(t=u.call.apply(u,[this].concat(r))),"state",{dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null}),O(w(t),"mounted",!1),O(w(t),"handleDragStart",(function(e){if(t.props.onMouseDown(e),!t.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;var r=t.findDOMNode();if(!r||!r.ownerDocument||!r.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");var n=r.ownerDocument;if(!(t.props.disabled||!(e.target instanceof n.defaultView.Node)||t.props.handle&&!(0,a.matchesSelectorAndParentsTo)(e.target,t.props.handle,r)||t.props.cancel&&(0,a.matchesSelectorAndParentsTo)(e.target,t.props.cancel,r))){"touchstart"===e.type&&e.preventDefault();var o=(0,a.getTouchIdentifier)(e);t.setState({touchIdentifier:o});var i=(0,s.getControlPosition)(e,o,w(t));if(null!=i){var u=i.x,l=i.y,p=(0,s.createCoreData)(w(t),u,l);(0,c.default)("DraggableCore: handleDragStart: %j",p),(0,c.default)("calling",t.props.onStart),!1!==t.props.onStart(e,p)&&!1!==t.mounted&&(t.props.enableUserSelectHack&&(0,a.addUserSelectStyles)(n),t.setState({dragging:!0,lastX:u,lastY:l}),(0,a.addEvent)(n,j.move,t.handleDrag),(0,a.addEvent)(n,j.stop,t.handleDragStop))}}})),O(w(t),"handleDrag",(function(e){var r=(0,s.getControlPosition)(e,t.state.touchIdentifier,w(t));if(null!=r){var n=r.x,o=r.y;if(Array.isArray(t.props.grid)){var i=n-t.state.lastX,a=o-t.state.lastY,u=h((0,s.snapToGrid)(t.props.grid,i,a),2);if(i=u[0],a=u[1],!i&&!a)return;n=t.state.lastX+i,o=t.state.lastY+a}var l=(0,s.createCoreData)(w(t),n,o);if((0,c.default)("DraggableCore: handleDrag: %j",l),!1!==t.props.onDrag(e,l)&&!1!==t.mounted)t.setState({lastX:n,lastY:o});else try{t.handleDragStop(new MouseEvent("mouseup"))}catch(e){var p=document.createEvent("MouseEvents");p.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),t.handleDragStop(p)}}})),O(w(t),"handleDragStop",(function(e){if(t.state.dragging){var r=(0,s.getControlPosition)(e,t.state.touchIdentifier,w(t));if(null!=r){var n=r.x,o=r.y,i=(0,s.createCoreData)(w(t),n,o);if(!1===t.props.onStop(e,i)||!1===t.mounted)return!1;var u=t.findDOMNode();u&&t.props.enableUserSelectHack&&(0,a.removeUserSelectStyles)(u.ownerDocument),(0,c.default)("DraggableCore: handleDragStop: %j",i),t.setState({dragging:!1,lastX:NaN,lastY:NaN}),u&&((0,c.default)("DraggableCore: Removing handlers"),(0,a.removeEvent)(u.ownerDocument,j.move,t.handleDrag),(0,a.removeEvent)(u.ownerDocument,j.stop,t.handleDragStop))}}})),O(w(t),"onMouseDown",(function(e){return j=x,t.handleDragStart(e)})),O(w(t),"onMouseUp",(function(e){return j=x,t.handleDragStop(e)})),O(w(t),"onTouchStart",(function(e){return j=z,t.handleDragStart(e)})),O(w(t),"onTouchEnd",(function(e){return j=z,t.handleDragStop(e)})),t}return e=l,(r=[{key:"componentDidMount",value:function(){this.mounted=!0;var t=this.findDOMNode();t&&(0,a.addEvent)(t,z.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var t=this.findDOMNode();if(t){var e=t.ownerDocument;(0,a.removeEvent)(e,x.move,this.handleDrag),(0,a.removeEvent)(e,z.move,this.handleDrag),(0,a.removeEvent)(e,x.stop,this.handleDragStop),(0,a.removeEvent)(e,z.stop,this.handleDragStop),(0,a.removeEvent)(t,z.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,a.removeUserSelectStyles)(e)}}},{key:"findDOMNode",value:function(){return this.props.nodeRef?this.props.nodeRef.current:i.default.findDOMNode(this)}},{key:"render",value:function(){return n.cloneElement(n.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}])&&y(e.prototype,r),o&&y(e,o),l}(n.Component);e.default=R,O(R,"displayName","DraggableCore"),O(R,"propTypes",{allowAnyClick:o.default.bool,disabled:o.default.bool,enableUserSelectHack:o.default.bool,offsetParent:function(t,e){if(t[e]&&1!==t[e].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:o.default.arrayOf(o.default.number),handle:o.default.string,cancel:o.default.string,nodeRef:o.default.object,onStart:o.default.func,onDrag:o.default.func,onStop:o.default.func,onMouseDown:o.default.func,scale:o.default.number,className:u.dontSetMe,style:u.dontSetMe,transform:u.dontSetMe}),O(R,"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(){},scale:1})},function(t,e,r){"use strict";e.__esModule=!0,e.cloneElement=function(t,e){e.style&&t.props.style&&(e.style=a(a({},t.props.style),e.style));e.className&&t.props.className&&(e.className=t.props.className+" "+e.className);return o.default.cloneElement(t,e)};var n,o=(n=r(2))&&n.__esModule?n:{default:n};function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function s(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var e=u();if(e&&e.has(t))return e.get(t);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var i=n?Object.getOwnPropertyDescriptor(t,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=t[o]}r.default=t,e&&e.set(t,r);return r}(r(2)),o=s(r(0)),i=s(r(14)),a=r(15);function s(t){return t&&t.__esModule?t:{default:t}}function u(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return u=function(){return t},t}function c(){return(c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach((function(e){h(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var d=function(t){var e,r;function o(){for(var e,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return h(f(e=t.call.apply(t,[this].concat(n))||this),"state",{width:e.props.width,height:e.props.height,propsWidth:e.props.width,propsHeight:e.props.height}),h(f(e),"onResize",(function(t,r){var n=r.size;e.props.onResize?(t.persist&&t.persist(),e.setState(n,(function(){return e.props.onResize&&e.props.onResize(t,r)}))):e.setState(n)})),e}return r=t,(e=o).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,o.getDerivedStateFromProps=function(t,e){return e.propsWidth!==t.width||e.propsHeight!==t.height?{width:t.width,height:t.height,propsWidth:t.width,propsHeight:t.height}:null},o.prototype.render=function(){var t=this.props,e=t.handle,r=t.handleSize,o=(t.onResize,t.onResizeStart),a=t.onResizeStop,s=t.draggableOpts,u=t.minConstraints,l=t.maxConstraints,f=t.lockAspectRatio,h=t.axis,d=(t.width,t.height,t.resizeHandles),g=t.style,y=t.transformScale,b=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"]);return n.createElement(i.default,{axis:h,draggableOpts:s,handle:e,handleSize:r,height:this.state.height,lockAspectRatio:f,maxConstraints:l,minConstraints:u,onResizeStart:o,onResize:this.onResize,onResizeStop:a,resizeHandles:d,transformScale:y,width:this.state.width},n.createElement("div",c({},b,{style:p(p({},g),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},o}(n.Component);e.default=d,h(d,"propTypes",p(p({},a.resizableProps),{},{children:o.default.element}))},function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return R}));var n=r(2),o=r(0),i=r.n(o),a=r(3),s=r.n(a),u=r(1),c=r(4),l=r(11);function p(t){return(p="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 f(){return(f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function h(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function g(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach((function(e){z(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function v(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=O(t);if(e){var o=O(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return w(this,r)}}function w(t,e){return!e||"object"!==p(e)&&"function"!=typeof e?S(t):e}function S(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function O(t){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function z(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var x=function(t){return Object.prototype.toString.call(t)};function j(t,e){return null==t?null:Array.isArray(t)?t:t[e]}var R=function(t){!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&&m(t,e)}(a,t);var e,r,o,i=v(a);function a(){var t;y(this,a);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return z(S(t=i.call.apply(i,[this].concat(r))),"state",t.generateInitialState()),z(S(t),"onLayoutChange",(function(e){t.props.onLayoutChange(e,g(g({},t.props.layouts),{},z({},t.state.breakpoint,e)))})),t}return e=a,o=[{key:"getDerivedStateFromProps",value:function(t,e){if(!s()(t.layouts,e.layouts)){var r=e.breakpoint,n=e.cols;return{layout:Object(c.findOrGenerateResponsiveLayout)(t.layouts,t.breakpoints,r,r,n,t.compactType),layouts:t.layouts}}return null}}],(r=[{key:"generateInitialState",value:function(){var t=this.props,e=t.width,r=t.breakpoints,n=t.layouts,o=t.cols,i=Object(c.getBreakpointFromWidth)(r,e),a=Object(c.getColsFromBreakpoint)(i,o),s=!1===this.props.verticalCompact?null:this.props.compactType;return{layout:Object(c.findOrGenerateResponsiveLayout)(n,r,i,i,a,s),breakpoint:i,cols:a}}},{key:"componentDidUpdate",value:function(t){this.props.width==t.width&&this.props.breakpoint===t.breakpoint&&s()(this.props.breakpoints,t.breakpoints)&&s()(this.props.cols,t.cols)||this.onWidthChange(t)}},{key:"onWidthChange",value:function(t){var e=this.props,r=e.breakpoints,n=e.cols,o=e.layouts,i=e.compactType,a=this.props.breakpoint||Object(c.getBreakpointFromWidth)(this.props.breakpoints,this.props.width),s=this.state.breakpoint,l=Object(c.getColsFromBreakpoint)(a,n),p=g({},o);if(s!==a||t.breakpoints!==r||t.cols!==n){s in p||(p[s]=Object(u.cloneLayout)(this.state.layout));var f=Object(c.findOrGenerateResponsiveLayout)(p,r,a,s,l,i);f=Object(u.synchronizeLayoutWithChildren)(f,this.props.children,l,i),p[a]=f,this.props.onLayoutChange(f,p),this.props.onBreakpointChange(a,l),this.setState({breakpoint:a,layout:f,cols:l})}var h=j(this.props.margin,a),d=j(this.props.containerPadding,a);this.props.onWidthChange(this.props.width,h,l,d)}},{key:"render",value:function(){var t=this.props,e=(t.breakpoint,t.breakpoints,t.cols,t.layouts,t.margin),r=t.containerPadding,o=(t.onBreakpointChange,t.onLayoutChange,t.onWidthChange,h(t,["breakpoint","breakpoints","cols","layouts","margin","containerPadding","onBreakpointChange","onLayoutChange","onWidthChange"]));return n.createElement(l.default,f({},o,{margin:j(e,this.state.breakpoint),containerPadding:j(r,this.state.breakpoint),onLayoutChange:this.onLayoutChange,layout:this.state.layout,cols:this.state.cols}))}}])&&b(e.prototype,r),o&&b(e,o),a}(n.Component);z(R,"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]"!==x(t[e]))throw new Error("Layout property must be an object. Received: "+x(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}),z(R,"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,r){"use strict";r.r(e),r.d(e,"default",(function(){return v}));var n=r(2),o=r(0),i=r.n(o),a=r(6),s=r.n(a);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 c(){return(c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function l(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=b(t);if(e){var o=b(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return g(this,r)}}function g(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?y(t):e}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function m(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function v(t){var e,r;return r=e=function(e){!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&&h(t,e)}(u,e);var r,o,i,a=d(u);function u(){var t;p(this,u);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return m(y(t=a.call.apply(a,[this].concat(r))),"state",{width:1280}),m(y(t),"mounted",!1),m(y(t),"onWindowResize",(function(){if(t.mounted){var e=s.a.findDOMNode(y(t));e instanceof HTMLElement&&t.setState({width:e.offsetWidth})}})),t}return r=u,(o=[{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,r=e.measureBeforeMount,o=l(e,["measureBeforeMount"]);return r&&!this.mounted?n.createElement("div",{className:this.props.className,style:this.props.style}):n.createElement(t,c({},o,this.state))}}])&&f(r.prototype,o),i&&f(r,i),u}(n.Component),m(e,"defaultProps",{measureBeforeMount:!1}),m(e,"propTypes",{measureBeforeMount:i.a.bool}),r}}])}));
  //# sourceMappingURL=react-grid-layout.min.js.map