@tmagic/utils 1.4.4 → 1.4.5

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.
@@ -7,20 +7,14 @@
7
7
  /** Detect free variable `global` from Node.js. */
8
8
  var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
9
9
 
10
- const freeGlobal$1 = freeGlobal;
11
-
12
10
  /** Detect free variable `self`. */
13
11
  var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
14
12
 
15
13
  /** Used as a reference to the global object. */
16
- var root = freeGlobal$1 || freeSelf || Function('return this')();
17
-
18
- const root$1 = root;
14
+ var root = freeGlobal || freeSelf || Function('return this')();
19
15
 
20
16
  /** Built-in value references. */
21
- var Symbol$1 = root$1.Symbol;
22
-
23
- const Symbol$2 = Symbol$1;
17
+ var Symbol$1 = root.Symbol;
24
18
 
25
19
  /** Used for built-in method references. */
26
20
  var objectProto$c = Object.prototype;
@@ -36,7 +30,7 @@
36
30
  var nativeObjectToString$1 = objectProto$c.toString;
37
31
 
38
32
  /** Built-in value references. */
39
- var symToStringTag$1 = Symbol$2 ? Symbol$2.toStringTag : undefined;
33
+ var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : undefined;
40
34
 
41
35
  /**
42
36
  * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
@@ -91,7 +85,7 @@
91
85
  undefinedTag = '[object Undefined]';
92
86
 
93
87
  /** Built-in value references. */
94
- var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : undefined;
88
+ var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : undefined;
95
89
 
96
90
  /**
97
91
  * The base implementation of `getTag` without fallbacks for buggy environments.
@@ -207,13 +201,11 @@
207
201
  */
208
202
  var isArray = Array.isArray;
209
203
 
210
- const isArray$1 = isArray;
211
-
212
204
  /** Used as references for various `Number` constants. */
213
205
  var INFINITY$1 = 1 / 0;
214
206
 
215
207
  /** Used to convert symbols to primitives and strings. */
216
- var symbolProto$1 = Symbol$2 ? Symbol$2.prototype : undefined,
208
+ var symbolProto$1 = Symbol$1 ? Symbol$1.prototype : undefined,
217
209
  symbolToString = symbolProto$1 ? symbolProto$1.toString : undefined;
218
210
 
219
211
  /**
@@ -229,7 +221,7 @@
229
221
  if (typeof value == 'string') {
230
222
  return value;
231
223
  }
232
- if (isArray$1(value)) {
224
+ if (isArray(value)) {
233
225
  // Recursively convert values (susceptible to call stack limits).
234
226
  return arrayMap(value, baseToString) + '';
235
227
  }
@@ -304,13 +296,11 @@
304
296
  }
305
297
 
306
298
  /** Used to detect overreaching core-js shims. */
307
- var coreJsData = root$1['__core-js_shared__'];
308
-
309
- const coreJsData$1 = coreJsData;
299
+ var coreJsData = root['__core-js_shared__'];
310
300
 
311
301
  /** Used to detect methods masquerading as native. */
312
302
  var maskSrcKey = (function() {
313
- var uid = /[^.]+$/.exec(coreJsData$1 && coreJsData$1.keys && coreJsData$1.keys.IE_PROTO || '');
303
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
314
304
  return uid ? ('Symbol(src)_1.' + uid) : '';
315
305
  }());
316
306
 
@@ -417,9 +407,7 @@
417
407
  }
418
408
 
419
409
  /* Built-in method references that are verified to be native. */
420
- var WeakMap = getNative(root$1, 'WeakMap');
421
-
422
- const WeakMap$1 = WeakMap;
410
+ var WeakMap = getNative(root, 'WeakMap');
423
411
 
424
412
  /** Built-in value references. */
425
413
  var objectCreate = Object.create;
@@ -448,8 +436,6 @@
448
436
  };
449
437
  }());
450
438
 
