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