@devtron-labs/devtron-fe-common-lib 0.0.41-beta-6 → 0.0.41-beta-7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Common/Helper.d.ts +0 -7
- package/dist/Common/Types.d.ts +135 -0
- package/dist/Common/index.d.ts +0 -1
- package/dist/index.js +160 -2888
- package/package.json +1 -4
- package/src/Common/Helper.tsx +0 -17
- package/src/Common/Types.ts +148 -0
- package/src/Common/index.ts +0 -1
- package/dist/Common/RJSF/Form.d.ts +0 -4
- package/dist/Common/RJSF/common/FieldRow.d.ts +0 -6
- package/dist/Common/RJSF/common/types.d.ts +0 -8
- package/dist/Common/RJSF/config.d.ts +0 -4
- package/dist/Common/RJSF/constants.d.ts +0 -7
- package/dist/Common/RJSF/index.d.ts +0 -3
- package/dist/Common/RJSF/templates/ArrayFieldItemTemplate.d.ts +0 -3
- package/dist/Common/RJSF/templates/ArrayFieldTemplate.d.ts +0 -3
- package/dist/Common/RJSF/templates/BaseInput.d.ts +0 -3
- package/dist/Common/RJSF/templates/ButtonTemplates/AddButton.d.ts +0 -3
- package/dist/Common/RJSF/templates/ButtonTemplates/RemoveButton.d.ts +0 -3
- package/dist/Common/RJSF/templates/ButtonTemplates/SubmitButton.d.ts +0 -3
- package/dist/Common/RJSF/templates/ButtonTemplates/index.d.ts +0 -3
- package/dist/Common/RJSF/templates/Description.d.ts +0 -3
- package/dist/Common/RJSF/templates/Field.d.ts +0 -3
- package/dist/Common/RJSF/templates/FieldErrorTemplate.d.ts +0 -3
- package/dist/Common/RJSF/templates/ObjectFieldTemplate.d.ts +0 -3
- package/dist/Common/RJSF/templates/TitleField.d.ts +0 -3
- package/dist/Common/RJSF/templates/WrapIfAdditionalTemplate.d.ts +0 -3
- package/dist/Common/RJSF/templates/index.d.ts +0 -10
- package/dist/Common/RJSF/types.d.ts +0 -3
- package/dist/Common/RJSF/utils.d.ts +0 -25
- package/dist/Common/RJSF/widgets/Checkbox.d.ts +0 -3
- package/dist/Common/RJSF/widgets/Select.d.ts +0 -3
- package/dist/Common/RJSF/widgets/index.d.ts +0 -2
- package/src/Assets/Icon/ic-chevron-down.svg +0 -5
- package/src/Common/RJSF/Form.tsx +0 -29
- package/src/Common/RJSF/common/FieldRow.tsx +0 -35
- package/src/Common/RJSF/common/types.ts +0 -9
- package/src/Common/RJSF/config.ts +0 -37
- package/src/Common/RJSF/constants.ts +0 -10
- package/src/Common/RJSF/index.ts +0 -3
- package/src/Common/RJSF/rjsfForm.scss +0 -18
- package/src/Common/RJSF/templates/ArrayFieldItemTemplate.tsx +0 -31
- package/src/Common/RJSF/templates/ArrayFieldTemplate.tsx +0 -78
- package/src/Common/RJSF/templates/BaseInput.tsx +0 -16
- package/src/Common/RJSF/templates/ButtonTemplates/AddButton.tsx +0 -18
- package/src/Common/RJSF/templates/ButtonTemplates/RemoveButton.tsx +0 -10
- package/src/Common/RJSF/templates/ButtonTemplates/SubmitButton.tsx +0 -18
- package/src/Common/RJSF/templates/ButtonTemplates/index.ts +0 -3
- package/src/Common/RJSF/templates/Description.tsx +0 -12
- package/src/Common/RJSF/templates/Field.tsx +0 -30
- package/src/Common/RJSF/templates/FieldErrorTemplate.tsx +0 -25
- package/src/Common/RJSF/templates/ObjectFieldTemplate.tsx +0 -105
- package/src/Common/RJSF/templates/TitleField.tsx +0 -9
- package/src/Common/RJSF/templates/WrapIfAdditionalTemplate.tsx +0 -51
- package/src/Common/RJSF/templates/index.ts +0 -10
- package/src/Common/RJSF/types.ts +0 -4
- package/src/Common/RJSF/utils.ts +0 -110
- package/src/Common/RJSF/widgets/Checkbox.tsx +0 -44
- package/src/Common/RJSF/widgets/Select.tsx +0 -77
- package/src/Common/RJSF/widgets/index.ts +0 -2
package/dist/index.js
CHANGED
|
@@ -4,9 +4,6 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var ReactDOM = require('react-dom');
|
|
6
6
|
var reactRouterDom = require('react-router-dom');
|
|
7
|
-
var RJSF = require('@rjsf/core');
|
|
8
|
-
var RJSFValidator = require('@rjsf/validator-ajv8');
|
|
9
|
-
var utils = require('@rjsf/utils');
|
|
10
7
|
|
|
11
8
|
function _interopNamespaceDefault(e) {
|
|
12
9
|
var n = Object.create(null);
|
|
@@ -715,13 +712,13 @@ function styleInject(css, ref) {
|
|
|
715
712
|
}
|
|
716
713
|
}
|
|
717
714
|
|
|
718
|
-
var css_248z$
|
|
719
|
-
styleInject(css_248z$
|
|
715
|
+
var css_248z$6 = ".empty-state {\n height: 100%;\n}\n.empty-state img {\n height: 40%;\n max-height: 200px;\n width: auto;\n max-width: 250px;\n}\n.empty-state svg {\n height: 40%;\n max-height: 200px;\n width: auto;\n}\n.empty-state h1,\n.empty-state h2,\n.empty-state h3,\n.empty-state h4,\n.empty-state h5,\n.empty-state h6 {\n color: var(--N900);\n}\n.empty-state .subtitle {\n font-size: 13px;\n font-weight: 400;\n text-align: center;\n line-height: 1.5;\n margin-bottom: 6px;\n}\n.empty-state .subtitle--text-start {\n text-align: start;\n}\n.empty-state .cta {\n height: 36px;\n}\n.empty-state p {\n text-align: center;\n font-size: 13px;\n color: var(--N700);\n}\n.empty-state strong {\n font-size: 16px;\n margin-bottom: 4px;\n color: var(--N900);\n font-weight: normal;\n}\n.empty-state .select-popup {\n height: min-content;\n max-height: 250px;\n overflow: auto;\n padding: 8px 0;\n}\n.empty-state .empty-state__loader {\n width: 34px;\n height: 34px;\n margin-bottom: 16px;\n}\n.empty-state .empty-state__loading-text {\n font-size: 12px;\n width: 200px;\n font-weight: normal;\n font-stretch: normal;\n font-style: normal;\n line-height: 1.5;\n letter-spacing: normal;\n text-align: center;\n color: var(--N900);\n}\n.empty-state .button__icon {\n width: 16px;\n height: 16px;\n margin-left: 8px;\n}";
|
|
716
|
+
styleInject(css_248z$6);
|
|
720
717
|
|
|
721
718
|
var _g$6;
|
|
722
|
-
function _extends$
|
|
719
|
+
function _extends$k() { _extends$k = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$k.apply(this, arguments); }
|
|
723
720
|
var SvgIcProgressing = function SvgIcProgressing(props) {
|
|
724
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
721
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
|
|
725
722
|
xmlns: "http://www.w3.org/2000/svg",
|
|
726
723
|
viewBox: "0 0 24 24",
|
|
727
724
|
width: "1em",
|
|
@@ -773,8 +770,8 @@ EmptyState.Loading = Loading;
|
|
|
773
770
|
|
|
774
771
|
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
775
772
|
|
|
776
|
-
function _extends$
|
|
777
|
-
_extends$
|
|
773
|
+
function _extends$j() {
|
|
774
|
+
_extends$j = Object.assign || function (target) {
|
|
778
775
|
for (var i = 1; i < arguments.length; i++) {
|
|
779
776
|
var source = arguments[i];
|
|
780
777
|
|
|
@@ -788,7 +785,7 @@ function _extends$k() {
|
|
|
788
785
|
return target;
|
|
789
786
|
};
|
|
790
787
|
|
|
791
|
-
return _extends$
|
|
788
|
+
return _extends$j.apply(this, arguments);
|
|
792
789
|
}
|
|
793
790
|
|
|
794
791
|
function _objectWithoutPropertiesLoose$2(source, excluded) {
|
|
@@ -1514,7 +1511,7 @@ function ProgressBar(_ref) {
|
|
|
1514
1511
|
isIn = _ref.isIn,
|
|
1515
1512
|
theme = _ref.theme;
|
|
1516
1513
|
|
|
1517
|
-
var style = _extends$
|
|
1514
|
+
var style = _extends$j({}, userStyle, {
|
|
1518
1515
|
animationDuration: delay + "ms",
|
|
1519
1516
|
animationPlayState: isRunning ? 'running' : 'paused',
|
|
1520
1517
|
opacity: hide ? 0 : 1
|
|
@@ -1791,9 +1788,9 @@ var ToastContainer = function ToastContainer(props) {
|
|
|
1791
1788
|
,
|
|
1792
1789
|
id: containerId
|
|
1793
1790
|
}, getToastToRender(function (position, toastList) {
|
|
1794
|
-
var containerStyle = !toastList.length ? _extends$
|
|
1791
|
+
var containerStyle = !toastList.length ? _extends$j({}, style, {
|
|
1795
1792
|
pointerEvents: 'none'
|
|
1796
|
-
}) : _extends$
|
|
1793
|
+
}) : _extends$j({}, style);
|
|
1797
1794
|
return React.createElement("div", {
|
|
1798
1795
|
className: getClassName(position),
|
|
1799
1796
|
style: containerStyle,
|
|
@@ -1900,7 +1897,7 @@ function dispatchToast(content, options) {
|
|
|
1900
1897
|
|
|
1901
1898
|
|
|
1902
1899
|
function mergeOptions(type, options) {
|
|
1903
|
-
return _extends$
|
|
1900
|
+
return _extends$j({}, options, {
|
|
1904
1901
|
type: options && options.type || type,
|
|
1905
1902
|
toastId: getToastId(options)
|
|
1906
1903
|
});
|
|
@@ -1917,7 +1914,7 @@ function toast(content, options) {
|
|
|
1917
1914
|
}
|
|
1918
1915
|
|
|
1919
1916
|
toast.loading = function (content, options) {
|
|
1920
|
-
return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$
|
|
1917
|
+
return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$j({
|
|
1921
1918
|
isLoading: true,
|
|
1922
1919
|
autoClose: false,
|
|
1923
1920
|
closeOnClick: false,
|
|
@@ -1933,7 +1930,7 @@ function handlePromise(promise, _ref2, options) {
|
|
|
1933
1930
|
var id;
|
|
1934
1931
|
|
|
1935
1932
|
if (pending) {
|
|
1936
|
-
id = isStr(pending) ? toast.loading(pending, options) : toast.loading(pending.render, _extends$
|
|
1933
|
+
id = isStr(pending) ? toast.loading(pending, options) : toast.loading(pending.render, _extends$j({}, options, pending));
|
|
1937
1934
|
}
|
|
1938
1935
|
|
|
1939
1936
|
var resetParams = {
|
|
@@ -1952,7 +1949,7 @@ function handlePromise(promise, _ref2, options) {
|
|
|
1952
1949
|
return;
|
|
1953
1950
|
}
|
|
1954
1951
|
|
|
1955
|
-
var baseParams = _extends$
|
|
1952
|
+
var baseParams = _extends$j({
|
|
1956
1953
|
type: type
|
|
1957
1954
|
}, resetParams, options, {
|
|
1958
1955
|
data: result
|
|
@@ -1963,10 +1960,10 @@ function handlePromise(promise, _ref2, options) {
|
|
|
1963
1960
|
} : input; // if the id is set we know that it's an update
|
|
1964
1961
|
|
|
1965
1962
|
if (id) {
|
|
1966
|
-
toast.update(id, _extends$
|
|
1963
|
+
toast.update(id, _extends$j({}, baseParams, params));
|
|
1967
1964
|
} else {
|
|
1968
1965
|
// using toast.promise without loading
|
|
1969
|
-
toast(params.render, _extends$
|
|
1966
|
+
toast(params.render, _extends$j({}, baseParams, params));
|
|
1970
1967
|
}
|
|
1971
1968
|
|
|
1972
1969
|
return result;
|
|
@@ -1990,7 +1987,7 @@ toast.warning = /*#__PURE__*/createToastByType(TYPE.WARNING);
|
|
|
1990
1987
|
toast.warn = toast.warning;
|
|
1991
1988
|
|
|
1992
1989
|
toast.dark = function (content, options) {
|
|
1993
|
-
return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$
|
|
1990
|
+
return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$j({
|
|
1994
1991
|
theme: 'dark'
|
|
1995
1992
|
}, options)));
|
|
1996
1993
|
};
|
|
@@ -2047,7 +2044,7 @@ toast.update = function (toastId, options) {
|
|
|
2047
2044
|
var oldOptions = toast.props,
|
|
2048
2045
|
oldContent = toast.content;
|
|
2049
2046
|
|
|
2050
|
-
var nextOptions = _extends$
|
|
2047
|
+
var nextOptions = _extends$j({}, oldOptions, options, {
|
|
2051
2048
|
toastId: options.toastId || toastId,
|
|
2052
2049
|
updateId: generateToastId()
|
|
2053
2050
|
});
|
|
@@ -7952,7 +7949,7 @@ var moment$1 = {
|
|
|
7952
7949
|
var moment = momentExports;
|
|
7953
7950
|
|
|
7954
7951
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
7955
|
-
const objectToString
|
|
7952
|
+
const objectToString = Object.prototype.toString;
|
|
7956
7953
|
/**
|
|
7957
7954
|
* Checks whether given value is an instance of the given built-in class.
|
|
7958
7955
|
*
|
|
@@ -7961,7 +7958,7 @@ const objectToString$2 = Object.prototype.toString;
|
|
|
7961
7958
|
* @returns A boolean representing the result.
|
|
7962
7959
|
*/
|
|
7963
7960
|
function isBuiltin(wat, className) {
|
|
7964
|
-
return objectToString
|
|
7961
|
+
return objectToString.call(wat) === `[object ${className}]`;
|
|
7965
7962
|
}
|
|
7966
7963
|
|
|
7967
7964
|
/**
|
|
@@ -9837,9 +9834,9 @@ function captureException(exception, captureContext) {
|
|
|
9837
9834
|
}
|
|
9838
9835
|
|
|
9839
9836
|
var _g$5;
|
|
9840
|
-
function _extends$
|
|
9837
|
+
function _extends$i() { _extends$i = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$i.apply(this, arguments); }
|
|
9841
9838
|
var SvgIcWarning = function SvgIcWarning(props) {
|
|
9842
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
9839
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
|
|
9843
9840
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9844
9841
|
width: "1em",
|
|
9845
9842
|
height: "1em",
|
|
@@ -10250,22 +10247,6 @@ var processDeployedTime = function (lastDeployed, isArgoInstalled) {
|
|
|
10250
10247
|
else {
|
|
10251
10248
|
return isArgoInstalled ? '' : 'Not deployed';
|
|
10252
10249
|
}
|
|
10253
|
-
};
|
|
10254
|
-
/**
|
|
10255
|
-
* Appends search parameters to the url as a query string
|
|
10256
|
-
*
|
|
10257
|
-
* @param url URL to which the search params needs to be added
|
|
10258
|
-
* @param params Object for the search parameters
|
|
10259
|
-
*/
|
|
10260
|
-
var getUrlWithSearchParams = function (url, params) {
|
|
10261
|
-
var searchParams = new URLSearchParams();
|
|
10262
|
-
Object.keys(params).forEach(function (key) {
|
|
10263
|
-
if (params[key]) {
|
|
10264
|
-
searchParams.append(key, params[key]);
|
|
10265
|
-
}
|
|
10266
|
-
});
|
|
10267
|
-
var queryString = searchParams.toString();
|
|
10268
|
-
return url + (queryString ? "?".concat(queryString) : '');
|
|
10269
10250
|
};
|
|
10270
10251
|
|
|
10271
10252
|
function Progressing(_a) {
|
|
@@ -10318,8 +10299,8 @@ var VisibleModal = /** @class */ (function (_super) {
|
|
|
10318
10299
|
return VisibleModal;
|
|
10319
10300
|
}(React.Component));
|
|
10320
10301
|
|
|
10321
|
-
var css_248z$
|
|
10322
|
-
styleInject(css_248z$
|
|
10302
|
+
var css_248z$5 = ".drawer {\n position: absolute;\n overflow: hidden;\n}\n.drawer.left, .drawer.right {\n top: 0;\n bottom: 0;\n width: 0;\n transition: width 200ms;\n}\n.drawer.left.show, .drawer.right.show {\n min-width: var(--minWidth);\n width: var(--width);\n max-width: var(--maxWidth);\n}\n.drawer.top, .drawer.bottom {\n left: 0;\n right: 0;\n height: 0;\n transition: height 200ms;\n}\n.drawer.top.show, .drawer.bottom.show {\n height: var(--height);\n}\n.drawer.right {\n right: 0;\n}\n.drawer.left {\n left: 0;\n}\n.drawer.top {\n top: 0;\n}\n.drawer.bottom {\n bottom: 0;\n}";
|
|
10303
|
+
styleInject(css_248z$5);
|
|
10323
10304
|
|
|
10324
10305
|
var Drawer = function (_a) {
|
|
10325
10306
|
var children = _a.children, position = _a.position, height = _a.height, width = _a.width, minWidth = _a.minWidth, maxWidth = _a.maxWidth, parentClassName = _a.parentClassName, onEscape = _a.onEscape;
|
|
@@ -10393,16 +10374,16 @@ var Modal = function (_a) {
|
|
|
10393
10374
|
}, id: "popup", className: "".concat(rootClassName, " popup ").concat(modal ? 'modal' : ''), style: __assign({}, style) }, { children: children })), document.getElementById('visible-modal'));
|
|
10394
10375
|
};
|
|
10395
10376
|
|
|
10396
|
-
var _path$
|
|
10397
|
-
function _extends$
|
|
10377
|
+
var _path$b;
|
|
10378
|
+
function _extends$h() { _extends$h = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$h.apply(this, arguments); }
|
|
10398
10379
|
var SvgIcCross = function SvgIcCross(props) {
|
|
10399
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
10380
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
|
|
10400
10381
|
width: "1em",
|
|
10401
10382
|
height: "1em",
|
|
10402
10383
|
viewBox: "0 0 24 24",
|
|
10403
10384
|
fill: "none",
|
|
10404
10385
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10405
|
-
}, props), _path$
|
|
10386
|
+
}, props), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
|
|
10406
10387
|
d: "M19.28 5.78a.75.75 0 0 0-1.06-1.06l1.06 1.06ZM4.72 18.22a.75.75 0 1 0 1.06 1.06l-1.06-1.06Zm13.5 1.06a.75.75 0 1 0 1.06-1.06l-1.06 1.06ZM5.78 4.72a.75.75 0 0 0-1.06 1.06l1.06-1.06Zm12.44 0-6.75 6.75 1.06 1.06 6.75-6.75-1.06-1.06Zm-6.75 6.75-6.75 6.75 1.06 1.06 6.75-6.75-1.06-1.06Zm7.81 6.75-6.75-6.75-1.06 1.06 6.75 6.75 1.06-1.06Zm-6.75-6.75L5.78 4.72 4.72 5.78l6.75 6.75 1.06-1.06Z",
|
|
10407
10388
|
fill: "#596168"
|
|
10408
10389
|
})));
|
|
@@ -12689,7 +12670,7 @@ var TIPPY_DEFAULT_APPEND_TO = function TIPPY_DEFAULT_APPEND_TO() {
|
|
|
12689
12670
|
return document.body;
|
|
12690
12671
|
};
|
|
12691
12672
|
|
|
12692
|
-
function hasOwnProperty$
|
|
12673
|
+
function hasOwnProperty$1(obj, key) {
|
|
12693
12674
|
return {}.hasOwnProperty.call(obj, key);
|
|
12694
12675
|
}
|
|
12695
12676
|
function getValueAtIndexOrReturn(value, index, defaultValue) {
|
|
@@ -13120,7 +13101,7 @@ function validateProps(partialProps, plugins) {
|
|
|
13120
13101
|
var keys = Object.keys(partialProps);
|
|
13121
13102
|
keys.forEach(function (prop) {
|
|
13122
13103
|
var nonPluginProps = removeProperties(defaultProps$1, Object.keys(pluginProps));
|
|
13123
|
-
var didPassUnknownProp = !hasOwnProperty$
|
|
13104
|
+
var didPassUnknownProp = !hasOwnProperty$1(nonPluginProps, prop); // Check if the prop exists in `plugins`
|
|
13124
13105
|
|
|
13125
13106
|
if (didPassUnknownProp) {
|
|
13126
13107
|
didPassUnknownProp = plugins.filter(function (plugin) {
|
|
@@ -14701,38 +14682,38 @@ var index = /*#__PURE__*/forwardRef( /*#__PURE__*/TippyGenerator(tippy));
|
|
|
14701
14682
|
|
|
14702
14683
|
var Tippy = index;
|
|
14703
14684
|
|
|
14704
|
-
var _path$
|
|
14705
|
-
function _extends$
|
|
14685
|
+
var _path$a;
|
|
14686
|
+
function _extends$g() { _extends$g = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$g.apply(this, arguments); }
|
|
14706
14687
|
var SvgIcHelp = function SvgIcHelp(props) {
|
|
14707
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
14688
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
|
|
14708
14689
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14709
14690
|
width: "1em",
|
|
14710
14691
|
height: "1em",
|
|
14711
14692
|
viewBox: "0 0 24 24"
|
|
14712
|
-
}, props), _path$
|
|
14693
|
+
}, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
|
|
14713
14694
|
fill: "#767D84",
|
|
14714
14695
|
fillRule: "evenodd",
|
|
14715
14696
|
d: "M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm-.205 12.868c-.615 0-1.12.505-1.12 1.12 0 .617.505 1.121 1.12 1.121.615 0 1.12-.504 1.12-1.12 0-.616-.506-1.12-1.12-1.12zM11.863 7c-1.667 0-3.197 1.187-3.196 2.527 0 .546.41.833.888.833 1.325 0 .642-1.803 2.39-1.803.82 0 1.311.438 1.311 1.175 0 1.34-2.39 1.708-2.39 3.334 0 .438.287.915.874.915.902 0 .792-.67 1.12-1.148.438-.642 2.473-1.325 2.473-3.101 0-1.927-1.721-2.732-3.47-2.732z"
|
|
14716
14697
|
})));
|
|
14717
14698
|
};
|
|
14718
14699
|
|
|
14719
|
-
var _path$
|
|
14720
|
-
function _extends$
|
|
14700
|
+
var _path$9;
|
|
14701
|
+
function _extends$f() { _extends$f = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$f.apply(this, arguments); }
|
|
14721
14702
|
var SvgIcHelpOutline = function SvgIcHelpOutline(props) {
|
|
14722
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
14703
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
|
|
14723
14704
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14724
14705
|
viewBox: "0 0 17 16",
|
|
14725
14706
|
width: "1em",
|
|
14726
14707
|
height: "1em"
|
|
14727
|
-
}, props), _path$
|
|
14708
|
+
}, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
14728
14709
|
fill: "#767D84",
|
|
14729
14710
|
fillRule: "evenodd",
|
|
14730
14711
|
d: "M9 1.333a6.667 6.667 0 1 1 0 13.334A6.667 6.667 0 0 1 9 1.333zm0 1.334C6.054 2.667 3.667 5.054 3.667 8S6.054 13.333 9 13.333 14.333 10.946 14.333 8 11.946 2.667 9 2.667zm-.137 7.245c.41 0 .747.337.747.747s-.337.747-.747.747-.747-.336-.747-.747a.75.75 0 0 1 .747-.747zm.046-5.245c1.166 0 2.313.537 2.313 1.82 0 1.185-1.357 1.64-1.648 2.068-.22.319-.146.766-.747.766-.392 0-.583-.319-.583-.61 0-1.085 1.593-1.33 1.593-2.223 0-.492-.327-.783-.873-.783-1.166 0-.711 1.202-1.594 1.202-.319 0-.592-.191-.592-.556 0-.893 1.02-1.684 2.13-1.684z"
|
|
14731
14712
|
})));
|
|
14732
14713
|
};
|
|
14733
14714
|
|
|
14734
|
-
var css_248z$
|
|
14735
|
-
styleInject(css_248z$
|
|
14715
|
+
var css_248z$4 = ".tippy-box[data-animation=shift-toward-subtle][data-state=hidden]{opacity:0}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden][data-placement^=top][data-state=hidden]{transform:translateY(-5px)}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden][data-placement^=bottom][data-state=hidden]{transform:translateY(5px)}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden][data-placement^=left][data-state=hidden]{transform:translateX(-5px)}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden][data-placement^=right][data-state=hidden]{transform:translateX(5px)}";
|
|
14716
|
+
styleInject(css_248z$4);
|
|
14736
14717
|
|
|
14737
14718
|
// This component will handle some of the new tippy designs and interactions
|
|
14738
14719
|
// So this can be updated to support further for new features or interactions
|
|
@@ -14776,16 +14757,16 @@ function TippyCustomized(props) {
|
|
|
14776
14757
|
return (jsxRuntime.jsx(Tippy, __assign({ className: "".concat(isWhiteTheme ? 'tippy-white-container default-white' : 'tippy-black-container default-black', " no-content-padding tippy-shadow ").concat(className), arrow: arrow || false, interactive: interactive || false, placement: placement || 'top', content: getTippyContent(), trigger: trigger || 'mouseenter', onMount: onTippyMount, onClickOutside: closeTippy, showOnCreate: showOnCreate || false, animation: animation || 'fade', duration: duration || 300, visible: props.visible }, { children: children })));
|
|
14777
14758
|
}
|
|
14778
14759
|
|
|
14779
|
-
var _path$
|
|
14780
|
-
function _extends$
|
|
14760
|
+
var _path$8, _circle, _path2$1;
|
|
14761
|
+
function _extends$e() { _extends$e = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$e.apply(this, arguments); }
|
|
14781
14762
|
var SvgInjectTag = function SvgInjectTag(props) {
|
|
14782
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
14763
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
|
|
14783
14764
|
width: "1em",
|
|
14784
14765
|
height: "1em",
|
|
14785
14766
|
viewBox: "0 0 20 20",
|
|
14786
14767
|
fill: "none",
|
|
14787
14768
|
xmlns: "http://www.w3.org/2000/svg"
|
|
14788
|
-
}, props), _path$
|
|
14769
|
+
}, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
14789
14770
|
d: "M10 10H3.333",
|
|
14790
14771
|
stroke: "#596168",
|
|
14791
14772
|
strokeWidth: 1.5,
|
|
@@ -14813,15 +14794,15 @@ function PropagateTagInfo(_a) {
|
|
|
14813
14794
|
return (jsxRuntime.jsx(TippyCustomized, __assign({ theme: exports.TippyTheme.white, className: "w-300", placement: "top", Icon: SvgInjectTag, heading: 'Propagate tags to K8s resources', infoText: "", additionalContent: additionalInfo(), showCloseButton: true, trigger: "click", interactive: true, documentationLink: isCreateApp ? DOCUMENTATION.APP_TAGS : DOCUMENTATION.APP_OVERVIEW_TAGS, documentationLinkText: "View Documentation" }, { children: jsxRuntime.jsxs("div", __assign({ className: "flexbox cursor" }, { children: [jsxRuntime.jsx(SvgInjectTag, { className: "icon-dim-16 mt-2 mr-4" }), jsxRuntime.jsx("span", { children: "Propagate tags" }), jsxRuntime.jsx(SvgIcHelpOutline, { className: "icon-dim-16 mt-2 ml-4" })] })) })));
|
|
14814
14795
|
}
|
|
14815
14796
|
|
|
14816
|
-
var _path$
|
|
14817
|
-
function _extends$
|
|
14797
|
+
var _path$7;
|
|
14798
|
+
function _extends$d() { _extends$d = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$d.apply(this, arguments); }
|
|
14818
14799
|
var SvgIcInfoOutlined = function SvgIcInfoOutlined(props) {
|
|
14819
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
14800
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
|
|
14820
14801
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14821
14802
|
width: "1em",
|
|
14822
14803
|
height: "1em",
|
|
14823
14804
|
viewBox: "0 0 20 20"
|
|
14824
|
-
}, props), _path$
|
|
14805
|
+
}, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
14825
14806
|
d: "M10 1.667c4.6 0 8.333 3.733 8.333 8.333S14.6 18.333 10 18.333 1.667 14.6 1.667 10 5.4 1.667 10 1.667zm0 1.666A6.67 6.67 0 0 0 3.333 10 6.67 6.67 0 0 0 10 16.667 6.67 6.67 0 0 0 16.667 10 6.67 6.67 0 0 0 10 3.333zm0 5.834c.46 0 .833.373.833.833v3.333a.834.834 0 1 1-1.666 0V10c0-.46.373-.833.833-.833zm0-3.334A.833.833 0 1 1 10 7.5a.833.833 0 0 1 0-1.667z",
|
|
14826
14807
|
fill: "#06C",
|
|
14827
14808
|
fillRule: "evenodd"
|
|
@@ -15055,15 +15036,15 @@ var TagDetails = function (_a) {
|
|
|
15055
15036
|
return (jsxRuntime.jsxs("div", __assign({ className: "flexbox mb-8" }, { children: [jsxRuntime.jsx("div", __assign({ className: "dc__border h-30 pl-4 pr-4 br-4 mr-8 pointer ".concat(tagData.propagate ? 'bcn-7' : '', " ").concat(tagData.key.startsWith("devtron.ai/") ? 'cursor-not-allowed bcn-1' : ''), onClick: propagateTagToResource, "data-testid": "propagate-tag-".concat(index) }, { children: jsxRuntime.jsx(SvgInjectTag, { className: "icon-dim-20 mt-4 ".concat(tagData.propagate ? 'scn-0' : '') }) })), jsxRuntime.jsx(TagLabelValueSelector, { selectedTagIndex: index, tagData: tagData, setTagData: setTagData, tagInputType: exports.KEY_VALUE.KEY, placeholder: "Enter key", tabIndex: tabIndex - 1, refVar: keyRef, dependentRef: valueRef, tagOptions: suggestedTagsOptions }), jsxRuntime.jsx(TagLabelValueSelector, { selectedTagIndex: index, tagData: tagData, setTagData: setTagData, tagInputType: exports.KEY_VALUE.VALUE, placeholder: "Enter value", tabIndex: tabIndex, refVar: valueRef, dependentRef: keyRef }), jsxRuntime.jsx("div", __assign({ className: "dc__border pl-4 pr-4 dc__right-radius-4 pointer flex top", onClick: deleteTag, "data-testid": "delete-tag-".concat(index) }, { children: jsxRuntime.jsx(SvgIcCross, { className: "icon-dim-20 mt-4" }) }))] })));
|
|
15056
15037
|
};
|
|
15057
15038
|
|
|
15058
|
-
var _path$
|
|
15059
|
-
function _extends$
|
|
15039
|
+
var _path$6;
|
|
15040
|
+
function _extends$c() { _extends$c = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$c.apply(this, arguments); }
|
|
15060
15041
|
var SvgIcAdd = function SvgIcAdd(props) {
|
|
15061
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
15042
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
|
|
15062
15043
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15063
15044
|
width: "1em",
|
|
15064
15045
|
height: "1em",
|
|
15065
15046
|
viewBox: "0 0 24 24"
|
|
15066
|
-
}, props), _path$
|
|
15047
|
+
}, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
15067
15048
|
className: "ic-add_svg__fill-color",
|
|
15068
15049
|
fill: "#999",
|
|
15069
15050
|
d: "M18 13h-5v5a1 1 0 0 1-2 0v-5H6a1 1 0 0 1 0-2h5V6a1 1 0 0 1 2 0v5h5a1 1 0 0 1 0 2z"
|
|
@@ -15181,8 +15162,8 @@ function ForceDeleteDialog(_a) {
|
|
|
15181
15162
|
return (jsxRuntime.jsx("div", { children: jsxRuntime.jsx(DeleteDialog, __assign({ title: forceDeleteDialogTitle, delete: onClickDelete, closeDelete: closeDeleteModal, deletePrefix: "Force " }, { children: jsxRuntime.jsxs(DeleteDialog.Description, { children: [jsxRuntime.jsxs("p", __assign({ className: "mt-12 mb-12 p-8 dc__break-word dc__window-bg" }, { children: ["Error: ", forceDeleteDialogMessage] })), jsxRuntime.jsx("p", { children: "Do you want to force delete?" })] }) })) }));
|
|
15182
15163
|
}
|
|
15183
15164
|
|
|
15184
|
-
function _extends$
|
|
15185
|
-
_extends$
|
|
15165
|
+
function _extends$b() {
|
|
15166
|
+
_extends$b = Object.assign ? Object.assign.bind() : function (target) {
|
|
15186
15167
|
for (var i = 1; i < arguments.length; i++) {
|
|
15187
15168
|
var source = arguments[i];
|
|
15188
15169
|
for (var key in source) {
|
|
@@ -15193,7 +15174,7 @@ function _extends$c() {
|
|
|
15193
15174
|
}
|
|
15194
15175
|
return target;
|
|
15195
15176
|
};
|
|
15196
|
-
return _extends$
|
|
15177
|
+
return _extends$b.apply(this, arguments);
|
|
15197
15178
|
}
|
|
15198
15179
|
|
|
15199
15180
|
/*
|
|
@@ -17336,7 +17317,7 @@ var useInsertionEffectAlwaysWithSyncFallback = !isBrowser$2 ? syncFallback : use
|
|
|
17336
17317
|
var useInsertionEffectWithLayoutFallback = useInsertionEffect || React.useLayoutEffect;
|
|
17337
17318
|
|
|
17338
17319
|
var isBrowser$1 = typeof document !== 'undefined';
|
|
17339
|
-
var hasOwnProperty
|
|
17320
|
+
var hasOwnProperty = {}.hasOwnProperty;
|
|
17340
17321
|
|
|
17341
17322
|
var EmotionCacheContext = /* #__PURE__ */React.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
17342
17323
|
// because this module is primarily intended for the browser and node
|
|
@@ -17447,7 +17428,7 @@ var createEmotionProps = function createEmotionProps(type, props) {
|
|
|
17447
17428
|
var newProps = {};
|
|
17448
17429
|
|
|
17449
17430
|
for (var key in props) {
|
|
17450
|
-
if (hasOwnProperty
|
|
17431
|
+
if (hasOwnProperty.call(props, key)) {
|
|
17451
17432
|
newProps[key] = props[key];
|
|
17452
17433
|
}
|
|
17453
17434
|
}
|
|
@@ -17524,7 +17505,7 @@ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
|
|
|
17524
17505
|
var newProps = {};
|
|
17525
17506
|
|
|
17526
17507
|
for (var key in props) {
|
|
17527
|
-
if (hasOwnProperty
|
|
17508
|
+
if (hasOwnProperty.call(props, key) && key !== 'css' && key !== typePropName && (process.env.NODE_ENV === 'production' || key !== labelPropName)) {
|
|
17528
17509
|
newProps[key] = props[key];
|
|
17529
17510
|
}
|
|
17530
17511
|
}
|
|
@@ -17668,7 +17649,7 @@ var pkg = {
|
|
|
17668
17649
|
var jsx = function jsx(type, props) {
|
|
17669
17650
|
var args = arguments;
|
|
17670
17651
|
|
|
17671
|
-
if (props == null || !hasOwnProperty
|
|
17652
|
+
if (props == null || !hasOwnProperty.call(props, 'css')) {
|
|
17672
17653
|
// $FlowFixMe
|
|
17673
17654
|
return React.createElement.apply(undefined, args);
|
|
17674
17655
|
}
|
|
@@ -18266,7 +18247,7 @@ function classNames(prefix, state, className) {
|
|
|
18266
18247
|
// ==============================
|
|
18267
18248
|
|
|
18268
18249
|
var cleanValue = function cleanValue(value) {
|
|
18269
|
-
if (isArray
|
|
18250
|
+
if (isArray(value)) return value.filter(Boolean);
|
|
18270
18251
|
if (_typeof(value) === 'object' && value !== null) return [value];
|
|
18271
18252
|
return [];
|
|
18272
18253
|
}; // ==============================
|
|
@@ -18445,7 +18426,7 @@ var supportsPassiveEvents = passiveOptionAccessed;
|
|
|
18445
18426
|
function notNullish(item) {
|
|
18446
18427
|
return item != null;
|
|
18447
18428
|
}
|
|
18448
|
-
function isArray
|
|
18429
|
+
function isArray(arg) {
|
|
18449
18430
|
return Array.isArray(arg);
|
|
18450
18431
|
}
|
|
18451
18432
|
function valueTernary(isMulti, multiValue, singleValue) {
|
|
@@ -18734,7 +18715,7 @@ var Menu = function Menu(props) {
|
|
|
18734
18715
|
getStyles = props.getStyles,
|
|
18735
18716
|
innerRef = props.innerRef,
|
|
18736
18717
|
innerProps = props.innerProps;
|
|
18737
|
-
return jsx("div", _extends$
|
|
18718
|
+
return jsx("div", _extends$b({
|
|
18738
18719
|
css: getStyles('menu', props),
|
|
18739
18720
|
className: cx({
|
|
18740
18721
|
menu: true
|
|
@@ -18758,7 +18739,7 @@ var menuListCSS = function menuListCSS(_ref4) {
|
|
|
18758
18739
|
WebkitOverflowScrolling: 'touch'
|
|
18759
18740
|
};
|
|
18760
18741
|
};
|
|
18761
|
-
var MenuList
|
|
18742
|
+
var MenuList = function MenuList(props) {
|
|
18762
18743
|
var children = props.children,
|
|
18763
18744
|
className = props.className,
|
|
18764
18745
|
cx = props.cx,
|
|
@@ -18766,7 +18747,7 @@ var MenuList$1 = function MenuList(props) {
|
|
|
18766
18747
|
innerProps = props.innerProps,
|
|
18767
18748
|
innerRef = props.innerRef,
|
|
18768
18749
|
isMulti = props.isMulti;
|
|
18769
|
-
return jsx("div", _extends$
|
|
18750
|
+
return jsx("div", _extends$b({
|
|
18770
18751
|
css: getStyles('menuList', props),
|
|
18771
18752
|
className: cx({
|
|
18772
18753
|
'menu-list': true,
|
|
@@ -18797,7 +18778,7 @@ var NoOptionsMessage = function NoOptionsMessage(props) {
|
|
|
18797
18778
|
cx = props.cx,
|
|
18798
18779
|
getStyles = props.getStyles,
|
|
18799
18780
|
innerProps = props.innerProps;
|
|
18800
|
-
return jsx("div", _extends$
|
|
18781
|
+
return jsx("div", _extends$b({
|
|
18801
18782
|
css: getStyles('noOptionsMessage', props),
|
|
18802
18783
|
className: cx({
|
|
18803
18784
|
'menu-notice': true,
|
|
@@ -18814,7 +18795,7 @@ var LoadingMessage = function LoadingMessage(props) {
|
|
|
18814
18795
|
cx = props.cx,
|
|
18815
18796
|
getStyles = props.getStyles,
|
|
18816
18797
|
innerProps = props.innerProps;
|
|
18817
|
-
return jsx("div", _extends$
|
|
18798
|
+
return jsx("div", _extends$b({
|
|
18818
18799
|
css: getStyles('loadingMessage', props),
|
|
18819
18800
|
className: cx({
|
|
18820
18801
|
'menu-notice': true,
|
|
@@ -18902,7 +18883,7 @@ var MenuPortal = /*#__PURE__*/function (_Component2) {
|
|
|
18902
18883
|
rect: rect
|
|
18903
18884
|
}; // same wrapper element whether fixed or portalled
|
|
18904
18885
|
|
|
18905
|
-
var menuWrapper = jsx("div", _extends$
|
|
18886
|
+
var menuWrapper = jsx("div", _extends$b({
|
|
18906
18887
|
css: getStyles('menuPortal', state),
|
|
18907
18888
|
className: cx({
|
|
18908
18889
|
'menu-portal': true
|
|
@@ -18938,7 +18919,7 @@ var SelectContainer = function SelectContainer(props) {
|
|
|
18938
18919
|
innerProps = props.innerProps,
|
|
18939
18920
|
isDisabled = props.isDisabled,
|
|
18940
18921
|
isRtl = props.isRtl;
|
|
18941
|
-
return jsx("div", _extends$
|
|
18922
|
+
return jsx("div", _extends$b({
|
|
18942
18923
|
css: getStyles('container', props),
|
|
18943
18924
|
className: cx({
|
|
18944
18925
|
'--is-disabled': isDisabled,
|
|
@@ -18973,7 +18954,7 @@ var ValueContainer = function ValueContainer(props) {
|
|
|
18973
18954
|
isMulti = props.isMulti,
|
|
18974
18955
|
getStyles = props.getStyles,
|
|
18975
18956
|
hasValue = props.hasValue;
|
|
18976
|
-
return jsx("div", _extends$
|
|
18957
|
+
return jsx("div", _extends$b({
|
|
18977
18958
|
css: getStyles('valueContainer', props),
|
|
18978
18959
|
className: cx({
|
|
18979
18960
|
'value-container': true,
|
|
@@ -18999,7 +18980,7 @@ var IndicatorsContainer = function IndicatorsContainer(props) {
|
|
|
18999
18980
|
cx = props.cx,
|
|
19000
18981
|
innerProps = props.innerProps,
|
|
19001
18982
|
getStyles = props.getStyles;
|
|
19002
|
-
return jsx("div", _extends$
|
|
18983
|
+
return jsx("div", _extends$b({
|
|
19003
18984
|
css: getStyles('indicatorsContainer', props),
|
|
19004
18985
|
className: cx({
|
|
19005
18986
|
indicators: true
|
|
@@ -19030,7 +19011,7 @@ var Svg = function Svg(_ref) {
|
|
|
19030
19011
|
var size = _ref.size,
|
|
19031
19012
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
19032
19013
|
|
|
19033
|
-
return jsx("svg", _extends$
|
|
19014
|
+
return jsx("svg", _extends$b({
|
|
19034
19015
|
height: size,
|
|
19035
19016
|
width: size,
|
|
19036
19017
|
viewBox: "0 0 20 20",
|
|
@@ -19041,14 +19022,14 @@ var Svg = function Svg(_ref) {
|
|
|
19041
19022
|
};
|
|
19042
19023
|
|
|
19043
19024
|
var CrossIcon = function CrossIcon(props) {
|
|
19044
|
-
return jsx(Svg, _extends$
|
|
19025
|
+
return jsx(Svg, _extends$b({
|
|
19045
19026
|
size: 20
|
|
19046
19027
|
}, props), jsx("path", {
|
|
19047
19028
|
d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
|
|
19048
19029
|
}));
|
|
19049
19030
|
};
|
|
19050
19031
|
var DownChevron = function DownChevron(props) {
|
|
19051
|
-
return jsx(Svg, _extends$
|
|
19032
|
+
return jsx(Svg, _extends$b({
|
|
19052
19033
|
size: 20
|
|
19053
19034
|
}, props), jsx("path", {
|
|
19054
19035
|
d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
|
|
@@ -19075,13 +19056,13 @@ var baseCSS = function baseCSS(_ref3) {
|
|
|
19075
19056
|
};
|
|
19076
19057
|
|
|
19077
19058
|
var dropdownIndicatorCSS = baseCSS;
|
|
19078
|
-
var DropdownIndicator
|
|
19059
|
+
var DropdownIndicator = function DropdownIndicator(props) {
|
|
19079
19060
|
var children = props.children,
|
|
19080
19061
|
className = props.className,
|
|
19081
19062
|
cx = props.cx,
|
|
19082
19063
|
getStyles = props.getStyles,
|
|
19083
19064
|
innerProps = props.innerProps;
|
|
19084
|
-
return jsx("div", _extends$
|
|
19065
|
+
return jsx("div", _extends$b({
|
|
19085
19066
|
css: getStyles('dropdownIndicator', props),
|
|
19086
19067
|
className: cx({
|
|
19087
19068
|
indicator: true,
|
|
@@ -19096,7 +19077,7 @@ var ClearIndicator$1 = function ClearIndicator(props) {
|
|
|
19096
19077
|
cx = props.cx,
|
|
19097
19078
|
getStyles = props.getStyles,
|
|
19098
19079
|
innerProps = props.innerProps;
|
|
19099
|
-
return jsx("div", _extends$
|
|
19080
|
+
return jsx("div", _extends$b({
|
|
19100
19081
|
css: getStyles('clearIndicator', props),
|
|
19101
19082
|
className: cx({
|
|
19102
19083
|
indicator: true,
|
|
@@ -19126,7 +19107,7 @@ var IndicatorSeparator = function IndicatorSeparator(props) {
|
|
|
19126
19107
|
cx = props.cx,
|
|
19127
19108
|
getStyles = props.getStyles,
|
|
19128
19109
|
innerProps = props.innerProps;
|
|
19129
|
-
return jsx("span", _extends$
|
|
19110
|
+
return jsx("span", _extends$b({}, innerProps, {
|
|
19130
19111
|
css: getStyles('indicatorSeparator', props),
|
|
19131
19112
|
className: cx({
|
|
19132
19113
|
'indicator-separator': true
|
|
@@ -19181,7 +19162,7 @@ var LoadingIndicator = function LoadingIndicator(props) {
|
|
|
19181
19162
|
getStyles = props.getStyles,
|
|
19182
19163
|
innerProps = props.innerProps,
|
|
19183
19164
|
isRtl = props.isRtl;
|
|
19184
|
-
return jsx("div", _extends$
|
|
19165
|
+
return jsx("div", _extends$b({
|
|
19185
19166
|
css: getStyles('loadingIndicator', props),
|
|
19186
19167
|
className: cx({
|
|
19187
19168
|
indicator: true,
|
|
@@ -19242,7 +19223,7 @@ var Control = function Control(props) {
|
|
|
19242
19223
|
innerRef = props.innerRef,
|
|
19243
19224
|
innerProps = props.innerProps,
|
|
19244
19225
|
menuIsOpen = props.menuIsOpen;
|
|
19245
|
-
return jsx("div", _extends$
|
|
19226
|
+
return jsx("div", _extends$b({
|
|
19246
19227
|
ref: innerRef,
|
|
19247
19228
|
css: getStyles('control', props),
|
|
19248
19229
|
className: cx({
|
|
@@ -19274,12 +19255,12 @@ var Group = function Group(props) {
|
|
|
19274
19255
|
label = props.label,
|
|
19275
19256
|
theme = props.theme,
|
|
19276
19257
|
selectProps = props.selectProps;
|
|
19277
|
-
return jsx("div", _extends$
|
|
19258
|
+
return jsx("div", _extends$b({
|
|
19278
19259
|
css: getStyles('group', props),
|
|
19279
19260
|
className: cx({
|
|
19280
19261
|
group: true
|
|
19281
19262
|
}, className)
|
|
19282
|
-
}, innerProps), jsx(Heading, _extends$
|
|
19263
|
+
}, innerProps), jsx(Heading, _extends$b({}, headingProps, {
|
|
19283
19264
|
selectProps: selectProps,
|
|
19284
19265
|
theme: theme,
|
|
19285
19266
|
getStyles: getStyles,
|
|
@@ -19311,7 +19292,7 @@ var GroupHeading = function GroupHeading(props) {
|
|
|
19311
19292
|
_cleanCommonProps.data;
|
|
19312
19293
|
var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1$1);
|
|
19313
19294
|
|
|
19314
|
-
return jsx("div", _extends$
|
|
19295
|
+
return jsx("div", _extends$b({
|
|
19315
19296
|
css: getStyles('groupHeading', props),
|
|
19316
19297
|
className: cx({
|
|
19317
19298
|
'group-heading': true
|
|
@@ -19387,7 +19368,7 @@ var Input = function Input(props) {
|
|
|
19387
19368
|
}, className),
|
|
19388
19369
|
css: getStyles('input', props),
|
|
19389
19370
|
"data-value": value || ''
|
|
19390
|
-
}, jsx("input", _extends$
|
|
19371
|
+
}, jsx("input", _extends$b({
|
|
19391
19372
|
className: cx({
|
|
19392
19373
|
input: true
|
|
19393
19374
|
}, inputClassName),
|
|
@@ -19457,7 +19438,7 @@ var MultiValueLabel = MultiValueGeneric;
|
|
|
19457
19438
|
function MultiValueRemove$1(_ref5) {
|
|
19458
19439
|
var children = _ref5.children,
|
|
19459
19440
|
innerProps = _ref5.innerProps;
|
|
19460
|
-
return jsx("div", _extends$
|
|
19441
|
+
return jsx("div", _extends$b({
|
|
19461
19442
|
role: "button"
|
|
19462
19443
|
}, innerProps), children || jsx(CrossIcon, {
|
|
19463
19444
|
size: 14
|
|
@@ -19546,7 +19527,7 @@ var Option$1 = function Option(props) {
|
|
|
19546
19527
|
isSelected = props.isSelected,
|
|
19547
19528
|
innerRef = props.innerRef,
|
|
19548
19529
|
innerProps = props.innerProps;
|
|
19549
|
-
return jsx("div", _extends$
|
|
19530
|
+
return jsx("div", _extends$b({
|
|
19550
19531
|
css: getStyles('option', props),
|
|
19551
19532
|
className: cx({
|
|
19552
19533
|
option: true,
|
|
@@ -19578,7 +19559,7 @@ var Placeholder = function Placeholder(props) {
|
|
|
19578
19559
|
cx = props.cx,
|
|
19579
19560
|
getStyles = props.getStyles,
|
|
19580
19561
|
innerProps = props.innerProps;
|
|
19581
|
-
return jsx("div", _extends$
|
|
19562
|
+
return jsx("div", _extends$b({
|
|
19582
19563
|
css: getStyles('placeholder', props),
|
|
19583
19564
|
className: cx({
|
|
19584
19565
|
placeholder: true
|
|
@@ -19611,7 +19592,7 @@ var SingleValue = function SingleValue(props) {
|
|
|
19611
19592
|
getStyles = props.getStyles,
|
|
19612
19593
|
isDisabled = props.isDisabled,
|
|
19613
19594
|
innerProps = props.innerProps;
|
|
19614
|
-
return jsx("div", _extends$
|
|
19595
|
+
return jsx("div", _extends$b({
|
|
19615
19596
|
css: getStyles('singleValue', props),
|
|
19616
19597
|
className: cx({
|
|
19617
19598
|
'single-value': true,
|
|
@@ -19623,7 +19604,7 @@ var SingleValue = function SingleValue(props) {
|
|
|
19623
19604
|
var components = {
|
|
19624
19605
|
ClearIndicator: ClearIndicator$1,
|
|
19625
19606
|
Control: Control,
|
|
19626
|
-
DropdownIndicator: DropdownIndicator
|
|
19607
|
+
DropdownIndicator: DropdownIndicator,
|
|
19627
19608
|
DownChevron: DownChevron,
|
|
19628
19609
|
CrossIcon: CrossIcon,
|
|
19629
19610
|
Group: Group,
|
|
@@ -19633,7 +19614,7 @@ var components = {
|
|
|
19633
19614
|
Input: Input,
|
|
19634
19615
|
LoadingIndicator: LoadingIndicator,
|
|
19635
19616
|
Menu: Menu,
|
|
19636
|
-
MenuList: MenuList
|
|
19617
|
+
MenuList: MenuList,
|
|
19637
19618
|
MenuPortal: MenuPortal,
|
|
19638
19619
|
LoadingMessage: LoadingMessage,
|
|
19639
19620
|
NoOptionsMessage: NoOptionsMessage,
|
|
@@ -19802,7 +19783,7 @@ var safeIsNaN = Number.isNaN ||
|
|
|
19802
19783
|
function ponyfill(value) {
|
|
19803
19784
|
return typeof value === 'number' && value !== value;
|
|
19804
19785
|
};
|
|
19805
|
-
function isEqual
|
|
19786
|
+
function isEqual(first, second) {
|
|
19806
19787
|
if (first === second) {
|
|
19807
19788
|
return true;
|
|
19808
19789
|
}
|
|
@@ -19816,7 +19797,7 @@ function areInputsEqual(newInputs, lastInputs) {
|
|
|
19816
19797
|
return false;
|
|
19817
19798
|
}
|
|
19818
19799
|
for (var i = 0; i < newInputs.length; i++) {
|
|
19819
|
-
if (!isEqual
|
|
19800
|
+
if (!isEqual(newInputs[i], lastInputs[i])) {
|
|
19820
19801
|
return false;
|
|
19821
19802
|
}
|
|
19822
19803
|
}
|
|
@@ -19859,7 +19840,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
19859
19840
|
};
|
|
19860
19841
|
|
|
19861
19842
|
var A11yText = function A11yText(props) {
|
|
19862
|
-
return jsx("span", _extends$
|
|
19843
|
+
return jsx("span", _extends$b({
|
|
19863
19844
|
css: _ref
|
|
19864
19845
|
}, props));
|
|
19865
19846
|
};
|
|
@@ -20395,7 +20376,7 @@ function DummyInput(_ref) {
|
|
|
20395
20376
|
var innerRef = _ref.innerRef,
|
|
20396
20377
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
20397
20378
|
|
|
20398
|
-
return jsx("input", _extends$
|
|
20379
|
+
return jsx("input", _extends$b({
|
|
20399
20380
|
ref: innerRef
|
|
20400
20381
|
}, props, {
|
|
20401
20382
|
css: /*#__PURE__*/css$2({
|
|
@@ -22030,7 +22011,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22030
22011
|
|
|
22031
22012
|
if (!isSearchable) {
|
|
22032
22013
|
// use a dummy input to maintain focus/blur functionality
|
|
22033
|
-
return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends$
|
|
22014
|
+
return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends$b({
|
|
22034
22015
|
id: id,
|
|
22035
22016
|
innerRef: this.getInputRef,
|
|
22036
22017
|
onBlur: this.onInputBlur,
|
|
@@ -22044,7 +22025,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22044
22025
|
}, ariaAttributes));
|
|
22045
22026
|
}
|
|
22046
22027
|
|
|
22047
|
-
return /*#__PURE__*/React__namespace.createElement(Input, _extends$
|
|
22028
|
+
return /*#__PURE__*/React__namespace.createElement(Input, _extends$b({}, commonProps, {
|
|
22048
22029
|
autoCapitalize: "none",
|
|
22049
22030
|
autoComplete: "off",
|
|
22050
22031
|
autoCorrect: "off",
|
|
@@ -22088,7 +22069,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22088
22069
|
isFocused = _this$state5.isFocused;
|
|
22089
22070
|
|
|
22090
22071
|
if (!this.hasValue() || !controlShouldRenderValue) {
|
|
22091
|
-
return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends$
|
|
22072
|
+
return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends$b({}, commonProps, {
|
|
22092
22073
|
key: "placeholder",
|
|
22093
22074
|
isDisabled: isDisabled,
|
|
22094
22075
|
isFocused: isFocused,
|
|
@@ -22102,7 +22083,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22102
22083
|
return selectValue.map(function (opt, index) {
|
|
22103
22084
|
var isOptionFocused = opt === focusedValue;
|
|
22104
22085
|
var key = "".concat(_this3.getOptionLabel(opt), "-").concat(_this3.getOptionValue(opt));
|
|
22105
|
-
return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends$
|
|
22086
|
+
return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends$b({}, commonProps, {
|
|
22106
22087
|
components: {
|
|
22107
22088
|
Container: MultiValueContainer,
|
|
22108
22089
|
Label: MultiValueLabel,
|
|
@@ -22134,7 +22115,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22134
22115
|
}
|
|
22135
22116
|
|
|
22136
22117
|
var singleValue = selectValue[0];
|
|
22137
|
-
return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends$
|
|
22118
|
+
return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends$b({}, commonProps, {
|
|
22138
22119
|
data: singleValue,
|
|
22139
22120
|
isDisabled: isDisabled
|
|
22140
22121
|
}), this.formatOptionLabel(singleValue, 'value'));
|
|
@@ -22160,7 +22141,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22160
22141
|
onTouchEnd: this.onClearIndicatorTouchEnd,
|
|
22161
22142
|
'aria-hidden': 'true'
|
|
22162
22143
|
};
|
|
22163
|
-
return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends$
|
|
22144
|
+
return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends$b({}, commonProps, {
|
|
22164
22145
|
innerProps: innerProps,
|
|
22165
22146
|
isFocused: isFocused
|
|
22166
22147
|
}));
|
|
@@ -22180,7 +22161,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22180
22161
|
var innerProps = {
|
|
22181
22162
|
'aria-hidden': 'true'
|
|
22182
22163
|
};
|
|
22183
|
-
return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends$
|
|
22164
|
+
return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends$b({}, commonProps, {
|
|
22184
22165
|
innerProps: innerProps,
|
|
22185
22166
|
isDisabled: isDisabled,
|
|
22186
22167
|
isFocused: isFocused
|
|
@@ -22198,7 +22179,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22198
22179
|
var commonProps = this.commonProps;
|
|
22199
22180
|
var isDisabled = this.props.isDisabled;
|
|
22200
22181
|
var isFocused = this.state.isFocused;
|
|
22201
|
-
return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends$
|
|
22182
|
+
return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends$b({}, commonProps, {
|
|
22202
22183
|
isDisabled: isDisabled,
|
|
22203
22184
|
isFocused: isFocused
|
|
22204
22185
|
}));
|
|
@@ -22218,7 +22199,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22218
22199
|
onTouchEnd: this.onDropdownIndicatorTouchEnd,
|
|
22219
22200
|
'aria-hidden': 'true'
|
|
22220
22201
|
};
|
|
22221
|
-
return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends$
|
|
22202
|
+
return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends$b({}, commonProps, {
|
|
22222
22203
|
innerProps: innerProps,
|
|
22223
22204
|
isDisabled: isDisabled,
|
|
22224
22205
|
isFocused: isFocused
|
|
@@ -22281,7 +22262,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22281
22262
|
onMouseOver: onHover,
|
|
22282
22263
|
tabIndex: -1
|
|
22283
22264
|
};
|
|
22284
|
-
return /*#__PURE__*/React__namespace.createElement(Option, _extends$
|
|
22265
|
+
return /*#__PURE__*/React__namespace.createElement(Option, _extends$b({}, commonProps, {
|
|
22285
22266
|
innerProps: innerProps,
|
|
22286
22267
|
data: data,
|
|
22287
22268
|
isDisabled: isDisabled,
|
|
@@ -22305,7 +22286,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22305
22286
|
groupIndex = item.index;
|
|
22306
22287
|
var groupId = "".concat(_this4.getElementId('group'), "-").concat(groupIndex);
|
|
22307
22288
|
var headingId = "".concat(groupId, "-heading");
|
|
22308
|
-
return /*#__PURE__*/React__namespace.createElement(Group, _extends$
|
|
22289
|
+
return /*#__PURE__*/React__namespace.createElement(Group, _extends$b({}, commonProps, {
|
|
22309
22290
|
key: groupId,
|
|
22310
22291
|
data: _data,
|
|
22311
22292
|
options: options,
|
|
@@ -22344,12 +22325,12 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22344
22325
|
menuPosition: menuPosition,
|
|
22345
22326
|
menuShouldScrollIntoView: menuShouldScrollIntoView
|
|
22346
22327
|
};
|
|
22347
|
-
var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends$
|
|
22328
|
+
var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends$b({}, commonProps, menuPlacementProps), function (_ref4) {
|
|
22348
22329
|
var ref = _ref4.ref,
|
|
22349
22330
|
_ref4$placerProps = _ref4.placerProps,
|
|
22350
22331
|
placement = _ref4$placerProps.placement,
|
|
22351
22332
|
maxHeight = _ref4$placerProps.maxHeight;
|
|
22352
|
-
return /*#__PURE__*/React__namespace.createElement(Menu, _extends$
|
|
22333
|
+
return /*#__PURE__*/React__namespace.createElement(Menu, _extends$b({}, commonProps, menuPlacementProps, {
|
|
22353
22334
|
innerRef: ref,
|
|
22354
22335
|
innerProps: {
|
|
22355
22336
|
onMouseDown: _this4.onMenuMouseDown,
|
|
@@ -22364,7 +22345,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22364
22345
|
onBottomArrive: onMenuScrollToBottom,
|
|
22365
22346
|
lockEnabled: menuShouldBlockScroll
|
|
22366
22347
|
}, function (scrollTargetRef) {
|
|
22367
|
-
return /*#__PURE__*/React__namespace.createElement(MenuList, _extends$
|
|
22348
|
+
return /*#__PURE__*/React__namespace.createElement(MenuList, _extends$b({}, commonProps, {
|
|
22368
22349
|
innerRef: function innerRef(instance) {
|
|
22369
22350
|
_this4.getMenuListRef(instance);
|
|
22370
22351
|
|
|
@@ -22379,7 +22360,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22379
22360
|
// so we use the same component. the actual portalling logic is forked
|
|
22380
22361
|
// within the component based on `menuPosition`
|
|
22381
22362
|
|
|
22382
|
-
return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends$
|
|
22363
|
+
return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends$b({}, commonProps, {
|
|
22383
22364
|
appendTo: menuPortalTarget,
|
|
22384
22365
|
controlElement: this.controlRef,
|
|
22385
22366
|
menuPlacement: menuPlacement,
|
|
@@ -22444,7 +22425,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22444
22425
|
isFocused = _this$state6.isFocused,
|
|
22445
22426
|
selectValue = _this$state6.selectValue;
|
|
22446
22427
|
var focusableOptions = this.getFocusableOptions();
|
|
22447
|
-
return /*#__PURE__*/React__namespace.createElement(LiveRegion, _extends$
|
|
22428
|
+
return /*#__PURE__*/React__namespace.createElement(LiveRegion, _extends$b({}, commonProps, {
|
|
22448
22429
|
id: this.getElementId('live-region'),
|
|
22449
22430
|
ariaSelection: ariaSelection,
|
|
22450
22431
|
focusedOption: focusedOption,
|
|
@@ -22470,7 +22451,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22470
22451
|
menuIsOpen = _this$props14.menuIsOpen;
|
|
22471
22452
|
var isFocused = this.state.isFocused;
|
|
22472
22453
|
var commonProps = this.commonProps = this.getCommonProps();
|
|
22473
|
-
return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends$
|
|
22454
|
+
return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends$b({}, commonProps, {
|
|
22474
22455
|
className: className,
|
|
22475
22456
|
innerProps: {
|
|
22476
22457
|
id: id,
|
|
@@ -22478,7 +22459,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22478
22459
|
},
|
|
22479
22460
|
isDisabled: isDisabled,
|
|
22480
22461
|
isFocused: isFocused
|
|
22481
|
-
}), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends$
|
|
22462
|
+
}), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends$b({}, commonProps, {
|
|
22482
22463
|
innerRef: this.getControlRef,
|
|
22483
22464
|
innerProps: {
|
|
22484
22465
|
onMouseDown: this.onControlMouseDown,
|
|
@@ -22487,9 +22468,9 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
22487
22468
|
isDisabled: isDisabled,
|
|
22488
22469
|
isFocused: isFocused,
|
|
22489
22470
|
menuIsOpen: menuIsOpen
|
|
22490
|
-
}), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends$
|
|
22471
|
+
}), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends$b({}, commonProps, {
|
|
22491
22472
|
isDisabled: isDisabled
|
|
22492
|
-
}), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends$
|
|
22473
|
+
}), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends$b({}, commonProps, {
|
|
22493
22474
|
isDisabled: isDisabled
|
|
22494
22475
|
}), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
|
22495
22476
|
}
|
|
@@ -22562,17 +22543,17 @@ Select$1.defaultProps = defaultProps;
|
|
|
22562
22543
|
|
|
22563
22544
|
var StateManagedSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
22564
22545
|
var baseSelectProps = useStateManager(props);
|
|
22565
|
-
return /*#__PURE__*/React__namespace.createElement(Select$1, _extends$
|
|
22546
|
+
return /*#__PURE__*/React__namespace.createElement(Select$1, _extends$b({
|
|
22566
22547
|
ref: ref
|
|
22567
22548
|
}, baseSelectProps));
|
|
22568
22549
|
});
|
|
22569
22550
|
|
|
22570
|
-
var
|
|
22551
|
+
var Select = StateManagedSelect;
|
|
22571
22552
|
|
|
22572
22553
|
var _g$4;
|
|
22573
|
-
function _extends$
|
|
22554
|
+
function _extends$a() { _extends$a = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$a.apply(this, arguments); }
|
|
22574
22555
|
var SvgIcAppstatusCancelled = function SvgIcAppstatusCancelled(props) {
|
|
22575
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
22556
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
|
|
22576
22557
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22577
22558
|
viewBox: "0 0 28 28",
|
|
22578
22559
|
width: "1em",
|
|
@@ -22593,15 +22574,15 @@ var SvgIcAppstatusCancelled = function SvgIcAppstatusCancelled(props) {
|
|
|
22593
22574
|
}))));
|
|
22594
22575
|
};
|
|
22595
22576
|
|
|
22596
|
-
var _path$
|
|
22597
|
-
function _extends$
|
|
22577
|
+
var _path$5;
|
|
22578
|
+
function _extends$9() { _extends$9 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
|
|
22598
22579
|
var SvgIcCheck = function SvgIcCheck(props) {
|
|
22599
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
22580
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
|
|
22600
22581
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22601
22582
|
width: "1em",
|
|
22602
22583
|
height: "1em",
|
|
22603
22584
|
viewBox: "0 0 24 24"
|
|
22604
|
-
}, props), _path$
|
|
22585
|
+
}, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
22605
22586
|
stroke: "#06C",
|
|
22606
22587
|
strokeLinecap: "round",
|
|
22607
22588
|
strokeLinejoin: "round",
|
|
@@ -22613,9 +22594,9 @@ var SvgIcCheck = function SvgIcCheck(props) {
|
|
|
22613
22594
|
};
|
|
22614
22595
|
|
|
22615
22596
|
var _g$3;
|
|
22616
|
-
function _extends$
|
|
22597
|
+
function _extends$8() { _extends$8 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
|
|
22617
22598
|
var SvgIcErrorMedium = function SvgIcErrorMedium(props) {
|
|
22618
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
22599
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
|
|
22619
22600
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22620
22601
|
width: "1em",
|
|
22621
22602
|
height: "1em",
|
|
@@ -22677,11 +22658,11 @@ var multiSelectStyles = {
|
|
|
22677
22658
|
valueContainer: function (base, state) { return (__assign(__assign({}, base), { color: state.selectProps.menuIsOpen ? 'var(--N500)' : base.color })); },
|
|
22678
22659
|
};
|
|
22679
22660
|
var CustomSelect = function (props) {
|
|
22680
|
-
return jsxRuntime.jsx(
|
|
22661
|
+
return jsxRuntime.jsx(Select, __assign({}, props));
|
|
22681
22662
|
};
|
|
22682
22663
|
|
|
22683
|
-
var css_248z$
|
|
22684
|
-
styleInject(css_248z$
|
|
22664
|
+
var css_248z$3 = ".info-bar-container .info_text .success {\n background-color: var(--G100);\n}\n.info-bar-container .warn {\n background: var(--Y100);\n border: solid var(--Y200);\n}\n.info-bar-container .warn .warning-icon path:nth-child(2) {\n fill: var(--Y700);\n}\n.info-bar-container .info_bar {\n background-color: var(--B100);\n border: 1px solid var(--B200);\n}\n.info-bar-container .error_bar {\n background-color: var(--R100);\n border: 1px solid var(--R200);\n}\n.info-bar-container .question-bar {\n background-color: var(--V100);\n border: 1px solid var(--V200);\n}";
|
|
22665
|
+
styleInject(css_248z$3);
|
|
22685
22666
|
|
|
22686
22667
|
function InfoColourBar(_a) {
|
|
22687
22668
|
var message = _a.message, classname = _a.classname, Icon = _a.Icon, iconClass = _a.iconClass, iconSize = _a.iconSize, renderActionButton = _a.renderActionButton, linkText = _a.linkText, redirectLink = _a.redirectLink, linkOnClick = _a.linkOnClick, linkClass = _a.linkClass, internalLink = _a.internalLink, styles = _a.styles;
|
|
@@ -22941,7 +22922,7 @@ Valid States of Checkbox:
|
|
|
22941
22922
|
5. disabled: false, checked: true, value: INTERMIDIATE
|
|
22942
22923
|
6. disabled: false, checked: true, value: CHECKED
|
|
22943
22924
|
*/
|
|
22944
|
-
var Checkbox
|
|
22925
|
+
var Checkbox = /** @class */ (function (_super) {
|
|
22945
22926
|
__extends(Checkbox, _super);
|
|
22946
22927
|
function Checkbox() {
|
|
22947
22928
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -22954,8 +22935,8 @@ var Checkbox$1 = /** @class */ (function (_super) {
|
|
|
22954
22935
|
return Checkbox;
|
|
22955
22936
|
}(React.Component));
|
|
22956
22937
|
|
|
22957
|
-
var css_248z$
|
|
22958
|
-
styleInject(css_248z$
|
|
22938
|
+
var css_248z$2 = ".toggle__switch {\n position: relative;\n display: inline-block;\n width: 100%;\n height: 100%;\n}\n.toggle__switch.disabled {\n cursor: not-allowed;\n}\n.toggle__switch.disabled .toggle__slider {\n cursor: not-allowed;\n}\n\n/* Hide default HTML checkbox */\n.toggle__switch input {\n opacity: 0;\n width: 0;\n height: 0;\n}\n\n/* The slider */\n.toggle__slider {\n position: absolute;\n cursor: pointer;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: #ccc;\n transition: all 0.4s ease;\n}\n.toggle__slider.round {\n border-radius: 34px;\n}\n.toggle__slider.round:before {\n border-radius: 50%;\n}\n.toggle__slider:before {\n position: absolute;\n content: \"\";\n height: calc(100% - 8px);\n width: calc(50% - 4px);\n left: 4px;\n bottom: 4px;\n background-color: white;\n transition: all 0.4s ease;\n}\n.toggle__slider.with-icon {\n background-color: var(--N000) !important;\n}\n.toggle__slider.with-icon svg {\n position: absolute;\n content: \"\";\n top: -1px;\n left: -1px;\n background-color: var(--N300);\n transition: all 0.4s ease;\n}\n\ninput:checked + .toggle__slider {\n background-color: var(--color);\n}\ninput:checked + .toggle__slider:before {\n transform: translateX(100%);\n}\ninput:checked + .toggle__slider.with-icon svg {\n transform: translateX(100%);\n background-color: var(--color);\n}\n\ninput:focus + .toggle__slider {\n box-shadow: 0 0 1px var(--color);\n}";
|
|
22939
|
+
styleInject(css_248z$2);
|
|
22959
22940
|
|
|
22960
22941
|
var Toggle = function (_a) {
|
|
22961
22942
|
var _b;
|
|
@@ -22979,8 +22960,8 @@ var Toggle = function (_a) {
|
|
|
22979
22960
|
return (jsxRuntime.jsxs("label", __assign({}, props, { className: "".concat(rootClassName, " toggle__switch ").concat(disabled ? 'disabled' : ''), style: (_b = {}, _b['--color'] = color, _b) }, { children: [jsxRuntime.jsx("input", { type: "checkbox", checked: !!active, onChange: handleClick, className: "toggle__input" }), jsxRuntime.jsx("span", __assign({ className: "toggle__slider ".concat(Icon ? 'with-icon br-4 dc__border' : 'round'), "data-testid": dataTestId }, { children: Icon && jsxRuntime.jsx(Icon, { className: "icon-dim-20 br-4 p-2 ".concat(iconClass) }) }))] })));
|
|
22980
22961
|
};
|
|
22981
22962
|
|
|
22982
|
-
var css_248z$
|
|
22983
|
-
styleInject(css_248z$
|
|
22963
|
+
var css_248z$1 = ".modal-body--scan-details {\n position: fixed;\n top: 0;\n right: 0;\n background: var(--N000);\n width: 800px;\n}\n\n.security-tab__table {\n width: 100%;\n}\n\n.security-tab__table-header {\n border-bottom: solid 1px var(--N200);\n}\n\n.security-cell-header {\n font-size: 12px;\n font-weight: 600;\n line-height: 1.5;\n letter-spacing: normal;\n text-transform: uppercase;\n color: var(--N500);\n}\n\n.dc__security-tab__table-row {\n font-size: 13px;\n font-weight: normal;\n line-height: 1.54;\n letter-spacing: normal;\n color: var(--N900);\n box-shadow: inset 0 -1px 0 0 #f5f5f5;\n}\n\n.security-tab__cell-cve,\n.security-tab__cell-severity,\n.security-tab__cell-package,\n.security-tab__cell-current-ver,\n.security-tab__cell-fixed-ver,\n.security-tab__cell-policy {\n padding: 10px;\n max-width: 120px;\n word-wrap: break-word;\n}\n\n.security-tab__cell-cve {\n padding-left: 0px;\n text-align: left;\n width: 20%;\n}\n\n.security-tab__cell-policy {\n padding-right: 0px;\n}\n\n.security-tab__cell-policy--whitelist,\n.security-tab__cell-policy--whitelisted {\n color: var(--G500);\n text-transform: capitalize;\n}\n\n.security-tab__cell-policy--block {\n color: var(--R500);\n text-transform: capitalize;\n}\n\n.scanned-object__results {\n margin: 0 20px;\n}";
|
|
22964
|
+
styleInject(css_248z$1);
|
|
22984
22965
|
|
|
22985
22966
|
function ScanVulnerabilitiesTable(_a) {
|
|
22986
22967
|
var vulnerabilities = _a.vulnerabilities;
|
|
@@ -22995,8 +22976,8 @@ function ScanVulnerabilitiesTable(_a) {
|
|
|
22995
22976
|
})] }) })));
|
|
22996
22977
|
}
|
|
22997
22978
|
|
|
22998
|
-
var css_248z
|
|
22999
|
-
styleInject(css_248z
|
|
22979
|
+
var css_248z = ".radio-group {\n height: 30px;\n background: white;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 4px;\n border-radius: 4px;\n}\n.radio-group .label,\n.radio-group .radio,\n.radio-group .checkbox {\n margin: 0;\n}\n.radio-group .radio {\n height: 100%;\n width: auto;\n color: var(--N400);\n display: flex;\n align-items: center;\n}\n.radio-group .radio + .radio {\n margin-top: 0;\n}\n.radio-group input[type=checkbox] {\n display: contents;\n overflow: hidden;\n max-width: 0px;\n height: 0;\n opacity: 0;\n margin: unset;\n}\n.radio-group input + .radio__item-label {\n padding: 4px 6px;\n height: 100%;\n width: 100%;\n display: flex;\n align-items: center;\n transition: all 0.5s;\n cursor: pointer;\n}\n.radio-group input[type=checkbox]:checked + .radio__item-label {\n background: #2c3354;\n color: white;\n border-radius: 4px;\n}";
|
|
22980
|
+
styleInject(css_248z);
|
|
23000
22981
|
|
|
23001
22982
|
var RadioContext = React.createContext(null);
|
|
23002
22983
|
function useRadioContext() {
|
|
@@ -23090,9 +23071,9 @@ exports.ConsequenceAction = void 0;
|
|
|
23090
23071
|
})(exports.ConsequenceAction || (exports.ConsequenceAction = {}));
|
|
23091
23072
|
|
|
23092
23073
|
var _g$2;
|
|
23093
|
-
function _extends$
|
|
23074
|
+
function _extends$7() { _extends$7 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
|
|
23094
23075
|
var SvgIcInfoFilled = function SvgIcInfoFilled(props) {
|
|
23095
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
23076
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
|
|
23096
23077
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23097
23078
|
width: "1em",
|
|
23098
23079
|
height: "1em",
|
|
@@ -23171,16 +23152,16 @@ function DeleteComponent(_a) {
|
|
|
23171
23152
|
return (jsxRuntime.jsxs("div", { children: [!showCannotDeleteDialogModal && renderDeleteDialog(), showCannotDeleteDialogModal && renderCannotDeleteDialogModal()] }));
|
|
23172
23153
|
}
|
|
23173
23154
|
|
|
23174
|
-
var _path$
|
|
23175
|
-
function _extends$
|
|
23155
|
+
var _path$4;
|
|
23156
|
+
function _extends$6() { _extends$6 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$6.apply(this, arguments); }
|
|
23176
23157
|
var SvgIcPencil = function SvgIcPencil(props) {
|
|
23177
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
23158
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
|
|
23178
23159
|
width: "1em",
|
|
23179
23160
|
height: "1em",
|
|
23180
23161
|
viewBox: "0 0 20 20",
|
|
23181
23162
|
fill: "none",
|
|
23182
23163
|
xmlns: "http://www.w3.org/2000/svg"
|
|
23183
|
-
}, props), _path$
|
|
23164
|
+
}, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
23184
23165
|
d: "M10.625 5 15 9.375m-7.5 7.5H3.75a.625.625 0 0 1-.625-.625v-3.491a.625.625 0 0 1 .183-.442l9.375-9.375a.625.625 0 0 1 .884 0l3.491 3.491a.625.625 0 0 1 0 .884L7.5 16.875Z",
|
|
23185
23166
|
stroke: "#596168",
|
|
23186
23167
|
strokeWidth: 1.5,
|
|
@@ -23189,16 +23170,16 @@ var SvgIcPencil = function SvgIcPencil(props) {
|
|
|
23189
23170
|
})));
|
|
23190
23171
|
};
|
|
23191
23172
|
|
|
23192
|
-
var _path$
|
|
23193
|
-
function _extends$
|
|
23173
|
+
var _path$3, _path2, _path3;
|
|
23174
|
+
function _extends$5() { _extends$5 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
|
|
23194
23175
|
var SvgIcArrowCounterClockwise = function SvgIcArrowCounterClockwise(props) {
|
|
23195
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
23176
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
|
|
23196
23177
|
width: "1em",
|
|
23197
23178
|
height: "1em",
|
|
23198
23179
|
viewBox: "0 0 12 12",
|
|
23199
23180
|
fill: "none",
|
|
23200
23181
|
xmlns: "http://www.w3.org/2000/svg"
|
|
23201
|
-
}, props), _path$
|
|
23182
|
+
}, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
23202
23183
|
d: "M3.742 4.674h-2.25v-2.25",
|
|
23203
23184
|
fill: "#767D84"
|
|
23204
23185
|
})), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -23216,15 +23197,15 @@ var SvgIcArrowCounterClockwise = function SvgIcArrowCounterClockwise(props) {
|
|
|
23216
23197
|
})));
|
|
23217
23198
|
};
|
|
23218
23199
|
|
|
23219
|
-
var _path$
|
|
23220
|
-
function _extends$
|
|
23200
|
+
var _path$2;
|
|
23201
|
+
function _extends$4() { _extends$4 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
|
|
23221
23202
|
var SvgIcMinus = function SvgIcMinus(props) {
|
|
23222
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
23203
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
|
|
23223
23204
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23224
23205
|
width: "1em",
|
|
23225
23206
|
height: "1em",
|
|
23226
23207
|
viewBox: "0 0 14 14"
|
|
23227
|
-
}, props), _path$
|
|
23208
|
+
}, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
23228
23209
|
fill: "#959BA1",
|
|
23229
23210
|
className: "ic-minus_svg__fill-color",
|
|
23230
23211
|
fillRule: "evenodd",
|
|
@@ -23233,9 +23214,9 @@ var SvgIcMinus = function SvgIcMinus(props) {
|
|
|
23233
23214
|
};
|
|
23234
23215
|
|
|
23235
23216
|
var _g$1;
|
|
23236
|
-
function _extends$
|
|
23217
|
+
function _extends$3() { _extends$3 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
|
|
23237
23218
|
var SvgIcErrorExclamation = function SvgIcErrorExclamation(props) {
|
|
23238
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
23219
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
|
|
23239
23220
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23240
23221
|
width: "1em",
|
|
23241
23222
|
height: "1em",
|
|
@@ -23252,16 +23233,16 @@ var SvgIcErrorExclamation = function SvgIcErrorExclamation(props) {
|
|
|
23252
23233
|
}))));
|
|
23253
23234
|
};
|
|
23254
23235
|
|
|
23255
|
-
var _path$
|
|
23256
|
-
function _extends$
|
|
23236
|
+
var _path$1;
|
|
23237
|
+
function _extends$2() { _extends$2 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
|
|
23257
23238
|
var SvgIcEnter = function SvgIcEnter(props) {
|
|
23258
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
23239
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
|
|
23259
23240
|
width: "1em",
|
|
23260
23241
|
height: "1em",
|
|
23261
23242
|
viewBox: "0 0 16 16",
|
|
23262
23243
|
fill: "none",
|
|
23263
23244
|
xmlns: "http://www.w3.org/2000/svg"
|
|
23264
|
-
}, props), _path$
|
|
23245
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
23265
23246
|
d: "M12.667 4a.667.667 0 0 0-.667.667v2.666a.667.667 0 0 1-.667.667H4.94l.867-.86a.67.67 0 1 0-.947-.947l-2 2a.667.667 0 0 0-.14.22.667.667 0 0 0 0 .507c.032.082.08.157.14.22l2 2a.666.666 0 0 0 .947 0 .667.667 0 0 0 0-.947l-.867-.86h6.393a2 2 0 0 0 2-2V4.667A.667.667 0 0 0 12.667 4Z",
|
|
23266
23247
|
fill: "#3B444C"
|
|
23267
23248
|
})));
|
|
@@ -23620,9 +23601,9 @@ function useDebouncedEffect(callback, delay, deps) {
|
|
|
23620
23601
|
}
|
|
23621
23602
|
|
|
23622
23603
|
var _g;
|
|
23623
|
-
function _extends$
|
|
23604
|
+
function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
|
|
23624
23605
|
var SvgIcErrorCross = function SvgIcErrorCross(props) {
|
|
23625
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
23606
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
|
|
23626
23607
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23627
23608
|
width: "1em",
|
|
23628
23609
|
height: "1em",
|
|
@@ -23690,15 +23671,15 @@ function Grid(_a) {
|
|
|
23690
23671
|
return (jsxRuntime.jsx("div", __assign({ className: "flex-wrap flexbox ".concat(container ? containerClass : ''), style: containerStyles }, { children: children })));
|
|
23691
23672
|
}
|
|
23692
23673
|
|
|
23693
|
-
var _path
|
|
23694
|
-
function _extends
|
|
23674
|
+
var _path;
|
|
23675
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
23695
23676
|
var SvgIcCopy = function SvgIcCopy(props) {
|
|
23696
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends
|
|
23677
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
23697
23678
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23698
23679
|
width: "1em",
|
|
23699
23680
|
height: "1em",
|
|
23700
23681
|
viewBox: "0 0 20 20"
|
|
23701
|
-
}, props), _path
|
|
23682
|
+
}, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
23702
23683
|
fill: "#767D84",
|
|
23703
23684
|
fillRule: "evenodd",
|
|
23704
23685
|
d: "M15.833 6.917a2.5 2.5 0 0 1 2.5 2.5v6.416a2.5 2.5 0 0 1-2.5 2.5H9.417a2.5 2.5 0 0 1-2.5-2.5V9.417a2.5 2.5 0 0 1 2.5-2.5zm0 1.666H9.417a.833.833 0 0 0-.834.834v6.416c0 .46.373.834.834.834h6.416c.46 0 .834-.373.834-.834V9.417a.833.833 0 0 0-.834-.834zM10.75 1.667c1.24 0 2.256.968 2.33 2.19l.003.143v.75a.833.833 0 0 1-1.66.097l-.006-.097V4c0-.34-.255-.62-.583-.661l-.084-.006H4c-.34 0-.62.255-.661.583L3.333 4v6.75c0 .34.255.62.583.661l.084.006h.75a.833.833 0 0 1 .097 1.66l-.097.006H4a2.333 2.333 0 0 1-2.33-2.19l-.003-.143V4c0-1.24.968-2.256 2.19-2.33L4 1.668h6.75z"
|
|
@@ -23866,2717 +23847,12 @@ function AppStatus(_a) {
|
|
|
23866
23847
|
return hideStatusMessage ? (iconClass || isVirtualEnv ? (jsxRuntime.jsx(Tippy, __assign({ className: "default-tt", arrow: false, placement: "top", content: textContent }, { children: jsxRuntime.jsx("div", __assign({ className: "flex" }, { children: renderIcon() })) }))) : (renderIcon())) : (jsxRuntime.jsxs("div", __assign({ className: "flex left" }, { children: [jsxRuntime.jsx("div", __assign({ className: "flex mr-6" }, { children: renderIcon() })), jsxRuntime.jsx("p", __assign({ "data-testid": "".concat(status, "-app-status"), className: "dc__truncate-text dc__first-letter-capitalize cn-6 m-0" }, { children: textContent }))] })));
|
|
23867
23848
|
}
|
|
23868
23849
|
|
|
23869
|
-
var PLACEHOLDERS = {
|
|
23870
|
-
SELECT: 'Please select an option',
|
|
23871
|
-
INPUT: 'Please enter an input',
|
|
23872
|
-
OBJECT_KEY: 'Please enter a value for the key',
|
|
23873
|
-
};
|
|
23874
|
-
var DEFAULT_FIELD_TITLE = 'Key not available';
|
|
23875
|
-
// Using symbol to ensure uniqueness across the fields
|
|
23876
|
-
var DO_NOT_SHOW_LABEL = Symbol('Do not show label');
|
|
23877
|
-
|
|
23878
|
-
var FieldRowWithLabel = function (_a) {
|
|
23879
|
-
var showLabel = _a.showLabel, label = _a.label, required = _a.required, children = _a.children, id = _a.id, _b = _a.shouldAlignCenter, shouldAlignCenter = _b === void 0 ? true : _b;
|
|
23880
|
-
return (jsxRuntime.jsxs("div", __assign({ className: showLabel
|
|
23881
|
-
? "display-grid dc__gap-12 rjsf-form-template__field ".concat(shouldAlignCenter ? 'flex-align-center' : '')
|
|
23882
|
-
: '' }, { children: [showLabel && (jsxRuntime.jsx("label", __assign({ className: "cn-7 fs-13 lh-32 fw-4 flexbox mb-0", htmlFor: id }, { children: label !== DO_NOT_SHOW_LABEL && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("span", __assign({ className: "dc__ellipsis-right" }, { children: label || DEFAULT_FIELD_TITLE })), required && jsxRuntime.jsx("span", __assign({ className: "cr-5" }, { children: "\u00A0*" }))] })) }))), children] })));
|
|
23883
|
-
};
|
|
23884
|
-
|
|
23885
|
-
var ActionButton = function (_a) {
|
|
23886
|
-
var canAdd = _a.canAdd, onAddClick = _a.onAddClick, disabled = _a.disabled, readonly = _a.readonly, uiSchema = _a.uiSchema, registry = _a.registry;
|
|
23887
|
-
var AddButton = registry.templates.ButtonTemplates.AddButton;
|
|
23888
|
-
return (canAdd && (jsxRuntime.jsx(AddButton, { onClick: onAddClick, disabled: disabled || readonly, uiSchema: uiSchema, registry: registry })));
|
|
23889
|
-
};
|
|
23890
|
-
var ArrayFieldTemplate = function (_a) {
|
|
23891
|
-
var canAdd = _a.canAdd, className = _a.className, disabled = _a.disabled, idSchema = _a.idSchema, uiSchema = _a.uiSchema, items = _a.items, onAddClick = _a.onAddClick, readonly = _a.readonly, registry = _a.registry, required = _a.required, title = _a.title;
|
|
23892
|
-
var uiOptions = utils.getUiOptions(uiSchema);
|
|
23893
|
-
var ArrayFieldItemTemplate = utils.getTemplate('ArrayFieldItemTemplate', registry, uiOptions);
|
|
23894
|
-
var label = uiOptions.title || title;
|
|
23895
|
-
return (jsxRuntime.jsx("fieldset", __assign({ className: className, id: idSchema.$id }, { children: items.length ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [items.map(function (_a, index) {
|
|
23896
|
-
var key = _a.key, itemProps = __rest(_a, ["key"]);
|
|
23897
|
-
// Show the title as the label for the first field
|
|
23898
|
-
var children = __assign(__assign({}, itemProps.children), { props: __assign(__assign({}, itemProps.children.props), { name: index === 0 ? label : DO_NOT_SHOW_LABEL }) });
|
|
23899
|
-
return (jsxRuntime.jsx(ArrayFieldItemTemplate, __assign({}, itemProps, { children: children }), key));
|
|
23900
|
-
}), jsxRuntime.jsx(ActionButton, { canAdd: canAdd, onAddClick: onAddClick, disabled: disabled, readonly: readonly, uiSchema: uiSchema, registry: registry })] })) : (jsxRuntime.jsx(FieldRowWithLabel, __assign({ label: label, required: required, showLabel: true, id: idSchema.$id }, { children: jsxRuntime.jsx(ActionButton, { canAdd: canAdd, onAddClick: onAddClick, disabled: disabled, readonly: readonly, uiSchema: uiSchema, registry: registry }) }))) })));
|
|
23901
|
-
};
|
|
23902
|
-
|
|
23903
|
-
var ArrayFieldItemTemplate = function (_a) {
|
|
23904
|
-
var children = _a.children; _a.className; var disabled = _a.disabled, hasToolbar = _a.hasToolbar, hasRemove = _a.hasRemove, index = _a.index, onDropIndexClick = _a.onDropIndexClick, readonly = _a.readonly, registry = _a.registry, uiSchema = _a.uiSchema;
|
|
23905
|
-
var RemoveButton = registry.templates.ButtonTemplates.RemoveButton;
|
|
23906
|
-
return (jsxRuntime.jsxs("div", __assign({ className: "display-grid rjsf-form-template__array-field-item flex-align-center dc__gap-8 mb-12" }, { children: [children, hasToolbar && hasRemove && (jsxRuntime.jsx(RemoveButton, { disabled: disabled || readonly, onClick: onDropIndexClick(index), uiSchema: uiSchema, registry: registry }))] })));
|
|
23907
|
-
};
|
|
23908
|
-
|
|
23909
|
-
var BaseInputTemplate = RJSF.getDefaultRegistry().templates.BaseInputTemplate;
|
|
23910
|
-
var BaseInput = function (_a) {
|
|
23911
|
-
var placeholder = _a.placeholder, props = __rest(_a, ["placeholder"]);
|
|
23912
|
-
return (jsxRuntime.jsx(BaseInputTemplate, __assign({ placeholder: placeholder || PLACEHOLDERS.INPUT }, props, { className: "form__input cn-9 fs-13 lh-20 fw-4" })));
|
|
23913
|
-
};
|
|
23914
|
-
|
|
23915
|
-
var AddButton = function (_a) {
|
|
23916
|
-
_a.icon; _a.iconType; _a.registry; _a.uiSchema; var props = __rest(_a, ["icon", "iconType", "registry", "uiSchema"]);
|
|
23917
|
-
return (jsxRuntime.jsx("div", __assign({ className: "flexbox flex-justify-end" }, { children: jsxRuntime.jsxs("button", __assign({}, props, { type: "button", className: "dc__outline-none-imp p-0 dc__transparent flex dc__gap-4 cursor", title: "Add" }, { children: [jsxRuntime.jsx(SvgIcAdd, { className: "icon-dim-16 fcb-5" }), jsxRuntime.jsx("span", __assign({ className: "cb-5 fs-13 lh-20" }, { children: "Add" }))] })) })));
|
|
23918
|
-
};
|
|
23919
|
-
|
|
23920
|
-
var RemoveButton = function (_a) {
|
|
23921
|
-
_a.icon; _a.iconType; _a.registry; _a.uiSchema; var props = __rest(_a, ["icon", "iconType", "registry", "uiSchema"]);
|
|
23922
|
-
return (jsxRuntime.jsx("button", __assign({}, props, { type: "button", className: "dc__outline-none-imp p-0 dc__transparent flex cursor", title: "Remove" }, { children: jsxRuntime.jsx(SvgIcCross, { className: "icon-dim-16 fcr-5" }) })));
|
|
23923
|
-
};
|
|
23924
|
-
|
|
23925
|
-
var SubmitButton = function (_a) {
|
|
23926
|
-
var uiSchema = _a.uiSchema;
|
|
23927
|
-
var _b = utils.getSubmitButtonOptions(uiSchema), submitText = _b.submitText, norender = _b.norender, _c = _b.props, submitButtonProps = _c === void 0 ? {} : _c;
|
|
23928
|
-
return norender ? null : (jsxRuntime.jsx("div", __assign({ className: "flexbox flex-justify-end" }, { children: jsxRuntime.jsx("button", __assign({ type: "submit" }, submitButtonProps, { className: "cta ".concat(submitButtonProps.className || '') }, { children: submitText })) })));
|
|
23929
|
-
};
|
|
23930
|
-
|
|
23931
|
-
var Description = function (_a) {
|
|
23932
|
-
var id = _a.id, description = _a.description;
|
|
23933
|
-
return description && (jsxRuntime.jsxs("div", __assign({ id: id, className: "flex left flex-align-center mt-4 dc__gap-4" }, { children: [jsxRuntime.jsx(SvgIcInfoFilled, { className: "icon-dim-16 mw-16 info-icon-n5" }), jsxRuntime.jsx("span", __assign({ className: "cn-7 fs-11 fw-4 dc__ellipsis-right" }, { children: description }))] })));
|
|
23934
|
-
};
|
|
23935
|
-
|
|
23936
|
-
var Field$1 = function (props) {
|
|
23937
|
-
var id = props.id, label = props.label, children = props.children, errors = props.errors, hidden = props.hidden, required = props.required, displayLabel = props.displayLabel, registry = props.registry, uiSchema = props.uiSchema, classNames = props.classNames, schema = props.schema, description = props.description;
|
|
23938
|
-
var uiOptions = utils.getUiOptions(uiSchema);
|
|
23939
|
-
var WrapIfAdditionalTemplate = utils.getTemplate('WrapIfAdditionalTemplate', registry, uiOptions);
|
|
23940
|
-
// Object type fields have additional properties for key/value pairs
|
|
23941
|
-
var hasAdditionalProperties = utils.ADDITIONAL_PROPERTY_FLAG in schema;
|
|
23942
|
-
// Label is not displayed for boolean fields by default and hide for object type fields
|
|
23943
|
-
var showLabel = (displayLabel || schema.type === 'boolean') && !hasAdditionalProperties;
|
|
23944
|
-
return hidden ? (jsxRuntime.jsx("div", __assign({ className: "hidden" }, { children: children }))) : (jsxRuntime.jsxs("div", __assign({ className: "".concat(classNames, " mb-12") }, { children: [jsxRuntime.jsx(FieldRowWithLabel, __assign({ label: label, showLabel: showLabel, id: id, required: required }, { children: jsxRuntime.jsx(WrapIfAdditionalTemplate, __assign({}, props, { children: children })) })), description, errors] })));
|
|
23945
|
-
};
|
|
23946
|
-
|
|
23947
|
-
var FieldErrorTemplate = function (_a) {
|
|
23948
|
-
var _b = _a.errors, errors = _b === void 0 ? [] : _b, idSchema = _a.idSchema;
|
|
23949
|
-
var id = utils.errorId(idSchema);
|
|
23950
|
-
return (errors.length > 0 && (jsxRuntime.jsx("span", __assign({ id: id }, { children: errors
|
|
23951
|
-
.filter(function (elem) { return !!elem; })
|
|
23952
|
-
.map(function (error, index) {
|
|
23953
|
-
return (jsxRuntime.jsxs("span", __assign({ className: "form__error" }, { children: [jsxRuntime.jsx(SvgIcWarning, { className: "form__icon form__icon--error" }), error] }), index));
|
|
23954
|
-
}) }))));
|
|
23955
|
-
};
|
|
23956
|
-
|
|
23957
|
-
var Field = function (_a) {
|
|
23958
|
-
var disabled = _a.disabled, formData = _a.formData, idSchema = _a.idSchema, onAddClick = _a.onAddClick, properties = _a.properties, readonly = _a.readonly, registry = _a.registry, required = _a.required, schema = _a.schema, title = _a.title, uiSchema = _a.uiSchema;
|
|
23959
|
-
var AddButton = registry.templates.ButtonTemplates.AddButton;
|
|
23960
|
-
var hasAdditionalProperties = !!schema.additionalProperties;
|
|
23961
|
-
var ActionButton = utils.canExpand(schema, uiSchema, formData) && (jsxRuntime.jsx(AddButton, { className: "object-property-expand", onClick: onAddClick(schema), disabled: disabled || readonly, uiSchema: uiSchema, registry: registry }));
|
|
23962
|
-
var Properties = properties.map(function (prop) { return prop.content; });
|
|
23963
|
-
if (hasAdditionalProperties) {
|
|
23964
|
-
if (properties.length) {
|
|
23965
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(FieldRowWithLabel, __assign({ label: title, required: required, showLabel: true, id: idSchema.$id, shouldAlignCenter: false }, { children: jsxRuntime.jsx("div", { children: Properties }) })), ActionButton] }));
|
|
23966
|
-
}
|
|
23967
|
-
else {
|
|
23968
|
-
return (jsxRuntime.jsx(FieldRowWithLabel, __assign({ label: title, required: required, showLabel: true, id: idSchema.$id }, { children: ActionButton })));
|
|
23969
|
-
}
|
|
23970
|
-
}
|
|
23971
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [Properties, ActionButton] }));
|
|
23972
|
-
};
|
|
23973
|
-
var ObjectFieldTemplate = function (props) {
|
|
23974
|
-
var idSchema = props.idSchema, registry = props.registry, required = props.required, schema = props.schema, title = props.title, uiSchema = props.uiSchema;
|
|
23975
|
-
var options = utils.getUiOptions(uiSchema);
|
|
23976
|
-
var TitleFieldTemplate = utils.getTemplate('TitleFieldTemplate', registry, options);
|
|
23977
|
-
var hasAdditionalProperties = !!schema.additionalProperties;
|
|
23978
|
-
var showTitle = title && !hasAdditionalProperties;
|
|
23979
|
-
return (jsxRuntime.jsxs("fieldset", __assign({ id: idSchema.$id }, { children: [showTitle && (jsxRuntime.jsx(TitleFieldTemplate, { id: utils.titleId(idSchema), title: title, required: required, schema: schema, uiSchema: uiSchema, registry: registry })), jsxRuntime.jsx("div", __assign({ className: schema.properties && !hasAdditionalProperties && idSchema.$id !== 'root'
|
|
23980
|
-
? 'dc__border-left pl-5'
|
|
23981
|
-
: '' }, { children: jsxRuntime.jsx(Field, __assign({}, props)) }))] })));
|
|
23982
|
-
};
|
|
23983
|
-
|
|
23984
|
-
var TitleField = function (_a) {
|
|
23985
|
-
var id = _a.id, title = _a.title, required = _a.required;
|
|
23986
|
-
return (jsxRuntime.jsxs("legend", __assign({ className: "fs-13 fw-6 cn-9 lh-20 pb-8 dc__border-bottom en-1 mb-12", id: id }, { children: [jsxRuntime.jsx("span", { children: title }), required && jsxRuntime.jsx("span", __assign({ className: "cr-5" }, { children: "\u00A0*" }))] })));
|
|
23987
|
-
};
|
|
23988
|
-
|
|
23989
|
-
var WrapIfAdditionalTemplate = function (_a) {
|
|
23990
|
-
var id = _a.id, disabled = _a.disabled, label = _a.label, onKeyChange = _a.onKeyChange, onDropPropertyClick = _a.onDropPropertyClick, readonly = _a.readonly, schema = _a.schema, children = _a.children, uiSchema = _a.uiSchema, registry = _a.registry;
|
|
23991
|
-
var templates = registry.templates;
|
|
23992
|
-
var RemoveButton = templates.ButtonTemplates.RemoveButton;
|
|
23993
|
-
var additional = utils.ADDITIONAL_PROPERTY_FLAG in schema;
|
|
23994
|
-
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: additional ? (jsxRuntime.jsxs("div", __assign({ className: "rjsf-form-template__additional-fields display-grid dc__gap-8 flex-align-center" }, { children: [jsxRuntime.jsx("div", { children: jsxRuntime.jsx("input", { type: "text", className: "form__input cn-9 fs-13 lh-20 fw-4", id: "".concat(id, "-key"), onBlur: function (event) { return onKeyChange(event.target.value); }, placeholder: PLACEHOLDERS.OBJECT_KEY, defaultValue: label }) }), jsxRuntime.jsx("div", { children: children }), jsxRuntime.jsx("div", { children: jsxRuntime.jsx(RemoveButton, { disabled: disabled || readonly, onClick: onDropPropertyClick(label), uiSchema: uiSchema, registry: registry }) })] }))) : (children) }));
|
|
23995
|
-
};
|
|
23996
|
-
|
|
23997
|
-
var Checkbox = function (_a) {
|
|
23998
|
-
var id = _a.id, onChange = _a.onChange, value = _a.value, required = _a.required, disabled = _a.disabled, readonly = _a.readonly, autofocus = _a.autofocus, onBlur = _a.onBlur, onFocus = _a.onFocus;
|
|
23999
|
-
var handleEvent = function (e, type) {
|
|
24000
|
-
var _a = e.target, id = _a.id, checked = _a.checked;
|
|
24001
|
-
if (type === 'blur') {
|
|
24002
|
-
onBlur(id, checked);
|
|
24003
|
-
}
|
|
24004
|
-
else if (type === 'focus') {
|
|
24005
|
-
onFocus(id, checked);
|
|
24006
|
-
}
|
|
24007
|
-
};
|
|
24008
|
-
var isSelected = typeof value === 'undefined' ? false : value;
|
|
24009
|
-
return (jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(Toggle, { selected: isSelected, onSelect: onChange, id: id, name: id, required: required, disabled: disabled || readonly, autoFocus: autofocus, rootClassName: "w-32 mb-0 dc__height-inherit", onBlur: function (e) { return handleEvent(e, 'blur'); }, onFocus: function (e) { return handleEvent(e, 'focus'); } }), jsxRuntime.jsx("span", __assign({ className: "dc__capitalize ml-8" }, { children: isSelected.toString() }))] }));
|
|
24010
|
-
};
|
|
24011
|
-
|
|
24012
|
-
/**
|
|
24013
|
-
* Removes all key-value entries from the list cache.
|
|
24014
|
-
*
|
|
24015
|
-
* @private
|
|
24016
|
-
* @name clear
|
|
24017
|
-
* @memberOf ListCache
|
|
24018
|
-
*/
|
|
24019
|
-
|
|
24020
|
-
function listCacheClear$1() {
|
|
24021
|
-
this.__data__ = [];
|
|
24022
|
-
this.size = 0;
|
|
24023
|
-
}
|
|
24024
|
-
|
|
24025
|
-
var _listCacheClear = listCacheClear$1;
|
|
24026
|
-
|
|
24027
|
-
/**
|
|
24028
|
-
* Performs a
|
|
24029
|
-
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
24030
|
-
* comparison between two values to determine if they are equivalent.
|
|
24031
|
-
*
|
|
24032
|
-
* @static
|
|
24033
|
-
* @memberOf _
|
|
24034
|
-
* @since 4.0.0
|
|
24035
|
-
* @category Lang
|
|
24036
|
-
* @param {*} value The value to compare.
|
|
24037
|
-
* @param {*} other The other value to compare.
|
|
24038
|
-
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
24039
|
-
* @example
|
|
24040
|
-
*
|
|
24041
|
-
* var object = { 'a': 1 };
|
|
24042
|
-
* var other = { 'a': 1 };
|
|
24043
|
-
*
|
|
24044
|
-
* _.eq(object, object);
|
|
24045
|
-
* // => true
|
|
24046
|
-
*
|
|
24047
|
-
* _.eq(object, other);
|
|
24048
|
-
* // => false
|
|
24049
|
-
*
|
|
24050
|
-
* _.eq('a', 'a');
|
|
24051
|
-
* // => true
|
|
24052
|
-
*
|
|
24053
|
-
* _.eq('a', Object('a'));
|
|
24054
|
-
* // => false
|
|
24055
|
-
*
|
|
24056
|
-
* _.eq(NaN, NaN);
|
|
24057
|
-
* // => true
|
|
24058
|
-
*/
|
|
24059
|
-
|
|
24060
|
-
function eq$2(value, other) {
|
|
24061
|
-
return value === other || (value !== value && other !== other);
|
|
24062
|
-
}
|
|
24063
|
-
|
|
24064
|
-
var eq_1 = eq$2;
|
|
24065
|
-
|
|
24066
|
-
var eq$1 = eq_1;
|
|
24067
|
-
|
|
24068
|
-
/**
|
|
24069
|
-
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
24070
|
-
*
|
|
24071
|
-
* @private
|
|
24072
|
-
* @param {Array} array The array to inspect.
|
|
24073
|
-
* @param {*} key The key to search for.
|
|
24074
|
-
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
24075
|
-
*/
|
|
24076
|
-
function assocIndexOf$4(array, key) {
|
|
24077
|
-
var length = array.length;
|
|
24078
|
-
while (length--) {
|
|
24079
|
-
if (eq$1(array[length][0], key)) {
|
|
24080
|
-
return length;
|
|
24081
|
-
}
|
|
24082
|
-
}
|
|
24083
|
-
return -1;
|
|
24084
|
-
}
|
|
24085
|
-
|
|
24086
|
-
var _assocIndexOf = assocIndexOf$4;
|
|
24087
|
-
|
|
24088
|
-
var assocIndexOf$3 = _assocIndexOf;
|
|
24089
|
-
|
|
24090
|
-
/** Used for built-in method references. */
|
|
24091
|
-
var arrayProto = Array.prototype;
|
|
24092
|
-
|
|
24093
|
-
/** Built-in value references. */
|
|
24094
|
-
var splice = arrayProto.splice;
|
|
24095
|
-
|
|
24096
|
-
/**
|
|
24097
|
-
* Removes `key` and its value from the list cache.
|
|
24098
|
-
*
|
|
24099
|
-
* @private
|
|
24100
|
-
* @name delete
|
|
24101
|
-
* @memberOf ListCache
|
|
24102
|
-
* @param {string} key The key of the value to remove.
|
|
24103
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
24104
|
-
*/
|
|
24105
|
-
function listCacheDelete$1(key) {
|
|
24106
|
-
var data = this.__data__,
|
|
24107
|
-
index = assocIndexOf$3(data, key);
|
|
24108
|
-
|
|
24109
|
-
if (index < 0) {
|
|
24110
|
-
return false;
|
|
24111
|
-
}
|
|
24112
|
-
var lastIndex = data.length - 1;
|
|
24113
|
-
if (index == lastIndex) {
|
|
24114
|
-
data.pop();
|
|
24115
|
-
} else {
|
|
24116
|
-
splice.call(data, index, 1);
|
|
24117
|
-
}
|
|
24118
|
-
--this.size;
|
|
24119
|
-
return true;
|
|
24120
|
-
}
|
|
24121
|
-
|
|
24122
|
-
var _listCacheDelete = listCacheDelete$1;
|
|
24123
|
-
|
|
24124
|
-
var assocIndexOf$2 = _assocIndexOf;
|
|
24125
|
-
|
|
24126
|
-
/**
|
|
24127
|
-
* Gets the list cache value for `key`.
|
|
24128
|
-
*
|
|
24129
|
-
* @private
|
|
24130
|
-
* @name get
|
|
24131
|
-
* @memberOf ListCache
|
|
24132
|
-
* @param {string} key The key of the value to get.
|
|
24133
|
-
* @returns {*} Returns the entry value.
|
|
24134
|
-
*/
|
|
24135
|
-
function listCacheGet$1(key) {
|
|
24136
|
-
var data = this.__data__,
|
|
24137
|
-
index = assocIndexOf$2(data, key);
|
|
24138
|
-
|
|
24139
|
-
return index < 0 ? undefined : data[index][1];
|
|
24140
|
-
}
|
|
24141
|
-
|
|
24142
|
-
var _listCacheGet = listCacheGet$1;
|
|
24143
|
-
|
|
24144
|
-
var assocIndexOf$1 = _assocIndexOf;
|
|
24145
|
-
|
|
24146
|
-
/**
|
|
24147
|
-
* Checks if a list cache value for `key` exists.
|
|
24148
|
-
*
|
|
24149
|
-
* @private
|
|
24150
|
-
* @name has
|
|
24151
|
-
* @memberOf ListCache
|
|
24152
|
-
* @param {string} key The key of the entry to check.
|
|
24153
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
24154
|
-
*/
|
|
24155
|
-
function listCacheHas$1(key) {
|
|
24156
|
-
return assocIndexOf$1(this.__data__, key) > -1;
|
|
24157
|
-
}
|
|
24158
|
-
|
|
24159
|
-
var _listCacheHas = listCacheHas$1;
|
|
24160
|
-
|
|
24161
|
-
var assocIndexOf = _assocIndexOf;
|
|
24162
|
-
|
|
24163
|
-
/**
|
|
24164
|
-
* Sets the list cache `key` to `value`.
|
|
24165
|
-
*
|
|
24166
|
-
* @private
|
|
24167
|
-
* @name set
|
|
24168
|
-
* @memberOf ListCache
|
|
24169
|
-
* @param {string} key The key of the value to set.
|
|
24170
|
-
* @param {*} value The value to set.
|
|
24171
|
-
* @returns {Object} Returns the list cache instance.
|
|
24172
|
-
*/
|
|
24173
|
-
function listCacheSet$1(key, value) {
|
|
24174
|
-
var data = this.__data__,
|
|
24175
|
-
index = assocIndexOf(data, key);
|
|
24176
|
-
|
|
24177
|
-
if (index < 0) {
|
|
24178
|
-
++this.size;
|
|
24179
|
-
data.push([key, value]);
|
|
24180
|
-
} else {
|
|
24181
|
-
data[index][1] = value;
|
|
24182
|
-
}
|
|
24183
|
-
return this;
|
|
24184
|
-
}
|
|
24185
|
-
|
|
24186
|
-
var _listCacheSet = listCacheSet$1;
|
|
24187
|
-
|
|
24188
|
-
var listCacheClear = _listCacheClear,
|
|
24189
|
-
listCacheDelete = _listCacheDelete,
|
|
24190
|
-
listCacheGet = _listCacheGet,
|
|
24191
|
-
listCacheHas = _listCacheHas,
|
|
24192
|
-
listCacheSet = _listCacheSet;
|
|
24193
|
-
|
|
24194
|
-
/**
|
|
24195
|
-
* Creates an list cache object.
|
|
24196
|
-
*
|
|
24197
|
-
* @private
|
|
24198
|
-
* @constructor
|
|
24199
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
24200
|
-
*/
|
|
24201
|
-
function ListCache$4(entries) {
|
|
24202
|
-
var index = -1,
|
|
24203
|
-
length = entries == null ? 0 : entries.length;
|
|
24204
|
-
|
|
24205
|
-
this.clear();
|
|
24206
|
-
while (++index < length) {
|
|
24207
|
-
var entry = entries[index];
|
|
24208
|
-
this.set(entry[0], entry[1]);
|
|
24209
|
-
}
|
|
24210
|
-
}
|
|
24211
|
-
|
|
24212
|
-
// Add methods to `ListCache`.
|
|
24213
|
-
ListCache$4.prototype.clear = listCacheClear;
|
|
24214
|
-
ListCache$4.prototype['delete'] = listCacheDelete;
|
|
24215
|
-
ListCache$4.prototype.get = listCacheGet;
|
|
24216
|
-
ListCache$4.prototype.has = listCacheHas;
|
|
24217
|
-
ListCache$4.prototype.set = listCacheSet;
|
|
24218
|
-
|
|
24219
|
-
var _ListCache = ListCache$4;
|
|
24220
|
-
|
|
24221
|
-
var ListCache$3 = _ListCache;
|
|
24222
|
-
|
|
24223
|
-
/**
|
|
24224
|
-
* Removes all key-value entries from the stack.
|
|
24225
|
-
*
|
|
24226
|
-
* @private
|
|
24227
|
-
* @name clear
|
|
24228
|
-
* @memberOf Stack
|
|
24229
|
-
*/
|
|
24230
|
-
function stackClear$1() {
|
|
24231
|
-
this.__data__ = new ListCache$3;
|
|
24232
|
-
this.size = 0;
|
|
24233
|
-
}
|
|
24234
|
-
|
|
24235
|
-
var _stackClear = stackClear$1;
|
|
24236
|
-
|
|
24237
|
-
/**
|
|
24238
|
-
* Removes `key` and its value from the stack.
|
|
24239
|
-
*
|
|
24240
|
-
* @private
|
|
24241
|
-
* @name delete
|
|
24242
|
-
* @memberOf Stack
|
|
24243
|
-
* @param {string} key The key of the value to remove.
|
|
24244
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
24245
|
-
*/
|
|
24246
|
-
|
|
24247
|
-
function stackDelete$1(key) {
|
|
24248
|
-
var data = this.__data__,
|
|
24249
|
-
result = data['delete'](key);
|
|
24250
|
-
|
|
24251
|
-
this.size = data.size;
|
|
24252
|
-
return result;
|
|
24253
|
-
}
|
|
24254
|
-
|
|
24255
|
-
var _stackDelete = stackDelete$1;
|
|
24256
|
-
|
|
24257
|
-
/**
|
|
24258
|
-
* Gets the stack value for `key`.
|
|
24259
|
-
*
|
|
24260
|
-
* @private
|
|
24261
|
-
* @name get
|
|
24262
|
-
* @memberOf Stack
|
|
24263
|
-
* @param {string} key The key of the value to get.
|
|
24264
|
-
* @returns {*} Returns the entry value.
|
|
24265
|
-
*/
|
|
24266
|
-
|
|
24267
|
-
function stackGet$1(key) {
|
|
24268
|
-
return this.__data__.get(key);
|
|
24269
|
-
}
|
|
24270
|
-
|
|
24271
|
-
var _stackGet = stackGet$1;
|
|
24272
|
-
|
|
24273
|
-
/**
|
|
24274
|
-
* Checks if a stack value for `key` exists.
|
|
24275
|
-
*
|
|
24276
|
-
* @private
|
|
24277
|
-
* @name has
|
|
24278
|
-
* @memberOf Stack
|
|
24279
|
-
* @param {string} key The key of the entry to check.
|
|
24280
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
24281
|
-
*/
|
|
24282
|
-
|
|
24283
|
-
function stackHas$1(key) {
|
|
24284
|
-
return this.__data__.has(key);
|
|
24285
|
-
}
|
|
24286
|
-
|
|
24287
|
-
var _stackHas = stackHas$1;
|
|
24288
|
-
|
|
24289
|
-
/** Detect free variable `global` from Node.js. */
|
|
24290
|
-
|
|
24291
|
-
var freeGlobal$1 = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
24292
|
-
|
|
24293
|
-
var _freeGlobal = freeGlobal$1;
|
|
24294
|
-
|
|
24295
|
-
var freeGlobal = _freeGlobal;
|
|
24296
|
-
|
|
24297
|
-
/** Detect free variable `self`. */
|
|
24298
|
-
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
24299
|
-
|
|
24300
|
-
/** Used as a reference to the global object. */
|
|
24301
|
-
var root$8 = freeGlobal || freeSelf || Function('return this')();
|
|
24302
|
-
|
|
24303
|
-
var _root = root$8;
|
|
24304
|
-
|
|
24305
|
-
var root$7 = _root;
|
|
24306
|
-
|
|
24307
|
-
/** Built-in value references. */
|
|
24308
|
-
var Symbol$4 = root$7.Symbol;
|
|
24309
|
-
|
|
24310
|
-
var _Symbol = Symbol$4;
|
|
24311
|
-
|
|
24312
|
-
var Symbol$3 = _Symbol;
|
|
24313
|
-
|
|
24314
|
-
/** Used for built-in method references. */
|
|
24315
|
-
var objectProto$b = Object.prototype;
|
|
24316
|
-
|
|
24317
|
-
/** Used to check objects for own properties. */
|
|
24318
|
-
var hasOwnProperty$8 = objectProto$b.hasOwnProperty;
|
|
24319
|
-
|
|
24320
|
-
/**
|
|
24321
|
-
* Used to resolve the
|
|
24322
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
24323
|
-
* of values.
|
|
24324
|
-
*/
|
|
24325
|
-
var nativeObjectToString$1 = objectProto$b.toString;
|
|
24326
|
-
|
|
24327
|
-
/** Built-in value references. */
|
|
24328
|
-
var symToStringTag$1 = Symbol$3 ? Symbol$3.toStringTag : undefined;
|
|
24329
|
-
|
|
24330
|
-
/**
|
|
24331
|
-
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
24332
|
-
*
|
|
24333
|
-
* @private
|
|
24334
|
-
* @param {*} value The value to query.
|
|
24335
|
-
* @returns {string} Returns the raw `toStringTag`.
|
|
24336
|
-
*/
|
|
24337
|
-
function getRawTag$1(value) {
|
|
24338
|
-
var isOwn = hasOwnProperty$8.call(value, symToStringTag$1),
|
|
24339
|
-
tag = value[symToStringTag$1];
|
|
24340
|
-
|
|
24341
|
-
try {
|
|
24342
|
-
value[symToStringTag$1] = undefined;
|
|
24343
|
-
var unmasked = true;
|
|
24344
|
-
} catch (e) {}
|
|
24345
|
-
|
|
24346
|
-
var result = nativeObjectToString$1.call(value);
|
|
24347
|
-
if (unmasked) {
|
|
24348
|
-
if (isOwn) {
|
|
24349
|
-
value[symToStringTag$1] = tag;
|
|
24350
|
-
} else {
|
|
24351
|
-
delete value[symToStringTag$1];
|
|
24352
|
-
}
|
|
24353
|
-
}
|
|
24354
|
-
return result;
|
|
24355
|
-
}
|
|
24356
|
-
|
|
24357
|
-
var _getRawTag = getRawTag$1;
|
|
24358
|
-
|
|
24359
|
-
/** Used for built-in method references. */
|
|
24360
|
-
|
|
24361
|
-
var objectProto$a = Object.prototype;
|
|
24362
|
-
|
|
24363
|
-
/**
|
|
24364
|
-
* Used to resolve the
|
|
24365
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
24366
|
-
* of values.
|
|
24367
|
-
*/
|
|
24368
|
-
var nativeObjectToString = objectProto$a.toString;
|
|
24369
|
-
|
|
24370
|
-
/**
|
|
24371
|
-
* Converts `value` to a string using `Object.prototype.toString`.
|
|
24372
|
-
*
|
|
24373
|
-
* @private
|
|
24374
|
-
* @param {*} value The value to convert.
|
|
24375
|
-
* @returns {string} Returns the converted string.
|
|
24376
|
-
*/
|
|
24377
|
-
function objectToString$1(value) {
|
|
24378
|
-
return nativeObjectToString.call(value);
|
|
24379
|
-
}
|
|
24380
|
-
|
|
24381
|
-
var _objectToString = objectToString$1;
|
|
24382
|
-
|
|
24383
|
-
var Symbol$2 = _Symbol,
|
|
24384
|
-
getRawTag = _getRawTag,
|
|
24385
|
-
objectToString = _objectToString;
|
|
24386
|
-
|
|
24387
|
-
/** `Object#toString` result references. */
|
|
24388
|
-
var nullTag = '[object Null]',
|
|
24389
|
-
undefinedTag = '[object Undefined]';
|
|
24390
|
-
|
|
24391
|
-
/** Built-in value references. */
|
|
24392
|
-
var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : undefined;
|
|
24393
|
-
|
|
24394
|
-
/**
|
|
24395
|
-
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
24396
|
-
*
|
|
24397
|
-
* @private
|
|
24398
|
-
* @param {*} value The value to query.
|
|
24399
|
-
* @returns {string} Returns the `toStringTag`.
|
|
24400
|
-
*/
|
|
24401
|
-
function baseGetTag$4(value) {
|
|
24402
|
-
if (value == null) {
|
|
24403
|
-
return value === undefined ? undefinedTag : nullTag;
|
|
24404
|
-
}
|
|
24405
|
-
return (symToStringTag && symToStringTag in Object(value))
|
|
24406
|
-
? getRawTag(value)
|
|
24407
|
-
: objectToString(value);
|
|
24408
|
-
}
|
|
24409
|
-
|
|
24410
|
-
var _baseGetTag = baseGetTag$4;
|
|
24411
|
-
|
|
24412
|
-
/**
|
|
24413
|
-
* Checks if `value` is the
|
|
24414
|
-
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
24415
|
-
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
24416
|
-
*
|
|
24417
|
-
* @static
|
|
24418
|
-
* @memberOf _
|
|
24419
|
-
* @since 0.1.0
|
|
24420
|
-
* @category Lang
|
|
24421
|
-
* @param {*} value The value to check.
|
|
24422
|
-
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
24423
|
-
* @example
|
|
24424
|
-
*
|
|
24425
|
-
* _.isObject({});
|
|
24426
|
-
* // => true
|
|
24427
|
-
*
|
|
24428
|
-
* _.isObject([1, 2, 3]);
|
|
24429
|
-
* // => true
|
|
24430
|
-
*
|
|
24431
|
-
* _.isObject(_.noop);
|
|
24432
|
-
* // => true
|
|
24433
|
-
*
|
|
24434
|
-
* _.isObject(null);
|
|
24435
|
-
* // => false
|
|
24436
|
-
*/
|
|
24437
|
-
|
|
24438
|
-
function isObject$2(value) {
|
|
24439
|
-
var type = typeof value;
|
|
24440
|
-
return value != null && (type == 'object' || type == 'function');
|
|
24441
|
-
}
|
|
24442
|
-
|
|
24443
|
-
var isObject_1 = isObject$2;
|
|
24444
|
-
|
|
24445
|
-
var baseGetTag$3 = _baseGetTag,
|
|
24446
|
-
isObject$1 = isObject_1;
|
|
24447
|
-
|
|
24448
|
-
/** `Object#toString` result references. */
|
|
24449
|
-
var asyncTag = '[object AsyncFunction]',
|
|
24450
|
-
funcTag$1 = '[object Function]',
|
|
24451
|
-
genTag = '[object GeneratorFunction]',
|
|
24452
|
-
proxyTag = '[object Proxy]';
|
|
24453
|
-
|
|
24454
|
-
/**
|
|
24455
|
-
* Checks if `value` is classified as a `Function` object.
|
|
24456
|
-
*
|
|
24457
|
-
* @static
|
|
24458
|
-
* @memberOf _
|
|
24459
|
-
* @since 0.1.0
|
|
24460
|
-
* @category Lang
|
|
24461
|
-
* @param {*} value The value to check.
|
|
24462
|
-
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
|
24463
|
-
* @example
|
|
24464
|
-
*
|
|
24465
|
-
* _.isFunction(_);
|
|
24466
|
-
* // => true
|
|
24467
|
-
*
|
|
24468
|
-
* _.isFunction(/abc/);
|
|
24469
|
-
* // => false
|
|
24470
|
-
*/
|
|
24471
|
-
function isFunction$2(value) {
|
|
24472
|
-
if (!isObject$1(value)) {
|
|
24473
|
-
return false;
|
|
24474
|
-
}
|
|
24475
|
-
// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
24476
|
-
// in Safari 9 which returns 'object' for typed arrays and other constructors.
|
|
24477
|
-
var tag = baseGetTag$3(value);
|
|
24478
|
-
return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
24479
|
-
}
|
|
24480
|
-
|
|
24481
|
-
var isFunction_1 = isFunction$2;
|
|
24482
|
-
|
|
24483
|
-
var root$6 = _root;
|
|
24484
|
-
|
|
24485
|
-
/** Used to detect overreaching core-js shims. */
|
|
24486
|
-
var coreJsData$1 = root$6['__core-js_shared__'];
|
|
24487
|
-
|
|
24488
|
-
var _coreJsData = coreJsData$1;
|
|
24489
|
-
|
|
24490
|
-
var coreJsData = _coreJsData;
|
|
24491
|
-
|
|
24492
|
-
/** Used to detect methods masquerading as native. */
|
|
24493
|
-
var maskSrcKey = (function() {
|
|
24494
|
-
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
|
|
24495
|
-
return uid ? ('Symbol(src)_1.' + uid) : '';
|
|
24496
|
-
}());
|
|
24497
|
-
|
|
24498
|
-
/**
|
|
24499
|
-
* Checks if `func` has its source masked.
|
|
24500
|
-
*
|
|
24501
|
-
* @private
|
|
24502
|
-
* @param {Function} func The function to check.
|
|
24503
|
-
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
|
|
24504
|
-
*/
|
|
24505
|
-
function isMasked$1(func) {
|
|
24506
|
-
return !!maskSrcKey && (maskSrcKey in func);
|
|
24507
|
-
}
|
|
24508
|
-
|
|
24509
|
-
var _isMasked = isMasked$1;
|
|
24510
|
-
|
|
24511
|
-
/** Used for built-in method references. */
|
|
24512
|
-
|
|
24513
|
-
var funcProto$1 = Function.prototype;
|
|
24514
|
-
|
|
24515
|
-
/** Used to resolve the decompiled source of functions. */
|
|
24516
|
-
var funcToString$1 = funcProto$1.toString;
|
|
24517
|
-
|
|
24518
|
-
/**
|
|
24519
|
-
* Converts `func` to its source code.
|
|
24520
|
-
*
|
|
24521
|
-
* @private
|
|
24522
|
-
* @param {Function} func The function to convert.
|
|
24523
|
-
* @returns {string} Returns the source code.
|
|
24524
|
-
*/
|
|
24525
|
-
function toSource$2(func) {
|
|
24526
|
-
if (func != null) {
|
|
24527
|
-
try {
|
|
24528
|
-
return funcToString$1.call(func);
|
|
24529
|
-
} catch (e) {}
|
|
24530
|
-
try {
|
|
24531
|
-
return (func + '');
|
|
24532
|
-
} catch (e) {}
|
|
24533
|
-
}
|
|
24534
|
-
return '';
|
|
24535
|
-
}
|
|
24536
|
-
|
|
24537
|
-
var _toSource = toSource$2;
|
|
24538
|
-
|
|
24539
|
-
var isFunction$1 = isFunction_1,
|
|
24540
|
-
isMasked = _isMasked,
|
|
24541
|
-
isObject = isObject_1,
|
|
24542
|
-
toSource$1 = _toSource;
|
|
24543
|
-
|
|
24544
|
-
/**
|
|
24545
|
-
* Used to match `RegExp`
|
|
24546
|
-
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
24547
|
-
*/
|
|
24548
|
-
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
24549
|
-
|
|
24550
|
-
/** Used to detect host constructors (Safari). */
|
|
24551
|
-
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
24552
|
-
|
|
24553
|
-
/** Used for built-in method references. */
|
|
24554
|
-
var funcProto = Function.prototype,
|
|
24555
|
-
objectProto$9 = Object.prototype;
|
|
24556
|
-
|
|
24557
|
-
/** Used to resolve the decompiled source of functions. */
|
|
24558
|
-
var funcToString = funcProto.toString;
|
|
24559
|
-
|
|
24560
|
-
/** Used to check objects for own properties. */
|
|
24561
|
-
var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
|
|
24562
|
-
|
|
24563
|
-
/** Used to detect if a method is native. */
|
|
24564
|
-
var reIsNative = RegExp('^' +
|
|
24565
|
-
funcToString.call(hasOwnProperty$7).replace(reRegExpChar, '\\$&')
|
|
24566
|
-
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
|
|
24567
|
-
);
|
|
24568
|
-
|
|
24569
|
-
/**
|
|
24570
|
-
* The base implementation of `_.isNative` without bad shim checks.
|
|
24571
|
-
*
|
|
24572
|
-
* @private
|
|
24573
|
-
* @param {*} value The value to check.
|
|
24574
|
-
* @returns {boolean} Returns `true` if `value` is a native function,
|
|
24575
|
-
* else `false`.
|
|
24576
|
-
*/
|
|
24577
|
-
function baseIsNative$1(value) {
|
|
24578
|
-
if (!isObject(value) || isMasked(value)) {
|
|
24579
|
-
return false;
|
|
24580
|
-
}
|
|
24581
|
-
var pattern = isFunction$1(value) ? reIsNative : reIsHostCtor;
|
|
24582
|
-
return pattern.test(toSource$1(value));
|
|
24583
|
-
}
|
|
24584
|
-
|
|
24585
|
-
var _baseIsNative = baseIsNative$1;
|
|
24586
|
-
|
|
24587
|
-
/**
|
|
24588
|
-
* Gets the value at `key` of `object`.
|
|
24589
|
-
*
|
|
24590
|
-
* @private
|
|
24591
|
-
* @param {Object} [object] The object to query.
|
|
24592
|
-
* @param {string} key The key of the property to get.
|
|
24593
|
-
* @returns {*} Returns the property value.
|
|
24594
|
-
*/
|
|
24595
|
-
|
|
24596
|
-
function getValue$1(object, key) {
|
|
24597
|
-
return object == null ? undefined : object[key];
|
|
24598
|
-
}
|
|
24599
|
-
|
|
24600
|
-
var _getValue = getValue$1;
|
|
24601
|
-
|
|
24602
|
-
var baseIsNative = _baseIsNative,
|
|
24603
|
-
getValue = _getValue;
|
|
24604
|
-
|
|
24605
|
-
/**
|
|
24606
|
-
* Gets the native function at `key` of `object`.
|
|
24607
|
-
*
|
|
24608
|
-
* @private
|
|
24609
|
-
* @param {Object} object The object to query.
|
|
24610
|
-
* @param {string} key The key of the method to get.
|
|
24611
|
-
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
24612
|
-
*/
|
|
24613
|
-
function getNative$6(object, key) {
|
|
24614
|
-
var value = getValue(object, key);
|
|
24615
|
-
return baseIsNative(value) ? value : undefined;
|
|
24616
|
-
}
|
|
24617
|
-
|
|
24618
|
-
var _getNative = getNative$6;
|
|
24619
|
-
|
|
24620
|
-
var getNative$5 = _getNative,
|
|
24621
|
-
root$5 = _root;
|
|
24622
|
-
|
|
24623
|
-
/* Built-in method references that are verified to be native. */
|
|
24624
|
-
var Map$4 = getNative$5(root$5, 'Map');
|
|
24625
|
-
|
|
24626
|
-
var _Map = Map$4;
|
|
24627
|
-
|
|
24628
|
-
var getNative$4 = _getNative;
|
|
24629
|
-
|
|
24630
|
-
/* Built-in method references that are verified to be native. */
|
|
24631
|
-
var nativeCreate$4 = getNative$4(Object, 'create');
|
|
24632
|
-
|
|
24633
|
-
var _nativeCreate = nativeCreate$4;
|
|
24634
|
-
|
|
24635
|
-
var nativeCreate$3 = _nativeCreate;
|
|
24636
|
-
|
|
24637
|
-
/**
|
|
24638
|
-
* Removes all key-value entries from the hash.
|
|
24639
|
-
*
|
|
24640
|
-
* @private
|
|
24641
|
-
* @name clear
|
|
24642
|
-
* @memberOf Hash
|
|
24643
|
-
*/
|
|
24644
|
-
function hashClear$1() {
|
|
24645
|
-
this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {};
|
|
24646
|
-
this.size = 0;
|
|
24647
|
-
}
|
|
24648
|
-
|
|
24649
|
-
var _hashClear = hashClear$1;
|
|
24650
|
-
|
|
24651
|
-
/**
|
|
24652
|
-
* Removes `key` and its value from the hash.
|
|
24653
|
-
*
|
|
24654
|
-
* @private
|
|
24655
|
-
* @name delete
|
|
24656
|
-
* @memberOf Hash
|
|
24657
|
-
* @param {Object} hash The hash to modify.
|
|
24658
|
-
* @param {string} key The key of the value to remove.
|
|
24659
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
24660
|
-
*/
|
|
24661
|
-
|
|
24662
|
-
function hashDelete$1(key) {
|
|
24663
|
-
var result = this.has(key) && delete this.__data__[key];
|
|
24664
|
-
this.size -= result ? 1 : 0;
|
|
24665
|
-
return result;
|
|
24666
|
-
}
|
|
24667
|
-
|
|
24668
|
-
var _hashDelete = hashDelete$1;
|
|
24669
|
-
|
|
24670
|
-
var nativeCreate$2 = _nativeCreate;
|
|
24671
|
-
|
|
24672
|
-
/** Used to stand-in for `undefined` hash values. */
|
|
24673
|
-
var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
|
|
24674
|
-
|
|
24675
|
-
/** Used for built-in method references. */
|
|
24676
|
-
var objectProto$8 = Object.prototype;
|
|
24677
|
-
|
|
24678
|
-
/** Used to check objects for own properties. */
|
|
24679
|
-
var hasOwnProperty$6 = objectProto$8.hasOwnProperty;
|
|
24680
|
-
|
|
24681
|
-
/**
|
|
24682
|
-
* Gets the hash value for `key`.
|
|
24683
|
-
*
|
|
24684
|
-
* @private
|
|
24685
|
-
* @name get
|
|
24686
|
-
* @memberOf Hash
|
|
24687
|
-
* @param {string} key The key of the value to get.
|
|
24688
|
-
* @returns {*} Returns the entry value.
|
|
24689
|
-
*/
|
|
24690
|
-
function hashGet$1(key) {
|
|
24691
|
-
var data = this.__data__;
|
|
24692
|
-
if (nativeCreate$2) {
|
|
24693
|
-
var result = data[key];
|
|
24694
|
-
return result === HASH_UNDEFINED$2 ? undefined : result;
|
|
24695
|
-
}
|
|
24696
|
-
return hasOwnProperty$6.call(data, key) ? data[key] : undefined;
|
|
24697
|
-
}
|
|
24698
|
-
|
|
24699
|
-
var _hashGet = hashGet$1;
|
|
24700
|
-
|
|
24701
|
-
var nativeCreate$1 = _nativeCreate;
|
|
24702
|
-
|
|
24703
|
-
/** Used for built-in method references. */
|
|
24704
|
-
var objectProto$7 = Object.prototype;
|
|
24705
|
-
|
|
24706
|
-
/** Used to check objects for own properties. */
|
|
24707
|
-
var hasOwnProperty$5 = objectProto$7.hasOwnProperty;
|
|
24708
|
-
|
|
24709
|
-
/**
|
|
24710
|
-
* Checks if a hash value for `key` exists.
|
|
24711
|
-
*
|
|
24712
|
-
* @private
|
|
24713
|
-
* @name has
|
|
24714
|
-
* @memberOf Hash
|
|
24715
|
-
* @param {string} key The key of the entry to check.
|
|
24716
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
24717
|
-
*/
|
|
24718
|
-
function hashHas$1(key) {
|
|
24719
|
-
var data = this.__data__;
|
|
24720
|
-
return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty$5.call(data, key);
|
|
24721
|
-
}
|
|
24722
|
-
|
|
24723
|
-
var _hashHas = hashHas$1;
|
|
24724
|
-
|
|
24725
|
-
var nativeCreate = _nativeCreate;
|
|
24726
|
-
|
|
24727
|
-
/** Used to stand-in for `undefined` hash values. */
|
|
24728
|
-
var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
|
|
24729
|
-
|
|
24730
|
-
/**
|
|
24731
|
-
* Sets the hash `key` to `value`.
|
|
24732
|
-
*
|
|
24733
|
-
* @private
|
|
24734
|
-
* @name set
|
|
24735
|
-
* @memberOf Hash
|
|
24736
|
-
* @param {string} key The key of the value to set.
|
|
24737
|
-
* @param {*} value The value to set.
|
|
24738
|
-
* @returns {Object} Returns the hash instance.
|
|
24739
|
-
*/
|
|
24740
|
-
function hashSet$1(key, value) {
|
|
24741
|
-
var data = this.__data__;
|
|
24742
|
-
this.size += this.has(key) ? 0 : 1;
|
|
24743
|
-
data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED$1 : value;
|
|
24744
|
-
return this;
|
|
24745
|
-
}
|
|
24746
|
-
|
|
24747
|
-
var _hashSet = hashSet$1;
|
|
24748
|
-
|
|
24749
|
-
var hashClear = _hashClear,
|
|
24750
|
-
hashDelete = _hashDelete,
|
|
24751
|
-
hashGet = _hashGet,
|
|
24752
|
-
hashHas = _hashHas,
|
|
24753
|
-
hashSet = _hashSet;
|
|
24754
|
-
|
|
24755
|
-
/**
|
|
24756
|
-
* Creates a hash object.
|
|
24757
|
-
*
|
|
24758
|
-
* @private
|
|
24759
|
-
* @constructor
|
|
24760
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
24761
|
-
*/
|
|
24762
|
-
function Hash$1(entries) {
|
|
24763
|
-
var index = -1,
|
|
24764
|
-
length = entries == null ? 0 : entries.length;
|
|
24765
|
-
|
|
24766
|
-
this.clear();
|
|
24767
|
-
while (++index < length) {
|
|
24768
|
-
var entry = entries[index];
|
|
24769
|
-
this.set(entry[0], entry[1]);
|
|
24770
|
-
}
|
|
24771
|
-
}
|
|
24772
|
-
|
|
24773
|
-
// Add methods to `Hash`.
|
|
24774
|
-
Hash$1.prototype.clear = hashClear;
|
|
24775
|
-
Hash$1.prototype['delete'] = hashDelete;
|
|
24776
|
-
Hash$1.prototype.get = hashGet;
|
|
24777
|
-
Hash$1.prototype.has = hashHas;
|
|
24778
|
-
Hash$1.prototype.set = hashSet;
|
|
24779
|
-
|
|
24780
|
-
var _Hash = Hash$1;
|
|
24781
|
-
|
|
24782
|
-
var Hash = _Hash,
|
|
24783
|
-
ListCache$2 = _ListCache,
|
|
24784
|
-
Map$3 = _Map;
|
|
24785
|
-
|
|
24786
|
-
/**
|
|
24787
|
-
* Removes all key-value entries from the map.
|
|
24788
|
-
*
|
|
24789
|
-
* @private
|
|
24790
|
-
* @name clear
|
|
24791
|
-
* @memberOf MapCache
|
|
24792
|
-
*/
|
|
24793
|
-
function mapCacheClear$1() {
|
|
24794
|
-
this.size = 0;
|
|
24795
|
-
this.__data__ = {
|
|
24796
|
-
'hash': new Hash,
|
|
24797
|
-
'map': new (Map$3 || ListCache$2),
|
|
24798
|
-
'string': new Hash
|
|
24799
|
-
};
|
|
24800
|
-
}
|
|
24801
|
-
|
|
24802
|
-
var _mapCacheClear = mapCacheClear$1;
|
|
24803
|
-
|
|
24804
|
-
/**
|
|
24805
|
-
* Checks if `value` is suitable for use as unique object key.
|
|
24806
|
-
*
|
|
24807
|
-
* @private
|
|
24808
|
-
* @param {*} value The value to check.
|
|
24809
|
-
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
|
24810
|
-
*/
|
|
24811
|
-
|
|
24812
|
-
function isKeyable$1(value) {
|
|
24813
|
-
var type = typeof value;
|
|
24814
|
-
return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
|
|
24815
|
-
? (value !== '__proto__')
|
|
24816
|
-
: (value === null);
|
|
24817
|
-
}
|
|
24818
|
-
|
|
24819
|
-
var _isKeyable = isKeyable$1;
|
|
24820
|
-
|
|
24821
|
-
var isKeyable = _isKeyable;
|
|
24822
|
-
|
|
24823
|
-
/**
|
|
24824
|
-
* Gets the data for `map`.
|
|
24825
|
-
*
|
|
24826
|
-
* @private
|
|
24827
|
-
* @param {Object} map The map to query.
|
|
24828
|
-
* @param {string} key The reference key.
|
|
24829
|
-
* @returns {*} Returns the map data.
|
|
24830
|
-
*/
|
|
24831
|
-
function getMapData$4(map, key) {
|
|
24832
|
-
var data = map.__data__;
|
|
24833
|
-
return isKeyable(key)
|
|
24834
|
-
? data[typeof key == 'string' ? 'string' : 'hash']
|
|
24835
|
-
: data.map;
|
|
24836
|
-
}
|
|
24837
|
-
|
|
24838
|
-
var _getMapData = getMapData$4;
|
|
24839
|
-
|
|
24840
|
-
var getMapData$3 = _getMapData;
|
|
24841
|
-
|
|
24842
|
-
/**
|
|
24843
|
-
* Removes `key` and its value from the map.
|
|
24844
|
-
*
|
|
24845
|
-
* @private
|
|
24846
|
-
* @name delete
|
|
24847
|
-
* @memberOf MapCache
|
|
24848
|
-
* @param {string} key The key of the value to remove.
|
|
24849
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
24850
|
-
*/
|
|
24851
|
-
function mapCacheDelete$1(key) {
|
|
24852
|
-
var result = getMapData$3(this, key)['delete'](key);
|
|
24853
|
-
this.size -= result ? 1 : 0;
|
|
24854
|
-
return result;
|
|
24855
|
-
}
|
|
24856
|
-
|
|
24857
|
-
var _mapCacheDelete = mapCacheDelete$1;
|
|
24858
|
-
|
|
24859
|
-
var getMapData$2 = _getMapData;
|
|
24860
|
-
|
|
24861
|
-
/**
|
|
24862
|
-
* Gets the map value for `key`.
|
|
24863
|
-
*
|
|
24864
|
-
* @private
|
|
24865
|
-
* @name get
|
|
24866
|
-
* @memberOf MapCache
|
|
24867
|
-
* @param {string} key The key of the value to get.
|
|
24868
|
-
* @returns {*} Returns the entry value.
|
|
24869
|
-
*/
|
|
24870
|
-
function mapCacheGet$1(key) {
|
|
24871
|
-
return getMapData$2(this, key).get(key);
|
|
24872
|
-
}
|
|
24873
|
-
|
|
24874
|
-
var _mapCacheGet = mapCacheGet$1;
|
|
24875
|
-
|
|
24876
|
-
var getMapData$1 = _getMapData;
|
|
24877
|
-
|
|
24878
|
-
/**
|
|
24879
|
-
* Checks if a map value for `key` exists.
|
|
24880
|
-
*
|
|
24881
|
-
* @private
|
|
24882
|
-
* @name has
|
|
24883
|
-
* @memberOf MapCache
|
|
24884
|
-
* @param {string} key The key of the entry to check.
|
|
24885
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
24886
|
-
*/
|
|
24887
|
-
function mapCacheHas$1(key) {
|
|
24888
|
-
return getMapData$1(this, key).has(key);
|
|
24889
|
-
}
|
|
24890
|
-
|
|
24891
|
-
var _mapCacheHas = mapCacheHas$1;
|
|
24892
|
-
|
|
24893
|
-
var getMapData = _getMapData;
|
|
24894
|
-
|
|
24895
|
-
/**
|
|
24896
|
-
* Sets the map `key` to `value`.
|
|
24897
|
-
*
|
|
24898
|
-
* @private
|
|
24899
|
-
* @name set
|
|
24900
|
-
* @memberOf MapCache
|
|
24901
|
-
* @param {string} key The key of the value to set.
|
|
24902
|
-
* @param {*} value The value to set.
|
|
24903
|
-
* @returns {Object} Returns the map cache instance.
|
|
24904
|
-
*/
|
|
24905
|
-
function mapCacheSet$1(key, value) {
|
|
24906
|
-
var data = getMapData(this, key),
|
|
24907
|
-
size = data.size;
|
|
24908
|
-
|
|
24909
|
-
data.set(key, value);
|
|
24910
|
-
this.size += data.size == size ? 0 : 1;
|
|
24911
|
-
return this;
|
|
24912
|
-
}
|
|
24913
|
-
|
|
24914
|
-
var _mapCacheSet = mapCacheSet$1;
|
|
24915
|
-
|
|
24916
|
-
var mapCacheClear = _mapCacheClear,
|
|
24917
|
-
mapCacheDelete = _mapCacheDelete,
|
|
24918
|
-
mapCacheGet = _mapCacheGet,
|
|
24919
|
-
mapCacheHas = _mapCacheHas,
|
|
24920
|
-
mapCacheSet = _mapCacheSet;
|
|
24921
|
-
|
|
24922
|
-
/**
|
|
24923
|
-
* Creates a map cache object to store key-value pairs.
|
|
24924
|
-
*
|
|
24925
|
-
* @private
|
|
24926
|
-
* @constructor
|
|
24927
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
24928
|
-
*/
|
|
24929
|
-
function MapCache$2(entries) {
|
|
24930
|
-
var index = -1,
|
|
24931
|
-
length = entries == null ? 0 : entries.length;
|
|
24932
|
-
|
|
24933
|
-
this.clear();
|
|
24934
|
-
while (++index < length) {
|
|
24935
|
-
var entry = entries[index];
|
|
24936
|
-
this.set(entry[0], entry[1]);
|
|
24937
|
-
}
|
|
24938
|
-
}
|
|
24939
|
-
|
|
24940
|
-
// Add methods to `MapCache`.
|
|
24941
|
-
MapCache$2.prototype.clear = mapCacheClear;
|
|
24942
|
-
MapCache$2.prototype['delete'] = mapCacheDelete;
|
|
24943
|
-
MapCache$2.prototype.get = mapCacheGet;
|
|
24944
|
-
MapCache$2.prototype.has = mapCacheHas;
|
|
24945
|
-
MapCache$2.prototype.set = mapCacheSet;
|
|
24946
|
-
|
|
24947
|
-
var _MapCache = MapCache$2;
|
|
24948
|
-
|
|
24949
|
-
var ListCache$1 = _ListCache,
|
|
24950
|
-
Map$2 = _Map,
|
|
24951
|
-
MapCache$1 = _MapCache;
|
|
24952
|
-
|
|
24953
|
-
/** Used as the size to enable large array optimizations. */
|
|
24954
|
-
var LARGE_ARRAY_SIZE = 200;
|
|
24955
|
-
|
|
24956
|
-
/**
|
|
24957
|
-
* Sets the stack `key` to `value`.
|
|
24958
|
-
*
|
|
24959
|
-
* @private
|
|
24960
|
-
* @name set
|
|
24961
|
-
* @memberOf Stack
|
|
24962
|
-
* @param {string} key The key of the value to set.
|
|
24963
|
-
* @param {*} value The value to set.
|
|
24964
|
-
* @returns {Object} Returns the stack cache instance.
|
|
24965
|
-
*/
|
|
24966
|
-
function stackSet$1(key, value) {
|
|
24967
|
-
var data = this.__data__;
|
|
24968
|
-
if (data instanceof ListCache$1) {
|
|
24969
|
-
var pairs = data.__data__;
|
|
24970
|
-
if (!Map$2 || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
|
|
24971
|
-
pairs.push([key, value]);
|
|
24972
|
-
this.size = ++data.size;
|
|
24973
|
-
return this;
|
|
24974
|
-
}
|
|
24975
|
-
data = this.__data__ = new MapCache$1(pairs);
|
|
24976
|
-
}
|
|
24977
|
-
data.set(key, value);
|
|
24978
|
-
this.size = data.size;
|
|
24979
|
-
return this;
|
|
24980
|
-
}
|
|
24981
|
-
|
|
24982
|
-
var _stackSet = stackSet$1;
|
|
24983
|
-
|
|
24984
|
-
var ListCache = _ListCache,
|
|
24985
|
-
stackClear = _stackClear,
|
|
24986
|
-
stackDelete = _stackDelete,
|
|
24987
|
-
stackGet = _stackGet,
|
|
24988
|
-
stackHas = _stackHas,
|
|
24989
|
-
stackSet = _stackSet;
|
|
24990
|
-
|
|
24991
|
-
/**
|
|
24992
|
-
* Creates a stack cache object to store key-value pairs.
|
|
24993
|
-
*
|
|
24994
|
-
* @private
|
|
24995
|
-
* @constructor
|
|
24996
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
24997
|
-
*/
|
|
24998
|
-
function Stack$1(entries) {
|
|
24999
|
-
var data = this.__data__ = new ListCache(entries);
|
|
25000
|
-
this.size = data.size;
|
|
25001
|
-
}
|
|
25002
|
-
|
|
25003
|
-
// Add methods to `Stack`.
|
|
25004
|
-
Stack$1.prototype.clear = stackClear;
|
|
25005
|
-
Stack$1.prototype['delete'] = stackDelete;
|
|
25006
|
-
Stack$1.prototype.get = stackGet;
|
|
25007
|
-
Stack$1.prototype.has = stackHas;
|
|
25008
|
-
Stack$1.prototype.set = stackSet;
|
|
25009
|
-
|
|
25010
|
-
var _Stack = Stack$1;
|
|
25011
|
-
|
|
25012
|
-
/** Used to stand-in for `undefined` hash values. */
|
|
25013
|
-
|
|
25014
|
-
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
25015
|
-
|
|
25016
|
-
/**
|
|
25017
|
-
* Adds `value` to the array cache.
|
|
25018
|
-
*
|
|
25019
|
-
* @private
|
|
25020
|
-
* @name add
|
|
25021
|
-
* @memberOf SetCache
|
|
25022
|
-
* @alias push
|
|
25023
|
-
* @param {*} value The value to cache.
|
|
25024
|
-
* @returns {Object} Returns the cache instance.
|
|
25025
|
-
*/
|
|
25026
|
-
function setCacheAdd$1(value) {
|
|
25027
|
-
this.__data__.set(value, HASH_UNDEFINED);
|
|
25028
|
-
return this;
|
|
25029
|
-
}
|
|
25030
|
-
|
|
25031
|
-
var _setCacheAdd = setCacheAdd$1;
|
|
25032
|
-
|
|
25033
|
-
/**
|
|
25034
|
-
* Checks if `value` is in the array cache.
|
|
25035
|
-
*
|
|
25036
|
-
* @private
|
|
25037
|
-
* @name has
|
|
25038
|
-
* @memberOf SetCache
|
|
25039
|
-
* @param {*} value The value to search for.
|
|
25040
|
-
* @returns {number} Returns `true` if `value` is found, else `false`.
|
|
25041
|
-
*/
|
|
25042
|
-
|
|
25043
|
-
function setCacheHas$1(value) {
|
|
25044
|
-
return this.__data__.has(value);
|
|
25045
|
-
}
|
|
25046
|
-
|
|
25047
|
-
var _setCacheHas = setCacheHas$1;
|
|
25048
|
-
|
|
25049
|
-
var MapCache = _MapCache,
|
|
25050
|
-
setCacheAdd = _setCacheAdd,
|
|
25051
|
-
setCacheHas = _setCacheHas;
|
|
25052
|
-
|
|
25053
|
-
/**
|
|
25054
|
-
*
|
|
25055
|
-
* Creates an array cache object to store unique values.
|
|
25056
|
-
*
|
|
25057
|
-
* @private
|
|
25058
|
-
* @constructor
|
|
25059
|
-
* @param {Array} [values] The values to cache.
|
|
25060
|
-
*/
|
|
25061
|
-
function SetCache$1(values) {
|
|
25062
|
-
var index = -1,
|
|
25063
|
-
length = values == null ? 0 : values.length;
|
|
25064
|
-
|
|
25065
|
-
this.__data__ = new MapCache;
|
|
25066
|
-
while (++index < length) {
|
|
25067
|
-
this.add(values[index]);
|
|
25068
|
-
}
|
|
25069
|
-
}
|
|
25070
|
-
|
|
25071
|
-
// Add methods to `SetCache`.
|
|
25072
|
-
SetCache$1.prototype.add = SetCache$1.prototype.push = setCacheAdd;
|
|
25073
|
-
SetCache$1.prototype.has = setCacheHas;
|
|
25074
|
-
|
|
25075
|
-
var _SetCache = SetCache$1;
|
|
25076
|
-
|
|
25077
|
-
/**
|
|
25078
|
-
* A specialized version of `_.some` for arrays without support for iteratee
|
|
25079
|
-
* shorthands.
|
|
25080
|
-
*
|
|
25081
|
-
* @private
|
|
25082
|
-
* @param {Array} [array] The array to iterate over.
|
|
25083
|
-
* @param {Function} predicate The function invoked per iteration.
|
|
25084
|
-
* @returns {boolean} Returns `true` if any element passes the predicate check,
|
|
25085
|
-
* else `false`.
|
|
25086
|
-
*/
|
|
25087
|
-
|
|
25088
|
-
function arraySome$1(array, predicate) {
|
|
25089
|
-
var index = -1,
|
|
25090
|
-
length = array == null ? 0 : array.length;
|
|
25091
|
-
|
|
25092
|
-
while (++index < length) {
|
|
25093
|
-
if (predicate(array[index], index, array)) {
|
|
25094
|
-
return true;
|
|
25095
|
-
}
|
|
25096
|
-
}
|
|
25097
|
-
return false;
|
|
25098
|
-
}
|
|
25099
|
-
|
|
25100
|
-
var _arraySome = arraySome$1;
|
|
25101
|
-
|
|
25102
|
-
/**
|
|
25103
|
-
* Checks if a `cache` value for `key` exists.
|
|
25104
|
-
*
|
|
25105
|
-
* @private
|
|
25106
|
-
* @param {Object} cache The cache to query.
|
|
25107
|
-
* @param {string} key The key of the entry to check.
|
|
25108
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
25109
|
-
*/
|
|
25110
|
-
|
|
25111
|
-
function cacheHas$1(cache, key) {
|
|
25112
|
-
return cache.has(key);
|
|
25113
|
-
}
|
|
25114
|
-
|
|
25115
|
-
var _cacheHas = cacheHas$1;
|
|
25116
|
-
|
|
25117
|
-
var SetCache = _SetCache,
|
|
25118
|
-
arraySome = _arraySome,
|
|
25119
|
-
cacheHas = _cacheHas;
|
|
25120
|
-
|
|
25121
|
-
/** Used to compose bitmasks for value comparisons. */
|
|
25122
|
-
var COMPARE_PARTIAL_FLAG$3 = 1,
|
|
25123
|
-
COMPARE_UNORDERED_FLAG$1 = 2;
|
|
25124
|
-
|
|
25125
|
-
/**
|
|
25126
|
-
* A specialized version of `baseIsEqualDeep` for arrays with support for
|
|
25127
|
-
* partial deep comparisons.
|
|
25128
|
-
*
|
|
25129
|
-
* @private
|
|
25130
|
-
* @param {Array} array The array to compare.
|
|
25131
|
-
* @param {Array} other The other array to compare.
|
|
25132
|
-
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
|
25133
|
-
* @param {Function} customizer The function to customize comparisons.
|
|
25134
|
-
* @param {Function} equalFunc The function to determine equivalents of values.
|
|
25135
|
-
* @param {Object} stack Tracks traversed `array` and `other` objects.
|
|
25136
|
-
* @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
|
|
25137
|
-
*/
|
|
25138
|
-
function equalArrays$2(array, other, bitmask, customizer, equalFunc, stack) {
|
|
25139
|
-
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3,
|
|
25140
|
-
arrLength = array.length,
|
|
25141
|
-
othLength = other.length;
|
|
25142
|
-
|
|
25143
|
-
if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
|
|
25144
|
-
return false;
|
|
25145
|
-
}
|
|
25146
|
-
// Check that cyclic values are equal.
|
|
25147
|
-
var arrStacked = stack.get(array);
|
|
25148
|
-
var othStacked = stack.get(other);
|
|
25149
|
-
if (arrStacked && othStacked) {
|
|
25150
|
-
return arrStacked == other && othStacked == array;
|
|
25151
|
-
}
|
|
25152
|
-
var index = -1,
|
|
25153
|
-
result = true,
|
|
25154
|
-
seen = (bitmask & COMPARE_UNORDERED_FLAG$1) ? new SetCache : undefined;
|
|
25155
|
-
|
|
25156
|
-
stack.set(array, other);
|
|
25157
|
-
stack.set(other, array);
|
|
25158
|
-
|
|
25159
|
-
// Ignore non-index properties.
|
|
25160
|
-
while (++index < arrLength) {
|
|
25161
|
-
var arrValue = array[index],
|
|
25162
|
-
othValue = other[index];
|
|
25163
|
-
|
|
25164
|
-
if (customizer) {
|
|
25165
|
-
var compared = isPartial
|
|
25166
|
-
? customizer(othValue, arrValue, index, other, array, stack)
|
|
25167
|
-
: customizer(arrValue, othValue, index, array, other, stack);
|
|
25168
|
-
}
|
|
25169
|
-
if (compared !== undefined) {
|
|
25170
|
-
if (compared) {
|
|
25171
|
-
continue;
|
|
25172
|
-
}
|
|
25173
|
-
result = false;
|
|
25174
|
-
break;
|
|
25175
|
-
}
|
|
25176
|
-
// Recursively compare arrays (susceptible to call stack limits).
|
|
25177
|
-
if (seen) {
|
|
25178
|
-
if (!arraySome(other, function(othValue, othIndex) {
|
|
25179
|
-
if (!cacheHas(seen, othIndex) &&
|
|
25180
|
-
(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
|
|
25181
|
-
return seen.push(othIndex);
|
|
25182
|
-
}
|
|
25183
|
-
})) {
|
|
25184
|
-
result = false;
|
|
25185
|
-
break;
|
|
25186
|
-
}
|
|
25187
|
-
} else if (!(
|
|
25188
|
-
arrValue === othValue ||
|
|
25189
|
-
equalFunc(arrValue, othValue, bitmask, customizer, stack)
|
|
25190
|
-
)) {
|
|
25191
|
-
result = false;
|
|
25192
|
-
break;
|
|
25193
|
-
}
|
|
25194
|
-
}
|
|
25195
|
-
stack['delete'](array);
|
|
25196
|
-
stack['delete'](other);
|
|
25197
|
-
return result;
|
|
25198
|
-
}
|
|
25199
|
-
|
|
25200
|
-
var _equalArrays = equalArrays$2;
|
|
25201
|
-
|
|
25202
|
-
var root$4 = _root;
|
|
25203
|
-
|
|
25204
|
-
/** Built-in value references. */
|
|
25205
|
-
var Uint8Array$2 = root$4.Uint8Array;
|
|
25206
|
-
|
|
25207
|
-
var _Uint8Array = Uint8Array$2;
|
|
25208
|
-
|
|
25209
|
-
/**
|
|
25210
|
-
* Converts `map` to its key-value pairs.
|
|
25211
|
-
*
|
|
25212
|
-
* @private
|
|
25213
|
-
* @param {Object} map The map to convert.
|
|
25214
|
-
* @returns {Array} Returns the key-value pairs.
|
|
25215
|
-
*/
|
|
25216
|
-
|
|
25217
|
-
function mapToArray$1(map) {
|
|
25218
|
-
var index = -1,
|
|
25219
|
-
result = Array(map.size);
|
|
25220
|
-
|
|
25221
|
-
map.forEach(function(value, key) {
|
|
25222
|
-
result[++index] = [key, value];
|
|
25223
|
-
});
|
|
25224
|
-
return result;
|
|
25225
|
-
}
|
|
25226
|
-
|
|
25227
|
-
var _mapToArray = mapToArray$1;
|
|
25228
|
-
|
|
25229
|
-
/**
|
|
25230
|
-
* Converts `set` to an array of its values.
|
|
25231
|
-
*
|
|
25232
|
-
* @private
|
|
25233
|
-
* @param {Object} set The set to convert.
|
|
25234
|
-
* @returns {Array} Returns the values.
|
|
25235
|
-
*/
|
|
25236
|
-
|
|
25237
|
-
function setToArray$1(set) {
|
|
25238
|
-
var index = -1,
|
|
25239
|
-
result = Array(set.size);
|
|
25240
|
-
|
|
25241
|
-
set.forEach(function(value) {
|
|
25242
|
-
result[++index] = value;
|
|
25243
|
-
});
|
|
25244
|
-
return result;
|
|
25245
|
-
}
|
|
25246
|
-
|
|
25247
|
-
var _setToArray = setToArray$1;
|
|
25248
|
-
|
|
25249
|
-
var Symbol$1 = _Symbol,
|
|
25250
|
-
Uint8Array$1 = _Uint8Array,
|
|
25251
|
-
eq = eq_1,
|
|
25252
|
-
equalArrays$1 = _equalArrays,
|
|
25253
|
-
mapToArray = _mapToArray,
|
|
25254
|
-
setToArray = _setToArray;
|
|
25255
|
-
|
|
25256
|
-
/** Used to compose bitmasks for value comparisons. */
|
|
25257
|
-
var COMPARE_PARTIAL_FLAG$2 = 1,
|
|
25258
|
-
COMPARE_UNORDERED_FLAG = 2;
|
|
25259
|
-
|
|
25260
|
-
/** `Object#toString` result references. */
|
|
25261
|
-
var boolTag$1 = '[object Boolean]',
|
|
25262
|
-
dateTag$1 = '[object Date]',
|
|
25263
|
-
errorTag$1 = '[object Error]',
|
|
25264
|
-
mapTag$2 = '[object Map]',
|
|
25265
|
-
numberTag$1 = '[object Number]',
|
|
25266
|
-
regexpTag$1 = '[object RegExp]',
|
|
25267
|
-
setTag$2 = '[object Set]',
|
|
25268
|
-
stringTag$1 = '[object String]',
|
|
25269
|
-
symbolTag = '[object Symbol]';
|
|
25270
|
-
|
|
25271
|
-
var arrayBufferTag$1 = '[object ArrayBuffer]',
|
|
25272
|
-
dataViewTag$2 = '[object DataView]';
|
|
25273
|
-
|
|
25274
|
-
/** Used to convert symbols to primitives and strings. */
|
|
25275
|
-
var symbolProto = Symbol$1 ? Symbol$1.prototype : undefined,
|
|
25276
|
-
symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
|
|
25277
|
-
|
|
25278
|
-
/**
|
|
25279
|
-
* A specialized version of `baseIsEqualDeep` for comparing objects of
|
|
25280
|
-
* the same `toStringTag`.
|
|
25281
|
-
*
|
|
25282
|
-
* **Note:** This function only supports comparing values with tags of
|
|
25283
|
-
* `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
|
|
25284
|
-
*
|
|
25285
|
-
* @private
|
|
25286
|
-
* @param {Object} object The object to compare.
|
|
25287
|
-
* @param {Object} other The other object to compare.
|
|
25288
|
-
* @param {string} tag The `toStringTag` of the objects to compare.
|
|
25289
|
-
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
|
25290
|
-
* @param {Function} customizer The function to customize comparisons.
|
|
25291
|
-
* @param {Function} equalFunc The function to determine equivalents of values.
|
|
25292
|
-
* @param {Object} stack Tracks traversed `object` and `other` objects.
|
|
25293
|
-
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
25294
|
-
*/
|
|
25295
|
-
function equalByTag$1(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
25296
|
-
switch (tag) {
|
|
25297
|
-
case dataViewTag$2:
|
|
25298
|
-
if ((object.byteLength != other.byteLength) ||
|
|
25299
|
-
(object.byteOffset != other.byteOffset)) {
|
|
25300
|
-
return false;
|
|
25301
|
-
}
|
|
25302
|
-
object = object.buffer;
|
|
25303
|
-
other = other.buffer;
|
|
25304
|
-
|
|
25305
|
-
case arrayBufferTag$1:
|
|
25306
|
-
if ((object.byteLength != other.byteLength) ||
|
|
25307
|
-
!equalFunc(new Uint8Array$1(object), new Uint8Array$1(other))) {
|
|
25308
|
-
return false;
|
|
25309
|
-
}
|
|
25310
|
-
return true;
|
|
25311
|
-
|
|
25312
|
-
case boolTag$1:
|
|
25313
|
-
case dateTag$1:
|
|
25314
|
-
case numberTag$1:
|
|
25315
|
-
// Coerce booleans to `1` or `0` and dates to milliseconds.
|
|
25316
|
-
// Invalid dates are coerced to `NaN`.
|
|
25317
|
-
return eq(+object, +other);
|
|
25318
|
-
|
|
25319
|
-
case errorTag$1:
|
|
25320
|
-
return object.name == other.name && object.message == other.message;
|
|
25321
|
-
|
|
25322
|
-
case regexpTag$1:
|
|
25323
|
-
case stringTag$1:
|
|
25324
|
-
// Coerce regexes to strings and treat strings, primitives and objects,
|
|
25325
|
-
// as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
|
|
25326
|
-
// for more details.
|
|
25327
|
-
return object == (other + '');
|
|
25328
|
-
|
|
25329
|
-
case mapTag$2:
|
|
25330
|
-
var convert = mapToArray;
|
|
25331
|
-
|
|
25332
|
-
case setTag$2:
|
|
25333
|
-
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$2;
|
|
25334
|
-
convert || (convert = setToArray);
|
|
25335
|
-
|
|
25336
|
-
if (object.size != other.size && !isPartial) {
|
|
25337
|
-
return false;
|
|
25338
|
-
}
|
|
25339
|
-
// Assume cyclic values are equal.
|
|
25340
|
-
var stacked = stack.get(object);
|
|
25341
|
-
if (stacked) {
|
|
25342
|
-
return stacked == other;
|
|
25343
|
-
}
|
|
25344
|
-
bitmask |= COMPARE_UNORDERED_FLAG;
|
|
25345
|
-
|
|
25346
|
-
// Recursively compare objects (susceptible to call stack limits).
|
|
25347
|
-
stack.set(object, other);
|
|
25348
|
-
var result = equalArrays$1(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
|
|
25349
|
-
stack['delete'](object);
|
|
25350
|
-
return result;
|
|
25351
|
-
|
|
25352
|
-
case symbolTag:
|
|
25353
|
-
if (symbolValueOf) {
|
|
25354
|
-
return symbolValueOf.call(object) == symbolValueOf.call(other);
|
|
25355
|
-
}
|
|
25356
|
-
}
|
|
25357
|
-
return false;
|
|
25358
|
-
}
|
|
25359
|
-
|
|
25360
|
-
var _equalByTag = equalByTag$1;
|
|
25361
|
-
|
|
25362
|
-
/**
|
|
25363
|
-
* Appends the elements of `values` to `array`.
|
|
25364
|
-
*
|
|
25365
|
-
* @private
|
|
25366
|
-
* @param {Array} array The array to modify.
|
|
25367
|
-
* @param {Array} values The values to append.
|
|
25368
|
-
* @returns {Array} Returns `array`.
|
|
25369
|
-
*/
|
|
25370
|
-
|
|
25371
|
-
function arrayPush$1(array, values) {
|
|
25372
|
-
var index = -1,
|
|
25373
|
-
length = values.length,
|
|
25374
|
-
offset = array.length;
|
|
25375
|
-
|
|
25376
|
-
while (++index < length) {
|
|
25377
|
-
array[offset + index] = values[index];
|
|
25378
|
-
}
|
|
25379
|
-
return array;
|
|
25380
|
-
}
|
|
25381
|
-
|
|
25382
|
-
var _arrayPush = arrayPush$1;
|
|
25383
|
-
|
|
25384
|
-
/**
|
|
25385
|
-
* Checks if `value` is classified as an `Array` object.
|
|
25386
|
-
*
|
|
25387
|
-
* @static
|
|
25388
|
-
* @memberOf _
|
|
25389
|
-
* @since 0.1.0
|
|
25390
|
-
* @category Lang
|
|
25391
|
-
* @param {*} value The value to check.
|
|
25392
|
-
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
25393
|
-
* @example
|
|
25394
|
-
*
|
|
25395
|
-
* _.isArray([1, 2, 3]);
|
|
25396
|
-
* // => true
|
|
25397
|
-
*
|
|
25398
|
-
* _.isArray(document.body.children);
|
|
25399
|
-
* // => false
|
|
25400
|
-
*
|
|
25401
|
-
* _.isArray('abc');
|
|
25402
|
-
* // => false
|
|
25403
|
-
*
|
|
25404
|
-
* _.isArray(_.noop);
|
|
25405
|
-
* // => false
|
|
25406
|
-
*/
|
|
25407
|
-
|
|
25408
|
-
var isArray$3 = Array.isArray;
|
|
25409
|
-
|
|
25410
|
-
var isArray_1 = isArray$3;
|
|
25411
|
-
|
|
25412
|
-
var arrayPush = _arrayPush,
|
|
25413
|
-
isArray$2 = isArray_1;
|
|
25414
|
-
|
|
25415
|
-
/**
|
|
25416
|
-
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
|
|
25417
|
-
* `keysFunc` and `symbolsFunc` to get the enumerable property names and
|
|
25418
|
-
* symbols of `object`.
|
|
25419
|
-
*
|
|
25420
|
-
* @private
|
|
25421
|
-
* @param {Object} object The object to query.
|
|
25422
|
-
* @param {Function} keysFunc The function to get the keys of `object`.
|
|
25423
|
-
* @param {Function} symbolsFunc The function to get the symbols of `object`.
|
|
25424
|
-
* @returns {Array} Returns the array of property names and symbols.
|
|
25425
|
-
*/
|
|
25426
|
-
function baseGetAllKeys$1(object, keysFunc, symbolsFunc) {
|
|
25427
|
-
var result = keysFunc(object);
|
|
25428
|
-
return isArray$2(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
25429
|
-
}
|
|
25430
|
-
|
|
25431
|
-
var _baseGetAllKeys = baseGetAllKeys$1;
|
|
25432
|
-
|
|
25433
|
-
/**
|
|
25434
|
-
* A specialized version of `_.filter` for arrays without support for
|
|
25435
|
-
* iteratee shorthands.
|
|
25436
|
-
*
|
|
25437
|
-
* @private
|
|
25438
|
-
* @param {Array} [array] The array to iterate over.
|
|
25439
|
-
* @param {Function} predicate The function invoked per iteration.
|
|
25440
|
-
* @returns {Array} Returns the new filtered array.
|
|
25441
|
-
*/
|
|
25442
|
-
|
|
25443
|
-
function arrayFilter$1(array, predicate) {
|
|
25444
|
-
var index = -1,
|
|
25445
|
-
length = array == null ? 0 : array.length,
|
|
25446
|
-
resIndex = 0,
|
|
25447
|
-
result = [];
|
|
25448
|
-
|
|
25449
|
-
while (++index < length) {
|
|
25450
|
-
var value = array[index];
|
|
25451
|
-
if (predicate(value, index, array)) {
|
|
25452
|
-
result[resIndex++] = value;
|
|
25453
|
-
}
|
|
25454
|
-
}
|
|
25455
|
-
return result;
|
|
25456
|
-
}
|
|
25457
|
-
|
|
25458
|
-
var _arrayFilter = arrayFilter$1;
|
|
25459
|
-
|
|
25460
|
-
/**
|
|
25461
|
-
* This method returns a new empty array.
|
|
25462
|
-
*
|
|
25463
|
-
* @static
|
|
25464
|
-
* @memberOf _
|
|
25465
|
-
* @since 4.13.0
|
|
25466
|
-
* @category Util
|
|
25467
|
-
* @returns {Array} Returns the new empty array.
|
|
25468
|
-
* @example
|
|
25469
|
-
*
|
|
25470
|
-
* var arrays = _.times(2, _.stubArray);
|
|
25471
|
-
*
|
|
25472
|
-
* console.log(arrays);
|
|
25473
|
-
* // => [[], []]
|
|
25474
|
-
*
|
|
25475
|
-
* console.log(arrays[0] === arrays[1]);
|
|
25476
|
-
* // => false
|
|
25477
|
-
*/
|
|
25478
|
-
|
|
25479
|
-
function stubArray$1() {
|
|
25480
|
-
return [];
|
|
25481
|
-
}
|
|
25482
|
-
|
|
25483
|
-
var stubArray_1 = stubArray$1;
|
|
25484
|
-
|
|
25485
|
-
var arrayFilter = _arrayFilter,
|
|
25486
|
-
stubArray = stubArray_1;
|
|
25487
|
-
|
|
25488
|
-
/** Used for built-in method references. */
|
|
25489
|
-
var objectProto$6 = Object.prototype;
|
|
25490
|
-
|
|
25491
|
-
/** Built-in value references. */
|
|
25492
|
-
var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
|
|
25493
|
-
|
|
25494
|
-
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
25495
|
-
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
25496
|
-
|
|
25497
|
-
/**
|
|
25498
|
-
* Creates an array of the own enumerable symbols of `object`.
|
|
25499
|
-
*
|
|
25500
|
-
* @private
|
|
25501
|
-
* @param {Object} object The object to query.
|
|
25502
|
-
* @returns {Array} Returns the array of symbols.
|
|
25503
|
-
*/
|
|
25504
|
-
var getSymbols$1 = !nativeGetSymbols ? stubArray : function(object) {
|
|
25505
|
-
if (object == null) {
|
|
25506
|
-
return [];
|
|
25507
|
-
}
|
|
25508
|
-
object = Object(object);
|
|
25509
|
-
return arrayFilter(nativeGetSymbols(object), function(symbol) {
|
|
25510
|
-
return propertyIsEnumerable$1.call(object, symbol);
|
|
25511
|
-
});
|
|
25512
|
-
};
|
|
25513
|
-
|
|
25514
|
-
var _getSymbols = getSymbols$1;
|
|
25515
|
-
|
|
25516
|
-
/**
|
|
25517
|
-
* The base implementation of `_.times` without support for iteratee shorthands
|
|
25518
|
-
* or max array length checks.
|
|
25519
|
-
*
|
|
25520
|
-
* @private
|
|
25521
|
-
* @param {number} n The number of times to invoke `iteratee`.
|
|
25522
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
25523
|
-
* @returns {Array} Returns the array of results.
|
|
25524
|
-
*/
|
|
25525
|
-
|
|
25526
|
-
function baseTimes$1(n, iteratee) {
|
|
25527
|
-
var index = -1,
|
|
25528
|
-
result = Array(n);
|
|
25529
|
-
|
|
25530
|
-
while (++index < n) {
|
|
25531
|
-
result[index] = iteratee(index);
|
|
25532
|
-
}
|
|
25533
|
-
return result;
|
|
25534
|
-
}
|
|
25535
|
-
|
|
25536
|
-
var _baseTimes = baseTimes$1;
|
|
25537
|
-
|
|
25538
|
-
/**
|
|
25539
|
-
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
25540
|
-
* and has a `typeof` result of "object".
|
|
25541
|
-
*
|
|
25542
|
-
* @static
|
|
25543
|
-
* @memberOf _
|
|
25544
|
-
* @since 4.0.0
|
|
25545
|
-
* @category Lang
|
|
25546
|
-
* @param {*} value The value to check.
|
|
25547
|
-
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
25548
|
-
* @example
|
|
25549
|
-
*
|
|
25550
|
-
* _.isObjectLike({});
|
|
25551
|
-
* // => true
|
|
25552
|
-
*
|
|
25553
|
-
* _.isObjectLike([1, 2, 3]);
|
|
25554
|
-
* // => true
|
|
25555
|
-
*
|
|
25556
|
-
* _.isObjectLike(_.noop);
|
|
25557
|
-
* // => false
|
|
25558
|
-
*
|
|
25559
|
-
* _.isObjectLike(null);
|
|
25560
|
-
* // => false
|
|
25561
|
-
*/
|
|
25562
|
-
|
|
25563
|
-
function isObjectLike$4(value) {
|
|
25564
|
-
return value != null && typeof value == 'object';
|
|
25565
|
-
}
|
|
25566
|
-
|
|
25567
|
-
var isObjectLike_1 = isObjectLike$4;
|
|
25568
|
-
|
|
25569
|
-
var baseGetTag$2 = _baseGetTag,
|
|
25570
|
-
isObjectLike$3 = isObjectLike_1;
|
|
25571
|
-
|
|
25572
|
-
/** `Object#toString` result references. */
|
|
25573
|
-
var argsTag$2 = '[object Arguments]';
|
|
25574
|
-
|
|
25575
|
-
/**
|
|
25576
|
-
* The base implementation of `_.isArguments`.
|
|
25577
|
-
*
|
|
25578
|
-
* @private
|
|
25579
|
-
* @param {*} value The value to check.
|
|
25580
|
-
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
25581
|
-
*/
|
|
25582
|
-
function baseIsArguments$1(value) {
|
|
25583
|
-
return isObjectLike$3(value) && baseGetTag$2(value) == argsTag$2;
|
|
25584
|
-
}
|
|
25585
|
-
|
|
25586
|
-
var _baseIsArguments = baseIsArguments$1;
|
|
25587
|
-
|
|
25588
|
-
var baseIsArguments = _baseIsArguments,
|
|
25589
|
-
isObjectLike$2 = isObjectLike_1;
|
|
25590
|
-
|
|
25591
|
-
/** Used for built-in method references. */
|
|
25592
|
-
var objectProto$5 = Object.prototype;
|
|
25593
|
-
|
|
25594
|
-
/** Used to check objects for own properties. */
|
|
25595
|
-
var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
|
|
25596
|
-
|
|
25597
|
-
/** Built-in value references. */
|
|
25598
|
-
var propertyIsEnumerable = objectProto$5.propertyIsEnumerable;
|
|
25599
|
-
|
|
25600
|
-
/**
|
|
25601
|
-
* Checks if `value` is likely an `arguments` object.
|
|
25602
|
-
*
|
|
25603
|
-
* @static
|
|
25604
|
-
* @memberOf _
|
|
25605
|
-
* @since 0.1.0
|
|
25606
|
-
* @category Lang
|
|
25607
|
-
* @param {*} value The value to check.
|
|
25608
|
-
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
25609
|
-
* else `false`.
|
|
25610
|
-
* @example
|
|
25611
|
-
*
|
|
25612
|
-
* _.isArguments(function() { return arguments; }());
|
|
25613
|
-
* // => true
|
|
25614
|
-
*
|
|
25615
|
-
* _.isArguments([1, 2, 3]);
|
|
25616
|
-
* // => false
|
|
25617
|
-
*/
|
|
25618
|
-
var isArguments$1 = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
|
|
25619
|
-
return isObjectLike$2(value) && hasOwnProperty$4.call(value, 'callee') &&
|
|
25620
|
-
!propertyIsEnumerable.call(value, 'callee');
|
|
25621
|
-
};
|
|
25622
|
-
|
|
25623
|
-
var isArguments_1 = isArguments$1;
|
|
25624
|
-
|
|
25625
|
-
var isBufferExports = {};
|
|
25626
|
-
var isBuffer$2 = {
|
|
25627
|
-
get exports(){ return isBufferExports; },
|
|
25628
|
-
set exports(v){ isBufferExports = v; },
|
|
25629
|
-
};
|
|
25630
|
-
|
|
25631
|
-
/**
|
|
25632
|
-
* This method returns `false`.
|
|
25633
|
-
*
|
|
25634
|
-
* @static
|
|
25635
|
-
* @memberOf _
|
|
25636
|
-
* @since 4.13.0
|
|
25637
|
-
* @category Util
|
|
25638
|
-
* @returns {boolean} Returns `false`.
|
|
25639
|
-
* @example
|
|
25640
|
-
*
|
|
25641
|
-
* _.times(2, _.stubFalse);
|
|
25642
|
-
* // => [false, false]
|
|
25643
|
-
*/
|
|
25644
|
-
|
|
25645
|
-
function stubFalse() {
|
|
25646
|
-
return false;
|
|
25647
|
-
}
|
|
25648
|
-
|
|
25649
|
-
var stubFalse_1 = stubFalse;
|
|
25650
|
-
|
|
25651
|
-
(function (module, exports) {
|
|
25652
|
-
var root = _root,
|
|
25653
|
-
stubFalse = stubFalse_1;
|
|
25654
|
-
|
|
25655
|
-
/** Detect free variable `exports`. */
|
|
25656
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
25657
|
-
|
|
25658
|
-
/** Detect free variable `module`. */
|
|
25659
|
-
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
25660
|
-
|
|
25661
|
-
/** Detect the popular CommonJS extension `module.exports`. */
|
|
25662
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
25663
|
-
|
|
25664
|
-
/** Built-in value references. */
|
|
25665
|
-
var Buffer = moduleExports ? root.Buffer : undefined;
|
|
25666
|
-
|
|
25667
|
-
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
25668
|
-
var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
|
|
25669
|
-
|
|
25670
|
-
/**
|
|
25671
|
-
* Checks if `value` is a buffer.
|
|
25672
|
-
*
|
|
25673
|
-
* @static
|
|
25674
|
-
* @memberOf _
|
|
25675
|
-
* @since 4.3.0
|
|
25676
|
-
* @category Lang
|
|
25677
|
-
* @param {*} value The value to check.
|
|
25678
|
-
* @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
|
|
25679
|
-
* @example
|
|
25680
|
-
*
|
|
25681
|
-
* _.isBuffer(new Buffer(2));
|
|
25682
|
-
* // => true
|
|
25683
|
-
*
|
|
25684
|
-
* _.isBuffer(new Uint8Array(2));
|
|
25685
|
-
* // => false
|
|
25686
|
-
*/
|
|
25687
|
-
var isBuffer = nativeIsBuffer || stubFalse;
|
|
25688
|
-
|
|
25689
|
-
module.exports = isBuffer;
|
|
25690
|
-
} (isBuffer$2, isBufferExports));
|
|
25691
|
-
|
|
25692
|
-
/** Used as references for various `Number` constants. */
|
|
25693
|
-
|
|
25694
|
-
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
25695
|
-
|
|
25696
|
-
/** Used to detect unsigned integer values. */
|
|
25697
|
-
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
25698
|
-
|
|
25699
|
-
/**
|
|
25700
|
-
* Checks if `value` is a valid array-like index.
|
|
25701
|
-
*
|
|
25702
|
-
* @private
|
|
25703
|
-
* @param {*} value The value to check.
|
|
25704
|
-
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
25705
|
-
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
25706
|
-
*/
|
|
25707
|
-
function isIndex$1(value, length) {
|
|
25708
|
-
var type = typeof value;
|
|
25709
|
-
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
25710
|
-
|
|
25711
|
-
return !!length &&
|
|
25712
|
-
(type == 'number' ||
|
|
25713
|
-
(type != 'symbol' && reIsUint.test(value))) &&
|
|
25714
|
-
(value > -1 && value % 1 == 0 && value < length);
|
|
25715
|
-
}
|
|
25716
|
-
|
|
25717
|
-
var _isIndex = isIndex$1;
|
|
25718
|
-
|
|
25719
|
-
/** Used as references for various `Number` constants. */
|
|
25720
|
-
|
|
25721
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
25722
|
-
|
|
25723
|
-
/**
|
|
25724
|
-
* Checks if `value` is a valid array-like length.
|
|
25725
|
-
*
|
|
25726
|
-
* **Note:** This method is loosely based on
|
|
25727
|
-
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
|
|
25728
|
-
*
|
|
25729
|
-
* @static
|
|
25730
|
-
* @memberOf _
|
|
25731
|
-
* @since 4.0.0
|
|
25732
|
-
* @category Lang
|
|
25733
|
-
* @param {*} value The value to check.
|
|
25734
|
-
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
|
25735
|
-
* @example
|
|
25736
|
-
*
|
|
25737
|
-
* _.isLength(3);
|
|
25738
|
-
* // => true
|
|
25739
|
-
*
|
|
25740
|
-
* _.isLength(Number.MIN_VALUE);
|
|
25741
|
-
* // => false
|
|
25742
|
-
*
|
|
25743
|
-
* _.isLength(Infinity);
|
|
25744
|
-
* // => false
|
|
25745
|
-
*
|
|
25746
|
-
* _.isLength('3');
|
|
25747
|
-
* // => false
|
|
25748
|
-
*/
|
|
25749
|
-
function isLength$2(value) {
|
|
25750
|
-
return typeof value == 'number' &&
|
|
25751
|
-
value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
25752
|
-
}
|
|
25753
|
-
|
|
25754
|
-
var isLength_1 = isLength$2;
|
|
25755
|
-
|
|
25756
|
-
var baseGetTag$1 = _baseGetTag,
|
|
25757
|
-
isLength$1 = isLength_1,
|
|
25758
|
-
isObjectLike$1 = isObjectLike_1;
|
|
25759
|
-
|
|
25760
|
-
/** `Object#toString` result references. */
|
|
25761
|
-
var argsTag$1 = '[object Arguments]',
|
|
25762
|
-
arrayTag$1 = '[object Array]',
|
|
25763
|
-
boolTag = '[object Boolean]',
|
|
25764
|
-
dateTag = '[object Date]',
|
|
25765
|
-
errorTag = '[object Error]',
|
|
25766
|
-
funcTag = '[object Function]',
|
|
25767
|
-
mapTag$1 = '[object Map]',
|
|
25768
|
-
numberTag = '[object Number]',
|
|
25769
|
-
objectTag$2 = '[object Object]',
|
|
25770
|
-
regexpTag = '[object RegExp]',
|
|
25771
|
-
setTag$1 = '[object Set]',
|
|
25772
|
-
stringTag = '[object String]',
|
|
25773
|
-
weakMapTag$1 = '[object WeakMap]';
|
|
25774
|
-
|
|
25775
|
-
var arrayBufferTag = '[object ArrayBuffer]',
|
|
25776
|
-
dataViewTag$1 = '[object DataView]',
|
|
25777
|
-
float32Tag = '[object Float32Array]',
|
|
25778
|
-
float64Tag = '[object Float64Array]',
|
|
25779
|
-
int8Tag = '[object Int8Array]',
|
|
25780
|
-
int16Tag = '[object Int16Array]',
|
|
25781
|
-
int32Tag = '[object Int32Array]',
|
|
25782
|
-
uint8Tag = '[object Uint8Array]',
|
|
25783
|
-
uint8ClampedTag = '[object Uint8ClampedArray]',
|
|
25784
|
-
uint16Tag = '[object Uint16Array]',
|
|
25785
|
-
uint32Tag = '[object Uint32Array]';
|
|
25786
|
-
|
|
25787
|
-
/** Used to identify `toStringTag` values of typed arrays. */
|
|
25788
|
-
var typedArrayTags = {};
|
|
25789
|
-
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
|
|
25790
|
-
typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
|
|
25791
|
-
typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
|
|
25792
|
-
typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
|
|
25793
|
-
typedArrayTags[uint32Tag] = true;
|
|
25794
|
-
typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] =
|
|
25795
|
-
typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
|
|
25796
|
-
typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag] =
|
|
25797
|
-
typedArrayTags[errorTag] = typedArrayTags[funcTag] =
|
|
25798
|
-
typedArrayTags[mapTag$1] = typedArrayTags[numberTag] =
|
|
25799
|
-
typedArrayTags[objectTag$2] = typedArrayTags[regexpTag] =
|
|
25800
|
-
typedArrayTags[setTag$1] = typedArrayTags[stringTag] =
|
|
25801
|
-
typedArrayTags[weakMapTag$1] = false;
|
|
25802
|
-
|
|
25803
|
-
/**
|
|
25804
|
-
* The base implementation of `_.isTypedArray` without Node.js optimizations.
|
|
25805
|
-
*
|
|
25806
|
-
* @private
|
|
25807
|
-
* @param {*} value The value to check.
|
|
25808
|
-
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
25809
|
-
*/
|
|
25810
|
-
function baseIsTypedArray$1(value) {
|
|
25811
|
-
return isObjectLike$1(value) &&
|
|
25812
|
-
isLength$1(value.length) && !!typedArrayTags[baseGetTag$1(value)];
|
|
25813
|
-
}
|
|
25814
|
-
|
|
25815
|
-
var _baseIsTypedArray = baseIsTypedArray$1;
|
|
25816
|
-
|
|
25817
|
-
/**
|
|
25818
|
-
* The base implementation of `_.unary` without support for storing metadata.
|
|
25819
|
-
*
|
|
25820
|
-
* @private
|
|
25821
|
-
* @param {Function} func The function to cap arguments for.
|
|
25822
|
-
* @returns {Function} Returns the new capped function.
|
|
25823
|
-
*/
|
|
25824
|
-
|
|
25825
|
-
function baseUnary$1(func) {
|
|
25826
|
-
return function(value) {
|
|
25827
|
-
return func(value);
|
|
25828
|
-
};
|
|
25829
|
-
}
|
|
25830
|
-
|
|
25831
|
-
var _baseUnary = baseUnary$1;
|
|
25832
|
-
|
|
25833
|
-
var _nodeUtilExports = {};
|
|
25834
|
-
var _nodeUtil = {
|
|
25835
|
-
get exports(){ return _nodeUtilExports; },
|
|
25836
|
-
set exports(v){ _nodeUtilExports = v; },
|
|
25837
|
-
};
|
|
25838
|
-
|
|
25839
|
-
(function (module, exports) {
|
|
25840
|
-
var freeGlobal = _freeGlobal;
|
|
25841
|
-
|
|
25842
|
-
/** Detect free variable `exports`. */
|
|
25843
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
25844
|
-
|
|
25845
|
-
/** Detect free variable `module`. */
|
|
25846
|
-
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
25847
|
-
|
|
25848
|
-
/** Detect the popular CommonJS extension `module.exports`. */
|
|
25849
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
25850
|
-
|
|
25851
|
-
/** Detect free variable `process` from Node.js. */
|
|
25852
|
-
var freeProcess = moduleExports && freeGlobal.process;
|
|
25853
|
-
|
|
25854
|
-
/** Used to access faster Node.js helpers. */
|
|
25855
|
-
var nodeUtil = (function() {
|
|
25856
|
-
try {
|
|
25857
|
-
// Use `util.types` for Node.js 10+.
|
|
25858
|
-
var types = freeModule && freeModule.require && freeModule.require('util').types;
|
|
25859
|
-
|
|
25860
|
-
if (types) {
|
|
25861
|
-
return types;
|
|
25862
|
-
}
|
|
25863
|
-
|
|
25864
|
-
// Legacy `process.binding('util')` for Node.js < 10.
|
|
25865
|
-
return freeProcess && freeProcess.binding && freeProcess.binding('util');
|
|
25866
|
-
} catch (e) {}
|
|
25867
|
-
}());
|
|
25868
|
-
|
|
25869
|
-
module.exports = nodeUtil;
|
|
25870
|
-
} (_nodeUtil, _nodeUtilExports));
|
|
25871
|
-
|
|
25872
|
-
var baseIsTypedArray = _baseIsTypedArray,
|
|
25873
|
-
baseUnary = _baseUnary,
|
|
25874
|
-
nodeUtil = _nodeUtilExports;
|
|
25875
|
-
|
|
25876
|
-
/* Node.js helper references. */
|
|
25877
|
-
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
25878
|
-
|
|
25879
|
-
/**
|
|
25880
|
-
* Checks if `value` is classified as a typed array.
|
|
25881
|
-
*
|
|
25882
|
-
* @static
|
|
25883
|
-
* @memberOf _
|
|
25884
|
-
* @since 3.0.0
|
|
25885
|
-
* @category Lang
|
|
25886
|
-
* @param {*} value The value to check.
|
|
25887
|
-
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
25888
|
-
* @example
|
|
25889
|
-
*
|
|
25890
|
-
* _.isTypedArray(new Uint8Array);
|
|
25891
|
-
* // => true
|
|
25892
|
-
*
|
|
25893
|
-
* _.isTypedArray([]);
|
|
25894
|
-
* // => false
|
|
25895
|
-
*/
|
|
25896
|
-
var isTypedArray$2 = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
25897
|
-
|
|
25898
|
-
var isTypedArray_1 = isTypedArray$2;
|
|
25899
|
-
|
|
25900
|
-
var baseTimes = _baseTimes,
|
|
25901
|
-
isArguments = isArguments_1,
|
|
25902
|
-
isArray$1 = isArray_1,
|
|
25903
|
-
isBuffer$1 = isBufferExports,
|
|
25904
|
-
isIndex = _isIndex,
|
|
25905
|
-
isTypedArray$1 = isTypedArray_1;
|
|
25906
|
-
|
|
25907
|
-
/** Used for built-in method references. */
|
|
25908
|
-
var objectProto$4 = Object.prototype;
|
|
25909
|
-
|
|
25910
|
-
/** Used to check objects for own properties. */
|
|
25911
|
-
var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
|
|
25912
|
-
|
|
25913
|
-
/**
|
|
25914
|
-
* Creates an array of the enumerable property names of the array-like `value`.
|
|
25915
|
-
*
|
|
25916
|
-
* @private
|
|
25917
|
-
* @param {*} value The value to query.
|
|
25918
|
-
* @param {boolean} inherited Specify returning inherited property names.
|
|
25919
|
-
* @returns {Array} Returns the array of property names.
|
|
25920
|
-
*/
|
|
25921
|
-
function arrayLikeKeys$1(value, inherited) {
|
|
25922
|
-
var isArr = isArray$1(value),
|
|
25923
|
-
isArg = !isArr && isArguments(value),
|
|
25924
|
-
isBuff = !isArr && !isArg && isBuffer$1(value),
|
|
25925
|
-
isType = !isArr && !isArg && !isBuff && isTypedArray$1(value),
|
|
25926
|
-
skipIndexes = isArr || isArg || isBuff || isType,
|
|
25927
|
-
result = skipIndexes ? baseTimes(value.length, String) : [],
|
|
25928
|
-
length = result.length;
|
|
25929
|
-
|
|
25930
|
-
for (var key in value) {
|
|
25931
|
-
if ((inherited || hasOwnProperty$3.call(value, key)) &&
|
|
25932
|
-
!(skipIndexes && (
|
|
25933
|
-
// Safari 9 has enumerable `arguments.length` in strict mode.
|
|
25934
|
-
key == 'length' ||
|
|
25935
|
-
// Node.js 0.10 has enumerable non-index properties on buffers.
|
|
25936
|
-
(isBuff && (key == 'offset' || key == 'parent')) ||
|
|
25937
|
-
// PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
25938
|
-
(isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
|
|
25939
|
-
// Skip index properties.
|
|
25940
|
-
isIndex(key, length)
|
|
25941
|
-
))) {
|
|
25942
|
-
result.push(key);
|
|
25943
|
-
}
|
|
25944
|
-
}
|
|
25945
|
-
return result;
|
|
25946
|
-
}
|
|
25947
|
-
|
|
25948
|
-
var _arrayLikeKeys = arrayLikeKeys$1;
|
|
25949
|
-
|
|
25950
|
-
/** Used for built-in method references. */
|
|
25951
|
-
|
|
25952
|
-
var objectProto$3 = Object.prototype;
|
|
25953
|
-
|
|
25954
|
-
/**
|
|
25955
|
-
* Checks if `value` is likely a prototype object.
|
|
25956
|
-
*
|
|
25957
|
-
* @private
|
|
25958
|
-
* @param {*} value The value to check.
|
|
25959
|
-
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
|
|
25960
|
-
*/
|
|
25961
|
-
function isPrototype$1(value) {
|
|
25962
|
-
var Ctor = value && value.constructor,
|
|
25963
|
-
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$3;
|
|
25964
|
-
|
|
25965
|
-
return value === proto;
|
|
25966
|
-
}
|
|
25967
|
-
|
|
25968
|
-
var _isPrototype = isPrototype$1;
|
|
25969
|
-
|
|
25970
|
-
/**
|
|
25971
|
-
* Creates a unary function that invokes `func` with its argument transformed.
|
|
25972
|
-
*
|
|
25973
|
-
* @private
|
|
25974
|
-
* @param {Function} func The function to wrap.
|
|
25975
|
-
* @param {Function} transform The argument transform.
|
|
25976
|
-
* @returns {Function} Returns the new function.
|
|
25977
|
-
*/
|
|
25978
|
-
|
|
25979
|
-
function overArg$1(func, transform) {
|
|
25980
|
-
return function(arg) {
|
|
25981
|
-
return func(transform(arg));
|
|
25982
|
-
};
|
|
25983
|
-
}
|
|
25984
|
-
|
|
25985
|
-
var _overArg = overArg$1;
|
|
25986
|
-
|
|
25987
|
-
var overArg = _overArg;
|
|
25988
|
-
|
|
25989
|
-
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
25990
|
-
var nativeKeys$1 = overArg(Object.keys, Object);
|
|
25991
|
-
|
|
25992
|
-
var _nativeKeys = nativeKeys$1;
|
|
25993
|
-
|
|
25994
|
-
var isPrototype = _isPrototype,
|
|
25995
|
-
nativeKeys = _nativeKeys;
|
|
25996
|
-
|
|
25997
|
-
/** Used for built-in method references. */
|
|
25998
|
-
var objectProto$2 = Object.prototype;
|
|
25999
|
-
|
|
26000
|
-
/** Used to check objects for own properties. */
|
|
26001
|
-
var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
26002
|
-
|
|
26003
|
-
/**
|
|
26004
|
-
* The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
|
|
26005
|
-
*
|
|
26006
|
-
* @private
|
|
26007
|
-
* @param {Object} object The object to query.
|
|
26008
|
-
* @returns {Array} Returns the array of property names.
|
|
26009
|
-
*/
|
|
26010
|
-
function baseKeys$1(object) {
|
|
26011
|
-
if (!isPrototype(object)) {
|
|
26012
|
-
return nativeKeys(object);
|
|
26013
|
-
}
|
|
26014
|
-
var result = [];
|
|
26015
|
-
for (var key in Object(object)) {
|
|
26016
|
-
if (hasOwnProperty$2.call(object, key) && key != 'constructor') {
|
|
26017
|
-
result.push(key);
|
|
26018
|
-
}
|
|
26019
|
-
}
|
|
26020
|
-
return result;
|
|
26021
|
-
}
|
|
26022
|
-
|
|
26023
|
-
var _baseKeys = baseKeys$1;
|
|
26024
|
-
|
|
26025
|
-
var isFunction = isFunction_1,
|
|
26026
|
-
isLength = isLength_1;
|
|
26027
|
-
|
|
26028
|
-
/**
|
|
26029
|
-
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
26030
|
-
* not a function and has a `value.length` that's an integer greater than or
|
|
26031
|
-
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
|
|
26032
|
-
*
|
|
26033
|
-
* @static
|
|
26034
|
-
* @memberOf _
|
|
26035
|
-
* @since 4.0.0
|
|
26036
|
-
* @category Lang
|
|
26037
|
-
* @param {*} value The value to check.
|
|
26038
|
-
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
|
26039
|
-
* @example
|
|
26040
|
-
*
|
|
26041
|
-
* _.isArrayLike([1, 2, 3]);
|
|
26042
|
-
* // => true
|
|
26043
|
-
*
|
|
26044
|
-
* _.isArrayLike(document.body.children);
|
|
26045
|
-
* // => true
|
|
26046
|
-
*
|
|
26047
|
-
* _.isArrayLike('abc');
|
|
26048
|
-
* // => true
|
|
26049
|
-
*
|
|
26050
|
-
* _.isArrayLike(_.noop);
|
|
26051
|
-
* // => false
|
|
26052
|
-
*/
|
|
26053
|
-
function isArrayLike$1(value) {
|
|
26054
|
-
return value != null && isLength(value.length) && !isFunction(value);
|
|
26055
|
-
}
|
|
26056
|
-
|
|
26057
|
-
var isArrayLike_1 = isArrayLike$1;
|
|
26058
|
-
|
|
26059
|
-
var arrayLikeKeys = _arrayLikeKeys,
|
|
26060
|
-
baseKeys = _baseKeys,
|
|
26061
|
-
isArrayLike = isArrayLike_1;
|
|
26062
|
-
|
|
26063
|
-
/**
|
|
26064
|
-
* Creates an array of the own enumerable property names of `object`.
|
|
26065
|
-
*
|
|
26066
|
-
* **Note:** Non-object values are coerced to objects. See the
|
|
26067
|
-
* [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
26068
|
-
* for more details.
|
|
26069
|
-
*
|
|
26070
|
-
* @static
|
|
26071
|
-
* @since 0.1.0
|
|
26072
|
-
* @memberOf _
|
|
26073
|
-
* @category Object
|
|
26074
|
-
* @param {Object} object The object to query.
|
|
26075
|
-
* @returns {Array} Returns the array of property names.
|
|
26076
|
-
* @example
|
|
26077
|
-
*
|
|
26078
|
-
* function Foo() {
|
|
26079
|
-
* this.a = 1;
|
|
26080
|
-
* this.b = 2;
|
|
26081
|
-
* }
|
|
26082
|
-
*
|
|
26083
|
-
* Foo.prototype.c = 3;
|
|
26084
|
-
*
|
|
26085
|
-
* _.keys(new Foo);
|
|
26086
|
-
* // => ['a', 'b'] (iteration order is not guaranteed)
|
|
26087
|
-
*
|
|
26088
|
-
* _.keys('hi');
|
|
26089
|
-
* // => ['0', '1']
|
|
26090
|
-
*/
|
|
26091
|
-
function keys$1(object) {
|
|
26092
|
-
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
26093
|
-
}
|
|
26094
|
-
|
|
26095
|
-
var keys_1 = keys$1;
|
|
26096
|
-
|
|
26097
|
-
var baseGetAllKeys = _baseGetAllKeys,
|
|
26098
|
-
getSymbols = _getSymbols,
|
|
26099
|
-
keys = keys_1;
|
|
26100
|
-
|
|
26101
|
-
/**
|
|
26102
|
-
* Creates an array of own enumerable property names and symbols of `object`.
|
|
26103
|
-
*
|
|
26104
|
-
* @private
|
|
26105
|
-
* @param {Object} object The object to query.
|
|
26106
|
-
* @returns {Array} Returns the array of property names and symbols.
|
|
26107
|
-
*/
|
|
26108
|
-
function getAllKeys$1(object) {
|
|
26109
|
-
return baseGetAllKeys(object, keys, getSymbols);
|
|
26110
|
-
}
|
|
26111
|
-
|
|
26112
|
-
var _getAllKeys = getAllKeys$1;
|
|
26113
|
-
|
|
26114
|
-
var getAllKeys = _getAllKeys;
|
|
26115
|
-
|
|
26116
|
-
/** Used to compose bitmasks for value comparisons. */
|
|
26117
|
-
var COMPARE_PARTIAL_FLAG$1 = 1;
|
|
26118
|
-
|
|
26119
|
-
/** Used for built-in method references. */
|
|
26120
|
-
var objectProto$1 = Object.prototype;
|
|
26121
|
-
|
|
26122
|
-
/** Used to check objects for own properties. */
|
|
26123
|
-
var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
26124
|
-
|
|
26125
|
-
/**
|
|
26126
|
-
* A specialized version of `baseIsEqualDeep` for objects with support for
|
|
26127
|
-
* partial deep comparisons.
|
|
26128
|
-
*
|
|
26129
|
-
* @private
|
|
26130
|
-
* @param {Object} object The object to compare.
|
|
26131
|
-
* @param {Object} other The other object to compare.
|
|
26132
|
-
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
|
26133
|
-
* @param {Function} customizer The function to customize comparisons.
|
|
26134
|
-
* @param {Function} equalFunc The function to determine equivalents of values.
|
|
26135
|
-
* @param {Object} stack Tracks traversed `object` and `other` objects.
|
|
26136
|
-
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
26137
|
-
*/
|
|
26138
|
-
function equalObjects$1(object, other, bitmask, customizer, equalFunc, stack) {
|
|
26139
|
-
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$1,
|
|
26140
|
-
objProps = getAllKeys(object),
|
|
26141
|
-
objLength = objProps.length,
|
|
26142
|
-
othProps = getAllKeys(other),
|
|
26143
|
-
othLength = othProps.length;
|
|
26144
|
-
|
|
26145
|
-
if (objLength != othLength && !isPartial) {
|
|
26146
|
-
return false;
|
|
26147
|
-
}
|
|
26148
|
-
var index = objLength;
|
|
26149
|
-
while (index--) {
|
|
26150
|
-
var key = objProps[index];
|
|
26151
|
-
if (!(isPartial ? key in other : hasOwnProperty$1.call(other, key))) {
|
|
26152
|
-
return false;
|
|
26153
|
-
}
|
|
26154
|
-
}
|
|
26155
|
-
// Check that cyclic values are equal.
|
|
26156
|
-
var objStacked = stack.get(object);
|
|
26157
|
-
var othStacked = stack.get(other);
|
|
26158
|
-
if (objStacked && othStacked) {
|
|
26159
|
-
return objStacked == other && othStacked == object;
|
|
26160
|
-
}
|
|
26161
|
-
var result = true;
|
|
26162
|
-
stack.set(object, other);
|
|
26163
|
-
stack.set(other, object);
|
|
26164
|
-
|
|
26165
|
-
var skipCtor = isPartial;
|
|
26166
|
-
while (++index < objLength) {
|
|
26167
|
-
key = objProps[index];
|
|
26168
|
-
var objValue = object[key],
|
|
26169
|
-
othValue = other[key];
|
|
26170
|
-
|
|
26171
|
-
if (customizer) {
|
|
26172
|
-
var compared = isPartial
|
|
26173
|
-
? customizer(othValue, objValue, key, other, object, stack)
|
|
26174
|
-
: customizer(objValue, othValue, key, object, other, stack);
|
|
26175
|
-
}
|
|
26176
|
-
// Recursively compare objects (susceptible to call stack limits).
|
|
26177
|
-
if (!(compared === undefined
|
|
26178
|
-
? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
|
|
26179
|
-
: compared
|
|
26180
|
-
)) {
|
|
26181
|
-
result = false;
|
|
26182
|
-
break;
|
|
26183
|
-
}
|
|
26184
|
-
skipCtor || (skipCtor = key == 'constructor');
|
|
26185
|
-
}
|
|
26186
|
-
if (result && !skipCtor) {
|
|
26187
|
-
var objCtor = object.constructor,
|
|
26188
|
-
othCtor = other.constructor;
|
|
26189
|
-
|
|
26190
|
-
// Non `Object` object instances with different constructors are not equal.
|
|
26191
|
-
if (objCtor != othCtor &&
|
|
26192
|
-
('constructor' in object && 'constructor' in other) &&
|
|
26193
|
-
!(typeof objCtor == 'function' && objCtor instanceof objCtor &&
|
|
26194
|
-
typeof othCtor == 'function' && othCtor instanceof othCtor)) {
|
|
26195
|
-
result = false;
|
|
26196
|
-
}
|
|
26197
|
-
}
|
|
26198
|
-
stack['delete'](object);
|
|
26199
|
-
stack['delete'](other);
|
|
26200
|
-
return result;
|
|
26201
|
-
}
|
|
26202
|
-
|
|
26203
|
-
var _equalObjects = equalObjects$1;
|
|
26204
|
-
|
|
26205
|
-
var getNative$3 = _getNative,
|
|
26206
|
-
root$3 = _root;
|
|
26207
|
-
|
|
26208
|
-
/* Built-in method references that are verified to be native. */
|
|
26209
|
-
var DataView$1 = getNative$3(root$3, 'DataView');
|
|
26210
|
-
|
|
26211
|
-
var _DataView = DataView$1;
|
|
26212
|
-
|
|
26213
|
-
var getNative$2 = _getNative,
|
|
26214
|
-
root$2 = _root;
|
|
26215
|
-
|
|
26216
|
-
/* Built-in method references that are verified to be native. */
|
|
26217
|
-
var Promise$2 = getNative$2(root$2, 'Promise');
|
|
26218
|
-
|
|
26219
|
-
var _Promise = Promise$2;
|
|
26220
|
-
|
|
26221
|
-
var getNative$1 = _getNative,
|
|
26222
|
-
root$1 = _root;
|
|
26223
|
-
|
|
26224
|
-
/* Built-in method references that are verified to be native. */
|
|
26225
|
-
var Set$2 = getNative$1(root$1, 'Set');
|
|
26226
|
-
|
|
26227
|
-
var _Set = Set$2;
|
|
26228
|
-
|
|
26229
|
-
var getNative = _getNative,
|
|
26230
|
-
root = _root;
|
|
26231
|
-
|
|
26232
|
-
/* Built-in method references that are verified to be native. */
|
|
26233
|
-
var WeakMap$2 = getNative(root, 'WeakMap');
|
|
26234
|
-
|
|
26235
|
-
var _WeakMap = WeakMap$2;
|
|
26236
|
-
|
|
26237
|
-
var DataView = _DataView,
|
|
26238
|
-
Map$1 = _Map,
|
|
26239
|
-
Promise$1 = _Promise,
|
|
26240
|
-
Set$1 = _Set,
|
|
26241
|
-
WeakMap$1 = _WeakMap,
|
|
26242
|
-
baseGetTag = _baseGetTag,
|
|
26243
|
-
toSource = _toSource;
|
|
26244
|
-
|
|
26245
|
-
/** `Object#toString` result references. */
|
|
26246
|
-
var mapTag = '[object Map]',
|
|
26247
|
-
objectTag$1 = '[object Object]',
|
|
26248
|
-
promiseTag = '[object Promise]',
|
|
26249
|
-
setTag = '[object Set]',
|
|
26250
|
-
weakMapTag = '[object WeakMap]';
|
|
26251
|
-
|
|
26252
|
-
var dataViewTag = '[object DataView]';
|
|
26253
|
-
|
|
26254
|
-
/** Used to detect maps, sets, and weakmaps. */
|
|
26255
|
-
var dataViewCtorString = toSource(DataView),
|
|
26256
|
-
mapCtorString = toSource(Map$1),
|
|
26257
|
-
promiseCtorString = toSource(Promise$1),
|
|
26258
|
-
setCtorString = toSource(Set$1),
|
|
26259
|
-
weakMapCtorString = toSource(WeakMap$1);
|
|
26260
|
-
|
|
26261
|
-
/**
|
|
26262
|
-
* Gets the `toStringTag` of `value`.
|
|
26263
|
-
*
|
|
26264
|
-
* @private
|
|
26265
|
-
* @param {*} value The value to query.
|
|
26266
|
-
* @returns {string} Returns the `toStringTag`.
|
|
26267
|
-
*/
|
|
26268
|
-
var getTag$1 = baseGetTag;
|
|
26269
|
-
|
|
26270
|
-
// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
|
|
26271
|
-
if ((DataView && getTag$1(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
|
|
26272
|
-
(Map$1 && getTag$1(new Map$1) != mapTag) ||
|
|
26273
|
-
(Promise$1 && getTag$1(Promise$1.resolve()) != promiseTag) ||
|
|
26274
|
-
(Set$1 && getTag$1(new Set$1) != setTag) ||
|
|
26275
|
-
(WeakMap$1 && getTag$1(new WeakMap$1) != weakMapTag)) {
|
|
26276
|
-
getTag$1 = function(value) {
|
|
26277
|
-
var result = baseGetTag(value),
|
|
26278
|
-
Ctor = result == objectTag$1 ? value.constructor : undefined,
|
|
26279
|
-
ctorString = Ctor ? toSource(Ctor) : '';
|
|
26280
|
-
|
|
26281
|
-
if (ctorString) {
|
|
26282
|
-
switch (ctorString) {
|
|
26283
|
-
case dataViewCtorString: return dataViewTag;
|
|
26284
|
-
case mapCtorString: return mapTag;
|
|
26285
|
-
case promiseCtorString: return promiseTag;
|
|
26286
|
-
case setCtorString: return setTag;
|
|
26287
|
-
case weakMapCtorString: return weakMapTag;
|
|
26288
|
-
}
|
|
26289
|
-
}
|
|
26290
|
-
return result;
|
|
26291
|
-
};
|
|
26292
|
-
}
|
|
26293
|
-
|
|
26294
|
-
var _getTag = getTag$1;
|
|
26295
|
-
|
|
26296
|
-
var Stack = _Stack,
|
|
26297
|
-
equalArrays = _equalArrays,
|
|
26298
|
-
equalByTag = _equalByTag,
|
|
26299
|
-
equalObjects = _equalObjects,
|
|
26300
|
-
getTag = _getTag,
|
|
26301
|
-
isArray = isArray_1,
|
|
26302
|
-
isBuffer = isBufferExports,
|
|
26303
|
-
isTypedArray = isTypedArray_1;
|
|
26304
|
-
|
|
26305
|
-
/** Used to compose bitmasks for value comparisons. */
|
|
26306
|
-
var COMPARE_PARTIAL_FLAG = 1;
|
|
26307
|
-
|
|
26308
|
-
/** `Object#toString` result references. */
|
|
26309
|
-
var argsTag = '[object Arguments]',
|
|
26310
|
-
arrayTag = '[object Array]',
|
|
26311
|
-
objectTag = '[object Object]';
|
|
26312
|
-
|
|
26313
|
-
/** Used for built-in method references. */
|
|
26314
|
-
var objectProto = Object.prototype;
|
|
26315
|
-
|
|
26316
|
-
/** Used to check objects for own properties. */
|
|
26317
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
26318
|
-
|
|
26319
|
-
/**
|
|
26320
|
-
* A specialized version of `baseIsEqual` for arrays and objects which performs
|
|
26321
|
-
* deep comparisons and tracks traversed objects enabling objects with circular
|
|
26322
|
-
* references to be compared.
|
|
26323
|
-
*
|
|
26324
|
-
* @private
|
|
26325
|
-
* @param {Object} object The object to compare.
|
|
26326
|
-
* @param {Object} other The other object to compare.
|
|
26327
|
-
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
|
26328
|
-
* @param {Function} customizer The function to customize comparisons.
|
|
26329
|
-
* @param {Function} equalFunc The function to determine equivalents of values.
|
|
26330
|
-
* @param {Object} [stack] Tracks traversed `object` and `other` objects.
|
|
26331
|
-
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
26332
|
-
*/
|
|
26333
|
-
function baseIsEqualDeep$1(object, other, bitmask, customizer, equalFunc, stack) {
|
|
26334
|
-
var objIsArr = isArray(object),
|
|
26335
|
-
othIsArr = isArray(other),
|
|
26336
|
-
objTag = objIsArr ? arrayTag : getTag(object),
|
|
26337
|
-
othTag = othIsArr ? arrayTag : getTag(other);
|
|
26338
|
-
|
|
26339
|
-
objTag = objTag == argsTag ? objectTag : objTag;
|
|
26340
|
-
othTag = othTag == argsTag ? objectTag : othTag;
|
|
26341
|
-
|
|
26342
|
-
var objIsObj = objTag == objectTag,
|
|
26343
|
-
othIsObj = othTag == objectTag,
|
|
26344
|
-
isSameTag = objTag == othTag;
|
|
26345
|
-
|
|
26346
|
-
if (isSameTag && isBuffer(object)) {
|
|
26347
|
-
if (!isBuffer(other)) {
|
|
26348
|
-
return false;
|
|
26349
|
-
}
|
|
26350
|
-
objIsArr = true;
|
|
26351
|
-
objIsObj = false;
|
|
26352
|
-
}
|
|
26353
|
-
if (isSameTag && !objIsObj) {
|
|
26354
|
-
stack || (stack = new Stack);
|
|
26355
|
-
return (objIsArr || isTypedArray(object))
|
|
26356
|
-
? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
|
|
26357
|
-
: equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
26358
|
-
}
|
|
26359
|
-
if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
|
|
26360
|
-
var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
|
|
26361
|
-
othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
|
|
26362
|
-
|
|
26363
|
-
if (objIsWrapped || othIsWrapped) {
|
|
26364
|
-
var objUnwrapped = objIsWrapped ? object.value() : object,
|
|
26365
|
-
othUnwrapped = othIsWrapped ? other.value() : other;
|
|
26366
|
-
|
|
26367
|
-
stack || (stack = new Stack);
|
|
26368
|
-
return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
|
|
26369
|
-
}
|
|
26370
|
-
}
|
|
26371
|
-
if (!isSameTag) {
|
|
26372
|
-
return false;
|
|
26373
|
-
}
|
|
26374
|
-
stack || (stack = new Stack);
|
|
26375
|
-
return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
|
|
26376
|
-
}
|
|
26377
|
-
|
|
26378
|
-
var _baseIsEqualDeep = baseIsEqualDeep$1;
|
|
26379
|
-
|
|
26380
|
-
var baseIsEqualDeep = _baseIsEqualDeep,
|
|
26381
|
-
isObjectLike = isObjectLike_1;
|
|
26382
|
-
|
|
26383
|
-
/**
|
|
26384
|
-
* The base implementation of `_.isEqual` which supports partial comparisons
|
|
26385
|
-
* and tracks traversed objects.
|
|
26386
|
-
*
|
|
26387
|
-
* @private
|
|
26388
|
-
* @param {*} value The value to compare.
|
|
26389
|
-
* @param {*} other The other value to compare.
|
|
26390
|
-
* @param {boolean} bitmask The bitmask flags.
|
|
26391
|
-
* 1 - Unordered comparison
|
|
26392
|
-
* 2 - Partial comparison
|
|
26393
|
-
* @param {Function} [customizer] The function to customize comparisons.
|
|
26394
|
-
* @param {Object} [stack] Tracks traversed `value` and `other` objects.
|
|
26395
|
-
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
26396
|
-
*/
|
|
26397
|
-
function baseIsEqual$1(value, other, bitmask, customizer, stack) {
|
|
26398
|
-
if (value === other) {
|
|
26399
|
-
return true;
|
|
26400
|
-
}
|
|
26401
|
-
if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
|
|
26402
|
-
return value !== value && other !== other;
|
|
26403
|
-
}
|
|
26404
|
-
return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual$1, stack);
|
|
26405
|
-
}
|
|
26406
|
-
|
|
26407
|
-
var _baseIsEqual = baseIsEqual$1;
|
|
26408
|
-
|
|
26409
|
-
var baseIsEqual = _baseIsEqual;
|
|
26410
|
-
|
|
26411
|
-
/**
|
|
26412
|
-
* Performs a deep comparison between two values to determine if they are
|
|
26413
|
-
* equivalent.
|
|
26414
|
-
*
|
|
26415
|
-
* **Note:** This method supports comparing arrays, array buffers, booleans,
|
|
26416
|
-
* date objects, error objects, maps, numbers, `Object` objects, regexes,
|
|
26417
|
-
* sets, strings, symbols, and typed arrays. `Object` objects are compared
|
|
26418
|
-
* by their own, not inherited, enumerable properties. Functions and DOM
|
|
26419
|
-
* nodes are compared by strict equality, i.e. `===`.
|
|
26420
|
-
*
|
|
26421
|
-
* @static
|
|
26422
|
-
* @memberOf _
|
|
26423
|
-
* @since 0.1.0
|
|
26424
|
-
* @category Lang
|
|
26425
|
-
* @param {*} value The value to compare.
|
|
26426
|
-
* @param {*} other The other value to compare.
|
|
26427
|
-
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
26428
|
-
* @example
|
|
26429
|
-
*
|
|
26430
|
-
* var object = { 'a': 1 };
|
|
26431
|
-
* var other = { 'a': 1 };
|
|
26432
|
-
*
|
|
26433
|
-
* _.isEqual(object, other);
|
|
26434
|
-
* // => true
|
|
26435
|
-
*
|
|
26436
|
-
* object === other;
|
|
26437
|
-
* // => false
|
|
26438
|
-
*/
|
|
26439
|
-
function isEqual(value, other) {
|
|
26440
|
-
return baseIsEqual(value, other);
|
|
26441
|
-
}
|
|
26442
|
-
|
|
26443
|
-
var isEqual_1 = isEqual;
|
|
26444
|
-
|
|
26445
|
-
/**
|
|
26446
|
-
* Override for the TranslatableString from RJSF
|
|
26447
|
-
*/
|
|
26448
|
-
var translateString = function (stringToTranslate, params) {
|
|
26449
|
-
switch (stringToTranslate) {
|
|
26450
|
-
case utils.TranslatableString.NewStringDefault:
|
|
26451
|
-
// Use an empty string for the new additionalProperties string default value
|
|
26452
|
-
return '';
|
|
26453
|
-
default:
|
|
26454
|
-
return utils.englishStringTranslator(stringToTranslate, params);
|
|
26455
|
-
}
|
|
26456
|
-
};
|
|
26457
|
-
var getCommonSelectStyle = function (styleOverrides) {
|
|
26458
|
-
if (styleOverrides === void 0) { styleOverrides = {}; }
|
|
26459
|
-
return __assign({ menuList: function (base) { return (__assign(__assign({}, base), { paddingTop: 0, paddingBottom: 0 })); }, control: function (base, state) { return (__assign(__assign({}, base), { minHeight: '32px', boxShadow: 'none', backgroundColor: 'var(--N50)', border: state.isFocused ? '1px solid var(--B500)' : '1px solid var(--N200)', cursor: 'pointer' })); }, option: function (base, state) { return (__assign(__assign({}, base), { color: 'var(--N900)', backgroundColor: state.isFocused ? 'var(--N100)' : 'white', padding: '10px 12px' })); }, dropdownIndicator: function (base, state) { return (__assign(__assign({}, base), { color: 'var(--N400)', padding: '0 8px', transition: 'all .2s ease', transform: state.selectProps.menuIsOpen ? 'rotate(180deg)' : 'rotate(0deg)' })); }, valueContainer: function (base) { return (__assign(__assign({}, base), { padding: '0 8px', fontWeight: '400' })); }, loadingMessage: function (base) { return (__assign(__assign({}, base), { color: 'var(--N600)' })); }, noOptionsMessage: function (base) { return (__assign(__assign({}, base), { color: 'var(--N600)' })); } }, styleOverrides);
|
|
26460
|
-
};
|
|
26461
|
-
/**
|
|
26462
|
-
* Returns the redirection props for a url
|
|
26463
|
-
*/
|
|
26464
|
-
var getRedirectionProps = function (url) {
|
|
26465
|
-
try {
|
|
26466
|
-
// The URL is validated when added using the form
|
|
26467
|
-
var isInternalUrl = new URL(url).origin === window.location.origin;
|
|
26468
|
-
return {
|
|
26469
|
-
href: url,
|
|
26470
|
-
target: isInternalUrl ? '_self' : '_blank',
|
|
26471
|
-
rel: isInternalUrl ? undefined : 'external noreferrer',
|
|
26472
|
-
url: url,
|
|
26473
|
-
};
|
|
26474
|
-
}
|
|
26475
|
-
catch (err) {
|
|
26476
|
-
return {
|
|
26477
|
-
href: url,
|
|
26478
|
-
target: '_blank',
|
|
26479
|
-
url: "".concat(url, " (Invalid URL)"),
|
|
26480
|
-
};
|
|
26481
|
-
}
|
|
26482
|
-
};
|
|
26483
|
-
/**
|
|
26484
|
-
* Infers the type for json schema from value type
|
|
26485
|
-
*/
|
|
26486
|
-
var getInferredTypeFromValueType = function (value) {
|
|
26487
|
-
var valueType = typeof value;
|
|
26488
|
-
switch (valueType) {
|
|
26489
|
-
case 'boolean':
|
|
26490
|
-
case 'string':
|
|
26491
|
-
case 'number':
|
|
26492
|
-
return valueType;
|
|
26493
|
-
case 'object':
|
|
26494
|
-
if (Array.isArray(value)) {
|
|
26495
|
-
return 'array';
|
|
26496
|
-
}
|
|
26497
|
-
if (value === null) {
|
|
26498
|
-
return 'null';
|
|
26499
|
-
}
|
|
26500
|
-
return valueType;
|
|
26501
|
-
default:
|
|
26502
|
-
// Unsupported or undefined types
|
|
26503
|
-
return 'null';
|
|
26504
|
-
}
|
|
26505
|
-
};
|
|
26506
|
-
|
|
26507
|
-
var _path;
|
|
26508
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
26509
|
-
var SvgIcChevronDown = function SvgIcChevronDown(props) {
|
|
26510
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
26511
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
26512
|
-
width: "1em",
|
|
26513
|
-
height: "1em",
|
|
26514
|
-
viewBox: "0 0 24 24"
|
|
26515
|
-
}, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
26516
|
-
fill: "#999",
|
|
26517
|
-
className: "ic-chevron-down_svg__fill-color",
|
|
26518
|
-
fillRule: "nonzero",
|
|
26519
|
-
d: "M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"
|
|
26520
|
-
})));
|
|
26521
|
-
};
|
|
26522
|
-
|
|
26523
|
-
var commonStyles = getCommonSelectStyle();
|
|
26524
|
-
var MenuList = function (_a) {
|
|
26525
|
-
var children = _a.children, props = __rest(_a, ["children"]);
|
|
26526
|
-
return (jsxRuntime.jsx(components.MenuList, __assign({}, props, { children: Array.isArray(children) ? children.slice(0, 20) : children })));
|
|
26527
|
-
};
|
|
26528
|
-
var DropdownIndicator = function (props) { return (jsxRuntime.jsx(components.DropdownIndicator, __assign({}, props, { children: jsxRuntime.jsx(SvgIcChevronDown, { className: "icon-dim-20 icon-n5", "data-testid": "overview-project-edit-dropdown" }) }))); };
|
|
26529
|
-
var Select = function (props) {
|
|
26530
|
-
var id = props.id, _a = props.multiple, multiple = _a === void 0 ? false : _a, options = props.options, value = props.value, disabled = props.disabled, readonly = props.readonly, _b = props.autofocus, autofocus = _b === void 0 ? false : _b, onChange = props.onChange, onBlur = props.onBlur, onFocus = props.onFocus, placeholder = props.placeholder;
|
|
26531
|
-
var _c = options.enumOptions, selectOptions = _c === void 0 ? [] : _c;
|
|
26532
|
-
var emptyValue = multiple ? [] : '';
|
|
26533
|
-
var handleChange = function (option) {
|
|
26534
|
-
onChange(multiple ? option.map(function (o) { return o.value; }) : option.value);
|
|
26535
|
-
};
|
|
26536
|
-
var getOption = function (value) {
|
|
26537
|
-
return multiple
|
|
26538
|
-
? selectOptions.filter(function (option) { return value.some(function (val) { return isEqual_1(val, option.value); }); })
|
|
26539
|
-
: selectOptions.find(function (option) { return isEqual_1(value, option.value); });
|
|
26540
|
-
};
|
|
26541
|
-
return (jsxRuntime.jsx(ReactSelect, { id: id, name: id, isMulti: multiple, value: typeof value === 'undefined' ? emptyValue : getOption(value), autoFocus: autofocus, onChange: handleChange, options: selectOptions, onBlur: function () { return onBlur(id, value); }, onFocus: function () { return onFocus(id, value); }, placeholder: placeholder || PLACEHOLDERS.SELECT, isDisabled: disabled || readonly, styles: __assign(__assign({}, commonStyles), { control: function (base) { return (__assign(__assign(__assign({}, base), commonStyles.control), { backgroundColor: 'var(--N50)' })); } }), components: {
|
|
26542
|
-
IndicatorSeparator: null,
|
|
26543
|
-
DropdownIndicator: DropdownIndicator,
|
|
26544
|
-
MenuList: MenuList,
|
|
26545
|
-
}, menuPlacement: "auto" }));
|
|
26546
|
-
};
|
|
26547
|
-
|
|
26548
|
-
var widgets = {
|
|
26549
|
-
CheckboxWidget: Checkbox,
|
|
26550
|
-
SelectWidget: Select,
|
|
26551
|
-
};
|
|
26552
|
-
var templates = {
|
|
26553
|
-
ArrayFieldItemTemplate: ArrayFieldItemTemplate,
|
|
26554
|
-
ArrayFieldTemplate: ArrayFieldTemplate,
|
|
26555
|
-
BaseInputTemplate: BaseInput,
|
|
26556
|
-
ButtonTemplates: { AddButton: AddButton, RemoveButton: RemoveButton, SubmitButton: SubmitButton },
|
|
26557
|
-
DescriptionFieldTemplate: Description,
|
|
26558
|
-
FieldTemplate: Field$1,
|
|
26559
|
-
FieldErrorTemplate: FieldErrorTemplate,
|
|
26560
|
-
ObjectFieldTemplate: ObjectFieldTemplate,
|
|
26561
|
-
TitleFieldTemplate: TitleField,
|
|
26562
|
-
WrapIfAdditionalTemplate: WrapIfAdditionalTemplate,
|
|
26563
|
-
};
|
|
26564
|
-
|
|
26565
|
-
var css_248z = ".rjsf-form-template__field {\n grid-template-columns: 250px 1fr;\n}\n.rjsf-form-template__additional-fields {\n grid-template-columns: 1fr 1fr minmax(20px, auto);\n}\n.rjsf-form-template__array-field-item {\n grid-template-columns: 1fr auto;\n}\n.rjsf-form-template__array-field-item > :first-child {\n margin: 0;\n}";
|
|
26566
|
-
styleInject(css_248z);
|
|
26567
|
-
|
|
26568
|
-
// Need to use this way because the default import was not working as expected
|
|
26569
|
-
// The default import resolves to an object intead of a function
|
|
26570
|
-
var Form = RJSF.default;
|
|
26571
|
-
var validator = RJSFValidator.default;
|
|
26572
|
-
var RJSFForm = function (props) { return (jsxRuntime.jsx(Form, __assign({ noHtml5Validate: true, showErrorList: false, autoComplete: "off" }, props, { validator: validator, templates: __assign(__assign({}, templates), props.templates), widgets: __assign(__assign({}, widgets), props.widgets), translateString: translateString }))); };
|
|
26573
|
-
|
|
26574
23850
|
exports.AppStatus = AppStatus;
|
|
26575
23851
|
exports.BreadCrumb = BreadCrumb;
|
|
26576
23852
|
exports.BreadcrumbStore = Store;
|
|
26577
23853
|
exports.BuildStageVariable = BuildStageVariable;
|
|
26578
23854
|
exports.CDModalTab = CDModalTab;
|
|
26579
|
-
exports.Checkbox = Checkbox
|
|
23855
|
+
exports.Checkbox = Checkbox;
|
|
26580
23856
|
exports.ClearIndicator = ClearIndicator;
|
|
26581
23857
|
exports.ClipboardButton = ClipboardButton;
|
|
26582
23858
|
exports.ConditionalWrap = ConditionalWrap;
|
|
@@ -26615,7 +23891,6 @@ exports.PopupMenu = PopupMenu;
|
|
|
26615
23891
|
exports.Progressing = Progressing;
|
|
26616
23892
|
exports.PropagateTagInfo = PropagateTagInfo;
|
|
26617
23893
|
exports.REGISTRY_TYPE_MAP = REGISTRY_TYPE_MAP;
|
|
26618
|
-
exports.RJSFForm = RJSFForm;
|
|
26619
23894
|
exports.ROUTES = ROUTES;
|
|
26620
23895
|
exports.RadioGroup = RadioGroup$1;
|
|
26621
23896
|
exports.RadioGroupItem = RadioGroupItem;
|
|
@@ -26653,12 +23928,9 @@ exports.get = get;
|
|
|
26653
23928
|
exports.getAlphabetIcon = getAlphabetIcon;
|
|
26654
23929
|
exports.getCookie = getCookie;
|
|
26655
23930
|
exports.getEmptyArrayOfLength = getEmptyArrayOfLength;
|
|
26656
|
-
exports.getInferredTypeFromValueType = getInferredTypeFromValueType;
|
|
26657
23931
|
exports.getLoginInfo = getLoginInfo;
|
|
26658
23932
|
exports.getRandomColor = getRandomColor;
|
|
26659
|
-
exports.getRedirectionProps = getRedirectionProps;
|
|
26660
23933
|
exports.getTeamListMin = getTeamListMin;
|
|
26661
|
-
exports.getUrlWithSearchParams = getUrlWithSearchParams;
|
|
26662
23934
|
exports.getUserRole = getUserRole;
|
|
26663
23935
|
exports.handleUTCTime = handleUTCTime;
|
|
26664
23936
|
exports.multiSelectStyles = multiSelectStyles;
|