451
- const baseCreate$1 = baseCreate;
452
-
453
439
  /**
454
440
  * Copies the values of `source` to `array`.
455
441
  *
@@ -477,8 +463,6 @@
477
463
  } catch (e) {}
478
464
  }());
479
465
 
480
- const defineProperty$1 = defineProperty;
481
-
482
466
  /**
483
467
  * A specialized version of `_.forEach` for arrays without support for
484
468
  * iteratee shorthands.
@@ -534,8 +518,8 @@
534
518
  * @param {*} value The value to assign.
535
519
  */
536
520
  function baseAssignValue(object, key, value) {
537
- if (key == '__proto__' && defineProperty$1) {
538
- defineProperty$1(object, key, {
521
+ if (key == '__proto__' && defineProperty) {
522
+ defineProperty(object, key, {
539
523
  'configurable': true,
540
524
  'enumerable': true,
541
525
  'value': value,
@@ -626,9 +610,7 @@
626
610
  while (++index < length) {
627
611
  var key = props[index];
628
612
 
629
- var newValue = customizer
630
- ? customizer(object[key], source[key], key, object, source)
631
- : undefined;
613
+ var newValue = undefined;
632
614
 
633
615
  if (newValue === undefined) {
634
616
  newValue = source[key];
@@ -787,8 +769,6 @@
787
769
  !propertyIsEnumerable$1.call(value, 'callee');
788
770
  };
789
771
 
790
- const isArguments$1 = isArguments;
791
-
792
772
  /**
793
773
  * This method returns `false`.
794
774
  *
@@ -816,7 +796,7 @@
816
796
  var moduleExports$2 = freeModule$2 && freeModule$2.exports === freeExports$2;
817
797
 
818
798
  /** Built-in value references. */
819
- var Buffer$1 = moduleExports$2 ? root$1.Buffer : undefined;
799
+ var Buffer$1 = moduleExports$2 ? root.Buffer : undefined;
820
800
 
821
801
  /* Built-in method references for those with the same name as other `lodash` methods. */
822
802
  var nativeIsBuffer = Buffer$1 ? Buffer$1.isBuffer : undefined;
@@ -840,8 +820,6 @@
840
820
  */
841
821
  var isBuffer = nativeIsBuffer || stubFalse;
842
822
 
843
- const isBuffer$1 = isBuffer;
844
-
845
823
  /** `Object#toString` result references. */
846
824
  var argsTag$1 = '[object Arguments]',
847
825
  arrayTag$1 = '[object Array]',
@@ -920,7 +898,7 @@
920
898
  var moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1;
921
899
 
922
900
  /** Detect free variable `process` from Node.js. */
923
- var freeProcess = moduleExports$1 && freeGlobal$1.process;
901
+ var freeProcess = moduleExports$1 && freeGlobal.process;
924
902
 
925
903
  /** Used to access faster Node.js helpers. */
926
904
  var nodeUtil = (function() {
@@ -937,10 +915,8 @@
937
915
  } catch (e) {}
938
916
  }());
939
917
 
940
- const nodeUtil$1 = nodeUtil;
941
-
942
918
  /* Node.js helper references. */
943
- var nodeIsTypedArray = nodeUtil$1 && nodeUtil$1.isTypedArray;
919
+ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
944
920
 
945
921
  /**
946
922
  * Checks if `value` is classified as a typed array.
@@ -961,8 +937,6 @@
961
937
  */
962
938
  var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
963
939
 
964
- const isTypedArray$1 = isTypedArray;
965
-
966
940
  /** Used for built-in method references. */
967
941
  var objectProto$6 = Object.prototype;
968
942
 
@@ -978,10 +952,10 @@
978
952
  * @returns {Array} Returns the array of property names.
979
953
  */
980
954
  function arrayLikeKeys(value, inherited) {
981
- var isArr = isArray$1(value),
982
- isArg = !isArr && isArguments$1(value),
983
- isBuff = !isArr && !isArg && isBuffer$1(value),
984
- isType = !isArr && !isArg && !isBuff && isTypedArray$1(value),
955
+ var isArr = isArray(value),
956
+ isArg = !isArr && isArguments(value),
957
+ isBuff = !isArr && !isArg && isBuffer(value),
958
+ isType = !isArr && !isArg && !isBuff && isTypedArray(value),
985
959
  skipIndexes = isArr || isArg || isBuff || isType,
986
960
  result = skipIndexes ? baseTimes(value.length, String) : [],
987
961
  length = result.length;
@@ -1021,8 +995,6 @@
1021
995
  /* Built-in method references for those with the same name as other `lodash` methods. */
1022
996
  var nativeKeys = overArg(Object.keys, Object);
1023
997
 
1024
- const nativeKeys$1 = nativeKeys;
1025
-
1026
998
  /** Used for built-in method references. */
1027
999
  var objectProto$5 = Object.prototype;
1028
1000
 
@@ -1038,7 +1010,7 @@
1038
1010
  */
1039
1011
  function baseKeys(object) {
1040
1012
  if (!isPrototype(object)) {
1041
- return nativeKeys$1(object);
1013
+ return nativeKeys(object);
1042
1014
  }
1043
1015
  var result = [];
1044
1016
  for (var key in Object(object)) {
@@ -1168,7 +1140,7 @@
1168
1140
  * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
1169
1141
  */
1170
1142
  function isKey(value, object) {
1171
- if (isArray$1(value)) {
1143
+ if (isArray(value)) {
1172
1144
  return false;
1173
1145
  }
1174
1146
  var type = typeof value;
@@ -1183,8 +1155,6 @@
1183
1155
  /* Built-in method references that are verified to be native. */
1184
1156
  var nativeCreate = getNative(Object, 'create');
1185
1157
 
1186
- const nativeCreate$1 = nativeCreate;
1187
-
1188
1158
  /**
1189
1159
  * Removes all key-value entries from the hash.
1190
1160
  *
@@ -1193,7 +1163,7 @@
1193
1163
  * @memberOf Hash
1194
1164
  */
1195
1165
  function hashClear() {
1196
- this.__data__ = nativeCreate$1 ? nativeCreate$1(null) : {};
1166
+ this.__data__ = nativeCreate ? nativeCreate(null) : {};
1197
1167
  this.size = 0;
1198
1168
  }
1199
1169
 
@@ -1233,7 +1203,7 @@
1233
1203
  */
1234
1204
  function hashGet(key) {
1235
1205
  var data = this.__data__;
1236
- if (nativeCreate$1) {
1206
+ if (nativeCreate) {
1237
1207
  var result = data[key];
1238
1208
  return result === HASH_UNDEFINED$1 ? undefined : result;
1239
1209
  }
@@ -1257,7 +1227,7 @@
1257
1227
  */
1258
1228
  function hashHas(key) {
1259
1229
  var data = this.__data__;
1260
- return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty$1.call(data, key);
1230
+ return nativeCreate ? (data[key] !== undefined) : hasOwnProperty$1.call(data, key);
1261
1231
  }
1262
1232
 
1263
1233
  /** Used to stand-in for `undefined` hash values. */
@@ -1276,7 +1246,7 @@
1276
1246
  function hashSet(key, value) {
1277
1247
  var data = this.__data__;
1278
1248
  this.size += this.has(key) ? 0 : 1;
1279
- data[key] = (nativeCreate$1 && value === undefined) ? HASH_UNDEFINED : value;
1249
+ data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
1280
1250
  return this;
1281
1251
  }
1282
1252
 
@@ -1445,9 +1415,7 @@
1445
1415
  ListCache.prototype.set = listCacheSet;
1446
1416
 
1447
1417
  /* Built-in method references that are verified to be native. */
1448
- var Map$1 = getNative(root$1, 'Map');
1449
-
1450
- const Map$2 = Map$1;
1418
+ var Map$1 = getNative(root, 'Map');
1451
1419
 
1452
1420
  /**
1453
1421
  * Removes all key-value entries from the map.
@@ -1460,7 +1428,7 @@
1460
1428
  this.size = 0;
1461
1429
  this.__data__ = {
1462
1430
  'hash': new Hash,
1463
- 'map': new (Map$2 || ListCache),
1431
+ 'map': new (Map$1 || ListCache),
1464
1432
  'string': new Hash
1465
1433
  };
1466
1434
  }
@@ -1696,8 +1664,6 @@
1696
1664
  return result;
1697
1665
  });
1698
1666
 
1699
- const stringToPath$1 = stringToPath;
1700
-
1701
1667
  /**
1702
1668
  * Converts `value` to a string. An empty string is returned for `null`
1703
1669
  * and `undefined` values. The sign of `-0` is preserved.
@@ -1732,10 +1698,10 @@
1732
1698
  * @returns {Array} Returns the cast property path array.
1733
1699
  */
1734
1700
  function castPath(value, object) {
1735
- if (isArray$1(value)) {
1701
+ if (isArray(value)) {
1736
1702
  return value;
1737
1703
  }
1738
- return isKey(value, object) ? [value] : stringToPath$1(toString(value));
1704
+ return isKey(value, object) ? [value] : stringToPath(toString(value));
1739
1705
  }
1740
1706
 
1741
1707
  /** Used as references for various `Number` constants. */
@@ -1778,8 +1744,6 @@
1778
1744
  /** Built-in value references. */
1779
1745
  var getPrototype = overArg(Object.getPrototypeOf, Object);
1780
1746
 
1781
- const getPrototype$1 = getPrototype;
1782
-
1783
1747
  /**
1784
1748
  * Removes all key-value entries from the stack.
1785
1749
  *
@@ -1852,7 +1816,7 @@
1852
1816
  var data = this.__data__;
1853
1817
  if (data instanceof ListCache) {
1854
1818
  var pairs = data.__data__;
1855
- if (!Map$2 || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
1819
+ if (!Map$1 || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
1856
1820
  pairs.push([key, value]);
1857
1821
  this.size = ++data.size;
1858
1822
  return this;
@@ -1919,7 +1883,7 @@
1919
1883
  var moduleExports = freeModule && freeModule.exports === freeExports;
1920
1884
 
1921
1885
  /** Built-in value references. */
1922
- var Buffer = moduleExports ? root$1.Buffer : undefined,
1886
+ var Buffer = moduleExports ? root.Buffer : undefined,
1923
1887
  allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
1924
1888
 
1925
1889
  /**
@@ -2013,8 +1977,6 @@
2013
1977
  });
2014
1978
  };
2015
1979
 
2016
- const getSymbols$1 = getSymbols;
2017
-
2018
1980
  /**
2019
1981
  * Copies own symbols of `source` to `object`.
2020
1982
  *
@@ -2024,7 +1986,7 @@
2024
1986
  * @returns {Object} Returns `object`.
2025
1987
  */
2026
1988
  function copySymbols(source, object) {
2027
- return copyObject(source, getSymbols$1(source), object);
1989
+ return copyObject(source, getSymbols(source), object);
2028
1990
  }
2029
1991
 
2030
1992
  /* Built-in method references for those with the same name as other `lodash` methods. */
@@ -2040,14 +2002,12 @@
2040
2002
  var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
2041
2003
  var result = [];
2042
2004
  while (object) {
2043
- arrayPush(result, getSymbols$1(object));
2044
- object = getPrototype$1(object);
2005
+ arrayPush(result, getSymbols(object));
2006
+ object = getPrototype(object);
2045
2007
  }
2046
2008
  return result;
2047
2009
  };
2048
2010
 
2049
- const getSymbolsIn$1 = getSymbolsIn;
2050
-
2051
2011
  /**
2052
2012
  * Copies own and inherited symbols of `source` to `object`.
2053
2013
  *
@@ -2057,7 +2017,7 @@
2057
2017
  * @returns {Object} Returns `object`.
2058
2018
  */
2059
2019
  function copySymbolsIn(source, object) {
2060
- return copyObject(source, getSymbolsIn$1(source), object);
2020
+ return copyObject(source, getSymbolsIn(source), object);
2061
2021
  }
2062
2022
 
2063
2023
  /**
@@ -2073,7 +2033,7 @@
2073
2033
  */
2074
2034
  function baseGetAllKeys(object, keysFunc, symbolsFunc) {
2075
2035
  var result = keysFunc(object);
2076
- return isArray$1(object) ? result : arrayPush(result, symbolsFunc(object));
2036
+ return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
2077
2037
  }
2078
2038
 
2079
2039
  /**
@@ -2084,7 +2044,7 @@
2084
2044
  * @returns {Array} Returns the array of property names and symbols.
2085
2045
  */
2086
2046
  function getAllKeys(object) {
2087
- return baseGetAllKeys(object, keys, getSymbols$1);
2047
+ return baseGetAllKeys(object, keys, getSymbols);
2088
2048
  }
2089
2049
 
2090
2050
  /**
@@ -2096,23 +2056,17 @@
2096
2056
  * @returns {Array} Returns the array of property names and symbols.
2097
2057
  */
2098
2058
  function getAllKeysIn(object) {
2099
- return baseGetAllKeys(object, keysIn, getSymbolsIn$1);
2059
+ return baseGetAllKeys(object, keysIn, getSymbolsIn);
2100
2060
  }
2101
2061
 
2102
2062
  /* Built-in method references that are verified to be native. */
2103
- var DataView = getNative(root$1, 'DataView');
2104
-
2105
- const DataView$1 = DataView;
2063
+ var DataView = getNative(root, 'DataView');
2106
2064
 
2107
2065
  /* Built-in method references that are verified to be native. */
2108
- var Promise$1 = getNative(root$1, 'Promise');
2109
-
2110
- const Promise$2 = Promise$1;
2066
+ var Promise$1 = getNative(root, 'Promise');
2111
2067
 
2112
2068
  /* Built-in method references that are verified to be native. */
2113
- var Set$1 = getNative(root$1, 'Set');
2114
-
2115
- const Set$2 = Set$1;
2069
+ var Set$1 = getNative(root, 'Set');
2116
2070
 
2117
2071
  /** `Object#toString` result references. */
2118
2072
  var mapTag$3 = '[object Map]',
@@ -2124,11 +2078,11 @@
2124
2078
  var dataViewTag$2 = '[object DataView]';
2125
2079
 
2126
2080
  /** Used to detect maps, sets, and weakmaps. */
2127
- var dataViewCtorString = toSource(DataView$1),
2128
- mapCtorString = toSource(Map$2),
2129
- promiseCtorString = toSource(Promise$2),
2130
- setCtorString = toSource(Set$2),
2131
- weakMapCtorString = toSource(WeakMap$1);
2081
+ var dataViewCtorString = toSource(DataView),
2082
+ mapCtorString = toSource(Map$1),
2083
+ promiseCtorString = toSource(Promise$1),
2084
+ setCtorString = toSource(Set$1),
2085
+ weakMapCtorString = toSource(WeakMap);
2132
2086
 
2133
2087
  /**
2134
2088
  * Gets the `toStringTag` of `value`.
@@ -2140,11 +2094,11 @@
2140
2094
  var getTag = baseGetTag;
2141
2095
 
2142
2096
  // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
2143
- if ((DataView$1 && getTag(new DataView$1(new ArrayBuffer(1))) != dataViewTag$2) ||
2144
- (Map$2 && getTag(new Map$2) != mapTag$3) ||
2145
- (Promise$2 && getTag(Promise$2.resolve()) != promiseTag) ||
2146
- (Set$2 && getTag(new Set$2) != setTag$3) ||
2147
- (WeakMap$1 && getTag(new WeakMap$1) != weakMapTag$1)) {
2097
+ if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag$2) ||
2098
+ (Map$1 && getTag(new Map$1) != mapTag$3) ||
2099
+ (Promise$1 && getTag(Promise$1.resolve()) != promiseTag) ||
2100
+ (Set$1 && getTag(new Set$1) != setTag$3) ||
2101
+ (WeakMap && getTag(new WeakMap) != weakMapTag$1)) {
2148
2102
  getTag = function(value) {
2149
2103
  var result = baseGetTag(value),
2150
2104
  Ctor = result == objectTag$1 ? value.constructor : undefined,
@@ -2163,8 +2117,6 @@
2163
2117
  };
2164
2118
  }
2165
2119
 
2166
- const getTag$1 = getTag;
2167
-
2168
2120
  /** Used for built-in method references. */
2169
2121
  var objectProto = Object.prototype;
2170
2122
 
@@ -2191,9 +2143,7 @@
2191
2143
  }
2192
2144
 
2193
2145
  /** Built-in value references. */
2194
- var Uint8Array = root$1.Uint8Array;
2195
-
2196
- const Uint8Array$1 = Uint8Array;
2146
+ var Uint8Array = root.Uint8Array;
2197
2147
 
2198
2148
  /**
2199
2149
  * Creates a clone of `arrayBuffer`.
@@ -2204,7 +2154,7 @@
2204
2154
  */
2205
2155
  function cloneArrayBuffer(arrayBuffer) {
2206
2156
  var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
2207
- new Uint8Array$1(result).set(new Uint8Array$1(arrayBuffer));
2157
+ new Uint8Array(result).set(new Uint8Array(arrayBuffer));
2208
2158
  return result;
2209
2159
  }
2210
2160
 
@@ -2238,7 +2188,7 @@
2238
2188
  }
2239
2189
 
2240
2190
  /** Used to convert symbols to primitives and strings. */
2241
- var symbolProto = Symbol$2 ? Symbol$2.prototype : undefined,
2191
+ var symbolProto = Symbol$1 ? Symbol$1.prototype : undefined,
2242
2192
  symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
2243
2193
 
2244
2194
  /**
@@ -2344,7 +2294,7 @@
2344
2294
  */
2345
2295
  function initCloneObject(object) {
2346
2296
  return (typeof object.constructor == 'function' && !isPrototype(object))
2347
- ? baseCreate$1(getPrototype$1(object))
2297
+ ? baseCreate(getPrototype(object))
2348
2298
  : {};
2349
2299
  }
2350
2300
 
@@ -2359,11 +2309,11 @@
2359
2309
  * @returns {boolean} Returns `true` if `value` is a map, else `false`.
2360
2310
  */
2361
2311
  function baseIsMap(value) {
2362
- return isObjectLike(value) && getTag$1(value) == mapTag$1;
2312
+ return isObjectLike(value) && getTag(value) == mapTag$1;
2363
2313
  }
2364
2314
 
2365
2315
  /* Node.js helper references. */
2366
- var nodeIsMap = nodeUtil$1 && nodeUtil$1.isMap;
2316
+ var nodeIsMap = nodeUtil && nodeUtil.isMap;
2367
2317
 
2368
2318
  /**
2369
2319
  * Checks if `value` is classified as a `Map` object.
@@ -2384,8 +2334,6 @@
2384
2334
  */
2385
2335
  var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
2386
2336
 
2387
- const isMap$1 = isMap;
2388
-
2389
2337
  /** `Object#toString` result references. */
2390
2338
  var setTag$1 = '[object Set]';
2391
2339
 
@@ -2397,11 +2345,11 @@
2397
2345
  * @returns {boolean} Returns `true` if `value` is a set, else `false`.
2398
2346
  */
2399
2347
  function baseIsSet(value) {
2400
- return isObjectLike(value) && getTag$1(value) == setTag$1;
2348
+ return isObjectLike(value) && getTag(value) == setTag$1;
2401
2349
  }
2402
2350
 
2403
2351
  /* Node.js helper references. */
2404
- var nodeIsSet = nodeUtil$1 && nodeUtil$1.isSet;
2352
+ var nodeIsSet = nodeUtil && nodeUtil.isSet;
2405
2353
 
2406
2354
  /**
2407
2355
  * Checks if `value` is classified as a `Set` object.
@@ -2422,8 +2370,6 @@
2422
2370
  */
2423
2371
  var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
2424
2372
 
2425
- const isSet$1 = isSet;
2426
-
2427
2373
  /** Used to compose bitmasks for cloning. */
2428
2374
  var CLONE_DEEP_FLAG$1 = 1,
2429
2375
  CLONE_FLAT_FLAG = 2,
@@ -2495,27 +2441,23 @@
2495
2441
  isDeep = bitmask & CLONE_DEEP_FLAG$1,
2496
2442
  isFlat = bitmask & CLONE_FLAT_FLAG,
2497
2443
  isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
2498
-
2499
- if (customizer) {
2500
- result = object ? customizer(value, key, object, stack) : customizer(value);
2501
- }
2502
2444
  if (result !== undefined) {
2503
2445
  return result;
2504
2446
  }
2505
2447
  if (!isObject$1(value)) {
2506
2448
  return value;
2507
2449
  }
2508
- var isArr = isArray$1(value);
2450
+ var isArr = isArray(value);
2509
2451
  if (isArr) {
2510
2452
  result = initCloneArray(value);
2511
2453
  if (!isDeep) {
2512
2454
  return copyArray(value, result);
2513
2455
  }
2514
2456
  } else {
2515
- var tag = getTag$1(value),
2457
+ var tag = getTag(value),
2516
2458
  isFunc = tag == funcTag || tag == genTag;
2517
2459
 
2518
- if (isBuffer$1(value)) {
2460
+ if (isBuffer(value)) {
2519
2461
  return cloneBuffer(value, isDeep);
2520
2462
  }
2521
2463
  if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
@@ -2540,11 +2482,11 @@
2540
2482
  }
2541
2483
  stack.set(value, result);
2542
2484
 
2543
- if (isSet$1(value)) {
2485
+ if (isSet(value)) {
2544
2486
  value.forEach(function(subValue) {
2545
2487
  result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
2546
2488
  });
2547
- } else if (isMap$1(value)) {
2489
+ } else if (isMap(value)) {
2548
2490
  value.forEach(function(subValue, key) {
2549
2491
  result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
2550
2492
  });
@@ -2623,7 +2565,7 @@
2623
2565
 
2624
2566
  if (index != lastIndex) {
2625
2567
  var objValue = nested[key];
2626
- newValue = customizer ? customizer(objValue, key, nested) : undefined;
2568
+ newValue = undefined;
2627
2569
  if (newValue === undefined) {
2628
2570
  newValue = isObject$1(objValue)
2629
2571
  ? objValue
@@ -2763,6 +2705,16 @@
2763
2705
  return el;
2764
2706
  };
2765
2707
  const getDocument = () => globalThis.document;
2708
+ const calcValueByFontsize = (doc, value) => {
2709
+ if (!doc)
2710
+ return value;
2711
+ const { fontSize } = doc.documentElement.style;
2712
+ if (fontSize) {
2713
+ const times = globalThis.parseFloat(fontSize) / 100;
2714
+ return Number((value / times).toFixed(2));
2715
+ }
2716
+ return value;
2717
+ };
2766
2718
 
2767
2719
  dayjs.extend(utc);
2768
2720
  const sleep = (ms) => new Promise((resolve) => {
@@ -3026,6 +2978,7 @@
3026
2978
  return data;
3027
2979
  };
3028
2980
  const DATA_SOURCE_FIELDS_SELECT_VALUE_PREFIX = "ds-field::";
2981
+ const DATA_SOURCE_FIELDS_CHANGE_EVENT_PREFIX = "ds-field-changed";
3029
2982
  const getKeys = Object.keys;
3030
2983
  const calculatePercentage = (value, percentageStr) => {
3031
2984
  const percentage = globalThis.parseFloat(percentageStr) / 100;
@@ -3056,12 +3009,14 @@
3056
3009
  }
3057
3010
  };
3058
3011
 
3012
+ exports.DATA_SOURCE_FIELDS_CHANGE_EVENT_PREFIX = DATA_SOURCE_FIELDS_CHANGE_EVENT_PREFIX;
3059
3013
  exports.DATA_SOURCE_FIELDS_SELECT_VALUE_PREFIX = DATA_SOURCE_FIELDS_SELECT_VALUE_PREFIX;
3060
3014
  exports.DSL_NODE_KEY_COPY_PREFIX = DSL_NODE_KEY_COPY_PREFIX;
3061
3015
  exports.addClassName = addClassName;
3062
3016
  exports.addParamToUrl = addParamToUrl;
3063
3017
  exports.asyncLoadCss = asyncLoadCss;
3064
3018
  exports.asyncLoadJs = asyncLoadJs;
3019
+ exports.calcValueByFontsize = calcValueByFontsize;
3065
3020
  exports.calculatePercentage = calculatePercentage;
3066
3021
  exports.compiledCond = compiledCond;
3067
3022
  exports.compiledNode = compiledNode;