@tmagic/form 1.8.0-beta.8 → 1.8.0-beta.9
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/Form.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/FormBox.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/FormDialog.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/FormDrawer.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/containers/Col.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/containers/Container.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/es/containers/Fieldset.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/containers/FlexLayout.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/containers/FormLabel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/containers/GroupList.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/containers/GroupListItem.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/containers/Panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/containers/Row.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/containers/Step.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/containers/Tabs.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/containers/table/ActionsColumn.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/containers/table/SortColumn.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/containers/table/Table.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/containers/table-group-list/TableGroupList.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/Cascader.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/Checkbox.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/CheckboxGroup.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/ColorPicker.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/Date.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/DateTime.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/Daterange.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/Display.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/DynamicField.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/Hidden.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/Link.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/Number.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/NumberRange.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/RadioGroup.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/Select.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/Switch.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/Text.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/Textarea.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/Time.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/Timerange.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/utils/form.js +2 -2
- package/dist/tmagic-form.umd.cjs +1414 -1414
- package/package.json +5 -5
package/dist/tmagic-form.umd.cjs
CHANGED
|
@@ -41,6 +41,220 @@
|
|
|
41
41
|
//#region packages/form/src/schema.ts
|
|
42
42
|
var FORM_DIFF_CONFIG_KEY = Symbol("mFormDiffConfig");
|
|
43
43
|
//#endregion
|
|
44
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.js
|
|
45
|
+
/**
|
|
46
|
+
* Removes all key-value entries from the list cache.
|
|
47
|
+
*
|
|
48
|
+
* @private
|
|
49
|
+
* @name clear
|
|
50
|
+
* @memberOf ListCache
|
|
51
|
+
*/
|
|
52
|
+
function listCacheClear() {
|
|
53
|
+
this.__data__ = [];
|
|
54
|
+
this.size = 0;
|
|
55
|
+
}
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.js
|
|
58
|
+
/**
|
|
59
|
+
* Performs a
|
|
60
|
+
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
61
|
+
* comparison between two values to determine if they are equivalent.
|
|
62
|
+
*
|
|
63
|
+
* @static
|
|
64
|
+
* @memberOf _
|
|
65
|
+
* @since 4.0.0
|
|
66
|
+
* @category Lang
|
|
67
|
+
* @param {*} value The value to compare.
|
|
68
|
+
* @param {*} other The other value to compare.
|
|
69
|
+
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
70
|
+
* @example
|
|
71
|
+
*
|
|
72
|
+
* var object = { 'a': 1 };
|
|
73
|
+
* var other = { 'a': 1 };
|
|
74
|
+
*
|
|
75
|
+
* _.eq(object, object);
|
|
76
|
+
* // => true
|
|
77
|
+
*
|
|
78
|
+
* _.eq(object, other);
|
|
79
|
+
* // => false
|
|
80
|
+
*
|
|
81
|
+
* _.eq('a', 'a');
|
|
82
|
+
* // => true
|
|
83
|
+
*
|
|
84
|
+
* _.eq('a', Object('a'));
|
|
85
|
+
* // => false
|
|
86
|
+
*
|
|
87
|
+
* _.eq(NaN, NaN);
|
|
88
|
+
* // => true
|
|
89
|
+
*/
|
|
90
|
+
function eq(value, other) {
|
|
91
|
+
return value === other || value !== value && other !== other;
|
|
92
|
+
}
|
|
93
|
+
//#endregion
|
|
94
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.js
|
|
95
|
+
/**
|
|
96
|
+
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
97
|
+
*
|
|
98
|
+
* @private
|
|
99
|
+
* @param {Array} array The array to inspect.
|
|
100
|
+
* @param {*} key The key to search for.
|
|
101
|
+
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
102
|
+
*/
|
|
103
|
+
function assocIndexOf(array, key) {
|
|
104
|
+
var length = array.length;
|
|
105
|
+
while (length--) if (eq(array[length][0], key)) return length;
|
|
106
|
+
return -1;
|
|
107
|
+
}
|
|
108
|
+
//#endregion
|
|
109
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.js
|
|
110
|
+
/** Built-in value references. */
|
|
111
|
+
var splice = Array.prototype.splice;
|
|
112
|
+
/**
|
|
113
|
+
* Removes `key` and its value from the list cache.
|
|
114
|
+
*
|
|
115
|
+
* @private
|
|
116
|
+
* @name delete
|
|
117
|
+
* @memberOf ListCache
|
|
118
|
+
* @param {string} key The key of the value to remove.
|
|
119
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
120
|
+
*/
|
|
121
|
+
function listCacheDelete(key) {
|
|
122
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
123
|
+
if (index < 0) return false;
|
|
124
|
+
if (index == data.length - 1) data.pop();
|
|
125
|
+
else splice.call(data, index, 1);
|
|
126
|
+
--this.size;
|
|
127
|
+
return true;
|
|
128
|
+
}
|
|
129
|
+
//#endregion
|
|
130
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.js
|
|
131
|
+
/**
|
|
132
|
+
* Gets the list cache value for `key`.
|
|
133
|
+
*
|
|
134
|
+
* @private
|
|
135
|
+
* @name get
|
|
136
|
+
* @memberOf ListCache
|
|
137
|
+
* @param {string} key The key of the value to get.
|
|
138
|
+
* @returns {*} Returns the entry value.
|
|
139
|
+
*/
|
|
140
|
+
function listCacheGet(key) {
|
|
141
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
142
|
+
return index < 0 ? void 0 : data[index][1];
|
|
143
|
+
}
|
|
144
|
+
//#endregion
|
|
145
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.js
|
|
146
|
+
/**
|
|
147
|
+
* Checks if a list cache value for `key` exists.
|
|
148
|
+
*
|
|
149
|
+
* @private
|
|
150
|
+
* @name has
|
|
151
|
+
* @memberOf ListCache
|
|
152
|
+
* @param {string} key The key of the entry to check.
|
|
153
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
154
|
+
*/
|
|
155
|
+
function listCacheHas(key) {
|
|
156
|
+
return assocIndexOf(this.__data__, key) > -1;
|
|
157
|
+
}
|
|
158
|
+
//#endregion
|
|
159
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.js
|
|
160
|
+
/**
|
|
161
|
+
* Sets the list cache `key` to `value`.
|
|
162
|
+
*
|
|
163
|
+
* @private
|
|
164
|
+
* @name set
|
|
165
|
+
* @memberOf ListCache
|
|
166
|
+
* @param {string} key The key of the value to set.
|
|
167
|
+
* @param {*} value The value to set.
|
|
168
|
+
* @returns {Object} Returns the list cache instance.
|
|
169
|
+
*/
|
|
170
|
+
function listCacheSet(key, value) {
|
|
171
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
172
|
+
if (index < 0) {
|
|
173
|
+
++this.size;
|
|
174
|
+
data.push([key, value]);
|
|
175
|
+
} else data[index][1] = value;
|
|
176
|
+
return this;
|
|
177
|
+
}
|
|
178
|
+
//#endregion
|
|
179
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.js
|
|
180
|
+
/**
|
|
181
|
+
* Creates an list cache object.
|
|
182
|
+
*
|
|
183
|
+
* @private
|
|
184
|
+
* @constructor
|
|
185
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
186
|
+
*/
|
|
187
|
+
function ListCache(entries) {
|
|
188
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
189
|
+
this.clear();
|
|
190
|
+
while (++index < length) {
|
|
191
|
+
var entry = entries[index];
|
|
192
|
+
this.set(entry[0], entry[1]);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
ListCache.prototype.clear = listCacheClear;
|
|
196
|
+
ListCache.prototype["delete"] = listCacheDelete;
|
|
197
|
+
ListCache.prototype.get = listCacheGet;
|
|
198
|
+
ListCache.prototype.has = listCacheHas;
|
|
199
|
+
ListCache.prototype.set = listCacheSet;
|
|
200
|
+
//#endregion
|
|
201
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackClear.js
|
|
202
|
+
/**
|
|
203
|
+
* Removes all key-value entries from the stack.
|
|
204
|
+
*
|
|
205
|
+
* @private
|
|
206
|
+
* @name clear
|
|
207
|
+
* @memberOf Stack
|
|
208
|
+
*/
|
|
209
|
+
function stackClear() {
|
|
210
|
+
this.__data__ = new ListCache();
|
|
211
|
+
this.size = 0;
|
|
212
|
+
}
|
|
213
|
+
//#endregion
|
|
214
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackDelete.js
|
|
215
|
+
/**
|
|
216
|
+
* Removes `key` and its value from the stack.
|
|
217
|
+
*
|
|
218
|
+
* @private
|
|
219
|
+
* @name delete
|
|
220
|
+
* @memberOf Stack
|
|
221
|
+
* @param {string} key The key of the value to remove.
|
|
222
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
223
|
+
*/
|
|
224
|
+
function stackDelete(key) {
|
|
225
|
+
var data = this.__data__, result = data["delete"](key);
|
|
226
|
+
this.size = data.size;
|
|
227
|
+
return result;
|
|
228
|
+
}
|
|
229
|
+
//#endregion
|
|
230
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackGet.js
|
|
231
|
+
/**
|
|
232
|
+
* Gets the stack value for `key`.
|
|
233
|
+
*
|
|
234
|
+
* @private
|
|
235
|
+
* @name get
|
|
236
|
+
* @memberOf Stack
|
|
237
|
+
* @param {string} key The key of the value to get.
|
|
238
|
+
* @returns {*} Returns the entry value.
|
|
239
|
+
*/
|
|
240
|
+
function stackGet(key) {
|
|
241
|
+
return this.__data__.get(key);
|
|
242
|
+
}
|
|
243
|
+
//#endregion
|
|
244
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackHas.js
|
|
245
|
+
/**
|
|
246
|
+
* Checks if a stack value for `key` exists.
|
|
247
|
+
*
|
|
248
|
+
* @private
|
|
249
|
+
* @name has
|
|
250
|
+
* @memberOf Stack
|
|
251
|
+
* @param {string} key The key of the entry to check.
|
|
252
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
253
|
+
*/
|
|
254
|
+
function stackHas(key) {
|
|
255
|
+
return this.__data__.has(key);
|
|
256
|
+
}
|
|
257
|
+
//#endregion
|
|
44
258
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js
|
|
45
259
|
/** Detect free variable `global` from Node.js. */
|
|
46
260
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
@@ -122,212 +336,55 @@
|
|
|
122
336
|
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
123
337
|
}
|
|
124
338
|
//#endregion
|
|
125
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
339
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js
|
|
126
340
|
/**
|
|
127
|
-
* Checks if `value` is
|
|
128
|
-
*
|
|
341
|
+
* Checks if `value` is the
|
|
342
|
+
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
343
|
+
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
129
344
|
*
|
|
130
345
|
* @static
|
|
131
346
|
* @memberOf _
|
|
132
|
-
* @since
|
|
347
|
+
* @since 0.1.0
|
|
133
348
|
* @category Lang
|
|
134
349
|
* @param {*} value The value to check.
|
|
135
|
-
* @returns {boolean} Returns `true` if `value` is object
|
|
350
|
+
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
136
351
|
* @example
|
|
137
352
|
*
|
|
138
|
-
* _.
|
|
353
|
+
* _.isObject({});
|
|
139
354
|
* // => true
|
|
140
355
|
*
|
|
141
|
-
* _.
|
|
356
|
+
* _.isObject([1, 2, 3]);
|
|
142
357
|
* // => true
|
|
143
358
|
*
|
|
144
|
-
* _.
|
|
145
|
-
* // =>
|
|
359
|
+
* _.isObject(_.noop);
|
|
360
|
+
* // => true
|
|
146
361
|
*
|
|
147
|
-
* _.
|
|
362
|
+
* _.isObject(null);
|
|
148
363
|
* // => false
|
|
149
364
|
*/
|
|
150
|
-
function
|
|
151
|
-
|
|
365
|
+
function isObject(value) {
|
|
366
|
+
var type = typeof value;
|
|
367
|
+
return value != null && (type == "object" || type == "function");
|
|
152
368
|
}
|
|
153
369
|
//#endregion
|
|
154
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
370
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.js
|
|
155
371
|
/** `Object#toString` result references. */
|
|
156
|
-
var
|
|
372
|
+
var asyncTag = "[object AsyncFunction]", funcTag$2 = "[object Function]", genTag$1 = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
|
|
157
373
|
/**
|
|
158
|
-
* Checks if `value` is classified as a `
|
|
374
|
+
* Checks if `value` is classified as a `Function` object.
|
|
159
375
|
*
|
|
160
376
|
* @static
|
|
161
377
|
* @memberOf _
|
|
162
|
-
* @since
|
|
378
|
+
* @since 0.1.0
|
|
163
379
|
* @category Lang
|
|
164
380
|
* @param {*} value The value to check.
|
|
165
|
-
* @returns {boolean} Returns `true` if `value` is a
|
|
381
|
+
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
|
166
382
|
* @example
|
|
167
383
|
*
|
|
168
|
-
* _.
|
|
384
|
+
* _.isFunction(_);
|
|
169
385
|
* // => true
|
|
170
386
|
*
|
|
171
|
-
* _.
|
|
172
|
-
* // => false
|
|
173
|
-
*/
|
|
174
|
-
function isSymbol(value) {
|
|
175
|
-
return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag$3;
|
|
176
|
-
}
|
|
177
|
-
//#endregion
|
|
178
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.js
|
|
179
|
-
/**
|
|
180
|
-
* Checks if `value` is classified as an `Array` object.
|
|
181
|
-
*
|
|
182
|
-
* @static
|
|
183
|
-
* @memberOf _
|
|
184
|
-
* @since 0.1.0
|
|
185
|
-
* @category Lang
|
|
186
|
-
* @param {*} value The value to check.
|
|
187
|
-
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
188
|
-
* @example
|
|
189
|
-
*
|
|
190
|
-
* _.isArray([1, 2, 3]);
|
|
191
|
-
* // => true
|
|
192
|
-
*
|
|
193
|
-
* _.isArray(document.body.children);
|
|
194
|
-
* // => false
|
|
195
|
-
*
|
|
196
|
-
* _.isArray('abc');
|
|
197
|
-
* // => false
|
|
198
|
-
*
|
|
199
|
-
* _.isArray(_.noop);
|
|
200
|
-
* // => false
|
|
201
|
-
*/
|
|
202
|
-
var isArray = Array.isArray;
|
|
203
|
-
//#endregion
|
|
204
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_trimmedEndIndex.js
|
|
205
|
-
/** Used to match a single whitespace character. */
|
|
206
|
-
var reWhitespace = /\s/;
|
|
207
|
-
/**
|
|
208
|
-
* Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
|
|
209
|
-
* character of `string`.
|
|
210
|
-
*
|
|
211
|
-
* @private
|
|
212
|
-
* @param {string} string The string to inspect.
|
|
213
|
-
* @returns {number} Returns the index of the last non-whitespace character.
|
|
214
|
-
*/
|
|
215
|
-
function trimmedEndIndex(string) {
|
|
216
|
-
var index = string.length;
|
|
217
|
-
while (index-- && reWhitespace.test(string.charAt(index)));
|
|
218
|
-
return index;
|
|
219
|
-
}
|
|
220
|
-
//#endregion
|
|
221
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTrim.js
|
|
222
|
-
/** Used to match leading whitespace. */
|
|
223
|
-
var reTrimStart = /^\s+/;
|
|
224
|
-
/**
|
|
225
|
-
* The base implementation of `_.trim`.
|
|
226
|
-
*
|
|
227
|
-
* @private
|
|
228
|
-
* @param {string} string The string to trim.
|
|
229
|
-
* @returns {string} Returns the trimmed string.
|
|
230
|
-
*/
|
|
231
|
-
function baseTrim(string) {
|
|
232
|
-
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
|
233
|
-
}
|
|
234
|
-
//#endregion
|
|
235
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js
|
|
236
|
-
/**
|
|
237
|
-
* Checks if `value` is the
|
|
238
|
-
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
239
|
-
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
240
|
-
*
|
|
241
|
-
* @static
|
|
242
|
-
* @memberOf _
|
|
243
|
-
* @since 0.1.0
|
|
244
|
-
* @category Lang
|
|
245
|
-
* @param {*} value The value to check.
|
|
246
|
-
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
247
|
-
* @example
|
|
248
|
-
*
|
|
249
|
-
* _.isObject({});
|
|
250
|
-
* // => true
|
|
251
|
-
*
|
|
252
|
-
* _.isObject([1, 2, 3]);
|
|
253
|
-
* // => true
|
|
254
|
-
*
|
|
255
|
-
* _.isObject(_.noop);
|
|
256
|
-
* // => true
|
|
257
|
-
*
|
|
258
|
-
* _.isObject(null);
|
|
259
|
-
* // => false
|
|
260
|
-
*/
|
|
261
|
-
function isObject(value) {
|
|
262
|
-
var type = typeof value;
|
|
263
|
-
return value != null && (type == "object" || type == "function");
|
|
264
|
-
}
|
|
265
|
-
//#endregion
|
|
266
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toNumber.js
|
|
267
|
-
/** Used as references for various `Number` constants. */
|
|
268
|
-
var NAN = NaN;
|
|
269
|
-
/** Used to detect bad signed hexadecimal string values. */
|
|
270
|
-
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
271
|
-
/** Used to detect binary string values. */
|
|
272
|
-
var reIsBinary = /^0b[01]+$/i;
|
|
273
|
-
/** Used to detect octal string values. */
|
|
274
|
-
var reIsOctal = /^0o[0-7]+$/i;
|
|
275
|
-
/** Built-in method references without a dependency on `root`. */
|
|
276
|
-
var freeParseInt = parseInt;
|
|
277
|
-
/**
|
|
278
|
-
* Converts `value` to a number.
|
|
279
|
-
*
|
|
280
|
-
* @static
|
|
281
|
-
* @memberOf _
|
|
282
|
-
* @since 4.0.0
|
|
283
|
-
* @category Lang
|
|
284
|
-
* @param {*} value The value to process.
|
|
285
|
-
* @returns {number} Returns the number.
|
|
286
|
-
* @example
|
|
287
|
-
*
|
|
288
|
-
* _.toNumber(3.2);
|
|
289
|
-
* // => 3.2
|
|
290
|
-
*
|
|
291
|
-
* _.toNumber(Number.MIN_VALUE);
|
|
292
|
-
* // => 5e-324
|
|
293
|
-
*
|
|
294
|
-
* _.toNumber(Infinity);
|
|
295
|
-
* // => Infinity
|
|
296
|
-
*
|
|
297
|
-
* _.toNumber('3.2');
|
|
298
|
-
* // => 3.2
|
|
299
|
-
*/
|
|
300
|
-
function toNumber(value) {
|
|
301
|
-
if (typeof value == "number") return value;
|
|
302
|
-
if (isSymbol(value)) return NAN;
|
|
303
|
-
if (isObject(value)) {
|
|
304
|
-
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
|
305
|
-
value = isObject(other) ? other + "" : other;
|
|
306
|
-
}
|
|
307
|
-
if (typeof value != "string") return value === 0 ? value : +value;
|
|
308
|
-
value = baseTrim(value);
|
|
309
|
-
var isBinary = reIsBinary.test(value);
|
|
310
|
-
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
|
311
|
-
}
|
|
312
|
-
//#endregion
|
|
313
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.js
|
|
314
|
-
/** `Object#toString` result references. */
|
|
315
|
-
var asyncTag = "[object AsyncFunction]", funcTag$2 = "[object Function]", genTag$1 = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
|
|
316
|
-
/**
|
|
317
|
-
* Checks if `value` is classified as a `Function` object.
|
|
318
|
-
*
|
|
319
|
-
* @static
|
|
320
|
-
* @memberOf _
|
|
321
|
-
* @since 0.1.0
|
|
322
|
-
* @category Lang
|
|
323
|
-
* @param {*} value The value to check.
|
|
324
|
-
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
|
325
|
-
* @example
|
|
326
|
-
*
|
|
327
|
-
* _.isFunction(_);
|
|
328
|
-
* // => true
|
|
329
|
-
*
|
|
330
|
-
* _.isFunction(/abc/);
|
|
387
|
+
* _.isFunction(/abc/);
|
|
331
388
|
* // => false
|
|
332
389
|
*/
|
|
333
390
|
function isFunction(value) {
|
|
@@ -435,307 +492,453 @@
|
|
|
435
492
|
return baseIsNative(value) ? value : void 0;
|
|
436
493
|
}
|
|
437
494
|
//#endregion
|
|
438
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
439
|
-
var
|
|
495
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.js
|
|
496
|
+
var Map$1 = getNative(root, "Map");
|
|
440
497
|
//#endregion
|
|
441
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
442
|
-
|
|
443
|
-
|
|
498
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.js
|
|
499
|
+
var nativeCreate = getNative(Object, "create");
|
|
500
|
+
//#endregion
|
|
501
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.js
|
|
444
502
|
/**
|
|
445
|
-
*
|
|
446
|
-
* properties to the created object.
|
|
503
|
+
* Removes all key-value entries from the hash.
|
|
447
504
|
*
|
|
448
505
|
* @private
|
|
449
|
-
* @
|
|
450
|
-
* @
|
|
506
|
+
* @name clear
|
|
507
|
+
* @memberOf Hash
|
|
451
508
|
*/
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
if (objectCreate) return objectCreate(proto);
|
|
457
|
-
object.prototype = proto;
|
|
458
|
-
var result = new object();
|
|
459
|
-
object.prototype = void 0;
|
|
460
|
-
return result;
|
|
461
|
-
};
|
|
462
|
-
}();
|
|
509
|
+
function hashClear() {
|
|
510
|
+
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
511
|
+
this.size = 0;
|
|
512
|
+
}
|
|
463
513
|
//#endregion
|
|
464
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
514
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.js
|
|
465
515
|
/**
|
|
466
|
-
*
|
|
516
|
+
* Removes `key` and its value from the hash.
|
|
467
517
|
*
|
|
468
518
|
* @private
|
|
469
|
-
* @
|
|
470
|
-
* @
|
|
471
|
-
* @
|
|
519
|
+
* @name delete
|
|
520
|
+
* @memberOf Hash
|
|
521
|
+
* @param {Object} hash The hash to modify.
|
|
522
|
+
* @param {string} key The key of the value to remove.
|
|
523
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
472
524
|
*/
|
|
473
|
-
function
|
|
474
|
-
var
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
return array;
|
|
525
|
+
function hashDelete(key) {
|
|
526
|
+
var result = this.has(key) && delete this.__data__[key];
|
|
527
|
+
this.size -= result ? 1 : 0;
|
|
528
|
+
return result;
|
|
478
529
|
}
|
|
479
530
|
//#endregion
|
|
480
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
return func;
|
|
486
|
-
} catch (e) {}
|
|
487
|
-
}();
|
|
488
|
-
//#endregion
|
|
489
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayEach.js
|
|
531
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.js
|
|
532
|
+
/** Used to stand-in for `undefined` hash values. */
|
|
533
|
+
var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
|
|
534
|
+
/** Used to check objects for own properties. */
|
|
535
|
+
var hasOwnProperty$10 = Object.prototype.hasOwnProperty;
|
|
490
536
|
/**
|
|
491
|
-
*
|
|
492
|
-
* iteratee shorthands.
|
|
537
|
+
* Gets the hash value for `key`.
|
|
493
538
|
*
|
|
494
539
|
* @private
|
|
495
|
-
* @
|
|
496
|
-
* @
|
|
497
|
-
* @
|
|
540
|
+
* @name get
|
|
541
|
+
* @memberOf Hash
|
|
542
|
+
* @param {string} key The key of the value to get.
|
|
543
|
+
* @returns {*} Returns the entry value.
|
|
498
544
|
*/
|
|
499
|
-
function
|
|
500
|
-
var
|
|
501
|
-
|
|
502
|
-
|
|
545
|
+
function hashGet(key) {
|
|
546
|
+
var data = this.__data__;
|
|
547
|
+
if (nativeCreate) {
|
|
548
|
+
var result = data[key];
|
|
549
|
+
return result === HASH_UNDEFINED$2 ? void 0 : result;
|
|
550
|
+
}
|
|
551
|
+
return hasOwnProperty$10.call(data, key) ? data[key] : void 0;
|
|
503
552
|
}
|
|
504
553
|
//#endregion
|
|
505
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
506
|
-
/** Used
|
|
507
|
-
var
|
|
508
|
-
/** Used to detect unsigned integer values. */
|
|
509
|
-
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
554
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.js
|
|
555
|
+
/** Used to check objects for own properties. */
|
|
556
|
+
var hasOwnProperty$9 = Object.prototype.hasOwnProperty;
|
|
510
557
|
/**
|
|
511
|
-
* Checks if
|
|
558
|
+
* Checks if a hash value for `key` exists.
|
|
512
559
|
*
|
|
513
560
|
* @private
|
|
514
|
-
* @
|
|
515
|
-
* @
|
|
516
|
-
* @
|
|
561
|
+
* @name has
|
|
562
|
+
* @memberOf Hash
|
|
563
|
+
* @param {string} key The key of the entry to check.
|
|
564
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
517
565
|
*/
|
|
518
|
-
function
|
|
519
|
-
var
|
|
520
|
-
|
|
521
|
-
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
|
|
566
|
+
function hashHas(key) {
|
|
567
|
+
var data = this.__data__;
|
|
568
|
+
return nativeCreate ? data[key] !== void 0 : hasOwnProperty$9.call(data, key);
|
|
522
569
|
}
|
|
523
570
|
//#endregion
|
|
524
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
571
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.js
|
|
572
|
+
/** Used to stand-in for `undefined` hash values. */
|
|
573
|
+
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
525
574
|
/**
|
|
526
|
-
*
|
|
527
|
-
* value checks.
|
|
575
|
+
* Sets the hash `key` to `value`.
|
|
528
576
|
*
|
|
529
577
|
* @private
|
|
530
|
-
* @
|
|
531
|
-
* @
|
|
532
|
-
* @param {
|
|
578
|
+
* @name set
|
|
579
|
+
* @memberOf Hash
|
|
580
|
+
* @param {string} key The key of the value to set.
|
|
581
|
+
* @param {*} value The value to set.
|
|
582
|
+
* @returns {Object} Returns the hash instance.
|
|
533
583
|
*/
|
|
534
|
-
function
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
"writable": true
|
|
540
|
-
});
|
|
541
|
-
else object[key] = value;
|
|
584
|
+
function hashSet(key, value) {
|
|
585
|
+
var data = this.__data__;
|
|
586
|
+
this.size += this.has(key) ? 0 : 1;
|
|
587
|
+
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED$1 : value;
|
|
588
|
+
return this;
|
|
542
589
|
}
|
|
543
590
|
//#endregion
|
|
544
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
591
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.js
|
|
545
592
|
/**
|
|
546
|
-
*
|
|
547
|
-
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
548
|
-
* comparison between two values to determine if they are equivalent.
|
|
549
|
-
*
|
|
550
|
-
* @static
|
|
551
|
-
* @memberOf _
|
|
552
|
-
* @since 4.0.0
|
|
553
|
-
* @category Lang
|
|
554
|
-
* @param {*} value The value to compare.
|
|
555
|
-
* @param {*} other The other value to compare.
|
|
556
|
-
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
557
|
-
* @example
|
|
558
|
-
*
|
|
559
|
-
* var object = { 'a': 1 };
|
|
560
|
-
* var other = { 'a': 1 };
|
|
561
|
-
*
|
|
562
|
-
* _.eq(object, object);
|
|
563
|
-
* // => true
|
|
564
|
-
*
|
|
565
|
-
* _.eq(object, other);
|
|
566
|
-
* // => false
|
|
567
|
-
*
|
|
568
|
-
* _.eq('a', 'a');
|
|
569
|
-
* // => true
|
|
570
|
-
*
|
|
571
|
-
* _.eq('a', Object('a'));
|
|
572
|
-
* // => false
|
|
593
|
+
* Creates a hash object.
|
|
573
594
|
*
|
|
574
|
-
*
|
|
575
|
-
*
|
|
595
|
+
* @private
|
|
596
|
+
* @constructor
|
|
597
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
576
598
|
*/
|
|
577
|
-
function
|
|
578
|
-
|
|
599
|
+
function Hash(entries) {
|
|
600
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
601
|
+
this.clear();
|
|
602
|
+
while (++index < length) {
|
|
603
|
+
var entry = entries[index];
|
|
604
|
+
this.set(entry[0], entry[1]);
|
|
605
|
+
}
|
|
579
606
|
}
|
|
607
|
+
Hash.prototype.clear = hashClear;
|
|
608
|
+
Hash.prototype["delete"] = hashDelete;
|
|
609
|
+
Hash.prototype.get = hashGet;
|
|
610
|
+
Hash.prototype.has = hashHas;
|
|
611
|
+
Hash.prototype.set = hashSet;
|
|
580
612
|
//#endregion
|
|
581
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
582
|
-
/** Used to check objects for own properties. */
|
|
583
|
-
var hasOwnProperty$10 = Object.prototype.hasOwnProperty;
|
|
613
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.js
|
|
584
614
|
/**
|
|
585
|
-
*
|
|
586
|
-
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
587
|
-
* for equality comparisons.
|
|
615
|
+
* Removes all key-value entries from the map.
|
|
588
616
|
*
|
|
589
617
|
* @private
|
|
590
|
-
* @
|
|
591
|
-
* @
|
|
592
|
-
* @param {*} value The value to assign.
|
|
618
|
+
* @name clear
|
|
619
|
+
* @memberOf MapCache
|
|
593
620
|
*/
|
|
594
|
-
function
|
|
595
|
-
|
|
596
|
-
|
|
621
|
+
function mapCacheClear() {
|
|
622
|
+
this.size = 0;
|
|
623
|
+
this.__data__ = {
|
|
624
|
+
"hash": new Hash(),
|
|
625
|
+
"map": new (Map$1 || ListCache)(),
|
|
626
|
+
"string": new Hash()
|
|
627
|
+
};
|
|
597
628
|
}
|
|
598
629
|
//#endregion
|
|
599
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
630
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.js
|
|
600
631
|
/**
|
|
601
|
-
*
|
|
632
|
+
* Checks if `value` is suitable for use as unique object key.
|
|
602
633
|
*
|
|
603
634
|
* @private
|
|
604
|
-
* @param {
|
|
605
|
-
* @
|
|
606
|
-
* @param {Object} [object={}] The object to copy properties to.
|
|
607
|
-
* @param {Function} [customizer] The function to customize copied values.
|
|
608
|
-
* @returns {Object} Returns `object`.
|
|
635
|
+
* @param {*} value The value to check.
|
|
636
|
+
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
|
609
637
|
*/
|
|
610
|
-
function
|
|
611
|
-
var
|
|
612
|
-
|
|
613
|
-
var index = -1, length = props.length;
|
|
614
|
-
while (++index < length) {
|
|
615
|
-
var key = props[index];
|
|
616
|
-
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
|
|
617
|
-
if (newValue === void 0) newValue = source[key];
|
|
618
|
-
if (isNew) baseAssignValue(object, key, newValue);
|
|
619
|
-
else assignValue(object, key, newValue);
|
|
620
|
-
}
|
|
621
|
-
return object;
|
|
638
|
+
function isKeyable(value) {
|
|
639
|
+
var type = typeof value;
|
|
640
|
+
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
622
641
|
}
|
|
623
642
|
//#endregion
|
|
624
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
625
|
-
/** Used as references for various `Number` constants. */
|
|
626
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
643
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.js
|
|
627
644
|
/**
|
|
628
|
-
*
|
|
629
|
-
*
|
|
630
|
-
* **Note:** This method is loosely based on
|
|
631
|
-
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
|
|
632
|
-
*
|
|
633
|
-
* @static
|
|
634
|
-
* @memberOf _
|
|
635
|
-
* @since 4.0.0
|
|
636
|
-
* @category Lang
|
|
637
|
-
* @param {*} value The value to check.
|
|
638
|
-
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
|
639
|
-
* @example
|
|
640
|
-
*
|
|
641
|
-
* _.isLength(3);
|
|
642
|
-
* // => true
|
|
643
|
-
*
|
|
644
|
-
* _.isLength(Number.MIN_VALUE);
|
|
645
|
-
* // => false
|
|
646
|
-
*
|
|
647
|
-
* _.isLength(Infinity);
|
|
648
|
-
* // => false
|
|
645
|
+
* Gets the data for `map`.
|
|
649
646
|
*
|
|
650
|
-
*
|
|
651
|
-
*
|
|
647
|
+
* @private
|
|
648
|
+
* @param {Object} map The map to query.
|
|
649
|
+
* @param {string} key The reference key.
|
|
650
|
+
* @returns {*} Returns the map data.
|
|
652
651
|
*/
|
|
653
|
-
function
|
|
654
|
-
|
|
652
|
+
function getMapData(map, key) {
|
|
653
|
+
var data = map.__data__;
|
|
654
|
+
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
655
655
|
}
|
|
656
656
|
//#endregion
|
|
657
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
657
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.js
|
|
658
658
|
/**
|
|
659
|
-
*
|
|
660
|
-
* not a function and has a `value.length` that's an integer greater than or
|
|
661
|
-
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
|
|
662
|
-
*
|
|
663
|
-
* @static
|
|
664
|
-
* @memberOf _
|
|
665
|
-
* @since 4.0.0
|
|
666
|
-
* @category Lang
|
|
667
|
-
* @param {*} value The value to check.
|
|
668
|
-
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
|
669
|
-
* @example
|
|
670
|
-
*
|
|
671
|
-
* _.isArrayLike([1, 2, 3]);
|
|
672
|
-
* // => true
|
|
673
|
-
*
|
|
674
|
-
* _.isArrayLike(document.body.children);
|
|
675
|
-
* // => true
|
|
676
|
-
*
|
|
677
|
-
* _.isArrayLike('abc');
|
|
678
|
-
* // => true
|
|
659
|
+
* Removes `key` and its value from the map.
|
|
679
660
|
*
|
|
680
|
-
*
|
|
681
|
-
*
|
|
661
|
+
* @private
|
|
662
|
+
* @name delete
|
|
663
|
+
* @memberOf MapCache
|
|
664
|
+
* @param {string} key The key of the value to remove.
|
|
665
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
682
666
|
*/
|
|
683
|
-
function
|
|
684
|
-
|
|
667
|
+
function mapCacheDelete(key) {
|
|
668
|
+
var result = getMapData(this, key)["delete"](key);
|
|
669
|
+
this.size -= result ? 1 : 0;
|
|
670
|
+
return result;
|
|
685
671
|
}
|
|
686
672
|
//#endregion
|
|
687
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
688
|
-
/** Used for built-in method references. */
|
|
689
|
-
var objectProto$1 = Object.prototype;
|
|
673
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.js
|
|
690
674
|
/**
|
|
691
|
-
*
|
|
675
|
+
* Gets the map value for `key`.
|
|
692
676
|
*
|
|
693
677
|
* @private
|
|
694
|
-
* @
|
|
695
|
-
* @
|
|
678
|
+
* @name get
|
|
679
|
+
* @memberOf MapCache
|
|
680
|
+
* @param {string} key The key of the value to get.
|
|
681
|
+
* @returns {*} Returns the entry value.
|
|
696
682
|
*/
|
|
697
|
-
function
|
|
698
|
-
|
|
699
|
-
return value === (typeof Ctor == "function" && Ctor.prototype || objectProto$1);
|
|
683
|
+
function mapCacheGet(key) {
|
|
684
|
+
return getMapData(this, key).get(key);
|
|
700
685
|
}
|
|
701
686
|
//#endregion
|
|
702
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
687
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.js
|
|
703
688
|
/**
|
|
704
|
-
*
|
|
705
|
-
* or max array length checks.
|
|
689
|
+
* Checks if a map value for `key` exists.
|
|
706
690
|
*
|
|
707
691
|
* @private
|
|
708
|
-
* @
|
|
709
|
-
* @
|
|
710
|
-
* @
|
|
692
|
+
* @name has
|
|
693
|
+
* @memberOf MapCache
|
|
694
|
+
* @param {string} key The key of the entry to check.
|
|
695
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
711
696
|
*/
|
|
712
|
-
function
|
|
713
|
-
|
|
714
|
-
while (++index < n) result[index] = iteratee(index);
|
|
715
|
-
return result;
|
|
697
|
+
function mapCacheHas(key) {
|
|
698
|
+
return getMapData(this, key).has(key);
|
|
716
699
|
}
|
|
717
700
|
//#endregion
|
|
718
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
719
|
-
/** `Object#toString` result references. */
|
|
720
|
-
var argsTag$3 = "[object Arguments]";
|
|
701
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.js
|
|
721
702
|
/**
|
|
722
|
-
*
|
|
703
|
+
* Sets the map `key` to `value`.
|
|
723
704
|
*
|
|
724
705
|
* @private
|
|
725
|
-
* @
|
|
726
|
-
* @
|
|
706
|
+
* @name set
|
|
707
|
+
* @memberOf MapCache
|
|
708
|
+
* @param {string} key The key of the value to set.
|
|
709
|
+
* @param {*} value The value to set.
|
|
710
|
+
* @returns {Object} Returns the map cache instance.
|
|
727
711
|
*/
|
|
728
|
-
function
|
|
712
|
+
function mapCacheSet(key, value) {
|
|
713
|
+
var data = getMapData(this, key), size = data.size;
|
|
714
|
+
data.set(key, value);
|
|
715
|
+
this.size += data.size == size ? 0 : 1;
|
|
716
|
+
return this;
|
|
717
|
+
}
|
|
718
|
+
//#endregion
|
|
719
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.js
|
|
720
|
+
/**
|
|
721
|
+
* Creates a map cache object to store key-value pairs.
|
|
722
|
+
*
|
|
723
|
+
* @private
|
|
724
|
+
* @constructor
|
|
725
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
726
|
+
*/
|
|
727
|
+
function MapCache(entries) {
|
|
728
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
729
|
+
this.clear();
|
|
730
|
+
while (++index < length) {
|
|
731
|
+
var entry = entries[index];
|
|
732
|
+
this.set(entry[0], entry[1]);
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
MapCache.prototype.clear = mapCacheClear;
|
|
736
|
+
MapCache.prototype["delete"] = mapCacheDelete;
|
|
737
|
+
MapCache.prototype.get = mapCacheGet;
|
|
738
|
+
MapCache.prototype.has = mapCacheHas;
|
|
739
|
+
MapCache.prototype.set = mapCacheSet;
|
|
740
|
+
//#endregion
|
|
741
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackSet.js
|
|
742
|
+
/** Used as the size to enable large array optimizations. */
|
|
743
|
+
var LARGE_ARRAY_SIZE = 200;
|
|
744
|
+
/**
|
|
745
|
+
* Sets the stack `key` to `value`.
|
|
746
|
+
*
|
|
747
|
+
* @private
|
|
748
|
+
* @name set
|
|
749
|
+
* @memberOf Stack
|
|
750
|
+
* @param {string} key The key of the value to set.
|
|
751
|
+
* @param {*} value The value to set.
|
|
752
|
+
* @returns {Object} Returns the stack cache instance.
|
|
753
|
+
*/
|
|
754
|
+
function stackSet(key, value) {
|
|
755
|
+
var data = this.__data__;
|
|
756
|
+
if (data instanceof ListCache) {
|
|
757
|
+
var pairs = data.__data__;
|
|
758
|
+
if (!Map$1 || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
759
|
+
pairs.push([key, value]);
|
|
760
|
+
this.size = ++data.size;
|
|
761
|
+
return this;
|
|
762
|
+
}
|
|
763
|
+
data = this.__data__ = new MapCache(pairs);
|
|
764
|
+
}
|
|
765
|
+
data.set(key, value);
|
|
766
|
+
this.size = data.size;
|
|
767
|
+
return this;
|
|
768
|
+
}
|
|
769
|
+
//#endregion
|
|
770
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Stack.js
|
|
771
|
+
/**
|
|
772
|
+
* Creates a stack cache object to store key-value pairs.
|
|
773
|
+
*
|
|
774
|
+
* @private
|
|
775
|
+
* @constructor
|
|
776
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
777
|
+
*/
|
|
778
|
+
function Stack(entries) {
|
|
779
|
+
var data = this.__data__ = new ListCache(entries);
|
|
780
|
+
this.size = data.size;
|
|
781
|
+
}
|
|
782
|
+
Stack.prototype.clear = stackClear;
|
|
783
|
+
Stack.prototype["delete"] = stackDelete;
|
|
784
|
+
Stack.prototype.get = stackGet;
|
|
785
|
+
Stack.prototype.has = stackHas;
|
|
786
|
+
Stack.prototype.set = stackSet;
|
|
787
|
+
//#endregion
|
|
788
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayEach.js
|
|
789
|
+
/**
|
|
790
|
+
* A specialized version of `_.forEach` for arrays without support for
|
|
791
|
+
* iteratee shorthands.
|
|
792
|
+
*
|
|
793
|
+
* @private
|
|
794
|
+
* @param {Array} [array] The array to iterate over.
|
|
795
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
796
|
+
* @returns {Array} Returns `array`.
|
|
797
|
+
*/
|
|
798
|
+
function arrayEach(array, iteratee) {
|
|
799
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
800
|
+
while (++index < length) if (iteratee(array[index], index, array) === false) break;
|
|
801
|
+
return array;
|
|
802
|
+
}
|
|
803
|
+
//#endregion
|
|
804
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_defineProperty.js
|
|
805
|
+
var defineProperty = function() {
|
|
806
|
+
try {
|
|
807
|
+
var func = getNative(Object, "defineProperty");
|
|
808
|
+
func({}, "", {});
|
|
809
|
+
return func;
|
|
810
|
+
} catch (e) {}
|
|
811
|
+
}();
|
|
812
|
+
//#endregion
|
|
813
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignValue.js
|
|
814
|
+
/**
|
|
815
|
+
* The base implementation of `assignValue` and `assignMergeValue` without
|
|
816
|
+
* value checks.
|
|
817
|
+
*
|
|
818
|
+
* @private
|
|
819
|
+
* @param {Object} object The object to modify.
|
|
820
|
+
* @param {string} key The key of the property to assign.
|
|
821
|
+
* @param {*} value The value to assign.
|
|
822
|
+
*/
|
|
823
|
+
function baseAssignValue(object, key, value) {
|
|
824
|
+
if (key == "__proto__" && defineProperty) defineProperty(object, key, {
|
|
825
|
+
"configurable": true,
|
|
826
|
+
"enumerable": true,
|
|
827
|
+
"value": value,
|
|
828
|
+
"writable": true
|
|
829
|
+
});
|
|
830
|
+
else object[key] = value;
|
|
831
|
+
}
|
|
832
|
+
//#endregion
|
|
833
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignValue.js
|
|
834
|
+
/** Used to check objects for own properties. */
|
|
835
|
+
var hasOwnProperty$8 = Object.prototype.hasOwnProperty;
|
|
836
|
+
/**
|
|
837
|
+
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
|
838
|
+
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
839
|
+
* for equality comparisons.
|
|
840
|
+
*
|
|
841
|
+
* @private
|
|
842
|
+
* @param {Object} object The object to modify.
|
|
843
|
+
* @param {string} key The key of the property to assign.
|
|
844
|
+
* @param {*} value The value to assign.
|
|
845
|
+
*/
|
|
846
|
+
function assignValue(object, key, value) {
|
|
847
|
+
var objValue = object[key];
|
|
848
|
+
if (!(hasOwnProperty$8.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) baseAssignValue(object, key, value);
|
|
849
|
+
}
|
|
850
|
+
//#endregion
|
|
851
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyObject.js
|
|
852
|
+
/**
|
|
853
|
+
* Copies properties of `source` to `object`.
|
|
854
|
+
*
|
|
855
|
+
* @private
|
|
856
|
+
* @param {Object} source The object to copy properties from.
|
|
857
|
+
* @param {Array} props The property identifiers to copy.
|
|
858
|
+
* @param {Object} [object={}] The object to copy properties to.
|
|
859
|
+
* @param {Function} [customizer] The function to customize copied values.
|
|
860
|
+
* @returns {Object} Returns `object`.
|
|
861
|
+
*/
|
|
862
|
+
function copyObject(source, props, object, customizer) {
|
|
863
|
+
var isNew = !object;
|
|
864
|
+
object || (object = {});
|
|
865
|
+
var index = -1, length = props.length;
|
|
866
|
+
while (++index < length) {
|
|
867
|
+
var key = props[index];
|
|
868
|
+
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
|
|
869
|
+
if (newValue === void 0) newValue = source[key];
|
|
870
|
+
if (isNew) baseAssignValue(object, key, newValue);
|
|
871
|
+
else assignValue(object, key, newValue);
|
|
872
|
+
}
|
|
873
|
+
return object;
|
|
874
|
+
}
|
|
875
|
+
//#endregion
|
|
876
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTimes.js
|
|
877
|
+
/**
|
|
878
|
+
* The base implementation of `_.times` without support for iteratee shorthands
|
|
879
|
+
* or max array length checks.
|
|
880
|
+
*
|
|
881
|
+
* @private
|
|
882
|
+
* @param {number} n The number of times to invoke `iteratee`.
|
|
883
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
884
|
+
* @returns {Array} Returns the array of results.
|
|
885
|
+
*/
|
|
886
|
+
function baseTimes(n, iteratee) {
|
|
887
|
+
var index = -1, result = Array(n);
|
|
888
|
+
while (++index < n) result[index] = iteratee(index);
|
|
889
|
+
return result;
|
|
890
|
+
}
|
|
891
|
+
//#endregion
|
|
892
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js
|
|
893
|
+
/**
|
|
894
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
895
|
+
* and has a `typeof` result of "object".
|
|
896
|
+
*
|
|
897
|
+
* @static
|
|
898
|
+
* @memberOf _
|
|
899
|
+
* @since 4.0.0
|
|
900
|
+
* @category Lang
|
|
901
|
+
* @param {*} value The value to check.
|
|
902
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
903
|
+
* @example
|
|
904
|
+
*
|
|
905
|
+
* _.isObjectLike({});
|
|
906
|
+
* // => true
|
|
907
|
+
*
|
|
908
|
+
* _.isObjectLike([1, 2, 3]);
|
|
909
|
+
* // => true
|
|
910
|
+
*
|
|
911
|
+
* _.isObjectLike(_.noop);
|
|
912
|
+
* // => false
|
|
913
|
+
*
|
|
914
|
+
* _.isObjectLike(null);
|
|
915
|
+
* // => false
|
|
916
|
+
*/
|
|
917
|
+
function isObjectLike(value) {
|
|
918
|
+
return value != null && typeof value == "object";
|
|
919
|
+
}
|
|
920
|
+
//#endregion
|
|
921
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsArguments.js
|
|
922
|
+
/** `Object#toString` result references. */
|
|
923
|
+
var argsTag$3 = "[object Arguments]";
|
|
924
|
+
/**
|
|
925
|
+
* The base implementation of `_.isArguments`.
|
|
926
|
+
*
|
|
927
|
+
* @private
|
|
928
|
+
* @param {*} value The value to check.
|
|
929
|
+
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
930
|
+
*/
|
|
931
|
+
function baseIsArguments(value) {
|
|
729
932
|
return isObjectLike(value) && baseGetTag(value) == argsTag$3;
|
|
730
933
|
}
|
|
731
934
|
//#endregion
|
|
732
935
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArguments.js
|
|
733
936
|
/** Used for built-in method references. */
|
|
734
|
-
var objectProto = Object.prototype;
|
|
937
|
+
var objectProto$1 = Object.prototype;
|
|
735
938
|
/** Used to check objects for own properties. */
|
|
736
|
-
var hasOwnProperty$
|
|
939
|
+
var hasOwnProperty$7 = objectProto$1.hasOwnProperty;
|
|
737
940
|
/** Built-in value references. */
|
|
738
|
-
var propertyIsEnumerable$1 = objectProto.propertyIsEnumerable;
|
|
941
|
+
var propertyIsEnumerable$1 = objectProto$1.propertyIsEnumerable;
|
|
739
942
|
/**
|
|
740
943
|
* Checks if `value` is likely an `arguments` object.
|
|
741
944
|
*
|
|
@@ -757,9 +960,35 @@
|
|
|
757
960
|
var isArguments = baseIsArguments(function() {
|
|
758
961
|
return arguments;
|
|
759
962
|
}()) ? baseIsArguments : function(value) {
|
|
760
|
-
return isObjectLike(value) && hasOwnProperty$
|
|
963
|
+
return isObjectLike(value) && hasOwnProperty$7.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
761
964
|
};
|
|
762
965
|
//#endregion
|
|
966
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.js
|
|
967
|
+
/**
|
|
968
|
+
* Checks if `value` is classified as an `Array` object.
|
|
969
|
+
*
|
|
970
|
+
* @static
|
|
971
|
+
* @memberOf _
|
|
972
|
+
* @since 0.1.0
|
|
973
|
+
* @category Lang
|
|
974
|
+
* @param {*} value The value to check.
|
|
975
|
+
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
976
|
+
* @example
|
|
977
|
+
*
|
|
978
|
+
* _.isArray([1, 2, 3]);
|
|
979
|
+
* // => true
|
|
980
|
+
*
|
|
981
|
+
* _.isArray(document.body.children);
|
|
982
|
+
* // => false
|
|
983
|
+
*
|
|
984
|
+
* _.isArray('abc');
|
|
985
|
+
* // => false
|
|
986
|
+
*
|
|
987
|
+
* _.isArray(_.noop);
|
|
988
|
+
* // => false
|
|
989
|
+
*/
|
|
990
|
+
var isArray = Array.isArray;
|
|
991
|
+
//#endregion
|
|
763
992
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.js
|
|
764
993
|
/**
|
|
765
994
|
* This method returns `false`.
|
|
@@ -804,15 +1033,67 @@
|
|
|
804
1033
|
*/
|
|
805
1034
|
var isBuffer = (Buffer$2 ? Buffer$2.isBuffer : void 0) || stubFalse;
|
|
806
1035
|
//#endregion
|
|
807
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
808
|
-
/** `
|
|
809
|
-
var
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
1036
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIndex.js
|
|
1037
|
+
/** Used as references for various `Number` constants. */
|
|
1038
|
+
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
1039
|
+
/** Used to detect unsigned integer values. */
|
|
1040
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
1041
|
+
/**
|
|
1042
|
+
* Checks if `value` is a valid array-like index.
|
|
1043
|
+
*
|
|
1044
|
+
* @private
|
|
1045
|
+
* @param {*} value The value to check.
|
|
1046
|
+
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
1047
|
+
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
1048
|
+
*/
|
|
1049
|
+
function isIndex(value, length) {
|
|
1050
|
+
var type = typeof value;
|
|
1051
|
+
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
1052
|
+
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
|
|
1053
|
+
}
|
|
1054
|
+
//#endregion
|
|
1055
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.js
|
|
1056
|
+
/** Used as references for various `Number` constants. */
|
|
1057
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
1058
|
+
/**
|
|
1059
|
+
* Checks if `value` is a valid array-like length.
|
|
1060
|
+
*
|
|
1061
|
+
* **Note:** This method is loosely based on
|
|
1062
|
+
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
|
|
1063
|
+
*
|
|
1064
|
+
* @static
|
|
1065
|
+
* @memberOf _
|
|
1066
|
+
* @since 4.0.0
|
|
1067
|
+
* @category Lang
|
|
1068
|
+
* @param {*} value The value to check.
|
|
1069
|
+
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
|
1070
|
+
* @example
|
|
1071
|
+
*
|
|
1072
|
+
* _.isLength(3);
|
|
1073
|
+
* // => true
|
|
1074
|
+
*
|
|
1075
|
+
* _.isLength(Number.MIN_VALUE);
|
|
1076
|
+
* // => false
|
|
1077
|
+
*
|
|
1078
|
+
* _.isLength(Infinity);
|
|
1079
|
+
* // => false
|
|
1080
|
+
*
|
|
1081
|
+
* _.isLength('3');
|
|
1082
|
+
* // => false
|
|
1083
|
+
*/
|
|
1084
|
+
function isLength(value) {
|
|
1085
|
+
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
1086
|
+
}
|
|
1087
|
+
//#endregion
|
|
1088
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsTypedArray.js
|
|
1089
|
+
/** `Object#toString` result references. */
|
|
1090
|
+
var argsTag$2 = "[object Arguments]", arrayTag$2 = "[object Array]", boolTag$3 = "[object Boolean]", dateTag$3 = "[object Date]", errorTag$2 = "[object Error]", funcTag$1 = "[object Function]", mapTag$6 = "[object Map]", numberTag$3 = "[object Number]", objectTag$3 = "[object Object]", regexpTag$3 = "[object RegExp]", setTag$6 = "[object Set]", stringTag$3 = "[object String]", weakMapTag$2 = "[object WeakMap]";
|
|
1091
|
+
var arrayBufferTag$3 = "[object ArrayBuffer]", dataViewTag$4 = "[object DataView]", float32Tag$2 = "[object Float32Array]", float64Tag$2 = "[object Float64Array]", int8Tag$2 = "[object Int8Array]", int16Tag$2 = "[object Int16Array]", int32Tag$2 = "[object Int32Array]", uint8Tag$2 = "[object Uint8Array]", uint8ClampedTag$2 = "[object Uint8ClampedArray]", uint16Tag$2 = "[object Uint16Array]", uint32Tag$2 = "[object Uint32Array]";
|
|
1092
|
+
/** Used to identify `toStringTag` values of typed arrays. */
|
|
1093
|
+
var typedArrayTags = {};
|
|
1094
|
+
typedArrayTags[float32Tag$2] = typedArrayTags[float64Tag$2] = typedArrayTags[int8Tag$2] = typedArrayTags[int16Tag$2] = typedArrayTags[int32Tag$2] = typedArrayTags[uint8Tag$2] = typedArrayTags[uint8ClampedTag$2] = typedArrayTags[uint16Tag$2] = typedArrayTags[uint32Tag$2] = true;
|
|
1095
|
+
typedArrayTags[argsTag$2] = typedArrayTags[arrayTag$2] = typedArrayTags[arrayBufferTag$3] = typedArrayTags[boolTag$3] = typedArrayTags[dataViewTag$4] = typedArrayTags[dateTag$3] = typedArrayTags[errorTag$2] = typedArrayTags[funcTag$1] = typedArrayTags[mapTag$6] = typedArrayTags[numberTag$3] = typedArrayTags[objectTag$3] = typedArrayTags[regexpTag$3] = typedArrayTags[setTag$6] = typedArrayTags[stringTag$3] = typedArrayTags[weakMapTag$2] = false;
|
|
1096
|
+
/**
|
|
816
1097
|
* The base implementation of `_.isTypedArray` without Node.js optimizations.
|
|
817
1098
|
*
|
|
818
1099
|
* @private
|
|
@@ -876,7 +1157,7 @@
|
|
|
876
1157
|
//#endregion
|
|
877
1158
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayLikeKeys.js
|
|
878
1159
|
/** Used to check objects for own properties. */
|
|
879
|
-
var hasOwnProperty$
|
|
1160
|
+
var hasOwnProperty$6 = Object.prototype.hasOwnProperty;
|
|
880
1161
|
/**
|
|
881
1162
|
* Creates an array of the enumerable property names of the array-like `value`.
|
|
882
1163
|
*
|
|
@@ -887,10 +1168,25 @@
|
|
|
887
1168
|
*/
|
|
888
1169
|
function arrayLikeKeys(value, inherited) {
|
|
889
1170
|
var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
890
|
-
for (var key in value) if ((inherited || hasOwnProperty$
|
|
1171
|
+
for (var key in value) if ((inherited || hasOwnProperty$6.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) result.push(key);
|
|
891
1172
|
return result;
|
|
892
1173
|
}
|
|
893
1174
|
//#endregion
|
|
1175
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isPrototype.js
|
|
1176
|
+
/** Used for built-in method references. */
|
|
1177
|
+
var objectProto = Object.prototype;
|
|
1178
|
+
/**
|
|
1179
|
+
* Checks if `value` is likely a prototype object.
|
|
1180
|
+
*
|
|
1181
|
+
* @private
|
|
1182
|
+
* @param {*} value The value to check.
|
|
1183
|
+
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
|
|
1184
|
+
*/
|
|
1185
|
+
function isPrototype(value) {
|
|
1186
|
+
var Ctor = value && value.constructor;
|
|
1187
|
+
return value === (typeof Ctor == "function" && Ctor.prototype || objectProto);
|
|
1188
|
+
}
|
|
1189
|
+
//#endregion
|
|
894
1190
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.js
|
|
895
1191
|
/**
|
|
896
1192
|
* Creates a unary function that invokes `func` with its argument transformed.
|
|
@@ -911,7 +1207,7 @@
|
|
|
911
1207
|
//#endregion
|
|
912
1208
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeys.js
|
|
913
1209
|
/** Used to check objects for own properties. */
|
|
914
|
-
var hasOwnProperty$
|
|
1210
|
+
var hasOwnProperty$5 = Object.prototype.hasOwnProperty;
|
|
915
1211
|
/**
|
|
916
1212
|
* The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
|
|
917
1213
|
*
|
|
@@ -922,10 +1218,40 @@
|
|
|
922
1218
|
function baseKeys(object) {
|
|
923
1219
|
if (!isPrototype(object)) return nativeKeys(object);
|
|
924
1220
|
var result = [];
|
|
925
|
-
for (var key in Object(object)) if (hasOwnProperty$
|
|
1221
|
+
for (var key in Object(object)) if (hasOwnProperty$5.call(object, key) && key != "constructor") result.push(key);
|
|
926
1222
|
return result;
|
|
927
1223
|
}
|
|
928
1224
|
//#endregion
|
|
1225
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.js
|
|
1226
|
+
/**
|
|
1227
|
+
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
1228
|
+
* not a function and has a `value.length` that's an integer greater than or
|
|
1229
|
+
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
|
|
1230
|
+
*
|
|
1231
|
+
* @static
|
|
1232
|
+
* @memberOf _
|
|
1233
|
+
* @since 4.0.0
|
|
1234
|
+
* @category Lang
|
|
1235
|
+
* @param {*} value The value to check.
|
|
1236
|
+
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
|
1237
|
+
* @example
|
|
1238
|
+
*
|
|
1239
|
+
* _.isArrayLike([1, 2, 3]);
|
|
1240
|
+
* // => true
|
|
1241
|
+
*
|
|
1242
|
+
* _.isArrayLike(document.body.children);
|
|
1243
|
+
* // => true
|
|
1244
|
+
*
|
|
1245
|
+
* _.isArrayLike('abc');
|
|
1246
|
+
* // => true
|
|
1247
|
+
*
|
|
1248
|
+
* _.isArrayLike(_.noop);
|
|
1249
|
+
* // => false
|
|
1250
|
+
*/
|
|
1251
|
+
function isArrayLike(value) {
|
|
1252
|
+
return value != null && isLength(value.length) && !isFunction(value);
|
|
1253
|
+
}
|
|
1254
|
+
//#endregion
|
|
929
1255
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keys.js
|
|
930
1256
|
/**
|
|
931
1257
|
* Creates an array of the own enumerable property names of `object`.
|
|
@@ -959,6 +1285,20 @@
|
|
|
959
1285
|
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
960
1286
|
}
|
|
961
1287
|
//#endregion
|
|
1288
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssign.js
|
|
1289
|
+
/**
|
|
1290
|
+
* The base implementation of `_.assign` without support for multiple sources
|
|
1291
|
+
* or `customizer` functions.
|
|
1292
|
+
*
|
|
1293
|
+
* @private
|
|
1294
|
+
* @param {Object} object The destination object.
|
|
1295
|
+
* @param {Object} source The source object.
|
|
1296
|
+
* @returns {Object} Returns `object`.
|
|
1297
|
+
*/
|
|
1298
|
+
function baseAssign(object, source) {
|
|
1299
|
+
return object && copyObject(source, keys(source), object);
|
|
1300
|
+
}
|
|
1301
|
+
//#endregion
|
|
962
1302
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeysIn.js
|
|
963
1303
|
/**
|
|
964
1304
|
* This function is like
|
|
@@ -977,7 +1317,7 @@
|
|
|
977
1317
|
//#endregion
|
|
978
1318
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeysIn.js
|
|
979
1319
|
/** Used to check objects for own properties. */
|
|
980
|
-
var hasOwnProperty$
|
|
1320
|
+
var hasOwnProperty$4 = Object.prototype.hasOwnProperty;
|
|
981
1321
|
/**
|
|
982
1322
|
* The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
|
|
983
1323
|
*
|
|
@@ -988,7 +1328,7 @@
|
|
|
988
1328
|
function baseKeysIn(object) {
|
|
989
1329
|
if (!isObject(object)) return nativeKeysIn(object);
|
|
990
1330
|
var isProto = isPrototype(object), result = [];
|
|
991
|
-
for (var key in object) if (!(key == "constructor" && (isProto || !hasOwnProperty$
|
|
1331
|
+
for (var key in object) if (!(key == "constructor" && (isProto || !hasOwnProperty$4.call(object, key)))) result.push(key);
|
|
992
1332
|
return result;
|
|
993
1333
|
}
|
|
994
1334
|
//#endregion
|
|
@@ -1020,1035 +1360,892 @@
|
|
|
1020
1360
|
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
1021
1361
|
}
|
|
1022
1362
|
//#endregion
|
|
1023
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1024
|
-
var nativeCreate = getNative(Object, "create");
|
|
1025
|
-
//#endregion
|
|
1026
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.js
|
|
1363
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignIn.js
|
|
1027
1364
|
/**
|
|
1028
|
-
*
|
|
1365
|
+
* The base implementation of `_.assignIn` without support for multiple sources
|
|
1366
|
+
* or `customizer` functions.
|
|
1029
1367
|
*
|
|
1030
1368
|
* @private
|
|
1031
|
-
* @
|
|
1032
|
-
* @
|
|
1369
|
+
* @param {Object} object The destination object.
|
|
1370
|
+
* @param {Object} source The source object.
|
|
1371
|
+
* @returns {Object} Returns `object`.
|
|
1033
1372
|
*/
|
|
1034
|
-
function
|
|
1035
|
-
|
|
1036
|
-
this.size = 0;
|
|
1373
|
+
function baseAssignIn(object, source) {
|
|
1374
|
+
return object && copyObject(source, keysIn(source), object);
|
|
1037
1375
|
}
|
|
1038
1376
|
//#endregion
|
|
1039
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1377
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneBuffer.js
|
|
1378
|
+
/** Detect free variable `exports`. */
|
|
1379
|
+
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
1380
|
+
/** Detect free variable `module`. */
|
|
1381
|
+
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
|
|
1382
|
+
/** Built-in value references. */
|
|
1383
|
+
var Buffer$1 = freeModule && freeModule.exports === freeExports ? root.Buffer : void 0, allocUnsafe = Buffer$1 ? Buffer$1.allocUnsafe : void 0;
|
|
1040
1384
|
/**
|
|
1041
|
-
*
|
|
1385
|
+
* Creates a clone of `buffer`.
|
|
1042
1386
|
*
|
|
1043
1387
|
* @private
|
|
1044
|
-
* @
|
|
1045
|
-
* @
|
|
1046
|
-
* @
|
|
1047
|
-
* @param {string} key The key of the value to remove.
|
|
1048
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1388
|
+
* @param {Buffer} buffer The buffer to clone.
|
|
1389
|
+
* @param {boolean} [isDeep] Specify a deep clone.
|
|
1390
|
+
* @returns {Buffer} Returns the cloned buffer.
|
|
1049
1391
|
*/
|
|
1050
|
-
function
|
|
1051
|
-
|
|
1052
|
-
|
|
1392
|
+
function cloneBuffer(buffer, isDeep) {
|
|
1393
|
+
if (isDeep) return buffer.slice();
|
|
1394
|
+
var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
1395
|
+
buffer.copy(result);
|
|
1053
1396
|
return result;
|
|
1054
1397
|
}
|
|
1055
1398
|
//#endregion
|
|
1056
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1057
|
-
/** Used to stand-in for `undefined` hash values. */
|
|
1058
|
-
var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
|
|
1059
|
-
/** Used to check objects for own properties. */
|
|
1060
|
-
var hasOwnProperty$5 = Object.prototype.hasOwnProperty;
|
|
1399
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyArray.js
|
|
1061
1400
|
/**
|
|
1062
|
-
*
|
|
1401
|
+
* Copies the values of `source` to `array`.
|
|
1063
1402
|
*
|
|
1064
1403
|
* @private
|
|
1065
|
-
* @
|
|
1066
|
-
* @
|
|
1067
|
-
* @
|
|
1068
|
-
* @returns {*} Returns the entry value.
|
|
1404
|
+
* @param {Array} source The array to copy values from.
|
|
1405
|
+
* @param {Array} [array=[]] The array to copy values to.
|
|
1406
|
+
* @returns {Array} Returns `array`.
|
|
1069
1407
|
*/
|
|
1070
|
-
function
|
|
1071
|
-
var
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
}
|
|
1076
|
-
return hasOwnProperty$5.call(data, key) ? data[key] : void 0;
|
|
1408
|
+
function copyArray(source, array) {
|
|
1409
|
+
var index = -1, length = source.length;
|
|
1410
|
+
array || (array = Array(length));
|
|
1411
|
+
while (++index < length) array[index] = source[index];
|
|
1412
|
+
return array;
|
|
1077
1413
|
}
|
|
1078
1414
|
//#endregion
|
|
1079
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1080
|
-
/** Used to check objects for own properties. */
|
|
1081
|
-
var hasOwnProperty$4 = Object.prototype.hasOwnProperty;
|
|
1415
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayFilter.js
|
|
1082
1416
|
/**
|
|
1083
|
-
*
|
|
1417
|
+
* A specialized version of `_.filter` for arrays without support for
|
|
1418
|
+
* iteratee shorthands.
|
|
1084
1419
|
*
|
|
1085
1420
|
* @private
|
|
1086
|
-
* @
|
|
1087
|
-
* @
|
|
1088
|
-
* @
|
|
1089
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1421
|
+
* @param {Array} [array] The array to iterate over.
|
|
1422
|
+
* @param {Function} predicate The function invoked per iteration.
|
|
1423
|
+
* @returns {Array} Returns the new filtered array.
|
|
1090
1424
|
*/
|
|
1091
|
-
function
|
|
1092
|
-
var
|
|
1093
|
-
|
|
1425
|
+
function arrayFilter(array, predicate) {
|
|
1426
|
+
var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
|
1427
|
+
while (++index < length) {
|
|
1428
|
+
var value = array[index];
|
|
1429
|
+
if (predicate(value, index, array)) result[resIndex++] = value;
|
|
1430
|
+
}
|
|
1431
|
+
return result;
|
|
1094
1432
|
}
|
|
1095
1433
|
//#endregion
|
|
1096
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1097
|
-
/** Used to stand-in for `undefined` hash values. */
|
|
1098
|
-
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
1434
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubArray.js
|
|
1099
1435
|
/**
|
|
1100
|
-
*
|
|
1436
|
+
* This method returns a new empty array.
|
|
1101
1437
|
*
|
|
1102
|
-
* @
|
|
1103
|
-
* @
|
|
1104
|
-
* @
|
|
1105
|
-
* @
|
|
1106
|
-
* @
|
|
1107
|
-
* @
|
|
1438
|
+
* @static
|
|
1439
|
+
* @memberOf _
|
|
1440
|
+
* @since 4.13.0
|
|
1441
|
+
* @category Util
|
|
1442
|
+
* @returns {Array} Returns the new empty array.
|
|
1443
|
+
* @example
|
|
1444
|
+
*
|
|
1445
|
+
* var arrays = _.times(2, _.stubArray);
|
|
1446
|
+
*
|
|
1447
|
+
* console.log(arrays);
|
|
1448
|
+
* // => [[], []]
|
|
1449
|
+
*
|
|
1450
|
+
* console.log(arrays[0] === arrays[1]);
|
|
1451
|
+
* // => false
|
|
1108
1452
|
*/
|
|
1109
|
-
function
|
|
1110
|
-
|
|
1111
|
-
this.size += this.has(key) ? 0 : 1;
|
|
1112
|
-
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED$1 : value;
|
|
1113
|
-
return this;
|
|
1453
|
+
function stubArray() {
|
|
1454
|
+
return [];
|
|
1114
1455
|
}
|
|
1115
1456
|
//#endregion
|
|
1116
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1457
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbols.js
|
|
1458
|
+
/** Built-in value references. */
|
|
1459
|
+
var propertyIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
1460
|
+
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
1117
1461
|
/**
|
|
1118
|
-
* Creates
|
|
1462
|
+
* Creates an array of the own enumerable symbols of `object`.
|
|
1119
1463
|
*
|
|
1120
1464
|
* @private
|
|
1121
|
-
* @
|
|
1122
|
-
* @
|
|
1465
|
+
* @param {Object} object The object to query.
|
|
1466
|
+
* @returns {Array} Returns the array of symbols.
|
|
1123
1467
|
*/
|
|
1124
|
-
function
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
}
|
|
1132
|
-
Hash.prototype.clear = hashClear;
|
|
1133
|
-
Hash.prototype["delete"] = hashDelete;
|
|
1134
|
-
Hash.prototype.get = hashGet;
|
|
1135
|
-
Hash.prototype.has = hashHas;
|
|
1136
|
-
Hash.prototype.set = hashSet;
|
|
1468
|
+
var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
|
|
1469
|
+
if (object == null) return [];
|
|
1470
|
+
object = Object(object);
|
|
1471
|
+
return arrayFilter(nativeGetSymbols(object), function(symbol) {
|
|
1472
|
+
return propertyIsEnumerable.call(object, symbol);
|
|
1473
|
+
});
|
|
1474
|
+
};
|
|
1137
1475
|
//#endregion
|
|
1138
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1476
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copySymbols.js
|
|
1139
1477
|
/**
|
|
1140
|
-
*
|
|
1478
|
+
* Copies own symbols of `source` to `object`.
|
|
1141
1479
|
*
|
|
1142
1480
|
* @private
|
|
1143
|
-
* @
|
|
1144
|
-
* @
|
|
1481
|
+
* @param {Object} source The object to copy symbols from.
|
|
1482
|
+
* @param {Object} [object={}] The object to copy symbols to.
|
|
1483
|
+
* @returns {Object} Returns `object`.
|
|
1145
1484
|
*/
|
|
1146
|
-
function
|
|
1147
|
-
|
|
1148
|
-
this.size = 0;
|
|
1485
|
+
function copySymbols(source, object) {
|
|
1486
|
+
return copyObject(source, getSymbols(source), object);
|
|
1149
1487
|
}
|
|
1150
1488
|
//#endregion
|
|
1151
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1489
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayPush.js
|
|
1152
1490
|
/**
|
|
1153
|
-
*
|
|
1491
|
+
* Appends the elements of `values` to `array`.
|
|
1154
1492
|
*
|
|
1155
1493
|
* @private
|
|
1156
|
-
* @param {Array} array The array to
|
|
1157
|
-
* @param {
|
|
1158
|
-
* @returns {
|
|
1494
|
+
* @param {Array} array The array to modify.
|
|
1495
|
+
* @param {Array} values The values to append.
|
|
1496
|
+
* @returns {Array} Returns `array`.
|
|
1159
1497
|
*/
|
|
1160
|
-
function
|
|
1161
|
-
var length = array.length;
|
|
1162
|
-
while (length
|
|
1163
|
-
return
|
|
1498
|
+
function arrayPush(array, values) {
|
|
1499
|
+
var index = -1, length = values.length, offset = array.length;
|
|
1500
|
+
while (++index < length) array[offset + index] = values[index];
|
|
1501
|
+
return array;
|
|
1164
1502
|
}
|
|
1165
1503
|
//#endregion
|
|
1166
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1504
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getPrototype.js
|
|
1167
1505
|
/** Built-in value references. */
|
|
1168
|
-
var
|
|
1506
|
+
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
1507
|
+
//#endregion
|
|
1508
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbolsIn.js
|
|
1169
1509
|
/**
|
|
1170
|
-
*
|
|
1510
|
+
* Creates an array of the own and inherited enumerable symbols of `object`.
|
|
1171
1511
|
*
|
|
1172
1512
|
* @private
|
|
1173
|
-
* @
|
|
1174
|
-
* @
|
|
1175
|
-
* @param {string} key The key of the value to remove.
|
|
1176
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1513
|
+
* @param {Object} object The object to query.
|
|
1514
|
+
* @returns {Array} Returns the array of symbols.
|
|
1177
1515
|
*/
|
|
1178
|
-
function
|
|
1179
|
-
var
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
return
|
|
1185
|
-
}
|
|
1516
|
+
var getSymbolsIn = !Object.getOwnPropertySymbols ? stubArray : function(object) {
|
|
1517
|
+
var result = [];
|
|
1518
|
+
while (object) {
|
|
1519
|
+
arrayPush(result, getSymbols(object));
|
|
1520
|
+
object = getPrototype(object);
|
|
1521
|
+
}
|
|
1522
|
+
return result;
|
|
1523
|
+
};
|
|
1186
1524
|
//#endregion
|
|
1187
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1525
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copySymbolsIn.js
|
|
1188
1526
|
/**
|
|
1189
|
-
*
|
|
1527
|
+
* Copies own and inherited symbols of `source` to `object`.
|
|
1190
1528
|
*
|
|
1191
1529
|
* @private
|
|
1192
|
-
* @
|
|
1193
|
-
* @
|
|
1194
|
-
* @
|
|
1195
|
-
* @returns {*} Returns the entry value.
|
|
1530
|
+
* @param {Object} source The object to copy symbols from.
|
|
1531
|
+
* @param {Object} [object={}] The object to copy symbols to.
|
|
1532
|
+
* @returns {Object} Returns `object`.
|
|
1196
1533
|
*/
|
|
1197
|
-
function
|
|
1198
|
-
|
|
1199
|
-
return index < 0 ? void 0 : data[index][1];
|
|
1534
|
+
function copySymbolsIn(source, object) {
|
|
1535
|
+
return copyObject(source, getSymbolsIn(source), object);
|
|
1200
1536
|
}
|
|
1201
1537
|
//#endregion
|
|
1202
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1538
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetAllKeys.js
|
|
1203
1539
|
/**
|
|
1204
|
-
*
|
|
1540
|
+
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
|
|
1541
|
+
* `keysFunc` and `symbolsFunc` to get the enumerable property names and
|
|
1542
|
+
* symbols of `object`.
|
|
1205
1543
|
*
|
|
1206
1544
|
* @private
|
|
1207
|
-
* @
|
|
1208
|
-
* @
|
|
1209
|
-
* @param {
|
|
1210
|
-
* @returns {
|
|
1545
|
+
* @param {Object} object The object to query.
|
|
1546
|
+
* @param {Function} keysFunc The function to get the keys of `object`.
|
|
1547
|
+
* @param {Function} symbolsFunc The function to get the symbols of `object`.
|
|
1548
|
+
* @returns {Array} Returns the array of property names and symbols.
|
|
1211
1549
|
*/
|
|
1212
|
-
function
|
|
1213
|
-
|
|
1550
|
+
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
1551
|
+
var result = keysFunc(object);
|
|
1552
|
+
return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
1214
1553
|
}
|
|
1215
1554
|
//#endregion
|
|
1216
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1555
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeys.js
|
|
1217
1556
|
/**
|
|
1218
|
-
*
|
|
1557
|
+
* Creates an array of own enumerable property names and symbols of `object`.
|
|
1219
1558
|
*
|
|
1220
1559
|
* @private
|
|
1221
|
-
* @
|
|
1222
|
-
* @
|
|
1223
|
-
* @param {string} key The key of the value to set.
|
|
1224
|
-
* @param {*} value The value to set.
|
|
1225
|
-
* @returns {Object} Returns the list cache instance.
|
|
1560
|
+
* @param {Object} object The object to query.
|
|
1561
|
+
* @returns {Array} Returns the array of property names and symbols.
|
|
1226
1562
|
*/
|
|
1227
|
-
function
|
|
1228
|
-
|
|
1229
|
-
if (index < 0) {
|
|
1230
|
-
++this.size;
|
|
1231
|
-
data.push([key, value]);
|
|
1232
|
-
} else data[index][1] = value;
|
|
1233
|
-
return this;
|
|
1563
|
+
function getAllKeys(object) {
|
|
1564
|
+
return baseGetAllKeys(object, keys, getSymbols);
|
|
1234
1565
|
}
|
|
1235
1566
|
//#endregion
|
|
1236
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1567
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeysIn.js
|
|
1237
1568
|
/**
|
|
1238
|
-
* Creates an
|
|
1569
|
+
* Creates an array of own and inherited enumerable property names and
|
|
1570
|
+
* symbols of `object`.
|
|
1239
1571
|
*
|
|
1240
1572
|
* @private
|
|
1241
|
-
* @
|
|
1242
|
-
* @
|
|
1573
|
+
* @param {Object} object The object to query.
|
|
1574
|
+
* @returns {Array} Returns the array of property names and symbols.
|
|
1243
1575
|
*/
|
|
1244
|
-
function
|
|
1245
|
-
|
|
1246
|
-
this.clear();
|
|
1247
|
-
while (++index < length) {
|
|
1248
|
-
var entry = entries[index];
|
|
1249
|
-
this.set(entry[0], entry[1]);
|
|
1250
|
-
}
|
|
1576
|
+
function getAllKeysIn(object) {
|
|
1577
|
+
return baseGetAllKeys(object, keysIn, getSymbolsIn);
|
|
1251
1578
|
}
|
|
1252
|
-
ListCache.prototype.clear = listCacheClear;
|
|
1253
|
-
ListCache.prototype["delete"] = listCacheDelete;
|
|
1254
|
-
ListCache.prototype.get = listCacheGet;
|
|
1255
|
-
ListCache.prototype.has = listCacheHas;
|
|
1256
|
-
ListCache.prototype.set = listCacheSet;
|
|
1257
1579
|
//#endregion
|
|
1258
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1259
|
-
var
|
|
1580
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_DataView.js
|
|
1581
|
+
var DataView = getNative(root, "DataView");
|
|
1260
1582
|
//#endregion
|
|
1261
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1583
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Promise.js
|
|
1584
|
+
var Promise$1 = getNative(root, "Promise");
|
|
1585
|
+
//#endregion
|
|
1586
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.js
|
|
1587
|
+
var Set$1 = getNative(root, "Set");
|
|
1588
|
+
//#endregion
|
|
1589
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_WeakMap.js
|
|
1590
|
+
var WeakMap = getNative(root, "WeakMap");
|
|
1591
|
+
//#endregion
|
|
1592
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getTag.js
|
|
1593
|
+
/** `Object#toString` result references. */
|
|
1594
|
+
var mapTag$5 = "[object Map]", objectTag$2 = "[object Object]", promiseTag = "[object Promise]", setTag$5 = "[object Set]", weakMapTag$1 = "[object WeakMap]";
|
|
1595
|
+
var dataViewTag$3 = "[object DataView]";
|
|
1596
|
+
/** Used to detect maps, sets, and weakmaps. */
|
|
1597
|
+
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map$1), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set$1), weakMapCtorString = toSource(WeakMap);
|
|
1262
1598
|
/**
|
|
1263
|
-
*
|
|
1599
|
+
* Gets the `toStringTag` of `value`.
|
|
1264
1600
|
*
|
|
1265
1601
|
* @private
|
|
1266
|
-
* @
|
|
1267
|
-
* @
|
|
1602
|
+
* @param {*} value The value to query.
|
|
1603
|
+
* @returns {string} Returns the `toStringTag`.
|
|
1268
1604
|
*/
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1605
|
+
var getTag = baseGetTag;
|
|
1606
|
+
if (DataView && getTag(new DataView(/* @__PURE__ */ new ArrayBuffer(1))) != dataViewTag$3 || Map$1 && getTag(new Map$1()) != mapTag$5 || Promise$1 && getTag(Promise$1.resolve()) != promiseTag || Set$1 && getTag(new Set$1()) != setTag$5 || WeakMap && getTag(new WeakMap()) != weakMapTag$1) getTag = function(value) {
|
|
1607
|
+
var result = baseGetTag(value), Ctor = result == objectTag$2 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
|
|
1608
|
+
if (ctorString) switch (ctorString) {
|
|
1609
|
+
case dataViewCtorString: return dataViewTag$3;
|
|
1610
|
+
case mapCtorString: return mapTag$5;
|
|
1611
|
+
case promiseCtorString: return promiseTag;
|
|
1612
|
+
case setCtorString: return setTag$5;
|
|
1613
|
+
case weakMapCtorString: return weakMapTag$1;
|
|
1614
|
+
}
|
|
1615
|
+
return result;
|
|
1616
|
+
};
|
|
1617
|
+
var _getTag_default = getTag;
|
|
1277
1618
|
//#endregion
|
|
1278
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1619
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneArray.js
|
|
1620
|
+
/** Used to check objects for own properties. */
|
|
1621
|
+
var hasOwnProperty$3 = Object.prototype.hasOwnProperty;
|
|
1279
1622
|
/**
|
|
1280
|
-
*
|
|
1623
|
+
* Initializes an array clone.
|
|
1281
1624
|
*
|
|
1282
1625
|
* @private
|
|
1283
|
-
* @param {
|
|
1284
|
-
* @returns {
|
|
1626
|
+
* @param {Array} array The array to clone.
|
|
1627
|
+
* @returns {Array} Returns the initialized clone.
|
|
1285
1628
|
*/
|
|
1286
|
-
function
|
|
1287
|
-
var
|
|
1288
|
-
|
|
1629
|
+
function initCloneArray(array) {
|
|
1630
|
+
var length = array.length, result = new array.constructor(length);
|
|
1631
|
+
if (length && typeof array[0] == "string" && hasOwnProperty$3.call(array, "index")) {
|
|
1632
|
+
result.index = array.index;
|
|
1633
|
+
result.input = array.input;
|
|
1634
|
+
}
|
|
1635
|
+
return result;
|
|
1289
1636
|
}
|
|
1290
1637
|
//#endregion
|
|
1291
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1638
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Uint8Array.js
|
|
1639
|
+
/** Built-in value references. */
|
|
1640
|
+
var Uint8Array$1 = root.Uint8Array;
|
|
1641
|
+
//#endregion
|
|
1642
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneArrayBuffer.js
|
|
1292
1643
|
/**
|
|
1293
|
-
*
|
|
1644
|
+
* Creates a clone of `arrayBuffer`.
|
|
1294
1645
|
*
|
|
1295
1646
|
* @private
|
|
1296
|
-
* @param {
|
|
1297
|
-
* @
|
|
1298
|
-
* @returns {*} Returns the map data.
|
|
1647
|
+
* @param {ArrayBuffer} arrayBuffer The array buffer to clone.
|
|
1648
|
+
* @returns {ArrayBuffer} Returns the cloned array buffer.
|
|
1299
1649
|
*/
|
|
1300
|
-
function
|
|
1301
|
-
var
|
|
1302
|
-
|
|
1650
|
+
function cloneArrayBuffer(arrayBuffer) {
|
|
1651
|
+
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
1652
|
+
new Uint8Array$1(result).set(new Uint8Array$1(arrayBuffer));
|
|
1653
|
+
return result;
|
|
1303
1654
|
}
|
|
1304
1655
|
//#endregion
|
|
1305
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1656
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneDataView.js
|
|
1306
1657
|
/**
|
|
1307
|
-
*
|
|
1658
|
+
* Creates a clone of `dataView`.
|
|
1308
1659
|
*
|
|
1309
1660
|
* @private
|
|
1310
|
-
* @
|
|
1311
|
-
* @
|
|
1312
|
-
* @
|
|
1313
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1661
|
+
* @param {Object} dataView The data view to clone.
|
|
1662
|
+
* @param {boolean} [isDeep] Specify a deep clone.
|
|
1663
|
+
* @returns {Object} Returns the cloned data view.
|
|
1314
1664
|
*/
|
|
1315
|
-
function
|
|
1316
|
-
var
|
|
1317
|
-
|
|
1318
|
-
return result;
|
|
1665
|
+
function cloneDataView(dataView, isDeep) {
|
|
1666
|
+
var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
|
|
1667
|
+
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
|
1319
1668
|
}
|
|
1320
1669
|
//#endregion
|
|
1321
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1670
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneRegExp.js
|
|
1671
|
+
/** Used to match `RegExp` flags from their coerced string values. */
|
|
1672
|
+
var reFlags = /\w*$/;
|
|
1322
1673
|
/**
|
|
1323
|
-
*
|
|
1674
|
+
* Creates a clone of `regexp`.
|
|
1324
1675
|
*
|
|
1325
1676
|
* @private
|
|
1326
|
-
* @
|
|
1327
|
-
* @
|
|
1328
|
-
* @param {string} key The key of the value to get.
|
|
1329
|
-
* @returns {*} Returns the entry value.
|
|
1677
|
+
* @param {Object} regexp The regexp to clone.
|
|
1678
|
+
* @returns {Object} Returns the cloned regexp.
|
|
1330
1679
|
*/
|
|
1331
|
-
function
|
|
1332
|
-
|
|
1680
|
+
function cloneRegExp(regexp) {
|
|
1681
|
+
var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
|
|
1682
|
+
result.lastIndex = regexp.lastIndex;
|
|
1683
|
+
return result;
|
|
1333
1684
|
}
|
|
1334
1685
|
//#endregion
|
|
1335
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1686
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneSymbol.js
|
|
1687
|
+
/** Used to convert symbols to primitives and strings. */
|
|
1688
|
+
var symbolProto$1 = Symbol$1 ? Symbol$1.prototype : void 0, symbolValueOf$1 = symbolProto$1 ? symbolProto$1.valueOf : void 0;
|
|
1336
1689
|
/**
|
|
1337
|
-
*
|
|
1690
|
+
* Creates a clone of the `symbol` object.
|
|
1338
1691
|
*
|
|
1339
1692
|
* @private
|
|
1340
|
-
* @
|
|
1341
|
-
* @
|
|
1342
|
-
* @param {string} key The key of the entry to check.
|
|
1343
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1693
|
+
* @param {Object} symbol The symbol object to clone.
|
|
1694
|
+
* @returns {Object} Returns the cloned symbol object.
|
|
1344
1695
|
*/
|
|
1345
|
-
function
|
|
1346
|
-
return
|
|
1696
|
+
function cloneSymbol(symbol) {
|
|
1697
|
+
return symbolValueOf$1 ? Object(symbolValueOf$1.call(symbol)) : {};
|
|
1347
1698
|
}
|
|
1348
1699
|
//#endregion
|
|
1349
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1700
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneTypedArray.js
|
|
1350
1701
|
/**
|
|
1351
|
-
*
|
|
1702
|
+
* Creates a clone of `typedArray`.
|
|
1352
1703
|
*
|
|
1353
1704
|
* @private
|
|
1354
|
-
* @
|
|
1355
|
-
* @
|
|
1356
|
-
* @
|
|
1357
|
-
* @param {*} value The value to set.
|
|
1358
|
-
* @returns {Object} Returns the map cache instance.
|
|
1705
|
+
* @param {Object} typedArray The typed array to clone.
|
|
1706
|
+
* @param {boolean} [isDeep] Specify a deep clone.
|
|
1707
|
+
* @returns {Object} Returns the cloned typed array.
|
|
1359
1708
|
*/
|
|
1360
|
-
function
|
|
1361
|
-
var
|
|
1362
|
-
|
|
1363
|
-
this.size += data.size == size ? 0 : 1;
|
|
1364
|
-
return this;
|
|
1709
|
+
function cloneTypedArray(typedArray, isDeep) {
|
|
1710
|
+
var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
|
|
1711
|
+
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
1365
1712
|
}
|
|
1366
1713
|
//#endregion
|
|
1367
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1714
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneByTag.js
|
|
1715
|
+
/** `Object#toString` result references. */
|
|
1716
|
+
var boolTag$2 = "[object Boolean]", dateTag$2 = "[object Date]", mapTag$4 = "[object Map]", numberTag$2 = "[object Number]", regexpTag$2 = "[object RegExp]", setTag$4 = "[object Set]", stringTag$2 = "[object String]", symbolTag$3 = "[object Symbol]";
|
|
1717
|
+
var arrayBufferTag$2 = "[object ArrayBuffer]", dataViewTag$2 = "[object DataView]", float32Tag$1 = "[object Float32Array]", float64Tag$1 = "[object Float64Array]", int8Tag$1 = "[object Int8Array]", int16Tag$1 = "[object Int16Array]", int32Tag$1 = "[object Int32Array]", uint8Tag$1 = "[object Uint8Array]", uint8ClampedTag$1 = "[object Uint8ClampedArray]", uint16Tag$1 = "[object Uint16Array]", uint32Tag$1 = "[object Uint32Array]";
|
|
1368
1718
|
/**
|
|
1369
|
-
*
|
|
1719
|
+
* Initializes an object clone based on its `toStringTag`.
|
|
1370
1720
|
*
|
|
1371
|
-
*
|
|
1372
|
-
*
|
|
1373
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
1374
|
-
*/
|
|
1375
|
-
function MapCache(entries) {
|
|
1376
|
-
var index = -1, length = entries == null ? 0 : entries.length;
|
|
1377
|
-
this.clear();
|
|
1378
|
-
while (++index < length) {
|
|
1379
|
-
var entry = entries[index];
|
|
1380
|
-
this.set(entry[0], entry[1]);
|
|
1381
|
-
}
|
|
1382
|
-
}
|
|
1383
|
-
MapCache.prototype.clear = mapCacheClear;
|
|
1384
|
-
MapCache.prototype["delete"] = mapCacheDelete;
|
|
1385
|
-
MapCache.prototype.get = mapCacheGet;
|
|
1386
|
-
MapCache.prototype.has = mapCacheHas;
|
|
1387
|
-
MapCache.prototype.set = mapCacheSet;
|
|
1388
|
-
//#endregion
|
|
1389
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayPush.js
|
|
1390
|
-
/**
|
|
1391
|
-
* Appends the elements of `values` to `array`.
|
|
1721
|
+
* **Note:** This function only supports cloning values with tags of
|
|
1722
|
+
* `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
|
|
1392
1723
|
*
|
|
1393
1724
|
* @private
|
|
1394
|
-
* @param {
|
|
1395
|
-
* @param {
|
|
1396
|
-
* @
|
|
1725
|
+
* @param {Object} object The object to clone.
|
|
1726
|
+
* @param {string} tag The `toStringTag` of the object to clone.
|
|
1727
|
+
* @param {boolean} [isDeep] Specify a deep clone.
|
|
1728
|
+
* @returns {Object} Returns the initialized clone.
|
|
1397
1729
|
*/
|
|
1398
|
-
function
|
|
1399
|
-
var
|
|
1400
|
-
|
|
1401
|
-
|
|
1730
|
+
function initCloneByTag(object, tag, isDeep) {
|
|
1731
|
+
var Ctor = object.constructor;
|
|
1732
|
+
switch (tag) {
|
|
1733
|
+
case arrayBufferTag$2: return cloneArrayBuffer(object);
|
|
1734
|
+
case boolTag$2:
|
|
1735
|
+
case dateTag$2: return new Ctor(+object);
|
|
1736
|
+
case dataViewTag$2: return cloneDataView(object, isDeep);
|
|
1737
|
+
case float32Tag$1:
|
|
1738
|
+
case float64Tag$1:
|
|
1739
|
+
case int8Tag$1:
|
|
1740
|
+
case int16Tag$1:
|
|
1741
|
+
case int32Tag$1:
|
|
1742
|
+
case uint8Tag$1:
|
|
1743
|
+
case uint8ClampedTag$1:
|
|
1744
|
+
case uint16Tag$1:
|
|
1745
|
+
case uint32Tag$1: return cloneTypedArray(object, isDeep);
|
|
1746
|
+
case mapTag$4: return new Ctor();
|
|
1747
|
+
case numberTag$2:
|
|
1748
|
+
case stringTag$2: return new Ctor(object);
|
|
1749
|
+
case regexpTag$2: return cloneRegExp(object);
|
|
1750
|
+
case setTag$4: return new Ctor();
|
|
1751
|
+
case symbolTag$3: return cloneSymbol(object);
|
|
1752
|
+
}
|
|
1402
1753
|
}
|
|
1403
1754
|
//#endregion
|
|
1404
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1755
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseCreate.js
|
|
1405
1756
|
/** Built-in value references. */
|
|
1406
|
-
var
|
|
1407
|
-
//#endregion
|
|
1408
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackClear.js
|
|
1757
|
+
var objectCreate = Object.create;
|
|
1409
1758
|
/**
|
|
1410
|
-
*
|
|
1759
|
+
* The base implementation of `_.create` without support for assigning
|
|
1760
|
+
* properties to the created object.
|
|
1411
1761
|
*
|
|
1412
1762
|
* @private
|
|
1413
|
-
* @
|
|
1414
|
-
* @
|
|
1763
|
+
* @param {Object} proto The object to inherit from.
|
|
1764
|
+
* @returns {Object} Returns the new object.
|
|
1415
1765
|
*/
|
|
1416
|
-
function
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1766
|
+
var baseCreate = function() {
|
|
1767
|
+
function object() {}
|
|
1768
|
+
return function(proto) {
|
|
1769
|
+
if (!isObject(proto)) return {};
|
|
1770
|
+
if (objectCreate) return objectCreate(proto);
|
|
1771
|
+
object.prototype = proto;
|
|
1772
|
+
var result = new object();
|
|
1773
|
+
object.prototype = void 0;
|
|
1774
|
+
return result;
|
|
1775
|
+
};
|
|
1776
|
+
}();
|
|
1420
1777
|
//#endregion
|
|
1421
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1778
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneObject.js
|
|
1422
1779
|
/**
|
|
1423
|
-
*
|
|
1780
|
+
* Initializes an object clone.
|
|
1424
1781
|
*
|
|
1425
1782
|
* @private
|
|
1426
|
-
* @
|
|
1427
|
-
* @
|
|
1428
|
-
* @param {string} key The key of the value to remove.
|
|
1429
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1783
|
+
* @param {Object} object The object to clone.
|
|
1784
|
+
* @returns {Object} Returns the initialized clone.
|
|
1430
1785
|
*/
|
|
1431
|
-
function
|
|
1432
|
-
|
|
1433
|
-
this.size = data.size;
|
|
1434
|
-
return result;
|
|
1786
|
+
function initCloneObject(object) {
|
|
1787
|
+
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
|
|
1435
1788
|
}
|
|
1436
1789
|
//#endregion
|
|
1437
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1790
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsMap.js
|
|
1791
|
+
/** `Object#toString` result references. */
|
|
1792
|
+
var mapTag$3 = "[object Map]";
|
|
1438
1793
|
/**
|
|
1439
|
-
*
|
|
1794
|
+
* The base implementation of `_.isMap` without Node.js optimizations.
|
|
1440
1795
|
*
|
|
1441
1796
|
* @private
|
|
1442
|
-
* @
|
|
1443
|
-
* @
|
|
1444
|
-
* @param {string} key The key of the value to get.
|
|
1445
|
-
* @returns {*} Returns the entry value.
|
|
1797
|
+
* @param {*} value The value to check.
|
|
1798
|
+
* @returns {boolean} Returns `true` if `value` is a map, else `false`.
|
|
1446
1799
|
*/
|
|
1447
|
-
function
|
|
1448
|
-
return
|
|
1800
|
+
function baseIsMap(value) {
|
|
1801
|
+
return isObjectLike(value) && _getTag_default(value) == mapTag$3;
|
|
1449
1802
|
}
|
|
1450
1803
|
//#endregion
|
|
1451
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1804
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isMap.js
|
|
1805
|
+
var nodeIsMap = nodeUtil && nodeUtil.isMap;
|
|
1452
1806
|
/**
|
|
1453
|
-
* Checks if
|
|
1807
|
+
* Checks if `value` is classified as a `Map` object.
|
|
1454
1808
|
*
|
|
1455
|
-
* @
|
|
1456
|
-
* @
|
|
1457
|
-
* @
|
|
1458
|
-
* @
|
|
1459
|
-
* @
|
|
1809
|
+
* @static
|
|
1810
|
+
* @memberOf _
|
|
1811
|
+
* @since 4.3.0
|
|
1812
|
+
* @category Lang
|
|
1813
|
+
* @param {*} value The value to check.
|
|
1814
|
+
* @returns {boolean} Returns `true` if `value` is a map, else `false`.
|
|
1815
|
+
* @example
|
|
1816
|
+
*
|
|
1817
|
+
* _.isMap(new Map);
|
|
1818
|
+
* // => true
|
|
1819
|
+
*
|
|
1820
|
+
* _.isMap(new WeakMap);
|
|
1821
|
+
* // => false
|
|
1460
1822
|
*/
|
|
1461
|
-
|
|
1462
|
-
return this.__data__.has(key);
|
|
1463
|
-
}
|
|
1823
|
+
var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
|
|
1464
1824
|
//#endregion
|
|
1465
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1466
|
-
/**
|
|
1467
|
-
var
|
|
1825
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsSet.js
|
|
1826
|
+
/** `Object#toString` result references. */
|
|
1827
|
+
var setTag$3 = "[object Set]";
|
|
1468
1828
|
/**
|
|
1469
|
-
*
|
|
1829
|
+
* The base implementation of `_.isSet` without Node.js optimizations.
|
|
1470
1830
|
*
|
|
1471
1831
|
* @private
|
|
1472
|
-
* @
|
|
1473
|
-
* @
|
|
1474
|
-
* @param {string} key The key of the value to set.
|
|
1475
|
-
* @param {*} value The value to set.
|
|
1476
|
-
* @returns {Object} Returns the stack cache instance.
|
|
1832
|
+
* @param {*} value The value to check.
|
|
1833
|
+
* @returns {boolean} Returns `true` if `value` is a set, else `false`.
|
|
1477
1834
|
*/
|
|
1478
|
-
function
|
|
1479
|
-
|
|
1480
|
-
if (data instanceof ListCache) {
|
|
1481
|
-
var pairs = data.__data__;
|
|
1482
|
-
if (!Map$1 || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
1483
|
-
pairs.push([key, value]);
|
|
1484
|
-
this.size = ++data.size;
|
|
1485
|
-
return this;
|
|
1486
|
-
}
|
|
1487
|
-
data = this.__data__ = new MapCache(pairs);
|
|
1488
|
-
}
|
|
1489
|
-
data.set(key, value);
|
|
1490
|
-
this.size = data.size;
|
|
1491
|
-
return this;
|
|
1835
|
+
function baseIsSet(value) {
|
|
1836
|
+
return isObjectLike(value) && _getTag_default(value) == setTag$3;
|
|
1492
1837
|
}
|
|
1493
1838
|
//#endregion
|
|
1494
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1839
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSet.js
|
|
1840
|
+
var nodeIsSet = nodeUtil && nodeUtil.isSet;
|
|
1495
1841
|
/**
|
|
1496
|
-
*
|
|
1842
|
+
* Checks if `value` is classified as a `Set` object.
|
|
1497
1843
|
*
|
|
1498
|
-
* @
|
|
1499
|
-
* @
|
|
1500
|
-
* @
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
}
|
|
1506
|
-
Stack.prototype.clear = stackClear;
|
|
1507
|
-
Stack.prototype["delete"] = stackDelete;
|
|
1508
|
-
Stack.prototype.get = stackGet;
|
|
1509
|
-
Stack.prototype.has = stackHas;
|
|
1510
|
-
Stack.prototype.set = stackSet;
|
|
1511
|
-
//#endregion
|
|
1512
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssign.js
|
|
1513
|
-
/**
|
|
1514
|
-
* The base implementation of `_.assign` without support for multiple sources
|
|
1515
|
-
* or `customizer` functions.
|
|
1516
|
-
*
|
|
1517
|
-
* @private
|
|
1518
|
-
* @param {Object} object The destination object.
|
|
1519
|
-
* @param {Object} source The source object.
|
|
1520
|
-
* @returns {Object} Returns `object`.
|
|
1521
|
-
*/
|
|
1522
|
-
function baseAssign(object, source) {
|
|
1523
|
-
return object && copyObject(source, keys(source), object);
|
|
1524
|
-
}
|
|
1525
|
-
//#endregion
|
|
1526
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignIn.js
|
|
1527
|
-
/**
|
|
1528
|
-
* The base implementation of `_.assignIn` without support for multiple sources
|
|
1529
|
-
* or `customizer` functions.
|
|
1844
|
+
* @static
|
|
1845
|
+
* @memberOf _
|
|
1846
|
+
* @since 4.3.0
|
|
1847
|
+
* @category Lang
|
|
1848
|
+
* @param {*} value The value to check.
|
|
1849
|
+
* @returns {boolean} Returns `true` if `value` is a set, else `false`.
|
|
1850
|
+
* @example
|
|
1530
1851
|
*
|
|
1531
|
-
*
|
|
1532
|
-
*
|
|
1533
|
-
* @param {Object} source The source object.
|
|
1534
|
-
* @returns {Object} Returns `object`.
|
|
1535
|
-
*/
|
|
1536
|
-
function baseAssignIn(object, source) {
|
|
1537
|
-
return object && copyObject(source, keysIn(source), object);
|
|
1538
|
-
}
|
|
1539
|
-
//#endregion
|
|
1540
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneBuffer.js
|
|
1541
|
-
/** Detect free variable `exports`. */
|
|
1542
|
-
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
1543
|
-
/** Detect free variable `module`. */
|
|
1544
|
-
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
|
|
1545
|
-
/** Built-in value references. */
|
|
1546
|
-
var Buffer$1 = freeModule && freeModule.exports === freeExports ? root.Buffer : void 0, allocUnsafe = Buffer$1 ? Buffer$1.allocUnsafe : void 0;
|
|
1547
|
-
/**
|
|
1548
|
-
* Creates a clone of `buffer`.
|
|
1852
|
+
* _.isSet(new Set);
|
|
1853
|
+
* // => true
|
|
1549
1854
|
*
|
|
1550
|
-
*
|
|
1551
|
-
*
|
|
1552
|
-
* @param {boolean} [isDeep] Specify a deep clone.
|
|
1553
|
-
* @returns {Buffer} Returns the cloned buffer.
|
|
1855
|
+
* _.isSet(new WeakSet);
|
|
1856
|
+
* // => false
|
|
1554
1857
|
*/
|
|
1555
|
-
|
|
1556
|
-
if (isDeep) return buffer.slice();
|
|
1557
|
-
var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
1558
|
-
buffer.copy(result);
|
|
1559
|
-
return result;
|
|
1560
|
-
}
|
|
1858
|
+
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
1561
1859
|
//#endregion
|
|
1562
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1860
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseClone.js
|
|
1861
|
+
/** Used to compose bitmasks for cloning. */
|
|
1862
|
+
var CLONE_DEEP_FLAG$1 = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG$1 = 4;
|
|
1863
|
+
/** `Object#toString` result references. */
|
|
1864
|
+
var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", errorTag$1 = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag$2 = "[object Map]", numberTag$1 = "[object Number]", objectTag$1 = "[object Object]", regexpTag$1 = "[object RegExp]", setTag$2 = "[object Set]", stringTag$1 = "[object String]", symbolTag$2 = "[object Symbol]", weakMapTag = "[object WeakMap]";
|
|
1865
|
+
var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$1 = "[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]";
|
|
1866
|
+
/** Used to identify `toStringTag` values supported by `_.clone`. */
|
|
1867
|
+
var cloneableTags = {};
|
|
1868
|
+
cloneableTags[argsTag$1] = cloneableTags[arrayTag$1] = cloneableTags[arrayBufferTag$1] = cloneableTags[dataViewTag$1] = cloneableTags[boolTag$1] = cloneableTags[dateTag$1] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag$2] = cloneableTags[numberTag$1] = cloneableTags[objectTag$1] = cloneableTags[regexpTag$1] = cloneableTags[setTag$2] = cloneableTags[stringTag$1] = cloneableTags[symbolTag$2] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
|
1869
|
+
cloneableTags[errorTag$1] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
|
|
1563
1870
|
/**
|
|
1564
|
-
*
|
|
1565
|
-
*
|
|
1871
|
+
* The base implementation of `_.clone` and `_.cloneDeep` which tracks
|
|
1872
|
+
* traversed objects.
|
|
1566
1873
|
*
|
|
1567
1874
|
* @private
|
|
1568
|
-
* @param {
|
|
1569
|
-
* @param {
|
|
1570
|
-
*
|
|
1875
|
+
* @param {*} value The value to clone.
|
|
1876
|
+
* @param {boolean} bitmask The bitmask flags.
|
|
1877
|
+
* 1 - Deep clone
|
|
1878
|
+
* 2 - Flatten inherited properties
|
|
1879
|
+
* 4 - Clone symbols
|
|
1880
|
+
* @param {Function} [customizer] The function to customize cloning.
|
|
1881
|
+
* @param {string} [key] The key of `value`.
|
|
1882
|
+
* @param {Object} [object] The parent object of `value`.
|
|
1883
|
+
* @param {Object} [stack] Tracks traversed objects and their clone counterparts.
|
|
1884
|
+
* @returns {*} Returns the cloned value.
|
|
1571
1885
|
*/
|
|
1572
|
-
function
|
|
1573
|
-
var
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1886
|
+
function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
1887
|
+
var result, isDeep = bitmask & CLONE_DEEP_FLAG$1, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
|
|
1888
|
+
if (customizer) result = object ? customizer(value, key, object, stack) : customizer(value);
|
|
1889
|
+
if (result !== void 0) return result;
|
|
1890
|
+
if (!isObject(value)) return value;
|
|
1891
|
+
var isArr = isArray(value);
|
|
1892
|
+
if (isArr) {
|
|
1893
|
+
result = initCloneArray(value);
|
|
1894
|
+
if (!isDeep) return copyArray(value, result);
|
|
1895
|
+
} else {
|
|
1896
|
+
var tag = _getTag_default(value), isFunc = tag == funcTag || tag == genTag;
|
|
1897
|
+
if (isBuffer(value)) return cloneBuffer(value, isDeep);
|
|
1898
|
+
if (tag == objectTag$1 || tag == argsTag$1 || isFunc && !object) {
|
|
1899
|
+
result = isFlat || isFunc ? {} : initCloneObject(value);
|
|
1900
|
+
if (!isDeep) return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value));
|
|
1901
|
+
} else {
|
|
1902
|
+
if (!cloneableTags[tag]) return object ? value : {};
|
|
1903
|
+
result = initCloneByTag(value, tag, isDeep);
|
|
1904
|
+
}
|
|
1577
1905
|
}
|
|
1906
|
+
stack || (stack = new Stack());
|
|
1907
|
+
var stacked = stack.get(value);
|
|
1908
|
+
if (stacked) return stacked;
|
|
1909
|
+
stack.set(value, result);
|
|
1910
|
+
if (isSet(value)) value.forEach(function(subValue) {
|
|
1911
|
+
result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
|
|
1912
|
+
});
|
|
1913
|
+
else if (isMap(value)) value.forEach(function(subValue, key) {
|
|
1914
|
+
result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
|
|
1915
|
+
});
|
|
1916
|
+
var props = isArr ? void 0 : (isFull ? isFlat ? getAllKeysIn : getAllKeys : isFlat ? keysIn : keys)(value);
|
|
1917
|
+
arrayEach(props || value, function(subValue, key) {
|
|
1918
|
+
if (props) {
|
|
1919
|
+
key = subValue;
|
|
1920
|
+
subValue = value[key];
|
|
1921
|
+
}
|
|
1922
|
+
assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
|
|
1923
|
+
});
|
|
1578
1924
|
return result;
|
|
1579
1925
|
}
|
|
1580
1926
|
//#endregion
|
|
1581
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1927
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/cloneDeep.js
|
|
1928
|
+
/** Used to compose bitmasks for cloning. */
|
|
1929
|
+
var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
|
1582
1930
|
/**
|
|
1583
|
-
* This method
|
|
1931
|
+
* This method is like `_.clone` except that it recursively clones `value`.
|
|
1584
1932
|
*
|
|
1585
1933
|
* @static
|
|
1586
1934
|
* @memberOf _
|
|
1587
|
-
* @since
|
|
1588
|
-
* @category
|
|
1589
|
-
* @
|
|
1935
|
+
* @since 1.0.0
|
|
1936
|
+
* @category Lang
|
|
1937
|
+
* @param {*} value The value to recursively clone.
|
|
1938
|
+
* @returns {*} Returns the deep cloned value.
|
|
1939
|
+
* @see _.clone
|
|
1590
1940
|
* @example
|
|
1591
1941
|
*
|
|
1592
|
-
* var
|
|
1593
|
-
*
|
|
1594
|
-
* console.log(arrays);
|
|
1595
|
-
* // => [[], []]
|
|
1942
|
+
* var objects = [{ 'a': 1 }, { 'b': 2 }];
|
|
1596
1943
|
*
|
|
1597
|
-
*
|
|
1944
|
+
* var deep = _.cloneDeep(objects);
|
|
1945
|
+
* console.log(deep[0] === objects[0]);
|
|
1598
1946
|
* // => false
|
|
1599
1947
|
*/
|
|
1600
|
-
function
|
|
1601
|
-
return
|
|
1948
|
+
function cloneDeep(value) {
|
|
1949
|
+
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
|
1602
1950
|
}
|
|
1603
1951
|
//#endregion
|
|
1604
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1605
|
-
/** Built-in value references. */
|
|
1606
|
-
var propertyIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
1607
|
-
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
1952
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/now.js
|
|
1608
1953
|
/**
|
|
1609
|
-
*
|
|
1954
|
+
* Gets the timestamp of the number of milliseconds that have elapsed since
|
|
1955
|
+
* the Unix epoch (1 January 1970 00:00:00 UTC).
|
|
1610
1956
|
*
|
|
1611
|
-
* @
|
|
1612
|
-
* @
|
|
1613
|
-
* @
|
|
1957
|
+
* @static
|
|
1958
|
+
* @memberOf _
|
|
1959
|
+
* @since 2.4.0
|
|
1960
|
+
* @category Date
|
|
1961
|
+
* @returns {number} Returns the timestamp.
|
|
1962
|
+
* @example
|
|
1963
|
+
*
|
|
1964
|
+
* _.defer(function(stamp) {
|
|
1965
|
+
* console.log(_.now() - stamp);
|
|
1966
|
+
* }, _.now());
|
|
1967
|
+
* // => Logs the number of milliseconds it took for the deferred invocation.
|
|
1614
1968
|
*/
|
|
1615
|
-
var
|
|
1616
|
-
|
|
1617
|
-
object = Object(object);
|
|
1618
|
-
return arrayFilter(nativeGetSymbols(object), function(symbol) {
|
|
1619
|
-
return propertyIsEnumerable.call(object, symbol);
|
|
1620
|
-
});
|
|
1969
|
+
var now = function() {
|
|
1970
|
+
return root.Date.now();
|
|
1621
1971
|
};
|
|
1622
1972
|
//#endregion
|
|
1623
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1973
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_trimmedEndIndex.js
|
|
1974
|
+
/** Used to match a single whitespace character. */
|
|
1975
|
+
var reWhitespace = /\s/;
|
|
1624
1976
|
/**
|
|
1625
|
-
*
|
|
1977
|
+
* Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
|
|
1978
|
+
* character of `string`.
|
|
1626
1979
|
*
|
|
1627
1980
|
* @private
|
|
1628
|
-
* @param {
|
|
1629
|
-
* @
|
|
1630
|
-
* @returns {Object} Returns `object`.
|
|
1981
|
+
* @param {string} string The string to inspect.
|
|
1982
|
+
* @returns {number} Returns the index of the last non-whitespace character.
|
|
1631
1983
|
*/
|
|
1632
|
-
function
|
|
1633
|
-
|
|
1984
|
+
function trimmedEndIndex(string) {
|
|
1985
|
+
var index = string.length;
|
|
1986
|
+
while (index-- && reWhitespace.test(string.charAt(index)));
|
|
1987
|
+
return index;
|
|
1634
1988
|
}
|
|
1635
1989
|
//#endregion
|
|
1636
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1990
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTrim.js
|
|
1991
|
+
/** Used to match leading whitespace. */
|
|
1992
|
+
var reTrimStart = /^\s+/;
|
|
1637
1993
|
/**
|
|
1638
|
-
*
|
|
1994
|
+
* The base implementation of `_.trim`.
|
|
1639
1995
|
*
|
|
1640
1996
|
* @private
|
|
1641
|
-
* @param {
|
|
1642
|
-
* @returns {
|
|
1997
|
+
* @param {string} string The string to trim.
|
|
1998
|
+
* @returns {string} Returns the trimmed string.
|
|
1643
1999
|
*/
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
arrayPush(result, getSymbols(object));
|
|
1648
|
-
object = getPrototype(object);
|
|
1649
|
-
}
|
|
1650
|
-
return result;
|
|
1651
|
-
};
|
|
2000
|
+
function baseTrim(string) {
|
|
2001
|
+
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
|
2002
|
+
}
|
|
1652
2003
|
//#endregion
|
|
1653
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
2004
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.js
|
|
2005
|
+
/** `Object#toString` result references. */
|
|
2006
|
+
var symbolTag$1 = "[object Symbol]";
|
|
1654
2007
|
/**
|
|
1655
|
-
*
|
|
2008
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
1656
2009
|
*
|
|
1657
|
-
* @
|
|
1658
|
-
* @
|
|
1659
|
-
* @
|
|
1660
|
-
* @
|
|
2010
|
+
* @static
|
|
2011
|
+
* @memberOf _
|
|
2012
|
+
* @since 4.0.0
|
|
2013
|
+
* @category Lang
|
|
2014
|
+
* @param {*} value The value to check.
|
|
2015
|
+
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
2016
|
+
* @example
|
|
2017
|
+
*
|
|
2018
|
+
* _.isSymbol(Symbol.iterator);
|
|
2019
|
+
* // => true
|
|
2020
|
+
*
|
|
2021
|
+
* _.isSymbol('abc');
|
|
2022
|
+
* // => false
|
|
1661
2023
|
*/
|
|
1662
|
-
function
|
|
1663
|
-
return
|
|
2024
|
+
function isSymbol(value) {
|
|
2025
|
+
return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag$1;
|
|
1664
2026
|
}
|
|
1665
2027
|
//#endregion
|
|
1666
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
2028
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toNumber.js
|
|
2029
|
+
/** Used as references for various `Number` constants. */
|
|
2030
|
+
var NAN = NaN;
|
|
2031
|
+
/** Used to detect bad signed hexadecimal string values. */
|
|
2032
|
+
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
2033
|
+
/** Used to detect binary string values. */
|
|
2034
|
+
var reIsBinary = /^0b[01]+$/i;
|
|
2035
|
+
/** Used to detect octal string values. */
|
|
2036
|
+
var reIsOctal = /^0o[0-7]+$/i;
|
|
2037
|
+
/** Built-in method references without a dependency on `root`. */
|
|
2038
|
+
var freeParseInt = parseInt;
|
|
1667
2039
|
/**
|
|
1668
|
-
*
|
|
1669
|
-
* `keysFunc` and `symbolsFunc` to get the enumerable property names and
|
|
1670
|
-
* symbols of `object`.
|
|
2040
|
+
* Converts `value` to a number.
|
|
1671
2041
|
*
|
|
1672
|
-
* @
|
|
1673
|
-
* @
|
|
1674
|
-
* @
|
|
1675
|
-
* @
|
|
1676
|
-
* @
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
var result = keysFunc(object);
|
|
1680
|
-
return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
1681
|
-
}
|
|
1682
|
-
//#endregion
|
|
1683
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeys.js
|
|
1684
|
-
/**
|
|
1685
|
-
* Creates an array of own enumerable property names and symbols of `object`.
|
|
2042
|
+
* @static
|
|
2043
|
+
* @memberOf _
|
|
2044
|
+
* @since 4.0.0
|
|
2045
|
+
* @category Lang
|
|
2046
|
+
* @param {*} value The value to process.
|
|
2047
|
+
* @returns {number} Returns the number.
|
|
2048
|
+
* @example
|
|
1686
2049
|
*
|
|
1687
|
-
*
|
|
1688
|
-
*
|
|
1689
|
-
* @returns {Array} Returns the array of property names and symbols.
|
|
1690
|
-
*/
|
|
1691
|
-
function getAllKeys(object) {
|
|
1692
|
-
return baseGetAllKeys(object, keys, getSymbols);
|
|
1693
|
-
}
|
|
1694
|
-
//#endregion
|
|
1695
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeysIn.js
|
|
1696
|
-
/**
|
|
1697
|
-
* Creates an array of own and inherited enumerable property names and
|
|
1698
|
-
* symbols of `object`.
|
|
2050
|
+
* _.toNumber(3.2);
|
|
2051
|
+
* // => 3.2
|
|
1699
2052
|
*
|
|
1700
|
-
*
|
|
1701
|
-
*
|
|
1702
|
-
* @returns {Array} Returns the array of property names and symbols.
|
|
1703
|
-
*/
|
|
1704
|
-
function getAllKeysIn(object) {
|
|
1705
|
-
return baseGetAllKeys(object, keysIn, getSymbolsIn);
|
|
1706
|
-
}
|
|
1707
|
-
//#endregion
|
|
1708
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_DataView.js
|
|
1709
|
-
var DataView = getNative(root, "DataView");
|
|
1710
|
-
//#endregion
|
|
1711
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Promise.js
|
|
1712
|
-
var Promise$1 = getNative(root, "Promise");
|
|
1713
|
-
//#endregion
|
|
1714
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.js
|
|
1715
|
-
var Set$1 = getNative(root, "Set");
|
|
1716
|
-
//#endregion
|
|
1717
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getTag.js
|
|
1718
|
-
/** `Object#toString` result references. */
|
|
1719
|
-
var mapTag$5 = "[object Map]", objectTag$2 = "[object Object]", promiseTag = "[object Promise]", setTag$5 = "[object Set]", weakMapTag$1 = "[object WeakMap]";
|
|
1720
|
-
var dataViewTag$3 = "[object DataView]";
|
|
1721
|
-
/** Used to detect maps, sets, and weakmaps. */
|
|
1722
|
-
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map$1), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set$1), weakMapCtorString = toSource(WeakMap);
|
|
1723
|
-
/**
|
|
1724
|
-
* Gets the `toStringTag` of `value`.
|
|
2053
|
+
* _.toNumber(Number.MIN_VALUE);
|
|
2054
|
+
* // => 5e-324
|
|
1725
2055
|
*
|
|
1726
|
-
*
|
|
1727
|
-
*
|
|
1728
|
-
* @returns {string} Returns the `toStringTag`.
|
|
1729
|
-
*/
|
|
1730
|
-
var getTag = baseGetTag;
|
|
1731
|
-
if (DataView && getTag(new DataView(/* @__PURE__ */ new ArrayBuffer(1))) != dataViewTag$3 || Map$1 && getTag(new Map$1()) != mapTag$5 || Promise$1 && getTag(Promise$1.resolve()) != promiseTag || Set$1 && getTag(new Set$1()) != setTag$5 || WeakMap && getTag(new WeakMap()) != weakMapTag$1) getTag = function(value) {
|
|
1732
|
-
var result = baseGetTag(value), Ctor = result == objectTag$2 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
|
|
1733
|
-
if (ctorString) switch (ctorString) {
|
|
1734
|
-
case dataViewCtorString: return dataViewTag$3;
|
|
1735
|
-
case mapCtorString: return mapTag$5;
|
|
1736
|
-
case promiseCtorString: return promiseTag;
|
|
1737
|
-
case setCtorString: return setTag$5;
|
|
1738
|
-
case weakMapCtorString: return weakMapTag$1;
|
|
1739
|
-
}
|
|
1740
|
-
return result;
|
|
1741
|
-
};
|
|
1742
|
-
var _getTag_default = getTag;
|
|
1743
|
-
//#endregion
|
|
1744
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneArray.js
|
|
1745
|
-
/** Used to check objects for own properties. */
|
|
1746
|
-
var hasOwnProperty$3 = Object.prototype.hasOwnProperty;
|
|
1747
|
-
/**
|
|
1748
|
-
* Initializes an array clone.
|
|
2056
|
+
* _.toNumber(Infinity);
|
|
2057
|
+
* // => Infinity
|
|
1749
2058
|
*
|
|
1750
|
-
*
|
|
1751
|
-
*
|
|
1752
|
-
* @returns {Array} Returns the initialized clone.
|
|
2059
|
+
* _.toNumber('3.2');
|
|
2060
|
+
* // => 3.2
|
|
1753
2061
|
*/
|
|
1754
|
-
function
|
|
1755
|
-
|
|
1756
|
-
if (
|
|
1757
|
-
|
|
1758
|
-
|
|
2062
|
+
function toNumber(value) {
|
|
2063
|
+
if (typeof value == "number") return value;
|
|
2064
|
+
if (isSymbol(value)) return NAN;
|
|
2065
|
+
if (isObject(value)) {
|
|
2066
|
+
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
|
2067
|
+
value = isObject(other) ? other + "" : other;
|
|
1759
2068
|
}
|
|
1760
|
-
return
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
/** Built-in value references. */
|
|
1765
|
-
var Uint8Array$1 = root.Uint8Array;
|
|
1766
|
-
//#endregion
|
|
1767
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneArrayBuffer.js
|
|
1768
|
-
/**
|
|
1769
|
-
* Creates a clone of `arrayBuffer`.
|
|
1770
|
-
*
|
|
1771
|
-
* @private
|
|
1772
|
-
* @param {ArrayBuffer} arrayBuffer The array buffer to clone.
|
|
1773
|
-
* @returns {ArrayBuffer} Returns the cloned array buffer.
|
|
1774
|
-
*/
|
|
1775
|
-
function cloneArrayBuffer(arrayBuffer) {
|
|
1776
|
-
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
1777
|
-
new Uint8Array$1(result).set(new Uint8Array$1(arrayBuffer));
|
|
1778
|
-
return result;
|
|
1779
|
-
}
|
|
1780
|
-
//#endregion
|
|
1781
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneDataView.js
|
|
1782
|
-
/**
|
|
1783
|
-
* Creates a clone of `dataView`.
|
|
1784
|
-
*
|
|
1785
|
-
* @private
|
|
1786
|
-
* @param {Object} dataView The data view to clone.
|
|
1787
|
-
* @param {boolean} [isDeep] Specify a deep clone.
|
|
1788
|
-
* @returns {Object} Returns the cloned data view.
|
|
1789
|
-
*/
|
|
1790
|
-
function cloneDataView(dataView, isDeep) {
|
|
1791
|
-
var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
|
|
1792
|
-
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
|
1793
|
-
}
|
|
1794
|
-
//#endregion
|
|
1795
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneRegExp.js
|
|
1796
|
-
/** Used to match `RegExp` flags from their coerced string values. */
|
|
1797
|
-
var reFlags = /\w*$/;
|
|
1798
|
-
/**
|
|
1799
|
-
* Creates a clone of `regexp`.
|
|
1800
|
-
*
|
|
1801
|
-
* @private
|
|
1802
|
-
* @param {Object} regexp The regexp to clone.
|
|
1803
|
-
* @returns {Object} Returns the cloned regexp.
|
|
1804
|
-
*/
|
|
1805
|
-
function cloneRegExp(regexp) {
|
|
1806
|
-
var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
|
|
1807
|
-
result.lastIndex = regexp.lastIndex;
|
|
1808
|
-
return result;
|
|
1809
|
-
}
|
|
1810
|
-
//#endregion
|
|
1811
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneSymbol.js
|
|
1812
|
-
/** Used to convert symbols to primitives and strings. */
|
|
1813
|
-
var symbolProto$1 = Symbol$1 ? Symbol$1.prototype : void 0, symbolValueOf$1 = symbolProto$1 ? symbolProto$1.valueOf : void 0;
|
|
1814
|
-
/**
|
|
1815
|
-
* Creates a clone of the `symbol` object.
|
|
1816
|
-
*
|
|
1817
|
-
* @private
|
|
1818
|
-
* @param {Object} symbol The symbol object to clone.
|
|
1819
|
-
* @returns {Object} Returns the cloned symbol object.
|
|
1820
|
-
*/
|
|
1821
|
-
function cloneSymbol(symbol) {
|
|
1822
|
-
return symbolValueOf$1 ? Object(symbolValueOf$1.call(symbol)) : {};
|
|
1823
|
-
}
|
|
1824
|
-
//#endregion
|
|
1825
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneTypedArray.js
|
|
1826
|
-
/**
|
|
1827
|
-
* Creates a clone of `typedArray`.
|
|
1828
|
-
*
|
|
1829
|
-
* @private
|
|
1830
|
-
* @param {Object} typedArray The typed array to clone.
|
|
1831
|
-
* @param {boolean} [isDeep] Specify a deep clone.
|
|
1832
|
-
* @returns {Object} Returns the cloned typed array.
|
|
1833
|
-
*/
|
|
1834
|
-
function cloneTypedArray(typedArray, isDeep) {
|
|
1835
|
-
var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
|
|
1836
|
-
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
2069
|
+
if (typeof value != "string") return value === 0 ? value : +value;
|
|
2070
|
+
value = baseTrim(value);
|
|
2071
|
+
var isBinary = reIsBinary.test(value);
|
|
2072
|
+
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
|
1837
2073
|
}
|
|
1838
2074
|
//#endregion
|
|
1839
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1840
|
-
/**
|
|
1841
|
-
var
|
|
1842
|
-
var
|
|
2075
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/debounce.js
|
|
2076
|
+
/** Error message constants. */
|
|
2077
|
+
var FUNC_ERROR_TEXT = "Expected a function";
|
|
2078
|
+
var nativeMax = Math.max, nativeMin = Math.min;
|
|
1843
2079
|
/**
|
|
1844
|
-
*
|
|
1845
|
-
*
|
|
1846
|
-
*
|
|
1847
|
-
*
|
|
2080
|
+
* Creates a debounced function that delays invoking `func` until after `wait`
|
|
2081
|
+
* milliseconds have elapsed since the last time the debounced function was
|
|
2082
|
+
* invoked. The debounced function comes with a `cancel` method to cancel
|
|
2083
|
+
* delayed `func` invocations and a `flush` method to immediately invoke them.
|
|
2084
|
+
* Provide `options` to indicate whether `func` should be invoked on the
|
|
2085
|
+
* leading and/or trailing edge of the `wait` timeout. The `func` is invoked
|
|
2086
|
+
* with the last arguments provided to the debounced function. Subsequent
|
|
2087
|
+
* calls to the debounced function return the result of the last `func`
|
|
2088
|
+
* invocation.
|
|
1848
2089
|
*
|
|
1849
|
-
*
|
|
1850
|
-
*
|
|
1851
|
-
*
|
|
1852
|
-
* @param {boolean} [isDeep] Specify a deep clone.
|
|
1853
|
-
* @returns {Object} Returns the initialized clone.
|
|
1854
|
-
*/
|
|
1855
|
-
function initCloneByTag(object, tag, isDeep) {
|
|
1856
|
-
var Ctor = object.constructor;
|
|
1857
|
-
switch (tag) {
|
|
1858
|
-
case arrayBufferTag$2: return cloneArrayBuffer(object);
|
|
1859
|
-
case boolTag$2:
|
|
1860
|
-
case dateTag$2: return new Ctor(+object);
|
|
1861
|
-
case dataViewTag$2: return cloneDataView(object, isDeep);
|
|
1862
|
-
case float32Tag$1:
|
|
1863
|
-
case float64Tag$1:
|
|
1864
|
-
case int8Tag$1:
|
|
1865
|
-
case int16Tag$1:
|
|
1866
|
-
case int32Tag$1:
|
|
1867
|
-
case uint8Tag$1:
|
|
1868
|
-
case uint8ClampedTag$1:
|
|
1869
|
-
case uint16Tag$1:
|
|
1870
|
-
case uint32Tag$1: return cloneTypedArray(object, isDeep);
|
|
1871
|
-
case mapTag$4: return new Ctor();
|
|
1872
|
-
case numberTag$2:
|
|
1873
|
-
case stringTag$2: return new Ctor(object);
|
|
1874
|
-
case regexpTag$2: return cloneRegExp(object);
|
|
1875
|
-
case setTag$4: return new Ctor();
|
|
1876
|
-
case symbolTag$2: return cloneSymbol(object);
|
|
1877
|
-
}
|
|
1878
|
-
}
|
|
1879
|
-
//#endregion
|
|
1880
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneObject.js
|
|
1881
|
-
/**
|
|
1882
|
-
* Initializes an object clone.
|
|
2090
|
+
* **Note:** If `leading` and `trailing` options are `true`, `func` is
|
|
2091
|
+
* invoked on the trailing edge of the timeout only if the debounced function
|
|
2092
|
+
* is invoked more than once during the `wait` timeout.
|
|
1883
2093
|
*
|
|
1884
|
-
*
|
|
1885
|
-
*
|
|
1886
|
-
* @returns {Object} Returns the initialized clone.
|
|
1887
|
-
*/
|
|
1888
|
-
function initCloneObject(object) {
|
|
1889
|
-
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
|
|
1890
|
-
}
|
|
1891
|
-
//#endregion
|
|
1892
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsMap.js
|
|
1893
|
-
/** `Object#toString` result references. */
|
|
1894
|
-
var mapTag$3 = "[object Map]";
|
|
1895
|
-
/**
|
|
1896
|
-
* The base implementation of `_.isMap` without Node.js optimizations.
|
|
2094
|
+
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
|
|
2095
|
+
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
|
|
1897
2096
|
*
|
|
1898
|
-
*
|
|
1899
|
-
*
|
|
1900
|
-
* @returns {boolean} Returns `true` if `value` is a map, else `false`.
|
|
1901
|
-
*/
|
|
1902
|
-
function baseIsMap(value) {
|
|
1903
|
-
return isObjectLike(value) && _getTag_default(value) == mapTag$3;
|
|
1904
|
-
}
|
|
1905
|
-
//#endregion
|
|
1906
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isMap.js
|
|
1907
|
-
var nodeIsMap = nodeUtil && nodeUtil.isMap;
|
|
1908
|
-
/**
|
|
1909
|
-
* Checks if `value` is classified as a `Map` object.
|
|
2097
|
+
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
|
|
2098
|
+
* for details over the differences between `_.debounce` and `_.throttle`.
|
|
1910
2099
|
*
|
|
1911
2100
|
* @static
|
|
1912
2101
|
* @memberOf _
|
|
1913
|
-
* @since
|
|
1914
|
-
* @category
|
|
1915
|
-
* @param {
|
|
1916
|
-
* @
|
|
2102
|
+
* @since 0.1.0
|
|
2103
|
+
* @category Function
|
|
2104
|
+
* @param {Function} func The function to debounce.
|
|
2105
|
+
* @param {number} [wait=0] The number of milliseconds to delay.
|
|
2106
|
+
* @param {Object} [options={}] The options object.
|
|
2107
|
+
* @param {boolean} [options.leading=false]
|
|
2108
|
+
* Specify invoking on the leading edge of the timeout.
|
|
2109
|
+
* @param {number} [options.maxWait]
|
|
2110
|
+
* The maximum time `func` is allowed to be delayed before it's invoked.
|
|
2111
|
+
* @param {boolean} [options.trailing=true]
|
|
2112
|
+
* Specify invoking on the trailing edge of the timeout.
|
|
2113
|
+
* @returns {Function} Returns the new debounced function.
|
|
1917
2114
|
* @example
|
|
1918
2115
|
*
|
|
1919
|
-
*
|
|
1920
|
-
*
|
|
1921
|
-
*
|
|
1922
|
-
* _.isMap(new WeakMap);
|
|
1923
|
-
* // => false
|
|
1924
|
-
*/
|
|
1925
|
-
var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
|
|
1926
|
-
//#endregion
|
|
1927
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsSet.js
|
|
1928
|
-
/** `Object#toString` result references. */
|
|
1929
|
-
var setTag$3 = "[object Set]";
|
|
1930
|
-
/**
|
|
1931
|
-
* The base implementation of `_.isSet` without Node.js optimizations.
|
|
1932
|
-
*
|
|
1933
|
-
* @private
|
|
1934
|
-
* @param {*} value The value to check.
|
|
1935
|
-
* @returns {boolean} Returns `true` if `value` is a set, else `false`.
|
|
1936
|
-
*/
|
|
1937
|
-
function baseIsSet(value) {
|
|
1938
|
-
return isObjectLike(value) && _getTag_default(value) == setTag$3;
|
|
1939
|
-
}
|
|
1940
|
-
//#endregion
|
|
1941
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSet.js
|
|
1942
|
-
var nodeIsSet = nodeUtil && nodeUtil.isSet;
|
|
1943
|
-
/**
|
|
1944
|
-
* Checks if `value` is classified as a `Set` object.
|
|
1945
|
-
*
|
|
1946
|
-
* @static
|
|
1947
|
-
* @memberOf _
|
|
1948
|
-
* @since 4.3.0
|
|
1949
|
-
* @category Lang
|
|
1950
|
-
* @param {*} value The value to check.
|
|
1951
|
-
* @returns {boolean} Returns `true` if `value` is a set, else `false`.
|
|
1952
|
-
* @example
|
|
2116
|
+
* // Avoid costly calculations while the window size is in flux.
|
|
2117
|
+
* jQuery(window).on('resize', _.debounce(calculateLayout, 150));
|
|
1953
2118
|
*
|
|
1954
|
-
*
|
|
1955
|
-
*
|
|
2119
|
+
* // Invoke `sendMail` when clicked, debouncing subsequent calls.
|
|
2120
|
+
* jQuery(element).on('click', _.debounce(sendMail, 300, {
|
|
2121
|
+
* 'leading': true,
|
|
2122
|
+
* 'trailing': false
|
|
2123
|
+
* }));
|
|
1956
2124
|
*
|
|
1957
|
-
*
|
|
1958
|
-
*
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
//#endregion
|
|
1962
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseClone.js
|
|
1963
|
-
/** Used to compose bitmasks for cloning. */
|
|
1964
|
-
var CLONE_DEEP_FLAG$1 = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG$1 = 4;
|
|
1965
|
-
/** `Object#toString` result references. */
|
|
1966
|
-
var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", errorTag$1 = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag$2 = "[object Map]", numberTag$1 = "[object Number]", objectTag$1 = "[object Object]", regexpTag$1 = "[object RegExp]", setTag$2 = "[object Set]", stringTag$1 = "[object String]", symbolTag$1 = "[object Symbol]", weakMapTag = "[object WeakMap]";
|
|
1967
|
-
var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$1 = "[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]";
|
|
1968
|
-
/** Used to identify `toStringTag` values supported by `_.clone`. */
|
|
1969
|
-
var cloneableTags = {};
|
|
1970
|
-
cloneableTags[argsTag$1] = cloneableTags[arrayTag$1] = cloneableTags[arrayBufferTag$1] = cloneableTags[dataViewTag$1] = cloneableTags[boolTag$1] = cloneableTags[dateTag$1] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag$2] = cloneableTags[numberTag$1] = cloneableTags[objectTag$1] = cloneableTags[regexpTag$1] = cloneableTags[setTag$2] = cloneableTags[stringTag$1] = cloneableTags[symbolTag$1] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
|
1971
|
-
cloneableTags[errorTag$1] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
|
|
1972
|
-
/**
|
|
1973
|
-
* The base implementation of `_.clone` and `_.cloneDeep` which tracks
|
|
1974
|
-
* traversed objects.
|
|
2125
|
+
* // Ensure `batchLog` is invoked once after 1 second of debounced calls.
|
|
2126
|
+
* var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
|
|
2127
|
+
* var source = new EventSource('/stream');
|
|
2128
|
+
* jQuery(source).on('message', debounced);
|
|
1975
2129
|
*
|
|
1976
|
-
*
|
|
1977
|
-
*
|
|
1978
|
-
* @param {boolean} bitmask The bitmask flags.
|
|
1979
|
-
* 1 - Deep clone
|
|
1980
|
-
* 2 - Flatten inherited properties
|
|
1981
|
-
* 4 - Clone symbols
|
|
1982
|
-
* @param {Function} [customizer] The function to customize cloning.
|
|
1983
|
-
* @param {string} [key] The key of `value`.
|
|
1984
|
-
* @param {Object} [object] The parent object of `value`.
|
|
1985
|
-
* @param {Object} [stack] Tracks traversed objects and their clone counterparts.
|
|
1986
|
-
* @returns {*} Returns the cloned value.
|
|
2130
|
+
* // Cancel the trailing debounced invocation.
|
|
2131
|
+
* jQuery(window).on('popstate', debounced.cancel);
|
|
1987
2132
|
*/
|
|
1988
|
-
function
|
|
1989
|
-
var
|
|
1990
|
-
if (
|
|
1991
|
-
|
|
1992
|
-
if (
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
} else {
|
|
1998
|
-
var tag = _getTag_default(value), isFunc = tag == funcTag || tag == genTag;
|
|
1999
|
-
if (isBuffer(value)) return cloneBuffer(value, isDeep);
|
|
2000
|
-
if (tag == objectTag$1 || tag == argsTag$1 || isFunc && !object) {
|
|
2001
|
-
result = isFlat || isFunc ? {} : initCloneObject(value);
|
|
2002
|
-
if (!isDeep) return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value));
|
|
2003
|
-
} else {
|
|
2004
|
-
if (!cloneableTags[tag]) return object ? value : {};
|
|
2005
|
-
result = initCloneByTag(value, tag, isDeep);
|
|
2006
|
-
}
|
|
2133
|
+
function debounce(func, wait, options) {
|
|
2134
|
+
var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
|
|
2135
|
+
if (typeof func != "function") throw new TypeError(FUNC_ERROR_TEXT);
|
|
2136
|
+
wait = toNumber(wait) || 0;
|
|
2137
|
+
if (isObject(options)) {
|
|
2138
|
+
leading = !!options.leading;
|
|
2139
|
+
maxing = "maxWait" in options;
|
|
2140
|
+
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
2141
|
+
trailing = "trailing" in options ? !!options.trailing : trailing;
|
|
2007
2142
|
}
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
result
|
|
2014
|
-
}
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2143
|
+
function invokeFunc(time) {
|
|
2144
|
+
var args = lastArgs, thisArg = lastThis;
|
|
2145
|
+
lastArgs = lastThis = void 0;
|
|
2146
|
+
lastInvokeTime = time;
|
|
2147
|
+
result = func.apply(thisArg, args);
|
|
2148
|
+
return result;
|
|
2149
|
+
}
|
|
2150
|
+
function leadingEdge(time) {
|
|
2151
|
+
lastInvokeTime = time;
|
|
2152
|
+
timerId = setTimeout(timerExpired, wait);
|
|
2153
|
+
return leading ? invokeFunc(time) : result;
|
|
2154
|
+
}
|
|
2155
|
+
function remainingWait(time) {
|
|
2156
|
+
var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall;
|
|
2157
|
+
return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
|
|
2158
|
+
}
|
|
2159
|
+
function shouldInvoke(time) {
|
|
2160
|
+
var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
|
|
2161
|
+
return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
|
|
2162
|
+
}
|
|
2163
|
+
function timerExpired() {
|
|
2164
|
+
var time = now();
|
|
2165
|
+
if (shouldInvoke(time)) return trailingEdge(time);
|
|
2166
|
+
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
2167
|
+
}
|
|
2168
|
+
function trailingEdge(time) {
|
|
2169
|
+
timerId = void 0;
|
|
2170
|
+
if (trailing && lastArgs) return invokeFunc(time);
|
|
2171
|
+
lastArgs = lastThis = void 0;
|
|
2172
|
+
return result;
|
|
2173
|
+
}
|
|
2174
|
+
function cancel() {
|
|
2175
|
+
if (timerId !== void 0) clearTimeout(timerId);
|
|
2176
|
+
lastInvokeTime = 0;
|
|
2177
|
+
lastArgs = lastCallTime = lastThis = timerId = void 0;
|
|
2178
|
+
}
|
|
2179
|
+
function flush() {
|
|
2180
|
+
return timerId === void 0 ? result : trailingEdge(now());
|
|
2181
|
+
}
|
|
2182
|
+
function debounced() {
|
|
2183
|
+
var time = now(), isInvoking = shouldInvoke(time);
|
|
2184
|
+
lastArgs = arguments;
|
|
2185
|
+
lastThis = this;
|
|
2186
|
+
lastCallTime = time;
|
|
2187
|
+
if (isInvoking) {
|
|
2188
|
+
if (timerId === void 0) return leadingEdge(lastCallTime);
|
|
2189
|
+
if (maxing) {
|
|
2190
|
+
clearTimeout(timerId);
|
|
2191
|
+
timerId = setTimeout(timerExpired, wait);
|
|
2192
|
+
return invokeFunc(lastCallTime);
|
|
2193
|
+
}
|
|
2023
2194
|
}
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2195
|
+
if (timerId === void 0) timerId = setTimeout(timerExpired, wait);
|
|
2196
|
+
return result;
|
|
2197
|
+
}
|
|
2198
|
+
debounced.cancel = cancel;
|
|
2199
|
+
debounced.flush = flush;
|
|
2200
|
+
return debounced;
|
|
2027
2201
|
}
|
|
2028
2202
|
//#endregion
|
|
2029
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
2030
|
-
/**
|
|
2031
|
-
var
|
|
2203
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEmpty.js
|
|
2204
|
+
/** `Object#toString` result references. */
|
|
2205
|
+
var mapTag$1 = "[object Map]", setTag$1 = "[object Set]";
|
|
2206
|
+
/** Used to check objects for own properties. */
|
|
2207
|
+
var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
|
|
2032
2208
|
/**
|
|
2033
|
-
*
|
|
2209
|
+
* Checks if `value` is an empty object, collection, map, or set.
|
|
2210
|
+
*
|
|
2211
|
+
* Objects are considered empty if they have no own enumerable string keyed
|
|
2212
|
+
* properties.
|
|
2213
|
+
*
|
|
2214
|
+
* Array-like values such as `arguments` objects, arrays, buffers, strings, or
|
|
2215
|
+
* jQuery-like collections are considered empty if they have a `length` of `0`.
|
|
2216
|
+
* Similarly, maps and sets are considered empty if they have a `size` of `0`.
|
|
2034
2217
|
*
|
|
2035
2218
|
* @static
|
|
2036
2219
|
* @memberOf _
|
|
2037
|
-
* @since 1.0
|
|
2220
|
+
* @since 0.1.0
|
|
2038
2221
|
* @category Lang
|
|
2039
|
-
* @param {*} value The value to
|
|
2040
|
-
* @returns {
|
|
2041
|
-
* @see _.clone
|
|
2222
|
+
* @param {*} value The value to check.
|
|
2223
|
+
* @returns {boolean} Returns `true` if `value` is empty, else `false`.
|
|
2042
2224
|
* @example
|
|
2043
2225
|
*
|
|
2044
|
-
*
|
|
2226
|
+
* _.isEmpty(null);
|
|
2227
|
+
* // => true
|
|
2045
2228
|
*
|
|
2046
|
-
*
|
|
2047
|
-
*
|
|
2229
|
+
* _.isEmpty(true);
|
|
2230
|
+
* // => true
|
|
2231
|
+
*
|
|
2232
|
+
* _.isEmpty(1);
|
|
2233
|
+
* // => true
|
|
2234
|
+
*
|
|
2235
|
+
* _.isEmpty([1, 2, 3]);
|
|
2236
|
+
* // => false
|
|
2237
|
+
*
|
|
2238
|
+
* _.isEmpty({ 'a': 1 });
|
|
2048
2239
|
* // => false
|
|
2049
2240
|
*/
|
|
2050
|
-
function
|
|
2051
|
-
|
|
2241
|
+
function isEmpty(value) {
|
|
2242
|
+
if (value == null) return true;
|
|
2243
|
+
if (isArrayLike(value) && (isArray(value) || typeof value == "string" || typeof value.splice == "function" || isBuffer(value) || isTypedArray(value) || isArguments(value))) return !value.length;
|
|
2244
|
+
var tag = _getTag_default(value);
|
|
2245
|
+
if (tag == mapTag$1 || tag == setTag$1) return !value.size;
|
|
2246
|
+
if (isPrototype(value)) return !baseKeys(value).length;
|
|
2247
|
+
for (var key in value) if (hasOwnProperty$2.call(value, key)) return false;
|
|
2248
|
+
return true;
|
|
2052
2249
|
}
|
|
2053
2250
|
//#endregion
|
|
2054
2251
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheAdd.js
|
|
@@ -2216,7 +2413,7 @@
|
|
|
2216
2413
|
/** Used to compose bitmasks for value comparisons. */
|
|
2217
2414
|
var COMPARE_PARTIAL_FLAG$2 = 1, COMPARE_UNORDERED_FLAG = 2;
|
|
2218
2415
|
/** `Object#toString` result references. */
|
|
2219
|
-
var boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", mapTag
|
|
2416
|
+
var boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", mapTag = "[object Map]", numberTag = "[object Number]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]";
|
|
2220
2417
|
var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]";
|
|
2221
2418
|
/** Used to convert symbols to primitives and strings. */
|
|
2222
2419
|
var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
@@ -2252,8 +2449,8 @@
|
|
|
2252
2449
|
case errorTag: return object.name == other.name && object.message == other.message;
|
|
2253
2450
|
case regexpTag:
|
|
2254
2451
|
case stringTag: return object == other + "";
|
|
2255
|
-
case mapTag
|
|
2256
|
-
case setTag
|
|
2452
|
+
case mapTag: var convert = mapToArray;
|
|
2453
|
+
case setTag:
|
|
2257
2454
|
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$2;
|
|
2258
2455
|
convert || (convert = setToArray);
|
|
2259
2456
|
if (object.size != other.size && !isPartial) return false;
|
|
@@ -2273,7 +2470,7 @@
|
|
|
2273
2470
|
/** Used to compose bitmasks for value comparisons. */
|
|
2274
2471
|
var COMPARE_PARTIAL_FLAG$1 = 1;
|
|
2275
2472
|
/** Used to check objects for own properties. */
|
|
2276
|
-
var hasOwnProperty$
|
|
2473
|
+
var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
2277
2474
|
/**
|
|
2278
2475
|
* A specialized version of `baseIsEqualDeep` for objects with support for
|
|
2279
2476
|
* partial deep comparisons.
|
|
@@ -2293,7 +2490,7 @@
|
|
|
2293
2490
|
var index = objLength;
|
|
2294
2491
|
while (index--) {
|
|
2295
2492
|
var key = objProps[index];
|
|
2296
|
-
if (!(isPartial ? key in other : hasOwnProperty$
|
|
2493
|
+
if (!(isPartial ? key in other : hasOwnProperty$1.call(other, key))) return false;
|
|
2297
2494
|
}
|
|
2298
2495
|
var objStacked = stack.get(object);
|
|
2299
2496
|
var othStacked = stack.get(other);
|
|
@@ -2327,7 +2524,7 @@
|
|
|
2327
2524
|
/** `Object#toString` result references. */
|
|
2328
2525
|
var argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]";
|
|
2329
2526
|
/** Used to check objects for own properties. */
|
|
2330
|
-
var hasOwnProperty
|
|
2527
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
2331
2528
|
/**
|
|
2332
2529
|
* A specialized version of `baseIsEqual` for arrays and objects which performs
|
|
2333
2530
|
* deep comparisons and tracks traversed objects enabling objects with circular
|
|
@@ -2357,7 +2554,7 @@
|
|
|
2357
2554
|
return objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
2358
2555
|
}
|
|
2359
2556
|
if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
|
|
2360
|
-
var objIsWrapped = objIsObj && hasOwnProperty
|
|
2557
|
+
var objIsWrapped = objIsObj && hasOwnProperty.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty.call(other, "__wrapped__");
|
|
2361
2558
|
if (objIsWrapped || othIsWrapped) {
|
|
2362
2559
|
var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
|
|
2363
2560
|
stack || (stack = new Stack());
|
|
@@ -2390,203 +2587,6 @@
|
|
|
2390
2587
|
return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
|
|
2391
2588
|
}
|
|
2392
2589
|
//#endregion
|
|
2393
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/now.js
|
|
2394
|
-
/**
|
|
2395
|
-
* Gets the timestamp of the number of milliseconds that have elapsed since
|
|
2396
|
-
* the Unix epoch (1 January 1970 00:00:00 UTC).
|
|
2397
|
-
*
|
|
2398
|
-
* @static
|
|
2399
|
-
* @memberOf _
|
|
2400
|
-
* @since 2.4.0
|
|
2401
|
-
* @category Date
|
|
2402
|
-
* @returns {number} Returns the timestamp.
|
|
2403
|
-
* @example
|
|
2404
|
-
*
|
|
2405
|
-
* _.defer(function(stamp) {
|
|
2406
|
-
* console.log(_.now() - stamp);
|
|
2407
|
-
* }, _.now());
|
|
2408
|
-
* // => Logs the number of milliseconds it took for the deferred invocation.
|
|
2409
|
-
*/
|
|
2410
|
-
var now = function() {
|
|
2411
|
-
return root.Date.now();
|
|
2412
|
-
};
|
|
2413
|
-
//#endregion
|
|
2414
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/debounce.js
|
|
2415
|
-
/** Error message constants. */
|
|
2416
|
-
var FUNC_ERROR_TEXT = "Expected a function";
|
|
2417
|
-
var nativeMax = Math.max, nativeMin = Math.min;
|
|
2418
|
-
/**
|
|
2419
|
-
* Creates a debounced function that delays invoking `func` until after `wait`
|
|
2420
|
-
* milliseconds have elapsed since the last time the debounced function was
|
|
2421
|
-
* invoked. The debounced function comes with a `cancel` method to cancel
|
|
2422
|
-
* delayed `func` invocations and a `flush` method to immediately invoke them.
|
|
2423
|
-
* Provide `options` to indicate whether `func` should be invoked on the
|
|
2424
|
-
* leading and/or trailing edge of the `wait` timeout. The `func` is invoked
|
|
2425
|
-
* with the last arguments provided to the debounced function. Subsequent
|
|
2426
|
-
* calls to the debounced function return the result of the last `func`
|
|
2427
|
-
* invocation.
|
|
2428
|
-
*
|
|
2429
|
-
* **Note:** If `leading` and `trailing` options are `true`, `func` is
|
|
2430
|
-
* invoked on the trailing edge of the timeout only if the debounced function
|
|
2431
|
-
* is invoked more than once during the `wait` timeout.
|
|
2432
|
-
*
|
|
2433
|
-
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
|
|
2434
|
-
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
|
|
2435
|
-
*
|
|
2436
|
-
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
|
|
2437
|
-
* for details over the differences between `_.debounce` and `_.throttle`.
|
|
2438
|
-
*
|
|
2439
|
-
* @static
|
|
2440
|
-
* @memberOf _
|
|
2441
|
-
* @since 0.1.0
|
|
2442
|
-
* @category Function
|
|
2443
|
-
* @param {Function} func The function to debounce.
|
|
2444
|
-
* @param {number} [wait=0] The number of milliseconds to delay.
|
|
2445
|
-
* @param {Object} [options={}] The options object.
|
|
2446
|
-
* @param {boolean} [options.leading=false]
|
|
2447
|
-
* Specify invoking on the leading edge of the timeout.
|
|
2448
|
-
* @param {number} [options.maxWait]
|
|
2449
|
-
* The maximum time `func` is allowed to be delayed before it's invoked.
|
|
2450
|
-
* @param {boolean} [options.trailing=true]
|
|
2451
|
-
* Specify invoking on the trailing edge of the timeout.
|
|
2452
|
-
* @returns {Function} Returns the new debounced function.
|
|
2453
|
-
* @example
|
|
2454
|
-
*
|
|
2455
|
-
* // Avoid costly calculations while the window size is in flux.
|
|
2456
|
-
* jQuery(window).on('resize', _.debounce(calculateLayout, 150));
|
|
2457
|
-
*
|
|
2458
|
-
* // Invoke `sendMail` when clicked, debouncing subsequent calls.
|
|
2459
|
-
* jQuery(element).on('click', _.debounce(sendMail, 300, {
|
|
2460
|
-
* 'leading': true,
|
|
2461
|
-
* 'trailing': false
|
|
2462
|
-
* }));
|
|
2463
|
-
*
|
|
2464
|
-
* // Ensure `batchLog` is invoked once after 1 second of debounced calls.
|
|
2465
|
-
* var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
|
|
2466
|
-
* var source = new EventSource('/stream');
|
|
2467
|
-
* jQuery(source).on('message', debounced);
|
|
2468
|
-
*
|
|
2469
|
-
* // Cancel the trailing debounced invocation.
|
|
2470
|
-
* jQuery(window).on('popstate', debounced.cancel);
|
|
2471
|
-
*/
|
|
2472
|
-
function debounce(func, wait, options) {
|
|
2473
|
-
var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
|
|
2474
|
-
if (typeof func != "function") throw new TypeError(FUNC_ERROR_TEXT);
|
|
2475
|
-
wait = toNumber(wait) || 0;
|
|
2476
|
-
if (isObject(options)) {
|
|
2477
|
-
leading = !!options.leading;
|
|
2478
|
-
maxing = "maxWait" in options;
|
|
2479
|
-
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
2480
|
-
trailing = "trailing" in options ? !!options.trailing : trailing;
|
|
2481
|
-
}
|
|
2482
|
-
function invokeFunc(time) {
|
|
2483
|
-
var args = lastArgs, thisArg = lastThis;
|
|
2484
|
-
lastArgs = lastThis = void 0;
|
|
2485
|
-
lastInvokeTime = time;
|
|
2486
|
-
result = func.apply(thisArg, args);
|
|
2487
|
-
return result;
|
|
2488
|
-
}
|
|
2489
|
-
function leadingEdge(time) {
|
|
2490
|
-
lastInvokeTime = time;
|
|
2491
|
-
timerId = setTimeout(timerExpired, wait);
|
|
2492
|
-
return leading ? invokeFunc(time) : result;
|
|
2493
|
-
}
|
|
2494
|
-
function remainingWait(time) {
|
|
2495
|
-
var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall;
|
|
2496
|
-
return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
|
|
2497
|
-
}
|
|
2498
|
-
function shouldInvoke(time) {
|
|
2499
|
-
var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
|
|
2500
|
-
return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
|
|
2501
|
-
}
|
|
2502
|
-
function timerExpired() {
|
|
2503
|
-
var time = now();
|
|
2504
|
-
if (shouldInvoke(time)) return trailingEdge(time);
|
|
2505
|
-
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
2506
|
-
}
|
|
2507
|
-
function trailingEdge(time) {
|
|
2508
|
-
timerId = void 0;
|
|
2509
|
-
if (trailing && lastArgs) return invokeFunc(time);
|
|
2510
|
-
lastArgs = lastThis = void 0;
|
|
2511
|
-
return result;
|
|
2512
|
-
}
|
|
2513
|
-
function cancel() {
|
|
2514
|
-
if (timerId !== void 0) clearTimeout(timerId);
|
|
2515
|
-
lastInvokeTime = 0;
|
|
2516
|
-
lastArgs = lastCallTime = lastThis = timerId = void 0;
|
|
2517
|
-
}
|
|
2518
|
-
function flush() {
|
|
2519
|
-
return timerId === void 0 ? result : trailingEdge(now());
|
|
2520
|
-
}
|
|
2521
|
-
function debounced() {
|
|
2522
|
-
var time = now(), isInvoking = shouldInvoke(time);
|
|
2523
|
-
lastArgs = arguments;
|
|
2524
|
-
lastThis = this;
|
|
2525
|
-
lastCallTime = time;
|
|
2526
|
-
if (isInvoking) {
|
|
2527
|
-
if (timerId === void 0) return leadingEdge(lastCallTime);
|
|
2528
|
-
if (maxing) {
|
|
2529
|
-
clearTimeout(timerId);
|
|
2530
|
-
timerId = setTimeout(timerExpired, wait);
|
|
2531
|
-
return invokeFunc(lastCallTime);
|
|
2532
|
-
}
|
|
2533
|
-
}
|
|
2534
|
-
if (timerId === void 0) timerId = setTimeout(timerExpired, wait);
|
|
2535
|
-
return result;
|
|
2536
|
-
}
|
|
2537
|
-
debounced.cancel = cancel;
|
|
2538
|
-
debounced.flush = flush;
|
|
2539
|
-
return debounced;
|
|
2540
|
-
}
|
|
2541
|
-
//#endregion
|
|
2542
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEmpty.js
|
|
2543
|
-
/** `Object#toString` result references. */
|
|
2544
|
-
var mapTag = "[object Map]", setTag = "[object Set]";
|
|
2545
|
-
/** Used to check objects for own properties. */
|
|
2546
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
2547
|
-
/**
|
|
2548
|
-
* Checks if `value` is an empty object, collection, map, or set.
|
|
2549
|
-
*
|
|
2550
|
-
* Objects are considered empty if they have no own enumerable string keyed
|
|
2551
|
-
* properties.
|
|
2552
|
-
*
|
|
2553
|
-
* Array-like values such as `arguments` objects, arrays, buffers, strings, or
|
|
2554
|
-
* jQuery-like collections are considered empty if they have a `length` of `0`.
|
|
2555
|
-
* Similarly, maps and sets are considered empty if they have a `size` of `0`.
|
|
2556
|
-
*
|
|
2557
|
-
* @static
|
|
2558
|
-
* @memberOf _
|
|
2559
|
-
* @since 0.1.0
|
|
2560
|
-
* @category Lang
|
|
2561
|
-
* @param {*} value The value to check.
|
|
2562
|
-
* @returns {boolean} Returns `true` if `value` is empty, else `false`.
|
|
2563
|
-
* @example
|
|
2564
|
-
*
|
|
2565
|
-
* _.isEmpty(null);
|
|
2566
|
-
* // => true
|
|
2567
|
-
*
|
|
2568
|
-
* _.isEmpty(true);
|
|
2569
|
-
* // => true
|
|
2570
|
-
*
|
|
2571
|
-
* _.isEmpty(1);
|
|
2572
|
-
* // => true
|
|
2573
|
-
*
|
|
2574
|
-
* _.isEmpty([1, 2, 3]);
|
|
2575
|
-
* // => false
|
|
2576
|
-
*
|
|
2577
|
-
* _.isEmpty({ 'a': 1 });
|
|
2578
|
-
* // => false
|
|
2579
|
-
*/
|
|
2580
|
-
function isEmpty(value) {
|
|
2581
|
-
if (value == null) return true;
|
|
2582
|
-
if (isArrayLike(value) && (isArray(value) || typeof value == "string" || typeof value.splice == "function" || isBuffer(value) || isTypedArray(value) || isArguments(value))) return !value.length;
|
|
2583
|
-
var tag = _getTag_default(value);
|
|
2584
|
-
if (tag == mapTag || tag == setTag) return !value.size;
|
|
2585
|
-
if (isPrototype(value)) return !baseKeys(value).length;
|
|
2586
|
-
for (var key in value) if (hasOwnProperty.call(value, key)) return false;
|
|
2587
|
-
return true;
|
|
2588
|
-
}
|
|
2589
|
-
//#endregion
|
|
2590
2590
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEqual.js
|
|
2591
2591
|
/**
|
|
2592
2592
|
* Performs a deep comparison between two values to determine if they are
|
|
@@ -2667,7 +2667,7 @@
|
|
|
2667
2667
|
var deleteField = (tagName) => fieldRegistry.delete(tagName);
|
|
2668
2668
|
//#endregion
|
|
2669
2669
|
//#region packages/form/src/utils/form.ts
|
|
2670
|
-
var TABLE_SELECT_TYPES = new Set(["table-select", "tableSelect"]);
|
|
2670
|
+
var TABLE_SELECT_TYPES = /* @__PURE__ */ new Set(["table-select", "tableSelect"]);
|
|
2671
2671
|
var isTableSelect = (type) => typeof type === "string" && TABLE_SELECT_TYPES.has(type);
|
|
2672
2672
|
var asyncLoadConfig = (value, initValue, { asyncLoad, name, type }) => {
|
|
2673
2673
|
if (type === "html" && typeof asyncLoad === "object" && typeof name !== "undefined") {
|
|
@@ -2675,7 +2675,7 @@
|
|
|
2675
2675
|
value.asyncLoad = typeof initValue.asyncLoad === "object" ? initValue.asyncLoad : asyncLoad;
|
|
2676
2676
|
}
|
|
2677
2677
|
};
|
|
2678
|
-
var MULTIPLE_VALUE_TYPES = new Set([
|
|
2678
|
+
var MULTIPLE_VALUE_TYPES = /* @__PURE__ */ new Set([
|
|
2679
2679
|
"checkbox-group",
|
|
2680
2680
|
"checkboxGroup",
|
|
2681
2681
|
"table",
|
|
@@ -2985,7 +2985,7 @@
|
|
|
2985
2985
|
const effectiveSelfDiffFieldTypes = (0, vue.computed)(() => {
|
|
2986
2986
|
const custom = diffConfig.selfDiffFieldTypes;
|
|
2987
2987
|
if (typeof custom === "function") return new Set(custom([...DEFAULT_SELF_DIFF_FIELD_TYPES]));
|
|
2988
|
-
if (Array.isArray(custom)) return new Set([...DEFAULT_SELF_DIFF_FIELD_TYPES, ...custom]);
|
|
2988
|
+
if (Array.isArray(custom)) return /* @__PURE__ */ new Set([...DEFAULT_SELF_DIFF_FIELD_TYPES, ...custom]);
|
|
2989
2989
|
return new Set(DEFAULT_SELF_DIFF_FIELD_TYPES);
|
|
2990
2990
|
});
|
|
2991
2991
|
const isSelfDiffField = (0, vue.computed)(() => effectiveSelfDiffFieldTypes.value.has(type.value));
|