@bigbinary/neetoui 5.1.5 → 5.1.7

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.
package/index.cjs.js CHANGED
@@ -8,6 +8,7 @@ var reactRouterDom = require('react-router-dom');
8
8
  var ReactDOM = require('react-dom');
9
9
  var generatePicker = require('antd/lib/date-picker/generatePicker');
10
10
  var _Table = require('antd/lib/table');
11
+ var require$$0 = require('util');
11
12
  var i18next = require('i18next');
12
13
  var reactToastify = require('react-toastify');
13
14
 
@@ -36,6 +37,7 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React$5);
36
37
  var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
37
38
  var generatePicker__default = /*#__PURE__*/_interopDefaultLegacy(generatePicker);
38
39
  var _Table__default = /*#__PURE__*/_interopDefaultLegacy(_Table);
40
+ var require$$0__default = /*#__PURE__*/_interopDefaultLegacy(require$$0);
39
41
 
40
42
  function _typeof$6(obj) {
41
43
  "@babel/helpers - typeof";
@@ -1256,6 +1258,165 @@ function _createReduce(arrayReduce, methodReduce, iterableReduce) {
1256
1258
  };
1257
1259
  }
1258
1260
 
1261
+ function _xArrayReduce(xf, acc, list) {
1262
+ var idx = 0;
1263
+ var len = list.length;
1264
+
1265
+ while (idx < len) {
1266
+ acc = xf['@@transducer/step'](acc, list[idx]);
1267
+
1268
+ if (acc && acc['@@transducer/reduced']) {
1269
+ acc = acc['@@transducer/value'];
1270
+ break;
1271
+ }
1272
+
1273
+ idx += 1;
1274
+ }
1275
+
1276
+ return xf['@@transducer/result'](acc);
1277
+ }
1278
+
1279
+ /**
1280
+ * Creates a function that is bound to a context.
1281
+ * Note: `R.bind` does not provide the additional argument-binding capabilities of
1282
+ * [Function.prototype.bind](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind).
1283
+ *
1284
+ * @func
1285
+ * @memberOf R
1286
+ * @since v0.6.0
1287
+ * @category Function
1288
+ * @category Object
1289
+ * @sig (* -> *) -> {*} -> (* -> *)
1290
+ * @param {Function} fn The function to bind to context
1291
+ * @param {Object} thisObj The context to bind `fn` to
1292
+ * @return {Function} A function that will execute in the context of `thisObj`.
1293
+ * @see R.partial
1294
+ * @example
1295
+ *
1296
+ * const log = R.bind(console.log, console);
1297
+ * R.pipe(R.assoc('a', 2), R.tap(log), R.assoc('a', 3))({a: 1}); //=> {a: 3}
1298
+ * // logs {a: 2}
1299
+ * @symb R.bind(f, o)(a, b) = f.call(o, a, b)
1300
+ */
1301
+
1302
+ var bind$2 =
1303
+ /*#__PURE__*/
1304
+ _curry2(function bind(fn, thisObj) {
1305
+ return _arity(fn.length, function () {
1306
+ return fn.apply(thisObj, arguments);
1307
+ });
1308
+ });
1309
+
1310
+ function _xIterableReduce(xf, acc, iter) {
1311
+ var step = iter.next();
1312
+
1313
+ while (!step.done) {
1314
+ acc = xf['@@transducer/step'](acc, step.value);
1315
+
1316
+ if (acc && acc['@@transducer/reduced']) {
1317
+ acc = acc['@@transducer/value'];
1318
+ break;
1319
+ }
1320
+
1321
+ step = iter.next();
1322
+ }
1323
+
1324
+ return xf['@@transducer/result'](acc);
1325
+ }
1326
+
1327
+ function _xMethodReduce(xf, acc, obj, methodName) {
1328
+ return xf['@@transducer/result'](obj[methodName](bind$2(xf['@@transducer/step'], xf), acc));
1329
+ }
1330
+
1331
+ var _xReduce =
1332
+ /*#__PURE__*/
1333
+ _createReduce(_xArrayReduce, _xMethodReduce, _xIterableReduce);
1334
+
1335
+ var XWrap =
1336
+ /*#__PURE__*/
1337
+ function () {
1338
+ function XWrap(fn) {
1339
+ this.f = fn;
1340
+ }
1341
+
1342
+ XWrap.prototype['@@transducer/init'] = function () {
1343
+ throw new Error('init not implemented on XWrap');
1344
+ };
1345
+
1346
+ XWrap.prototype['@@transducer/result'] = function (acc) {
1347
+ return acc;
1348
+ };
1349
+
1350
+ XWrap.prototype['@@transducer/step'] = function (acc, x) {
1351
+ return this.f(acc, x);
1352
+ };
1353
+
1354
+ return XWrap;
1355
+ }();
1356
+
1357
+ function _xwrap(fn) {
1358
+ return new XWrap(fn);
1359
+ }
1360
+
1361
+ /**
1362
+ * Returns a single item by iterating through the list, successively calling
1363
+ * the iterator function and passing it an accumulator value and the current
1364
+ * value from the array, and then passing the result to the next call.
1365
+ *
1366
+ * The iterator function receives two values: *(acc, value)*. It may use
1367
+ * [`R.reduced`](#reduced) to shortcut the iteration.
1368
+ *
1369
+ * The arguments' order of [`reduceRight`](#reduceRight)'s iterator function
1370
+ * is *(value, acc)*.
1371
+ *
1372
+ * Note: `R.reduce` does not skip deleted or unassigned indices (sparse
1373
+ * arrays), unlike the native `Array.prototype.reduce` method. For more details
1374
+ * on this behavior, see:
1375
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce#Description
1376
+ *
1377
+ * Be cautious of mutating and returning the accumulator. If you reuse it across
1378
+ * invocations, it will continue to accumulate onto the same value. The general
1379
+ * recommendation is to always return a new value. If you can't do so for
1380
+ * performance reasons, then be sure to reinitialize the accumulator on each
1381
+ * invocation.
1382
+ *
1383
+ * Dispatches to the `reduce` method of the third argument, if present. When
1384
+ * doing so, it is up to the user to handle the [`R.reduced`](#reduced)
1385
+ * shortcuting, as this is not implemented by `reduce`.
1386
+ *
1387
+ * @func
1388
+ * @memberOf R
1389
+ * @since v0.1.0
1390
+ * @category List
1391
+ * @sig ((a, b) -> a) -> a -> [b] -> a
1392
+ * @param {Function} fn The iterator function. Receives two values, the accumulator and the
1393
+ * current element from the array.
1394
+ * @param {*} acc The accumulator value.
1395
+ * @param {Array} list The list to iterate over.
1396
+ * @return {*} The final, accumulated value.
1397
+ * @see R.reduced, R.addIndex, R.reduceRight
1398
+ * @example
1399
+ *
1400
+ * R.reduce(R.subtract, 0, [1, 2, 3, 4]) // => ((((0 - 1) - 2) - 3) - 4) = -10
1401
+ * // - -10
1402
+ * // / \ / \
1403
+ * // - 4 -6 4
1404
+ * // / \ / \
1405
+ * // - 3 ==> -3 3
1406
+ * // / \ / \
1407
+ * // - 2 -1 2
1408
+ * // / \ / \
1409
+ * // 0 1 0 1
1410
+ *
1411
+ * @symb R.reduce(f, a, [b, c, d]) = f(f(f(a, b), c), d)
1412
+ */
1413
+
1414
+ var reduce =
1415
+ /*#__PURE__*/
1416
+ _curry3(function (xf, acc, list) {
1417
+ return _xReduce(typeof xf === 'function' ? _xwrap(xf) : xf, acc, list);
1418
+ });
1419
+
1259
1420
  function _iterableReduce(reducer, acc, iter) {
1260
1421
  var step = iter.next();
1261
1422
 
@@ -1545,6 +1706,205 @@ var complement =
1545
1706
  /*#__PURE__*/
1546
1707
  lift(not);
1547
1708
 
1709
+ function _pipe(f, g) {
1710
+ return function () {
1711
+ return g.call(this, f.apply(this, arguments));
1712
+ };
1713
+ }
1714
+
1715
+ /**
1716
+ * This checks whether a function has a [methodname] function. If it isn't an
1717
+ * array it will execute that function otherwise it will default to the ramda
1718
+ * implementation.
1719
+ *
1720
+ * @private
1721
+ * @param {Function} fn ramda implementation
1722
+ * @param {String} methodname property to check for a custom implementation
1723
+ * @return {Object} Whatever the return value of the method is.
1724
+ */
1725
+
1726
+ function _checkForMethod(methodname, fn) {
1727
+ return function () {
1728
+ var length = arguments.length;
1729
+
1730
+ if (length === 0) {
1731
+ return fn();
1732
+ }
1733
+
1734
+ var obj = arguments[length - 1];
1735
+ return _isArray$1(obj) || typeof obj[methodname] !== 'function' ? fn.apply(this, arguments) : obj[methodname].apply(obj, Array.prototype.slice.call(arguments, 0, length - 1));
1736
+ };
1737
+ }
1738
+
1739
+ /**
1740
+ * Returns the elements of the given list or string (or object with a `slice`
1741
+ * method) from `fromIndex` (inclusive) to `toIndex` (exclusive).
1742
+ *
1743
+ * Dispatches to the `slice` method of the third argument, if present.
1744
+ *
1745
+ * @func
1746
+ * @memberOf R
1747
+ * @since v0.1.4
1748
+ * @category List
1749
+ * @sig Number -> Number -> [a] -> [a]
1750
+ * @sig Number -> Number -> String -> String
1751
+ * @param {Number} fromIndex The start index (inclusive).
1752
+ * @param {Number} toIndex The end index (exclusive).
1753
+ * @param {*} list
1754
+ * @return {*}
1755
+ * @example
1756
+ *
1757
+ * R.slice(1, 3, ['a', 'b', 'c', 'd']); //=> ['b', 'c']
1758
+ * R.slice(1, Infinity, ['a', 'b', 'c', 'd']); //=> ['b', 'c', 'd']
1759
+ * R.slice(0, -1, ['a', 'b', 'c', 'd']); //=> ['a', 'b', 'c']
1760
+ * R.slice(-3, -1, ['a', 'b', 'c', 'd']); //=> ['b', 'c']
1761
+ * R.slice(0, 3, 'ramda'); //=> 'ram'
1762
+ */
1763
+
1764
+ var slice$2 =
1765
+ /*#__PURE__*/
1766
+ _curry3(
1767
+ /*#__PURE__*/
1768
+ _checkForMethod('slice', function slice(fromIndex, toIndex, list) {
1769
+ return Array.prototype.slice.call(list, fromIndex, toIndex);
1770
+ }));
1771
+
1772
+ /**
1773
+ * Returns all but the first element of the given list or string (or object
1774
+ * with a `tail` method).
1775
+ *
1776
+ * Dispatches to the `slice` method of the first argument, if present.
1777
+ *
1778
+ * @func
1779
+ * @memberOf R
1780
+ * @since v0.1.0
1781
+ * @category List
1782
+ * @sig [a] -> [a]
1783
+ * @sig String -> String
1784
+ * @param {*} list
1785
+ * @return {*}
1786
+ * @see R.head, R.init, R.last
1787
+ * @example
1788
+ *
1789
+ * R.tail([1, 2, 3]); //=> [2, 3]
1790
+ * R.tail([1, 2]); //=> [2]
1791
+ * R.tail([1]); //=> []
1792
+ * R.tail([]); //=> []
1793
+ *
1794
+ * R.tail('abc'); //=> 'bc'
1795
+ * R.tail('ab'); //=> 'b'
1796
+ * R.tail('a'); //=> ''
1797
+ * R.tail(''); //=> ''
1798
+ */
1799
+
1800
+ var tail =
1801
+ /*#__PURE__*/
1802
+ _curry1(
1803
+ /*#__PURE__*/
1804
+ _checkForMethod('tail',
1805
+ /*#__PURE__*/
1806
+ slice$2(1, Infinity)));
1807
+
1808
+ /**
1809
+ * Performs left-to-right function composition. The first argument may have
1810
+ * any arity; the remaining arguments must be unary.
1811
+ *
1812
+ * In some libraries this function is named `sequence`.
1813
+ *
1814
+ * **Note:** The result of pipe is not automatically curried.
1815
+ *
1816
+ * @func
1817
+ * @memberOf R
1818
+ * @since v0.1.0
1819
+ * @category Function
1820
+ * @sig (((a, b, ..., n) -> o), (o -> p), ..., (x -> y), (y -> z)) -> ((a, b, ..., n) -> z)
1821
+ * @param {...Function} functions
1822
+ * @return {Function}
1823
+ * @see R.compose
1824
+ * @example
1825
+ *
1826
+ * const f = R.pipe(Math.pow, R.negate, R.inc);
1827
+ *
1828
+ * f(3, 4); // -(3^4) + 1
1829
+ * @symb R.pipe(f, g, h)(a, b) = h(g(f(a, b)))
1830
+ * @symb R.pipe(f, g, h)(a)(b) = h(g(f(a)))(b)
1831
+ */
1832
+
1833
+ function pipe$1() {
1834
+ if (arguments.length === 0) {
1835
+ throw new Error('pipe requires at least one argument');
1836
+ }
1837
+
1838
+ return _arity(arguments[0].length, reduce(_pipe, arguments[0], tail(arguments)));
1839
+ }
1840
+
1841
+ /**
1842
+ * Returns a curried equivalent of the provided function. The curried function
1843
+ * has two unusual capabilities. First, its arguments needn't be provided one
1844
+ * at a time. If `f` is a ternary function and `g` is `R.curry(f)`, the
1845
+ * following are equivalent:
1846
+ *
1847
+ * - `g(1)(2)(3)`
1848
+ * - `g(1)(2, 3)`
1849
+ * - `g(1, 2)(3)`
1850
+ * - `g(1, 2, 3)`
1851
+ *
1852
+ * Secondly, the special placeholder value [`R.__`](#__) may be used to specify
1853
+ * "gaps", allowing partial application of any combination of arguments,
1854
+ * regardless of their positions. If `g` is as above and `_` is [`R.__`](#__),
1855
+ * the following are equivalent:
1856
+ *
1857
+ * - `g(1, 2, 3)`
1858
+ * - `g(_, 2, 3)(1)`
1859
+ * - `g(_, _, 3)(1)(2)`
1860
+ * - `g(_, _, 3)(1, 2)`
1861
+ * - `g(_, 2)(1)(3)`
1862
+ * - `g(_, 2)(1, 3)`
1863
+ * - `g(_, 2)(_, 3)(1)`
1864
+ *
1865
+ * Please note that default parameters don't count towards a [function arity](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/length)
1866
+ * and therefore `curry` won't work well with those:
1867
+ *
1868
+ * ```
1869
+ * const h = R.curry((a, b, c = 2) => a + b + c);
1870
+ *
1871
+ * h(40);
1872
+ * //=> function (waits for `b`)
1873
+ *
1874
+ * h(39)(1);
1875
+ * //=> 42
1876
+ *
1877
+ * h(1)(2, 3);
1878
+ * //=> 6
1879
+ *
1880
+ * h(1)(2)(7);
1881
+ * //=> Error! (`3` is not a function!)
1882
+ * ```
1883
+ *
1884
+ * @func
1885
+ * @memberOf R
1886
+ * @since v0.1.0
1887
+ * @category Function
1888
+ * @sig (* -> a) -> (* -> a)
1889
+ * @param {Function} fn The function to curry.
1890
+ * @return {Function} A new, curried function.
1891
+ * @see R.curryN, R.partial
1892
+ * @example
1893
+ *
1894
+ * const addFourNumbers = (a, b, c, d) => a + b + c + d;
1895
+ *
1896
+ * const curriedAddFourNumbers = R.curry(addFourNumbers);
1897
+ * const f = curriedAddFourNumbers(1, 2);
1898
+ * const g = f(3);
1899
+ * g(4); //=> 10
1900
+ */
1901
+
1902
+ var curry =
1903
+ /*#__PURE__*/
1904
+ _curry1(function curry(fn) {
1905
+ return curryN(fn.length, fn);
1906
+ });
1907
+
1548
1908
  /**
1549
1909
  * Tests whether or not an object is a typed array.
1550
1910
  *
@@ -1716,6 +2076,109 @@ _curry3(function (from, to, list) {
1716
2076
  return positiveFrom < 0 || positiveFrom >= list.length || positiveTo < 0 || positiveTo >= list.length ? list : [].concat(result.slice(0, positiveTo)).concat(item).concat(result.slice(positiveTo, list.length));
1717
2077
  });
1718
2078
 
2079
+ /**
2080
+ * Returns a partial copy of an object omitting the keys specified.
2081
+ *
2082
+ * @func
2083
+ * @memberOf R
2084
+ * @since v0.1.0
2085
+ * @category Object
2086
+ * @sig [String] -> {String: *} -> {String: *}
2087
+ * @param {Array} names an array of String property names to omit from the new object
2088
+ * @param {Object} obj The object to copy from
2089
+ * @return {Object} A new object with properties from `names` not on it.
2090
+ * @see R.pick
2091
+ * @example
2092
+ *
2093
+ * R.omit(['a', 'd'], {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, c: 3}
2094
+ */
2095
+
2096
+ var omit =
2097
+ /*#__PURE__*/
2098
+ _curry2(function omit(names, obj) {
2099
+ var result = {};
2100
+ var index = {};
2101
+ var idx = 0;
2102
+ var len = names.length;
2103
+
2104
+ while (idx < len) {
2105
+ index[names[idx]] = 1;
2106
+ idx += 1;
2107
+ }
2108
+
2109
+ for (var prop in obj) {
2110
+ if (!index.hasOwnProperty(prop)) {
2111
+ result[prop] = obj[prop];
2112
+ }
2113
+ }
2114
+
2115
+ return result;
2116
+ });
2117
+
2118
+ /**
2119
+ * Replace a substring or regex match in a string with a replacement.
2120
+ *
2121
+ * The first two parameters correspond to the parameters of the
2122
+ * `String.prototype.replace()` function, so the second parameter can also be a
2123
+ * function.
2124
+ *
2125
+ * @func
2126
+ * @memberOf R
2127
+ * @since v0.7.0
2128
+ * @category String
2129
+ * @sig RegExp|String -> String -> String -> String
2130
+ * @param {RegExp|String} pattern A regular expression or a substring to match.
2131
+ * @param {String} replacement The string to replace the matches with.
2132
+ * @param {String} str The String to do the search and replacement in.
2133
+ * @return {String} The result.
2134
+ * @example
2135
+ *
2136
+ * R.replace('foo', 'bar', 'foo foo foo'); //=> 'bar foo foo'
2137
+ * R.replace(/foo/, 'bar', 'foo foo foo'); //=> 'bar foo foo'
2138
+ *
2139
+ * // Use the "g" (global) flag to replace all occurrences:
2140
+ * R.replace(/foo/g, 'bar', 'foo foo foo'); //=> 'bar bar bar'
2141
+ */
2142
+
2143
+ var replace$2 =
2144
+ /*#__PURE__*/
2145
+ _curry3(function replace(regex, replacement, str) {
2146
+ return str.replace(regex, replacement);
2147
+ });
2148
+
2149
+ /**
2150
+ * Converts an object into an array of key, value arrays. Only the object's
2151
+ * own properties are used.
2152
+ * Note that the order of the output array is not guaranteed to be consistent
2153
+ * across different JS platforms.
2154
+ *
2155
+ * @func
2156
+ * @memberOf R
2157
+ * @since v0.4.0
2158
+ * @category Object
2159
+ * @sig {String: *} -> [[String,*]]
2160
+ * @param {Object} obj The object to extract from
2161
+ * @return {Array} An array of key, value arrays from the object's own properties.
2162
+ * @see R.fromPairs, R.keys, R.values
2163
+ * @example
2164
+ *
2165
+ * R.toPairs({a: 1, b: 2, c: 3}); //=> [['a', 1], ['b', 2], ['c', 3]]
2166
+ */
2167
+
2168
+ var toPairs =
2169
+ /*#__PURE__*/
2170
+ _curry1(function toPairs(obj) {
2171
+ var pairs = [];
2172
+
2173
+ for (var prop in obj) {
2174
+ if (_has$1(prop, obj)) {
2175
+ pairs[pairs.length] = [prop, obj[prop]];
2176
+ }
2177
+ }
2178
+
2179
+ return pairs;
2180
+ });
2181
+
1719
2182
  function _extends$4() {
1720
2183
  _extends$4 = Object.assign ? Object.assign.bind() : function (target) {
1721
2184
  for (var i = 1; i < arguments.length; i++) {
@@ -2445,7 +2908,7 @@ var sanitize = function (v) { return (v % 1 ? Number(v.toFixed(5)) : v); };
2445
2908
  var floatRegex = /(-)?([\d]*\.?[\d])+/g;
2446
2909
  var colorRegex = /(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi;
2447
2910
  var singleColorRegex = /^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;
2448
- function isString$2(v) {
2911
+ function isString$3(v) {
2449
2912
  return typeof v === 'string';
2450
2913
  }
2451
2914
 
@@ -2459,7 +2922,7 @@ var scale = __assign(__assign({}, number), { default: 1 });
2459
2922
 
2460
2923
  var createUnitType = function (unit) { return ({
2461
2924
  test: function (v) {
2462
- return isString$2(v) && v.endsWith(unit) && v.split(' ').length === 1;
2925
+ return isString$3(v) && v.endsWith(unit) && v.split(' ').length === 1;
2463
2926
  },
2464
2927
  parse: parseFloat,
2465
2928
  transform: function (v) { return "" + v + unit; },
@@ -2472,12 +2935,12 @@ var vw = createUnitType('vw');
2472
2935
  var progressPercentage = __assign(__assign({}, percent), { parse: function (v) { return percent.parse(v) / 100; }, transform: function (v) { return percent.transform(v * 100); } });
2473
2936
 
2474
2937
  var isColorString = function (type, testProp) { return function (v) {
2475
- return Boolean((isString$2(v) && singleColorRegex.test(v) && v.startsWith(type)) ||
2938
+ return Boolean((isString$3(v) && singleColorRegex.test(v) && v.startsWith(type)) ||
2476
2939
  (testProp && Object.prototype.hasOwnProperty.call(v, testProp)));
2477
2940
  }; };
2478
2941
  var splitColor = function (aName, bName, cName) { return function (v) {
2479
2942
  var _a;
2480
- if (!isString$2(v))
2943
+ if (!isString$3(v))
2481
2944
  return v;
2482
2945
  var _b = v.match(floatRegex), a = _b[0], b = _b[1], c = _b[2], alpha = _b[3];
2483
2946
  return _a = {},
@@ -2572,7 +3035,7 @@ var color = {
2572
3035
  }
2573
3036
  },
2574
3037
  transform: function (v) {
2575
- return isString$2(v)
3038
+ return isString$3(v)
2576
3039
  ? v
2577
3040
  : v.hasOwnProperty('red')
2578
3041
  ? rgba.transform(v)
@@ -2585,7 +3048,7 @@ var numberToken = '${n}';
2585
3048
  function test(v) {
2586
3049
  var _a, _b, _c, _d;
2587
3050
  return (isNaN(v) &&
2588
- isString$2(v) &&
3051
+ isString$3(v) &&
2589
3052
  ((_b = (_a = v.match(floatRegex)) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) + ((_d = (_c = v.match(colorRegex)) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0) > 0);
2590
3053
  }
2591
3054
  function analyse$1(v) {
@@ -2604,7 +3067,7 @@ function analyse$1(v) {
2604
3067
  }
2605
3068
  return { values: values, numColors: numColors, tokenised: v };
2606
3069
  }
2607
- function parse$1(v) {
3070
+ function parse$3(v) {
2608
3071
  return analyse$1(v).values;
2609
3072
  }
2610
3073
  function createTransformer(v) {
@@ -2622,11 +3085,11 @@ var convertNumbersToZero = function (v) {
2622
3085
  return typeof v === 'number' ? 0 : v;
2623
3086
  };
2624
3087
  function getAnimatableNone$1(v) {
2625
- var parsed = parse$1(v);
3088
+ var parsed = parse$3(v);
2626
3089
  var transformer = createTransformer(v);
2627
3090
  return transformer(parsed.map(convertNumbersToZero));
2628
3091
  }
2629
- var complex = { test: test, parse: parse$1, createTransformer: createTransformer, getAnimatableNone: getAnimatableNone$1 };
3092
+ var complex = { test: test, parse: parse$3, createTransformer: createTransformer, getAnimatableNone: getAnimatableNone$1 };
2630
3093
 
2631
3094
  var maxDefaults = new Set(['brightness', 'contrast', 'saturate', 'opacity']);
2632
3095
  function applyDefaultFilter(v) {
@@ -10420,7 +10883,7 @@ function getWindow$1(node) {
10420
10883
  return node;
10421
10884
  }
10422
10885
 
10423
- function isElement$2(node) {
10886
+ function isElement$3(node) {
10424
10887
  var OwnElement = getWindow$1(node).Element;
10425
10888
  return node instanceof OwnElement || node instanceof Element;
10426
10889
  }
@@ -10565,7 +11028,7 @@ function getBoundingClientRect$1(element, includeScale, isFixedStrategy) {
10565
11028
  scaleY = element.offsetHeight > 0 ? round$1(clientRect.height) / element.offsetHeight || 1 : 1;
10566
11029
  }
10567
11030
 
10568
- var _ref = isElement$2(element) ? getWindow$1(element) : window,
11031
+ var _ref = isElement$3(element) ? getWindow$1(element) : window,
10569
11032
  visualViewport = _ref.visualViewport;
10570
11033
 
10571
11034
  var addVisualOffsets = !isLayoutViewport$1() && isFixedStrategy;
@@ -10643,7 +11106,7 @@ function isTableElement(element) {
10643
11106
 
10644
11107
  function getDocumentElement$1(element) {
10645
11108
  // $FlowFixMe[incompatible-return]: assume body is always available
10646
- return ((isElement$2(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
11109
+ return ((isElement$3(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
10647
11110
  element.document) || window.document).documentElement;
10648
11111
  }
10649
11112
 
@@ -11220,7 +11683,7 @@ function getInnerBoundingClientRect(element, strategy) {
11220
11683
  }
11221
11684
 
11222
11685
  function getClientRectFromMixedType(element, clippingParent, strategy) {
11223
- return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement$2(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement$1(element)));
11686
+ return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement$3(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement$1(element)));
11224
11687
  } // A "clipping parent" is an overflowable container with the characteristic of
11225
11688
  // clipping (or hiding) overflowing elements with a position different from
11226
11689
  // `initial`
@@ -11231,13 +11694,13 @@ function getClippingParents(element) {
11231
11694
  var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$2(element).position) >= 0;
11232
11695
  var clipperElement = canEscapeClipping && isHTMLElement$1(element) ? getOffsetParent(element) : element;
11233
11696
 
11234
- if (!isElement$2(clipperElement)) {
11697
+ if (!isElement$3(clipperElement)) {
11235
11698
  return [];
11236
11699
  } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
11237
11700
 
11238
11701
 
11239
11702
  return clippingParents.filter(function (clippingParent) {
11240
- return isElement$2(clippingParent) && contains(clippingParent, clipperElement) && getNodeName$1(clippingParent) !== 'body';
11703
+ return isElement$3(clippingParent) && contains(clippingParent, clipperElement) && getNodeName$1(clippingParent) !== 'body';
11241
11704
  });
11242
11705
  } // Gets the maximum area that the element is visible in due to any number of
11243
11706
  // clipping parents
@@ -11351,7 +11814,7 @@ function detectOverflow(state, options) {
11351
11814
  var altContext = elementContext === popper ? reference : popper;
11352
11815
  var popperRect = state.rects.popper;
11353
11816
  var element = state.elements[altBoundary ? altContext : elementContext];
11354
- var clippingClientRect = getClippingRect(isElement$2(element) ? element : element.contextElement || getDocumentElement$1(state.elements.popper), boundary, rootBoundary, strategy);
11817
+ var clippingClientRect = getClippingRect(isElement$3(element) ? element : element.contextElement || getDocumentElement$1(state.elements.popper), boundary, rootBoundary, strategy);
11355
11818
  var referenceClientRect = getBoundingClientRect$1(state.elements.reference);
11356
11819
  var popperOffsets = computeOffsets({
11357
11820
  reference: referenceClientRect,
@@ -12024,7 +12487,7 @@ function popperGenerator(generatorOptions) {
12024
12487
  cleanupModifierEffects();
12025
12488
  state.options = Object.assign({}, defaultOptions, state.options, options);
12026
12489
  state.scrollParents = {
12027
- reference: isElement$2(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
12490
+ reference: isElement$3(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
12028
12491
  popper: listScrollParents(popper)
12029
12492
  }; // Orders the modifiers based on their dependencies and `phase`
12030
12493
  // properties
@@ -12250,7 +12713,7 @@ function removeUndefinedProps(obj) {
12250
12713
  function div() {
12251
12714
  return document.createElement('div');
12252
12715
  }
12253
- function isElement$1(value) {
12716
+ function isElement$2(value) {
12254
12717
  return ['Element', 'Fragment'].some(function (type) {
12255
12718
  return isType(value, type);
12256
12719
  });
@@ -12265,7 +12728,7 @@ function isReferenceElement(value) {
12265
12728
  return !!(value && value._tippy && value._tippy.reference === value);
12266
12729
  }
12267
12730
  function getArrayOfElements(value) {
12268
- if (isElement$1(value)) {
12731
+ if (isElement$2(value)) {
12269
12732
  return [value];
12270
12733
  }
12271
12734
 
@@ -12553,7 +13016,7 @@ function createArrowElement(value) {
12553
13016
  } else {
12554
13017
  arrow.className = SVG_ARROW_CLASS;
12555
13018
 
12556
- if (isElement$1(value)) {
13019
+ if (isElement$2(value)) {
12557
13020
  arrow.appendChild(value);
12558
13021
  } else {
12559
13022
  dangerouslySetInnerHTML(arrow, value);
@@ -12564,7 +13027,7 @@ function createArrowElement(value) {
12564
13027
  }
12565
13028
 
12566
13029
  function setContent(content, props) {
12567
- if (isElement$1(props.content)) {
13030
+ if (isElement$2(props.content)) {
12568
13031
  dangerouslySetInnerHTML(content, '');
12569
13032
  content.appendChild(props.content);
12570
13033
  } else if (typeof props.content !== 'function') {
@@ -13635,7 +14098,7 @@ function tippy(targets, optionalProps) {
13635
14098
 
13636
14099
  return acc;
13637
14100
  }, []);
13638
- return isElement$1(targets) ? instances[0] : instances;
14101
+ return isElement$2(targets) ? instances[0] : instances;
13639
14102
  }
13640
14103
 
13641
14104
  tippy.defaultProps = defaultProps$2;
@@ -19896,7 +20359,7 @@ var DatePicker = /*#__PURE__*/React$5.forwardRef(function (_ref2, ref) {
19896
20359
  });
19897
20360
  DatePicker.displayName = "DatePicker";
19898
20361
 
19899
- var _excluded$p = ["size", "type", "label", "error", "suffix", "prefix", "disabled", "helpText", "className", "nakedInput", "contentSize", "required", "maxLength", "unlimitedChars", "labelProps"];
20362
+ var _excluded$p = ["size", "type", "label", "error", "suffix", "prefix", "disabled", "helpText", "className", "nakedInput", "contentSize", "required", "maxLength", "unlimitedChars", "labelProps", "rejectCharsRegex"];
19900
20363
  var SIZES$5 = {
19901
20364
  small: "small",
19902
20365
  medium: "medium",
@@ -19932,6 +20395,7 @@ var Input$1 = /*#__PURE__*/React$5.forwardRef(function (_ref, ref) {
19932
20395
  _ref$unlimitedChars = _ref.unlimitedChars,
19933
20396
  unlimitedChars = _ref$unlimitedChars === void 0 ? false : _ref$unlimitedChars,
19934
20397
  labelProps = _ref.labelProps,
20398
+ rejectCharsRegex = _ref.rejectCharsRegex,
19935
20399
  otherProps = _objectWithoutProperties$1(_ref, _excluded$p);
19936
20400
  var _useState = React$5.useState(otherProps.value),
19937
20401
  _useState2 = _slicedToArray$2(_useState, 2),
@@ -19949,6 +20413,12 @@ var Input$1 = /*#__PURE__*/React$5.forwardRef(function (_ref, ref) {
19949
20413
  };
19950
20414
  var onChange = otherProps.onChange || onChangeInternal;
19951
20415
  var isMaxLengthPresent = !!maxLength || maxLength === 0;
20416
+ var handleRegexChange = function handleRegexChange(e) {
20417
+ var globalRegex = new RegExp(rejectCharsRegex, "g");
20418
+ e.target.value = replace$2(globalRegex, "", e.target.value);
20419
+ onChange(e);
20420
+ };
20421
+ var handleChange = rejectCharsRegex ? handleRegexChange : onChange;
19952
20422
  return /*#__PURE__*/React__default["default"].createElement("div", {
19953
20423
  className: classnames$1(["neeto-ui-input__wrapper", className])
19954
20424
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -19987,7 +20457,7 @@ var Input$1 = /*#__PURE__*/React$5.forwardRef(function (_ref, ref) {
19987
20457
  maxLength: maxLength
19988
20458
  }, otherProps, {
19989
20459
  value: value,
19990
- onChange: onChange
20460
+ onChange: handleChange
19991
20461
  })), suffix && /*#__PURE__*/React__default["default"].createElement("div", {
19992
20462
  className: "neeto-ui-input__suffix"
19993
20463
  }, suffix)), !!error && /*#__PURE__*/React__default["default"].createElement(Typography, {
@@ -20059,7 +20529,7 @@ function _defineProperty$6(obj, key, value) {
20059
20529
  return obj;
20060
20530
  }
20061
20531
 
20062
- function ownKeys$b(object, enumerableOnly) {
20532
+ function ownKeys$c(object, enumerableOnly) {
20063
20533
  var keys = Object.keys(object);
20064
20534
  if (Object.getOwnPropertySymbols) {
20065
20535
  var symbols = Object.getOwnPropertySymbols(object);
@@ -20072,9 +20542,9 @@ function ownKeys$b(object, enumerableOnly) {
20072
20542
  function _objectSpread2(target) {
20073
20543
  for (var i = 1; i < arguments.length; i++) {
20074
20544
  var source = null != arguments[i] ? arguments[i] : {};
20075
- i % 2 ? ownKeys$b(Object(source), !0).forEach(function (key) {
20545
+ i % 2 ? ownKeys$c(Object(source), !0).forEach(function (key) {
20076
20546
  _defineProperty$6(target, key, source[key]);
20077
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$b(Object(source)).forEach(function (key) {
20547
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$c(Object(source)).forEach(function (key) {
20078
20548
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
20079
20549
  });
20080
20550
  }
@@ -20383,7 +20853,7 @@ var from = String.fromCharCode;
20383
20853
  * @param {object}
20384
20854
  * @return {object}
20385
20855
  */
20386
- var assign$1 = Object.assign;
20856
+ var assign$2 = Object.assign;
20387
20857
 
20388
20858
  /**
20389
20859
  * @param {string} value
@@ -20417,7 +20887,7 @@ function match (value, pattern) {
20417
20887
  * @param {string} replacement
20418
20888
  * @return {string}
20419
20889
  */
20420
- function replace (value, pattern, replacement) {
20890
+ function replace$1 (value, pattern, replacement) {
20421
20891
  return value.replace(pattern, replacement)
20422
20892
  }
20423
20893
 
@@ -20479,7 +20949,7 @@ function append (value, array) {
20479
20949
  * @param {function} callback
20480
20950
  * @return {string}
20481
20951
  */
20482
- function combine (array, callback) {
20952
+ function combine$1 (array, callback) {
20483
20953
  return array.map(callback).join('')
20484
20954
  }
20485
20955
 
@@ -20509,7 +20979,7 @@ function node (value, root, parent, type, props, children, length) {
20509
20979
  * @return {object}
20510
20980
  */
20511
20981
  function copy (root, props) {
20512
- return assign$1(node('', null, null, '', null, null, 0), root, {length: -root.length}, props)
20982
+ return assign$2(node('', null, null, '', null, null, 0), root, {length: -root.length}, props)
20513
20983
  }
20514
20984
 
20515
20985
  /**
@@ -20562,7 +21032,7 @@ function caret () {
20562
21032
  * @param {number} end
20563
21033
  * @return {string}
20564
21034
  */
20565
- function slice (begin, end) {
21035
+ function slice$1 (begin, end) {
20566
21036
  return substr(characters, begin, end)
20567
21037
  }
20568
21038
 
@@ -20615,7 +21085,7 @@ function dealloc (value) {
20615
21085
  * @return {string}
20616
21086
  */
20617
21087
  function delimit (type) {
20618
- return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)))
21088
+ return trim(slice$1(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)))
20619
21089
  }
20620
21090
 
20621
21091
  /**
@@ -20643,7 +21113,7 @@ function escaping (index, count) {
20643
21113
  if (character < 48 || character > 102 || (character > 57 && character < 65) || (character > 70 && character < 97))
20644
21114
  break
20645
21115
 
20646
- return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32))
21116
+ return slice$1(index, caret() + (count < 6 && peek() == 32 && next() == 32))
20647
21117
  }
20648
21118
 
20649
21119
  /**
@@ -20689,7 +21159,7 @@ function commenter (type, index) {
20689
21159
  else if (type + character === 42 + 42 && peek() === 47)
20690
21160
  break
20691
21161
 
20692
- return '/*' + slice(index, position - 1) + '*' + from(type === 47 ? type : next())
21162
+ return '/*' + slice$1(index, position - 1) + '*' + from(type === 47 ? type : next())
20693
21163
  }
20694
21164
 
20695
21165
  /**
@@ -20700,7 +21170,7 @@ function identifier (index) {
20700
21170
  while (!token(peek()))
20701
21171
  next();
20702
21172
 
20703
- return slice(index, position)
21173
+ return slice$1(index, position)
20704
21174
  }
20705
21175
 
20706
21176
  /**
@@ -20708,7 +21178,7 @@ function identifier (index) {
20708
21178
  * @return {object[]}
20709
21179
  */
20710
21180
  function compile$1 (value) {
20711
- return dealloc(parse('', null, null, null, [''], value = alloc(value), 0, [0], value))
21181
+ return dealloc(parse$2('', null, null, null, [''], value = alloc(value), 0, [0], value))
20712
21182
  }
20713
21183
 
20714
21184
  /**
@@ -20723,7 +21193,7 @@ function compile$1 (value) {
20723
21193
  * @param {string[]} declarations
20724
21194
  * @return {object}
20725
21195
  */
20726
- function parse (value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
21196
+ function parse$2 (value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
20727
21197
  var index = 0;
20728
21198
  var offset = 0;
20729
21199
  var length = pseudo;
@@ -20745,7 +21215,7 @@ function parse (value, root, parent, rule, rules, rulesets, pseudo, points, decl
20745
21215
  // (
20746
21216
  case 40:
20747
21217
  if (previous != 108 && charat(characters, length - 1) == 58) {
20748
- if (indexof(characters += replace(delimit(character), '&', '&\f'), '&\f') != -1)
21218
+ if (indexof(characters += replace$1(delimit(character), '&', '&\f'), '&\f') != -1)
20749
21219
  ampersand = -1;
20750
21220
  break
20751
21221
  }
@@ -20782,7 +21252,7 @@ function parse (value, root, parent, rule, rules, rulesets, pseudo, points, decl
20782
21252
  // ;
20783
21253
  case 59 + offset:
20784
21254
  if (property > 0 && (strlen(characters) - length))
20785
- append(property > 32 ? declaration(characters + ';', rule, parent, length - 1) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2), declarations);
21255
+ append(property > 32 ? declaration(characters + ';', rule, parent, length - 1) : declaration(replace$1(characters, ' ', '') + ';', rule, parent, length - 2), declarations);
20786
21256
  break
20787
21257
  // @ ;
20788
21258
  case 59: characters += ';';
@@ -20792,15 +21262,15 @@ function parse (value, root, parent, rule, rules, rulesets, pseudo, points, decl
20792
21262
 
20793
21263
  if (character === 123)
20794
21264
  if (offset === 0)
20795
- parse(characters, root, reference, reference, props, rulesets, length, points, children);
21265
+ parse$2(characters, root, reference, reference, props, rulesets, length, points, children);
20796
21266
  else
20797
21267
  switch (atrule === 99 && charat(characters, 3) === 110 ? 100 : atrule) {
20798
21268
  // d m s
20799
21269
  case 100: case 109: case 115:
20800
- parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length), children), rules, children, length, points, rule ? props : children);
21270
+ parse$2(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length), children), rules, children, length, points, rule ? props : children);
20801
21271
  break
20802
21272
  default:
20803
- parse(characters, reference, reference, reference, [''], children, 0, points, children);
21273
+ parse$2(characters, reference, reference, reference, [''], children, 0, points, children);
20804
21274
  }
20805
21275
  }
20806
21276
 
@@ -20864,7 +21334,7 @@ function ruleset (value, root, parent, index, offset, rules, points, type, props
20864
21334
 
20865
21335
  for (var i = 0, j = 0, k = 0; i < index; ++i)
20866
21336
  for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
20867
- if (z = trim(j > 0 ? rule[x] + ' ' + y : replace(y, /&\f/g, rule[x])))
21337
+ if (z = trim(j > 0 ? rule[x] + ' ' + y : replace$1(y, /&\f/g, rule[x])))
20868
21338
  props[k++] = z;
20869
21339
 
20870
21340
  return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length)
@@ -20913,7 +21383,7 @@ function serialize (children, callback) {
20913
21383
  * @param {function} callback
20914
21384
  * @return {string}
20915
21385
  */
20916
- function stringify (element, index, children, callback) {
21386
+ function stringify$2 (element, index, children, callback) {
20917
21387
  switch (element.type) {
20918
21388
  case IMPORT: case DECLARATION: return element.return = element.return || element.value
20919
21389
  case COMMENT: return ''
@@ -20995,7 +21465,7 @@ var identifierWithPointTracking = function identifierWithPointTracking(begin, po
20995
21465
  next();
20996
21466
  }
20997
21467
 
20998
- return slice(begin, position);
21468
+ return slice$1(begin, position);
20999
21469
  };
21000
21470
 
21001
21471
  var toRules = function toRules(parsed, points) {
@@ -21159,51 +21629,51 @@ function prefix(value, length) {
21159
21629
  // align-items
21160
21630
 
21161
21631
  case 5187:
21162
- return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;
21632
+ return WEBKIT + value + replace$1(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;
21163
21633
  // align-self
21164
21634
 
21165
21635
  case 5443:
21166
- return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/, '') + value;
21636
+ return WEBKIT + value + MS + 'flex-item-' + replace$1(value, /flex-|-self/, '') + value;
21167
21637
  // align-content
21168
21638
 
21169
21639
  case 4675:
21170
- return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/, '') + value;
21640
+ return WEBKIT + value + MS + 'flex-line-pack' + replace$1(value, /align-content|flex-|-self/, '') + value;
21171
21641
  // flex-shrink
21172
21642
 
21173
21643
  case 5548:
21174
- return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value;
21644
+ return WEBKIT + value + MS + replace$1(value, 'shrink', 'negative') + value;
21175
21645
  // flex-basis
21176
21646
 
21177
21647
  case 5292:
21178
- return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value;
21648
+ return WEBKIT + value + MS + replace$1(value, 'basis', 'preferred-size') + value;
21179
21649
  // flex-grow
21180
21650
 
21181
21651
  case 6060:
21182
- return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value;
21652
+ return WEBKIT + 'box-' + replace$1(value, '-grow', '') + WEBKIT + value + MS + replace$1(value, 'grow', 'positive') + value;
21183
21653
  // transition
21184
21654
 
21185
21655
  case 4554:
21186
- return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;
21656
+ return WEBKIT + replace$1(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;
21187
21657
  // cursor
21188
21658
 
21189
21659
  case 6187:
21190
- return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;
21660
+ return replace$1(replace$1(replace$1(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;
21191
21661
  // background, background-image
21192
21662
 
21193
21663
  case 5495:
21194
21664
  case 3959:
21195
- return replace(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1');
21665
+ return replace$1(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1');
21196
21666
  // justify-content
21197
21667
 
21198
21668
  case 4968:
21199
- return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;
21669
+ return replace$1(replace$1(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;
21200
21670
  // (margin|padding)-inline-(start|end)
21201
21671
 
21202
21672
  case 4095:
21203
21673
  case 3583:
21204
21674
  case 4068:
21205
21675
  case 2532:
21206
- return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;
21676
+ return replace$1(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;
21207
21677
  // (min|max)?(width|height|inline-size|block-size)
21208
21678
 
21209
21679
  case 8116:
@@ -21227,11 +21697,11 @@ function prefix(value, length) {
21227
21697
  // (f)ill-available, (f)it-content
21228
21698
 
21229
21699
  case 102:
21230
- return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
21700
+ return replace$1(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
21231
21701
  // (s)tretch
21232
21702
 
21233
21703
  case 115:
21234
- return ~indexof(value, 'stretch') ? prefix(replace(value, 'stretch', 'fill-available'), length) + value : value;
21704
+ return ~indexof(value, 'stretch') ? prefix(replace$1(value, 'stretch', 'fill-available'), length) + value : value;
21235
21705
  }
21236
21706
  break;
21237
21707
  // position: sticky
@@ -21245,11 +21715,11 @@ function prefix(value, length) {
21245
21715
  switch (charat(value, strlen(value) - 3 - (~indexof(value, '!important') && 10))) {
21246
21716
  // stic(k)y
21247
21717
  case 107:
21248
- return replace(value, ':', ':' + WEBKIT) + value;
21718
+ return replace$1(value, ':', ':' + WEBKIT) + value;
21249
21719
  // (inline-)?fl(e)x
21250
21720
 
21251
21721
  case 101:
21252
- return replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;
21722
+ return replace$1(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;
21253
21723
  }
21254
21724
 
21255
21725
  break;
@@ -21259,15 +21729,15 @@ function prefix(value, length) {
21259
21729
  switch (charat(value, length + 11)) {
21260
21730
  // vertical-l(r)
21261
21731
  case 114:
21262
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
21732
+ return WEBKIT + value + MS + replace$1(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
21263
21733
  // vertical-r(l)
21264
21734
 
21265
21735
  case 108:
21266
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
21736
+ return WEBKIT + value + MS + replace$1(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
21267
21737
  // horizontal(-)tb
21268
21738
 
21269
21739
  case 45:
21270
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
21740
+ return WEBKIT + value + MS + replace$1(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
21271
21741
  }
21272
21742
 
21273
21743
  return WEBKIT + value + MS + value + value;
@@ -21284,27 +21754,27 @@ var prefixer = function prefixer(element, index, children, callback) {
21284
21754
 
21285
21755
  case KEYFRAMES:
21286
21756
  return serialize([copy(element, {
21287
- value: replace(element.value, '@', '@' + WEBKIT)
21757
+ value: replace$1(element.value, '@', '@' + WEBKIT)
21288
21758
  })], callback);
21289
21759
 
21290
21760
  case RULESET:
21291
- if (element.length) return combine(element.props, function (value) {
21761
+ if (element.length) return combine$1(element.props, function (value) {
21292
21762
  switch (match(value, /(::plac\w+|:read-\w+)/)) {
21293
21763
  // :read-(only|write)
21294
21764
  case ':read-only':
21295
21765
  case ':read-write':
21296
21766
  return serialize([copy(element, {
21297
- props: [replace(value, /:(read-\w+)/, ':' + MOZ + '$1')]
21767
+ props: [replace$1(value, /:(read-\w+)/, ':' + MOZ + '$1')]
21298
21768
  })], callback);
21299
21769
  // :placeholder
21300
21770
 
21301
21771
  case '::placeholder':
21302
21772
  return serialize([copy(element, {
21303
- props: [replace(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]
21773
+ props: [replace$1(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]
21304
21774
  }), copy(element, {
21305
- props: [replace(value, /:(plac\w+)/, ':' + MOZ + '$1')]
21775
+ props: [replace$1(value, /:(plac\w+)/, ':' + MOZ + '$1')]
21306
21776
  }), copy(element, {
21307
- props: [replace(value, /:(plac\w+)/, MS + 'input-$1')]
21777
+ props: [replace$1(value, /:(plac\w+)/, MS + 'input-$1')]
21308
21778
  })], callback);
21309
21779
  }
21310
21780
 
@@ -21377,7 +21847,7 @@ var createCache = function createCache(options) {
21377
21847
 
21378
21848
  if (isBrowser$3) {
21379
21849
  var currentSheet;
21380
- var finalizingPlugins = [stringify, rulesheet(function (rule) {
21850
+ var finalizingPlugins = [stringify$2, rulesheet(function (rule) {
21381
21851
  currentSheet.insert(rule);
21382
21852
  })];
21383
21853
  var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
@@ -21396,7 +21866,7 @@ var createCache = function createCache(options) {
21396
21866
  }
21397
21867
  };
21398
21868
  } else {
21399
- var _finalizingPlugins = [stringify];
21869
+ var _finalizingPlugins = [stringify$2];
21400
21870
 
21401
21871
  var _serializer = middleware(omnipresentPlugins.concat(stylisPlugins, _finalizingPlugins));
21402
21872
 
@@ -22120,7 +22590,7 @@ var classnames = function classnames(args) {
22120
22590
  return cls;
22121
22591
  };
22122
22592
 
22123
- function merge(registered, css, className) {
22593
+ function merge$1(registered, css, className) {
22124
22594
  var registeredStyles = [];
22125
22595
  var rawClassName = getRegisteredStyles(registered, registeredStyles, className);
22126
22596
 
@@ -22192,7 +22662,7 @@ var ClassNames = /* #__PURE__ */withEmotionCache(function (props, cache) {
22192
22662
  args[_key2] = arguments[_key2];
22193
22663
  }
22194
22664
 
22195
- return merge(cache.registered, css, classnames(args));
22665
+ return merge$1(cache.registered, css, classnames(args));
22196
22666
  };
22197
22667
 
22198
22668
  var content = {
@@ -22322,7 +22792,7 @@ function getUAString() {
22322
22792
  function isHTMLElement(value) {
22323
22793
  return value instanceof getWindow(value).HTMLElement;
22324
22794
  }
22325
- function isElement(value) {
22795
+ function isElement$1(value) {
22326
22796
  return value instanceof getWindow(value).Element;
22327
22797
  }
22328
22798
  function isNode(value) {
@@ -22380,7 +22850,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy) {
22380
22850
  scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
22381
22851
  }
22382
22852
 
22383
- const win = isElement(element) ? getWindow(element) : window;
22853
+ const win = isElement$1(element) ? getWindow(element) : window;
22384
22854
  const addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
22385
22855
  const x = (clientRect.left + (addVisualOffsets ? (_win$visualViewport$o = (_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) != null ? _win$visualViewport$o : 0 : 0)) / scaleX;
22386
22856
  const y = (clientRect.top + (addVisualOffsets ? (_win$visualViewport$o2 = (_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) != null ? _win$visualViewport$o2 : 0 : 0)) / scaleY;
@@ -22462,7 +22932,7 @@ function autoUpdate(reference, floating, update, options) {
22462
22932
  animationFrame = false
22463
22933
  } = options;
22464
22934
  const ancestorScroll = _ancestorScroll && !animationFrame;
22465
- const ancestors = ancestorScroll || ancestorResize ? [...(isElement(reference) ? getOverflowAncestors(reference) : reference.contextElement ? getOverflowAncestors(reference.contextElement) : []), ...getOverflowAncestors(floating)] : [];
22935
+ const ancestors = ancestorScroll || ancestorResize ? [...(isElement$1(reference) ? getOverflowAncestors(reference) : reference.contextElement ? getOverflowAncestors(reference.contextElement) : []), ...getOverflowAncestors(floating)] : [];
22466
22936
  ancestors.forEach(ancestor => {
22467
22937
  ancestorScroll && ancestor.addEventListener('scroll', update, {
22468
22938
  passive: true
@@ -22480,9 +22950,9 @@ function autoUpdate(reference, floating, update, options) {
22480
22950
 
22481
22951
  initialUpdate = false;
22482
22952
  });
22483
- isElement(reference) && !animationFrame && observer.observe(reference);
22953
+ isElement$1(reference) && !animationFrame && observer.observe(reference);
22484
22954
 
22485
- if (!isElement(reference) && reference.contextElement && !animationFrame) {
22955
+ if (!isElement$1(reference) && reference.contextElement && !animationFrame) {
22486
22956
  observer.observe(reference.contextElement);
22487
22957
  }
22488
22958
 
@@ -22575,7 +23045,7 @@ function classNames(prefix, state, className) {
22575
23045
  // ==============================
22576
23046
 
22577
23047
  var cleanValue = function cleanValue(value) {
22578
- if (isArray$1(value)) return value.filter(Boolean);
23048
+ if (isArray$5(value)) return value.filter(Boolean);
22579
23049
  if (_typeof$4(value) === 'object' && value !== null) return [value];
22580
23050
  return [];
22581
23051
  };
@@ -22780,7 +23250,7 @@ var supportsPassiveEvents = passiveOptionAccessed;
22780
23250
  function notNullish(item) {
22781
23251
  return item != null;
22782
23252
  }
22783
- function isArray$1(arg) {
23253
+ function isArray$5(arg) {
22784
23254
  return Array.isArray(arg);
22785
23255
  }
22786
23256
  function valueTernary(isMulti, multiValue, singleValue) {
@@ -26676,8 +27146,8 @@ var StateManagedSelect = /*#__PURE__*/React$5.forwardRef(function (props, ref) {
26676
27146
  });
26677
27147
 
26678
27148
  var _excluded$j = ["children"];
26679
- function ownKeys$a(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
26680
- function _objectSpread$a(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$a(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$a(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
27149
+ function ownKeys$b(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
27150
+ function _objectSpread$b(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$b(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$b(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
26681
27151
  var STYLES$1 = {
26682
27152
  border: {
26683
27153
  "default": "1px solid rgb(var(--neeto-ui-gray-400))",
@@ -26714,7 +27184,7 @@ var CUSTOM_STYLES = {
26714
27184
  input: assoc("overflow", "hidden"),
26715
27185
  multiValue: function multiValue(styles, _ref2) {
26716
27186
  var valid = _ref2.data.valid;
26717
- return _objectSpread$a(_objectSpread$a({}, styles), {}, {
27187
+ return _objectSpread$b(_objectSpread$b({}, styles), {}, {
26718
27188
  border: valid ? STYLES$1.border["default"] : STYLES$1.border.error,
26719
27189
  color: valid ? STYLES$1.color["default"] : STYLES$1.color.error
26720
27190
  });
@@ -26754,8 +27224,8 @@ var renderDefaultText = function renderDefaultText(count) {
26754
27224
  };
26755
27225
 
26756
27226
  var _excluded$i = ["label", "placeholder", "helpText", "value", "onChange", "error", "onBlur", "filterInvalidEmails", "counter", "disabled", "maxHeight", "required", "labelProps"];
26757
- function ownKeys$9(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
26758
- function _objectSpread$9(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$9(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$9(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
27227
+ function ownKeys$a(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
27228
+ function _objectSpread$a(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$a(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$a(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
26759
27229
  var MultiEmailInput = /*#__PURE__*/React$5.forwardRef(function (_ref, ref) {
26760
27230
  var _ref$label = _ref.label,
26761
27231
  label = _ref$label === void 0 ? "Email(s)" : _ref$label,
@@ -26869,7 +27339,7 @@ var MultiEmailInput = /*#__PURE__*/React$5.forwardRef(function (_ref, ref) {
26869
27339
  className: classnames$1("neeto-ui-react-select__container neeto-ui-email-input__select", {
26870
27340
  "neeto-ui-react-select__container--error": !!error
26871
27341
  }),
26872
- styles: _objectSpread$9(_objectSpread$9({}, CUSTOM_STYLES), {}, {
27342
+ styles: _objectSpread$a(_objectSpread$a({}, CUSTOM_STYLES), {}, {
26873
27343
  control: mergeLeft({
26874
27344
  maxHeight: "".concat(maxHeight, "px"),
26875
27345
  overflowY: "auto"
@@ -27290,8 +27760,8 @@ var Item$1 = function Item(_ref) {
27290
27760
  Item$1.displayName = "Radio.Item";
27291
27761
 
27292
27762
  var _excluded$d = ["label", "children", "stacked", "className", "containerClassName", "error", "onChange", "labelProps"];
27293
- function ownKeys$8(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
27294
- function _objectSpread$8(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$8(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$8(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
27763
+ function ownKeys$9(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
27764
+ function _objectSpread$9(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$9(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$9(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
27295
27765
  var Radio = function Radio(_ref) {
27296
27766
  var _ref$label = _ref.label,
27297
27767
  label = _ref$label === void 0 ? "" : _ref$label,
@@ -27327,7 +27797,7 @@ var Radio = function Radio(_ref) {
27327
27797
  }, containerClassName, containerClassName))
27328
27798
  }, React$5.Children.map(children, function (child) {
27329
27799
  var _child$props$checked, _ref2, _child$props$onChange;
27330
- return /*#__PURE__*/React$5.cloneElement(child, _objectSpread$8(_objectSpread$8(_objectSpread$8({}, child.props), props), {}, {
27800
+ return /*#__PURE__*/React$5.cloneElement(child, _objectSpread$9(_objectSpread$9(_objectSpread$9({}, child.props), props), {}, {
27331
27801
  value: child.props.value,
27332
27802
  checked: (_child$props$checked = child.props.checked) !== null && _child$props$checked !== void 0 ? _child$props$checked : [internalValue, props.value].includes(child.props.value),
27333
27803
  onChange: (_ref2 = (_child$props$onChange = child.props.onChange) !== null && _child$props$onChange !== void 0 ? _child$props$onChange : onChange) !== null && _ref2 !== void 0 ? _ref2 : internalOnChange
@@ -27489,8 +27959,8 @@ var AsyncCreatableSelect = /*#__PURE__*/React$5.forwardRef(function (props, ref)
27489
27959
  });
27490
27960
 
27491
27961
  var _excluded$b = ["size", "label", "required", "error", "helpText", "className", "innerRef", "isCreateable", "strategy", "id", "labelProps", "value", "defaultValue", "components", "optionRemapping"];
27492
- function ownKeys$7(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
27493
- function _objectSpread$7(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$7(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$7(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
27962
+ function ownKeys$8(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
27963
+ function _objectSpread$8(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$8(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$8(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
27494
27964
  var SIZES$3 = {
27495
27965
  small: "small",
27496
27966
  medium: "medium",
@@ -27611,7 +28081,7 @@ var Select = function Select(_ref) {
27611
28081
  "neeto-ui-react-select__container--medium": size === SIZES$3.medium,
27612
28082
  "neeto-ui-react-select__container--large": size === SIZES$3.large
27613
28083
  }),
27614
- components: _objectSpread$7({
28084
+ components: _objectSpread$8({
27615
28085
  Input: CustomInput,
27616
28086
  DropdownIndicator: DropdownIndicator,
27617
28087
  ClearIndicator: ClearIndicator,
@@ -27935,7 +28405,7 @@ var global$5 = _global.exports;
27935
28405
  var core$3 = _core.exports;
27936
28406
  var ctx = _ctx;
27937
28407
  var hide$2 = _hide;
27938
- var has$6 = _has;
28408
+ var has$a = _has;
27939
28409
  var PROTOTYPE$1 = 'prototype';
27940
28410
 
27941
28411
  var $export$6 = function (type, name, source) {
@@ -27953,7 +28423,7 @@ var $export$6 = function (type, name, source) {
27953
28423
  for (key in source) {
27954
28424
  // contains in native
27955
28425
  own = !IS_FORCED && target && target[key] !== undefined;
27956
- if (own && has$6(exports, key)) continue;
28426
+ if (own && has$a(exports, key)) continue;
27957
28427
  // export native or passed
27958
28428
  out = own ? target[key] : source[key];
27959
28429
  // prevent global pollution for namespaces
@@ -28170,7 +28640,7 @@ var _sharedKey = function (key) {
28170
28640
  return shared$1[key] || (shared$1[key] = uid$2(key));
28171
28641
  };
28172
28642
 
28173
- var has$5 = _has;
28643
+ var has$9 = _has;
28174
28644
  var toIObject$5 = _toIobject;
28175
28645
  var arrayIndexOf = _arrayIncludes(false);
28176
28646
  var IE_PROTO$1 = _sharedKey('IE_PROTO');
@@ -28180,9 +28650,9 @@ var _objectKeysInternal = function (object, names) {
28180
28650
  var i = 0;
28181
28651
  var result = [];
28182
28652
  var key;
28183
- for (key in O) if (key != IE_PROTO$1) has$5(O, key) && result.push(key);
28653
+ for (key in O) if (key != IE_PROTO$1) has$9(O, key) && result.push(key);
28184
28654
  // Don't enum bug & hidden keys
28185
- while (names.length > i) if (has$5(O, key = names[i++])) {
28655
+ while (names.length > i) if (has$9(O, key = names[i++])) {
28186
28656
  ~arrayIndexOf(result, key) || result.push(key);
28187
28657
  }
28188
28658
  return result;
@@ -28307,11 +28777,11 @@ var $exports = _wks.exports = function (name) {
28307
28777
  $exports.store = store;
28308
28778
 
28309
28779
  var def = require_objectDp().f;
28310
- var has$4 = _has;
28780
+ var has$8 = _has;
28311
28781
  var TAG = _wks.exports('toStringTag');
28312
28782
 
28313
28783
  var _setToStringTag = function (it, tag, stat) {
28314
- if (it && !has$4(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
28784
+ if (it && !has$8(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
28315
28785
  };
28316
28786
 
28317
28787
  var create$2 = require_objectCreate();
@@ -28334,14 +28804,14 @@ var _toObject = function (it) {
28334
28804
  };
28335
28805
 
28336
28806
  // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
28337
- var has$3 = _has;
28807
+ var has$7 = _has;
28338
28808
  var toObject$2 = _toObject;
28339
28809
  var IE_PROTO = _sharedKey('IE_PROTO');
28340
28810
  var ObjectProto$1 = Object.prototype;
28341
28811
 
28342
28812
  var _objectGpo = Object.getPrototypeOf || function (O) {
28343
28813
  O = toObject$2(O);
28344
- if (has$3(O, IE_PROTO)) return O[IE_PROTO];
28814
+ if (has$7(O, IE_PROTO)) return O[IE_PROTO];
28345
28815
  if (typeof O.constructor == 'function' && O instanceof O.constructor) {
28346
28816
  return O.constructor.prototype;
28347
28817
  } return O instanceof Object ? ObjectProto$1 : null;
@@ -28501,7 +28971,7 @@ var _meta = {exports: {}};
28501
28971
 
28502
28972
  var META$1 = _uid('meta');
28503
28973
  var isObject$2 = _isObject;
28504
- var has$2 = _has;
28974
+ var has$6 = _has;
28505
28975
  var setDesc = require_objectDp().f;
28506
28976
  var id = 0;
28507
28977
  var isExtensible = Object.isExtensible || function () {
@@ -28519,7 +28989,7 @@ var setMeta = function (it) {
28519
28989
  var fastKey = function (it, create) {
28520
28990
  // return primitive with prefix
28521
28991
  if (!isObject$2(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
28522
- if (!has$2(it, META$1)) {
28992
+ if (!has$6(it, META$1)) {
28523
28993
  // can't set metadata to uncaught frozen object
28524
28994
  if (!isExtensible(it)) return 'F';
28525
28995
  // not necessary to add metadata
@@ -28530,7 +29000,7 @@ var fastKey = function (it, create) {
28530
29000
  } return it[META$1].i;
28531
29001
  };
28532
29002
  var getWeak = function (it, create) {
28533
- if (!has$2(it, META$1)) {
29003
+ if (!has$6(it, META$1)) {
28534
29004
  // can't set metadata to uncaught frozen object
28535
29005
  if (!isExtensible(it)) return true;
28536
29006
  // not necessary to add metadata
@@ -28542,7 +29012,7 @@ var getWeak = function (it, create) {
28542
29012
  };
28543
29013
  // add metadata on freeze-family methods calling
28544
29014
  var onFreeze = function (it) {
28545
- if (FREEZE && meta.NEED && isExtensible(it) && !has$2(it, META$1)) setMeta(it);
29015
+ if (FREEZE && meta.NEED && isExtensible(it) && !has$6(it, META$1)) setMeta(it);
28546
29016
  return it;
28547
29017
  };
28548
29018
  var meta = _meta.exports = {
@@ -28580,11 +29050,11 @@ function require_objectPie () {
28580
29050
 
28581
29051
  // all enumerable object keys, includes symbols
28582
29052
  var getKeys = _objectKeys;
28583
- var gOPS = _objectGops;
29053
+ var gOPS$1 = _objectGops;
28584
29054
  var pIE$1 = require_objectPie();
28585
29055
  var _enumKeys = function (it) {
28586
29056
  var result = getKeys(it);
28587
- var getSymbols = gOPS.f;
29057
+ var getSymbols = gOPS$1.f;
28588
29058
  if (getSymbols) {
28589
29059
  var symbols = getSymbols(it);
28590
29060
  var isEnum = pIE$1.f;
@@ -28645,7 +29115,7 @@ var pIE = require_objectPie();
28645
29115
  var createDesc$1 = _propertyDesc;
28646
29116
  var toIObject$2 = _toIobject;
28647
29117
  var toPrimitive$1 = _toPrimitive;
28648
- var has$1 = _has;
29118
+ var has$5 = _has;
28649
29119
  var IE8_DOM_DEFINE = _ie8DomDefine;
28650
29120
  var gOPD$1 = Object.getOwnPropertyDescriptor;
28651
29121
 
@@ -28655,12 +29125,12 @@ _objectGopd.f = require_descriptors() ? gOPD$1 : function getOwnPropertyDescript
28655
29125
  if (IE8_DOM_DEFINE) try {
28656
29126
  return gOPD$1(O, P);
28657
29127
  } catch (e) { /* empty */ }
28658
- if (has$1(O, P)) return createDesc$1(!pIE.f.call(O, P), O[P]);
29128
+ if (has$5(O, P)) return createDesc$1(!pIE.f.call(O, P), O[P]);
28659
29129
  };
28660
29130
 
28661
29131
  // ECMAScript 6 symbols shim
28662
29132
  var global$1 = _global.exports;
28663
- var has = _has;
29133
+ var has$4 = _has;
28664
29134
  var DESCRIPTORS = require_descriptors();
28665
29135
  var $export$3 = _export;
28666
29136
  var redefine = _redefine.exports;
@@ -28673,7 +29143,7 @@ var wks = _wks.exports;
28673
29143
  var wksExt = _wksExt;
28674
29144
  var wksDefine = _wksDefine;
28675
29145
  var enumKeys = _enumKeys;
28676
- var isArray = _isArray;
29146
+ var isArray$4 = _isArray;
28677
29147
  var anObject = _anObject;
28678
29148
  var isObject$1 = _isObject;
28679
29149
  var toObject$1 = _toObject;
@@ -28723,7 +29193,7 @@ var wrap = function (tag) {
28723
29193
  return sym;
28724
29194
  };
28725
29195
 
28726
- var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
29196
+ var isSymbol$1 = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
28727
29197
  return typeof it == 'symbol';
28728
29198
  } : function (it) {
28729
29199
  return it instanceof $Symbol;
@@ -28734,12 +29204,12 @@ var $defineProperty = function defineProperty(it, key, D) {
28734
29204
  anObject(it);
28735
29205
  key = toPrimitive(key, true);
28736
29206
  anObject(D);
28737
- if (has(AllSymbols, key)) {
29207
+ if (has$4(AllSymbols, key)) {
28738
29208
  if (!D.enumerable) {
28739
- if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));
29209
+ if (!has$4(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));
28740
29210
  it[HIDDEN][key] = true;
28741
29211
  } else {
28742
- if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
29212
+ if (has$4(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
28743
29213
  D = _create$1(D, { enumerable: createDesc(0, false) });
28744
29214
  } return setSymbolDesc(it, key, D);
28745
29215
  } return dP(it, key, D);
@@ -28758,15 +29228,15 @@ var $create = function create(it, P) {
28758
29228
  };
28759
29229
  var $propertyIsEnumerable = function propertyIsEnumerable(key) {
28760
29230
  var E = isEnum.call(this, key = toPrimitive(key, true));
28761
- if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;
28762
- return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
29231
+ if (this === ObjectProto && has$4(AllSymbols, key) && !has$4(OPSymbols, key)) return false;
29232
+ return E || !has$4(this, key) || !has$4(AllSymbols, key) || has$4(this, HIDDEN) && this[HIDDEN][key] ? E : true;
28763
29233
  };
28764
29234
  var $getOwnPropertyDescriptor$1 = function getOwnPropertyDescriptor(it, key) {
28765
29235
  it = toIObject$1(it);
28766
29236
  key = toPrimitive(key, true);
28767
- if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;
29237
+ if (it === ObjectProto && has$4(AllSymbols, key) && !has$4(OPSymbols, key)) return;
28768
29238
  var D = gOPD(it, key);
28769
- if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
29239
+ if (D && has$4(AllSymbols, key) && !(has$4(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
28770
29240
  return D;
28771
29241
  };
28772
29242
  var $getOwnPropertyNames = function getOwnPropertyNames(it) {
@@ -28775,7 +29245,7 @@ var $getOwnPropertyNames = function getOwnPropertyNames(it) {
28775
29245
  var i = 0;
28776
29246
  var key;
28777
29247
  while (names.length > i) {
28778
- if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);
29248
+ if (!has$4(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);
28779
29249
  } return result;
28780
29250
  };
28781
29251
  var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
@@ -28785,7 +29255,7 @@ var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
28785
29255
  var i = 0;
28786
29256
  var key;
28787
29257
  while (names.length > i) {
28788
- if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);
29258
+ if (has$4(AllSymbols, key = names[i++]) && (IS_OP ? has$4(ObjectProto, key) : true)) result.push(AllSymbols[key]);
28789
29259
  } return result;
28790
29260
  };
28791
29261
 
@@ -28796,7 +29266,7 @@ if (!USE_NATIVE) {
28796
29266
  var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
28797
29267
  var $set = function (value) {
28798
29268
  if (this === ObjectProto) $set.call(OPSymbols, value);
28799
- if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
29269
+ if (has$4(this, HIDDEN) && has$4(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
28800
29270
  setSymbolDesc(this, tag, createDesc(1, value));
28801
29271
  };
28802
29272
  if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });
@@ -28833,13 +29303,13 @@ for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k
28833
29303
  $export$3($export$3.S + $export$3.F * !USE_NATIVE, 'Symbol', {
28834
29304
  // 19.4.2.1 Symbol.for(key)
28835
29305
  'for': function (key) {
28836
- return has(SymbolRegistry, key += '')
29306
+ return has$4(SymbolRegistry, key += '')
28837
29307
  ? SymbolRegistry[key]
28838
29308
  : SymbolRegistry[key] = $Symbol(key);
28839
29309
  },
28840
29310
  // 19.4.2.5 Symbol.keyFor(sym)
28841
29311
  keyFor: function keyFor(sym) {
28842
- if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');
29312
+ if (!isSymbol$1(sym)) throw TypeError(sym + ' is not a symbol!');
28843
29313
  for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;
28844
29314
  },
28845
29315
  useSetter: function () { setter = true; },
@@ -28885,10 +29355,10 @@ $JSON && $export$3($export$3.S + $export$3.F * (!USE_NATIVE || $fails(function (
28885
29355
  var replacer, $replacer;
28886
29356
  while (arguments.length > i) args.push(arguments[i++]);
28887
29357
  $replacer = replacer = args[1];
28888
- if (!isObject$1(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
28889
- if (!isArray(replacer)) replacer = function (key, value) {
29358
+ if (!isObject$1(replacer) && it === undefined || isSymbol$1(it)) return; // IE8 returns string on undefined
29359
+ if (!isArray$4(replacer)) replacer = function (key, value) {
28890
29360
  if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
28891
- if (!isSymbol(value)) return value;
29361
+ if (!isSymbol$1(value)) return value;
28892
29362
  };
28893
29363
  args[1] = replacer;
28894
29364
  return _stringify.apply($JSON, args);
@@ -29556,6 +30026,15 @@ ReactDragListView.DragColumn = ReactDragColumnView;
29556
30026
 
29557
30027
  // build node version: 11.15.0
29558
30028
 
30029
+ var URL_SORT_ORDERS = {
30030
+ ascend: "asc",
30031
+ descend: "desc"
30032
+ };
30033
+ var TABLE_SORT_ORDERS = {
30034
+ asc: "ascend",
30035
+ desc: "descend"
30036
+ };
30037
+
29559
30038
  var reactResizable = {exports: {}};
29560
30039
 
29561
30040
  var Resizable$2 = {};
@@ -29757,9 +30236,9 @@ function _getRequireWildcardCache$3(nodeInterop) { if (typeof WeakMap !== "funct
29757
30236
 
29758
30237
  function _interopRequireWildcard$5(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof$1(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache$3(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
29759
30238
 
29760
- function ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
30239
+ function ownKeys$7(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
29761
30240
 
29762
- function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$6(Object(source), !0).forEach(function (key) { _defineProperty$4(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
30241
+ function _objectSpread$7(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$7(Object(source), !0).forEach(function (key) { _defineProperty$4(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$7(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
29763
30242
 
29764
30243
  function _defineProperty$4(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
29765
30244
 
@@ -29820,7 +30299,7 @@ function addEvent(el
29820
30299
  {
29821
30300
  if (!el) return;
29822
30301
 
29823
- var options = _objectSpread$6({
30302
+ var options = _objectSpread$7({
29824
30303
  capture: true
29825
30304
  }, inputOptions); // $FlowIgnore[method-unbinding]
29826
30305
 
@@ -29848,7 +30327,7 @@ function removeEvent(el
29848
30327
  {
29849
30328
  if (!el) return;
29850
30329
 
29851
- var options = _objectSpread$6({
30330
+ var options = _objectSpread$7({
29852
30331
  capture: true
29853
30332
  }, inputOptions); // $FlowIgnore[method-unbinding]
29854
30333
 
@@ -31339,25 +31818,25 @@ cjs.exports = Draggable;
31339
31818
  cjs.exports.default = Draggable;
31340
31819
  cjs.exports.DraggableCore = DraggableCore;
31341
31820
 
31342
- var utils = {};
31821
+ var utils$3 = {};
31343
31822
 
31344
- utils.__esModule = true;
31345
- utils.cloneElement = cloneElement;
31823
+ utils$3.__esModule = true;
31824
+ utils$3.cloneElement = cloneElement;
31346
31825
 
31347
31826
  var _react$2 = _interopRequireDefault$5(React__default["default"]);
31348
31827
 
31349
31828
  function _interopRequireDefault$5(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
31350
31829
 
31351
- function ownKeys$5(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
31830
+ function ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
31352
31831
 
31353
- function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$5(Object(source), true).forEach(function (key) { _defineProperty$2(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$5(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
31832
+ function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$6(Object(source), true).forEach(function (key) { _defineProperty$2(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
31354
31833
 
31355
31834
  function _defineProperty$2(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
31356
31835
 
31357
31836
  // React.addons.cloneWithProps look-alike that merges style & className.
31358
31837
  function cloneElement(element, props) {
31359
31838
  if (props.style && element.props.style) {
31360
- props.style = _objectSpread$5(_objectSpread$5({}, element.props.style), props.style);
31839
+ props.style = _objectSpread$6(_objectSpread$6({}, element.props.style), props.style);
31361
31840
  }
31362
31841
 
31363
31842
  if (props.className && element.props.className) {
@@ -31485,7 +31964,7 @@ var React$3 = _interopRequireWildcard$3(React__default["default"]);
31485
31964
 
31486
31965
  var _reactDraggable = cjs.exports;
31487
31966
 
31488
- var _utils = utils;
31967
+ var _utils = utils$3;
31489
31968
 
31490
31969
  var _propTypes$1 = propTypes;
31491
31970
 
@@ -31499,9 +31978,9 @@ function _extends$1() { _extends$1 = Object.assign || function (target) { for (v
31499
31978
 
31500
31979
  function _objectWithoutPropertiesLoose$1(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
31501
31980
 
31502
- function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
31981
+ function ownKeys$5(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
31503
31982
 
31504
- function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$4(Object(source), true).forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
31983
+ function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$5(Object(source), true).forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$5(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
31505
31984
 
31506
31985
  function _defineProperty$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
31507
31986
 
@@ -31691,7 +32170,7 @@ var Resizable$1 = /*#__PURE__*/function (_React$Component) {
31691
32170
 
31692
32171
  var isDOMElement = typeof handle.type === 'string';
31693
32172
 
31694
- var props = _objectSpread$4({
32173
+ var props = _objectSpread$5({
31695
32174
  ref: ref
31696
32175
  }, isDOMElement ? {} : {
31697
32176
  handleAxis: handleAxis
@@ -31728,7 +32207,7 @@ var Resizable$1 = /*#__PURE__*/function (_React$Component) {
31728
32207
  // 2. One or more draggable handles.
31729
32208
 
31730
32209
 
31731
- return (0, _utils.cloneElement)(children, _objectSpread$4(_objectSpread$4({}, p), {}, {
32210
+ return (0, _utils.cloneElement)(children, _objectSpread$5(_objectSpread$5({}, p), {}, {
31732
32211
  className: (className ? className + " " : '') + "react-resizable",
31733
32212
  children: [].concat(children.props.children, resizeHandles.map(function (handleAxis) {
31734
32213
  var _this3$handleRefs$han;
@@ -31784,9 +32263,9 @@ function _interopRequireWildcard$2(obj, nodeInterop) { if (!nodeInterop && obj &
31784
32263
 
31785
32264
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
31786
32265
 
31787
- function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
32266
+ function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
31788
32267
 
31789
- function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$3(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
32268
+ function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$4(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
31790
32269
 
31791
32270
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
31792
32271
 
@@ -31885,7 +32364,7 @@ var ResizableBox = /*#__PURE__*/function (_React$Component) {
31885
32364
  transformScale: transformScale,
31886
32365
  width: this.state.width
31887
32366
  }, /*#__PURE__*/React$2.createElement("div", _extends({}, props, {
31888
- style: _objectSpread$3(_objectSpread$3({}, style), {}, {
32367
+ style: _objectSpread$4(_objectSpread$4({}, style), {}, {
31889
32368
  width: this.state.width + 'px',
31890
32369
  height: this.state.height + 'px'
31891
32370
  })
@@ -31896,7 +32375,7 @@ var ResizableBox = /*#__PURE__*/function (_React$Component) {
31896
32375
  }(React$2.Component);
31897
32376
 
31898
32377
  ResizableBox$1.default = ResizableBox;
31899
- ResizableBox.propTypes = _objectSpread$3(_objectSpread$3({}, _propTypes2.resizableProps), {}, {
32378
+ ResizableBox.propTypes = _objectSpread$4(_objectSpread$4({}, _propTypes2.resizableProps), {}, {
31900
32379
  children: _propTypes.default.element
31901
32380
  });
31902
32381
 
@@ -32004,30 +32483,34 @@ var useReorderColumns = function useReorderColumns(_ref) {
32004
32483
  };
32005
32484
  };
32006
32485
 
32007
- function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
32008
- function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
32486
+ function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
32487
+ function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
32009
32488
  var useResizableColumns = function useResizableColumns(_ref) {
32010
32489
  var columns = _ref.columns,
32011
32490
  setColumns = _ref.setColumns,
32012
32491
  isEnabled = _ref.isEnabled,
32013
32492
  onColumnUpdate = _ref.onColumnUpdate;
32014
- if (!isEnabled) return {
32015
- components: {},
32016
- columns: columns
32017
- };
32493
+ if (!isEnabled) {
32494
+ return {
32495
+ components: {},
32496
+ columns: columns
32497
+ };
32498
+ }
32018
32499
  var handleResize = function handleResize(index) {
32019
32500
  return function (_, _ref2) {
32020
32501
  var size = _ref2.size;
32021
32502
  var nextColumns = _toConsumableArray$1(columns);
32022
- nextColumns[index] = _objectSpread$2(_objectSpread$2({}, nextColumns[index]), {}, {
32503
+ nextColumns[index] = _objectSpread$3(_objectSpread$3({}, nextColumns[index]), {}, {
32023
32504
  width: size.width
32024
32505
  });
32025
32506
  setColumns(nextColumns);
32026
32507
  };
32027
32508
  };
32509
+
32510
+ // eslint-disable-next-line react-hooks/rules-of-hooks
32028
32511
  var computedColumnsData = React$5.useMemo(function () {
32029
32512
  return columns.map(function (col, index) {
32030
- var modifiedColumn = _objectSpread$2(_objectSpread$2({}, col), {}, {
32513
+ var modifiedColumn = _objectSpread$3(_objectSpread$3({}, col), {}, {
32031
32514
  onHeaderCell: function onHeaderCell(column) {
32032
32515
  return {
32033
32516
  width: column.width,
@@ -32049,208 +32532,2334 @@ var useResizableColumns = function useResizableColumns(_ref) {
32049
32532
  };
32050
32533
  };
32051
32534
 
32052
- var _excluded$4 = ["allowRowClick", "enableColumnResize", "enableColumnReorder", "className", "columnData", "currentPageNumber", "defaultPageSize", "handlePageChange", "loading", "onRowClick", "onRowSelect", "rowData", "totalCount", "selectedRowKeys", "fixedHeight", "paginationProps", "scroll", "rowSelection", "shouldDynamicallyRenderRowSize", "bordered", "onColumnUpdate", "components"];
32053
- function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
32054
- function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
32055
- var TABLE_PAGINATION_HEIGHT = 64;
32056
- var TABLE_DEFAULT_HEADER_HEIGHT = 40;
32057
- var TABLE_ROW_HEIGHT = 52;
32058
- var Table = function Table(_ref) {
32059
- var _ref$allowRowClick = _ref.allowRowClick,
32060
- allowRowClick = _ref$allowRowClick === void 0 ? true : _ref$allowRowClick,
32061
- _ref$enableColumnResi = _ref.enableColumnResize,
32062
- enableColumnResize = _ref$enableColumnResi === void 0 ? false : _ref$enableColumnResi,
32063
- _ref$enableColumnReor = _ref.enableColumnReorder,
32064
- enableColumnReorder = _ref$enableColumnReor === void 0 ? false : _ref$enableColumnReor,
32065
- _ref$className = _ref.className,
32066
- className = _ref$className === void 0 ? "" : _ref$className,
32067
- _ref$columnData = _ref.columnData,
32068
- columnData = _ref$columnData === void 0 ? [] : _ref$columnData,
32069
- _ref$currentPageNumbe = _ref.currentPageNumber,
32070
- currentPageNumber = _ref$currentPageNumbe === void 0 ? 1 : _ref$currentPageNumbe,
32071
- _ref$defaultPageSize = _ref.defaultPageSize,
32072
- defaultPageSize = _ref$defaultPageSize === void 0 ? 30 : _ref$defaultPageSize,
32073
- _ref$handlePageChange = _ref.handlePageChange,
32074
- handlePageChange = _ref$handlePageChange === void 0 ? noop$2 : _ref$handlePageChange,
32075
- _ref$loading = _ref.loading,
32076
- loading = _ref$loading === void 0 ? false : _ref$loading,
32077
- onRowClick = _ref.onRowClick,
32078
- onRowSelect = _ref.onRowSelect,
32079
- _ref$rowData = _ref.rowData,
32080
- rowData = _ref$rowData === void 0 ? [] : _ref$rowData,
32081
- _ref$totalCount = _ref.totalCount,
32082
- totalCount = _ref$totalCount === void 0 ? 0 : _ref$totalCount,
32083
- _ref$selectedRowKeys = _ref.selectedRowKeys,
32084
- selectedRowKeys = _ref$selectedRowKeys === void 0 ? [] : _ref$selectedRowKeys,
32085
- _ref$fixedHeight = _ref.fixedHeight,
32086
- fixedHeight = _ref$fixedHeight === void 0 ? false : _ref$fixedHeight,
32087
- _ref$paginationProps = _ref.paginationProps,
32088
- paginationProps = _ref$paginationProps === void 0 ? {} : _ref$paginationProps,
32089
- scroll = _ref.scroll,
32090
- rowSelection = _ref.rowSelection,
32091
- _ref$shouldDynamicall = _ref.shouldDynamicallyRenderRowSize,
32092
- shouldDynamicallyRenderRowSize = _ref$shouldDynamicall === void 0 ? false : _ref$shouldDynamicall,
32093
- _ref$bordered = _ref.bordered,
32094
- bordered = _ref$bordered === void 0 ? true : _ref$bordered,
32095
- _ref$onColumnUpdate = _ref.onColumnUpdate,
32096
- onColumnUpdate = _ref$onColumnUpdate === void 0 ? noop$2 : _ref$onColumnUpdate,
32097
- _ref$components = _ref.components,
32098
- components = _ref$components === void 0 ? {} : _ref$components,
32099
- otherProps = _objectWithoutProperties$1(_ref, _excluded$4);
32100
- var _useState = React$5.useState(null),
32101
- _useState2 = _slicedToArray$2(_useState, 2),
32102
- containerHeight = _useState2[0],
32103
- setContainerHeight = _useState2[1];
32104
- var _useState3 = React$5.useState(TABLE_DEFAULT_HEADER_HEIGHT),
32105
- _useState4 = _slicedToArray$2(_useState3, 2),
32106
- headerHeight = _useState4[0],
32107
- setHeaderHeight = _useState4[1];
32108
- var _useState5 = React$5.useState(columnData),
32109
- _useState6 = _slicedToArray$2(_useState5, 2),
32110
- columns = _useState6[0],
32111
- setColumns = _useState6[1];
32112
- var headerRef = React$5.useRef();
32113
- var resizeObserver = React$5.useRef(new ResizeObserver(function (_ref2) {
32114
- var _ref3 = _slicedToArray$2(_ref2, 1),
32115
- height = _ref3[0].contentRect.height;
32116
- return setContainerHeight(height);
32117
- }));
32118
- var tableRef = React$5.useCallback(function (table) {
32119
- if (fixedHeight) {
32120
- if (table !== null) {
32121
- resizeObserver.current.observe(table === null || table === void 0 ? void 0 : table.parentNode);
32122
- } else {
32123
- if (resizeObserver.current) resizeObserver.current.disconnect();
32124
- }
32125
- }
32126
- }, [resizeObserver.current, fixedHeight]);
32127
- var handleHeaderClasses = function handleHeaderClasses() {
32128
- var _headerRef$current;
32129
- Object.values((_headerRef$current = headerRef.current) === null || _headerRef$current === void 0 ? void 0 : _headerRef$current.children).forEach(function (child) {
32130
- child.setAttribute("data-text-align", child.style["text-align"]);
32131
- });
32132
- };
32133
- useTimeout(function () {
32134
- var headerHeight = headerRef.current ? headerRef.current.offsetHeight : TABLE_DEFAULT_HEADER_HEIGHT;
32135
- setHeaderHeight(headerHeight);
32136
- handleHeaderClasses();
32137
- }, 0);
32138
- var _useReorderColumns = useReorderColumns({
32139
- isEnabled: enableColumnReorder,
32140
- columns: columns,
32141
- setColumns: setColumns,
32142
- onColumnUpdate: onColumnUpdate,
32143
- rowSelection: rowSelection
32144
- }),
32145
- dragProps = _useReorderColumns.dragProps,
32146
- columnsWithReorderProps = _useReorderColumns.columns;
32147
- var _useResizableColumns = useResizableColumns({
32148
- isEnabled: enableColumnResize,
32149
- columns: columnsWithReorderProps,
32150
- setColumns: setColumns,
32151
- onColumnUpdate: onColumnUpdate
32152
- }),
32153
- curatedColumnsData = _useResizableColumns.columns;
32154
- var locale = {
32155
- emptyText: /*#__PURE__*/React__default["default"].createElement(Typography, {
32156
- style: "body2"
32157
- }, "No Data")
32158
- };
32159
- var isPaginationVisible = rowData.length > defaultPageSize;
32160
- var rowSelectionProps = false;
32161
- if (rowSelection) {
32162
- rowSelectionProps = _objectSpread$1(_objectSpread$1({
32163
- type: "checkbox"
32164
- }, rowSelection), {}, {
32165
- onChange: function onChange(selectedRowKeys, selectedRows) {
32166
- return onRowSelect && onRowSelect(selectedRowKeys, selectedRows);
32167
- },
32168
- selectedRowKeys: selectedRowKeys
32169
- });
32170
- }
32171
- var reordableHeader = {
32172
- header: {
32173
- cell: enableColumnResize ? enableColumnReorder ? HeaderCell : ResizableHeaderCell : enableColumnReorder ? ReorderableHeaderCell : null
32174
- }
32175
- };
32176
- var componentOverrides = _objectSpread$1(_objectSpread$1({}, components), reordableHeader);
32177
- var calculateTableContainerHeight = function calculateTableContainerHeight() {
32178
- return containerHeight - headerHeight - (isPaginationVisible ? TABLE_PAGINATION_HEIGHT : 0);
32179
- };
32180
- var itemRender = function itemRender(_, type, originalElement) {
32181
- if (type === "prev") {
32182
- return /*#__PURE__*/React__default["default"].createElement(Button, {
32183
- className: "",
32184
- icon: neetoIcons.Left,
32185
- style: "text"
32186
- });
32187
- }
32188
- if (type === "next") {
32189
- return /*#__PURE__*/React__default["default"].createElement(Button, {
32190
- className: "",
32191
- icon: neetoIcons.Right,
32192
- style: "text"
32193
- });
32535
+ /* eslint complexity: [2, 18], max-statements: [2, 33] */
32536
+ var shams = function hasSymbols() {
32537
+ if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
32538
+ if (typeof Symbol.iterator === 'symbol') { return true; }
32539
+
32540
+ var obj = {};
32541
+ var sym = Symbol('test');
32542
+ var symObj = Object(sym);
32543
+ if (typeof sym === 'string') { return false; }
32544
+
32545
+ if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
32546
+ if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
32547
+
32548
+ // temp disabled per https://github.com/ljharb/object.assign/issues/17
32549
+ // if (sym instanceof Symbol) { return false; }
32550
+ // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
32551
+ // if (!(symObj instanceof Symbol)) { return false; }
32552
+
32553
+ // if (typeof Symbol.prototype.toString !== 'function') { return false; }
32554
+ // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
32555
+
32556
+ var symVal = 42;
32557
+ obj[sym] = symVal;
32558
+ for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
32559
+ if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
32560
+
32561
+ if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
32562
+
32563
+ var syms = Object.getOwnPropertySymbols(obj);
32564
+ if (syms.length !== 1 || syms[0] !== sym) { return false; }
32565
+
32566
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
32567
+
32568
+ if (typeof Object.getOwnPropertyDescriptor === 'function') {
32569
+ var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
32570
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
32571
+ }
32572
+
32573
+ return true;
32574
+ };
32575
+
32576
+ var origSymbol = typeof Symbol !== 'undefined' && Symbol;
32577
+ var hasSymbolSham = shams;
32578
+
32579
+ var hasSymbols$1 = function hasNativeSymbols() {
32580
+ if (typeof origSymbol !== 'function') { return false; }
32581
+ if (typeof Symbol !== 'function') { return false; }
32582
+ if (typeof origSymbol('foo') !== 'symbol') { return false; }
32583
+ if (typeof Symbol('bar') !== 'symbol') { return false; }
32584
+
32585
+ return hasSymbolSham();
32586
+ };
32587
+
32588
+ /* eslint no-invalid-this: 1 */
32589
+
32590
+ var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
32591
+ var slice = Array.prototype.slice;
32592
+ var toStr$1 = Object.prototype.toString;
32593
+ var funcType = '[object Function]';
32594
+
32595
+ var implementation$1 = function bind(that) {
32596
+ var target = this;
32597
+ if (typeof target !== 'function' || toStr$1.call(target) !== funcType) {
32598
+ throw new TypeError(ERROR_MESSAGE + target);
32194
32599
  }
32195
- if (type === "jump-prev") {
32196
- return /*#__PURE__*/React__default["default"].createElement(Button, {
32197
- className: "",
32198
- icon: neetoIcons.MenuHorizontal,
32199
- style: "text"
32200
- });
32600
+ var args = slice.call(arguments, 1);
32601
+
32602
+ var bound;
32603
+ var binder = function () {
32604
+ if (this instanceof bound) {
32605
+ var result = target.apply(
32606
+ this,
32607
+ args.concat(slice.call(arguments))
32608
+ );
32609
+ if (Object(result) === result) {
32610
+ return result;
32611
+ }
32612
+ return this;
32613
+ } else {
32614
+ return target.apply(
32615
+ that,
32616
+ args.concat(slice.call(arguments))
32617
+ );
32618
+ }
32619
+ };
32620
+
32621
+ var boundLength = Math.max(0, target.length - args.length);
32622
+ var boundArgs = [];
32623
+ for (var i = 0; i < boundLength; i++) {
32624
+ boundArgs.push('$' + i);
32201
32625
  }
32202
- if (type === "jump-next") {
32203
- return /*#__PURE__*/React__default["default"].createElement(Button, {
32204
- className: "",
32205
- icon: neetoIcons.MenuHorizontal,
32206
- style: "text"
32207
- });
32626
+
32627
+ bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
32628
+
32629
+ if (target.prototype) {
32630
+ var Empty = function Empty() {};
32631
+ Empty.prototype = target.prototype;
32632
+ bound.prototype = new Empty();
32633
+ Empty.prototype = null;
32208
32634
  }
32209
- return originalElement;
32210
- };
32211
- var calculateRowsPerPage = function calculateRowsPerPage() {
32212
- var viewportHeight = window.innerHeight;
32213
- var rowsPerPage = Math.floor((viewportHeight - TABLE_PAGINATION_HEIGHT) / TABLE_ROW_HEIGHT * 3);
32214
- return Math.ceil(rowsPerPage / 10) * 10;
32215
- };
32216
- var calculatePageSizeOptions = function calculatePageSizeOptions() {
32217
- var rowsPerPage = shouldDynamicallyRenderRowSize ? calculateRowsPerPage() : defaultPageSize;
32218
- var pageSizeOptions = _toConsumableArray$1(Array(5).keys()).map(function (i) {
32219
- return (i + 1) * rowsPerPage;
32220
- });
32221
- return pageSizeOptions;
32222
- };
32223
- var renderTable = function renderTable() {
32224
- return /*#__PURE__*/React__default["default"].createElement(_Table__default["default"], _extends$4({
32225
- bordered: bordered,
32226
- columns: curatedColumnsData,
32227
- components: componentOverrides,
32228
- dataSource: rowData,
32229
- loading: loading,
32230
- locale: locale,
32231
- ref: tableRef,
32232
- rowKey: "id",
32233
- rowSelection: rowSelectionProps,
32234
- showSorterTooltip: false,
32235
- pagination: _objectSpread$1(_objectSpread$1({
32236
- hideOnSinglePage: true
32237
- }, paginationProps), {}, {
32238
- showSizeChanger: false,
32239
- total: totalCount !== null && totalCount !== void 0 ? totalCount : 0,
32240
- current: currentPageNumber,
32241
- defaultPageSize: shouldDynamicallyRenderRowSize ? calculateRowsPerPage() : defaultPageSize,
32242
- pageSizeOptions: calculatePageSizeOptions(),
32243
- onChange: handlePageChange,
32244
- itemRender: itemRender
32245
- }),
32246
- rowClassName: classnames$1("neeto-ui-table--row", {
32247
- "neeto-ui-table--row_hover": allowRowClick
32248
- }, [className]),
32249
- scroll: _objectSpread$1({
32250
- x: "max-content",
32251
- y: calculateTableContainerHeight()
32635
+
32636
+ return bound;
32637
+ };
32638
+
32639
+ var implementation = implementation$1;
32640
+
32641
+ var functionBind = Function.prototype.bind || implementation;
32642
+
32643
+ var bind$1 = functionBind;
32644
+
32645
+ var src = bind$1.call(Function.call, Object.prototype.hasOwnProperty);
32646
+
32647
+ var undefined$1;
32648
+
32649
+ var $SyntaxError = SyntaxError;
32650
+ var $Function = Function;
32651
+ var $TypeError$1 = TypeError;
32652
+
32653
+ // eslint-disable-next-line consistent-return
32654
+ var getEvalledConstructor = function (expressionSyntax) {
32655
+ try {
32656
+ return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
32657
+ } catch (e) {}
32658
+ };
32659
+
32660
+ var $gOPD = Object.getOwnPropertyDescriptor;
32661
+ if ($gOPD) {
32662
+ try {
32663
+ $gOPD({}, '');
32664
+ } catch (e) {
32665
+ $gOPD = null; // this is IE 8, which has a broken gOPD
32666
+ }
32667
+ }
32668
+
32669
+ var throwTypeError = function () {
32670
+ throw new $TypeError$1();
32671
+ };
32672
+ var ThrowTypeError = $gOPD
32673
+ ? (function () {
32674
+ try {
32675
+ // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
32676
+ arguments.callee; // IE 8 does not throw here
32677
+ return throwTypeError;
32678
+ } catch (calleeThrows) {
32679
+ try {
32680
+ // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
32681
+ return $gOPD(arguments, 'callee').get;
32682
+ } catch (gOPDthrows) {
32683
+ return throwTypeError;
32684
+ }
32685
+ }
32686
+ }())
32687
+ : throwTypeError;
32688
+
32689
+ var hasSymbols = hasSymbols$1();
32690
+
32691
+ var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
32692
+
32693
+ var needsEval = {};
32694
+
32695
+ var TypedArray = typeof Uint8Array === 'undefined' ? undefined$1 : getProto(Uint8Array);
32696
+
32697
+ var INTRINSICS = {
32698
+ '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
32699
+ '%Array%': Array,
32700
+ '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
32701
+ '%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined$1,
32702
+ '%AsyncFromSyncIteratorPrototype%': undefined$1,
32703
+ '%AsyncFunction%': needsEval,
32704
+ '%AsyncGenerator%': needsEval,
32705
+ '%AsyncGeneratorFunction%': needsEval,
32706
+ '%AsyncIteratorPrototype%': needsEval,
32707
+ '%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
32708
+ '%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
32709
+ '%Boolean%': Boolean,
32710
+ '%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
32711
+ '%Date%': Date,
32712
+ '%decodeURI%': decodeURI,
32713
+ '%decodeURIComponent%': decodeURIComponent,
32714
+ '%encodeURI%': encodeURI,
32715
+ '%encodeURIComponent%': encodeURIComponent,
32716
+ '%Error%': Error,
32717
+ '%eval%': eval, // eslint-disable-line no-eval
32718
+ '%EvalError%': EvalError,
32719
+ '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
32720
+ '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
32721
+ '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
32722
+ '%Function%': $Function,
32723
+ '%GeneratorFunction%': needsEval,
32724
+ '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
32725
+ '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
32726
+ '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
32727
+ '%isFinite%': isFinite,
32728
+ '%isNaN%': isNaN,
32729
+ '%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
32730
+ '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
32731
+ '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
32732
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
32733
+ '%Math%': Math,
32734
+ '%Number%': Number,
32735
+ '%Object%': Object,
32736
+ '%parseFloat%': parseFloat,
32737
+ '%parseInt%': parseInt,
32738
+ '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
32739
+ '%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
32740
+ '%RangeError%': RangeError,
32741
+ '%ReferenceError%': ReferenceError,
32742
+ '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
32743
+ '%RegExp%': RegExp,
32744
+ '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
32745
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
32746
+ '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
32747
+ '%String%': String,
32748
+ '%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined$1,
32749
+ '%Symbol%': hasSymbols ? Symbol : undefined$1,
32750
+ '%SyntaxError%': $SyntaxError,
32751
+ '%ThrowTypeError%': ThrowTypeError,
32752
+ '%TypedArray%': TypedArray,
32753
+ '%TypeError%': $TypeError$1,
32754
+ '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
32755
+ '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
32756
+ '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
32757
+ '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
32758
+ '%URIError%': URIError,
32759
+ '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
32760
+ '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
32761
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
32762
+ };
32763
+
32764
+ var doEval = function doEval(name) {
32765
+ var value;
32766
+ if (name === '%AsyncFunction%') {
32767
+ value = getEvalledConstructor('async function () {}');
32768
+ } else if (name === '%GeneratorFunction%') {
32769
+ value = getEvalledConstructor('function* () {}');
32770
+ } else if (name === '%AsyncGeneratorFunction%') {
32771
+ value = getEvalledConstructor('async function* () {}');
32772
+ } else if (name === '%AsyncGenerator%') {
32773
+ var fn = doEval('%AsyncGeneratorFunction%');
32774
+ if (fn) {
32775
+ value = fn.prototype;
32776
+ }
32777
+ } else if (name === '%AsyncIteratorPrototype%') {
32778
+ var gen = doEval('%AsyncGenerator%');
32779
+ if (gen) {
32780
+ value = getProto(gen.prototype);
32781
+ }
32782
+ }
32783
+
32784
+ INTRINSICS[name] = value;
32785
+
32786
+ return value;
32787
+ };
32788
+
32789
+ var LEGACY_ALIASES = {
32790
+ '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
32791
+ '%ArrayPrototype%': ['Array', 'prototype'],
32792
+ '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
32793
+ '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
32794
+ '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
32795
+ '%ArrayProto_values%': ['Array', 'prototype', 'values'],
32796
+ '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
32797
+ '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
32798
+ '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
32799
+ '%BooleanPrototype%': ['Boolean', 'prototype'],
32800
+ '%DataViewPrototype%': ['DataView', 'prototype'],
32801
+ '%DatePrototype%': ['Date', 'prototype'],
32802
+ '%ErrorPrototype%': ['Error', 'prototype'],
32803
+ '%EvalErrorPrototype%': ['EvalError', 'prototype'],
32804
+ '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
32805
+ '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
32806
+ '%FunctionPrototype%': ['Function', 'prototype'],
32807
+ '%Generator%': ['GeneratorFunction', 'prototype'],
32808
+ '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
32809
+ '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
32810
+ '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
32811
+ '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
32812
+ '%JSONParse%': ['JSON', 'parse'],
32813
+ '%JSONStringify%': ['JSON', 'stringify'],
32814
+ '%MapPrototype%': ['Map', 'prototype'],
32815
+ '%NumberPrototype%': ['Number', 'prototype'],
32816
+ '%ObjectPrototype%': ['Object', 'prototype'],
32817
+ '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
32818
+ '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
32819
+ '%PromisePrototype%': ['Promise', 'prototype'],
32820
+ '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
32821
+ '%Promise_all%': ['Promise', 'all'],
32822
+ '%Promise_reject%': ['Promise', 'reject'],
32823
+ '%Promise_resolve%': ['Promise', 'resolve'],
32824
+ '%RangeErrorPrototype%': ['RangeError', 'prototype'],
32825
+ '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
32826
+ '%RegExpPrototype%': ['RegExp', 'prototype'],
32827
+ '%SetPrototype%': ['Set', 'prototype'],
32828
+ '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
32829
+ '%StringPrototype%': ['String', 'prototype'],
32830
+ '%SymbolPrototype%': ['Symbol', 'prototype'],
32831
+ '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
32832
+ '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
32833
+ '%TypeErrorPrototype%': ['TypeError', 'prototype'],
32834
+ '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
32835
+ '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
32836
+ '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
32837
+ '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
32838
+ '%URIErrorPrototype%': ['URIError', 'prototype'],
32839
+ '%WeakMapPrototype%': ['WeakMap', 'prototype'],
32840
+ '%WeakSetPrototype%': ['WeakSet', 'prototype']
32841
+ };
32842
+
32843
+ var bind = functionBind;
32844
+ var hasOwn$1 = src;
32845
+ var $concat$1 = bind.call(Function.call, Array.prototype.concat);
32846
+ var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
32847
+ var $replace$1 = bind.call(Function.call, String.prototype.replace);
32848
+ var $strSlice = bind.call(Function.call, String.prototype.slice);
32849
+ var $exec = bind.call(Function.call, RegExp.prototype.exec);
32850
+
32851
+ /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
32852
+ var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
32853
+ var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
32854
+ var stringToPath = function stringToPath(string) {
32855
+ var first = $strSlice(string, 0, 1);
32856
+ var last = $strSlice(string, -1);
32857
+ if (first === '%' && last !== '%') {
32858
+ throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
32859
+ } else if (last === '%' && first !== '%') {
32860
+ throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
32861
+ }
32862
+ var result = [];
32863
+ $replace$1(string, rePropName, function (match, number, quote, subString) {
32864
+ result[result.length] = quote ? $replace$1(subString, reEscapeChar, '$1') : number || match;
32865
+ });
32866
+ return result;
32867
+ };
32868
+ /* end adaptation */
32869
+
32870
+ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
32871
+ var intrinsicName = name;
32872
+ var alias;
32873
+ if (hasOwn$1(LEGACY_ALIASES, intrinsicName)) {
32874
+ alias = LEGACY_ALIASES[intrinsicName];
32875
+ intrinsicName = '%' + alias[0] + '%';
32876
+ }
32877
+
32878
+ if (hasOwn$1(INTRINSICS, intrinsicName)) {
32879
+ var value = INTRINSICS[intrinsicName];
32880
+ if (value === needsEval) {
32881
+ value = doEval(intrinsicName);
32882
+ }
32883
+ if (typeof value === 'undefined' && !allowMissing) {
32884
+ throw new $TypeError$1('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
32885
+ }
32886
+
32887
+ return {
32888
+ alias: alias,
32889
+ name: intrinsicName,
32890
+ value: value
32891
+ };
32892
+ }
32893
+
32894
+ throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
32895
+ };
32896
+
32897
+ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
32898
+ if (typeof name !== 'string' || name.length === 0) {
32899
+ throw new $TypeError$1('intrinsic name must be a non-empty string');
32900
+ }
32901
+ if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
32902
+ throw new $TypeError$1('"allowMissing" argument must be a boolean');
32903
+ }
32904
+
32905
+ if ($exec(/^%?[^%]*%?$/, name) === null) {
32906
+ throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
32907
+ }
32908
+ var parts = stringToPath(name);
32909
+ var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
32910
+
32911
+ var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
32912
+ var intrinsicRealName = intrinsic.name;
32913
+ var value = intrinsic.value;
32914
+ var skipFurtherCaching = false;
32915
+
32916
+ var alias = intrinsic.alias;
32917
+ if (alias) {
32918
+ intrinsicBaseName = alias[0];
32919
+ $spliceApply(parts, $concat$1([0, 1], alias));
32920
+ }
32921
+
32922
+ for (var i = 1, isOwn = true; i < parts.length; i += 1) {
32923
+ var part = parts[i];
32924
+ var first = $strSlice(part, 0, 1);
32925
+ var last = $strSlice(part, -1);
32926
+ if (
32927
+ (
32928
+ (first === '"' || first === "'" || first === '`')
32929
+ || (last === '"' || last === "'" || last === '`')
32930
+ )
32931
+ && first !== last
32932
+ ) {
32933
+ throw new $SyntaxError('property names with quotes must have matching quotes');
32934
+ }
32935
+ if (part === 'constructor' || !isOwn) {
32936
+ skipFurtherCaching = true;
32937
+ }
32938
+
32939
+ intrinsicBaseName += '.' + part;
32940
+ intrinsicRealName = '%' + intrinsicBaseName + '%';
32941
+
32942
+ if (hasOwn$1(INTRINSICS, intrinsicRealName)) {
32943
+ value = INTRINSICS[intrinsicRealName];
32944
+ } else if (value != null) {
32945
+ if (!(part in value)) {
32946
+ if (!allowMissing) {
32947
+ throw new $TypeError$1('base intrinsic for ' + name + ' exists, but the property is not available.');
32948
+ }
32949
+ return void undefined$1;
32950
+ }
32951
+ if ($gOPD && (i + 1) >= parts.length) {
32952
+ var desc = $gOPD(value, part);
32953
+ isOwn = !!desc;
32954
+
32955
+ // By convention, when a data property is converted to an accessor
32956
+ // property to emulate a data property that does not suffer from
32957
+ // the override mistake, that accessor's getter is marked with
32958
+ // an `originalValue` property. Here, when we detect this, we
32959
+ // uphold the illusion by pretending to see that original data
32960
+ // property, i.e., returning the value rather than the getter
32961
+ // itself.
32962
+ if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
32963
+ value = desc.get;
32964
+ } else {
32965
+ value = value[part];
32966
+ }
32967
+ } else {
32968
+ isOwn = hasOwn$1(value, part);
32969
+ value = value[part];
32970
+ }
32971
+
32972
+ if (isOwn && !skipFurtherCaching) {
32973
+ INTRINSICS[intrinsicRealName] = value;
32974
+ }
32975
+ }
32976
+ }
32977
+ return value;
32978
+ };
32979
+
32980
+ var callBind$1 = {exports: {}};
32981
+
32982
+ (function (module) {
32983
+
32984
+ var bind = functionBind;
32985
+ var GetIntrinsic = getIntrinsic;
32986
+
32987
+ var $apply = GetIntrinsic('%Function.prototype.apply%');
32988
+ var $call = GetIntrinsic('%Function.prototype.call%');
32989
+ var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
32990
+
32991
+ var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
32992
+ var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
32993
+ var $max = GetIntrinsic('%Math.max%');
32994
+
32995
+ if ($defineProperty) {
32996
+ try {
32997
+ $defineProperty({}, 'a', { value: 1 });
32998
+ } catch (e) {
32999
+ // IE 8 has a broken defineProperty
33000
+ $defineProperty = null;
33001
+ }
33002
+ }
33003
+
33004
+ module.exports = function callBind(originalFunction) {
33005
+ var func = $reflectApply(bind, $call, arguments);
33006
+ if ($gOPD && $defineProperty) {
33007
+ var desc = $gOPD(func, 'length');
33008
+ if (desc.configurable) {
33009
+ // original length, plus the receiver, minus any additional arguments (after the receiver)
33010
+ $defineProperty(
33011
+ func,
33012
+ 'length',
33013
+ { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
33014
+ );
33015
+ }
33016
+ }
33017
+ return func;
33018
+ };
33019
+
33020
+ var applyBind = function applyBind() {
33021
+ return $reflectApply(bind, $apply, arguments);
33022
+ };
33023
+
33024
+ if ($defineProperty) {
33025
+ $defineProperty(module.exports, 'apply', { value: applyBind });
33026
+ } else {
33027
+ module.exports.apply = applyBind;
33028
+ }
33029
+ } (callBind$1));
33030
+
33031
+ var GetIntrinsic$1 = getIntrinsic;
33032
+
33033
+ var callBind = callBind$1.exports;
33034
+
33035
+ var $indexOf = callBind(GetIntrinsic$1('String.prototype.indexOf'));
33036
+
33037
+ var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
33038
+ var intrinsic = GetIntrinsic$1(name, !!allowMissing);
33039
+ if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
33040
+ return callBind(intrinsic);
33041
+ }
33042
+ return intrinsic;
33043
+ };
33044
+
33045
+ var util_inspect = require$$0__default["default"].inspect;
33046
+
33047
+ var hasMap = typeof Map === 'function' && Map.prototype;
33048
+ var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
33049
+ var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
33050
+ var mapForEach = hasMap && Map.prototype.forEach;
33051
+ var hasSet = typeof Set === 'function' && Set.prototype;
33052
+ var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
33053
+ var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
33054
+ var setForEach = hasSet && Set.prototype.forEach;
33055
+ var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
33056
+ var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
33057
+ var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
33058
+ var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
33059
+ var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
33060
+ var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
33061
+ var booleanValueOf = Boolean.prototype.valueOf;
33062
+ var objectToString = Object.prototype.toString;
33063
+ var functionToString = Function.prototype.toString;
33064
+ var $match = String.prototype.match;
33065
+ var $slice = String.prototype.slice;
33066
+ var $replace = String.prototype.replace;
33067
+ var $toUpperCase = String.prototype.toUpperCase;
33068
+ var $toLowerCase = String.prototype.toLowerCase;
33069
+ var $test = RegExp.prototype.test;
33070
+ var $concat = Array.prototype.concat;
33071
+ var $join = Array.prototype.join;
33072
+ var $arrSlice = Array.prototype.slice;
33073
+ var $floor = Math.floor;
33074
+ var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
33075
+ var gOPS = Object.getOwnPropertySymbols;
33076
+ var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
33077
+ var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
33078
+ // ie, `has-tostringtag/shams
33079
+ var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
33080
+ ? Symbol.toStringTag
33081
+ : null;
33082
+ var isEnumerable = Object.prototype.propertyIsEnumerable;
33083
+
33084
+ var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
33085
+ [].__proto__ === Array.prototype // eslint-disable-line no-proto
33086
+ ? function (O) {
33087
+ return O.__proto__; // eslint-disable-line no-proto
33088
+ }
33089
+ : null
33090
+ );
33091
+
33092
+ function addNumericSeparator(num, str) {
33093
+ if (
33094
+ num === Infinity
33095
+ || num === -Infinity
33096
+ || num !== num
33097
+ || (num && num > -1000 && num < 1000)
33098
+ || $test.call(/e/, str)
33099
+ ) {
33100
+ return str;
33101
+ }
33102
+ var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
33103
+ if (typeof num === 'number') {
33104
+ var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
33105
+ if (int !== num) {
33106
+ var intStr = String(int);
33107
+ var dec = $slice.call(str, intStr.length + 1);
33108
+ return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
33109
+ }
33110
+ }
33111
+ return $replace.call(str, sepRegex, '$&_');
33112
+ }
33113
+
33114
+ var utilInspect = util_inspect;
33115
+ var inspectCustom = utilInspect.custom;
33116
+ var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
33117
+
33118
+ var objectInspect = function inspect_(obj, options, depth, seen) {
33119
+ var opts = options || {};
33120
+
33121
+ if (has$3(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
33122
+ throw new TypeError('option "quoteStyle" must be "single" or "double"');
33123
+ }
33124
+ if (
33125
+ has$3(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
33126
+ ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
33127
+ : opts.maxStringLength !== null
33128
+ )
33129
+ ) {
33130
+ throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
33131
+ }
33132
+ var customInspect = has$3(opts, 'customInspect') ? opts.customInspect : true;
33133
+ if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
33134
+ throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
33135
+ }
33136
+
33137
+ if (
33138
+ has$3(opts, 'indent')
33139
+ && opts.indent !== null
33140
+ && opts.indent !== '\t'
33141
+ && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
33142
+ ) {
33143
+ throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
33144
+ }
33145
+ if (has$3(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
33146
+ throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
33147
+ }
33148
+ var numericSeparator = opts.numericSeparator;
33149
+
33150
+ if (typeof obj === 'undefined') {
33151
+ return 'undefined';
33152
+ }
33153
+ if (obj === null) {
33154
+ return 'null';
33155
+ }
33156
+ if (typeof obj === 'boolean') {
33157
+ return obj ? 'true' : 'false';
33158
+ }
33159
+
33160
+ if (typeof obj === 'string') {
33161
+ return inspectString(obj, opts);
33162
+ }
33163
+ if (typeof obj === 'number') {
33164
+ if (obj === 0) {
33165
+ return Infinity / obj > 0 ? '0' : '-0';
33166
+ }
33167
+ var str = String(obj);
33168
+ return numericSeparator ? addNumericSeparator(obj, str) : str;
33169
+ }
33170
+ if (typeof obj === 'bigint') {
33171
+ var bigIntStr = String(obj) + 'n';
33172
+ return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
33173
+ }
33174
+
33175
+ var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
33176
+ if (typeof depth === 'undefined') { depth = 0; }
33177
+ if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
33178
+ return isArray$3(obj) ? '[Array]' : '[Object]';
33179
+ }
33180
+
33181
+ var indent = getIndent(opts, depth);
33182
+
33183
+ if (typeof seen === 'undefined') {
33184
+ seen = [];
33185
+ } else if (indexOf(seen, obj) >= 0) {
33186
+ return '[Circular]';
33187
+ }
33188
+
33189
+ function inspect(value, from, noIndent) {
33190
+ if (from) {
33191
+ seen = $arrSlice.call(seen);
33192
+ seen.push(from);
33193
+ }
33194
+ if (noIndent) {
33195
+ var newOpts = {
33196
+ depth: opts.depth
33197
+ };
33198
+ if (has$3(opts, 'quoteStyle')) {
33199
+ newOpts.quoteStyle = opts.quoteStyle;
33200
+ }
33201
+ return inspect_(value, newOpts, depth + 1, seen);
33202
+ }
33203
+ return inspect_(value, opts, depth + 1, seen);
33204
+ }
33205
+
33206
+ if (typeof obj === 'function' && !isRegExp$2(obj)) { // in older engines, regexes are callable
33207
+ var name = nameOf(obj);
33208
+ var keys = arrObjKeys(obj, inspect);
33209
+ return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
33210
+ }
33211
+ if (isSymbol(obj)) {
33212
+ var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
33213
+ return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
33214
+ }
33215
+ if (isElement(obj)) {
33216
+ var s = '<' + $toLowerCase.call(String(obj.nodeName));
33217
+ var attrs = obj.attributes || [];
33218
+ for (var i = 0; i < attrs.length; i++) {
33219
+ s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
33220
+ }
33221
+ s += '>';
33222
+ if (obj.childNodes && obj.childNodes.length) { s += '...'; }
33223
+ s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
33224
+ return s;
33225
+ }
33226
+ if (isArray$3(obj)) {
33227
+ if (obj.length === 0) { return '[]'; }
33228
+ var xs = arrObjKeys(obj, inspect);
33229
+ if (indent && !singleLineValues(xs)) {
33230
+ return '[' + indentedJoin(xs, indent) + ']';
33231
+ }
33232
+ return '[ ' + $join.call(xs, ', ') + ' ]';
33233
+ }
33234
+ if (isError$1(obj)) {
33235
+ var parts = arrObjKeys(obj, inspect);
33236
+ if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
33237
+ return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
33238
+ }
33239
+ if (parts.length === 0) { return '[' + String(obj) + ']'; }
33240
+ return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
33241
+ }
33242
+ if (typeof obj === 'object' && customInspect) {
33243
+ if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
33244
+ return utilInspect(obj, { depth: maxDepth - depth });
33245
+ } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
33246
+ return obj.inspect();
33247
+ }
33248
+ }
33249
+ if (isMap(obj)) {
33250
+ var mapParts = [];
33251
+ mapForEach.call(obj, function (value, key) {
33252
+ mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
33253
+ });
33254
+ return collectionOf('Map', mapSize.call(obj), mapParts, indent);
33255
+ }
33256
+ if (isSet(obj)) {
33257
+ var setParts = [];
33258
+ setForEach.call(obj, function (value) {
33259
+ setParts.push(inspect(value, obj));
33260
+ });
33261
+ return collectionOf('Set', setSize.call(obj), setParts, indent);
33262
+ }
33263
+ if (isWeakMap(obj)) {
33264
+ return weakCollectionOf('WeakMap');
33265
+ }
33266
+ if (isWeakSet(obj)) {
33267
+ return weakCollectionOf('WeakSet');
33268
+ }
33269
+ if (isWeakRef(obj)) {
33270
+ return weakCollectionOf('WeakRef');
33271
+ }
33272
+ if (isNumber(obj)) {
33273
+ return markBoxed(inspect(Number(obj)));
33274
+ }
33275
+ if (isBigInt(obj)) {
33276
+ return markBoxed(inspect(bigIntValueOf.call(obj)));
33277
+ }
33278
+ if (isBoolean(obj)) {
33279
+ return markBoxed(booleanValueOf.call(obj));
33280
+ }
33281
+ if (isString$2(obj)) {
33282
+ return markBoxed(inspect(String(obj)));
33283
+ }
33284
+ if (!isDate(obj) && !isRegExp$2(obj)) {
33285
+ var ys = arrObjKeys(obj, inspect);
33286
+ var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
33287
+ var protoTag = obj instanceof Object ? '' : 'null prototype';
33288
+ var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
33289
+ var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
33290
+ var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
33291
+ if (ys.length === 0) { return tag + '{}'; }
33292
+ if (indent) {
33293
+ return tag + '{' + indentedJoin(ys, indent) + '}';
33294
+ }
33295
+ return tag + '{ ' + $join.call(ys, ', ') + ' }';
33296
+ }
33297
+ return String(obj);
33298
+ };
33299
+
33300
+ function wrapQuotes(s, defaultStyle, opts) {
33301
+ var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
33302
+ return quoteChar + s + quoteChar;
33303
+ }
33304
+
33305
+ function quote(s) {
33306
+ return $replace.call(String(s), /"/g, '&quot;');
33307
+ }
33308
+
33309
+ function isArray$3(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
33310
+ function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
33311
+ function isRegExp$2(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
33312
+ function isError$1(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
33313
+ function isString$2(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
33314
+ function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
33315
+ function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
33316
+
33317
+ // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
33318
+ function isSymbol(obj) {
33319
+ if (hasShammedSymbols) {
33320
+ return obj && typeof obj === 'object' && obj instanceof Symbol;
33321
+ }
33322
+ if (typeof obj === 'symbol') {
33323
+ return true;
33324
+ }
33325
+ if (!obj || typeof obj !== 'object' || !symToString) {
33326
+ return false;
33327
+ }
33328
+ try {
33329
+ symToString.call(obj);
33330
+ return true;
33331
+ } catch (e) {}
33332
+ return false;
33333
+ }
33334
+
33335
+ function isBigInt(obj) {
33336
+ if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
33337
+ return false;
33338
+ }
33339
+ try {
33340
+ bigIntValueOf.call(obj);
33341
+ return true;
33342
+ } catch (e) {}
33343
+ return false;
33344
+ }
33345
+
33346
+ var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
33347
+ function has$3(obj, key) {
33348
+ return hasOwn.call(obj, key);
33349
+ }
33350
+
33351
+ function toStr(obj) {
33352
+ return objectToString.call(obj);
33353
+ }
33354
+
33355
+ function nameOf(f) {
33356
+ if (f.name) { return f.name; }
33357
+ var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
33358
+ if (m) { return m[1]; }
33359
+ return null;
33360
+ }
33361
+
33362
+ function indexOf(xs, x) {
33363
+ if (xs.indexOf) { return xs.indexOf(x); }
33364
+ for (var i = 0, l = xs.length; i < l; i++) {
33365
+ if (xs[i] === x) { return i; }
33366
+ }
33367
+ return -1;
33368
+ }
33369
+
33370
+ function isMap(x) {
33371
+ if (!mapSize || !x || typeof x !== 'object') {
33372
+ return false;
33373
+ }
33374
+ try {
33375
+ mapSize.call(x);
33376
+ try {
33377
+ setSize.call(x);
33378
+ } catch (s) {
33379
+ return true;
33380
+ }
33381
+ return x instanceof Map; // core-js workaround, pre-v2.5.0
33382
+ } catch (e) {}
33383
+ return false;
33384
+ }
33385
+
33386
+ function isWeakMap(x) {
33387
+ if (!weakMapHas || !x || typeof x !== 'object') {
33388
+ return false;
33389
+ }
33390
+ try {
33391
+ weakMapHas.call(x, weakMapHas);
33392
+ try {
33393
+ weakSetHas.call(x, weakSetHas);
33394
+ } catch (s) {
33395
+ return true;
33396
+ }
33397
+ return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
33398
+ } catch (e) {}
33399
+ return false;
33400
+ }
33401
+
33402
+ function isWeakRef(x) {
33403
+ if (!weakRefDeref || !x || typeof x !== 'object') {
33404
+ return false;
33405
+ }
33406
+ try {
33407
+ weakRefDeref.call(x);
33408
+ return true;
33409
+ } catch (e) {}
33410
+ return false;
33411
+ }
33412
+
33413
+ function isSet(x) {
33414
+ if (!setSize || !x || typeof x !== 'object') {
33415
+ return false;
33416
+ }
33417
+ try {
33418
+ setSize.call(x);
33419
+ try {
33420
+ mapSize.call(x);
33421
+ } catch (m) {
33422
+ return true;
33423
+ }
33424
+ return x instanceof Set; // core-js workaround, pre-v2.5.0
33425
+ } catch (e) {}
33426
+ return false;
33427
+ }
33428
+
33429
+ function isWeakSet(x) {
33430
+ if (!weakSetHas || !x || typeof x !== 'object') {
33431
+ return false;
33432
+ }
33433
+ try {
33434
+ weakSetHas.call(x, weakSetHas);
33435
+ try {
33436
+ weakMapHas.call(x, weakMapHas);
33437
+ } catch (s) {
33438
+ return true;
33439
+ }
33440
+ return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
33441
+ } catch (e) {}
33442
+ return false;
33443
+ }
33444
+
33445
+ function isElement(x) {
33446
+ if (!x || typeof x !== 'object') { return false; }
33447
+ if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
33448
+ return true;
33449
+ }
33450
+ return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
33451
+ }
33452
+
33453
+ function inspectString(str, opts) {
33454
+ if (str.length > opts.maxStringLength) {
33455
+ var remaining = str.length - opts.maxStringLength;
33456
+ var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
33457
+ return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
33458
+ }
33459
+ // eslint-disable-next-line no-control-regex
33460
+ var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
33461
+ return wrapQuotes(s, 'single', opts);
33462
+ }
33463
+
33464
+ function lowbyte(c) {
33465
+ var n = c.charCodeAt(0);
33466
+ var x = {
33467
+ 8: 'b',
33468
+ 9: 't',
33469
+ 10: 'n',
33470
+ 12: 'f',
33471
+ 13: 'r'
33472
+ }[n];
33473
+ if (x) { return '\\' + x; }
33474
+ return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
33475
+ }
33476
+
33477
+ function markBoxed(str) {
33478
+ return 'Object(' + str + ')';
33479
+ }
33480
+
33481
+ function weakCollectionOf(type) {
33482
+ return type + ' { ? }';
33483
+ }
33484
+
33485
+ function collectionOf(type, size, entries, indent) {
33486
+ var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
33487
+ return type + ' (' + size + ') {' + joinedEntries + '}';
33488
+ }
33489
+
33490
+ function singleLineValues(xs) {
33491
+ for (var i = 0; i < xs.length; i++) {
33492
+ if (indexOf(xs[i], '\n') >= 0) {
33493
+ return false;
33494
+ }
33495
+ }
33496
+ return true;
33497
+ }
33498
+
33499
+ function getIndent(opts, depth) {
33500
+ var baseIndent;
33501
+ if (opts.indent === '\t') {
33502
+ baseIndent = '\t';
33503
+ } else if (typeof opts.indent === 'number' && opts.indent > 0) {
33504
+ baseIndent = $join.call(Array(opts.indent + 1), ' ');
33505
+ } else {
33506
+ return null;
33507
+ }
33508
+ return {
33509
+ base: baseIndent,
33510
+ prev: $join.call(Array(depth + 1), baseIndent)
33511
+ };
33512
+ }
33513
+
33514
+ function indentedJoin(xs, indent) {
33515
+ if (xs.length === 0) { return ''; }
33516
+ var lineJoiner = '\n' + indent.prev + indent.base;
33517
+ return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
33518
+ }
33519
+
33520
+ function arrObjKeys(obj, inspect) {
33521
+ var isArr = isArray$3(obj);
33522
+ var xs = [];
33523
+ if (isArr) {
33524
+ xs.length = obj.length;
33525
+ for (var i = 0; i < obj.length; i++) {
33526
+ xs[i] = has$3(obj, i) ? inspect(obj[i], obj) : '';
33527
+ }
33528
+ }
33529
+ var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
33530
+ var symMap;
33531
+ if (hasShammedSymbols) {
33532
+ symMap = {};
33533
+ for (var k = 0; k < syms.length; k++) {
33534
+ symMap['$' + syms[k]] = syms[k];
33535
+ }
33536
+ }
33537
+
33538
+ for (var key in obj) { // eslint-disable-line no-restricted-syntax
33539
+ if (!has$3(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
33540
+ if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
33541
+ if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
33542
+ // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
33543
+ continue; // eslint-disable-line no-restricted-syntax, no-continue
33544
+ } else if ($test.call(/[^\w$]/, key)) {
33545
+ xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
33546
+ } else {
33547
+ xs.push(key + ': ' + inspect(obj[key], obj));
33548
+ }
33549
+ }
33550
+ if (typeof gOPS === 'function') {
33551
+ for (var j = 0; j < syms.length; j++) {
33552
+ if (isEnumerable.call(obj, syms[j])) {
33553
+ xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
33554
+ }
33555
+ }
33556
+ }
33557
+ return xs;
33558
+ }
33559
+
33560
+ var GetIntrinsic = getIntrinsic;
33561
+ var callBound = callBound$1;
33562
+ var inspect = objectInspect;
33563
+
33564
+ var $TypeError = GetIntrinsic('%TypeError%');
33565
+ var $WeakMap = GetIntrinsic('%WeakMap%', true);
33566
+ var $Map = GetIntrinsic('%Map%', true);
33567
+
33568
+ var $weakMapGet = callBound('WeakMap.prototype.get', true);
33569
+ var $weakMapSet = callBound('WeakMap.prototype.set', true);
33570
+ var $weakMapHas = callBound('WeakMap.prototype.has', true);
33571
+ var $mapGet = callBound('Map.prototype.get', true);
33572
+ var $mapSet = callBound('Map.prototype.set', true);
33573
+ var $mapHas = callBound('Map.prototype.has', true);
33574
+
33575
+ /*
33576
+ * This function traverses the list returning the node corresponding to the
33577
+ * given key.
33578
+ *
33579
+ * That node is also moved to the head of the list, so that if it's accessed
33580
+ * again we don't need to traverse the whole list. By doing so, all the recently
33581
+ * used nodes can be accessed relatively quickly.
33582
+ */
33583
+ var listGetNode = function (list, key) { // eslint-disable-line consistent-return
33584
+ for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
33585
+ if (curr.key === key) {
33586
+ prev.next = curr.next;
33587
+ curr.next = list.next;
33588
+ list.next = curr; // eslint-disable-line no-param-reassign
33589
+ return curr;
33590
+ }
33591
+ }
33592
+ };
33593
+
33594
+ var listGet = function (objects, key) {
33595
+ var node = listGetNode(objects, key);
33596
+ return node && node.value;
33597
+ };
33598
+ var listSet = function (objects, key, value) {
33599
+ var node = listGetNode(objects, key);
33600
+ if (node) {
33601
+ node.value = value;
33602
+ } else {
33603
+ // Prepend the new node to the beginning of the list
33604
+ objects.next = { // eslint-disable-line no-param-reassign
33605
+ key: key,
33606
+ next: objects.next,
33607
+ value: value
33608
+ };
33609
+ }
33610
+ };
33611
+ var listHas = function (objects, key) {
33612
+ return !!listGetNode(objects, key);
33613
+ };
33614
+
33615
+ var sideChannel = function getSideChannel() {
33616
+ var $wm;
33617
+ var $m;
33618
+ var $o;
33619
+ var channel = {
33620
+ assert: function (key) {
33621
+ if (!channel.has(key)) {
33622
+ throw new $TypeError('Side channel does not contain ' + inspect(key));
33623
+ }
33624
+ },
33625
+ get: function (key) { // eslint-disable-line consistent-return
33626
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
33627
+ if ($wm) {
33628
+ return $weakMapGet($wm, key);
33629
+ }
33630
+ } else if ($Map) {
33631
+ if ($m) {
33632
+ return $mapGet($m, key);
33633
+ }
33634
+ } else {
33635
+ if ($o) { // eslint-disable-line no-lonely-if
33636
+ return listGet($o, key);
33637
+ }
33638
+ }
33639
+ },
33640
+ has: function (key) {
33641
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
33642
+ if ($wm) {
33643
+ return $weakMapHas($wm, key);
33644
+ }
33645
+ } else if ($Map) {
33646
+ if ($m) {
33647
+ return $mapHas($m, key);
33648
+ }
33649
+ } else {
33650
+ if ($o) { // eslint-disable-line no-lonely-if
33651
+ return listHas($o, key);
33652
+ }
33653
+ }
33654
+ return false;
33655
+ },
33656
+ set: function (key, value) {
33657
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
33658
+ if (!$wm) {
33659
+ $wm = new $WeakMap();
33660
+ }
33661
+ $weakMapSet($wm, key, value);
33662
+ } else if ($Map) {
33663
+ if (!$m) {
33664
+ $m = new $Map();
33665
+ }
33666
+ $mapSet($m, key, value);
33667
+ } else {
33668
+ if (!$o) {
33669
+ /*
33670
+ * Initialize the linked list as an empty node, so that we don't have
33671
+ * to special-case handling of the first node: we can always refer to
33672
+ * it as (previous node).next, instead of something like (list).head
33673
+ */
33674
+ $o = { key: {}, next: null };
33675
+ }
33676
+ listSet($o, key, value);
33677
+ }
33678
+ }
33679
+ };
33680
+ return channel;
33681
+ };
33682
+
33683
+ var replace = String.prototype.replace;
33684
+ var percentTwenties = /%20/g;
33685
+
33686
+ var Format = {
33687
+ RFC1738: 'RFC1738',
33688
+ RFC3986: 'RFC3986'
33689
+ };
33690
+
33691
+ var formats$3 = {
33692
+ 'default': Format.RFC3986,
33693
+ formatters: {
33694
+ RFC1738: function (value) {
33695
+ return replace.call(value, percentTwenties, '+');
33696
+ },
33697
+ RFC3986: function (value) {
33698
+ return String(value);
33699
+ }
33700
+ },
33701
+ RFC1738: Format.RFC1738,
33702
+ RFC3986: Format.RFC3986
33703
+ };
33704
+
33705
+ var formats$2 = formats$3;
33706
+
33707
+ var has$2 = Object.prototype.hasOwnProperty;
33708
+ var isArray$2 = Array.isArray;
33709
+
33710
+ var hexTable = (function () {
33711
+ var array = [];
33712
+ for (var i = 0; i < 256; ++i) {
33713
+ array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
33714
+ }
33715
+
33716
+ return array;
33717
+ }());
33718
+
33719
+ var compactQueue = function compactQueue(queue) {
33720
+ while (queue.length > 1) {
33721
+ var item = queue.pop();
33722
+ var obj = item.obj[item.prop];
33723
+
33724
+ if (isArray$2(obj)) {
33725
+ var compacted = [];
33726
+
33727
+ for (var j = 0; j < obj.length; ++j) {
33728
+ if (typeof obj[j] !== 'undefined') {
33729
+ compacted.push(obj[j]);
33730
+ }
33731
+ }
33732
+
33733
+ item.obj[item.prop] = compacted;
33734
+ }
33735
+ }
33736
+ };
33737
+
33738
+ var arrayToObject = function arrayToObject(source, options) {
33739
+ var obj = options && options.plainObjects ? Object.create(null) : {};
33740
+ for (var i = 0; i < source.length; ++i) {
33741
+ if (typeof source[i] !== 'undefined') {
33742
+ obj[i] = source[i];
33743
+ }
33744
+ }
33745
+
33746
+ return obj;
33747
+ };
33748
+
33749
+ var merge = function merge(target, source, options) {
33750
+ /* eslint no-param-reassign: 0 */
33751
+ if (!source) {
33752
+ return target;
33753
+ }
33754
+
33755
+ if (typeof source !== 'object') {
33756
+ if (isArray$2(target)) {
33757
+ target.push(source);
33758
+ } else if (target && typeof target === 'object') {
33759
+ if ((options && (options.plainObjects || options.allowPrototypes)) || !has$2.call(Object.prototype, source)) {
33760
+ target[source] = true;
33761
+ }
33762
+ } else {
33763
+ return [target, source];
33764
+ }
33765
+
33766
+ return target;
33767
+ }
33768
+
33769
+ if (!target || typeof target !== 'object') {
33770
+ return [target].concat(source);
33771
+ }
33772
+
33773
+ var mergeTarget = target;
33774
+ if (isArray$2(target) && !isArray$2(source)) {
33775
+ mergeTarget = arrayToObject(target, options);
33776
+ }
33777
+
33778
+ if (isArray$2(target) && isArray$2(source)) {
33779
+ source.forEach(function (item, i) {
33780
+ if (has$2.call(target, i)) {
33781
+ var targetItem = target[i];
33782
+ if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
33783
+ target[i] = merge(targetItem, item, options);
33784
+ } else {
33785
+ target.push(item);
33786
+ }
33787
+ } else {
33788
+ target[i] = item;
33789
+ }
33790
+ });
33791
+ return target;
33792
+ }
33793
+
33794
+ return Object.keys(source).reduce(function (acc, key) {
33795
+ var value = source[key];
33796
+
33797
+ if (has$2.call(acc, key)) {
33798
+ acc[key] = merge(acc[key], value, options);
33799
+ } else {
33800
+ acc[key] = value;
33801
+ }
33802
+ return acc;
33803
+ }, mergeTarget);
33804
+ };
33805
+
33806
+ var assign$1 = function assignSingleSource(target, source) {
33807
+ return Object.keys(source).reduce(function (acc, key) {
33808
+ acc[key] = source[key];
33809
+ return acc;
33810
+ }, target);
33811
+ };
33812
+
33813
+ var decode = function (str, decoder, charset) {
33814
+ var strWithoutPlus = str.replace(/\+/g, ' ');
33815
+ if (charset === 'iso-8859-1') {
33816
+ // unescape never throws, no try...catch needed:
33817
+ return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
33818
+ }
33819
+ // utf-8
33820
+ try {
33821
+ return decodeURIComponent(strWithoutPlus);
33822
+ } catch (e) {
33823
+ return strWithoutPlus;
33824
+ }
33825
+ };
33826
+
33827
+ var encode = function encode(str, defaultEncoder, charset, kind, format) {
33828
+ // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
33829
+ // It has been adapted here for stricter adherence to RFC 3986
33830
+ if (str.length === 0) {
33831
+ return str;
33832
+ }
33833
+
33834
+ var string = str;
33835
+ if (typeof str === 'symbol') {
33836
+ string = Symbol.prototype.toString.call(str);
33837
+ } else if (typeof str !== 'string') {
33838
+ string = String(str);
33839
+ }
33840
+
33841
+ if (charset === 'iso-8859-1') {
33842
+ return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
33843
+ return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
33844
+ });
33845
+ }
33846
+
33847
+ var out = '';
33848
+ for (var i = 0; i < string.length; ++i) {
33849
+ var c = string.charCodeAt(i);
33850
+
33851
+ if (
33852
+ c === 0x2D // -
33853
+ || c === 0x2E // .
33854
+ || c === 0x5F // _
33855
+ || c === 0x7E // ~
33856
+ || (c >= 0x30 && c <= 0x39) // 0-9
33857
+ || (c >= 0x41 && c <= 0x5A) // a-z
33858
+ || (c >= 0x61 && c <= 0x7A) // A-Z
33859
+ || (format === formats$2.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
33860
+ ) {
33861
+ out += string.charAt(i);
33862
+ continue;
33863
+ }
33864
+
33865
+ if (c < 0x80) {
33866
+ out = out + hexTable[c];
33867
+ continue;
33868
+ }
33869
+
33870
+ if (c < 0x800) {
33871
+ out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
33872
+ continue;
33873
+ }
33874
+
33875
+ if (c < 0xD800 || c >= 0xE000) {
33876
+ out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
33877
+ continue;
33878
+ }
33879
+
33880
+ i += 1;
33881
+ c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
33882
+ /* eslint operator-linebreak: [2, "before"] */
33883
+ out += hexTable[0xF0 | (c >> 18)]
33884
+ + hexTable[0x80 | ((c >> 12) & 0x3F)]
33885
+ + hexTable[0x80 | ((c >> 6) & 0x3F)]
33886
+ + hexTable[0x80 | (c & 0x3F)];
33887
+ }
33888
+
33889
+ return out;
33890
+ };
33891
+
33892
+ var compact = function compact(value) {
33893
+ var queue = [{ obj: { o: value }, prop: 'o' }];
33894
+ var refs = [];
33895
+
33896
+ for (var i = 0; i < queue.length; ++i) {
33897
+ var item = queue[i];
33898
+ var obj = item.obj[item.prop];
33899
+
33900
+ var keys = Object.keys(obj);
33901
+ for (var j = 0; j < keys.length; ++j) {
33902
+ var key = keys[j];
33903
+ var val = obj[key];
33904
+ if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
33905
+ queue.push({ obj: obj, prop: key });
33906
+ refs.push(val);
33907
+ }
33908
+ }
33909
+ }
33910
+
33911
+ compactQueue(queue);
33912
+
33913
+ return value;
33914
+ };
33915
+
33916
+ var isRegExp$1 = function isRegExp(obj) {
33917
+ return Object.prototype.toString.call(obj) === '[object RegExp]';
33918
+ };
33919
+
33920
+ var isBuffer = function isBuffer(obj) {
33921
+ if (!obj || typeof obj !== 'object') {
33922
+ return false;
33923
+ }
33924
+
33925
+ return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
33926
+ };
33927
+
33928
+ var combine = function combine(a, b) {
33929
+ return [].concat(a, b);
33930
+ };
33931
+
33932
+ var maybeMap = function maybeMap(val, fn) {
33933
+ if (isArray$2(val)) {
33934
+ var mapped = [];
33935
+ for (var i = 0; i < val.length; i += 1) {
33936
+ mapped.push(fn(val[i]));
33937
+ }
33938
+ return mapped;
33939
+ }
33940
+ return fn(val);
33941
+ };
33942
+
33943
+ var utils$2 = {
33944
+ arrayToObject: arrayToObject,
33945
+ assign: assign$1,
33946
+ combine: combine,
33947
+ compact: compact,
33948
+ decode: decode,
33949
+ encode: encode,
33950
+ isBuffer: isBuffer,
33951
+ isRegExp: isRegExp$1,
33952
+ maybeMap: maybeMap,
33953
+ merge: merge
33954
+ };
33955
+
33956
+ var getSideChannel = sideChannel;
33957
+ var utils$1 = utils$2;
33958
+ var formats$1 = formats$3;
33959
+ var has$1 = Object.prototype.hasOwnProperty;
33960
+
33961
+ var arrayPrefixGenerators = {
33962
+ brackets: function brackets(prefix) {
33963
+ return prefix + '[]';
33964
+ },
33965
+ comma: 'comma',
33966
+ indices: function indices(prefix, key) {
33967
+ return prefix + '[' + key + ']';
33968
+ },
33969
+ repeat: function repeat(prefix) {
33970
+ return prefix;
33971
+ }
33972
+ };
33973
+
33974
+ var isArray$1 = Array.isArray;
33975
+ var push = Array.prototype.push;
33976
+ var pushToArray = function (arr, valueOrArray) {
33977
+ push.apply(arr, isArray$1(valueOrArray) ? valueOrArray : [valueOrArray]);
33978
+ };
33979
+
33980
+ var toISO = Date.prototype.toISOString;
33981
+
33982
+ var defaultFormat = formats$1['default'];
33983
+ var defaults$1 = {
33984
+ addQueryPrefix: false,
33985
+ allowDots: false,
33986
+ charset: 'utf-8',
33987
+ charsetSentinel: false,
33988
+ delimiter: '&',
33989
+ encode: true,
33990
+ encoder: utils$1.encode,
33991
+ encodeValuesOnly: false,
33992
+ format: defaultFormat,
33993
+ formatter: formats$1.formatters[defaultFormat],
33994
+ // deprecated
33995
+ indices: false,
33996
+ serializeDate: function serializeDate(date) {
33997
+ return toISO.call(date);
33998
+ },
33999
+ skipNulls: false,
34000
+ strictNullHandling: false
34001
+ };
34002
+
34003
+ var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
34004
+ return typeof v === 'string'
34005
+ || typeof v === 'number'
34006
+ || typeof v === 'boolean'
34007
+ || typeof v === 'symbol'
34008
+ || typeof v === 'bigint';
34009
+ };
34010
+
34011
+ var sentinel = {};
34012
+
34013
+ var stringify$1 = function stringify(
34014
+ object,
34015
+ prefix,
34016
+ generateArrayPrefix,
34017
+ commaRoundTrip,
34018
+ strictNullHandling,
34019
+ skipNulls,
34020
+ encoder,
34021
+ filter,
34022
+ sort,
34023
+ allowDots,
34024
+ serializeDate,
34025
+ format,
34026
+ formatter,
34027
+ encodeValuesOnly,
34028
+ charset,
34029
+ sideChannel
34030
+ ) {
34031
+ var obj = object;
34032
+
34033
+ var tmpSc = sideChannel;
34034
+ var step = 0;
34035
+ var findFlag = false;
34036
+ while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
34037
+ // Where object last appeared in the ref tree
34038
+ var pos = tmpSc.get(object);
34039
+ step += 1;
34040
+ if (typeof pos !== 'undefined') {
34041
+ if (pos === step) {
34042
+ throw new RangeError('Cyclic object value');
34043
+ } else {
34044
+ findFlag = true; // Break while
34045
+ }
34046
+ }
34047
+ if (typeof tmpSc.get(sentinel) === 'undefined') {
34048
+ step = 0;
34049
+ }
34050
+ }
34051
+
34052
+ if (typeof filter === 'function') {
34053
+ obj = filter(prefix, obj);
34054
+ } else if (obj instanceof Date) {
34055
+ obj = serializeDate(obj);
34056
+ } else if (generateArrayPrefix === 'comma' && isArray$1(obj)) {
34057
+ obj = utils$1.maybeMap(obj, function (value) {
34058
+ if (value instanceof Date) {
34059
+ return serializeDate(value);
34060
+ }
34061
+ return value;
34062
+ });
34063
+ }
34064
+
34065
+ if (obj === null) {
34066
+ if (strictNullHandling) {
34067
+ return encoder && !encodeValuesOnly ? encoder(prefix, defaults$1.encoder, charset, 'key', format) : prefix;
34068
+ }
34069
+
34070
+ obj = '';
34071
+ }
34072
+
34073
+ if (isNonNullishPrimitive(obj) || utils$1.isBuffer(obj)) {
34074
+ if (encoder) {
34075
+ var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults$1.encoder, charset, 'key', format);
34076
+ return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults$1.encoder, charset, 'value', format))];
34077
+ }
34078
+ return [formatter(prefix) + '=' + formatter(String(obj))];
34079
+ }
34080
+
34081
+ var values = [];
34082
+
34083
+ if (typeof obj === 'undefined') {
34084
+ return values;
34085
+ }
34086
+
34087
+ var objKeys;
34088
+ if (generateArrayPrefix === 'comma' && isArray$1(obj)) {
34089
+ // we need to join elements in
34090
+ if (encodeValuesOnly && encoder) {
34091
+ obj = utils$1.maybeMap(obj, encoder);
34092
+ }
34093
+ objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
34094
+ } else if (isArray$1(filter)) {
34095
+ objKeys = filter;
34096
+ } else {
34097
+ var keys = Object.keys(obj);
34098
+ objKeys = sort ? keys.sort(sort) : keys;
34099
+ }
34100
+
34101
+ var adjustedPrefix = commaRoundTrip && isArray$1(obj) && obj.length === 1 ? prefix + '[]' : prefix;
34102
+
34103
+ for (var j = 0; j < objKeys.length; ++j) {
34104
+ var key = objKeys[j];
34105
+ var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
34106
+
34107
+ if (skipNulls && value === null) {
34108
+ continue;
34109
+ }
34110
+
34111
+ var keyPrefix = isArray$1(obj)
34112
+ ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix
34113
+ : adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');
34114
+
34115
+ sideChannel.set(object, step);
34116
+ var valueSideChannel = getSideChannel();
34117
+ valueSideChannel.set(sentinel, sideChannel);
34118
+ pushToArray(values, stringify(
34119
+ value,
34120
+ keyPrefix,
34121
+ generateArrayPrefix,
34122
+ commaRoundTrip,
34123
+ strictNullHandling,
34124
+ skipNulls,
34125
+ generateArrayPrefix === 'comma' && encodeValuesOnly && isArray$1(obj) ? null : encoder,
34126
+ filter,
34127
+ sort,
34128
+ allowDots,
34129
+ serializeDate,
34130
+ format,
34131
+ formatter,
34132
+ encodeValuesOnly,
34133
+ charset,
34134
+ valueSideChannel
34135
+ ));
34136
+ }
34137
+
34138
+ return values;
34139
+ };
34140
+
34141
+ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
34142
+ if (!opts) {
34143
+ return defaults$1;
34144
+ }
34145
+
34146
+ if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
34147
+ throw new TypeError('Encoder has to be a function.');
34148
+ }
34149
+
34150
+ var charset = opts.charset || defaults$1.charset;
34151
+ if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
34152
+ throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
34153
+ }
34154
+
34155
+ var format = formats$1['default'];
34156
+ if (typeof opts.format !== 'undefined') {
34157
+ if (!has$1.call(formats$1.formatters, opts.format)) {
34158
+ throw new TypeError('Unknown format option provided.');
34159
+ }
34160
+ format = opts.format;
34161
+ }
34162
+ var formatter = formats$1.formatters[format];
34163
+
34164
+ var filter = defaults$1.filter;
34165
+ if (typeof opts.filter === 'function' || isArray$1(opts.filter)) {
34166
+ filter = opts.filter;
34167
+ }
34168
+
34169
+ return {
34170
+ addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults$1.addQueryPrefix,
34171
+ allowDots: typeof opts.allowDots === 'undefined' ? defaults$1.allowDots : !!opts.allowDots,
34172
+ charset: charset,
34173
+ charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults$1.charsetSentinel,
34174
+ delimiter: typeof opts.delimiter === 'undefined' ? defaults$1.delimiter : opts.delimiter,
34175
+ encode: typeof opts.encode === 'boolean' ? opts.encode : defaults$1.encode,
34176
+ encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults$1.encoder,
34177
+ encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults$1.encodeValuesOnly,
34178
+ filter: filter,
34179
+ format: format,
34180
+ formatter: formatter,
34181
+ serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults$1.serializeDate,
34182
+ skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults$1.skipNulls,
34183
+ sort: typeof opts.sort === 'function' ? opts.sort : null,
34184
+ strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults$1.strictNullHandling
34185
+ };
34186
+ };
34187
+
34188
+ var stringify_1 = function (object, opts) {
34189
+ var obj = object;
34190
+ var options = normalizeStringifyOptions(opts);
34191
+
34192
+ var objKeys;
34193
+ var filter;
34194
+
34195
+ if (typeof options.filter === 'function') {
34196
+ filter = options.filter;
34197
+ obj = filter('', obj);
34198
+ } else if (isArray$1(options.filter)) {
34199
+ filter = options.filter;
34200
+ objKeys = filter;
34201
+ }
34202
+
34203
+ var keys = [];
34204
+
34205
+ if (typeof obj !== 'object' || obj === null) {
34206
+ return '';
34207
+ }
34208
+
34209
+ var arrayFormat;
34210
+ if (opts && opts.arrayFormat in arrayPrefixGenerators) {
34211
+ arrayFormat = opts.arrayFormat;
34212
+ } else if (opts && 'indices' in opts) {
34213
+ arrayFormat = opts.indices ? 'indices' : 'repeat';
34214
+ } else {
34215
+ arrayFormat = 'indices';
34216
+ }
34217
+
34218
+ var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
34219
+ if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
34220
+ throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
34221
+ }
34222
+ var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;
34223
+
34224
+ if (!objKeys) {
34225
+ objKeys = Object.keys(obj);
34226
+ }
34227
+
34228
+ if (options.sort) {
34229
+ objKeys.sort(options.sort);
34230
+ }
34231
+
34232
+ var sideChannel = getSideChannel();
34233
+ for (var i = 0; i < objKeys.length; ++i) {
34234
+ var key = objKeys[i];
34235
+
34236
+ if (options.skipNulls && obj[key] === null) {
34237
+ continue;
34238
+ }
34239
+ pushToArray(keys, stringify$1(
34240
+ obj[key],
34241
+ key,
34242
+ generateArrayPrefix,
34243
+ commaRoundTrip,
34244
+ options.strictNullHandling,
34245
+ options.skipNulls,
34246
+ options.encode ? options.encoder : null,
34247
+ options.filter,
34248
+ options.sort,
34249
+ options.allowDots,
34250
+ options.serializeDate,
34251
+ options.format,
34252
+ options.formatter,
34253
+ options.encodeValuesOnly,
34254
+ options.charset,
34255
+ sideChannel
34256
+ ));
34257
+ }
34258
+
34259
+ var joined = keys.join(options.delimiter);
34260
+ var prefix = options.addQueryPrefix === true ? '?' : '';
34261
+
34262
+ if (options.charsetSentinel) {
34263
+ if (options.charset === 'iso-8859-1') {
34264
+ // encodeURIComponent('&#10003;'), the "numeric entity" representation of a checkmark
34265
+ prefix += 'utf8=%26%2310003%3B&';
34266
+ } else {
34267
+ // encodeURIComponent('✓')
34268
+ prefix += 'utf8=%E2%9C%93&';
34269
+ }
34270
+ }
34271
+
34272
+ return joined.length > 0 ? prefix + joined : '';
34273
+ };
34274
+
34275
+ var utils = utils$2;
34276
+
34277
+ var has = Object.prototype.hasOwnProperty;
34278
+ var isArray = Array.isArray;
34279
+
34280
+ var defaults = {
34281
+ allowDots: false,
34282
+ allowPrototypes: false,
34283
+ allowSparse: false,
34284
+ arrayLimit: 20,
34285
+ charset: 'utf-8',
34286
+ charsetSentinel: false,
34287
+ comma: false,
34288
+ decoder: utils.decode,
34289
+ delimiter: '&',
34290
+ depth: 5,
34291
+ ignoreQueryPrefix: false,
34292
+ interpretNumericEntities: false,
34293
+ parameterLimit: 1000,
34294
+ parseArrays: true,
34295
+ plainObjects: false,
34296
+ strictNullHandling: false
34297
+ };
34298
+
34299
+ var interpretNumericEntities = function (str) {
34300
+ return str.replace(/&#(\d+);/g, function ($0, numberStr) {
34301
+ return String.fromCharCode(parseInt(numberStr, 10));
34302
+ });
34303
+ };
34304
+
34305
+ var parseArrayValue = function (val, options) {
34306
+ if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
34307
+ return val.split(',');
34308
+ }
34309
+
34310
+ return val;
34311
+ };
34312
+
34313
+ // This is what browsers will submit when the ✓ character occurs in an
34314
+ // application/x-www-form-urlencoded body and the encoding of the page containing
34315
+ // the form is iso-8859-1, or when the submitted form has an accept-charset
34316
+ // attribute of iso-8859-1. Presumably also with other charsets that do not contain
34317
+ // the ✓ character, such as us-ascii.
34318
+ var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('&#10003;')
34319
+
34320
+ // These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
34321
+ var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
34322
+
34323
+ var parseValues = function parseQueryStringValues(str, options) {
34324
+ var obj = { __proto__: null };
34325
+
34326
+ var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
34327
+ var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
34328
+ var parts = cleanStr.split(options.delimiter, limit);
34329
+ var skipIndex = -1; // Keep track of where the utf8 sentinel was found
34330
+ var i;
34331
+
34332
+ var charset = options.charset;
34333
+ if (options.charsetSentinel) {
34334
+ for (i = 0; i < parts.length; ++i) {
34335
+ if (parts[i].indexOf('utf8=') === 0) {
34336
+ if (parts[i] === charsetSentinel) {
34337
+ charset = 'utf-8';
34338
+ } else if (parts[i] === isoSentinel) {
34339
+ charset = 'iso-8859-1';
34340
+ }
34341
+ skipIndex = i;
34342
+ i = parts.length; // The eslint settings do not allow break;
34343
+ }
34344
+ }
34345
+ }
34346
+
34347
+ for (i = 0; i < parts.length; ++i) {
34348
+ if (i === skipIndex) {
34349
+ continue;
34350
+ }
34351
+ var part = parts[i];
34352
+
34353
+ var bracketEqualsPos = part.indexOf(']=');
34354
+ var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
34355
+
34356
+ var key, val;
34357
+ if (pos === -1) {
34358
+ key = options.decoder(part, defaults.decoder, charset, 'key');
34359
+ val = options.strictNullHandling ? null : '';
34360
+ } else {
34361
+ key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
34362
+ val = utils.maybeMap(
34363
+ parseArrayValue(part.slice(pos + 1), options),
34364
+ function (encodedVal) {
34365
+ return options.decoder(encodedVal, defaults.decoder, charset, 'value');
34366
+ }
34367
+ );
34368
+ }
34369
+
34370
+ if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
34371
+ val = interpretNumericEntities(val);
34372
+ }
34373
+
34374
+ if (part.indexOf('[]=') > -1) {
34375
+ val = isArray(val) ? [val] : val;
34376
+ }
34377
+
34378
+ if (has.call(obj, key)) {
34379
+ obj[key] = utils.combine(obj[key], val);
34380
+ } else {
34381
+ obj[key] = val;
34382
+ }
34383
+ }
34384
+
34385
+ return obj;
34386
+ };
34387
+
34388
+ var parseObject = function (chain, val, options, valuesParsed) {
34389
+ var leaf = valuesParsed ? val : parseArrayValue(val, options);
34390
+
34391
+ for (var i = chain.length - 1; i >= 0; --i) {
34392
+ var obj;
34393
+ var root = chain[i];
34394
+
34395
+ if (root === '[]' && options.parseArrays) {
34396
+ obj = [].concat(leaf);
34397
+ } else {
34398
+ obj = options.plainObjects ? Object.create(null) : {};
34399
+ var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
34400
+ var index = parseInt(cleanRoot, 10);
34401
+ if (!options.parseArrays && cleanRoot === '') {
34402
+ obj = { 0: leaf };
34403
+ } else if (
34404
+ !isNaN(index)
34405
+ && root !== cleanRoot
34406
+ && String(index) === cleanRoot
34407
+ && index >= 0
34408
+ && (options.parseArrays && index <= options.arrayLimit)
34409
+ ) {
34410
+ obj = [];
34411
+ obj[index] = leaf;
34412
+ } else if (cleanRoot !== '__proto__') {
34413
+ obj[cleanRoot] = leaf;
34414
+ }
34415
+ }
34416
+
34417
+ leaf = obj;
34418
+ }
34419
+
34420
+ return leaf;
34421
+ };
34422
+
34423
+ var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
34424
+ if (!givenKey) {
34425
+ return;
34426
+ }
34427
+
34428
+ // Transform dot notation to bracket notation
34429
+ var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
34430
+
34431
+ // The regex chunks
34432
+
34433
+ var brackets = /(\[[^[\]]*])/;
34434
+ var child = /(\[[^[\]]*])/g;
34435
+
34436
+ // Get the parent
34437
+
34438
+ var segment = options.depth > 0 && brackets.exec(key);
34439
+ var parent = segment ? key.slice(0, segment.index) : key;
34440
+
34441
+ // Stash the parent if it exists
34442
+
34443
+ var keys = [];
34444
+ if (parent) {
34445
+ // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
34446
+ if (!options.plainObjects && has.call(Object.prototype, parent)) {
34447
+ if (!options.allowPrototypes) {
34448
+ return;
34449
+ }
34450
+ }
34451
+
34452
+ keys.push(parent);
34453
+ }
34454
+
34455
+ // Loop through children appending to the array until we hit depth
34456
+
34457
+ var i = 0;
34458
+ while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
34459
+ i += 1;
34460
+ if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
34461
+ if (!options.allowPrototypes) {
34462
+ return;
34463
+ }
34464
+ }
34465
+ keys.push(segment[1]);
34466
+ }
34467
+
34468
+ // If there's a remainder, just add whatever is left
34469
+
34470
+ if (segment) {
34471
+ keys.push('[' + key.slice(segment.index) + ']');
34472
+ }
34473
+
34474
+ return parseObject(keys, val, options, valuesParsed);
34475
+ };
34476
+
34477
+ var normalizeParseOptions = function normalizeParseOptions(opts) {
34478
+ if (!opts) {
34479
+ return defaults;
34480
+ }
34481
+
34482
+ if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
34483
+ throw new TypeError('Decoder has to be a function.');
34484
+ }
34485
+
34486
+ if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
34487
+ throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
34488
+ }
34489
+ var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
34490
+
34491
+ return {
34492
+ allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
34493
+ allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
34494
+ allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
34495
+ arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
34496
+ charset: charset,
34497
+ charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
34498
+ comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
34499
+ decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
34500
+ delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
34501
+ // eslint-disable-next-line no-implicit-coercion, no-extra-parens
34502
+ depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
34503
+ ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
34504
+ interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
34505
+ parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
34506
+ parseArrays: opts.parseArrays !== false,
34507
+ plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
34508
+ strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
34509
+ };
34510
+ };
34511
+
34512
+ var parse$1 = function (str, opts) {
34513
+ var options = normalizeParseOptions(opts);
34514
+
34515
+ if (str === '' || str === null || typeof str === 'undefined') {
34516
+ return options.plainObjects ? Object.create(null) : {};
34517
+ }
34518
+
34519
+ var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
34520
+ var obj = options.plainObjects ? Object.create(null) : {};
34521
+
34522
+ // Iterate over the keys and setup the new object
34523
+
34524
+ var keys = Object.keys(tempObj);
34525
+ for (var i = 0; i < keys.length; ++i) {
34526
+ var key = keys[i];
34527
+ var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
34528
+ obj = utils.merge(obj, newObj, options);
34529
+ }
34530
+
34531
+ if (options.allowSparse === true) {
34532
+ return obj;
34533
+ }
34534
+
34535
+ return utils.compact(obj);
34536
+ };
34537
+
34538
+ var stringify = stringify_1;
34539
+ var parse = parse$1;
34540
+ var formats = formats$3;
34541
+
34542
+ var lib = {
34543
+ formats: formats,
34544
+ parse: parse,
34545
+ stringify: stringify
34546
+ };
34547
+
34548
+ function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
34549
+ function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
34550
+ var matchesImpl = function matchesImpl(pattern, object) {
34551
+ var __parent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : object;
34552
+ if (object === pattern) return true;
34553
+ if (typeof pattern === "function" && pattern(object, __parent)) return true;
34554
+ if (isNil(pattern) || isNil(object)) return false;
34555
+ if (_typeof$6(pattern) !== "object") return false;
34556
+ return Object.entries(pattern).every(function (_ref) {
34557
+ var _ref2 = _slicedToArray$2(_ref, 2),
34558
+ key = _ref2[0],
34559
+ value = _ref2[1];
34560
+ return matchesImpl(value, object[key], __parent);
34561
+ });
34562
+ };
34563
+ var matches = /*#__PURE__*/curry(function (pattern, object) {
34564
+ return matchesImpl(pattern, object);
34565
+ });
34566
+ var transformObjectDeep = function transformObjectDeep(object, keyValueTransformer) {
34567
+ var objectPreProcessor = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
34568
+ if (objectPreProcessor && typeof objectPreProcessor === "function") {
34569
+ object = objectPreProcessor(object);
34570
+ }
34571
+ if (Array.isArray(object)) {
34572
+ return object.map(function (obj) {
34573
+ return transformObjectDeep(obj, keyValueTransformer, objectPreProcessor);
34574
+ });
34575
+ } else if (object === null || _typeof$6(object) !== "object") {
34576
+ return object;
34577
+ }
34578
+ return Object.fromEntries(Object.entries(object).map(function (_ref3) {
34579
+ var _ref4 = _slicedToArray$2(_ref3, 2),
34580
+ key = _ref4[0],
34581
+ value = _ref4[1];
34582
+ return keyValueTransformer(key, transformObjectDeep(value, keyValueTransformer, objectPreProcessor));
34583
+ }));
34584
+ };
34585
+ var preprocessForSerialization = function preprocessForSerialization(object) {
34586
+ return transformObjectDeep(object, function (key, value) {
34587
+ return [key, value];
34588
+ }, function (object) {
34589
+ return typeof (object === null || object === void 0 ? void 0 : object.toJSON) === "function" ? object.toJSON() : object;
34590
+ });
34591
+ };
34592
+ var getQueryParams = function getQueryParams() {
34593
+ var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
34594
+ return lib.parse(location.search, _objectSpread$2({
34595
+ ignoreQueryPrefix: true
34596
+ }, options));
34597
+ };
34598
+ var modifyBy = /*#__PURE__*/curry(function (pattern, modifier, array) {
34599
+ return array.map(function (item) {
34600
+ return matches(pattern, item) ? modifier(item) : item;
34601
+ });
34602
+ });
34603
+ var snakeToCamelCase = function snakeToCamelCase(string) {
34604
+ return string.replace(/(_\w)/g, function (letter) {
34605
+ return letter[1].toUpperCase();
34606
+ });
34607
+ };
34608
+ var camelToSnakeCase = function camelToSnakeCase(string) {
34609
+ return string.replace(/[A-Z]/g, function (letter) {
34610
+ return "_".concat(letter.toLowerCase());
34611
+ });
34612
+ };
34613
+ var buildUrl = function buildUrl(route, params) {
34614
+ var placeHolders = [];
34615
+ toPairs(params).forEach(function (_ref5) {
34616
+ var _ref6 = _slicedToArray$2(_ref5, 2),
34617
+ key = _ref6[0],
34618
+ value = _ref6[1];
34619
+ if (route.includes(":".concat(key))) {
34620
+ placeHolders.push(key);
34621
+ route = route.replace(":".concat(key), encodeURIComponent(value));
34622
+ }
34623
+ });
34624
+ var queryParams = pipe$1(omit(placeHolders), preprocessForSerialization, lib.stringify)(params);
34625
+ return isEmpty(queryParams) ? route : "".concat(route, "?").concat(queryParams);
34626
+ };
34627
+
34628
+ var useTableSort = function useTableSort() {
34629
+ var queryParams = getQueryParams();
34630
+ var history = reactRouterDom.useHistory();
34631
+ var handleTableChange = function handleTableChange(pagination, sorter) {
34632
+ var params = {
34633
+ sort_by: sorter.order && camelToSnakeCase(sorter.field),
34634
+ order_by: URL_SORT_ORDERS[sorter.order],
34635
+ page: pagination.current,
34636
+ page_size: pagination.pageSize
34637
+ };
34638
+ var pathname = window.location.pathname;
34639
+ history.push(buildUrl(pathname, mergeLeft(params, queryParams)));
34640
+ };
34641
+ return {
34642
+ handleTableChange: handleTableChange
34643
+ };
34644
+ };
34645
+
34646
+ var _excluded$4 = ["allowRowClick", "enableColumnResize", "enableColumnReorder", "className", "columnData", "currentPageNumber", "defaultPageSize", "handlePageChange", "loading", "onRowClick", "onRowSelect", "rowData", "totalCount", "selectedRowKeys", "fixedHeight", "paginationProps", "scroll", "rowSelection", "shouldDynamicallyRenderRowSize", "bordered", "onColumnUpdate", "components", "preserveTableStateInQuery"];
34647
+ function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
34648
+ function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
34649
+ var TABLE_PAGINATION_HEIGHT = 64;
34650
+ var TABLE_DEFAULT_HEADER_HEIGHT = 40;
34651
+ var TABLE_ROW_HEIGHT = 52;
34652
+ var Table = function Table(_ref) {
34653
+ var _ref$allowRowClick = _ref.allowRowClick,
34654
+ allowRowClick = _ref$allowRowClick === void 0 ? true : _ref$allowRowClick,
34655
+ _ref$enableColumnResi = _ref.enableColumnResize,
34656
+ enableColumnResize = _ref$enableColumnResi === void 0 ? false : _ref$enableColumnResi,
34657
+ _ref$enableColumnReor = _ref.enableColumnReorder,
34658
+ enableColumnReorder = _ref$enableColumnReor === void 0 ? false : _ref$enableColumnReor,
34659
+ _ref$className = _ref.className,
34660
+ className = _ref$className === void 0 ? "" : _ref$className,
34661
+ _ref$columnData = _ref.columnData,
34662
+ columnData = _ref$columnData === void 0 ? [] : _ref$columnData,
34663
+ _ref$currentPageNumbe = _ref.currentPageNumber,
34664
+ currentPageNumber = _ref$currentPageNumbe === void 0 ? 1 : _ref$currentPageNumbe,
34665
+ _ref$defaultPageSize = _ref.defaultPageSize,
34666
+ defaultPageSize = _ref$defaultPageSize === void 0 ? 30 : _ref$defaultPageSize,
34667
+ _ref$handlePageChange = _ref.handlePageChange,
34668
+ handlePageChange = _ref$handlePageChange === void 0 ? noop$2 : _ref$handlePageChange,
34669
+ _ref$loading = _ref.loading,
34670
+ loading = _ref$loading === void 0 ? false : _ref$loading,
34671
+ onRowClick = _ref.onRowClick,
34672
+ onRowSelect = _ref.onRowSelect,
34673
+ _ref$rowData = _ref.rowData,
34674
+ rowData = _ref$rowData === void 0 ? [] : _ref$rowData,
34675
+ _ref$totalCount = _ref.totalCount,
34676
+ totalCount = _ref$totalCount === void 0 ? 0 : _ref$totalCount,
34677
+ _ref$selectedRowKeys = _ref.selectedRowKeys,
34678
+ selectedRowKeys = _ref$selectedRowKeys === void 0 ? [] : _ref$selectedRowKeys,
34679
+ _ref$fixedHeight = _ref.fixedHeight,
34680
+ fixedHeight = _ref$fixedHeight === void 0 ? false : _ref$fixedHeight,
34681
+ _ref$paginationProps = _ref.paginationProps,
34682
+ paginationProps = _ref$paginationProps === void 0 ? {} : _ref$paginationProps,
34683
+ scroll = _ref.scroll,
34684
+ rowSelection = _ref.rowSelection,
34685
+ _ref$shouldDynamicall = _ref.shouldDynamicallyRenderRowSize,
34686
+ shouldDynamicallyRenderRowSize = _ref$shouldDynamicall === void 0 ? false : _ref$shouldDynamicall,
34687
+ _ref$bordered = _ref.bordered,
34688
+ bordered = _ref$bordered === void 0 ? true : _ref$bordered,
34689
+ _ref$onColumnUpdate = _ref.onColumnUpdate,
34690
+ onColumnUpdate = _ref$onColumnUpdate === void 0 ? noop$2 : _ref$onColumnUpdate,
34691
+ _ref$components = _ref.components,
34692
+ components = _ref$components === void 0 ? {} : _ref$components,
34693
+ _ref$preserveTableSta = _ref.preserveTableStateInQuery,
34694
+ preserveTableStateInQuery = _ref$preserveTableSta === void 0 ? false : _ref$preserveTableSta,
34695
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$4);
34696
+ var _useState = React$5.useState(null),
34697
+ _useState2 = _slicedToArray$2(_useState, 2),
34698
+ containerHeight = _useState2[0],
34699
+ setContainerHeight = _useState2[1];
34700
+ var _useState3 = React$5.useState(TABLE_DEFAULT_HEADER_HEIGHT),
34701
+ _useState4 = _slicedToArray$2(_useState3, 2),
34702
+ headerHeight = _useState4[0],
34703
+ setHeaderHeight = _useState4[1];
34704
+ var _useState5 = React$5.useState(columnData),
34705
+ _useState6 = _slicedToArray$2(_useState5, 2),
34706
+ columns = _useState6[0],
34707
+ setColumns = _useState6[1];
34708
+ var headerRef = React$5.useRef();
34709
+ var resizeObserver = React$5.useRef(new ResizeObserver(function (_ref2) {
34710
+ var _ref3 = _slicedToArray$2(_ref2, 1),
34711
+ height = _ref3[0].contentRect.height;
34712
+ return setContainerHeight(height);
34713
+ }));
34714
+ var tableRef = React$5.useCallback(function (table) {
34715
+ if (fixedHeight) {
34716
+ if (table !== null) {
34717
+ resizeObserver.current.observe(table === null || table === void 0 ? void 0 : table.parentNode);
34718
+ } else {
34719
+ if (resizeObserver.current) resizeObserver.current.disconnect();
34720
+ }
34721
+ }
34722
+ }, [resizeObserver.current, fixedHeight]);
34723
+ var handleHeaderClasses = function handleHeaderClasses() {
34724
+ var _headerRef$current;
34725
+ Object.values((_headerRef$current = headerRef.current) === null || _headerRef$current === void 0 ? void 0 : _headerRef$current.children).forEach(function (child) {
34726
+ child.setAttribute("data-text-align", child.style["text-align"]);
34727
+ });
34728
+ };
34729
+ useTimeout(function () {
34730
+ var headerHeight = headerRef.current ? headerRef.current.offsetHeight : TABLE_DEFAULT_HEADER_HEIGHT;
34731
+ setHeaderHeight(headerHeight);
34732
+ handleHeaderClasses();
34733
+ }, 0);
34734
+ var _useReorderColumns = useReorderColumns({
34735
+ isEnabled: enableColumnReorder,
34736
+ columns: columns,
34737
+ setColumns: setColumns,
34738
+ onColumnUpdate: onColumnUpdate,
34739
+ rowSelection: rowSelection
34740
+ }),
34741
+ dragProps = _useReorderColumns.dragProps,
34742
+ columnsWithReorderProps = _useReorderColumns.columns;
34743
+ var _useResizableColumns = useResizableColumns({
34744
+ isEnabled: enableColumnResize,
34745
+ columns: columnsWithReorderProps,
34746
+ setColumns: setColumns,
34747
+ onColumnUpdate: onColumnUpdate
34748
+ }),
34749
+ curatedColumnsData = _useResizableColumns.columns;
34750
+ var _useTableSort = useTableSort(),
34751
+ handleTableChange = _useTableSort.handleTableChange;
34752
+ var queryParams = getQueryParams();
34753
+ var setSortFromURL = function setSortFromURL(columnData) {
34754
+ var _queryParams$sort_by;
34755
+ return modifyBy({
34756
+ dataIndex: snakeToCamelCase((_queryParams$sort_by = queryParams.sort_by) !== null && _queryParams$sort_by !== void 0 ? _queryParams$sort_by : "")
34757
+ }, assoc("sortOrder", TABLE_SORT_ORDERS[queryParams.order_by]), columnData);
34758
+ };
34759
+ var sortedColumns = preserveTableStateInQuery ? setSortFromURL(curatedColumnsData) : curatedColumnsData;
34760
+ var locale = {
34761
+ emptyText: /*#__PURE__*/React__default["default"].createElement(Typography, {
34762
+ style: "body2"
34763
+ }, "No Data")
34764
+ };
34765
+ var isPaginationVisible = rowData.length > defaultPageSize;
34766
+ var rowSelectionProps = false;
34767
+ if (rowSelection) {
34768
+ rowSelectionProps = _objectSpread$1(_objectSpread$1({
34769
+ type: "checkbox"
34770
+ }, rowSelection), {}, {
34771
+ onChange: function onChange(selectedRowKeys, selectedRows) {
34772
+ return onRowSelect && onRowSelect(selectedRowKeys, selectedRows);
34773
+ },
34774
+ selectedRowKeys: selectedRowKeys
34775
+ });
34776
+ }
34777
+ var reordableHeader = {
34778
+ header: {
34779
+ cell: enableColumnResize ? enableColumnReorder ? HeaderCell : ResizableHeaderCell : enableColumnReorder ? ReorderableHeaderCell : null
34780
+ }
34781
+ };
34782
+ var componentOverrides = _objectSpread$1(_objectSpread$1({}, components), reordableHeader);
34783
+ var calculateTableContainerHeight = function calculateTableContainerHeight() {
34784
+ return containerHeight - headerHeight - (isPaginationVisible ? TABLE_PAGINATION_HEIGHT : 0);
34785
+ };
34786
+ var itemRender = function itemRender(_, type, originalElement) {
34787
+ if (type === "prev") {
34788
+ return /*#__PURE__*/React__default["default"].createElement(Button, {
34789
+ className: "",
34790
+ icon: neetoIcons.Left,
34791
+ style: "text"
34792
+ });
34793
+ }
34794
+ if (type === "next") {
34795
+ return /*#__PURE__*/React__default["default"].createElement(Button, {
34796
+ className: "",
34797
+ icon: neetoIcons.Right,
34798
+ style: "text"
34799
+ });
34800
+ }
34801
+ if (type === "jump-prev") {
34802
+ return /*#__PURE__*/React__default["default"].createElement(Button, {
34803
+ className: "",
34804
+ icon: neetoIcons.MenuHorizontal,
34805
+ style: "text"
34806
+ });
34807
+ }
34808
+ if (type === "jump-next") {
34809
+ return /*#__PURE__*/React__default["default"].createElement(Button, {
34810
+ className: "",
34811
+ icon: neetoIcons.MenuHorizontal,
34812
+ style: "text"
34813
+ });
34814
+ }
34815
+ return originalElement;
34816
+ };
34817
+ var calculateRowsPerPage = function calculateRowsPerPage() {
34818
+ var viewportHeight = window.innerHeight;
34819
+ var rowsPerPage = Math.floor((viewportHeight - TABLE_PAGINATION_HEIGHT) / TABLE_ROW_HEIGHT * 3);
34820
+ return Math.ceil(rowsPerPage / 10) * 10;
34821
+ };
34822
+ var calculatePageSizeOptions = function calculatePageSizeOptions() {
34823
+ var rowsPerPage = shouldDynamicallyRenderRowSize ? calculateRowsPerPage() : defaultPageSize;
34824
+ var pageSizeOptions = _toConsumableArray$1(Array(5).keys()).map(function (i) {
34825
+ return (i + 1) * rowsPerPage;
34826
+ });
34827
+ return pageSizeOptions;
34828
+ };
34829
+ var renderTable = function renderTable() {
34830
+ return /*#__PURE__*/React__default["default"].createElement(_Table__default["default"], _extends$4({
34831
+ bordered: bordered,
34832
+ columns: sortedColumns,
34833
+ components: componentOverrides,
34834
+ dataSource: rowData,
34835
+ loading: loading,
34836
+ locale: locale,
34837
+ ref: tableRef,
34838
+ rowKey: "id",
34839
+ rowSelection: rowSelectionProps,
34840
+ showSorterTooltip: false,
34841
+ pagination: _objectSpread$1(_objectSpread$1({
34842
+ hideOnSinglePage: true
34843
+ }, paginationProps), {}, {
34844
+ showSizeChanger: false,
34845
+ total: totalCount !== null && totalCount !== void 0 ? totalCount : 0,
34846
+ current: currentPageNumber,
34847
+ defaultPageSize: shouldDynamicallyRenderRowSize ? calculateRowsPerPage() : defaultPageSize,
34848
+ pageSizeOptions: calculatePageSizeOptions(),
34849
+ onChange: handlePageChange,
34850
+ itemRender: itemRender
34851
+ }),
34852
+ rowClassName: classnames$1("neeto-ui-table--row", {
34853
+ "neeto-ui-table--row_hover": allowRowClick
34854
+ }, [className]),
34855
+ scroll: _objectSpread$1({
34856
+ x: "max-content",
34857
+ y: calculateTableContainerHeight()
32252
34858
  }, scroll),
32253
- onChange: handleHeaderClasses,
34859
+ onChange: function onChange(pagination, _, sorter) {
34860
+ handleHeaderClasses();
34861
+ preserveTableStateInQuery && handleTableChange(pagination, sorter);
34862
+ },
32254
34863
  onHeaderRow: function onHeaderRow() {
32255
34864
  return {
32256
34865
  ref: headerRef,