@planningcenter/react-beautiful-dnd 13.4.0 → 13.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,27 +1,28 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('react-dom')) :
3
3
  typeof define === 'function' && define.amd ? define(['exports', 'react', 'react-dom'], factory) :
4
- (global = global || self, factory(global.ReactBeautifulDnd = {}, global.React, global.ReactDOM));
5
- }(this, (function (exports, React, ReactDOM) { 'use strict';
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ReactBeautifulDnd = {}, global.React, global.ReactDOM));
5
+ })(this, (function (exports, React, ReactDOM) { 'use strict';
6
6
 
7
- var React__default = 'default' in React ? React['default'] : React;
8
- var ReactDOM__default = 'default' in ReactDOM ? ReactDOM['default'] : ReactDOM;
7
+ function _setPrototypeOf(t, e) {
8
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
9
+ return t.__proto__ = e, t;
10
+ }, _setPrototypeOf(t, e);
11
+ }
9
12
 
10
- function _inheritsLoose(subClass, superClass) {
11
- subClass.prototype = Object.create(superClass.prototype);
12
- subClass.prototype.constructor = subClass;
13
- subClass.__proto__ = superClass;
13
+ function _inheritsLoose(t, o) {
14
+ t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
14
15
  }
15
16
 
16
17
  var spacesAndTabs = /[ \t]{2,}/g;
17
18
  var lineStartWithSpaces = /^[ \t]*/gm;
18
19
 
19
- var clean = function clean(value) {
20
+ var clean$2 = function clean(value) {
20
21
  return value.replace(spacesAndTabs, ' ').replace(lineStartWithSpaces, '').trim();
21
22
  };
22
23
 
23
24
  var getDevMessage = function getDevMessage(message) {
24
- return clean("\n %creact-beautiful-dnd\n\n %c" + clean(message) + "\n\n %c\uD83D\uDC77\u200D This is a development only message. It will be removed in production builds.\n");
25
+ return clean$2("\n %creact-beautiful-dnd\n\n %c" + clean$2(message) + "\n\n %c\uD83D\uDC77\u200D This is a development only message. It will be removed in production builds.\n");
25
26
  };
26
27
 
27
28
  var getFormattedMessage = function getFormattedMessage(message) {
@@ -37,27 +38,19 @@
37
38
 
38
39
  (_console = console)[type].apply(_console, getFormattedMessage(message));
39
40
  }
40
- var warning = log.bind(null, 'warn');
41
+ var warning$2 = log.bind(null, 'warn');
41
42
  var error = log.bind(null, 'error');
42
43
 
43
- function noop() {}
44
+ function noop$2() {}
44
45
 
45
46
  function _extends() {
46
- _extends = Object.assign || function (target) {
47
- for (var i = 1; i < arguments.length; i++) {
48
- var source = arguments[i];
49
-
50
- for (var key in source) {
51
- if (Object.prototype.hasOwnProperty.call(source, key)) {
52
- target[key] = source[key];
53
- }
54
- }
47
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
48
+ for (var e = 1; e < arguments.length; e++) {
49
+ var t = arguments[e];
50
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
55
51
  }
56
-
57
- return target;
58
- };
59
-
60
- return _extends.apply(this, arguments);
52
+ return n;
53
+ }, _extends.apply(null, arguments);
61
54
  }
62
55
 
63
56
  function getOptions(shared, fromBinding) {
@@ -79,7 +72,8 @@
79
72
  };
80
73
  }
81
74
 
82
- var prefix = 'Invariant failed';
75
+ var isProduction$1 = "development" === 'production';
76
+ var prefix$2 = 'Invariant failed';
83
77
  function RbdInvariant(message) {
84
78
  this.message = message;
85
79
  }
@@ -88,13 +82,15 @@
88
82
  return this.message;
89
83
  };
90
84
 
91
- function invariant(condition, message) {
85
+ function invariant$1(condition, message) {
92
86
  if (condition) {
93
87
  return;
94
88
  }
95
89
 
96
- {
97
- throw new RbdInvariant(prefix + ": " + (message || ''));
90
+ if (isProduction$1) {
91
+ throw new RbdInvariant(prefix$2);
92
+ } else {
93
+ throw new RbdInvariant(prefix$2 + ": " + (message || ''));
98
94
  }
99
95
  }
100
96
 
@@ -110,14 +106,14 @@
110
106
 
111
107
  _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
112
108
  _this.callbacks = null;
113
- _this.unbind = noop;
109
+ _this.unbind = noop$2;
114
110
 
115
111
  _this.onWindowError = function (event) {
116
112
  var callbacks = _this.getCallbacks();
117
113
 
118
114
  if (callbacks.isDragging()) {
119
115
  callbacks.tryAbort();
120
- warning("\n An error was caught by our window 'error' event listener while a drag was occurring.\n The active drag has been aborted.\n ") ;
116
+ warning$2("\n An error was caught by our window 'error' event listener while a drag was occurring.\n The active drag has been aborted.\n ") ;
121
117
  }
122
118
 
123
119
  var err = event.error;
@@ -177,7 +173,7 @@
177
173
  };
178
174
 
179
175
  return ErrorBoundary;
180
- }(React__default.Component);
176
+ }(React.Component);
181
177
 
182
178
  var dragHandleUsageInstructions = "\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n";
183
179
 
@@ -256,6 +252,7 @@
256
252
  onDragUpdate: onDragUpdate,
257
253
  onDragEnd: onDragEnd
258
254
  };
255
+ var preset$1 = preset;
259
256
 
260
257
  function symbolObservablePonyfill(root) {
261
258
  var result;
@@ -315,7 +312,7 @@
315
312
  * @param {any} obj The object to inspect.
316
313
  * @returns {boolean} True if the argument appears to be a plain object.
317
314
  */
318
- function isPlainObject(obj) {
315
+ function isPlainObject$1(obj) {
319
316
  if (typeof obj !== 'object' || obj === null) return false;
320
317
  var proto = obj;
321
318
 
@@ -352,7 +349,7 @@
352
349
  * and subscribe to changes.
353
350
  */
354
351
 
355
- function createStore(reducer, preloadedState, enhancer) {
352
+ function createStore$1(reducer, preloadedState, enhancer) {
356
353
  var _ref2;
357
354
 
358
355
  if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {
@@ -369,7 +366,7 @@
369
366
  throw new Error('Expected the enhancer to be a function.');
370
367
  }
371
368
 
372
- return enhancer(createStore)(reducer, preloadedState);
369
+ return enhancer(createStore$1)(reducer, preloadedState);
373
370
  }
374
371
 
375
372
  if (typeof reducer !== 'function') {
@@ -489,7 +486,7 @@
489
486
 
490
487
 
491
488
  function dispatch(action) {
492
- if (!isPlainObject(action)) {
489
+ if (!isPlainObject$1(action)) {
493
490
  throw new Error('Actions must be plain objects. ' + 'Use custom middleware for async actions.');
494
491
  }
495
492
 
@@ -807,7 +804,7 @@
807
804
 
808
805
  function isCrushed() {}
809
806
 
810
- if ( typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') {
807
+ if (typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') {
811
808
  warning$1('You are currently using minified code outside of NODE_ENV === "production". ' + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) ' + 'to ensure you have the correct code for your production build.');
812
809
  }
813
810
 
@@ -829,34 +826,34 @@
829
826
  });
830
827
 
831
828
  unwrapExports(reactIs_production_min);
832
- var reactIs_production_min_1 = reactIs_production_min.typeOf;
833
- var reactIs_production_min_2 = reactIs_production_min.AsyncMode;
834
- var reactIs_production_min_3 = reactIs_production_min.ConcurrentMode;
835
- var reactIs_production_min_4 = reactIs_production_min.ContextConsumer;
836
- var reactIs_production_min_5 = reactIs_production_min.ContextProvider;
837
- var reactIs_production_min_6 = reactIs_production_min.Element;
838
- var reactIs_production_min_7 = reactIs_production_min.ForwardRef;
839
- var reactIs_production_min_8 = reactIs_production_min.Fragment;
840
- var reactIs_production_min_9 = reactIs_production_min.Lazy;
841
- var reactIs_production_min_10 = reactIs_production_min.Memo;
842
- var reactIs_production_min_11 = reactIs_production_min.Portal;
843
- var reactIs_production_min_12 = reactIs_production_min.Profiler;
844
- var reactIs_production_min_13 = reactIs_production_min.StrictMode;
845
- var reactIs_production_min_14 = reactIs_production_min.Suspense;
846
- var reactIs_production_min_15 = reactIs_production_min.isValidElementType;
847
- var reactIs_production_min_16 = reactIs_production_min.isAsyncMode;
848
- var reactIs_production_min_17 = reactIs_production_min.isConcurrentMode;
849
- var reactIs_production_min_18 = reactIs_production_min.isContextConsumer;
850
- var reactIs_production_min_19 = reactIs_production_min.isContextProvider;
851
- var reactIs_production_min_20 = reactIs_production_min.isElement;
852
- var reactIs_production_min_21 = reactIs_production_min.isForwardRef;
853
- var reactIs_production_min_22 = reactIs_production_min.isFragment;
854
- var reactIs_production_min_23 = reactIs_production_min.isLazy;
855
- var reactIs_production_min_24 = reactIs_production_min.isMemo;
856
- var reactIs_production_min_25 = reactIs_production_min.isPortal;
857
- var reactIs_production_min_26 = reactIs_production_min.isProfiler;
858
- var reactIs_production_min_27 = reactIs_production_min.isStrictMode;
859
- var reactIs_production_min_28 = reactIs_production_min.isSuspense;
829
+ reactIs_production_min.typeOf;
830
+ reactIs_production_min.AsyncMode;
831
+ reactIs_production_min.ConcurrentMode;
832
+ reactIs_production_min.ContextConsumer;
833
+ reactIs_production_min.ContextProvider;
834
+ reactIs_production_min.Element;
835
+ reactIs_production_min.ForwardRef;
836
+ reactIs_production_min.Fragment;
837
+ reactIs_production_min.Lazy;
838
+ reactIs_production_min.Memo;
839
+ reactIs_production_min.Portal;
840
+ reactIs_production_min.Profiler;
841
+ reactIs_production_min.StrictMode;
842
+ reactIs_production_min.Suspense;
843
+ reactIs_production_min.isValidElementType;
844
+ reactIs_production_min.isAsyncMode;
845
+ reactIs_production_min.isConcurrentMode;
846
+ reactIs_production_min.isContextConsumer;
847
+ reactIs_production_min.isContextProvider;
848
+ reactIs_production_min.isElement;
849
+ reactIs_production_min.isForwardRef;
850
+ reactIs_production_min.isFragment;
851
+ reactIs_production_min.isLazy;
852
+ reactIs_production_min.isMemo;
853
+ reactIs_production_min.isPortal;
854
+ reactIs_production_min.isProfiler;
855
+ reactIs_production_min.isStrictMode;
856
+ reactIs_production_min.isSuspense;
860
857
 
861
858
  var reactIs_development = createCommonjsModule(function (module, exports) {
862
859
 
@@ -1087,34 +1084,34 @@
1087
1084
  });
1088
1085
 
1089
1086
  unwrapExports(reactIs_development);
1090
- var reactIs_development_1 = reactIs_development.typeOf;
1091
- var reactIs_development_2 = reactIs_development.AsyncMode;
1092
- var reactIs_development_3 = reactIs_development.ConcurrentMode;
1093
- var reactIs_development_4 = reactIs_development.ContextConsumer;
1094
- var reactIs_development_5 = reactIs_development.ContextProvider;
1095
- var reactIs_development_6 = reactIs_development.Element;
1096
- var reactIs_development_7 = reactIs_development.ForwardRef;
1097
- var reactIs_development_8 = reactIs_development.Fragment;
1098
- var reactIs_development_9 = reactIs_development.Lazy;
1099
- var reactIs_development_10 = reactIs_development.Memo;
1100
- var reactIs_development_11 = reactIs_development.Portal;
1101
- var reactIs_development_12 = reactIs_development.Profiler;
1102
- var reactIs_development_13 = reactIs_development.StrictMode;
1103
- var reactIs_development_14 = reactIs_development.Suspense;
1104
- var reactIs_development_15 = reactIs_development.isValidElementType;
1105
- var reactIs_development_16 = reactIs_development.isAsyncMode;
1106
- var reactIs_development_17 = reactIs_development.isConcurrentMode;
1107
- var reactIs_development_18 = reactIs_development.isContextConsumer;
1108
- var reactIs_development_19 = reactIs_development.isContextProvider;
1109
- var reactIs_development_20 = reactIs_development.isElement;
1110
- var reactIs_development_21 = reactIs_development.isForwardRef;
1111
- var reactIs_development_22 = reactIs_development.isFragment;
1112
- var reactIs_development_23 = reactIs_development.isLazy;
1113
- var reactIs_development_24 = reactIs_development.isMemo;
1114
- var reactIs_development_25 = reactIs_development.isPortal;
1115
- var reactIs_development_26 = reactIs_development.isProfiler;
1116
- var reactIs_development_27 = reactIs_development.isStrictMode;
1117
- var reactIs_development_28 = reactIs_development.isSuspense;
1087
+ reactIs_development.typeOf;
1088
+ reactIs_development.AsyncMode;
1089
+ reactIs_development.ConcurrentMode;
1090
+ reactIs_development.ContextConsumer;
1091
+ reactIs_development.ContextProvider;
1092
+ reactIs_development.Element;
1093
+ reactIs_development.ForwardRef;
1094
+ reactIs_development.Fragment;
1095
+ reactIs_development.Lazy;
1096
+ reactIs_development.Memo;
1097
+ reactIs_development.Portal;
1098
+ reactIs_development.Profiler;
1099
+ reactIs_development.StrictMode;
1100
+ reactIs_development.Suspense;
1101
+ reactIs_development.isValidElementType;
1102
+ reactIs_development.isAsyncMode;
1103
+ reactIs_development.isConcurrentMode;
1104
+ reactIs_development.isContextConsumer;
1105
+ reactIs_development.isContextProvider;
1106
+ reactIs_development.isElement;
1107
+ reactIs_development.isForwardRef;
1108
+ reactIs_development.isFragment;
1109
+ reactIs_development.isLazy;
1110
+ reactIs_development.isMemo;
1111
+ reactIs_development.isPortal;
1112
+ reactIs_development.isProfiler;
1113
+ reactIs_development.isStrictMode;
1114
+ reactIs_development.isSuspense;
1118
1115
 
1119
1116
  var reactIs = createCommonjsModule(function (module) {
1120
1117
 
@@ -1130,8 +1127,9 @@
1130
1127
  (c) Sindre Sorhus
1131
1128
  @license MIT
1132
1129
  */
1130
+
1133
1131
  /* eslint-disable no-unused-vars */
1134
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
1132
+ var getOwnPropertySymbols$1 = Object.getOwnPropertySymbols;
1135
1133
  var hasOwnProperty = Object.prototype.hasOwnProperty;
1136
1134
  var propIsEnumerable = Object.prototype.propertyIsEnumerable;
1137
1135
 
@@ -1201,8 +1199,8 @@
1201
1199
  }
1202
1200
  }
1203
1201
 
1204
- if (getOwnPropertySymbols) {
1205
- symbols = getOwnPropertySymbols(from);
1202
+ if (getOwnPropertySymbols$1) {
1203
+ symbols = getOwnPropertySymbols$1(from);
1206
1204
  for (var i = 0; i < symbols.length; i++) {
1207
1205
  if (propIsEnumerable.call(from, symbols[i])) {
1208
1206
  to[symbols[i]] = from[symbols[i]];
@@ -1221,18 +1219,19 @@
1221
1219
  * LICENSE file in the root directory of this source tree.
1222
1220
  */
1223
1221
 
1224
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
1225
1222
 
1226
- var ReactPropTypesSecret_1 = ReactPropTypesSecret;
1223
+ var ReactPropTypesSecret$1 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
1227
1224
 
1228
- var printWarning = function() {};
1225
+ var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
1226
+
1227
+ var printWarning$1 = function() {};
1229
1228
 
1230
1229
  {
1231
- var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
1230
+ var ReactPropTypesSecret = ReactPropTypesSecret_1;
1232
1231
  var loggedTypeFailures = {};
1233
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
1232
+ var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
1234
1233
 
1235
- printWarning = function(text) {
1234
+ printWarning$1 = function(text) {
1236
1235
  var message = 'Warning: ' + text;
1237
1236
  if (typeof console !== 'undefined') {
1238
1237
  console.error(message);
@@ -1260,7 +1259,7 @@
1260
1259
  function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
1261
1260
  {
1262
1261
  for (var typeSpecName in typeSpecs) {
1263
- if (has(typeSpecs, typeSpecName)) {
1262
+ if (has$1(typeSpecs, typeSpecName)) {
1264
1263
  var error;
1265
1264
  // Prop type validation may throw. In case they do, we don't want to
1266
1265
  // fail the render phase where it didn't fail before. So we log it.
@@ -1276,12 +1275,12 @@
1276
1275
  err.name = 'Invariant Violation';
1277
1276
  throw err;
1278
1277
  }
1279
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$1);
1278
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
1280
1279
  } catch (ex) {
1281
1280
  error = ex;
1282
1281
  }
1283
1282
  if (error && !(error instanceof Error)) {
1284
- printWarning(
1283
+ printWarning$1(
1285
1284
  (componentName || 'React class') + ': type specification of ' +
1286
1285
  location + ' `' + typeSpecName + '` is invalid; the type checker ' +
1287
1286
  'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
@@ -1297,7 +1296,7 @@
1297
1296
 
1298
1297
  var stack = getStack ? getStack() : '';
1299
1298
 
1300
- printWarning(
1299
+ printWarning$1(
1301
1300
  'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
1302
1301
  );
1303
1302
  }
@@ -1319,11 +1318,11 @@
1319
1318
 
1320
1319
  var checkPropTypes_1 = checkPropTypes;
1321
1320
 
1322
- var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
1323
- var printWarning$1 = function() {};
1321
+ var has = Function.call.bind(Object.prototype.hasOwnProperty);
1322
+ var printWarning = function() {};
1324
1323
 
1325
1324
  {
1326
- printWarning$1 = function(text) {
1325
+ printWarning = function(text) {
1327
1326
  var message = 'Warning: ' + text;
1328
1327
  if (typeof console !== 'undefined') {
1329
1328
  console.error(message);
@@ -1491,7 +1490,7 @@
1491
1490
  );
1492
1491
  err.name = 'Invariant Violation';
1493
1492
  throw err;
1494
- } else if ( typeof console !== 'undefined') {
1493
+ } else if (typeof console !== 'undefined') {
1495
1494
  // Old behavior for people using React.PropTypes
1496
1495
  var cacheKey = componentName + ':' + propName;
1497
1496
  if (
@@ -1499,7 +1498,7 @@
1499
1498
  // Avoid spamming the console because they are often not actionable except for lib authors
1500
1499
  manualPropTypeWarningCount < 3
1501
1500
  ) {
1502
- printWarning$1(
1501
+ printWarning(
1503
1502
  'You are manually calling a React.PropTypes validation ' +
1504
1503
  'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
1505
1504
  'and will throw in the standalone `prop-types` package. ' +
@@ -1612,12 +1611,12 @@
1612
1611
  if (!Array.isArray(expectedValues)) {
1613
1612
  {
1614
1613
  if (arguments.length > 1) {
1615
- printWarning$1(
1614
+ printWarning(
1616
1615
  'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
1617
1616
  'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
1618
1617
  );
1619
1618
  } else {
1620
- printWarning$1('Invalid argument supplied to oneOf, expected an array.');
1619
+ printWarning('Invalid argument supplied to oneOf, expected an array.');
1621
1620
  }
1622
1621
  }
1623
1622
  return emptyFunctionThatReturnsNull;
@@ -1654,7 +1653,7 @@
1654
1653
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
1655
1654
  }
1656
1655
  for (var key in propValue) {
1657
- if (has$1(propValue, key)) {
1656
+ if (has(propValue, key)) {
1658
1657
  var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
1659
1658
  if (error instanceof Error) {
1660
1659
  return error;
@@ -1668,14 +1667,14 @@
1668
1667
 
1669
1668
  function createUnionTypeChecker(arrayOfTypeCheckers) {
1670
1669
  if (!Array.isArray(arrayOfTypeCheckers)) {
1671
- printWarning$1('Invalid argument supplied to oneOfType, expected an instance of array.') ;
1670
+ printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') ;
1672
1671
  return emptyFunctionThatReturnsNull;
1673
1672
  }
1674
1673
 
1675
1674
  for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1676
1675
  var checker = arrayOfTypeCheckers[i];
1677
1676
  if (typeof checker !== 'function') {
1678
- printWarning$1(
1677
+ printWarning(
1679
1678
  'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
1680
1679
  'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
1681
1680
  );
@@ -1916,7 +1915,7 @@
1916
1915
 
1917
1916
  var ReactReduxContext =
1918
1917
  /*#__PURE__*/
1919
- React__default.createContext(null);
1918
+ React.createContext(null);
1920
1919
 
1921
1920
  {
1922
1921
  ReactReduxContext.displayName = 'ReactRedux';
@@ -2088,7 +2087,7 @@
2088
2087
  };
2089
2088
  }, [contextValue, previousState]);
2090
2089
  var Context = context || ReactReduxContext;
2091
- return React__default.createElement(Context.Provider, {
2090
+ return React.createElement(Context.Provider, {
2092
2091
  value: contextValue
2093
2092
  }, children);
2094
2093
  }
@@ -2105,37 +2104,14 @@
2105
2104
  };
2106
2105
  }
2107
2106
 
2108
- function _extends$1() {
2109
- _extends$1 = Object.assign || function (target) {
2110
- for (var i = 1; i < arguments.length; i++) {
2111
- var source = arguments[i];
2112
-
2113
- for (var key in source) {
2114
- if (Object.prototype.hasOwnProperty.call(source, key)) {
2115
- target[key] = source[key];
2116
- }
2117
- }
2118
- }
2119
-
2120
- return target;
2121
- };
2122
-
2123
- return _extends$1.apply(this, arguments);
2124
- }
2125
-
2126
- function _objectWithoutPropertiesLoose(source, excluded) {
2127
- if (source == null) return {};
2128
- var target = {};
2129
- var sourceKeys = Object.keys(source);
2130
- var key, i;
2131
-
2132
- for (i = 0; i < sourceKeys.length; i++) {
2133
- key = sourceKeys[i];
2134
- if (excluded.indexOf(key) >= 0) continue;
2135
- target[key] = source[key];
2107
+ function _objectWithoutPropertiesLoose(r, e) {
2108
+ if (null == r) return {};
2109
+ var t = {};
2110
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
2111
+ if (-1 !== e.indexOf(n)) continue;
2112
+ t[n] = r[n];
2136
2113
  }
2137
-
2138
- return target;
2114
+ return t;
2139
2115
  }
2140
2116
 
2141
2117
  /**
@@ -2195,7 +2171,7 @@
2195
2171
 
2196
2172
  var defineProperty = Object.defineProperty;
2197
2173
  var getOwnPropertyNames = Object.getOwnPropertyNames;
2198
- var getOwnPropertySymbols$1 = Object.getOwnPropertySymbols;
2174
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
2199
2175
  var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
2200
2176
  var getPrototypeOf = Object.getPrototypeOf;
2201
2177
  var objectPrototype = Object.prototype;
@@ -2212,8 +2188,8 @@
2212
2188
 
2213
2189
  var keys = getOwnPropertyNames(sourceComponent);
2214
2190
 
2215
- if (getOwnPropertySymbols$1) {
2216
- keys = keys.concat(getOwnPropertySymbols$1(sourceComponent));
2191
+ if (getOwnPropertySymbols) {
2192
+ keys = keys.concat(getOwnPropertySymbols(sourceComponent));
2217
2193
  }
2218
2194
 
2219
2195
  var targetStatics = getStatics(targetComponent);
@@ -2246,7 +2222,7 @@
2246
2222
  // is created synchronously, otherwise a store update may occur before the
2247
2223
  // subscription is created and an inconsistent state may be observed
2248
2224
 
2249
- var useIsomorphicLayoutEffect = typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined' ? React.useLayoutEffect : React.useEffect;
2225
+ var useIsomorphicLayoutEffect$1 = typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined' ? React.useLayoutEffect : React.useEffect;
2250
2226
 
2251
2227
  var EMPTY_ARRAY = [];
2252
2228
  var NO_SUBSCRIPTION_ARRAY = [null, null];
@@ -2265,7 +2241,7 @@
2265
2241
  }
2266
2242
 
2267
2243
  function useIsomorphicLayoutEffectWithArgs(effectFunc, effectArgs, dependencies) {
2268
- useIsomorphicLayoutEffect(function () {
2244
+ useIsomorphicLayoutEffect$1(function () {
2269
2245
  return effectFunc.apply(void 0, effectArgs);
2270
2246
  }, dependencies);
2271
2247
  }
@@ -2424,14 +2400,14 @@
2424
2400
 
2425
2401
  var Context = context;
2426
2402
  return function wrapWithConnect(WrappedComponent) {
2427
- if ( !reactIs_1(WrappedComponent)) {
2403
+ if (!reactIs_1(WrappedComponent)) {
2428
2404
  throw new Error("You must pass a component to the function returned by " + (methodName + ". Instead received " + stringifyComponent(WrappedComponent)));
2429
2405
  }
2430
2406
 
2431
2407
  var wrappedComponentName = WrappedComponent.displayName || WrappedComponent.name || 'Component';
2432
2408
  var displayName = getDisplayName(wrappedComponentName);
2433
2409
 
2434
- var selectorFactoryOptions = _extends$1({}, connectOptions, {
2410
+ var selectorFactoryOptions = _extends({}, connectOptions, {
2435
2411
  getDisplayName: getDisplayName,
2436
2412
  methodName: methodName,
2437
2413
  renderCountProp: renderCountProp,
@@ -2472,7 +2448,7 @@
2472
2448
  var ContextToUse = React.useMemo(function () {
2473
2449
  // Users may optionally pass in a custom context instance to use instead of our ReactReduxContext.
2474
2450
  // Memoize the check that determines which context instance we should use.
2475
- return propsContext && propsContext.Consumer && reactIs_2(React__default.createElement(propsContext.Consumer, null)) ? propsContext : Context;
2451
+ return propsContext && propsContext.Consumer && reactIs_2(React.createElement(propsContext.Consumer, null)) ? propsContext : Context;
2476
2452
  }, [propsContext, Context]); // Retrieve the store and ancestor subscription via context, if available
2477
2453
 
2478
2454
  var contextValue = React.useContext(ContextToUse); // The store _must_ exist as either a prop or in context.
@@ -2482,7 +2458,7 @@
2482
2458
  var didStoreComeFromProps = Boolean(props.store) && Boolean(props.store.getState) && Boolean(props.store.dispatch);
2483
2459
  var didStoreComeFromContext = Boolean(contextValue) && Boolean(contextValue.store);
2484
2460
 
2485
- if ( !didStoreComeFromProps && !didStoreComeFromContext) {
2461
+ if (!didStoreComeFromProps && !didStoreComeFromContext) {
2486
2462
  throw new Error("Could not find \"store\" in the context of " + ("\"" + displayName + "\". Either wrap the root component in a <Provider>, ") + "or pass a custom React context provider to <Provider> and the corresponding " + ("React context consumer to " + displayName + " in connect options."));
2487
2463
  } // Based on the previous check, one of these must be true
2488
2464
 
@@ -2521,7 +2497,7 @@
2521
2497
  // connected descendants won't update until after this component is done
2522
2498
 
2523
2499
 
2524
- return _extends$1({}, contextValue, {
2500
+ return _extends({}, contextValue, {
2525
2501
  subscription: subscription
2526
2502
  });
2527
2503
  }, [didStoreComeFromProps, contextValue, subscription]); // We need to force this wrapper component to re-render whenever a Redux store update
@@ -2568,7 +2544,7 @@
2568
2544
  // We memoize the elements for the rendered child component as an optimization.
2569
2545
 
2570
2546
  var renderedWrappedComponent = React.useMemo(function () {
2571
- return React__default.createElement(WrappedComponent, _extends$1({}, actualChildProps, {
2547
+ return React.createElement(WrappedComponent, _extends({}, actualChildProps, {
2572
2548
  ref: forwardedRef
2573
2549
  }));
2574
2550
  }, [forwardedRef, WrappedComponent, actualChildProps]); // If React sees the exact same element reference as last time, it bails out of re-rendering
@@ -2579,7 +2555,7 @@
2579
2555
  // If this component is subscribed to store updates, we need to pass its own
2580
2556
  // subscription instance down to our descendants. That means rendering the same
2581
2557
  // Context instance, and putting a different value into the context.
2582
- return React__default.createElement(ContextToUse.Provider, {
2558
+ return React.createElement(ContextToUse.Provider, {
2583
2559
  value: overriddenContextValue
2584
2560
  }, renderedWrappedComponent);
2585
2561
  }
@@ -2590,13 +2566,13 @@
2590
2566
  } // If we're in "pure" mode, ensure our wrapper component only re-renders when incoming props have changed.
2591
2567
 
2592
2568
 
2593
- var Connect = pure ? React__default.memo(ConnectFunction) : ConnectFunction;
2569
+ var Connect = pure ? React.memo(ConnectFunction) : ConnectFunction;
2594
2570
  Connect.WrappedComponent = WrappedComponent;
2595
2571
  Connect.displayName = displayName;
2596
2572
 
2597
2573
  if (forwardRef) {
2598
- var forwarded = React__default.forwardRef(function forwardConnectRef(props, ref) {
2599
- return React__default.createElement(Connect, _extends$1({}, props, {
2574
+ var forwarded = React.forwardRef(function forwardConnectRef(props, ref) {
2575
+ return React.createElement(Connect, _extends({}, props, {
2600
2576
  forwardedRef: ref
2601
2577
  }));
2602
2578
  });
@@ -2641,7 +2617,7 @@
2641
2617
  * @param {any} obj The object to inspect.
2642
2618
  * @returns {boolean} True if the argument appears to be a plain object.
2643
2619
  */
2644
- function isPlainObject$1(obj) {
2620
+ function isPlainObject(obj) {
2645
2621
  if (typeof obj !== 'object' || obj === null) return false;
2646
2622
  var proto = Object.getPrototypeOf(obj);
2647
2623
  if (proto === null) return true;
@@ -2660,7 +2636,7 @@
2660
2636
  * @param {String} message The warning message.
2661
2637
  * @returns {void}
2662
2638
  */
2663
- function warning$2(message) {
2639
+ function warning(message) {
2664
2640
  /* eslint-disable no-console */
2665
2641
  if (typeof console !== 'undefined' && typeof console.error === 'function') {
2666
2642
  console.error(message);
@@ -2680,8 +2656,8 @@
2680
2656
  }
2681
2657
 
2682
2658
  function verifyPlainObject(value, displayName, methodName) {
2683
- if (!isPlainObject$1(value)) {
2684
- warning$2(methodName + "() in " + displayName + " must return a plain object. Instead received " + value + ".");
2659
+ if (!isPlainObject(value)) {
2660
+ warning(methodName + "() in " + displayName + " must return a plain object. Instead received " + value + ".");
2685
2661
  }
2686
2662
  }
2687
2663
 
@@ -2777,7 +2753,7 @@
2777
2753
  var defaultMapStateToPropsFactories = [whenMapStateToPropsIsFunction, whenMapStateToPropsIsMissing];
2778
2754
 
2779
2755
  function defaultMergeProps(stateProps, dispatchProps, ownProps) {
2780
- return _extends$1({}, ownProps, {}, stateProps, {}, dispatchProps);
2756
+ return _extends({}, ownProps, {}, stateProps, {}, dispatchProps);
2781
2757
  }
2782
2758
  function wrapMergePropsFunc(mergeProps) {
2783
2759
  return function initMergePropsProxy(dispatch, _ref) {
@@ -2816,7 +2792,7 @@
2816
2792
  throw new Error("Unexpected value for " + methodName + " in " + displayName + ".");
2817
2793
  } else if (methodName === 'mapStateToProps' || methodName === 'mapDispatchToProps') {
2818
2794
  if (!Object.prototype.hasOwnProperty.call(selector, 'dependsOnOwnProps')) {
2819
- warning$2("The selector for " + methodName + " of " + displayName + " did not specify a value for dependsOnOwnProps.");
2795
+ warning("The selector for " + methodName + " of " + displayName + " did not specify a value for dependsOnOwnProps.");
2820
2796
  }
2821
2797
  }
2822
2798
  }
@@ -2981,7 +2957,7 @@
2981
2957
  var initMapStateToProps = match(mapStateToProps, mapStateToPropsFactories, 'mapStateToProps');
2982
2958
  var initMapDispatchToProps = match(mapDispatchToProps, mapDispatchToPropsFactories, 'mapDispatchToProps');
2983
2959
  var initMergeProps = match(mergeProps, mergePropsFactories, 'mergeProps');
2984
- return connectHOC(selectorFactory, _extends$1({
2960
+ return connectHOC(selectorFactory, _extends({
2985
2961
  // used in error messages
2986
2962
  methodName: 'connect',
2987
2963
  // used to compute Connect's displayName from the wrapped component's displayName.
@@ -3007,7 +2983,7 @@
3007
2983
 
3008
2984
  setBatch(ReactDOM.unstable_batchedUpdates);
3009
2985
 
3010
- function areInputsEqual(newInputs, lastInputs) {
2986
+ function areInputsEqual$1(newInputs, lastInputs) {
3011
2987
  if (newInputs.length !== lastInputs.length) {
3012
2988
  return false;
3013
2989
  }
@@ -3029,7 +3005,7 @@
3029
3005
  };
3030
3006
  })[0];
3031
3007
  var committed = React.useRef(initial);
3032
- var isInputMatch = Boolean(inputs && committed.current.inputs && areInputsEqual(inputs, committed.current.inputs));
3008
+ var isInputMatch = Boolean(inputs && committed.current.inputs && areInputsEqual$1(inputs, committed.current.inputs));
3033
3009
  var cache = isInputMatch ? committed.current : {
3034
3010
  inputs: inputs,
3035
3011
  result: getResult()
@@ -3063,7 +3039,7 @@
3063
3039
  y: point1.y - point2.y
3064
3040
  };
3065
3041
  };
3066
- var isEqual = function isEqual(point1, point2) {
3042
+ var isEqual$1 = function isEqual(point1, point2) {
3067
3043
  return point1.x === point2.x && point1.y === point2.y;
3068
3044
  };
3069
3045
  var negate = function negate(point) {
@@ -3084,7 +3060,7 @@
3084
3060
  var distance = function distance(point1, point2) {
3085
3061
  return Math.sqrt(Math.pow(point2.x - point1.x, 2) + Math.pow(point2.y - point1.y, 2));
3086
3062
  };
3087
- var closest = function closest(target, points) {
3063
+ var closest$1 = function closest(target, points) {
3088
3064
  return Math.min.apply(Math, points.map(function (point) {
3089
3065
  return distance(target, point);
3090
3066
  }));
@@ -3098,11 +3074,15 @@
3098
3074
  };
3099
3075
  };
3100
3076
 
3077
+ var isProduction = "development" === 'production';
3101
3078
  var prefix$1 = 'Invariant failed';
3102
- function invariant$1(condition, message) {
3079
+ function invariant(condition, message) {
3103
3080
  if (condition) {
3104
3081
  return;
3105
3082
  }
3083
+ if (isProduction) {
3084
+ throw new Error(prefix$1);
3085
+ }
3106
3086
  throw new Error(prefix$1 + ": " + (message || ''));
3107
3087
  }
3108
3088
 
@@ -3155,7 +3135,7 @@
3155
3135
  };
3156
3136
  };
3157
3137
 
3158
- var noSpacing = {
3138
+ var noSpacing$1 = {
3159
3139
  top: 0,
3160
3140
  right: 0,
3161
3141
  bottom: 0,
@@ -3164,11 +3144,11 @@
3164
3144
  var createBox = function createBox(_ref2) {
3165
3145
  var borderBox = _ref2.borderBox,
3166
3146
  _ref2$margin = _ref2.margin,
3167
- margin = _ref2$margin === void 0 ? noSpacing : _ref2$margin,
3147
+ margin = _ref2$margin === void 0 ? noSpacing$1 : _ref2$margin,
3168
3148
  _ref2$border = _ref2.border,
3169
- border = _ref2$border === void 0 ? noSpacing : _ref2$border,
3149
+ border = _ref2$border === void 0 ? noSpacing$1 : _ref2$border,
3170
3150
  _ref2$padding = _ref2.padding,
3171
- padding = _ref2$padding === void 0 ? noSpacing : _ref2$padding;
3151
+ padding = _ref2$padding === void 0 ? noSpacing$1 : _ref2$padding;
3172
3152
  var marginBox = getRect(expand(borderBox, margin));
3173
3153
  var paddingBox = getRect(shrink(borderBox, border));
3174
3154
  var contentBox = getRect(shrink(paddingBox, padding));
@@ -3192,11 +3172,11 @@
3192
3172
  }
3193
3173
 
3194
3174
  var result = Number(value);
3195
- !!isNaN(result) ? invariant$1(false, "Could not parse value [raw: " + raw + ", without suffix: " + value + "]") : void 0;
3175
+ !!isNaN(result) ? invariant(false, "Could not parse value [raw: " + raw + ", without suffix: " + value + "]") : void 0;
3196
3176
  return result;
3197
3177
  };
3198
3178
 
3199
- var getWindowScroll = function getWindowScroll() {
3179
+ var getWindowScroll$1 = function getWindowScroll() {
3200
3180
  return {
3201
3181
  x: window.pageXOffset,
3202
3182
  y: window.pageYOffset
@@ -3218,7 +3198,7 @@
3218
3198
  };
3219
3199
  var withScroll = function withScroll(original, scroll) {
3220
3200
  if (scroll === void 0) {
3221
- scroll = getWindowScroll();
3201
+ scroll = getWindowScroll$1();
3222
3202
  }
3223
3203
 
3224
3204
  return offset(original, scroll);
@@ -3293,14 +3273,14 @@
3293
3273
  y: spacing.bottom
3294
3274
  }];
3295
3275
  };
3296
- var noSpacing$1 = {
3276
+ var noSpacing = {
3297
3277
  top: 0,
3298
3278
  right: 0,
3299
3279
  bottom: 0,
3300
3280
  left: 0
3301
3281
  };
3302
3282
 
3303
- var scroll = function scroll(target, frame) {
3283
+ var scroll$1 = function scroll(target, frame) {
3304
3284
  if (!frame) {
3305
3285
  return target;
3306
3286
  }
@@ -3331,7 +3311,7 @@
3331
3311
  withPlaceholder = _ref.withPlaceholder,
3332
3312
  axis = _ref.axis,
3333
3313
  frame = _ref.frame;
3334
- var scrolled = scroll(page.marginBox, frame);
3314
+ var scrolled = scroll$1(page.marginBox, frame);
3335
3315
  var increased = increase(scrolled, axis, withPlaceholder);
3336
3316
  var clipped = clip(increased, frame);
3337
3317
  return {
@@ -3342,7 +3322,7 @@
3342
3322
  });
3343
3323
 
3344
3324
  var scrollDroppable = (function (droppable, newScroll) {
3345
- !droppable.frame ? invariant(false) : void 0;
3325
+ !droppable.frame ? invariant$1(false) : void 0;
3346
3326
  var scrollable = droppable.frame;
3347
3327
  var scrollDiff = subtract(newScroll, scrollable.scroll.initial);
3348
3328
  var scrollDisplacement = negate(scrollDiff);
@@ -3374,7 +3354,7 @@
3374
3354
  return result;
3375
3355
  });
3376
3356
 
3377
- function areInputsEqual$1(newInputs, lastInputs) {
3357
+ function areInputsEqual(newInputs, lastInputs) {
3378
3358
  if (newInputs.length !== lastInputs.length) {
3379
3359
  return false;
3380
3360
  }
@@ -3387,7 +3367,7 @@
3387
3367
  }
3388
3368
 
3389
3369
  function memoizeOne(resultFn, isEqual) {
3390
- if (isEqual === void 0) { isEqual = areInputsEqual$1; }
3370
+ if (isEqual === void 0) { isEqual = areInputsEqual; }
3391
3371
  var lastThis;
3392
3372
  var lastArgs = [];
3393
3373
  var lastResult;
@@ -3555,7 +3535,7 @@
3555
3535
  var indexOfClosest = findIndex(withoutDraggable, function (d) {
3556
3536
  return d.descriptor.id === closestId;
3557
3537
  });
3558
- !(indexOfClosest !== -1) ? invariant(false, 'Could not find displaced item in set') : void 0;
3538
+ !(indexOfClosest !== -1) ? invariant$1(false, 'Could not find displaced item in set') : void 0;
3559
3539
  var proposedIndex = indexOfClosest - 1;
3560
3540
 
3561
3541
  if (proposedIndex < 0) {
@@ -3584,6 +3564,7 @@
3584
3564
  displacedBy: noDisplacedBy,
3585
3565
  at: null
3586
3566
  };
3567
+ var noImpact$1 = noImpact;
3587
3568
 
3588
3569
  var isWithin = (function (lowerBound, upperBound) {
3589
3570
  return function (value) {
@@ -3685,7 +3666,7 @@
3685
3666
  return isVisibleThroughFrameFn(viewport)(target);
3686
3667
  };
3687
3668
 
3688
- var isVisible = function isVisible(_ref) {
3669
+ var isVisible$1 = function isVisible(_ref) {
3689
3670
  var toBeDisplaced = _ref.target,
3690
3671
  destination = _ref.destination,
3691
3672
  viewport = _ref.viewport,
@@ -3696,17 +3677,17 @@
3696
3677
  };
3697
3678
 
3698
3679
  var isPartiallyVisible = function isPartiallyVisible(args) {
3699
- return isVisible(_extends({}, args, {
3680
+ return isVisible$1(_extends({}, args, {
3700
3681
  isVisibleThroughFrameFn: isPartiallyVisibleThroughFrame
3701
3682
  }));
3702
3683
  };
3703
3684
  var isTotallyVisible = function isTotallyVisible(args) {
3704
- return isVisible(_extends({}, args, {
3685
+ return isVisible$1(_extends({}, args, {
3705
3686
  isVisibleThroughFrameFn: isTotallyVisibleThroughFrame
3706
3687
  }));
3707
3688
  };
3708
3689
  var isTotallyVisibleOnAxis = function isTotallyVisibleOnAxis(args) {
3709
- return isVisible(_extends({}, args, {
3690
+ return isVisible$1(_extends({}, args, {
3710
3691
  isVisibleThroughFrameFn: isTotallyVisibleThroughFrameOnAxis(args.destination.axis)
3711
3692
  }));
3712
3693
  };
@@ -3939,7 +3920,7 @@
3939
3920
  viewport = _ref.viewport,
3940
3921
  afterCritical = _ref.afterCritical;
3941
3922
  var wasAt = previousImpact.at;
3942
- !wasAt ? invariant(false, 'Cannot move in direction without previous impact location') : void 0;
3923
+ !wasAt ? invariant$1(false, 'Cannot move in direction without previous impact location') : void 0;
3943
3924
 
3944
3925
  if (wasAt.type === 'REORDER') {
3945
3926
  var _newIndex = fromReorder({
@@ -4007,7 +3988,7 @@
4007
3988
  impact = _ref.impact,
4008
3989
  draggables = _ref.draggables;
4009
3990
  var combine = tryGetCombine(impact);
4010
- !combine ? invariant(false) : void 0;
3991
+ !combine ? invariant$1(false) : void 0;
4011
3992
  var combineWith = combine.draggableId;
4012
3993
  var center = draggables[combineWith].page.borderBox.center;
4013
3994
  var displaceBy = getCombinedItemDisplacement({
@@ -4188,7 +4169,7 @@
4188
4169
  return updated;
4189
4170
  });
4190
4171
 
4191
- function getDraggables(ids, draggables) {
4172
+ function getDraggables$1(ids, draggables) {
4192
4173
  return ids.map(function (id) {
4193
4174
  return draggables[id];
4194
4175
  });
@@ -4216,7 +4197,7 @@
4216
4197
  var scrolledDroppable = destination.frame ? scrollDroppable(destination, add(destination.frame.scroll.current, maxScrollChange)) : destination;
4217
4198
  var last = impact.displaced;
4218
4199
  var withViewportScroll = getDisplacementGroups({
4219
- afterDragging: getDraggables(last.all, draggables),
4200
+ afterDragging: getDraggables$1(last.all, draggables),
4220
4201
  destination: destination,
4221
4202
  displacedBy: impact.displacedBy,
4222
4203
  viewport: scrolledViewport.frame,
@@ -4224,7 +4205,7 @@
4224
4205
  forceShouldAnimate: false
4225
4206
  });
4226
4207
  var withDroppableScroll = getDisplacementGroups({
4227
- afterDragging: getDraggables(last.all, draggables),
4208
+ afterDragging: getDraggables$1(last.all, draggables),
4228
4209
  destination: scrolledDroppable,
4229
4210
  displacedBy: impact.displacedBy,
4230
4211
  viewport: viewport.frame,
@@ -4373,7 +4354,7 @@
4373
4354
 
4374
4355
  var getKnownActive = function getKnownActive(droppable) {
4375
4356
  var rect = droppable.subject.active;
4376
- !rect ? invariant(false, 'Cannot get clipped area from droppable') : void 0;
4357
+ !rect ? invariant$1(false, 'Cannot get clipped area from droppable') : void 0;
4377
4358
  return rect;
4378
4359
  };
4379
4360
 
@@ -4448,8 +4429,8 @@
4448
4429
  }
4449
4430
 
4450
4431
  return candidates.sort(function (a, b) {
4451
- var first = closest(pageBorderBoxCenter, getCorners(getKnownActive(a)));
4452
- var second = closest(pageBorderBoxCenter, getCorners(getKnownActive(b)));
4432
+ var first = closest$1(pageBorderBoxCenter, getCorners(getKnownActive(a)));
4433
+ var second = closest$1(pageBorderBoxCenter, getCorners(getKnownActive(b)));
4453
4434
 
4454
4435
  if (first !== second) {
4455
4436
  return first - second;
@@ -4538,8 +4519,8 @@
4538
4519
 
4539
4520
  var addPlaceholder = function addPlaceholder(droppable, draggable, draggables) {
4540
4521
  var frame = droppable.frame;
4541
- !!isHomeOf(draggable, droppable) ? invariant(false, 'Should not add placeholder space to home list') : void 0;
4542
- !!droppable.subject.withPlaceholder ? invariant(false, 'Cannot add placeholder size to a subject when it already has one') : void 0;
4522
+ !!isHomeOf(draggable, droppable) ? invariant$1(false, 'Should not add placeholder space to home list') : void 0;
4523
+ !!droppable.subject.withPlaceholder ? invariant$1(false, 'Cannot add placeholder size to a subject when it already has one') : void 0;
4543
4524
  var placeholderSize = getDisplacedBy(droppable.axis, draggable.displaceBy).point;
4544
4525
  var requiredGrowth = getRequiredGrowthForPlaceholder(droppable, placeholderSize, draggables);
4545
4526
  var added = {
@@ -4576,7 +4557,7 @@
4576
4557
  };
4577
4558
  var removePlaceholder = function removePlaceholder(droppable) {
4578
4559
  var added = droppable.subject.withPlaceholder;
4579
- !added ? invariant(false, 'Cannot remove placeholder form subject when there was none') : void 0;
4560
+ !added ? invariant$1(false, 'Cannot remove placeholder form subject when there was none') : void 0;
4580
4561
  var frame = droppable.frame;
4581
4562
 
4582
4563
  if (!frame) {
@@ -4593,7 +4574,7 @@
4593
4574
  }
4594
4575
 
4595
4576
  var oldMaxScroll = added.oldFrameMaxScroll;
4596
- !oldMaxScroll ? invariant(false, 'Expected droppable with frame to have old max frame scroll when removing placeholder') : void 0;
4577
+ !oldMaxScroll ? invariant$1(false, 'Expected droppable with frame to have old max frame scroll when removing placeholder') : void 0;
4597
4578
  var newFrame = withMaxScroll(frame, oldMaxScroll);
4598
4579
  var subject = getSubject({
4599
4580
  page: droppable.subject.page,
@@ -4757,7 +4738,7 @@
4757
4738
  return at.combine.droppableId;
4758
4739
  });
4759
4740
 
4760
- var getDroppableOver = function getDroppableOver(impact, droppables) {
4741
+ var getDroppableOver$1 = function getDroppableOver(impact, droppables) {
4761
4742
  var id = whatIsDraggedOver(impact);
4762
4743
  return id ? droppables[id] : null;
4763
4744
  };
@@ -4765,7 +4746,7 @@
4765
4746
  var moveInDirection = (function (_ref) {
4766
4747
  var state = _ref.state,
4767
4748
  type = _ref.type;
4768
- var isActuallyOver = getDroppableOver(state.impact, state.dimensions.droppables);
4749
+ var isActuallyOver = getDroppableOver$1(state.impact, state.dimensions.droppables);
4769
4750
  var isMainAxisMovementAllowed = Boolean(isActuallyOver);
4770
4751
  var home = state.dimensions.droppables[state.critical.droppable.id];
4771
4752
  var isOver = isActuallyOver || home;
@@ -4838,7 +4819,7 @@
4838
4819
  return sorted[0] ? sorted[0].id : null;
4839
4820
  }
4840
4821
 
4841
- function getDroppableOver$1(_ref2) {
4822
+ function getDroppableOver(_ref2) {
4842
4823
  var pageBorderBox = _ref2.pageBorderBox,
4843
4824
  draggable = _ref2.draggable,
4844
4825
  droppables = _ref2.droppables;
@@ -5060,14 +5041,14 @@
5060
5041
  viewport = _ref.viewport,
5061
5042
  afterCritical = _ref.afterCritical;
5062
5043
  var pageBorderBox = offsetRectByPosition(draggable.page.borderBox, pageOffset);
5063
- var destinationId = getDroppableOver$1({
5044
+ var destinationId = getDroppableOver({
5064
5045
  pageBorderBox: pageBorderBox,
5065
5046
  draggable: draggable,
5066
5047
  droppables: droppables
5067
5048
  });
5068
5049
 
5069
5050
  if (!destinationId) {
5070
- return noImpact;
5051
+ return noImpact$1;
5071
5052
  }
5072
5053
 
5073
5054
  var destination = droppables[destinationId];
@@ -5222,7 +5203,7 @@
5222
5203
  return result;
5223
5204
  });
5224
5205
 
5225
- function getDraggables$1(ids, draggables) {
5206
+ function getDraggables(ids, draggables) {
5226
5207
  return ids.map(function (id) {
5227
5208
  return draggables[id];
5228
5209
  });
@@ -5235,7 +5216,7 @@
5235
5216
  destination = _ref.destination,
5236
5217
  forceShouldAnimate = _ref.forceShouldAnimate;
5237
5218
  var last = impact.displaced;
5238
- var afterDragging = getDraggables$1(last.all, draggables);
5219
+ var afterDragging = getDraggables(last.all, draggables);
5239
5220
  var displaced = getDisplacementGroups({
5240
5221
  afterDragging: afterDragging,
5241
5222
  destination: destination,
@@ -5274,7 +5255,7 @@
5274
5255
  var state = _ref.state,
5275
5256
  forcedDimensions = _ref.dimensions,
5276
5257
  forcedViewport = _ref.viewport;
5277
- !(state.movementMode === 'SNAP') ? invariant(false) : void 0;
5258
+ !(state.movementMode === 'SNAP') ? invariant$1(false) : void 0;
5278
5259
  var needsVisibilityCheck = state.impact;
5279
5260
  var viewport = forcedViewport || state.viewport;
5280
5261
  var dimensions = forcedDimensions || state.dimensions;
@@ -5282,7 +5263,7 @@
5282
5263
  droppables = dimensions.droppables;
5283
5264
  var draggable = draggables[state.critical.draggable.id];
5284
5265
  var isOver = whatIsDraggedOver(needsVisibilityCheck);
5285
- !isOver ? invariant(false, 'Must be over a destination in SNAP movement mode') : void 0;
5266
+ !isOver ? invariant$1(false, 'Must be over a destination in SNAP movement mode') : void 0;
5286
5267
  var destination = droppables[isOver];
5287
5268
  var impact = recompute({
5288
5269
  impact: needsVisibilityCheck,
@@ -5322,7 +5303,7 @@
5322
5303
  var displacedBy = getDisplacedBy(home.axis, draggable.displaceBy);
5323
5304
  var insideHome = getDraggablesInsideDroppable(home.descriptor.id, draggables);
5324
5305
  var rawIndex = insideHome.indexOf(draggable);
5325
- !(rawIndex !== -1) ? invariant(false, 'Expected draggable to be inside home list') : void 0;
5306
+ !(rawIndex !== -1) ? invariant$1(false, 'Expected draggable to be inside home list') : void 0;
5326
5307
  var afterDragging = insideHome.slice(rawIndex + 1);
5327
5308
  var effected = afterDragging.reduce(function (previous, item) {
5328
5309
  previous[item.descriptor.id] = true;
@@ -5362,6 +5343,64 @@
5362
5343
  };
5363
5344
  });
5364
5345
 
5346
+ var records = {};
5347
+ var isEnabled = false;
5348
+
5349
+ var isTimingsEnabled = function isTimingsEnabled() {
5350
+ return isEnabled;
5351
+ };
5352
+ var start = function start(key) {
5353
+ {
5354
+ if (!isTimingsEnabled()) {
5355
+ return;
5356
+ }
5357
+
5358
+ var now = performance.now();
5359
+ records[key] = now;
5360
+ }
5361
+ };
5362
+ var finish = function finish(key) {
5363
+ {
5364
+ if (!isTimingsEnabled()) {
5365
+ return;
5366
+ }
5367
+
5368
+ var now = performance.now();
5369
+ var previous = records[key];
5370
+
5371
+ if (!previous) {
5372
+ console.warn('cannot finish timing as no previous time found', key);
5373
+ return;
5374
+ }
5375
+
5376
+ var result = now - previous;
5377
+ var rounded = result.toFixed(2);
5378
+
5379
+ var style = function () {
5380
+ if (result < 12) {
5381
+ return {
5382
+ textColor: 'green',
5383
+ symbol: '✅'
5384
+ };
5385
+ }
5386
+
5387
+ if (result < 40) {
5388
+ return {
5389
+ textColor: 'orange',
5390
+ symbol: '⚠️'
5391
+ };
5392
+ }
5393
+
5394
+ return {
5395
+ textColor: 'red',
5396
+ symbol: '❌'
5397
+ };
5398
+ }();
5399
+
5400
+ console.log(style.symbol + " %cTiming %c" + rounded + " %cms %c" + key, 'color: blue; font-weight: bold;', "color: " + style.textColor + "; font-size: 1.1em;", 'color: grey;', 'color: purple; font-weight: bold;');
5401
+ }
5402
+ };
5403
+
5365
5404
  var offsetDraggable = (function (_ref) {
5366
5405
  var draggable = _ref.draggable,
5367
5406
  offset$1 = _ref.offset,
@@ -5382,7 +5421,7 @@
5382
5421
 
5383
5422
  var getFrame = (function (droppable) {
5384
5423
  var frame = droppable.frame;
5385
- !frame ? invariant(false, 'Expected Droppable to have a frame') : void 0;
5424
+ !frame ? invariant$1(false, 'Expected Droppable to have a frame') : void 0;
5386
5425
  return frame;
5387
5426
  });
5388
5427
 
@@ -5406,9 +5445,11 @@
5406
5445
  });
5407
5446
  });
5408
5447
 
5448
+ var timingsKey = 'Processing dynamic changes';
5409
5449
  var publishWhileDraggingInVirtual = (function (_ref) {
5410
5450
  var state = _ref.state,
5411
5451
  published = _ref.published;
5452
+ start(timingsKey);
5412
5453
  var withScrollChange = published.modified.map(function (update) {
5413
5454
  var existing = state.dimensions.droppables[update.droppableId];
5414
5455
  var scrolled = scrollDroppable(existing, update.scroll);
@@ -5456,6 +5497,7 @@
5456
5497
  viewport: state.viewport,
5457
5498
  afterCritical: afterCritical
5458
5499
  });
5500
+ finish(timingsKey);
5459
5501
 
5460
5502
  var draggingState = _extends({
5461
5503
  phase: 'DRAGGING'
@@ -5515,24 +5557,24 @@
5515
5557
  return state;
5516
5558
  }
5517
5559
 
5518
- var idle = {
5560
+ var idle$2 = {
5519
5561
  phase: 'IDLE',
5520
5562
  completed: null,
5521
5563
  shouldFlush: false
5522
5564
  };
5523
5565
  var reducer = (function (state, action) {
5524
5566
  if (state === void 0) {
5525
- state = idle;
5567
+ state = idle$2;
5526
5568
  }
5527
5569
 
5528
5570
  if (action.type === 'FLUSH') {
5529
- return _extends({}, idle, {
5571
+ return _extends({}, idle$2, {
5530
5572
  shouldFlush: true
5531
5573
  });
5532
5574
  }
5533
5575
 
5534
5576
  if (action.type === 'INITIAL_PUBLISH') {
5535
- !(state.phase === 'IDLE') ? invariant(false, 'INITIAL_PUBLISH must come after a IDLE phase') : void 0;
5577
+ !(state.phase === 'IDLE') ? invariant$1(false, 'INITIAL_PUBLISH must come after a IDLE phase') : void 0;
5536
5578
  var _action$payload = action.payload,
5537
5579
  critical = _action$payload.critical,
5538
5580
  clientSelection = _action$payload.clientSelection,
@@ -5591,7 +5633,7 @@
5591
5633
  return state;
5592
5634
  }
5593
5635
 
5594
- !(state.phase === 'DRAGGING') ? invariant(false, "Collection cannot start from phase " + state.phase) : void 0;
5636
+ !(state.phase === 'DRAGGING') ? invariant$1(false, "Collection cannot start from phase " + state.phase) : void 0;
5595
5637
 
5596
5638
  var _result = _extends({
5597
5639
  phase: 'COLLECTING'
@@ -5603,7 +5645,7 @@
5603
5645
  }
5604
5646
 
5605
5647
  if (action.type === 'PUBLISH_WHILE_DRAGGING') {
5606
- !(state.phase === 'COLLECTING' || state.phase === 'DROP_PENDING') ? invariant(false, "Unexpected " + action.type + " received in phase " + state.phase) : void 0;
5648
+ !(state.phase === 'COLLECTING' || state.phase === 'DROP_PENDING') ? invariant$1(false, "Unexpected " + action.type + " received in phase " + state.phase) : void 0;
5607
5649
  return publishWhileDraggingInVirtual({
5608
5650
  state: state,
5609
5651
  published: action.payload
@@ -5615,10 +5657,10 @@
5615
5657
  return state;
5616
5658
  }
5617
5659
 
5618
- !isMovementAllowed(state) ? invariant(false, action.type + " not permitted in phase " + state.phase) : void 0;
5660
+ !isMovementAllowed(state) ? invariant$1(false, action.type + " not permitted in phase " + state.phase) : void 0;
5619
5661
  var _clientSelection = action.payload.client;
5620
5662
 
5621
- if (isEqual(_clientSelection, state.current.client.selection)) {
5663
+ if (isEqual$1(_clientSelection, state.current.client.selection)) {
5622
5664
  return state;
5623
5665
  }
5624
5666
 
@@ -5638,7 +5680,7 @@
5638
5680
  return removeScrollJumpRequest(state);
5639
5681
  }
5640
5682
 
5641
- !isMovementAllowed(state) ? invariant(false, action.type + " not permitted in phase " + state.phase) : void 0;
5683
+ !isMovementAllowed(state) ? invariant$1(false, action.type + " not permitted in phase " + state.phase) : void 0;
5642
5684
  var _action$payload2 = action.payload,
5643
5685
  id = _action$payload2.id,
5644
5686
  newScroll = _action$payload2.newScroll;
@@ -5657,13 +5699,13 @@
5657
5699
  return state;
5658
5700
  }
5659
5701
 
5660
- !isMovementAllowed(state) ? invariant(false, "Attempting to move in an unsupported phase " + state.phase) : void 0;
5702
+ !isMovementAllowed(state) ? invariant$1(false, "Attempting to move in an unsupported phase " + state.phase) : void 0;
5661
5703
  var _action$payload3 = action.payload,
5662
5704
  _id = _action$payload3.id,
5663
5705
  isEnabled = _action$payload3.isEnabled;
5664
5706
  var _target = state.dimensions.droppables[_id];
5665
- !_target ? invariant(false, "Cannot find Droppable[id: " + _id + "] to toggle its enabled state") : void 0;
5666
- !(_target.isEnabled !== isEnabled) ? invariant(false, "Trying to set droppable isEnabled to " + String(isEnabled) + "\n but it is already " + String(_target.isEnabled)) : void 0;
5707
+ !_target ? invariant$1(false, "Cannot find Droppable[id: " + _id + "] to toggle its enabled state") : void 0;
5708
+ !(_target.isEnabled !== isEnabled) ? invariant$1(false, "Trying to set droppable isEnabled to " + String(isEnabled) + "\n but it is already " + String(_target.isEnabled)) : void 0;
5667
5709
 
5668
5710
  var updated = _extends({}, _target, {
5669
5711
  isEnabled: isEnabled
@@ -5677,13 +5719,13 @@
5677
5719
  return state;
5678
5720
  }
5679
5721
 
5680
- !isMovementAllowed(state) ? invariant(false, "Attempting to move in an unsupported phase " + state.phase) : void 0;
5722
+ !isMovementAllowed(state) ? invariant$1(false, "Attempting to move in an unsupported phase " + state.phase) : void 0;
5681
5723
  var _action$payload4 = action.payload,
5682
5724
  _id2 = _action$payload4.id,
5683
5725
  isCombineEnabled = _action$payload4.isCombineEnabled;
5684
5726
  var _target2 = state.dimensions.droppables[_id2];
5685
- !_target2 ? invariant(false, "Cannot find Droppable[id: " + _id2 + "] to toggle its isCombineEnabled state") : void 0;
5686
- !(_target2.isCombineEnabled !== isCombineEnabled) ? invariant(false, "Trying to set droppable isCombineEnabled to " + String(isCombineEnabled) + "\n but it is already " + String(_target2.isCombineEnabled)) : void 0;
5727
+ !_target2 ? invariant$1(false, "Cannot find Droppable[id: " + _id2 + "] to toggle its isCombineEnabled state") : void 0;
5728
+ !(_target2.isCombineEnabled !== isCombineEnabled) ? invariant$1(false, "Trying to set droppable isCombineEnabled to " + String(isCombineEnabled) + "\n but it is already " + String(_target2.isCombineEnabled)) : void 0;
5687
5729
 
5688
5730
  var _updated = _extends({}, _target2, {
5689
5731
  isCombineEnabled: isCombineEnabled
@@ -5697,11 +5739,11 @@
5697
5739
  return state;
5698
5740
  }
5699
5741
 
5700
- !isMovementAllowed(state) ? invariant(false, "Cannot move by window in phase " + state.phase) : void 0;
5701
- !state.isWindowScrollAllowed ? invariant(false, 'Window scrolling is currently not supported for fixed lists') : void 0;
5742
+ !isMovementAllowed(state) ? invariant$1(false, "Cannot move by window in phase " + state.phase) : void 0;
5743
+ !state.isWindowScrollAllowed ? invariant$1(false, 'Window scrolling is currently not supported for fixed lists') : void 0;
5702
5744
  var _newScroll = action.payload.newScroll;
5703
5745
 
5704
- if (isEqual(state.viewport.scroll.current, _newScroll)) {
5746
+ if (isEqual$1(state.viewport.scroll.current, _newScroll)) {
5705
5747
  return removeScrollJumpRequest(state);
5706
5748
  }
5707
5749
 
@@ -5727,7 +5769,7 @@
5727
5769
 
5728
5770
  var maxScroll = action.payload.maxScroll;
5729
5771
 
5730
- if (isEqual(maxScroll, state.viewport.scroll.max)) {
5772
+ if (isEqual$1(maxScroll, state.viewport.scroll.max)) {
5731
5773
  return state;
5732
5774
  }
5733
5775
 
@@ -5749,7 +5791,7 @@
5749
5791
  return state;
5750
5792
  }
5751
5793
 
5752
- !(state.phase === 'DRAGGING') ? invariant(false, action.type + " received while not in DRAGGING phase") : void 0;
5794
+ !(state.phase === 'DRAGGING') ? invariant$1(false, action.type + " received while not in DRAGGING phase") : void 0;
5753
5795
 
5754
5796
  var _result2 = moveInDirection({
5755
5797
  state: state,
@@ -5770,7 +5812,7 @@
5770
5812
 
5771
5813
  if (action.type === 'DROP_PENDING') {
5772
5814
  var reason = action.payload.reason;
5773
- !(state.phase === 'COLLECTING') ? invariant(false, 'Can only move into the DROP_PENDING phase from the COLLECTING phase') : void 0;
5815
+ !(state.phase === 'COLLECTING') ? invariant$1(false, 'Can only move into the DROP_PENDING phase from the COLLECTING phase') : void 0;
5774
5816
 
5775
5817
  var newState = _extends({
5776
5818
  phase: 'DROP_PENDING'
@@ -5788,7 +5830,7 @@
5788
5830
  completed = _action$payload5.completed,
5789
5831
  dropDuration = _action$payload5.dropDuration,
5790
5832
  newHomeClientOffset = _action$payload5.newHomeClientOffset;
5791
- !(state.phase === 'DRAGGING' || state.phase === 'DROP_PENDING') ? invariant(false, "Cannot animate drop from phase " + state.phase) : void 0;
5833
+ !(state.phase === 'DRAGGING' || state.phase === 'DROP_PENDING') ? invariant$1(false, "Cannot animate drop from phase " + state.phase) : void 0;
5792
5834
  var _result3 = {
5793
5835
  phase: 'DROP_ANIMATING',
5794
5836
  completed: completed,
@@ -5817,7 +5859,7 @@
5817
5859
  payload: args
5818
5860
  };
5819
5861
  };
5820
- var lift = function lift(args) {
5862
+ var lift$1 = function lift(args) {
5821
5863
  return {
5822
5864
  type: 'LIFT',
5823
5865
  payload: args
@@ -5919,7 +5961,7 @@
5919
5961
  payload: args
5920
5962
  };
5921
5963
  };
5922
- var drop = function drop(args) {
5964
+ var drop$1 = function drop(args) {
5923
5965
  return {
5924
5966
  type: 'DROP',
5925
5967
  payload: args
@@ -5965,7 +6007,7 @@
5965
6007
  var hasError = Boolean(errors[index]);
5966
6008
  return hasError ? "[\uD83D\uDD25" + index + "]" : "" + index;
5967
6009
  }).join(', ');
5968
- warning("\n Detected non-consecutive <Draggable /> indexes.\n\n (This can cause unexpected bugs)\n\n " + formatted + "\n ") ;
6010
+ warning$2("\n Detected non-consecutive <Draggable /> indexes.\n\n (This can cause unexpected bugs)\n\n " + formatted + "\n ") ;
5969
6011
  }
5970
6012
 
5971
6013
  function validateDimensions(critical, dimensions) {
@@ -5975,7 +6017,7 @@
5975
6017
  }
5976
6018
  }
5977
6019
 
5978
- var lift$1 = (function (marshal) {
6020
+ var lift = (function (marshal) {
5979
6021
  return function (_ref) {
5980
6022
  var getState = _ref.getState,
5981
6023
  dispatch = _ref.dispatch;
@@ -5998,7 +6040,7 @@
5998
6040
  }));
5999
6041
  }
6000
6042
 
6001
- !(getState().phase === 'IDLE') ? invariant(false, 'Unexpected phase to start a drag') : void 0;
6043
+ !(getState().phase === 'IDLE') ? invariant$1(false, 'Unexpected phase to start a drag') : void 0;
6002
6044
  dispatch(flush());
6003
6045
  dispatch(beforeInitialCapture({
6004
6046
  draggableId: id,
@@ -6083,7 +6125,7 @@
6083
6125
  };
6084
6126
 
6085
6127
  var moveTo = function moveTo(offset) {
6086
- return isEqual(offset, origin) ? null : "translate(" + offset.x + "px, " + offset.y + "px)";
6128
+ return isEqual$1(offset, origin) ? null : "translate(" + offset.x + "px, " + offset.y + "px)";
6087
6129
  };
6088
6130
 
6089
6131
  var transforms = {
@@ -6190,7 +6232,7 @@
6190
6232
  };
6191
6233
  });
6192
6234
 
6193
- var drop$1 = (function (_ref) {
6235
+ var drop = (function (_ref) {
6194
6236
  var getState = _ref.getState,
6195
6237
  dispatch = _ref.dispatch;
6196
6238
  return function (next) {
@@ -6215,8 +6257,8 @@
6215
6257
  }
6216
6258
 
6217
6259
  var isWaitingForDrop = state.phase === 'DROP_PENDING' && state.isWaiting;
6218
- !!isWaitingForDrop ? invariant(false, 'A DROP action occurred while DROP_PENDING and still waiting') : void 0;
6219
- !(state.phase === 'DRAGGING' || state.phase === 'DROP_PENDING') ? invariant(false, "Cannot drop in phase: " + state.phase) : void 0;
6260
+ !!isWaitingForDrop ? invariant$1(false, 'A DROP action occurred while DROP_PENDING and still waiting') : void 0;
6261
+ !(state.phase === 'DRAGGING' || state.phase === 'DROP_PENDING') ? invariant$1(false, "Cannot drop in phase: " + state.phase) : void 0;
6220
6262
  var critical = state.critical;
6221
6263
  var dimensions = state.dimensions;
6222
6264
  var draggable = dimensions.draggables[state.critical.draggable.id];
@@ -6261,7 +6303,7 @@
6261
6303
  result: result,
6262
6304
  impact: impact
6263
6305
  };
6264
- var isAnimationRequired = !isEqual(state.current.client.offset, newHomeClientOffset) || Boolean(result.combine);
6306
+ var isAnimationRequired = !isEqual$1(state.current.client.offset, newHomeClientOffset) || Boolean(result.combine);
6265
6307
 
6266
6308
  if (!isAnimationRequired) {
6267
6309
  dispatch(completeDrop({
@@ -6318,7 +6360,9 @@
6318
6360
  return wrapperFn;
6319
6361
  };
6320
6362
 
6321
- var getWindowScroll$1 = (function () {
6363
+ var rafSchedule = rafSchd;
6364
+
6365
+ var getWindowScroll = (function () {
6322
6366
  return {
6323
6367
  x: window.pageXOffset,
6324
6368
  y: window.pageYOffset
@@ -6346,27 +6390,27 @@
6346
6390
  var onWindowScroll = _ref.onWindowScroll;
6347
6391
 
6348
6392
  function updateScroll() {
6349
- onWindowScroll(getWindowScroll$1());
6393
+ onWindowScroll(getWindowScroll());
6350
6394
  }
6351
6395
 
6352
- var scheduled = rafSchd(updateScroll);
6396
+ var scheduled = rafSchedule(updateScroll);
6353
6397
  var binding = getWindowScrollBinding(scheduled);
6354
- var unbind = noop;
6398
+ var unbind = noop$2;
6355
6399
 
6356
6400
  function isActive() {
6357
- return unbind !== noop;
6401
+ return unbind !== noop$2;
6358
6402
  }
6359
6403
 
6360
6404
  function start() {
6361
- !!isActive() ? invariant(false, 'Cannot start scroll listener when already active') : void 0;
6405
+ !!isActive() ? invariant$1(false, 'Cannot start scroll listener when already active') : void 0;
6362
6406
  unbind = bindEvents(window, [binding]);
6363
6407
  }
6364
6408
 
6365
6409
  function stop() {
6366
- !isActive() ? invariant(false, 'Cannot stop scroll listener when not active') : void 0;
6410
+ !isActive() ? invariant$1(false, 'Cannot stop scroll listener when not active') : void 0;
6367
6411
  scheduled.cancel();
6368
6412
  unbind();
6369
- unbind = noop;
6413
+ unbind = noop$2;
6370
6414
  }
6371
6415
 
6372
6416
  return {
@@ -6412,12 +6456,12 @@
6412
6456
 
6413
6457
  var result = function result(message) {
6414
6458
  if (wasCalled) {
6415
- warning('Announcement already made. Not making a second announcement') ;
6459
+ warning$2('Announcement already made. Not making a second announcement') ;
6416
6460
  return;
6417
6461
  }
6418
6462
 
6419
6463
  if (isExpired) {
6420
- warning("\n Announcements cannot be made asynchronously.\n Default message has already been announced.\n ") ;
6464
+ warning$2("\n Announcements cannot be made asynchronously.\n Default message has already been announced.\n ") ;
6421
6465
  return;
6422
6466
  }
6423
6467
 
@@ -6440,7 +6484,7 @@
6440
6484
  var index = findIndex(entries, function (item) {
6441
6485
  return item.timerId === timerId;
6442
6486
  });
6443
- !(index !== -1) ? invariant(false, 'Could not find timer') : void 0;
6487
+ !(index !== -1) ? invariant$1(false, 'Could not find timer') : void 0;
6444
6488
 
6445
6489
  var _entries$splice = entries.splice(index, 1),
6446
6490
  entry = _entries$splice[0];
@@ -6511,7 +6555,9 @@
6511
6555
  };
6512
6556
 
6513
6557
  var withTimings = function withTimings(key, fn) {
6558
+ start(key);
6514
6559
  fn();
6560
+ finish(key);
6515
6561
  };
6516
6562
 
6517
6563
  var getDragStart = function getDragStart(critical, mode) {
@@ -6548,7 +6594,7 @@
6548
6594
  var dragging = null;
6549
6595
 
6550
6596
  var beforeCapture = function beforeCapture(draggableId, mode) {
6551
- !!dragging ? invariant(false, 'Cannot fire onBeforeCapture as a drag start has already been published') : void 0;
6597
+ !!dragging ? invariant$1(false, 'Cannot fire onBeforeCapture as a drag start has already been published') : void 0;
6552
6598
  withTimings('onBeforeCapture', function () {
6553
6599
  var fn = getResponders().onBeforeCapture;
6554
6600
 
@@ -6563,7 +6609,7 @@
6563
6609
  };
6564
6610
 
6565
6611
  var beforeStart = function beforeStart(critical, mode) {
6566
- !!dragging ? invariant(false, 'Cannot fire onBeforeDragStart as a drag start has already been published') : void 0;
6612
+ !!dragging ? invariant$1(false, 'Cannot fire onBeforeDragStart as a drag start has already been published') : void 0;
6567
6613
  withTimings('onBeforeDragStart', function () {
6568
6614
  var fn = getResponders().onBeforeDragStart;
6569
6615
 
@@ -6574,7 +6620,7 @@
6574
6620
  };
6575
6621
 
6576
6622
  var start = function start(critical, mode) {
6577
- !!dragging ? invariant(false, 'Cannot fire onBeforeDragStart as a drag start has already been published') : void 0;
6623
+ !!dragging ? invariant$1(false, 'Cannot fire onBeforeDragStart as a drag start has already been published') : void 0;
6578
6624
  var data = getDragStart(critical, mode);
6579
6625
  dragging = {
6580
6626
  mode: mode,
@@ -6584,7 +6630,7 @@
6584
6630
  };
6585
6631
  asyncMarshal.add(function () {
6586
6632
  withTimings('onDragStart', function () {
6587
- return execute(getResponders().onDragStart, data, announce, preset.onDragStart);
6633
+ return execute(getResponders().onDragStart, data, announce, preset$1.onDragStart);
6588
6634
  });
6589
6635
  });
6590
6636
  };
@@ -6592,7 +6638,7 @@
6592
6638
  var update = function update(critical, impact) {
6593
6639
  var location = tryGetDestination(impact);
6594
6640
  var combine = tryGetCombine(impact);
6595
- !dragging ? invariant(false, 'Cannot fire onDragMove when onDragStart has not been called') : void 0;
6641
+ !dragging ? invariant$1(false, 'Cannot fire onDragMove when onDragStart has not been called') : void 0;
6596
6642
  var hasCriticalChanged = !isCriticalEqual(critical, dragging.lastCritical);
6597
6643
 
6598
6644
  if (hasCriticalChanged) {
@@ -6622,21 +6668,21 @@
6622
6668
 
6623
6669
  asyncMarshal.add(function () {
6624
6670
  withTimings('onDragUpdate', function () {
6625
- return execute(getResponders().onDragUpdate, data, announce, preset.onDragUpdate);
6671
+ return execute(getResponders().onDragUpdate, data, announce, preset$1.onDragUpdate);
6626
6672
  });
6627
6673
  });
6628
6674
  };
6629
6675
 
6630
6676
  var flush = function flush() {
6631
- !dragging ? invariant(false, 'Can only flush responders while dragging') : void 0;
6677
+ !dragging ? invariant$1(false, 'Can only flush responders while dragging') : void 0;
6632
6678
  asyncMarshal.flush();
6633
6679
  };
6634
6680
 
6635
6681
  var drop = function drop(result) {
6636
- !dragging ? invariant(false, 'Cannot fire onDragEnd when there is no matching onDragStart') : void 0;
6682
+ !dragging ? invariant$1(false, 'Cannot fire onDragEnd when there is no matching onDragStart') : void 0;
6637
6683
  dragging = null;
6638
6684
  withTimings('onDragEnd', function () {
6639
- return execute(getResponders().onDragEnd, result, announce, preset.onDragEnd);
6685
+ return execute(getResponders().onDragEnd, result, announce, preset$1.onDragEnd);
6640
6686
  });
6641
6687
  };
6642
6688
 
@@ -6717,7 +6763,7 @@
6717
6763
  }
6718
6764
 
6719
6765
  var state = store.getState();
6720
- !(state.phase === 'DROP_ANIMATING') ? invariant(false, 'Cannot finish a drop animating when no drop is occurring') : void 0;
6766
+ !(state.phase === 'DROP_ANIMATING') ? invariant$1(false, 'Cannot finish a drop animating when no drop is occurring') : void 0;
6721
6767
  store.dispatch(completeDrop({
6722
6768
  completed: state.completed
6723
6769
  }));
@@ -6847,7 +6893,7 @@
6847
6893
  if (action.type === 'INITIAL_PUBLISH') {
6848
6894
  next(action);
6849
6895
  var state = store.getState();
6850
- !(state.phase === 'DRAGGING') ? invariant(false, 'Expected phase to be DRAGGING after INITIAL_PUBLISH') : void 0;
6896
+ !(state.phase === 'DRAGGING') ? invariant$1(false, 'Expected phase to be DRAGGING after INITIAL_PUBLISH') : void 0;
6851
6897
  autoScroller.start(state);
6852
6898
  return;
6853
6899
  }
@@ -6878,24 +6924,24 @@
6878
6924
  return;
6879
6925
  }
6880
6926
 
6881
- store.dispatch(drop({
6927
+ store.dispatch(drop$1({
6882
6928
  reason: postActionState.reason
6883
6929
  }));
6884
6930
  };
6885
6931
  };
6886
6932
  });
6887
6933
 
6888
- var composeEnhancers = typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({
6934
+ var composeEnhancers = typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({
6889
6935
  name: 'react-beautiful-dnd'
6890
6936
  }) : compose;
6891
- var createStore$1 = (function (_ref) {
6937
+ var createStore = (function (_ref) {
6892
6938
  var dimensionMarshal = _ref.dimensionMarshal,
6893
6939
  focusMarshal = _ref.focusMarshal,
6894
6940
  styleMarshal = _ref.styleMarshal,
6895
6941
  getResponders = _ref.getResponders,
6896
6942
  announce = _ref.announce,
6897
6943
  autoScroller = _ref.autoScroller;
6898
- return createStore(reducer, composeEnhancers(applyMiddleware(style(styleMarshal), dimensionMarshalStopper(dimensionMarshal), lift$1(dimensionMarshal), drop$1, dropAnimationFinish, dropAnimationFlushOnScroll, pendingDrop, autoScroll(autoScroller), scrollListener, focus(focusMarshal), responders(getResponders, announce))));
6944
+ return createStore$1(reducer, composeEnhancers(applyMiddleware(style(styleMarshal), dimensionMarshalStopper(dimensionMarshal), lift(dimensionMarshal), drop, dropAnimationFinish, dropAnimationFlushOnScroll, pendingDrop, autoScroll(autoScroller), scrollListener, focus(focusMarshal), responders(getResponders, announce))));
6899
6945
  });
6900
6946
 
6901
6947
  var clean$1 = function clean() {
@@ -6905,6 +6951,8 @@
6905
6951
  modified: {}
6906
6952
  };
6907
6953
  };
6954
+
6955
+ var timingKey = 'Publish collection from DOM';
6908
6956
  function createPublisher(_ref) {
6909
6957
  var registry = _ref.registry,
6910
6958
  callbacks = _ref.callbacks;
@@ -6919,6 +6967,7 @@
6919
6967
  callbacks.collectionStarting();
6920
6968
  frameId = requestAnimationFrame(function () {
6921
6969
  frameId = null;
6970
+ start(timingKey);
6922
6971
  var _staging = staging,
6923
6972
  additions = _staging.additions,
6924
6973
  removals = _staging.removals,
@@ -6942,6 +6991,7 @@
6942
6991
  modified: updated
6943
6992
  };
6944
6993
  staging = clean$1();
6994
+ finish(timingKey);
6945
6995
  callbacks.publish(result);
6946
6996
  });
6947
6997
  };
@@ -7008,7 +7058,7 @@
7008
7058
 
7009
7059
  var getDocumentElement = (function () {
7010
7060
  var doc = document.documentElement;
7011
- !doc ? invariant(false, 'Cannot find document.documentElement') : void 0;
7061
+ !doc ? invariant$1(false, 'Cannot find document.documentElement') : void 0;
7012
7062
  return doc;
7013
7063
  });
7014
7064
 
@@ -7024,7 +7074,7 @@
7024
7074
  });
7025
7075
 
7026
7076
  var getViewport = (function () {
7027
- var scroll = getWindowScroll$1();
7077
+ var scroll = getWindowScroll();
7028
7078
  var maxScroll = getMaxWindowScroll();
7029
7079
  var top = scroll.y;
7030
7080
  var left = scroll.x;
@@ -7058,6 +7108,8 @@
7058
7108
  var critical = _ref.critical,
7059
7109
  scrollOptions = _ref.scrollOptions,
7060
7110
  registry = _ref.registry;
7111
+ var timingKey = 'Initial collection from DOM';
7112
+ start(timingKey);
7061
7113
  var viewport = getViewport();
7062
7114
  var windowScroll = viewport.scroll.current;
7063
7115
  var home = critical.droppable;
@@ -7071,6 +7123,7 @@
7071
7123
  draggables: toDraggableMap(draggables),
7072
7124
  droppables: toDroppableMap(droppables)
7073
7125
  };
7126
+ finish(timingKey);
7074
7127
  var result = {
7075
7128
  dimensions: dimensions,
7076
7129
  critical: critical,
@@ -7091,7 +7144,7 @@
7091
7144
  var home = registry.droppable.getById(entry.descriptor.droppableId);
7092
7145
 
7093
7146
  if (home.descriptor.mode !== 'virtual') {
7094
- warning("\n You are attempting to add or remove a Draggable [id: " + entry.descriptor.id + "]\n while a drag is occurring. This is only supported for virtual lists.\n\n See https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/patterns/virtual-lists.md\n ") ;
7147
+ warning$2("\n You are attempting to add or remove a Draggable [id: " + entry.descriptor.id + "]\n while a drag is occurring. This is only supported for virtual lists.\n\n See https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/patterns/virtual-lists.md\n ") ;
7095
7148
  return false;
7096
7149
  }
7097
7150
 
@@ -7109,7 +7162,7 @@
7109
7162
  });
7110
7163
 
7111
7164
  var updateDroppableIsEnabled = function updateDroppableIsEnabled(id, isEnabled) {
7112
- !registry.droppable.exists(id) ? invariant(false, "Cannot update is enabled flag of Droppable " + id + " as it is not registered") : void 0;
7165
+ !registry.droppable.exists(id) ? invariant$1(false, "Cannot update is enabled flag of Droppable " + id + " as it is not registered") : void 0;
7113
7166
 
7114
7167
  if (!collection) {
7115
7168
  return;
@@ -7126,7 +7179,7 @@
7126
7179
  return;
7127
7180
  }
7128
7181
 
7129
- !registry.droppable.exists(id) ? invariant(false, "Cannot update isCombineEnabled flag of Droppable " + id + " as it is not registered") : void 0;
7182
+ !registry.droppable.exists(id) ? invariant$1(false, "Cannot update isCombineEnabled flag of Droppable " + id + " as it is not registered") : void 0;
7130
7183
  callbacks.updateDroppableIsCombineEnabled({
7131
7184
  id: id,
7132
7185
  isCombineEnabled: isCombineEnabled
@@ -7138,7 +7191,7 @@
7138
7191
  return;
7139
7192
  }
7140
7193
 
7141
- !registry.droppable.exists(id) ? invariant(false, "Cannot update the scroll on Droppable " + id + " as it is not registered") : void 0;
7194
+ !registry.droppable.exists(id) ? invariant$1(false, "Cannot update the scroll on Droppable " + id + " as it is not registered") : void 0;
7142
7195
  callbacks.updateDroppableScroll({
7143
7196
  id: id,
7144
7197
  newScroll: newScroll
@@ -7168,7 +7221,7 @@
7168
7221
  };
7169
7222
 
7170
7223
  var subscriber = function subscriber(event) {
7171
- !collection ? invariant(false, 'Should only be subscribed when a collection is occurring') : void 0;
7224
+ !collection ? invariant$1(false, 'Should only be subscribed when a collection is occurring') : void 0;
7172
7225
  var dragging = collection.critical.draggable;
7173
7226
 
7174
7227
  if (event.type === 'ADDITION') {
@@ -7185,7 +7238,7 @@
7185
7238
  };
7186
7239
 
7187
7240
  var startPublishing = function startPublishing(request) {
7188
- !!collection ? invariant(false, 'Cannot start capturing critical dimensions as there is already a collection') : void 0;
7241
+ !!collection ? invariant$1(false, 'Cannot start capturing critical dimensions as there is already a collection') : void 0;
7189
7242
  var entry = registry.draggable.getById(request.draggableId);
7190
7243
  var home = registry.droppable.getById(entry.descriptor.droppableId);
7191
7244
  var critical = {
@@ -7251,7 +7304,7 @@
7251
7304
 
7252
7305
  var getScrollableDroppableOver = function getScrollableDroppableOver(target, droppables) {
7253
7306
  var maybe = find(getScrollableDroppables(droppables), function (droppable) {
7254
- !droppable.frame ? invariant(false, 'Invalid result') : void 0;
7307
+ !droppable.frame ? invariant$1(false, 'Invalid result') : void 0;
7255
7308
  return isPositionInFrame(droppable.frame.pageMarginBox)(target);
7256
7309
  });
7257
7310
  return maybe;
@@ -7283,7 +7336,7 @@
7283
7336
  var range = endOfRange - startOfRange;
7284
7337
 
7285
7338
  if (range === 0) {
7286
- warning("\n Detected distance range of 0 in the fluid auto scroller\n This is unexpected and would cause a divide by 0 issue.\n Not allowing an auto scroll\n ") ;
7339
+ warning$2("\n Detected distance range of 0 in the fluid auto scroller\n This is unexpected and would cause a divide by 0 issue.\n Not allowing an auto scroll\n ") ;
7287
7340
  return 0;
7288
7341
  }
7289
7342
 
@@ -7304,6 +7357,7 @@
7304
7357
  accelerateAt: 360
7305
7358
  }
7306
7359
  };
7360
+ var config$1 = config;
7307
7361
 
7308
7362
  var minScroll = 1;
7309
7363
 
@@ -7312,7 +7366,7 @@
7312
7366
  return 0;
7313
7367
  }
7314
7368
 
7315
- var maxSpeed = (configOverride == null ? void 0 : configOverride.maxPixelScroll) || config.maxPixelScroll;
7369
+ var maxSpeed = (configOverride == null ? void 0 : configOverride.maxPixelScroll) || config$1.maxPixelScroll;
7316
7370
 
7317
7371
  if (distanceToEdge <= thresholds.maxScrollValueAt) {
7318
7372
  return maxSpeed;
@@ -7328,18 +7382,18 @@
7328
7382
  current: distanceToEdge
7329
7383
  });
7330
7384
  var percentageFromStartScrollingFrom = 1 - percentageFromMaxScrollValueAt;
7331
- var scroll = maxSpeed * config.ease(percentageFromStartScrollingFrom);
7385
+ var scroll = maxSpeed * config$1.ease(percentageFromStartScrollingFrom);
7332
7386
  return Math.ceil(scroll);
7333
7387
  });
7334
7388
 
7335
- var defaultAccelerateAt = config.durationDampening.accelerateAt;
7336
- var defaultStopAt = config.durationDampening.stopDampeningAt;
7389
+ var defaultAccelerateAt = config$1.durationDampening.accelerateAt;
7390
+ var defaultStopAt = config$1.durationDampening.stopDampeningAt;
7337
7391
  var dampenValueByTime = (function (proposedScroll, dragStartTime, configOverride) {
7338
7392
  var _configOverride$durat, _configOverride$durat2;
7339
7393
 
7340
7394
  var accelerateAt = (configOverride == null ? void 0 : (_configOverride$durat = configOverride.durationDampening) == null ? void 0 : _configOverride$durat.accelerateAt) || defaultAccelerateAt;
7341
7395
  var stopAt = (configOverride == null ? void 0 : (_configOverride$durat2 = configOverride.durationDampening) == null ? void 0 : _configOverride$durat2.stopDampeningAt) || defaultStopAt;
7342
- var ease = (configOverride == null ? void 0 : configOverride.ease) || config.ease;
7396
+ var ease = (configOverride == null ? void 0 : configOverride.ease) || config$1.ease;
7343
7397
  var startOfRange = dragStartTime;
7344
7398
  var endOfRange = stopAt;
7345
7399
  var now = Date.now();
@@ -7546,8 +7600,8 @@
7546
7600
  });
7547
7601
 
7548
7602
  var getDistanceThresholds = (function (container, axis, configOverride) {
7549
- var startFromPercentage = (configOverride == null ? void 0 : configOverride.startFromPercentage) || config.startFromPercentage;
7550
- var maxScrollAtPercentage = (configOverride == null ? void 0 : configOverride.maxScrollAtPercentage) || config.maxScrollAtPercentage;
7603
+ var startFromPercentage = (configOverride == null ? void 0 : configOverride.startFromPercentage) || config$1.startFromPercentage;
7604
+ var maxScrollAtPercentage = (configOverride == null ? void 0 : configOverride.maxScrollAtPercentage) || config$1.maxScrollAtPercentage;
7551
7605
  var startScrollingFrom = container[axis.size] * startFromPercentage;
7552
7606
  var maxScrollValueAt = container[axis.size] * maxScrollAtPercentage;
7553
7607
  var thresholds = {
@@ -7557,10 +7611,10 @@
7557
7611
  return thresholds;
7558
7612
  });
7559
7613
 
7560
- var clean$2 = apply(function (value) {
7614
+ var clean = apply(function (value) {
7561
7615
  return value === 0 ? 0 : value;
7562
7616
  });
7563
- var getScroll = (function (_ref) {
7617
+ var getScroll$1 = (function (_ref) {
7564
7618
  var dragStartTime = _ref.dragStartTime,
7565
7619
  container = _ref.container,
7566
7620
  containerScroll = _ref.containerScroll,
@@ -7595,12 +7649,12 @@
7595
7649
  shouldUseTimeDampening: shouldUseTimeDampening,
7596
7650
  thresholds: thresholdsHorizontal
7597
7651
  });
7598
- var required = clean$2({
7652
+ var required = clean({
7599
7653
  x: x,
7600
7654
  y: y
7601
7655
  });
7602
7656
 
7603
- if (isEqual(required, origin)) {
7657
+ if (isEqual$1(required, origin)) {
7604
7658
  return null;
7605
7659
  }
7606
7660
 
@@ -7647,7 +7701,7 @@
7647
7701
  }
7648
7702
  }
7649
7703
 
7650
- return isEqual(scroll, origin) ? null : scroll;
7704
+ return isEqual$1(scroll, origin) ? null : scroll;
7651
7705
  });
7652
7706
 
7653
7707
  var smallestSigned = apply(function (value) {
@@ -7680,7 +7734,7 @@
7680
7734
  y: getRemainder(targetScroll.y, max.y)
7681
7735
  };
7682
7736
 
7683
- if (isEqual(overlap, origin)) {
7737
+ if (isEqual$1(overlap, origin)) {
7684
7738
  return null;
7685
7739
  }
7686
7740
 
@@ -7779,7 +7833,7 @@
7779
7833
  x: viewport.scroll.current.x,
7780
7834
  y: viewport.scroll.current.y
7781
7835
  };
7782
- var scroll = getScroll({
7836
+ var scroll = getScroll$1({
7783
7837
  dragStartTime: dragStartTime,
7784
7838
  container: viewport.frame,
7785
7839
  containerScroll: viewport.scroll,
@@ -7807,7 +7861,7 @@
7807
7861
  return null;
7808
7862
  }
7809
7863
 
7810
- var scroll = getScroll({
7864
+ var scroll = getScroll$1({
7811
7865
  dragStartTime: dragStartTime,
7812
7866
  container: frame.pageMarginBox,
7813
7867
  containerScroll: frame.scroll,
@@ -7820,7 +7874,7 @@
7820
7874
  return scroll && canScrollDroppable(droppable, scroll) ? scroll : null;
7821
7875
  });
7822
7876
 
7823
- var scroll$1 = (function (_ref) {
7877
+ var scroll = (function (_ref) {
7824
7878
  var state = _ref.state,
7825
7879
  dragStartTime = _ref.dragStartTime,
7826
7880
  shouldUseTimeDampening = _ref.shouldUseTimeDampening,
@@ -7880,16 +7934,16 @@
7880
7934
  var scrollWindow = _ref.scrollWindow,
7881
7935
  scrollDroppable = _ref.scrollDroppable,
7882
7936
  fluidScrollerOptions = _ref.fluidScrollerOptions;
7883
- var scheduleWindowScroll = rafSchd(scrollWindow);
7884
- var scheduleDroppableScroll = rafSchd(scrollDroppable);
7937
+ var scheduleWindowScroll = rafSchedule(scrollWindow);
7938
+ var scheduleDroppableScroll = rafSchedule(scrollDroppable);
7885
7939
  var dragging = null;
7886
7940
 
7887
7941
  var tryScroll = function tryScroll(state) {
7888
- !dragging ? invariant(false, 'Cannot fluid scroll if not dragging') : void 0;
7942
+ !dragging ? invariant$1(false, 'Cannot fluid scroll if not dragging') : void 0;
7889
7943
  var _dragging = dragging,
7890
7944
  shouldUseTimeDampening = _dragging.shouldUseTimeDampening,
7891
7945
  dragStartTime = _dragging.dragStartTime;
7892
- scroll$1({
7946
+ scroll({
7893
7947
  state: state,
7894
7948
  scrollWindow: scheduleWindowScroll,
7895
7949
  scrollDroppable: scheduleDroppableScroll,
@@ -7899,8 +7953,9 @@
7899
7953
  });
7900
7954
  };
7901
7955
 
7902
- var start = function start(state) {
7903
- !!dragging ? invariant(false, 'Cannot start auto scrolling when already started') : void 0;
7956
+ var start$1 = function start$1(state) {
7957
+ start('starting fluid scroller');
7958
+ !!dragging ? invariant$1(false, 'Cannot start auto scrolling when already started') : void 0;
7904
7959
  var dragStartTime = Date.now();
7905
7960
  var wasScrollNeeded = false;
7906
7961
 
@@ -7908,7 +7963,7 @@
7908
7963
  wasScrollNeeded = true;
7909
7964
  };
7910
7965
 
7911
- scroll$1({
7966
+ scroll({
7912
7967
  state: state,
7913
7968
  dragStartTime: 0,
7914
7969
  shouldUseTimeDampening: false,
@@ -7920,6 +7975,7 @@
7920
7975
  dragStartTime: dragStartTime,
7921
7976
  shouldUseTimeDampening: wasScrollNeeded
7922
7977
  };
7978
+ finish('starting fluid scroller');
7923
7979
 
7924
7980
  if (wasScrollNeeded) {
7925
7981
  tryScroll(state);
@@ -7937,7 +7993,7 @@
7937
7993
  };
7938
7994
 
7939
7995
  return {
7940
- start: start,
7996
+ start: start$1,
7941
7997
  stop: stop,
7942
7998
  scroll: tryScroll
7943
7999
  };
@@ -8003,7 +8059,7 @@
8003
8059
  }
8004
8060
 
8005
8061
  var destination = whatIsDraggedOver(state.impact);
8006
- !destination ? invariant(false, 'Cannot perform a jump scroll when there is no destination') : void 0;
8062
+ !destination ? invariant$1(false, 'Cannot perform a jump scroll when there is no destination') : void 0;
8007
8063
  var droppableRemainder = scrollDroppableAsMuchAsItCan(state.dimensions.droppables[destination], request);
8008
8064
 
8009
8065
  if (!droppableRemainder) {
@@ -8064,9 +8120,9 @@
8064
8120
  return scroller;
8065
8121
  });
8066
8122
 
8067
- var prefix$2 = 'data-rbd';
8123
+ var prefix = 'data-rbd';
8068
8124
  var dragHandle = function () {
8069
- var base = prefix$2 + "-drag-handle";
8125
+ var base = prefix + "-drag-handle";
8070
8126
  return {
8071
8127
  base: base,
8072
8128
  draggableId: base + "-draggable-id",
@@ -8074,7 +8130,7 @@
8074
8130
  };
8075
8131
  }();
8076
8132
  var draggable = function () {
8077
- var base = prefix$2 + "-draggable";
8133
+ var base = prefix + "-draggable";
8078
8134
  return {
8079
8135
  base: base,
8080
8136
  contextId: base + "-context-id",
@@ -8082,7 +8138,7 @@
8082
8138
  };
8083
8139
  }();
8084
8140
  var droppable = function () {
8085
- var base = prefix$2 + "-droppable";
8141
+ var base = prefix + "-droppable";
8086
8142
  return {
8087
8143
  base: base,
8088
8144
  contextId: base + "-context-id",
@@ -8090,7 +8146,7 @@
8090
8146
  };
8091
8147
  }();
8092
8148
  var scrollContainer = {
8093
- contextId: prefix$2 + "-scroll-container-context-id"
8149
+ contextId: prefix + "-scroll-container-context-id"
8094
8150
  };
8095
8151
 
8096
8152
  var makeGetSelector = function makeGetSelector(context) {
@@ -8162,11 +8218,12 @@
8162
8218
  };
8163
8219
  });
8164
8220
 
8165
- var useIsomorphicLayoutEffect$1 = typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined' ? React.useLayoutEffect : React.useEffect;
8221
+ var useIsomorphicLayoutEffect = typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined' ? React.useLayoutEffect : React.useEffect;
8222
+ var useLayoutEffect = useIsomorphicLayoutEffect;
8166
8223
 
8167
8224
  var getHead = function getHead() {
8168
8225
  var head = document.querySelector('head');
8169
- !head ? invariant(false, 'Cannot find the head to append a style to') : void 0;
8226
+ !head ? invariant$1(false, 'Cannot find the head to append a style to') : void 0;
8170
8227
  return head;
8171
8228
  };
8172
8229
 
@@ -8189,22 +8246,22 @@
8189
8246
  var dynamicRef = React.useRef(null);
8190
8247
  var setDynamicStyle = useCallback(memoizeOne(function (proposed) {
8191
8248
  var el = dynamicRef.current;
8192
- !el ? invariant(false, 'Cannot set dynamic style element if it is not set') : void 0;
8249
+ !el ? invariant$1(false, 'Cannot set dynamic style element if it is not set') : void 0;
8193
8250
  el.textContent = proposed;
8194
8251
  }), []);
8195
8252
  var setAlwaysStyle = useCallback(function (proposed) {
8196
8253
  var el = alwaysRef.current;
8197
- !el ? invariant(false, 'Cannot set dynamic style element if it is not set') : void 0;
8254
+ !el ? invariant$1(false, 'Cannot set dynamic style element if it is not set') : void 0;
8198
8255
  el.textContent = proposed;
8199
8256
  }, []);
8200
- useIsomorphicLayoutEffect$1(function () {
8201
- !(!alwaysRef.current && !dynamicRef.current) ? invariant(false, 'style elements already mounted') : void 0;
8257
+ useLayoutEffect(function () {
8258
+ !(!alwaysRef.current && !dynamicRef.current) ? invariant$1(false, 'style elements already mounted') : void 0;
8202
8259
  var always = createStyleEl(nonce);
8203
8260
  var dynamic = createStyleEl(nonce);
8204
8261
  alwaysRef.current = always;
8205
8262
  dynamicRef.current = dynamic;
8206
- always.setAttribute(prefix$2 + "-always", contextId);
8207
- dynamic.setAttribute(prefix$2 + "-dynamic", contextId);
8263
+ always.setAttribute(prefix + "-always", contextId);
8264
+ dynamic.setAttribute(prefix + "-dynamic", contextId);
8208
8265
  getHead().appendChild(always);
8209
8266
  getHead().appendChild(dynamic);
8210
8267
  setAlwaysStyle(styles.always);
@@ -8212,7 +8269,7 @@
8212
8269
  return function () {
8213
8270
  var remove = function remove(ref) {
8214
8271
  var current = ref.current;
8215
- !current ? invariant(false, 'Cannot unmount ref as it is not set') : void 0;
8272
+ !current ? invariant$1(false, 'Cannot unmount ref as it is not set') : void 0;
8216
8273
  getHead().removeChild(current);
8217
8274
  ref.current = null;
8218
8275
  };
@@ -8262,7 +8319,7 @@
8262
8319
  var possible = toArray(document.querySelectorAll(selector));
8263
8320
 
8264
8321
  if (!possible.length) {
8265
- warning("Unable to find any drag handles in the context \"" + contextId + "\"") ;
8322
+ warning$2("Unable to find any drag handles in the context \"" + contextId + "\"") ;
8266
8323
  return null;
8267
8324
  }
8268
8325
 
@@ -8271,12 +8328,12 @@
8271
8328
  });
8272
8329
 
8273
8330
  if (!handle) {
8274
- warning("Unable to find drag handle with id \"" + draggableId + "\" as no handle with a matching id was found") ;
8331
+ warning$2("Unable to find drag handle with id \"" + draggableId + "\" as no handle with a matching id was found") ;
8275
8332
  return null;
8276
8333
  }
8277
8334
 
8278
8335
  if (!isHtmlElement(handle)) {
8279
- warning('drag handle needs to be a HTMLElement') ;
8336
+ warning$2('drag handle needs to be a HTMLElement') ;
8280
8337
  return null;
8281
8338
  }
8282
8339
 
@@ -8347,7 +8404,7 @@
8347
8404
 
8348
8405
  recordRef.current = id;
8349
8406
  }, []);
8350
- useIsomorphicLayoutEffect$1(function () {
8407
+ useLayoutEffect(function () {
8351
8408
  isMountedRef.current = true;
8352
8409
  return function clearFrameOnUnmount() {
8353
8410
  isMountedRef.current = false;
@@ -8403,7 +8460,7 @@
8403
8460
 
8404
8461
  function getDraggableById(id) {
8405
8462
  var entry = findDraggableById(id);
8406
- !entry ? invariant(false, "Cannot find draggable entry with id [" + id + "]") : void 0;
8463
+ !entry ? invariant$1(false, "Cannot find draggable entry with id [" + id + "]") : void 0;
8407
8464
  return entry;
8408
8465
  }
8409
8466
 
@@ -8465,7 +8522,7 @@
8465
8522
 
8466
8523
  function getDroppableById(id) {
8467
8524
  var entry = findDroppableById(id);
8468
- !entry ? invariant(false, "Cannot find droppable entry with id [" + id + "]") : void 0;
8525
+ !entry ? invariant$1(false, "Cannot find droppable entry with id [" + id + "]") : void 0;
8469
8526
  return entry;
8470
8527
  }
8471
8528
 
@@ -8522,11 +8579,11 @@
8522
8579
  return registry;
8523
8580
  }
8524
8581
 
8525
- var StoreContext = React__default.createContext(null);
8582
+ var StoreContext = React.createContext(null);
8526
8583
 
8527
8584
  var getBodyElement = (function () {
8528
8585
  var body = document.body;
8529
- !body ? invariant(false, 'Cannot find document.body') : void 0;
8586
+ !body ? invariant$1(false, 'Cannot find document.body') : void 0;
8530
8587
  return body;
8531
8588
  });
8532
8589
 
@@ -8541,6 +8598,7 @@
8541
8598
  clip: 'rect(0 0 0 0)',
8542
8599
  'clip-path': 'inset(100%)'
8543
8600
  };
8601
+ var visuallyHidden$1 = visuallyHidden;
8544
8602
 
8545
8603
  var getId = function getId(contextId) {
8546
8604
  return "rbd-announcement-" + contextId;
@@ -8557,7 +8615,7 @@
8557
8615
  el.setAttribute('aria-live', 'assertive');
8558
8616
  el.setAttribute('aria-atomic', 'true');
8559
8617
 
8560
- _extends(el.style, visuallyHidden);
8618
+ _extends(el.style, visuallyHidden$1);
8561
8619
 
8562
8620
  getBodyElement().appendChild(el);
8563
8621
  return function cleanup() {
@@ -8582,17 +8640,17 @@
8582
8640
  return;
8583
8641
  }
8584
8642
 
8585
- warning("\n A screen reader message was trying to be announced but it was unable to do so.\n This can occur if you unmount your <DragDropContext /> in your onDragEnd.\n Consider calling provided.announce() before the unmount so that the instruction will\n not be lost for users relying on a screen reader.\n\n Message not passed to screen reader:\n\n \"" + message + "\"\n ") ;
8643
+ warning$2("\n A screen reader message was trying to be announced but it was unable to do so.\n This can occur if you unmount your <DragDropContext /> in your onDragEnd.\n Consider calling provided.announce() before the unmount so that the instruction will\n not be lost for users relying on a screen reader.\n\n Message not passed to screen reader:\n\n \"" + message + "\"\n ") ;
8586
8644
  }, []);
8587
8645
  return announce;
8588
8646
  }
8589
8647
 
8590
- var count = 0;
8648
+ var count$1 = 0;
8591
8649
  var defaults = {
8592
8650
  separator: '::'
8593
8651
  };
8594
- function reset() {
8595
- count = 0;
8652
+ function reset$1() {
8653
+ count$1 = 0;
8596
8654
  }
8597
8655
  function useUniqueId(prefix, options) {
8598
8656
  if (options === void 0) {
@@ -8600,7 +8658,7 @@
8600
8658
  }
8601
8659
 
8602
8660
  return useMemo(function () {
8603
- return "" + prefix + options.separator + count++;
8661
+ return "" + prefix + options.separator + count$1++;
8604
8662
  }, [options.separator, prefix]);
8605
8663
  }
8606
8664
 
@@ -8638,7 +8696,7 @@
8638
8696
  return id;
8639
8697
  }
8640
8698
 
8641
- var AppContext = React__default.createContext(null);
8699
+ var AppContext = React.createContext(null);
8642
8700
 
8643
8701
  var peerDependencies = {
8644
8702
  react: "^16.8.5 || ^17.0.0 || ^18.0.0",
@@ -8649,7 +8707,7 @@
8649
8707
 
8650
8708
  var getVersion = function getVersion(value) {
8651
8709
  var result = semver.exec(value);
8652
- !(result != null) ? invariant(false, "Unable to parse React version " + value) : void 0;
8710
+ !(result != null) ? invariant$1(false, "Unable to parse React version " + value) : void 0;
8653
8711
  var major = Number(result[1]);
8654
8712
  var minor = Number(result[2]);
8655
8713
  var patch = Number(result[3]);
@@ -8689,7 +8747,7 @@
8689
8747
  return;
8690
8748
  }
8691
8749
 
8692
- warning("\n React version: [" + actual.raw + "]\n does not satisfy expected peer dependency version: [" + peerDep.raw + "]\n\n This can result in run time bugs, and even fatal crashes\n ") ;
8750
+ warning$2("\n React version: [" + actual.raw + "]\n does not satisfy expected peer dependency version: [" + peerDep.raw + "]\n\n This can result in run time bugs, and even fatal crashes\n ") ;
8693
8751
  });
8694
8752
 
8695
8753
  var suffix = "\n We expect a html5 doctype: <!doctype html>\n This is to ensure consistent browser layout and measurement\n\n More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/doctype.md\n";
@@ -8697,16 +8755,16 @@
8697
8755
  var doctype = doc.doctype;
8698
8756
 
8699
8757
  if (!doctype) {
8700
- warning("\n No <!doctype html> found.\n\n " + suffix + "\n ") ;
8758
+ warning$2("\n No <!doctype html> found.\n\n " + suffix + "\n ") ;
8701
8759
  return;
8702
8760
  }
8703
8761
 
8704
8762
  if (doctype.name.toLowerCase() !== 'html') {
8705
- warning("\n Unexpected <!doctype> found: (" + doctype.name + ")\n\n " + suffix + "\n ") ;
8763
+ warning$2("\n Unexpected <!doctype> found: (" + doctype.name + ")\n\n " + suffix + "\n ") ;
8706
8764
  }
8707
8765
 
8708
8766
  if (doctype.publicId !== '') {
8709
- warning("\n Unexpected <!doctype> publicId found: (" + doctype.publicId + ")\n A html5 doctype does not have a publicId\n\n " + suffix + "\n ") ;
8767
+ warning$2("\n Unexpected <!doctype> publicId found: (" + doctype.publicId + ")\n A html5 doctype does not have a publicId\n\n " + suffix + "\n ") ;
8710
8768
  }
8711
8769
  });
8712
8770
 
@@ -8730,7 +8788,7 @@
8730
8788
 
8731
8789
  function useStartupValidation() {
8732
8790
  useDevSetupWarning(function () {
8733
- checkReactVersion(peerDependencies.react, React__default.version);
8791
+ checkReactVersion(peerDependencies.react, React.version);
8734
8792
  checkDoctype(document);
8735
8793
  }, []);
8736
8794
  }
@@ -8755,7 +8813,7 @@
8755
8813
  }
8756
8814
 
8757
8815
  function claim(abandon) {
8758
- !!lock ? invariant(false, 'Cannot claim lock as it is already claimed') : void 0;
8816
+ !!lock ? invariant$1(false, 'Cannot claim lock as it is already claimed') : void 0;
8759
8817
  var newLock = {
8760
8818
  abandon: abandon
8761
8819
  };
@@ -8764,7 +8822,7 @@
8764
8822
  }
8765
8823
 
8766
8824
  function release() {
8767
- !lock ? invariant(false, 'Cannot release lock when there is no lock') : void 0;
8825
+ !lock ? invariant$1(false, 'Cannot release lock when there is no lock') : void 0;
8768
8826
  lock = null;
8769
8827
  }
8770
8828
 
@@ -8819,6 +8877,8 @@
8819
8877
  return supported || base;
8820
8878
  }();
8821
8879
 
8880
+ var supportedPageVisibilityEventName = supportedEventName;
8881
+
8822
8882
  var primaryButton = 0;
8823
8883
  var sloppyClickThreshold = 5;
8824
8884
 
@@ -8858,7 +8918,7 @@
8858
8918
  return;
8859
8919
  }
8860
8920
 
8861
- !(phase.type === 'PENDING') ? invariant(false, 'Cannot be IDLE') : void 0;
8921
+ !(phase.type === 'PENDING') ? invariant$1(false, 'Cannot be IDLE') : void 0;
8862
8922
  var pending = phase.point;
8863
8923
 
8864
8924
  if (!isSloppyClickThresholdExceeded(pending, point)) {
@@ -8933,7 +8993,7 @@
8933
8993
  eventName: 'webkitmouseforcedown',
8934
8994
  fn: function fn(event) {
8935
8995
  var phase = getPhase();
8936
- !(phase.type !== 'IDLE') ? invariant(false, 'Unexpected phase') : void 0;
8996
+ !(phase.type !== 'IDLE') ? invariant$1(false, 'Unexpected phase') : void 0;
8937
8997
 
8938
8998
  if (phase.actions.shouldRespectForcePress()) {
8939
8999
  cancel();
@@ -8943,14 +9003,14 @@
8943
9003
  event.preventDefault();
8944
9004
  }
8945
9005
  }, {
8946
- eventName: supportedEventName,
9006
+ eventName: supportedPageVisibilityEventName,
8947
9007
  fn: cancel
8948
9008
  }];
8949
9009
  }
8950
9010
 
8951
9011
  function useMouseSensor(api) {
8952
9012
  var phaseRef = React.useRef(idle$1);
8953
- var unbindEventsRef = React.useRef(noop);
9013
+ var unbindEventsRef = React.useRef(noop$2);
8954
9014
  var startCaptureBinding = useMemo(function () {
8955
9015
  return {
8956
9016
  eventName: 'mousedown',
@@ -9073,7 +9133,7 @@
9073
9133
  unbindEventsRef.current = bindEvents(window, bindings, options);
9074
9134
  }, [cancel, stop]);
9075
9135
  var startPendingDrag = useCallback(function startPendingDrag(actions, point) {
9076
- !(phaseRef.current.type === 'IDLE') ? invariant(false, 'Expected to move from IDLE to PENDING drag') : void 0;
9136
+ !(phaseRef.current.type === 'IDLE') ? invariant$1(false, 'Expected to move from IDLE to PENDING drag') : void 0;
9077
9137
  phaseRef.current = {
9078
9138
  type: 'PENDING',
9079
9139
  point: point,
@@ -9081,7 +9141,7 @@
9081
9141
  };
9082
9142
  bindCapturingEvents();
9083
9143
  }, [bindCapturingEvents]);
9084
- useIsomorphicLayoutEffect$1(function mount() {
9144
+ useLayoutEffect(function mount() {
9085
9145
  listenForCapture();
9086
9146
  return function unmount() {
9087
9147
  unbindEventsRef.current();
@@ -9174,7 +9234,7 @@
9174
9234
  passive: true
9175
9235
  }
9176
9236
  }, {
9177
- eventName: supportedEventName,
9237
+ eventName: supportedPageVisibilityEventName,
9178
9238
  fn: cancel
9179
9239
  }];
9180
9240
  }
@@ -9213,7 +9273,7 @@
9213
9273
  unbindEventsRef.current();
9214
9274
 
9215
9275
  function stop() {
9216
- !isCapturing ? invariant(false, 'Cannot stop capturing a keyboard drag when not capturing') : void 0;
9276
+ !isCapturing ? invariant$1(false, 'Cannot stop capturing a keyboard drag when not capturing') : void 0;
9217
9277
  isCapturing = false;
9218
9278
  unbindEventsRef.current();
9219
9279
  listenForCapture();
@@ -9233,7 +9293,7 @@
9233
9293
  };
9234
9294
  unbindEventsRef.current = bindEvents(window, [startCaptureBinding], options);
9235
9295
  }, [startCaptureBinding]);
9236
- useIsomorphicLayoutEffect$1(function mount() {
9296
+ useLayoutEffect(function mount() {
9237
9297
  listenForCapture();
9238
9298
  return function unmount() {
9239
9299
  unbindEventsRef.current();
@@ -9241,7 +9301,7 @@
9241
9301
  }, [listenForCapture]);
9242
9302
  }
9243
9303
 
9244
- var idle$2 = {
9304
+ var idle = {
9245
9305
  type: 'IDLE'
9246
9306
  };
9247
9307
  var timeForLongPress = 120;
@@ -9276,7 +9336,7 @@
9276
9336
  cancel();
9277
9337
  }
9278
9338
  }, {
9279
- eventName: supportedEventName,
9339
+ eventName: supportedPageVisibilityEventName,
9280
9340
  fn: cancel
9281
9341
  }];
9282
9342
  }
@@ -9340,7 +9400,7 @@
9340
9400
  eventName: 'touchforcechange',
9341
9401
  fn: function fn(event) {
9342
9402
  var phase = getPhase();
9343
- !(phase.type !== 'IDLE') ? invariant(false) : void 0;
9403
+ !(phase.type !== 'IDLE') ? invariant$1(false) : void 0;
9344
9404
  var touch = event.touches[0];
9345
9405
 
9346
9406
  if (!touch) {
@@ -9376,14 +9436,14 @@
9376
9436
  event.preventDefault();
9377
9437
  }
9378
9438
  }, {
9379
- eventName: supportedEventName,
9439
+ eventName: supportedPageVisibilityEventName,
9380
9440
  fn: cancel
9381
9441
  }];
9382
9442
  }
9383
9443
 
9384
9444
  function useTouchSensor(api) {
9385
- var phaseRef = React.useRef(idle$2);
9386
- var unbindEventsRef = React.useRef(noop);
9445
+ var phaseRef = React.useRef(idle);
9446
+ var unbindEventsRef = React.useRef(noop$2);
9387
9447
  var getPhase = useCallback(function getPhase() {
9388
9448
  return phaseRef.current;
9389
9449
  }, []);
@@ -9420,7 +9480,7 @@
9420
9480
  y: clientY
9421
9481
  };
9422
9482
  var handle = api.findClosestDragHandle(event);
9423
- !handle ? invariant(false, 'Touch sensor unable to find drag handle') : void 0;
9483
+ !handle ? invariant$1(false, 'Touch sensor unable to find drag handle') : void 0;
9424
9484
  unbindEventsRef.current();
9425
9485
  startPendingDrag(actions, point, handle);
9426
9486
  }
@@ -9444,7 +9504,7 @@
9444
9504
  clearTimeout(current.longPressTimerId);
9445
9505
  }
9446
9506
 
9447
- setPhase(idle$2);
9507
+ setPhase(idle);
9448
9508
  unbindEventsRef.current();
9449
9509
  listenForCapture();
9450
9510
  }, [listenForCapture, setPhase]);
@@ -9482,7 +9542,7 @@
9482
9542
  }, [cancel, getPhase, stop]);
9483
9543
  var startDragging = useCallback(function startDragging() {
9484
9544
  var phase = getPhase();
9485
- !(phase.type === 'PENDING') ? invariant(false, "Cannot start dragging from phase " + phase.type) : void 0;
9545
+ !(phase.type === 'PENDING') ? invariant$1(false, "Cannot start dragging from phase " + phase.type) : void 0;
9486
9546
  var actions = phase.actions.fluidLift(phase.point);
9487
9547
  setPhase({
9488
9548
  type: 'DRAGGING',
@@ -9491,7 +9551,7 @@
9491
9551
  });
9492
9552
  }, [getPhase, setPhase]);
9493
9553
  var startPendingDrag = useCallback(function startPendingDrag(actions, point, target) {
9494
- !(getPhase().type === 'IDLE') ? invariant(false, 'Expected to move from IDLE to PENDING drag') : void 0;
9554
+ !(getPhase().type === 'IDLE') ? invariant$1(false, 'Expected to move from IDLE to PENDING drag') : void 0;
9495
9555
  var longPressTimerId = setTimeout(startDragging, timeForLongPress);
9496
9556
  setPhase({
9497
9557
  type: 'PENDING',
@@ -9501,7 +9561,7 @@
9501
9561
  });
9502
9562
  bindCapturingEvents(target);
9503
9563
  }, [bindCapturingEvents, getPhase, setPhase, startDragging]);
9504
- useIsomorphicLayoutEffect$1(function mount() {
9564
+ useLayoutEffect(function mount() {
9505
9565
  listenForCapture();
9506
9566
  return function unmount() {
9507
9567
  unbindEventsRef.current();
@@ -9509,11 +9569,11 @@
9509
9569
 
9510
9570
  if (phase.type === 'PENDING') {
9511
9571
  clearTimeout(phase.longPressTimerId);
9512
- setPhase(idle$2);
9572
+ setPhase(idle);
9513
9573
  }
9514
9574
  };
9515
9575
  }, [getPhase, listenForCapture, setPhase]);
9516
- useIsomorphicLayoutEffect$1(function webkitHack() {
9576
+ useLayoutEffect(function webkitHack() {
9517
9577
  var unbind = bindEvents(window, [{
9518
9578
  eventName: 'touchmove',
9519
9579
  fn: function fn() {},
@@ -9530,7 +9590,7 @@
9530
9590
  useDev(function () {
9531
9591
  var previousRef = usePrevious(sensorHooks);
9532
9592
  useDevSetupWarning(function () {
9533
- !(previousRef.current.length === sensorHooks.length) ? "development" !== "production" ? invariant(false, 'Cannot change the amount of sensor hooks after mounting') : invariant(false) : void 0;
9593
+ !(previousRef.current.length === sensorHooks.length) ? "development" !== "production" ? invariant$1(false, 'Cannot change the amount of sensor hooks after mounting') : invariant$1(false) : void 0;
9534
9594
  });
9535
9595
  });
9536
9596
  }
@@ -9614,7 +9674,7 @@
9614
9674
  return closestPonyfill(el.parentElement, selector);
9615
9675
  }
9616
9676
 
9617
- function closest$1(el, selector) {
9677
+ function closest(el, selector) {
9618
9678
  if (el.closest) {
9619
9679
  return el.closest(selector);
9620
9680
  }
@@ -9630,19 +9690,19 @@
9630
9690
  var target = event.target;
9631
9691
 
9632
9692
  if (!isElement(target)) {
9633
- warning('event.target must be a Element') ;
9693
+ warning$2('event.target must be a Element') ;
9634
9694
  return null;
9635
9695
  }
9636
9696
 
9637
9697
  var selector = getSelector(contextId);
9638
- var handle = closest$1(target, selector);
9698
+ var handle = closest(target, selector);
9639
9699
 
9640
9700
  if (!handle) {
9641
9701
  return null;
9642
9702
  }
9643
9703
 
9644
9704
  if (!isHtmlElement(handle)) {
9645
- warning('drag handle must be a HTMLElement') ;
9705
+ warning$2('drag handle must be a HTMLElement') ;
9646
9706
  return null;
9647
9707
  }
9648
9708
 
@@ -9670,7 +9730,7 @@
9670
9730
  }
9671
9731
 
9672
9732
  if (!isHtmlElement(draggable$1)) {
9673
- warning('Draggable element is not a HTMLElement') ;
9733
+ warning$2('Draggable element is not a HTMLElement') ;
9674
9734
  return null;
9675
9735
  }
9676
9736
 
@@ -9689,7 +9749,7 @@
9689
9749
 
9690
9750
  if (!isLockActive()) {
9691
9751
  if (shouldWarn) {
9692
- warning("\n Cannot perform action.\n The sensor no longer has an action lock.\n\n Tips:\n\n - Throw away your action handlers when forceStop() is called\n - Check actions.isActive() if you really need to\n ") ;
9752
+ warning$2("\n Cannot perform action.\n The sensor no longer has an action lock.\n\n Tips:\n\n - Throw away your action handlers when forceStop() is called\n - Check actions.isActive() if you really need to\n ") ;
9693
9753
  }
9694
9754
 
9695
9755
  return false;
@@ -9697,7 +9757,7 @@
9697
9757
 
9698
9758
  if (expected !== phase) {
9699
9759
  if (shouldWarn) {
9700
- warning("\n Cannot perform action.\n The actions you used belong to an outdated phase\n\n Current phase: " + expected + "\n You called an action from outdated phase: " + phase + "\n\n Tips:\n\n - Do not use preDragActions actions after calling preDragActions.lift()\n ") ;
9760
+ warning$2("\n Cannot perform action.\n The actions you used belong to an outdated phase\n\n Current phase: " + expected + "\n You called an action from outdated phase: " + phase + "\n\n Tips:\n\n - Do not use preDragActions actions after calling preDragActions.lift()\n ") ;
9701
9761
  }
9702
9762
 
9703
9763
  return false;
@@ -9719,7 +9779,7 @@
9719
9779
  var entry = registry.draggable.findById(draggableId);
9720
9780
 
9721
9781
  if (!entry) {
9722
- warning("Unable to find draggable with id: " + draggableId) ;
9782
+ warning$2("Unable to find draggable with id: " + draggableId) ;
9723
9783
  return false;
9724
9784
  }
9725
9785
 
@@ -9757,7 +9817,7 @@
9757
9817
  var el = findDraggable(contextId, entry.descriptor.id);
9758
9818
 
9759
9819
  if (!el) {
9760
- warning("Unable to find draggable element with id: " + draggableId) ;
9820
+ warning$2("Unable to find draggable element with id: " + draggableId) ;
9761
9821
  return null;
9762
9822
  }
9763
9823
 
@@ -9765,7 +9825,7 @@
9765
9825
  return null;
9766
9826
  }
9767
9827
 
9768
- var lock = lockAPI.claim(forceSensorStop || noop);
9828
+ var lock = lockAPI.claim(forceSensorStop || noop$2);
9769
9829
  var phase = 'PRE_DRAG';
9770
9830
 
9771
9831
  function getShouldRespectForcePress() {
@@ -9789,7 +9849,7 @@
9789
9849
 
9790
9850
  var tryDispatchWhenDragging = tryDispatch.bind(null, 'DRAGGING');
9791
9851
 
9792
- function lift$1(args) {
9852
+ function lift(args) {
9793
9853
  function completed() {
9794
9854
  lockAPI.release();
9795
9855
  phase = 'COMPLETED';
@@ -9797,10 +9857,10 @@
9797
9857
 
9798
9858
  if (phase !== 'PRE_DRAG') {
9799
9859
  completed();
9800
- !(phase === 'PRE_DRAG') ? invariant(false, "Cannot lift in phase " + phase) : void 0;
9860
+ !(phase === 'PRE_DRAG') ? invariant$1(false, "Cannot lift in phase " + phase) : void 0;
9801
9861
  }
9802
9862
 
9803
- store.dispatch(lift(args.liftActionArgs));
9863
+ store.dispatch(lift$1(args.liftActionArgs));
9804
9864
  phase = 'DRAGGING';
9805
9865
 
9806
9866
  function finish(reason, options) {
@@ -9826,7 +9886,7 @@
9826
9886
  }
9827
9887
 
9828
9888
  completed();
9829
- store.dispatch(drop({
9889
+ store.dispatch(drop$1({
9830
9890
  reason: reason
9831
9891
  }));
9832
9892
  }
@@ -9851,14 +9911,14 @@
9851
9911
  }
9852
9912
 
9853
9913
  function fluidLift(clientSelection) {
9854
- var move$1 = rafSchd(function (client) {
9914
+ var move$1 = rafSchedule(function (client) {
9855
9915
  tryDispatchWhenDragging(function () {
9856
9916
  return move({
9857
9917
  client: client
9858
9918
  });
9859
9919
  });
9860
9920
  });
9861
- var api = lift$1({
9921
+ var api = lift({
9862
9922
  liftActionArgs: {
9863
9923
  id: draggableId,
9864
9924
  clientSelection: clientSelection,
@@ -9891,13 +9951,13 @@
9891
9951
  return tryDispatchWhenDragging(moveLeft);
9892
9952
  }
9893
9953
  };
9894
- return lift$1({
9954
+ return lift({
9895
9955
  liftActionArgs: {
9896
9956
  id: draggableId,
9897
9957
  clientSelection: getBorderBoxCenterPosition(el),
9898
9958
  movementMode: 'SNAP'
9899
9959
  },
9900
- cleanup: noop,
9960
+ cleanup: noop$2,
9901
9961
  actions: actions
9902
9962
  });
9903
9963
  }
@@ -9948,7 +10008,7 @@
9948
10008
  lockAPI.tryAbandon();
9949
10009
  }
9950
10010
  }, [lockAPI]);
9951
- useIsomorphicLayoutEffect$1(function listenToStore() {
10011
+ useLayoutEffect(function listenToStore() {
9952
10012
  var previous = store.getState();
9953
10013
  var unsubscribe = store.subscribe(function () {
9954
10014
  var current = store.getState();
@@ -9957,7 +10017,7 @@
9957
10017
  });
9958
10018
  return unsubscribe;
9959
10019
  }, [lockAPI, store, tryAbandonLock]);
9960
- useIsomorphicLayoutEffect$1(function () {
10020
+ useLayoutEffect(function () {
9961
10021
  return lockAPI.tryAbandon;
9962
10022
  }, [lockAPI.tryAbandon]);
9963
10023
  var canGetLock = useCallback(function (draggableId) {
@@ -10030,7 +10090,7 @@
10030
10090
  };
10031
10091
 
10032
10092
  function getStore(lazyRef) {
10033
- !lazyRef.current ? invariant(false, 'Could not find store from lazy ref') : void 0;
10093
+ !lazyRef.current ? invariant$1(false, 'Could not find store from lazy ref') : void 0;
10034
10094
  return lazyRef.current;
10035
10095
  }
10036
10096
 
@@ -10082,7 +10142,7 @@
10082
10142
  }, [dimensionMarshal.scrollDroppable, lazyDispatch]);
10083
10143
  var focusMarshal = useFocusMarshal(contextId);
10084
10144
  var store = useMemo(function () {
10085
- return createStore$1({
10145
+ return createStore({
10086
10146
  announce: announce,
10087
10147
  autoScroller: autoScroller,
10088
10148
  dimensionMarshal: dimensionMarshal,
@@ -10094,7 +10154,7 @@
10094
10154
 
10095
10155
  {
10096
10156
  if (lazyStoreRef.current && lazyStoreRef.current !== store) {
10097
- warning('unexpected store change') ;
10157
+ warning$2('unexpected store change') ;
10098
10158
  }
10099
10159
  }
10100
10160
 
@@ -10146,33 +10206,33 @@
10146
10206
  React.useEffect(function () {
10147
10207
  return tryResetStore;
10148
10208
  }, [tryResetStore]);
10149
- return React__default.createElement(AppContext.Provider, {
10209
+ return React.createElement(AppContext.Provider, {
10150
10210
  value: appContext
10151
- }, React__default.createElement(Provider, {
10211
+ }, React.createElement(Provider, {
10152
10212
  context: StoreContext,
10153
10213
  store: store
10154
10214
  }, props.children));
10155
10215
  }
10156
10216
 
10157
- var count$1 = 0;
10158
- function reset$1() {
10159
- count$1 = 0;
10217
+ var count = 0;
10218
+ function reset() {
10219
+ count = 0;
10160
10220
  }
10161
10221
  function useInstanceCount() {
10162
10222
  return useMemo(function () {
10163
- return "" + count$1++;
10223
+ return "" + count++;
10164
10224
  }, []);
10165
10225
  }
10166
10226
 
10167
10227
  function resetServerContext() {
10168
- reset$1();
10169
10228
  reset();
10229
+ reset$1();
10170
10230
  }
10171
10231
  function DragDropContext(props) {
10172
10232
  var contextId = useInstanceCount();
10173
- var dragHandleUsageInstructions = props.dragHandleUsageInstructions || preset.dragHandleUsageInstructions;
10174
- return React__default.createElement(ErrorBoundary, null, function (setCallbacks) {
10175
- return React__default.createElement(App, {
10233
+ var dragHandleUsageInstructions = props.dragHandleUsageInstructions || preset$1.dragHandleUsageInstructions;
10234
+ return React.createElement(ErrorBoundary, null, function (setCallbacks) {
10235
+ return React.createElement(App, {
10176
10236
  nonce: props.nonce,
10177
10237
  contextId: contextId,
10178
10238
  setCallbacks: setCallbacks,
@@ -10189,15 +10249,15 @@
10189
10249
  });
10190
10250
  }
10191
10251
 
10192
- var isEqual$1 = function isEqual(base) {
10252
+ var isEqual = function isEqual(base) {
10193
10253
  return function (value) {
10194
10254
  return base === value;
10195
10255
  };
10196
10256
  };
10197
10257
 
10198
- var isScroll = isEqual$1('scroll');
10199
- var isAuto = isEqual$1('auto');
10200
- var isVisible$1 = isEqual$1('visible');
10258
+ var isScroll = isEqual('scroll');
10259
+ var isAuto = isEqual('auto');
10260
+ var isVisible = isEqual('visible');
10201
10261
 
10202
10262
  var isEither = function isEither(overflow, fn) {
10203
10263
  return fn(overflow.overflowX) || fn(overflow.overflowY);
@@ -10225,7 +10285,7 @@
10225
10285
 
10226
10286
  var body = getBodyElement();
10227
10287
  var html = document.documentElement;
10228
- !html ? invariant(false) : void 0;
10288
+ !html ? invariant$1(false) : void 0;
10229
10289
 
10230
10290
  if (!isElementScrollable(body)) {
10231
10291
  return false;
@@ -10237,11 +10297,11 @@
10237
10297
  overflowY: htmlStyle.overflowY
10238
10298
  };
10239
10299
 
10240
- if (isBoth(htmlOverflow, isVisible$1)) {
10300
+ if (isBoth(htmlOverflow, isVisible)) {
10241
10301
  return false;
10242
10302
  }
10243
10303
 
10244
- warning("\n We have detected that your <body> element might be a scroll container.\n We have found no reliable way of detecting whether the <body> element is a scroll container.\n Under most circumstances a <body> scroll bar will be on the <html> element (document.documentElement)\n\n Because we cannot determine if the <body> is a scroll container, and generally it is not one,\n we will be treating the <body> as *not* a scroll container\n\n More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/how-we-detect-scroll-containers.md\n ") ;
10304
+ warning$2("\n We have detected that your <body> element might be a scroll container.\n We have found no reliable way of detecting whether the <body> element is a scroll container.\n Under most circumstances a <body> scroll bar will be on the <html> element (document.documentElement)\n\n Because we cannot determine if the <body> is a scroll container, and generally it is not one,\n we will be treating the <body> as *not* a scroll container\n\n More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/how-we-detect-scroll-containers.md\n ") ;
10245
10305
  return false;
10246
10306
  };
10247
10307
 
@@ -10265,21 +10325,23 @@
10265
10325
  return el;
10266
10326
  };
10267
10327
 
10328
+ var getClosestScrollable$1 = getClosestScrollable;
10329
+
10268
10330
  var checkForNestedScrollContainers = (function (scrollable) {
10269
10331
  if (!scrollable) {
10270
10332
  return;
10271
10333
  }
10272
10334
 
10273
- var anotherScrollParent = getClosestScrollable(scrollable.parentElement);
10335
+ var anotherScrollParent = getClosestScrollable$1(scrollable.parentElement);
10274
10336
 
10275
10337
  if (!anotherScrollParent) {
10276
10338
  return;
10277
10339
  }
10278
10340
 
10279
- warning("\n Droppable: unsupported nested scroll container detected.\n A Droppable can only have one scroll parent (which can be itself)\n Nested scroll containers are currently not supported.\n\n We hope to support nested scroll containers soon: https://github.com/atlassian/react-beautiful-dnd/issues/131\n ") ;
10341
+ warning$2("\n Droppable: unsupported nested scroll container detected.\n A Droppable can only have one scroll parent (which can be itself)\n Nested scroll containers are currently not supported.\n\n We hope to support nested scroll containers soon: https://github.com/atlassian/react-beautiful-dnd/issues/131\n ") ;
10280
10342
  });
10281
10343
 
10282
- var getScroll$1 = (function (el) {
10344
+ var getScroll = (function (el) {
10283
10345
  return {
10284
10346
  x: el.scrollLeft,
10285
10347
  y: el.scrollTop
@@ -10301,7 +10363,7 @@
10301
10363
  };
10302
10364
 
10303
10365
  var getEnv = (function (start) {
10304
- var closestScrollable = getClosestScrollable(start);
10366
+ var closestScrollable = getClosestScrollable$1(start);
10305
10367
  var isFixedOnPage = getIsFixed(start);
10306
10368
  return {
10307
10369
  closestScrollable: closestScrollable,
@@ -10401,7 +10463,7 @@
10401
10463
  return client;
10402
10464
  };
10403
10465
 
10404
- var getDimension = (function (_ref) {
10466
+ var getDimension$1 = (function (_ref) {
10405
10467
  var ref = _ref.ref,
10406
10468
  descriptor = _ref.descriptor,
10407
10469
  env = _ref.env,
@@ -10427,7 +10489,7 @@
10427
10489
  return {
10428
10490
  client: frameClient,
10429
10491
  page: withScroll(frameClient, windowScroll),
10430
- scroll: getScroll$1(closestScrollable),
10492
+ scroll: getScroll(closestScrollable),
10431
10493
  scrollSize: scrollSize,
10432
10494
  shouldClipSubject: shouldClipSubject
10433
10495
  };
@@ -10458,7 +10520,7 @@
10458
10520
 
10459
10521
  function useRequiredContext(Context) {
10460
10522
  var result = React.useContext(Context);
10461
- !result ? invariant(false, 'Could not find required context') : void 0;
10523
+ !result ? invariant$1(false, 'Could not find required context') : void 0;
10462
10524
  return result;
10463
10525
  }
10464
10526
 
@@ -10483,7 +10545,7 @@
10483
10545
  var publishedDescriptorRef = React.useRef(descriptor);
10484
10546
  var memoizedUpdateScroll = useMemo(function () {
10485
10547
  return memoizeOne(function (x, y) {
10486
- !whileDraggingRef.current ? invariant(false, 'Can only update scroll when dragging') : void 0;
10548
+ !whileDraggingRef.current ? invariant$1(false, 'Can only update scroll when dragging') : void 0;
10487
10549
  var scroll = {
10488
10550
  x: x,
10489
10551
  y: y
@@ -10498,19 +10560,19 @@
10498
10560
  return origin;
10499
10561
  }
10500
10562
 
10501
- return getScroll$1(dragging.env.closestScrollable);
10563
+ return getScroll(dragging.env.closestScrollable);
10502
10564
  }, []);
10503
10565
  var updateScroll = useCallback(function () {
10504
10566
  var scroll = getClosestScroll();
10505
10567
  memoizedUpdateScroll(scroll.x, scroll.y);
10506
10568
  }, [getClosestScroll, memoizedUpdateScroll]);
10507
10569
  var scheduleScrollUpdate = useMemo(function () {
10508
- return rafSchd(updateScroll);
10570
+ return rafSchedule(updateScroll);
10509
10571
  }, [updateScroll]);
10510
10572
  var onClosestScroll = useCallback(function () {
10511
10573
  var dragging = whileDraggingRef.current;
10512
10574
  var closest = getClosestScrollableFromDrag(dragging);
10513
- !(dragging && closest) ? invariant(false, 'Could not find scroll options while scrolling') : void 0;
10575
+ !(dragging && closest) ? invariant$1(false, 'Could not find scroll options while scrolling') : void 0;
10514
10576
  var options = dragging.scrollOptions;
10515
10577
 
10516
10578
  if (options.shouldPublishImmediately) {
@@ -10521,10 +10583,10 @@
10521
10583
  scheduleScrollUpdate();
10522
10584
  }, [scheduleScrollUpdate, updateScroll]);
10523
10585
  var getDimensionAndWatchScroll = useCallback(function (windowScroll, options) {
10524
- !!whileDraggingRef.current ? invariant(false, 'Cannot collect a droppable while a drag is occurring') : void 0;
10586
+ !!whileDraggingRef.current ? invariant$1(false, 'Cannot collect a droppable while a drag is occurring') : void 0;
10525
10587
  var previous = previousRef.current;
10526
10588
  var ref = previous.getDroppableRef();
10527
- !ref ? invariant(false, 'Cannot collect without a droppable ref') : void 0;
10589
+ !ref ? invariant$1(false, 'Cannot collect without a droppable ref') : void 0;
10528
10590
  var env = getEnv(ref);
10529
10591
  var dragging = {
10530
10592
  ref: ref,
@@ -10533,7 +10595,7 @@
10533
10595
  scrollOptions: options
10534
10596
  };
10535
10597
  whileDraggingRef.current = dragging;
10536
- var dimension = getDimension({
10598
+ var dimension = getDimension$1({
10537
10599
  ref: ref,
10538
10600
  descriptor: descriptor,
10539
10601
  env: env,
@@ -10559,12 +10621,12 @@
10559
10621
  var getScrollWhileDragging = useCallback(function () {
10560
10622
  var dragging = whileDraggingRef.current;
10561
10623
  var closest = getClosestScrollableFromDrag(dragging);
10562
- !(dragging && closest) ? invariant(false, 'Can only recollect Droppable client for Droppables that have a scroll container') : void 0;
10563
- return getScroll$1(closest);
10624
+ !(dragging && closest) ? invariant$1(false, 'Can only recollect Droppable client for Droppables that have a scroll container') : void 0;
10625
+ return getScroll(closest);
10564
10626
  }, []);
10565
10627
  var dragStopped = useCallback(function () {
10566
10628
  var dragging = whileDraggingRef.current;
10567
- !dragging ? invariant(false, 'Cannot stop drag when no active drag') : void 0;
10629
+ !dragging ? invariant$1(false, 'Cannot stop drag when no active drag') : void 0;
10568
10630
  var closest = getClosestScrollableFromDrag(dragging);
10569
10631
  whileDraggingRef.current = null;
10570
10632
 
@@ -10578,9 +10640,9 @@
10578
10640
  }, [onClosestScroll, scheduleScrollUpdate]);
10579
10641
  var scroll = useCallback(function (change) {
10580
10642
  var dragging = whileDraggingRef.current;
10581
- !dragging ? invariant(false, 'Cannot scroll when there is no drag') : void 0;
10643
+ !dragging ? invariant$1(false, 'Cannot scroll when there is no drag') : void 0;
10582
10644
  var closest = getClosestScrollableFromDrag(dragging);
10583
- !closest ? invariant(false, 'Cannot scroll a droppable with no closest scrollable') : void 0;
10645
+ !closest ? invariant$1(false, 'Cannot scroll a droppable with no closest scrollable') : void 0;
10584
10646
  closest.scrollTop += change.y;
10585
10647
  closest.scrollLeft += change.x;
10586
10648
  }, []);
@@ -10599,26 +10661,26 @@
10599
10661
  callbacks: callbacks
10600
10662
  };
10601
10663
  }, [callbacks, descriptor, uniqueId]);
10602
- useIsomorphicLayoutEffect$1(function () {
10664
+ useLayoutEffect(function () {
10603
10665
  publishedDescriptorRef.current = entry.descriptor;
10604
10666
  registry.droppable.register(entry);
10605
10667
  return function () {
10606
10668
  if (whileDraggingRef.current) {
10607
- warning('Unsupported: changing the droppableId or type of a Droppable during a drag') ;
10669
+ warning$2('Unsupported: changing the droppableId or type of a Droppable during a drag') ;
10608
10670
  dragStopped();
10609
10671
  }
10610
10672
 
10611
10673
  registry.droppable.unregister(entry);
10612
10674
  };
10613
10675
  }, [callbacks, descriptor, dragStopped, entry, marshal, registry.droppable]);
10614
- useIsomorphicLayoutEffect$1(function () {
10676
+ useLayoutEffect(function () {
10615
10677
  if (!whileDraggingRef.current) {
10616
10678
  return;
10617
10679
  }
10618
10680
 
10619
10681
  marshal.updateDroppableIsEnabled(publishedDescriptorRef.current.id, !args.isDropDisabled);
10620
10682
  }, [args.isDropDisabled, marshal]);
10621
- useIsomorphicLayoutEffect$1(function () {
10683
+ useLayoutEffect(function () {
10622
10684
  if (!whileDraggingRef.current) {
10623
10685
  return;
10624
10686
  }
@@ -10627,12 +10689,12 @@
10627
10689
  }, [args.isCombineEnabled, marshal]);
10628
10690
  }
10629
10691
 
10630
- function noop$2() {}
10692
+ function noop() {}
10631
10693
 
10632
10694
  var empty = {
10633
10695
  width: 0,
10634
10696
  height: 0,
10635
- margin: noSpacing$1
10697
+ margin: noSpacing
10636
10698
  };
10637
10699
 
10638
10700
  var getSize = function getSize(_ref) {
@@ -10655,7 +10717,7 @@
10655
10717
  };
10656
10718
  };
10657
10719
 
10658
- var getStyle = function getStyle(_ref2) {
10720
+ var getStyle$1 = function getStyle(_ref2) {
10659
10721
  var isAnimatingOpenOnMount = _ref2.isAnimatingOpenOnMount,
10660
10722
  placeholder = _ref2.placeholder,
10661
10723
  animate = _ref2.animate;
@@ -10701,17 +10763,17 @@
10701
10763
 
10702
10764
  React.useEffect(function () {
10703
10765
  if (!isAnimatingOpenOnMount) {
10704
- return noop$2;
10766
+ return noop;
10705
10767
  }
10706
10768
 
10707
10769
  if (animate !== 'open') {
10708
10770
  tryClearAnimateOpenTimer();
10709
10771
  setIsAnimatingOpenOnMount(false);
10710
- return noop$2;
10772
+ return noop;
10711
10773
  }
10712
10774
 
10713
10775
  if (animateOpenTimerRef.current) {
10714
- return noop$2;
10776
+ return noop;
10715
10777
  }
10716
10778
 
10717
10779
  animateOpenTimerRef.current = setTimeout(function () {
@@ -10731,12 +10793,12 @@
10731
10793
  onClose();
10732
10794
  }
10733
10795
  }, [animate, onClose, onTransitionEnd]);
10734
- var style = getStyle({
10796
+ var style = getStyle$1({
10735
10797
  isAnimatingOpenOnMount: isAnimatingOpenOnMount,
10736
10798
  animate: props.animate,
10737
10799
  placeholder: props.placeholder
10738
10800
  });
10739
- return React__default.createElement(props.placeholder.tagName, {
10801
+ return React.createElement(props.placeholder.tagName, {
10740
10802
  style: style,
10741
10803
  'data-rbd-placeholder-context-id': contextId,
10742
10804
  onTransitionEnd: onSizeChangeEnd,
@@ -10744,12 +10806,12 @@
10744
10806
  });
10745
10807
  }
10746
10808
 
10747
- var Placeholder$1 = React__default.memo(Placeholder);
10809
+ var Placeholder$1 = React.memo(Placeholder);
10748
10810
 
10749
- var DroppableContext = React__default.createContext(null);
10811
+ var DroppableContext = React.createContext(null);
10750
10812
 
10751
10813
  function checkIsValidInnerRef(el) {
10752
- !(el && isHtmlElement(el)) ? invariant(false, "\n provided.innerRef has not been provided with a HTMLElement.\n\n You can find a guide on using the innerRef callback functions at:\n https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/using-inner-ref.md\n ") : void 0;
10814
+ !(el && isHtmlElement(el)) ? invariant$1(false, "\n provided.innerRef has not been provided with a HTMLElement.\n\n You can find a guide on using the innerRef callback functions at:\n https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/using-inner-ref.md\n ") : void 0;
10753
10815
  }
10754
10816
 
10755
10817
  function isBoolean(value) {
@@ -10764,13 +10826,13 @@
10764
10826
 
10765
10827
  var shared = [function required(_ref) {
10766
10828
  var props = _ref.props;
10767
- !props.droppableId ? invariant(false, 'A Droppable requires a droppableId prop') : void 0;
10768
- !(typeof props.droppableId === 'string') ? invariant(false, "A Droppable requires a [string] droppableId. Provided: [" + typeof props.droppableId + "]") : void 0;
10829
+ !props.droppableId ? invariant$1(false, 'A Droppable requires a droppableId prop') : void 0;
10830
+ !(typeof props.droppableId === 'string') ? invariant$1(false, "A Droppable requires a [string] droppableId. Provided: [" + typeof props.droppableId + "]") : void 0;
10769
10831
  }, function _boolean(_ref2) {
10770
10832
  var props = _ref2.props;
10771
- !isBoolean(props.isDropDisabled) ? invariant(false, 'isDropDisabled must be a boolean') : void 0;
10772
- !isBoolean(props.isCombineEnabled) ? invariant(false, 'isCombineEnabled must be a boolean') : void 0;
10773
- !isBoolean(props.ignoreContainerClipping) ? invariant(false, 'ignoreContainerClipping must be a boolean') : void 0;
10833
+ !isBoolean(props.isDropDisabled) ? invariant$1(false, 'isDropDisabled must be a boolean') : void 0;
10834
+ !isBoolean(props.isCombineEnabled) ? invariant$1(false, 'isCombineEnabled must be a boolean') : void 0;
10835
+ !isBoolean(props.ignoreContainerClipping) ? invariant$1(false, 'ignoreContainerClipping must be a boolean') : void 0;
10774
10836
  }, function ref(_ref3) {
10775
10837
  var getDroppableRef = _ref3.getDroppableRef;
10776
10838
  checkIsValidInnerRef(getDroppableRef());
@@ -10789,16 +10851,16 @@
10789
10851
  return;
10790
10852
  }
10791
10853
 
10792
- warning("\n Droppable setup issue [droppableId: \"" + props.droppableId + "\"]:\n DroppableProvided > placeholder could not be found.\n\n Please be sure to add the {provided.placeholder} React Node as a child of your Droppable.\n More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/api/droppable.md\n ") ;
10854
+ warning$2("\n Droppable setup issue [droppableId: \"" + props.droppableId + "\"]:\n DroppableProvided > placeholder could not be found.\n\n Please be sure to add the {provided.placeholder} React Node as a child of your Droppable.\n More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/api/droppable.md\n ") ;
10793
10855
  }];
10794
10856
  var virtual = [function hasClone(_ref5) {
10795
10857
  var props = _ref5.props;
10796
- !props.renderClone ? invariant(false, 'Must provide a clone render function (renderClone) for virtual lists') : void 0;
10858
+ !props.renderClone ? invariant$1(false, 'Must provide a clone render function (renderClone) for virtual lists') : void 0;
10797
10859
  }, function hasNoPlaceholder(_ref6) {
10798
10860
  var getPlaceholderRef = _ref6.getPlaceholderRef;
10799
- !!getPlaceholderRef() ? invariant(false, 'Expected virtual list to not have a placeholder') : void 0;
10861
+ !!getPlaceholderRef() ? invariant$1(false, 'Expected virtual list to not have a placeholder') : void 0;
10800
10862
  }];
10801
- function useValidation(args) {
10863
+ function useValidation$1(args) {
10802
10864
  useDevSetupWarning(function () {
10803
10865
  runChecks(args, shared);
10804
10866
 
@@ -10890,7 +10952,7 @@
10890
10952
  };
10891
10953
 
10892
10954
  return AnimateInOut;
10893
- }(React__default.PureComponent);
10955
+ }(React.PureComponent);
10894
10956
 
10895
10957
  var zIndexOptions = {
10896
10958
  dragging: 5000,
@@ -10958,11 +11020,11 @@
10958
11020
  };
10959
11021
  }
10960
11022
 
10961
- function getStyle$1(mapped) {
11023
+ function getStyle(mapped) {
10962
11024
  return mapped.type === 'DRAGGING' ? getDraggingStyle(mapped) : getSecondaryStyle(mapped);
10963
11025
  }
10964
11026
 
10965
- function getDimension$1(descriptor, el, windowScroll) {
11027
+ function getDimension(descriptor, el, windowScroll) {
10966
11028
  if (windowScroll === void 0) {
10967
11029
  windowScroll = origin;
10968
11030
  }
@@ -11005,28 +11067,28 @@
11005
11067
  isEnabled: isEnabled
11006
11068
  };
11007
11069
  }, [canDragInteractiveElements, isEnabled, shouldRespectForcePress]);
11008
- var getDimension = useCallback(function (windowScroll) {
11070
+ var getDimension$1 = useCallback(function (windowScroll) {
11009
11071
  var el = getDraggableRef();
11010
- !el ? invariant(false, 'Cannot get dimension when no ref is set') : void 0;
11011
- return getDimension$1(descriptor, el, windowScroll);
11072
+ !el ? invariant$1(false, 'Cannot get dimension when no ref is set') : void 0;
11073
+ return getDimension(descriptor, el, windowScroll);
11012
11074
  }, [descriptor, getDraggableRef]);
11013
11075
  var entry = useMemo(function () {
11014
11076
  return {
11015
11077
  uniqueId: uniqueId,
11016
11078
  descriptor: descriptor,
11017
11079
  options: options,
11018
- getDimension: getDimension
11080
+ getDimension: getDimension$1
11019
11081
  };
11020
- }, [descriptor, getDimension, options, uniqueId]);
11082
+ }, [descriptor, getDimension$1, options, uniqueId]);
11021
11083
  var publishedRef = React.useRef(entry);
11022
11084
  var isFirstPublishRef = React.useRef(true);
11023
- useIsomorphicLayoutEffect$1(function () {
11085
+ useLayoutEffect(function () {
11024
11086
  registry.draggable.register(publishedRef.current);
11025
11087
  return function () {
11026
11088
  return registry.draggable.unregister(publishedRef.current);
11027
11089
  };
11028
11090
  }, [registry.draggable]);
11029
- useIsomorphicLayoutEffect$1(function () {
11091
+ useLayoutEffect(function () {
11030
11092
  if (isFirstPublishRef.current) {
11031
11093
  isFirstPublishRef.current = false;
11032
11094
  return;
@@ -11038,16 +11100,16 @@
11038
11100
  }, [entry, registry.draggable]);
11039
11101
  }
11040
11102
 
11041
- function useValidation$1(props, contextId, getRef) {
11103
+ function useValidation(props, contextId, getRef) {
11042
11104
  useDevSetupWarning(function () {
11043
11105
  function prefix(id) {
11044
11106
  return "Draggable[id: " + id + "]: ";
11045
11107
  }
11046
11108
 
11047
11109
  var id = props.draggableId;
11048
- !id ? "development" !== "production" ? invariant(false, 'Draggable requires a draggableId') : invariant(false) : void 0;
11049
- !(typeof id === 'string') ? "development" !== "production" ? invariant(false, "Draggable requires a [string] draggableId.\n Provided: [type: " + typeof id + "] (value: " + id + ")") : invariant(false) : void 0;
11050
- !isInteger(props.index) ? "development" !== "production" ? invariant(false, prefix(id) + " requires an integer index prop") : invariant(false) : void 0;
11110
+ !id ? "development" !== "production" ? invariant$1(false, 'Draggable requires a draggableId') : invariant$1(false) : void 0;
11111
+ !(typeof id === 'string') ? "development" !== "production" ? invariant$1(false, "Draggable requires a [string] draggableId.\n Provided: [type: " + typeof id + "] (value: " + id + ")") : invariant$1(false) : void 0;
11112
+ !isInteger(props.index) ? "development" !== "production" ? invariant$1(false, prefix(id) + " requires an integer index prop") : invariant$1(false) : void 0;
11051
11113
 
11052
11114
  if (props.mapped.type === 'DRAGGING') {
11053
11115
  return;
@@ -11056,7 +11118,7 @@
11056
11118
  checkIsValidInnerRef(getRef());
11057
11119
 
11058
11120
  if (props.isEnabled) {
11059
- !findDragHandle(contextId, id) ? "development" !== "production" ? invariant(false, prefix(id) + " Unable to find drag handle") : invariant(false) : void 0;
11121
+ !findDragHandle(contextId, id) ? "development" !== "production" ? invariant$1(false, prefix(id) + " Unable to find drag handle") : invariant$1(false) : void 0;
11060
11122
  }
11061
11123
  });
11062
11124
  }
@@ -11064,7 +11126,7 @@
11064
11126
  useDev(function () {
11065
11127
  var initialRef = React.useRef(isClone);
11066
11128
  useDevSetupWarning(function () {
11067
- !(isClone === initialRef.current) ? "development" !== "production" ? invariant(false, 'Draggable isClone prop value changed during component life') : invariant(false) : void 0;
11129
+ !(isClone === initialRef.current) ? "development" !== "production" ? invariant$1(false, 'Draggable isClone prop value changed during component life') : invariant$1(false) : void 0;
11068
11130
  }, [isClone]);
11069
11131
  });
11070
11132
  }
@@ -11107,7 +11169,7 @@
11107
11169
  isClone = props.isClone,
11108
11170
  mapped = props.mapped,
11109
11171
  dropAnimationFinishedAction = props.dropAnimationFinished;
11110
- useValidation$1(props, contextId, getRef);
11172
+ useValidation(props, contextId, getRef);
11111
11173
  useClonePropValidation(isClone);
11112
11174
 
11113
11175
  if (!isClone) {
@@ -11151,7 +11213,7 @@
11151
11213
  dropAnimationFinishedAction();
11152
11214
  }, [dropAnimationFinishedAction, mapped]);
11153
11215
  var provided = useMemo(function () {
11154
- var style = getStyle$1(mapped);
11216
+ var style = getStyle(mapped);
11155
11217
  var onTransitionEnd = mapped.type === 'DRAGGING' && mapped.dropping ? onMoveEnd : null;
11156
11218
  var result = {
11157
11219
  innerRef: setRef,
@@ -11406,7 +11468,7 @@
11406
11468
  return selector;
11407
11469
  }
11408
11470
 
11409
- var makeMapStateToProps = function makeMapStateToProps() {
11471
+ var makeMapStateToProps$1 = function makeMapStateToProps() {
11410
11472
  var draggingSelector = getDraggableSelector();
11411
11473
  var secondarySelector = getSecondarySelector();
11412
11474
 
@@ -11416,14 +11478,15 @@
11416
11478
 
11417
11479
  return selector;
11418
11480
  };
11419
- var mapDispatchToProps = {
11481
+ var mapDispatchToProps$1 = {
11420
11482
  dropAnimationFinished: dropAnimationFinished
11421
11483
  };
11422
- var ConnectedDraggable = connect(makeMapStateToProps, mapDispatchToProps, null, {
11484
+ var ConnectedDraggable = connect(makeMapStateToProps$1, mapDispatchToProps$1, null, {
11423
11485
  context: StoreContext,
11424
11486
  pure: true,
11425
11487
  areStatePropsEqual: isStrictEqual
11426
11488
  })(Draggable);
11489
+ var ConnectedDraggable$1 = ConnectedDraggable;
11427
11490
 
11428
11491
  function PrivateDraggable(props) {
11429
11492
  var droppableContext = useRequiredContext(DroppableContext);
@@ -11433,13 +11496,13 @@
11433
11496
  return null;
11434
11497
  }
11435
11498
 
11436
- return React__default.createElement(ConnectedDraggable, props);
11499
+ return React.createElement(ConnectedDraggable$1, props);
11437
11500
  }
11438
11501
  function PublicDraggable(props) {
11439
11502
  var isEnabled = typeof props.isDragDisabled === 'boolean' ? !props.isDragDisabled : true;
11440
11503
  var canDragInteractiveElements = Boolean(props.disableInteractiveElementBlocking);
11441
11504
  var shouldRespectForcePress = Boolean(props.shouldRespectForcePress);
11442
- return React__default.createElement(PrivateDraggable, _extends({}, props, {
11505
+ return React.createElement(PrivateDraggable, _extends({}, props, {
11443
11506
  isClone: false,
11444
11507
  isEnabled: isEnabled,
11445
11508
  canDragInteractiveElements: canDragInteractiveElements,
@@ -11449,7 +11512,7 @@
11449
11512
 
11450
11513
  function Droppable(props) {
11451
11514
  var appContext = React.useContext(AppContext);
11452
- !appContext ? invariant(false, 'Could not find app context') : void 0;
11515
+ !appContext ? invariant$1(false, 'Could not find app context') : void 0;
11453
11516
  var contextId = appContext.contextId,
11454
11517
  isMovementAllowed = appContext.isMovementAllowed;
11455
11518
  var droppableRef = React.useRef(null);
@@ -11478,7 +11541,7 @@
11478
11541
  var setPlaceholderRef = useCallback(function (value) {
11479
11542
  placeholderRef.current = value;
11480
11543
  }, []);
11481
- useValidation({
11544
+ useValidation$1({
11482
11545
  props: props,
11483
11546
  getDroppableRef: getDroppableRef,
11484
11547
  getPlaceholderRef: getPlaceholderRef
@@ -11500,14 +11563,14 @@
11500
11563
  ignoreContainerClipping: ignoreContainerClipping,
11501
11564
  getDroppableRef: getDroppableRef
11502
11565
  });
11503
- var placeholder = React__default.createElement(AnimateInOut, {
11566
+ var placeholder = React.createElement(AnimateInOut, {
11504
11567
  on: props.placeholder,
11505
11568
  shouldAnimate: props.shouldAnimatePlaceholder
11506
11569
  }, function (_ref) {
11507
11570
  var onClose = _ref.onClose,
11508
11571
  data = _ref.data,
11509
11572
  animate = _ref.animate;
11510
- return React__default.createElement(Placeholder$1, {
11573
+ return React.createElement(Placeholder$1, {
11511
11574
  placeholder: data,
11512
11575
  onClose: onClose,
11513
11576
  innerRef: setPlaceholderRef,
@@ -11542,7 +11605,7 @@
11542
11605
 
11543
11606
  var dragging = useClone.dragging,
11544
11607
  render = useClone.render;
11545
- var node = React__default.createElement(PrivateDraggable, {
11608
+ var node = React.createElement(PrivateDraggable, {
11546
11609
  draggableId: dragging.draggableId,
11547
11610
  index: dragging.source.index,
11548
11611
  isClone: true,
@@ -11552,14 +11615,46 @@
11552
11615
  }, function (draggableProvided, draggableSnapshot) {
11553
11616
  return render(draggableProvided, draggableSnapshot, dragging);
11554
11617
  });
11555
- return ReactDOM__default.createPortal(node, getContainerForClone());
11618
+ return ReactDOM.createPortal(node, getContainerForClone());
11556
11619
  }
11557
11620
 
11558
- return React__default.createElement(DroppableContext.Provider, {
11621
+ return React.createElement(DroppableContext.Provider, {
11559
11622
  value: droppableContext
11560
11623
  }, children(provided, snapshot), getClone());
11561
11624
  }
11562
11625
 
11626
+ function getBody() {
11627
+ !document.body ? invariant$1(false, 'document.body is not ready') : void 0;
11628
+ return document.body;
11629
+ }
11630
+
11631
+ var defaultProps = {
11632
+ mode: 'standard',
11633
+ type: 'DEFAULT',
11634
+ direction: 'vertical',
11635
+ isDropDisabled: false,
11636
+ isCombineEnabled: false,
11637
+ ignoreContainerClipping: false,
11638
+ renderClone: null,
11639
+ getContainerForClone: getBody
11640
+ };
11641
+
11642
+ var attachDefaultPropsToOwnProps = function attachDefaultPropsToOwnProps(ownProps) {
11643
+ var mergedProps = _extends({}, ownProps);
11644
+
11645
+ var defaultPropKey;
11646
+
11647
+ for (defaultPropKey in defaultProps) {
11648
+ if (ownProps[defaultPropKey] === undefined) {
11649
+ var _extends2;
11650
+
11651
+ mergedProps = _extends({}, mergedProps, (_extends2 = {}, _extends2[defaultPropKey] = defaultProps[defaultPropKey], _extends2));
11652
+ }
11653
+ }
11654
+
11655
+ return mergedProps;
11656
+ };
11657
+
11563
11658
  var isMatchingType = function isMatchingType(type, critical) {
11564
11659
  return type === critical.droppable.type;
11565
11660
  };
@@ -11568,7 +11663,7 @@
11568
11663
  return dimensions.draggables[critical.draggable.id];
11569
11664
  };
11570
11665
 
11571
- var makeMapStateToProps$1 = function makeMapStateToProps() {
11666
+ var makeMapStateToProps = function makeMapStateToProps() {
11572
11667
  var idleWithAnimation = {
11573
11668
  placeholder: null,
11574
11669
  shouldAnimatePlaceholder: true,
@@ -11641,10 +11736,11 @@
11641
11736
  });
11642
11737
 
11643
11738
  var selector = function selector(state, ownProps) {
11644
- var id = ownProps.droppableId;
11645
- var type = ownProps.type;
11646
- var isEnabled = !ownProps.isDropDisabled;
11647
- var renderClone = ownProps.renderClone;
11739
+ var ownPropsWithDefaultProps = attachDefaultPropsToOwnProps(ownProps);
11740
+ var id = ownPropsWithDefaultProps.droppableId;
11741
+ var type = ownPropsWithDefaultProps.type;
11742
+ var isEnabled = !ownPropsWithDefaultProps.isDropDisabled;
11743
+ var renderClone = ownPropsWithDefaultProps.renderClone;
11648
11744
 
11649
11745
  if (state.isDragging) {
11650
11746
  var critical = state.critical;
@@ -11697,40 +11793,24 @@
11697
11793
 
11698
11794
  return selector;
11699
11795
  };
11700
- var mapDispatchToProps$1 = {
11796
+ var mapDispatchToProps = {
11701
11797
  updateViewportMaxScroll: updateViewportMaxScroll
11702
11798
  };
11703
-
11704
- function getBody() {
11705
- !document.body ? invariant(false, 'document.body is not ready') : void 0;
11706
- return document.body;
11707
- }
11708
-
11709
- var defaultProps = {
11710
- mode: 'standard',
11711
- type: 'DEFAULT',
11712
- direction: 'vertical',
11713
- isDropDisabled: false,
11714
- isCombineEnabled: false,
11715
- ignoreContainerClipping: false,
11716
- renderClone: null,
11717
- getContainerForClone: getBody
11718
- };
11719
- var ConnectedDroppable = connect(makeMapStateToProps$1, mapDispatchToProps$1, null, {
11799
+ var ConnectedDroppable = connect(makeMapStateToProps, mapDispatchToProps, function (stateProps, dispatchProps, ownProps) {
11800
+ return _extends({}, attachDefaultPropsToOwnProps(ownProps), {}, stateProps, {}, dispatchProps);
11801
+ }, {
11720
11802
  context: StoreContext,
11721
11803
  pure: true,
11722
11804
  areStatePropsEqual: isStrictEqual
11723
11805
  })(Droppable);
11724
- ConnectedDroppable.defaultProps = defaultProps;
11806
+ var ConnectedDroppable$1 = ConnectedDroppable;
11725
11807
 
11726
11808
  exports.DragDropContext = DragDropContext;
11727
11809
  exports.Draggable = PublicDraggable;
11728
- exports.Droppable = ConnectedDroppable;
11810
+ exports.Droppable = ConnectedDroppable$1;
11729
11811
  exports.resetServerContext = resetServerContext;
11730
11812
  exports.useKeyboardSensor = useKeyboardSensor;
11731
11813
  exports.useMouseSensor = useMouseSensor;
11732
11814
  exports.useTouchSensor = useTouchSensor;
11733
11815
 
11734
- Object.defineProperty(exports, '__esModule', { value: true });
11735
-
11736
- })));
11816
+ }));