@tmagic/utils 1.8.4-beta.1 → 1.8.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.
- package/dist/es/const.js +1 -2
- package/dist/es/dom.js +1 -2
- package/dist/es/index.js +1 -2
- package/dist/tmagic-utils.umd.cjs +125 -250
- package/package.json +3 -3
- package/types/index.d.ts +13 -3
package/dist/es/const.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
// packages/utils/src/const.ts
|
|
2
2
|
var DATA_SOURCE_FIELDS_SELECT_VALUE_PREFIX = "ds-field::";
|
|
3
3
|
var DATA_SOURCE_FIELDS_CHANGE_EVENT_PREFIX = "ds-field-changed";
|
|
4
4
|
var DATA_SOURCE_SET_DATA_METHOD_NAME = "setDataFromEvent";
|
|
5
|
-
//#endregion
|
|
6
5
|
export { DATA_SOURCE_FIELDS_CHANGE_EVENT_PREFIX, DATA_SOURCE_FIELDS_SELECT_VALUE_PREFIX, DATA_SOURCE_SET_DATA_METHOD_NAME };
|
package/dist/es/dom.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// packages/utils/src/dom.ts
|
|
2
2
|
var asyncLoadJs = (() => {
|
|
3
3
|
const documentMap = /* @__PURE__ */ new Map();
|
|
4
4
|
return (url, crossOrigin, document = globalThis.document) => {
|
|
@@ -110,5 +110,4 @@ var setDslDomRelateConfig = (name, value) => {
|
|
|
110
110
|
var getIdFromEl = () => dslDomRelateConfig.getIdFromEl;
|
|
111
111
|
var getElById = () => dslDomRelateConfig.getElById;
|
|
112
112
|
var setIdToEl = () => dslDomRelateConfig.setIdToEl;
|
|
113
|
-
//#endregion
|
|
114
113
|
export { addClassName, asyncLoadCss, asyncLoadJs, calcValueByFontsize, createDiv, getDocument, getElById, getIdFromEl, injectStyle, removeClassName, removeClassNameByClassName, setDslDomRelateConfig, setIdToEl };
|
package/dist/es/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { DATA_SOURCE_FIELDS_CHANGE_EVENT_PREFIX, DATA_SOURCE_FIELDS_SELECT_VALUE
|
|
|
2
2
|
import { addClassName, asyncLoadCss, asyncLoadJs, calcValueByFontsize, createDiv, getDocument, getElById, getIdFromEl, injectStyle, removeClassName, removeClassNameByClassName, setDslDomRelateConfig, setIdToEl } from "./dom.js";
|
|
3
3
|
import { cloneDeep, get, set } from "lodash-es";
|
|
4
4
|
import { NodeType } from "@tmagic/schema";
|
|
5
|
-
|
|
5
|
+
// packages/utils/src/index.ts
|
|
6
6
|
var _globalThis;
|
|
7
7
|
var getGlobalThis = () => _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
|
|
8
8
|
var sleep = (ms) => new Promise((resolve) => {
|
|
@@ -460,5 +460,4 @@ var isValueIncludeDataSource = (value) => {
|
|
|
460
460
|
return false;
|
|
461
461
|
};
|
|
462
462
|
var removeDataSourceFieldPrefix = (id) => id?.replace("ds-field::", "") || "";
|
|
463
|
-
//#endregion
|
|
464
463
|
export { DATA_SOURCE_FIELDS_CHANGE_EVENT_PREFIX, DATA_SOURCE_FIELDS_SELECT_VALUE_PREFIX, DATA_SOURCE_SET_DATA_METHOD_NAME, DSL_NODE_KEY_COPY_PREFIX, IS_DSL_NODE_KEY, PAGE_FRAGMENT_CONTAINER_ID_KEY, addClassName, addParamToUrl, asyncLoadCss, asyncLoadJs, calcValueByFontsize, calculatePercentage, compiledCond, compiledNode, convertToNumber, createDiv, dataSourceTemplateRegExp, delQueStr, emptyFn, filterXSS, getDefaultValueFromFields, getDepKeys, getDepNodeIds, getDocument, getElById, getGlobalThis, getHost, getIdFromEl, getKeys, getKeysArray, getNodeInfo, getNodePath, getNodes, getSearchObj, getUrlParam, getValueByKeyPath, guid, injectStyle, isArrayIndex, isDslNode, isNumber, isObject, isPage, isPageFragment, isPageOrFragment, isPercentage, isPop, isSameDomain, isValueIncludeDataSource, removeClassName, removeClassNameByClassName, removeDataSourceFieldPrefix, replaceChildNode, replaceChildNodes, setDslDomRelateConfig, setIdToEl, setUrlParam, setValueByKeyPath, sleep, toHump, toLine, traverseNode };
|
|
@@ -2,21 +2,18 @@
|
|
|
2
2
|
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("@tmagic/schema")) : typeof define === "function" && define.amd ? define(["exports", "@tmagic/schema"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.TMagicUtils = {}, global._tmagic_schema));
|
|
3
3
|
})(this, function(exports, _tmagic_schema) {
|
|
4
4
|
Object.defineProperty(exports, globalThis.Symbol.toStringTag, { value: "Module" });
|
|
5
|
-
|
|
5
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js
|
|
6
6
|
/** Detect free variable `global` from Node.js. */
|
|
7
7
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
8
|
-
|
|
9
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_root.js
|
|
8
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_root.js
|
|
10
9
|
/** Detect free variable `self`. */
|
|
11
10
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
12
11
|
/** Used as a reference to the global object. */
|
|
13
12
|
var root = freeGlobal || freeSelf || Function("return this")();
|
|
14
|
-
|
|
15
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js
|
|
13
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js
|
|
16
14
|
/** Built-in value references. */
|
|
17
15
|
var Symbol$1 = root.Symbol;
|
|
18
|
-
|
|
19
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js
|
|
16
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js
|
|
20
17
|
/** Used for built-in method references. */
|
|
21
18
|
var objectProto$3 = Object.prototype;
|
|
22
19
|
/** Used to check objects for own properties. */
|
|
@@ -49,8 +46,7 @@
|
|
|
49
46
|
}
|
|
50
47
|
return result;
|
|
51
48
|
}
|
|
52
|
-
|
|
53
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js
|
|
49
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js
|
|
54
50
|
/**
|
|
55
51
|
* Used to resolve the
|
|
56
52
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
@@ -67,8 +63,7 @@
|
|
|
67
63
|
function objectToString(value) {
|
|
68
64
|
return nativeObjectToString.call(value);
|
|
69
65
|
}
|
|
70
|
-
|
|
71
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js
|
|
66
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js
|
|
72
67
|
/** `Object#toString` result references. */
|
|
73
68
|
var nullTag = "[object Null]";
|
|
74
69
|
var undefinedTag = "[object Undefined]";
|
|
@@ -85,8 +80,7 @@
|
|
|
85
80
|
if (value == null) return value === void 0 ? undefinedTag : nullTag;
|
|
86
81
|
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
87
82
|
}
|
|
88
|
-
|
|
89
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js
|
|
83
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js
|
|
90
84
|
/**
|
|
91
85
|
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
92
86
|
* and has a `typeof` result of "object".
|
|
@@ -114,8 +108,7 @@
|
|
|
114
108
|
function isObjectLike(value) {
|
|
115
109
|
return value != null && typeof value == "object";
|
|
116
110
|
}
|
|
117
|
-
|
|
118
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js
|
|
111
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js
|
|
119
112
|
/** `Object#toString` result references. */
|
|
120
113
|
var symbolTag$2 = "[object Symbol]";
|
|
121
114
|
/**
|
|
@@ -138,8 +131,7 @@
|
|
|
138
131
|
function isSymbol(value) {
|
|
139
132
|
return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag$2;
|
|
140
133
|
}
|
|
141
|
-
|
|
142
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js
|
|
134
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js
|
|
143
135
|
/**
|
|
144
136
|
* A specialized version of `_.map` for arrays without support for iteratee
|
|
145
137
|
* shorthands.
|
|
@@ -154,8 +146,7 @@
|
|
|
154
146
|
while (++index < length) result[index] = iteratee(array[index], index, array);
|
|
155
147
|
return result;
|
|
156
148
|
}
|
|
157
|
-
|
|
158
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArray.js
|
|
149
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArray.js
|
|
159
150
|
/**
|
|
160
151
|
* Checks if `value` is classified as an `Array` object.
|
|
161
152
|
*
|
|
@@ -180,8 +171,7 @@
|
|
|
180
171
|
* // => false
|
|
181
172
|
*/
|
|
182
173
|
var isArray = Array.isArray;
|
|
183
|
-
|
|
184
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js
|
|
174
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js
|
|
185
175
|
/** Used as references for various `Number` constants. */
|
|
186
176
|
var INFINITY$1 = 1 / 0;
|
|
187
177
|
/** Used to convert symbols to primitives and strings. */
|
|
@@ -202,8 +192,7 @@
|
|
|
202
192
|
var result = value + "";
|
|
203
193
|
return result == "0" && 1 / value == -INFINITY$1 ? "-0" : result;
|
|
204
194
|
}
|
|
205
|
-
|
|
206
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObject.js
|
|
195
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObject.js
|
|
207
196
|
/**
|
|
208
197
|
* Checks if `value` is the
|
|
209
198
|
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
@@ -233,8 +222,7 @@
|
|
|
233
222
|
var type = typeof value;
|
|
234
223
|
return value != null && (type == "object" || type == "function");
|
|
235
224
|
}
|
|
236
|
-
|
|
237
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js
|
|
225
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js
|
|
238
226
|
/** `Object#toString` result references. */
|
|
239
227
|
var asyncTag = "[object AsyncFunction]";
|
|
240
228
|
var funcTag$2 = "[object Function]";
|
|
@@ -262,12 +250,10 @@
|
|
|
262
250
|
var tag = baseGetTag(value);
|
|
263
251
|
return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
|
|
264
252
|
}
|
|
265
|
-
|
|
266
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js
|
|
253
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js
|
|
267
254
|
/** Used to detect overreaching core-js shims. */
|
|
268
255
|
var coreJsData = root["__core-js_shared__"];
|
|
269
|
-
|
|
270
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js
|
|
256
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js
|
|
271
257
|
/** Used to detect methods masquerading as native. */
|
|
272
258
|
var maskSrcKey = function() {
|
|
273
259
|
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
@@ -283,8 +269,7 @@
|
|
|
283
269
|
function isMasked(func) {
|
|
284
270
|
return !!maskSrcKey && maskSrcKey in func;
|
|
285
271
|
}
|
|
286
|
-
|
|
287
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js
|
|
272
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js
|
|
288
273
|
/** Used to resolve the decompiled source of functions. */
|
|
289
274
|
var funcToString$1 = Function.prototype.toString;
|
|
290
275
|
/**
|
|
@@ -305,8 +290,7 @@
|
|
|
305
290
|
}
|
|
306
291
|
return "";
|
|
307
292
|
}
|
|
308
|
-
|
|
309
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js
|
|
293
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js
|
|
310
294
|
/**
|
|
311
295
|
* Used to match `RegExp`
|
|
312
296
|
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
@@ -335,8 +319,7 @@
|
|
|
335
319
|
if (!isObject$1(value) || isMasked(value)) return false;
|
|
336
320
|
return (isFunction(value) ? reIsNative : reIsHostCtor).test(toSource(value));
|
|
337
321
|
}
|
|
338
|
-
|
|
339
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js
|
|
322
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js
|
|
340
323
|
/**
|
|
341
324
|
* Gets the value at `key` of `object`.
|
|
342
325
|
*
|
|
@@ -348,8 +331,7 @@
|
|
|
348
331
|
function getValue(object, key) {
|
|
349
332
|
return object == null ? void 0 : object[key];
|
|
350
333
|
}
|
|
351
|
-
|
|
352
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js
|
|
334
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js
|
|
353
335
|
/**
|
|
354
336
|
* Gets the native function at `key` of `object`.
|
|
355
337
|
*
|
|
@@ -362,11 +344,9 @@
|
|
|
362
344
|
var value = getValue(object, key);
|
|
363
345
|
return baseIsNative(value) ? value : void 0;
|
|
364
346
|
}
|
|
365
|
-
|
|
366
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js
|
|
347
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js
|
|
367
348
|
var WeakMap = getNative(root, "WeakMap");
|
|
368
|
-
|
|
369
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js
|
|
349
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js
|
|
370
350
|
/** Built-in value references. */
|
|
371
351
|
var objectCreate = Object.create;
|
|
372
352
|
/**
|
|
@@ -388,8 +368,7 @@
|
|
|
388
368
|
return result;
|
|
389
369
|
};
|
|
390
370
|
}();
|
|
391
|
-
|
|
392
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js
|
|
371
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js
|
|
393
372
|
/**
|
|
394
373
|
* Copies the values of `source` to `array`.
|
|
395
374
|
*
|
|
@@ -404,8 +383,7 @@
|
|
|
404
383
|
while (++index < length) array[index] = source[index];
|
|
405
384
|
return array;
|
|
406
385
|
}
|
|
407
|
-
|
|
408
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js
|
|
386
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js
|
|
409
387
|
var defineProperty = function() {
|
|
410
388
|
try {
|
|
411
389
|
var func = getNative(Object, "defineProperty");
|
|
@@ -413,8 +391,7 @@
|
|
|
413
391
|
return func;
|
|
414
392
|
} catch (e) {}
|
|
415
393
|
}();
|
|
416
|
-
|
|
417
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js
|
|
394
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js
|
|
418
395
|
/**
|
|
419
396
|
* A specialized version of `_.forEach` for arrays without support for
|
|
420
397
|
* iteratee shorthands.
|
|
@@ -429,8 +406,7 @@
|
|
|
429
406
|
while (++index < length) if (iteratee(array[index], index, array) === false) break;
|
|
430
407
|
return array;
|
|
431
408
|
}
|
|
432
|
-
|
|
433
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js
|
|
409
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js
|
|
434
410
|
/** Used as references for various `Number` constants. */
|
|
435
411
|
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
436
412
|
/** Used to detect unsigned integer values. */
|
|
@@ -448,8 +424,7 @@
|
|
|
448
424
|
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
449
425
|
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
|
|
450
426
|
}
|
|
451
|
-
|
|
452
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js
|
|
427
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js
|
|
453
428
|
/**
|
|
454
429
|
* The base implementation of `assignValue` and `assignMergeValue` without
|
|
455
430
|
* value checks.
|
|
@@ -468,8 +443,7 @@
|
|
|
468
443
|
});
|
|
469
444
|
else object[key] = value;
|
|
470
445
|
}
|
|
471
|
-
|
|
472
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/eq.js
|
|
446
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/eq.js
|
|
473
447
|
/**
|
|
474
448
|
* Performs a
|
|
475
449
|
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
@@ -505,8 +479,7 @@
|
|
|
505
479
|
function eq(value, other) {
|
|
506
480
|
return value === other || value !== value && other !== other;
|
|
507
481
|
}
|
|
508
|
-
|
|
509
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js
|
|
482
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js
|
|
510
483
|
/** Used to check objects for own properties. */
|
|
511
484
|
var hasOwnProperty$7 = Object.prototype.hasOwnProperty;
|
|
512
485
|
/**
|
|
@@ -523,8 +496,7 @@
|
|
|
523
496
|
var objValue = object[key];
|
|
524
497
|
if (!(hasOwnProperty$7.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) baseAssignValue(object, key, value);
|
|
525
498
|
}
|
|
526
|
-
|
|
527
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js
|
|
499
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js
|
|
528
500
|
/**
|
|
529
501
|
* Copies properties of `source` to `object`.
|
|
530
502
|
*
|
|
@@ -548,8 +520,7 @@
|
|
|
548
520
|
}
|
|
549
521
|
return object;
|
|
550
522
|
}
|
|
551
|
-
|
|
552
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isLength.js
|
|
523
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isLength.js
|
|
553
524
|
/** Used as references for various `Number` constants. */
|
|
554
525
|
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
555
526
|
/**
|
|
@@ -581,8 +552,7 @@
|
|
|
581
552
|
function isLength(value) {
|
|
582
553
|
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
583
554
|
}
|
|
584
|
-
|
|
585
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js
|
|
555
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js
|
|
586
556
|
/**
|
|
587
557
|
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
588
558
|
* not a function and has a `value.length` that's an integer greater than or
|
|
@@ -611,8 +581,7 @@
|
|
|
611
581
|
function isArrayLike(value) {
|
|
612
582
|
return value != null && isLength(value.length) && !isFunction(value);
|
|
613
583
|
}
|
|
614
|
-
|
|
615
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js
|
|
584
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js
|
|
616
585
|
/** Used for built-in method references. */
|
|
617
586
|
var objectProto$1 = Object.prototype;
|
|
618
587
|
/**
|
|
@@ -626,8 +595,7 @@
|
|
|
626
595
|
var Ctor = value && value.constructor;
|
|
627
596
|
return value === (typeof Ctor == "function" && Ctor.prototype || objectProto$1);
|
|
628
597
|
}
|
|
629
|
-
|
|
630
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js
|
|
598
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js
|
|
631
599
|
/**
|
|
632
600
|
* The base implementation of `_.times` without support for iteratee shorthands
|
|
633
601
|
* or max array length checks.
|
|
@@ -642,8 +610,7 @@
|
|
|
642
610
|
while (++index < n) result[index] = iteratee(index);
|
|
643
611
|
return result;
|
|
644
612
|
}
|
|
645
|
-
|
|
646
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js
|
|
613
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js
|
|
647
614
|
/** `Object#toString` result references. */
|
|
648
615
|
var argsTag$2 = "[object Arguments]";
|
|
649
616
|
/**
|
|
@@ -656,8 +623,7 @@
|
|
|
656
623
|
function baseIsArguments(value) {
|
|
657
624
|
return isObjectLike(value) && baseGetTag(value) == argsTag$2;
|
|
658
625
|
}
|
|
659
|
-
|
|
660
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js
|
|
626
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js
|
|
661
627
|
/** Used for built-in method references. */
|
|
662
628
|
var objectProto = Object.prototype;
|
|
663
629
|
/** Used to check objects for own properties. */
|
|
@@ -687,8 +653,7 @@
|
|
|
687
653
|
}()) ? baseIsArguments : function(value) {
|
|
688
654
|
return isObjectLike(value) && hasOwnProperty$6.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
689
655
|
};
|
|
690
|
-
|
|
691
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js
|
|
656
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js
|
|
692
657
|
/**
|
|
693
658
|
* This method returns `false`.
|
|
694
659
|
*
|
|
@@ -705,8 +670,7 @@
|
|
|
705
670
|
function stubFalse() {
|
|
706
671
|
return false;
|
|
707
672
|
}
|
|
708
|
-
|
|
709
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js
|
|
673
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js
|
|
710
674
|
/** Detect free variable `exports`. */
|
|
711
675
|
var freeExports$2 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
712
676
|
/** Detect free variable `module`. */
|
|
@@ -731,8 +695,7 @@
|
|
|
731
695
|
* // => false
|
|
732
696
|
*/
|
|
733
697
|
var isBuffer = (Buffer$1 ? Buffer$1.isBuffer : void 0) || stubFalse;
|
|
734
|
-
|
|
735
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js
|
|
698
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js
|
|
736
699
|
/** `Object#toString` result references. */
|
|
737
700
|
var argsTag$1 = "[object Arguments]";
|
|
738
701
|
var arrayTag$1 = "[object Array]";
|
|
@@ -772,8 +735,7 @@
|
|
|
772
735
|
function baseIsTypedArray(value) {
|
|
773
736
|
return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
774
737
|
}
|
|
775
|
-
|
|
776
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js
|
|
738
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js
|
|
777
739
|
/**
|
|
778
740
|
* The base implementation of `_.unary` without support for storing metadata.
|
|
779
741
|
*
|
|
@@ -786,8 +748,7 @@
|
|
|
786
748
|
return func(value);
|
|
787
749
|
};
|
|
788
750
|
}
|
|
789
|
-
|
|
790
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js
|
|
751
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js
|
|
791
752
|
/** Detect free variable `exports`. */
|
|
792
753
|
var freeExports$1 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
793
754
|
/** Detect free variable `module`. */
|
|
@@ -802,8 +763,7 @@
|
|
|
802
763
|
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
803
764
|
} catch (e) {}
|
|
804
765
|
}();
|
|
805
|
-
|
|
806
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js
|
|
766
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js
|
|
807
767
|
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
808
768
|
/**
|
|
809
769
|
* Checks if `value` is classified as a typed array.
|
|
@@ -823,8 +783,7 @@
|
|
|
823
783
|
* // => false
|
|
824
784
|
*/
|
|
825
785
|
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
826
|
-
|
|
827
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js
|
|
786
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js
|
|
828
787
|
/** Used to check objects for own properties. */
|
|
829
788
|
var hasOwnProperty$5 = Object.prototype.hasOwnProperty;
|
|
830
789
|
/**
|
|
@@ -840,8 +799,7 @@
|
|
|
840
799
|
for (var key in value) if ((inherited || hasOwnProperty$5.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) result.push(key);
|
|
841
800
|
return result;
|
|
842
801
|
}
|
|
843
|
-
|
|
844
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js
|
|
802
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js
|
|
845
803
|
/**
|
|
846
804
|
* Creates a unary function that invokes `func` with its argument transformed.
|
|
847
805
|
*
|
|
@@ -855,11 +813,9 @@
|
|
|
855
813
|
return func(transform(arg));
|
|
856
814
|
};
|
|
857
815
|
}
|
|
858
|
-
|
|
859
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js
|
|
816
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js
|
|
860
817
|
var nativeKeys = overArg(Object.keys, Object);
|
|
861
|
-
|
|
862
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js
|
|
818
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js
|
|
863
819
|
/** Used to check objects for own properties. */
|
|
864
820
|
var hasOwnProperty$4 = Object.prototype.hasOwnProperty;
|
|
865
821
|
/**
|
|
@@ -875,8 +831,7 @@
|
|
|
875
831
|
for (var key in Object(object)) if (hasOwnProperty$4.call(object, key) && key != "constructor") result.push(key);
|
|
876
832
|
return result;
|
|
877
833
|
}
|
|
878
|
-
|
|
879
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keys.js
|
|
834
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keys.js
|
|
880
835
|
/**
|
|
881
836
|
* Creates an array of the own enumerable property names of `object`.
|
|
882
837
|
*
|
|
@@ -908,8 +863,7 @@
|
|
|
908
863
|
function keys(object) {
|
|
909
864
|
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
910
865
|
}
|
|
911
|
-
|
|
912
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js
|
|
866
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js
|
|
913
867
|
/**
|
|
914
868
|
* This function is like
|
|
915
869
|
* [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
@@ -924,8 +878,7 @@
|
|
|
924
878
|
if (object != null) for (var key in Object(object)) result.push(key);
|
|
925
879
|
return result;
|
|
926
880
|
}
|
|
927
|
-
|
|
928
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js
|
|
881
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js
|
|
929
882
|
/** Used to check objects for own properties. */
|
|
930
883
|
var hasOwnProperty$3 = Object.prototype.hasOwnProperty;
|
|
931
884
|
/**
|
|
@@ -941,8 +894,7 @@
|
|
|
941
894
|
for (var key in object) if (!(key == "constructor" && (isProto || !hasOwnProperty$3.call(object, key)))) result.push(key);
|
|
942
895
|
return result;
|
|
943
896
|
}
|
|
944
|
-
|
|
945
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js
|
|
897
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js
|
|
946
898
|
/**
|
|
947
899
|
* Creates an array of the own and inherited enumerable property names of `object`.
|
|
948
900
|
*
|
|
@@ -969,8 +921,7 @@
|
|
|
969
921
|
function keysIn(object) {
|
|
970
922
|
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
971
923
|
}
|
|
972
|
-
|
|
973
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js
|
|
924
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js
|
|
974
925
|
/** Used to match property names within property paths. */
|
|
975
926
|
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
|
|
976
927
|
var reIsPlainProp = /^\w*$/;
|
|
@@ -988,11 +939,9 @@
|
|
|
988
939
|
if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol(value)) return true;
|
|
989
940
|
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
|
|
990
941
|
}
|
|
991
|
-
|
|
992
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js
|
|
942
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js
|
|
993
943
|
var nativeCreate = getNative(Object, "create");
|
|
994
|
-
|
|
995
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js
|
|
944
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js
|
|
996
945
|
/**
|
|
997
946
|
* Removes all key-value entries from the hash.
|
|
998
947
|
*
|
|
@@ -1004,8 +953,7 @@
|
|
|
1004
953
|
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
1005
954
|
this.size = 0;
|
|
1006
955
|
}
|
|
1007
|
-
|
|
1008
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js
|
|
956
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js
|
|
1009
957
|
/**
|
|
1010
958
|
* Removes `key` and its value from the hash.
|
|
1011
959
|
*
|
|
@@ -1021,8 +969,7 @@
|
|
|
1021
969
|
this.size -= result ? 1 : 0;
|
|
1022
970
|
return result;
|
|
1023
971
|
}
|
|
1024
|
-
|
|
1025
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js
|
|
972
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js
|
|
1026
973
|
/** Used to stand-in for `undefined` hash values. */
|
|
1027
974
|
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
1028
975
|
/** Used to check objects for own properties. */
|
|
@@ -1044,8 +991,7 @@
|
|
|
1044
991
|
}
|
|
1045
992
|
return hasOwnProperty$2.call(data, key) ? data[key] : void 0;
|
|
1046
993
|
}
|
|
1047
|
-
|
|
1048
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js
|
|
994
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js
|
|
1049
995
|
/** Used to check objects for own properties. */
|
|
1050
996
|
var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
1051
997
|
/**
|
|
@@ -1061,8 +1007,7 @@
|
|
|
1061
1007
|
var data = this.__data__;
|
|
1062
1008
|
return nativeCreate ? data[key] !== void 0 : hasOwnProperty$1.call(data, key);
|
|
1063
1009
|
}
|
|
1064
|
-
|
|
1065
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js
|
|
1010
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js
|
|
1066
1011
|
/** Used to stand-in for `undefined` hash values. */
|
|
1067
1012
|
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
1068
1013
|
/**
|
|
@@ -1081,8 +1026,7 @@
|
|
|
1081
1026
|
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
|
|
1082
1027
|
return this;
|
|
1083
1028
|
}
|
|
1084
|
-
|
|
1085
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js
|
|
1029
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js
|
|
1086
1030
|
/**
|
|
1087
1031
|
* Creates a hash object.
|
|
1088
1032
|
*
|
|
@@ -1103,8 +1047,7 @@
|
|
|
1103
1047
|
Hash.prototype.get = hashGet;
|
|
1104
1048
|
Hash.prototype.has = hashHas;
|
|
1105
1049
|
Hash.prototype.set = hashSet;
|
|
1106
|
-
|
|
1107
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js
|
|
1050
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js
|
|
1108
1051
|
/**
|
|
1109
1052
|
* Removes all key-value entries from the list cache.
|
|
1110
1053
|
*
|
|
@@ -1116,8 +1059,7 @@
|
|
|
1116
1059
|
this.__data__ = [];
|
|
1117
1060
|
this.size = 0;
|
|
1118
1061
|
}
|
|
1119
|
-
|
|
1120
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js
|
|
1062
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js
|
|
1121
1063
|
/**
|
|
1122
1064
|
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
1123
1065
|
*
|
|
@@ -1131,8 +1073,7 @@
|
|
|
1131
1073
|
while (length--) if (eq(array[length][0], key)) return length;
|
|
1132
1074
|
return -1;
|
|
1133
1075
|
}
|
|
1134
|
-
|
|
1135
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js
|
|
1076
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js
|
|
1136
1077
|
/** Built-in value references. */
|
|
1137
1078
|
var splice = Array.prototype.splice;
|
|
1138
1079
|
/**
|
|
@@ -1152,8 +1093,7 @@
|
|
|
1152
1093
|
--this.size;
|
|
1153
1094
|
return true;
|
|
1154
1095
|
}
|
|
1155
|
-
|
|
1156
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js
|
|
1096
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js
|
|
1157
1097
|
/**
|
|
1158
1098
|
* Gets the list cache value for `key`.
|
|
1159
1099
|
*
|
|
@@ -1167,8 +1107,7 @@
|
|
|
1167
1107
|
var data = this.__data__, index = assocIndexOf(data, key);
|
|
1168
1108
|
return index < 0 ? void 0 : data[index][1];
|
|
1169
1109
|
}
|
|
1170
|
-
|
|
1171
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js
|
|
1110
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js
|
|
1172
1111
|
/**
|
|
1173
1112
|
* Checks if a list cache value for `key` exists.
|
|
1174
1113
|
*
|
|
@@ -1181,8 +1120,7 @@
|
|
|
1181
1120
|
function listCacheHas(key) {
|
|
1182
1121
|
return assocIndexOf(this.__data__, key) > -1;
|
|
1183
1122
|
}
|
|
1184
|
-
|
|
1185
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js
|
|
1123
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js
|
|
1186
1124
|
/**
|
|
1187
1125
|
* Sets the list cache `key` to `value`.
|
|
1188
1126
|
*
|
|
@@ -1201,8 +1139,7 @@
|
|
|
1201
1139
|
} else data[index][1] = value;
|
|
1202
1140
|
return this;
|
|
1203
1141
|
}
|
|
1204
|
-
|
|
1205
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js
|
|
1142
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js
|
|
1206
1143
|
/**
|
|
1207
1144
|
* Creates an list cache object.
|
|
1208
1145
|
*
|
|
@@ -1223,11 +1160,9 @@
|
|
|
1223
1160
|
ListCache.prototype.get = listCacheGet;
|
|
1224
1161
|
ListCache.prototype.has = listCacheHas;
|
|
1225
1162
|
ListCache.prototype.set = listCacheSet;
|
|
1226
|
-
|
|
1227
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Map.js
|
|
1163
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Map.js
|
|
1228
1164
|
var Map$1 = getNative(root, "Map");
|
|
1229
|
-
|
|
1230
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js
|
|
1165
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js
|
|
1231
1166
|
/**
|
|
1232
1167
|
* Removes all key-value entries from the map.
|
|
1233
1168
|
*
|
|
@@ -1243,8 +1178,7 @@
|
|
|
1243
1178
|
"string": new Hash()
|
|
1244
1179
|
};
|
|
1245
1180
|
}
|
|
1246
|
-
|
|
1247
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js
|
|
1181
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js
|
|
1248
1182
|
/**
|
|
1249
1183
|
* Checks if `value` is suitable for use as unique object key.
|
|
1250
1184
|
*
|
|
@@ -1256,8 +1190,7 @@
|
|
|
1256
1190
|
var type = typeof value;
|
|
1257
1191
|
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
1258
1192
|
}
|
|
1259
|
-
|
|
1260
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js
|
|
1193
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js
|
|
1261
1194
|
/**
|
|
1262
1195
|
* Gets the data for `map`.
|
|
1263
1196
|
*
|
|
@@ -1270,8 +1203,7 @@
|
|
|
1270
1203
|
var data = map.__data__;
|
|
1271
1204
|
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
1272
1205
|
}
|
|
1273
|
-
|
|
1274
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js
|
|
1206
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js
|
|
1275
1207
|
/**
|
|
1276
1208
|
* Removes `key` and its value from the map.
|
|
1277
1209
|
*
|
|
@@ -1286,8 +1218,7 @@
|
|
|
1286
1218
|
this.size -= result ? 1 : 0;
|
|
1287
1219
|
return result;
|
|
1288
1220
|
}
|
|
1289
|
-
|
|
1290
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js
|
|
1221
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js
|
|
1291
1222
|
/**
|
|
1292
1223
|
* Gets the map value for `key`.
|
|
1293
1224
|
*
|
|
@@ -1300,8 +1231,7 @@
|
|
|
1300
1231
|
function mapCacheGet(key) {
|
|
1301
1232
|
return getMapData(this, key).get(key);
|
|
1302
1233
|
}
|
|
1303
|
-
|
|
1304
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js
|
|
1234
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js
|
|
1305
1235
|
/**
|
|
1306
1236
|
* Checks if a map value for `key` exists.
|
|
1307
1237
|
*
|
|
@@ -1314,8 +1244,7 @@
|
|
|
1314
1244
|
function mapCacheHas(key) {
|
|
1315
1245
|
return getMapData(this, key).has(key);
|
|
1316
1246
|
}
|
|
1317
|
-
|
|
1318
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js
|
|
1247
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js
|
|
1319
1248
|
/**
|
|
1320
1249
|
* Sets the map `key` to `value`.
|
|
1321
1250
|
*
|
|
@@ -1332,8 +1261,7 @@
|
|
|
1332
1261
|
this.size += data.size == size ? 0 : 1;
|
|
1333
1262
|
return this;
|
|
1334
1263
|
}
|
|
1335
|
-
|
|
1336
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js
|
|
1264
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js
|
|
1337
1265
|
/**
|
|
1338
1266
|
* Creates a map cache object to store key-value pairs.
|
|
1339
1267
|
*
|
|
@@ -1354,8 +1282,7 @@
|
|
|
1354
1282
|
MapCache.prototype.get = mapCacheGet;
|
|
1355
1283
|
MapCache.prototype.has = mapCacheHas;
|
|
1356
1284
|
MapCache.prototype.set = mapCacheSet;
|
|
1357
|
-
|
|
1358
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/memoize.js
|
|
1285
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/memoize.js
|
|
1359
1286
|
/** Error message constants. */
|
|
1360
1287
|
var FUNC_ERROR_TEXT = "Expected a function";
|
|
1361
1288
|
/**
|
|
@@ -1415,8 +1342,7 @@
|
|
|
1415
1342
|
return memoized;
|
|
1416
1343
|
}
|
|
1417
1344
|
memoize.Cache = MapCache;
|
|
1418
|
-
|
|
1419
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js
|
|
1345
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js
|
|
1420
1346
|
/** Used as the maximum memoize cache size. */
|
|
1421
1347
|
var MAX_MEMOIZE_SIZE = 500;
|
|
1422
1348
|
/**
|
|
@@ -1435,8 +1361,7 @@
|
|
|
1435
1361
|
var cache = result.cache;
|
|
1436
1362
|
return result;
|
|
1437
1363
|
}
|
|
1438
|
-
|
|
1439
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js
|
|
1364
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js
|
|
1440
1365
|
/** Used to match property names within property paths. */
|
|
1441
1366
|
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
1442
1367
|
/** Used to match backslashes in property paths. */
|
|
@@ -1456,8 +1381,7 @@
|
|
|
1456
1381
|
});
|
|
1457
1382
|
return result;
|
|
1458
1383
|
});
|
|
1459
|
-
|
|
1460
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toString.js
|
|
1384
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toString.js
|
|
1461
1385
|
/**
|
|
1462
1386
|
* Converts `value` to a string. An empty string is returned for `null`
|
|
1463
1387
|
* and `undefined` values. The sign of `-0` is preserved.
|
|
@@ -1482,8 +1406,7 @@
|
|
|
1482
1406
|
function toString(value) {
|
|
1483
1407
|
return value == null ? "" : baseToString(value);
|
|
1484
1408
|
}
|
|
1485
|
-
|
|
1486
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js
|
|
1409
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js
|
|
1487
1410
|
/**
|
|
1488
1411
|
* Casts `value` to a path array if it's not one.
|
|
1489
1412
|
*
|
|
@@ -1496,8 +1419,7 @@
|
|
|
1496
1419
|
if (isArray(value)) return value;
|
|
1497
1420
|
return isKey(value, object) ? [value] : stringToPath(toString(value));
|
|
1498
1421
|
}
|
|
1499
|
-
|
|
1500
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js
|
|
1422
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js
|
|
1501
1423
|
/** Used as references for various `Number` constants. */
|
|
1502
1424
|
var INFINITY = 1 / 0;
|
|
1503
1425
|
/**
|
|
@@ -1512,8 +1434,7 @@
|
|
|
1512
1434
|
var result = value + "";
|
|
1513
1435
|
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
|
|
1514
1436
|
}
|
|
1515
|
-
|
|
1516
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js
|
|
1437
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js
|
|
1517
1438
|
/**
|
|
1518
1439
|
* The base implementation of `_.get` without support for default values.
|
|
1519
1440
|
*
|
|
@@ -1528,8 +1449,7 @@
|
|
|
1528
1449
|
while (object != null && index < length) object = object[toKey(path[index++])];
|
|
1529
1450
|
return index && index == length ? object : void 0;
|
|
1530
1451
|
}
|
|
1531
|
-
|
|
1532
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/get.js
|
|
1452
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/get.js
|
|
1533
1453
|
/**
|
|
1534
1454
|
* Gets the value at `path` of `object`. If the resolved value is
|
|
1535
1455
|
* `undefined`, the `defaultValue` is returned in its place.
|
|
@@ -1559,8 +1479,7 @@
|
|
|
1559
1479
|
var result = object == null ? void 0 : baseGet(object, path);
|
|
1560
1480
|
return result === void 0 ? defaultValue : result;
|
|
1561
1481
|
}
|
|
1562
|
-
|
|
1563
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js
|
|
1482
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js
|
|
1564
1483
|
/**
|
|
1565
1484
|
* Appends the elements of `values` to `array`.
|
|
1566
1485
|
*
|
|
@@ -1574,12 +1493,10 @@
|
|
|
1574
1493
|
while (++index < length) array[offset + index] = values[index];
|
|
1575
1494
|
return array;
|
|
1576
1495
|
}
|
|
1577
|
-
|
|
1578
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js
|
|
1496
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js
|
|
1579
1497
|
/** Built-in value references. */
|
|
1580
1498
|
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
1581
|
-
|
|
1582
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js
|
|
1499
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js
|
|
1583
1500
|
/**
|
|
1584
1501
|
* Removes all key-value entries from the stack.
|
|
1585
1502
|
*
|
|
@@ -1591,8 +1508,7 @@
|
|
|
1591
1508
|
this.__data__ = new ListCache();
|
|
1592
1509
|
this.size = 0;
|
|
1593
1510
|
}
|
|
1594
|
-
|
|
1595
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js
|
|
1511
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js
|
|
1596
1512
|
/**
|
|
1597
1513
|
* Removes `key` and its value from the stack.
|
|
1598
1514
|
*
|
|
@@ -1607,8 +1523,7 @@
|
|
|
1607
1523
|
this.size = data.size;
|
|
1608
1524
|
return result;
|
|
1609
1525
|
}
|
|
1610
|
-
|
|
1611
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js
|
|
1526
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js
|
|
1612
1527
|
/**
|
|
1613
1528
|
* Gets the stack value for `key`.
|
|
1614
1529
|
*
|
|
@@ -1621,8 +1536,7 @@
|
|
|
1621
1536
|
function stackGet(key) {
|
|
1622
1537
|
return this.__data__.get(key);
|
|
1623
1538
|
}
|
|
1624
|
-
|
|
1625
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js
|
|
1539
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js
|
|
1626
1540
|
/**
|
|
1627
1541
|
* Checks if a stack value for `key` exists.
|
|
1628
1542
|
*
|
|
@@ -1635,8 +1549,7 @@
|
|
|
1635
1549
|
function stackHas(key) {
|
|
1636
1550
|
return this.__data__.has(key);
|
|
1637
1551
|
}
|
|
1638
|
-
|
|
1639
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js
|
|
1552
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js
|
|
1640
1553
|
/** Used as the size to enable large array optimizations. */
|
|
1641
1554
|
var LARGE_ARRAY_SIZE = 200;
|
|
1642
1555
|
/**
|
|
@@ -1664,8 +1577,7 @@
|
|
|
1664
1577
|
this.size = data.size;
|
|
1665
1578
|
return this;
|
|
1666
1579
|
}
|
|
1667
|
-
|
|
1668
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js
|
|
1580
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js
|
|
1669
1581
|
/**
|
|
1670
1582
|
* Creates a stack cache object to store key-value pairs.
|
|
1671
1583
|
*
|
|
@@ -1682,8 +1594,7 @@
|
|
|
1682
1594
|
Stack.prototype.get = stackGet;
|
|
1683
1595
|
Stack.prototype.has = stackHas;
|
|
1684
1596
|
Stack.prototype.set = stackSet;
|
|
1685
|
-
|
|
1686
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js
|
|
1597
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js
|
|
1687
1598
|
/**
|
|
1688
1599
|
* The base implementation of `_.assign` without support for multiple sources
|
|
1689
1600
|
* or `customizer` functions.
|
|
@@ -1696,8 +1607,7 @@
|
|
|
1696
1607
|
function baseAssign(object, source) {
|
|
1697
1608
|
return object && copyObject(source, keys(source), object);
|
|
1698
1609
|
}
|
|
1699
|
-
|
|
1700
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js
|
|
1610
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js
|
|
1701
1611
|
/**
|
|
1702
1612
|
* The base implementation of `_.assignIn` without support for multiple sources
|
|
1703
1613
|
* or `customizer` functions.
|
|
@@ -1710,8 +1620,7 @@
|
|
|
1710
1620
|
function baseAssignIn(object, source) {
|
|
1711
1621
|
return object && copyObject(source, keysIn(source), object);
|
|
1712
1622
|
}
|
|
1713
|
-
|
|
1714
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js
|
|
1623
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js
|
|
1715
1624
|
/** Detect free variable `exports`. */
|
|
1716
1625
|
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
1717
1626
|
/** Detect free variable `module`. */
|
|
@@ -1733,8 +1642,7 @@
|
|
|
1733
1642
|
buffer.copy(result);
|
|
1734
1643
|
return result;
|
|
1735
1644
|
}
|
|
1736
|
-
|
|
1737
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js
|
|
1645
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js
|
|
1738
1646
|
/**
|
|
1739
1647
|
* A specialized version of `_.filter` for arrays without support for
|
|
1740
1648
|
* iteratee shorthands.
|
|
@@ -1752,8 +1660,7 @@
|
|
|
1752
1660
|
}
|
|
1753
1661
|
return result;
|
|
1754
1662
|
}
|
|
1755
|
-
|
|
1756
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js
|
|
1663
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js
|
|
1757
1664
|
/**
|
|
1758
1665
|
* This method returns a new empty array.
|
|
1759
1666
|
*
|
|
@@ -1775,8 +1682,7 @@
|
|
|
1775
1682
|
function stubArray() {
|
|
1776
1683
|
return [];
|
|
1777
1684
|
}
|
|
1778
|
-
|
|
1779
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js
|
|
1685
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js
|
|
1780
1686
|
/** Built-in value references. */
|
|
1781
1687
|
var propertyIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
1782
1688
|
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
@@ -1794,8 +1700,7 @@
|
|
|
1794
1700
|
return propertyIsEnumerable.call(object, symbol);
|
|
1795
1701
|
});
|
|
1796
1702
|
};
|
|
1797
|
-
|
|
1798
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js
|
|
1703
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js
|
|
1799
1704
|
/**
|
|
1800
1705
|
* Copies own symbols of `source` to `object`.
|
|
1801
1706
|
*
|
|
@@ -1807,8 +1712,7 @@
|
|
|
1807
1712
|
function copySymbols(source, object) {
|
|
1808
1713
|
return copyObject(source, getSymbols(source), object);
|
|
1809
1714
|
}
|
|
1810
|
-
|
|
1811
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js
|
|
1715
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js
|
|
1812
1716
|
/**
|
|
1813
1717
|
* Creates an array of the own and inherited enumerable symbols of `object`.
|
|
1814
1718
|
*
|
|
@@ -1824,8 +1728,7 @@
|
|
|
1824
1728
|
}
|
|
1825
1729
|
return result;
|
|
1826
1730
|
};
|
|
1827
|
-
|
|
1828
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js
|
|
1731
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js
|
|
1829
1732
|
/**
|
|
1830
1733
|
* Copies own and inherited symbols of `source` to `object`.
|
|
1831
1734
|
*
|
|
@@ -1837,8 +1740,7 @@
|
|
|
1837
1740
|
function copySymbolsIn(source, object) {
|
|
1838
1741
|
return copyObject(source, getSymbolsIn(source), object);
|
|
1839
1742
|
}
|
|
1840
|
-
|
|
1841
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js
|
|
1743
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js
|
|
1842
1744
|
/**
|
|
1843
1745
|
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
|
|
1844
1746
|
* `keysFunc` and `symbolsFunc` to get the enumerable property names and
|
|
@@ -1854,8 +1756,7 @@
|
|
|
1854
1756
|
var result = keysFunc(object);
|
|
1855
1757
|
return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
1856
1758
|
}
|
|
1857
|
-
|
|
1858
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js
|
|
1759
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js
|
|
1859
1760
|
/**
|
|
1860
1761
|
* Creates an array of own enumerable property names and symbols of `object`.
|
|
1861
1762
|
*
|
|
@@ -1866,8 +1767,7 @@
|
|
|
1866
1767
|
function getAllKeys(object) {
|
|
1867
1768
|
return baseGetAllKeys(object, keys, getSymbols);
|
|
1868
1769
|
}
|
|
1869
|
-
|
|
1870
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js
|
|
1770
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js
|
|
1871
1771
|
/**
|
|
1872
1772
|
* Creates an array of own and inherited enumerable property names and
|
|
1873
1773
|
* symbols of `object`.
|
|
@@ -1879,17 +1779,13 @@
|
|
|
1879
1779
|
function getAllKeysIn(object) {
|
|
1880
1780
|
return baseGetAllKeys(object, keysIn, getSymbolsIn);
|
|
1881
1781
|
}
|
|
1882
|
-
|
|
1883
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js
|
|
1782
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js
|
|
1884
1783
|
var DataView = getNative(root, "DataView");
|
|
1885
|
-
|
|
1886
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js
|
|
1784
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js
|
|
1887
1785
|
var Promise$1 = getNative(root, "Promise");
|
|
1888
|
-
|
|
1889
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Set.js
|
|
1786
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Set.js
|
|
1890
1787
|
var Set$1 = getNative(root, "Set");
|
|
1891
|
-
|
|
1892
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js
|
|
1788
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js
|
|
1893
1789
|
/** `Object#toString` result references. */
|
|
1894
1790
|
var mapTag$3 = "[object Map]";
|
|
1895
1791
|
var objectTag$1 = "[object Object]";
|
|
@@ -1923,8 +1819,7 @@
|
|
|
1923
1819
|
return result;
|
|
1924
1820
|
};
|
|
1925
1821
|
var _getTag_default = getTag;
|
|
1926
|
-
|
|
1927
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js
|
|
1822
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js
|
|
1928
1823
|
/** Used to check objects for own properties. */
|
|
1929
1824
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
1930
1825
|
/**
|
|
@@ -1942,12 +1837,10 @@
|
|
|
1942
1837
|
}
|
|
1943
1838
|
return result;
|
|
1944
1839
|
}
|
|
1945
|
-
|
|
1946
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js
|
|
1840
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js
|
|
1947
1841
|
/** Built-in value references. */
|
|
1948
1842
|
var Uint8Array = root.Uint8Array;
|
|
1949
|
-
|
|
1950
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js
|
|
1843
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js
|
|
1951
1844
|
/**
|
|
1952
1845
|
* Creates a clone of `arrayBuffer`.
|
|
1953
1846
|
*
|
|
@@ -1960,8 +1853,7 @@
|
|
|
1960
1853
|
new Uint8Array(result).set(new Uint8Array(arrayBuffer));
|
|
1961
1854
|
return result;
|
|
1962
1855
|
}
|
|
1963
|
-
|
|
1964
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js
|
|
1856
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js
|
|
1965
1857
|
/**
|
|
1966
1858
|
* Creates a clone of `dataView`.
|
|
1967
1859
|
*
|
|
@@ -1974,8 +1866,7 @@
|
|
|
1974
1866
|
var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
|
|
1975
1867
|
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
|
1976
1868
|
}
|
|
1977
|
-
|
|
1978
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js
|
|
1869
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js
|
|
1979
1870
|
/** Used to match `RegExp` flags from their coerced string values. */
|
|
1980
1871
|
var reFlags = /\w*$/;
|
|
1981
1872
|
/**
|
|
@@ -1990,8 +1881,7 @@
|
|
|
1990
1881
|
result.lastIndex = regexp.lastIndex;
|
|
1991
1882
|
return result;
|
|
1992
1883
|
}
|
|
1993
|
-
|
|
1994
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js
|
|
1884
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js
|
|
1995
1885
|
/** Used to convert symbols to primitives and strings. */
|
|
1996
1886
|
var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0;
|
|
1997
1887
|
var symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
@@ -2005,8 +1895,7 @@
|
|
|
2005
1895
|
function cloneSymbol(symbol) {
|
|
2006
1896
|
return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
|
|
2007
1897
|
}
|
|
2008
|
-
|
|
2009
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js
|
|
1898
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js
|
|
2010
1899
|
/**
|
|
2011
1900
|
* Creates a clone of `typedArray`.
|
|
2012
1901
|
*
|
|
@@ -2019,8 +1908,7 @@
|
|
|
2019
1908
|
var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
|
|
2020
1909
|
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
2021
1910
|
}
|
|
2022
|
-
|
|
2023
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js
|
|
1911
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js
|
|
2024
1912
|
/** `Object#toString` result references. */
|
|
2025
1913
|
var boolTag$1 = "[object Boolean]";
|
|
2026
1914
|
var dateTag$1 = "[object Date]";
|
|
@@ -2077,8 +1965,7 @@
|
|
|
2077
1965
|
case symbolTag$1: return cloneSymbol(object);
|
|
2078
1966
|
}
|
|
2079
1967
|
}
|
|
2080
|
-
|
|
2081
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js
|
|
1968
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js
|
|
2082
1969
|
/**
|
|
2083
1970
|
* Initializes an object clone.
|
|
2084
1971
|
*
|
|
@@ -2089,8 +1976,7 @@
|
|
|
2089
1976
|
function initCloneObject(object) {
|
|
2090
1977
|
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
|
|
2091
1978
|
}
|
|
2092
|
-
|
|
2093
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js
|
|
1979
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js
|
|
2094
1980
|
/** `Object#toString` result references. */
|
|
2095
1981
|
var mapTag$1 = "[object Map]";
|
|
2096
1982
|
/**
|
|
@@ -2103,8 +1989,7 @@
|
|
|
2103
1989
|
function baseIsMap(value) {
|
|
2104
1990
|
return isObjectLike(value) && _getTag_default(value) == mapTag$1;
|
|
2105
1991
|
}
|
|
2106
|
-
|
|
2107
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isMap.js
|
|
1992
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isMap.js
|
|
2108
1993
|
var nodeIsMap = nodeUtil && nodeUtil.isMap;
|
|
2109
1994
|
/**
|
|
2110
1995
|
* Checks if `value` is classified as a `Map` object.
|
|
@@ -2124,8 +2009,7 @@
|
|
|
2124
2009
|
* // => false
|
|
2125
2010
|
*/
|
|
2126
2011
|
var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
|
|
2127
|
-
|
|
2128
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js
|
|
2012
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js
|
|
2129
2013
|
/** `Object#toString` result references. */
|
|
2130
2014
|
var setTag$1 = "[object Set]";
|
|
2131
2015
|
/**
|
|
@@ -2138,8 +2022,7 @@
|
|
|
2138
2022
|
function baseIsSet(value) {
|
|
2139
2023
|
return isObjectLike(value) && _getTag_default(value) == setTag$1;
|
|
2140
2024
|
}
|
|
2141
|
-
|
|
2142
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSet.js
|
|
2025
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSet.js
|
|
2143
2026
|
var nodeIsSet = nodeUtil && nodeUtil.isSet;
|
|
2144
2027
|
/**
|
|
2145
2028
|
* Checks if `value` is classified as a `Set` object.
|
|
@@ -2159,8 +2042,7 @@
|
|
|
2159
2042
|
* // => false
|
|
2160
2043
|
*/
|
|
2161
2044
|
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
2162
|
-
|
|
2163
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js
|
|
2045
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js
|
|
2164
2046
|
/** Used to compose bitmasks for cloning. */
|
|
2165
2047
|
var CLONE_DEEP_FLAG$1 = 1;
|
|
2166
2048
|
var CLONE_FLAT_FLAG = 2;
|
|
@@ -2252,8 +2134,7 @@
|
|
|
2252
2134
|
});
|
|
2253
2135
|
return result;
|
|
2254
2136
|
}
|
|
2255
|
-
|
|
2256
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js
|
|
2137
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js
|
|
2257
2138
|
/** Used to compose bitmasks for cloning. */
|
|
2258
2139
|
var CLONE_DEEP_FLAG = 1;
|
|
2259
2140
|
var CLONE_SYMBOLS_FLAG = 4;
|
|
@@ -2278,8 +2159,7 @@
|
|
|
2278
2159
|
function cloneDeep(value) {
|
|
2279
2160
|
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
|
2280
2161
|
}
|
|
2281
|
-
|
|
2282
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSet.js
|
|
2162
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSet.js
|
|
2283
2163
|
/**
|
|
2284
2164
|
* The base implementation of `_.set`.
|
|
2285
2165
|
*
|
|
@@ -2307,8 +2187,7 @@
|
|
|
2307
2187
|
}
|
|
2308
2188
|
return object;
|
|
2309
2189
|
}
|
|
2310
|
-
|
|
2311
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/set.js
|
|
2190
|
+
// node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/set.js
|
|
2312
2191
|
/**
|
|
2313
2192
|
* Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
|
|
2314
2193
|
* it's created. Arrays are created for missing index properties while objects
|
|
@@ -2340,13 +2219,11 @@
|
|
|
2340
2219
|
function set(object, path, value) {
|
|
2341
2220
|
return object == null ? object : baseSet(object, path, value);
|
|
2342
2221
|
}
|
|
2343
|
-
|
|
2344
|
-
//#region packages/utils/src/const.ts
|
|
2222
|
+
// packages/utils/src/const.ts
|
|
2345
2223
|
var DATA_SOURCE_FIELDS_SELECT_VALUE_PREFIX = "ds-field::";
|
|
2346
2224
|
var DATA_SOURCE_FIELDS_CHANGE_EVENT_PREFIX = "ds-field-changed";
|
|
2347
2225
|
var DATA_SOURCE_SET_DATA_METHOD_NAME = "setDataFromEvent";
|
|
2348
|
-
|
|
2349
|
-
//#region packages/utils/src/dom.ts
|
|
2226
|
+
// packages/utils/src/dom.ts
|
|
2350
2227
|
var asyncLoadJs = (() => {
|
|
2351
2228
|
const documentMap = /* @__PURE__ */ new Map();
|
|
2352
2229
|
return (url, crossOrigin, document = globalThis.document) => {
|
|
@@ -2458,8 +2335,7 @@
|
|
|
2458
2335
|
var getIdFromEl = () => dslDomRelateConfig.getIdFromEl;
|
|
2459
2336
|
var getElById = () => dslDomRelateConfig.getElById;
|
|
2460
2337
|
var setIdToEl = () => dslDomRelateConfig.setIdToEl;
|
|
2461
|
-
|
|
2462
|
-
//#region packages/utils/src/index.ts
|
|
2338
|
+
// packages/utils/src/index.ts
|
|
2463
2339
|
var _globalThis;
|
|
2464
2340
|
var getGlobalThis = () => _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
|
|
2465
2341
|
var sleep = (ms) => new Promise((resolve) => {
|
|
@@ -2917,7 +2793,6 @@
|
|
|
2917
2793
|
return false;
|
|
2918
2794
|
};
|
|
2919
2795
|
var removeDataSourceFieldPrefix = (id) => id?.replace("ds-field::", "") || "";
|
|
2920
|
-
//#endregion
|
|
2921
2796
|
exports.DATA_SOURCE_FIELDS_CHANGE_EVENT_PREFIX = DATA_SOURCE_FIELDS_CHANGE_EVENT_PREFIX;
|
|
2922
2797
|
exports.DATA_SOURCE_FIELDS_SELECT_VALUE_PREFIX = DATA_SOURCE_FIELDS_SELECT_VALUE_PREFIX;
|
|
2923
2798
|
exports.DATA_SOURCE_SET_DATA_METHOD_NAME = DATA_SOURCE_SET_DATA_METHOD_NAME;
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.8.
|
|
2
|
+
"version": "1.8.5",
|
|
3
3
|
"name": "@tmagic/utils",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"@types/lodash-es": "^4.17.12"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"
|
|
38
|
-
"
|
|
37
|
+
"@tmagic/schema": "1.8.5",
|
|
38
|
+
"typescript": "^6.0.3"
|
|
39
39
|
},
|
|
40
40
|
"peerDependenciesMeta": {
|
|
41
41
|
"typescript": {
|
package/types/index.d.ts
CHANGED
|
@@ -432,7 +432,7 @@ declare class Editor extends BaseService {
|
|
|
432
432
|
/** 设置结构合法性校验用到的配置,只覆盖传入的字段 */
|
|
433
433
|
setConfig(config: Partial<EditorServiceConfig>): void;
|
|
434
434
|
getConfig(): Readonly<EditorServiceConfig>;
|
|
435
|
-
doAdd(node: MNode$1, parent: MContainer,
|
|
435
|
+
doAdd(node: MNode$1, parent: MContainer, options?: AddOpOptions): Promise<MNode$1>;
|
|
436
436
|
/**
|
|
437
437
|
* 向指点容器添加组件节点
|
|
438
438
|
* @param addConfig 将要添加的组件节点配置
|
|
@@ -440,7 +440,7 @@ declare class Editor extends BaseService {
|
|
|
440
440
|
* @param options 可选配置,见 {@link DslOpOptions}
|
|
441
441
|
* @returns 添加后的节点
|
|
442
442
|
*/
|
|
443
|
-
add(addNode: AddMNode | MNode$1[], parent?: MContainer | null, options?:
|
|
443
|
+
add(addNode: AddMNode | MNode$1[], parent?: MContainer | null, options?: AddOpOptions): Promise<MNode$1 | MNode$1[]>;
|
|
444
444
|
doRemove(node: MNode$1, { doNotSelect, doNotSwitchPage }?: DslOpOptions): Promise<void>;
|
|
445
445
|
/**
|
|
446
446
|
* 删除组件
|
|
@@ -541,7 +541,7 @@ declare class Editor extends BaseService {
|
|
|
541
541
|
* 当本次操作未写入历史(doNotPushHistory 为 true、或操作无实际变更 / 提前返回)时 historyIds 为 `[]`。
|
|
542
542
|
*/
|
|
543
543
|
/** 等价于 {@link add},并额外返回本次写入历史记录的 uuid 列表(未入栈时 historyIds 为 `[]`)。 */
|
|
544
|
-
addAndGetHistoryId(addNode: AddMNode | MNode$1[], parent?: MContainer | null, options?:
|
|
544
|
+
addAndGetHistoryId(addNode: AddMNode | MNode$1[], parent?: MContainer | null, options?: AddOpOptions): Promise<DslOpWithHistoryIdsResult<MNode$1 | MNode$1[]>>;
|
|
545
545
|
/** 等价于 {@link remove},并额外返回本次写入历史记录的 uuid 列表(未入栈时 historyIds 为 `[]`)。 */
|
|
546
546
|
removeAndGetHistoryId(nodeOrNodeList: MNode$1 | MNode$1[], options?: DslOpOptions): Promise<DslOpWithHistoryIdsResult<void>>;
|
|
547
547
|
/** 等价于 {@link update},并额外返回本次写入历史记录的 uuid 列表(未入栈时 historyIds 为 `[]`)。 */
|
|
@@ -2487,6 +2487,16 @@ interface DslOpOptions extends HistoryOpOptions {
|
|
|
2487
2487
|
doNotSelect?: boolean;
|
|
2488
2488
|
doNotSwitchPage?: boolean;
|
|
2489
2489
|
}
|
|
2490
|
+
/**
|
|
2491
|
+
* {@link EditorService.add} / {@link EditorService.doAdd} 的额外配置
|
|
2492
|
+
* - insertIndex: 插入下标,落在 [0, 父容器 items.length];'end' 表示固定追加到末尾。
|
|
2493
|
+
* 指定后不再按当前选中节点与上一次新增节点计算锚点,也不要求有选中节点;越界 / 非数字一律追加到末尾。
|
|
2494
|
+
* 批量 add 时数字下标是本批节点的起始位置,按父容器分别累计偏移,保持传入顺序;'end' 逐个追加。
|
|
2495
|
+
* 页面 / 页面片作用于 root.items,同样不再固定追加到末尾。人工添加不传,沿用锚点行为。
|
|
2496
|
+
*/
|
|
2497
|
+
interface AddOpOptions extends DslOpOptions {
|
|
2498
|
+
insertIndex?: number | 'end';
|
|
2499
|
+
}
|
|
2490
2500
|
/**
|
|
2491
2501
|
* {@link EditorService.update} / {@link EditorService.doUpdate} 的额外数据
|
|
2492
2502
|
* - changeRecords: 单节点 form 端变更记录(多节点场景下被忽略,使用 changeRecordList)
|