@televet/kibble-ui 1.3.2-release.1 → 1.3.2

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.
Files changed (117) hide show
  1. package/build/components/Forms/Textarea/index.d.ts +1 -0
  2. package/build/components/Forms/Textarea/textarea.component.d.ts +3 -5
  3. package/build/components/Forms/index.d.ts +0 -4
  4. package/build/components/index.d.ts +0 -1
  5. package/build/index.js +28 -2374
  6. package/build/index.js.map +1 -1
  7. package/build/theme/theme.types.d.ts +2 -4
  8. package/package.json +1 -1
  9. package/build/components/Avatar/avatar.component.d.ts +0 -26
  10. package/build/components/Avatar/avatar.config.d.ts +0 -2
  11. package/build/components/Avatar/avatar.types.d.ts +0 -1
  12. package/build/components/Avatar/index.d.ts +0 -3
  13. package/build/components/AvatarGroup/avatarGroup.component.d.ts +0 -13
  14. package/build/components/AvatarGroup/avatarGroup.utilities.d.ts +0 -6
  15. package/build/components/AvatarGroup/index.d.ts +0 -1
  16. package/build/components/Button/button.component.d.ts +0 -13
  17. package/build/components/Button/button.config.d.ts +0 -16
  18. package/build/components/Button/button.model.d.ts +0 -5
  19. package/build/components/Button/button.records.d.ts +0 -2
  20. package/build/components/Button/button.types.d.ts +0 -8
  21. package/build/components/Button/index.d.ts +0 -3
  22. package/build/components/DataDisplay/Badge/index.d.ts +0 -1
  23. package/build/components/DataDisplay/Code/index.d.ts +0 -1
  24. package/build/components/DataDisplay/Divider/index.d.ts +0 -1
  25. package/build/components/DataDisplay/Kbd/index.d.ts +0 -1
  26. package/build/components/DataDisplay/List/index.d.ts +0 -1
  27. package/build/components/DataDisplay/Tag/index.d.ts +0 -1
  28. package/build/components/Disclosure/Accordion/index.d.ts +0 -1
  29. package/build/components/Disclosure/Tabs/index.d.ts +0 -1
  30. package/build/components/Disclosure/VisuallyHidden/index.d.ts +0 -1
  31. package/build/components/Disclosure/index.d.ts +0 -3
  32. package/build/components/Drawer/drawer.config.d.ts +0 -13
  33. package/build/components/Drawer/drawer.records.d.ts +0 -13
  34. package/build/components/Drawer/index.d.ts +0 -1
  35. package/build/components/Feedback/Alert/index.d.ts +0 -1
  36. package/build/components/Feedback/CircularProgress/index.d.ts +0 -1
  37. package/build/components/Feedback/Progress/index.d.ts +0 -1
  38. package/build/components/Feedback/Skeleton/index.d.ts +0 -1
  39. package/build/components/Feedback/Spinner/index.d.ts +0 -1
  40. package/build/components/Feedback/Toast/index.d.ts +0 -1
  41. package/build/components/Feedback/index.d.ts +0 -6
  42. package/build/components/FormControl/formControl.argTypes.d.ts +0 -125
  43. package/build/components/FormControl/formControl.component.d.ts +0 -12
  44. package/build/components/FormControl/formControl.config.d.ts +0 -2
  45. package/build/components/Forms/FormControl/formControl.argTypes.d.ts +0 -125
  46. package/build/components/Forms/FormControl/formControl.component.d.ts +0 -12
  47. package/build/components/Forms/FormControl/formControl.config.d.ts +0 -2
  48. package/build/components/Forms/RatingDots/index.d.ts +0 -2
  49. package/build/components/Forms/RatingDots/ratingDot.component.d.ts +0 -9
  50. package/build/components/Forms/RatingDots/ratingDots.component.d.ts +0 -10
  51. package/build/components/Forms/Select/index.d.ts +0 -3
  52. package/build/components/Forms/Select/select.component.d.ts +0 -9
  53. package/build/components/Forms/Select/select.config.d.ts +0 -2
  54. package/build/components/Forms/Select/select.types.d.ts +0 -4
  55. package/build/components/Forms/Switch/index.d.ts +0 -2
  56. package/build/components/Forms/Switch/switch.component.d.ts +0 -7
  57. package/build/components/Forms/Switch/switch.config.d.ts +0 -2
  58. package/build/components/Forms/TextInput/index.d.ts +0 -2
  59. package/build/components/Forms/TextInput/textInput.component.d.ts +0 -9
  60. package/build/components/Forms/TextInput/textInput.config.d.ts +0 -2
  61. package/build/components/Icon/icon.component.d.ts +0 -8
  62. package/build/components/Icon/icon.config.d.ts +0 -3
  63. package/build/components/Icon/icon.records.d.ts +0 -3
  64. package/build/components/Icon/icon.types.d.ts +0 -3
  65. package/build/components/Icon/index.d.ts +0 -2
  66. package/build/components/Logo/index.d.ts +0 -2
  67. package/build/components/Logo/logo.component.d.ts +0 -14
  68. package/build/components/Logo/logo.config.d.ts +0 -6
  69. package/build/components/Logo/logo.records.d.ts +0 -33
  70. package/build/components/Logo/logo.types.d.ts +0 -3
  71. package/build/components/Logo/logos.d.ts +0 -22
  72. package/build/components/Media/Icon/icon.component.d.ts +0 -8
  73. package/build/components/Media/Icon/icon.records.d.ts +0 -3
  74. package/build/components/Media/Icon/icon.types.d.ts +0 -3
  75. package/build/components/Media/Icon/index.d.ts +0 -2
  76. package/build/components/Media/Logo/index.d.ts +0 -2
  77. package/build/components/Media/Logo/logo.component.d.ts +0 -14
  78. package/build/components/Media/Logo/logo.config.d.ts +0 -6
  79. package/build/components/Media/Logo/logo.types.d.ts +0 -3
  80. package/build/components/Media/Logo/logos.d.ts +0 -22
  81. package/build/components/Navigation/Breadcrumb/index.d.ts +0 -1
  82. package/build/components/Navigation/Link/index.d.ts +0 -1
  83. package/build/components/Navigation/LinkOverlay/index.d.ts +0 -1
  84. package/build/components/Navigation/index.d.ts +0 -3
  85. package/build/components/Overlay/AlertDialog/index.d.ts +0 -1
  86. package/build/components/Overlay/Menu/index.d.ts +0 -1
  87. package/build/components/RatingDots/index.d.ts +0 -2
  88. package/build/components/RatingDots/ratingDot.component.d.ts +0 -9
  89. package/build/components/RatingDots/ratingDots.component.d.ts +0 -10
  90. package/build/components/Select/index.d.ts +0 -3
  91. package/build/components/Select/select.component.d.ts +0 -9
  92. package/build/components/Select/select.config.d.ts +0 -2
  93. package/build/components/Select/select.types.d.ts +0 -4
  94. package/build/components/Switch/index.d.ts +0 -2
  95. package/build/components/Switch/switch.component.d.ts +0 -7
  96. package/build/components/Switch/switch.config.d.ts +0 -2
  97. package/build/components/TextInput/index.d.ts +0 -2
  98. package/build/components/TextInput/textInput.component.d.ts +0 -9
  99. package/build/components/TextInput/textInput.config.d.ts +0 -2
  100. package/build/components/Textarea/index.d.ts +0 -2
  101. package/build/components/Textarea/textarea.component.d.ts +0 -7
  102. package/build/components/Textarea/textarea.config.d.ts +0 -2
  103. package/build/components/Textarea/textarea.types.d.ts +0 -2
  104. package/build/components/Tooltip/index.d.ts +0 -3
  105. package/build/components/Tooltip/tooltip.component.d.ts +0 -8
  106. package/build/components/Tooltip/tooltip.config.d.ts +0 -8
  107. package/build/components/Tooltip/tooltip.model.d.ts +0 -4
  108. package/build/components/Tooltip/tooltip.records.d.ts +0 -9
  109. package/build/components/Tooltip/tooltip.types.d.ts +0 -4
  110. package/build/components/Typography/Heading/heading.records.d.ts +0 -2
  111. package/build/components/Typography/Text/text.records.d.ts +0 -2
  112. package/build/shared/interfaces/SelectOption.d.ts +0 -4
  113. package/build/theme/theme.model.d.ts +0 -37
  114. package/build/theme/theme.record.d.ts +0 -2
  115. package/build/theme/tokens/colors/color.model.d.ts +0 -96
  116. package/build/theme/tokens/colors/color.type.d.ts +0 -102
  117. package/build/theme/tokens/colors.d.ts +0 -82
package/build/index.js CHANGED
@@ -949,19 +949,18 @@ var Button = React.forwardRef(function (props, ref) {
949
949
  bg: react.useColorModeValue(modeColor.active, dark.active),
950
950
  transform: 'scale(0.98)',
951
951
  };
952
- var iconName = p.iconName; p.darkMode; var iconPosition = p.iconPosition, domProps = __rest(p, ["iconName", "darkMode", "iconPosition"]);
953
- if (iconName) {
954
- var ButtonIcon = React__default["default"].createElement(Icon, { size: p.size, name: iconName });
955
- if (!domProps.children) {
956
- var label = camelCaseToLabel(iconName);
957
- return (React__default["default"].createElement(react.IconButton, __assign({ ref: ref, _hover: hoverClass, _active: activeClass, "aria-label": label, icon: ButtonIcon }, domProps)));
952
+ if (p.iconName) {
953
+ var ButtonIcon = React__default["default"].createElement(Icon, { size: p.size, name: p.iconName });
954
+ if (!p.children) {
955
+ var label = camelCaseToLabel(p.iconName);
956
+ return (React__default["default"].createElement(react.IconButton, __assign({ ref: ref, _hover: hoverClass, _active: activeClass, "aria-label": label, icon: ButtonIcon }, p)));
958
957
  }
959
958
  else {
960
- var position = iconPosition === 'right' ? 'rightIcon' : 'leftIcon';
961
- domProps[position] = ButtonIcon;
959
+ var position = p.iconPosition === 'right' ? 'rightIcon' : 'leftIcon';
960
+ p[position] = ButtonIcon;
962
961
  }
963
962
  }
964
- return (React__default["default"].createElement(react.Button, __assign({ fontWeight: fontWeights.semibold, ref: ref, _hover: hoverClass, _active: activeClass, iconSpacing: domProps.size === 'sm' || domProps.size === 'xs' ? '4px' : '8px' }, domProps), domProps.children));
963
+ return (React__default["default"].createElement(react.Button, __assign({ fontWeight: fontWeights.semibold, ref: ref, _hover: hoverClass, _active: activeClass, whiteSpace: "normal", wordWrap: "break-word", iconSpacing: p.size === 'sm' || p.size === 'xs' ? '4px' : '8px' }, p), props.children));
965
964
  });
966
965
  Button.displayName = 'Button';
967
966
 
@@ -1410,25 +1409,10 @@ var ButtonSizeConfig = {
1410
1409
  },
1411
1410
  };
1412
1411
 
