@telicent-oss/ds 0.24.0 → 0.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ds.js +743 -46
- package/dist/ds.umd.cjs +743 -46
- package/dist/logout-syncer/sw.js +1 -1
- package/dist/src/component-library/Map/FeatureMap.d.ts +2 -1
- package/dist/src/component-library/Map/FeatureMap.stories.d.ts +2 -2
- package/dist/src/export.d.ts +1 -1
- package/dist/src/v1/components/utils/ErrorFallback/ErrorFallback.d.ts +6 -0
- package/dist/src/v1/components/utils/ErrorFallback/ErrorFallback.stories.d.ts +26 -0
- package/dist/src/v1/components/utils/ErrorFallback/ErrorFallbackText.d.ts +7 -0
- package/dist/src/v1/components/utils/ErrorFallback/ErrorFallbackText.stories.d.ts +47 -0
- package/dist/src/v1/components/utils/ErrorFallback/ErrorFallbackWrapper.d.ts +9 -0
- package/dist/src/v1/components/utils/ErrorFallback/ErrorFallbackWrapper.stories.d.ts +65 -0
- package/dist/src/v1/components/utils/ErrorFallback/index.d.ts +3 -0
- package/dist/src/v1/components/utils/index.d.ts +1 -0
- package/dist/src/v1/theme/colors/palette/createDarkPalette.d.ts +5 -0
- package/dist/src/v1/theme/colors/palette/createLightPalette.d.ts +5 -0
- package/dist/src/v1/theme/colors/theme-colors.d.ts +14 -63
- package/dist/src/v1/theme/createTheme.d.ts +8 -0
- package/dist/src/v1/theme/createTheme.test.d.ts +1 -0
- package/package.json +5 -4
- package/dist/src/v1/theme/dark-palette.d.ts +0 -5
- package/dist/src/v1/theme/light-palette.d.ts +0 -5
- package/dist/src/v1/theme/theme.d.ts +0 -6
package/dist/ds.js
CHANGED
|
@@ -11119,9 +11119,9 @@ var newStyled = createStyled$3.bind(null);
|
|
|
11119
11119
|
tags.forEach(function(tagName) {
|
|
11120
11120
|
newStyled[tagName] = newStyled(tagName);
|
|
11121
11121
|
});
|
|
11122
|
-
let cache;
|
|
11122
|
+
let cache$1;
|
|
11123
11123
|
if (typeof document === "object") {
|
|
11124
|
-
cache = createCache({
|
|
11124
|
+
cache$1 = createCache({
|
|
11125
11125
|
key: "css",
|
|
11126
11126
|
prepend: true
|
|
11127
11127
|
});
|
|
@@ -11131,8 +11131,8 @@ function StyledEngineProvider(props) {
|
|
|
11131
11131
|
injectFirst,
|
|
11132
11132
|
children: children2
|
|
11133
11133
|
} = props;
|
|
11134
|
-
return injectFirst && cache ? /* @__PURE__ */ jsxRuntimeExports.jsx(CacheProvider, {
|
|
11135
|
-
value: cache,
|
|
11134
|
+
return injectFirst && cache$1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(CacheProvider, {
|
|
11135
|
+
value: cache$1,
|
|
11136
11136
|
children: children2
|
|
11137
11137
|
}) : children2;
|
|
11138
11138
|
}
|
|
@@ -11321,7 +11321,7 @@ const shape = {
|
|
|
11321
11321
|
borderRadius: 4
|
|
11322
11322
|
};
|
|
11323
11323
|
const responsivePropType = process.env.NODE_ENV !== "production" ? PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.object, PropTypes.array]) : {};
|
|
11324
|
-
function merge(acc, item) {
|
|
11324
|
+
function merge$1(acc, item) {
|
|
11325
11325
|
if (!item) {
|
|
11326
11326
|
return acc;
|
|
11327
11327
|
}
|
|
@@ -11633,7 +11633,7 @@ function resolveCssProperty(props, keys, prop, transformer) {
|
|
|
11633
11633
|
}
|
|
11634
11634
|
function style$1(props, keys) {
|
|
11635
11635
|
const transformer = createUnarySpacing(props.theme);
|
|
11636
|
-
return Object.keys(props).map((prop) => resolveCssProperty(props, keys, prop, transformer)).reduce(merge, {});
|
|
11636
|
+
return Object.keys(props).map((prop) => resolveCssProperty(props, keys, prop, transformer)).reduce(merge$1, {});
|
|
11637
11637
|
}
|
|
11638
11638
|
function margin(props) {
|
|
11639
11639
|
return style$1(props, marginKeys);
|
|
@@ -11687,7 +11687,7 @@ function compose(...styles2) {
|
|
|
11687
11687
|
const fn2 = (props) => {
|
|
11688
11688
|
return Object.keys(props).reduce((acc, prop) => {
|
|
11689
11689
|
if (handlers[prop]) {
|
|
11690
|
-
return merge(acc, handlers[prop](props));
|
|
11690
|
+
return merge$1(acc, handlers[prop](props));
|
|
11691
11691
|
}
|
|
11692
11692
|
return acc;
|
|
11693
11693
|
}, {});
|
|
@@ -12255,7 +12255,7 @@ function unstable_createStyleFunctionSx() {
|
|
|
12255
12255
|
if (value2 !== null && value2 !== void 0) {
|
|
12256
12256
|
if (typeof value2 === "object") {
|
|
12257
12257
|
if (config2[styleKey]) {
|
|
12258
|
-
css2 = merge(css2, getThemeValue(styleKey, value2, theme, config2));
|
|
12258
|
+
css2 = merge$1(css2, getThemeValue(styleKey, value2, theme, config2));
|
|
12259
12259
|
} else {
|
|
12260
12260
|
const breakpointsValues = handleBreakpoints({
|
|
12261
12261
|
theme
|
|
@@ -12268,11 +12268,11 @@ function unstable_createStyleFunctionSx() {
|
|
|
12268
12268
|
theme
|
|
12269
12269
|
});
|
|
12270
12270
|
} else {
|
|
12271
|
-
css2 = merge(css2, breakpointsValues);
|
|
12271
|
+
css2 = merge$1(css2, breakpointsValues);
|
|
12272
12272
|
}
|
|
12273
12273
|
}
|
|
12274
12274
|
} else {
|
|
12275
|
-
css2 = merge(css2, getThemeValue(styleKey, value2, theme, config2));
|
|
12275
|
+
css2 = merge$1(css2, getThemeValue(styleKey, value2, theme, config2));
|
|
12276
12276
|
}
|
|
12277
12277
|
}
|
|
12278
12278
|
});
|
|
@@ -60815,8 +60815,7 @@ const ADMIN_BLUE = {
|
|
|
60815
60815
|
500: main,
|
|
60816
60816
|
600: alpha$1(main, 0.7)
|
|
60817
60817
|
};
|
|
60818
|
-
const UIThemeSchema = z.enum(["
|
|
60819
|
-
const lightMain = common.white;
|
|
60818
|
+
const UIThemeSchema = z.enum(["DataNavy", "DocumentPink", "GraphOrange", "AdminBlue", "Blank"]);
|
|
60820
60819
|
const THEME_COLORS = {
|
|
60821
60820
|
DataNavy: {
|
|
60822
60821
|
...DATA_NAVY,
|
|
@@ -60825,19 +60824,6 @@ const THEME_COLORS = {
|
|
|
60825
60824
|
dark: DATA_NAVY[600],
|
|
60826
60825
|
contrastText: common.white
|
|
60827
60826
|
},
|
|
60828
|
-
light: {
|
|
60829
|
-
main: lightMain,
|
|
60830
|
-
light: alpha$1(lightMain, 0.5),
|
|
60831
|
-
dark: alpha$1(lightMain, 0.9),
|
|
60832
|
-
contrastText: common.black
|
|
60833
|
-
},
|
|
60834
|
-
dark: {
|
|
60835
|
-
main: lightMain,
|
|
60836
|
-
// TODO fix dark theme
|
|
60837
|
-
light: alpha$1(lightMain, 0.5),
|
|
60838
|
-
dark: alpha$1(lightMain, 0.9),
|
|
60839
|
-
contrastText: common.white
|
|
60840
|
-
},
|
|
60841
60827
|
DocumentPink: {
|
|
60842
60828
|
...DOCUMENT_PINK,
|
|
60843
60829
|
main: DOCUMENT_PINK[500],
|
|
@@ -60858,6 +60844,12 @@ const THEME_COLORS = {
|
|
|
60858
60844
|
light: ADMIN_BLUE[400],
|
|
60859
60845
|
dark: ADMIN_BLUE[600],
|
|
60860
60846
|
contrastText: common.black
|
|
60847
|
+
},
|
|
60848
|
+
Blank: {
|
|
60849
|
+
main: common.white,
|
|
60850
|
+
light: alpha$1(common.white, 0.5),
|
|
60851
|
+
dark: alpha$1(common.white, 0.9),
|
|
60852
|
+
contrastText: common.black
|
|
60861
60853
|
}
|
|
60862
60854
|
};
|
|
60863
60855
|
const AVATAR_OVERRIDES = {
|
|
@@ -60899,7 +60891,7 @@ const generateButtonOverrides = (uiTheme) => ({
|
|
|
60899
60891
|
border: `1px solid ${theme.palette.primary.main}`,
|
|
60900
60892
|
backgroundColor: theme.palette.secondary.main,
|
|
60901
60893
|
":hover": {
|
|
60902
|
-
backgroundColor: uiTheme === "
|
|
60894
|
+
backgroundColor: uiTheme === "Blank" ? "inherit" : `${THEME_COLORS[uiTheme][100]}`
|
|
60903
60895
|
}
|
|
60904
60896
|
}),
|
|
60905
60897
|
startIcon: {
|
|
@@ -60931,7 +60923,7 @@ const generateCardOverrides = (uiTheme) => ({
|
|
|
60931
60923
|
style: {
|
|
60932
60924
|
borderWidth: 1,
|
|
60933
60925
|
borderStyle: "solid",
|
|
60934
|
-
borderColor: uiTheme === "
|
|
60926
|
+
borderColor: uiTheme === "Blank" ? "inherit" : alpha$1(THEME_COLORS[uiTheme][200], 0.4)
|
|
60935
60927
|
}
|
|
60936
60928
|
}],
|
|
60937
60929
|
styleOverrides: {
|
|
@@ -61072,13 +61064,13 @@ const generateComponentOverrides = (uiTheme) => ({
|
|
|
61072
61064
|
...TYPOGRAPHY_FONT_FACES.MuiCssBaseline
|
|
61073
61065
|
}
|
|
61074
61066
|
});
|
|
61075
|
-
const createLightPalette = (
|
|
61067
|
+
const createLightPalette = (uiTheme) => ({
|
|
61076
61068
|
mode: "light",
|
|
61077
61069
|
primary: {
|
|
61078
|
-
main: THEME_COLORS[
|
|
61079
|
-
light: THEME_COLORS[
|
|
61080
|
-
dark: THEME_COLORS[
|
|
61081
|
-
contrastText: THEME_COLORS[
|
|
61070
|
+
main: THEME_COLORS[uiTheme].main,
|
|
61071
|
+
light: THEME_COLORS[uiTheme].light,
|
|
61072
|
+
dark: THEME_COLORS[uiTheme].dark,
|
|
61073
|
+
contrastText: THEME_COLORS[uiTheme].contrastText
|
|
61082
61074
|
},
|
|
61083
61075
|
secondary: {
|
|
61084
61076
|
main: "#F9F9F9"
|
|
@@ -61090,20 +61082,697 @@ const createLightPalette = (themeColor) => ({
|
|
|
61090
61082
|
default: "#F8F9F9"
|
|
61091
61083
|
}
|
|
61092
61084
|
});
|
|
61093
|
-
|
|
61085
|
+
var lodash_merge = { exports: {} };
|
|
61086
|
+
lodash_merge.exports;
|
|
61087
|
+
(function(module, exports) {
|
|
61088
|
+
var LARGE_ARRAY_SIZE = 200;
|
|
61089
|
+
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
61090
|
+
var HOT_COUNT = 800, HOT_SPAN = 16;
|
|
61091
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
61092
|
+
var argsTag = "[object Arguments]", arrayTag = "[object Array]", asyncTag = "[object AsyncFunction]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", nullTag = "[object Null]", objectTag = "[object Object]", proxyTag = "[object Proxy]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", undefinedTag = "[object Undefined]", weakMapTag = "[object WeakMap]";
|
|
61093
|
+
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]";
|
|
61094
|
+
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
61095
|
+
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
61096
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
61097
|
+
var typedArrayTags = {};
|
|
61098
|
+
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
|
|
61099
|
+
typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
|
|
61100
|
+
var freeGlobal = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
61101
|
+
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
61102
|
+
var root2 = freeGlobal || freeSelf || Function("return this")();
|
|
61103
|
+
var freeExports = exports && !exports.nodeType && exports;
|
|
61104
|
+
var freeModule = freeExports && true && module && !module.nodeType && module;
|
|
61105
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
61106
|
+
var freeProcess = moduleExports && freeGlobal.process;
|
|
61107
|
+
var nodeUtil = function() {
|
|
61108
|
+
try {
|
|
61109
|
+
var types = freeModule && freeModule.require && freeModule.require("util").types;
|
|
61110
|
+
if (types) {
|
|
61111
|
+
return types;
|
|
61112
|
+
}
|
|
61113
|
+
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
61114
|
+
} catch (e) {
|
|
61115
|
+
}
|
|
61116
|
+
}();
|
|
61117
|
+
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
61118
|
+
function apply(func, thisArg, args) {
|
|
61119
|
+
switch (args.length) {
|
|
61120
|
+
case 0:
|
|
61121
|
+
return func.call(thisArg);
|
|
61122
|
+
case 1:
|
|
61123
|
+
return func.call(thisArg, args[0]);
|
|
61124
|
+
case 2:
|
|
61125
|
+
return func.call(thisArg, args[0], args[1]);
|
|
61126
|
+
case 3:
|
|
61127
|
+
return func.call(thisArg, args[0], args[1], args[2]);
|
|
61128
|
+
}
|
|
61129
|
+
return func.apply(thisArg, args);
|
|
61130
|
+
}
|
|
61131
|
+
function baseTimes(n, iteratee) {
|
|
61132
|
+
var index = -1, result = Array(n);
|
|
61133
|
+
while (++index < n) {
|
|
61134
|
+
result[index] = iteratee(index);
|
|
61135
|
+
}
|
|
61136
|
+
return result;
|
|
61137
|
+
}
|
|
61138
|
+
function baseUnary(func) {
|
|
61139
|
+
return function(value2) {
|
|
61140
|
+
return func(value2);
|
|
61141
|
+
};
|
|
61142
|
+
}
|
|
61143
|
+
function getValue2(object, key) {
|
|
61144
|
+
return object == null ? void 0 : object[key];
|
|
61145
|
+
}
|
|
61146
|
+
function overArg(func, transform) {
|
|
61147
|
+
return function(arg) {
|
|
61148
|
+
return func(transform(arg));
|
|
61149
|
+
};
|
|
61150
|
+
}
|
|
61151
|
+
var arrayProto = Array.prototype, funcProto = Function.prototype, objectProto = Object.prototype;
|
|
61152
|
+
var coreJsData = root2["__core-js_shared__"];
|
|
61153
|
+
var funcToString = funcProto.toString;
|
|
61154
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
61155
|
+
var maskSrcKey = function() {
|
|
61156
|
+
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
61157
|
+
return uid ? "Symbol(src)_1." + uid : "";
|
|
61158
|
+
}();
|
|
61159
|
+
var nativeObjectToString = objectProto.toString;
|
|
61160
|
+
var objectCtorString = funcToString.call(Object);
|
|
61161
|
+
var reIsNative = RegExp(
|
|
61162
|
+
"^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
61163
|
+
);
|
|
61164
|
+
var Buffer2 = moduleExports ? root2.Buffer : void 0, Symbol2 = root2.Symbol, Uint8Array2 = root2.Uint8Array;
|
|
61165
|
+
Buffer2 ? Buffer2.allocUnsafe : void 0;
|
|
61166
|
+
var getPrototype = overArg(Object.getPrototypeOf, Object), objectCreate = Object.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0;
|
|
61167
|
+
var defineProperty = function() {
|
|
61168
|
+
try {
|
|
61169
|
+
var func = getNative(Object, "defineProperty");
|
|
61170
|
+
func({}, "", {});
|
|
61171
|
+
return func;
|
|
61172
|
+
} catch (e) {
|
|
61173
|
+
}
|
|
61174
|
+
}();
|
|
61175
|
+
var nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0, nativeMax = Math.max, nativeNow = Date.now;
|
|
61176
|
+
var Map2 = getNative(root2, "Map"), nativeCreate = getNative(Object, "create");
|
|
61177
|
+
var baseCreate = /* @__PURE__ */ function() {
|
|
61178
|
+
function object() {
|
|
61179
|
+
}
|
|
61180
|
+
return function(proto) {
|
|
61181
|
+
if (!isObject(proto)) {
|
|
61182
|
+
return {};
|
|
61183
|
+
}
|
|
61184
|
+
if (objectCreate) {
|
|
61185
|
+
return objectCreate(proto);
|
|
61186
|
+
}
|
|
61187
|
+
object.prototype = proto;
|
|
61188
|
+
var result = new object();
|
|
61189
|
+
object.prototype = void 0;
|
|
61190
|
+
return result;
|
|
61191
|
+
};
|
|
61192
|
+
}();
|
|
61193
|
+
function Hash(entries) {
|
|
61194
|
+
var index = -1, length2 = entries == null ? 0 : entries.length;
|
|
61195
|
+
this.clear();
|
|
61196
|
+
while (++index < length2) {
|
|
61197
|
+
var entry = entries[index];
|
|
61198
|
+
this.set(entry[0], entry[1]);
|
|
61199
|
+
}
|
|
61200
|
+
}
|
|
61201
|
+
function hashClear() {
|
|
61202
|
+
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
61203
|
+
this.size = 0;
|
|
61204
|
+
}
|
|
61205
|
+
function hashDelete(key) {
|
|
61206
|
+
var result = this.has(key) && delete this.__data__[key];
|
|
61207
|
+
this.size -= result ? 1 : 0;
|
|
61208
|
+
return result;
|
|
61209
|
+
}
|
|
61210
|
+
function hashGet(key) {
|
|
61211
|
+
var data = this.__data__;
|
|
61212
|
+
if (nativeCreate) {
|
|
61213
|
+
var result = data[key];
|
|
61214
|
+
return result === HASH_UNDEFINED ? void 0 : result;
|
|
61215
|
+
}
|
|
61216
|
+
return hasOwnProperty.call(data, key) ? data[key] : void 0;
|
|
61217
|
+
}
|
|
61218
|
+
function hashHas(key) {
|
|
61219
|
+
var data = this.__data__;
|
|
61220
|
+
return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key);
|
|
61221
|
+
}
|
|
61222
|
+
function hashSet(key, value2) {
|
|
61223
|
+
var data = this.__data__;
|
|
61224
|
+
this.size += this.has(key) ? 0 : 1;
|
|
61225
|
+
data[key] = nativeCreate && value2 === void 0 ? HASH_UNDEFINED : value2;
|
|
61226
|
+
return this;
|
|
61227
|
+
}
|
|
61228
|
+
Hash.prototype.clear = hashClear;
|
|
61229
|
+
Hash.prototype["delete"] = hashDelete;
|
|
61230
|
+
Hash.prototype.get = hashGet;
|
|
61231
|
+
Hash.prototype.has = hashHas;
|
|
61232
|
+
Hash.prototype.set = hashSet;
|
|
61233
|
+
function ListCache(entries) {
|
|
61234
|
+
var index = -1, length2 = entries == null ? 0 : entries.length;
|
|
61235
|
+
this.clear();
|
|
61236
|
+
while (++index < length2) {
|
|
61237
|
+
var entry = entries[index];
|
|
61238
|
+
this.set(entry[0], entry[1]);
|
|
61239
|
+
}
|
|
61240
|
+
}
|
|
61241
|
+
function listCacheClear() {
|
|
61242
|
+
this.__data__ = [];
|
|
61243
|
+
this.size = 0;
|
|
61244
|
+
}
|
|
61245
|
+
function listCacheDelete(key) {
|
|
61246
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
61247
|
+
if (index < 0) {
|
|
61248
|
+
return false;
|
|
61249
|
+
}
|
|
61250
|
+
var lastIndex = data.length - 1;
|
|
61251
|
+
if (index == lastIndex) {
|
|
61252
|
+
data.pop();
|
|
61253
|
+
} else {
|
|
61254
|
+
splice.call(data, index, 1);
|
|
61255
|
+
}
|
|
61256
|
+
--this.size;
|
|
61257
|
+
return true;
|
|
61258
|
+
}
|
|
61259
|
+
function listCacheGet(key) {
|
|
61260
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
61261
|
+
return index < 0 ? void 0 : data[index][1];
|
|
61262
|
+
}
|
|
61263
|
+
function listCacheHas(key) {
|
|
61264
|
+
return assocIndexOf(this.__data__, key) > -1;
|
|
61265
|
+
}
|
|
61266
|
+
function listCacheSet(key, value2) {
|
|
61267
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
61268
|
+
if (index < 0) {
|
|
61269
|
+
++this.size;
|
|
61270
|
+
data.push([key, value2]);
|
|
61271
|
+
} else {
|
|
61272
|
+
data[index][1] = value2;
|
|
61273
|
+
}
|
|
61274
|
+
return this;
|
|
61275
|
+
}
|
|
61276
|
+
ListCache.prototype.clear = listCacheClear;
|
|
61277
|
+
ListCache.prototype["delete"] = listCacheDelete;
|
|
61278
|
+
ListCache.prototype.get = listCacheGet;
|
|
61279
|
+
ListCache.prototype.has = listCacheHas;
|
|
61280
|
+
ListCache.prototype.set = listCacheSet;
|
|
61281
|
+
function MapCache(entries) {
|
|
61282
|
+
var index = -1, length2 = entries == null ? 0 : entries.length;
|
|
61283
|
+
this.clear();
|
|
61284
|
+
while (++index < length2) {
|
|
61285
|
+
var entry = entries[index];
|
|
61286
|
+
this.set(entry[0], entry[1]);
|
|
61287
|
+
}
|
|
61288
|
+
}
|
|
61289
|
+
function mapCacheClear() {
|
|
61290
|
+
this.size = 0;
|
|
61291
|
+
this.__data__ = {
|
|
61292
|
+
"hash": new Hash(),
|
|
61293
|
+
"map": new (Map2 || ListCache)(),
|
|
61294
|
+
"string": new Hash()
|
|
61295
|
+
};
|
|
61296
|
+
}
|
|
61297
|
+
function mapCacheDelete(key) {
|
|
61298
|
+
var result = getMapData(this, key)["delete"](key);
|
|
61299
|
+
this.size -= result ? 1 : 0;
|
|
61300
|
+
return result;
|
|
61301
|
+
}
|
|
61302
|
+
function mapCacheGet(key) {
|
|
61303
|
+
return getMapData(this, key).get(key);
|
|
61304
|
+
}
|
|
61305
|
+
function mapCacheHas(key) {
|
|
61306
|
+
return getMapData(this, key).has(key);
|
|
61307
|
+
}
|
|
61308
|
+
function mapCacheSet(key, value2) {
|
|
61309
|
+
var data = getMapData(this, key), size = data.size;
|
|
61310
|
+
data.set(key, value2);
|
|
61311
|
+
this.size += data.size == size ? 0 : 1;
|
|
61312
|
+
return this;
|
|
61313
|
+
}
|
|
61314
|
+
MapCache.prototype.clear = mapCacheClear;
|
|
61315
|
+
MapCache.prototype["delete"] = mapCacheDelete;
|
|
61316
|
+
MapCache.prototype.get = mapCacheGet;
|
|
61317
|
+
MapCache.prototype.has = mapCacheHas;
|
|
61318
|
+
MapCache.prototype.set = mapCacheSet;
|
|
61319
|
+
function Stack2(entries) {
|
|
61320
|
+
var data = this.__data__ = new ListCache(entries);
|
|
61321
|
+
this.size = data.size;
|
|
61322
|
+
}
|
|
61323
|
+
function stackClear() {
|
|
61324
|
+
this.__data__ = new ListCache();
|
|
61325
|
+
this.size = 0;
|
|
61326
|
+
}
|
|
61327
|
+
function stackDelete(key) {
|
|
61328
|
+
var data = this.__data__, result = data["delete"](key);
|
|
61329
|
+
this.size = data.size;
|
|
61330
|
+
return result;
|
|
61331
|
+
}
|
|
61332
|
+
function stackGet(key) {
|
|
61333
|
+
return this.__data__.get(key);
|
|
61334
|
+
}
|
|
61335
|
+
function stackHas(key) {
|
|
61336
|
+
return this.__data__.has(key);
|
|
61337
|
+
}
|
|
61338
|
+
function stackSet(key, value2) {
|
|
61339
|
+
var data = this.__data__;
|
|
61340
|
+
if (data instanceof ListCache) {
|
|
61341
|
+
var pairs = data.__data__;
|
|
61342
|
+
if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
61343
|
+
pairs.push([key, value2]);
|
|
61344
|
+
this.size = ++data.size;
|
|
61345
|
+
return this;
|
|
61346
|
+
}
|
|
61347
|
+
data = this.__data__ = new MapCache(pairs);
|
|
61348
|
+
}
|
|
61349
|
+
data.set(key, value2);
|
|
61350
|
+
this.size = data.size;
|
|
61351
|
+
return this;
|
|
61352
|
+
}
|
|
61353
|
+
Stack2.prototype.clear = stackClear;
|
|
61354
|
+
Stack2.prototype["delete"] = stackDelete;
|
|
61355
|
+
Stack2.prototype.get = stackGet;
|
|
61356
|
+
Stack2.prototype.has = stackHas;
|
|
61357
|
+
Stack2.prototype.set = stackSet;
|
|
61358
|
+
function arrayLikeKeys(value2, inherited) {
|
|
61359
|
+
var isArr = isArray(value2), isArg = !isArr && isArguments(value2), isBuff = !isArr && !isArg && isBuffer(value2), isType = !isArr && !isArg && !isBuff && isTypedArray(value2), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value2.length, String) : [], length2 = result.length;
|
|
61360
|
+
for (var key in value2) {
|
|
61361
|
+
if (!(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
61362
|
+
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
61363
|
+
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
61364
|
+
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
61365
|
+
isIndex(key, length2)))) {
|
|
61366
|
+
result.push(key);
|
|
61367
|
+
}
|
|
61368
|
+
}
|
|
61369
|
+
return result;
|
|
61370
|
+
}
|
|
61371
|
+
function assignMergeValue(object, key, value2) {
|
|
61372
|
+
if (value2 !== void 0 && !eq(object[key], value2) || value2 === void 0 && !(key in object)) {
|
|
61373
|
+
baseAssignValue(object, key, value2);
|
|
61374
|
+
}
|
|
61375
|
+
}
|
|
61376
|
+
function assignValue(object, key, value2) {
|
|
61377
|
+
var objValue = object[key];
|
|
61378
|
+
if (!(hasOwnProperty.call(object, key) && eq(objValue, value2)) || value2 === void 0 && !(key in object)) {
|
|
61379
|
+
baseAssignValue(object, key, value2);
|
|
61380
|
+
}
|
|
61381
|
+
}
|
|
61382
|
+
function assocIndexOf(array2, key) {
|
|
61383
|
+
var length2 = array2.length;
|
|
61384
|
+
while (length2--) {
|
|
61385
|
+
if (eq(array2[length2][0], key)) {
|
|
61386
|
+
return length2;
|
|
61387
|
+
}
|
|
61388
|
+
}
|
|
61389
|
+
return -1;
|
|
61390
|
+
}
|
|
61391
|
+
function baseAssignValue(object, key, value2) {
|
|
61392
|
+
if (key == "__proto__" && defineProperty) {
|
|
61393
|
+
defineProperty(object, key, {
|
|
61394
|
+
"configurable": true,
|
|
61395
|
+
"enumerable": true,
|
|
61396
|
+
"value": value2,
|
|
61397
|
+
"writable": true
|
|
61398
|
+
});
|
|
61399
|
+
} else {
|
|
61400
|
+
object[key] = value2;
|
|
61401
|
+
}
|
|
61402
|
+
}
|
|
61403
|
+
var baseFor = createBaseFor();
|
|
61404
|
+
function baseGetTag(value2) {
|
|
61405
|
+
if (value2 == null) {
|
|
61406
|
+
return value2 === void 0 ? undefinedTag : nullTag;
|
|
61407
|
+
}
|
|
61408
|
+
return symToStringTag && symToStringTag in Object(value2) ? getRawTag(value2) : objectToString(value2);
|
|
61409
|
+
}
|
|
61410
|
+
function baseIsArguments(value2) {
|
|
61411
|
+
return isObjectLike(value2) && baseGetTag(value2) == argsTag;
|
|
61412
|
+
}
|
|
61413
|
+
function baseIsNative(value2) {
|
|
61414
|
+
if (!isObject(value2) || isMasked(value2)) {
|
|
61415
|
+
return false;
|
|
61416
|
+
}
|
|
61417
|
+
var pattern = isFunction2(value2) ? reIsNative : reIsHostCtor;
|
|
61418
|
+
return pattern.test(toSource(value2));
|
|
61419
|
+
}
|
|
61420
|
+
function baseIsTypedArray(value2) {
|
|
61421
|
+
return isObjectLike(value2) && isLength(value2.length) && !!typedArrayTags[baseGetTag(value2)];
|
|
61422
|
+
}
|
|
61423
|
+
function baseKeysIn(object) {
|
|
61424
|
+
if (!isObject(object)) {
|
|
61425
|
+
return nativeKeysIn(object);
|
|
61426
|
+
}
|
|
61427
|
+
var isProto = isPrototype(object), result = [];
|
|
61428
|
+
for (var key in object) {
|
|
61429
|
+
if (!(key == "constructor" && (isProto || !hasOwnProperty.call(object, key)))) {
|
|
61430
|
+
result.push(key);
|
|
61431
|
+
}
|
|
61432
|
+
}
|
|
61433
|
+
return result;
|
|
61434
|
+
}
|
|
61435
|
+
function baseMerge(object, source, srcIndex, customizer, stack) {
|
|
61436
|
+
if (object === source) {
|
|
61437
|
+
return;
|
|
61438
|
+
}
|
|
61439
|
+
baseFor(source, function(srcValue, key) {
|
|
61440
|
+
stack || (stack = new Stack2());
|
|
61441
|
+
if (isObject(srcValue)) {
|
|
61442
|
+
baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
|
|
61443
|
+
} else {
|
|
61444
|
+
var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : void 0;
|
|
61445
|
+
if (newValue === void 0) {
|
|
61446
|
+
newValue = srcValue;
|
|
61447
|
+
}
|
|
61448
|
+
assignMergeValue(object, key, newValue);
|
|
61449
|
+
}
|
|
61450
|
+
}, keysIn);
|
|
61451
|
+
}
|
|
61452
|
+
function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
|
|
61453
|
+
var objValue = safeGet(object, key), srcValue = safeGet(source, key), stacked = stack.get(srcValue);
|
|
61454
|
+
if (stacked) {
|
|
61455
|
+
assignMergeValue(object, key, stacked);
|
|
61456
|
+
return;
|
|
61457
|
+
}
|
|
61458
|
+
var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : void 0;
|
|
61459
|
+
var isCommon = newValue === void 0;
|
|
61460
|
+
if (isCommon) {
|
|
61461
|
+
var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue);
|
|
61462
|
+
newValue = srcValue;
|
|
61463
|
+
if (isArr || isBuff || isTyped) {
|
|
61464
|
+
if (isArray(objValue)) {
|
|
61465
|
+
newValue = objValue;
|
|
61466
|
+
} else if (isArrayLikeObject(objValue)) {
|
|
61467
|
+
newValue = copyArray(objValue);
|
|
61468
|
+
} else if (isBuff) {
|
|
61469
|
+
isCommon = false;
|
|
61470
|
+
newValue = cloneBuffer(srcValue);
|
|
61471
|
+
} else if (isTyped) {
|
|
61472
|
+
isCommon = false;
|
|
61473
|
+
newValue = cloneTypedArray(srcValue);
|
|
61474
|
+
} else {
|
|
61475
|
+
newValue = [];
|
|
61476
|
+
}
|
|
61477
|
+
} else if (isPlainObject2(srcValue) || isArguments(srcValue)) {
|
|
61478
|
+
newValue = objValue;
|
|
61479
|
+
if (isArguments(objValue)) {
|
|
61480
|
+
newValue = toPlainObject(objValue);
|
|
61481
|
+
} else if (!isObject(objValue) || isFunction2(objValue)) {
|
|
61482
|
+
newValue = initCloneObject(srcValue);
|
|
61483
|
+
}
|
|
61484
|
+
} else {
|
|
61485
|
+
isCommon = false;
|
|
61486
|
+
}
|
|
61487
|
+
}
|
|
61488
|
+
if (isCommon) {
|
|
61489
|
+
stack.set(srcValue, newValue);
|
|
61490
|
+
mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
|
|
61491
|
+
stack["delete"](srcValue);
|
|
61492
|
+
}
|
|
61493
|
+
assignMergeValue(object, key, newValue);
|
|
61494
|
+
}
|
|
61495
|
+
function baseRest(func, start2) {
|
|
61496
|
+
return setToString(overRest(func, start2, identity2), func + "");
|
|
61497
|
+
}
|
|
61498
|
+
var baseSetToString = !defineProperty ? identity2 : function(func, string) {
|
|
61499
|
+
return defineProperty(func, "toString", {
|
|
61500
|
+
"configurable": true,
|
|
61501
|
+
"enumerable": false,
|
|
61502
|
+
"value": constant2(string),
|
|
61503
|
+
"writable": true
|
|
61504
|
+
});
|
|
61505
|
+
};
|
|
61506
|
+
function cloneBuffer(buffer, isDeep) {
|
|
61507
|
+
{
|
|
61508
|
+
return buffer.slice();
|
|
61509
|
+
}
|
|
61510
|
+
}
|
|
61511
|
+
function cloneArrayBuffer(arrayBuffer) {
|
|
61512
|
+
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
61513
|
+
new Uint8Array2(result).set(new Uint8Array2(arrayBuffer));
|
|
61514
|
+
return result;
|
|
61515
|
+
}
|
|
61516
|
+
function cloneTypedArray(typedArray, isDeep) {
|
|
61517
|
+
var buffer = cloneArrayBuffer(typedArray.buffer);
|
|
61518
|
+
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
61519
|
+
}
|
|
61520
|
+
function copyArray(source, array2) {
|
|
61521
|
+
var index = -1, length2 = source.length;
|
|
61522
|
+
array2 || (array2 = Array(length2));
|
|
61523
|
+
while (++index < length2) {
|
|
61524
|
+
array2[index] = source[index];
|
|
61525
|
+
}
|
|
61526
|
+
return array2;
|
|
61527
|
+
}
|
|
61528
|
+
function copyObject(source, props, object, customizer) {
|
|
61529
|
+
var isNew = !object;
|
|
61530
|
+
object || (object = {});
|
|
61531
|
+
var index = -1, length2 = props.length;
|
|
61532
|
+
while (++index < length2) {
|
|
61533
|
+
var key = props[index];
|
|
61534
|
+
var newValue = void 0;
|
|
61535
|
+
if (newValue === void 0) {
|
|
61536
|
+
newValue = source[key];
|
|
61537
|
+
}
|
|
61538
|
+
if (isNew) {
|
|
61539
|
+
baseAssignValue(object, key, newValue);
|
|
61540
|
+
} else {
|
|
61541
|
+
assignValue(object, key, newValue);
|
|
61542
|
+
}
|
|
61543
|
+
}
|
|
61544
|
+
return object;
|
|
61545
|
+
}
|
|
61546
|
+
function createAssigner(assigner) {
|
|
61547
|
+
return baseRest(function(object, sources) {
|
|
61548
|
+
var index = -1, length2 = sources.length, customizer = length2 > 1 ? sources[length2 - 1] : void 0, guard = length2 > 2 ? sources[2] : void 0;
|
|
61549
|
+
customizer = assigner.length > 3 && typeof customizer == "function" ? (length2--, customizer) : void 0;
|
|
61550
|
+
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
|
61551
|
+
customizer = length2 < 3 ? void 0 : customizer;
|
|
61552
|
+
length2 = 1;
|
|
61553
|
+
}
|
|
61554
|
+
object = Object(object);
|
|
61555
|
+
while (++index < length2) {
|
|
61556
|
+
var source = sources[index];
|
|
61557
|
+
if (source) {
|
|
61558
|
+
assigner(object, source, index, customizer);
|
|
61559
|
+
}
|
|
61560
|
+
}
|
|
61561
|
+
return object;
|
|
61562
|
+
});
|
|
61563
|
+
}
|
|
61564
|
+
function createBaseFor(fromRight) {
|
|
61565
|
+
return function(object, iteratee, keysFunc) {
|
|
61566
|
+
var index = -1, iterable = Object(object), props = keysFunc(object), length2 = props.length;
|
|
61567
|
+
while (length2--) {
|
|
61568
|
+
var key = props[++index];
|
|
61569
|
+
if (iteratee(iterable[key], key, iterable) === false) {
|
|
61570
|
+
break;
|
|
61571
|
+
}
|
|
61572
|
+
}
|
|
61573
|
+
return object;
|
|
61574
|
+
};
|
|
61575
|
+
}
|
|
61576
|
+
function getMapData(map, key) {
|
|
61577
|
+
var data = map.__data__;
|
|
61578
|
+
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
61579
|
+
}
|
|
61580
|
+
function getNative(object, key) {
|
|
61581
|
+
var value2 = getValue2(object, key);
|
|
61582
|
+
return baseIsNative(value2) ? value2 : void 0;
|
|
61583
|
+
}
|
|
61584
|
+
function getRawTag(value2) {
|
|
61585
|
+
var isOwn = hasOwnProperty.call(value2, symToStringTag), tag = value2[symToStringTag];
|
|
61586
|
+
try {
|
|
61587
|
+
value2[symToStringTag] = void 0;
|
|
61588
|
+
var unmasked = true;
|
|
61589
|
+
} catch (e) {
|
|
61590
|
+
}
|
|
61591
|
+
var result = nativeObjectToString.call(value2);
|
|
61592
|
+
if (unmasked) {
|
|
61593
|
+
if (isOwn) {
|
|
61594
|
+
value2[symToStringTag] = tag;
|
|
61595
|
+
} else {
|
|
61596
|
+
delete value2[symToStringTag];
|
|
61597
|
+
}
|
|
61598
|
+
}
|
|
61599
|
+
return result;
|
|
61600
|
+
}
|
|
61601
|
+
function initCloneObject(object) {
|
|
61602
|
+
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
|
|
61603
|
+
}
|
|
61604
|
+
function isIndex(value2, length2) {
|
|
61605
|
+
var type = typeof value2;
|
|
61606
|
+
length2 = length2 == null ? MAX_SAFE_INTEGER : length2;
|
|
61607
|
+
return !!length2 && (type == "number" || type != "symbol" && reIsUint.test(value2)) && (value2 > -1 && value2 % 1 == 0 && value2 < length2);
|
|
61608
|
+
}
|
|
61609
|
+
function isIterateeCall(value2, index, object) {
|
|
61610
|
+
if (!isObject(object)) {
|
|
61611
|
+
return false;
|
|
61612
|
+
}
|
|
61613
|
+
var type = typeof index;
|
|
61614
|
+
if (type == "number" ? isArrayLike(object) && isIndex(index, object.length) : type == "string" && index in object) {
|
|
61615
|
+
return eq(object[index], value2);
|
|
61616
|
+
}
|
|
61617
|
+
return false;
|
|
61618
|
+
}
|
|
61619
|
+
function isKeyable(value2) {
|
|
61620
|
+
var type = typeof value2;
|
|
61621
|
+
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value2 !== "__proto__" : value2 === null;
|
|
61622
|
+
}
|
|
61623
|
+
function isMasked(func) {
|
|
61624
|
+
return !!maskSrcKey && maskSrcKey in func;
|
|
61625
|
+
}
|
|
61626
|
+
function isPrototype(value2) {
|
|
61627
|
+
var Ctor = value2 && value2.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto;
|
|
61628
|
+
return value2 === proto;
|
|
61629
|
+
}
|
|
61630
|
+
function nativeKeysIn(object) {
|
|
61631
|
+
var result = [];
|
|
61632
|
+
if (object != null) {
|
|
61633
|
+
for (var key in Object(object)) {
|
|
61634
|
+
result.push(key);
|
|
61635
|
+
}
|
|
61636
|
+
}
|
|
61637
|
+
return result;
|
|
61638
|
+
}
|
|
61639
|
+
function objectToString(value2) {
|
|
61640
|
+
return nativeObjectToString.call(value2);
|
|
61641
|
+
}
|
|
61642
|
+
function overRest(func, start2, transform) {
|
|
61643
|
+
start2 = nativeMax(start2 === void 0 ? func.length - 1 : start2, 0);
|
|
61644
|
+
return function() {
|
|
61645
|
+
var args = arguments, index = -1, length2 = nativeMax(args.length - start2, 0), array2 = Array(length2);
|
|
61646
|
+
while (++index < length2) {
|
|
61647
|
+
array2[index] = args[start2 + index];
|
|
61648
|
+
}
|
|
61649
|
+
index = -1;
|
|
61650
|
+
var otherArgs = Array(start2 + 1);
|
|
61651
|
+
while (++index < start2) {
|
|
61652
|
+
otherArgs[index] = args[index];
|
|
61653
|
+
}
|
|
61654
|
+
otherArgs[start2] = transform(array2);
|
|
61655
|
+
return apply(func, this, otherArgs);
|
|
61656
|
+
};
|
|
61657
|
+
}
|
|
61658
|
+
function safeGet(object, key) {
|
|
61659
|
+
if (key === "constructor" && typeof object[key] === "function") {
|
|
61660
|
+
return;
|
|
61661
|
+
}
|
|
61662
|
+
if (key == "__proto__") {
|
|
61663
|
+
return;
|
|
61664
|
+
}
|
|
61665
|
+
return object[key];
|
|
61666
|
+
}
|
|
61667
|
+
var setToString = shortOut(baseSetToString);
|
|
61668
|
+
function shortOut(func) {
|
|
61669
|
+
var count2 = 0, lastCalled = 0;
|
|
61670
|
+
return function() {
|
|
61671
|
+
var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
|
|
61672
|
+
lastCalled = stamp;
|
|
61673
|
+
if (remaining > 0) {
|
|
61674
|
+
if (++count2 >= HOT_COUNT) {
|
|
61675
|
+
return arguments[0];
|
|
61676
|
+
}
|
|
61677
|
+
} else {
|
|
61678
|
+
count2 = 0;
|
|
61679
|
+
}
|
|
61680
|
+
return func.apply(void 0, arguments);
|
|
61681
|
+
};
|
|
61682
|
+
}
|
|
61683
|
+
function toSource(func) {
|
|
61684
|
+
if (func != null) {
|
|
61685
|
+
try {
|
|
61686
|
+
return funcToString.call(func);
|
|
61687
|
+
} catch (e) {
|
|
61688
|
+
}
|
|
61689
|
+
try {
|
|
61690
|
+
return func + "";
|
|
61691
|
+
} catch (e) {
|
|
61692
|
+
}
|
|
61693
|
+
}
|
|
61694
|
+
return "";
|
|
61695
|
+
}
|
|
61696
|
+
function eq(value2, other) {
|
|
61697
|
+
return value2 === other || value2 !== value2 && other !== other;
|
|
61698
|
+
}
|
|
61699
|
+
var isArguments = baseIsArguments(/* @__PURE__ */ function() {
|
|
61700
|
+
return arguments;
|
|
61701
|
+
}()) ? baseIsArguments : function(value2) {
|
|
61702
|
+
return isObjectLike(value2) && hasOwnProperty.call(value2, "callee") && !propertyIsEnumerable.call(value2, "callee");
|
|
61703
|
+
};
|
|
61704
|
+
var isArray = Array.isArray;
|
|
61705
|
+
function isArrayLike(value2) {
|
|
61706
|
+
return value2 != null && isLength(value2.length) && !isFunction2(value2);
|
|
61707
|
+
}
|
|
61708
|
+
function isArrayLikeObject(value2) {
|
|
61709
|
+
return isObjectLike(value2) && isArrayLike(value2);
|
|
61710
|
+
}
|
|
61711
|
+
var isBuffer = nativeIsBuffer || stubFalse;
|
|
61712
|
+
function isFunction2(value2) {
|
|
61713
|
+
if (!isObject(value2)) {
|
|
61714
|
+
return false;
|
|
61715
|
+
}
|
|
61716
|
+
var tag = baseGetTag(value2);
|
|
61717
|
+
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
61718
|
+
}
|
|
61719
|
+
function isLength(value2) {
|
|
61720
|
+
return typeof value2 == "number" && value2 > -1 && value2 % 1 == 0 && value2 <= MAX_SAFE_INTEGER;
|
|
61721
|
+
}
|
|
61722
|
+
function isObject(value2) {
|
|
61723
|
+
var type = typeof value2;
|
|
61724
|
+
return value2 != null && (type == "object" || type == "function");
|
|
61725
|
+
}
|
|
61726
|
+
function isObjectLike(value2) {
|
|
61727
|
+
return value2 != null && typeof value2 == "object";
|
|
61728
|
+
}
|
|
61729
|
+
function isPlainObject2(value2) {
|
|
61730
|
+
if (!isObjectLike(value2) || baseGetTag(value2) != objectTag) {
|
|
61731
|
+
return false;
|
|
61732
|
+
}
|
|
61733
|
+
var proto = getPrototype(value2);
|
|
61734
|
+
if (proto === null) {
|
|
61735
|
+
return true;
|
|
61736
|
+
}
|
|
61737
|
+
var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
|
61738
|
+
return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
|
|
61739
|
+
}
|
|
61740
|
+
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
61741
|
+
function toPlainObject(value2) {
|
|
61742
|
+
return copyObject(value2, keysIn(value2));
|
|
61743
|
+
}
|
|
61744
|
+
function keysIn(object) {
|
|
61745
|
+
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeysIn(object);
|
|
61746
|
+
}
|
|
61747
|
+
var merge2 = createAssigner(function(object, source, srcIndex) {
|
|
61748
|
+
baseMerge(object, source, srcIndex);
|
|
61749
|
+
});
|
|
61750
|
+
function constant2(value2) {
|
|
61751
|
+
return function() {
|
|
61752
|
+
return value2;
|
|
61753
|
+
};
|
|
61754
|
+
}
|
|
61755
|
+
function identity2(value2) {
|
|
61756
|
+
return value2;
|
|
61757
|
+
}
|
|
61758
|
+
function stubFalse() {
|
|
61759
|
+
return false;
|
|
61760
|
+
}
|
|
61761
|
+
module.exports = merge2;
|
|
61762
|
+
})(lodash_merge, lodash_merge.exports);
|
|
61763
|
+
var lodash_mergeExports = lodash_merge.exports;
|
|
61764
|
+
const merge = /* @__PURE__ */ getDefaultExportFromCjs(lodash_mergeExports);
|
|
61765
|
+
const createDarkPalette = (uiTheme) => merge(createLightPalette(uiTheme), {
|
|
61094
61766
|
mode: "dark",
|
|
61095
61767
|
primary: {
|
|
61096
|
-
main: THEME_COLORS[
|
|
61097
|
-
light: THEME_COLORS[
|
|
61098
|
-
dark: THEME_COLORS[
|
|
61099
|
-
contrastText: THEME_COLORS[
|
|
61768
|
+
main: THEME_COLORS[uiTheme].main,
|
|
61769
|
+
light: THEME_COLORS[uiTheme].light,
|
|
61770
|
+
dark: THEME_COLORS[uiTheme].dark,
|
|
61771
|
+
contrastText: THEME_COLORS[uiTheme].contrastText
|
|
61100
61772
|
},
|
|
61101
61773
|
secondary: {
|
|
61102
61774
|
main: "#222222"
|
|
61103
61775
|
},
|
|
61104
|
-
warning: void 0,
|
|
61105
|
-
info: void 0,
|
|
61106
|
-
success: void 0,
|
|
61107
61776
|
background: {
|
|
61108
61777
|
default: "#1D1D1D"
|
|
61109
61778
|
},
|
|
@@ -61112,14 +61781,24 @@ const createDarkPalette = (themeColor) => ({
|
|
|
61112
61781
|
900: "#2E2E2E"
|
|
61113
61782
|
}
|
|
61114
61783
|
});
|
|
61115
|
-
const
|
|
61116
|
-
|
|
61117
|
-
|
|
61118
|
-
|
|
61119
|
-
|
|
61784
|
+
const createThemePure = (uiTheme, palette) => {
|
|
61785
|
+
return createTheme$1({
|
|
61786
|
+
components: generateComponentOverrides(uiTheme),
|
|
61787
|
+
palette,
|
|
61788
|
+
typography: TYPOGRAPHY_STYLE_OVERRIDES
|
|
61789
|
+
});
|
|
61790
|
+
};
|
|
61791
|
+
const cache = Object.fromEntries(UIThemeSchema.options.map((uiTheme) => [uiTheme, {
|
|
61792
|
+
light: createThemePure(uiTheme, createLightPalette(uiTheme)),
|
|
61793
|
+
dark: createThemePure(uiTheme, createDarkPalette(uiTheme))
|
|
61794
|
+
}]));
|
|
61795
|
+
const createTheme = (uiTheme, dark2, skipCache = false) => {
|
|
61796
|
+
var _a2;
|
|
61797
|
+
return !skipCache && ((_a2 = cache == null ? void 0 : cache[uiTheme]) == null ? void 0 : _a2[dark2 ? "dark" : "light"]) || createThemePure(uiTheme, dark2 ? createDarkPalette(uiTheme) : createLightPalette(uiTheme));
|
|
61798
|
+
};
|
|
61120
61799
|
const UIThemeProvider = ({
|
|
61121
|
-
dark: dark2 = false,
|
|
61122
61800
|
theme,
|
|
61801
|
+
dark: dark2 = false,
|
|
61123
61802
|
children: children2
|
|
61124
61803
|
}) => /* @__PURE__ */ jsxs(ThemeProvider, { theme: createTheme(theme, dark2), children: [
|
|
61125
61804
|
/* @__PURE__ */ jsx$1(CssBaseline, {}),
|
|
@@ -61224,6 +61903,21 @@ const Modal2 = ({
|
|
|
61224
61903
|
children2
|
|
61225
61904
|
] }) });
|
|
61226
61905
|
};
|
|
61906
|
+
const ErrorFallbackText = ({
|
|
61907
|
+
name,
|
|
61908
|
+
message
|
|
61909
|
+
}) => /* @__PURE__ */ jsx$1(Typography, { textAlign: "center", color: "textSecondary", children: message ?? `⚠️ ${name || "Component"} failed to load` });
|
|
61910
|
+
const ErrorFallbackWrapper = ({
|
|
61911
|
+
children: children2,
|
|
61912
|
+
height: height2 = 256,
|
|
61913
|
+
sx
|
|
61914
|
+
}) => /* @__PURE__ */ jsx$1(Box, { display: "flex", justifyContent: "center", alignItems: "center", height: height2, sx, children: children2 });
|
|
61915
|
+
const ErrorFallback = ({
|
|
61916
|
+
name,
|
|
61917
|
+
message,
|
|
61918
|
+
height: height2 = 256,
|
|
61919
|
+
sx
|
|
61920
|
+
}) => /* @__PURE__ */ jsx$1(ErrorFallbackWrapper, { height: height2, sx, children: /* @__PURE__ */ jsx$1(ErrorFallbackText, { name, message }) });
|
|
61227
61921
|
const MountedMapsContext = React$2.createContext(null);
|
|
61228
61922
|
const MapProvider = (props) => {
|
|
61229
61923
|
const [maps, setMaps] = useState({});
|
|
@@ -81066,6 +81760,9 @@ export {
|
|
|
81066
81760
|
DragHandleIcon,
|
|
81067
81761
|
DropdownButton,
|
|
81068
81762
|
ENCODE_SEARCH_PARAMS_MODES_Schema,
|
|
81763
|
+
ErrorFallback,
|
|
81764
|
+
ErrorFallbackText,
|
|
81765
|
+
ErrorFallbackWrapper,
|
|
81069
81766
|
FeatureMap,
|
|
81070
81767
|
Panel as FixedPanel,
|
|
81071
81768
|
FlexBox,
|