@mattisvensson/strapi-plugin-webatlas 0.4.2 → 0.5.0
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/_chunks/EmptyBox-BM4IscSk.mjs +1 -0
- package/dist/_chunks/EmptyBox-BM4IscSk.mjs.map +1 -0
- package/dist/_chunks/EmptyBox-T8t29l25.js +1 -0
- package/dist/_chunks/EmptyBox-T8t29l25.js.map +1 -0
- package/dist/_chunks/FullLoader-Cmsf8xS6.js +1 -0
- package/dist/_chunks/FullLoader-Cmsf8xS6.js.map +1 -0
- package/dist/_chunks/FullLoader-CrPED_dY.mjs +1 -0
- package/dist/_chunks/FullLoader-CrPED_dY.mjs.map +1 -0
- package/dist/_chunks/{de-Dn24NwJf.mjs → de-BkirTac9.mjs} +4 -1
- package/dist/_chunks/de-BkirTac9.mjs.map +1 -0
- package/dist/_chunks/{de-RiCps8UH.js → de-D8LMOTFI.js} +4 -1
- package/dist/_chunks/de-D8LMOTFI.js.map +1 -0
- package/dist/_chunks/{en-JLW5S3ZC.js → en-BdfmJUs8.js} +4 -1
- package/dist/_chunks/en-BdfmJUs8.js.map +1 -0
- package/dist/_chunks/{en-D9Lxaugc.mjs → en-DYbDta3m.mjs} +4 -1
- package/dist/_chunks/en-DYbDta3m.mjs.map +1 -0
- package/dist/_chunks/index-BAN8PGGJ.js +282 -0
- package/dist/_chunks/index-BAN8PGGJ.js.map +1 -0
- package/dist/_chunks/{index-Clikpy91.js → index-BOvKFOKk.js} +1663 -649
- package/dist/_chunks/{index-CiY-8z8F.js → index-BfgRvDzx.js} +1 -1
- package/dist/_chunks/index-BxnHHgGC.js +12163 -0
- package/dist/_chunks/index-BxnHHgGC.js.map +1 -0
- package/dist/_chunks/index-C5ejmUpN.mjs +12163 -0
- package/dist/_chunks/index-C5ejmUpN.mjs.map +1 -0
- package/dist/_chunks/index-CEt9P4TS.mjs +127 -0
- package/dist/_chunks/index-CEt9P4TS.mjs.map +1 -0
- package/dist/_chunks/{index-IHvD3566.js → index-CJNR2c7_.js} +1 -1
- package/dist/_chunks/{index-CSYue_D0.js → index-CJtLrSxU.js} +6 -6
- package/dist/_chunks/{index-B4pe6Yuh.mjs → index-CNfpGKSw.mjs} +1664 -650
- package/dist/_chunks/index-Ciae_OgQ.js +4177 -0
- package/dist/_chunks/index-Ciae_OgQ.js.map +1 -0
- package/dist/_chunks/{index-CtJ_9-RB.mjs → index-Ctq2vsD5.mjs} +6 -6
- package/dist/_chunks/index-CuJP8Fy7.mjs +4161 -0
- package/dist/_chunks/index-CuJP8Fy7.mjs.map +1 -0
- package/dist/_chunks/index-D4tWVnt1.js +127 -0
- package/dist/_chunks/index-D4tWVnt1.js.map +1 -0
- package/dist/_chunks/{index-CVj7qbwh.mjs → index-DTz7wDR7.mjs} +1 -1
- package/dist/_chunks/index-DtFIVZxq.mjs +282 -0
- package/dist/_chunks/index-DtFIVZxq.mjs.map +1 -0
- package/dist/_chunks/{index-9db80XRS.mjs → index-LAGFB7iO.mjs} +1 -1
- package/dist/admin/index.js +2 -1
- package/dist/admin/index.js.map +1 -0
- package/dist/admin/index.mjs +2 -1
- package/dist/admin/index.mjs.map +1 -0
- package/dist/admin/src/hooks/useApi.d.ts +1 -1
- package/dist/admin/src/pages/Navigation/Page.d.ts +2 -0
- package/dist/admin/src/pages/Navigation/index.d.ts +2 -2
- package/dist/server/index.js +13 -1
- package/dist/server/index.js.map +1 -0
- package/dist/server/index.mjs +13 -1
- package/dist/server/index.mjs.map +1 -0
- package/dist/server/src/index.d.ts +1 -1
- package/dist/server/src/services/admin.d.ts +1 -1
- package/dist/server/src/services/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const reactRouterDom = require("react-router-dom");
|
|
4
5
|
const icons = require("@strapi/icons");
|
|
5
6
|
const designSystem = require("@strapi/design-system");
|
|
6
7
|
const React = require("react");
|
|
7
8
|
const ReactDOM = require("react-dom");
|
|
8
9
|
const reactIntl = require("react-intl");
|
|
9
|
-
const index = require("./index-
|
|
10
|
+
const index = require("./index-CJtLrSxU.js");
|
|
10
11
|
const admin = require("@strapi/strapi/admin");
|
|
11
12
|
const FullLoader = require("./FullLoader-Cmsf8xS6.js");
|
|
12
13
|
const EmptyBox = require("./EmptyBox-T8t29l25.js");
|
|
@@ -91,9 +92,13 @@ function Delete({ variant, item, onDelete }) {
|
|
|
91
92
|
const closeModalState = React.useRef(variant === "NavDelete" ? "NavOverview" : "");
|
|
92
93
|
const { setModalType } = React.useContext(ModalContext);
|
|
93
94
|
const { formatMessage } = reactIntl.useIntl();
|
|
95
|
+
const { deleteNavigation } = index.useApi();
|
|
96
|
+
const navigate = reactRouterDom.useNavigate();
|
|
94
97
|
const handleDelete = async () => {
|
|
95
98
|
try {
|
|
96
99
|
if (variant === "NavDelete") {
|
|
100
|
+
await deleteNavigation(item.documentId);
|
|
101
|
+
navigate("/plugins/webatlas/navigation");
|
|
97
102
|
} else if (variant === "ItemDelete") {
|
|
98
103
|
const editedItem = { ...item, deleted: true };
|
|
99
104
|
onDelete(editedItem);
|
|
@@ -213,17 +218,28 @@ function NavModal({
|
|
|
213
218
|
function NavCreate() {
|
|
214
219
|
const { post } = admin.useFetchClient();
|
|
215
220
|
const { setModalType } = React.useContext(ModalContext);
|
|
216
|
-
const { setSelectedNavigation } = React.useContext(SelectedNavigationContext);
|
|
217
221
|
const [name, setName] = React.useState("");
|
|
218
222
|
const [isActive, setIsActive] = React.useState(true);
|
|
219
223
|
const [loading, setLoading] = React.useState(false);
|
|
220
224
|
const { formatMessage } = reactIntl.useIntl();
|
|
225
|
+
const { toggleNotification } = admin.useNotification();
|
|
226
|
+
const navigate = reactRouterDom.useNavigate();
|
|
221
227
|
const createNavigation = async () => {
|
|
222
228
|
setLoading(true);
|
|
223
229
|
try {
|
|
224
230
|
const { data } = await post("/webatlas/navigation", { name, isActive });
|
|
225
|
-
|
|
226
|
-
|
|
231
|
+
if (data.documentId) {
|
|
232
|
+
navigate(`/plugins/webatlas/navigation/${data.documentId}`);
|
|
233
|
+
setModalType("");
|
|
234
|
+
} else {
|
|
235
|
+
toggleNotification({
|
|
236
|
+
type: "danger",
|
|
237
|
+
message: formatMessage({
|
|
238
|
+
id: index.getTranslation("notification.navigation.creationFailed"),
|
|
239
|
+
defaultMessage: "Creation of navigation failed"
|
|
240
|
+
})
|
|
241
|
+
});
|
|
242
|
+
}
|
|
227
243
|
} catch (err) {
|
|
228
244
|
console.log(err);
|
|
229
245
|
} finally {
|
|
@@ -337,10 +353,11 @@ function NavEdit({ item, onEdit }) {
|
|
|
337
353
|
}
|
|
338
354
|
function NavOverview({ navigations, setActionItem }) {
|
|
339
355
|
const { setModalType } = React.useContext(ModalContext);
|
|
340
|
-
const { selectedNavigation
|
|
356
|
+
const { selectedNavigation } = React.useContext(SelectedNavigationContext);
|
|
341
357
|
const { formatMessage } = reactIntl.useIntl();
|
|
358
|
+
const navigate = reactRouterDom.useNavigate();
|
|
342
359
|
const handleSelect = (nav) => {
|
|
343
|
-
|
|
360
|
+
navigate(`/plugins/webatlas/navigation/${nav.documentId}`);
|
|
344
361
|
setModalType("");
|
|
345
362
|
};
|
|
346
363
|
const handleEdit = (nav) => {
|
|
@@ -414,6 +431,9 @@ function NavOverview({ navigations, setActionItem }) {
|
|
|
414
431
|
);
|
|
415
432
|
}
|
|
416
433
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
434
|
+
function getDefaultExportFromCjs(x) {
|
|
435
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
436
|
+
}
|
|
417
437
|
var lodash_min = { exports: {} };
|
|
418
438
|
/**
|
|
419
439
|
* @license
|
|
@@ -3963,10 +3983,10 @@ var _mapping = {};
|
|
|
3963
3983
|
}
|
|
3964
3984
|
};
|
|
3965
3985
|
exports2.realToAlias = function() {
|
|
3966
|
-
var
|
|
3986
|
+
var hasOwnProperty2 = Object.prototype.hasOwnProperty, object = exports2.aliasToReal, result = {};
|
|
3967
3987
|
for (var key in object) {
|
|
3968
3988
|
var value = object[key];
|
|
3969
|
-
if (
|
|
3989
|
+
if (hasOwnProperty2.call(result, value)) {
|
|
3970
3990
|
result[value].push(key);
|
|
3971
3991
|
} else {
|
|
3972
3992
|
result[value] = [key];
|
|
@@ -4143,13 +4163,13 @@ function baseConvert(util, name, func, options) {
|
|
|
4143
4163
|
"toInteger": util.toInteger,
|
|
4144
4164
|
"toPath": util.toPath
|
|
4145
4165
|
};
|
|
4146
|
-
var ary = helpers.ary, assign = helpers.assign, clone = helpers.clone, curry = helpers.curry, each = helpers.forEach,
|
|
4147
|
-
var aryMethodKeys =
|
|
4166
|
+
var ary = helpers.ary, assign = helpers.assign, clone = helpers.clone, curry = helpers.curry, each = helpers.forEach, isArray2 = helpers.isArray, isError = helpers.isError, isFunction2 = helpers.isFunction, isWeakMap = helpers.isWeakMap, keys2 = helpers.keys, rearg = helpers.rearg, toInteger = helpers.toInteger, toPath = helpers.toPath;
|
|
4167
|
+
var aryMethodKeys = keys2(mapping.aryMethod);
|
|
4148
4168
|
var wrappers = {
|
|
4149
4169
|
"castArray": function(castArray) {
|
|
4150
4170
|
return function() {
|
|
4151
4171
|
var value = arguments[0];
|
|
4152
|
-
return
|
|
4172
|
+
return isArray2(value) ? castArray(cloneArray(value)) : castArray.apply(void 0, arguments);
|
|
4153
4173
|
};
|
|
4154
4174
|
},
|
|
4155
4175
|
"iteratee": function(iteratee) {
|
|
@@ -4165,19 +4185,19 @@ function baseConvert(util, name, func, options) {
|
|
|
4165
4185
|
"mixin": function(mixin) {
|
|
4166
4186
|
return function(source) {
|
|
4167
4187
|
var func2 = this;
|
|
4168
|
-
if (!
|
|
4188
|
+
if (!isFunction2(func2)) {
|
|
4169
4189
|
return mixin(func2, Object(source));
|
|
4170
4190
|
}
|
|
4171
4191
|
var pairs2 = [];
|
|
4172
|
-
each(
|
|
4173
|
-
if (
|
|
4192
|
+
each(keys2(source), function(key) {
|
|
4193
|
+
if (isFunction2(source[key])) {
|
|
4174
4194
|
pairs2.push([key, func2.prototype[key]]);
|
|
4175
4195
|
}
|
|
4176
4196
|
});
|
|
4177
4197
|
mixin(func2, Object(source));
|
|
4178
4198
|
each(pairs2, function(pair) {
|
|
4179
4199
|
var value = pair[1];
|
|
4180
|
-
if (
|
|
4200
|
+
if (isFunction2(value)) {
|
|
4181
4201
|
func2.prototype[pair[0]] = value;
|
|
4182
4202
|
} else {
|
|
4183
4203
|
delete func2.prototype[pair[0]];
|
|
@@ -4235,7 +4255,7 @@ function baseConvert(util, name, func, options) {
|
|
|
4235
4255
|
var index2 = -1, length = path.length, lastIndex = length - 1, result = clone(Object(object)), nested = result;
|
|
4236
4256
|
while (nested != null && ++index2 < length) {
|
|
4237
4257
|
var key = path[index2], value = nested[key];
|
|
4238
|
-
if (value != null && !(
|
|
4258
|
+
if (value != null && !(isFunction2(value) || isError(value) || isWeakMap(value))) {
|
|
4239
4259
|
nested[key] = clone(index2 == lastIndex ? value : Object(value));
|
|
4240
4260
|
}
|
|
4241
4261
|
nested = nested[key];
|
|
@@ -4253,17 +4273,17 @@ function baseConvert(util, name, func, options) {
|
|
|
4253
4273
|
};
|
|
4254
4274
|
}
|
|
4255
4275
|
function iterateeAry(func2, n) {
|
|
4256
|
-
return
|
|
4276
|
+
return overArg2(func2, function(func3) {
|
|
4257
4277
|
return typeof func3 == "function" ? baseAry(func3, n) : func3;
|
|
4258
4278
|
});
|
|
4259
4279
|
}
|
|
4260
4280
|
function iterateeRearg(func2, indexes) {
|
|
4261
|
-
return
|
|
4281
|
+
return overArg2(func2, function(func3) {
|
|
4262
4282
|
var n = indexes.length;
|
|
4263
4283
|
return baseArity(rearg(baseAry(func3, n), indexes), n);
|
|
4264
4284
|
});
|
|
4265
4285
|
}
|
|
4266
|
-
function
|
|
4286
|
+
function overArg2(func2, transform) {
|
|
4267
4287
|
return function() {
|
|
4268
4288
|
var length = arguments.length;
|
|
4269
4289
|
if (!length) {
|
|
@@ -4326,7 +4346,7 @@ function baseConvert(util, name, func, options) {
|
|
|
4326
4346
|
}
|
|
4327
4347
|
});
|
|
4328
4348
|
});
|
|
4329
|
-
each(
|
|
4349
|
+
each(keys2(_2), function(key) {
|
|
4330
4350
|
var func2 = _2[key];
|
|
4331
4351
|
if (typeof func2 == "function") {
|
|
4332
4352
|
var length = pairs.length;
|
|
@@ -4344,7 +4364,7 @@ function baseConvert(util, name, func, options) {
|
|
|
4344
4364
|
});
|
|
4345
4365
|
_2.convert = convertLib;
|
|
4346
4366
|
_2.placeholder = _2;
|
|
4347
|
-
each(
|
|
4367
|
+
each(keys2(_2), function(key) {
|
|
4348
4368
|
each(mapping.realToAlias[key] || [], function(alias) {
|
|
4349
4369
|
_2[alias] = _2[key];
|
|
4350
4370
|
});
|
|
@@ -4809,18 +4829,18 @@ lodash.exports;
|
|
|
4809
4829
|
(function() {
|
|
4810
4830
|
var undefined$1;
|
|
4811
4831
|
var VERSION = "4.17.21";
|
|
4812
|
-
var
|
|
4832
|
+
var LARGE_ARRAY_SIZE2 = 200;
|
|
4813
4833
|
var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT = "Expected a function", INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`";
|
|
4814
|
-
var
|
|
4834
|
+
var HASH_UNDEFINED2 = "__lodash_hash_undefined__";
|
|
4815
4835
|
var MAX_MEMOIZE_SIZE = 500;
|
|
4816
4836
|
var PLACEHOLDER = "__lodash_placeholder__";
|
|
4817
|
-
var
|
|
4837
|
+
var CLONE_DEEP_FLAG2 = 1, CLONE_FLAT_FLAG2 = 2, CLONE_SYMBOLS_FLAG2 = 4;
|
|
4818
4838
|
var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;
|
|
4819
4839
|
var WRAP_BIND_FLAG = 1, WRAP_BIND_KEY_FLAG = 2, WRAP_CURRY_BOUND_FLAG = 4, WRAP_CURRY_FLAG = 8, WRAP_CURRY_RIGHT_FLAG = 16, WRAP_PARTIAL_FLAG = 32, WRAP_PARTIAL_RIGHT_FLAG = 64, WRAP_ARY_FLAG = 128, WRAP_REARG_FLAG = 256, WRAP_FLIP_FLAG = 512;
|
|
4820
4840
|
var DEFAULT_TRUNC_LENGTH = 30, DEFAULT_TRUNC_OMISSION = "...";
|
|
4821
4841
|
var HOT_COUNT = 800, HOT_SPAN = 16;
|
|
4822
4842
|
var LAZY_FILTER_FLAG = 1, LAZY_MAP_FLAG = 2, LAZY_WHILE_FLAG = 3;
|
|
4823
|
-
var INFINITY = 1 / 0,
|
|
4843
|
+
var INFINITY = 1 / 0, MAX_SAFE_INTEGER2 = 9007199254740991, MAX_INTEGER = 17976931348623157e292, NAN = 0 / 0;
|
|
4824
4844
|
var MAX_ARRAY_LENGTH = 4294967295, MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1, HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;
|
|
4825
4845
|
var wrapFlags = [
|
|
4826
4846
|
["ary", WRAP_ARY_FLAG],
|
|
@@ -4833,13 +4853,13 @@ lodash.exports;
|
|
|
4833
4853
|
["partialRight", WRAP_PARTIAL_RIGHT_FLAG],
|
|
4834
4854
|
["rearg", WRAP_REARG_FLAG]
|
|
4835
4855
|
];
|
|
4836
|
-
var
|
|
4837
|
-
var
|
|
4856
|
+
var argsTag2 = "[object Arguments]", arrayTag2 = "[object Array]", asyncTag2 = "[object AsyncFunction]", boolTag2 = "[object Boolean]", dateTag2 = "[object Date]", domExcTag = "[object DOMException]", errorTag2 = "[object Error]", funcTag2 = "[object Function]", genTag2 = "[object GeneratorFunction]", mapTag2 = "[object Map]", numberTag2 = "[object Number]", nullTag2 = "[object Null]", objectTag2 = "[object Object]", promiseTag2 = "[object Promise]", proxyTag2 = "[object Proxy]", regexpTag2 = "[object RegExp]", setTag2 = "[object Set]", stringTag2 = "[object String]", symbolTag2 = "[object Symbol]", undefinedTag2 = "[object Undefined]", weakMapTag2 = "[object WeakMap]", weakSetTag = "[object WeakSet]";
|
|
4857
|
+
var arrayBufferTag2 = "[object ArrayBuffer]", dataViewTag2 = "[object DataView]", float32Tag2 = "[object Float32Array]", float64Tag2 = "[object Float64Array]", int8Tag2 = "[object Int8Array]", int16Tag2 = "[object Int16Array]", int32Tag2 = "[object Int32Array]", uint8Tag2 = "[object Uint8Array]", uint8ClampedTag2 = "[object Uint8ClampedArray]", uint16Tag2 = "[object Uint16Array]", uint32Tag2 = "[object Uint32Array]";
|
|
4838
4858
|
var reEmptyStringLeading = /\b__p \+= '';/g, reEmptyStringMiddle = /\b(__p \+=) '' \+/g, reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g;
|
|
4839
4859
|
var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g, reUnescapedHtml = /[&<>"']/g, reHasEscapedHtml = RegExp(reEscapedHtml.source), reHasUnescapedHtml = RegExp(reUnescapedHtml.source);
|
|
4840
4860
|
var reEscape = /<%-([\s\S]+?)%>/g, reEvaluate = /<%([\s\S]+?)%>/g, reInterpolate = /<%=([\s\S]+?)%>/g;
|
|
4841
4861
|
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/, rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
4842
|
-
var
|
|
4862
|
+
var reRegExpChar2 = /[\\^$.*+?()[\]{}|]/g, reHasRegExpChar = RegExp(reRegExpChar2.source);
|
|
4843
4863
|
var reTrimStart = /^\s+/;
|
|
4844
4864
|
var reWhitespace = /\s/;
|
|
4845
4865
|
var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/, reSplitDetails = /,? & /;
|
|
@@ -4847,12 +4867,12 @@ lodash.exports;
|
|
|
4847
4867
|
var reForbiddenIdentifierChars = /[()=,{}\[\]\/\s]/;
|
|
4848
4868
|
var reEscapeChar = /\\(\\)?/g;
|
|
4849
4869
|
var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
|
|
4850
|
-
var
|
|
4870
|
+
var reFlags2 = /\w*$/;
|
|
4851
4871
|
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
4852
4872
|
var reIsBinary = /^0b[01]+$/i;
|
|
4853
|
-
var
|
|
4873
|
+
var reIsHostCtor2 = /^\[object .+?Constructor\]$/;
|
|
4854
4874
|
var reIsOctal = /^0o[0-7]+$/i;
|
|
4855
|
-
var
|
|
4875
|
+
var reIsUint2 = /^(?:0|[1-9]\d*)$/;
|
|
4856
4876
|
var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
|
|
4857
4877
|
var reNoMatch = /($^)/;
|
|
4858
4878
|
var reUnescapedString = /['\n\r\u2028\u2029\\]/g;
|
|
@@ -4907,12 +4927,12 @@ lodash.exports;
|
|
|
4907
4927
|
"setTimeout"
|
|
4908
4928
|
];
|
|
4909
4929
|
var templateCounter = -1;
|
|
4910
|
-
var
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
var
|
|
4914
|
-
|
|
4915
|
-
|
|
4930
|
+
var typedArrayTags2 = {};
|
|
4931
|
+
typedArrayTags2[float32Tag2] = typedArrayTags2[float64Tag2] = typedArrayTags2[int8Tag2] = typedArrayTags2[int16Tag2] = typedArrayTags2[int32Tag2] = typedArrayTags2[uint8Tag2] = typedArrayTags2[uint8ClampedTag2] = typedArrayTags2[uint16Tag2] = typedArrayTags2[uint32Tag2] = true;
|
|
4932
|
+
typedArrayTags2[argsTag2] = typedArrayTags2[arrayTag2] = typedArrayTags2[arrayBufferTag2] = typedArrayTags2[boolTag2] = typedArrayTags2[dataViewTag2] = typedArrayTags2[dateTag2] = typedArrayTags2[errorTag2] = typedArrayTags2[funcTag2] = typedArrayTags2[mapTag2] = typedArrayTags2[numberTag2] = typedArrayTags2[objectTag2] = typedArrayTags2[regexpTag2] = typedArrayTags2[setTag2] = typedArrayTags2[stringTag2] = typedArrayTags2[weakMapTag2] = false;
|
|
4933
|
+
var cloneableTags2 = {};
|
|
4934
|
+
cloneableTags2[argsTag2] = cloneableTags2[arrayTag2] = cloneableTags2[arrayBufferTag2] = cloneableTags2[dataViewTag2] = cloneableTags2[boolTag2] = cloneableTags2[dateTag2] = cloneableTags2[float32Tag2] = cloneableTags2[float64Tag2] = cloneableTags2[int8Tag2] = cloneableTags2[int16Tag2] = cloneableTags2[int32Tag2] = cloneableTags2[mapTag2] = cloneableTags2[numberTag2] = cloneableTags2[objectTag2] = cloneableTags2[regexpTag2] = cloneableTags2[setTag2] = cloneableTags2[stringTag2] = cloneableTags2[symbolTag2] = cloneableTags2[uint8Tag2] = cloneableTags2[uint8ClampedTag2] = cloneableTags2[uint16Tag2] = cloneableTags2[uint32Tag2] = true;
|
|
4935
|
+
cloneableTags2[errorTag2] = cloneableTags2[funcTag2] = cloneableTags2[weakMapTag2] = false;
|
|
4916
4936
|
var deburredLetters = {
|
|
4917
4937
|
// Latin-1 Supplement block.
|
|
4918
4938
|
"À": "A",
|
|
@@ -5130,14 +5150,14 @@ lodash.exports;
|
|
|
5130
5150
|
"\u2029": "u2029"
|
|
5131
5151
|
};
|
|
5132
5152
|
var freeParseFloat = parseFloat, freeParseInt = parseInt;
|
|
5133
|
-
var
|
|
5134
|
-
var
|
|
5135
|
-
var
|
|
5153
|
+
var freeGlobal2 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
5154
|
+
var freeSelf2 = typeof self == "object" && self && self.Object === Object && self;
|
|
5155
|
+
var root2 = freeGlobal2 || freeSelf2 || Function("return this")();
|
|
5136
5156
|
var freeExports = exports2 && !exports2.nodeType && exports2;
|
|
5137
5157
|
var freeModule = freeExports && true && module2 && !module2.nodeType && module2;
|
|
5138
5158
|
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
5139
|
-
var freeProcess = moduleExports &&
|
|
5140
|
-
var
|
|
5159
|
+
var freeProcess = moduleExports && freeGlobal2.process;
|
|
5160
|
+
var nodeUtil2 = function() {
|
|
5141
5161
|
try {
|
|
5142
5162
|
var types = freeModule && freeModule.require && freeModule.require("util").types;
|
|
5143
5163
|
if (types) {
|
|
@@ -5147,7 +5167,7 @@ lodash.exports;
|
|
|
5147
5167
|
} catch (e) {
|
|
5148
5168
|
}
|
|
5149
5169
|
}();
|
|
5150
|
-
var nodeIsArrayBuffer =
|
|
5170
|
+
var nodeIsArrayBuffer = nodeUtil2 && nodeUtil2.isArrayBuffer, nodeIsDate = nodeUtil2 && nodeUtil2.isDate, nodeIsMap2 = nodeUtil2 && nodeUtil2.isMap, nodeIsRegExp = nodeUtil2 && nodeUtil2.isRegExp, nodeIsSet2 = nodeUtil2 && nodeUtil2.isSet, nodeIsTypedArray2 = nodeUtil2 && nodeUtil2.isTypedArray;
|
|
5151
5171
|
function apply(func, thisArg, args) {
|
|
5152
5172
|
switch (args.length) {
|
|
5153
5173
|
case 0:
|
|
@@ -5169,7 +5189,7 @@ lodash.exports;
|
|
|
5169
5189
|
}
|
|
5170
5190
|
return accumulator;
|
|
5171
5191
|
}
|
|
5172
|
-
function
|
|
5192
|
+
function arrayEach2(array, iteratee) {
|
|
5173
5193
|
var index2 = -1, length = array == null ? 0 : array.length;
|
|
5174
5194
|
while (++index2 < length) {
|
|
5175
5195
|
if (iteratee(array[index2], index2, array) === false) {
|
|
@@ -5196,7 +5216,7 @@ lodash.exports;
|
|
|
5196
5216
|
}
|
|
5197
5217
|
return true;
|
|
5198
5218
|
}
|
|
5199
|
-
function
|
|
5219
|
+
function arrayFilter2(array, predicate) {
|
|
5200
5220
|
var index2 = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
|
5201
5221
|
while (++index2 < length) {
|
|
5202
5222
|
var value = array[index2];
|
|
@@ -5226,7 +5246,7 @@ lodash.exports;
|
|
|
5226
5246
|
}
|
|
5227
5247
|
return result;
|
|
5228
5248
|
}
|
|
5229
|
-
function
|
|
5249
|
+
function arrayPush2(array, values) {
|
|
5230
5250
|
var index2 = -1, length = values.length, offset = array.length;
|
|
5231
5251
|
while (++index2 < length) {
|
|
5232
5252
|
array[offset + index2] = values[index2];
|
|
@@ -5341,7 +5361,7 @@ lodash.exports;
|
|
|
5341
5361
|
}
|
|
5342
5362
|
return result;
|
|
5343
5363
|
}
|
|
5344
|
-
function
|
|
5364
|
+
function baseTimes2(n, iteratee) {
|
|
5345
5365
|
var index2 = -1, result = Array(n);
|
|
5346
5366
|
while (++index2 < n) {
|
|
5347
5367
|
result[index2] = iteratee(index2);
|
|
@@ -5356,7 +5376,7 @@ lodash.exports;
|
|
|
5356
5376
|
function baseTrim(string) {
|
|
5357
5377
|
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
|
5358
5378
|
}
|
|
5359
|
-
function
|
|
5379
|
+
function baseUnary2(func) {
|
|
5360
5380
|
return function(value) {
|
|
5361
5381
|
return func(value);
|
|
5362
5382
|
};
|
|
@@ -5395,7 +5415,7 @@ lodash.exports;
|
|
|
5395
5415
|
function escapeStringChar(chr) {
|
|
5396
5416
|
return "\\" + stringEscapes[chr];
|
|
5397
5417
|
}
|
|
5398
|
-
function
|
|
5418
|
+
function getValue2(object, key) {
|
|
5399
5419
|
return object == null ? undefined$1 : object[key];
|
|
5400
5420
|
}
|
|
5401
5421
|
function hasUnicode(string) {
|
|
@@ -5418,7 +5438,7 @@ lodash.exports;
|
|
|
5418
5438
|
});
|
|
5419
5439
|
return result;
|
|
5420
5440
|
}
|
|
5421
|
-
function
|
|
5441
|
+
function overArg2(func, transform) {
|
|
5422
5442
|
return function(arg) {
|
|
5423
5443
|
return func(transform(arg));
|
|
5424
5444
|
};
|
|
@@ -5493,59 +5513,59 @@ lodash.exports;
|
|
|
5493
5513
|
return string.match(reUnicodeWord) || [];
|
|
5494
5514
|
}
|
|
5495
5515
|
var runInContext = function runInContext2(context) {
|
|
5496
|
-
context = context == null ?
|
|
5497
|
-
var Array2 = context.Array, Date2 = context.Date, Error2 = context.Error, Function2 = context.Function, Math2 = context.Math, Object2 = context.Object, RegExp2 = context.RegExp,
|
|
5498
|
-
var
|
|
5499
|
-
var
|
|
5500
|
-
var
|
|
5501
|
-
var
|
|
5516
|
+
context = context == null ? root2 : _2.defaults(root2.Object(), context, _2.pick(root2, contextProps));
|
|
5517
|
+
var Array2 = context.Array, Date2 = context.Date, Error2 = context.Error, Function2 = context.Function, Math2 = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String2 = context.String, TypeError2 = context.TypeError;
|
|
5518
|
+
var arrayProto2 = Array2.prototype, funcProto2 = Function2.prototype, objectProto2 = Object2.prototype;
|
|
5519
|
+
var coreJsData2 = context["__core-js_shared__"];
|
|
5520
|
+
var funcToString2 = funcProto2.toString;
|
|
5521
|
+
var hasOwnProperty2 = objectProto2.hasOwnProperty;
|
|
5502
5522
|
var idCounter = 0;
|
|
5503
|
-
var
|
|
5504
|
-
var uid = /[^.]+$/.exec(
|
|
5523
|
+
var maskSrcKey2 = function() {
|
|
5524
|
+
var uid = /[^.]+$/.exec(coreJsData2 && coreJsData2.keys && coreJsData2.keys.IE_PROTO || "");
|
|
5505
5525
|
return uid ? "Symbol(src)_1." + uid : "";
|
|
5506
5526
|
}();
|
|
5507
|
-
var
|
|
5508
|
-
var objectCtorString =
|
|
5509
|
-
var oldDash =
|
|
5510
|
-
var
|
|
5511
|
-
"^" +
|
|
5527
|
+
var nativeObjectToString2 = objectProto2.toString;
|
|
5528
|
+
var objectCtorString = funcToString2.call(Object2);
|
|
5529
|
+
var oldDash = root2._;
|
|
5530
|
+
var reIsNative2 = RegExp2(
|
|
5531
|
+
"^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar2, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
5512
5532
|
);
|
|
5513
|
-
var Buffer = moduleExports ? context.Buffer : undefined$1, Symbol2 = context.Symbol,
|
|
5514
|
-
var
|
|
5533
|
+
var Buffer = moduleExports ? context.Buffer : undefined$1, Symbol2 = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined$1, getPrototype2 = overArg2(Object2.getPrototypeOf, Object2), objectCreate2 = Object2.create, propertyIsEnumerable2 = objectProto2.propertyIsEnumerable, splice2 = arrayProto2.splice, spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : undefined$1, symIterator = Symbol2 ? Symbol2.iterator : undefined$1, symToStringTag2 = Symbol2 ? Symbol2.toStringTag : undefined$1;
|
|
5534
|
+
var defineProperty2 = function() {
|
|
5515
5535
|
try {
|
|
5516
|
-
var func =
|
|
5536
|
+
var func = getNative2(Object2, "defineProperty");
|
|
5517
5537
|
func({}, "", {});
|
|
5518
5538
|
return func;
|
|
5519
5539
|
} catch (e) {
|
|
5520
5540
|
}
|
|
5521
5541
|
}();
|
|
5522
|
-
var ctxClearTimeout = context.clearTimeout !==
|
|
5523
|
-
var nativeCeil = Math2.ceil, nativeFloor = Math2.floor,
|
|
5524
|
-
var
|
|
5525
|
-
var metaMap =
|
|
5542
|
+
var ctxClearTimeout = context.clearTimeout !== root2.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root2.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root2.setTimeout && context.setTimeout;
|
|
5543
|
+
var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols2 = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined$1, nativeIsFinite = context.isFinite, nativeJoin = arrayProto2.join, nativeKeys2 = overArg2(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date2.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto2.reverse;
|
|
5544
|
+
var DataView2 = getNative2(context, "DataView"), Map2 = getNative2(context, "Map"), Promise2 = getNative2(context, "Promise"), Set2 = getNative2(context, "Set"), WeakMap2 = getNative2(context, "WeakMap"), nativeCreate2 = getNative2(Object2, "create");
|
|
5545
|
+
var metaMap = WeakMap2 && new WeakMap2();
|
|
5526
5546
|
var realNames = {};
|
|
5527
|
-
var
|
|
5528
|
-
var
|
|
5547
|
+
var dataViewCtorString2 = toSource2(DataView2), mapCtorString2 = toSource2(Map2), promiseCtorString2 = toSource2(Promise2), setCtorString2 = toSource2(Set2), weakMapCtorString2 = toSource2(WeakMap2);
|
|
5548
|
+
var symbolProto2 = Symbol2 ? Symbol2.prototype : undefined$1, symbolValueOf2 = symbolProto2 ? symbolProto2.valueOf : undefined$1, symbolToString = symbolProto2 ? symbolProto2.toString : undefined$1;
|
|
5529
5549
|
function lodash2(value) {
|
|
5530
|
-
if (
|
|
5550
|
+
if (isObjectLike2(value) && !isArray2(value) && !(value instanceof LazyWrapper)) {
|
|
5531
5551
|
if (value instanceof LodashWrapper) {
|
|
5532
5552
|
return value;
|
|
5533
5553
|
}
|
|
5534
|
-
if (
|
|
5554
|
+
if (hasOwnProperty2.call(value, "__wrapped__")) {
|
|
5535
5555
|
return wrapperClone(value);
|
|
5536
5556
|
}
|
|
5537
5557
|
}
|
|
5538
5558
|
return new LodashWrapper(value);
|
|
5539
5559
|
}
|
|
5540
|
-
var
|
|
5560
|
+
var baseCreate2 = /* @__PURE__ */ function() {
|
|
5541
5561
|
function object() {
|
|
5542
5562
|
}
|
|
5543
5563
|
return function(proto) {
|
|
5544
|
-
if (!
|
|
5564
|
+
if (!isObject2(proto)) {
|
|
5545
5565
|
return {};
|
|
5546
5566
|
}
|
|
5547
|
-
if (
|
|
5548
|
-
return
|
|
5567
|
+
if (objectCreate2) {
|
|
5568
|
+
return objectCreate2(proto);
|
|
5549
5569
|
}
|
|
5550
5570
|
object.prototype = proto;
|
|
5551
5571
|
var result2 = new object();
|
|
@@ -5609,7 +5629,7 @@ lodash.exports;
|
|
|
5609
5629
|
};
|
|
5610
5630
|
lodash2.prototype = baseLodash.prototype;
|
|
5611
5631
|
lodash2.prototype.constructor = lodash2;
|
|
5612
|
-
LodashWrapper.prototype =
|
|
5632
|
+
LodashWrapper.prototype = baseCreate2(baseLodash.prototype);
|
|
5613
5633
|
LodashWrapper.prototype.constructor = LodashWrapper;
|
|
5614
5634
|
function LazyWrapper(value) {
|
|
5615
5635
|
this.__wrapped__ = value;
|
|
@@ -5622,12 +5642,12 @@ lodash.exports;
|
|
|
5622
5642
|
}
|
|
5623
5643
|
function lazyClone() {
|
|
5624
5644
|
var result2 = new LazyWrapper(this.__wrapped__);
|
|
5625
|
-
result2.__actions__ =
|
|
5645
|
+
result2.__actions__ = copyArray2(this.__actions__);
|
|
5626
5646
|
result2.__dir__ = this.__dir__;
|
|
5627
5647
|
result2.__filtered__ = this.__filtered__;
|
|
5628
|
-
result2.__iteratees__ =
|
|
5648
|
+
result2.__iteratees__ = copyArray2(this.__iteratees__);
|
|
5629
5649
|
result2.__takeCount__ = this.__takeCount__;
|
|
5630
|
-
result2.__views__ =
|
|
5650
|
+
result2.__views__ = copyArray2(this.__views__);
|
|
5631
5651
|
return result2;
|
|
5632
5652
|
}
|
|
5633
5653
|
function lazyReverse() {
|
|
@@ -5642,7 +5662,7 @@ lodash.exports;
|
|
|
5642
5662
|
return result2;
|
|
5643
5663
|
}
|
|
5644
5664
|
function lazyValue() {
|
|
5645
|
-
var array = this.__wrapped__.value(), dir = this.__dir__, isArr =
|
|
5665
|
+
var array = this.__wrapped__.value(), dir = this.__dir__, isArr = isArray2(array), isRight = dir < 0, arrLength = isArr ? array.length : 0, view = getView(0, arrLength, this.__views__), start = view.start, end = view.end, length = end - start, index2 = isRight ? end : start - 1, iteratees = this.__iteratees__, iterLength = iteratees.length, resIndex = 0, takeCount = nativeMin(length, this.__takeCount__);
|
|
5646
5666
|
if (!isArr || !isRight && arrLength == length && takeCount == length) {
|
|
5647
5667
|
return baseWrapperValue(array, this.__actions__);
|
|
5648
5668
|
}
|
|
@@ -5667,9 +5687,9 @@ lodash.exports;
|
|
|
5667
5687
|
}
|
|
5668
5688
|
return result2;
|
|
5669
5689
|
}
|
|
5670
|
-
LazyWrapper.prototype =
|
|
5690
|
+
LazyWrapper.prototype = baseCreate2(baseLodash.prototype);
|
|
5671
5691
|
LazyWrapper.prototype.constructor = LazyWrapper;
|
|
5672
|
-
function
|
|
5692
|
+
function Hash2(entries) {
|
|
5673
5693
|
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
5674
5694
|
this.clear();
|
|
5675
5695
|
while (++index2 < length) {
|
|
@@ -5677,39 +5697,39 @@ lodash.exports;
|
|
|
5677
5697
|
this.set(entry[0], entry[1]);
|
|
5678
5698
|
}
|
|
5679
5699
|
}
|
|
5680
|
-
function
|
|
5681
|
-
this.__data__ =
|
|
5700
|
+
function hashClear2() {
|
|
5701
|
+
this.__data__ = nativeCreate2 ? nativeCreate2(null) : {};
|
|
5682
5702
|
this.size = 0;
|
|
5683
5703
|
}
|
|
5684
|
-
function
|
|
5704
|
+
function hashDelete2(key) {
|
|
5685
5705
|
var result2 = this.has(key) && delete this.__data__[key];
|
|
5686
5706
|
this.size -= result2 ? 1 : 0;
|
|
5687
5707
|
return result2;
|
|
5688
5708
|
}
|
|
5689
|
-
function
|
|
5709
|
+
function hashGet2(key) {
|
|
5690
5710
|
var data = this.__data__;
|
|
5691
|
-
if (
|
|
5711
|
+
if (nativeCreate2) {
|
|
5692
5712
|
var result2 = data[key];
|
|
5693
|
-
return result2 ===
|
|
5713
|
+
return result2 === HASH_UNDEFINED2 ? undefined$1 : result2;
|
|
5694
5714
|
}
|
|
5695
|
-
return
|
|
5715
|
+
return hasOwnProperty2.call(data, key) ? data[key] : undefined$1;
|
|
5696
5716
|
}
|
|
5697
|
-
function
|
|
5717
|
+
function hashHas2(key) {
|
|
5698
5718
|
var data = this.__data__;
|
|
5699
|
-
return
|
|
5719
|
+
return nativeCreate2 ? data[key] !== undefined$1 : hasOwnProperty2.call(data, key);
|
|
5700
5720
|
}
|
|
5701
|
-
function
|
|
5721
|
+
function hashSet2(key, value) {
|
|
5702
5722
|
var data = this.__data__;
|
|
5703
5723
|
this.size += this.has(key) ? 0 : 1;
|
|
5704
|
-
data[key] =
|
|
5724
|
+
data[key] = nativeCreate2 && value === undefined$1 ? HASH_UNDEFINED2 : value;
|
|
5705
5725
|
return this;
|
|
5706
5726
|
}
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
function
|
|
5727
|
+
Hash2.prototype.clear = hashClear2;
|
|
5728
|
+
Hash2.prototype["delete"] = hashDelete2;
|
|
5729
|
+
Hash2.prototype.get = hashGet2;
|
|
5730
|
+
Hash2.prototype.has = hashHas2;
|
|
5731
|
+
Hash2.prototype.set = hashSet2;
|
|
5732
|
+
function ListCache2(entries) {
|
|
5713
5733
|
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
5714
5734
|
this.clear();
|
|
5715
5735
|
while (++index2 < length) {
|
|
@@ -5717,12 +5737,12 @@ lodash.exports;
|
|
|
5717
5737
|
this.set(entry[0], entry[1]);
|
|
5718
5738
|
}
|
|
5719
5739
|
}
|
|
5720
|
-
function
|
|
5740
|
+
function listCacheClear2() {
|
|
5721
5741
|
this.__data__ = [];
|
|
5722
5742
|
this.size = 0;
|
|
5723
5743
|
}
|
|
5724
|
-
function
|
|
5725
|
-
var data = this.__data__, index2 =
|
|
5744
|
+
function listCacheDelete2(key) {
|
|
5745
|
+
var data = this.__data__, index2 = assocIndexOf2(data, key);
|
|
5726
5746
|
if (index2 < 0) {
|
|
5727
5747
|
return false;
|
|
5728
5748
|
}
|
|
@@ -5730,20 +5750,20 @@ lodash.exports;
|
|
|
5730
5750
|
if (index2 == lastIndex) {
|
|
5731
5751
|
data.pop();
|
|
5732
5752
|
} else {
|
|
5733
|
-
|
|
5753
|
+
splice2.call(data, index2, 1);
|
|
5734
5754
|
}
|
|
5735
5755
|
--this.size;
|
|
5736
5756
|
return true;
|
|
5737
5757
|
}
|
|
5738
|
-
function
|
|
5739
|
-
var data = this.__data__, index2 =
|
|
5758
|
+
function listCacheGet2(key) {
|
|
5759
|
+
var data = this.__data__, index2 = assocIndexOf2(data, key);
|
|
5740
5760
|
return index2 < 0 ? undefined$1 : data[index2][1];
|
|
5741
5761
|
}
|
|
5742
|
-
function
|
|
5743
|
-
return
|
|
5762
|
+
function listCacheHas2(key) {
|
|
5763
|
+
return assocIndexOf2(this.__data__, key) > -1;
|
|
5744
5764
|
}
|
|
5745
|
-
function
|
|
5746
|
-
var data = this.__data__, index2 =
|
|
5765
|
+
function listCacheSet2(key, value) {
|
|
5766
|
+
var data = this.__data__, index2 = assocIndexOf2(data, key);
|
|
5747
5767
|
if (index2 < 0) {
|
|
5748
5768
|
++this.size;
|
|
5749
5769
|
data.push([key, value]);
|
|
@@ -5752,12 +5772,12 @@ lodash.exports;
|
|
|
5752
5772
|
}
|
|
5753
5773
|
return this;
|
|
5754
5774
|
}
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
|
|
5759
|
-
|
|
5760
|
-
function
|
|
5775
|
+
ListCache2.prototype.clear = listCacheClear2;
|
|
5776
|
+
ListCache2.prototype["delete"] = listCacheDelete2;
|
|
5777
|
+
ListCache2.prototype.get = listCacheGet2;
|
|
5778
|
+
ListCache2.prototype.has = listCacheHas2;
|
|
5779
|
+
ListCache2.prototype.set = listCacheSet2;
|
|
5780
|
+
function MapCache2(entries) {
|
|
5761
5781
|
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
5762
5782
|
this.clear();
|
|
5763
5783
|
while (++index2 < length) {
|
|
@@ -5765,45 +5785,45 @@ lodash.exports;
|
|
|
5765
5785
|
this.set(entry[0], entry[1]);
|
|
5766
5786
|
}
|
|
5767
5787
|
}
|
|
5768
|
-
function
|
|
5788
|
+
function mapCacheClear2() {
|
|
5769
5789
|
this.size = 0;
|
|
5770
5790
|
this.__data__ = {
|
|
5771
|
-
"hash": new
|
|
5772
|
-
"map": new (
|
|
5773
|
-
"string": new
|
|
5791
|
+
"hash": new Hash2(),
|
|
5792
|
+
"map": new (Map2 || ListCache2)(),
|
|
5793
|
+
"string": new Hash2()
|
|
5774
5794
|
};
|
|
5775
5795
|
}
|
|
5776
|
-
function
|
|
5777
|
-
var result2 =
|
|
5796
|
+
function mapCacheDelete2(key) {
|
|
5797
|
+
var result2 = getMapData2(this, key)["delete"](key);
|
|
5778
5798
|
this.size -= result2 ? 1 : 0;
|
|
5779
5799
|
return result2;
|
|
5780
5800
|
}
|
|
5781
|
-
function
|
|
5782
|
-
return
|
|
5801
|
+
function mapCacheGet2(key) {
|
|
5802
|
+
return getMapData2(this, key).get(key);
|
|
5783
5803
|
}
|
|
5784
|
-
function
|
|
5785
|
-
return
|
|
5804
|
+
function mapCacheHas2(key) {
|
|
5805
|
+
return getMapData2(this, key).has(key);
|
|
5786
5806
|
}
|
|
5787
|
-
function
|
|
5788
|
-
var data =
|
|
5807
|
+
function mapCacheSet2(key, value) {
|
|
5808
|
+
var data = getMapData2(this, key), size2 = data.size;
|
|
5789
5809
|
data.set(key, value);
|
|
5790
5810
|
this.size += data.size == size2 ? 0 : 1;
|
|
5791
5811
|
return this;
|
|
5792
5812
|
}
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5813
|
+
MapCache2.prototype.clear = mapCacheClear2;
|
|
5814
|
+
MapCache2.prototype["delete"] = mapCacheDelete2;
|
|
5815
|
+
MapCache2.prototype.get = mapCacheGet2;
|
|
5816
|
+
MapCache2.prototype.has = mapCacheHas2;
|
|
5817
|
+
MapCache2.prototype.set = mapCacheSet2;
|
|
5798
5818
|
function SetCache(values2) {
|
|
5799
5819
|
var index2 = -1, length = values2 == null ? 0 : values2.length;
|
|
5800
|
-
this.__data__ = new
|
|
5820
|
+
this.__data__ = new MapCache2();
|
|
5801
5821
|
while (++index2 < length) {
|
|
5802
5822
|
this.add(values2[index2]);
|
|
5803
5823
|
}
|
|
5804
5824
|
}
|
|
5805
5825
|
function setCacheAdd(value) {
|
|
5806
|
-
this.__data__.set(value,
|
|
5826
|
+
this.__data__.set(value, HASH_UNDEFINED2);
|
|
5807
5827
|
return this;
|
|
5808
5828
|
}
|
|
5809
5829
|
function setCacheHas(value) {
|
|
@@ -5811,53 +5831,53 @@ lodash.exports;
|
|
|
5811
5831
|
}
|
|
5812
5832
|
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
|
|
5813
5833
|
SetCache.prototype.has = setCacheHas;
|
|
5814
|
-
function
|
|
5815
|
-
var data = this.__data__ = new
|
|
5834
|
+
function Stack2(entries) {
|
|
5835
|
+
var data = this.__data__ = new ListCache2(entries);
|
|
5816
5836
|
this.size = data.size;
|
|
5817
5837
|
}
|
|
5818
|
-
function
|
|
5819
|
-
this.__data__ = new
|
|
5838
|
+
function stackClear2() {
|
|
5839
|
+
this.__data__ = new ListCache2();
|
|
5820
5840
|
this.size = 0;
|
|
5821
5841
|
}
|
|
5822
|
-
function
|
|
5842
|
+
function stackDelete2(key) {
|
|
5823
5843
|
var data = this.__data__, result2 = data["delete"](key);
|
|
5824
5844
|
this.size = data.size;
|
|
5825
5845
|
return result2;
|
|
5826
5846
|
}
|
|
5827
|
-
function
|
|
5847
|
+
function stackGet2(key) {
|
|
5828
5848
|
return this.__data__.get(key);
|
|
5829
5849
|
}
|
|
5830
|
-
function
|
|
5850
|
+
function stackHas2(key) {
|
|
5831
5851
|
return this.__data__.has(key);
|
|
5832
5852
|
}
|
|
5833
|
-
function
|
|
5853
|
+
function stackSet2(key, value) {
|
|
5834
5854
|
var data = this.__data__;
|
|
5835
|
-
if (data instanceof
|
|
5855
|
+
if (data instanceof ListCache2) {
|
|
5836
5856
|
var pairs = data.__data__;
|
|
5837
|
-
if (!
|
|
5857
|
+
if (!Map2 || pairs.length < LARGE_ARRAY_SIZE2 - 1) {
|
|
5838
5858
|
pairs.push([key, value]);
|
|
5839
5859
|
this.size = ++data.size;
|
|
5840
5860
|
return this;
|
|
5841
5861
|
}
|
|
5842
|
-
data = this.__data__ = new
|
|
5862
|
+
data = this.__data__ = new MapCache2(pairs);
|
|
5843
5863
|
}
|
|
5844
5864
|
data.set(key, value);
|
|
5845
5865
|
this.size = data.size;
|
|
5846
5866
|
return this;
|
|
5847
5867
|
}
|
|
5848
|
-
|
|
5849
|
-
|
|
5850
|
-
|
|
5851
|
-
|
|
5852
|
-
|
|
5853
|
-
function
|
|
5854
|
-
var isArr =
|
|
5868
|
+
Stack2.prototype.clear = stackClear2;
|
|
5869
|
+
Stack2.prototype["delete"] = stackDelete2;
|
|
5870
|
+
Stack2.prototype.get = stackGet2;
|
|
5871
|
+
Stack2.prototype.has = stackHas2;
|
|
5872
|
+
Stack2.prototype.set = stackSet2;
|
|
5873
|
+
function arrayLikeKeys2(value, inherited) {
|
|
5874
|
+
var isArr = isArray2(value), isArg = !isArr && isArguments2(value), isBuff = !isArr && !isArg && isBuffer2(value), isType = !isArr && !isArg && !isBuff && isTypedArray2(value), skipIndexes = isArr || isArg || isBuff || isType, result2 = skipIndexes ? baseTimes2(value.length, String2) : [], length = result2.length;
|
|
5855
5875
|
for (var key in value) {
|
|
5856
|
-
if ((inherited ||
|
|
5876
|
+
if ((inherited || hasOwnProperty2.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
5857
5877
|
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
5858
5878
|
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
5859
5879
|
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
5860
|
-
|
|
5880
|
+
isIndex2(key, length)))) {
|
|
5861
5881
|
result2.push(key);
|
|
5862
5882
|
}
|
|
5863
5883
|
}
|
|
@@ -5868,26 +5888,26 @@ lodash.exports;
|
|
|
5868
5888
|
return length ? array[baseRandom(0, length - 1)] : undefined$1;
|
|
5869
5889
|
}
|
|
5870
5890
|
function arraySampleSize(array, n) {
|
|
5871
|
-
return shuffleSelf(
|
|
5891
|
+
return shuffleSelf(copyArray2(array), baseClamp(n, 0, array.length));
|
|
5872
5892
|
}
|
|
5873
5893
|
function arrayShuffle(array) {
|
|
5874
|
-
return shuffleSelf(
|
|
5894
|
+
return shuffleSelf(copyArray2(array));
|
|
5875
5895
|
}
|
|
5876
5896
|
function assignMergeValue(object, key, value) {
|
|
5877
|
-
if (value !== undefined$1 && !
|
|
5878
|
-
|
|
5897
|
+
if (value !== undefined$1 && !eq2(object[key], value) || value === undefined$1 && !(key in object)) {
|
|
5898
|
+
baseAssignValue2(object, key, value);
|
|
5879
5899
|
}
|
|
5880
5900
|
}
|
|
5881
|
-
function
|
|
5901
|
+
function assignValue2(object, key, value) {
|
|
5882
5902
|
var objValue = object[key];
|
|
5883
|
-
if (!(
|
|
5884
|
-
|
|
5903
|
+
if (!(hasOwnProperty2.call(object, key) && eq2(objValue, value)) || value === undefined$1 && !(key in object)) {
|
|
5904
|
+
baseAssignValue2(object, key, value);
|
|
5885
5905
|
}
|
|
5886
5906
|
}
|
|
5887
|
-
function
|
|
5907
|
+
function assocIndexOf2(array, key) {
|
|
5888
5908
|
var length = array.length;
|
|
5889
5909
|
while (length--) {
|
|
5890
|
-
if (
|
|
5910
|
+
if (eq2(array[length][0], key)) {
|
|
5891
5911
|
return length;
|
|
5892
5912
|
}
|
|
5893
5913
|
}
|
|
@@ -5899,15 +5919,15 @@ lodash.exports;
|
|
|
5899
5919
|
});
|
|
5900
5920
|
return accumulator;
|
|
5901
5921
|
}
|
|
5902
|
-
function
|
|
5903
|
-
return object &&
|
|
5922
|
+
function baseAssign2(object, source) {
|
|
5923
|
+
return object && copyObject2(source, keys2(source), object);
|
|
5904
5924
|
}
|
|
5905
|
-
function
|
|
5906
|
-
return object &&
|
|
5925
|
+
function baseAssignIn2(object, source) {
|
|
5926
|
+
return object && copyObject2(source, keysIn2(source), object);
|
|
5907
5927
|
}
|
|
5908
|
-
function
|
|
5909
|
-
if (key == "__proto__" &&
|
|
5910
|
-
|
|
5928
|
+
function baseAssignValue2(object, key, value) {
|
|
5929
|
+
if (key == "__proto__" && defineProperty2) {
|
|
5930
|
+
defineProperty2(object, key, {
|
|
5911
5931
|
"configurable": true,
|
|
5912
5932
|
"enumerable": true,
|
|
5913
5933
|
"value": value,
|
|
@@ -5935,68 +5955,68 @@ lodash.exports;
|
|
|
5935
5955
|
}
|
|
5936
5956
|
return number;
|
|
5937
5957
|
}
|
|
5938
|
-
function
|
|
5939
|
-
var result2, isDeep = bitmask &
|
|
5958
|
+
function baseClone2(value, bitmask, customizer, key, object, stack) {
|
|
5959
|
+
var result2, isDeep = bitmask & CLONE_DEEP_FLAG2, isFlat = bitmask & CLONE_FLAT_FLAG2, isFull = bitmask & CLONE_SYMBOLS_FLAG2;
|
|
5940
5960
|
if (customizer) {
|
|
5941
5961
|
result2 = object ? customizer(value, key, object, stack) : customizer(value);
|
|
5942
5962
|
}
|
|
5943
5963
|
if (result2 !== undefined$1) {
|
|
5944
5964
|
return result2;
|
|
5945
5965
|
}
|
|
5946
|
-
if (!
|
|
5966
|
+
if (!isObject2(value)) {
|
|
5947
5967
|
return value;
|
|
5948
5968
|
}
|
|
5949
|
-
var isArr =
|
|
5969
|
+
var isArr = isArray2(value);
|
|
5950
5970
|
if (isArr) {
|
|
5951
|
-
result2 =
|
|
5971
|
+
result2 = initCloneArray2(value);
|
|
5952
5972
|
if (!isDeep) {
|
|
5953
|
-
return
|
|
5973
|
+
return copyArray2(value, result2);
|
|
5954
5974
|
}
|
|
5955
5975
|
} else {
|
|
5956
|
-
var tag =
|
|
5957
|
-
if (
|
|
5958
|
-
return
|
|
5976
|
+
var tag = getTag2(value), isFunc = tag == funcTag2 || tag == genTag2;
|
|
5977
|
+
if (isBuffer2(value)) {
|
|
5978
|
+
return cloneBuffer2(value, isDeep);
|
|
5959
5979
|
}
|
|
5960
|
-
if (tag ==
|
|
5961
|
-
result2 = isFlat || isFunc ? {} :
|
|
5980
|
+
if (tag == objectTag2 || tag == argsTag2 || isFunc && !object) {
|
|
5981
|
+
result2 = isFlat || isFunc ? {} : initCloneObject2(value);
|
|
5962
5982
|
if (!isDeep) {
|
|
5963
|
-
return isFlat ?
|
|
5983
|
+
return isFlat ? copySymbolsIn2(value, baseAssignIn2(result2, value)) : copySymbols2(value, baseAssign2(result2, value));
|
|
5964
5984
|
}
|
|
5965
5985
|
} else {
|
|
5966
|
-
if (!
|
|
5986
|
+
if (!cloneableTags2[tag]) {
|
|
5967
5987
|
return object ? value : {};
|
|
5968
5988
|
}
|
|
5969
|
-
result2 =
|
|
5989
|
+
result2 = initCloneByTag2(value, tag, isDeep);
|
|
5970
5990
|
}
|
|
5971
5991
|
}
|
|
5972
|
-
stack || (stack = new
|
|
5992
|
+
stack || (stack = new Stack2());
|
|
5973
5993
|
var stacked = stack.get(value);
|
|
5974
5994
|
if (stacked) {
|
|
5975
5995
|
return stacked;
|
|
5976
5996
|
}
|
|
5977
5997
|
stack.set(value, result2);
|
|
5978
|
-
if (
|
|
5998
|
+
if (isSet2(value)) {
|
|
5979
5999
|
value.forEach(function(subValue) {
|
|
5980
|
-
result2.add(
|
|
6000
|
+
result2.add(baseClone2(subValue, bitmask, customizer, subValue, value, stack));
|
|
5981
6001
|
});
|
|
5982
|
-
} else if (
|
|
6002
|
+
} else if (isMap2(value)) {
|
|
5983
6003
|
value.forEach(function(subValue, key2) {
|
|
5984
|
-
result2.set(key2,
|
|
6004
|
+
result2.set(key2, baseClone2(subValue, bitmask, customizer, key2, value, stack));
|
|
5985
6005
|
});
|
|
5986
6006
|
}
|
|
5987
|
-
var keysFunc = isFull ? isFlat ?
|
|
6007
|
+
var keysFunc = isFull ? isFlat ? getAllKeysIn2 : getAllKeys2 : isFlat ? keysIn2 : keys2;
|
|
5988
6008
|
var props = isArr ? undefined$1 : keysFunc(value);
|
|
5989
|
-
|
|
6009
|
+
arrayEach2(props || value, function(subValue, key2) {
|
|
5990
6010
|
if (props) {
|
|
5991
6011
|
key2 = subValue;
|
|
5992
6012
|
subValue = value[key2];
|
|
5993
6013
|
}
|
|
5994
|
-
|
|
6014
|
+
assignValue2(result2, key2, baseClone2(subValue, bitmask, customizer, key2, value, stack));
|
|
5995
6015
|
});
|
|
5996
6016
|
return result2;
|
|
5997
6017
|
}
|
|
5998
6018
|
function baseConforms(source) {
|
|
5999
|
-
var props =
|
|
6019
|
+
var props = keys2(source);
|
|
6000
6020
|
return function(object) {
|
|
6001
6021
|
return baseConformsTo(object, source, props);
|
|
6002
6022
|
};
|
|
@@ -6029,12 +6049,12 @@ lodash.exports;
|
|
|
6029
6049
|
return result2;
|
|
6030
6050
|
}
|
|
6031
6051
|
if (iteratee2) {
|
|
6032
|
-
values2 = arrayMap(values2,
|
|
6052
|
+
values2 = arrayMap(values2, baseUnary2(iteratee2));
|
|
6033
6053
|
}
|
|
6034
6054
|
if (comparator) {
|
|
6035
6055
|
includes2 = arrayIncludesWith;
|
|
6036
6056
|
isCommon = false;
|
|
6037
|
-
} else if (values2.length >=
|
|
6057
|
+
} else if (values2.length >= LARGE_ARRAY_SIZE2) {
|
|
6038
6058
|
includes2 = cacheHas;
|
|
6039
6059
|
isCommon = false;
|
|
6040
6060
|
values2 = new SetCache(values2);
|
|
@@ -6112,7 +6132,7 @@ lodash.exports;
|
|
|
6112
6132
|
if (depth > 1) {
|
|
6113
6133
|
baseFlatten(value, depth - 1, predicate, isStrict, result2);
|
|
6114
6134
|
} else {
|
|
6115
|
-
|
|
6135
|
+
arrayPush2(result2, value);
|
|
6116
6136
|
}
|
|
6117
6137
|
} else if (!isStrict) {
|
|
6118
6138
|
result2[result2.length] = value;
|
|
@@ -6123,14 +6143,14 @@ lodash.exports;
|
|
|
6123
6143
|
var baseFor = createBaseFor();
|
|
6124
6144
|
var baseForRight = createBaseFor(true);
|
|
6125
6145
|
function baseForOwn(object, iteratee2) {
|
|
6126
|
-
return object && baseFor(object, iteratee2,
|
|
6146
|
+
return object && baseFor(object, iteratee2, keys2);
|
|
6127
6147
|
}
|
|
6128
6148
|
function baseForOwnRight(object, iteratee2) {
|
|
6129
|
-
return object && baseForRight(object, iteratee2,
|
|
6149
|
+
return object && baseForRight(object, iteratee2, keys2);
|
|
6130
6150
|
}
|
|
6131
6151
|
function baseFunctions(object, props) {
|
|
6132
|
-
return
|
|
6133
|
-
return
|
|
6152
|
+
return arrayFilter2(props, function(key) {
|
|
6153
|
+
return isFunction2(object[key]);
|
|
6134
6154
|
});
|
|
6135
6155
|
}
|
|
6136
6156
|
function baseGet(object, path) {
|
|
@@ -6141,21 +6161,21 @@ lodash.exports;
|
|
|
6141
6161
|
}
|
|
6142
6162
|
return index2 && index2 == length ? object : undefined$1;
|
|
6143
6163
|
}
|
|
6144
|
-
function
|
|
6164
|
+
function baseGetAllKeys2(object, keysFunc, symbolsFunc) {
|
|
6145
6165
|
var result2 = keysFunc(object);
|
|
6146
|
-
return
|
|
6166
|
+
return isArray2(object) ? result2 : arrayPush2(result2, symbolsFunc(object));
|
|
6147
6167
|
}
|
|
6148
|
-
function
|
|
6168
|
+
function baseGetTag2(value) {
|
|
6149
6169
|
if (value == null) {
|
|
6150
|
-
return value === undefined$1 ?
|
|
6170
|
+
return value === undefined$1 ? undefinedTag2 : nullTag2;
|
|
6151
6171
|
}
|
|
6152
|
-
return
|
|
6172
|
+
return symToStringTag2 && symToStringTag2 in Object2(value) ? getRawTag2(value) : objectToString2(value);
|
|
6153
6173
|
}
|
|
6154
6174
|
function baseGt(value, other) {
|
|
6155
6175
|
return value > other;
|
|
6156
6176
|
}
|
|
6157
6177
|
function baseHas(object, key) {
|
|
6158
|
-
return object != null &&
|
|
6178
|
+
return object != null && hasOwnProperty2.call(object, key);
|
|
6159
6179
|
}
|
|
6160
6180
|
function baseHasIn(object, key) {
|
|
6161
6181
|
return object != null && key in Object2(object);
|
|
@@ -6168,7 +6188,7 @@ lodash.exports;
|
|
|
6168
6188
|
while (othIndex--) {
|
|
6169
6189
|
var array = arrays[othIndex];
|
|
6170
6190
|
if (othIndex && iteratee2) {
|
|
6171
|
-
array = arrayMap(array,
|
|
6191
|
+
array = arrayMap(array, baseUnary2(iteratee2));
|
|
6172
6192
|
}
|
|
6173
6193
|
maxLength = nativeMin(array.length, maxLength);
|
|
6174
6194
|
caches[othIndex] = !comparator && (iteratee2 || length >= 120 && array.length >= 120) ? new SetCache(othIndex && array) : undefined$1;
|
|
@@ -6207,56 +6227,56 @@ lodash.exports;
|
|
|
6207
6227
|
var func = object == null ? object : object[toKey(last(path))];
|
|
6208
6228
|
return func == null ? undefined$1 : apply(func, object, args);
|
|
6209
6229
|
}
|
|
6210
|
-
function
|
|
6211
|
-
return
|
|
6230
|
+
function baseIsArguments2(value) {
|
|
6231
|
+
return isObjectLike2(value) && baseGetTag2(value) == argsTag2;
|
|
6212
6232
|
}
|
|
6213
6233
|
function baseIsArrayBuffer(value) {
|
|
6214
|
-
return
|
|
6234
|
+
return isObjectLike2(value) && baseGetTag2(value) == arrayBufferTag2;
|
|
6215
6235
|
}
|
|
6216
6236
|
function baseIsDate(value) {
|
|
6217
|
-
return
|
|
6237
|
+
return isObjectLike2(value) && baseGetTag2(value) == dateTag2;
|
|
6218
6238
|
}
|
|
6219
6239
|
function baseIsEqual(value, other, bitmask, customizer, stack) {
|
|
6220
6240
|
if (value === other) {
|
|
6221
6241
|
return true;
|
|
6222
6242
|
}
|
|
6223
|
-
if (value == null || other == null || !
|
|
6243
|
+
if (value == null || other == null || !isObjectLike2(value) && !isObjectLike2(other)) {
|
|
6224
6244
|
return value !== value && other !== other;
|
|
6225
6245
|
}
|
|
6226
6246
|
return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
|
|
6227
6247
|
}
|
|
6228
6248
|
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
|
6229
|
-
var objIsArr =
|
|
6230
|
-
objTag = objTag ==
|
|
6231
|
-
othTag = othTag ==
|
|
6232
|
-
var objIsObj = objTag ==
|
|
6233
|
-
if (isSameTag &&
|
|
6234
|
-
if (!
|
|
6249
|
+
var objIsArr = isArray2(object), othIsArr = isArray2(other), objTag = objIsArr ? arrayTag2 : getTag2(object), othTag = othIsArr ? arrayTag2 : getTag2(other);
|
|
6250
|
+
objTag = objTag == argsTag2 ? objectTag2 : objTag;
|
|
6251
|
+
othTag = othTag == argsTag2 ? objectTag2 : othTag;
|
|
6252
|
+
var objIsObj = objTag == objectTag2, othIsObj = othTag == objectTag2, isSameTag = objTag == othTag;
|
|
6253
|
+
if (isSameTag && isBuffer2(object)) {
|
|
6254
|
+
if (!isBuffer2(other)) {
|
|
6235
6255
|
return false;
|
|
6236
6256
|
}
|
|
6237
6257
|
objIsArr = true;
|
|
6238
6258
|
objIsObj = false;
|
|
6239
6259
|
}
|
|
6240
6260
|
if (isSameTag && !objIsObj) {
|
|
6241
|
-
stack || (stack = new
|
|
6242
|
-
return objIsArr ||
|
|
6261
|
+
stack || (stack = new Stack2());
|
|
6262
|
+
return objIsArr || isTypedArray2(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
6243
6263
|
}
|
|
6244
6264
|
if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
|
|
6245
|
-
var objIsWrapped = objIsObj &&
|
|
6265
|
+
var objIsWrapped = objIsObj && hasOwnProperty2.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty2.call(other, "__wrapped__");
|
|
6246
6266
|
if (objIsWrapped || othIsWrapped) {
|
|
6247
6267
|
var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
|
|
6248
|
-
stack || (stack = new
|
|
6268
|
+
stack || (stack = new Stack2());
|
|
6249
6269
|
return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
|
|
6250
6270
|
}
|
|
6251
6271
|
}
|
|
6252
6272
|
if (!isSameTag) {
|
|
6253
6273
|
return false;
|
|
6254
6274
|
}
|
|
6255
|
-
stack || (stack = new
|
|
6275
|
+
stack || (stack = new Stack2());
|
|
6256
6276
|
return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
|
|
6257
6277
|
}
|
|
6258
|
-
function
|
|
6259
|
-
return
|
|
6278
|
+
function baseIsMap2(value) {
|
|
6279
|
+
return isObjectLike2(value) && getTag2(value) == mapTag2;
|
|
6260
6280
|
}
|
|
6261
6281
|
function baseIsMatch(object, source, matchData, customizer) {
|
|
6262
6282
|
var index2 = matchData.length, length = index2, noCustomizer = !customizer;
|
|
@@ -6278,7 +6298,7 @@ lodash.exports;
|
|
|
6278
6298
|
return false;
|
|
6279
6299
|
}
|
|
6280
6300
|
} else {
|
|
6281
|
-
var stack = new
|
|
6301
|
+
var stack = new Stack2();
|
|
6282
6302
|
if (customizer) {
|
|
6283
6303
|
var result2 = customizer(objValue, srcValue, key, object, source, stack);
|
|
6284
6304
|
}
|
|
@@ -6289,21 +6309,21 @@ lodash.exports;
|
|
|
6289
6309
|
}
|
|
6290
6310
|
return true;
|
|
6291
6311
|
}
|
|
6292
|
-
function
|
|
6293
|
-
if (!
|
|
6312
|
+
function baseIsNative2(value) {
|
|
6313
|
+
if (!isObject2(value) || isMasked2(value)) {
|
|
6294
6314
|
return false;
|
|
6295
6315
|
}
|
|
6296
|
-
var pattern =
|
|
6297
|
-
return pattern.test(
|
|
6316
|
+
var pattern = isFunction2(value) ? reIsNative2 : reIsHostCtor2;
|
|
6317
|
+
return pattern.test(toSource2(value));
|
|
6298
6318
|
}
|
|
6299
6319
|
function baseIsRegExp(value) {
|
|
6300
|
-
return
|
|
6320
|
+
return isObjectLike2(value) && baseGetTag2(value) == regexpTag2;
|
|
6301
6321
|
}
|
|
6302
|
-
function
|
|
6303
|
-
return
|
|
6322
|
+
function baseIsSet2(value) {
|
|
6323
|
+
return isObjectLike2(value) && getTag2(value) == setTag2;
|
|
6304
6324
|
}
|
|
6305
|
-
function
|
|
6306
|
-
return
|
|
6325
|
+
function baseIsTypedArray2(value) {
|
|
6326
|
+
return isObjectLike2(value) && isLength2(value.length) && !!typedArrayTags2[baseGetTag2(value)];
|
|
6307
6327
|
}
|
|
6308
6328
|
function baseIteratee(value) {
|
|
6309
6329
|
if (typeof value == "function") {
|
|
@@ -6313,29 +6333,29 @@ lodash.exports;
|
|
|
6313
6333
|
return identity;
|
|
6314
6334
|
}
|
|
6315
6335
|
if (typeof value == "object") {
|
|
6316
|
-
return
|
|
6336
|
+
return isArray2(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
|
|
6317
6337
|
}
|
|
6318
6338
|
return property(value);
|
|
6319
6339
|
}
|
|
6320
|
-
function
|
|
6321
|
-
if (!
|
|
6322
|
-
return
|
|
6340
|
+
function baseKeys2(object) {
|
|
6341
|
+
if (!isPrototype2(object)) {
|
|
6342
|
+
return nativeKeys2(object);
|
|
6323
6343
|
}
|
|
6324
6344
|
var result2 = [];
|
|
6325
6345
|
for (var key in Object2(object)) {
|
|
6326
|
-
if (
|
|
6346
|
+
if (hasOwnProperty2.call(object, key) && key != "constructor") {
|
|
6327
6347
|
result2.push(key);
|
|
6328
6348
|
}
|
|
6329
6349
|
}
|
|
6330
6350
|
return result2;
|
|
6331
6351
|
}
|
|
6332
|
-
function
|
|
6333
|
-
if (!
|
|
6334
|
-
return
|
|
6352
|
+
function baseKeysIn2(object) {
|
|
6353
|
+
if (!isObject2(object)) {
|
|
6354
|
+
return nativeKeysIn2(object);
|
|
6335
6355
|
}
|
|
6336
|
-
var isProto =
|
|
6356
|
+
var isProto = isPrototype2(object), result2 = [];
|
|
6337
6357
|
for (var key in object) {
|
|
6338
|
-
if (!(key == "constructor" && (isProto || !
|
|
6358
|
+
if (!(key == "constructor" && (isProto || !hasOwnProperty2.call(object, key)))) {
|
|
6339
6359
|
result2.push(key);
|
|
6340
6360
|
}
|
|
6341
6361
|
}
|
|
@@ -6345,7 +6365,7 @@ lodash.exports;
|
|
|
6345
6365
|
return value < other;
|
|
6346
6366
|
}
|
|
6347
6367
|
function baseMap(collection, iteratee2) {
|
|
6348
|
-
var index2 = -1, result2 =
|
|
6368
|
+
var index2 = -1, result2 = isArrayLike2(collection) ? Array2(collection.length) : [];
|
|
6349
6369
|
baseEach(collection, function(value, key, collection2) {
|
|
6350
6370
|
result2[++index2] = iteratee2(value, key, collection2);
|
|
6351
6371
|
});
|
|
@@ -6374,8 +6394,8 @@ lodash.exports;
|
|
|
6374
6394
|
return;
|
|
6375
6395
|
}
|
|
6376
6396
|
baseFor(source, function(srcValue, key) {
|
|
6377
|
-
stack || (stack = new
|
|
6378
|
-
if (
|
|
6397
|
+
stack || (stack = new Stack2());
|
|
6398
|
+
if (isObject2(srcValue)) {
|
|
6379
6399
|
baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
|
|
6380
6400
|
} else {
|
|
6381
6401
|
var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : undefined$1;
|
|
@@ -6384,7 +6404,7 @@ lodash.exports;
|
|
|
6384
6404
|
}
|
|
6385
6405
|
assignMergeValue(object, key, newValue);
|
|
6386
6406
|
}
|
|
6387
|
-
},
|
|
6407
|
+
}, keysIn2);
|
|
6388
6408
|
}
|
|
6389
6409
|
function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
|
|
6390
6410
|
var objValue = safeGet(object, key), srcValue = safeGet(source, key), stacked = stack.get(srcValue);
|
|
@@ -6395,28 +6415,28 @@ lodash.exports;
|
|
|
6395
6415
|
var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : undefined$1;
|
|
6396
6416
|
var isCommon = newValue === undefined$1;
|
|
6397
6417
|
if (isCommon) {
|
|
6398
|
-
var isArr =
|
|
6418
|
+
var isArr = isArray2(srcValue), isBuff = !isArr && isBuffer2(srcValue), isTyped = !isArr && !isBuff && isTypedArray2(srcValue);
|
|
6399
6419
|
newValue = srcValue;
|
|
6400
6420
|
if (isArr || isBuff || isTyped) {
|
|
6401
|
-
if (
|
|
6421
|
+
if (isArray2(objValue)) {
|
|
6402
6422
|
newValue = objValue;
|
|
6403
6423
|
} else if (isArrayLikeObject(objValue)) {
|
|
6404
|
-
newValue =
|
|
6424
|
+
newValue = copyArray2(objValue);
|
|
6405
6425
|
} else if (isBuff) {
|
|
6406
6426
|
isCommon = false;
|
|
6407
|
-
newValue =
|
|
6427
|
+
newValue = cloneBuffer2(srcValue, true);
|
|
6408
6428
|
} else if (isTyped) {
|
|
6409
6429
|
isCommon = false;
|
|
6410
|
-
newValue =
|
|
6430
|
+
newValue = cloneTypedArray2(srcValue, true);
|
|
6411
6431
|
} else {
|
|
6412
6432
|
newValue = [];
|
|
6413
6433
|
}
|
|
6414
|
-
} else if (isPlainObject(srcValue) ||
|
|
6434
|
+
} else if (isPlainObject(srcValue) || isArguments2(srcValue)) {
|
|
6415
6435
|
newValue = objValue;
|
|
6416
|
-
if (
|
|
6436
|
+
if (isArguments2(objValue)) {
|
|
6417
6437
|
newValue = toPlainObject(objValue);
|
|
6418
|
-
} else if (!
|
|
6419
|
-
newValue =
|
|
6438
|
+
} else if (!isObject2(objValue) || isFunction2(objValue)) {
|
|
6439
|
+
newValue = initCloneObject2(srcValue);
|
|
6420
6440
|
}
|
|
6421
6441
|
} else {
|
|
6422
6442
|
isCommon = false;
|
|
@@ -6435,12 +6455,12 @@ lodash.exports;
|
|
|
6435
6455
|
return;
|
|
6436
6456
|
}
|
|
6437
6457
|
n += n < 0 ? length : 0;
|
|
6438
|
-
return
|
|
6458
|
+
return isIndex2(n, length) ? array[n] : undefined$1;
|
|
6439
6459
|
}
|
|
6440
6460
|
function baseOrderBy(collection, iteratees, orders) {
|
|
6441
6461
|
if (iteratees.length) {
|
|
6442
6462
|
iteratees = arrayMap(iteratees, function(iteratee2) {
|
|
6443
|
-
if (
|
|
6463
|
+
if (isArray2(iteratee2)) {
|
|
6444
6464
|
return function(value) {
|
|
6445
6465
|
return baseGet(value, iteratee2.length === 1 ? iteratee2[0] : iteratee2);
|
|
6446
6466
|
};
|
|
@@ -6451,7 +6471,7 @@ lodash.exports;
|
|
|
6451
6471
|
iteratees = [identity];
|
|
6452
6472
|
}
|
|
6453
6473
|
var index2 = -1;
|
|
6454
|
-
iteratees = arrayMap(iteratees,
|
|
6474
|
+
iteratees = arrayMap(iteratees, baseUnary2(getIteratee()));
|
|
6455
6475
|
var result2 = baseMap(collection, function(value, key, collection2) {
|
|
6456
6476
|
var criteria = arrayMap(iteratees, function(iteratee2) {
|
|
6457
6477
|
return iteratee2(value);
|
|
@@ -6485,18 +6505,18 @@ lodash.exports;
|
|
|
6485
6505
|
function basePullAll(array, values2, iteratee2, comparator) {
|
|
6486
6506
|
var indexOf2 = comparator ? baseIndexOfWith : baseIndexOf, index2 = -1, length = values2.length, seen = array;
|
|
6487
6507
|
if (array === values2) {
|
|
6488
|
-
values2 =
|
|
6508
|
+
values2 = copyArray2(values2);
|
|
6489
6509
|
}
|
|
6490
6510
|
if (iteratee2) {
|
|
6491
|
-
seen = arrayMap(array,
|
|
6511
|
+
seen = arrayMap(array, baseUnary2(iteratee2));
|
|
6492
6512
|
}
|
|
6493
6513
|
while (++index2 < length) {
|
|
6494
6514
|
var fromIndex = 0, value = values2[index2], computed = iteratee2 ? iteratee2(value) : value;
|
|
6495
6515
|
while ((fromIndex = indexOf2(seen, computed, fromIndex, comparator)) > -1) {
|
|
6496
6516
|
if (seen !== array) {
|
|
6497
|
-
|
|
6517
|
+
splice2.call(seen, fromIndex, 1);
|
|
6498
6518
|
}
|
|
6499
|
-
|
|
6519
|
+
splice2.call(array, fromIndex, 1);
|
|
6500
6520
|
}
|
|
6501
6521
|
}
|
|
6502
6522
|
return array;
|
|
@@ -6507,8 +6527,8 @@ lodash.exports;
|
|
|
6507
6527
|
var index2 = indexes[length];
|
|
6508
6528
|
if (length == lastIndex || index2 !== previous) {
|
|
6509
6529
|
var previous = index2;
|
|
6510
|
-
if (
|
|
6511
|
-
|
|
6530
|
+
if (isIndex2(index2)) {
|
|
6531
|
+
splice2.call(array, index2, 1);
|
|
6512
6532
|
} else {
|
|
6513
6533
|
baseUnset(array, index2);
|
|
6514
6534
|
}
|
|
@@ -6529,7 +6549,7 @@ lodash.exports;
|
|
|
6529
6549
|
}
|
|
6530
6550
|
function baseRepeat(string, n) {
|
|
6531
6551
|
var result2 = "";
|
|
6532
|
-
if (!string || n < 1 || n >
|
|
6552
|
+
if (!string || n < 1 || n > MAX_SAFE_INTEGER2) {
|
|
6533
6553
|
return result2;
|
|
6534
6554
|
}
|
|
6535
6555
|
do {
|
|
@@ -6554,7 +6574,7 @@ lodash.exports;
|
|
|
6554
6574
|
return shuffleSelf(array, baseClamp(n, 0, array.length));
|
|
6555
6575
|
}
|
|
6556
6576
|
function baseSet(object, path, value, customizer) {
|
|
6557
|
-
if (!
|
|
6577
|
+
if (!isObject2(object)) {
|
|
6558
6578
|
return object;
|
|
6559
6579
|
}
|
|
6560
6580
|
path = castPath(path, object);
|
|
@@ -6568,10 +6588,10 @@ lodash.exports;
|
|
|
6568
6588
|
var objValue = nested[key];
|
|
6569
6589
|
newValue = customizer ? customizer(objValue, key, nested) : undefined$1;
|
|
6570
6590
|
if (newValue === undefined$1) {
|
|
6571
|
-
newValue =
|
|
6591
|
+
newValue = isObject2(objValue) ? objValue : isIndex2(path[index2 + 1]) ? [] : {};
|
|
6572
6592
|
}
|
|
6573
6593
|
}
|
|
6574
|
-
|
|
6594
|
+
assignValue2(nested, key, newValue);
|
|
6575
6595
|
nested = nested[key];
|
|
6576
6596
|
}
|
|
6577
6597
|
return object;
|
|
@@ -6580,8 +6600,8 @@ lodash.exports;
|
|
|
6580
6600
|
metaMap.set(func, data);
|
|
6581
6601
|
return func;
|
|
6582
6602
|
};
|
|
6583
|
-
var baseSetToString = !
|
|
6584
|
-
return
|
|
6603
|
+
var baseSetToString = !defineProperty2 ? identity : function(func, string) {
|
|
6604
|
+
return defineProperty2(func, "toString", {
|
|
6585
6605
|
"configurable": true,
|
|
6586
6606
|
"enumerable": false,
|
|
6587
6607
|
"value": constant(string),
|
|
@@ -6665,7 +6685,7 @@ lodash.exports;
|
|
|
6665
6685
|
var index2 = -1, length = array.length, resIndex = 0, result2 = [];
|
|
6666
6686
|
while (++index2 < length) {
|
|
6667
6687
|
var value = array[index2], computed = iteratee2 ? iteratee2(value) : value;
|
|
6668
|
-
if (!index2 || !
|
|
6688
|
+
if (!index2 || !eq2(computed, seen)) {
|
|
6669
6689
|
var seen = computed;
|
|
6670
6690
|
result2[resIndex++] = value === 0 ? 0 : value;
|
|
6671
6691
|
}
|
|
@@ -6685,7 +6705,7 @@ lodash.exports;
|
|
|
6685
6705
|
if (typeof value == "string") {
|
|
6686
6706
|
return value;
|
|
6687
6707
|
}
|
|
6688
|
-
if (
|
|
6708
|
+
if (isArray2(value)) {
|
|
6689
6709
|
return arrayMap(value, baseToString) + "";
|
|
6690
6710
|
}
|
|
6691
6711
|
if (isSymbol(value)) {
|
|
@@ -6699,7 +6719,7 @@ lodash.exports;
|
|
|
6699
6719
|
if (comparator) {
|
|
6700
6720
|
isCommon = false;
|
|
6701
6721
|
includes2 = arrayIncludesWith;
|
|
6702
|
-
} else if (length >=
|
|
6722
|
+
} else if (length >= LARGE_ARRAY_SIZE2) {
|
|
6703
6723
|
var set2 = iteratee2 ? null : createSet(array);
|
|
6704
6724
|
if (set2) {
|
|
6705
6725
|
return setToArray(set2);
|
|
@@ -6754,7 +6774,7 @@ lodash.exports;
|
|
|
6754
6774
|
result2 = result2.value();
|
|
6755
6775
|
}
|
|
6756
6776
|
return arrayReduce(actions, function(result3, action) {
|
|
6757
|
-
return action.func.apply(action.thisArg,
|
|
6777
|
+
return action.func.apply(action.thisArg, arrayPush2([result3], action.args));
|
|
6758
6778
|
}, result2);
|
|
6759
6779
|
}
|
|
6760
6780
|
function baseXor(arrays, iteratee2, comparator) {
|
|
@@ -6788,7 +6808,7 @@ lodash.exports;
|
|
|
6788
6808
|
return typeof value == "function" ? value : identity;
|
|
6789
6809
|
}
|
|
6790
6810
|
function castPath(value, object) {
|
|
6791
|
-
if (
|
|
6811
|
+
if (isArray2(value)) {
|
|
6792
6812
|
return value;
|
|
6793
6813
|
}
|
|
6794
6814
|
return isKey(value, object) ? [value] : stringToPath(toString(value));
|
|
@@ -6800,9 +6820,9 @@ lodash.exports;
|
|
|
6800
6820
|
return !start && end >= length ? array : baseSlice(array, start, end);
|
|
6801
6821
|
}
|
|
6802
6822
|
var clearTimeout = ctxClearTimeout || function(id) {
|
|
6803
|
-
return
|
|
6823
|
+
return root2.clearTimeout(id);
|
|
6804
6824
|
};
|
|
6805
|
-
function
|
|
6825
|
+
function cloneBuffer2(buffer, isDeep) {
|
|
6806
6826
|
if (isDeep) {
|
|
6807
6827
|
return buffer.slice();
|
|
6808
6828
|
}
|
|
@@ -6810,25 +6830,25 @@ lodash.exports;
|
|
|
6810
6830
|
buffer.copy(result2);
|
|
6811
6831
|
return result2;
|
|
6812
6832
|
}
|
|
6813
|
-
function
|
|
6833
|
+
function cloneArrayBuffer2(arrayBuffer) {
|
|
6814
6834
|
var result2 = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
6815
|
-
new
|
|
6835
|
+
new Uint8Array2(result2).set(new Uint8Array2(arrayBuffer));
|
|
6816
6836
|
return result2;
|
|
6817
6837
|
}
|
|
6818
|
-
function
|
|
6819
|
-
var buffer = isDeep ?
|
|
6838
|
+
function cloneDataView2(dataView, isDeep) {
|
|
6839
|
+
var buffer = isDeep ? cloneArrayBuffer2(dataView.buffer) : dataView.buffer;
|
|
6820
6840
|
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
|
6821
6841
|
}
|
|
6822
|
-
function
|
|
6823
|
-
var result2 = new regexp.constructor(regexp.source,
|
|
6842
|
+
function cloneRegExp2(regexp) {
|
|
6843
|
+
var result2 = new regexp.constructor(regexp.source, reFlags2.exec(regexp));
|
|
6824
6844
|
result2.lastIndex = regexp.lastIndex;
|
|
6825
6845
|
return result2;
|
|
6826
6846
|
}
|
|
6827
|
-
function
|
|
6828
|
-
return
|
|
6847
|
+
function cloneSymbol2(symbol) {
|
|
6848
|
+
return symbolValueOf2 ? Object2(symbolValueOf2.call(symbol)) : {};
|
|
6829
6849
|
}
|
|
6830
|
-
function
|
|
6831
|
-
var buffer = isDeep ?
|
|
6850
|
+
function cloneTypedArray2(typedArray, isDeep) {
|
|
6851
|
+
var buffer = isDeep ? cloneArrayBuffer2(typedArray.buffer) : typedArray.buffer;
|
|
6832
6852
|
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
6833
6853
|
}
|
|
6834
6854
|
function compareAscending(value, other) {
|
|
@@ -6889,7 +6909,7 @@ lodash.exports;
|
|
|
6889
6909
|
}
|
|
6890
6910
|
return result2;
|
|
6891
6911
|
}
|
|
6892
|
-
function
|
|
6912
|
+
function copyArray2(source, array) {
|
|
6893
6913
|
var index2 = -1, length = source.length;
|
|
6894
6914
|
array || (array = Array2(length));
|
|
6895
6915
|
while (++index2 < length) {
|
|
@@ -6897,7 +6917,7 @@ lodash.exports;
|
|
|
6897
6917
|
}
|
|
6898
6918
|
return array;
|
|
6899
6919
|
}
|
|
6900
|
-
function
|
|
6920
|
+
function copyObject2(source, props, object, customizer) {
|
|
6901
6921
|
var isNew = !object;
|
|
6902
6922
|
object || (object = {});
|
|
6903
6923
|
var index2 = -1, length = props.length;
|
|
@@ -6908,22 +6928,22 @@ lodash.exports;
|
|
|
6908
6928
|
newValue = source[key];
|
|
6909
6929
|
}
|
|
6910
6930
|
if (isNew) {
|
|
6911
|
-
|
|
6931
|
+
baseAssignValue2(object, key, newValue);
|
|
6912
6932
|
} else {
|
|
6913
|
-
|
|
6933
|
+
assignValue2(object, key, newValue);
|
|
6914
6934
|
}
|
|
6915
6935
|
}
|
|
6916
6936
|
return object;
|
|
6917
6937
|
}
|
|
6918
|
-
function
|
|
6919
|
-
return
|
|
6938
|
+
function copySymbols2(source, object) {
|
|
6939
|
+
return copyObject2(source, getSymbols2(source), object);
|
|
6920
6940
|
}
|
|
6921
|
-
function
|
|
6922
|
-
return
|
|
6941
|
+
function copySymbolsIn2(source, object) {
|
|
6942
|
+
return copyObject2(source, getSymbolsIn2(source), object);
|
|
6923
6943
|
}
|
|
6924
6944
|
function createAggregator(setter, initializer) {
|
|
6925
6945
|
return function(collection, iteratee2) {
|
|
6926
|
-
var func =
|
|
6946
|
+
var func = isArray2(collection) ? arrayAggregator : baseAggregator, accumulator = initializer ? initializer() : {};
|
|
6927
6947
|
return func(collection, setter, getIteratee(iteratee2, 2), accumulator);
|
|
6928
6948
|
};
|
|
6929
6949
|
}
|
|
@@ -6950,7 +6970,7 @@ lodash.exports;
|
|
|
6950
6970
|
if (collection == null) {
|
|
6951
6971
|
return collection;
|
|
6952
6972
|
}
|
|
6953
|
-
if (!
|
|
6973
|
+
if (!isArrayLike2(collection)) {
|
|
6954
6974
|
return eachFunc(collection, iteratee2);
|
|
6955
6975
|
}
|
|
6956
6976
|
var length = collection.length, index2 = fromRight ? length : -1, iterable = Object2(collection);
|
|
@@ -6977,7 +6997,7 @@ lodash.exports;
|
|
|
6977
6997
|
function createBind(func, bitmask, thisArg) {
|
|
6978
6998
|
var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func);
|
|
6979
6999
|
function wrapper() {
|
|
6980
|
-
var fn = this && this !==
|
|
7000
|
+
var fn = this && this !== root2 && this instanceof wrapper ? Ctor : func;
|
|
6981
7001
|
return fn.apply(isBind ? thisArg : this, arguments);
|
|
6982
7002
|
}
|
|
6983
7003
|
return wrapper;
|
|
@@ -7017,8 +7037,8 @@ lodash.exports;
|
|
|
7017
7037
|
case 7:
|
|
7018
7038
|
return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
|
|
7019
7039
|
}
|
|
7020
|
-
var thisBinding =
|
|
7021
|
-
return
|
|
7040
|
+
var thisBinding = baseCreate2(Ctor.prototype), result2 = Ctor.apply(thisBinding, args);
|
|
7041
|
+
return isObject2(result2) ? result2 : thisBinding;
|
|
7022
7042
|
};
|
|
7023
7043
|
}
|
|
7024
7044
|
function createCurry(func, bitmask, arity) {
|
|
@@ -7044,7 +7064,7 @@ lodash.exports;
|
|
|
7044
7064
|
arity - length
|
|
7045
7065
|
);
|
|
7046
7066
|
}
|
|
7047
|
-
var fn = this && this !==
|
|
7067
|
+
var fn = this && this !== root2 && this instanceof wrapper ? Ctor : func;
|
|
7048
7068
|
return apply(fn, this, args);
|
|
7049
7069
|
}
|
|
7050
7070
|
return wrapper;
|
|
@@ -7052,9 +7072,9 @@ lodash.exports;
|
|
|
7052
7072
|
function createFind(findIndexFunc) {
|
|
7053
7073
|
return function(collection, predicate, fromIndex) {
|
|
7054
7074
|
var iterable = Object2(collection);
|
|
7055
|
-
if (!
|
|
7075
|
+
if (!isArrayLike2(collection)) {
|
|
7056
7076
|
var iteratee2 = getIteratee(predicate, 3);
|
|
7057
|
-
collection =
|
|
7077
|
+
collection = keys2(collection);
|
|
7058
7078
|
predicate = function(key) {
|
|
7059
7079
|
return iteratee2(iterable[key], key, iterable);
|
|
7060
7080
|
};
|
|
@@ -7090,7 +7110,7 @@ lodash.exports;
|
|
|
7090
7110
|
}
|
|
7091
7111
|
return function() {
|
|
7092
7112
|
var args = arguments, value = args[0];
|
|
7093
|
-
if (wrapper && args.length == 1 &&
|
|
7113
|
+
if (wrapper && args.length == 1 && isArray2(value)) {
|
|
7094
7114
|
return wrapper.plant(value).value();
|
|
7095
7115
|
}
|
|
7096
7116
|
var index3 = 0, result2 = length ? funcs[index3].apply(this, args) : value;
|
|
@@ -7143,7 +7163,7 @@ lodash.exports;
|
|
|
7143
7163
|
if (isAry && ary2 < length) {
|
|
7144
7164
|
args.length = ary2;
|
|
7145
7165
|
}
|
|
7146
|
-
if (this && this !==
|
|
7166
|
+
if (this && this !== root2 && this instanceof wrapper) {
|
|
7147
7167
|
fn = Ctor || createCtor(fn);
|
|
7148
7168
|
}
|
|
7149
7169
|
return fn.apply(thisBinding, args);
|
|
@@ -7182,7 +7202,7 @@ lodash.exports;
|
|
|
7182
7202
|
}
|
|
7183
7203
|
function createOver(arrayFunc) {
|
|
7184
7204
|
return flatRest(function(iteratees) {
|
|
7185
|
-
iteratees = arrayMap(iteratees,
|
|
7205
|
+
iteratees = arrayMap(iteratees, baseUnary2(getIteratee()));
|
|
7186
7206
|
return baseRest(function(args) {
|
|
7187
7207
|
var thisArg = this;
|
|
7188
7208
|
return arrayFunc(iteratees, function(iteratee2) {
|
|
@@ -7203,7 +7223,7 @@ lodash.exports;
|
|
|
7203
7223
|
function createPartial(func, bitmask, thisArg, partials) {
|
|
7204
7224
|
var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func);
|
|
7205
7225
|
function wrapper() {
|
|
7206
|
-
var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength), fn = this && this !==
|
|
7226
|
+
var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength), fn = this && this !== root2 && this instanceof wrapper ? Ctor : func;
|
|
7207
7227
|
while (++leftIndex < leftLength) {
|
|
7208
7228
|
args[leftIndex] = partials[leftIndex];
|
|
7209
7229
|
}
|
|
@@ -7278,16 +7298,16 @@ lodash.exports;
|
|
|
7278
7298
|
return func(number);
|
|
7279
7299
|
};
|
|
7280
7300
|
}
|
|
7281
|
-
var createSet = !(
|
|
7282
|
-
return new
|
|
7301
|
+
var createSet = !(Set2 && 1 / setToArray(new Set2([, -0]))[1] == INFINITY) ? noop : function(values2) {
|
|
7302
|
+
return new Set2(values2);
|
|
7283
7303
|
};
|
|
7284
7304
|
function createToPairs(keysFunc) {
|
|
7285
7305
|
return function(object) {
|
|
7286
|
-
var tag =
|
|
7287
|
-
if (tag ==
|
|
7306
|
+
var tag = getTag2(object);
|
|
7307
|
+
if (tag == mapTag2) {
|
|
7288
7308
|
return mapToArray(object);
|
|
7289
7309
|
}
|
|
7290
|
-
if (tag ==
|
|
7310
|
+
if (tag == setTag2) {
|
|
7291
7311
|
return setToPairs(object);
|
|
7292
7312
|
}
|
|
7293
7313
|
return baseToPairs(object, keysFunc(object));
|
|
@@ -7348,13 +7368,13 @@ lodash.exports;
|
|
|
7348
7368
|
return setWrapToString(setter(result2, newData), func, bitmask);
|
|
7349
7369
|
}
|
|
7350
7370
|
function customDefaultsAssignIn(objValue, srcValue, key, object) {
|
|
7351
|
-
if (objValue === undefined$1 ||
|
|
7371
|
+
if (objValue === undefined$1 || eq2(objValue, objectProto2[key]) && !hasOwnProperty2.call(object, key)) {
|
|
7352
7372
|
return srcValue;
|
|
7353
7373
|
}
|
|
7354
7374
|
return objValue;
|
|
7355
7375
|
}
|
|
7356
7376
|
function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {
|
|
7357
|
-
if (
|
|
7377
|
+
if (isObject2(objValue) && isObject2(srcValue)) {
|
|
7358
7378
|
stack.set(srcValue, objValue);
|
|
7359
7379
|
baseMerge(objValue, srcValue, undefined$1, customDefaultsMerge, stack);
|
|
7360
7380
|
stack["delete"](srcValue);
|
|
@@ -7409,29 +7429,29 @@ lodash.exports;
|
|
|
7409
7429
|
}
|
|
7410
7430
|
function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
7411
7431
|
switch (tag) {
|
|
7412
|
-
case
|
|
7432
|
+
case dataViewTag2:
|
|
7413
7433
|
if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {
|
|
7414
7434
|
return false;
|
|
7415
7435
|
}
|
|
7416
7436
|
object = object.buffer;
|
|
7417
7437
|
other = other.buffer;
|
|
7418
|
-
case
|
|
7419
|
-
if (object.byteLength != other.byteLength || !equalFunc(new
|
|
7438
|
+
case arrayBufferTag2:
|
|
7439
|
+
if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array2(object), new Uint8Array2(other))) {
|
|
7420
7440
|
return false;
|
|
7421
7441
|
}
|
|
7422
7442
|
return true;
|
|
7423
|
-
case
|
|
7424
|
-
case
|
|
7425
|
-
case
|
|
7426
|
-
return
|
|
7427
|
-
case
|
|
7443
|
+
case boolTag2:
|
|
7444
|
+
case dateTag2:
|
|
7445
|
+
case numberTag2:
|
|
7446
|
+
return eq2(+object, +other);
|
|
7447
|
+
case errorTag2:
|
|
7428
7448
|
return object.name == other.name && object.message == other.message;
|
|
7429
|
-
case
|
|
7430
|
-
case
|
|
7449
|
+
case regexpTag2:
|
|
7450
|
+
case stringTag2:
|
|
7431
7451
|
return object == other + "";
|
|
7432
|
-
case
|
|
7452
|
+
case mapTag2:
|
|
7433
7453
|
var convert = mapToArray;
|
|
7434
|
-
case
|
|
7454
|
+
case setTag2:
|
|
7435
7455
|
var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
|
|
7436
7456
|
convert || (convert = setToArray);
|
|
7437
7457
|
if (object.size != other.size && !isPartial) {
|
|
@@ -7446,22 +7466,22 @@ lodash.exports;
|
|
|
7446
7466
|
var result2 = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
|
|
7447
7467
|
stack["delete"](object);
|
|
7448
7468
|
return result2;
|
|
7449
|
-
case
|
|
7450
|
-
if (
|
|
7451
|
-
return
|
|
7469
|
+
case symbolTag2:
|
|
7470
|
+
if (symbolValueOf2) {
|
|
7471
|
+
return symbolValueOf2.call(object) == symbolValueOf2.call(other);
|
|
7452
7472
|
}
|
|
7453
7473
|
}
|
|
7454
7474
|
return false;
|
|
7455
7475
|
}
|
|
7456
7476
|
function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
|
7457
|
-
var isPartial = bitmask & COMPARE_PARTIAL_FLAG, objProps =
|
|
7477
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG, objProps = getAllKeys2(object), objLength = objProps.length, othProps = getAllKeys2(other), othLength = othProps.length;
|
|
7458
7478
|
if (objLength != othLength && !isPartial) {
|
|
7459
7479
|
return false;
|
|
7460
7480
|
}
|
|
7461
7481
|
var index2 = objLength;
|
|
7462
7482
|
while (index2--) {
|
|
7463
7483
|
var key = objProps[index2];
|
|
7464
|
-
if (!(isPartial ? key in other :
|
|
7484
|
+
if (!(isPartial ? key in other : hasOwnProperty2.call(other, key))) {
|
|
7465
7485
|
return false;
|
|
7466
7486
|
}
|
|
7467
7487
|
}
|
|
@@ -7499,17 +7519,17 @@ lodash.exports;
|
|
|
7499
7519
|
function flatRest(func) {
|
|
7500
7520
|
return setToString(overRest(func, undefined$1, flatten), func + "");
|
|
7501
7521
|
}
|
|
7502
|
-
function
|
|
7503
|
-
return
|
|
7522
|
+
function getAllKeys2(object) {
|
|
7523
|
+
return baseGetAllKeys2(object, keys2, getSymbols2);
|
|
7504
7524
|
}
|
|
7505
|
-
function
|
|
7506
|
-
return
|
|
7525
|
+
function getAllKeysIn2(object) {
|
|
7526
|
+
return baseGetAllKeys2(object, keysIn2, getSymbolsIn2);
|
|
7507
7527
|
}
|
|
7508
7528
|
var getData = !metaMap ? noop : function(func) {
|
|
7509
7529
|
return metaMap.get(func);
|
|
7510
7530
|
};
|
|
7511
7531
|
function getFuncName(func) {
|
|
7512
|
-
var result2 = func.name + "", array = realNames[result2], length =
|
|
7532
|
+
var result2 = func.name + "", array = realNames[result2], length = hasOwnProperty2.call(realNames, result2) ? array.length : 0;
|
|
7513
7533
|
while (length--) {
|
|
7514
7534
|
var data = array[length], otherFunc = data.func;
|
|
7515
7535
|
if (otherFunc == null || otherFunc == func) {
|
|
@@ -7519,7 +7539,7 @@ lodash.exports;
|
|
|
7519
7539
|
return result2;
|
|
7520
7540
|
}
|
|
7521
7541
|
function getHolder(func) {
|
|
7522
|
-
var object =
|
|
7542
|
+
var object = hasOwnProperty2.call(lodash2, "placeholder") ? lodash2 : func;
|
|
7523
7543
|
return object.placeholder;
|
|
7524
7544
|
}
|
|
7525
7545
|
function getIteratee() {
|
|
@@ -7527,72 +7547,72 @@ lodash.exports;
|
|
|
7527
7547
|
result2 = result2 === iteratee ? baseIteratee : result2;
|
|
7528
7548
|
return arguments.length ? result2(arguments[0], arguments[1]) : result2;
|
|
7529
7549
|
}
|
|
7530
|
-
function
|
|
7550
|
+
function getMapData2(map2, key) {
|
|
7531
7551
|
var data = map2.__data__;
|
|
7532
|
-
return
|
|
7552
|
+
return isKeyable2(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
7533
7553
|
}
|
|
7534
7554
|
function getMatchData(object) {
|
|
7535
|
-
var result2 =
|
|
7555
|
+
var result2 = keys2(object), length = result2.length;
|
|
7536
7556
|
while (length--) {
|
|
7537
7557
|
var key = result2[length], value = object[key];
|
|
7538
7558
|
result2[length] = [key, value, isStrictComparable(value)];
|
|
7539
7559
|
}
|
|
7540
7560
|
return result2;
|
|
7541
7561
|
}
|
|
7542
|
-
function
|
|
7543
|
-
var value =
|
|
7544
|
-
return
|
|
7562
|
+
function getNative2(object, key) {
|
|
7563
|
+
var value = getValue2(object, key);
|
|
7564
|
+
return baseIsNative2(value) ? value : undefined$1;
|
|
7545
7565
|
}
|
|
7546
|
-
function
|
|
7547
|
-
var isOwn =
|
|
7566
|
+
function getRawTag2(value) {
|
|
7567
|
+
var isOwn = hasOwnProperty2.call(value, symToStringTag2), tag = value[symToStringTag2];
|
|
7548
7568
|
try {
|
|
7549
|
-
value[
|
|
7569
|
+
value[symToStringTag2] = undefined$1;
|
|
7550
7570
|
var unmasked = true;
|
|
7551
7571
|
} catch (e) {
|
|
7552
7572
|
}
|
|
7553
|
-
var result2 =
|
|
7573
|
+
var result2 = nativeObjectToString2.call(value);
|
|
7554
7574
|
if (unmasked) {
|
|
7555
7575
|
if (isOwn) {
|
|
7556
|
-
value[
|
|
7576
|
+
value[symToStringTag2] = tag;
|
|
7557
7577
|
} else {
|
|
7558
|
-
delete value[
|
|
7578
|
+
delete value[symToStringTag2];
|
|
7559
7579
|
}
|
|
7560
7580
|
}
|
|
7561
7581
|
return result2;
|
|
7562
7582
|
}
|
|
7563
|
-
var
|
|
7583
|
+
var getSymbols2 = !nativeGetSymbols2 ? stubArray2 : function(object) {
|
|
7564
7584
|
if (object == null) {
|
|
7565
7585
|
return [];
|
|
7566
7586
|
}
|
|
7567
7587
|
object = Object2(object);
|
|
7568
|
-
return
|
|
7569
|
-
return
|
|
7588
|
+
return arrayFilter2(nativeGetSymbols2(object), function(symbol) {
|
|
7589
|
+
return propertyIsEnumerable2.call(object, symbol);
|
|
7570
7590
|
});
|
|
7571
7591
|
};
|
|
7572
|
-
var
|
|
7592
|
+
var getSymbolsIn2 = !nativeGetSymbols2 ? stubArray2 : function(object) {
|
|
7573
7593
|
var result2 = [];
|
|
7574
7594
|
while (object) {
|
|
7575
|
-
|
|
7576
|
-
object =
|
|
7595
|
+
arrayPush2(result2, getSymbols2(object));
|
|
7596
|
+
object = getPrototype2(object);
|
|
7577
7597
|
}
|
|
7578
7598
|
return result2;
|
|
7579
7599
|
};
|
|
7580
|
-
var
|
|
7581
|
-
if (
|
|
7582
|
-
|
|
7583
|
-
var result2 =
|
|
7600
|
+
var getTag2 = baseGetTag2;
|
|
7601
|
+
if (DataView2 && getTag2(new DataView2(new ArrayBuffer(1))) != dataViewTag2 || Map2 && getTag2(new Map2()) != mapTag2 || Promise2 && getTag2(Promise2.resolve()) != promiseTag2 || Set2 && getTag2(new Set2()) != setTag2 || WeakMap2 && getTag2(new WeakMap2()) != weakMapTag2) {
|
|
7602
|
+
getTag2 = function(value) {
|
|
7603
|
+
var result2 = baseGetTag2(value), Ctor = result2 == objectTag2 ? value.constructor : undefined$1, ctorString = Ctor ? toSource2(Ctor) : "";
|
|
7584
7604
|
if (ctorString) {
|
|
7585
7605
|
switch (ctorString) {
|
|
7586
|
-
case
|
|
7587
|
-
return
|
|
7588
|
-
case
|
|
7589
|
-
return
|
|
7590
|
-
case
|
|
7591
|
-
return
|
|
7592
|
-
case
|
|
7593
|
-
return
|
|
7594
|
-
case
|
|
7595
|
-
return
|
|
7606
|
+
case dataViewCtorString2:
|
|
7607
|
+
return dataViewTag2;
|
|
7608
|
+
case mapCtorString2:
|
|
7609
|
+
return mapTag2;
|
|
7610
|
+
case promiseCtorString2:
|
|
7611
|
+
return promiseTag2;
|
|
7612
|
+
case setCtorString2:
|
|
7613
|
+
return setTag2;
|
|
7614
|
+
case weakMapCtorString2:
|
|
7615
|
+
return weakMapTag2;
|
|
7596
7616
|
}
|
|
7597
7617
|
}
|
|
7598
7618
|
return result2;
|
|
@@ -7637,50 +7657,50 @@ lodash.exports;
|
|
|
7637
7657
|
return result2;
|
|
7638
7658
|
}
|
|
7639
7659
|
length = object == null ? 0 : object.length;
|
|
7640
|
-
return !!length &&
|
|
7660
|
+
return !!length && isLength2(length) && isIndex2(key, length) && (isArray2(object) || isArguments2(object));
|
|
7641
7661
|
}
|
|
7642
|
-
function
|
|
7662
|
+
function initCloneArray2(array) {
|
|
7643
7663
|
var length = array.length, result2 = new array.constructor(length);
|
|
7644
|
-
if (length && typeof array[0] == "string" &&
|
|
7664
|
+
if (length && typeof array[0] == "string" && hasOwnProperty2.call(array, "index")) {
|
|
7645
7665
|
result2.index = array.index;
|
|
7646
7666
|
result2.input = array.input;
|
|
7647
7667
|
}
|
|
7648
7668
|
return result2;
|
|
7649
7669
|
}
|
|
7650
|
-
function
|
|
7651
|
-
return typeof object.constructor == "function" && !
|
|
7670
|
+
function initCloneObject2(object) {
|
|
7671
|
+
return typeof object.constructor == "function" && !isPrototype2(object) ? baseCreate2(getPrototype2(object)) : {};
|
|
7652
7672
|
}
|
|
7653
|
-
function
|
|
7673
|
+
function initCloneByTag2(object, tag, isDeep) {
|
|
7654
7674
|
var Ctor = object.constructor;
|
|
7655
7675
|
switch (tag) {
|
|
7656
|
-
case
|
|
7657
|
-
return
|
|
7658
|
-
case
|
|
7659
|
-
case
|
|
7676
|
+
case arrayBufferTag2:
|
|
7677
|
+
return cloneArrayBuffer2(object);
|
|
7678
|
+
case boolTag2:
|
|
7679
|
+
case dateTag2:
|
|
7660
7680
|
return new Ctor(+object);
|
|
7661
|
-
case
|
|
7662
|
-
return
|
|
7663
|
-
case
|
|
7664
|
-
case
|
|
7665
|
-
case
|
|
7666
|
-
case
|
|
7667
|
-
case
|
|
7668
|
-
case
|
|
7669
|
-
case
|
|
7670
|
-
case
|
|
7671
|
-
case
|
|
7672
|
-
return
|
|
7673
|
-
case
|
|
7681
|
+
case dataViewTag2:
|
|
7682
|
+
return cloneDataView2(object, isDeep);
|
|
7683
|
+
case float32Tag2:
|
|
7684
|
+
case float64Tag2:
|
|
7685
|
+
case int8Tag2:
|
|
7686
|
+
case int16Tag2:
|
|
7687
|
+
case int32Tag2:
|
|
7688
|
+
case uint8Tag2:
|
|
7689
|
+
case uint8ClampedTag2:
|
|
7690
|
+
case uint16Tag2:
|
|
7691
|
+
case uint32Tag2:
|
|
7692
|
+
return cloneTypedArray2(object, isDeep);
|
|
7693
|
+
case mapTag2:
|
|
7674
7694
|
return new Ctor();
|
|
7675
|
-
case
|
|
7676
|
-
case
|
|
7695
|
+
case numberTag2:
|
|
7696
|
+
case stringTag2:
|
|
7677
7697
|
return new Ctor(object);
|
|
7678
|
-
case
|
|
7679
|
-
return
|
|
7680
|
-
case
|
|
7698
|
+
case regexpTag2:
|
|
7699
|
+
return cloneRegExp2(object);
|
|
7700
|
+
case setTag2:
|
|
7681
7701
|
return new Ctor();
|
|
7682
|
-
case
|
|
7683
|
-
return
|
|
7702
|
+
case symbolTag2:
|
|
7703
|
+
return cloneSymbol2(object);
|
|
7684
7704
|
}
|
|
7685
7705
|
}
|
|
7686
7706
|
function insertWrapDetails(source, details) {
|
|
@@ -7694,25 +7714,25 @@ lodash.exports;
|
|
|
7694
7714
|
return source.replace(reWrapComment, "{\n/* [wrapped with " + details + "] */\n");
|
|
7695
7715
|
}
|
|
7696
7716
|
function isFlattenable(value) {
|
|
7697
|
-
return
|
|
7717
|
+
return isArray2(value) || isArguments2(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
|
|
7698
7718
|
}
|
|
7699
|
-
function
|
|
7719
|
+
function isIndex2(value, length) {
|
|
7700
7720
|
var type = typeof value;
|
|
7701
|
-
length = length == null ?
|
|
7702
|
-
return !!length && (type == "number" || type != "symbol" &&
|
|
7721
|
+
length = length == null ? MAX_SAFE_INTEGER2 : length;
|
|
7722
|
+
return !!length && (type == "number" || type != "symbol" && reIsUint2.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
7703
7723
|
}
|
|
7704
7724
|
function isIterateeCall(value, index2, object) {
|
|
7705
|
-
if (!
|
|
7725
|
+
if (!isObject2(object)) {
|
|
7706
7726
|
return false;
|
|
7707
7727
|
}
|
|
7708
7728
|
var type = typeof index2;
|
|
7709
|
-
if (type == "number" ?
|
|
7710
|
-
return
|
|
7729
|
+
if (type == "number" ? isArrayLike2(object) && isIndex2(index2, object.length) : type == "string" && index2 in object) {
|
|
7730
|
+
return eq2(object[index2], value);
|
|
7711
7731
|
}
|
|
7712
7732
|
return false;
|
|
7713
7733
|
}
|
|
7714
7734
|
function isKey(value, object) {
|
|
7715
|
-
if (
|
|
7735
|
+
if (isArray2(value)) {
|
|
7716
7736
|
return false;
|
|
7717
7737
|
}
|
|
7718
7738
|
var type = typeof value;
|
|
@@ -7721,7 +7741,7 @@ lodash.exports;
|
|
|
7721
7741
|
}
|
|
7722
7742
|
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object2(object);
|
|
7723
7743
|
}
|
|
7724
|
-
function
|
|
7744
|
+
function isKeyable2(value) {
|
|
7725
7745
|
var type = typeof value;
|
|
7726
7746
|
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
7727
7747
|
}
|
|
@@ -7736,16 +7756,16 @@ lodash.exports;
|
|
|
7736
7756
|
var data = getData(other);
|
|
7737
7757
|
return !!data && func === data[0];
|
|
7738
7758
|
}
|
|
7739
|
-
function
|
|
7740
|
-
return !!
|
|
7759
|
+
function isMasked2(func) {
|
|
7760
|
+
return !!maskSrcKey2 && maskSrcKey2 in func;
|
|
7741
7761
|
}
|
|
7742
|
-
var isMaskable =
|
|
7743
|
-
function
|
|
7744
|
-
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype ||
|
|
7762
|
+
var isMaskable = coreJsData2 ? isFunction2 : stubFalse2;
|
|
7763
|
+
function isPrototype2(value) {
|
|
7764
|
+
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto2;
|
|
7745
7765
|
return value === proto;
|
|
7746
7766
|
}
|
|
7747
7767
|
function isStrictComparable(value) {
|
|
7748
|
-
return value === value && !
|
|
7768
|
+
return value === value && !isObject2(value);
|
|
7749
7769
|
}
|
|
7750
7770
|
function matchesStrictComparable(key, srcValue) {
|
|
7751
7771
|
return function(object) {
|
|
@@ -7801,7 +7821,7 @@ lodash.exports;
|
|
|
7801
7821
|
data[1] = newBitmask;
|
|
7802
7822
|
return data;
|
|
7803
7823
|
}
|
|
7804
|
-
function
|
|
7824
|
+
function nativeKeysIn2(object) {
|
|
7805
7825
|
var result2 = [];
|
|
7806
7826
|
if (object != null) {
|
|
7807
7827
|
for (var key in Object2(object)) {
|
|
@@ -7810,8 +7830,8 @@ lodash.exports;
|
|
|
7810
7830
|
}
|
|
7811
7831
|
return result2;
|
|
7812
7832
|
}
|
|
7813
|
-
function
|
|
7814
|
-
return
|
|
7833
|
+
function objectToString2(value) {
|
|
7834
|
+
return nativeObjectToString2.call(value);
|
|
7815
7835
|
}
|
|
7816
7836
|
function overRest(func, start, transform2) {
|
|
7817
7837
|
start = nativeMax(start === undefined$1 ? func.length - 1 : start, 0);
|
|
@@ -7833,10 +7853,10 @@ lodash.exports;
|
|
|
7833
7853
|
return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
|
|
7834
7854
|
}
|
|
7835
7855
|
function reorder(array, indexes) {
|
|
7836
|
-
var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray =
|
|
7856
|
+
var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray2(array);
|
|
7837
7857
|
while (length--) {
|
|
7838
7858
|
var index2 = indexes[length];
|
|
7839
|
-
array[length] =
|
|
7859
|
+
array[length] = isIndex2(index2, arrLength) ? oldArray[index2] : undefined$1;
|
|
7840
7860
|
}
|
|
7841
7861
|
return array;
|
|
7842
7862
|
}
|
|
@@ -7851,7 +7871,7 @@ lodash.exports;
|
|
|
7851
7871
|
}
|
|
7852
7872
|
var setData = shortOut(baseSetData);
|
|
7853
7873
|
var setTimeout = ctxSetTimeout || function(func, wait) {
|
|
7854
|
-
return
|
|
7874
|
+
return root2.setTimeout(func, wait);
|
|
7855
7875
|
};
|
|
7856
7876
|
var setToString = shortOut(baseSetToString);
|
|
7857
7877
|
function setWrapToString(wrapper, reference, bitmask) {
|
|
@@ -7901,10 +7921,10 @@ lodash.exports;
|
|
|
7901
7921
|
var result2 = value + "";
|
|
7902
7922
|
return result2 == "0" && 1 / value == -INFINITY ? "-0" : result2;
|
|
7903
7923
|
}
|
|
7904
|
-
function
|
|
7924
|
+
function toSource2(func) {
|
|
7905
7925
|
if (func != null) {
|
|
7906
7926
|
try {
|
|
7907
|
-
return
|
|
7927
|
+
return funcToString2.call(func);
|
|
7908
7928
|
} catch (e) {
|
|
7909
7929
|
}
|
|
7910
7930
|
try {
|
|
@@ -7915,7 +7935,7 @@ lodash.exports;
|
|
|
7915
7935
|
return "";
|
|
7916
7936
|
}
|
|
7917
7937
|
function updateWrapDetails(details, bitmask) {
|
|
7918
|
-
|
|
7938
|
+
arrayEach2(wrapFlags, function(pair) {
|
|
7919
7939
|
var value = "_." + pair[0];
|
|
7920
7940
|
if (bitmask & pair[1] && !arrayIncludes(details, value)) {
|
|
7921
7941
|
details.push(value);
|
|
@@ -7928,7 +7948,7 @@ lodash.exports;
|
|
|
7928
7948
|
return wrapper.clone();
|
|
7929
7949
|
}
|
|
7930
7950
|
var result2 = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);
|
|
7931
|
-
result2.__actions__ =
|
|
7951
|
+
result2.__actions__ = copyArray2(wrapper.__actions__);
|
|
7932
7952
|
result2.__index__ = wrapper.__index__;
|
|
7933
7953
|
result2.__values__ = wrapper.__values__;
|
|
7934
7954
|
return result2;
|
|
@@ -7968,7 +7988,7 @@ lodash.exports;
|
|
|
7968
7988
|
while (index2--) {
|
|
7969
7989
|
args[index2 - 1] = arguments[index2];
|
|
7970
7990
|
}
|
|
7971
|
-
return
|
|
7991
|
+
return arrayPush2(isArray2(array) ? copyArray2(array) : [array], baseFlatten(args, 1));
|
|
7972
7992
|
}
|
|
7973
7993
|
var difference = baseRest(function(array, values2) {
|
|
7974
7994
|
return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values2, 1, isArrayLikeObject, true)) : [];
|
|
@@ -8142,7 +8162,7 @@ lodash.exports;
|
|
|
8142
8162
|
var pullAt = flatRest(function(array, indexes) {
|
|
8143
8163
|
var length = array == null ? 0 : array.length, result2 = baseAt(array, indexes);
|
|
8144
8164
|
basePullAt(array, arrayMap(indexes, function(index2) {
|
|
8145
|
-
return
|
|
8165
|
+
return isIndex2(index2, length) ? +index2 : index2;
|
|
8146
8166
|
}).sort(compareAscending));
|
|
8147
8167
|
return result2;
|
|
8148
8168
|
});
|
|
@@ -8190,7 +8210,7 @@ lodash.exports;
|
|
|
8190
8210
|
var length = array == null ? 0 : array.length;
|
|
8191
8211
|
if (length) {
|
|
8192
8212
|
var index2 = baseSortedIndex(array, value);
|
|
8193
|
-
if (index2 < length &&
|
|
8213
|
+
if (index2 < length && eq2(array[index2], value)) {
|
|
8194
8214
|
return index2;
|
|
8195
8215
|
}
|
|
8196
8216
|
}
|
|
@@ -8206,7 +8226,7 @@ lodash.exports;
|
|
|
8206
8226
|
var length = array == null ? 0 : array.length;
|
|
8207
8227
|
if (length) {
|
|
8208
8228
|
var index2 = baseSortedIndex(array, value, true) - 1;
|
|
8209
|
-
if (
|
|
8229
|
+
if (eq2(array[index2], value)) {
|
|
8210
8230
|
return index2;
|
|
8211
8231
|
}
|
|
8212
8232
|
}
|
|
@@ -8274,13 +8294,13 @@ lodash.exports;
|
|
|
8274
8294
|
return [];
|
|
8275
8295
|
}
|
|
8276
8296
|
var length = 0;
|
|
8277
|
-
array =
|
|
8297
|
+
array = arrayFilter2(array, function(group) {
|
|
8278
8298
|
if (isArrayLikeObject(group)) {
|
|
8279
8299
|
length = nativeMax(group.length, length);
|
|
8280
8300
|
return true;
|
|
8281
8301
|
}
|
|
8282
8302
|
});
|
|
8283
|
-
return
|
|
8303
|
+
return baseTimes2(length, function(index2) {
|
|
8284
8304
|
return arrayMap(array, baseProperty(index2));
|
|
8285
8305
|
});
|
|
8286
8306
|
}
|
|
@@ -8300,23 +8320,23 @@ lodash.exports;
|
|
|
8300
8320
|
return isArrayLikeObject(array) ? baseDifference(array, values2) : [];
|
|
8301
8321
|
});
|
|
8302
8322
|
var xor = baseRest(function(arrays) {
|
|
8303
|
-
return baseXor(
|
|
8323
|
+
return baseXor(arrayFilter2(arrays, isArrayLikeObject));
|
|
8304
8324
|
});
|
|
8305
8325
|
var xorBy = baseRest(function(arrays) {
|
|
8306
8326
|
var iteratee2 = last(arrays);
|
|
8307
8327
|
if (isArrayLikeObject(iteratee2)) {
|
|
8308
8328
|
iteratee2 = undefined$1;
|
|
8309
8329
|
}
|
|
8310
|
-
return baseXor(
|
|
8330
|
+
return baseXor(arrayFilter2(arrays, isArrayLikeObject), getIteratee(iteratee2, 2));
|
|
8311
8331
|
});
|
|
8312
8332
|
var xorWith = baseRest(function(arrays) {
|
|
8313
8333
|
var comparator = last(arrays);
|
|
8314
8334
|
comparator = typeof comparator == "function" ? comparator : undefined$1;
|
|
8315
|
-
return baseXor(
|
|
8335
|
+
return baseXor(arrayFilter2(arrays, isArrayLikeObject), undefined$1, comparator);
|
|
8316
8336
|
});
|
|
8317
8337
|
var zip = baseRest(unzip);
|
|
8318
8338
|
function zipObject(props, values2) {
|
|
8319
|
-
return baseZipObject(props || [], values2 || [],
|
|
8339
|
+
return baseZipObject(props || [], values2 || [], assignValue2);
|
|
8320
8340
|
}
|
|
8321
8341
|
function zipObjectDeep(props, values2) {
|
|
8322
8342
|
return baseZipObject(props || [], values2 || [], baseSet);
|
|
@@ -8342,7 +8362,7 @@ lodash.exports;
|
|
|
8342
8362
|
var length = paths.length, start = length ? paths[0] : 0, value = this.__wrapped__, interceptor = function(object) {
|
|
8343
8363
|
return baseAt(object, paths);
|
|
8344
8364
|
};
|
|
8345
|
-
if (length > 1 || this.__actions__.length || !(value instanceof LazyWrapper) || !
|
|
8365
|
+
if (length > 1 || this.__actions__.length || !(value instanceof LazyWrapper) || !isIndex2(start)) {
|
|
8346
8366
|
return this.thru(interceptor);
|
|
8347
8367
|
}
|
|
8348
8368
|
value = value.slice(start, +start + (length ? 1 : 0));
|
|
@@ -8412,21 +8432,21 @@ lodash.exports;
|
|
|
8412
8432
|
return baseWrapperValue(this.__wrapped__, this.__actions__);
|
|
8413
8433
|
}
|
|
8414
8434
|
var countBy = createAggregator(function(result2, value, key) {
|
|
8415
|
-
if (
|
|
8435
|
+
if (hasOwnProperty2.call(result2, key)) {
|
|
8416
8436
|
++result2[key];
|
|
8417
8437
|
} else {
|
|
8418
|
-
|
|
8438
|
+
baseAssignValue2(result2, key, 1);
|
|
8419
8439
|
}
|
|
8420
8440
|
});
|
|
8421
8441
|
function every(collection, predicate, guard) {
|
|
8422
|
-
var func =
|
|
8442
|
+
var func = isArray2(collection) ? arrayEvery : baseEvery;
|
|
8423
8443
|
if (guard && isIterateeCall(collection, predicate, guard)) {
|
|
8424
8444
|
predicate = undefined$1;
|
|
8425
8445
|
}
|
|
8426
8446
|
return func(collection, getIteratee(predicate, 3));
|
|
8427
8447
|
}
|
|
8428
8448
|
function filter(collection, predicate) {
|
|
8429
|
-
var func =
|
|
8449
|
+
var func = isArray2(collection) ? arrayFilter2 : baseFilter;
|
|
8430
8450
|
return func(collection, getIteratee(predicate, 3));
|
|
8431
8451
|
}
|
|
8432
8452
|
var find = createFind(findIndex);
|
|
@@ -8442,22 +8462,22 @@ lodash.exports;
|
|
|
8442
8462
|
return baseFlatten(map(collection, iteratee2), depth);
|
|
8443
8463
|
}
|
|
8444
8464
|
function forEach(collection, iteratee2) {
|
|
8445
|
-
var func =
|
|
8465
|
+
var func = isArray2(collection) ? arrayEach2 : baseEach;
|
|
8446
8466
|
return func(collection, getIteratee(iteratee2, 3));
|
|
8447
8467
|
}
|
|
8448
8468
|
function forEachRight(collection, iteratee2) {
|
|
8449
|
-
var func =
|
|
8469
|
+
var func = isArray2(collection) ? arrayEachRight : baseEachRight;
|
|
8450
8470
|
return func(collection, getIteratee(iteratee2, 3));
|
|
8451
8471
|
}
|
|
8452
8472
|
var groupBy = createAggregator(function(result2, value, key) {
|
|
8453
|
-
if (
|
|
8473
|
+
if (hasOwnProperty2.call(result2, key)) {
|
|
8454
8474
|
result2[key].push(value);
|
|
8455
8475
|
} else {
|
|
8456
|
-
|
|
8476
|
+
baseAssignValue2(result2, key, [value]);
|
|
8457
8477
|
}
|
|
8458
8478
|
});
|
|
8459
8479
|
function includes(collection, value, fromIndex, guard) {
|
|
8460
|
-
collection =
|
|
8480
|
+
collection = isArrayLike2(collection) ? collection : values(collection);
|
|
8461
8481
|
fromIndex = fromIndex && !guard ? toInteger(fromIndex) : 0;
|
|
8462
8482
|
var length = collection.length;
|
|
8463
8483
|
if (fromIndex < 0) {
|
|
@@ -8466,28 +8486,28 @@ lodash.exports;
|
|
|
8466
8486
|
return isString(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1;
|
|
8467
8487
|
}
|
|
8468
8488
|
var invokeMap = baseRest(function(collection, path, args) {
|
|
8469
|
-
var index2 = -1, isFunc = typeof path == "function", result2 =
|
|
8489
|
+
var index2 = -1, isFunc = typeof path == "function", result2 = isArrayLike2(collection) ? Array2(collection.length) : [];
|
|
8470
8490
|
baseEach(collection, function(value) {
|
|
8471
8491
|
result2[++index2] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);
|
|
8472
8492
|
});
|
|
8473
8493
|
return result2;
|
|
8474
8494
|
});
|
|
8475
8495
|
var keyBy = createAggregator(function(result2, value, key) {
|
|
8476
|
-
|
|
8496
|
+
baseAssignValue2(result2, key, value);
|
|
8477
8497
|
});
|
|
8478
8498
|
function map(collection, iteratee2) {
|
|
8479
|
-
var func =
|
|
8499
|
+
var func = isArray2(collection) ? arrayMap : baseMap;
|
|
8480
8500
|
return func(collection, getIteratee(iteratee2, 3));
|
|
8481
8501
|
}
|
|
8482
8502
|
function orderBy(collection, iteratees, orders, guard) {
|
|
8483
8503
|
if (collection == null) {
|
|
8484
8504
|
return [];
|
|
8485
8505
|
}
|
|
8486
|
-
if (!
|
|
8506
|
+
if (!isArray2(iteratees)) {
|
|
8487
8507
|
iteratees = iteratees == null ? [] : [iteratees];
|
|
8488
8508
|
}
|
|
8489
8509
|
orders = guard ? undefined$1 : orders;
|
|
8490
|
-
if (!
|
|
8510
|
+
if (!isArray2(orders)) {
|
|
8491
8511
|
orders = orders == null ? [] : [orders];
|
|
8492
8512
|
}
|
|
8493
8513
|
return baseOrderBy(collection, iteratees, orders);
|
|
@@ -8498,19 +8518,19 @@ lodash.exports;
|
|
|
8498
8518
|
return [[], []];
|
|
8499
8519
|
});
|
|
8500
8520
|
function reduce(collection, iteratee2, accumulator) {
|
|
8501
|
-
var func =
|
|
8521
|
+
var func = isArray2(collection) ? arrayReduce : baseReduce, initAccum = arguments.length < 3;
|
|
8502
8522
|
return func(collection, getIteratee(iteratee2, 4), accumulator, initAccum, baseEach);
|
|
8503
8523
|
}
|
|
8504
8524
|
function reduceRight(collection, iteratee2, accumulator) {
|
|
8505
|
-
var func =
|
|
8525
|
+
var func = isArray2(collection) ? arrayReduceRight : baseReduce, initAccum = arguments.length < 3;
|
|
8506
8526
|
return func(collection, getIteratee(iteratee2, 4), accumulator, initAccum, baseEachRight);
|
|
8507
8527
|
}
|
|
8508
8528
|
function reject(collection, predicate) {
|
|
8509
|
-
var func =
|
|
8529
|
+
var func = isArray2(collection) ? arrayFilter2 : baseFilter;
|
|
8510
8530
|
return func(collection, negate(getIteratee(predicate, 3)));
|
|
8511
8531
|
}
|
|
8512
8532
|
function sample(collection) {
|
|
8513
|
-
var func =
|
|
8533
|
+
var func = isArray2(collection) ? arraySample : baseSample;
|
|
8514
8534
|
return func(collection);
|
|
8515
8535
|
}
|
|
8516
8536
|
function sampleSize(collection, n, guard) {
|
|
@@ -8519,28 +8539,28 @@ lodash.exports;
|
|
|
8519
8539
|
} else {
|
|
8520
8540
|
n = toInteger(n);
|
|
8521
8541
|
}
|
|
8522
|
-
var func =
|
|
8542
|
+
var func = isArray2(collection) ? arraySampleSize : baseSampleSize;
|
|
8523
8543
|
return func(collection, n);
|
|
8524
8544
|
}
|
|
8525
8545
|
function shuffle(collection) {
|
|
8526
|
-
var func =
|
|
8546
|
+
var func = isArray2(collection) ? arrayShuffle : baseShuffle;
|
|
8527
8547
|
return func(collection);
|
|
8528
8548
|
}
|
|
8529
8549
|
function size(collection) {
|
|
8530
8550
|
if (collection == null) {
|
|
8531
8551
|
return 0;
|
|
8532
8552
|
}
|
|
8533
|
-
if (
|
|
8553
|
+
if (isArrayLike2(collection)) {
|
|
8534
8554
|
return isString(collection) ? stringSize(collection) : collection.length;
|
|
8535
8555
|
}
|
|
8536
|
-
var tag =
|
|
8537
|
-
if (tag ==
|
|
8556
|
+
var tag = getTag2(collection);
|
|
8557
|
+
if (tag == mapTag2 || tag == setTag2) {
|
|
8538
8558
|
return collection.size;
|
|
8539
8559
|
}
|
|
8540
|
-
return
|
|
8560
|
+
return baseKeys2(collection).length;
|
|
8541
8561
|
}
|
|
8542
8562
|
function some(collection, predicate, guard) {
|
|
8543
|
-
var func =
|
|
8563
|
+
var func = isArray2(collection) ? arraySome : baseSome;
|
|
8544
8564
|
if (guard && isIterateeCall(collection, predicate, guard)) {
|
|
8545
8565
|
predicate = undefined$1;
|
|
8546
8566
|
}
|
|
@@ -8559,7 +8579,7 @@ lodash.exports;
|
|
|
8559
8579
|
return baseOrderBy(collection, baseFlatten(iteratees, 1), []);
|
|
8560
8580
|
});
|
|
8561
8581
|
var now = ctxNow || function() {
|
|
8562
|
-
return
|
|
8582
|
+
return root2.Date.now();
|
|
8563
8583
|
};
|
|
8564
8584
|
function after(n, func) {
|
|
8565
8585
|
if (typeof func != "function") {
|
|
@@ -8627,7 +8647,7 @@ lodash.exports;
|
|
|
8627
8647
|
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
8628
8648
|
}
|
|
8629
8649
|
wait = toNumber(wait) || 0;
|
|
8630
|
-
if (
|
|
8650
|
+
if (isObject2(options)) {
|
|
8631
8651
|
leading = !!options.leading;
|
|
8632
8652
|
maxing = "maxWait" in options;
|
|
8633
8653
|
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
@@ -8724,10 +8744,10 @@ lodash.exports;
|
|
|
8724
8744
|
memoized.cache = cache.set(key, result2) || cache;
|
|
8725
8745
|
return result2;
|
|
8726
8746
|
};
|
|
8727
|
-
memoized.cache = new (memoize.Cache ||
|
|
8747
|
+
memoized.cache = new (memoize.Cache || MapCache2)();
|
|
8728
8748
|
return memoized;
|
|
8729
8749
|
}
|
|
8730
|
-
memoize.Cache =
|
|
8750
|
+
memoize.Cache = MapCache2;
|
|
8731
8751
|
function negate(predicate) {
|
|
8732
8752
|
if (typeof predicate != "function") {
|
|
8733
8753
|
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
@@ -8751,7 +8771,7 @@ lodash.exports;
|
|
|
8751
8771
|
return before(2, func);
|
|
8752
8772
|
}
|
|
8753
8773
|
var overArgs = castRest(function(func, transforms) {
|
|
8754
|
-
transforms = transforms.length == 1 &&
|
|
8774
|
+
transforms = transforms.length == 1 && isArray2(transforms[0]) ? arrayMap(transforms[0], baseUnary2(getIteratee())) : arrayMap(baseFlatten(transforms, 1), baseUnary2(getIteratee()));
|
|
8755
8775
|
var funcsLength = transforms.length;
|
|
8756
8776
|
return baseRest(function(args) {
|
|
8757
8777
|
var index2 = -1, length = nativeMin(args.length, funcsLength);
|
|
@@ -8787,7 +8807,7 @@ lodash.exports;
|
|
|
8787
8807
|
return baseRest(function(args) {
|
|
8788
8808
|
var array = args[start], otherArgs = castSlice(args, 0, start);
|
|
8789
8809
|
if (array) {
|
|
8790
|
-
|
|
8810
|
+
arrayPush2(otherArgs, array);
|
|
8791
8811
|
}
|
|
8792
8812
|
return apply(func, this, otherArgs);
|
|
8793
8813
|
});
|
|
@@ -8797,7 +8817,7 @@ lodash.exports;
|
|
|
8797
8817
|
if (typeof func != "function") {
|
|
8798
8818
|
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
8799
8819
|
}
|
|
8800
|
-
if (
|
|
8820
|
+
if (isObject2(options)) {
|
|
8801
8821
|
leading = "leading" in options ? !!options.leading : leading;
|
|
8802
8822
|
trailing = "trailing" in options ? !!options.trailing : trailing;
|
|
8803
8823
|
}
|
|
@@ -8818,69 +8838,69 @@ lodash.exports;
|
|
|
8818
8838
|
return [];
|
|
8819
8839
|
}
|
|
8820
8840
|
var value = arguments[0];
|
|
8821
|
-
return
|
|
8841
|
+
return isArray2(value) ? value : [value];
|
|
8822
8842
|
}
|
|
8823
8843
|
function clone(value) {
|
|
8824
|
-
return
|
|
8844
|
+
return baseClone2(value, CLONE_SYMBOLS_FLAG2);
|
|
8825
8845
|
}
|
|
8826
8846
|
function cloneWith(value, customizer) {
|
|
8827
8847
|
customizer = typeof customizer == "function" ? customizer : undefined$1;
|
|
8828
|
-
return
|
|
8848
|
+
return baseClone2(value, CLONE_SYMBOLS_FLAG2, customizer);
|
|
8829
8849
|
}
|
|
8830
|
-
function
|
|
8831
|
-
return
|
|
8850
|
+
function cloneDeep2(value) {
|
|
8851
|
+
return baseClone2(value, CLONE_DEEP_FLAG2 | CLONE_SYMBOLS_FLAG2);
|
|
8832
8852
|
}
|
|
8833
8853
|
function cloneDeepWith(value, customizer) {
|
|
8834
8854
|
customizer = typeof customizer == "function" ? customizer : undefined$1;
|
|
8835
|
-
return
|
|
8855
|
+
return baseClone2(value, CLONE_DEEP_FLAG2 | CLONE_SYMBOLS_FLAG2, customizer);
|
|
8836
8856
|
}
|
|
8837
8857
|
function conformsTo(object, source) {
|
|
8838
|
-
return source == null || baseConformsTo(object, source,
|
|
8858
|
+
return source == null || baseConformsTo(object, source, keys2(source));
|
|
8839
8859
|
}
|
|
8840
|
-
function
|
|
8860
|
+
function eq2(value, other) {
|
|
8841
8861
|
return value === other || value !== value && other !== other;
|
|
8842
8862
|
}
|
|
8843
8863
|
var gt = createRelationalOperation(baseGt);
|
|
8844
8864
|
var gte = createRelationalOperation(function(value, other) {
|
|
8845
8865
|
return value >= other;
|
|
8846
8866
|
});
|
|
8847
|
-
var
|
|
8867
|
+
var isArguments2 = baseIsArguments2(/* @__PURE__ */ function() {
|
|
8848
8868
|
return arguments;
|
|
8849
|
-
}()) ?
|
|
8850
|
-
return
|
|
8869
|
+
}()) ? baseIsArguments2 : function(value) {
|
|
8870
|
+
return isObjectLike2(value) && hasOwnProperty2.call(value, "callee") && !propertyIsEnumerable2.call(value, "callee");
|
|
8851
8871
|
};
|
|
8852
|
-
var
|
|
8853
|
-
var isArrayBuffer = nodeIsArrayBuffer ?
|
|
8854
|
-
function
|
|
8855
|
-
return value != null &&
|
|
8872
|
+
var isArray2 = Array2.isArray;
|
|
8873
|
+
var isArrayBuffer = nodeIsArrayBuffer ? baseUnary2(nodeIsArrayBuffer) : baseIsArrayBuffer;
|
|
8874
|
+
function isArrayLike2(value) {
|
|
8875
|
+
return value != null && isLength2(value.length) && !isFunction2(value);
|
|
8856
8876
|
}
|
|
8857
8877
|
function isArrayLikeObject(value) {
|
|
8858
|
-
return
|
|
8878
|
+
return isObjectLike2(value) && isArrayLike2(value);
|
|
8859
8879
|
}
|
|
8860
8880
|
function isBoolean(value) {
|
|
8861
|
-
return value === true || value === false ||
|
|
8881
|
+
return value === true || value === false || isObjectLike2(value) && baseGetTag2(value) == boolTag2;
|
|
8862
8882
|
}
|
|
8863
|
-
var
|
|
8864
|
-
var isDate = nodeIsDate ?
|
|
8883
|
+
var isBuffer2 = nativeIsBuffer || stubFalse2;
|
|
8884
|
+
var isDate = nodeIsDate ? baseUnary2(nodeIsDate) : baseIsDate;
|
|
8865
8885
|
function isElement(value) {
|
|
8866
|
-
return
|
|
8886
|
+
return isObjectLike2(value) && value.nodeType === 1 && !isPlainObject(value);
|
|
8867
8887
|
}
|
|
8868
8888
|
function isEmpty(value) {
|
|
8869
8889
|
if (value == null) {
|
|
8870
8890
|
return true;
|
|
8871
8891
|
}
|
|
8872
|
-
if (
|
|
8892
|
+
if (isArrayLike2(value) && (isArray2(value) || typeof value == "string" || typeof value.splice == "function" || isBuffer2(value) || isTypedArray2(value) || isArguments2(value))) {
|
|
8873
8893
|
return !value.length;
|
|
8874
8894
|
}
|
|
8875
|
-
var tag =
|
|
8876
|
-
if (tag ==
|
|
8895
|
+
var tag = getTag2(value);
|
|
8896
|
+
if (tag == mapTag2 || tag == setTag2) {
|
|
8877
8897
|
return !value.size;
|
|
8878
8898
|
}
|
|
8879
|
-
if (
|
|
8880
|
-
return !
|
|
8899
|
+
if (isPrototype2(value)) {
|
|
8900
|
+
return !baseKeys2(value).length;
|
|
8881
8901
|
}
|
|
8882
8902
|
for (var key in value) {
|
|
8883
|
-
if (
|
|
8903
|
+
if (hasOwnProperty2.call(value, key)) {
|
|
8884
8904
|
return false;
|
|
8885
8905
|
}
|
|
8886
8906
|
}
|
|
@@ -8895,36 +8915,36 @@ lodash.exports;
|
|
|
8895
8915
|
return result2 === undefined$1 ? baseIsEqual(value, other, undefined$1, customizer) : !!result2;
|
|
8896
8916
|
}
|
|
8897
8917
|
function isError(value) {
|
|
8898
|
-
if (!
|
|
8918
|
+
if (!isObjectLike2(value)) {
|
|
8899
8919
|
return false;
|
|
8900
8920
|
}
|
|
8901
|
-
var tag =
|
|
8902
|
-
return tag ==
|
|
8921
|
+
var tag = baseGetTag2(value);
|
|
8922
|
+
return tag == errorTag2 || tag == domExcTag || typeof value.message == "string" && typeof value.name == "string" && !isPlainObject(value);
|
|
8903
8923
|
}
|
|
8904
8924
|
function isFinite(value) {
|
|
8905
8925
|
return typeof value == "number" && nativeIsFinite(value);
|
|
8906
8926
|
}
|
|
8907
|
-
function
|
|
8908
|
-
if (!
|
|
8927
|
+
function isFunction2(value) {
|
|
8928
|
+
if (!isObject2(value)) {
|
|
8909
8929
|
return false;
|
|
8910
8930
|
}
|
|
8911
|
-
var tag =
|
|
8912
|
-
return tag ==
|
|
8931
|
+
var tag = baseGetTag2(value);
|
|
8932
|
+
return tag == funcTag2 || tag == genTag2 || tag == asyncTag2 || tag == proxyTag2;
|
|
8913
8933
|
}
|
|
8914
8934
|
function isInteger(value) {
|
|
8915
8935
|
return typeof value == "number" && value == toInteger(value);
|
|
8916
8936
|
}
|
|
8917
|
-
function
|
|
8918
|
-
return typeof value == "number" && value > -1 && value % 1 == 0 && value <=
|
|
8937
|
+
function isLength2(value) {
|
|
8938
|
+
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER2;
|
|
8919
8939
|
}
|
|
8920
|
-
function
|
|
8940
|
+
function isObject2(value) {
|
|
8921
8941
|
var type = typeof value;
|
|
8922
8942
|
return value != null && (type == "object" || type == "function");
|
|
8923
8943
|
}
|
|
8924
|
-
function
|
|
8944
|
+
function isObjectLike2(value) {
|
|
8925
8945
|
return value != null && typeof value == "object";
|
|
8926
8946
|
}
|
|
8927
|
-
var
|
|
8947
|
+
var isMap2 = nodeIsMap2 ? baseUnary2(nodeIsMap2) : baseIsMap2;
|
|
8928
8948
|
function isMatch(object, source) {
|
|
8929
8949
|
return object === source || baseIsMatch(object, source, getMatchData(source));
|
|
8930
8950
|
}
|
|
@@ -8939,7 +8959,7 @@ lodash.exports;
|
|
|
8939
8959
|
if (isMaskable(value)) {
|
|
8940
8960
|
throw new Error2(CORE_ERROR_TEXT);
|
|
8941
8961
|
}
|
|
8942
|
-
return
|
|
8962
|
+
return baseIsNative2(value);
|
|
8943
8963
|
}
|
|
8944
8964
|
function isNull(value) {
|
|
8945
8965
|
return value === null;
|
|
@@ -8948,39 +8968,39 @@ lodash.exports;
|
|
|
8948
8968
|
return value == null;
|
|
8949
8969
|
}
|
|
8950
8970
|
function isNumber(value) {
|
|
8951
|
-
return typeof value == "number" ||
|
|
8971
|
+
return typeof value == "number" || isObjectLike2(value) && baseGetTag2(value) == numberTag2;
|
|
8952
8972
|
}
|
|
8953
8973
|
function isPlainObject(value) {
|
|
8954
|
-
if (!
|
|
8974
|
+
if (!isObjectLike2(value) || baseGetTag2(value) != objectTag2) {
|
|
8955
8975
|
return false;
|
|
8956
8976
|
}
|
|
8957
|
-
var proto =
|
|
8977
|
+
var proto = getPrototype2(value);
|
|
8958
8978
|
if (proto === null) {
|
|
8959
8979
|
return true;
|
|
8960
8980
|
}
|
|
8961
|
-
var Ctor =
|
|
8962
|
-
return typeof Ctor == "function" && Ctor instanceof Ctor &&
|
|
8981
|
+
var Ctor = hasOwnProperty2.call(proto, "constructor") && proto.constructor;
|
|
8982
|
+
return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString2.call(Ctor) == objectCtorString;
|
|
8963
8983
|
}
|
|
8964
|
-
var isRegExp = nodeIsRegExp ?
|
|
8984
|
+
var isRegExp = nodeIsRegExp ? baseUnary2(nodeIsRegExp) : baseIsRegExp;
|
|
8965
8985
|
function isSafeInteger(value) {
|
|
8966
|
-
return isInteger(value) && value >= -
|
|
8986
|
+
return isInteger(value) && value >= -MAX_SAFE_INTEGER2 && value <= MAX_SAFE_INTEGER2;
|
|
8967
8987
|
}
|
|
8968
|
-
var
|
|
8988
|
+
var isSet2 = nodeIsSet2 ? baseUnary2(nodeIsSet2) : baseIsSet2;
|
|
8969
8989
|
function isString(value) {
|
|
8970
|
-
return typeof value == "string" || !
|
|
8990
|
+
return typeof value == "string" || !isArray2(value) && isObjectLike2(value) && baseGetTag2(value) == stringTag2;
|
|
8971
8991
|
}
|
|
8972
8992
|
function isSymbol(value) {
|
|
8973
|
-
return typeof value == "symbol" ||
|
|
8993
|
+
return typeof value == "symbol" || isObjectLike2(value) && baseGetTag2(value) == symbolTag2;
|
|
8974
8994
|
}
|
|
8975
|
-
var
|
|
8995
|
+
var isTypedArray2 = nodeIsTypedArray2 ? baseUnary2(nodeIsTypedArray2) : baseIsTypedArray2;
|
|
8976
8996
|
function isUndefined(value) {
|
|
8977
8997
|
return value === undefined$1;
|
|
8978
8998
|
}
|
|
8979
8999
|
function isWeakMap(value) {
|
|
8980
|
-
return
|
|
9000
|
+
return isObjectLike2(value) && getTag2(value) == weakMapTag2;
|
|
8981
9001
|
}
|
|
8982
9002
|
function isWeakSet(value) {
|
|
8983
|
-
return
|
|
9003
|
+
return isObjectLike2(value) && baseGetTag2(value) == weakSetTag;
|
|
8984
9004
|
}
|
|
8985
9005
|
var lt = createRelationalOperation(baseLt);
|
|
8986
9006
|
var lte = createRelationalOperation(function(value, other) {
|
|
@@ -8990,13 +9010,13 @@ lodash.exports;
|
|
|
8990
9010
|
if (!value) {
|
|
8991
9011
|
return [];
|
|
8992
9012
|
}
|
|
8993
|
-
if (
|
|
8994
|
-
return isString(value) ? stringToArray(value) :
|
|
9013
|
+
if (isArrayLike2(value)) {
|
|
9014
|
+
return isString(value) ? stringToArray(value) : copyArray2(value);
|
|
8995
9015
|
}
|
|
8996
9016
|
if (symIterator && value[symIterator]) {
|
|
8997
9017
|
return iteratorToArray(value[symIterator]());
|
|
8998
9018
|
}
|
|
8999
|
-
var tag =
|
|
9019
|
+
var tag = getTag2(value), func = tag == mapTag2 ? mapToArray : tag == setTag2 ? setToArray : values;
|
|
9000
9020
|
return func(value);
|
|
9001
9021
|
}
|
|
9002
9022
|
function toFinite(value) {
|
|
@@ -9024,9 +9044,9 @@ lodash.exports;
|
|
|
9024
9044
|
if (isSymbol(value)) {
|
|
9025
9045
|
return NAN;
|
|
9026
9046
|
}
|
|
9027
|
-
if (
|
|
9047
|
+
if (isObject2(value)) {
|
|
9028
9048
|
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
|
9029
|
-
value =
|
|
9049
|
+
value = isObject2(other) ? other + "" : other;
|
|
9030
9050
|
}
|
|
9031
9051
|
if (typeof value != "string") {
|
|
9032
9052
|
return value === 0 ? value : +value;
|
|
@@ -9036,38 +9056,38 @@ lodash.exports;
|
|
|
9036
9056
|
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
|
9037
9057
|
}
|
|
9038
9058
|
function toPlainObject(value) {
|
|
9039
|
-
return
|
|
9059
|
+
return copyObject2(value, keysIn2(value));
|
|
9040
9060
|
}
|
|
9041
9061
|
function toSafeInteger(value) {
|
|
9042
|
-
return value ? baseClamp(toInteger(value), -
|
|
9062
|
+
return value ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER2, MAX_SAFE_INTEGER2) : value === 0 ? value : 0;
|
|
9043
9063
|
}
|
|
9044
9064
|
function toString(value) {
|
|
9045
9065
|
return value == null ? "" : baseToString(value);
|
|
9046
9066
|
}
|
|
9047
9067
|
var assign = createAssigner(function(object, source) {
|
|
9048
|
-
if (
|
|
9049
|
-
|
|
9068
|
+
if (isPrototype2(source) || isArrayLike2(source)) {
|
|
9069
|
+
copyObject2(source, keys2(source), object);
|
|
9050
9070
|
return;
|
|
9051
9071
|
}
|
|
9052
9072
|
for (var key in source) {
|
|
9053
|
-
if (
|
|
9054
|
-
|
|
9073
|
+
if (hasOwnProperty2.call(source, key)) {
|
|
9074
|
+
assignValue2(object, key, source[key]);
|
|
9055
9075
|
}
|
|
9056
9076
|
}
|
|
9057
9077
|
});
|
|
9058
9078
|
var assignIn = createAssigner(function(object, source) {
|
|
9059
|
-
|
|
9079
|
+
copyObject2(source, keysIn2(source), object);
|
|
9060
9080
|
});
|
|
9061
9081
|
var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {
|
|
9062
|
-
|
|
9082
|
+
copyObject2(source, keysIn2(source), object, customizer);
|
|
9063
9083
|
});
|
|
9064
9084
|
var assignWith = createAssigner(function(object, source, srcIndex, customizer) {
|
|
9065
|
-
|
|
9085
|
+
copyObject2(source, keys2(source), object, customizer);
|
|
9066
9086
|
});
|
|
9067
9087
|
var at = flatRest(baseAt);
|
|
9068
9088
|
function create(prototype, properties) {
|
|
9069
|
-
var result2 =
|
|
9070
|
-
return properties == null ? result2 :
|
|
9089
|
+
var result2 = baseCreate2(prototype);
|
|
9090
|
+
return properties == null ? result2 : baseAssign2(result2, properties);
|
|
9071
9091
|
}
|
|
9072
9092
|
var defaults = baseRest(function(object, sources) {
|
|
9073
9093
|
object = Object2(object);
|
|
@@ -9079,13 +9099,13 @@ lodash.exports;
|
|
|
9079
9099
|
}
|
|
9080
9100
|
while (++index2 < length) {
|
|
9081
9101
|
var source = sources[index2];
|
|
9082
|
-
var props =
|
|
9102
|
+
var props = keysIn2(source);
|
|
9083
9103
|
var propsIndex = -1;
|
|
9084
9104
|
var propsLength = props.length;
|
|
9085
9105
|
while (++propsIndex < propsLength) {
|
|
9086
9106
|
var key = props[propsIndex];
|
|
9087
9107
|
var value = object[key];
|
|
9088
|
-
if (value === undefined$1 ||
|
|
9108
|
+
if (value === undefined$1 || eq2(value, objectProto2[key]) && !hasOwnProperty2.call(object, key)) {
|
|
9089
9109
|
object[key] = source[key];
|
|
9090
9110
|
}
|
|
9091
9111
|
}
|
|
@@ -9103,10 +9123,10 @@ lodash.exports;
|
|
|
9103
9123
|
return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight);
|
|
9104
9124
|
}
|
|
9105
9125
|
function forIn(object, iteratee2) {
|
|
9106
|
-
return object == null ? object : baseFor(object, getIteratee(iteratee2, 3),
|
|
9126
|
+
return object == null ? object : baseFor(object, getIteratee(iteratee2, 3), keysIn2);
|
|
9107
9127
|
}
|
|
9108
9128
|
function forInRight(object, iteratee2) {
|
|
9109
|
-
return object == null ? object : baseForRight(object, getIteratee(iteratee2, 3),
|
|
9129
|
+
return object == null ? object : baseForRight(object, getIteratee(iteratee2, 3), keysIn2);
|
|
9110
9130
|
}
|
|
9111
9131
|
function forOwn(object, iteratee2) {
|
|
9112
9132
|
return object && baseForOwn(object, getIteratee(iteratee2, 3));
|
|
@@ -9115,10 +9135,10 @@ lodash.exports;
|
|
|
9115
9135
|
return object && baseForOwnRight(object, getIteratee(iteratee2, 3));
|
|
9116
9136
|
}
|
|
9117
9137
|
function functions(object) {
|
|
9118
|
-
return object == null ? [] : baseFunctions(object,
|
|
9138
|
+
return object == null ? [] : baseFunctions(object, keys2(object));
|
|
9119
9139
|
}
|
|
9120
9140
|
function functionsIn(object) {
|
|
9121
|
-
return object == null ? [] : baseFunctions(object,
|
|
9141
|
+
return object == null ? [] : baseFunctions(object, keysIn2(object));
|
|
9122
9142
|
}
|
|
9123
9143
|
function get(object, path, defaultValue) {
|
|
9124
9144
|
var result2 = object == null ? undefined$1 : baseGet(object, path);
|
|
@@ -9132,32 +9152,32 @@ lodash.exports;
|
|
|
9132
9152
|
}
|
|
9133
9153
|
var invert = createInverter(function(result2, value, key) {
|
|
9134
9154
|
if (value != null && typeof value.toString != "function") {
|
|
9135
|
-
value =
|
|
9155
|
+
value = nativeObjectToString2.call(value);
|
|
9136
9156
|
}
|
|
9137
9157
|
result2[value] = key;
|
|
9138
9158
|
}, constant(identity));
|
|
9139
9159
|
var invertBy = createInverter(function(result2, value, key) {
|
|
9140
9160
|
if (value != null && typeof value.toString != "function") {
|
|
9141
|
-
value =
|
|
9161
|
+
value = nativeObjectToString2.call(value);
|
|
9142
9162
|
}
|
|
9143
|
-
if (
|
|
9163
|
+
if (hasOwnProperty2.call(result2, value)) {
|
|
9144
9164
|
result2[value].push(key);
|
|
9145
9165
|
} else {
|
|
9146
9166
|
result2[value] = [key];
|
|
9147
9167
|
}
|
|
9148
9168
|
}, getIteratee);
|
|
9149
9169
|
var invoke = baseRest(baseInvoke);
|
|
9150
|
-
function
|
|
9151
|
-
return
|
|
9170
|
+
function keys2(object) {
|
|
9171
|
+
return isArrayLike2(object) ? arrayLikeKeys2(object) : baseKeys2(object);
|
|
9152
9172
|
}
|
|
9153
|
-
function
|
|
9154
|
-
return
|
|
9173
|
+
function keysIn2(object) {
|
|
9174
|
+
return isArrayLike2(object) ? arrayLikeKeys2(object, true) : baseKeysIn2(object);
|
|
9155
9175
|
}
|
|
9156
9176
|
function mapKeys(object, iteratee2) {
|
|
9157
9177
|
var result2 = {};
|
|
9158
9178
|
iteratee2 = getIteratee(iteratee2, 3);
|
|
9159
9179
|
baseForOwn(object, function(value, key, object2) {
|
|
9160
|
-
|
|
9180
|
+
baseAssignValue2(result2, iteratee2(value, key, object2), value);
|
|
9161
9181
|
});
|
|
9162
9182
|
return result2;
|
|
9163
9183
|
}
|
|
@@ -9165,7 +9185,7 @@ lodash.exports;
|
|
|
9165
9185
|
var result2 = {};
|
|
9166
9186
|
iteratee2 = getIteratee(iteratee2, 3);
|
|
9167
9187
|
baseForOwn(object, function(value, key, object2) {
|
|
9168
|
-
|
|
9188
|
+
baseAssignValue2(result2, key, iteratee2(value, key, object2));
|
|
9169
9189
|
});
|
|
9170
9190
|
return result2;
|
|
9171
9191
|
}
|
|
@@ -9186,9 +9206,9 @@ lodash.exports;
|
|
|
9186
9206
|
isDeep || (isDeep = path.length > 1);
|
|
9187
9207
|
return path;
|
|
9188
9208
|
});
|
|
9189
|
-
|
|
9209
|
+
copyObject2(object, getAllKeysIn2(object), result2);
|
|
9190
9210
|
if (isDeep) {
|
|
9191
|
-
result2 =
|
|
9211
|
+
result2 = baseClone2(result2, CLONE_DEEP_FLAG2 | CLONE_FLAT_FLAG2 | CLONE_SYMBOLS_FLAG2, customOmitClone);
|
|
9192
9212
|
}
|
|
9193
9213
|
var length = paths.length;
|
|
9194
9214
|
while (length--) {
|
|
@@ -9206,7 +9226,7 @@ lodash.exports;
|
|
|
9206
9226
|
if (object == null) {
|
|
9207
9227
|
return {};
|
|
9208
9228
|
}
|
|
9209
|
-
var props = arrayMap(
|
|
9229
|
+
var props = arrayMap(getAllKeysIn2(object), function(prop) {
|
|
9210
9230
|
return [prop];
|
|
9211
9231
|
});
|
|
9212
9232
|
predicate = getIteratee(predicate);
|
|
@@ -9227,7 +9247,7 @@ lodash.exports;
|
|
|
9227
9247
|
index2 = length;
|
|
9228
9248
|
value = defaultValue;
|
|
9229
9249
|
}
|
|
9230
|
-
object =
|
|
9250
|
+
object = isFunction2(value) ? value.call(object) : value;
|
|
9231
9251
|
}
|
|
9232
9252
|
return object;
|
|
9233
9253
|
}
|
|
@@ -9238,22 +9258,22 @@ lodash.exports;
|
|
|
9238
9258
|
customizer = typeof customizer == "function" ? customizer : undefined$1;
|
|
9239
9259
|
return object == null ? object : baseSet(object, path, value, customizer);
|
|
9240
9260
|
}
|
|
9241
|
-
var toPairs = createToPairs(
|
|
9242
|
-
var toPairsIn = createToPairs(
|
|
9261
|
+
var toPairs = createToPairs(keys2);
|
|
9262
|
+
var toPairsIn = createToPairs(keysIn2);
|
|
9243
9263
|
function transform(object, iteratee2, accumulator) {
|
|
9244
|
-
var isArr =
|
|
9264
|
+
var isArr = isArray2(object), isArrLike = isArr || isBuffer2(object) || isTypedArray2(object);
|
|
9245
9265
|
iteratee2 = getIteratee(iteratee2, 4);
|
|
9246
9266
|
if (accumulator == null) {
|
|
9247
9267
|
var Ctor = object && object.constructor;
|
|
9248
9268
|
if (isArrLike) {
|
|
9249
9269
|
accumulator = isArr ? new Ctor() : [];
|
|
9250
|
-
} else if (
|
|
9251
|
-
accumulator =
|
|
9270
|
+
} else if (isObject2(object)) {
|
|
9271
|
+
accumulator = isFunction2(Ctor) ? baseCreate2(getPrototype2(object)) : {};
|
|
9252
9272
|
} else {
|
|
9253
9273
|
accumulator = {};
|
|
9254
9274
|
}
|
|
9255
9275
|
}
|
|
9256
|
-
(isArrLike ?
|
|
9276
|
+
(isArrLike ? arrayEach2 : baseForOwn)(object, function(value, index2, object2) {
|
|
9257
9277
|
return iteratee2(accumulator, value, index2, object2);
|
|
9258
9278
|
});
|
|
9259
9279
|
return accumulator;
|
|
@@ -9269,10 +9289,10 @@ lodash.exports;
|
|
|
9269
9289
|
return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);
|
|
9270
9290
|
}
|
|
9271
9291
|
function values(object) {
|
|
9272
|
-
return object == null ? [] : baseValues(object,
|
|
9292
|
+
return object == null ? [] : baseValues(object, keys2(object));
|
|
9273
9293
|
}
|
|
9274
9294
|
function valuesIn(object) {
|
|
9275
|
-
return object == null ? [] : baseValues(object,
|
|
9295
|
+
return object == null ? [] : baseValues(object, keysIn2(object));
|
|
9276
9296
|
}
|
|
9277
9297
|
function clamp(number, lower, upper) {
|
|
9278
9298
|
if (upper === undefined$1) {
|
|
@@ -9362,7 +9382,7 @@ lodash.exports;
|
|
|
9362
9382
|
}
|
|
9363
9383
|
function escapeRegExp(string) {
|
|
9364
9384
|
string = toString(string);
|
|
9365
|
-
return string && reHasRegExpChar.test(string) ? string.replace(
|
|
9385
|
+
return string && reHasRegExpChar.test(string) ? string.replace(reRegExpChar2, "\\$&") : string;
|
|
9366
9386
|
}
|
|
9367
9387
|
var kebabCase = createCompounder(function(result2, word, index2) {
|
|
9368
9388
|
return result2 + (index2 ? "-" : "") + word.toLowerCase();
|
|
@@ -9449,13 +9469,13 @@ lodash.exports;
|
|
|
9449
9469
|
}
|
|
9450
9470
|
string = toString(string);
|
|
9451
9471
|
options = assignInWith({}, options, settings, customDefaultsAssignIn);
|
|
9452
|
-
var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys =
|
|
9472
|
+
var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys2(imports), importsValues = baseValues(imports, importsKeys);
|
|
9453
9473
|
var isEscaping, isEvaluating, index2 = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '";
|
|
9454
9474
|
var reDelimiters = RegExp2(
|
|
9455
9475
|
(options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$",
|
|
9456
9476
|
"g"
|
|
9457
9477
|
);
|
|
9458
|
-
var sourceURL = "//# sourceURL=" + (
|
|
9478
|
+
var sourceURL = "//# sourceURL=" + (hasOwnProperty2.call(options, "sourceURL") ? (options.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++templateCounter + "]") + "\n";
|
|
9459
9479
|
string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
|
|
9460
9480
|
interpolateValue || (interpolateValue = esTemplateValue);
|
|
9461
9481
|
source += string.slice(index2, offset).replace(reUnescapedString, escapeStringChar);
|
|
@@ -9474,7 +9494,7 @@ lodash.exports;
|
|
|
9474
9494
|
return match;
|
|
9475
9495
|
});
|
|
9476
9496
|
source += "';\n";
|
|
9477
|
-
var variable =
|
|
9497
|
+
var variable = hasOwnProperty2.call(options, "variable") && options.variable;
|
|
9478
9498
|
if (!variable) {
|
|
9479
9499
|
source = "with (obj) {\n" + source + "\n}\n";
|
|
9480
9500
|
} else if (reForbiddenIdentifierChars.test(variable)) {
|
|
@@ -9532,7 +9552,7 @@ lodash.exports;
|
|
|
9532
9552
|
}
|
|
9533
9553
|
function truncate(string, options) {
|
|
9534
9554
|
var length = DEFAULT_TRUNC_LENGTH, omission = DEFAULT_TRUNC_OMISSION;
|
|
9535
|
-
if (
|
|
9555
|
+
if (isObject2(options)) {
|
|
9536
9556
|
var separator = "separator" in options ? options.separator : separator;
|
|
9537
9557
|
length = "length" in options ? toInteger(options.length) : length;
|
|
9538
9558
|
omission = "omission" in options ? baseToString(options.omission) : omission;
|
|
@@ -9561,7 +9581,7 @@ lodash.exports;
|
|
|
9561
9581
|
if (string.slice(end).search(separator)) {
|
|
9562
9582
|
var match, substring = result2;
|
|
9563
9583
|
if (!separator.global) {
|
|
9564
|
-
separator = RegExp2(separator.source, toString(
|
|
9584
|
+
separator = RegExp2(separator.source, toString(reFlags2.exec(separator)) + "g");
|
|
9565
9585
|
}
|
|
9566
9586
|
separator.lastIndex = 0;
|
|
9567
9587
|
while (match = separator.exec(substring)) {
|
|
@@ -9601,9 +9621,9 @@ lodash.exports;
|
|
|
9601
9621
|
}
|
|
9602
9622
|
});
|
|
9603
9623
|
var bindAll = flatRest(function(object, methodNames) {
|
|
9604
|
-
|
|
9624
|
+
arrayEach2(methodNames, function(key) {
|
|
9605
9625
|
key = toKey(key);
|
|
9606
|
-
|
|
9626
|
+
baseAssignValue2(object, key, bind(object[key], object));
|
|
9607
9627
|
});
|
|
9608
9628
|
return object;
|
|
9609
9629
|
});
|
|
@@ -9626,7 +9646,7 @@ lodash.exports;
|
|
|
9626
9646
|
});
|
|
9627
9647
|
}
|
|
9628
9648
|
function conforms(source) {
|
|
9629
|
-
return baseConforms(
|
|
9649
|
+
return baseConforms(baseClone2(source, CLONE_DEEP_FLAG2));
|
|
9630
9650
|
}
|
|
9631
9651
|
function constant(value) {
|
|
9632
9652
|
return function() {
|
|
@@ -9642,13 +9662,13 @@ lodash.exports;
|
|
|
9642
9662
|
return value;
|
|
9643
9663
|
}
|
|
9644
9664
|
function iteratee(func) {
|
|
9645
|
-
return baseIteratee(typeof func == "function" ? func :
|
|
9665
|
+
return baseIteratee(typeof func == "function" ? func : baseClone2(func, CLONE_DEEP_FLAG2));
|
|
9646
9666
|
}
|
|
9647
9667
|
function matches(source) {
|
|
9648
|
-
return baseMatches(
|
|
9668
|
+
return baseMatches(baseClone2(source, CLONE_DEEP_FLAG2));
|
|
9649
9669
|
}
|
|
9650
9670
|
function matchesProperty(path, srcValue) {
|
|
9651
|
-
return baseMatchesProperty(path,
|
|
9671
|
+
return baseMatchesProperty(path, baseClone2(srcValue, CLONE_DEEP_FLAG2));
|
|
9652
9672
|
}
|
|
9653
9673
|
var method = baseRest(function(path, args) {
|
|
9654
9674
|
return function(object) {
|
|
@@ -9661,35 +9681,35 @@ lodash.exports;
|
|
|
9661
9681
|
};
|
|
9662
9682
|
});
|
|
9663
9683
|
function mixin(object, source, options) {
|
|
9664
|
-
var props =
|
|
9665
|
-
if (options == null && !(
|
|
9684
|
+
var props = keys2(source), methodNames = baseFunctions(source, props);
|
|
9685
|
+
if (options == null && !(isObject2(source) && (methodNames.length || !props.length))) {
|
|
9666
9686
|
options = source;
|
|
9667
9687
|
source = object;
|
|
9668
9688
|
object = this;
|
|
9669
|
-
methodNames = baseFunctions(source,
|
|
9689
|
+
methodNames = baseFunctions(source, keys2(source));
|
|
9670
9690
|
}
|
|
9671
|
-
var chain2 = !(
|
|
9672
|
-
|
|
9691
|
+
var chain2 = !(isObject2(options) && "chain" in options) || !!options.chain, isFunc = isFunction2(object);
|
|
9692
|
+
arrayEach2(methodNames, function(methodName) {
|
|
9673
9693
|
var func = source[methodName];
|
|
9674
9694
|
object[methodName] = func;
|
|
9675
9695
|
if (isFunc) {
|
|
9676
9696
|
object.prototype[methodName] = function() {
|
|
9677
9697
|
var chainAll = this.__chain__;
|
|
9678
9698
|
if (chain2 || chainAll) {
|
|
9679
|
-
var result2 = object(this.__wrapped__), actions = result2.__actions__ =
|
|
9699
|
+
var result2 = object(this.__wrapped__), actions = result2.__actions__ = copyArray2(this.__actions__);
|
|
9680
9700
|
actions.push({ "func": func, "args": arguments, "thisArg": object });
|
|
9681
9701
|
result2.__chain__ = chainAll;
|
|
9682
9702
|
return result2;
|
|
9683
9703
|
}
|
|
9684
|
-
return func.apply(object,
|
|
9704
|
+
return func.apply(object, arrayPush2([this.value()], arguments));
|
|
9685
9705
|
};
|
|
9686
9706
|
}
|
|
9687
9707
|
});
|
|
9688
9708
|
return object;
|
|
9689
9709
|
}
|
|
9690
9710
|
function noConflict() {
|
|
9691
|
-
if (
|
|
9692
|
-
|
|
9711
|
+
if (root2._ === this) {
|
|
9712
|
+
root2._ = oldDash;
|
|
9693
9713
|
}
|
|
9694
9714
|
return this;
|
|
9695
9715
|
}
|
|
@@ -9714,10 +9734,10 @@ lodash.exports;
|
|
|
9714
9734
|
}
|
|
9715
9735
|
var range = createRange();
|
|
9716
9736
|
var rangeRight = createRange(true);
|
|
9717
|
-
function
|
|
9737
|
+
function stubArray2() {
|
|
9718
9738
|
return [];
|
|
9719
9739
|
}
|
|
9720
|
-
function
|
|
9740
|
+
function stubFalse2() {
|
|
9721
9741
|
return false;
|
|
9722
9742
|
}
|
|
9723
9743
|
function stubObject() {
|
|
@@ -9731,23 +9751,23 @@ lodash.exports;
|
|
|
9731
9751
|
}
|
|
9732
9752
|
function times(n, iteratee2) {
|
|
9733
9753
|
n = toInteger(n);
|
|
9734
|
-
if (n < 1 || n >
|
|
9754
|
+
if (n < 1 || n > MAX_SAFE_INTEGER2) {
|
|
9735
9755
|
return [];
|
|
9736
9756
|
}
|
|
9737
9757
|
var index2 = MAX_ARRAY_LENGTH, length = nativeMin(n, MAX_ARRAY_LENGTH);
|
|
9738
9758
|
iteratee2 = getIteratee(iteratee2);
|
|
9739
9759
|
n -= MAX_ARRAY_LENGTH;
|
|
9740
|
-
var result2 =
|
|
9760
|
+
var result2 = baseTimes2(length, iteratee2);
|
|
9741
9761
|
while (++index2 < n) {
|
|
9742
9762
|
iteratee2(index2);
|
|
9743
9763
|
}
|
|
9744
9764
|
return result2;
|
|
9745
9765
|
}
|
|
9746
9766
|
function toPath(value) {
|
|
9747
|
-
if (
|
|
9767
|
+
if (isArray2(value)) {
|
|
9748
9768
|
return arrayMap(value, toKey);
|
|
9749
9769
|
}
|
|
9750
|
-
return isSymbol(value) ? [value] :
|
|
9770
|
+
return isSymbol(value) ? [value] : copyArray2(stringToPath(toString(value)));
|
|
9751
9771
|
}
|
|
9752
9772
|
function uniqueId(prefix) {
|
|
9753
9773
|
var id = ++idCounter;
|
|
@@ -9851,8 +9871,8 @@ lodash.exports;
|
|
|
9851
9871
|
lodash2.invokeMap = invokeMap;
|
|
9852
9872
|
lodash2.iteratee = iteratee;
|
|
9853
9873
|
lodash2.keyBy = keyBy;
|
|
9854
|
-
lodash2.keys =
|
|
9855
|
-
lodash2.keysIn =
|
|
9874
|
+
lodash2.keys = keys2;
|
|
9875
|
+
lodash2.keysIn = keysIn2;
|
|
9856
9876
|
lodash2.map = map;
|
|
9857
9877
|
lodash2.mapKeys = mapKeys;
|
|
9858
9878
|
lodash2.mapValues = mapValues;
|
|
@@ -9953,7 +9973,7 @@ lodash.exports;
|
|
|
9953
9973
|
lodash2.ceil = ceil;
|
|
9954
9974
|
lodash2.clamp = clamp;
|
|
9955
9975
|
lodash2.clone = clone;
|
|
9956
|
-
lodash2.cloneDeep =
|
|
9976
|
+
lodash2.cloneDeep = cloneDeep2;
|
|
9957
9977
|
lodash2.cloneDeepWith = cloneDeepWith;
|
|
9958
9978
|
lodash2.cloneWith = cloneWith;
|
|
9959
9979
|
lodash2.conformsTo = conformsTo;
|
|
@@ -9961,7 +9981,7 @@ lodash.exports;
|
|
|
9961
9981
|
lodash2.defaultTo = defaultTo;
|
|
9962
9982
|
lodash2.divide = divide;
|
|
9963
9983
|
lodash2.endsWith = endsWith;
|
|
9964
|
-
lodash2.eq =
|
|
9984
|
+
lodash2.eq = eq2;
|
|
9965
9985
|
lodash2.escape = escape;
|
|
9966
9986
|
lodash2.escapeRegExp = escapeRegExp;
|
|
9967
9987
|
lodash2.every = every;
|
|
@@ -9989,13 +10009,13 @@ lodash.exports;
|
|
|
9989
10009
|
lodash2.indexOf = indexOf;
|
|
9990
10010
|
lodash2.inRange = inRange;
|
|
9991
10011
|
lodash2.invoke = invoke;
|
|
9992
|
-
lodash2.isArguments =
|
|
9993
|
-
lodash2.isArray =
|
|
10012
|
+
lodash2.isArguments = isArguments2;
|
|
10013
|
+
lodash2.isArray = isArray2;
|
|
9994
10014
|
lodash2.isArrayBuffer = isArrayBuffer;
|
|
9995
|
-
lodash2.isArrayLike =
|
|
10015
|
+
lodash2.isArrayLike = isArrayLike2;
|
|
9996
10016
|
lodash2.isArrayLikeObject = isArrayLikeObject;
|
|
9997
10017
|
lodash2.isBoolean = isBoolean;
|
|
9998
|
-
lodash2.isBuffer =
|
|
10018
|
+
lodash2.isBuffer = isBuffer2;
|
|
9999
10019
|
lodash2.isDate = isDate;
|
|
10000
10020
|
lodash2.isElement = isElement;
|
|
10001
10021
|
lodash2.isEmpty = isEmpty;
|
|
@@ -10003,10 +10023,10 @@ lodash.exports;
|
|
|
10003
10023
|
lodash2.isEqualWith = isEqualWith;
|
|
10004
10024
|
lodash2.isError = isError;
|
|
10005
10025
|
lodash2.isFinite = isFinite;
|
|
10006
|
-
lodash2.isFunction =
|
|
10026
|
+
lodash2.isFunction = isFunction2;
|
|
10007
10027
|
lodash2.isInteger = isInteger;
|
|
10008
|
-
lodash2.isLength =
|
|
10009
|
-
lodash2.isMap =
|
|
10028
|
+
lodash2.isLength = isLength2;
|
|
10029
|
+
lodash2.isMap = isMap2;
|
|
10010
10030
|
lodash2.isMatch = isMatch;
|
|
10011
10031
|
lodash2.isMatchWith = isMatchWith;
|
|
10012
10032
|
lodash2.isNaN = isNaN;
|
|
@@ -10014,15 +10034,15 @@ lodash.exports;
|
|
|
10014
10034
|
lodash2.isNil = isNil;
|
|
10015
10035
|
lodash2.isNull = isNull;
|
|
10016
10036
|
lodash2.isNumber = isNumber;
|
|
10017
|
-
lodash2.isObject =
|
|
10018
|
-
lodash2.isObjectLike =
|
|
10037
|
+
lodash2.isObject = isObject2;
|
|
10038
|
+
lodash2.isObjectLike = isObjectLike2;
|
|
10019
10039
|
lodash2.isPlainObject = isPlainObject;
|
|
10020
10040
|
lodash2.isRegExp = isRegExp;
|
|
10021
10041
|
lodash2.isSafeInteger = isSafeInteger;
|
|
10022
|
-
lodash2.isSet =
|
|
10042
|
+
lodash2.isSet = isSet2;
|
|
10023
10043
|
lodash2.isString = isString;
|
|
10024
10044
|
lodash2.isSymbol = isSymbol;
|
|
10025
|
-
lodash2.isTypedArray =
|
|
10045
|
+
lodash2.isTypedArray = isTypedArray2;
|
|
10026
10046
|
lodash2.isUndefined = isUndefined;
|
|
10027
10047
|
lodash2.isWeakMap = isWeakMap;
|
|
10028
10048
|
lodash2.isWeakSet = isWeakSet;
|
|
@@ -10040,8 +10060,8 @@ lodash.exports;
|
|
|
10040
10060
|
lodash2.meanBy = meanBy;
|
|
10041
10061
|
lodash2.min = min;
|
|
10042
10062
|
lodash2.minBy = minBy;
|
|
10043
|
-
lodash2.stubArray =
|
|
10044
|
-
lodash2.stubFalse =
|
|
10063
|
+
lodash2.stubArray = stubArray2;
|
|
10064
|
+
lodash2.stubFalse = stubFalse2;
|
|
10045
10065
|
lodash2.stubObject = stubObject;
|
|
10046
10066
|
lodash2.stubString = stubString;
|
|
10047
10067
|
lodash2.stubTrue = stubTrue;
|
|
@@ -10101,17 +10121,17 @@ lodash.exports;
|
|
|
10101
10121
|
mixin(lodash2, function() {
|
|
10102
10122
|
var source = {};
|
|
10103
10123
|
baseForOwn(lodash2, function(func, methodName) {
|
|
10104
|
-
if (!
|
|
10124
|
+
if (!hasOwnProperty2.call(lodash2.prototype, methodName)) {
|
|
10105
10125
|
source[methodName] = func;
|
|
10106
10126
|
}
|
|
10107
10127
|
});
|
|
10108
10128
|
return source;
|
|
10109
10129
|
}(), { "chain": false });
|
|
10110
10130
|
lodash2.VERSION = VERSION;
|
|
10111
|
-
|
|
10131
|
+
arrayEach2(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(methodName) {
|
|
10112
10132
|
lodash2[methodName].placeholder = lodash2;
|
|
10113
10133
|
});
|
|
10114
|
-
|
|
10134
|
+
arrayEach2(["drop", "take"], function(methodName, index2) {
|
|
10115
10135
|
LazyWrapper.prototype[methodName] = function(n) {
|
|
10116
10136
|
n = n === undefined$1 ? 1 : nativeMax(toInteger(n), 0);
|
|
10117
10137
|
var result2 = this.__filtered__ && !index2 ? new LazyWrapper(this) : this.clone();
|
|
@@ -10129,7 +10149,7 @@ lodash.exports;
|
|
|
10129
10149
|
return this.reverse()[methodName](n).reverse();
|
|
10130
10150
|
};
|
|
10131
10151
|
});
|
|
10132
|
-
|
|
10152
|
+
arrayEach2(["filter", "map", "takeWhile"], function(methodName, index2) {
|
|
10133
10153
|
var type = index2 + 1, isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG;
|
|
10134
10154
|
LazyWrapper.prototype[methodName] = function(iteratee2) {
|
|
10135
10155
|
var result2 = this.clone();
|
|
@@ -10141,13 +10161,13 @@ lodash.exports;
|
|
|
10141
10161
|
return result2;
|
|
10142
10162
|
};
|
|
10143
10163
|
});
|
|
10144
|
-
|
|
10164
|
+
arrayEach2(["head", "last"], function(methodName, index2) {
|
|
10145
10165
|
var takeName = "take" + (index2 ? "Right" : "");
|
|
10146
10166
|
LazyWrapper.prototype[methodName] = function() {
|
|
10147
10167
|
return this[takeName](1).value()[0];
|
|
10148
10168
|
};
|
|
10149
10169
|
});
|
|
10150
|
-
|
|
10170
|
+
arrayEach2(["initial", "tail"], function(methodName, index2) {
|
|
10151
10171
|
var dropName = "drop" + (index2 ? "" : "Right");
|
|
10152
10172
|
LazyWrapper.prototype[methodName] = function() {
|
|
10153
10173
|
return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1);
|
|
@@ -10202,9 +10222,9 @@ lodash.exports;
|
|
|
10202
10222
|
return;
|
|
10203
10223
|
}
|
|
10204
10224
|
lodash2.prototype[methodName] = function() {
|
|
10205
|
-
var value = this.__wrapped__, args = isTaker ? [1] : arguments, isLazy = value instanceof LazyWrapper, iteratee2 = args[0], useLazy = isLazy ||
|
|
10225
|
+
var value = this.__wrapped__, args = isTaker ? [1] : arguments, isLazy = value instanceof LazyWrapper, iteratee2 = args[0], useLazy = isLazy || isArray2(value);
|
|
10206
10226
|
var interceptor = function(value2) {
|
|
10207
|
-
var result3 = lodashFunc.apply(lodash2,
|
|
10227
|
+
var result3 = lodashFunc.apply(lodash2, arrayPush2([value2], args));
|
|
10208
10228
|
return isTaker && chainAll ? result3[0] : result3;
|
|
10209
10229
|
};
|
|
10210
10230
|
if (useLazy && checkIteratee && typeof iteratee2 == "function" && iteratee2.length != 1) {
|
|
@@ -10224,16 +10244,16 @@ lodash.exports;
|
|
|
10224
10244
|
return isUnwrapped ? isTaker ? result2.value()[0] : result2.value() : result2;
|
|
10225
10245
|
};
|
|
10226
10246
|
});
|
|
10227
|
-
|
|
10228
|
-
var func =
|
|
10247
|
+
arrayEach2(["pop", "push", "shift", "sort", "splice", "unshift"], function(methodName) {
|
|
10248
|
+
var func = arrayProto2[methodName], chainName = /^(?:push|sort|unshift)$/.test(methodName) ? "tap" : "thru", retUnwrapped = /^(?:pop|shift)$/.test(methodName);
|
|
10229
10249
|
lodash2.prototype[methodName] = function() {
|
|
10230
10250
|
var args = arguments;
|
|
10231
10251
|
if (retUnwrapped && !this.__chain__) {
|
|
10232
10252
|
var value = this.value();
|
|
10233
|
-
return func.apply(
|
|
10253
|
+
return func.apply(isArray2(value) ? value : [], args);
|
|
10234
10254
|
}
|
|
10235
10255
|
return this[chainName](function(value2) {
|
|
10236
|
-
return func.apply(
|
|
10256
|
+
return func.apply(isArray2(value2) ? value2 : [], args);
|
|
10237
10257
|
});
|
|
10238
10258
|
};
|
|
10239
10259
|
});
|
|
@@ -10241,7 +10261,7 @@ lodash.exports;
|
|
|
10241
10261
|
var lodashFunc = lodash2[methodName];
|
|
10242
10262
|
if (lodashFunc) {
|
|
10243
10263
|
var key = lodashFunc.name + "";
|
|
10244
|
-
if (!
|
|
10264
|
+
if (!hasOwnProperty2.call(realNames, key)) {
|
|
10245
10265
|
realNames[key] = [];
|
|
10246
10266
|
}
|
|
10247
10267
|
realNames[key].push({ "name": methodName, "func": lodashFunc });
|
|
@@ -10272,7 +10292,7 @@ lodash.exports;
|
|
|
10272
10292
|
(freeModule.exports = _2)._ = _2;
|
|
10273
10293
|
freeExports._ = _2;
|
|
10274
10294
|
} else {
|
|
10275
|
-
|
|
10295
|
+
root2._ = _2;
|
|
10276
10296
|
}
|
|
10277
10297
|
}).call(commonjsGlobal);
|
|
10278
10298
|
})(lodash, lodash.exports);
|
|
@@ -10753,8 +10773,9 @@ function SortableRouteItem({ item, depth, ...props }) {
|
|
|
10753
10773
|
}
|
|
10754
10774
|
function PageWrapper({ navigations, loading = false, children }) {
|
|
10755
10775
|
const { formatMessage } = reactIntl.useIntl();
|
|
10756
|
-
const { selectedNavigation
|
|
10776
|
+
const { selectedNavigation } = React.useContext(SelectedNavigationContext);
|
|
10757
10777
|
const { setModalType } = React.useContext(ModalContext);
|
|
10778
|
+
const navigate = reactRouterDom.useNavigate();
|
|
10758
10779
|
return /* @__PURE__ */ jsxRuntime.jsxs(admin.Page.Main, { children: [
|
|
10759
10780
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
10760
10781
|
admin.Layouts.Header,
|
|
@@ -10782,10 +10803,7 @@ function PageWrapper({ navigations, loading = false, children }) {
|
|
|
10782
10803
|
}),
|
|
10783
10804
|
onChange: (value) => {
|
|
10784
10805
|
const navItem = navigations.find((nav) => nav.slug === value);
|
|
10785
|
-
|
|
10786
|
-
if (navItem) {
|
|
10787
|
-
setSelectedNavigation(navItem);
|
|
10788
|
-
}
|
|
10806
|
+
navItem && navigate(`/plugins/webatlas/navigation/${navItem.documentId}`);
|
|
10789
10807
|
},
|
|
10790
10808
|
disabled: navigations.length === 0,
|
|
10791
10809
|
children: navigations.map((nav) => /* @__PURE__ */ jsxRuntime.jsx(designSystem.SingleSelectOption, { value: nav.slug, children: nav.name }, nav.id))
|
|
@@ -10797,17 +10815,993 @@ function PageWrapper({ navigations, loading = false, children }) {
|
|
|
10797
10815
|
/* @__PURE__ */ jsxRuntime.jsx(admin.Layouts.Content, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { children }) })
|
|
10798
10816
|
] });
|
|
10799
10817
|
}
|
|
10818
|
+
function listCacheClear$1() {
|
|
10819
|
+
this.__data__ = [];
|
|
10820
|
+
this.size = 0;
|
|
10821
|
+
}
|
|
10822
|
+
var _listCacheClear = listCacheClear$1;
|
|
10823
|
+
function eq$2(value, other) {
|
|
10824
|
+
return value === other || value !== value && other !== other;
|
|
10825
|
+
}
|
|
10826
|
+
var eq_1 = eq$2;
|
|
10827
|
+
var eq$1 = eq_1;
|
|
10828
|
+
function assocIndexOf$4(array, key) {
|
|
10829
|
+
var length = array.length;
|
|
10830
|
+
while (length--) {
|
|
10831
|
+
if (eq$1(array[length][0], key)) {
|
|
10832
|
+
return length;
|
|
10833
|
+
}
|
|
10834
|
+
}
|
|
10835
|
+
return -1;
|
|
10836
|
+
}
|
|
10837
|
+
var _assocIndexOf = assocIndexOf$4;
|
|
10838
|
+
var assocIndexOf$3 = _assocIndexOf;
|
|
10839
|
+
var arrayProto = Array.prototype;
|
|
10840
|
+
var splice = arrayProto.splice;
|
|
10841
|
+
function listCacheDelete$1(key) {
|
|
10842
|
+
var data = this.__data__, index2 = assocIndexOf$3(data, key);
|
|
10843
|
+
if (index2 < 0) {
|
|
10844
|
+
return false;
|
|
10845
|
+
}
|
|
10846
|
+
var lastIndex = data.length - 1;
|
|
10847
|
+
if (index2 == lastIndex) {
|
|
10848
|
+
data.pop();
|
|
10849
|
+
} else {
|
|
10850
|
+
splice.call(data, index2, 1);
|
|
10851
|
+
}
|
|
10852
|
+
--this.size;
|
|
10853
|
+
return true;
|
|
10854
|
+
}
|
|
10855
|
+
var _listCacheDelete = listCacheDelete$1;
|
|
10856
|
+
var assocIndexOf$2 = _assocIndexOf;
|
|
10857
|
+
function listCacheGet$1(key) {
|
|
10858
|
+
var data = this.__data__, index2 = assocIndexOf$2(data, key);
|
|
10859
|
+
return index2 < 0 ? void 0 : data[index2][1];
|
|
10860
|
+
}
|
|
10861
|
+
var _listCacheGet = listCacheGet$1;
|
|
10862
|
+
var assocIndexOf$1 = _assocIndexOf;
|
|
10863
|
+
function listCacheHas$1(key) {
|
|
10864
|
+
return assocIndexOf$1(this.__data__, key) > -1;
|
|
10865
|
+
}
|
|
10866
|
+
var _listCacheHas = listCacheHas$1;
|
|
10867
|
+
var assocIndexOf = _assocIndexOf;
|
|
10868
|
+
function listCacheSet$1(key, value) {
|
|
10869
|
+
var data = this.__data__, index2 = assocIndexOf(data, key);
|
|
10870
|
+
if (index2 < 0) {
|
|
10871
|
+
++this.size;
|
|
10872
|
+
data.push([key, value]);
|
|
10873
|
+
} else {
|
|
10874
|
+
data[index2][1] = value;
|
|
10875
|
+
}
|
|
10876
|
+
return this;
|
|
10877
|
+
}
|
|
10878
|
+
var _listCacheSet = listCacheSet$1;
|
|
10879
|
+
var listCacheClear = _listCacheClear, listCacheDelete = _listCacheDelete, listCacheGet = _listCacheGet, listCacheHas = _listCacheHas, listCacheSet = _listCacheSet;
|
|
10880
|
+
function ListCache$4(entries) {
|
|
10881
|
+
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
10882
|
+
this.clear();
|
|
10883
|
+
while (++index2 < length) {
|
|
10884
|
+
var entry = entries[index2];
|
|
10885
|
+
this.set(entry[0], entry[1]);
|
|
10886
|
+
}
|
|
10887
|
+
}
|
|
10888
|
+
ListCache$4.prototype.clear = listCacheClear;
|
|
10889
|
+
ListCache$4.prototype["delete"] = listCacheDelete;
|
|
10890
|
+
ListCache$4.prototype.get = listCacheGet;
|
|
10891
|
+
ListCache$4.prototype.has = listCacheHas;
|
|
10892
|
+
ListCache$4.prototype.set = listCacheSet;
|
|
10893
|
+
var _ListCache = ListCache$4;
|
|
10894
|
+
var ListCache$3 = _ListCache;
|
|
10895
|
+
function stackClear$1() {
|
|
10896
|
+
this.__data__ = new ListCache$3();
|
|
10897
|
+
this.size = 0;
|
|
10898
|
+
}
|
|
10899
|
+
var _stackClear = stackClear$1;
|
|
10900
|
+
function stackDelete$1(key) {
|
|
10901
|
+
var data = this.__data__, result = data["delete"](key);
|
|
10902
|
+
this.size = data.size;
|
|
10903
|
+
return result;
|
|
10904
|
+
}
|
|
10905
|
+
var _stackDelete = stackDelete$1;
|
|
10906
|
+
function stackGet$1(key) {
|
|
10907
|
+
return this.__data__.get(key);
|
|
10908
|
+
}
|
|
10909
|
+
var _stackGet = stackGet$1;
|
|
10910
|
+
function stackHas$1(key) {
|
|
10911
|
+
return this.__data__.has(key);
|
|
10912
|
+
}
|
|
10913
|
+
var _stackHas = stackHas$1;
|
|
10914
|
+
var freeGlobal$1 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
10915
|
+
var _freeGlobal = freeGlobal$1;
|
|
10916
|
+
var freeGlobal = _freeGlobal;
|
|
10917
|
+
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
10918
|
+
var root$8 = freeGlobal || freeSelf || Function("return this")();
|
|
10919
|
+
var _root = root$8;
|
|
10920
|
+
var root$7 = _root;
|
|
10921
|
+
var Symbol$4 = root$7.Symbol;
|
|
10922
|
+
var _Symbol = Symbol$4;
|
|
10923
|
+
var Symbol$3 = _Symbol;
|
|
10924
|
+
var objectProto$c = Object.prototype;
|
|
10925
|
+
var hasOwnProperty$9 = objectProto$c.hasOwnProperty;
|
|
10926
|
+
var nativeObjectToString$1 = objectProto$c.toString;
|
|
10927
|
+
var symToStringTag$1 = Symbol$3 ? Symbol$3.toStringTag : void 0;
|
|
10928
|
+
function getRawTag$1(value) {
|
|
10929
|
+
var isOwn = hasOwnProperty$9.call(value, symToStringTag$1), tag = value[symToStringTag$1];
|
|
10930
|
+
try {
|
|
10931
|
+
value[symToStringTag$1] = void 0;
|
|
10932
|
+
var unmasked = true;
|
|
10933
|
+
} catch (e) {
|
|
10934
|
+
}
|
|
10935
|
+
var result = nativeObjectToString$1.call(value);
|
|
10936
|
+
if (unmasked) {
|
|
10937
|
+
if (isOwn) {
|
|
10938
|
+
value[symToStringTag$1] = tag;
|
|
10939
|
+
} else {
|
|
10940
|
+
delete value[symToStringTag$1];
|
|
10941
|
+
}
|
|
10942
|
+
}
|
|
10943
|
+
return result;
|
|
10944
|
+
}
|
|
10945
|
+
var _getRawTag = getRawTag$1;
|
|
10946
|
+
var objectProto$b = Object.prototype;
|
|
10947
|
+
var nativeObjectToString = objectProto$b.toString;
|
|
10948
|
+
function objectToString$1(value) {
|
|
10949
|
+
return nativeObjectToString.call(value);
|
|
10950
|
+
}
|
|
10951
|
+
var _objectToString = objectToString$1;
|
|
10952
|
+
var Symbol$2 = _Symbol, getRawTag = _getRawTag, objectToString = _objectToString;
|
|
10953
|
+
var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
|
|
10954
|
+
var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : void 0;
|
|
10955
|
+
function baseGetTag$4(value) {
|
|
10956
|
+
if (value == null) {
|
|
10957
|
+
return value === void 0 ? undefinedTag : nullTag;
|
|
10958
|
+
}
|
|
10959
|
+
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
10960
|
+
}
|
|
10961
|
+
var _baseGetTag = baseGetTag$4;
|
|
10962
|
+
function isObject$5(value) {
|
|
10963
|
+
var type = typeof value;
|
|
10964
|
+
return value != null && (type == "object" || type == "function");
|
|
10965
|
+
}
|
|
10966
|
+
var isObject_1 = isObject$5;
|
|
10967
|
+
var baseGetTag$3 = _baseGetTag, isObject$4 = isObject_1;
|
|
10968
|
+
var asyncTag = "[object AsyncFunction]", funcTag$2 = "[object Function]", genTag$1 = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
|
|
10969
|
+
function isFunction$2(value) {
|
|
10970
|
+
if (!isObject$4(value)) {
|
|
10971
|
+
return false;
|
|
10972
|
+
}
|
|
10973
|
+
var tag = baseGetTag$3(value);
|
|
10974
|
+
return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
|
|
10975
|
+
}
|
|
10976
|
+
var isFunction_1 = isFunction$2;
|
|
10977
|
+
var root$6 = _root;
|
|
10978
|
+
var coreJsData$1 = root$6["__core-js_shared__"];
|
|
10979
|
+
var _coreJsData = coreJsData$1;
|
|
10980
|
+
var coreJsData = _coreJsData;
|
|
10981
|
+
var maskSrcKey = function() {
|
|
10982
|
+
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
10983
|
+
return uid ? "Symbol(src)_1." + uid : "";
|
|
10984
|
+
}();
|
|
10985
|
+
function isMasked$1(func) {
|
|
10986
|
+
return !!maskSrcKey && maskSrcKey in func;
|
|
10987
|
+
}
|
|
10988
|
+
var _isMasked = isMasked$1;
|
|
10989
|
+
var funcProto$1 = Function.prototype;
|
|
10990
|
+
var funcToString$1 = funcProto$1.toString;
|
|
10991
|
+
function toSource$2(func) {
|
|
10992
|
+
if (func != null) {
|
|
10993
|
+
try {
|
|
10994
|
+
return funcToString$1.call(func);
|
|
10995
|
+
} catch (e) {
|
|
10996
|
+
}
|
|
10997
|
+
try {
|
|
10998
|
+
return func + "";
|
|
10999
|
+
} catch (e) {
|
|
11000
|
+
}
|
|
11001
|
+
}
|
|
11002
|
+
return "";
|
|
11003
|
+
}
|
|
11004
|
+
var _toSource = toSource$2;
|
|
11005
|
+
var isFunction$1 = isFunction_1, isMasked = _isMasked, isObject$3 = isObject_1, toSource$1 = _toSource;
|
|
11006
|
+
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
11007
|
+
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
11008
|
+
var funcProto = Function.prototype, objectProto$a = Object.prototype;
|
|
11009
|
+
var funcToString = funcProto.toString;
|
|
11010
|
+
var hasOwnProperty$8 = objectProto$a.hasOwnProperty;
|
|
11011
|
+
var reIsNative = RegExp(
|
|
11012
|
+
"^" + funcToString.call(hasOwnProperty$8).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
11013
|
+
);
|
|
11014
|
+
function baseIsNative$1(value) {
|
|
11015
|
+
if (!isObject$3(value) || isMasked(value)) {
|
|
11016
|
+
return false;
|
|
11017
|
+
}
|
|
11018
|
+
var pattern = isFunction$1(value) ? reIsNative : reIsHostCtor;
|
|
11019
|
+
return pattern.test(toSource$1(value));
|
|
11020
|
+
}
|
|
11021
|
+
var _baseIsNative = baseIsNative$1;
|
|
11022
|
+
function getValue$1(object, key) {
|
|
11023
|
+
return object == null ? void 0 : object[key];
|
|
11024
|
+
}
|
|
11025
|
+
var _getValue = getValue$1;
|
|
11026
|
+
var baseIsNative = _baseIsNative, getValue = _getValue;
|
|
11027
|
+
function getNative$7(object, key) {
|
|
11028
|
+
var value = getValue(object, key);
|
|
11029
|
+
return baseIsNative(value) ? value : void 0;
|
|
11030
|
+
}
|
|
11031
|
+
var _getNative = getNative$7;
|
|
11032
|
+
var getNative$6 = _getNative, root$5 = _root;
|
|
11033
|
+
var Map$3 = getNative$6(root$5, "Map");
|
|
11034
|
+
var _Map = Map$3;
|
|
11035
|
+
var getNative$5 = _getNative;
|
|
11036
|
+
var nativeCreate$4 = getNative$5(Object, "create");
|
|
11037
|
+
var _nativeCreate = nativeCreate$4;
|
|
11038
|
+
var nativeCreate$3 = _nativeCreate;
|
|
11039
|
+
function hashClear$1() {
|
|
11040
|
+
this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {};
|
|
11041
|
+
this.size = 0;
|
|
11042
|
+
}
|
|
11043
|
+
var _hashClear = hashClear$1;
|
|
11044
|
+
function hashDelete$1(key) {
|
|
11045
|
+
var result = this.has(key) && delete this.__data__[key];
|
|
11046
|
+
this.size -= result ? 1 : 0;
|
|
11047
|
+
return result;
|
|
11048
|
+
}
|
|
11049
|
+
var _hashDelete = hashDelete$1;
|
|
11050
|
+
var nativeCreate$2 = _nativeCreate;
|
|
11051
|
+
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
11052
|
+
var objectProto$9 = Object.prototype;
|
|
11053
|
+
var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
|
|
11054
|
+
function hashGet$1(key) {
|
|
11055
|
+
var data = this.__data__;
|
|
11056
|
+
if (nativeCreate$2) {
|
|
11057
|
+
var result = data[key];
|
|
11058
|
+
return result === HASH_UNDEFINED$1 ? void 0 : result;
|
|
11059
|
+
}
|
|
11060
|
+
return hasOwnProperty$7.call(data, key) ? data[key] : void 0;
|
|
11061
|
+
}
|
|
11062
|
+
var _hashGet = hashGet$1;
|
|
11063
|
+
var nativeCreate$1 = _nativeCreate;
|
|
11064
|
+
var objectProto$8 = Object.prototype;
|
|
11065
|
+
var hasOwnProperty$6 = objectProto$8.hasOwnProperty;
|
|
11066
|
+
function hashHas$1(key) {
|
|
11067
|
+
var data = this.__data__;
|
|
11068
|
+
return nativeCreate$1 ? data[key] !== void 0 : hasOwnProperty$6.call(data, key);
|
|
11069
|
+
}
|
|
11070
|
+
var _hashHas = hashHas$1;
|
|
11071
|
+
var nativeCreate = _nativeCreate;
|
|
11072
|
+
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
11073
|
+
function hashSet$1(key, value) {
|
|
11074
|
+
var data = this.__data__;
|
|
11075
|
+
this.size += this.has(key) ? 0 : 1;
|
|
11076
|
+
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
|
|
11077
|
+
return this;
|
|
11078
|
+
}
|
|
11079
|
+
var _hashSet = hashSet$1;
|
|
11080
|
+
var hashClear = _hashClear, hashDelete = _hashDelete, hashGet = _hashGet, hashHas = _hashHas, hashSet = _hashSet;
|
|
11081
|
+
function Hash$1(entries) {
|
|
11082
|
+
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
11083
|
+
this.clear();
|
|
11084
|
+
while (++index2 < length) {
|
|
11085
|
+
var entry = entries[index2];
|
|
11086
|
+
this.set(entry[0], entry[1]);
|
|
11087
|
+
}
|
|
11088
|
+
}
|
|
11089
|
+
Hash$1.prototype.clear = hashClear;
|
|
11090
|
+
Hash$1.prototype["delete"] = hashDelete;
|
|
11091
|
+
Hash$1.prototype.get = hashGet;
|
|
11092
|
+
Hash$1.prototype.has = hashHas;
|
|
11093
|
+
Hash$1.prototype.set = hashSet;
|
|
11094
|
+
var _Hash = Hash$1;
|
|
11095
|
+
var Hash = _Hash, ListCache$2 = _ListCache, Map$2 = _Map;
|
|
11096
|
+
function mapCacheClear$1() {
|
|
11097
|
+
this.size = 0;
|
|
11098
|
+
this.__data__ = {
|
|
11099
|
+
"hash": new Hash(),
|
|
11100
|
+
"map": new (Map$2 || ListCache$2)(),
|
|
11101
|
+
"string": new Hash()
|
|
11102
|
+
};
|
|
11103
|
+
}
|
|
11104
|
+
var _mapCacheClear = mapCacheClear$1;
|
|
11105
|
+
function isKeyable$1(value) {
|
|
11106
|
+
var type = typeof value;
|
|
11107
|
+
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
11108
|
+
}
|
|
11109
|
+
var _isKeyable = isKeyable$1;
|
|
11110
|
+
var isKeyable = _isKeyable;
|
|
11111
|
+
function getMapData$4(map, key) {
|
|
11112
|
+
var data = map.__data__;
|
|
11113
|
+
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
11114
|
+
}
|
|
11115
|
+
var _getMapData = getMapData$4;
|
|
11116
|
+
var getMapData$3 = _getMapData;
|
|
11117
|
+
function mapCacheDelete$1(key) {
|
|
11118
|
+
var result = getMapData$3(this, key)["delete"](key);
|
|
11119
|
+
this.size -= result ? 1 : 0;
|
|
11120
|
+
return result;
|
|
11121
|
+
}
|
|
11122
|
+
var _mapCacheDelete = mapCacheDelete$1;
|
|
11123
|
+
var getMapData$2 = _getMapData;
|
|
11124
|
+
function mapCacheGet$1(key) {
|
|
11125
|
+
return getMapData$2(this, key).get(key);
|
|
11126
|
+
}
|
|
11127
|
+
var _mapCacheGet = mapCacheGet$1;
|
|
11128
|
+
var getMapData$1 = _getMapData;
|
|
11129
|
+
function mapCacheHas$1(key) {
|
|
11130
|
+
return getMapData$1(this, key).has(key);
|
|
11131
|
+
}
|
|
11132
|
+
var _mapCacheHas = mapCacheHas$1;
|
|
11133
|
+
var getMapData = _getMapData;
|
|
11134
|
+
function mapCacheSet$1(key, value) {
|
|
11135
|
+
var data = getMapData(this, key), size = data.size;
|
|
11136
|
+
data.set(key, value);
|
|
11137
|
+
this.size += data.size == size ? 0 : 1;
|
|
11138
|
+
return this;
|
|
11139
|
+
}
|
|
11140
|
+
var _mapCacheSet = mapCacheSet$1;
|
|
11141
|
+
var mapCacheClear = _mapCacheClear, mapCacheDelete = _mapCacheDelete, mapCacheGet = _mapCacheGet, mapCacheHas = _mapCacheHas, mapCacheSet = _mapCacheSet;
|
|
11142
|
+
function MapCache$1(entries) {
|
|
11143
|
+
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
11144
|
+
this.clear();
|
|
11145
|
+
while (++index2 < length) {
|
|
11146
|
+
var entry = entries[index2];
|
|
11147
|
+
this.set(entry[0], entry[1]);
|
|
11148
|
+
}
|
|
11149
|
+
}
|
|
11150
|
+
MapCache$1.prototype.clear = mapCacheClear;
|
|
11151
|
+
MapCache$1.prototype["delete"] = mapCacheDelete;
|
|
11152
|
+
MapCache$1.prototype.get = mapCacheGet;
|
|
11153
|
+
MapCache$1.prototype.has = mapCacheHas;
|
|
11154
|
+
MapCache$1.prototype.set = mapCacheSet;
|
|
11155
|
+
var _MapCache = MapCache$1;
|
|
11156
|
+
var ListCache$1 = _ListCache, Map$1 = _Map, MapCache = _MapCache;
|
|
11157
|
+
var LARGE_ARRAY_SIZE = 200;
|
|
11158
|
+
function stackSet$1(key, value) {
|
|
11159
|
+
var data = this.__data__;
|
|
11160
|
+
if (data instanceof ListCache$1) {
|
|
11161
|
+
var pairs = data.__data__;
|
|
11162
|
+
if (!Map$1 || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
11163
|
+
pairs.push([key, value]);
|
|
11164
|
+
this.size = ++data.size;
|
|
11165
|
+
return this;
|
|
11166
|
+
}
|
|
11167
|
+
data = this.__data__ = new MapCache(pairs);
|
|
11168
|
+
}
|
|
11169
|
+
data.set(key, value);
|
|
11170
|
+
this.size = data.size;
|
|
11171
|
+
return this;
|
|
11172
|
+
}
|
|
11173
|
+
var _stackSet = stackSet$1;
|
|
11174
|
+
var ListCache = _ListCache, stackClear = _stackClear, stackDelete = _stackDelete, stackGet = _stackGet, stackHas = _stackHas, stackSet = _stackSet;
|
|
11175
|
+
function Stack$1(entries) {
|
|
11176
|
+
var data = this.__data__ = new ListCache(entries);
|
|
11177
|
+
this.size = data.size;
|
|
11178
|
+
}
|
|
11179
|
+
Stack$1.prototype.clear = stackClear;
|
|
11180
|
+
Stack$1.prototype["delete"] = stackDelete;
|
|
11181
|
+
Stack$1.prototype.get = stackGet;
|
|
11182
|
+
Stack$1.prototype.has = stackHas;
|
|
11183
|
+
Stack$1.prototype.set = stackSet;
|
|
11184
|
+
var _Stack = Stack$1;
|
|
11185
|
+
function arrayEach$1(array, iteratee) {
|
|
11186
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
|
11187
|
+
while (++index2 < length) {
|
|
11188
|
+
if (iteratee(array[index2], index2, array) === false) {
|
|
11189
|
+
break;
|
|
11190
|
+
}
|
|
11191
|
+
}
|
|
11192
|
+
return array;
|
|
11193
|
+
}
|
|
11194
|
+
var _arrayEach = arrayEach$1;
|
|
11195
|
+
var getNative$4 = _getNative;
|
|
11196
|
+
var defineProperty$1 = function() {
|
|
11197
|
+
try {
|
|
11198
|
+
var func = getNative$4(Object, "defineProperty");
|
|
11199
|
+
func({}, "", {});
|
|
11200
|
+
return func;
|
|
11201
|
+
} catch (e) {
|
|
11202
|
+
}
|
|
11203
|
+
}();
|
|
11204
|
+
var _defineProperty = defineProperty$1;
|
|
11205
|
+
var defineProperty = _defineProperty;
|
|
11206
|
+
function baseAssignValue$2(object, key, value) {
|
|
11207
|
+
if (key == "__proto__" && defineProperty) {
|
|
11208
|
+
defineProperty(object, key, {
|
|
11209
|
+
"configurable": true,
|
|
11210
|
+
"enumerable": true,
|
|
11211
|
+
"value": value,
|
|
11212
|
+
"writable": true
|
|
11213
|
+
});
|
|
11214
|
+
} else {
|
|
11215
|
+
object[key] = value;
|
|
11216
|
+
}
|
|
11217
|
+
}
|
|
11218
|
+
var _baseAssignValue = baseAssignValue$2;
|
|
11219
|
+
var baseAssignValue$1 = _baseAssignValue, eq = eq_1;
|
|
11220
|
+
var objectProto$7 = Object.prototype;
|
|
11221
|
+
var hasOwnProperty$5 = objectProto$7.hasOwnProperty;
|
|
11222
|
+
function assignValue$2(object, key, value) {
|
|
11223
|
+
var objValue = object[key];
|
|
11224
|
+
if (!(hasOwnProperty$5.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
|
|
11225
|
+
baseAssignValue$1(object, key, value);
|
|
11226
|
+
}
|
|
11227
|
+
}
|
|
11228
|
+
var _assignValue = assignValue$2;
|
|
11229
|
+
var assignValue$1 = _assignValue, baseAssignValue = _baseAssignValue;
|
|
11230
|
+
function copyObject$4(source, props, object, customizer) {
|
|
11231
|
+
var isNew = !object;
|
|
11232
|
+
object || (object = {});
|
|
11233
|
+
var index2 = -1, length = props.length;
|
|
11234
|
+
while (++index2 < length) {
|
|
11235
|
+
var key = props[index2];
|
|
11236
|
+
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
|
|
11237
|
+
if (newValue === void 0) {
|
|
11238
|
+
newValue = source[key];
|
|
11239
|
+
}
|
|
11240
|
+
if (isNew) {
|
|
11241
|
+
baseAssignValue(object, key, newValue);
|
|
11242
|
+
} else {
|
|
11243
|
+
assignValue$1(object, key, newValue);
|
|
11244
|
+
}
|
|
11245
|
+
}
|
|
11246
|
+
return object;
|
|
11247
|
+
}
|
|
11248
|
+
var _copyObject = copyObject$4;
|
|
11249
|
+
function baseTimes$1(n, iteratee) {
|
|
11250
|
+
var index2 = -1, result = Array(n);
|
|
11251
|
+
while (++index2 < n) {
|
|
11252
|
+
result[index2] = iteratee(index2);
|
|
11253
|
+
}
|
|
11254
|
+
return result;
|
|
11255
|
+
}
|
|
11256
|
+
var _baseTimes = baseTimes$1;
|
|
11257
|
+
function isObjectLike$5(value) {
|
|
11258
|
+
return value != null && typeof value == "object";
|
|
11259
|
+
}
|
|
11260
|
+
var isObjectLike_1 = isObjectLike$5;
|
|
11261
|
+
var baseGetTag$2 = _baseGetTag, isObjectLike$4 = isObjectLike_1;
|
|
11262
|
+
var argsTag$2 = "[object Arguments]";
|
|
11263
|
+
function baseIsArguments$1(value) {
|
|
11264
|
+
return isObjectLike$4(value) && baseGetTag$2(value) == argsTag$2;
|
|
11265
|
+
}
|
|
11266
|
+
var _baseIsArguments = baseIsArguments$1;
|
|
11267
|
+
var baseIsArguments = _baseIsArguments, isObjectLike$3 = isObjectLike_1;
|
|
11268
|
+
var objectProto$6 = Object.prototype;
|
|
11269
|
+
var hasOwnProperty$4 = objectProto$6.hasOwnProperty;
|
|
11270
|
+
var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
|
|
11271
|
+
var isArguments$1 = baseIsArguments(/* @__PURE__ */ function() {
|
|
11272
|
+
return arguments;
|
|
11273
|
+
}()) ? baseIsArguments : function(value) {
|
|
11274
|
+
return isObjectLike$3(value) && hasOwnProperty$4.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
11275
|
+
};
|
|
11276
|
+
var isArguments_1 = isArguments$1;
|
|
11277
|
+
var isArray$3 = Array.isArray;
|
|
11278
|
+
var isArray_1 = isArray$3;
|
|
11279
|
+
var isBuffer$2 = { exports: {} };
|
|
11280
|
+
function stubFalse() {
|
|
11281
|
+
return false;
|
|
11282
|
+
}
|
|
11283
|
+
var stubFalse_1 = stubFalse;
|
|
11284
|
+
isBuffer$2.exports;
|
|
11285
|
+
(function(module2, exports2) {
|
|
11286
|
+
var root2 = _root, stubFalse2 = stubFalse_1;
|
|
11287
|
+
var freeExports = exports2 && !exports2.nodeType && exports2;
|
|
11288
|
+
var freeModule = freeExports && true && module2 && !module2.nodeType && module2;
|
|
11289
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
11290
|
+
var Buffer = moduleExports ? root2.Buffer : void 0;
|
|
11291
|
+
var nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0;
|
|
11292
|
+
var isBuffer2 = nativeIsBuffer || stubFalse2;
|
|
11293
|
+
module2.exports = isBuffer2;
|
|
11294
|
+
})(isBuffer$2, isBuffer$2.exports);
|
|
11295
|
+
var isBufferExports = isBuffer$2.exports;
|
|
11296
|
+
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
11297
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
11298
|
+
function isIndex$1(value, length) {
|
|
11299
|
+
var type = typeof value;
|
|
11300
|
+
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
11301
|
+
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
11302
|
+
}
|
|
11303
|
+
var _isIndex = isIndex$1;
|
|
11304
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
11305
|
+
function isLength$2(value) {
|
|
11306
|
+
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
11307
|
+
}
|
|
11308
|
+
var isLength_1 = isLength$2;
|
|
11309
|
+
var baseGetTag$1 = _baseGetTag, isLength$1 = isLength_1, isObjectLike$2 = isObjectLike_1;
|
|
11310
|
+
var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$2 = "[object Boolean]", dateTag$2 = "[object Date]", errorTag$1 = "[object Error]", funcTag$1 = "[object Function]", mapTag$4 = "[object Map]", numberTag$2 = "[object Number]", objectTag$2 = "[object Object]", regexpTag$2 = "[object RegExp]", setTag$4 = "[object Set]", stringTag$2 = "[object String]", weakMapTag$2 = "[object WeakMap]";
|
|
11311
|
+
var arrayBufferTag$2 = "[object ArrayBuffer]", dataViewTag$3 = "[object DataView]", float32Tag$2 = "[object Float32Array]", float64Tag$2 = "[object Float64Array]", int8Tag$2 = "[object Int8Array]", int16Tag$2 = "[object Int16Array]", int32Tag$2 = "[object Int32Array]", uint8Tag$2 = "[object Uint8Array]", uint8ClampedTag$2 = "[object Uint8ClampedArray]", uint16Tag$2 = "[object Uint16Array]", uint32Tag$2 = "[object Uint32Array]";
|
|
11312
|
+
var typedArrayTags = {};
|
|
11313
|
+
typedArrayTags[float32Tag$2] = typedArrayTags[float64Tag$2] = typedArrayTags[int8Tag$2] = typedArrayTags[int16Tag$2] = typedArrayTags[int32Tag$2] = typedArrayTags[uint8Tag$2] = typedArrayTags[uint8ClampedTag$2] = typedArrayTags[uint16Tag$2] = typedArrayTags[uint32Tag$2] = true;
|
|
11314
|
+
typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] = typedArrayTags[arrayBufferTag$2] = typedArrayTags[boolTag$2] = typedArrayTags[dataViewTag$3] = typedArrayTags[dateTag$2] = typedArrayTags[errorTag$1] = typedArrayTags[funcTag$1] = typedArrayTags[mapTag$4] = typedArrayTags[numberTag$2] = typedArrayTags[objectTag$2] = typedArrayTags[regexpTag$2] = typedArrayTags[setTag$4] = typedArrayTags[stringTag$2] = typedArrayTags[weakMapTag$2] = false;
|
|
11315
|
+
function baseIsTypedArray$1(value) {
|
|
11316
|
+
return isObjectLike$2(value) && isLength$1(value.length) && !!typedArrayTags[baseGetTag$1(value)];
|
|
11317
|
+
}
|
|
11318
|
+
var _baseIsTypedArray = baseIsTypedArray$1;
|
|
11319
|
+
function baseUnary$3(func) {
|
|
11320
|
+
return function(value) {
|
|
11321
|
+
return func(value);
|
|
11322
|
+
};
|
|
11323
|
+
}
|
|
11324
|
+
var _baseUnary = baseUnary$3;
|
|
11325
|
+
var _nodeUtil = { exports: {} };
|
|
11326
|
+
_nodeUtil.exports;
|
|
11327
|
+
(function(module2, exports2) {
|
|
11328
|
+
var freeGlobal2 = _freeGlobal;
|
|
11329
|
+
var freeExports = exports2 && !exports2.nodeType && exports2;
|
|
11330
|
+
var freeModule = freeExports && true && module2 && !module2.nodeType && module2;
|
|
11331
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
11332
|
+
var freeProcess = moduleExports && freeGlobal2.process;
|
|
11333
|
+
var nodeUtil2 = function() {
|
|
11334
|
+
try {
|
|
11335
|
+
var types = freeModule && freeModule.require && freeModule.require("util").types;
|
|
11336
|
+
if (types) {
|
|
11337
|
+
return types;
|
|
11338
|
+
}
|
|
11339
|
+
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
11340
|
+
} catch (e) {
|
|
11341
|
+
}
|
|
11342
|
+
}();
|
|
11343
|
+
module2.exports = nodeUtil2;
|
|
11344
|
+
})(_nodeUtil, _nodeUtil.exports);
|
|
11345
|
+
var _nodeUtilExports = _nodeUtil.exports;
|
|
11346
|
+
var baseIsTypedArray = _baseIsTypedArray, baseUnary$2 = _baseUnary, nodeUtil$2 = _nodeUtilExports;
|
|
11347
|
+
var nodeIsTypedArray = nodeUtil$2 && nodeUtil$2.isTypedArray;
|
|
11348
|
+
var isTypedArray$1 = nodeIsTypedArray ? baseUnary$2(nodeIsTypedArray) : baseIsTypedArray;
|
|
11349
|
+
var isTypedArray_1 = isTypedArray$1;
|
|
11350
|
+
var baseTimes = _baseTimes, isArguments = isArguments_1, isArray$2 = isArray_1, isBuffer$1 = isBufferExports, isIndex = _isIndex, isTypedArray = isTypedArray_1;
|
|
11351
|
+
var objectProto$5 = Object.prototype;
|
|
11352
|
+
var hasOwnProperty$3 = objectProto$5.hasOwnProperty;
|
|
11353
|
+
function arrayLikeKeys$2(value, inherited) {
|
|
11354
|
+
var isArr = isArray$2(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer$1(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
11355
|
+
for (var key in value) {
|
|
11356
|
+
if ((inherited || hasOwnProperty$3.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
11357
|
+
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
11358
|
+
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
11359
|
+
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
11360
|
+
isIndex(key, length)))) {
|
|
11361
|
+
result.push(key);
|
|
11362
|
+
}
|
|
11363
|
+
}
|
|
11364
|
+
return result;
|
|
11365
|
+
}
|
|
11366
|
+
var _arrayLikeKeys = arrayLikeKeys$2;
|
|
11367
|
+
var objectProto$4 = Object.prototype;
|
|
11368
|
+
function isPrototype$3(value) {
|
|
11369
|
+
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$4;
|
|
11370
|
+
return value === proto;
|
|
11371
|
+
}
|
|
11372
|
+
var _isPrototype = isPrototype$3;
|
|
11373
|
+
function overArg$2(func, transform) {
|
|
11374
|
+
return function(arg) {
|
|
11375
|
+
return func(transform(arg));
|
|
11376
|
+
};
|
|
11377
|
+
}
|
|
11378
|
+
var _overArg = overArg$2;
|
|
11379
|
+
var overArg$1 = _overArg;
|
|
11380
|
+
var nativeKeys$1 = overArg$1(Object.keys, Object);
|
|
11381
|
+
var _nativeKeys = nativeKeys$1;
|
|
11382
|
+
var isPrototype$2 = _isPrototype, nativeKeys = _nativeKeys;
|
|
11383
|
+
var objectProto$3 = Object.prototype;
|
|
11384
|
+
var hasOwnProperty$2 = objectProto$3.hasOwnProperty;
|
|
11385
|
+
function baseKeys$1(object) {
|
|
11386
|
+
if (!isPrototype$2(object)) {
|
|
11387
|
+
return nativeKeys(object);
|
|
11388
|
+
}
|
|
11389
|
+
var result = [];
|
|
11390
|
+
for (var key in Object(object)) {
|
|
11391
|
+
if (hasOwnProperty$2.call(object, key) && key != "constructor") {
|
|
11392
|
+
result.push(key);
|
|
11393
|
+
}
|
|
11394
|
+
}
|
|
11395
|
+
return result;
|
|
11396
|
+
}
|
|
11397
|
+
var _baseKeys = baseKeys$1;
|
|
11398
|
+
var isFunction = isFunction_1, isLength = isLength_1;
|
|
11399
|
+
function isArrayLike$2(value) {
|
|
11400
|
+
return value != null && isLength(value.length) && !isFunction(value);
|
|
11401
|
+
}
|
|
11402
|
+
var isArrayLike_1 = isArrayLike$2;
|
|
11403
|
+
var arrayLikeKeys$1 = _arrayLikeKeys, baseKeys = _baseKeys, isArrayLike$1 = isArrayLike_1;
|
|
11404
|
+
function keys$3(object) {
|
|
11405
|
+
return isArrayLike$1(object) ? arrayLikeKeys$1(object) : baseKeys(object);
|
|
11406
|
+
}
|
|
11407
|
+
var keys_1 = keys$3;
|
|
11408
|
+
var copyObject$3 = _copyObject, keys$2 = keys_1;
|
|
11409
|
+
function baseAssign$1(object, source) {
|
|
11410
|
+
return object && copyObject$3(source, keys$2(source), object);
|
|
11411
|
+
}
|
|
11412
|
+
var _baseAssign = baseAssign$1;
|
|
11413
|
+
function nativeKeysIn$1(object) {
|
|
11414
|
+
var result = [];
|
|
11415
|
+
if (object != null) {
|
|
11416
|
+
for (var key in Object(object)) {
|
|
11417
|
+
result.push(key);
|
|
11418
|
+
}
|
|
11419
|
+
}
|
|
11420
|
+
return result;
|
|
11421
|
+
}
|
|
11422
|
+
var _nativeKeysIn = nativeKeysIn$1;
|
|
11423
|
+
var isObject$2 = isObject_1, isPrototype$1 = _isPrototype, nativeKeysIn = _nativeKeysIn;
|
|
11424
|
+
var objectProto$2 = Object.prototype;
|
|
11425
|
+
var hasOwnProperty$1 = objectProto$2.hasOwnProperty;
|
|
11426
|
+
function baseKeysIn$1(object) {
|
|
11427
|
+
if (!isObject$2(object)) {
|
|
11428
|
+
return nativeKeysIn(object);
|
|
11429
|
+
}
|
|
11430
|
+
var isProto = isPrototype$1(object), result = [];
|
|
11431
|
+
for (var key in object) {
|
|
11432
|
+
if (!(key == "constructor" && (isProto || !hasOwnProperty$1.call(object, key)))) {
|
|
11433
|
+
result.push(key);
|
|
11434
|
+
}
|
|
11435
|
+
}
|
|
11436
|
+
return result;
|
|
11437
|
+
}
|
|
11438
|
+
var _baseKeysIn = baseKeysIn$1;
|
|
11439
|
+
var arrayLikeKeys = _arrayLikeKeys, baseKeysIn = _baseKeysIn, isArrayLike = isArrayLike_1;
|
|
11440
|
+
function keysIn$3(object) {
|
|
11441
|
+
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
11442
|
+
}
|
|
11443
|
+
var keysIn_1 = keysIn$3;
|
|
11444
|
+
var copyObject$2 = _copyObject, keysIn$2 = keysIn_1;
|
|
11445
|
+
function baseAssignIn$1(object, source) {
|
|
11446
|
+
return object && copyObject$2(source, keysIn$2(source), object);
|
|
11447
|
+
}
|
|
11448
|
+
var _baseAssignIn = baseAssignIn$1;
|
|
11449
|
+
var _cloneBuffer = { exports: {} };
|
|
11450
|
+
_cloneBuffer.exports;
|
|
11451
|
+
(function(module2, exports2) {
|
|
11452
|
+
var root2 = _root;
|
|
11453
|
+
var freeExports = exports2 && !exports2.nodeType && exports2;
|
|
11454
|
+
var freeModule = freeExports && true && module2 && !module2.nodeType && module2;
|
|
11455
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
11456
|
+
var Buffer = moduleExports ? root2.Buffer : void 0, allocUnsafe = Buffer ? Buffer.allocUnsafe : void 0;
|
|
11457
|
+
function cloneBuffer2(buffer, isDeep) {
|
|
11458
|
+
if (isDeep) {
|
|
11459
|
+
return buffer.slice();
|
|
11460
|
+
}
|
|
11461
|
+
var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
11462
|
+
buffer.copy(result);
|
|
11463
|
+
return result;
|
|
11464
|
+
}
|
|
11465
|
+
module2.exports = cloneBuffer2;
|
|
11466
|
+
})(_cloneBuffer, _cloneBuffer.exports);
|
|
11467
|
+
var _cloneBufferExports = _cloneBuffer.exports;
|
|
11468
|
+
function copyArray$1(source, array) {
|
|
11469
|
+
var index2 = -1, length = source.length;
|
|
11470
|
+
array || (array = Array(length));
|
|
11471
|
+
while (++index2 < length) {
|
|
11472
|
+
array[index2] = source[index2];
|
|
11473
|
+
}
|
|
11474
|
+
return array;
|
|
11475
|
+
}
|
|
11476
|
+
var _copyArray = copyArray$1;
|
|
11477
|
+
function arrayFilter$1(array, predicate) {
|
|
11478
|
+
var index2 = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
|
11479
|
+
while (++index2 < length) {
|
|
11480
|
+
var value = array[index2];
|
|
11481
|
+
if (predicate(value, index2, array)) {
|
|
11482
|
+
result[resIndex++] = value;
|
|
11483
|
+
}
|
|
11484
|
+
}
|
|
11485
|
+
return result;
|
|
11486
|
+
}
|
|
11487
|
+
var _arrayFilter = arrayFilter$1;
|
|
11488
|
+
function stubArray$2() {
|
|
11489
|
+
return [];
|
|
11490
|
+
}
|
|
11491
|
+
var stubArray_1 = stubArray$2;
|
|
11492
|
+
var arrayFilter = _arrayFilter, stubArray$1 = stubArray_1;
|
|
11493
|
+
var objectProto$1 = Object.prototype;
|
|
11494
|
+
var propertyIsEnumerable = objectProto$1.propertyIsEnumerable;
|
|
11495
|
+
var nativeGetSymbols$1 = Object.getOwnPropertySymbols;
|
|
11496
|
+
var getSymbols$3 = !nativeGetSymbols$1 ? stubArray$1 : function(object) {
|
|
11497
|
+
if (object == null) {
|
|
11498
|
+
return [];
|
|
11499
|
+
}
|
|
11500
|
+
object = Object(object);
|
|
11501
|
+
return arrayFilter(nativeGetSymbols$1(object), function(symbol) {
|
|
11502
|
+
return propertyIsEnumerable.call(object, symbol);
|
|
11503
|
+
});
|
|
11504
|
+
};
|
|
11505
|
+
var _getSymbols = getSymbols$3;
|
|
11506
|
+
var copyObject$1 = _copyObject, getSymbols$2 = _getSymbols;
|
|
11507
|
+
function copySymbols$1(source, object) {
|
|
11508
|
+
return copyObject$1(source, getSymbols$2(source), object);
|
|
11509
|
+
}
|
|
11510
|
+
var _copySymbols = copySymbols$1;
|
|
11511
|
+
function arrayPush$2(array, values) {
|
|
11512
|
+
var index2 = -1, length = values.length, offset = array.length;
|
|
11513
|
+
while (++index2 < length) {
|
|
11514
|
+
array[offset + index2] = values[index2];
|
|
11515
|
+
}
|
|
11516
|
+
return array;
|
|
11517
|
+
}
|
|
11518
|
+
var _arrayPush = arrayPush$2;
|
|
11519
|
+
var overArg = _overArg;
|
|
11520
|
+
var getPrototype$2 = overArg(Object.getPrototypeOf, Object);
|
|
11521
|
+
var _getPrototype = getPrototype$2;
|
|
11522
|
+
var arrayPush$1 = _arrayPush, getPrototype$1 = _getPrototype, getSymbols$1 = _getSymbols, stubArray = stubArray_1;
|
|
11523
|
+
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
11524
|
+
var getSymbolsIn$2 = !nativeGetSymbols ? stubArray : function(object) {
|
|
11525
|
+
var result = [];
|
|
11526
|
+
while (object) {
|
|
11527
|
+
arrayPush$1(result, getSymbols$1(object));
|
|
11528
|
+
object = getPrototype$1(object);
|
|
11529
|
+
}
|
|
11530
|
+
return result;
|
|
11531
|
+
};
|
|
11532
|
+
var _getSymbolsIn = getSymbolsIn$2;
|
|
11533
|
+
var copyObject = _copyObject, getSymbolsIn$1 = _getSymbolsIn;
|
|
11534
|
+
function copySymbolsIn$1(source, object) {
|
|
11535
|
+
return copyObject(source, getSymbolsIn$1(source), object);
|
|
11536
|
+
}
|
|
11537
|
+
var _copySymbolsIn = copySymbolsIn$1;
|
|
11538
|
+
var arrayPush = _arrayPush, isArray$1 = isArray_1;
|
|
11539
|
+
function baseGetAllKeys$2(object, keysFunc, symbolsFunc) {
|
|
11540
|
+
var result = keysFunc(object);
|
|
11541
|
+
return isArray$1(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
11542
|
+
}
|
|
11543
|
+
var _baseGetAllKeys = baseGetAllKeys$2;
|
|
11544
|
+
var baseGetAllKeys$1 = _baseGetAllKeys, getSymbols = _getSymbols, keys$1 = keys_1;
|
|
11545
|
+
function getAllKeys$1(object) {
|
|
11546
|
+
return baseGetAllKeys$1(object, keys$1, getSymbols);
|
|
11547
|
+
}
|
|
11548
|
+
var _getAllKeys = getAllKeys$1;
|
|
11549
|
+
var baseGetAllKeys = _baseGetAllKeys, getSymbolsIn = _getSymbolsIn, keysIn$1 = keysIn_1;
|
|
11550
|
+
function getAllKeysIn$1(object) {
|
|
11551
|
+
return baseGetAllKeys(object, keysIn$1, getSymbolsIn);
|
|
11552
|
+
}
|
|
11553
|
+
var _getAllKeysIn = getAllKeysIn$1;
|
|
11554
|
+
var getNative$3 = _getNative, root$4 = _root;
|
|
11555
|
+
var DataView$1 = getNative$3(root$4, "DataView");
|
|
11556
|
+
var _DataView = DataView$1;
|
|
11557
|
+
var getNative$2 = _getNative, root$3 = _root;
|
|
11558
|
+
var Promise$2 = getNative$2(root$3, "Promise");
|
|
11559
|
+
var _Promise = Promise$2;
|
|
11560
|
+
var getNative$1 = _getNative, root$2 = _root;
|
|
11561
|
+
var Set$1 = getNative$1(root$2, "Set");
|
|
11562
|
+
var _Set = Set$1;
|
|
11563
|
+
var getNative = _getNative, root$1 = _root;
|
|
11564
|
+
var WeakMap$1 = getNative(root$1, "WeakMap");
|
|
11565
|
+
var _WeakMap = WeakMap$1;
|
|
11566
|
+
var DataView = _DataView, Map = _Map, Promise$1 = _Promise, Set = _Set, WeakMap = _WeakMap, baseGetTag = _baseGetTag, toSource = _toSource;
|
|
11567
|
+
var mapTag$3 = "[object Map]", objectTag$1 = "[object Object]", promiseTag = "[object Promise]", setTag$3 = "[object Set]", weakMapTag$1 = "[object WeakMap]";
|
|
11568
|
+
var dataViewTag$2 = "[object DataView]";
|
|
11569
|
+
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
|
|
11570
|
+
var getTag$3 = baseGetTag;
|
|
11571
|
+
if (DataView && getTag$3(new DataView(new ArrayBuffer(1))) != dataViewTag$2 || Map && getTag$3(new Map()) != mapTag$3 || Promise$1 && getTag$3(Promise$1.resolve()) != promiseTag || Set && getTag$3(new Set()) != setTag$3 || WeakMap && getTag$3(new WeakMap()) != weakMapTag$1) {
|
|
11572
|
+
getTag$3 = function(value) {
|
|
11573
|
+
var result = baseGetTag(value), Ctor = result == objectTag$1 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
|
|
11574
|
+
if (ctorString) {
|
|
11575
|
+
switch (ctorString) {
|
|
11576
|
+
case dataViewCtorString:
|
|
11577
|
+
return dataViewTag$2;
|
|
11578
|
+
case mapCtorString:
|
|
11579
|
+
return mapTag$3;
|
|
11580
|
+
case promiseCtorString:
|
|
11581
|
+
return promiseTag;
|
|
11582
|
+
case setCtorString:
|
|
11583
|
+
return setTag$3;
|
|
11584
|
+
case weakMapCtorString:
|
|
11585
|
+
return weakMapTag$1;
|
|
11586
|
+
}
|
|
11587
|
+
}
|
|
11588
|
+
return result;
|
|
11589
|
+
};
|
|
11590
|
+
}
|
|
11591
|
+
var _getTag = getTag$3;
|
|
11592
|
+
var objectProto = Object.prototype;
|
|
11593
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
11594
|
+
function initCloneArray$1(array) {
|
|
11595
|
+
var length = array.length, result = new array.constructor(length);
|
|
11596
|
+
if (length && typeof array[0] == "string" && hasOwnProperty.call(array, "index")) {
|
|
11597
|
+
result.index = array.index;
|
|
11598
|
+
result.input = array.input;
|
|
11599
|
+
}
|
|
11600
|
+
return result;
|
|
11601
|
+
}
|
|
11602
|
+
var _initCloneArray = initCloneArray$1;
|
|
11603
|
+
var root = _root;
|
|
11604
|
+
var Uint8Array$1 = root.Uint8Array;
|
|
11605
|
+
var _Uint8Array = Uint8Array$1;
|
|
11606
|
+
var Uint8Array = _Uint8Array;
|
|
11607
|
+
function cloneArrayBuffer$3(arrayBuffer) {
|
|
11608
|
+
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
11609
|
+
new Uint8Array(result).set(new Uint8Array(arrayBuffer));
|
|
11610
|
+
return result;
|
|
11611
|
+
}
|
|
11612
|
+
var _cloneArrayBuffer = cloneArrayBuffer$3;
|
|
11613
|
+
var cloneArrayBuffer$2 = _cloneArrayBuffer;
|
|
11614
|
+
function cloneDataView$1(dataView, isDeep) {
|
|
11615
|
+
var buffer = isDeep ? cloneArrayBuffer$2(dataView.buffer) : dataView.buffer;
|
|
11616
|
+
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
|
11617
|
+
}
|
|
11618
|
+
var _cloneDataView = cloneDataView$1;
|
|
11619
|
+
var reFlags = /\w*$/;
|
|
11620
|
+
function cloneRegExp$1(regexp) {
|
|
11621
|
+
var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
|
|
11622
|
+
result.lastIndex = regexp.lastIndex;
|
|
11623
|
+
return result;
|
|
11624
|
+
}
|
|
11625
|
+
var _cloneRegExp = cloneRegExp$1;
|
|
11626
|
+
var Symbol$1 = _Symbol;
|
|
11627
|
+
var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
11628
|
+
function cloneSymbol$1(symbol) {
|
|
11629
|
+
return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
|
|
11630
|
+
}
|
|
11631
|
+
var _cloneSymbol = cloneSymbol$1;
|
|
11632
|
+
var cloneArrayBuffer$1 = _cloneArrayBuffer;
|
|
11633
|
+
function cloneTypedArray$1(typedArray, isDeep) {
|
|
11634
|
+
var buffer = isDeep ? cloneArrayBuffer$1(typedArray.buffer) : typedArray.buffer;
|
|
11635
|
+
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
11636
|
+
}
|
|
11637
|
+
var _cloneTypedArray = cloneTypedArray$1;
|
|
11638
|
+
var cloneArrayBuffer = _cloneArrayBuffer, cloneDataView = _cloneDataView, cloneRegExp = _cloneRegExp, cloneSymbol = _cloneSymbol, cloneTypedArray = _cloneTypedArray;
|
|
11639
|
+
var boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", mapTag$2 = "[object Map]", numberTag$1 = "[object Number]", regexpTag$1 = "[object RegExp]", setTag$2 = "[object Set]", stringTag$1 = "[object String]", symbolTag$1 = "[object Symbol]";
|
|
11640
|
+
var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$1 = "[object DataView]", float32Tag$1 = "[object Float32Array]", float64Tag$1 = "[object Float64Array]", int8Tag$1 = "[object Int8Array]", int16Tag$1 = "[object Int16Array]", int32Tag$1 = "[object Int32Array]", uint8Tag$1 = "[object Uint8Array]", uint8ClampedTag$1 = "[object Uint8ClampedArray]", uint16Tag$1 = "[object Uint16Array]", uint32Tag$1 = "[object Uint32Array]";
|
|
11641
|
+
function initCloneByTag$1(object, tag, isDeep) {
|
|
11642
|
+
var Ctor = object.constructor;
|
|
11643
|
+
switch (tag) {
|
|
11644
|
+
case arrayBufferTag$1:
|
|
11645
|
+
return cloneArrayBuffer(object);
|
|
11646
|
+
case boolTag$1:
|
|
11647
|
+
case dateTag$1:
|
|
11648
|
+
return new Ctor(+object);
|
|
11649
|
+
case dataViewTag$1:
|
|
11650
|
+
return cloneDataView(object, isDeep);
|
|
11651
|
+
case float32Tag$1:
|
|
11652
|
+
case float64Tag$1:
|
|
11653
|
+
case int8Tag$1:
|
|
11654
|
+
case int16Tag$1:
|
|
11655
|
+
case int32Tag$1:
|
|
11656
|
+
case uint8Tag$1:
|
|
11657
|
+
case uint8ClampedTag$1:
|
|
11658
|
+
case uint16Tag$1:
|
|
11659
|
+
case uint32Tag$1:
|
|
11660
|
+
return cloneTypedArray(object, isDeep);
|
|
11661
|
+
case mapTag$2:
|
|
11662
|
+
return new Ctor();
|
|
11663
|
+
case numberTag$1:
|
|
11664
|
+
case stringTag$1:
|
|
11665
|
+
return new Ctor(object);
|
|
11666
|
+
case regexpTag$1:
|
|
11667
|
+
return cloneRegExp(object);
|
|
11668
|
+
case setTag$2:
|
|
11669
|
+
return new Ctor();
|
|
11670
|
+
case symbolTag$1:
|
|
11671
|
+
return cloneSymbol(object);
|
|
11672
|
+
}
|
|
11673
|
+
}
|
|
11674
|
+
var _initCloneByTag = initCloneByTag$1;
|
|
11675
|
+
var isObject$1 = isObject_1;
|
|
11676
|
+
var objectCreate = Object.create;
|
|
11677
|
+
var baseCreate$1 = /* @__PURE__ */ function() {
|
|
11678
|
+
function object() {
|
|
11679
|
+
}
|
|
11680
|
+
return function(proto) {
|
|
11681
|
+
if (!isObject$1(proto)) {
|
|
11682
|
+
return {};
|
|
11683
|
+
}
|
|
11684
|
+
if (objectCreate) {
|
|
11685
|
+
return objectCreate(proto);
|
|
11686
|
+
}
|
|
11687
|
+
object.prototype = proto;
|
|
11688
|
+
var result = new object();
|
|
11689
|
+
object.prototype = void 0;
|
|
11690
|
+
return result;
|
|
11691
|
+
};
|
|
11692
|
+
}();
|
|
11693
|
+
var _baseCreate = baseCreate$1;
|
|
11694
|
+
var baseCreate = _baseCreate, getPrototype = _getPrototype, isPrototype = _isPrototype;
|
|
11695
|
+
function initCloneObject$1(object) {
|
|
11696
|
+
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
|
|
11697
|
+
}
|
|
11698
|
+
var _initCloneObject = initCloneObject$1;
|
|
11699
|
+
var getTag$2 = _getTag, isObjectLike$1 = isObjectLike_1;
|
|
11700
|
+
var mapTag$1 = "[object Map]";
|
|
11701
|
+
function baseIsMap$1(value) {
|
|
11702
|
+
return isObjectLike$1(value) && getTag$2(value) == mapTag$1;
|
|
11703
|
+
}
|
|
11704
|
+
var _baseIsMap = baseIsMap$1;
|
|
11705
|
+
var baseIsMap = _baseIsMap, baseUnary$1 = _baseUnary, nodeUtil$1 = _nodeUtilExports;
|
|
11706
|
+
var nodeIsMap = nodeUtil$1 && nodeUtil$1.isMap;
|
|
11707
|
+
var isMap$1 = nodeIsMap ? baseUnary$1(nodeIsMap) : baseIsMap;
|
|
11708
|
+
var isMap_1 = isMap$1;
|
|
11709
|
+
var getTag$1 = _getTag, isObjectLike = isObjectLike_1;
|
|
11710
|
+
var setTag$1 = "[object Set]";
|
|
11711
|
+
function baseIsSet$1(value) {
|
|
11712
|
+
return isObjectLike(value) && getTag$1(value) == setTag$1;
|
|
11713
|
+
}
|
|
11714
|
+
var _baseIsSet = baseIsSet$1;
|
|
11715
|
+
var baseIsSet = _baseIsSet, baseUnary = _baseUnary, nodeUtil = _nodeUtilExports;
|
|
11716
|
+
var nodeIsSet = nodeUtil && nodeUtil.isSet;
|
|
11717
|
+
var isSet$1 = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
11718
|
+
var isSet_1 = isSet$1;
|
|
11719
|
+
var Stack = _Stack, arrayEach = _arrayEach, assignValue = _assignValue, baseAssign = _baseAssign, baseAssignIn = _baseAssignIn, cloneBuffer = _cloneBufferExports, copyArray = _copyArray, copySymbols = _copySymbols, copySymbolsIn = _copySymbolsIn, getAllKeys = _getAllKeys, getAllKeysIn = _getAllKeysIn, getTag = _getTag, initCloneArray = _initCloneArray, initCloneByTag = _initCloneByTag, initCloneObject = _initCloneObject, isArray = isArray_1, isBuffer = isBufferExports, isMap = isMap_1, isObject = isObject_1, isSet = isSet_1, keys = keys_1, keysIn = keysIn_1;
|
|
11720
|
+
var CLONE_DEEP_FLAG$1 = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG$1 = 4;
|
|
11721
|
+
var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag = "[object Object]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", weakMapTag = "[object WeakMap]";
|
|
11722
|
+
var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
|
|
11723
|
+
var cloneableTags = {};
|
|
11724
|
+
cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
|
11725
|
+
cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
|
|
11726
|
+
function baseClone$1(value, bitmask, customizer, key, object, stack) {
|
|
11727
|
+
var result, isDeep = bitmask & CLONE_DEEP_FLAG$1, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
|
|
11728
|
+
if (customizer) {
|
|
11729
|
+
result = object ? customizer(value, key, object, stack) : customizer(value);
|
|
11730
|
+
}
|
|
11731
|
+
if (result !== void 0) {
|
|
11732
|
+
return result;
|
|
11733
|
+
}
|
|
11734
|
+
if (!isObject(value)) {
|
|
11735
|
+
return value;
|
|
11736
|
+
}
|
|
11737
|
+
var isArr = isArray(value);
|
|
11738
|
+
if (isArr) {
|
|
11739
|
+
result = initCloneArray(value);
|
|
11740
|
+
if (!isDeep) {
|
|
11741
|
+
return copyArray(value, result);
|
|
11742
|
+
}
|
|
11743
|
+
} else {
|
|
11744
|
+
var tag = getTag(value), isFunc = tag == funcTag || tag == genTag;
|
|
11745
|
+
if (isBuffer(value)) {
|
|
11746
|
+
return cloneBuffer(value, isDeep);
|
|
11747
|
+
}
|
|
11748
|
+
if (tag == objectTag || tag == argsTag || isFunc && !object) {
|
|
11749
|
+
result = isFlat || isFunc ? {} : initCloneObject(value);
|
|
11750
|
+
if (!isDeep) {
|
|
11751
|
+
return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value));
|
|
11752
|
+
}
|
|
11753
|
+
} else {
|
|
11754
|
+
if (!cloneableTags[tag]) {
|
|
11755
|
+
return object ? value : {};
|
|
11756
|
+
}
|
|
11757
|
+
result = initCloneByTag(value, tag, isDeep);
|
|
11758
|
+
}
|
|
11759
|
+
}
|
|
11760
|
+
stack || (stack = new Stack());
|
|
11761
|
+
var stacked = stack.get(value);
|
|
11762
|
+
if (stacked) {
|
|
11763
|
+
return stacked;
|
|
11764
|
+
}
|
|
11765
|
+
stack.set(value, result);
|
|
11766
|
+
if (isSet(value)) {
|
|
11767
|
+
value.forEach(function(subValue) {
|
|
11768
|
+
result.add(baseClone$1(subValue, bitmask, customizer, subValue, value, stack));
|
|
11769
|
+
});
|
|
11770
|
+
} else if (isMap(value)) {
|
|
11771
|
+
value.forEach(function(subValue, key2) {
|
|
11772
|
+
result.set(key2, baseClone$1(subValue, bitmask, customizer, key2, value, stack));
|
|
11773
|
+
});
|
|
11774
|
+
}
|
|
11775
|
+
var keysFunc = isFull ? isFlat ? getAllKeysIn : getAllKeys : isFlat ? keysIn : keys;
|
|
11776
|
+
var props = isArr ? void 0 : keysFunc(value);
|
|
11777
|
+
arrayEach(props || value, function(subValue, key2) {
|
|
11778
|
+
if (props) {
|
|
11779
|
+
key2 = subValue;
|
|
11780
|
+
subValue = value[key2];
|
|
11781
|
+
}
|
|
11782
|
+
assignValue(result, key2, baseClone$1(subValue, bitmask, customizer, key2, value, stack));
|
|
11783
|
+
});
|
|
11784
|
+
return result;
|
|
11785
|
+
}
|
|
11786
|
+
var _baseClone = baseClone$1;
|
|
11787
|
+
var baseClone = _baseClone;
|
|
11788
|
+
var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
|
11789
|
+
function cloneDeep(value) {
|
|
11790
|
+
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
|
11791
|
+
}
|
|
11792
|
+
var cloneDeep_1 = cloneDeep;
|
|
11793
|
+
const cloneDeep$1 = /* @__PURE__ */ getDefaultExportFromCjs(cloneDeep_1);
|
|
10800
11794
|
const Navigation = () => {
|
|
10801
11795
|
const [navigations, setNavigations] = React.useState([]);
|
|
10802
11796
|
const [modalType, setModalType] = React.useState("");
|
|
10803
11797
|
const [selectedNavigation, setSelectedNavigation] = React.useState();
|
|
10804
11798
|
const [navigationItems, setNavigationItems] = React.useState();
|
|
10805
|
-
const
|
|
11799
|
+
const initialNavigationItemsRef = React.useRef(null);
|
|
10806
11800
|
const [actionItem, setActionItem] = React.useState();
|
|
10807
11801
|
const [parentId, setParentId] = React.useState();
|
|
10808
11802
|
const { getNavigation, updateNavigationItemStructure } = index.useApi();
|
|
10809
11803
|
const [isSavingNavigation, setIsSavingNavigation] = React.useState(false);
|
|
10810
|
-
const [loading, setLoading] = React.useState(
|
|
11804
|
+
const [loading, setLoading] = React.useState(true);
|
|
10811
11805
|
const [projected, setProjected] = React.useState(null);
|
|
10812
11806
|
const [activeItem, setActiveItem] = React.useState();
|
|
10813
11807
|
const [activeId, setActiveId] = React.useState(null);
|
|
@@ -10816,6 +11810,8 @@ const Navigation = () => {
|
|
|
10816
11810
|
const { formatMessage } = reactIntl.useIntl();
|
|
10817
11811
|
const { toggleNotification } = admin.useNotification();
|
|
10818
11812
|
const { get } = admin.useFetchClient();
|
|
11813
|
+
const { navigationId } = reactRouterDom.useParams();
|
|
11814
|
+
const navigate = reactRouterDom.useNavigate();
|
|
10819
11815
|
async function loadNavigations() {
|
|
10820
11816
|
try {
|
|
10821
11817
|
const data = await getNavigation({ variant: "flat" });
|
|
@@ -10838,8 +11834,22 @@ const Navigation = () => {
|
|
|
10838
11834
|
return { ...nav, items: updatedItems };
|
|
10839
11835
|
})
|
|
10840
11836
|
);
|
|
11837
|
+
let selectedNav = updatedNavigations.find((nav) => nav.documentId === navigationId);
|
|
11838
|
+
if (!selectedNav && navigationId) {
|
|
11839
|
+
selectedNav = updatedNavigations[0];
|
|
11840
|
+
toggleNotification({
|
|
11841
|
+
type: "danger",
|
|
11842
|
+
message: formatMessage({
|
|
11843
|
+
id: index.getTranslation("notification.navigation.notFound"),
|
|
11844
|
+
defaultMessage: "Navigation not found. Redirected to navigation"
|
|
11845
|
+
}) + ": " + updatedNavigations[0]?.name
|
|
11846
|
+
});
|
|
11847
|
+
navigate(`/plugins/webatlas/navigation/${updatedNavigations[0]?.documentId}`);
|
|
11848
|
+
}
|
|
10841
11849
|
setNavigations(updatedNavigations);
|
|
10842
|
-
setSelectedNavigation(
|
|
11850
|
+
setSelectedNavigation(selectedNav);
|
|
11851
|
+
setNavigationItems(selectedNav?.items || []);
|
|
11852
|
+
initialNavigationItemsRef.current = cloneDeep$1(selectedNav?.items) || null;
|
|
10843
11853
|
} catch (error) {
|
|
10844
11854
|
console.error("Error fetching navigations: ", error);
|
|
10845
11855
|
toggleNotification({
|
|
@@ -10853,26 +11863,23 @@ const Navigation = () => {
|
|
|
10853
11863
|
}
|
|
10854
11864
|
React.useEffect(() => {
|
|
10855
11865
|
async function fetchNavigations() {
|
|
10856
|
-
|
|
10857
|
-
|
|
10858
|
-
|
|
11866
|
+
if (!navigationId) {
|
|
11867
|
+
const navigations2 = await getNavigation({ documentId: navigationId, variant: "namesOnly" });
|
|
11868
|
+
navigations2 && navigate(`/plugins/webatlas/navigation/${navigations2[0]?.documentId}`);
|
|
11869
|
+
} else {
|
|
11870
|
+
setLoading(true);
|
|
11871
|
+
await loadNavigations();
|
|
11872
|
+
setLoading(false);
|
|
11873
|
+
}
|
|
10859
11874
|
}
|
|
10860
11875
|
fetchNavigations();
|
|
10861
|
-
}, []);
|
|
11876
|
+
}, [navigationId]);
|
|
10862
11877
|
React.useEffect(() => {
|
|
10863
11878
|
if (modalType === "NavOverview" || modalType === "") {
|
|
10864
11879
|
setActionItem(void 0);
|
|
10865
11880
|
setParentId(void 0);
|
|
10866
11881
|
}
|
|
10867
11882
|
}, [modalType]);
|
|
10868
|
-
React.useEffect(() => {
|
|
10869
|
-
setNavigationItems(selectedNavigation?.items || []);
|
|
10870
|
-
}, [selectedNavigation]);
|
|
10871
|
-
React.useEffect(() => {
|
|
10872
|
-
if (selectedNavigation?.items && !initialNavigationItems) {
|
|
10873
|
-
setInitialNavigationItems(navigationItems);
|
|
10874
|
-
}
|
|
10875
|
-
}, [navigationItems]);
|
|
10876
11883
|
React.useEffect(() => {
|
|
10877
11884
|
if (!activeId || !navigationItems) return;
|
|
10878
11885
|
const item = navigationItems.find(({ id }) => id === activeId);
|
|
@@ -10964,7 +11971,7 @@ const Navigation = () => {
|
|
|
10964
11971
|
) : null;
|
|
10965
11972
|
setProjected(projection);
|
|
10966
11973
|
}, [activeId, overId, offsetLeft, navigationItems]);
|
|
10967
|
-
if (loading) {
|
|
11974
|
+
if (loading || !navigationId) {
|
|
10968
11975
|
return /* @__PURE__ */ jsxRuntime.jsx(PageWrapper, { navigations, loading, children: /* @__PURE__ */ jsxRuntime.jsx(FullLoader.FullLoader, {}) });
|
|
10969
11976
|
}
|
|
10970
11977
|
return /* @__PURE__ */ jsxRuntime.jsx(ModalContext.Provider, { value: { modalType, setModalType }, children: /* @__PURE__ */ jsxRuntime.jsxs(SelectedNavigationContext.Provider, { value: { selectedNavigation, setSelectedNavigation }, children: [
|
|
@@ -10980,6 +11987,7 @@ const Navigation = () => {
|
|
|
10980
11987
|
onClick: () => saveNavigation(),
|
|
10981
11988
|
loading: isSavingNavigation,
|
|
10982
11989
|
variant: "primary",
|
|
11990
|
+
disabled: JSON.stringify(navigationItems) === JSON.stringify(initialNavigationItemsRef.current),
|
|
10983
11991
|
children: formatMessage({
|
|
10984
11992
|
id: index.getTranslation("save"),
|
|
10985
11993
|
defaultMessage: "Save"
|
|
@@ -11033,7 +12041,7 @@ const Navigation = () => {
|
|
|
11033
12041
|
defaultMessage: "Create new navigation"
|
|
11034
12042
|
}) })
|
|
11035
12043
|
] }),
|
|
11036
|
-
navigationItems?.length === 0 && /* @__PURE__ */ jsxRuntime.jsxs(FullLoader.Center, { height: 400, children: [
|
|
12044
|
+
navigations && navigationItems?.length === 0 && /* @__PURE__ */ jsxRuntime.jsxs(FullLoader.Center, { height: 400, children: [
|
|
11037
12045
|
/* @__PURE__ */ jsxRuntime.jsx(EmptyBox.EmptyBox, { msg: "Your navigation is empty..." }),
|
|
11038
12046
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { variant: "primary", onClick: () => setModalType("ItemCreate"), children: formatMessage({
|
|
11039
12047
|
id: index.getTranslation("navigation.page.createNewItem"),
|
|
@@ -11145,4 +12153,10 @@ const Navigation = () => {
|
|
|
11145
12153
|
)
|
|
11146
12154
|
] }) });
|
|
11147
12155
|
};
|
|
11148
|
-
|
|
12156
|
+
const App = () => {
|
|
12157
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(reactRouterDom.Routes, { children: [
|
|
12158
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Route, { path: "/", element: /* @__PURE__ */ jsxRuntime.jsx(Navigation, {}) }),
|
|
12159
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Route, { path: "/:navigationId", element: /* @__PURE__ */ jsxRuntime.jsx(Navigation, {}) })
|
|
12160
|
+
] });
|
|
12161
|
+
};
|
|
12162
|
+
exports.default = App;
|