1413
- function withFormControl(Component) {
1414
- function WithFormControl(_a) {
1415
- var errorText = _a.errorText, helperText = _a.helperText, isDisabled = _a.isDisabled, _b = _a.isFieldInline, isFieldInline = _b === void 0 ? false : _b, isInvalid = _a.isInvalid, isReadOnly = _a.isReadOnly, isRequired = _a.isRequired, label = _a.label, props = __rest(_a, ["errorText", "helperText", "isDisabled", "isFieldInline", "isInvalid", "isReadOnly", "isRequired", "label"]);
1416
- var colors = useTheme().colors;
1417
- return (React__default["default"].createElement(react.FormControl, { isInvalid: isInvalid, isRequired: isRequired, isReadOnly: isReadOnly, isDisabled: isDisabled },
1418
- label && (React__default["default"].createElement(react.FormLabel, { display: isFieldInline ? 'inline-block' : 'block', color: colors.text.light.default }, label)),
1419
- React__default["default"].createElement(Component, __assign({}, props, { isFieldInline: isFieldInline, errorBorderColor: colors.border.light.error, focusBorderColor: colors.border.light.focus })),
1420
- helperText && !isInvalid && React__default["default"].createElement(react.FormHelperText, null, helperText),
1421
- React__default["default"].createElement(react.FormErrorMessage, null, errorText ? errorText : 'Field is invalid')));
1422
- }
1423
- WithFormControl.displayName = "withFormControl(".concat(Component.displayName || Component.name);
1424
- return WithFormControl;
1425
- }
1426
-
1427
1412
  var Textarea = function (props) {
1428
- return React__default["default"].createElement(react.Textarea, __assign({}, props));
1429
- };
1430
- Textarea.displayName = 'Textarea';
1431
- var WrappedTextArea = withFormControl(Textarea);
1413
+ var colors = useTheme().colors;
1414
+ return (React__default["default"].createElement(react.Textarea, __assign({}, props, { errorBorderColor: colors.border.light.error, focusBorderColor: colors.border.light.focus })));
1415
+ };
1432
1416
 
