@moda/om 18.2.0 → 18.3.1
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/dist/index.cjs.js +1147 -861
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1147 -861
- package/dist/index.esm.js.map +1 -1
- package/dist/src/components/AspectRatioBox/AspectRatioBox.d.ts +4 -4
- package/dist/src/components/Popover/Popover.d.ts +3 -3
- package/dist/src/components/Text/Text.d.ts +1 -1
- package/package.json +13 -13
- package/src/components/AspectRatioBox/AspectRatioBox.tsx +25 -5
- package/src/components/Popover/Popover.tsx +3 -3
- package/src/components/Text/Text.tsx +1 -1
- package/CHANGELOG.md +0 -702
package/dist/index.cjs.js
CHANGED
|
@@ -516,11 +516,7 @@ breakpoints.breakpoints = {
|
|
|
516
516
|
|
|
517
517
|
var helpers = {};
|
|
518
518
|
|
|
519
|
-
var
|
|
520
|
-
var colorString = {
|
|
521
|
-
get exports(){ return colorStringExports; },
|
|
522
|
-
set exports(v){ colorStringExports = v; },
|
|
523
|
-
};
|
|
519
|
+
var colorString = {exports: {}};
|
|
524
520
|
|
|
525
521
|
var colorName = {
|
|
526
522
|
"aliceblue": [240, 248, 255],
|
|
@@ -673,11 +669,7 @@ var colorName = {
|
|
|
673
669
|
"yellowgreen": [154, 205, 50]
|
|
674
670
|
};
|
|
675
671
|
|
|
676
|
-
var
|
|
677
|
-
var simpleSwizzle = {
|
|
678
|
-
get exports(){ return simpleSwizzleExports; },
|
|
679
|
-
set exports(v){ simpleSwizzleExports = v; },
|
|
680
|
-
};
|
|
672
|
+
var simpleSwizzle = {exports: {}};
|
|
681
673
|
|
|
682
674
|
var isArrayish$1 = function isArrayish(obj) {
|
|
683
675
|
if (!obj || typeof obj === 'string') {
|
|
@@ -707,6 +699,7 @@ swizzle$1.wrap = function (fn) {
|
|
|
707
699
|
return fn(swizzle$1(arguments));
|
|
708
700
|
};
|
|
709
701
|
};
|
|
702
|
+
var simpleSwizzleExports = simpleSwizzle.exports;
|
|
710
703
|
|
|
711
704
|
/* MIT license */
|
|
712
705
|
var colorNames = colorName;
|
|
@@ -898,6 +891,7 @@ function hexDouble(num) {
|
|
|
898
891
|
var str = Math.round(num).toString(16).toUpperCase();
|
|
899
892
|
return str.length < 2 ? '0' + str : str;
|
|
900
893
|
}
|
|
894
|
+
var colorStringExports = colorString.exports;
|
|
901
895
|
|
|
902
896
|
(function (exports) {
|
|
903
897
|
|
|
@@ -905,9 +899,7 @@ function hexDouble(num) {
|
|
|
905
899
|
__assign = Object.assign || function (t) {
|
|
906
900
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
907
901
|
s = arguments[i];
|
|
908
|
-
for (var p in s)
|
|
909
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
910
|
-
}
|
|
902
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
911
903
|
}
|
|
912
904
|
return t;
|
|
913
905
|
};
|
|
@@ -986,9 +978,7 @@ function hexDouble(num) {
|
|
|
986
978
|
o[k2] = m[k];
|
|
987
979
|
});
|
|
988
980
|
var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function (m, exports) {
|
|
989
|
-
for (var p in m)
|
|
990
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
991
|
-
}
|
|
981
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
992
982
|
};
|
|
993
983
|
Object.defineProperty(exports, "__esModule", {
|
|
994
984
|
value: true
|
|
@@ -1073,17 +1063,17 @@ function _objectSpread2(target) {
|
|
|
1073
1063
|
}
|
|
1074
1064
|
return target;
|
|
1075
1065
|
}
|
|
1076
|
-
function _typeof(obj) {
|
|
1066
|
+
function _typeof$1(obj) {
|
|
1077
1067
|
"@babel/helpers - typeof";
|
|
1078
1068
|
|
|
1079
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
1069
|
+
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
1080
1070
|
return typeof obj;
|
|
1081
1071
|
} : function (obj) {
|
|
1082
1072
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
1083
|
-
}, _typeof(obj);
|
|
1073
|
+
}, _typeof$1(obj);
|
|
1084
1074
|
}
|
|
1085
1075
|
function _defineProperty$1(obj, key, value) {
|
|
1086
|
-
key = _toPropertyKey(key);
|
|
1076
|
+
key = _toPropertyKey$1(key);
|
|
1087
1077
|
if (key in obj) {
|
|
1088
1078
|
Object.defineProperty(obj, key, {
|
|
1089
1079
|
value: value,
|
|
@@ -1174,7 +1164,58 @@ function _nonIterableSpread() {
|
|
|
1174
1164
|
function _nonIterableRest() {
|
|
1175
1165
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1176
1166
|
}
|
|
1177
|
-
function
|
|
1167
|
+
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
1168
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
1169
|
+
if (!it) {
|
|
1170
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
1171
|
+
if (it) o = it;
|
|
1172
|
+
var i = 0;
|
|
1173
|
+
var F = function () {};
|
|
1174
|
+
return {
|
|
1175
|
+
s: F,
|
|
1176
|
+
n: function () {
|
|
1177
|
+
if (i >= o.length) return {
|
|
1178
|
+
done: true
|
|
1179
|
+
};
|
|
1180
|
+
return {
|
|
1181
|
+
done: false,
|
|
1182
|
+
value: o[i++]
|
|
1183
|
+
};
|
|
1184
|
+
},
|
|
1185
|
+
e: function (e) {
|
|
1186
|
+
throw e;
|
|
1187
|
+
},
|
|
1188
|
+
f: F
|
|
1189
|
+
};
|
|
1190
|
+
}
|
|
1191
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1192
|
+
}
|
|
1193
|
+
var normalCompletion = true,
|
|
1194
|
+
didErr = false,
|
|
1195
|
+
err;
|
|
1196
|
+
return {
|
|
1197
|
+
s: function () {
|
|
1198
|
+
it = it.call(o);
|
|
1199
|
+
},
|
|
1200
|
+
n: function () {
|
|
1201
|
+
var step = it.next();
|
|
1202
|
+
normalCompletion = step.done;
|
|
1203
|
+
return step;
|
|
1204
|
+
},
|
|
1205
|
+
e: function (e) {
|
|
1206
|
+
didErr = true;
|
|
1207
|
+
err = e;
|
|
1208
|
+
},
|
|
1209
|
+
f: function () {
|
|
1210
|
+
try {
|
|
1211
|
+
if (!normalCompletion && it.return != null) it.return();
|
|
1212
|
+
} finally {
|
|
1213
|
+
if (didErr) throw err;
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
};
|
|
1217
|
+
}
|
|
1218
|
+
function _toPrimitive$1(input, hint) {
|
|
1178
1219
|
if (typeof input !== "object" || input === null) return input;
|
|
1179
1220
|
var prim = input[Symbol.toPrimitive];
|
|
1180
1221
|
if (prim !== undefined) {
|
|
@@ -1184,8 +1225,8 @@ function _toPrimitive(input, hint) {
|
|
|
1184
1225
|
}
|
|
1185
1226
|
return (hint === "string" ? String : Number)(input);
|
|
1186
1227
|
}
|
|
1187
|
-
function _toPropertyKey(arg) {
|
|
1188
|
-
var key = _toPrimitive(arg, "string");
|
|
1228
|
+
function _toPropertyKey$1(arg) {
|
|
1229
|
+
var key = _toPrimitive$1(arg, "string");
|
|
1189
1230
|
return typeof key === "symbol" ? key : String(key);
|
|
1190
1231
|
}
|
|
1191
1232
|
|
|
@@ -1193,11 +1234,7 @@ var isRenderProps = function isRenderProps(children) {
|
|
|
1193
1234
|
return typeof children === 'function';
|
|
1194
1235
|
};
|
|
1195
1236
|
|
|
1196
|
-
var
|
|
1197
|
-
var classnames = {
|
|
1198
|
-
get exports(){ return classnamesExports; },
|
|
1199
|
-
set exports(v){ classnamesExports = v; },
|
|
1200
|
-
};
|
|
1237
|
+
var classnames = {exports: {}};
|
|
1201
1238
|
|
|
1202
1239
|
(function (module) {
|
|
1203
1240
|
/* global define */
|
|
@@ -1210,7 +1247,7 @@ var classnames = {
|
|
|
1210
1247
|
for (var i = 0; i < arguments.length; i++) {
|
|
1211
1248
|
var arg = arguments[i];
|
|
1212
1249
|
if (!arg) continue;
|
|
1213
|
-
var argType = _typeof(arg);
|
|
1250
|
+
var argType = _typeof$1(arg);
|
|
1214
1251
|
if (argType === 'string' || argType === 'number') {
|
|
1215
1252
|
classes.push(arg);
|
|
1216
1253
|
} else if (Array.isArray(arg)) {
|
|
@@ -1242,7 +1279,8 @@ var classnames = {
|
|
|
1242
1279
|
}
|
|
1243
1280
|
})();
|
|
1244
1281
|
})(classnames);
|
|
1245
|
-
var
|
|
1282
|
+
var classnamesExports = classnames.exports;
|
|
1283
|
+
var classNames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
|
|
1246
1284
|
|
|
1247
1285
|
var _excluded$F = ["className", "children", "space", "direction", "alignItems", "justifyContent", "style"];
|
|
1248
1286
|
var Stack = function Stack(_ref) {
|
|
@@ -1298,7 +1336,7 @@ var stringifyProps = function stringifyProps(props) {
|
|
|
1298
1336
|
if (typeof value === 'function') return "".concat(memo, " ").concat(key, "={fn}");
|
|
1299
1337
|
if (typeof value === 'boolean') return "".concat(memo, " ").concat(key).concat(value ? '' : '={false}');
|
|
1300
1338
|
if (typeof value === 'number') return "".concat(memo, " ").concat(key, "={").concat(value, "}");
|
|
1301
|
-
if (_typeof(value) === 'object') return "".concat(memo, " ").concat(key, "={...}");
|
|
1339
|
+
if (_typeof$1(value) === 'object') return "".concat(memo, " ").concat(key, "={...}");
|
|
1302
1340
|
return "".concat(memo, " ").concat(key, "=").concat(value);
|
|
1303
1341
|
}, '');
|
|
1304
1342
|
return stringifiedProps.trim();
|
|
@@ -1306,9 +1344,7 @@ var stringifyProps = function stringifyProps(props) {
|
|
|
1306
1344
|
|
|
1307
1345
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
1308
1346
|
|
|
1309
|
-
/* eslint-enable @typescript-eslint/no-explicit-any */
|
|
1310
|
-
|
|
1311
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1347
|
+
/* eslint-enable @typescript-eslint/no-explicit-any */ // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1312
1348
|
var isEmpty = function isEmpty(obj) {
|
|
1313
1349
|
return Object.entries(obj || {}).length === 0;
|
|
1314
1350
|
};
|
|
@@ -1359,9 +1395,7 @@ var _assign = function __assign() {
|
|
|
1359
1395
|
_assign = Object.assign || function __assign(t) {
|
|
1360
1396
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
1361
1397
|
s = arguments[i];
|
|
1362
|
-
for (var p in s)
|
|
1363
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
1364
|
-
}
|
|
1398
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
1365
1399
|
}
|
|
1366
1400
|
return t;
|
|
1367
1401
|
};
|
|
@@ -1369,9 +1403,7 @@ var _assign = function __assign() {
|
|
|
1369
1403
|
};
|
|
1370
1404
|
function __rest$a(s, e) {
|
|
1371
1405
|
var t = {};
|
|
1372
|
-
for (var p in s)
|
|
1373
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
1374
|
-
}
|
|
1406
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
1375
1407
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
1376
1408
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
1377
1409
|
}
|
|
@@ -1380,14 +1412,8 @@ function __rest$a(s, e) {
|
|
|
1380
1412
|
|
|
1381
1413
|
/** @deprecated */
|
|
1382
1414
|
function __spreadArrays() {
|
|
1383
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
1384
|
-
|
|
1385
|
-
}
|
|
1386
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++) {
|
|
1387
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) {
|
|
1388
|
-
r[k] = a[j];
|
|
1389
|
-
}
|
|
1390
|
-
}
|
|
1415
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
1416
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++) for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) r[k] = a[j];
|
|
1391
1417
|
return r;
|
|
1392
1418
|
}
|
|
1393
1419
|
function __spreadArray(to, from, pack) {
|
|
@@ -1681,17 +1707,9 @@ function _extends() {
|
|
|
1681
1707
|
return _extends.apply(this, arguments);
|
|
1682
1708
|
}
|
|
1683
1709
|
|
|
1684
|
-
var
|
|
1685
|
-
var propTypes = {
|
|
1686
|
-
get exports(){ return propTypesExports; },
|
|
1687
|
-
set exports(v){ propTypesExports = v; },
|
|
1688
|
-
};
|
|
1710
|
+
var propTypes = {exports: {}};
|
|
1689
1711
|
|
|
1690
|
-
var
|
|
1691
|
-
var reactIs = {
|
|
1692
|
-
get exports(){ return reactIsExports; },
|
|
1693
|
-
set exports(v){ reactIsExports = v; },
|
|
1694
|
-
};
|
|
1712
|
+
var reactIs = {exports: {}};
|
|
1695
1713
|
|
|
1696
1714
|
var reactIs_production_min = {};
|
|
1697
1715
|
|
|
@@ -1719,7 +1737,7 @@ function requireReactIs_production_min() {
|
|
|
1719
1737
|
x = b ? Symbol["for"]("react.responder") : 60118,
|
|
1720
1738
|
y = b ? Symbol["for"]("react.scope") : 60119;
|
|
1721
1739
|
function z(a) {
|
|
1722
|
-
if ("object" === _typeof(a) && null !== a) {
|
|
1740
|
+
if ("object" === _typeof$1(a) && null !== a) {
|
|
1723
1741
|
var u = a.$$typeof;
|
|
1724
1742
|
switch (u) {
|
|
1725
1743
|
case c:
|
|
@@ -1775,7 +1793,7 @@ function requireReactIs_production_min() {
|
|
|
1775
1793
|
return z(a) === h;
|
|
1776
1794
|
};
|
|
1777
1795
|
reactIs_production_min.isElement = function (a) {
|
|
1778
|
-
return "object" === _typeof(a) && null !== a && a.$$typeof === c;
|
|
1796
|
+
return "object" === _typeof$1(a) && null !== a && a.$$typeof === c;
|
|
1779
1797
|
};
|
|
1780
1798
|
reactIs_production_min.isForwardRef = function (a) {
|
|
1781
1799
|
return z(a) === n;
|
|
@@ -1802,7 +1820,7 @@ function requireReactIs_production_min() {
|
|
|
1802
1820
|
return z(a) === p;
|
|
1803
1821
|
};
|
|
1804
1822
|
reactIs_production_min.isValidElementType = function (a) {
|
|
1805
|
-
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === _typeof(a) && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
|
|
1823
|
+
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === _typeof$1(a) && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
|
|
1806
1824
|
};
|
|
1807
1825
|
reactIs_production_min.typeOf = z;
|
|
1808
1826
|
return reactIs_production_min;
|
|
@@ -1843,10 +1861,10 @@ function requireReactIs_development() {
|
|
|
1843
1861
|
function isValidElementType(type) {
|
|
1844
1862
|
return typeof type === 'string' || typeof type === 'function' ||
|
|
1845
1863
|
// Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1846
|
-
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || _typeof(type) === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
1864
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || _typeof$1(type) === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
1847
1865
|
}
|
|
1848
1866
|
function typeOf(object) {
|
|
1849
|
-
if (_typeof(object) === 'object' && object !== null) {
|
|
1867
|
+
if (_typeof$1(object) === 'object' && object !== null) {
|
|
1850
1868
|
var $$typeof = object.$$typeof;
|
|
1851
1869
|
switch ($$typeof) {
|
|
1852
1870
|
case REACT_ELEMENT_TYPE:
|
|
@@ -1914,7 +1932,7 @@ function requireReactIs_development() {
|
|
|
1914
1932
|
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
1915
1933
|
}
|
|
1916
1934
|
function isElement(object) {
|
|
1917
|
-
return _typeof(object) === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
1935
|
+
return _typeof$1(object) === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
1918
1936
|
}
|
|
1919
1937
|
function isForwardRef(object) {
|
|
1920
1938
|
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
@@ -1975,17 +1993,14 @@ function requireReactIs_development() {
|
|
|
1975
1993
|
|
|
1976
1994
|
var hasRequiredReactIs;
|
|
1977
1995
|
function requireReactIs() {
|
|
1978
|
-
if (hasRequiredReactIs) return
|
|
1996
|
+
if (hasRequiredReactIs) return reactIs.exports;
|
|
1979
1997
|
hasRequiredReactIs = 1;
|
|
1980
|
-
(
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
}
|
|
1987
|
-
})(reactIs);
|
|
1988
|
-
return reactIsExports;
|
|
1998
|
+
if (process.env.NODE_ENV === 'production') {
|
|
1999
|
+
reactIs.exports = requireReactIs_production_min();
|
|
2000
|
+
} else {
|
|
2001
|
+
reactIs.exports = requireReactIs_development();
|
|
2002
|
+
}
|
|
2003
|
+
return reactIs.exports;
|
|
1989
2004
|
}
|
|
1990
2005
|
|
|
1991
2006
|
/*
|
|
@@ -2146,7 +2161,7 @@ function requireCheckPropTypes() {
|
|
|
2146
2161
|
// This is intentionally an invariant that gets caught. It's the same
|
|
2147
2162
|
// behavior as without this statement except with a better message.
|
|
2148
2163
|
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
2149
|
-
var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + _typeof(typeSpecs[typeSpecName]) + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
|
|
2164
|
+
var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + _typeof$1(typeSpecs[typeSpecName]) + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
|
|
2150
2165
|
err.name = 'Invariant Violation';
|
|
2151
2166
|
throw err;
|
|
2152
2167
|
}
|
|
@@ -2155,7 +2170,7 @@ function requireCheckPropTypes() {
|
|
|
2155
2170
|
error = ex;
|
|
2156
2171
|
}
|
|
2157
2172
|
if (error && !(error instanceof Error)) {
|
|
2158
|
-
printWarning((componentName || 'React class') + ': type specification of ' + location + ' `' + typeSpecName + '` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a ' + _typeof(error) + '. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).');
|
|
2173
|
+
printWarning((componentName || 'React class') + ': type specification of ' + location + ' `' + typeSpecName + '` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a ' + _typeof$1(error) + '. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).');
|
|
2159
2174
|
}
|
|
2160
2175
|
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
2161
2176
|
// Only monitor this failure once because there tends to be a lot of the
|
|
@@ -2337,7 +2352,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
2337
2352
|
*/
|
|
2338
2353
|
function PropTypeError(message, data) {
|
|
2339
2354
|
this.message = message;
|
|
2340
|
-
this.data = data && _typeof(data) === 'object' ? data : {};
|
|
2355
|
+
this.data = data && _typeof$1(data) === 'object' ? data : {};
|
|
2341
2356
|
this.stack = '';
|
|
2342
2357
|
}
|
|
2343
2358
|
// Make `instanceof Error` still work for returned errors.
|
|
@@ -2597,7 +2612,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
2597
2612
|
return createChainableTypeChecker(validate);
|
|
2598
2613
|
}
|
|
2599
2614
|
function isNode(propValue) {
|
|
2600
|
-
switch (_typeof(propValue)) {
|
|
2615
|
+
switch (_typeof$1(propValue)) {
|
|
2601
2616
|
case 'number':
|
|
2602
2617
|
case 'string':
|
|
2603
2618
|
case 'undefined':
|
|
@@ -2665,7 +2680,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
2665
2680
|
|
|
2666
2681
|
// Equivalent of `typeof` but with special handling for array and regexp.
|
|
2667
2682
|
function getPropType(propValue) {
|
|
2668
|
-
var propType = _typeof(propValue);
|
|
2683
|
+
var propType = _typeof$1(propValue);
|
|
2669
2684
|
if (Array.isArray(propValue)) {
|
|
2670
2685
|
return 'array';
|
|
2671
2686
|
}
|
|
@@ -2808,6 +2823,8 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
2808
2823
|
// http://fb.me/prop-types-in-prod
|
|
2809
2824
|
propTypes.exports = requireFactoryWithThrowingShims()();
|
|
2810
2825
|
}
|
|
2826
|
+
var propTypesExports = propTypes.exports;
|
|
2827
|
+
var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
|
|
2811
2828
|
|
|
2812
2829
|
/**
|
|
2813
2830
|
* defines a focus group
|
|
@@ -2842,7 +2859,7 @@ var hiddenGuard = {
|
|
|
2842
2859
|
left: '1px'
|
|
2843
2860
|
};
|
|
2844
2861
|
process.env.NODE_ENV !== "production" ? {
|
|
2845
|
-
children:
|
|
2862
|
+
children: PropTypes.node
|
|
2846
2863
|
} : {};
|
|
2847
2864
|
|
|
2848
2865
|
var mediumFocus = createMedium({}, function (_ref) {
|
|
@@ -2920,7 +2937,7 @@ var FocusLock = /*#__PURE__*/React__namespace.forwardRef(function FocusLockUI(pr
|
|
|
2920
2937
|
if (returnFocusTo && returnFocusTo.focus) {
|
|
2921
2938
|
var howToReturnFocus = typeof shouldReturnFocus === 'function' ? shouldReturnFocus(returnFocusTo) : shouldReturnFocus;
|
|
2922
2939
|
if (howToReturnFocus) {
|
|
2923
|
-
var returnFocusOptions = _typeof(howToReturnFocus) === 'object' ? howToReturnFocus : undefined;
|
|
2940
|
+
var returnFocusOptions = _typeof$1(howToReturnFocus) === 'object' ? howToReturnFocus : undefined;
|
|
2924
2941
|
originalFocusedElement.current = null;
|
|
2925
2942
|
if (allowDefer) {
|
|
2926
2943
|
// React might return focus after update
|
|
@@ -3086,18 +3103,20 @@ var FocusOn$1 = /*#__PURE__*/React__namespace.forwardRef(function (props, parent
|
|
|
3086
3103
|
preventScrollOnFocus = props.preventScrollOnFocus,
|
|
3087
3104
|
style = props.style,
|
|
3088
3105
|
as = props.as,
|
|
3089
|
-
|
|
3106
|
+
gapMode = props.gapMode,
|
|
3107
|
+
rest = __rest$a(props, ["children", "autoFocus", "shards", "enabled", "scrollLock", "focusLock", "returnFocus", "inert", "allowPinchZoom", "sideCar", "className", "shouldIgnore", "preventScrollOnFocus", "style", "as", "gapMode"]);
|
|
3090
3108
|
var SideCar = sideCar;
|
|
3091
3109
|
var onActivation = lockProps.onActivation,
|
|
3092
3110
|
onDeactivation = lockProps.onDeactivation,
|
|
3093
3111
|
restProps = __rest$a(lockProps, ["onActivation", "onDeactivation"]);
|
|
3094
3112
|
var appliedLockProps = _assign(_assign({}, restProps), {
|
|
3113
|
+
as: as,
|
|
3114
|
+
style: style,
|
|
3095
3115
|
sideCar: sideCar,
|
|
3096
3116
|
shards: shards,
|
|
3097
3117
|
allowPinchZoom: allowPinchZoom,
|
|
3098
|
-
|
|
3118
|
+
gapMode: gapMode,
|
|
3099
3119
|
inert: inert,
|
|
3100
|
-
style: style,
|
|
3101
3120
|
enabled: enabled && scrollLock
|
|
3102
3121
|
});
|
|
3103
3122
|
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(FocusLockUI, {
|
|
@@ -3137,7 +3156,34 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
3137
3156
|
_setPrototypeOf(subClass, superClass);
|
|
3138
3157
|
}
|
|
3139
3158
|
|
|
3159
|
+
function _typeof(obj) {
|
|
3160
|
+
"@babel/helpers - typeof";
|
|
3161
|
+
|
|
3162
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
3163
|
+
return typeof obj;
|
|
3164
|
+
} : function (obj) {
|
|
3165
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
3166
|
+
}, _typeof(obj);
|
|
3167
|
+
}
|
|
3168
|
+
|
|
3169
|
+
function _toPrimitive(input, hint) {
|
|
3170
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
3171
|
+
var prim = input[Symbol.toPrimitive];
|
|
3172
|
+
if (prim !== undefined) {
|
|
3173
|
+
var res = prim.call(input, hint || "default");
|
|
3174
|
+
if (_typeof(res) !== "object") return res;
|
|
3175
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3176
|
+
}
|
|
3177
|
+
return (hint === "string" ? String : Number)(input);
|
|
3178
|
+
}
|
|
3179
|
+
|
|
3180
|
+
function _toPropertyKey(arg) {
|
|
3181
|
+
var key = _toPrimitive(arg, "string");
|
|
3182
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
3183
|
+
}
|
|
3184
|
+
|
|
3140
3185
|
function _defineProperty(obj, key, value) {
|
|
3186
|
+
key = _toPropertyKey(key);
|
|
3141
3187
|
if (key in obj) {
|
|
3142
3188
|
Object.defineProperty(obj, key, {
|
|
3143
3189
|
value: value,
|
|
@@ -3839,9 +3885,6 @@ var setFocus = function setFocus(topNode, lastNode, options) {
|
|
|
3839
3885
|
}
|
|
3840
3886
|
};
|
|
3841
3887
|
|
|
3842
|
-
var moveFocusInside = setFocus;
|
|
3843
|
-
//
|
|
3844
|
-
|
|
3845
3888
|
/* eslint-disable no-mixed-operators */
|
|
3846
3889
|
var focusOnBody = function focusOnBody() {
|
|
3847
3890
|
return document && document.activeElement === document.body;
|
|
@@ -3941,7 +3984,7 @@ var activateTrap = function activateTrap() {
|
|
|
3941
3984
|
}
|
|
3942
3985
|
document.body.focus();
|
|
3943
3986
|
} else {
|
|
3944
|
-
result =
|
|
3987
|
+
result = setFocus(workingArea, lastActiveFocus, {
|
|
3945
3988
|
focusOptions: focusOptions
|
|
3946
3989
|
});
|
|
3947
3990
|
lastPortaledElement = {};
|
|
@@ -3998,7 +4041,7 @@ var FocusWatcher = function FocusWatcher() {
|
|
|
3998
4041
|
return null;
|
|
3999
4042
|
};
|
|
4000
4043
|
process.env.NODE_ENV !== "production" ? {
|
|
4001
|
-
children:
|
|
4044
|
+
children: PropTypes.node.isRequired
|
|
4002
4045
|
} : {};
|
|
4003
4046
|
var onWindowBlur = function onWindowBlur() {
|
|
4004
4047
|
focusWasOutsideWindow = 'just'; // using setTimeout to set this variable after React/sidecar reaction
|
|
@@ -4059,7 +4102,7 @@ mediumFocus.assignSyncMedium(onFocus);
|
|
|
4059
4102
|
mediumBlur.assignMedium(onBlur);
|
|
4060
4103
|
mediumEffect.assignMedium(function (cb) {
|
|
4061
4104
|
return cb({
|
|
4062
|
-
moveFocusInside:
|
|
4105
|
+
moveFocusInside: setFocus,
|
|
4063
4106
|
focusInside: focusInside
|
|
4064
4107
|
});
|
|
4065
4108
|
});
|
|
@@ -4067,7 +4110,11 @@ var FocusTrap = withSideEffect(reducePropsToState, handleStateChangeOnClient)(Fo
|
|
|
4067
4110
|
|
|
4068
4111
|
exportSidecar(mediumSidecar, FocusTrap);
|
|
4069
4112
|
|
|
4113
|
+
var currentNonce;
|
|
4070
4114
|
var getNonce = function getNonce() {
|
|
4115
|
+
if (currentNonce) {
|
|
4116
|
+
return currentNonce;
|
|
4117
|
+
}
|
|
4071
4118
|
if (typeof __webpack_nonce__ !== 'undefined') {
|
|
4072
4119
|
return __webpack_nonce__;
|
|
4073
4120
|
}
|
|
@@ -4786,9 +4833,7 @@ var scale = {};
|
|
|
4786
4833
|
__assign = Object.assign || function (t) {
|
|
4787
4834
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4788
4835
|
s = arguments[i];
|
|
4789
|
-
for (var p in s)
|
|
4790
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
4791
|
-
}
|
|
4836
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
4792
4837
|
}
|
|
4793
4838
|
return t;
|
|
4794
4839
|
};
|
|
@@ -4796,9 +4841,7 @@ var scale = {};
|
|
|
4796
4841
|
};
|
|
4797
4842
|
var __rest = commonjsGlobal && commonjsGlobal.__rest || function (s, e) {
|
|
4798
4843
|
var t = {};
|
|
4799
|
-
for (var p in s)
|
|
4800
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
4801
|
-
}
|
|
4844
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
4802
4845
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
4803
4846
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
4804
4847
|
}
|
|
@@ -4858,9 +4901,7 @@ var scale = {};
|
|
|
4858
4901
|
o[k2] = m[k];
|
|
4859
4902
|
});
|
|
4860
4903
|
var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function (m, exports) {
|
|
4861
|
-
for (var p in m)
|
|
4862
|
-
if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
|
4863
|
-
}
|
|
4904
|
+
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
|
4864
4905
|
};
|
|
4865
4906
|
Object.defineProperty(exports, "__esModule", {
|
|
4866
4907
|
value: true
|
|
@@ -4872,34 +4913,65 @@ var _excluded$C = ["aspectWidth", "aspectHeight", "maxWidth", "maxHeight", "outl
|
|
|
4872
4913
|
var DEFAULT_PRODUCT_ASPECT_WIDTH = 128;
|
|
4873
4914
|
var DEFAULT_PRODUCT_ASPECT_HEIGHT = 205;
|
|
4874
4915
|
var DEFAULT_PRODUCT_ASPECT_RATIO = DEFAULT_PRODUCT_ASPECT_HEIGHT / DEFAULT_PRODUCT_ASPECT_WIDTH;
|
|
4875
|
-
var
|
|
4876
|
-
var
|
|
4877
|
-
|
|
4878
|
-
_ref$aspectHeight = _ref.aspectHeight,
|
|
4879
|
-
aspectHeight = _ref$aspectHeight === void 0 ? DEFAULT_PRODUCT_ASPECT_HEIGHT : _ref$aspectHeight,
|
|
4916
|
+
var scaleDimensions = function scaleDimensions(_ref) {
|
|
4917
|
+
var width = _ref.width,
|
|
4918
|
+
height = _ref.height,
|
|
4880
4919
|
maxWidth = _ref.maxWidth,
|
|
4881
|
-
maxHeight = _ref.maxHeight
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4920
|
+
maxHeight = _ref.maxHeight;
|
|
4921
|
+
if (maxWidth && maxHeight) return dist$3.scale({
|
|
4922
|
+
width: width,
|
|
4923
|
+
height: height,
|
|
4924
|
+
maxWidth: maxWidth,
|
|
4925
|
+
maxHeight: maxHeight
|
|
4926
|
+
});
|
|
4927
|
+
if (maxWidth) return dist$3.scale({
|
|
4928
|
+
width: width,
|
|
4929
|
+
height: height,
|
|
4930
|
+
maxWidth: maxWidth
|
|
4931
|
+
});
|
|
4932
|
+
if (maxHeight) return dist$3.scale({
|
|
4933
|
+
width: width,
|
|
4934
|
+
height: height,
|
|
4935
|
+
maxHeight: maxHeight
|
|
4936
|
+
});
|
|
4937
|
+
return {
|
|
4938
|
+
width: width,
|
|
4939
|
+
height: height,
|
|
4940
|
+
paddingBottom: dist$3.paddingBottom({
|
|
4941
|
+
width: width,
|
|
4942
|
+
height: height
|
|
4943
|
+
}),
|
|
4944
|
+
scale: 1
|
|
4945
|
+
};
|
|
4946
|
+
};
|
|
4947
|
+
var AspectRatioBox = /*#__PURE__*/React.forwardRef(function (_ref2, forwardedRef) {
|
|
4948
|
+
var _ref2$aspectWidth = _ref2.aspectWidth,
|
|
4949
|
+
aspectWidth = _ref2$aspectWidth === void 0 ? DEFAULT_PRODUCT_ASPECT_WIDTH : _ref2$aspectWidth,
|
|
4950
|
+
_ref2$aspectHeight = _ref2.aspectHeight,
|
|
4951
|
+
aspectHeight = _ref2$aspectHeight === void 0 ? DEFAULT_PRODUCT_ASPECT_HEIGHT : _ref2$aspectHeight,
|
|
4952
|
+
maxWidth = _ref2.maxWidth,
|
|
4953
|
+
maxHeight = _ref2.maxHeight,
|
|
4954
|
+
_ref2$outlined = _ref2.outlined,
|
|
4955
|
+
outlined = _ref2$outlined === void 0 ? false : _ref2$outlined,
|
|
4956
|
+
children = _ref2.children,
|
|
4957
|
+
className = _ref2.className,
|
|
4958
|
+
rest = _objectWithoutProperties(_ref2, _excluded$C);
|
|
4959
|
+
var _scaleDimensions = scaleDimensions({
|
|
4888
4960
|
width: aspectWidth,
|
|
4889
4961
|
height: aspectHeight,
|
|
4890
4962
|
maxWidth: maxWidth,
|
|
4891
4963
|
maxHeight: maxHeight
|
|
4892
4964
|
}),
|
|
4893
|
-
width =
|
|
4894
|
-
paddingBottom =
|
|
4965
|
+
width = _scaleDimensions.width,
|
|
4966
|
+
paddingBottom = _scaleDimensions.paddingBottom;
|
|
4895
4967
|
return /*#__PURE__*/React.createElement("div", _extends$1({
|
|
4896
4968
|
ref: forwardedRef,
|
|
4897
4969
|
className: classNames('AspectRatioBox', {
|
|
4898
4970
|
'AspectRatioBox--outlined': outlined
|
|
4899
4971
|
}, className),
|
|
4900
|
-
style: {
|
|
4972
|
+
style: maxWidth || maxHeight ? {
|
|
4901
4973
|
maxWidth: "".concat(width, "px")
|
|
4902
|
-
}
|
|
4974
|
+
} : undefined
|
|
4903
4975
|
}, rest), /*#__PURE__*/React.createElement("div", {
|
|
4904
4976
|
className: "AspectRatioBox__wrapper",
|
|
4905
4977
|
style: {
|
|
@@ -5042,7 +5114,7 @@ var T = function T() {
|
|
|
5042
5114
|
var otherwise = T;
|
|
5043
5115
|
|
|
5044
5116
|
function _isPlaceholder(a) {
|
|
5045
|
-
return a != null && _typeof(a) === 'object' && a['@@functional/placeholder'] === true;
|
|
5117
|
+
return a != null && _typeof$1(a) === 'object' && a['@@functional/placeholder'] === true;
|
|
5046
5118
|
}
|
|
5047
5119
|
|
|
5048
5120
|
/**
|
|
@@ -5342,257 +5414,99 @@ var _xfBase = {
|
|
|
5342
5414
|
}
|
|
5343
5415
|
};
|
|
5344
5416
|
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
* @param {*} a
|
|
5354
|
-
* @param {*} b
|
|
5355
|
-
* @return {*}
|
|
5356
|
-
* @see R.maxBy, R.min
|
|
5357
|
-
* @example
|
|
5358
|
-
*
|
|
5359
|
-
* R.max(789, 123); //=> 789
|
|
5360
|
-
* R.max('a', 'b'); //=> 'b'
|
|
5361
|
-
*/
|
|
5362
|
-
|
|
5363
|
-
var max = /*#__PURE__*/
|
|
5364
|
-
_curry2(function max(a, b) {
|
|
5365
|
-
return b > a ? b : a;
|
|
5366
|
-
});
|
|
5417
|
+
function _arrayFromIterator(iter) {
|
|
5418
|
+
var list = [];
|
|
5419
|
+
var next;
|
|
5420
|
+
while (!(next = iter.next()).done) {
|
|
5421
|
+
list.push(next.value);
|
|
5422
|
+
}
|
|
5423
|
+
return list;
|
|
5424
|
+
}
|
|
5367
5425
|
|
|
5368
|
-
function
|
|
5426
|
+
function _includesWith(pred, x, list) {
|
|
5369
5427
|
var idx = 0;
|
|
5370
|
-
var len =
|
|
5371
|
-
var result = Array(len);
|
|
5428
|
+
var len = list.length;
|
|
5372
5429
|
while (idx < len) {
|
|
5373
|
-
|
|
5430
|
+
if (pred(x, list[idx])) {
|
|
5431
|
+
return true;
|
|
5432
|
+
}
|
|
5374
5433
|
idx += 1;
|
|
5375
5434
|
}
|
|
5376
|
-
return
|
|
5435
|
+
return false;
|
|
5377
5436
|
}
|
|
5378
5437
|
|
|
5379
|
-
function
|
|
5380
|
-
|
|
5438
|
+
function _functionName(f) {
|
|
5439
|
+
// String(x => x) evaluates to "x => x", so the pattern may not match.
|
|
5440
|
+
var match = String(f).match(/^function (\w*)/);
|
|
5441
|
+
return match == null ? '' : match[1];
|
|
5381
5442
|
}
|
|
5382
5443
|
|
|
5383
|
-
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
* @private
|
|
5387
|
-
* @category Type
|
|
5388
|
-
* @category List
|
|
5389
|
-
* @sig * -> Boolean
|
|
5390
|
-
* @param {*} x The object to test.
|
|
5391
|
-
* @return {Boolean} `true` if `x` has a numeric length property and extreme indices defined; `false` otherwise.
|
|
5392
|
-
* @example
|
|
5393
|
-
*
|
|
5394
|
-
* _isArrayLike([]); //=> true
|
|
5395
|
-
* _isArrayLike(true); //=> false
|
|
5396
|
-
* _isArrayLike({}); //=> false
|
|
5397
|
-
* _isArrayLike({length: 10}); //=> false
|
|
5398
|
-
* _isArrayLike({0: 'zero', 9: 'nine', length: 10}); //=> true
|
|
5399
|
-
* _isArrayLike({nodeType: 1, length: 1}) // => false
|
|
5400
|
-
*/
|
|
5444
|
+
function _has(prop, obj) {
|
|
5445
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
5446
|
+
}
|
|
5401
5447
|
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
return
|
|
5409
|
-
}
|
|
5410
|
-
|
|
5411
|
-
return
|
|
5412
|
-
}
|
|
5413
|
-
if (_isString(x)) {
|
|
5414
|
-
return false;
|
|
5415
|
-
}
|
|
5416
|
-
if (x.length === 0) {
|
|
5417
|
-
return true;
|
|
5418
|
-
}
|
|
5419
|
-
if (x.length > 0) {
|
|
5420
|
-
return x.hasOwnProperty(0) && x.hasOwnProperty(x.length - 1);
|
|
5448
|
+
// Based on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
5449
|
+
function _objectIs(a, b) {
|
|
5450
|
+
// SameValue algorithm
|
|
5451
|
+
if (a === b) {
|
|
5452
|
+
// Steps 1-5, 7-10
|
|
5453
|
+
// Steps 6.b-6.e: +0 != -0
|
|
5454
|
+
return a !== 0 || 1 / a === 1 / b;
|
|
5455
|
+
} else {
|
|
5456
|
+
// Step 6.a: NaN == NaN
|
|
5457
|
+
return a !== a && b !== b;
|
|
5421
5458
|
}
|
|
5422
|
-
|
|
5423
|
-
|
|
5459
|
+
}
|
|
5460
|
+
var _objectIs$1 = typeof Object.is === 'function' ? Object.is : _objectIs;
|
|
5424
5461
|
|
|
5425
|
-
var
|
|
5462
|
+
var toString$1 = Object.prototype.toString;
|
|
5463
|
+
var _isArguments = /*#__PURE__*/
|
|
5426
5464
|
function () {
|
|
5427
|
-
function
|
|
5428
|
-
|
|
5429
|
-
}
|
|
5430
|
-
|
|
5431
|
-
throw new Error('init not implemented on XWrap');
|
|
5432
|
-
};
|
|
5433
|
-
XWrap.prototype['@@transducer/result'] = function (acc) {
|
|
5434
|
-
return acc;
|
|
5435
|
-
};
|
|
5436
|
-
XWrap.prototype['@@transducer/step'] = function (acc, x) {
|
|
5437
|
-
return this.f(acc, x);
|
|
5465
|
+
return toString$1.call(arguments) === '[object Arguments]' ? function _isArguments(x) {
|
|
5466
|
+
return toString$1.call(x) === '[object Arguments]';
|
|
5467
|
+
} : function _isArguments(x) {
|
|
5468
|
+
return _has('callee', x);
|
|
5438
5469
|
};
|
|
5439
|
-
return XWrap;
|
|
5440
5470
|
}();
|
|
5441
|
-
function _xwrap(fn) {
|
|
5442
|
-
return new XWrap(fn);
|
|
5443
|
-
}
|
|
5444
5471
|
|
|
5472
|
+
var hasEnumBug = ! /*#__PURE__*/
|
|
5473
|
+
{
|
|
5474
|
+
toString: null
|
|
5475
|
+
}.propertyIsEnumerable('toString');
|
|
5476
|
+
var nonEnumerableProps = ['constructor', 'valueOf', 'isPrototypeOf', 'toString', 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString']; // Safari bug
|
|
5477
|
+
|
|
5478
|
+
var hasArgsEnumBug = /*#__PURE__*/
|
|
5479
|
+
function () {
|
|
5480
|
+
|
|
5481
|
+
return arguments.propertyIsEnumerable('length');
|
|
5482
|
+
}();
|
|
5483
|
+
var contains = function contains(list, item) {
|
|
5484
|
+
var idx = 0;
|
|
5485
|
+
while (idx < list.length) {
|
|
5486
|
+
if (list[idx] === item) {
|
|
5487
|
+
return true;
|
|
5488
|
+
}
|
|
5489
|
+
idx += 1;
|
|
5490
|
+
}
|
|
5491
|
+
return false;
|
|
5492
|
+
};
|
|
5445
5493
|
/**
|
|
5446
|
-
*
|
|
5447
|
-
*
|
|
5448
|
-
*
|
|
5494
|
+
* Returns a list containing the names of all the enumerable own properties of
|
|
5495
|
+
* the supplied object.
|
|
5496
|
+
* Note that the order of the output array is not guaranteed to be consistent
|
|
5497
|
+
* across different JS platforms.
|
|
5449
5498
|
*
|
|
5450
5499
|
* @func
|
|
5451
5500
|
* @memberOf R
|
|
5452
|
-
* @since v0.
|
|
5453
|
-
* @category Function
|
|
5501
|
+
* @since v0.1.0
|
|
5454
5502
|
* @category Object
|
|
5455
|
-
* @sig
|
|
5456
|
-
* @param {
|
|
5457
|
-
* @
|
|
5458
|
-
* @
|
|
5459
|
-
* @see R.partial
|
|
5503
|
+
* @sig {k: v} -> [k]
|
|
5504
|
+
* @param {Object} obj The object to extract properties from
|
|
5505
|
+
* @return {Array} An array of the object's own properties.
|
|
5506
|
+
* @see R.keysIn, R.values, R.toPairs
|
|
5460
5507
|
* @example
|
|
5461
5508
|
*
|
|
5462
|
-
*
|
|
5463
|
-
* R.pipe(R.assoc('a', 2), R.tap(log), R.assoc('a', 3))({a: 1}); //=> {a: 3}
|
|
5464
|
-
* // logs {a: 2}
|
|
5465
|
-
* @symb R.bind(f, o)(a, b) = f.call(o, a, b)
|
|
5466
|
-
*/
|
|
5467
|
-
|
|
5468
|
-
var bind = /*#__PURE__*/
|
|
5469
|
-
_curry2(function bind(fn, thisObj) {
|
|
5470
|
-
return _arity(fn.length, function () {
|
|
5471
|
-
return fn.apply(thisObj, arguments);
|
|
5472
|
-
});
|
|
5473
|
-
});
|
|
5474
|
-
|
|
5475
|
-
function _arrayReduce(xf, acc, list) {
|
|
5476
|
-
var idx = 0;
|
|
5477
|
-
var len = list.length;
|
|
5478
|
-
while (idx < len) {
|
|
5479
|
-
acc = xf['@@transducer/step'](acc, list[idx]);
|
|
5480
|
-
if (acc && acc['@@transducer/reduced']) {
|
|
5481
|
-
acc = acc['@@transducer/value'];
|
|
5482
|
-
break;
|
|
5483
|
-
}
|
|
5484
|
-
idx += 1;
|
|
5485
|
-
}
|
|
5486
|
-
return xf['@@transducer/result'](acc);
|
|
5487
|
-
}
|
|
5488
|
-
function _iterableReduce(xf, acc, iter) {
|
|
5489
|
-
var step = iter.next();
|
|
5490
|
-
while (!step.done) {
|
|
5491
|
-
acc = xf['@@transducer/step'](acc, step.value);
|
|
5492
|
-
if (acc && acc['@@transducer/reduced']) {
|
|
5493
|
-
acc = acc['@@transducer/value'];
|
|
5494
|
-
break;
|
|
5495
|
-
}
|
|
5496
|
-
step = iter.next();
|
|
5497
|
-
}
|
|
5498
|
-
return xf['@@transducer/result'](acc);
|
|
5499
|
-
}
|
|
5500
|
-
function _methodReduce(xf, acc, obj, methodName) {
|
|
5501
|
-
return xf['@@transducer/result'](obj[methodName](bind(xf['@@transducer/step'], xf), acc));
|
|
5502
|
-
}
|
|
5503
|
-
var symIterator = typeof Symbol !== 'undefined' ? Symbol.iterator : '@@iterator';
|
|
5504
|
-
function _reduce(fn, acc, list) {
|
|
5505
|
-
if (typeof fn === 'function') {
|
|
5506
|
-
fn = _xwrap(fn);
|
|
5507
|
-
}
|
|
5508
|
-
if (_isArrayLike(list)) {
|
|
5509
|
-
return _arrayReduce(fn, acc, list);
|
|
5510
|
-
}
|
|
5511
|
-
if (typeof list['fantasy-land/reduce'] === 'function') {
|
|
5512
|
-
return _methodReduce(fn, acc, list, 'fantasy-land/reduce');
|
|
5513
|
-
}
|
|
5514
|
-
if (list[symIterator] != null) {
|
|
5515
|
-
return _iterableReduce(fn, acc, list[symIterator]());
|
|
5516
|
-
}
|
|
5517
|
-
if (typeof list.next === 'function') {
|
|
5518
|
-
return _iterableReduce(fn, acc, list);
|
|
5519
|
-
}
|
|
5520
|
-
if (typeof list.reduce === 'function') {
|
|
5521
|
-
return _methodReduce(fn, acc, list, 'reduce');
|
|
5522
|
-
}
|
|
5523
|
-
throw new TypeError('reduce: list must be array or iterable');
|
|
5524
|
-
}
|
|
5525
|
-
|
|
5526
|
-
var XMap = /*#__PURE__*/
|
|
5527
|
-
function () {
|
|
5528
|
-
function XMap(f, xf) {
|
|
5529
|
-
this.xf = xf;
|
|
5530
|
-
this.f = f;
|
|
5531
|
-
}
|
|
5532
|
-
XMap.prototype['@@transducer/init'] = _xfBase.init;
|
|
5533
|
-
XMap.prototype['@@transducer/result'] = _xfBase.result;
|
|
5534
|
-
XMap.prototype['@@transducer/step'] = function (result, input) {
|
|
5535
|
-
return this.xf['@@transducer/step'](result, this.f(input));
|
|
5536
|
-
};
|
|
5537
|
-
return XMap;
|
|
5538
|
-
}();
|
|
5539
|
-
var _xmap = /*#__PURE__*/
|
|
5540
|
-
_curry2(function _xmap(f, xf) {
|
|
5541
|
-
return new XMap(f, xf);
|
|
5542
|
-
});
|
|
5543
|
-
|
|
5544
|
-
function _has(prop, obj) {
|
|
5545
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
5546
|
-
}
|
|
5547
|
-
|
|
5548
|
-
var toString = Object.prototype.toString;
|
|
5549
|
-
var _isArguments = /*#__PURE__*/
|
|
5550
|
-
function () {
|
|
5551
|
-
return toString.call(arguments) === '[object Arguments]' ? function _isArguments(x) {
|
|
5552
|
-
return toString.call(x) === '[object Arguments]';
|
|
5553
|
-
} : function _isArguments(x) {
|
|
5554
|
-
return _has('callee', x);
|
|
5555
|
-
};
|
|
5556
|
-
}();
|
|
5557
|
-
|
|
5558
|
-
var hasEnumBug = ! /*#__PURE__*/
|
|
5559
|
-
{
|
|
5560
|
-
toString: null
|
|
5561
|
-
}.propertyIsEnumerable('toString');
|
|
5562
|
-
var nonEnumerableProps = ['constructor', 'valueOf', 'isPrototypeOf', 'toString', 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString']; // Safari bug
|
|
5563
|
-
|
|
5564
|
-
var hasArgsEnumBug = /*#__PURE__*/
|
|
5565
|
-
function () {
|
|
5566
|
-
|
|
5567
|
-
return arguments.propertyIsEnumerable('length');
|
|
5568
|
-
}();
|
|
5569
|
-
var contains = function contains(list, item) {
|
|
5570
|
-
var idx = 0;
|
|
5571
|
-
while (idx < list.length) {
|
|
5572
|
-
if (list[idx] === item) {
|
|
5573
|
-
return true;
|
|
5574
|
-
}
|
|
5575
|
-
idx += 1;
|
|
5576
|
-
}
|
|
5577
|
-
return false;
|
|
5578
|
-
};
|
|
5579
|
-
/**
|
|
5580
|
-
* Returns a list containing the names of all the enumerable own properties of
|
|
5581
|
-
* the supplied object.
|
|
5582
|
-
* Note that the order of the output array is not guaranteed to be consistent
|
|
5583
|
-
* across different JS platforms.
|
|
5584
|
-
*
|
|
5585
|
-
* @func
|
|
5586
|
-
* @memberOf R
|
|
5587
|
-
* @since v0.1.0
|
|
5588
|
-
* @category Object
|
|
5589
|
-
* @sig {k: v} -> [k]
|
|
5590
|
-
* @param {Object} obj The object to extract properties from
|
|
5591
|
-
* @return {Array} An array of the object's own properties.
|
|
5592
|
-
* @see R.keysIn, R.values, R.toPairs
|
|
5593
|
-
* @example
|
|
5594
|
-
*
|
|
5595
|
-
* R.keys({a: 1, b: 2, c: 3}); //=> ['a', 'b', 'c']
|
|
5509
|
+
* R.keys({a: 1, b: 2, c: 3}); //=> ['a', 'b', 'c']
|
|
5596
5510
|
*/
|
|
5597
5511
|
|
|
5598
5512
|
var keys = typeof Object.keys === 'function' && !hasArgsEnumBug ? /*#__PURE__*/
|
|
@@ -5624,110 +5538,6 @@ _curry1(function keys(obj) {
|
|
|
5624
5538
|
return ks;
|
|
5625
5539
|
});
|
|
5626
5540
|
|
|
5627
|
-
/**
|
|
5628
|
-
* Takes a function and
|
|
5629
|
-
* a [functor](https://github.com/fantasyland/fantasy-land#functor),
|
|
5630
|
-
* applies the function to each of the functor's values, and returns
|
|
5631
|
-
* a functor of the same shape.
|
|
5632
|
-
*
|
|
5633
|
-
* Ramda provides suitable `map` implementations for `Array` and `Object`,
|
|
5634
|
-
* so this function may be applied to `[1, 2, 3]` or `{x: 1, y: 2, z: 3}`.
|
|
5635
|
-
*
|
|
5636
|
-
* Dispatches to the `map` method of the second argument, if present.
|
|
5637
|
-
*
|
|
5638
|
-
* Acts as a transducer if a transformer is given in list position.
|
|
5639
|
-
*
|
|
5640
|
-
* Also treats functions as functors and will compose them together.
|
|
5641
|
-
*
|
|
5642
|
-
* @func
|
|
5643
|
-
* @memberOf R
|
|
5644
|
-
* @since v0.1.0
|
|
5645
|
-
* @category List
|
|
5646
|
-
* @sig Functor f => (a -> b) -> f a -> f b
|
|
5647
|
-
* @param {Function} fn The function to be called on every element of the input `list`.
|
|
5648
|
-
* @param {Array} list The list to be iterated over.
|
|
5649
|
-
* @return {Array} The new list.
|
|
5650
|
-
* @see R.transduce, R.addIndex, R.pluck, R.project
|
|
5651
|
-
* @example
|
|
5652
|
-
*
|
|
5653
|
-
* const double = x => x * 2;
|
|
5654
|
-
*
|
|
5655
|
-
* R.map(double, [1, 2, 3]); //=> [2, 4, 6]
|
|
5656
|
-
*
|
|
5657
|
-
* R.map(double, {x: 1, y: 2, z: 3}); //=> {x: 2, y: 4, z: 6}
|
|
5658
|
-
* @symb R.map(f, [a, b]) = [f(a), f(b)]
|
|
5659
|
-
* @symb R.map(f, { x: a, y: b }) = { x: f(a), y: f(b) }
|
|
5660
|
-
* @symb R.map(f, functor_o) = functor_o.map(f)
|
|
5661
|
-
*/
|
|
5662
|
-
|
|
5663
|
-
var map = /*#__PURE__*/
|
|
5664
|
-
_curry2( /*#__PURE__*/
|
|
5665
|
-
_dispatchable(['fantasy-land/map', 'map'], _xmap, function map(fn, functor) {
|
|
5666
|
-
switch (Object.prototype.toString.call(functor)) {
|
|
5667
|
-
case '[object Function]':
|
|
5668
|
-
return curryN(functor.length, function () {
|
|
5669
|
-
return fn.call(this, functor.apply(this, arguments));
|
|
5670
|
-
});
|
|
5671
|
-
case '[object Object]':
|
|
5672
|
-
return _reduce(function (acc, key) {
|
|
5673
|
-
acc[key] = fn(functor[key]);
|
|
5674
|
-
return acc;
|
|
5675
|
-
}, {}, keys(functor));
|
|
5676
|
-
default:
|
|
5677
|
-
return _map(fn, functor);
|
|
5678
|
-
}
|
|
5679
|
-
}));
|
|
5680
|
-
|
|
5681
|
-
/**
|
|
5682
|
-
* Returns a single item by iterating through the list, successively calling
|
|
5683
|
-
* the iterator function and passing it an accumulator value and the current
|
|
5684
|
-
* value from the array, and then passing the result to the next call.
|
|
5685
|
-
*
|
|
5686
|
-
* The iterator function receives two values: *(acc, value)*. It may use
|
|
5687
|
-
* [`R.reduced`](#reduced) to shortcut the iteration.
|
|
5688
|
-
*
|
|
5689
|
-
* The arguments' order of [`reduceRight`](#reduceRight)'s iterator function
|
|
5690
|
-
* is *(value, acc)*.
|
|
5691
|
-
*
|
|
5692
|
-
* Note: `R.reduce` does not skip deleted or unassigned indices (sparse
|
|
5693
|
-
* arrays), unlike the native `Array.prototype.reduce` method. For more details
|
|
5694
|
-
* on this behavior, see:
|
|
5695
|
-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce#Description
|
|
5696
|
-
*
|
|
5697
|
-
* Dispatches to the `reduce` method of the third argument, if present. When
|
|
5698
|
-
* doing so, it is up to the user to handle the [`R.reduced`](#reduced)
|
|
5699
|
-
* shortcuting, as this is not implemented by `reduce`.
|
|
5700
|
-
*
|
|
5701
|
-
* @func
|
|
5702
|
-
* @memberOf R
|
|
5703
|
-
* @since v0.1.0
|
|
5704
|
-
* @category List
|
|
5705
|
-
* @sig ((a, b) -> a) -> a -> [b] -> a
|
|
5706
|
-
* @param {Function} fn The iterator function. Receives two values, the accumulator and the
|
|
5707
|
-
* current element from the array.
|
|
5708
|
-
* @param {*} acc The accumulator value.
|
|
5709
|
-
* @param {Array} list The list to iterate over.
|
|
5710
|
-
* @return {*} The final, accumulated value.
|
|
5711
|
-
* @see R.reduced, R.addIndex, R.reduceRight
|
|
5712
|
-
* @example
|
|
5713
|
-
*
|
|
5714
|
-
* R.reduce(R.subtract, 0, [1, 2, 3, 4]) // => ((((0 - 1) - 2) - 3) - 4) = -10
|
|
5715
|
-
* // - -10
|
|
5716
|
-
* // / \ / \
|
|
5717
|
-
* // - 4 -6 4
|
|
5718
|
-
* // / \ / \
|
|
5719
|
-
* // - 3 ==> -3 3
|
|
5720
|
-
* // / \ / \
|
|
5721
|
-
* // - 2 -1 2
|
|
5722
|
-
* // / \ / \
|
|
5723
|
-
* // 0 1 0 1
|
|
5724
|
-
*
|
|
5725
|
-
* @symb R.reduce(f, a, [b, c, d]) = f(f(f(a, b), c), d)
|
|
5726
|
-
*/
|
|
5727
|
-
|
|
5728
|
-
var reduce = /*#__PURE__*/
|
|
5729
|
-
_curry3(_reduce);
|
|
5730
|
-
|
|
5731
5541
|
/**
|
|
5732
5542
|
* Gives a single-word string description of the (native) type of a value,
|
|
5733
5543
|
* returning such answers as 'Object', 'Number', 'Array', or 'Null'. Does not
|
|
@@ -5738,7 +5548,7 @@ _curry3(_reduce);
|
|
|
5738
5548
|
* @memberOf R
|
|
5739
5549
|
* @since v0.8.0
|
|
5740
5550
|
* @category Type
|
|
5741
|
-
* @sig
|
|
5551
|
+
* @sig * -> String
|
|
5742
5552
|
* @param {*} val The value to test
|
|
5743
5553
|
* @return {String}
|
|
5744
5554
|
* @example
|
|
@@ -5759,95 +5569,27 @@ _curry1(function type(val) {
|
|
|
5759
5569
|
return val === null ? 'Null' : val === undefined ? 'Undefined' : Object.prototype.toString.call(val).slice(8, -1);
|
|
5760
5570
|
});
|
|
5761
5571
|
|
|
5762
|
-
function _identity(x) {
|
|
5763
|
-
return x;
|
|
5764
|
-
}
|
|
5765
|
-
|
|
5766
5572
|
/**
|
|
5767
|
-
*
|
|
5768
|
-
*
|
|
5769
|
-
*
|
|
5770
|
-
*
|
|
5771
|
-
* @memberOf R
|
|
5772
|
-
* @since v0.1.0
|
|
5773
|
-
* @category Function
|
|
5774
|
-
* @sig a -> a
|
|
5775
|
-
* @param {*} x The value to return.
|
|
5776
|
-
* @return {*} The input value, `x`.
|
|
5777
|
-
* @example
|
|
5778
|
-
*
|
|
5779
|
-
* R.identity(1); //=> 1
|
|
5573
|
+
* private _uniqContentEquals function.
|
|
5574
|
+
* That function is checking equality of 2 iterator contents with 2 assumptions
|
|
5575
|
+
* - iterators lengths are the same
|
|
5576
|
+
* - iterators values are unique
|
|
5780
5577
|
*
|
|
5781
|
-
*
|
|
5782
|
-
*
|
|
5783
|
-
*
|
|
5784
|
-
*/
|
|
5578
|
+
* false-positive result will be returned for comparison of, e.g.
|
|
5579
|
+
* - [1,2,3] and [1,2,3,4]
|
|
5580
|
+
* - [1,1,1] and [1,2,3]
|
|
5581
|
+
* */
|
|
5785
5582
|
|
|
5786
|
-
|
|
5787
|
-
|
|
5583
|
+
function _uniqContentEquals(aIterator, bIterator, stackA, stackB) {
|
|
5584
|
+
var a = _arrayFromIterator(aIterator);
|
|
5585
|
+
var b = _arrayFromIterator(bIterator);
|
|
5586
|
+
function eq(_a, _b) {
|
|
5587
|
+
return _equals(_a, _b, stackA.slice(), stackB.slice());
|
|
5588
|
+
} // if *a* array contains any element that is not included in *b*
|
|
5788
5589
|
|
|
5789
|
-
function
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
while (!(next = iter.next()).done) {
|
|
5793
|
-
list.push(next.value);
|
|
5794
|
-
}
|
|
5795
|
-
return list;
|
|
5796
|
-
}
|
|
5797
|
-
|
|
5798
|
-
function _includesWith(pred, x, list) {
|
|
5799
|
-
var idx = 0;
|
|
5800
|
-
var len = list.length;
|
|
5801
|
-
while (idx < len) {
|
|
5802
|
-
if (pred(x, list[idx])) {
|
|
5803
|
-
return true;
|
|
5804
|
-
}
|
|
5805
|
-
idx += 1;
|
|
5806
|
-
}
|
|
5807
|
-
return false;
|
|
5808
|
-
}
|
|
5809
|
-
|
|
5810
|
-
function _functionName(f) {
|
|
5811
|
-
// String(x => x) evaluates to "x => x", so the pattern may not match.
|
|
5812
|
-
var match = String(f).match(/^function (\w*)/);
|
|
5813
|
-
return match == null ? '' : match[1];
|
|
5814
|
-
}
|
|
5815
|
-
|
|
5816
|
-
// Based on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
5817
|
-
function _objectIs(a, b) {
|
|
5818
|
-
// SameValue algorithm
|
|
5819
|
-
if (a === b) {
|
|
5820
|
-
// Steps 1-5, 7-10
|
|
5821
|
-
// Steps 6.b-6.e: +0 != -0
|
|
5822
|
-
return a !== 0 || 1 / a === 1 / b;
|
|
5823
|
-
} else {
|
|
5824
|
-
// Step 6.a: NaN == NaN
|
|
5825
|
-
return a !== a && b !== b;
|
|
5826
|
-
}
|
|
5827
|
-
}
|
|
5828
|
-
var _objectIs$1 = typeof Object.is === 'function' ? Object.is : _objectIs;
|
|
5829
|
-
|
|
5830
|
-
/**
|
|
5831
|
-
* private _uniqContentEquals function.
|
|
5832
|
-
* That function is checking equality of 2 iterator contents with 2 assumptions
|
|
5833
|
-
* - iterators lengths are the same
|
|
5834
|
-
* - iterators values are unique
|
|
5835
|
-
*
|
|
5836
|
-
* false-positive result will be returned for comparison of, e.g.
|
|
5837
|
-
* - [1,2,3] and [1,2,3,4]
|
|
5838
|
-
* - [1,1,1] and [1,2,3]
|
|
5839
|
-
* */
|
|
5840
|
-
|
|
5841
|
-
function _uniqContentEquals(aIterator, bIterator, stackA, stackB) {
|
|
5842
|
-
var a = _arrayFromIterator(aIterator);
|
|
5843
|
-
var b = _arrayFromIterator(bIterator);
|
|
5844
|
-
function eq(_a, _b) {
|
|
5845
|
-
return _equals(_a, _b, stackA.slice(), stackB.slice());
|
|
5846
|
-
} // if *a* array contains any element that is not included in *b*
|
|
5847
|
-
|
|
5848
|
-
return !_includesWith(function (b, aItem) {
|
|
5849
|
-
return !_includesWith(eq, aItem, b);
|
|
5850
|
-
}, b, a);
|
|
5590
|
+
return !_includesWith(function (b, aItem) {
|
|
5591
|
+
return !_includesWith(eq, aItem, b);
|
|
5592
|
+
}, b, a);
|
|
5851
5593
|
}
|
|
5852
5594
|
function _equals(a, b, stackA, stackB) {
|
|
5853
5595
|
if (_objectIs$1(a, b)) {
|
|
@@ -5874,7 +5616,7 @@ function _equals(a, b, stackA, stackB) {
|
|
|
5874
5616
|
case 'Boolean':
|
|
5875
5617
|
case 'Number':
|
|
5876
5618
|
case 'String':
|
|
5877
|
-
if (!(_typeof(a) === _typeof(b) && _objectIs$1(a.valueOf(), b.valueOf()))) {
|
|
5619
|
+
if (!(_typeof$1(a) === _typeof$1(b) && _objectIs$1(a.valueOf(), b.valueOf()))) {
|
|
5878
5620
|
return false;
|
|
5879
5621
|
}
|
|
5880
5622
|
break;
|
|
@@ -5929,115 +5671,711 @@ function _equals(a, b, stackA, stackB) {
|
|
|
5929
5671
|
case 'Float64Array':
|
|
5930
5672
|
case 'ArrayBuffer':
|
|
5931
5673
|
break;
|
|
5932
|
-
default:
|
|
5933
|
-
// Values of other types are only equal if identical.
|
|
5934
|
-
return false;
|
|
5935
|
-
}
|
|
5936
|
-
var keysA = keys(a);
|
|
5937
|
-
if (keysA.length !== keys(b).length) {
|
|
5938
|
-
return false;
|
|
5939
|
-
}
|
|
5940
|
-
var extendedStackA = stackA.concat([a]);
|
|
5941
|
-
var extendedStackB = stackB.concat([b]);
|
|
5942
|
-
idx = keysA.length - 1;
|
|
5943
|
-
while (idx >= 0) {
|
|
5944
|
-
var key = keysA[idx];
|
|
5945
|
-
if (!(_has(key, b) && _equals(b[key], a[key], extendedStackA, extendedStackB))) {
|
|
5946
|
-
return false;
|
|
5674
|
+
default:
|
|
5675
|
+
// Values of other types are only equal if identical.
|
|
5676
|
+
return false;
|
|
5677
|
+
}
|
|
5678
|
+
var keysA = keys(a);
|
|
5679
|
+
if (keysA.length !== keys(b).length) {
|
|
5680
|
+
return false;
|
|
5681
|
+
}
|
|
5682
|
+
var extendedStackA = stackA.concat([a]);
|
|
5683
|
+
var extendedStackB = stackB.concat([b]);
|
|
5684
|
+
idx = keysA.length - 1;
|
|
5685
|
+
while (idx >= 0) {
|
|
5686
|
+
var key = keysA[idx];
|
|
5687
|
+
if (!(_has(key, b) && _equals(b[key], a[key], extendedStackA, extendedStackB))) {
|
|
5688
|
+
return false;
|
|
5689
|
+
}
|
|
5690
|
+
idx -= 1;
|
|
5691
|
+
}
|
|
5692
|
+
return true;
|
|
5693
|
+
}
|
|
5694
|
+
|
|
5695
|
+
/**
|
|
5696
|
+
* Returns `true` if its arguments are equivalent, `false` otherwise. Handles
|
|
5697
|
+
* cyclical data structures.
|
|
5698
|
+
*
|
|
5699
|
+
* Dispatches symmetrically to the `equals` methods of both arguments, if
|
|
5700
|
+
* present.
|
|
5701
|
+
*
|
|
5702
|
+
* @func
|
|
5703
|
+
* @memberOf R
|
|
5704
|
+
* @since v0.15.0
|
|
5705
|
+
* @category Relation
|
|
5706
|
+
* @sig a -> b -> Boolean
|
|
5707
|
+
* @param {*} a
|
|
5708
|
+
* @param {*} b
|
|
5709
|
+
* @return {Boolean}
|
|
5710
|
+
* @example
|
|
5711
|
+
*
|
|
5712
|
+
* R.equals(1, 1); //=> true
|
|
5713
|
+
* R.equals(1, '1'); //=> false
|
|
5714
|
+
* R.equals([1, 2, 3], [1, 2, 3]); //=> true
|
|
5715
|
+
*
|
|
5716
|
+
* const a = {}; a.v = a;
|
|
5717
|
+
* const b = {}; b.v = b;
|
|
5718
|
+
* R.equals(a, b); //=> true
|
|
5719
|
+
*/
|
|
5720
|
+
|
|
5721
|
+
var equals = /*#__PURE__*/
|
|
5722
|
+
_curry2(function equals(a, b) {
|
|
5723
|
+
return _equals(a, b, [], []);
|
|
5724
|
+
});
|
|
5725
|
+
|
|
5726
|
+
function _indexOf(list, a, idx) {
|
|
5727
|
+
var inf, item; // Array.prototype.indexOf doesn't exist below IE9
|
|
5728
|
+
|
|
5729
|
+
if (typeof list.indexOf === 'function') {
|
|
5730
|
+
switch (_typeof$1(a)) {
|
|
5731
|
+
case 'number':
|
|
5732
|
+
if (a === 0) {
|
|
5733
|
+
// manually crawl the list to distinguish between +0 and -0
|
|
5734
|
+
inf = 1 / a;
|
|
5735
|
+
while (idx < list.length) {
|
|
5736
|
+
item = list[idx];
|
|
5737
|
+
if (item === 0 && 1 / item === inf) {
|
|
5738
|
+
return idx;
|
|
5739
|
+
}
|
|
5740
|
+
idx += 1;
|
|
5741
|
+
}
|
|
5742
|
+
return -1;
|
|
5743
|
+
} else if (a !== a) {
|
|
5744
|
+
// NaN
|
|
5745
|
+
while (idx < list.length) {
|
|
5746
|
+
item = list[idx];
|
|
5747
|
+
if (typeof item === 'number' && item !== item) {
|
|
5748
|
+
return idx;
|
|
5749
|
+
}
|
|
5750
|
+
idx += 1;
|
|
5751
|
+
}
|
|
5752
|
+
return -1;
|
|
5753
|
+
} // non-zero numbers can utilise Set
|
|
5754
|
+
|
|
5755
|
+
return list.indexOf(a, idx);
|
|
5756
|
+
// all these types can utilise Set
|
|
5757
|
+
|
|
5758
|
+
case 'string':
|
|
5759
|
+
case 'boolean':
|
|
5760
|
+
case 'function':
|
|
5761
|
+
case 'undefined':
|
|
5762
|
+
return list.indexOf(a, idx);
|
|
5763
|
+
case 'object':
|
|
5764
|
+
if (a === null) {
|
|
5765
|
+
// null can utilise Set
|
|
5766
|
+
return list.indexOf(a, idx);
|
|
5767
|
+
}
|
|
5768
|
+
}
|
|
5769
|
+
} // anything else not covered above, defer to R.equals
|
|
5770
|
+
|
|
5771
|
+
while (idx < list.length) {
|
|
5772
|
+
if (equals(list[idx], a)) {
|
|
5773
|
+
return idx;
|
|
5774
|
+
}
|
|
5775
|
+
idx += 1;
|
|
5776
|
+
}
|
|
5777
|
+
return -1;
|
|
5778
|
+
}
|
|
5779
|
+
|
|
5780
|
+
function _includes(a, list) {
|
|
5781
|
+
return _indexOf(list, a, 0) >= 0;
|
|
5782
|
+
}
|
|
5783
|
+
|
|
5784
|
+
function _map(fn, functor) {
|
|
5785
|
+
var idx = 0;
|
|
5786
|
+
var len = functor.length;
|
|
5787
|
+
var result = Array(len);
|
|
5788
|
+
while (idx < len) {
|
|
5789
|
+
result[idx] = fn(functor[idx]);
|
|
5790
|
+
idx += 1;
|
|
5791
|
+
}
|
|
5792
|
+
return result;
|
|
5793
|
+
}
|
|
5794
|
+
|
|
5795
|
+
function _quote(s) {
|
|
5796
|
+
var escaped = s.replace(/\\/g, '\\\\').replace(/[\b]/g, '\\b') // \b matches word boundary; [\b] matches backspace
|
|
5797
|
+
.replace(/\f/g, '\\f').replace(/\n/g, '\\n').replace(/\r/g, '\\r').replace(/\t/g, '\\t').replace(/\v/g, '\\v').replace(/\0/g, '\\0');
|
|
5798
|
+
return '"' + escaped.replace(/"/g, '\\"') + '"';
|
|
5799
|
+
}
|
|
5800
|
+
|
|
5801
|
+
/**
|
|
5802
|
+
* Polyfill from <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString>.
|
|
5803
|
+
*/
|
|
5804
|
+
var pad = function pad(n) {
|
|
5805
|
+
return (n < 10 ? '0' : '') + n;
|
|
5806
|
+
};
|
|
5807
|
+
var _toISOString = typeof Date.prototype.toISOString === 'function' ? function _toISOString(d) {
|
|
5808
|
+
return d.toISOString();
|
|
5809
|
+
} : function _toISOString(d) {
|
|
5810
|
+
return d.getUTCFullYear() + '-' + pad(d.getUTCMonth() + 1) + '-' + pad(d.getUTCDate()) + 'T' + pad(d.getUTCHours()) + ':' + pad(d.getUTCMinutes()) + ':' + pad(d.getUTCSeconds()) + '.' + (d.getUTCMilliseconds() / 1000).toFixed(3).slice(2, 5) + 'Z';
|
|
5811
|
+
};
|
|
5812
|
+
|
|
5813
|
+
function _complement(f) {
|
|
5814
|
+
return function () {
|
|
5815
|
+
return !f.apply(this, arguments);
|
|
5816
|
+
};
|
|
5817
|
+
}
|
|
5818
|
+
|
|
5819
|
+
function _arrayReduce(reducer, acc, list) {
|
|
5820
|
+
var index = 0;
|
|
5821
|
+
var length = list.length;
|
|
5822
|
+
while (index < length) {
|
|
5823
|
+
acc = reducer(acc, list[index]);
|
|
5824
|
+
index += 1;
|
|
5825
|
+
}
|
|
5826
|
+
return acc;
|
|
5827
|
+
}
|
|
5828
|
+
|
|
5829
|
+
function _filter(fn, list) {
|
|
5830
|
+
var idx = 0;
|
|
5831
|
+
var len = list.length;
|
|
5832
|
+
var result = [];
|
|
5833
|
+
while (idx < len) {
|
|
5834
|
+
if (fn(list[idx])) {
|
|
5835
|
+
result[result.length] = list[idx];
|
|
5836
|
+
}
|
|
5837
|
+
idx += 1;
|
|
5838
|
+
}
|
|
5839
|
+
return result;
|
|
5840
|
+
}
|
|
5841
|
+
|
|
5842
|
+
function _isObject(x) {
|
|
5843
|
+
return Object.prototype.toString.call(x) === '[object Object]';
|
|
5844
|
+
}
|
|
5845
|
+
|
|
5846
|
+
var XFilter = /*#__PURE__*/
|
|
5847
|
+
function () {
|
|
5848
|
+
function XFilter(f, xf) {
|
|
5849
|
+
this.xf = xf;
|
|
5850
|
+
this.f = f;
|
|
5851
|
+
}
|
|
5852
|
+
XFilter.prototype['@@transducer/init'] = _xfBase.init;
|
|
5853
|
+
XFilter.prototype['@@transducer/result'] = _xfBase.result;
|
|
5854
|
+
XFilter.prototype['@@transducer/step'] = function (result, input) {
|
|
5855
|
+
return this.f(input) ? this.xf['@@transducer/step'](result, input) : result;
|
|
5856
|
+
};
|
|
5857
|
+
return XFilter;
|
|
5858
|
+
}();
|
|
5859
|
+
function _xfilter(f) {
|
|
5860
|
+
return function (xf) {
|
|
5861
|
+
return new XFilter(f, xf);
|
|
5862
|
+
};
|
|
5863
|
+
}
|
|
5864
|
+
|
|
5865
|
+
/**
|
|
5866
|
+
* Takes a predicate and a `Filterable`, and returns a new filterable of the
|
|
5867
|
+
* same type containing the members of the given filterable which satisfy the
|
|
5868
|
+
* given predicate. Filterable objects include plain objects or any object
|
|
5869
|
+
* that has a filter method such as `Array`.
|
|
5870
|
+
*
|
|
5871
|
+
* Dispatches to the `filter` method of the second argument, if present.
|
|
5872
|
+
*
|
|
5873
|
+
* Acts as a transducer if a transformer is given in list position.
|
|
5874
|
+
*
|
|
5875
|
+
* @func
|
|
5876
|
+
* @memberOf R
|
|
5877
|
+
* @since v0.1.0
|
|
5878
|
+
* @category List
|
|
5879
|
+
* @category Object
|
|
5880
|
+
* @sig Filterable f => (a -> Boolean) -> f a -> f a
|
|
5881
|
+
* @param {Function} pred
|
|
5882
|
+
* @param {Array} filterable
|
|
5883
|
+
* @return {Array} Filterable
|
|
5884
|
+
* @see R.reject, R.transduce, R.addIndex
|
|
5885
|
+
* @example
|
|
5886
|
+
*
|
|
5887
|
+
* const isEven = n => n % 2 === 0;
|
|
5888
|
+
*
|
|
5889
|
+
* R.filter(isEven, [1, 2, 3, 4]); //=> [2, 4]
|
|
5890
|
+
*
|
|
5891
|
+
* R.filter(isEven, {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, d: 4}
|
|
5892
|
+
*/
|
|
5893
|
+
|
|
5894
|
+
var filter = /*#__PURE__*/
|
|
5895
|
+
_curry2( /*#__PURE__*/
|
|
5896
|
+
_dispatchable(['fantasy-land/filter', 'filter'], _xfilter, function (pred, filterable) {
|
|
5897
|
+
return _isObject(filterable) ? _arrayReduce(function (acc, key) {
|
|
5898
|
+
if (pred(filterable[key])) {
|
|
5899
|
+
acc[key] = filterable[key];
|
|
5900
|
+
}
|
|
5901
|
+
return acc;
|
|
5902
|
+
}, {}, keys(filterable)) :
|
|
5903
|
+
// else
|
|
5904
|
+
_filter(pred, filterable);
|
|
5905
|
+
}));
|
|
5906
|
+
|
|
5907
|
+
/**
|
|
5908
|
+
* The complement of [`filter`](#filter).
|
|
5909
|
+
*
|
|
5910
|
+
* Acts as a transducer if a transformer is given in list position. Filterable
|
|
5911
|
+
* objects include plain objects or any object that has a filter method such
|
|
5912
|
+
* as `Array`.
|
|
5913
|
+
*
|
|
5914
|
+
* @func
|
|
5915
|
+
* @memberOf R
|
|
5916
|
+
* @since v0.1.0
|
|
5917
|
+
* @category List
|
|
5918
|
+
* @sig Filterable f => (a -> Boolean) -> f a -> f a
|
|
5919
|
+
* @param {Function} pred
|
|
5920
|
+
* @param {Array} filterable
|
|
5921
|
+
* @return {Array}
|
|
5922
|
+
* @see R.filter, R.transduce, R.addIndex
|
|
5923
|
+
* @example
|
|
5924
|
+
*
|
|
5925
|
+
* const isOdd = (n) => n % 2 !== 0;
|
|
5926
|
+
*
|
|
5927
|
+
* R.reject(isOdd, [1, 2, 3, 4]); //=> [2, 4]
|
|
5928
|
+
*
|
|
5929
|
+
* R.reject(isOdd, {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, d: 4}
|
|
5930
|
+
*/
|
|
5931
|
+
|
|
5932
|
+
var reject = /*#__PURE__*/
|
|
5933
|
+
_curry2(function reject(pred, filterable) {
|
|
5934
|
+
return filter(_complement(pred), filterable);
|
|
5935
|
+
});
|
|
5936
|
+
|
|
5937
|
+
function _toString(x, seen) {
|
|
5938
|
+
var recur = function recur(y) {
|
|
5939
|
+
var xs = seen.concat([x]);
|
|
5940
|
+
return _includes(y, xs) ? '<Circular>' : _toString(y, xs);
|
|
5941
|
+
}; // mapPairs :: (Object, [String]) -> [String]
|
|
5942
|
+
|
|
5943
|
+
var mapPairs = function mapPairs(obj, keys) {
|
|
5944
|
+
return _map(function (k) {
|
|
5945
|
+
return _quote(k) + ': ' + recur(obj[k]);
|
|
5946
|
+
}, keys.slice().sort());
|
|
5947
|
+
};
|
|
5948
|
+
switch (Object.prototype.toString.call(x)) {
|
|
5949
|
+
case '[object Arguments]':
|
|
5950
|
+
return '(function() { return arguments; }(' + _map(recur, x).join(', ') + '))';
|
|
5951
|
+
case '[object Array]':
|
|
5952
|
+
return '[' + _map(recur, x).concat(mapPairs(x, reject(function (k) {
|
|
5953
|
+
return /^\d+$/.test(k);
|
|
5954
|
+
}, keys(x)))).join(', ') + ']';
|
|
5955
|
+
case '[object Boolean]':
|
|
5956
|
+
return _typeof$1(x) === 'object' ? 'new Boolean(' + recur(x.valueOf()) + ')' : x.toString();
|
|
5957
|
+
case '[object Date]':
|
|
5958
|
+
return 'new Date(' + (isNaN(x.valueOf()) ? recur(NaN) : _quote(_toISOString(x))) + ')';
|
|
5959
|
+
case '[object Map]':
|
|
5960
|
+
return 'new Map(' + recur(Array.from(x)) + ')';
|
|
5961
|
+
case '[object Null]':
|
|
5962
|
+
return 'null';
|
|
5963
|
+
case '[object Number]':
|
|
5964
|
+
return _typeof$1(x) === 'object' ? 'new Number(' + recur(x.valueOf()) + ')' : 1 / x === -Infinity ? '-0' : x.toString(10);
|
|
5965
|
+
case '[object Set]':
|
|
5966
|
+
return 'new Set(' + recur(Array.from(x).sort()) + ')';
|
|
5967
|
+
case '[object String]':
|
|
5968
|
+
return _typeof$1(x) === 'object' ? 'new String(' + recur(x.valueOf()) + ')' : _quote(x);
|
|
5969
|
+
case '[object Undefined]':
|
|
5970
|
+
return 'undefined';
|
|
5971
|
+
default:
|
|
5972
|
+
if (typeof x.toString === 'function') {
|
|
5973
|
+
var repr = x.toString();
|
|
5974
|
+
if (repr !== '[object Object]') {
|
|
5975
|
+
return repr;
|
|
5976
|
+
}
|
|
5977
|
+
}
|
|
5978
|
+
return '{' + mapPairs(x, keys(x)).join(', ') + '}';
|
|
5979
|
+
}
|
|
5980
|
+
}
|
|
5981
|
+
|
|
5982
|
+
/**
|
|
5983
|
+
* Returns the string representation of the given value. `eval`'ing the output
|
|
5984
|
+
* should result in a value equivalent to the input value. Many of the built-in
|
|
5985
|
+
* `toString` methods do not satisfy this requirement.
|
|
5986
|
+
*
|
|
5987
|
+
* If the given value is an `[object Object]` with a `toString` method other
|
|
5988
|
+
* than `Object.prototype.toString`, this method is invoked with no arguments
|
|
5989
|
+
* to produce the return value. This means user-defined constructor functions
|
|
5990
|
+
* can provide a suitable `toString` method. For example:
|
|
5991
|
+
*
|
|
5992
|
+
* function Point(x, y) {
|
|
5993
|
+
* this.x = x;
|
|
5994
|
+
* this.y = y;
|
|
5995
|
+
* }
|
|
5996
|
+
*
|
|
5997
|
+
* Point.prototype.toString = function() {
|
|
5998
|
+
* return 'new Point(' + this.x + ', ' + this.y + ')';
|
|
5999
|
+
* };
|
|
6000
|
+
*
|
|
6001
|
+
* R.toString(new Point(1, 2)); //=> 'new Point(1, 2)'
|
|
6002
|
+
*
|
|
6003
|
+
* @func
|
|
6004
|
+
* @memberOf R
|
|
6005
|
+
* @since v0.14.0
|
|
6006
|
+
* @category String
|
|
6007
|
+
* @sig * -> String
|
|
6008
|
+
* @param {*} val
|
|
6009
|
+
* @return {String}
|
|
6010
|
+
* @example
|
|
6011
|
+
*
|
|
6012
|
+
* R.toString(42); //=> '42'
|
|
6013
|
+
* R.toString('abc'); //=> '"abc"'
|
|
6014
|
+
* R.toString([1, 2, 3]); //=> '[1, 2, 3]'
|
|
6015
|
+
* R.toString({foo: 1, bar: 2, baz: 3}); //=> '{"bar": 2, "baz": 3, "foo": 1}'
|
|
6016
|
+
* R.toString(new Date('2001-02-03T04:05:06Z')); //=> 'new Date("2001-02-03T04:05:06.000Z")'
|
|
6017
|
+
*/
|
|
6018
|
+
|
|
6019
|
+
var toString = /*#__PURE__*/
|
|
6020
|
+
_curry1(function toString(val) {
|
|
6021
|
+
return _toString(val, []);
|
|
6022
|
+
});
|
|
6023
|
+
|
|
6024
|
+
/**
|
|
6025
|
+
* Returns the larger of its two arguments.
|
|
6026
|
+
*
|
|
6027
|
+
* @func
|
|
6028
|
+
* @memberOf R
|
|
6029
|
+
* @since v0.1.0
|
|
6030
|
+
* @category Relation
|
|
6031
|
+
* @sig Ord a => a -> a -> a
|
|
6032
|
+
* @param {*} a
|
|
6033
|
+
* @param {*} b
|
|
6034
|
+
* @return {*}
|
|
6035
|
+
* @see R.maxBy, R.min
|
|
6036
|
+
* @example
|
|
6037
|
+
*
|
|
6038
|
+
* R.max(789, 123); //=> 789
|
|
6039
|
+
* R.max('a', 'b'); //=> 'b'
|
|
6040
|
+
*/
|
|
6041
|
+
|
|
6042
|
+
var max = /*#__PURE__*/
|
|
6043
|
+
_curry2(function max(a, b) {
|
|
6044
|
+
if (a === b) {
|
|
6045
|
+
return b;
|
|
6046
|
+
}
|
|
6047
|
+
function safeMax(x, y) {
|
|
6048
|
+
if (x > y !== y > x) {
|
|
6049
|
+
return y > x ? y : x;
|
|
6050
|
+
}
|
|
6051
|
+
return undefined;
|
|
6052
|
+
}
|
|
6053
|
+
var maxByValue = safeMax(a, b);
|
|
6054
|
+
if (maxByValue !== undefined) {
|
|
6055
|
+
return maxByValue;
|
|
6056
|
+
}
|
|
6057
|
+
var maxByType = safeMax(_typeof$1(a), _typeof$1(b));
|
|
6058
|
+
if (maxByType !== undefined) {
|
|
6059
|
+
return maxByType === _typeof$1(a) ? a : b;
|
|
6060
|
+
}
|
|
6061
|
+
var stringA = toString(a);
|
|
6062
|
+
var maxByStringValue = safeMax(stringA, toString(b));
|
|
6063
|
+
if (maxByStringValue !== undefined) {
|
|
6064
|
+
return maxByStringValue === stringA ? a : b;
|
|
6065
|
+
}
|
|
6066
|
+
return b;
|
|
6067
|
+
});
|
|
6068
|
+
|
|
6069
|
+
var XMap = /*#__PURE__*/
|
|
6070
|
+
function () {
|
|
6071
|
+
function XMap(f, xf) {
|
|
6072
|
+
this.xf = xf;
|
|
6073
|
+
this.f = f;
|
|
6074
|
+
}
|
|
6075
|
+
XMap.prototype['@@transducer/init'] = _xfBase.init;
|
|
6076
|
+
XMap.prototype['@@transducer/result'] = _xfBase.result;
|
|
6077
|
+
XMap.prototype['@@transducer/step'] = function (result, input) {
|
|
6078
|
+
return this.xf['@@transducer/step'](result, this.f(input));
|
|
6079
|
+
};
|
|
6080
|
+
return XMap;
|
|
6081
|
+
}();
|
|
6082
|
+
var _xmap = function _xmap(f) {
|
|
6083
|
+
return function (xf) {
|
|
6084
|
+
return new XMap(f, xf);
|
|
6085
|
+
};
|
|
6086
|
+
};
|
|
6087
|
+
|
|
6088
|
+
/**
|
|
6089
|
+
* Takes a function and
|
|
6090
|
+
* a [functor](https://github.com/fantasyland/fantasy-land#functor),
|
|
6091
|
+
* applies the function to each of the functor's values, and returns
|
|
6092
|
+
* a functor of the same shape.
|
|
6093
|
+
*
|
|
6094
|
+
* Ramda provides suitable `map` implementations for `Array` and `Object`,
|
|
6095
|
+
* so this function may be applied to `[1, 2, 3]` or `{x: 1, y: 2, z: 3}`.
|
|
6096
|
+
*
|
|
6097
|
+
* Dispatches to the `map` method of the second argument, if present.
|
|
6098
|
+
*
|
|
6099
|
+
* Acts as a transducer if a transformer is given in list position.
|
|
6100
|
+
*
|
|
6101
|
+
* Also treats functions as functors and will compose them together.
|
|
6102
|
+
*
|
|
6103
|
+
* @func
|
|
6104
|
+
* @memberOf R
|
|
6105
|
+
* @since v0.1.0
|
|
6106
|
+
* @category List
|
|
6107
|
+
* @sig Functor f => (a -> b) -> f a -> f b
|
|
6108
|
+
* @param {Function} fn The function to be called on every element of the input `list`.
|
|
6109
|
+
* @param {Array} list The list to be iterated over.
|
|
6110
|
+
* @return {Array} The new list.
|
|
6111
|
+
* @see R.transduce, R.addIndex, R.pluck, R.project
|
|
6112
|
+
* @example
|
|
6113
|
+
*
|
|
6114
|
+
* const double = x => x * 2;
|
|
6115
|
+
*
|
|
6116
|
+
* R.map(double, [1, 2, 3]); //=> [2, 4, 6]
|
|
6117
|
+
*
|
|
6118
|
+
* R.map(double, {x: 1, y: 2, z: 3}); //=> {x: 2, y: 4, z: 6}
|
|
6119
|
+
* @symb R.map(f, [a, b]) = [f(a), f(b)]
|
|
6120
|
+
* @symb R.map(f, { x: a, y: b }) = { x: f(a), y: f(b) }
|
|
6121
|
+
* @symb R.map(f, functor_o) = functor_o.map(f)
|
|
6122
|
+
*/
|
|
6123
|
+
|
|
6124
|
+
var map = /*#__PURE__*/
|
|
6125
|
+
_curry2( /*#__PURE__*/
|
|
6126
|
+
_dispatchable(['fantasy-land/map', 'map'], _xmap, function map(fn, functor) {
|
|
6127
|
+
switch (Object.prototype.toString.call(functor)) {
|
|
6128
|
+
case '[object Function]':
|
|
6129
|
+
return curryN(functor.length, function () {
|
|
6130
|
+
return fn.call(this, functor.apply(this, arguments));
|
|
6131
|
+
});
|
|
6132
|
+
case '[object Object]':
|
|
6133
|
+
return _arrayReduce(function (acc, key) {
|
|
6134
|
+
acc[key] = fn(functor[key]);
|
|
6135
|
+
return acc;
|
|
6136
|
+
}, {}, keys(functor));
|
|
6137
|
+
default:
|
|
6138
|
+
return _map(fn, functor);
|
|
6139
|
+
}
|
|
6140
|
+
}));
|
|
6141
|
+
|
|
6142
|
+
function _isString(x) {
|
|
6143
|
+
return Object.prototype.toString.call(x) === '[object String]';
|
|
6144
|
+
}
|
|
6145
|
+
|
|
6146
|
+
/**
|
|
6147
|
+
* Tests whether or not an object is similar to an array.
|
|
6148
|
+
*
|
|
6149
|
+
* @private
|
|
6150
|
+
* @category Type
|
|
6151
|
+
* @category List
|
|
6152
|
+
* @sig * -> Boolean
|
|
6153
|
+
* @param {*} x The object to test.
|
|
6154
|
+
* @return {Boolean} `true` if `x` has a numeric length property and extreme indices defined; `false` otherwise.
|
|
6155
|
+
* @example
|
|
6156
|
+
*
|
|
6157
|
+
* _isArrayLike([]); //=> true
|
|
6158
|
+
* _isArrayLike(true); //=> false
|
|
6159
|
+
* _isArrayLike({}); //=> false
|
|
6160
|
+
* _isArrayLike({length: 10}); //=> false
|
|
6161
|
+
* _isArrayLike({0: 'zero', 9: 'nine', length: 10}); //=> true
|
|
6162
|
+
* _isArrayLike({nodeType: 1, length: 1}) // => false
|
|
6163
|
+
*/
|
|
6164
|
+
|
|
6165
|
+
var _isArrayLike = /*#__PURE__*/
|
|
6166
|
+
_curry1(function isArrayLike(x) {
|
|
6167
|
+
if (_isArray(x)) {
|
|
6168
|
+
return true;
|
|
6169
|
+
}
|
|
6170
|
+
if (!x) {
|
|
6171
|
+
return false;
|
|
6172
|
+
}
|
|
6173
|
+
if (_typeof$1(x) !== 'object') {
|
|
6174
|
+
return false;
|
|
6175
|
+
}
|
|
6176
|
+
if (_isString(x)) {
|
|
6177
|
+
return false;
|
|
6178
|
+
}
|
|
6179
|
+
if (x.length === 0) {
|
|
6180
|
+
return true;
|
|
6181
|
+
}
|
|
6182
|
+
if (x.length > 0) {
|
|
6183
|
+
return x.hasOwnProperty(0) && x.hasOwnProperty(x.length - 1);
|
|
6184
|
+
}
|
|
6185
|
+
return false;
|
|
6186
|
+
});
|
|
6187
|
+
|
|
6188
|
+
var symIterator = typeof Symbol !== 'undefined' ? Symbol.iterator : '@@iterator';
|
|
6189
|
+
function _createReduce(arrayReduce, methodReduce, iterableReduce) {
|
|
6190
|
+
return function _reduce(xf, acc, list) {
|
|
6191
|
+
if (_isArrayLike(list)) {
|
|
6192
|
+
return arrayReduce(xf, acc, list);
|
|
6193
|
+
}
|
|
6194
|
+
if (list == null) {
|
|
6195
|
+
return acc;
|
|
6196
|
+
}
|
|
6197
|
+
if (typeof list['fantasy-land/reduce'] === 'function') {
|
|
6198
|
+
return methodReduce(xf, acc, list, 'fantasy-land/reduce');
|
|
6199
|
+
}
|
|
6200
|
+
if (list[symIterator] != null) {
|
|
6201
|
+
return iterableReduce(xf, acc, list[symIterator]());
|
|
6202
|
+
}
|
|
6203
|
+
if (typeof list.next === 'function') {
|
|
6204
|
+
return iterableReduce(xf, acc, list);
|
|
6205
|
+
}
|
|
6206
|
+
if (typeof list.reduce === 'function') {
|
|
6207
|
+
return methodReduce(xf, acc, list, 'reduce');
|
|
6208
|
+
}
|
|
6209
|
+
throw new TypeError('reduce: list must be array or iterable');
|
|
6210
|
+
};
|
|
6211
|
+
}
|
|
6212
|
+
|
|
6213
|
+
function _xArrayReduce(xf, acc, list) {
|
|
6214
|
+
var idx = 0;
|
|
6215
|
+
var len = list.length;
|
|
6216
|
+
while (idx < len) {
|
|
6217
|
+
acc = xf['@@transducer/step'](acc, list[idx]);
|
|
6218
|
+
if (acc && acc['@@transducer/reduced']) {
|
|
6219
|
+
acc = acc['@@transducer/value'];
|
|
6220
|
+
break;
|
|
6221
|
+
}
|
|
6222
|
+
idx += 1;
|
|
6223
|
+
}
|
|
6224
|
+
return xf['@@transducer/result'](acc);
|
|
6225
|
+
}
|
|
6226
|
+
|
|
6227
|
+
/**
|
|
6228
|
+
* Creates a function that is bound to a context.
|
|
6229
|
+
* Note: `R.bind` does not provide the additional argument-binding capabilities of
|
|
6230
|
+
* [Function.prototype.bind](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind).
|
|
6231
|
+
*
|
|
6232
|
+
* @func
|
|
6233
|
+
* @memberOf R
|
|
6234
|
+
* @since v0.6.0
|
|
6235
|
+
* @category Function
|
|
6236
|
+
* @category Object
|
|
6237
|
+
* @sig (* -> *) -> {*} -> (* -> *)
|
|
6238
|
+
* @param {Function} fn The function to bind to context
|
|
6239
|
+
* @param {Object} thisObj The context to bind `fn` to
|
|
6240
|
+
* @return {Function} A function that will execute in the context of `thisObj`.
|
|
6241
|
+
* @see R.partial
|
|
6242
|
+
* @example
|
|
6243
|
+
*
|
|
6244
|
+
* const log = R.bind(console.log, console);
|
|
6245
|
+
* R.pipe(R.assoc('a', 2), R.tap(log), R.assoc('a', 3))({a: 1}); //=> {a: 3}
|
|
6246
|
+
* // logs {a: 2}
|
|
6247
|
+
* @symb R.bind(f, o)(a, b) = f.call(o, a, b)
|
|
6248
|
+
*/
|
|
6249
|
+
|
|
6250
|
+
var bind = /*#__PURE__*/
|
|
6251
|
+
_curry2(function bind(fn, thisObj) {
|
|
6252
|
+
return _arity(fn.length, function () {
|
|
6253
|
+
return fn.apply(thisObj, arguments);
|
|
6254
|
+
});
|
|
6255
|
+
});
|
|
6256
|
+
|
|
6257
|
+
function _xIterableReduce(xf, acc, iter) {
|
|
6258
|
+
var step = iter.next();
|
|
6259
|
+
while (!step.done) {
|
|
6260
|
+
acc = xf['@@transducer/step'](acc, step.value);
|
|
6261
|
+
if (acc && acc['@@transducer/reduced']) {
|
|
6262
|
+
acc = acc['@@transducer/value'];
|
|
6263
|
+
break;
|
|
5947
6264
|
}
|
|
5948
|
-
|
|
6265
|
+
step = iter.next();
|
|
5949
6266
|
}
|
|
5950
|
-
return
|
|
6267
|
+
return xf['@@transducer/result'](acc);
|
|
6268
|
+
}
|
|
6269
|
+
function _xMethodReduce(xf, acc, obj, methodName) {
|
|
6270
|
+
return xf['@@transducer/result'](obj[methodName](bind(xf['@@transducer/step'], xf), acc));
|
|
6271
|
+
}
|
|
6272
|
+
var _xReduce = /*#__PURE__*/
|
|
6273
|
+
_createReduce(_xArrayReduce, _xMethodReduce, _xIterableReduce);
|
|
6274
|
+
|
|
6275
|
+
var XWrap = /*#__PURE__*/
|
|
6276
|
+
function () {
|
|
6277
|
+
function XWrap(fn) {
|
|
6278
|
+
this.f = fn;
|
|
6279
|
+
}
|
|
6280
|
+
XWrap.prototype['@@transducer/init'] = function () {
|
|
6281
|
+
throw new Error('init not implemented on XWrap');
|
|
6282
|
+
};
|
|
6283
|
+
XWrap.prototype['@@transducer/result'] = function (acc) {
|
|
6284
|
+
return acc;
|
|
6285
|
+
};
|
|
6286
|
+
XWrap.prototype['@@transducer/step'] = function (acc, x) {
|
|
6287
|
+
return this.f(acc, x);
|
|
6288
|
+
};
|
|
6289
|
+
return XWrap;
|
|
6290
|
+
}();
|
|
6291
|
+
function _xwrap(fn) {
|
|
6292
|
+
return new XWrap(fn);
|
|
5951
6293
|
}
|
|
5952
6294
|
|
|
5953
6295
|
/**
|
|
5954
|
-
* Returns
|
|
5955
|
-
*
|
|
6296
|
+
* Returns a single item by iterating through the list, successively calling
|
|
6297
|
+
* the iterator function and passing it an accumulator value and the current
|
|
6298
|
+
* value from the array, and then passing the result to the next call.
|
|
5956
6299
|
*
|
|
5957
|
-
*
|
|
5958
|
-
*
|
|
6300
|
+
* The iterator function receives two values: *(acc, value)*. It may use
|
|
6301
|
+
* [`R.reduced`](#reduced) to shortcut the iteration.
|
|
6302
|
+
*
|
|
6303
|
+
* The arguments' order of [`reduceRight`](#reduceRight)'s iterator function
|
|
6304
|
+
* is *(value, acc)*.
|
|
6305
|
+
*
|
|
6306
|
+
* Note: `R.reduce` does not skip deleted or unassigned indices (sparse
|
|
6307
|
+
* arrays), unlike the native `Array.prototype.reduce` method. For more details
|
|
6308
|
+
* on this behavior, see:
|
|
6309
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce#Description
|
|
6310
|
+
*
|
|
6311
|
+
* Be cautious of mutating and returning the accumulator. If you reuse it across
|
|
6312
|
+
* invocations, it will continue to accumulate onto the same value. The general
|
|
6313
|
+
* recommendation is to always return a new value. If you can't do so for
|
|
6314
|
+
* performance reasons, then be sure to reinitialize the accumulator on each
|
|
6315
|
+
* invocation.
|
|
6316
|
+
*
|
|
6317
|
+
* Dispatches to the `reduce` method of the third argument, if present. When
|
|
6318
|
+
* doing so, it is up to the user to handle the [`R.reduced`](#reduced)
|
|
6319
|
+
* shortcuting, as this is not implemented by `reduce`.
|
|
5959
6320
|
*
|
|
5960
6321
|
* @func
|
|
5961
6322
|
* @memberOf R
|
|
5962
|
-
* @since v0.
|
|
5963
|
-
* @category
|
|
5964
|
-
* @sig a -> b ->
|
|
5965
|
-
* @param {
|
|
5966
|
-
*
|
|
5967
|
-
* @
|
|
6323
|
+
* @since v0.1.0
|
|
6324
|
+
* @category List
|
|
6325
|
+
* @sig ((a, b) -> a) -> a -> [b] -> a
|
|
6326
|
+
* @param {Function} fn The iterator function. Receives two values, the accumulator and the
|
|
6327
|
+
* current element from the array.
|
|
6328
|
+
* @param {*} acc The accumulator value.
|
|
6329
|
+
* @param {Array} list The list to iterate over.
|
|
6330
|
+
* @return {*} The final, accumulated value.
|
|
6331
|
+
* @see R.reduced, R.addIndex, R.reduceRight
|
|
5968
6332
|
* @example
|
|
5969
6333
|
*
|
|
5970
|
-
* R.
|
|
5971
|
-
*
|
|
5972
|
-
*
|
|
6334
|
+
* R.reduce(R.subtract, 0, [1, 2, 3, 4]) // => ((((0 - 1) - 2) - 3) - 4) = -10
|
|
6335
|
+
* // - -10
|
|
6336
|
+
* // / \ / \
|
|
6337
|
+
* // - 4 -6 4
|
|
6338
|
+
* // / \ / \
|
|
6339
|
+
* // - 3 ==> -3 3
|
|
6340
|
+
* // / \ / \
|
|
6341
|
+
* // - 2 -1 2
|
|
6342
|
+
* // / \ / \
|
|
6343
|
+
* // 0 1 0 1
|
|
5973
6344
|
*
|
|
5974
|
-
*
|
|
5975
|
-
* const b = {}; b.v = b;
|
|
5976
|
-
* R.equals(a, b); //=> true
|
|
6345
|
+
* @symb R.reduce(f, a, [b, c, d]) = f(f(f(a, b), c), d)
|
|
5977
6346
|
*/
|
|
5978
6347
|
|
|
5979
|
-
var
|
|
5980
|
-
|
|
5981
|
-
return
|
|
6348
|
+
var reduce = /*#__PURE__*/
|
|
6349
|
+
_curry3(function (xf, acc, list) {
|
|
6350
|
+
return _xReduce(typeof xf === 'function' ? _xwrap(xf) : xf, acc, list);
|
|
5982
6351
|
});
|
|
5983
6352
|
|
|
5984
|
-
function
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
if (typeof list.indexOf === 'function') {
|
|
5988
|
-
switch (_typeof(a)) {
|
|
5989
|
-
case 'number':
|
|
5990
|
-
if (a === 0) {
|
|
5991
|
-
// manually crawl the list to distinguish between +0 and -0
|
|
5992
|
-
inf = 1 / a;
|
|
5993
|
-
while (idx < list.length) {
|
|
5994
|
-
item = list[idx];
|
|
5995
|
-
if (item === 0 && 1 / item === inf) {
|
|
5996
|
-
return idx;
|
|
5997
|
-
}
|
|
5998
|
-
idx += 1;
|
|
5999
|
-
}
|
|
6000
|
-
return -1;
|
|
6001
|
-
} else if (a !== a) {
|
|
6002
|
-
// NaN
|
|
6003
|
-
while (idx < list.length) {
|
|
6004
|
-
item = list[idx];
|
|
6005
|
-
if (typeof item === 'number' && item !== item) {
|
|
6006
|
-
return idx;
|
|
6007
|
-
}
|
|
6008
|
-
idx += 1;
|
|
6009
|
-
}
|
|
6010
|
-
return -1;
|
|
6011
|
-
} // non-zero numbers can utilise Set
|
|
6012
|
-
|
|
6013
|
-
return list.indexOf(a, idx);
|
|
6014
|
-
// all these types can utilise Set
|
|
6015
|
-
|
|
6016
|
-
case 'string':
|
|
6017
|
-
case 'boolean':
|
|
6018
|
-
case 'function':
|
|
6019
|
-
case 'undefined':
|
|
6020
|
-
return list.indexOf(a, idx);
|
|
6021
|
-
case 'object':
|
|
6022
|
-
if (a === null) {
|
|
6023
|
-
// null can utilise Set
|
|
6024
|
-
return list.indexOf(a, idx);
|
|
6025
|
-
}
|
|
6026
|
-
}
|
|
6027
|
-
} // anything else not covered above, defer to R.equals
|
|
6028
|
-
|
|
6029
|
-
while (idx < list.length) {
|
|
6030
|
-
if (equals(list[idx], a)) {
|
|
6031
|
-
return idx;
|
|
6032
|
-
}
|
|
6033
|
-
idx += 1;
|
|
6034
|
-
}
|
|
6035
|
-
return -1;
|
|
6353
|
+
function _identity(x) {
|
|
6354
|
+
return x;
|
|
6036
6355
|
}
|
|
6037
6356
|
|
|
6038
|
-
|
|
6039
|
-
|
|
6040
|
-
|
|
6357
|
+
/**
|
|
6358
|
+
* A function that does nothing but return the parameter supplied to it. Good
|
|
6359
|
+
* as a default or placeholder function.
|
|
6360
|
+
*
|
|
6361
|
+
* @func
|
|
6362
|
+
* @memberOf R
|
|
6363
|
+
* @since v0.1.0
|
|
6364
|
+
* @category Function
|
|
6365
|
+
* @sig a -> a
|
|
6366
|
+
* @param {*} x The value to return.
|
|
6367
|
+
* @return {*} The input value, `x`.
|
|
6368
|
+
* @example
|
|
6369
|
+
*
|
|
6370
|
+
* R.identity(1); //=> 1
|
|
6371
|
+
*
|
|
6372
|
+
* const obj = {};
|
|
6373
|
+
* R.identity(obj) === obj; //=> true
|
|
6374
|
+
* @symb R.identity(a) = a
|
|
6375
|
+
*/
|
|
6376
|
+
|
|
6377
|
+
var identity = /*#__PURE__*/
|
|
6378
|
+
_curry1(_identity);
|
|
6041
6379
|
|
|
6042
6380
|
/**
|
|
6043
6381
|
* Returns a function, `fn`, which encapsulates `if/else, if/else, ...` logic.
|
|
@@ -6123,7 +6461,7 @@ function () {
|
|
|
6123
6461
|
return _Set;
|
|
6124
6462
|
}();
|
|
6125
6463
|
function hasOrAdd(item, shouldAdd, set) {
|
|
6126
|
-
var type = _typeof(item);
|
|
6464
|
+
var type = _typeof$1(item);
|
|
6127
6465
|
var prevSize, newSize;
|
|
6128
6466
|
switch (type) {
|
|
6129
6467
|
case 'string':
|
|
@@ -6267,10 +6605,11 @@ function () {
|
|
|
6267
6605
|
};
|
|
6268
6606
|
return XUniqBy;
|
|
6269
6607
|
}();
|
|
6270
|
-
|
|
6271
|
-
|
|
6272
|
-
|
|
6273
|
-
}
|
|
6608
|
+
function _xuniqBy(f) {
|
|
6609
|
+
return function (xf) {
|
|
6610
|
+
return new XUniqBy(f, xf);
|
|
6611
|
+
};
|
|
6612
|
+
}
|
|
6274
6613
|
|
|
6275
6614
|
/**
|
|
6276
6615
|
* Returns a new list containing only one copy of each element in the original
|
|
@@ -6310,6 +6649,7 @@ _dispatchable([], _xuniqBy, function (fn, list) {
|
|
|
6310
6649
|
}
|
|
6311
6650
|
return result;
|
|
6312
6651
|
}));
|
|
6652
|
+
var uniqBy$1 = uniqBy;
|
|
6313
6653
|
|
|
6314
6654
|
/**
|
|
6315
6655
|
* Returns a new list containing only one copy of each element in the original
|
|
@@ -6330,7 +6670,7 @@ _dispatchable([], _xuniqBy, function (fn, list) {
|
|
|
6330
6670
|
*/
|
|
6331
6671
|
|
|
6332
6672
|
var uniq = /*#__PURE__*/
|
|
6333
|
-
uniqBy(identity);
|
|
6673
|
+
uniqBy$1(identity);
|
|
6334
6674
|
var uniq$1 = uniq;
|
|
6335
6675
|
|
|
6336
6676
|
function _isNumber(x) {
|
|
@@ -6554,9 +6894,7 @@ var __assign$a = undefined && undefined.__assign || function () {
|
|
|
6554
6894
|
__assign$a = Object.assign || function (t) {
|
|
6555
6895
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6556
6896
|
s = arguments[i];
|
|
6557
|
-
for (var p in s)
|
|
6558
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
6559
|
-
}
|
|
6897
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
6560
6898
|
}
|
|
6561
6899
|
return t;
|
|
6562
6900
|
};
|
|
@@ -6564,9 +6902,7 @@ var __assign$a = undefined && undefined.__assign || function () {
|
|
|
6564
6902
|
};
|
|
6565
6903
|
var __rest$9 = undefined && undefined.__rest || function (s, e) {
|
|
6566
6904
|
var t = {};
|
|
6567
|
-
for (var p in s)
|
|
6568
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
6569
|
-
}
|
|
6905
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
6570
6906
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
6571
6907
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
6572
6908
|
}
|
|
@@ -6611,9 +6947,7 @@ var __assign$9 = undefined && undefined.__assign || function () {
|
|
|
6611
6947
|
__assign$9 = Object.assign || function (t) {
|
|
6612
6948
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6613
6949
|
s = arguments[i];
|
|
6614
|
-
for (var p in s)
|
|
6615
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
6616
|
-
}
|
|
6950
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
6617
6951
|
}
|
|
6618
6952
|
return t;
|
|
6619
6953
|
};
|
|
@@ -6621,9 +6955,7 @@ var __assign$9 = undefined && undefined.__assign || function () {
|
|
|
6621
6955
|
};
|
|
6622
6956
|
var __rest$8 = undefined && undefined.__rest || function (s, e) {
|
|
6623
6957
|
var t = {};
|
|
6624
|
-
for (var p in s)
|
|
6625
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
6626
|
-
}
|
|
6958
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
6627
6959
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
6628
6960
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
6629
6961
|
}
|
|
@@ -6849,11 +7181,7 @@ var ExceedConstrain = function ExceedConstrain(_ref) {
|
|
|
6849
7181
|
}, rest), children);
|
|
6850
7182
|
};
|
|
6851
7183
|
|
|
6852
|
-
var
|
|
6853
|
-
var reactInputMask = {
|
|
6854
|
-
get exports(){ return reactInputMaskExports; },
|
|
6855
|
-
set exports(v){ reactInputMaskExports = v; },
|
|
6856
|
-
};
|
|
7184
|
+
var reactInputMask = {exports: {}};
|
|
6857
7185
|
|
|
6858
7186
|
var reactInputMask_production_min;
|
|
6859
7187
|
var hasRequiredReactInputMask_production_min;
|
|
@@ -6861,7 +7189,7 @@ function requireReactInputMask_production_min() {
|
|
|
6861
7189
|
if (hasRequiredReactInputMask_production_min) return reactInputMask_production_min;
|
|
6862
7190
|
hasRequiredReactInputMask_production_min = 1;
|
|
6863
7191
|
function _interopDefault(e) {
|
|
6864
|
-
return e && "object" == _typeof(e) && "default" in e ? e["default"] : e;
|
|
7192
|
+
return e && "object" == _typeof$1(e) && "default" in e ? e["default"] : e;
|
|
6865
7193
|
}
|
|
6866
7194
|
var React$1 = _interopDefault(React),
|
|
6867
7195
|
reactDom = require$$1;
|
|
@@ -6877,9 +7205,7 @@ function requireReactInputMask_production_min() {
|
|
|
6877
7205
|
return (_extends = Object.assign || function (e) {
|
|
6878
7206
|
for (var t = 1; t < arguments.length; t++) {
|
|
6879
7207
|
var n = arguments[t];
|
|
6880
|
-
for (var a in n)
|
|
6881
|
-
Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
|
|
6882
|
-
}
|
|
7208
|
+
for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
|
|
6883
7209
|
}
|
|
6884
7210
|
return e;
|
|
6885
7211
|
}).apply(this, arguments);
|
|
@@ -6893,9 +7219,7 @@ function requireReactInputMask_production_min() {
|
|
|
6893
7219
|
a,
|
|
6894
7220
|
i = {},
|
|
6895
7221
|
r = Object.keys(e);
|
|
6896
|
-
for (a = 0; a < r.length; a++)
|
|
6897
|
-
n = r[a], 0 <= t.indexOf(n) || (i[n] = e[n]);
|
|
6898
|
-
}
|
|
7222
|
+
for (a = 0; a < r.length; a++) n = r[a], 0 <= t.indexOf(n) || (i[n] = e[n]);
|
|
6899
7223
|
return i;
|
|
6900
7224
|
}
|
|
6901
7225
|
function _assertThisInitialized(e) {
|
|
@@ -6986,9 +7310,7 @@ function requireReactInputMask_production_min() {
|
|
|
6986
7310
|
var n = e.maskChar,
|
|
6987
7311
|
a = e.prefix;
|
|
6988
7312
|
if (!n) {
|
|
6989
|
-
for (; t.length > a.length && isPermanentCharacter(e, t.length - 1);)
|
|
6990
|
-
t = t.slice(0, t.length - 1);
|
|
6991
|
-
}
|
|
7313
|
+
for (; t.length > a.length && isPermanentCharacter(e, t.length - 1);) t = t.slice(0, t.length - 1);
|
|
6992
7314
|
return t.length;
|
|
6993
7315
|
}
|
|
6994
7316
|
for (var i = a.length, r = t.length; r >= a.length; r--) {
|
|
@@ -7008,15 +7330,11 @@ function requireReactInputMask_production_min() {
|
|
|
7008
7330
|
a = e.mask,
|
|
7009
7331
|
i = e.prefix;
|
|
7010
7332
|
if (!n) {
|
|
7011
|
-
for ((t = insertString(e, "", t, 0)).length < i.length && (t = i); t.length < a.length && isPermanentCharacter(e, t.length);)
|
|
7012
|
-
t += a[t.length];
|
|
7013
|
-
}
|
|
7333
|
+
for ((t = insertString(e, "", t, 0)).length < i.length && (t = i); t.length < a.length && isPermanentCharacter(e, t.length);) t += a[t.length];
|
|
7014
7334
|
return t;
|
|
7015
7335
|
}
|
|
7016
7336
|
if (t) return insertString(e, formatValue(e, ""), t, 0);
|
|
7017
|
-
for (var r = 0; r < a.length; r++)
|
|
7018
|
-
isPermanentCharacter(e, r) ? t += a[r] : t += n;
|
|
7019
|
-
}
|
|
7337
|
+
for (var r = 0; r < a.length; r++) isPermanentCharacter(e, r) ? t += a[r] : t += n;
|
|
7020
7338
|
return t;
|
|
7021
7339
|
}
|
|
7022
7340
|
function clearRange(n, e, a, t) {
|
|
@@ -7028,9 +7346,7 @@ function requireReactInputMask_production_min() {
|
|
|
7028
7346
|
if (r) return l.map(function (e, t) {
|
|
7029
7347
|
return t < a || i <= t ? e : isPermanentCharacter(n, t) ? o[t] : r;
|
|
7030
7348
|
}).join("");
|
|
7031
|
-
for (var u = i; u < l.length; u++)
|
|
7032
|
-
isPermanentCharacter(n, u) && (l[u] = "");
|
|
7033
|
-
}
|
|
7349
|
+
for (var u = i; u < l.length; u++) isPermanentCharacter(n, u) && (l[u] = "");
|
|
7034
7350
|
return a = Math.max(s.length, a), l.splice(a, i - a), e = l.join(""), formatValue(n, e);
|
|
7035
7351
|
}
|
|
7036
7352
|
function insertString(r, o, e, s) {
|
|
@@ -7054,23 +7370,17 @@ function requireReactInputMask_production_min() {
|
|
|
7054
7370
|
n = t.split(""),
|
|
7055
7371
|
s = i;
|
|
7056
7372
|
return n.every(function (e) {
|
|
7057
|
-
for (; n = e, isPermanentCharacter(a, t = i) && n !== r[t];)
|
|
7058
|
-
if (++i >= r.length) return !1;
|
|
7059
|
-
}
|
|
7373
|
+
for (; n = e, isPermanentCharacter(a, t = i) && n !== r[t];) if (++i >= r.length) return !1;
|
|
7060
7374
|
var t, n;
|
|
7061
7375
|
return (isAllowedCharacter(a, i, e) || e === o) && i++, i < r.length;
|
|
7062
7376
|
}), i - s;
|
|
7063
7377
|
}
|
|
7064
7378
|
function getLeftEditablePosition(e, t) {
|
|
7065
|
-
for (var n = t; 0 <= n; --n)
|
|
7066
|
-
if (!isPermanentCharacter(e, n)) return n;
|
|
7067
|
-
}
|
|
7379
|
+
for (var n = t; 0 <= n; --n) if (!isPermanentCharacter(e, n)) return n;
|
|
7068
7380
|
return null;
|
|
7069
7381
|
}
|
|
7070
7382
|
function getRightEditablePosition(e, t) {
|
|
7071
|
-
for (var n = e.mask, a = t; a < n.length; ++a)
|
|
7072
|
-
if (!isPermanentCharacter(e, a)) return a;
|
|
7073
|
-
}
|
|
7383
|
+
for (var n = e.mask, a = t; a < n.length; ++a) if (!isPermanentCharacter(e, a)) return a;
|
|
7074
7384
|
return null;
|
|
7075
7385
|
}
|
|
7076
7386
|
function getStringValue(e) {
|
|
@@ -7500,7 +7810,7 @@ function requireReactInputMask_development() {
|
|
|
7500
7810
|
if (hasRequiredReactInputMask_development) return reactInputMask_development;
|
|
7501
7811
|
hasRequiredReactInputMask_development = 1;
|
|
7502
7812
|
function _interopDefault(ex) {
|
|
7503
|
-
return ex && _typeof(ex) === 'object' && 'default' in ex ? ex['default'] : ex;
|
|
7813
|
+
return ex && _typeof$1(ex) === 'object' && 'default' in ex ? ex['default'] : ex;
|
|
7504
7814
|
}
|
|
7505
7815
|
var React$1 = _interopDefault(React);
|
|
7506
7816
|
var reactDom = require$$1;
|
|
@@ -8432,13 +8742,12 @@ function requireReactInputMask_development() {
|
|
|
8432
8742
|
return reactInputMask_development;
|
|
8433
8743
|
}
|
|
8434
8744
|
|
|
8435
|
-
(
|
|
8436
|
-
|
|
8437
|
-
|
|
8438
|
-
|
|
8439
|
-
|
|
8440
|
-
|
|
8441
|
-
})(reactInputMask);
|
|
8745
|
+
if (process.env.NODE_ENV === 'production') {
|
|
8746
|
+
reactInputMask.exports = requireReactInputMask_production_min();
|
|
8747
|
+
} else {
|
|
8748
|
+
reactInputMask.exports = requireReactInputMask_development();
|
|
8749
|
+
}
|
|
8750
|
+
var reactInputMaskExports = reactInputMask.exports;
|
|
8442
8751
|
var InputMask = /*@__PURE__*/getDefaultExportFromCjs(reactInputMaskExports);
|
|
8443
8752
|
|
|
8444
8753
|
var cardTypes$1 = {
|
|
@@ -8702,9 +9011,7 @@ var __assign$8 = commonjsGlobal && commonjsGlobal.__assign || function () {
|
|
|
8702
9011
|
__assign$8 = Object.assign || function (t) {
|
|
8703
9012
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8704
9013
|
s = arguments[i];
|
|
8705
|
-
for (var p in s)
|
|
8706
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8707
|
-
}
|
|
9014
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8708
9015
|
}
|
|
8709
9016
|
return t;
|
|
8710
9017
|
};
|
|
@@ -8805,14 +9112,13 @@ creditCardType.resetModifications = function () {
|
|
|
8805
9112
|
};
|
|
8806
9113
|
creditCardType.types = cardNames;
|
|
8807
9114
|
var dist$2 = creditCardType;
|
|
9115
|
+
var creditCardType$1 = /*@__PURE__*/getDefaultExportFromCjs(dist$2);
|
|
8808
9116
|
|
|
8809
9117
|
var __assign$7 = undefined && undefined.__assign || function () {
|
|
8810
9118
|
__assign$7 = Object.assign || function (t) {
|
|
8811
9119
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8812
9120
|
s = arguments[i];
|
|
8813
|
-
for (var p in s)
|
|
8814
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8815
|
-
}
|
|
9121
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8816
9122
|
}
|
|
8817
9123
|
return t;
|
|
8818
9124
|
};
|
|
@@ -8820,9 +9126,7 @@ var __assign$7 = undefined && undefined.__assign || function () {
|
|
|
8820
9126
|
};
|
|
8821
9127
|
var __rest$7 = undefined && undefined.__rest || function (s, e) {
|
|
8822
9128
|
var t = {};
|
|
8823
|
-
for (var p in s)
|
|
8824
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
8825
|
-
}
|
|
9129
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
8826
9130
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8827
9131
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
8828
9132
|
}
|
|
@@ -8896,9 +9200,7 @@ var __assign$6 = undefined && undefined.__assign || function () {
|
|
|
8896
9200
|
__assign$6 = Object.assign || function (t) {
|
|
8897
9201
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8898
9202
|
s = arguments[i];
|
|
8899
|
-
for (var p in s)
|
|
8900
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8901
|
-
}
|
|
9203
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8902
9204
|
}
|
|
8903
9205
|
return t;
|
|
8904
9206
|
};
|
|
@@ -8906,9 +9208,7 @@ var __assign$6 = undefined && undefined.__assign || function () {
|
|
|
8906
9208
|
};
|
|
8907
9209
|
var __rest$6 = undefined && undefined.__rest || function (s, e) {
|
|
8908
9210
|
var t = {};
|
|
8909
|
-
for (var p in s)
|
|
8910
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
8911
|
-
}
|
|
9211
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
8912
9212
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8913
9213
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
8914
9214
|
}
|
|
@@ -8953,9 +9253,7 @@ var __assign$5 = undefined && undefined.__assign || function () {
|
|
|
8953
9253
|
__assign$5 = Object.assign || function (t) {
|
|
8954
9254
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8955
9255
|
s = arguments[i];
|
|
8956
|
-
for (var p in s)
|
|
8957
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8958
|
-
}
|
|
9256
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8959
9257
|
}
|
|
8960
9258
|
return t;
|
|
8961
9259
|
};
|
|
@@ -8963,9 +9261,7 @@ var __assign$5 = undefined && undefined.__assign || function () {
|
|
|
8963
9261
|
};
|
|
8964
9262
|
var __rest$5 = undefined && undefined.__rest || function (s, e) {
|
|
8965
9263
|
var t = {};
|
|
8966
|
-
for (var p in s)
|
|
8967
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
8968
|
-
}
|
|
9264
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
8969
9265
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8970
9266
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
8971
9267
|
}
|
|
@@ -9024,9 +9320,7 @@ mapCursorToMax.mapCursorToMax = function (cursor, max) {
|
|
|
9024
9320
|
(function (exports) {
|
|
9025
9321
|
|
|
9026
9322
|
function __export(m) {
|
|
9027
|
-
for (var p in m)
|
|
9028
|
-
if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
9029
|
-
}
|
|
9323
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
9030
9324
|
}
|
|
9031
9325
|
Object.defineProperty(exports, "__esModule", {
|
|
9032
9326
|
value: true
|
|
@@ -9222,9 +9516,7 @@ var __assign$4 = undefined && undefined.__assign || function () {
|
|
|
9222
9516
|
__assign$4 = Object.assign || function (t) {
|
|
9223
9517
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9224
9518
|
s = arguments[i];
|
|
9225
|
-
for (var p in s)
|
|
9226
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
9227
|
-
}
|
|
9519
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
9228
9520
|
}
|
|
9229
9521
|
return t;
|
|
9230
9522
|
};
|
|
@@ -9232,9 +9524,7 @@ var __assign$4 = undefined && undefined.__assign || function () {
|
|
|
9232
9524
|
};
|
|
9233
9525
|
var __rest$4 = undefined && undefined.__rest || function (s, e) {
|
|
9234
9526
|
var t = {};
|
|
9235
|
-
for (var p in s)
|
|
9236
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
9237
|
-
}
|
|
9527
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
9238
9528
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
9239
9529
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
9240
9530
|
}
|
|
@@ -9285,9 +9575,7 @@ var __assign$3 = undefined && undefined.__assign || function () {
|
|
|
9285
9575
|
__assign$3 = Object.assign || function (t) {
|
|
9286
9576
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9287
9577
|
s = arguments[i];
|
|
9288
|
-
for (var p in s)
|
|
9289
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
9290
|
-
}
|
|
9578
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
9291
9579
|
}
|
|
9292
9580
|
return t;
|
|
9293
9581
|
};
|
|
@@ -9295,9 +9583,7 @@ var __assign$3 = undefined && undefined.__assign || function () {
|
|
|
9295
9583
|
};
|
|
9296
9584
|
var __rest$3 = undefined && undefined.__rest || function (s, e) {
|
|
9297
9585
|
var t = {};
|
|
9298
|
-
for (var p in s)
|
|
9299
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
9300
|
-
}
|
|
9586
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
9301
9587
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
9302
9588
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
9303
9589
|
}
|
|
@@ -9389,109 +9675,110 @@ var SearchInput = function SearchInput(_ref) {
|
|
|
9389
9675
|
}, /*#__PURE__*/React.createElement(Exit20, null)));
|
|
9390
9676
|
};
|
|
9391
9677
|
|
|
9392
|
-
var
|
|
9393
|
-
return "object" == _typeof(
|
|
9678
|
+
var t$1 = function t(_t) {
|
|
9679
|
+
return "object" == _typeof$1(_t) && null != _t && 1 === _t.nodeType;
|
|
9394
9680
|
},
|
|
9395
|
-
|
|
9396
|
-
return (!
|
|
9681
|
+
e = function e(t, _e) {
|
|
9682
|
+
return (!_e || "hidden" !== t) && "visible" !== t && "clip" !== t;
|
|
9397
9683
|
},
|
|
9398
|
-
n = function n(
|
|
9399
|
-
if (
|
|
9400
|
-
var _l = getComputedStyle(
|
|
9401
|
-
return
|
|
9402
|
-
var
|
|
9403
|
-
if (!
|
|
9684
|
+
n = function n(t, _n) {
|
|
9685
|
+
if (t.clientHeight < t.scrollHeight || t.clientWidth < t.scrollWidth) {
|
|
9686
|
+
var _l = getComputedStyle(t, null);
|
|
9687
|
+
return e(_l.overflowY, _n) || e(_l.overflowX, _n) || function (t) {
|
|
9688
|
+
var e = function (t) {
|
|
9689
|
+
if (!t.ownerDocument || !t.ownerDocument.defaultView) return null;
|
|
9404
9690
|
try {
|
|
9405
|
-
return
|
|
9406
|
-
} catch (
|
|
9691
|
+
return t.ownerDocument.defaultView.frameElement;
|
|
9692
|
+
} catch (t) {
|
|
9407
9693
|
return null;
|
|
9408
9694
|
}
|
|
9409
|
-
}(
|
|
9410
|
-
return !!
|
|
9411
|
-
}(
|
|
9695
|
+
}(t);
|
|
9696
|
+
return !!e && (e.clientHeight < t.scrollHeight || e.clientWidth < t.scrollWidth);
|
|
9697
|
+
}(t);
|
|
9412
9698
|
}
|
|
9413
9699
|
return !1;
|
|
9414
9700
|
},
|
|
9415
|
-
l = function l(
|
|
9416
|
-
return o <
|
|
9701
|
+
l = function l(t, e, n, _l2, i, o, r, d) {
|
|
9702
|
+
return o < t && r > e || o > t && r < e ? 0 : o <= t && d <= n || r >= e && d >= n ? o - t - _l2 : r > e && d < n || o < t && d > n ? r - e + i : 0;
|
|
9417
9703
|
},
|
|
9418
|
-
i = function i(
|
|
9419
|
-
var
|
|
9420
|
-
return null ==
|
|
9421
|
-
}
|
|
9422
|
-
|
|
9423
|
-
|
|
9424
|
-
|
|
9425
|
-
|
|
9426
|
-
|
|
9427
|
-
|
|
9428
|
-
|
|
9429
|
-
|
|
9430
|
-
|
|
9431
|
-
|
|
9432
|
-
|
|
9433
|
-
|
|
9434
|
-
|
|
9435
|
-
|
|
9436
|
-
|
|
9437
|
-
|
|
9438
|
-
|
|
9439
|
-
|
|
9440
|
-
|
|
9704
|
+
i = function i(t) {
|
|
9705
|
+
var e = t.parentElement;
|
|
9706
|
+
return null == e ? t.getRootNode().host || null : e;
|
|
9707
|
+
},
|
|
9708
|
+
o$1 = function o(e, _o2) {
|
|
9709
|
+
var r, d, h, f;
|
|
9710
|
+
if ("undefined" == typeof document) return [];
|
|
9711
|
+
var u = _o2.scrollMode,
|
|
9712
|
+
s = _o2.block,
|
|
9713
|
+
c = _o2.inline,
|
|
9714
|
+
a = _o2.boundary,
|
|
9715
|
+
g = _o2.skipOverflowHiddenElements,
|
|
9716
|
+
m = "function" == typeof a ? a : function (t) {
|
|
9717
|
+
return t !== a;
|
|
9718
|
+
};
|
|
9719
|
+
if (!t$1(e)) throw new TypeError("Invalid target");
|
|
9720
|
+
var p = document.scrollingElement || document.documentElement,
|
|
9721
|
+
w = [],
|
|
9722
|
+
W = e;
|
|
9723
|
+
for (; t$1(W) && m(W);) {
|
|
9724
|
+
if (W = i(W), W === p) {
|
|
9725
|
+
w.push(W);
|
|
9726
|
+
break;
|
|
9727
|
+
}
|
|
9728
|
+
null != W && W === document.body && n(W) && !n(document.documentElement) || null != W && n(W, g) && w.push(W);
|
|
9729
|
+
}
|
|
9730
|
+
var H = null != (d = null == (r = window.visualViewport) ? void 0 : r.width) ? d : innerWidth,
|
|
9731
|
+
b = null != (f = null == (h = window.visualViewport) ? void 0 : h.height) ? f : innerHeight,
|
|
9732
|
+
_window = window,
|
|
9733
|
+
v = _window.scrollX,
|
|
9734
|
+
y = _window.scrollY,
|
|
9735
|
+
_e$getBoundingClientR = e.getBoundingClientRect(),
|
|
9736
|
+
E = _e$getBoundingClientR.height,
|
|
9737
|
+
M = _e$getBoundingClientR.width,
|
|
9738
|
+
x = _e$getBoundingClientR.top,
|
|
9739
|
+
I = _e$getBoundingClientR.right,
|
|
9740
|
+
C = _e$getBoundingClientR.bottom,
|
|
9741
|
+
R = _e$getBoundingClientR.left,
|
|
9742
|
+
T = "start" === s || "nearest" === s ? x : "end" === s ? C : x + E / 2,
|
|
9743
|
+
V = "center" === c ? R + M / 2 : "end" === c ? I : R,
|
|
9744
|
+
k = [];
|
|
9745
|
+
for (var _t2 = 0; _t2 < w.length; _t2++) {
|
|
9746
|
+
var _e2 = w[_t2],
|
|
9747
|
+
_e$getBoundingClientR2 = _e2.getBoundingClientRect(),
|
|
9748
|
+
_n2 = _e$getBoundingClientR2.height,
|
|
9749
|
+
_i = _e$getBoundingClientR2.width,
|
|
9750
|
+
_o = _e$getBoundingClientR2.top,
|
|
9751
|
+
_r = _e$getBoundingClientR2.right,
|
|
9752
|
+
_d = _e$getBoundingClientR2.bottom,
|
|
9753
|
+
_h = _e$getBoundingClientR2.left;
|
|
9754
|
+
if ("if-needed" === u && x >= 0 && R >= 0 && C <= b && I <= H && x >= _o && C <= _d && R >= _h && I <= _r) return k;
|
|
9755
|
+
var _f = getComputedStyle(_e2),
|
|
9756
|
+
_a = parseInt(_f.borderLeftWidth, 10),
|
|
9757
|
+
_g = parseInt(_f.borderTopWidth, 10),
|
|
9758
|
+
_m = parseInt(_f.borderRightWidth, 10),
|
|
9759
|
+
_W = parseInt(_f.borderBottomWidth, 10),
|
|
9760
|
+
B = 0,
|
|
9761
|
+
D = 0,
|
|
9762
|
+
L = "offsetWidth" in _e2 ? _e2.offsetWidth - _e2.clientWidth - _a - _m : 0,
|
|
9763
|
+
S = "offsetHeight" in _e2 ? _e2.offsetHeight - _e2.clientHeight - _g - _W : 0,
|
|
9764
|
+
X = "offsetWidth" in _e2 ? 0 === _e2.offsetWidth ? 0 : _i / _e2.offsetWidth : 0,
|
|
9765
|
+
Y = "offsetHeight" in _e2 ? 0 === _e2.offsetHeight ? 0 : _n2 / _e2.offsetHeight : 0;
|
|
9766
|
+
if (p === _e2) B = "start" === s ? T : "end" === s ? T - b : "nearest" === s ? l(y, y + b, b, _g, _W, y + T, y + T + E, E) : T - b / 2, D = "start" === c ? V : "center" === c ? V - H / 2 : "end" === c ? V - H : l(v, v + H, H, _a, _m, v + V, v + V + M, M), B = Math.max(0, B + y), D = Math.max(0, D + v);else {
|
|
9767
|
+
B = "start" === s ? T - _o - _g : "end" === s ? T - _d + _W + S : "nearest" === s ? l(_o, _d, _n2, _g, _W + S, T, T + E, E) : T - (_o + _n2 / 2) + S / 2, D = "start" === c ? V - _h - _a : "center" === c ? V - (_h + _i / 2) + L / 2 : "end" === c ? V - _r + _m + L : l(_h, _r, _i, _a, _m + L, V, V + M, M);
|
|
9768
|
+
var _t3 = _e2.scrollLeft,
|
|
9769
|
+
_f2 = _e2.scrollTop;
|
|
9770
|
+
B = Math.max(0, Math.min(_f2 + B / Y, _e2.scrollHeight - _n2 / Y + S)), D = Math.max(0, Math.min(_t3 + D / X, _e2.scrollWidth - _i / X + L)), T += _f2 - B, V += _t3 - D;
|
|
9771
|
+
}
|
|
9772
|
+
k.push({
|
|
9773
|
+
el: _e2,
|
|
9774
|
+
top: B,
|
|
9775
|
+
left: D
|
|
9776
|
+
});
|
|
9441
9777
|
}
|
|
9442
|
-
|
|
9443
|
-
}
|
|
9444
|
-
var v = null != (d = null == (r = window.visualViewport) ? void 0 : r.width) ? d : innerWidth,
|
|
9445
|
-
y = null != (f = null == (h = window.visualViewport) ? void 0 : h.height) ? f : innerHeight,
|
|
9446
|
-
E = null != (u = window.scrollX) ? u : pageXOffset,
|
|
9447
|
-
M = null != (s = window.scrollY) ? s : pageYOffset,
|
|
9448
|
-
_t$getBoundingClientR = t.getBoundingClientRect(),
|
|
9449
|
-
x = _t$getBoundingClientR.height,
|
|
9450
|
-
I = _t$getBoundingClientR.width,
|
|
9451
|
-
C = _t$getBoundingClientR.top,
|
|
9452
|
-
R = _t$getBoundingClientR.right,
|
|
9453
|
-
T = _t$getBoundingClientR.bottom,
|
|
9454
|
-
V = _t$getBoundingClientR.left,
|
|
9455
|
-
k = "start" === c || "nearest" === c ? C : "end" === c ? T : C + x / 2,
|
|
9456
|
-
B = "center" === g ? V + I / 2 : "end" === g ? R : V,
|
|
9457
|
-
D = [];
|
|
9458
|
-
for (var _e2 = 0; _e2 < H.length; _e2++) {
|
|
9459
|
-
var _t2 = H[_e2],
|
|
9460
|
-
_t2$getBoundingClient = _t2.getBoundingClientRect(),
|
|
9461
|
-
_n2 = _t2$getBoundingClient.height,
|
|
9462
|
-
_i = _t2$getBoundingClient.width,
|
|
9463
|
-
_o = _t2$getBoundingClient.top,
|
|
9464
|
-
_r = _t2$getBoundingClient.right,
|
|
9465
|
-
_d = _t2$getBoundingClient.bottom,
|
|
9466
|
-
_h = _t2$getBoundingClient.left;
|
|
9467
|
-
if ("if-needed" === a && C >= 0 && V >= 0 && T <= y && R <= v && C >= _o && T <= _d && V >= _h && R <= _r) return D;
|
|
9468
|
-
var _f = getComputedStyle(_t2),
|
|
9469
|
-
_u = parseInt(_f.borderLeftWidth, 10),
|
|
9470
|
-
_s = parseInt(_f.borderTopWidth, 10),
|
|
9471
|
-
_m = parseInt(_f.borderRightWidth, 10),
|
|
9472
|
-
_p = parseInt(_f.borderBottomWidth, 10),
|
|
9473
|
-
_w = 0,
|
|
9474
|
-
_b = 0,
|
|
9475
|
-
O = "offsetWidth" in _t2 ? _t2.offsetWidth - _t2.clientWidth - _u - _m : 0,
|
|
9476
|
-
X = "offsetHeight" in _t2 ? _t2.offsetHeight - _t2.clientHeight - _s - _p : 0,
|
|
9477
|
-
Y = "offsetWidth" in _t2 ? 0 === _t2.offsetWidth ? 0 : _i / _t2.offsetWidth : 0,
|
|
9478
|
-
L = "offsetHeight" in _t2 ? 0 === _t2.offsetHeight ? 0 : _n2 / _t2.offsetHeight : 0;
|
|
9479
|
-
if (W === _t2) _w = "start" === c ? k : "end" === c ? k - y : "nearest" === c ? l(M, M + y, y, _s, _p, M + k, M + k + x, x) : k - y / 2, _b = "start" === g ? B : "center" === g ? B - v / 2 : "end" === g ? B - v : l(E, E + v, v, _u, _m, E + B, E + B + I, I), _w = Math.max(0, _w + M), _b = Math.max(0, _b + E);else {
|
|
9480
|
-
_w = "start" === c ? k - _o - _s : "end" === c ? k - _d + _p + X : "nearest" === c ? l(_o, _d, _n2, _s, _p + X, k, k + x, x) : k - (_o + _n2 / 2) + X / 2, _b = "start" === g ? B - _h - _u : "center" === g ? B - (_h + _i / 2) + O / 2 : "end" === g ? B - _r + _m + O : l(_h, _r, _i, _u, _m + O, B, B + I, I);
|
|
9481
|
-
var _e3 = _t2.scrollLeft,
|
|
9482
|
-
_f2 = _t2.scrollTop;
|
|
9483
|
-
_w = Math.max(0, Math.min(_f2 + _w / L, _t2.scrollHeight - _n2 / L + X)), _b = Math.max(0, Math.min(_e3 + _b / Y, _t2.scrollWidth - _i / Y + O)), k += _f2 - _w, B += _e3 - _b;
|
|
9484
|
-
}
|
|
9485
|
-
D.push({
|
|
9486
|
-
el: _t2,
|
|
9487
|
-
top: _w,
|
|
9488
|
-
left: _b
|
|
9489
|
-
});
|
|
9490
|
-
}
|
|
9491
|
-
return D;
|
|
9492
|
-
};
|
|
9778
|
+
return k;
|
|
9779
|
+
};
|
|
9493
9780
|
|
|
9494
|
-
var
|
|
9781
|
+
var o = function o(e) {
|
|
9495
9782
|
return !1 === e ? {
|
|
9496
9783
|
block: "end",
|
|
9497
9784
|
inline: "nearest"
|
|
@@ -9502,25 +9789,38 @@ var t = function t(e) {
|
|
|
9502
9789
|
inline: "nearest"
|
|
9503
9790
|
};
|
|
9504
9791
|
};
|
|
9505
|
-
function
|
|
9506
|
-
|
|
9792
|
+
function t(t, n) {
|
|
9793
|
+
if (!t.isConnected || !function (e) {
|
|
9794
|
+
var o = e;
|
|
9795
|
+
for (; o && o.parentNode;) {
|
|
9796
|
+
if (o.parentNode === document) return !0;
|
|
9797
|
+
o = o.parentNode instanceof ShadowRoot ? o.parentNode.host : o.parentNode;
|
|
9798
|
+
}
|
|
9799
|
+
return !1;
|
|
9800
|
+
}(t)) return;
|
|
9507
9801
|
if (function (e) {
|
|
9508
|
-
return "object" == _typeof(e) && "function" == typeof e.behavior;
|
|
9509
|
-
}(
|
|
9510
|
-
|
|
9511
|
-
var
|
|
9512
|
-
|
|
9513
|
-
|
|
9514
|
-
|
|
9515
|
-
|
|
9516
|
-
|
|
9517
|
-
|
|
9518
|
-
|
|
9519
|
-
|
|
9520
|
-
|
|
9521
|
-
|
|
9522
|
-
|
|
9523
|
-
|
|
9802
|
+
return "object" == _typeof$1(e) && "function" == typeof e.behavior;
|
|
9803
|
+
}(n)) return n.behavior(o$1(t, n));
|
|
9804
|
+
var r = "boolean" == typeof n || null == n ? void 0 : n.behavior;
|
|
9805
|
+
var _iterator = _createForOfIteratorHelper(o$1(t, o(n))),
|
|
9806
|
+
_step;
|
|
9807
|
+
try {
|
|
9808
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
9809
|
+
var _step$value = _step.value,
|
|
9810
|
+
i = _step$value.el,
|
|
9811
|
+
a = _step$value.top,
|
|
9812
|
+
l = _step$value.left;
|
|
9813
|
+
i.scroll({
|
|
9814
|
+
top: a,
|
|
9815
|
+
left: l,
|
|
9816
|
+
behavior: r
|
|
9817
|
+
});
|
|
9818
|
+
}
|
|
9819
|
+
} catch (err) {
|
|
9820
|
+
_iterator.e(err);
|
|
9821
|
+
} finally {
|
|
9822
|
+
_iterator.f();
|
|
9823
|
+
}
|
|
9524
9824
|
}
|
|
9525
9825
|
|
|
9526
9826
|
var SelectOption = function SelectOption(_ref) {
|
|
@@ -9537,7 +9837,7 @@ var SelectOption = function SelectOption(_ref) {
|
|
|
9537
9837
|
}, [onClick, option]);
|
|
9538
9838
|
React.useEffect(function () {
|
|
9539
9839
|
if (active && ref.current) {
|
|
9540
|
-
|
|
9840
|
+
t(ref.current, {
|
|
9541
9841
|
scrollMode: 'if-needed',
|
|
9542
9842
|
block: 'nearest'
|
|
9543
9843
|
});
|
|
@@ -9656,11 +9956,11 @@ var useClickOutside = function useClickOutside(ref, onClickOutside) {
|
|
|
9656
9956
|
});
|
|
9657
9957
|
};
|
|
9658
9958
|
|
|
9659
|
-
var Mode$1
|
|
9660
|
-
(function (Mode) {
|
|
9959
|
+
var Mode$1 = /*#__PURE__*/function (Mode) {
|
|
9661
9960
|
Mode[Mode["Resting"] = 0] = "Resting";
|
|
9662
9961
|
Mode[Mode["Open"] = 1] = "Open";
|
|
9663
|
-
|
|
9962
|
+
return Mode;
|
|
9963
|
+
}(Mode$1 || {});
|
|
9664
9964
|
var reducer = function reducer(state, action) {
|
|
9665
9965
|
switch (action.type) {
|
|
9666
9966
|
case 'OPEN':
|
|
@@ -9690,7 +9990,7 @@ var useSelect = function useSelect(_ref) {
|
|
|
9690
9990
|
var initialValue = value !== null && value !== void 0 ? value : defaultValue;
|
|
9691
9991
|
var _useReducer = React.useReducer(reducer, {
|
|
9692
9992
|
value: initialValue,
|
|
9693
|
-
focused: _typeof(initialValue) == 'object' ? initialValue === null || initialValue === void 0 ? void 0 : initialValue[0] : initialValue,
|
|
9993
|
+
focused: _typeof$1(initialValue) == 'object' ? initialValue === null || initialValue === void 0 ? void 0 : initialValue[0] : initialValue,
|
|
9694
9994
|
mode: Mode$1.Resting
|
|
9695
9995
|
}),
|
|
9696
9996
|
_useReducer2 = _slicedToArray(_useReducer, 2),
|
|
@@ -9871,9 +10171,7 @@ var __assign$2 = undefined && undefined.__assign || function () {
|
|
|
9871
10171
|
__assign$2 = Object.assign || function (t) {
|
|
9872
10172
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9873
10173
|
s = arguments[i];
|
|
9874
|
-
for (var p in s)
|
|
9875
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
9876
|
-
}
|
|
10174
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
9877
10175
|
}
|
|
9878
10176
|
return t;
|
|
9879
10177
|
};
|
|
@@ -9881,9 +10179,7 @@ var __assign$2 = undefined && undefined.__assign || function () {
|
|
|
9881
10179
|
};
|
|
9882
10180
|
var __rest$2 = undefined && undefined.__rest || function (s, e) {
|
|
9883
10181
|
var t = {};
|
|
9884
|
-
for (var p in s)
|
|
9885
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
9886
|
-
}
|
|
10182
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
9887
10183
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
9888
10184
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
9889
10185
|
}
|
|
@@ -10100,7 +10396,7 @@ var CreditCardNumberInput = function CreditCardNumberInput(_ref) {
|
|
|
10100
10396
|
value = _useState2[0],
|
|
10101
10397
|
setValue = _useState2[1];
|
|
10102
10398
|
var mask = React.useMemo(function () {
|
|
10103
|
-
var cardType =
|
|
10399
|
+
var cardType = creditCardType$1(value)[0];
|
|
10104
10400
|
if (!cardType) return DEFAULT_MASK;
|
|
10105
10401
|
var gaps = cardType.gaps,
|
|
10106
10402
|
lengths = cardType.lengths;
|
|
@@ -10287,9 +10583,7 @@ useCursor.useCursor = function (_a) {
|
|
|
10287
10583
|
(function (exports) {
|
|
10288
10584
|
|
|
10289
10585
|
function __export(m) {
|
|
10290
|
-
for (var p in m)
|
|
10291
|
-
if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
10292
|
-
}
|
|
10586
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
10293
10587
|
}
|
|
10294
10588
|
Object.defineProperty(exports, "__esModule", {
|
|
10295
10589
|
value: true
|
|
@@ -10634,9 +10928,7 @@ var __assign$1 = undefined && undefined.__assign || function () {
|
|
|
10634
10928
|
__assign$1 = Object.assign || function (t) {
|
|
10635
10929
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
10636
10930
|
s = arguments[i];
|
|
10637
|
-
for (var p in s)
|
|
10638
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
10639
|
-
}
|
|
10931
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
10640
10932
|
}
|
|
10641
10933
|
return t;
|
|
10642
10934
|
};
|
|
@@ -10644,9 +10936,7 @@ var __assign$1 = undefined && undefined.__assign || function () {
|
|
|
10644
10936
|
};
|
|
10645
10937
|
var __rest$1 = undefined && undefined.__rest || function (s, e) {
|
|
10646
10938
|
var t = {};
|
|
10647
|
-
for (var p in s)
|
|
10648
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
10649
|
-
}
|
|
10939
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
10650
10940
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
10651
10941
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
10652
10942
|
}
|
|
@@ -10698,9 +10988,7 @@ var __assign = undefined && undefined.__assign || function () {
|
|
|
10698
10988
|
__assign = Object.assign || function (t) {
|
|
10699
10989
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
10700
10990
|
s = arguments[i];
|
|
10701
|
-
for (var p in s)
|
|
10702
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
10703
|
-
}
|
|
10991
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
10704
10992
|
}
|
|
10705
10993
|
return t;
|
|
10706
10994
|
};
|
|
@@ -10708,9 +10996,7 @@ var __assign = undefined && undefined.__assign || function () {
|
|
|
10708
10996
|
};
|
|
10709
10997
|
var __rest = undefined && undefined.__rest || function (s, e) {
|
|
10710
10998
|
var t = {};
|
|
10711
|
-
for (var p in s)
|
|
10712
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
10713
|
-
}
|
|
10999
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
10714
11000
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
10715
11001
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
10716
11002
|
}
|
|
@@ -10846,15 +11132,15 @@ var POPOVER_MOUSEOUT_DELAY_MS = 200;
|
|
|
10846
11132
|
var THREE_QUARTER_SECOND_DELAY = 750;
|
|
10847
11133
|
var ONE_SECOND_DELAY = 1000;
|
|
10848
11134
|
var FIVE_SECOND_DELAY = 5000;
|
|
10849
|
-
var Mode
|
|
10850
|
-
(function (Mode) {
|
|
11135
|
+
var Mode = /*#__PURE__*/function (Mode) {
|
|
10851
11136
|
Mode["Opening"] = "opening";
|
|
10852
11137
|
Mode["Open"] = "open";
|
|
10853
11138
|
Mode["Closing"] = "closing";
|
|
10854
11139
|
Mode["AutoOpening"] = "autoOpening";
|
|
10855
11140
|
Mode["AutoOpen"] = "autoOpen";
|
|
10856
11141
|
Mode["Closed"] = "closed";
|
|
10857
|
-
|
|
11142
|
+
return Mode;
|
|
11143
|
+
}(Mode || {});
|
|
10858
11144
|
var Popover = function Popover(_ref) {
|
|
10859
11145
|
var className = _ref.className,
|
|
10860
11146
|
children = _ref.children,
|