1433
1417
  var blur = {
1434
1418
  none: 0,
@@ -1569,46 +1553,29 @@ var zIndices = {
1569
1553
  tooltip: 1800,
1570
1554
  };
1571
1555
 
1572
- var FormControlConfig = {
1556
+ var TextareaConfig = {
1573
1557
  baseStyle: {
1574
1558
  borderRadius: borders['4px'],
1575
1559
  color: adaptiveColors.text.light.default,
1576
1560
  },
1577
1561
  variants: {
1578
1562
  outline: {
1579
- // textarea doesn't have a "field" prop, so its disabled styles live a level up from the others
1563
+ background: coreColors.white,
1564
+ borderColor: semanticColors.border.light.default,
1565
+ _hover: {
1566
+ borderColor: semanticColors.border.dark.default,
1567
+ },
1580
1568
  _disabled: {
1581
- background: colors.border.light.default,
1582
- borderColor: colors.border.light.default,
1583
- opacity: 0.4,
1584
- '::placeholder': {
1585
- color: colors.text.light.placeholder,
1586
- opacity: 1,
1587
- },
1569
+ borderColor: semanticColors.border.light.default,
1570
+ opacity: 0.5,
1588
1571
  },
1589
- field: {
1590
- background: coreColors.white,
1591
- borderColor: colors.border.light.default,
1572
+ _focus: {
1592
1573
  _hover: {
1593
- borderColor: colors.border.dark.default,
1574
+ borderColor: semanticColors.border.light.focus,
1594
1575
  },
1595
- _disabled: {
1596
- background: colors.border.light.default,
1597
- borderColor: colors.border.light.default,
1598
- opacity: 0.4,
1599
- '::placeholder': {
1600
- color: colors.text.light.placeholder,
1601
- opacity: 1,
1602
- },
1603
- },
1604
- _focus: {
1605
- _hover: {
1606
- borderColor: colors.border.light.focus,
1607
- },
1608
- _invalid: {
1609
- borderColor: colors.border.light.error,
1610
- boxShadow: "0 0 0 1px ".concat(colors.border.light.error),
1611
- },
1576
+ _invalid: {
1577
+ borderColor: semanticColors.border.light.error,
1578
+ boxShadow: "0 0 0 1px ".concat(semanticColors.border.light.error),
1612
1579
  },
1613
1580
  },
1614
1581
  },
@@ -1627,2293 +1594,6 @@ var FormControlConfig = {
1627
1594
  },
1628
1595
  };
1629
1596
 
1630
- var TextareaConfig = __assign({}, FormControlConfig);
1631
-
1632
- var TextInput = function (props) {
1633
- // the disabled styles coming from the FormControlConfig weren't getting applied to the TextInput, so they're added inline instead
1634
- var leftElement = props.leftElement, rightElement = props.rightElement, domProps = __rest(props, ["leftElement", "rightElement"]);
1635
- return (React__default["default"].createElement(react.InputGroup, null,
1636
- leftElement ? React__default["default"].createElement(react.InputLeftElement, { children: leftElement }) : null,
1637
- React__default["default"].createElement(react.Input, __assign({ _disabled: {
1638
- background: colors.border.light.default,
1639
- opacity: 0.4,
1640
- cursor: 'not-allowed',
1641
- '::placeholder': {
1642
- color: colors.text.light.placeholder,
1643
- opacity: 1,
1644
- },
1645
- } }, domProps)),
1646
- rightElement ? React__default["default"].createElement(react.InputRightElement, { children: rightElement }) : null));
1647
- };
1648
- TextInput.displayName = 'TextInput';
1649
- var WrappedTextInput = withFormControl(TextInput);
1650
-
1651
- var TextInputConfig = __assign({}, FormControlConfig);
1652
-
1653
- var RatingDot = function (_a) {
1654
- var number = _a.number, isInteractive = _a.isInteractive, isDisabled = _a.isDisabled, onClick = _a.onClick, selected = _a.selected;
1655
- var colors = useTheme().colors;
1656
- var handleClick = React.useCallback(function () {
1657
- if (onClick)
1658
- onClick(number);
1659
- }, [number, onClick]);
1660
- return (React__default["default"].createElement(React__default["default"].Fragment, null, isInteractive ? (isDisabled ? (React__default["default"].createElement(react.Flex, { as: "button", bgColor: selected ? "".concat(colors.background.brand, "80") : 'transparent', h: "60px", w: "60px", borderRadius: "30px", border: "2px solid ".concat(selected ? 'transparent' : colors.background.brand, "50"), color: selected ? 'white' : "".concat(colors.background.brand, "50"), mr: 1, mb: 1, justifyContent: "center", alignItems: "center", fontSize: "lg", cursor: "not-allowed" }, number)) : (React__default["default"].createElement(react.Flex, { as: "button", onClick: handleClick, bgColor: selected ? colors.background.brand : 'transparent', h: "60px", w: "60px", borderRadius: "30px", border: "2px solid ".concat(colors.background.brand), color: selected ? colors.text.dark.default : colors.text.light.link, mr: 1, mb: 1, justifyContent: "center", alignItems: "center", fontSize: "lg", cursor: "pointer", _hover: {
1661
- bg: selected ? colors.background.brand : colors.background.tealLight,
1662
- } }, number))) : (React__default["default"].createElement(react.Flex, { as: "div", bgColor: colors.background.brand, h: "40px", w: "40px", borderRadius: "20px", border: "2px solid ".concat(colors.background.brand), color: colors.text.dark.default, mr: 1, mb: 1, justifyContent: "center", alignItems: "center", fontSize: "lg", cursor: "default" }, number))));
1663
- };
1664
-
1665
- var RatingDots = function (_a) {
1666
- var minValue = _a.minValue, maxValue = _a.maxValue, isDisabled = _a.isDisabled, isInteractive = _a.isInteractive, onClick = _a.onClick, selected = _a.selected;
1667
- var _b = React.useState(), selectedValue = _b[0], setSelectedValue = _b[1];
1668
- var roundedMin = React.useMemo(function () { return Math.round(minValue); }, [minValue]);
1669
- var roundedMax = React.useMemo(function () { return Math.round(maxValue); }, [maxValue]);
1670
- var values = React.useMemo(function () {
1671
- var arr = [];
1672
- for (var i = roundedMin; i <= roundedMax; i++) {
1673
- arr.push(i);
1674
- }
1675
- return arr;
1676
- }, [roundedMax, roundedMin]);
1677
- React.useEffect(function () {
1678
- if (selected !== undefined)
1679
- setSelectedValue(selected);
1680
- }, [selected]);
1681
- return (React__default["default"].createElement(React__default["default"].Fragment, null,
1682
- React__default["default"].createElement(react.Flex, { my: 4, flexWrap: "wrap", justifyContent: isInteractive ? 'center' : 'flex-start' }, values.map(function (value) { return (React__default["default"].createElement(RatingDot, { key: "composer-rating-dot-".concat(value), number: value, isInteractive: isInteractive, onClick: onClick, isDisabled: isDisabled, selected: selectedValue === value })); })),
1683
- React__default["default"].createElement(react.Flex, { color: colors.text.light.subtle, justifyContent: isInteractive ? 'space-between' : 'flex-start' },
1684
- React__default["default"].createElement(Text, { size: "sm" }, "".concat(roundedMin, " - Not likely")),
1685
- !isInteractive && React__default["default"].createElement(Text, { size: "sm", pr: 1 }, ","),
1686
- React__default["default"].createElement(Text, { size: "sm" }, "".concat(roundedMax, " - Very likely")))));
1687
- };
1688
-
1689
- var Select = function (props) {
1690
- var options = props.options, domProps = __rest(props, ["options"]);
1691
- return (React__default["default"].createElement(react.Select, __assign({}, domProps), options.map(function (option, index) { return (React__default["default"].createElement("option", { key: "options-".concat(index), value: option.value }, option.text)); })));
1692
- };
1693
- Select.displayName = 'Select';
1694
- var WrappedSelect = withFormControl(Select);
1695
-
1696
- var SelectConfig = __assign({}, FormControlConfig);
1697
-
1698
- var Switch = function (props) {
1699
- var isChecked = props.isChecked, isFieldInline = props.isFieldInline;
1700
- return (React__default["default"].createElement(react.Switch, __assign({ colorScheme: "teal" }, props, { isChecked: isChecked, dispaly: isFieldInline ? 'inline-block' : 'block' })));
1701
- };
1702
- Switch.displayName = 'Switch';
1703
- var WrappedSwitch = withFormControl(Switch);
1704
-
1705
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
1706
-
1707
- var lodash_mergewith = {exports: {}};
1708
-
1709
- /**
1710
- * Lodash (Custom Build) <https://lodash.com/>
1711
- * Build: `lodash modularize exports="npm" -o ./`
1712
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
1713
- * Released under MIT license <https://lodash.com/license>
1714
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
1715
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
1716
- */
1717
-
1718
- (function (module, exports) {
1719
- /** Used as the size to enable large array optimizations. */
1720
- var LARGE_ARRAY_SIZE = 200;
1721
-
1722
- /** Used to stand-in for `undefined` hash values. */
1723
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
1724
-
1725
- /** Used to detect hot functions by number of calls within a span of milliseconds. */
1726
- var HOT_COUNT = 800,
1727
- HOT_SPAN = 16;
1728
-
1729
- /** Used as references for various `Number` constants. */
1730
- var MAX_SAFE_INTEGER = 9007199254740991;
1731
-
1732
- /** `Object#toString` result references. */
1733
- var argsTag = '[object Arguments]',
1734
- arrayTag = '[object Array]',
1735
- asyncTag = '[object AsyncFunction]',
1736
- boolTag = '[object Boolean]',
1737
- dateTag = '[object Date]',
1738
- errorTag = '[object Error]',
1739
- funcTag = '[object Function]',
1740
- genTag = '[object GeneratorFunction]',
1741
- mapTag = '[object Map]',
1742
- numberTag = '[object Number]',
1743
- nullTag = '[object Null]',
1744
- objectTag = '[object Object]',
1745
- proxyTag = '[object Proxy]',
1746
- regexpTag = '[object RegExp]',
1747
- setTag = '[object Set]',
1748
- stringTag = '[object String]',
1749
- undefinedTag = '[object Undefined]',
1750
- weakMapTag = '[object WeakMap]';
1751
-
1752
- var arrayBufferTag = '[object ArrayBuffer]',
1753
- dataViewTag = '[object DataView]',
1754
- float32Tag = '[object Float32Array]',
1755
- float64Tag = '[object Float64Array]',
1756
- int8Tag = '[object Int8Array]',
1757
- int16Tag = '[object Int16Array]',
1758
- int32Tag = '[object Int32Array]',
1759
- uint8Tag = '[object Uint8Array]',
1760
- uint8ClampedTag = '[object Uint8ClampedArray]',
1761
- uint16Tag = '[object Uint16Array]',
1762
- uint32Tag = '[object Uint32Array]';
1763
-
1764
- /**
1765
- * Used to match `RegExp`
1766
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
1767
- */
1768
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
1769
-
1770
- /** Used to detect host constructors (Safari). */
1771
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
1772
-
1773
- /** Used to detect unsigned integer values. */
1774
- var reIsUint = /^(?:0|[1-9]\d*)$/;
1775
-
1776
- /** Used to identify `toStringTag` values of typed arrays. */
1777
- var typedArrayTags = {};
1778
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
1779
- typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
1780
- typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
1781
- typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
1782
- typedArrayTags[uint32Tag] = true;
1783
- typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
1784
- typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
1785
- typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
1786
- typedArrayTags[errorTag] = typedArrayTags[funcTag] =
1787
- typedArrayTags[mapTag] = typedArrayTags[numberTag] =
1788
- typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
1789
- typedArrayTags[setTag] = typedArrayTags[stringTag] =
1790
- typedArrayTags[weakMapTag] = false;
1791
-
1792
- /** Detect free variable `global` from Node.js. */
1793
- var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
1794
-
1795
- /** Detect free variable `self`. */
1796
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
1797
-
1798
- /** Used as a reference to the global object. */
1799
- var root = freeGlobal || freeSelf || Function('return this')();
1800
-
1801
- /** Detect free variable `exports`. */
1802
- var freeExports = exports && !exports.nodeType && exports;
1803
-
1804
- /** Detect free variable `module`. */
1805
- var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
1806
-
1807
- /** Detect the popular CommonJS extension `module.exports`. */
1808
- var moduleExports = freeModule && freeModule.exports === freeExports;
1809
-
1810
- /** Detect free variable `process` from Node.js. */
1811
- var freeProcess = moduleExports && freeGlobal.process;
1812
-
1813
- /** Used to access faster Node.js helpers. */
1814
- var nodeUtil = (function() {
1815
- try {
1816
- // Use `util.types` for Node.js 10+.
1817
- var types = freeModule && freeModule.require && freeModule.require('util').types;
1818
-
1819
- if (types) {
1820
- return types;
1821
- }
1822
-
1823
- // Legacy `process.binding('util')` for Node.js < 10.
1824
- return freeProcess && freeProcess.binding && freeProcess.binding('util');
1825
- } catch (e) {}
1826
- }());
1827
-
1828
- /* Node.js helper references. */
1829
- var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
1830
-
1831
- /**
1832
- * A faster alternative to `Function#apply`, this function invokes `func`
1833
- * with the `this` binding of `thisArg` and the arguments of `args`.
1834
- *
1835
- * @private
1836
- * @param {Function} func The function to invoke.
1837
- * @param {*} thisArg The `this` binding of `func`.
1838
- * @param {Array} args The arguments to invoke `func` with.
1839
- * @returns {*} Returns the result of `func`.
1840
- */
1841
- function apply(func, thisArg, args) {
1842
- switch (args.length) {
1843
- case 0: return func.call(thisArg);
1844
- case 1: return func.call(thisArg, args[0]);
1845
- case 2: return func.call(thisArg, args[0], args[1]);
1846
- case 3: return func.call(thisArg, args[0], args[1], args[2]);
1847
- }
1848
- return func.apply(thisArg, args);
1849
- }
1850
-
1851
- /**
1852
- * The base implementation of `_.times` without support for iteratee shorthands
1853
- * or max array length checks.
1854
- *
1855
- * @private
1856
- * @param {number} n The number of times to invoke `iteratee`.
1857
- * @param {Function} iteratee The function invoked per iteration.
1858
- * @returns {Array} Returns the array of results.
1859
- */
1860
- function baseTimes(n, iteratee) {
1861
- var index = -1,
1862
- result = Array(n);
1863
-
1864
- while (++index < n) {
1865
- result[index] = iteratee(index);
1866
- }
1867
- return result;
1868
- }
1869
-
1870
- /**
1871
- * The base implementation of `_.unary` without support for storing metadata.
1872
- *
1873
- * @private
1874
- * @param {Function} func The function to cap arguments for.
1875
- * @returns {Function} Returns the new capped function.
1876
- */
1877
- function baseUnary(func) {
1878
- return function(value) {
1879
- return func(value);
1880
- };
1881
- }
1882
-
1883
- /**
1884
- * Gets the value at `key` of `object`.
1885
- *
1886
- * @private
1887
- * @param {Object} [object] The object to query.
1888
- * @param {string} key The key of the property to get.
1889
- * @returns {*} Returns the property value.
1890
- */
1891
- function getValue(object, key) {
1892
- return object == null ? undefined : object[key];
1893
- }
1894
-
1895
- /**
1896
- * Creates a unary function that invokes `func` with its argument transformed.
1897
- *
1898
- * @private
1899
- * @param {Function} func The function to wrap.
1900
- * @param {Function} transform The argument transform.
1901
- * @returns {Function} Returns the new function.
1902
- */
1903
- function overArg(func, transform) {
1904
- return function(arg) {
1905
- return func(transform(arg));
1906
- };
1907
- }
1908
-
1909
- /** Used for built-in method references. */
1910
- var arrayProto = Array.prototype,
1911
- funcProto = Function.prototype,
1912
- objectProto = Object.prototype;
1913
-
1914
- /** Used to detect overreaching core-js shims. */
1915
- var coreJsData = root['__core-js_shared__'];
1916
-
1917
- /** Used to resolve the decompiled source of functions. */
1918
- var funcToString = funcProto.toString;
1919
-
1920
- /** Used to check objects for own properties. */
1921
- var hasOwnProperty = objectProto.hasOwnProperty;
1922
-
1923
- /** Used to detect methods masquerading as native. */
1924
- var maskSrcKey = (function() {
1925
- var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
1926
- return uid ? ('Symbol(src)_1.' + uid) : '';
1927
- }());
1928
-
1929
- /**
1930
- * Used to resolve the
1931
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
1932
- * of values.
1933
- */
1934
- var nativeObjectToString = objectProto.toString;
1935
-
1936
- /** Used to infer the `Object` constructor. */
1937
- var objectCtorString = funcToString.call(Object);
1938
-
1939
- /** Used to detect if a method is native. */
1940
- var reIsNative = RegExp('^' +
1941
- funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
1942
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
1943
- );
1944
-
1945
- /** Built-in value references. */
1946
- var Buffer = moduleExports ? root.Buffer : undefined,
1947
- Symbol = root.Symbol,
1948
- Uint8Array = root.Uint8Array,
1949
- allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,
1950
- getPrototype = overArg(Object.getPrototypeOf, Object),
1951
- objectCreate = Object.create,
1952
- propertyIsEnumerable = objectProto.propertyIsEnumerable,
1953
- splice = arrayProto.splice,
1954
- symToStringTag = Symbol ? Symbol.toStringTag : undefined;
1955
-
1956
- var defineProperty = (function() {
1957
- try {
1958
- var func = getNative(Object, 'defineProperty');
1959
- func({}, '', {});
1960
- return func;
1961
- } catch (e) {}
1962
- }());
1963
-
1964
- /* Built-in method references for those with the same name as other `lodash` methods. */
1965
- var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,
1966
- nativeMax = Math.max,
1967
- nativeNow = Date.now;
1968
-
1969
- /* Built-in method references that are verified to be native. */
1970
- var Map = getNative(root, 'Map'),
1971
- nativeCreate = getNative(Object, 'create');
1972
-
1973
- /**
1974
- * The base implementation of `_.create` without support for assigning
1975
- * properties to the created object.
1976
- *
1977
- * @private
1978
- * @param {Object} proto The object to inherit from.
1979
- * @returns {Object} Returns the new object.
1980
- */
1981
- var baseCreate = (function() {
1982
- function object() {}
1983
- return function(proto) {
1984
- if (!isObject(proto)) {
1985
- return {};
1986
- }
1987
- if (objectCreate) {
1988
- return objectCreate(proto);
1989
- }
1990
- object.prototype = proto;
1991
- var result = new object;
1992
- object.prototype = undefined;
1993
- return result;
1994
- };
1995
- }());
1996
-
1997
- /**
1998
- * Creates a hash object.
1999
- *
2000
- * @private
2001
- * @constructor
2002
- * @param {Array} [entries] The key-value pairs to cache.
2003
- */
2004
- function Hash(entries) {
2005
- var index = -1,
2006
- length = entries == null ? 0 : entries.length;
2007
-
2008
- this.clear();
2009
- while (++index < length) {
2010
- var entry = entries[index];
2011
- this.set(entry[0], entry[1]);
2012
- }
2013
- }
2014
-
2015
- /**
2016
- * Removes all key-value entries from the hash.
2017
- *
2018
- * @private
2019
- * @name clear
2020
- * @memberOf Hash
2021
- */
2022
- function hashClear() {
2023
- this.__data__ = nativeCreate ? nativeCreate(null) : {};
2024
- this.size = 0;
2025
- }
2026
-
2027
- /**
2028
- * Removes `key` and its value from the hash.
2029
- *
2030
- * @private
2031
- * @name delete
2032
- * @memberOf Hash
2033
- * @param {Object} hash The hash to modify.
2034
- * @param {string} key The key of the value to remove.
2035
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
2036
- */
2037
- function hashDelete(key) {
2038
- var result = this.has(key) && delete this.__data__[key];
2039
- this.size -= result ? 1 : 0;
2040
- return result;
2041
- }
2042
-
2043
- /**
2044
- * Gets the hash value for `key`.
2045
- *
2046
- * @private
2047
- * @name get
2048
- * @memberOf Hash
2049
- * @param {string} key The key of the value to get.
2050
- * @returns {*} Returns the entry value.
2051
- */
2052
- function hashGet(key) {
2053
- var data = this.__data__;
2054
- if (nativeCreate) {
2055
- var result = data[key];
2056
- return result === HASH_UNDEFINED ? undefined : result;
2057
- }
2058
- return hasOwnProperty.call(data, key) ? data[key] : undefined;
2059
- }
2060
-
2061
- /**
2062
- * Checks if a hash value for `key` exists.
2063
- *
2064
- * @private
2065
- * @name has
2066
- * @memberOf Hash
2067
- * @param {string} key The key of the entry to check.
2068
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
2069
- */
2070
- function hashHas(key) {
2071
- var data = this.__data__;
2072
- return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
2073
- }
2074
-
2075
- /**
2076
- * Sets the hash `key` to `value`.
2077
- *
2078
- * @private
2079
- * @name set
2080
- * @memberOf Hash
2081
- * @param {string} key The key of the value to set.
2082
- * @param {*} value The value to set.
2083
- * @returns {Object} Returns the hash instance.
2084
- */
2085
- function hashSet(key, value) {
2086
- var data = this.__data__;
2087
- this.size += this.has(key) ? 0 : 1;
2088
- data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
2089
- return this;
2090
- }
2091
-
2092
- // Add methods to `Hash`.
2093
- Hash.prototype.clear = hashClear;
2094
- Hash.prototype['delete'] = hashDelete;
2095
- Hash.prototype.get = hashGet;
2096
- Hash.prototype.has = hashHas;
2097
- Hash.prototype.set = hashSet;
2098
-
2099
- /**
2100
- * Creates an list cache object.
2101
- *
2102
- * @private
2103
- * @constructor
2104
- * @param {Array} [entries] The key-value pairs to cache.
2105
- */
2106
- function ListCache(entries) {
2107
- var index = -1,
2108
- length = entries == null ? 0 : entries.length;
2109
-
2110
- this.clear();
2111
- while (++index < length) {
2112
- var entry = entries[index];
2113
- this.set(entry[0], entry[1]);
2114
- }
2115
- }
2116
-
2117
- /**
2118
- * Removes all key-value entries from the list cache.
2119
- *
2120
- * @private
2121
- * @name clear
2122
- * @memberOf ListCache
2123
- */
2124
- function listCacheClear() {
2125
- this.__data__ = [];
2126
- this.size = 0;
2127
- }
2128
-
2129
- /**
2130
- * Removes `key` and its value from the list cache.
2131
- *
2132
- * @private
2133
- * @name delete
2134
- * @memberOf ListCache
2135
- * @param {string} key The key of the value to remove.
2136
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
2137
- */
2138
- function listCacheDelete(key) {
2139
- var data = this.__data__,
2140
- index = assocIndexOf(data, key);
2141
-
2142
- if (index < 0) {
2143
- return false;
2144
- }
2145
- var lastIndex = data.length - 1;
2146
- if (index == lastIndex) {
2147
- data.pop();
2148
- } else {
2149
- splice.call(data, index, 1);
2150
- }
2151
- --this.size;
2152
- return true;
2153
- }
2154
-
2155
- /**
2156
- * Gets the list cache value for `key`.
2157
- *
2158
- * @private
2159
- * @name get
2160
- * @memberOf ListCache
2161
- * @param {string} key The key of the value to get.
2162
- * @returns {*} Returns the entry value.
2163
- */
2164
- function listCacheGet(key) {
2165
- var data = this.__data__,
2166
- index = assocIndexOf(data, key);
2167
-
2168
- return index < 0 ? undefined : data[index][1];
2169
- }
2170
-
2171
- /**
2172
- * Checks if a list cache value for `key` exists.
2173
- *
2174
- * @private
2175
- * @name has
2176
- * @memberOf ListCache
2177
- * @param {string} key The key of the entry to check.
2178
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
2179
- */
2180
- function listCacheHas(key) {
2181
- return assocIndexOf(this.__data__, key) > -1;
2182
- }
2183
-
2184
- /**
2185
- * Sets the list cache `key` to `value`.
2186
- *
2187
- * @private
2188
- * @name set
2189
- * @memberOf ListCache
2190
- * @param {string} key The key of the value to set.
2191
- * @param {*} value The value to set.
2192
- * @returns {Object} Returns the list cache instance.
2193
- */
2194
- function listCacheSet(key, value) {
2195
- var data = this.__data__,
2196
- index = assocIndexOf(data, key);
2197
-
2198
- if (index < 0) {
2199
- ++this.size;
2200
- data.push([key, value]);
2201
- } else {
2202
- data[index][1] = value;
2203
- }
2204
- return this;
2205
- }
2206
-
2207
- // Add methods to `ListCache`.
2208
- ListCache.prototype.clear = listCacheClear;
2209
- ListCache.prototype['delete'] = listCacheDelete;
2210
- ListCache.prototype.get = listCacheGet;
2211
- ListCache.prototype.has = listCacheHas;
2212
- ListCache.prototype.set = listCacheSet;
2213
-
2214
- /**
2215
- * Creates a map cache object to store key-value pairs.
2216
- *
2217
- * @private
2218
- * @constructor
2219
- * @param {Array} [entries] The key-value pairs to cache.
2220
- */
2221
- function MapCache(entries) {
2222
- var index = -1,
2223
- length = entries == null ? 0 : entries.length;
2224
-
2225
- this.clear();
2226
- while (++index < length) {
2227
- var entry = entries[index];
2228
- this.set(entry[0], entry[1]);
2229
- }
2230
- }
2231
-
2232
- /**
2233
- * Removes all key-value entries from the map.
2234
- *
2235
- * @private
2236
- * @name clear
2237
- * @memberOf MapCache
2238
- */
2239
- function mapCacheClear() {
2240
- this.size = 0;
2241
- this.__data__ = {
2242
- 'hash': new Hash,
2243
- 'map': new (Map || ListCache),
2244
- 'string': new Hash
2245
- };
2246
- }
2247
-
2248
- /**
2249
- * Removes `key` and its value from the map.
2250
- *
2251
- * @private
2252
- * @name delete
2253
- * @memberOf MapCache
2254
- * @param {string} key The key of the value to remove.
2255
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
2256
- */
2257
- function mapCacheDelete(key) {
2258
- var result = getMapData(this, key)['delete'](key);
2259
- this.size -= result ? 1 : 0;
2260
- return result;
2261
- }
2262
-
2263
- /**
2264
- * Gets the map value for `key`.
2265
- *
2266
- * @private
2267
- * @name get
2268
- * @memberOf MapCache
2269
- * @param {string} key The key of the value to get.
2270
- * @returns {*} Returns the entry value.
2271
- */
2272
- function mapCacheGet(key) {
2273
- return getMapData(this, key).get(key);
2274
- }
2275
-
2276
- /**
2277
- * Checks if a map value for `key` exists.
2278
- *
2279
- * @private
2280
- * @name has
2281
- * @memberOf MapCache
2282
- * @param {string} key The key of the entry to check.
2283
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
2284
- */
2285
- function mapCacheHas(key) {
2286
- return getMapData(this, key).has(key);
2287
- }
2288
-
2289
- /**
2290
- * Sets the map `key` to `value`.
2291
- *
2292
- * @private
2293
- * @name set
2294
- * @memberOf MapCache
2295
- * @param {string} key The key of the value to set.
2296
- * @param {*} value The value to set.
2297
- * @returns {Object} Returns the map cache instance.
2298
- */
2299
- function mapCacheSet(key, value) {
2300
- var data = getMapData(this, key),
2301
- size = data.size;
2302
-
2303
- data.set(key, value);
2304
- this.size += data.size == size ? 0 : 1;
2305
- return this;
2306
- }
2307
-
2308
- // Add methods to `MapCache`.
2309
- MapCache.prototype.clear = mapCacheClear;
2310
- MapCache.prototype['delete'] = mapCacheDelete;
2311
- MapCache.prototype.get = mapCacheGet;
2312
- MapCache.prototype.has = mapCacheHas;
2313
- MapCache.prototype.set = mapCacheSet;
2314
-
2315
- /**
2316
- * Creates a stack cache object to store key-value pairs.
2317
- *
2318
- * @private
2319
- * @constructor
2320
- * @param {Array} [entries] The key-value pairs to cache.
2321
- */
2322
- function Stack(entries) {
2323
- var data = this.__data__ = new ListCache(entries);
2324
- this.size = data.size;
2325
- }
2326
-
2327
- /**
2328
- * Removes all key-value entries from the stack.
2329
- *
2330
- * @private
2331
- * @name clear
2332
- * @memberOf Stack
2333
- */
2334
- function stackClear() {
2335
- this.__data__ = new ListCache;
2336
- this.size = 0;
2337
- }
2338
-
2339
- /**
2340
- * Removes `key` and its value from the stack.
2341
- *
2342
- * @private
2343
- * @name delete
2344
- * @memberOf Stack
2345
- * @param {string} key The key of the value to remove.
2346
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
2347
- */
2348
- function stackDelete(key) {
2349
- var data = this.__data__,
2350
- result = data['delete'](key);
2351
-
2352
- this.size = data.size;
2353
- return result;
2354
- }
2355
-
2356
- /**
2357
- * Gets the stack value for `key`.
2358
- *
2359
- * @private
2360
- * @name get
2361
- * @memberOf Stack
2362
- * @param {string} key The key of the value to get.
2363
- * @returns {*} Returns the entry value.
2364
- */
2365
- function stackGet(key) {
2366
- return this.__data__.get(key);
2367
- }
2368
-
2369
- /**
2370
- * Checks if a stack value for `key` exists.
2371
- *
2372
- * @private
2373
- * @name has
2374
- * @memberOf Stack
2375
- * @param {string} key The key of the entry to check.
2376
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
2377
- */
2378
- function stackHas(key) {
2379
- return this.__data__.has(key);
2380
- }
2381
-
2382
- /**
2383
- * Sets the stack `key` to `value`.
2384
- *
2385
- * @private
2386
- * @name set
2387
- * @memberOf Stack
2388
- * @param {string} key The key of the value to set.
2389
- * @param {*} value The value to set.
2390
- * @returns {Object} Returns the stack cache instance.
2391
- */
2392
- function stackSet(key, value) {
2393
- var data = this.__data__;
2394
- if (data instanceof ListCache) {
2395
- var pairs = data.__data__;
2396
- if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
2397
- pairs.push([key, value]);
2398
- this.size = ++data.size;
2399
- return this;
2400
- }
2401
- data = this.__data__ = new MapCache(pairs);
2402
- }
2403
- data.set(key, value);
2404
- this.size = data.size;
2405
- return this;
2406
- }
2407
-
2408
- // Add methods to `Stack`.
2409
- Stack.prototype.clear = stackClear;
2410
- Stack.prototype['delete'] = stackDelete;
2411
- Stack.prototype.get = stackGet;
2412
- Stack.prototype.has = stackHas;
2413
- Stack.prototype.set = stackSet;
2414
-
2415
- /**
2416
- * Creates an array of the enumerable property names of the array-like `value`.
2417
- *
2418
- * @private
2419
- * @param {*} value The value to query.
2420
- * @param {boolean} inherited Specify returning inherited property names.
2421
- * @returns {Array} Returns the array of property names.
2422
- */
2423
- function arrayLikeKeys(value, inherited) {
2424
- var isArr = isArray(value),
2425
- isArg = !isArr && isArguments(value),
2426
- isBuff = !isArr && !isArg && isBuffer(value),
2427
- isType = !isArr && !isArg && !isBuff && isTypedArray(value),
2428
- skipIndexes = isArr || isArg || isBuff || isType,
2429
- result = skipIndexes ? baseTimes(value.length, String) : [],
2430
- length = result.length;
2431
-
2432
- for (var key in value) {
2433
- if ((inherited || hasOwnProperty.call(value, key)) &&
2434
- !(skipIndexes && (
2435
- // Safari 9 has enumerable `arguments.length` in strict mode.
2436
- key == 'length' ||
2437
- // Node.js 0.10 has enumerable non-index properties on buffers.
2438
- (isBuff && (key == 'offset' || key == 'parent')) ||
2439
- // PhantomJS 2 has enumerable non-index properties on typed arrays.
2440
- (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
2441
- // Skip index properties.
2442
- isIndex(key, length)
2443
- ))) {
2444
- result.push(key);
2445
- }
2446
- }
2447
- return result;
2448
- }
2449
-
2450
- /**
2451
- * This function is like `assignValue` except that it doesn't assign
2452
- * `undefined` values.
2453
- *
2454
- * @private
2455
- * @param {Object} object The object to modify.
2456
- * @param {string} key The key of the property to assign.
2457
- * @param {*} value The value to assign.
2458
- */
2459
- function assignMergeValue(object, key, value) {
2460
- if ((value !== undefined && !eq(object[key], value)) ||
2461
- (value === undefined && !(key in object))) {
2462
- baseAssignValue(object, key, value);
2463
- }
2464
- }
2465
-
2466
- /**
2467
- * Assigns `value` to `key` of `object` if the existing value is not equivalent
2468
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
2469
- * for equality comparisons.
2470
- *
2471
- * @private
2472
- * @param {Object} object The object to modify.
2473
- * @param {string} key The key of the property to assign.
2474
- * @param {*} value The value to assign.
2475
- */
2476
- function assignValue(object, key, value) {
2477
- var objValue = object[key];
2478
- if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
2479
- (value === undefined && !(key in object))) {
2480
- baseAssignValue(object, key, value);
2481
- }
2482
- }
2483
-
2484
- /**
2485
- * Gets the index at which the `key` is found in `array` of key-value pairs.
2486
- *
2487
- * @private
2488
- * @param {Array} array The array to inspect.
2489
- * @param {*} key The key to search for.
2490
- * @returns {number} Returns the index of the matched value, else `-1`.
2491
- */
2492
- function assocIndexOf(array, key) {
2493
- var length = array.length;
2494
- while (length--) {
2495
- if (eq(array[length][0], key)) {
2496
- return length;
2497
- }
2498
- }
2499
- return -1;
2500
- }
2501
-
2502
- /**
2503
- * The base implementation of `assignValue` and `assignMergeValue` without
2504
- * value checks.
2505
- *
2506
- * @private
2507
- * @param {Object} object The object to modify.
2508
- * @param {string} key The key of the property to assign.
2509
- * @param {*} value The value to assign.
2510
- */
2511
- function baseAssignValue(object, key, value) {
2512
- if (key == '__proto__' && defineProperty) {
2513
- defineProperty(object, key, {
2514
- 'configurable': true,
2515
- 'enumerable': true,
2516
- 'value': value,
2517
- 'writable': true
2518
- });
2519
- } else {
2520
- object[key] = value;
2521
- }
2522
- }
2523
-
2524
- /**
2525
- * The base implementation of `baseForOwn` which iterates over `object`
2526
- * properties returned by `keysFunc` and invokes `iteratee` for each property.
2527
- * Iteratee functions may exit iteration early by explicitly returning `false`.
2528
- *
2529
- * @private
2530
- * @param {Object} object The object to iterate over.
2531
- * @param {Function} iteratee The function invoked per iteration.
2532
- * @param {Function} keysFunc The function to get the keys of `object`.
2533
- * @returns {Object} Returns `object`.
2534
- */
2535
- var baseFor = createBaseFor();
2536
-
2537
- /**
2538
- * The base implementation of `getTag` without fallbacks for buggy environments.
2539
- *
2540
- * @private
2541
- * @param {*} value The value to query.
2542
- * @returns {string} Returns the `toStringTag`.
2543
- */
2544
- function baseGetTag(value) {
2545
- if (value == null) {
2546
- return value === undefined ? undefinedTag : nullTag;
2547
- }
2548
- return (symToStringTag && symToStringTag in Object(value))
2549
- ? getRawTag(value)
2550
- : objectToString(value);
2551
- }
2552
-
2553
- /**
2554
- * The base implementation of `_.isArguments`.
2555
- *
2556
- * @private
2557
- * @param {*} value The value to check.
2558
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
2559
- */
2560
- function baseIsArguments(value) {
2561
- return isObjectLike(value) && baseGetTag(value) == argsTag;
2562
- }
2563
-
2564
- /**
2565
- * The base implementation of `_.isNative` without bad shim checks.
2566
- *
2567
- * @private
2568
- * @param {*} value The value to check.
2569
- * @returns {boolean} Returns `true` if `value` is a native function,
2570
- * else `false`.
2571
- */
2572
- function baseIsNative(value) {
2573
- if (!isObject(value) || isMasked(value)) {
2574
- return false;
2575
- }
2576
- var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
2577
- return pattern.test(toSource(value));
2578
- }
2579
-
2580
- /**
2581
- * The base implementation of `_.isTypedArray` without Node.js optimizations.
2582
- *
2583
- * @private
2584
- * @param {*} value The value to check.
2585
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
2586
- */
2587
- function baseIsTypedArray(value) {
2588
- return isObjectLike(value) &&
2589
- isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
2590
- }
2591
-
2592
- /**
2593
- * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
2594
- *
2595
- * @private
2596
- * @param {Object} object The object to query.
2597
- * @returns {Array} Returns the array of property names.
2598
- */
2599
- function baseKeysIn(object) {
2600
- if (!isObject(object)) {
2601
- return nativeKeysIn(object);
2602
- }
2603
- var isProto = isPrototype(object),
2604
- result = [];
2605
-
2606
- for (var key in object) {
2607
- if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
2608
- result.push(key);
2609
- }
2610
- }
2611
- return result;
2612
- }
2613
-
2614
- /**
2615
- * The base implementation of `_.merge` without support for multiple sources.
2616
- *
2617
- * @private
2618
- * @param {Object} object The destination object.
2619
- * @param {Object} source The source object.
2620
- * @param {number} srcIndex The index of `source`.
2621
- * @param {Function} [customizer] The function to customize merged values.
2622
- * @param {Object} [stack] Tracks traversed source values and their merged
2623
- * counterparts.
2624
- */
2625
- function baseMerge(object, source, srcIndex, customizer, stack) {
2626
- if (object === source) {
2627
- return;
2628
- }
2629
- baseFor(source, function(srcValue, key) {
2630
- stack || (stack = new Stack);
2631
- if (isObject(srcValue)) {
2632
- baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
2633
- }
2634
- else {
2635
- var newValue = customizer
2636
- ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
2637
- : undefined;
2638
-
2639
- if (newValue === undefined) {
2640
- newValue = srcValue;
2641
- }
2642
- assignMergeValue(object, key, newValue);
2643
- }
2644
- }, keysIn);
2645
- }
2646
-
2647
- /**
2648
- * A specialized version of `baseMerge` for arrays and objects which performs
2649
- * deep merges and tracks traversed objects enabling objects with circular
2650
- * references to be merged.
2651
- *
2652
- * @private
2653
- * @param {Object} object The destination object.
2654
- * @param {Object} source The source object.
2655
- * @param {string} key The key of the value to merge.
2656
- * @param {number} srcIndex The index of `source`.
2657
- * @param {Function} mergeFunc The function to merge values.
2658
- * @param {Function} [customizer] The function to customize assigned values.
2659
- * @param {Object} [stack] Tracks traversed source values and their merged
2660
- * counterparts.
2661
- */
2662
- function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
2663
- var objValue = safeGet(object, key),
2664
- srcValue = safeGet(source, key),
2665
- stacked = stack.get(srcValue);
2666
-
2667
- if (stacked) {
2668
- assignMergeValue(object, key, stacked);
2669
- return;
2670
- }
2671
- var newValue = customizer
2672
- ? customizer(objValue, srcValue, (key + ''), object, source, stack)
2673
- : undefined;
2674
-
2675
- var isCommon = newValue === undefined;
2676
-
2677
- if (isCommon) {
2678
- var isArr = isArray(srcValue),
2679
- isBuff = !isArr && isBuffer(srcValue),
2680
- isTyped = !isArr && !isBuff && isTypedArray(srcValue);
2681
-
2682
- newValue = srcValue;
2683
- if (isArr || isBuff || isTyped) {
2684
- if (isArray(objValue)) {
2685
- newValue = objValue;
2686
- }
2687
- else if (isArrayLikeObject(objValue)) {
2688
- newValue = copyArray(objValue);
2689
- }
2690
- else if (isBuff) {
2691
- isCommon = false;
2692
- newValue = cloneBuffer(srcValue, true);
2693
- }
2694
- else if (isTyped) {
2695
- isCommon = false;
2696
- newValue = cloneTypedArray(srcValue, true);
2697
- }
2698
- else {
2699
- newValue = [];
2700
- }
2701
- }
2702
- else if (isPlainObject(srcValue) || isArguments(srcValue)) {
2703
- newValue = objValue;
2704
- if (isArguments(objValue)) {
2705
- newValue = toPlainObject(objValue);
2706
- }
2707
- else if (!isObject(objValue) || isFunction(objValue)) {
2708
- newValue = initCloneObject(srcValue);
2709
- }
2710
- }
2711
- else {
2712
- isCommon = false;
2713
- }
2714
- }
2715
- if (isCommon) {
2716
- // Recursively merge objects and arrays (susceptible to call stack limits).
2717
- stack.set(srcValue, newValue);
2718
- mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
2719
- stack['delete'](srcValue);
2720
- }
2721
- assignMergeValue(object, key, newValue);
2722
- }
2723
-
2724
- /**
2725
- * The base implementation of `_.rest` which doesn't validate or coerce arguments.
2726
- *
2727
- * @private
2728
- * @param {Function} func The function to apply a rest parameter to.
2729
- * @param {number} [start=func.length-1] The start position of the rest parameter.
2730
- * @returns {Function} Returns the new function.
2731
- */
2732
- function baseRest(func, start) {
2733
- return setToString(overRest(func, start, identity), func + '');
2734
- }
2735
-
2736
- /**
2737
- * The base implementation of `setToString` without support for hot loop shorting.
2738
- *
2739
- * @private
2740
- * @param {Function} func The function to modify.
2741
- * @param {Function} string The `toString` result.
2742
- * @returns {Function} Returns `func`.
2743
- */
2744
- var baseSetToString = !defineProperty ? identity : function(func, string) {
2745
- return defineProperty(func, 'toString', {
2746
- 'configurable': true,
2747
- 'enumerable': false,
2748
- 'value': constant(string),
2749
- 'writable': true
2750
- });
2751
- };
2752
-
2753
- /**
2754
- * Creates a clone of `buffer`.
2755
- *
2756
- * @private
2757
- * @param {Buffer} buffer The buffer to clone.
2758
- * @param {boolean} [isDeep] Specify a deep clone.
2759
- * @returns {Buffer} Returns the cloned buffer.
2760
- */
2761
- function cloneBuffer(buffer, isDeep) {
2762
- if (isDeep) {
2763
- return buffer.slice();
2764
- }
2765
- var length = buffer.length,
2766
- result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
2767
-
2768
- buffer.copy(result);
2769
- return result;
2770
- }
2771
-
2772
- /**
2773
- * Creates a clone of `arrayBuffer`.
2774
- *
2775
- * @private
2776
- * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
2777
- * @returns {ArrayBuffer} Returns the cloned array buffer.
2778
- */
2779
- function cloneArrayBuffer(arrayBuffer) {
2780
- var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
2781
- new Uint8Array(result).set(new Uint8Array(arrayBuffer));
2782
- return result;
2783
- }
2784
-
2785
- /**
2786
- * Creates a clone of `typedArray`.
2787
- *
2788
- * @private
2789
- * @param {Object} typedArray The typed array to clone.
2790
- * @param {boolean} [isDeep] Specify a deep clone.
2791
- * @returns {Object} Returns the cloned typed array.
2792
- */
2793
- function cloneTypedArray(typedArray, isDeep) {
2794
- var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
2795
- return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
2796
- }
2797
-
2798
- /**
2799
- * Copies the values of `source` to `array`.
2800
- *
2801
- * @private
2802
- * @param {Array} source The array to copy values from.
2803
- * @param {Array} [array=[]] The array to copy values to.
2804
- * @returns {Array} Returns `array`.
2805
- */
2806
- function copyArray(source, array) {
2807
- var index = -1,
2808
- length = source.length;
2809
-
2810
- array || (array = Array(length));
2811
- while (++index < length) {
2812
- array[index] = source[index];
2813
- }
2814
- return array;
2815
- }
2816
-
2817
- /**
2818
- * Copies properties of `source` to `object`.
2819
- *
2820
- * @private
2821
- * @param {Object} source The object to copy properties from.
2822
- * @param {Array} props The property identifiers to copy.
2823
- * @param {Object} [object={}] The object to copy properties to.
2824
- * @param {Function} [customizer] The function to customize copied values.
2825
- * @returns {Object} Returns `object`.
2826
- */
2827
- function copyObject(source, props, object, customizer) {
2828
- var isNew = !object;
2829
- object || (object = {});
2830
-
2831
- var index = -1,
2832
- length = props.length;
2833
-
2834
- while (++index < length) {
2835
- var key = props[index];
2836
-
2837
- var newValue = customizer
2838
- ? customizer(object[key], source[key], key, object, source)
2839
- : undefined;
2840
-
2841
- if (newValue === undefined) {
2842
- newValue = source[key];
2843
- }
2844
- if (isNew) {
2845
- baseAssignValue(object, key, newValue);
2846
- } else {
2847
- assignValue(object, key, newValue);
2848
- }
2849
- }
2850
- return object;
2851
- }
2852
-
2853
- /**
2854
- * Creates a function like `_.assign`.
2855
- *
2856
- * @private
2857
- * @param {Function} assigner The function to assign values.
2858
- * @returns {Function} Returns the new assigner function.
2859
- */
2860
- function createAssigner(assigner) {
2861
- return baseRest(function(object, sources) {
2862
- var index = -1,
2863
- length = sources.length,
2864
- customizer = length > 1 ? sources[length - 1] : undefined,
2865
- guard = length > 2 ? sources[2] : undefined;
2866
-
2867
- customizer = (assigner.length > 3 && typeof customizer == 'function')
2868
- ? (length--, customizer)
2869
- : undefined;
2870
-
2871
- if (guard && isIterateeCall(sources[0], sources[1], guard)) {
2872
- customizer = length < 3 ? undefined : customizer;
2873
- length = 1;
2874
- }
2875
- object = Object(object);
2876
- while (++index < length) {
2877
- var source = sources[index];
2878
- if (source) {
2879
- assigner(object, source, index, customizer);
2880
- }
2881
- }
2882
- return object;
2883
- });
2884
- }
2885
-
2886
- /**
2887
- * Creates a base function for methods like `_.forIn` and `_.forOwn`.
2888
- *
2889
- * @private
2890
- * @param {boolean} [fromRight] Specify iterating from right to left.
2891
- * @returns {Function} Returns the new base function.
2892
- */
2893
- function createBaseFor(fromRight) {
2894
- return function(object, iteratee, keysFunc) {
2895
- var index = -1,
2896
- iterable = Object(object),
2897
- props = keysFunc(object),
2898
- length = props.length;
2899
-
2900
- while (length--) {
2901
- var key = props[fromRight ? length : ++index];
2902
- if (iteratee(iterable[key], key, iterable) === false) {
2903
- break;
2904
- }
2905
- }
2906
- return object;
2907
- };
2908
- }
2909
-
2910
- /**
2911
- * Gets the data for `map`.
2912
- *
2913
- * @private
2914
- * @param {Object} map The map to query.
2915
- * @param {string} key The reference key.
2916
- * @returns {*} Returns the map data.
2917
- */
2918
- function getMapData(map, key) {
2919
- var data = map.__data__;
2920
- return isKeyable(key)
2921
- ? data[typeof key == 'string' ? 'string' : 'hash']
2922
- : data.map;
2923
- }
2924
-
2925
- /**
2926
- * Gets the native function at `key` of `object`.
2927
- *
2928
- * @private
2929
- * @param {Object} object The object to query.
2930
- * @param {string} key The key of the method to get.
2931
- * @returns {*} Returns the function if it's native, else `undefined`.
2932
- */
2933
- function getNative(object, key) {
2934
- var value = getValue(object, key);
2935
- return baseIsNative(value) ? value : undefined;
2936
- }
2937
-
2938
- /**
2939
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
2940
- *
2941
- * @private
2942
- * @param {*} value The value to query.
2943
- * @returns {string} Returns the raw `toStringTag`.
2944
- */
2945
- function getRawTag(value) {
2946
- var isOwn = hasOwnProperty.call(value, symToStringTag),
2947
- tag = value[symToStringTag];
2948
-
2949
- try {
2950
- value[symToStringTag] = undefined;
2951
- var unmasked = true;
2952
- } catch (e) {}
2953
-
2954
- var result = nativeObjectToString.call(value);
2955
- if (unmasked) {
2956
- if (isOwn) {
2957
- value[symToStringTag] = tag;
2958
- } else {
2959
- delete value[symToStringTag];
2960
- }
2961
- }
2962
- return result;
2963
- }
2964
-
2965
- /**
2966
- * Initializes an object clone.
2967
- *
2968
- * @private
2969
- * @param {Object} object The object to clone.
2970
- * @returns {Object} Returns the initialized clone.
2971
- */
2972
- function initCloneObject(object) {
2973
- return (typeof object.constructor == 'function' && !isPrototype(object))
2974
- ? baseCreate(getPrototype(object))
2975
- : {};
2976
- }
2977
-
2978
- /**
2979
- * Checks if `value` is a valid array-like index.
2980
- *
2981
- * @private
2982
- * @param {*} value The value to check.
2983
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
2984
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
2985
- */
2986
- function isIndex(value, length) {
2987
- var type = typeof value;
2988
- length = length == null ? MAX_SAFE_INTEGER : length;
2989
-
2990
- return !!length &&
2991
- (type == 'number' ||
2992
- (type != 'symbol' && reIsUint.test(value))) &&
2993
- (value > -1 && value % 1 == 0 && value < length);
2994
- }
2995
-
2996
- /**
2997
- * Checks if the given arguments are from an iteratee call.
2998
- *
2999
- * @private
3000
- * @param {*} value The potential iteratee value argument.
3001
- * @param {*} index The potential iteratee index or key argument.
3002
- * @param {*} object The potential iteratee object argument.
3003
- * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
3004
- * else `false`.
3005
- */
3006
- function isIterateeCall(value, index, object) {
3007
- if (!isObject(object)) {
3008
- return false;
3009
- }
3010
- var type = typeof index;
3011
- if (type == 'number'
3012
- ? (isArrayLike(object) && isIndex(index, object.length))
3013
- : (type == 'string' && index in object)
3014
- ) {
3015
- return eq(object[index], value);
3016
- }
3017
- return false;
3018
- }
3019
-
3020
- /**
3021
- * Checks if `value` is suitable for use as unique object key.
3022
- *
3023
- * @private
3024
- * @param {*} value The value to check.
3025
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
3026
- */
3027
- function isKeyable(value) {
3028
- var type = typeof value;
3029
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
3030
- ? (value !== '__proto__')
3031
- : (value === null);
3032
- }
3033
-
3034
- /**
3035
- * Checks if `func` has its source masked.
3036
- *
3037
- * @private
3038
- * @param {Function} func The function to check.
3039
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
3040
- */
3041
- function isMasked(func) {
3042
- return !!maskSrcKey && (maskSrcKey in func);
3043
- }
3044
-
3045
- /**
3046
- * Checks if `value` is likely a prototype object.
3047
- *
3048
- * @private
3049
- * @param {*} value The value to check.
3050
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
3051
- */
3052
- function isPrototype(value) {
3053
- var Ctor = value && value.constructor,
3054
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
3055
-
3056
- return value === proto;
3057
- }
3058
-
3059
- /**
3060
- * This function is like
3061
- * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
3062
- * except that it includes inherited enumerable properties.
3063
- *
3064
- * @private
3065
- * @param {Object} object The object to query.
3066
- * @returns {Array} Returns the array of property names.
3067
- */
3068
- function nativeKeysIn(object) {
3069
- var result = [];
3070
- if (object != null) {
3071
- for (var key in Object(object)) {
3072
- result.push(key);
3073
- }
3074
- }
3075
- return result;
3076
- }
3077
-
3078
- /**
3079
- * Converts `value` to a string using `Object.prototype.toString`.
3080
- *
3081
- * @private
3082
- * @param {*} value The value to convert.
3083
- * @returns {string} Returns the converted string.
3084
- */
3085
- function objectToString(value) {
3086
- return nativeObjectToString.call(value);
3087
- }
3088
-
3089
- /**
3090
- * A specialized version of `baseRest` which transforms the rest array.
3091
- *
3092
- * @private
3093
- * @param {Function} func The function to apply a rest parameter to.
3094
- * @param {number} [start=func.length-1] The start position of the rest parameter.
3095
- * @param {Function} transform The rest array transform.
3096
- * @returns {Function} Returns the new function.
3097
- */
3098
- function overRest(func, start, transform) {
3099
- start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
3100
- return function() {
3101
- var args = arguments,
3102
- index = -1,
3103
- length = nativeMax(args.length - start, 0),
3104
- array = Array(length);
3105
-
3106
- while (++index < length) {
3107
- array[index] = args[start + index];
3108
- }
3109
- index = -1;
3110
- var otherArgs = Array(start + 1);
3111
- while (++index < start) {
3112
- otherArgs[index] = args[index];
3113
- }
3114
- otherArgs[start] = transform(array);
3115
- return apply(func, this, otherArgs);
3116
- };
3117
- }
3118
-
3119
- /**
3120
- * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
3121
- *
3122
- * @private
3123
- * @param {Object} object The object to query.
3124
- * @param {string} key The key of the property to get.
3125
- * @returns {*} Returns the property value.
3126
- */
3127
- function safeGet(object, key) {
3128
- if (key === 'constructor' && typeof object[key] === 'function') {
3129
- return;
3130
- }
3131
-
3132
- if (key == '__proto__') {
3133
- return;
3134
- }
3135
-
3136
- return object[key];
3137
- }
3138
-
3139
- /**
3140
- * Sets the `toString` method of `func` to return `string`.
3141
- *
3142
- * @private
3143
- * @param {Function} func The function to modify.
3144
- * @param {Function} string The `toString` result.
3145
- * @returns {Function} Returns `func`.
3146
- */
3147
- var setToString = shortOut(baseSetToString);
3148
-
3149
- /**
3150
- * Creates a function that'll short out and invoke `identity` instead
3151
- * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
3152
- * milliseconds.
3153
- *
3154
- * @private
3155
- * @param {Function} func The function to restrict.
3156
- * @returns {Function} Returns the new shortable function.
3157
- */
3158
- function shortOut(func) {
3159
- var count = 0,
3160
- lastCalled = 0;
3161
-
3162
- return function() {
3163
- var stamp = nativeNow(),
3164
- remaining = HOT_SPAN - (stamp - lastCalled);
3165
-
3166
- lastCalled = stamp;
3167
- if (remaining > 0) {
3168
- if (++count >= HOT_COUNT) {
3169
- return arguments[0];
3170
- }
3171
- } else {
3172
- count = 0;
3173
- }
3174
- return func.apply(undefined, arguments);
3175
- };
3176
- }
3177
-
3178
- /**
3179
- * Converts `func` to its source code.
3180
- *
3181
- * @private
3182
- * @param {Function} func The function to convert.
3183
- * @returns {string} Returns the source code.
3184
- */
3185
- function toSource(func) {
3186
- if (func != null) {
3187
- try {
3188
- return funcToString.call(func);
3189
- } catch (e) {}
3190
- try {
3191
- return (func + '');
3192
- } catch (e) {}
3193
- }
3194
- return '';
3195
- }
3196
-
3197
- /**
3198
- * Performs a
3199
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
3200
- * comparison between two values to determine if they are equivalent.
3201
- *
3202
- * @static
3203
- * @memberOf _
3204
- * @since 4.0.0
3205
- * @category Lang
3206
- * @param {*} value The value to compare.
3207
- * @param {*} other The other value to compare.
3208
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
3209
- * @example
3210
- *
3211
- * var object = { 'a': 1 };
3212
- * var other = { 'a': 1 };
3213
- *
3214
- * _.eq(object, object);
3215
- * // => true
3216
- *
3217
- * _.eq(object, other);
3218
- * // => false
3219
- *
3220
- * _.eq('a', 'a');
3221
- * // => true
3222
- *
3223
- * _.eq('a', Object('a'));
3224
- * // => false
3225
- *
3226
- * _.eq(NaN, NaN);
3227
- * // => true
3228
- */
3229
- function eq(value, other) {
3230
- return value === other || (value !== value && other !== other);
3231
- }
3232
-
3233
- /**
3234
- * Checks if `value` is likely an `arguments` object.
3235
- *
3236
- * @static
3237
- * @memberOf _
3238
- * @since 0.1.0
3239
- * @category Lang
3240
- * @param {*} value The value to check.
3241
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
3242
- * else `false`.
3243
- * @example
3244
- *
3245
- * _.isArguments(function() { return arguments; }());
3246
- * // => true
3247
- *
3248
- * _.isArguments([1, 2, 3]);
3249
- * // => false
3250
- */
3251
- var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
3252
- return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
3253
- !propertyIsEnumerable.call(value, 'callee');
3254
- };
3255
-
3256
- /**
3257
- * Checks if `value` is classified as an `Array` object.
3258
- *
3259
- * @static
3260
- * @memberOf _
3261
- * @since 0.1.0
3262
- * @category Lang
3263
- * @param {*} value The value to check.
3264
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
3265
- * @example
3266
- *
3267
- * _.isArray([1, 2, 3]);
3268
- * // => true
3269
- *
3270
- * _.isArray(document.body.children);
3271
- * // => false
3272
- *
3273
- * _.isArray('abc');
3274
- * // => false
3275
- *
3276
- * _.isArray(_.noop);
3277
- * // => false
3278
- */
3279
- var isArray = Array.isArray;
3280
-
3281
- /**
3282
- * Checks if `value` is array-like. A value is considered array-like if it's
3283
- * not a function and has a `value.length` that's an integer greater than or
3284
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
3285
- *
3286
- * @static
3287
- * @memberOf _
3288
- * @since 4.0.0
3289
- * @category Lang
3290
- * @param {*} value The value to check.
3291
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
3292
- * @example
3293
- *
3294
- * _.isArrayLike([1, 2, 3]);
3295
- * // => true
3296
- *
3297
- * _.isArrayLike(document.body.children);
3298
- * // => true
3299
- *
3300
- * _.isArrayLike('abc');
3301
- * // => true
3302
- *
3303
- * _.isArrayLike(_.noop);
3304
- * // => false
3305
- */
3306
- function isArrayLike(value) {
3307
- return value != null && isLength(value.length) && !isFunction(value);
3308
- }
3309
-
3310
- /**
3311
- * This method is like `_.isArrayLike` except that it also checks if `value`
3312
- * is an object.
3313
- *
3314
- * @static
3315
- * @memberOf _
3316
- * @since 4.0.0
3317
- * @category Lang
3318
- * @param {*} value The value to check.
3319
- * @returns {boolean} Returns `true` if `value` is an array-like object,
3320
- * else `false`.
3321
- * @example
3322
- *
3323
- * _.isArrayLikeObject([1, 2, 3]);
3324
- * // => true
3325
- *
3326
- * _.isArrayLikeObject(document.body.children);
3327
- * // => true
3328
- *
3329
- * _.isArrayLikeObject('abc');
3330
- * // => false
3331
- *
3332
- * _.isArrayLikeObject(_.noop);
3333
- * // => false
3334
- */
3335
- function isArrayLikeObject(value) {
3336
- return isObjectLike(value) && isArrayLike(value);
3337
- }
3338
-
3339
- /**
3340
- * Checks if `value` is a buffer.
3341
- *
3342
- * @static
3343
- * @memberOf _
3344
- * @since 4.3.0
3345
- * @category Lang
3346
- * @param {*} value The value to check.
3347
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
3348
- * @example
3349
- *
3350
- * _.isBuffer(new Buffer(2));
3351
- * // => true
3352
- *
3353
- * _.isBuffer(new Uint8Array(2));
3354
- * // => false
3355
- */
3356
- var isBuffer = nativeIsBuffer || stubFalse;
3357
-
3358
- /**
3359
- * Checks if `value` is classified as a `Function` object.
3360
- *
3361
- * @static
3362
- * @memberOf _
3363
- * @since 0.1.0
3364
- * @category Lang
3365
- * @param {*} value The value to check.
3366
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
3367
- * @example
3368
- *
3369
- * _.isFunction(_);
3370
- * // => true
3371
- *
3372
- * _.isFunction(/abc/);
3373
- * // => false
3374
- */
3375
- function isFunction(value) {
3376
- if (!isObject(value)) {
3377
- return false;
3378
- }
3379
- // The use of `Object#toString` avoids issues with the `typeof` operator
3380
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
3381
- var tag = baseGetTag(value);
3382
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
3383
- }
3384
-
3385
- /**
3386
- * Checks if `value` is a valid array-like length.
3387
- *
3388
- * **Note:** This method is loosely based on
3389
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
3390
- *
3391
- * @static
3392
- * @memberOf _
3393
- * @since 4.0.0
3394
- * @category Lang
3395
- * @param {*} value The value to check.
3396
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
3397
- * @example
3398
- *
3399
- * _.isLength(3);
3400
- * // => true
3401
- *
3402
- * _.isLength(Number.MIN_VALUE);
3403
- * // => false
3404
- *
3405
- * _.isLength(Infinity);
3406
- * // => false
3407
- *
3408
- * _.isLength('3');
3409
- * // => false
3410
- */
3411
- function isLength(value) {
3412
- return typeof value == 'number' &&
3413
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
3414
- }
3415
-
3416
- /**
3417
- * Checks if `value` is the
3418
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
3419
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
3420
- *
3421
- * @static
3422
- * @memberOf _
3423
- * @since 0.1.0
3424
- * @category Lang
3425
- * @param {*} value The value to check.
3426
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
3427
- * @example
3428
- *
3429
- * _.isObject({});
3430
- * // => true
3431
- *
3432
- * _.isObject([1, 2, 3]);
3433
- * // => true
3434
- *
3435
- * _.isObject(_.noop);
3436
- * // => true
3437
- *
3438
- * _.isObject(null);
3439
- * // => false
3440
- */
3441
- function isObject(value) {
3442
- var type = typeof value;
3443
- return value != null && (type == 'object' || type == 'function');
3444
- }
3445
-
3446
- /**
3447
- * Checks if `value` is object-like. A value is object-like if it's not `null`
3448
- * and has a `typeof` result of "object".
3449
- *
3450
- * @static
3451
- * @memberOf _
3452
- * @since 4.0.0
3453
- * @category Lang
3454
- * @param {*} value The value to check.
3455
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
3456
- * @example
3457
- *
3458
- * _.isObjectLike({});
3459
- * // => true
3460
- *
3461
- * _.isObjectLike([1, 2, 3]);
3462
- * // => true
3463
- *
3464
- * _.isObjectLike(_.noop);
3465
- * // => false
3466
- *
3467
- * _.isObjectLike(null);
3468
- * // => false
3469
- */
3470
- function isObjectLike(value) {
3471
- return value != null && typeof value == 'object';
3472
- }
3473
-
3474
- /**
3475
- * Checks if `value` is a plain object, that is, an object created by the
3476
- * `Object` constructor or one with a `[[Prototype]]` of `null`.
3477
- *
3478
- * @static
3479
- * @memberOf _
3480
- * @since 0.8.0
3481
- * @category Lang
3482
- * @param {*} value The value to check.
3483
- * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
3484
- * @example
3485
- *
3486
- * function Foo() {
3487
- * this.a = 1;
3488
- * }
3489
- *
3490
- * _.isPlainObject(new Foo);
3491
- * // => false
3492
- *
3493
- * _.isPlainObject([1, 2, 3]);
3494
- * // => false
3495
- *
3496
- * _.isPlainObject({ 'x': 0, 'y': 0 });
3497
- * // => true
3498
- *
3499
- * _.isPlainObject(Object.create(null));
3500
- * // => true
3501
- */
3502
- function isPlainObject(value) {
3503
- if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
3504
- return false;
3505
- }
3506
- var proto = getPrototype(value);
3507
- if (proto === null) {
3508
- return true;
3509
- }
3510
- var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
3511
- return typeof Ctor == 'function' && Ctor instanceof Ctor &&
3512
- funcToString.call(Ctor) == objectCtorString;
3513
- }
3514
-
3515
- /**
3516
- * Checks if `value` is classified as a typed array.
3517
- *
3518
- * @static
3519
- * @memberOf _
3520
- * @since 3.0.0
3521
- * @category Lang
3522
- * @param {*} value The value to check.
3523
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
3524
- * @example
3525
- *
3526
- * _.isTypedArray(new Uint8Array);
3527
- * // => true
3528
- *
3529
- * _.isTypedArray([]);
3530
- * // => false
3531
- */
3532
- var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
3533
-
3534
- /**
3535
- * Converts `value` to a plain object flattening inherited enumerable string
3536
- * keyed properties of `value` to own properties of the plain object.
3537
- *
3538
- * @static
3539
- * @memberOf _
3540
- * @since 3.0.0
3541
- * @category Lang
3542
- * @param {*} value The value to convert.
3543
- * @returns {Object} Returns the converted plain object.
3544
- * @example
3545
- *
3546
- * function Foo() {
3547
- * this.b = 2;
3548
- * }
3549
- *
3550
- * Foo.prototype.c = 3;
3551
- *
3552
- * _.assign({ 'a': 1 }, new Foo);
3553
- * // => { 'a': 1, 'b': 2 }
3554
- *
3555
- * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
3556
- * // => { 'a': 1, 'b': 2, 'c': 3 }
3557
- */
3558
- function toPlainObject(value) {
3559
- return copyObject(value, keysIn(value));
3560
- }
3561
-
3562
- /**
3563
- * Creates an array of the own and inherited enumerable property names of `object`.
3564
- *
3565
- * **Note:** Non-object values are coerced to objects.
3566
- *
3567
- * @static
3568
- * @memberOf _
3569
- * @since 3.0.0
3570
- * @category Object
3571
- * @param {Object} object The object to query.
3572
- * @returns {Array} Returns the array of property names.
3573
- * @example
3574
- *
3575
- * function Foo() {
3576
- * this.a = 1;
3577
- * this.b = 2;
3578
- * }
3579
- *
3580
- * Foo.prototype.c = 3;
3581
- *
3582
- * _.keysIn(new Foo);
3583
- * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
3584
- */
3585
- function keysIn(object) {
3586
- return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
3587
- }
3588
-
3589
- /**
3590
- * This method is like `_.merge` except that it accepts `customizer` which
3591
- * is invoked to produce the merged values of the destination and source
3592
- * properties. If `customizer` returns `undefined`, merging is handled by the
3593
- * method instead. The `customizer` is invoked with six arguments:
3594
- * (objValue, srcValue, key, object, source, stack).
3595
- *
3596
- * **Note:** This method mutates `object`.
3597
- *
3598
- * @static
3599
- * @memberOf _
3600
- * @since 4.0.0
3601
- * @category Object
3602
- * @param {Object} object The destination object.
3603
- * @param {...Object} sources The source objects.
3604
- * @param {Function} customizer The function to customize assigned values.
3605
- * @returns {Object} Returns `object`.
3606
- * @example
3607
- *
3608
- * function customizer(objValue, srcValue) {
3609
- * if (_.isArray(objValue)) {
3610
- * return objValue.concat(srcValue);
3611
- * }
3612
- * }
3613
- *
3614
- * var object = { 'a': [1], 'b': [2] };
3615
- * var other = { 'a': [3], 'b': [4] };
3616
- *
3617
- * _.mergeWith(object, other, customizer);
3618
- * // => { 'a': [1, 3], 'b': [2, 4] }
3619
- */
3620
- var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {
3621
- baseMerge(object, source, srcIndex, customizer);
3622
- });
3623
-
3624
- /**
3625
- * Creates a function that returns `value`.
3626
- *
3627
- * @static
3628
- * @memberOf _
3629
- * @since 2.4.0
3630
- * @category Util
3631
- * @param {*} value The value to return from the new function.
3632
- * @returns {Function} Returns the new constant function.
3633
- * @example
3634
- *
3635
- * var objects = _.times(2, _.constant({ 'a': 1 }));
3636
- *
3637
- * console.log(objects);
3638
- * // => [{ 'a': 1 }, { 'a': 1 }]
3639
- *
3640
- * console.log(objects[0] === objects[1]);
3641
- * // => true
3642
- */
3643
- function constant(value) {
3644
- return function() {
3645
- return value;
3646
- };
3647
- }
3648
-
3649
- /**
3650
- * This method returns the first argument it receives.
3651
- *
3652
- * @static
3653
- * @since 0.1.0
3654
- * @memberOf _
3655
- * @category Util
3656
- * @param {*} value Any value.
3657
- * @returns {*} Returns `value`.
3658
- * @example
3659
- *
3660
- * var object = { 'a': 1 };
3661
- *
3662
- * console.log(_.identity(object) === object);
3663
- * // => true
3664
- */
3665
- function identity(value) {
3666
- return value;
3667
- }
3668
-
3669
- /**
3670
- * This method returns `false`.
3671
- *
3672
- * @static
3673
- * @memberOf _
3674
- * @since 4.13.0
3675
- * @category Util
3676
- * @returns {boolean} Returns `false`.
3677
- * @example
3678
- *
3679
- * _.times(2, _.stubFalse);
3680
- * // => [false, false]
3681
- */
3682
- function stubFalse() {
3683
- return false;
3684
- }
3685
-
3686
- module.exports = mergeWith;
3687
- }(lodash_mergewith, lodash_mergewith.exports));
3688
-
3689
- function isArray(value) {
3690
- return Array.isArray(value);
3691
- }
3692
-
3693
- function isObject(value) {
3694
- var type = typeof value;
3695
- return value != null && (type === "object" || type === "function") && !isArray(value);
3696
- }
3697
- process.env.NODE_ENV !== "production";
3698
- process.env.NODE_ENV === "test";
3699
-
3700
- Object.freeze(["base", "sm", "md", "lg", "xl", "2xl"]);
3701
-
3702
- function toRef(operand) {
3703
- if (isObject(operand) && operand.reference) {
3704
- return operand.reference;
3705
- }
3706
-
3707
- return String(operand);
3708
- }
3709
-
3710
- var toExpr = function toExpr(operator) {
3711
- for (var _len = arguments.length, operands = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
3712
- operands[_key - 1] = arguments[_key];
3713
- }
3714
-
3715
- return operands.map(toRef).join(" " + operator + " ").replace(/calc/g, "");
3716
- };
3717
-
3718
- var _add = function add() {
3719
- for (var _len2 = arguments.length, operands = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
3720
- operands[_key2] = arguments[_key2];
3721
- }
3722
-
3723
- return "calc(" + toExpr.apply(void 0, ["+"].concat(operands)) + ")";
3724
- };
3725
-
3726
- var _subtract = function subtract() {
3727
- for (var _len3 = arguments.length, operands = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
3728
- operands[_key3] = arguments[_key3];
3729
- }
3730
-
3731
- return "calc(" + toExpr.apply(void 0, ["-"].concat(operands)) + ")";
3732
- };
3733
-
3734
- var _multiply = function multiply() {
3735
- for (var _len4 = arguments.length, operands = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
3736
- operands[_key4] = arguments[_key4];
3737
- }
3738
-
3739
- return "calc(" + toExpr.apply(void 0, ["*"].concat(operands)) + ")";
3740
- };
3741
-
3742
- var _divide = function divide() {
3743
- for (var _len5 = arguments.length, operands = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
3744
- operands[_key5] = arguments[_key5];
3745
- }
3746
-
3747
- return "calc(" + toExpr.apply(void 0, ["/"].concat(operands)) + ")";
3748
- };
3749
-
3750
- var _negate = function negate(x) {
3751
- var value = toRef(x);
3752
-
3753
- if (value != null && !Number.isNaN(parseFloat(value))) {
3754
- return String(value).startsWith("-") ? String(value).slice(1) : "-" + value;
3755
- }
3756
-
3757
- return _multiply(value, -1);
3758
- };
3759
-
3760
- var calc = Object.assign(function (x) {
3761
- return {
3762
- add: function add() {
3763
- for (var _len6 = arguments.length, operands = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
3764
- operands[_key6] = arguments[_key6];
3765
- }
3766
-
3767
- return calc(_add.apply(void 0, [x].concat(operands)));
3768
- },
3769
- subtract: function subtract() {
3770
- for (var _len7 = arguments.length, operands = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
3771
- operands[_key7] = arguments[_key7];
3772
- }
3773
-
3774
- return calc(_subtract.apply(void 0, [x].concat(operands)));
3775
- },
3776
- multiply: function multiply() {
3777
- for (var _len8 = arguments.length, operands = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
3778
- operands[_key8] = arguments[_key8];
3779
- }
3780
-
3781
- return calc(_multiply.apply(void 0, [x].concat(operands)));
3782
- },
3783
- divide: function divide() {
3784
- for (var _len9 = arguments.length, operands = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {
3785
- operands[_key9] = arguments[_key9];
3786
- }
3787
-
3788
- return calc(_divide.apply(void 0, [x].concat(operands)));
3789
- },
3790
- negate: function negate() {
3791
- return calc(_negate(x));
3792
- },
3793
- toString: function toString() {
3794
- return x.toString();
3795
- }
3796
- };
3797
- }, {
3798
- add: _add,
3799
- subtract: _subtract,
3800
- multiply: _multiply,
3801
- divide: _divide,
3802
- negate: _negate
3803
- });
3804
-
3805
- function isDecimal(value) {
3806
- return !Number.isInteger(parseFloat(value.toString()));
3807
- }
3808
-
3809
- function replaceWhiteSpace(value, replaceValue) {
3810
- if (replaceValue === void 0) {
3811
- replaceValue = "-";
3812
- }
3813
-
3814
- return value.replace(/\s+/g, replaceValue);
3815
- }
3816
-
3817
- function escape(value) {
3818
- var valueStr = replaceWhiteSpace(value.toString());
3819
- if (valueStr.includes("\\.")) return value;
3820
- return isDecimal(value) ? valueStr.replace(".", "\\.") : value;
3821
- }
3822
-
3823
- function addPrefix(value, prefix) {
3824
- if (prefix === void 0) {
3825
- prefix = "";
3826
- }
3827
-
3828
- return [prefix, escape(value)].filter(Boolean).join("-");
3829
- }
3830
- function toVarRef(name, fallback) {
3831
- return "var(" + escape(name) + (fallback ? ", " + fallback : "") + ")";
3832
- }
3833
- function toVar(value, prefix) {
3834
- if (prefix === void 0) {
3835
- prefix = "";
3836
- }
3837
-
3838
- return "--" + addPrefix(value, prefix);
3839
- }
3840
- function cssVar(name, options) {
3841
- var cssVariable = toVar(name, options == null ? void 0 : options.prefix);
3842
- return {
3843
- variable: cssVariable,
3844
- reference: toVarRef(cssVariable, getFallback(options == null ? void 0 : options.fallback))
3845
- };
3846
- }
3847
-
3848
- function getFallback(fallback) {
3849
- if (typeof fallback === "string") return fallback;
3850
- return fallback == null ? void 0 : fallback.reference;
3851
- }
3852
-
3853
- var _a, _b, _c;
3854
- var $trackWidth = cssVar('switch-track-width');
3855
- var $trackHeight = cssVar('switch-track-height');
3856
- var $thumbWidth = cssVar('switch-thumb-width');
3857
- var $thumbHeight = cssVar('switch-thumb-height');
3858
- var SwitchConfig = {
3859
- baseStyle: {
3860
- track: {
3861
- bg: semanticColors.background.grayDark,
3862
- p: 0,
3863
- pos: 'relative',
3864
- _checked: {
3865
- bg: semanticColors.background.grayDark,
3866
- },
3867
- _active: {
3868
- outline: '0px',
3869
- boxShadow: 'none',
3870
- },
3871
- _focus: {
3872
- outline: '0px',
3873
- boxShadow: 'none',
3874
- },
3875
- },
3876
- thumb: {
3877
- bg: coreColors.comet[700],
3878
- h: $thumbHeight.reference,
3879
- w: $thumbWidth.reference,
3880
- pos: 'absolute',
3881
- top: '50%',
3882
- transform: 'translate(0%, -50%)',
3883
- _checked: {
3884
- bg: semanticColors.background.brand,
3885
- transform: 'translate(100%, -50%)',
3886
- },
3887
- },
3888
- },
3889
- sizes: {
3890
- sm: {
3891
- container: (_a = {},
3892
- _a[$thumbWidth.variable] = '9.75px',
3893
- _a[$thumbHeight.variable] = '9.75px',
3894
- _a[$trackWidth.variable] = '16.5px',
3895
- _a[$trackHeight.variable] = '5.25px',
3896
- _a),
3897
- },
3898
- md: {
3899
- container: (_b = {},
3900
- _b[$thumbWidth.variable] = '13px',
3901
- _b[$thumbHeight.variable] = '13px',
3902
- _b[$trackWidth.variable] = '22px',
3903
- _b[$trackHeight.variable] = '7px',
3904
- _b),
3905
- },
3906
- lg: {
3907
- container: (_c = {},
3908
- _c[$thumbWidth.variable] = '19.5px',
3909
- _c[$thumbHeight.variable] = '19.5px',
3910
- _c[$trackWidth.variable] = '33px',
3911
- _c[$trackHeight.variable] = '10.5px',
3912
- _c),
3913
- },
3914
- },
3915
- };
3916
-
3917
1597
  var useAdaptiveColor = function (color) { return react.useColorModeValue(color.light, color.dark); };
3918
1598
 
3919
1599
  var Tooltip = function (_a) {
@@ -5769,13 +3449,11 @@ var theme = react.extendTheme({
5769
3449
  useSystemColorMode: false,
5770
3450
  },
5771
3451
  components: {
5772
- Button: __assign(__assign({}, ButtonVariantConfig), { sizes: ButtonSizeConfig }),
5773
- Drawer: DrawerConfig,
5774
- Heading: HeadingConfig,
5775
- Select: SelectConfig,
5776
- Switch: SwitchConfig,
5777
3452
  Text: TextConfig,
3453
+ Heading: HeadingConfig,
5778
3454
  Textarea: TextareaConfig,
3455
+ Drawer: DrawerConfig,
3456
+ Button: __assign(__assign({}, ButtonVariantConfig), { sizes: ButtonSizeConfig }),
5779
3457
  Tooltip: TooltipConfig,
5780
3458
  Avatar: AvatarConfig,
5781
3459
  },
@@ -5799,10 +3477,6 @@ Object.defineProperty(exports, 'Container', {
5799
3477
  enumerable: true,
5800
3478
  get: function () { return react.Container; }
5801
3479
  });
5802
- Object.defineProperty(exports, 'Divider', {
5803
- enumerable: true,
5804
- get: function () { return react.Divider; }
5805
- });
5806
3480
  Object.defineProperty(exports, 'Drawer', {
5807
3481
  enumerable: true,
5808
3482
  get: function () { return react.Drawer; }
@@ -5851,18 +3525,6 @@ Object.defineProperty(exports, 'Hide', {
5851
3525
  enumerable: true,
5852
3526
  get: function () { return react.Hide; }
5853
3527
  });
5854
- Object.defineProperty(exports, 'InputGroup', {
5855
- enumerable: true,
5856
- get: function () { return react.InputGroup; }
5857
- });
5858
- Object.defineProperty(exports, 'InputLeftElement', {
5859
- enumerable: true,
5860
- get: function () { return react.InputLeftElement; }
5861
- });
5862
- Object.defineProperty(exports, 'InputRightElement', {
5863
- enumerable: true,
5864
- get: function () { return react.InputRightElement; }
5865
- });
5866
3528
  Object.defineProperty(exports, 'Show', {
5867
3529
  enumerable: true,
5868
3530
  get: function () { return react.Show; }
@@ -5939,17 +3601,9 @@ exports.HeadingConfig = HeadingConfig;
5939
3601
  exports.Icon = Icon;
5940
3602
  exports.KibbleThemeProvider = KibbleThemeProvider;
5941
3603
  exports.Logo = Logo;
5942
- exports.RatingDot = RatingDot;
5943
- exports.RatingDots = RatingDots;
5944
- exports.Select = WrappedSelect;
5945
- exports.SelectConfig = SelectConfig;
5946
- exports.Switch = WrappedSwitch;
5947
- exports.SwitchConfig = SwitchConfig;
5948
3604
  exports.Text = Text;
5949
3605
  exports.TextConfig = TextConfig;
5950
- exports.TextInput = WrappedTextInput;
5951
- exports.TextInputConfig = TextInputConfig;
5952
- exports.Textarea = WrappedTextArea;
3606
+ exports.Textarea = Textarea;
5953
3607
  exports.TextareaConfig = TextareaConfig;
5954
3608
  exports.Tooltip = Tooltip;
5955
3609
  exports.TooltipConfig = TooltipConfig;