@tailor-cms/ce-modal-display 0.1.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Display.vue.d.ts +8 -3
- package/dist/index.cjs +2559 -1074
- package/dist/index.css +1 -1
- package/dist/index.js +2555 -1075
- package/package.json +14 -9
package/dist/index.cjs
CHANGED
|
@@ -1,68 +1,74 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
+
});
|
|
5
|
+
require('./index.css');let vue = require("vue");
|
|
6
|
+
//#region ../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist/stringify.js
|
|
7
|
+
var byteToHex = [];
|
|
8
|
+
for (let i = 0; i < 256; ++i) byteToHex.push((i + 256).toString(16).slice(1));
|
|
9
9
|
function unsafeStringify(arr, offset = 0) {
|
|
10
|
-
|
|
10
|
+
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region ../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist/rng.js
|
|
14
|
+
var rnds8 = new Uint8Array(16);
|
|
14
15
|
function rng() {
|
|
15
|
-
|
|
16
|
-
if (typeof crypto === "undefined" || !crypto.getRandomValues) {
|
|
17
|
-
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
18
|
-
}
|
|
19
|
-
getRandomValues = crypto.getRandomValues.bind(crypto);
|
|
20
|
-
}
|
|
21
|
-
return getRandomValues(rnds8);
|
|
16
|
+
return crypto.getRandomValues(rnds8);
|
|
22
17
|
}
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region ../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist/v4.js
|
|
25
20
|
function v4(options, buf, offset) {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
21
|
+
if (!buf && !options && crypto.randomUUID) return crypto.randomUUID();
|
|
22
|
+
return _v4(options, buf, offset);
|
|
23
|
+
}
|
|
24
|
+
function _v4(options, buf, offset) {
|
|
25
|
+
options = options || {};
|
|
26
|
+
const rnds = options.random ?? options.rng?.() ?? rng();
|
|
27
|
+
if (rnds.length < 16) throw new Error("Random bytes length must be >= 16");
|
|
28
|
+
rnds[6] = rnds[6] & 15 | 64;
|
|
29
|
+
rnds[8] = rnds[8] & 63 | 128;
|
|
30
|
+
if (buf) {
|
|
31
|
+
offset = offset || 0;
|
|
32
|
+
if (offset < 0 || offset + 16 > buf.length) throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
|
|
33
|
+
for (let i = 0; i < 16; ++i) buf[offset + i] = rnds[i];
|
|
34
|
+
return buf;
|
|
35
|
+
}
|
|
36
|
+
return unsafeStringify(rnds);
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region ../manifest/dist/index.mjs
|
|
38
40
|
var type = "MODAL";
|
|
39
41
|
var name = "Modal";
|
|
40
42
|
var initState = () => ({
|
|
41
|
-
|
|
42
|
-
|
|
43
|
+
title: null,
|
|
44
|
+
embeds: {}
|
|
43
45
|
});
|
|
44
|
-
var
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
46
|
+
var manifest$1 = {
|
|
47
|
+
type,
|
|
48
|
+
version: "1.0",
|
|
49
|
+
name,
|
|
50
|
+
ssr: false,
|
|
51
|
+
isComposite: true,
|
|
52
|
+
initState,
|
|
53
|
+
ui: {
|
|
54
|
+
icon: "mdi-window-restore",
|
|
55
|
+
forceFullWidth: false
|
|
56
|
+
},
|
|
57
|
+
ai: {
|
|
58
|
+
Schema: {
|
|
59
|
+
type: "json_schema",
|
|
60
|
+
name: "ce_modal",
|
|
61
|
+
schema: {
|
|
62
|
+
type: "object",
|
|
63
|
+
properties: {
|
|
64
|
+
title: { type: "string" },
|
|
65
|
+
content: { type: "string" }
|
|
66
|
+
},
|
|
67
|
+
required: ["title", "content"],
|
|
68
|
+
additionalProperties: false
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
getPrompt: () => `
|
|
66
72
|
Generate a modal content element as an object with the following
|
|
67
73
|
properties:
|
|
68
74
|
{
|
|
@@ -74,1264 +80,2743 @@ var ai = {
|
|
|
74
80
|
- 'content' is the text to be displayed in the modal. Create few
|
|
75
81
|
paragraphs about the topic.
|
|
76
82
|
`,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
92
|
-
var manifest$1 = {
|
|
93
|
-
type,
|
|
94
|
-
version: "1.0",
|
|
95
|
-
name,
|
|
96
|
-
ssr: false,
|
|
97
|
-
isComposite: true,
|
|
98
|
-
initState,
|
|
99
|
-
ui,
|
|
100
|
-
ai
|
|
83
|
+
processResponse: (val) => {
|
|
84
|
+
const embedId = v4();
|
|
85
|
+
const embed = {
|
|
86
|
+
id: embedId,
|
|
87
|
+
data: { content: val.content },
|
|
88
|
+
embedded: true,
|
|
89
|
+
position: 1,
|
|
90
|
+
type: "TIPTAP_HTML"
|
|
91
|
+
};
|
|
92
|
+
return {
|
|
93
|
+
title: val.title,
|
|
94
|
+
embeds: { [embedId]: embed }
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
}
|
|
101
98
|
};
|
|
102
|
-
|
|
99
|
+
//#endregion
|
|
100
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js
|
|
101
|
+
/** Detect free variable `global` from Node.js. */
|
|
103
102
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_root.js
|
|
105
|
+
/** Detect free variable `self`. */
|
|
104
106
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
107
|
+
/** Used as a reference to the global object. */
|
|
105
108
|
var root = freeGlobal || freeSelf || Function("return this")();
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
var
|
|
110
|
-
|
|
109
|
+
//#endregion
|
|
110
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js
|
|
111
|
+
/** Built-in value references. */
|
|
112
|
+
var Symbol = root.Symbol;
|
|
113
|
+
//#endregion
|
|
114
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js
|
|
115
|
+
/** Used for built-in method references. */
|
|
116
|
+
var objectProto$3 = Object.prototype;
|
|
117
|
+
/** Used to check objects for own properties. */
|
|
118
|
+
var hasOwnProperty$8 = objectProto$3.hasOwnProperty;
|
|
119
|
+
/**
|
|
120
|
+
* Used to resolve the
|
|
121
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
122
|
+
* of values.
|
|
123
|
+
*/
|
|
124
|
+
var nativeObjectToString$1 = objectProto$3.toString;
|
|
125
|
+
/** Built-in value references. */
|
|
126
|
+
var symToStringTag$1 = Symbol ? Symbol.toStringTag : void 0;
|
|
127
|
+
/**
|
|
128
|
+
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
129
|
+
*
|
|
130
|
+
* @private
|
|
131
|
+
* @param {*} value The value to query.
|
|
132
|
+
* @returns {string} Returns the raw `toStringTag`.
|
|
133
|
+
*/
|
|
111
134
|
function getRawTag(value) {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
var nativeObjectToString =
|
|
135
|
+
var isOwn = hasOwnProperty$8.call(value, symToStringTag$1), tag = value[symToStringTag$1];
|
|
136
|
+
try {
|
|
137
|
+
value[symToStringTag$1] = void 0;
|
|
138
|
+
var unmasked = true;
|
|
139
|
+
} catch (e) {}
|
|
140
|
+
var result = nativeObjectToString$1.call(value);
|
|
141
|
+
if (unmasked) if (isOwn) value[symToStringTag$1] = tag;
|
|
142
|
+
else delete value[symToStringTag$1];
|
|
143
|
+
return result;
|
|
144
|
+
}
|
|
145
|
+
//#endregion
|
|
146
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js
|
|
147
|
+
/**
|
|
148
|
+
* Used to resolve the
|
|
149
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
150
|
+
* of values.
|
|
151
|
+
*/
|
|
152
|
+
var nativeObjectToString = Object.prototype.toString;
|
|
153
|
+
/**
|
|
154
|
+
* Converts `value` to a string using `Object.prototype.toString`.
|
|
155
|
+
*
|
|
156
|
+
* @private
|
|
157
|
+
* @param {*} value The value to convert.
|
|
158
|
+
* @returns {string} Returns the converted string.
|
|
159
|
+
*/
|
|
130
160
|
function objectToString(value) {
|
|
131
|
-
|
|
161
|
+
return nativeObjectToString.call(value);
|
|
132
162
|
}
|
|
163
|
+
//#endregion
|
|
164
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js
|
|
165
|
+
/** `Object#toString` result references. */
|
|
133
166
|
var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
|
|
134
|
-
|
|
167
|
+
/** Built-in value references. */
|
|
168
|
+
var symToStringTag = Symbol ? Symbol.toStringTag : void 0;
|
|
169
|
+
/**
|
|
170
|
+
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
171
|
+
*
|
|
172
|
+
* @private
|
|
173
|
+
* @param {*} value The value to query.
|
|
174
|
+
* @returns {string} Returns the `toStringTag`.
|
|
175
|
+
*/
|
|
135
176
|
function baseGetTag(value) {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
177
|
+
if (value == null) return value === void 0 ? undefinedTag : nullTag;
|
|
178
|
+
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
179
|
+
}
|
|
180
|
+
//#endregion
|
|
181
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js
|
|
182
|
+
/**
|
|
183
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
184
|
+
* and has a `typeof` result of "object".
|
|
185
|
+
*
|
|
186
|
+
* @static
|
|
187
|
+
* @memberOf _
|
|
188
|
+
* @since 4.0.0
|
|
189
|
+
* @category Lang
|
|
190
|
+
* @param {*} value The value to check.
|
|
191
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
192
|
+
* @example
|
|
193
|
+
*
|
|
194
|
+
* _.isObjectLike({});
|
|
195
|
+
* // => true
|
|
196
|
+
*
|
|
197
|
+
* _.isObjectLike([1, 2, 3]);
|
|
198
|
+
* // => true
|
|
199
|
+
*
|
|
200
|
+
* _.isObjectLike(_.noop);
|
|
201
|
+
* // => false
|
|
202
|
+
*
|
|
203
|
+
* _.isObjectLike(null);
|
|
204
|
+
* // => false
|
|
205
|
+
*/
|
|
141
206
|
function isObjectLike(value) {
|
|
142
|
-
|
|
207
|
+
return value != null && typeof value == "object";
|
|
143
208
|
}
|
|
209
|
+
//#endregion
|
|
210
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js
|
|
211
|
+
/** `Object#toString` result references. */
|
|
144
212
|
var symbolTag$1 = "[object Symbol]";
|
|
213
|
+
/**
|
|
214
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
215
|
+
*
|
|
216
|
+
* @static
|
|
217
|
+
* @memberOf _
|
|
218
|
+
* @since 4.0.0
|
|
219
|
+
* @category Lang
|
|
220
|
+
* @param {*} value The value to check.
|
|
221
|
+
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
222
|
+
* @example
|
|
223
|
+
*
|
|
224
|
+
* _.isSymbol(Symbol.iterator);
|
|
225
|
+
* // => true
|
|
226
|
+
*
|
|
227
|
+
* _.isSymbol('abc');
|
|
228
|
+
* // => false
|
|
229
|
+
*/
|
|
145
230
|
function isSymbol(value) {
|
|
146
|
-
|
|
147
|
-
}
|
|
231
|
+
return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag$1;
|
|
232
|
+
}
|
|
233
|
+
//#endregion
|
|
234
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js
|
|
235
|
+
/**
|
|
236
|
+
* A specialized version of `_.map` for arrays without support for iteratee
|
|
237
|
+
* shorthands.
|
|
238
|
+
*
|
|
239
|
+
* @private
|
|
240
|
+
* @param {Array} [array] The array to iterate over.
|
|
241
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
242
|
+
* @returns {Array} Returns the new mapped array.
|
|
243
|
+
*/
|
|
148
244
|
function arrayMap(array, iteratee) {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
245
|
+
var index = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
246
|
+
while (++index < length) result[index] = iteratee(array[index], index, array);
|
|
247
|
+
return result;
|
|
248
|
+
}
|
|
249
|
+
//#endregion
|
|
250
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArray.js
|
|
251
|
+
/**
|
|
252
|
+
* Checks if `value` is classified as an `Array` object.
|
|
253
|
+
*
|
|
254
|
+
* @static
|
|
255
|
+
* @memberOf _
|
|
256
|
+
* @since 0.1.0
|
|
257
|
+
* @category Lang
|
|
258
|
+
* @param {*} value The value to check.
|
|
259
|
+
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
260
|
+
* @example
|
|
261
|
+
*
|
|
262
|
+
* _.isArray([1, 2, 3]);
|
|
263
|
+
* // => true
|
|
264
|
+
*
|
|
265
|
+
* _.isArray(document.body.children);
|
|
266
|
+
* // => false
|
|
267
|
+
*
|
|
268
|
+
* _.isArray('abc');
|
|
269
|
+
* // => false
|
|
270
|
+
*
|
|
271
|
+
* _.isArray(_.noop);
|
|
272
|
+
* // => false
|
|
273
|
+
*/
|
|
155
274
|
var isArray = Array.isArray;
|
|
156
|
-
|
|
275
|
+
//#endregion
|
|
276
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js
|
|
277
|
+
/** Used as references for various `Number` constants. */
|
|
278
|
+
var INFINITY$1 = Infinity;
|
|
279
|
+
/** Used to convert symbols to primitives and strings. */
|
|
280
|
+
var symbolProto$1 = Symbol ? Symbol.prototype : void 0, symbolToString = symbolProto$1 ? symbolProto$1.toString : void 0;
|
|
281
|
+
/**
|
|
282
|
+
* The base implementation of `_.toString` which doesn't convert nullish
|
|
283
|
+
* values to empty strings.
|
|
284
|
+
*
|
|
285
|
+
* @private
|
|
286
|
+
* @param {*} value The value to process.
|
|
287
|
+
* @returns {string} Returns the string.
|
|
288
|
+
*/
|
|
157
289
|
function baseToString(value) {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
290
|
+
if (typeof value == "string") return value;
|
|
291
|
+
if (isArray(value)) return arrayMap(value, baseToString) + "";
|
|
292
|
+
if (isSymbol(value)) return symbolToString ? symbolToString.call(value) : "";
|
|
293
|
+
var result = value + "";
|
|
294
|
+
return result == "0" && 1 / value == -INFINITY$1 ? "-0" : result;
|
|
295
|
+
}
|
|
296
|
+
//#endregion
|
|
297
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObject.js
|
|
298
|
+
/**
|
|
299
|
+
* Checks if `value` is the
|
|
300
|
+
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
301
|
+
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
302
|
+
*
|
|
303
|
+
* @static
|
|
304
|
+
* @memberOf _
|
|
305
|
+
* @since 0.1.0
|
|
306
|
+
* @category Lang
|
|
307
|
+
* @param {*} value The value to check.
|
|
308
|
+
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
309
|
+
* @example
|
|
310
|
+
*
|
|
311
|
+
* _.isObject({});
|
|
312
|
+
* // => true
|
|
313
|
+
*
|
|
314
|
+
* _.isObject([1, 2, 3]);
|
|
315
|
+
* // => true
|
|
316
|
+
*
|
|
317
|
+
* _.isObject(_.noop);
|
|
318
|
+
* // => true
|
|
319
|
+
*
|
|
320
|
+
* _.isObject(null);
|
|
321
|
+
* // => false
|
|
322
|
+
*/
|
|
170
323
|
function isObject(value) {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
}
|
|
324
|
+
var type = typeof value;
|
|
325
|
+
return value != null && (type == "object" || type == "function");
|
|
326
|
+
}
|
|
327
|
+
//#endregion
|
|
328
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/identity.js
|
|
329
|
+
/**
|
|
330
|
+
* This method returns the first argument it receives.
|
|
331
|
+
*
|
|
332
|
+
* @static
|
|
333
|
+
* @since 0.1.0
|
|
334
|
+
* @memberOf _
|
|
335
|
+
* @category Util
|
|
336
|
+
* @param {*} value Any value.
|
|
337
|
+
* @returns {*} Returns `value`.
|
|
338
|
+
* @example
|
|
339
|
+
*
|
|
340
|
+
* var object = { 'a': 1 };
|
|
341
|
+
*
|
|
342
|
+
* console.log(_.identity(object) === object);
|
|
343
|
+
* // => true
|
|
344
|
+
*/
|
|
174
345
|
function identity(value) {
|
|
175
|
-
|
|
346
|
+
return value;
|
|
176
347
|
}
|
|
348
|
+
//#endregion
|
|
349
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js
|
|
350
|
+
/** `Object#toString` result references. */
|
|
177
351
|
var asyncTag = "[object AsyncFunction]", funcTag$1 = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
|
|
352
|
+
/**
|
|
353
|
+
* Checks if `value` is classified as a `Function` object.
|
|
354
|
+
*
|
|
355
|
+
* @static
|
|
356
|
+
* @memberOf _
|
|
357
|
+
* @since 0.1.0
|
|
358
|
+
* @category Lang
|
|
359
|
+
* @param {*} value The value to check.
|
|
360
|
+
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
|
361
|
+
* @example
|
|
362
|
+
*
|
|
363
|
+
* _.isFunction(_);
|
|
364
|
+
* // => true
|
|
365
|
+
*
|
|
366
|
+
* _.isFunction(/abc/);
|
|
367
|
+
* // => false
|
|
368
|
+
*/
|
|
178
369
|
function isFunction(value) {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
var tag = baseGetTag(value);
|
|
183
|
-
return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
370
|
+
if (!isObject(value)) return false;
|
|
371
|
+
var tag = baseGetTag(value);
|
|
372
|
+
return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
184
373
|
}
|
|
374
|
+
//#endregion
|
|
375
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js
|
|
376
|
+
/** Used to detect overreaching core-js shims. */
|
|
185
377
|
var coreJsData = root["__core-js_shared__"];
|
|
378
|
+
//#endregion
|
|
379
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js
|
|
380
|
+
/** Used to detect methods masquerading as native. */
|
|
186
381
|
var maskSrcKey = function() {
|
|
187
|
-
|
|
188
|
-
|
|
382
|
+
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
383
|
+
return uid ? "Symbol(src)_1." + uid : "";
|
|
189
384
|
}();
|
|
385
|
+
/**
|
|
386
|
+
* Checks if `func` has its source masked.
|
|
387
|
+
*
|
|
388
|
+
* @private
|
|
389
|
+
* @param {Function} func The function to check.
|
|
390
|
+
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
|
|
391
|
+
*/
|
|
190
392
|
function isMasked(func) {
|
|
191
|
-
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
|
|
393
|
+
return !!maskSrcKey && maskSrcKey in func;
|
|
394
|
+
}
|
|
395
|
+
//#endregion
|
|
396
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js
|
|
397
|
+
/** Used to resolve the decompiled source of functions. */
|
|
398
|
+
var funcToString$1 = Function.prototype.toString;
|
|
399
|
+
/**
|
|
400
|
+
* Converts `func` to its source code.
|
|
401
|
+
*
|
|
402
|
+
* @private
|
|
403
|
+
* @param {Function} func The function to convert.
|
|
404
|
+
* @returns {string} Returns the source code.
|
|
405
|
+
*/
|
|
195
406
|
function toSource(func) {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
407
|
+
if (func != null) {
|
|
408
|
+
try {
|
|
409
|
+
return funcToString$1.call(func);
|
|
410
|
+
} catch (e) {}
|
|
411
|
+
try {
|
|
412
|
+
return func + "";
|
|
413
|
+
} catch (e) {}
|
|
414
|
+
}
|
|
415
|
+
return "";
|
|
416
|
+
}
|
|
417
|
+
//#endregion
|
|
418
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js
|
|
419
|
+
/**
|
|
420
|
+
* Used to match `RegExp`
|
|
421
|
+
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
422
|
+
*/
|
|
208
423
|
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
424
|
+
/** Used to detect host constructors (Safari). */
|
|
209
425
|
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
210
|
-
|
|
426
|
+
/** Used for built-in method references. */
|
|
427
|
+
var funcProto = Function.prototype, objectProto$2 = Object.prototype;
|
|
428
|
+
/** Used to resolve the decompiled source of functions. */
|
|
211
429
|
var funcToString = funcProto.toString;
|
|
212
|
-
|
|
213
|
-
var
|
|
214
|
-
|
|
215
|
-
);
|
|
430
|
+
/** Used to check objects for own properties. */
|
|
431
|
+
var hasOwnProperty$7 = objectProto$2.hasOwnProperty;
|
|
432
|
+
/** Used to detect if a method is native. */
|
|
433
|
+
var reIsNative = RegExp("^" + funcToString.call(hasOwnProperty$7).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
434
|
+
/**
|
|
435
|
+
* The base implementation of `_.isNative` without bad shim checks.
|
|
436
|
+
*
|
|
437
|
+
* @private
|
|
438
|
+
* @param {*} value The value to check.
|
|
439
|
+
* @returns {boolean} Returns `true` if `value` is a native function,
|
|
440
|
+
* else `false`.
|
|
441
|
+
*/
|
|
216
442
|
function baseIsNative(value) {
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
443
|
+
if (!isObject(value) || isMasked(value)) return false;
|
|
444
|
+
return (isFunction(value) ? reIsNative : reIsHostCtor).test(toSource(value));
|
|
445
|
+
}
|
|
446
|
+
//#endregion
|
|
447
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js
|
|
448
|
+
/**
|
|
449
|
+
* Gets the value at `key` of `object`.
|
|
450
|
+
*
|
|
451
|
+
* @private
|
|
452
|
+
* @param {Object} [object] The object to query.
|
|
453
|
+
* @param {string} key The key of the property to get.
|
|
454
|
+
* @returns {*} Returns the property value.
|
|
455
|
+
*/
|
|
223
456
|
function getValue(object, key) {
|
|
224
|
-
|
|
225
|
-
}
|
|
457
|
+
return object == null ? void 0 : object[key];
|
|
458
|
+
}
|
|
459
|
+
//#endregion
|
|
460
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js
|
|
461
|
+
/**
|
|
462
|
+
* Gets the native function at `key` of `object`.
|
|
463
|
+
*
|
|
464
|
+
* @private
|
|
465
|
+
* @param {Object} object The object to query.
|
|
466
|
+
* @param {string} key The key of the method to get.
|
|
467
|
+
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
468
|
+
*/
|
|
226
469
|
function getNative(object, key) {
|
|
227
|
-
|
|
228
|
-
|
|
470
|
+
var value = getValue(object, key);
|
|
471
|
+
return baseIsNative(value) ? value : void 0;
|
|
229
472
|
}
|
|
473
|
+
//#endregion
|
|
474
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js
|
|
230
475
|
var WeakMap = getNative(root, "WeakMap");
|
|
476
|
+
//#endregion
|
|
477
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_apply.js
|
|
478
|
+
/**
|
|
479
|
+
* A faster alternative to `Function#apply`, this function invokes `func`
|
|
480
|
+
* with the `this` binding of `thisArg` and the arguments of `args`.
|
|
481
|
+
*
|
|
482
|
+
* @private
|
|
483
|
+
* @param {Function} func The function to invoke.
|
|
484
|
+
* @param {*} thisArg The `this` binding of `func`.
|
|
485
|
+
* @param {Array} args The arguments to invoke `func` with.
|
|
486
|
+
* @returns {*} Returns the result of `func`.
|
|
487
|
+
*/
|
|
231
488
|
function apply(func, thisArg, args) {
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
}
|
|
489
|
+
switch (args.length) {
|
|
490
|
+
case 0: return func.call(thisArg);
|
|
491
|
+
case 1: return func.call(thisArg, args[0]);
|
|
492
|
+
case 2: return func.call(thisArg, args[0], args[1]);
|
|
493
|
+
case 3: return func.call(thisArg, args[0], args[1], args[2]);
|
|
494
|
+
}
|
|
495
|
+
return func.apply(thisArg, args);
|
|
496
|
+
}
|
|
497
|
+
//#endregion
|
|
498
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js
|
|
499
|
+
/** Used to detect hot functions by number of calls within a span of milliseconds. */
|
|
244
500
|
var HOT_COUNT = 800, HOT_SPAN = 16;
|
|
245
501
|
var nativeNow = Date.now;
|
|
502
|
+
/**
|
|
503
|
+
* Creates a function that'll short out and invoke `identity` instead
|
|
504
|
+
* of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
|
|
505
|
+
* milliseconds.
|
|
506
|
+
*
|
|
507
|
+
* @private
|
|
508
|
+
* @param {Function} func The function to restrict.
|
|
509
|
+
* @returns {Function} Returns the new shortable function.
|
|
510
|
+
*/
|
|
246
511
|
function shortOut(func) {
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
512
|
+
var count = 0, lastCalled = 0;
|
|
513
|
+
return function() {
|
|
514
|
+
var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
|
|
515
|
+
lastCalled = stamp;
|
|
516
|
+
if (remaining > 0) {
|
|
517
|
+
if (++count >= HOT_COUNT) return arguments[0];
|
|
518
|
+
} else count = 0;
|
|
519
|
+
return func.apply(void 0, arguments);
|
|
520
|
+
};
|
|
521
|
+
}
|
|
522
|
+
//#endregion
|
|
523
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/constant.js
|
|
524
|
+
/**
|
|
525
|
+
* Creates a function that returns `value`.
|
|
526
|
+
*
|
|
527
|
+
* @static
|
|
528
|
+
* @memberOf _
|
|
529
|
+
* @since 2.4.0
|
|
530
|
+
* @category Util
|
|
531
|
+
* @param {*} value The value to return from the new function.
|
|
532
|
+
* @returns {Function} Returns the new constant function.
|
|
533
|
+
* @example
|
|
534
|
+
*
|
|
535
|
+
* var objects = _.times(2, _.constant({ 'a': 1 }));
|
|
536
|
+
*
|
|
537
|
+
* console.log(objects);
|
|
538
|
+
* // => [{ 'a': 1 }, { 'a': 1 }]
|
|
539
|
+
*
|
|
540
|
+
* console.log(objects[0] === objects[1]);
|
|
541
|
+
* // => true
|
|
542
|
+
*/
|
|
261
543
|
function constant(value) {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
544
|
+
return function() {
|
|
545
|
+
return value;
|
|
546
|
+
};
|
|
265
547
|
}
|
|
548
|
+
//#endregion
|
|
549
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js
|
|
266
550
|
var defineProperty = function() {
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
}
|
|
551
|
+
try {
|
|
552
|
+
var func = getNative(Object, "defineProperty");
|
|
553
|
+
func({}, "", {});
|
|
554
|
+
return func;
|
|
555
|
+
} catch (e) {}
|
|
273
556
|
}();
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
}
|
|
282
|
-
|
|
557
|
+
//#endregion
|
|
558
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js
|
|
559
|
+
/**
|
|
560
|
+
* Sets the `toString` method of `func` to return `string`.
|
|
561
|
+
*
|
|
562
|
+
* @private
|
|
563
|
+
* @param {Function} func The function to modify.
|
|
564
|
+
* @param {Function} string The `toString` result.
|
|
565
|
+
* @returns {Function} Returns `func`.
|
|
566
|
+
*/
|
|
567
|
+
var setToString = shortOut(!defineProperty ? identity : function(func, string) {
|
|
568
|
+
return defineProperty(func, "toString", {
|
|
569
|
+
"configurable": true,
|
|
570
|
+
"enumerable": false,
|
|
571
|
+
"value": constant(string),
|
|
572
|
+
"writable": true
|
|
573
|
+
});
|
|
574
|
+
});
|
|
575
|
+
//#endregion
|
|
576
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js
|
|
577
|
+
/** Used as references for various `Number` constants. */
|
|
283
578
|
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
579
|
+
/** Used to detect unsigned integer values. */
|
|
284
580
|
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
581
|
+
/**
|
|
582
|
+
* Checks if `value` is a valid array-like index.
|
|
583
|
+
*
|
|
584
|
+
* @private
|
|
585
|
+
* @param {*} value The value to check.
|
|
586
|
+
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
587
|
+
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
588
|
+
*/
|
|
285
589
|
function isIndex(value, length) {
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
}
|
|
590
|
+
var type = typeof value;
|
|
591
|
+
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
592
|
+
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
|
|
593
|
+
}
|
|
594
|
+
//#endregion
|
|
595
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/eq.js
|
|
596
|
+
/**
|
|
597
|
+
* Performs a
|
|
598
|
+
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
599
|
+
* comparison between two values to determine if they are equivalent.
|
|
600
|
+
*
|
|
601
|
+
* @static
|
|
602
|
+
* @memberOf _
|
|
603
|
+
* @since 4.0.0
|
|
604
|
+
* @category Lang
|
|
605
|
+
* @param {*} value The value to compare.
|
|
606
|
+
* @param {*} other The other value to compare.
|
|
607
|
+
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
608
|
+
* @example
|
|
609
|
+
*
|
|
610
|
+
* var object = { 'a': 1 };
|
|
611
|
+
* var other = { 'a': 1 };
|
|
612
|
+
*
|
|
613
|
+
* _.eq(object, object);
|
|
614
|
+
* // => true
|
|
615
|
+
*
|
|
616
|
+
* _.eq(object, other);
|
|
617
|
+
* // => false
|
|
618
|
+
*
|
|
619
|
+
* _.eq('a', 'a');
|
|
620
|
+
* // => true
|
|
621
|
+
*
|
|
622
|
+
* _.eq('a', Object('a'));
|
|
623
|
+
* // => false
|
|
624
|
+
*
|
|
625
|
+
* _.eq(NaN, NaN);
|
|
626
|
+
* // => true
|
|
627
|
+
*/
|
|
290
628
|
function eq(value, other) {
|
|
291
|
-
|
|
629
|
+
return value === other || value !== value && other !== other;
|
|
292
630
|
}
|
|
631
|
+
//#endregion
|
|
632
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js
|
|
293
633
|
var nativeMax = Math.max;
|
|
634
|
+
/**
|
|
635
|
+
* A specialized version of `baseRest` which transforms the rest array.
|
|
636
|
+
*
|
|
637
|
+
* @private
|
|
638
|
+
* @param {Function} func The function to apply a rest parameter to.
|
|
639
|
+
* @param {number} [start=func.length-1] The start position of the rest parameter.
|
|
640
|
+
* @param {Function} transform The rest array transform.
|
|
641
|
+
* @returns {Function} Returns the new function.
|
|
642
|
+
*/
|
|
294
643
|
function overRest(func, start, transform) {
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
644
|
+
start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
|
|
645
|
+
return function() {
|
|
646
|
+
var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
|
|
647
|
+
while (++index < length) array[index] = args[start + index];
|
|
648
|
+
index = -1;
|
|
649
|
+
var otherArgs = Array(start + 1);
|
|
650
|
+
while (++index < start) otherArgs[index] = args[index];
|
|
651
|
+
otherArgs[start] = transform(array);
|
|
652
|
+
return apply(func, this, otherArgs);
|
|
653
|
+
};
|
|
654
|
+
}
|
|
655
|
+
//#endregion
|
|
656
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js
|
|
657
|
+
/**
|
|
658
|
+
* The base implementation of `_.rest` which doesn't validate or coerce arguments.
|
|
659
|
+
*
|
|
660
|
+
* @private
|
|
661
|
+
* @param {Function} func The function to apply a rest parameter to.
|
|
662
|
+
* @param {number} [start=func.length-1] The start position of the rest parameter.
|
|
663
|
+
* @returns {Function} Returns the new function.
|
|
664
|
+
*/
|
|
310
665
|
function baseRest(func, start) {
|
|
311
|
-
|
|
666
|
+
return setToString(overRest(func, start, identity), func + "");
|
|
312
667
|
}
|
|
668
|
+
//#endregion
|
|
669
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isLength.js
|
|
670
|
+
/** Used as references for various `Number` constants. */
|
|
313
671
|
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
672
|
+
/**
|
|
673
|
+
* Checks if `value` is a valid array-like length.
|
|
674
|
+
*
|
|
675
|
+
* **Note:** This method is loosely based on
|
|
676
|
+
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
|
|
677
|
+
*
|
|
678
|
+
* @static
|
|
679
|
+
* @memberOf _
|
|
680
|
+
* @since 4.0.0
|
|
681
|
+
* @category Lang
|
|
682
|
+
* @param {*} value The value to check.
|
|
683
|
+
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
|
684
|
+
* @example
|
|
685
|
+
*
|
|
686
|
+
* _.isLength(3);
|
|
687
|
+
* // => true
|
|
688
|
+
*
|
|
689
|
+
* _.isLength(Number.MIN_VALUE);
|
|
690
|
+
* // => false
|
|
691
|
+
*
|
|
692
|
+
* _.isLength(Infinity);
|
|
693
|
+
* // => false
|
|
694
|
+
*
|
|
695
|
+
* _.isLength('3');
|
|
696
|
+
* // => false
|
|
697
|
+
*/
|
|
314
698
|
function isLength(value) {
|
|
315
|
-
|
|
316
|
-
}
|
|
699
|
+
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
700
|
+
}
|
|
701
|
+
//#endregion
|
|
702
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js
|
|
703
|
+
/**
|
|
704
|
+
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
705
|
+
* not a function and has a `value.length` that's an integer greater than or
|
|
706
|
+
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
|
|
707
|
+
*
|
|
708
|
+
* @static
|
|
709
|
+
* @memberOf _
|
|
710
|
+
* @since 4.0.0
|
|
711
|
+
* @category Lang
|
|
712
|
+
* @param {*} value The value to check.
|
|
713
|
+
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
|
714
|
+
* @example
|
|
715
|
+
*
|
|
716
|
+
* _.isArrayLike([1, 2, 3]);
|
|
717
|
+
* // => true
|
|
718
|
+
*
|
|
719
|
+
* _.isArrayLike(document.body.children);
|
|
720
|
+
* // => true
|
|
721
|
+
*
|
|
722
|
+
* _.isArrayLike('abc');
|
|
723
|
+
* // => true
|
|
724
|
+
*
|
|
725
|
+
* _.isArrayLike(_.noop);
|
|
726
|
+
* // => false
|
|
727
|
+
*/
|
|
317
728
|
function isArrayLike(value) {
|
|
318
|
-
|
|
319
|
-
}
|
|
729
|
+
return value != null && isLength(value.length) && !isFunction(value);
|
|
730
|
+
}
|
|
731
|
+
//#endregion
|
|
732
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isIterateeCall.js
|
|
733
|
+
/**
|
|
734
|
+
* Checks if the given arguments are from an iteratee call.
|
|
735
|
+
*
|
|
736
|
+
* @private
|
|
737
|
+
* @param {*} value The potential iteratee value argument.
|
|
738
|
+
* @param {*} index The potential iteratee index or key argument.
|
|
739
|
+
* @param {*} object The potential iteratee object argument.
|
|
740
|
+
* @returns {boolean} Returns `true` if the arguments are from an iteratee call,
|
|
741
|
+
* else `false`.
|
|
742
|
+
*/
|
|
320
743
|
function isIterateeCall(value, index, object) {
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
744
|
+
if (!isObject(object)) return false;
|
|
745
|
+
var type = typeof index;
|
|
746
|
+
if (type == "number" ? isArrayLike(object) && isIndex(index, object.length) : type == "string" && index in object) return eq(object[index], value);
|
|
747
|
+
return false;
|
|
748
|
+
}
|
|
749
|
+
//#endregion
|
|
750
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js
|
|
751
|
+
/** Used for built-in method references. */
|
|
752
|
+
var objectProto$1 = Object.prototype;
|
|
753
|
+
/**
|
|
754
|
+
* Checks if `value` is likely a prototype object.
|
|
755
|
+
*
|
|
756
|
+
* @private
|
|
757
|
+
* @param {*} value The value to check.
|
|
758
|
+
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
|
|
759
|
+
*/
|
|
331
760
|
function isPrototype(value) {
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
}
|
|
761
|
+
var Ctor = value && value.constructor;
|
|
762
|
+
return value === (typeof Ctor == "function" && Ctor.prototype || objectProto$1);
|
|
763
|
+
}
|
|
764
|
+
//#endregion
|
|
765
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js
|
|
766
|
+
/**
|
|
767
|
+
* The base implementation of `_.times` without support for iteratee shorthands
|
|
768
|
+
* or max array length checks.
|
|
769
|
+
*
|
|
770
|
+
* @private
|
|
771
|
+
* @param {number} n The number of times to invoke `iteratee`.
|
|
772
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
773
|
+
* @returns {Array} Returns the array of results.
|
|
774
|
+
*/
|
|
335
775
|
function baseTimes(n, iteratee) {
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
}
|
|
340
|
-
return result;
|
|
776
|
+
var index = -1, result = Array(n);
|
|
777
|
+
while (++index < n) result[index] = iteratee(index);
|
|
778
|
+
return result;
|
|
341
779
|
}
|
|
780
|
+
//#endregion
|
|
781
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js
|
|
782
|
+
/** `Object#toString` result references. */
|
|
342
783
|
var argsTag$2 = "[object Arguments]";
|
|
784
|
+
/**
|
|
785
|
+
* The base implementation of `_.isArguments`.
|
|
786
|
+
*
|
|
787
|
+
* @private
|
|
788
|
+
* @param {*} value The value to check.
|
|
789
|
+
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
790
|
+
*/
|
|
343
791
|
function baseIsArguments(value) {
|
|
344
|
-
|
|
792
|
+
return isObjectLike(value) && baseGetTag(value) == argsTag$2;
|
|
345
793
|
}
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
var
|
|
350
|
-
|
|
794
|
+
//#endregion
|
|
795
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js
|
|
796
|
+
/** Used for built-in method references. */
|
|
797
|
+
var objectProto = Object.prototype;
|
|
798
|
+
/** Used to check objects for own properties. */
|
|
799
|
+
var hasOwnProperty$6 = objectProto.hasOwnProperty;
|
|
800
|
+
/** Built-in value references. */
|
|
801
|
+
var propertyIsEnumerable$1 = objectProto.propertyIsEnumerable;
|
|
802
|
+
/**
|
|
803
|
+
* Checks if `value` is likely an `arguments` object.
|
|
804
|
+
*
|
|
805
|
+
* @static
|
|
806
|
+
* @memberOf _
|
|
807
|
+
* @since 0.1.0
|
|
808
|
+
* @category Lang
|
|
809
|
+
* @param {*} value The value to check.
|
|
810
|
+
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
811
|
+
* else `false`.
|
|
812
|
+
* @example
|
|
813
|
+
*
|
|
814
|
+
* _.isArguments(function() { return arguments; }());
|
|
815
|
+
* // => true
|
|
816
|
+
*
|
|
817
|
+
* _.isArguments([1, 2, 3]);
|
|
818
|
+
* // => false
|
|
819
|
+
*/
|
|
820
|
+
var isArguments = baseIsArguments(function() {
|
|
821
|
+
return arguments;
|
|
351
822
|
}()) ? baseIsArguments : function(value) {
|
|
352
|
-
|
|
823
|
+
return isObjectLike(value) && hasOwnProperty$6.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
353
824
|
};
|
|
825
|
+
//#endregion
|
|
826
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js
|
|
827
|
+
/**
|
|
828
|
+
* This method returns `false`.
|
|
829
|
+
*
|
|
830
|
+
* @static
|
|
831
|
+
* @memberOf _
|
|
832
|
+
* @since 4.13.0
|
|
833
|
+
* @category Util
|
|
834
|
+
* @returns {boolean} Returns `false`.
|
|
835
|
+
* @example
|
|
836
|
+
*
|
|
837
|
+
* _.times(2, _.stubFalse);
|
|
838
|
+
* // => [false, false]
|
|
839
|
+
*/
|
|
354
840
|
function stubFalse() {
|
|
355
|
-
|
|
841
|
+
return false;
|
|
356
842
|
}
|
|
843
|
+
//#endregion
|
|
844
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js
|
|
845
|
+
/** Detect free variable `exports`. */
|
|
357
846
|
var freeExports$1 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
847
|
+
/** Detect free variable `module`. */
|
|
358
848
|
var freeModule$1 = freeExports$1 && typeof module == "object" && module && !module.nodeType && module;
|
|
359
|
-
|
|
360
|
-
var Buffer =
|
|
361
|
-
|
|
362
|
-
|
|
849
|
+
/** Built-in value references. */
|
|
850
|
+
var Buffer = freeModule$1 && freeModule$1.exports === freeExports$1 ? root.Buffer : void 0;
|
|
851
|
+
/**
|
|
852
|
+
* Checks if `value` is a buffer.
|
|
853
|
+
*
|
|
854
|
+
* @static
|
|
855
|
+
* @memberOf _
|
|
856
|
+
* @since 4.3.0
|
|
857
|
+
* @category Lang
|
|
858
|
+
* @param {*} value The value to check.
|
|
859
|
+
* @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
|
|
860
|
+
* @example
|
|
861
|
+
*
|
|
862
|
+
* _.isBuffer(new Buffer(2));
|
|
863
|
+
* // => true
|
|
864
|
+
*
|
|
865
|
+
* _.isBuffer(new Uint8Array(2));
|
|
866
|
+
* // => false
|
|
867
|
+
*/
|
|
868
|
+
var isBuffer = (Buffer ? Buffer.isBuffer : void 0) || stubFalse;
|
|
869
|
+
//#endregion
|
|
870
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js
|
|
871
|
+
/** `Object#toString` result references. */
|
|
363
872
|
var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", errorTag$1 = "[object Error]", funcTag = "[object Function]", mapTag$2 = "[object Map]", numberTag$1 = "[object Number]", objectTag$2 = "[object Object]", regexpTag$1 = "[object RegExp]", setTag$2 = "[object Set]", stringTag$1 = "[object String]", weakMapTag$1 = "[object WeakMap]";
|
|
364
873
|
var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$2 = "[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]";
|
|
874
|
+
/** Used to identify `toStringTag` values of typed arrays. */
|
|
365
875
|
var typedArrayTags = {};
|
|
366
876
|
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
|
|
367
877
|
typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] = typedArrayTags[arrayBufferTag$1] = typedArrayTags[boolTag$1] = typedArrayTags[dataViewTag$2] = typedArrayTags[dateTag$1] = typedArrayTags[errorTag$1] = typedArrayTags[funcTag] = typedArrayTags[mapTag$2] = typedArrayTags[numberTag$1] = typedArrayTags[objectTag$2] = typedArrayTags[regexpTag$1] = typedArrayTags[setTag$2] = typedArrayTags[stringTag$1] = typedArrayTags[weakMapTag$1] = false;
|
|
878
|
+
/**
|
|
879
|
+
* The base implementation of `_.isTypedArray` without Node.js optimizations.
|
|
880
|
+
*
|
|
881
|
+
* @private
|
|
882
|
+
* @param {*} value The value to check.
|
|
883
|
+
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
884
|
+
*/
|
|
368
885
|
function baseIsTypedArray(value) {
|
|
369
|
-
|
|
370
|
-
}
|
|
886
|
+
return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
887
|
+
}
|
|
888
|
+
//#endregion
|
|
889
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js
|
|
890
|
+
/**
|
|
891
|
+
* The base implementation of `_.unary` without support for storing metadata.
|
|
892
|
+
*
|
|
893
|
+
* @private
|
|
894
|
+
* @param {Function} func The function to cap arguments for.
|
|
895
|
+
* @returns {Function} Returns the new capped function.
|
|
896
|
+
*/
|
|
371
897
|
function baseUnary(func) {
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
898
|
+
return function(value) {
|
|
899
|
+
return func(value);
|
|
900
|
+
};
|
|
375
901
|
}
|
|
902
|
+
//#endregion
|
|
903
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js
|
|
904
|
+
/** Detect free variable `exports`. */
|
|
376
905
|
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
906
|
+
/** Detect free variable `module`. */
|
|
377
907
|
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
|
|
378
|
-
|
|
379
|
-
var freeProcess =
|
|
908
|
+
/** Detect free variable `process` from Node.js. */
|
|
909
|
+
var freeProcess = freeModule && freeModule.exports === freeExports && freeGlobal.process;
|
|
910
|
+
/** Used to access faster Node.js helpers. */
|
|
380
911
|
var nodeUtil = function() {
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
387
|
-
} catch (e) {
|
|
388
|
-
}
|
|
912
|
+
try {
|
|
913
|
+
var types = freeModule && freeModule.require && freeModule.require("util").types;
|
|
914
|
+
if (types) return types;
|
|
915
|
+
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
916
|
+
} catch (e) {}
|
|
389
917
|
}();
|
|
918
|
+
//#endregion
|
|
919
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js
|
|
390
920
|
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
921
|
+
/**
|
|
922
|
+
* Checks if `value` is classified as a typed array.
|
|
923
|
+
*
|
|
924
|
+
* @static
|
|
925
|
+
* @memberOf _
|
|
926
|
+
* @since 3.0.0
|
|
927
|
+
* @category Lang
|
|
928
|
+
* @param {*} value The value to check.
|
|
929
|
+
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
930
|
+
* @example
|
|
931
|
+
*
|
|
932
|
+
* _.isTypedArray(new Uint8Array);
|
|
933
|
+
* // => true
|
|
934
|
+
*
|
|
935
|
+
* _.isTypedArray([]);
|
|
936
|
+
* // => false
|
|
937
|
+
*/
|
|
391
938
|
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
392
|
-
|
|
393
|
-
|
|
939
|
+
//#endregion
|
|
940
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js
|
|
941
|
+
/** Used to check objects for own properties. */
|
|
942
|
+
var hasOwnProperty$5 = Object.prototype.hasOwnProperty;
|
|
943
|
+
/**
|
|
944
|
+
* Creates an array of the enumerable property names of the array-like `value`.
|
|
945
|
+
*
|
|
946
|
+
* @private
|
|
947
|
+
* @param {*} value The value to query.
|
|
948
|
+
* @param {boolean} inherited Specify returning inherited property names.
|
|
949
|
+
* @returns {Array} Returns the array of property names.
|
|
950
|
+
*/
|
|
394
951
|
function arrayLikeKeys(value, inherited) {
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
}
|
|
952
|
+
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;
|
|
953
|
+
for (var key in value) if ((inherited || hasOwnProperty$5.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) result.push(key);
|
|
954
|
+
return result;
|
|
955
|
+
}
|
|
956
|
+
//#endregion
|
|
957
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js
|
|
958
|
+
/**
|
|
959
|
+
* Creates a unary function that invokes `func` with its argument transformed.
|
|
960
|
+
*
|
|
961
|
+
* @private
|
|
962
|
+
* @param {Function} func The function to wrap.
|
|
963
|
+
* @param {Function} transform The argument transform.
|
|
964
|
+
* @returns {Function} Returns the new function.
|
|
965
|
+
*/
|
|
407
966
|
function overArg(func, transform) {
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
967
|
+
return function(arg) {
|
|
968
|
+
return func(transform(arg));
|
|
969
|
+
};
|
|
411
970
|
}
|
|
971
|
+
//#endregion
|
|
972
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js
|
|
412
973
|
var nativeKeys = overArg(Object.keys, Object);
|
|
413
|
-
|
|
414
|
-
|
|
974
|
+
//#endregion
|
|
975
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js
|
|
976
|
+
/** Used to check objects for own properties. */
|
|
977
|
+
var hasOwnProperty$4 = Object.prototype.hasOwnProperty;
|
|
978
|
+
/**
|
|
979
|
+
* The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
|
|
980
|
+
*
|
|
981
|
+
* @private
|
|
982
|
+
* @param {Object} object The object to query.
|
|
983
|
+
* @returns {Array} Returns the array of property names.
|
|
984
|
+
*/
|
|
415
985
|
function baseKeys(object) {
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
986
|
+
if (!isPrototype(object)) return nativeKeys(object);
|
|
987
|
+
var result = [];
|
|
988
|
+
for (var key in Object(object)) if (hasOwnProperty$4.call(object, key) && key != "constructor") result.push(key);
|
|
989
|
+
return result;
|
|
990
|
+
}
|
|
991
|
+
//#endregion
|
|
992
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keys.js
|
|
993
|
+
/**
|
|
994
|
+
* Creates an array of the own enumerable property names of `object`.
|
|
995
|
+
*
|
|
996
|
+
* **Note:** Non-object values are coerced to objects. See the
|
|
997
|
+
* [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
998
|
+
* for more details.
|
|
999
|
+
*
|
|
1000
|
+
* @static
|
|
1001
|
+
* @since 0.1.0
|
|
1002
|
+
* @memberOf _
|
|
1003
|
+
* @category Object
|
|
1004
|
+
* @param {Object} object The object to query.
|
|
1005
|
+
* @returns {Array} Returns the array of property names.
|
|
1006
|
+
* @example
|
|
1007
|
+
*
|
|
1008
|
+
* function Foo() {
|
|
1009
|
+
* this.a = 1;
|
|
1010
|
+
* this.b = 2;
|
|
1011
|
+
* }
|
|
1012
|
+
*
|
|
1013
|
+
* Foo.prototype.c = 3;
|
|
1014
|
+
*
|
|
1015
|
+
* _.keys(new Foo);
|
|
1016
|
+
* // => ['a', 'b'] (iteration order is not guaranteed)
|
|
1017
|
+
*
|
|
1018
|
+
* _.keys('hi');
|
|
1019
|
+
* // => ['0', '1']
|
|
1020
|
+
*/
|
|
427
1021
|
function keys(object) {
|
|
428
|
-
|
|
1022
|
+
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
429
1023
|
}
|
|
1024
|
+
//#endregion
|
|
1025
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js
|
|
1026
|
+
/** Used to match property names within property paths. */
|
|
430
1027
|
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
|
|
1028
|
+
/**
|
|
1029
|
+
* Checks if `value` is a property name and not a property path.
|
|
1030
|
+
*
|
|
1031
|
+
* @private
|
|
1032
|
+
* @param {*} value The value to check.
|
|
1033
|
+
* @param {Object} [object] The object to query keys on.
|
|
1034
|
+
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
|
|
1035
|
+
*/
|
|
431
1036
|
function isKey(value, object) {
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
if (type2 == "number" || type2 == "symbol" || type2 == "boolean" || value == null || isSymbol(value)) {
|
|
437
|
-
return true;
|
|
438
|
-
}
|
|
439
|
-
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
|
|
1037
|
+
if (isArray(value)) return false;
|
|
1038
|
+
var type = typeof value;
|
|
1039
|
+
if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol(value)) return true;
|
|
1040
|
+
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
|
|
440
1041
|
}
|
|
1042
|
+
//#endregion
|
|
1043
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js
|
|
441
1044
|
var nativeCreate = getNative(Object, "create");
|
|
1045
|
+
//#endregion
|
|
1046
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js
|
|
1047
|
+
/**
|
|
1048
|
+
* Removes all key-value entries from the hash.
|
|
1049
|
+
*
|
|
1050
|
+
* @private
|
|
1051
|
+
* @name clear
|
|
1052
|
+
* @memberOf Hash
|
|
1053
|
+
*/
|
|
442
1054
|
function hashClear() {
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
}
|
|
1055
|
+
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
1056
|
+
this.size = 0;
|
|
1057
|
+
}
|
|
1058
|
+
//#endregion
|
|
1059
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js
|
|
1060
|
+
/**
|
|
1061
|
+
* Removes `key` and its value from the hash.
|
|
1062
|
+
*
|
|
1063
|
+
* @private
|
|
1064
|
+
* @name delete
|
|
1065
|
+
* @memberOf Hash
|
|
1066
|
+
* @param {Object} hash The hash to modify.
|
|
1067
|
+
* @param {string} key The key of the value to remove.
|
|
1068
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1069
|
+
*/
|
|
446
1070
|
function hashDelete(key) {
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
1071
|
+
var result = this.has(key) && delete this.__data__[key];
|
|
1072
|
+
this.size -= result ? 1 : 0;
|
|
1073
|
+
return result;
|
|
450
1074
|
}
|
|
1075
|
+
//#endregion
|
|
1076
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js
|
|
1077
|
+
/** Used to stand-in for `undefined` hash values. */
|
|
451
1078
|
var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
|
|
452
|
-
|
|
453
|
-
var hasOwnProperty$3 =
|
|
1079
|
+
/** Used to check objects for own properties. */
|
|
1080
|
+
var hasOwnProperty$3 = Object.prototype.hasOwnProperty;
|
|
1081
|
+
/**
|
|
1082
|
+
* Gets the hash value for `key`.
|
|
1083
|
+
*
|
|
1084
|
+
* @private
|
|
1085
|
+
* @name get
|
|
1086
|
+
* @memberOf Hash
|
|
1087
|
+
* @param {string} key The key of the value to get.
|
|
1088
|
+
* @returns {*} Returns the entry value.
|
|
1089
|
+
*/
|
|
454
1090
|
function hashGet(key) {
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
|
|
1091
|
+
var data = this.__data__;
|
|
1092
|
+
if (nativeCreate) {
|
|
1093
|
+
var result = data[key];
|
|
1094
|
+
return result === HASH_UNDEFINED$2 ? void 0 : result;
|
|
1095
|
+
}
|
|
1096
|
+
return hasOwnProperty$3.call(data, key) ? data[key] : void 0;
|
|
1097
|
+
}
|
|
1098
|
+
//#endregion
|
|
1099
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js
|
|
1100
|
+
/** Used to check objects for own properties. */
|
|
1101
|
+
var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
|
|
1102
|
+
/**
|
|
1103
|
+
* Checks if a hash value for `key` exists.
|
|
1104
|
+
*
|
|
1105
|
+
* @private
|
|
1106
|
+
* @name has
|
|
1107
|
+
* @memberOf Hash
|
|
1108
|
+
* @param {string} key The key of the entry to check.
|
|
1109
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1110
|
+
*/
|
|
464
1111
|
function hashHas(key) {
|
|
465
|
-
|
|
466
|
-
|
|
1112
|
+
var data = this.__data__;
|
|
1113
|
+
return nativeCreate ? data[key] !== void 0 : hasOwnProperty$2.call(data, key);
|
|
467
1114
|
}
|
|
1115
|
+
//#endregion
|
|
1116
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js
|
|
1117
|
+
/** Used to stand-in for `undefined` hash values. */
|
|
468
1118
|
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
1119
|
+
/**
|
|
1120
|
+
* Sets the hash `key` to `value`.
|
|
1121
|
+
*
|
|
1122
|
+
* @private
|
|
1123
|
+
* @name set
|
|
1124
|
+
* @memberOf Hash
|
|
1125
|
+
* @param {string} key The key of the value to set.
|
|
1126
|
+
* @param {*} value The value to set.
|
|
1127
|
+
* @returns {Object} Returns the hash instance.
|
|
1128
|
+
*/
|
|
469
1129
|
function hashSet(key, value) {
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
}
|
|
1130
|
+
var data = this.__data__;
|
|
1131
|
+
this.size += this.has(key) ? 0 : 1;
|
|
1132
|
+
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED$1 : value;
|
|
1133
|
+
return this;
|
|
1134
|
+
}
|
|
1135
|
+
//#endregion
|
|
1136
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js
|
|
1137
|
+
/**
|
|
1138
|
+
* Creates a hash object.
|
|
1139
|
+
*
|
|
1140
|
+
* @private
|
|
1141
|
+
* @constructor
|
|
1142
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
1143
|
+
*/
|
|
475
1144
|
function Hash(entries) {
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
1145
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
1146
|
+
this.clear();
|
|
1147
|
+
while (++index < length) {
|
|
1148
|
+
var entry = entries[index];
|
|
1149
|
+
this.set(entry[0], entry[1]);
|
|
1150
|
+
}
|
|
482
1151
|
}
|
|
483
1152
|
Hash.prototype.clear = hashClear;
|
|
484
1153
|
Hash.prototype["delete"] = hashDelete;
|
|
485
1154
|
Hash.prototype.get = hashGet;
|
|
486
1155
|
Hash.prototype.has = hashHas;
|
|
487
1156
|
Hash.prototype.set = hashSet;
|
|
1157
|
+
//#endregion
|
|
1158
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js
|
|
1159
|
+
/**
|
|
1160
|
+
* Removes all key-value entries from the list cache.
|
|
1161
|
+
*
|
|
1162
|
+
* @private
|
|
1163
|
+
* @name clear
|
|
1164
|
+
* @memberOf ListCache
|
|
1165
|
+
*/
|
|
488
1166
|
function listCacheClear() {
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
}
|
|
1167
|
+
this.__data__ = [];
|
|
1168
|
+
this.size = 0;
|
|
1169
|
+
}
|
|
1170
|
+
//#endregion
|
|
1171
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js
|
|
1172
|
+
/**
|
|
1173
|
+
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
1174
|
+
*
|
|
1175
|
+
* @private
|
|
1176
|
+
* @param {Array} array The array to inspect.
|
|
1177
|
+
* @param {*} key The key to search for.
|
|
1178
|
+
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
1179
|
+
*/
|
|
492
1180
|
function assocIndexOf(array, key) {
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
1181
|
+
var length = array.length;
|
|
1182
|
+
while (length--) if (eq(array[length][0], key)) return length;
|
|
1183
|
+
return -1;
|
|
1184
|
+
}
|
|
1185
|
+
//#endregion
|
|
1186
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js
|
|
1187
|
+
/** Built-in value references. */
|
|
1188
|
+
var splice = Array.prototype.splice;
|
|
1189
|
+
/**
|
|
1190
|
+
* Removes `key` and its value from the list cache.
|
|
1191
|
+
*
|
|
1192
|
+
* @private
|
|
1193
|
+
* @name delete
|
|
1194
|
+
* @memberOf ListCache
|
|
1195
|
+
* @param {string} key The key of the value to remove.
|
|
1196
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1197
|
+
*/
|
|
503
1198
|
function listCacheDelete(key) {
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
1199
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
1200
|
+
if (index < 0) return false;
|
|
1201
|
+
if (index == data.length - 1) data.pop();
|
|
1202
|
+
else splice.call(data, index, 1);
|
|
1203
|
+
--this.size;
|
|
1204
|
+
return true;
|
|
1205
|
+
}
|
|
1206
|
+
//#endregion
|
|
1207
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js
|
|
1208
|
+
/**
|
|
1209
|
+
* Gets the list cache value for `key`.
|
|
1210
|
+
*
|
|
1211
|
+
* @private
|
|
1212
|
+
* @name get
|
|
1213
|
+
* @memberOf ListCache
|
|
1214
|
+
* @param {string} key The key of the value to get.
|
|
1215
|
+
* @returns {*} Returns the entry value.
|
|
1216
|
+
*/
|
|
517
1217
|
function listCacheGet(key) {
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
}
|
|
1218
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
1219
|
+
return index < 0 ? void 0 : data[index][1];
|
|
1220
|
+
}
|
|
1221
|
+
//#endregion
|
|
1222
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js
|
|
1223
|
+
/**
|
|
1224
|
+
* Checks if a list cache value for `key` exists.
|
|
1225
|
+
*
|
|
1226
|
+
* @private
|
|
1227
|
+
* @name has
|
|
1228
|
+
* @memberOf ListCache
|
|
1229
|
+
* @param {string} key The key of the entry to check.
|
|
1230
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1231
|
+
*/
|
|
521
1232
|
function listCacheHas(key) {
|
|
522
|
-
|
|
523
|
-
}
|
|
1233
|
+
return assocIndexOf(this.__data__, key) > -1;
|
|
1234
|
+
}
|
|
1235
|
+
//#endregion
|
|
1236
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js
|
|
1237
|
+
/**
|
|
1238
|
+
* Sets the list cache `key` to `value`.
|
|
1239
|
+
*
|
|
1240
|
+
* @private
|
|
1241
|
+
* @name set
|
|
1242
|
+
* @memberOf ListCache
|
|
1243
|
+
* @param {string} key The key of the value to set.
|
|
1244
|
+
* @param {*} value The value to set.
|
|
1245
|
+
* @returns {Object} Returns the list cache instance.
|
|
1246
|
+
*/
|
|
524
1247
|
function listCacheSet(key, value) {
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
1248
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
1249
|
+
if (index < 0) {
|
|
1250
|
+
++this.size;
|
|
1251
|
+
data.push([key, value]);
|
|
1252
|
+
} else data[index][1] = value;
|
|
1253
|
+
return this;
|
|
1254
|
+
}
|
|
1255
|
+
//#endregion
|
|
1256
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js
|
|
1257
|
+
/**
|
|
1258
|
+
* Creates an list cache object.
|
|
1259
|
+
*
|
|
1260
|
+
* @private
|
|
1261
|
+
* @constructor
|
|
1262
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
1263
|
+
*/
|
|
534
1264
|
function ListCache(entries) {
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
1265
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
1266
|
+
this.clear();
|
|
1267
|
+
while (++index < length) {
|
|
1268
|
+
var entry = entries[index];
|
|
1269
|
+
this.set(entry[0], entry[1]);
|
|
1270
|
+
}
|
|
541
1271
|
}
|
|
542
1272
|
ListCache.prototype.clear = listCacheClear;
|
|
543
1273
|
ListCache.prototype["delete"] = listCacheDelete;
|
|
544
1274
|
ListCache.prototype.get = listCacheGet;
|
|
545
1275
|
ListCache.prototype.has = listCacheHas;
|
|
546
1276
|
ListCache.prototype.set = listCacheSet;
|
|
1277
|
+
//#endregion
|
|
1278
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Map.js
|
|
547
1279
|
var Map = getNative(root, "Map");
|
|
1280
|
+
//#endregion
|
|
1281
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js
|
|
1282
|
+
/**
|
|
1283
|
+
* Removes all key-value entries from the map.
|
|
1284
|
+
*
|
|
1285
|
+
* @private
|
|
1286
|
+
* @name clear
|
|
1287
|
+
* @memberOf MapCache
|
|
1288
|
+
*/
|
|
548
1289
|
function mapCacheClear() {
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
}
|
|
1290
|
+
this.size = 0;
|
|
1291
|
+
this.__data__ = {
|
|
1292
|
+
"hash": new Hash(),
|
|
1293
|
+
"map": new (Map || ListCache)(),
|
|
1294
|
+
"string": new Hash()
|
|
1295
|
+
};
|
|
1296
|
+
}
|
|
1297
|
+
//#endregion
|
|
1298
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js
|
|
1299
|
+
/**
|
|
1300
|
+
* Checks if `value` is suitable for use as unique object key.
|
|
1301
|
+
*
|
|
1302
|
+
* @private
|
|
1303
|
+
* @param {*} value The value to check.
|
|
1304
|
+
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
|
1305
|
+
*/
|
|
556
1306
|
function isKeyable(value) {
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
}
|
|
1307
|
+
var type = typeof value;
|
|
1308
|
+
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
1309
|
+
}
|
|
1310
|
+
//#endregion
|
|
1311
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js
|
|
1312
|
+
/**
|
|
1313
|
+
* Gets the data for `map`.
|
|
1314
|
+
*
|
|
1315
|
+
* @private
|
|
1316
|
+
* @param {Object} map The map to query.
|
|
1317
|
+
* @param {string} key The reference key.
|
|
1318
|
+
* @returns {*} Returns the map data.
|
|
1319
|
+
*/
|
|
560
1320
|
function getMapData(map, key) {
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
}
|
|
1321
|
+
var data = map.__data__;
|
|
1322
|
+
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
1323
|
+
}
|
|
1324
|
+
//#endregion
|
|
1325
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js
|
|
1326
|
+
/**
|
|
1327
|
+
* Removes `key` and its value from the map.
|
|
1328
|
+
*
|
|
1329
|
+
* @private
|
|
1330
|
+
* @name delete
|
|
1331
|
+
* @memberOf MapCache
|
|
1332
|
+
* @param {string} key The key of the value to remove.
|
|
1333
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1334
|
+
*/
|
|
564
1335
|
function mapCacheDelete(key) {
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
}
|
|
1336
|
+
var result = getMapData(this, key)["delete"](key);
|
|
1337
|
+
this.size -= result ? 1 : 0;
|
|
1338
|
+
return result;
|
|
1339
|
+
}
|
|
1340
|
+
//#endregion
|
|
1341
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js
|
|
1342
|
+
/**
|
|
1343
|
+
* Gets the map value for `key`.
|
|
1344
|
+
*
|
|
1345
|
+
* @private
|
|
1346
|
+
* @name get
|
|
1347
|
+
* @memberOf MapCache
|
|
1348
|
+
* @param {string} key The key of the value to get.
|
|
1349
|
+
* @returns {*} Returns the entry value.
|
|
1350
|
+
*/
|
|
569
1351
|
function mapCacheGet(key) {
|
|
570
|
-
|
|
571
|
-
}
|
|
1352
|
+
return getMapData(this, key).get(key);
|
|
1353
|
+
}
|
|
1354
|
+
//#endregion
|
|
1355
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js
|
|
1356
|
+
/**
|
|
1357
|
+
* Checks if a map value for `key` exists.
|
|
1358
|
+
*
|
|
1359
|
+
* @private
|
|
1360
|
+
* @name has
|
|
1361
|
+
* @memberOf MapCache
|
|
1362
|
+
* @param {string} key The key of the entry to check.
|
|
1363
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1364
|
+
*/
|
|
572
1365
|
function mapCacheHas(key) {
|
|
573
|
-
|
|
574
|
-
}
|
|
1366
|
+
return getMapData(this, key).has(key);
|
|
1367
|
+
}
|
|
1368
|
+
//#endregion
|
|
1369
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js
|
|
1370
|
+
/**
|
|
1371
|
+
* Sets the map `key` to `value`.
|
|
1372
|
+
*
|
|
1373
|
+
* @private
|
|
1374
|
+
* @name set
|
|
1375
|
+
* @memberOf MapCache
|
|
1376
|
+
* @param {string} key The key of the value to set.
|
|
1377
|
+
* @param {*} value The value to set.
|
|
1378
|
+
* @returns {Object} Returns the map cache instance.
|
|
1379
|
+
*/
|
|
575
1380
|
function mapCacheSet(key, value) {
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
}
|
|
1381
|
+
var data = getMapData(this, key), size = data.size;
|
|
1382
|
+
data.set(key, value);
|
|
1383
|
+
this.size += data.size == size ? 0 : 1;
|
|
1384
|
+
return this;
|
|
1385
|
+
}
|
|
1386
|
+
//#endregion
|
|
1387
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js
|
|
1388
|
+
/**
|
|
1389
|
+
* Creates a map cache object to store key-value pairs.
|
|
1390
|
+
*
|
|
1391
|
+
* @private
|
|
1392
|
+
* @constructor
|
|
1393
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
1394
|
+
*/
|
|
581
1395
|
function MapCache(entries) {
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
1396
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
1397
|
+
this.clear();
|
|
1398
|
+
while (++index < length) {
|
|
1399
|
+
var entry = entries[index];
|
|
1400
|
+
this.set(entry[0], entry[1]);
|
|
1401
|
+
}
|
|
588
1402
|
}
|
|
589
1403
|
MapCache.prototype.clear = mapCacheClear;
|
|
590
1404
|
MapCache.prototype["delete"] = mapCacheDelete;
|
|
591
1405
|
MapCache.prototype.get = mapCacheGet;
|
|
592
1406
|
MapCache.prototype.has = mapCacheHas;
|
|
593
1407
|
MapCache.prototype.set = mapCacheSet;
|
|
1408
|
+
//#endregion
|
|
1409
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/memoize.js
|
|
1410
|
+
/** Error message constants. */
|
|
594
1411
|
var FUNC_ERROR_TEXT = "Expected a function";
|
|
1412
|
+
/**
|
|
1413
|
+
* Creates a function that memoizes the result of `func`. If `resolver` is
|
|
1414
|
+
* provided, it determines the cache key for storing the result based on the
|
|
1415
|
+
* arguments provided to the memoized function. By default, the first argument
|
|
1416
|
+
* provided to the memoized function is used as the map cache key. The `func`
|
|
1417
|
+
* is invoked with the `this` binding of the memoized function.
|
|
1418
|
+
*
|
|
1419
|
+
* **Note:** The cache is exposed as the `cache` property on the memoized
|
|
1420
|
+
* function. Its creation may be customized by replacing the `_.memoize.Cache`
|
|
1421
|
+
* constructor with one whose instances implement the
|
|
1422
|
+
* [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
|
|
1423
|
+
* method interface of `clear`, `delete`, `get`, `has`, and `set`.
|
|
1424
|
+
*
|
|
1425
|
+
* @static
|
|
1426
|
+
* @memberOf _
|
|
1427
|
+
* @since 0.1.0
|
|
1428
|
+
* @category Function
|
|
1429
|
+
* @param {Function} func The function to have its output memoized.
|
|
1430
|
+
* @param {Function} [resolver] The function to resolve the cache key.
|
|
1431
|
+
* @returns {Function} Returns the new memoized function.
|
|
1432
|
+
* @example
|
|
1433
|
+
*
|
|
1434
|
+
* var object = { 'a': 1, 'b': 2 };
|
|
1435
|
+
* var other = { 'c': 3, 'd': 4 };
|
|
1436
|
+
*
|
|
1437
|
+
* var values = _.memoize(_.values);
|
|
1438
|
+
* values(object);
|
|
1439
|
+
* // => [1, 2]
|
|
1440
|
+
*
|
|
1441
|
+
* values(other);
|
|
1442
|
+
* // => [3, 4]
|
|
1443
|
+
*
|
|
1444
|
+
* object.a = 2;
|
|
1445
|
+
* values(object);
|
|
1446
|
+
* // => [1, 2]
|
|
1447
|
+
*
|
|
1448
|
+
* // Modify the result cache.
|
|
1449
|
+
* values.cache.set(object, ['a', 'b']);
|
|
1450
|
+
* values(object);
|
|
1451
|
+
* // => ['a', 'b']
|
|
1452
|
+
*
|
|
1453
|
+
* // Replace `_.memoize.Cache`.
|
|
1454
|
+
* _.memoize.Cache = WeakMap;
|
|
1455
|
+
*/
|
|
595
1456
|
function memoize(func, resolver) {
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
return result;
|
|
607
|
-
};
|
|
608
|
-
memoized.cache = new (memoize.Cache || MapCache)();
|
|
609
|
-
return memoized;
|
|
1457
|
+
if (typeof func != "function" || resolver != null && typeof resolver != "function") throw new TypeError(FUNC_ERROR_TEXT);
|
|
1458
|
+
var memoized = function() {
|
|
1459
|
+
var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
|
|
1460
|
+
if (cache.has(key)) return cache.get(key);
|
|
1461
|
+
var result = func.apply(this, args);
|
|
1462
|
+
memoized.cache = cache.set(key, result) || cache;
|
|
1463
|
+
return result;
|
|
1464
|
+
};
|
|
1465
|
+
memoized.cache = new (memoize.Cache || MapCache)();
|
|
1466
|
+
return memoized;
|
|
610
1467
|
}
|
|
611
1468
|
memoize.Cache = MapCache;
|
|
1469
|
+
//#endregion
|
|
1470
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js
|
|
1471
|
+
/** Used as the maximum memoize cache size. */
|
|
612
1472
|
var MAX_MEMOIZE_SIZE = 500;
|
|
1473
|
+
/**
|
|
1474
|
+
* A specialized version of `_.memoize` which clears the memoized function's
|
|
1475
|
+
* cache when it exceeds `MAX_MEMOIZE_SIZE`.
|
|
1476
|
+
*
|
|
1477
|
+
* @private
|
|
1478
|
+
* @param {Function} func The function to have its output memoized.
|
|
1479
|
+
* @returns {Function} Returns the new memoized function.
|
|
1480
|
+
*/
|
|
613
1481
|
function memoizeCapped(func) {
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
1482
|
+
var result = memoize(func, function(key) {
|
|
1483
|
+
if (cache.size === MAX_MEMOIZE_SIZE) cache.clear();
|
|
1484
|
+
return key;
|
|
1485
|
+
});
|
|
1486
|
+
var cache = result.cache;
|
|
1487
|
+
return result;
|
|
1488
|
+
}
|
|
1489
|
+
//#endregion
|
|
1490
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js
|
|
1491
|
+
/** Used to match property names within property paths. */
|
|
623
1492
|
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
1493
|
+
/** Used to match backslashes in property paths. */
|
|
624
1494
|
var reEscapeChar = /\\(\\)?/g;
|
|
1495
|
+
/**
|
|
1496
|
+
* Converts `string` to a property path array.
|
|
1497
|
+
*
|
|
1498
|
+
* @private
|
|
1499
|
+
* @param {string} string The string to convert.
|
|
1500
|
+
* @returns {Array} Returns the property path array.
|
|
1501
|
+
*/
|
|
625
1502
|
var stringToPath = memoizeCapped(function(string) {
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
});
|
|
633
|
-
return result;
|
|
1503
|
+
var result = [];
|
|
1504
|
+
if (string.charCodeAt(0) === 46) result.push("");
|
|
1505
|
+
string.replace(rePropName, function(match, number, quote, subString) {
|
|
1506
|
+
result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match);
|
|
1507
|
+
});
|
|
1508
|
+
return result;
|
|
634
1509
|
});
|
|
1510
|
+
//#endregion
|
|
1511
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toString.js
|
|
1512
|
+
/**
|
|
1513
|
+
* Converts `value` to a string. An empty string is returned for `null`
|
|
1514
|
+
* and `undefined` values. The sign of `-0` is preserved.
|
|
1515
|
+
*
|
|
1516
|
+
* @static
|
|
1517
|
+
* @memberOf _
|
|
1518
|
+
* @since 4.0.0
|
|
1519
|
+
* @category Lang
|
|
1520
|
+
* @param {*} value The value to convert.
|
|
1521
|
+
* @returns {string} Returns the converted string.
|
|
1522
|
+
* @example
|
|
1523
|
+
*
|
|
1524
|
+
* _.toString(null);
|
|
1525
|
+
* // => ''
|
|
1526
|
+
*
|
|
1527
|
+
* _.toString(-0);
|
|
1528
|
+
* // => '-0'
|
|
1529
|
+
*
|
|
1530
|
+
* _.toString([1, 2, 3]);
|
|
1531
|
+
* // => '1,2,3'
|
|
1532
|
+
*/
|
|
635
1533
|
function toString(value) {
|
|
636
|
-
|
|
637
|
-
}
|
|
1534
|
+
return value == null ? "" : baseToString(value);
|
|
1535
|
+
}
|
|
1536
|
+
//#endregion
|
|
1537
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js
|
|
1538
|
+
/**
|
|
1539
|
+
* Casts `value` to a path array if it's not one.
|
|
1540
|
+
*
|
|
1541
|
+
* @private
|
|
1542
|
+
* @param {*} value The value to inspect.
|
|
1543
|
+
* @param {Object} [object] The object to query keys on.
|
|
1544
|
+
* @returns {Array} Returns the cast property path array.
|
|
1545
|
+
*/
|
|
638
1546
|
function castPath(value, object) {
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
1547
|
+
if (isArray(value)) return value;
|
|
1548
|
+
return isKey(value, object) ? [value] : stringToPath(toString(value));
|
|
1549
|
+
}
|
|
1550
|
+
//#endregion
|
|
1551
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js
|
|
1552
|
+
/** Used as references for various `Number` constants. */
|
|
1553
|
+
var INFINITY = Infinity;
|
|
1554
|
+
/**
|
|
1555
|
+
* Converts `value` to a string key if it's not a string or symbol.
|
|
1556
|
+
*
|
|
1557
|
+
* @private
|
|
1558
|
+
* @param {*} value The value to inspect.
|
|
1559
|
+
* @returns {string|symbol} Returns the key.
|
|
1560
|
+
*/
|
|
644
1561
|
function toKey(value) {
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
1562
|
+
if (typeof value == "string" || isSymbol(value)) return value;
|
|
1563
|
+
var result = value + "";
|
|
1564
|
+
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
|
|
1565
|
+
}
|
|
1566
|
+
//#endregion
|
|
1567
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js
|
|
1568
|
+
/**
|
|
1569
|
+
* The base implementation of `_.get` without support for default values.
|
|
1570
|
+
*
|
|
1571
|
+
* @private
|
|
1572
|
+
* @param {Object} object The object to query.
|
|
1573
|
+
* @param {Array|string} path The path of the property to get.
|
|
1574
|
+
* @returns {*} Returns the resolved value.
|
|
1575
|
+
*/
|
|
651
1576
|
function baseGet(object, path) {
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
1577
|
+
path = castPath(path, object);
|
|
1578
|
+
var index = 0, length = path.length;
|
|
1579
|
+
while (object != null && index < length) object = object[toKey(path[index++])];
|
|
1580
|
+
return index && index == length ? object : void 0;
|
|
1581
|
+
}
|
|
1582
|
+
//#endregion
|
|
1583
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/get.js
|
|
1584
|
+
/**
|
|
1585
|
+
* Gets the value at `path` of `object`. If the resolved value is
|
|
1586
|
+
* `undefined`, the `defaultValue` is returned in its place.
|
|
1587
|
+
*
|
|
1588
|
+
* @static
|
|
1589
|
+
* @memberOf _
|
|
1590
|
+
* @since 3.7.0
|
|
1591
|
+
* @category Object
|
|
1592
|
+
* @param {Object} object The object to query.
|
|
1593
|
+
* @param {Array|string} path The path of the property to get.
|
|
1594
|
+
* @param {*} [defaultValue] The value returned for `undefined` resolved values.
|
|
1595
|
+
* @returns {*} Returns the resolved value.
|
|
1596
|
+
* @example
|
|
1597
|
+
*
|
|
1598
|
+
* var object = { 'a': [{ 'b': { 'c': 3 } }] };
|
|
1599
|
+
*
|
|
1600
|
+
* _.get(object, 'a[0].b.c');
|
|
1601
|
+
* // => 3
|
|
1602
|
+
*
|
|
1603
|
+
* _.get(object, ['a', '0', 'b', 'c']);
|
|
1604
|
+
* // => 3
|
|
1605
|
+
*
|
|
1606
|
+
* _.get(object, 'a.b.c', 'default');
|
|
1607
|
+
* // => 'default'
|
|
1608
|
+
*/
|
|
659
1609
|
function get(object, path, defaultValue) {
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
}
|
|
1610
|
+
var result = object == null ? void 0 : baseGet(object, path);
|
|
1611
|
+
return result === void 0 ? defaultValue : result;
|
|
1612
|
+
}
|
|
1613
|
+
//#endregion
|
|
1614
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js
|
|
1615
|
+
/**
|
|
1616
|
+
* Appends the elements of `values` to `array`.
|
|
1617
|
+
*
|
|
1618
|
+
* @private
|
|
1619
|
+
* @param {Array} array The array to modify.
|
|
1620
|
+
* @param {Array} values The values to append.
|
|
1621
|
+
* @returns {Array} Returns `array`.
|
|
1622
|
+
*/
|
|
663
1623
|
function arrayPush(array, values) {
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
1624
|
+
var index = -1, length = values.length, offset = array.length;
|
|
1625
|
+
while (++index < length) array[offset + index] = values[index];
|
|
1626
|
+
return array;
|
|
1627
|
+
}
|
|
1628
|
+
//#endregion
|
|
1629
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isFlattenable.js
|
|
1630
|
+
/** Built-in value references. */
|
|
1631
|
+
var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : void 0;
|
|
1632
|
+
/**
|
|
1633
|
+
* Checks if `value` is a flattenable `arguments` object or array.
|
|
1634
|
+
*
|
|
1635
|
+
* @private
|
|
1636
|
+
* @param {*} value The value to check.
|
|
1637
|
+
* @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
|
|
1638
|
+
*/
|
|
671
1639
|
function isFlattenable(value) {
|
|
672
|
-
|
|
673
|
-
}
|
|
1640
|
+
return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
|
|
1641
|
+
}
|
|
1642
|
+
//#endregion
|
|
1643
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseFlatten.js
|
|
1644
|
+
/**
|
|
1645
|
+
* The base implementation of `_.flatten` with support for restricting flattening.
|
|
1646
|
+
*
|
|
1647
|
+
* @private
|
|
1648
|
+
* @param {Array} array The array to flatten.
|
|
1649
|
+
* @param {number} depth The maximum recursion depth.
|
|
1650
|
+
* @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
|
|
1651
|
+
* @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
|
|
1652
|
+
* @param {Array} [result=[]] The initial result value.
|
|
1653
|
+
* @returns {Array} Returns the new flattened array.
|
|
1654
|
+
*/
|
|
674
1655
|
function baseFlatten(array, depth, predicate, isStrict, result) {
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
1656
|
+
var index = -1, length = array.length;
|
|
1657
|
+
predicate || (predicate = isFlattenable);
|
|
1658
|
+
result || (result = []);
|
|
1659
|
+
while (++index < length) {
|
|
1660
|
+
var value = array[index];
|
|
1661
|
+
if (depth > 0 && predicate(value)) if (depth > 1) baseFlatten(value, depth - 1, predicate, isStrict, result);
|
|
1662
|
+
else arrayPush(result, value);
|
|
1663
|
+
else if (!isStrict) result[result.length] = value;
|
|
1664
|
+
}
|
|
1665
|
+
return result;
|
|
1666
|
+
}
|
|
1667
|
+
//#endregion
|
|
1668
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js
|
|
1669
|
+
/**
|
|
1670
|
+
* Removes all key-value entries from the stack.
|
|
1671
|
+
*
|
|
1672
|
+
* @private
|
|
1673
|
+
* @name clear
|
|
1674
|
+
* @memberOf Stack
|
|
1675
|
+
*/
|
|
690
1676
|
function stackClear() {
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
}
|
|
1677
|
+
this.__data__ = new ListCache();
|
|
1678
|
+
this.size = 0;
|
|
1679
|
+
}
|
|
1680
|
+
//#endregion
|
|
1681
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js
|
|
1682
|
+
/**
|
|
1683
|
+
* Removes `key` and its value from the stack.
|
|
1684
|
+
*
|
|
1685
|
+
* @private
|
|
1686
|
+
* @name delete
|
|
1687
|
+
* @memberOf Stack
|
|
1688
|
+
* @param {string} key The key of the value to remove.
|
|
1689
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1690
|
+
*/
|
|
694
1691
|
function stackDelete(key) {
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
}
|
|
1692
|
+
var data = this.__data__, result = data["delete"](key);
|
|
1693
|
+
this.size = data.size;
|
|
1694
|
+
return result;
|
|
1695
|
+
}
|
|
1696
|
+
//#endregion
|
|
1697
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js
|
|
1698
|
+
/**
|
|
1699
|
+
* Gets the stack value for `key`.
|
|
1700
|
+
*
|
|
1701
|
+
* @private
|
|
1702
|
+
* @name get
|
|
1703
|
+
* @memberOf Stack
|
|
1704
|
+
* @param {string} key The key of the value to get.
|
|
1705
|
+
* @returns {*} Returns the entry value.
|
|
1706
|
+
*/
|
|
699
1707
|
function stackGet(key) {
|
|
700
|
-
|
|
701
|
-
}
|
|
1708
|
+
return this.__data__.get(key);
|
|
1709
|
+
}
|
|
1710
|
+
//#endregion
|
|
1711
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js
|
|
1712
|
+
/**
|
|
1713
|
+
* Checks if a stack value for `key` exists.
|
|
1714
|
+
*
|
|
1715
|
+
* @private
|
|
1716
|
+
* @name has
|
|
1717
|
+
* @memberOf Stack
|
|
1718
|
+
* @param {string} key The key of the entry to check.
|
|
1719
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1720
|
+
*/
|
|
702
1721
|
function stackHas(key) {
|
|
703
|
-
|
|
1722
|
+
return this.__data__.has(key);
|
|
704
1723
|
}
|
|
1724
|
+
//#endregion
|
|
1725
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js
|
|
1726
|
+
/** Used as the size to enable large array optimizations. */
|
|
705
1727
|
var LARGE_ARRAY_SIZE = 200;
|
|
1728
|
+
/**
|
|
1729
|
+
* Sets the stack `key` to `value`.
|
|
1730
|
+
*
|
|
1731
|
+
* @private
|
|
1732
|
+
* @name set
|
|
1733
|
+
* @memberOf Stack
|
|
1734
|
+
* @param {string} key The key of the value to set.
|
|
1735
|
+
* @param {*} value The value to set.
|
|
1736
|
+
* @returns {Object} Returns the stack cache instance.
|
|
1737
|
+
*/
|
|
706
1738
|
function stackSet(key, value) {
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
}
|
|
1739
|
+
var data = this.__data__;
|
|
1740
|
+
if (data instanceof ListCache) {
|
|
1741
|
+
var pairs = data.__data__;
|
|
1742
|
+
if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
1743
|
+
pairs.push([key, value]);
|
|
1744
|
+
this.size = ++data.size;
|
|
1745
|
+
return this;
|
|
1746
|
+
}
|
|
1747
|
+
data = this.__data__ = new MapCache(pairs);
|
|
1748
|
+
}
|
|
1749
|
+
data.set(key, value);
|
|
1750
|
+
this.size = data.size;
|
|
1751
|
+
return this;
|
|
1752
|
+
}
|
|
1753
|
+
//#endregion
|
|
1754
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js
|
|
1755
|
+
/**
|
|
1756
|
+
* Creates a stack cache object to store key-value pairs.
|
|
1757
|
+
*
|
|
1758
|
+
* @private
|
|
1759
|
+
* @constructor
|
|
1760
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
1761
|
+
*/
|
|
721
1762
|
function Stack(entries) {
|
|
722
|
-
|
|
723
|
-
|
|
1763
|
+
var data = this.__data__ = new ListCache(entries);
|
|
1764
|
+
this.size = data.size;
|
|
724
1765
|
}
|
|
725
1766
|
Stack.prototype.clear = stackClear;
|
|
726
1767
|
Stack.prototype["delete"] = stackDelete;
|
|
727
1768
|
Stack.prototype.get = stackGet;
|
|
728
1769
|
Stack.prototype.has = stackHas;
|
|
729
1770
|
Stack.prototype.set = stackSet;
|
|
1771
|
+
//#endregion
|
|
1772
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js
|
|
1773
|
+
/**
|
|
1774
|
+
* A specialized version of `_.filter` for arrays without support for
|
|
1775
|
+
* iteratee shorthands.
|
|
1776
|
+
*
|
|
1777
|
+
* @private
|
|
1778
|
+
* @param {Array} [array] The array to iterate over.
|
|
1779
|
+
* @param {Function} predicate The function invoked per iteration.
|
|
1780
|
+
* @returns {Array} Returns the new filtered array.
|
|
1781
|
+
*/
|
|
730
1782
|
function arrayFilter(array, predicate) {
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
1783
|
+
var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
|
1784
|
+
while (++index < length) {
|
|
1785
|
+
var value = array[index];
|
|
1786
|
+
if (predicate(value, index, array)) result[resIndex++] = value;
|
|
1787
|
+
}
|
|
1788
|
+
return result;
|
|
1789
|
+
}
|
|
1790
|
+
//#endregion
|
|
1791
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js
|
|
1792
|
+
/**
|
|
1793
|
+
* This method returns a new empty array.
|
|
1794
|
+
*
|
|
1795
|
+
* @static
|
|
1796
|
+
* @memberOf _
|
|
1797
|
+
* @since 4.13.0
|
|
1798
|
+
* @category Util
|
|
1799
|
+
* @returns {Array} Returns the new empty array.
|
|
1800
|
+
* @example
|
|
1801
|
+
*
|
|
1802
|
+
* var arrays = _.times(2, _.stubArray);
|
|
1803
|
+
*
|
|
1804
|
+
* console.log(arrays);
|
|
1805
|
+
* // => [[], []]
|
|
1806
|
+
*
|
|
1807
|
+
* console.log(arrays[0] === arrays[1]);
|
|
1808
|
+
* // => false
|
|
1809
|
+
*/
|
|
740
1810
|
function stubArray() {
|
|
741
|
-
|
|
1811
|
+
return [];
|
|
742
1812
|
}
|
|
743
|
-
|
|
744
|
-
|
|
1813
|
+
//#endregion
|
|
1814
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js
|
|
1815
|
+
/** Built-in value references. */
|
|
1816
|
+
var propertyIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
745
1817
|
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
1818
|
+
/**
|
|
1819
|
+
* Creates an array of the own enumerable symbols of `object`.
|
|
1820
|
+
*
|
|
1821
|
+
* @private
|
|
1822
|
+
* @param {Object} object The object to query.
|
|
1823
|
+
* @returns {Array} Returns the array of symbols.
|
|
1824
|
+
*/
|
|
746
1825
|
var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
return propertyIsEnumerable.call(object, symbol);
|
|
753
|
-
});
|
|
1826
|
+
if (object == null) return [];
|
|
1827
|
+
object = Object(object);
|
|
1828
|
+
return arrayFilter(nativeGetSymbols(object), function(symbol) {
|
|
1829
|
+
return propertyIsEnumerable.call(object, symbol);
|
|
1830
|
+
});
|
|
754
1831
|
};
|
|
1832
|
+
//#endregion
|
|
1833
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js
|
|
1834
|
+
/**
|
|
1835
|
+
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
|
|
1836
|
+
* `keysFunc` and `symbolsFunc` to get the enumerable property names and
|
|
1837
|
+
* symbols of `object`.
|
|
1838
|
+
*
|
|
1839
|
+
* @private
|
|
1840
|
+
* @param {Object} object The object to query.
|
|
1841
|
+
* @param {Function} keysFunc The function to get the keys of `object`.
|
|
1842
|
+
* @param {Function} symbolsFunc The function to get the symbols of `object`.
|
|
1843
|
+
* @returns {Array} Returns the array of property names and symbols.
|
|
1844
|
+
*/
|
|
755
1845
|
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
}
|
|
1846
|
+
var result = keysFunc(object);
|
|
1847
|
+
return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
1848
|
+
}
|
|
1849
|
+
//#endregion
|
|
1850
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js
|
|
1851
|
+
/**
|
|
1852
|
+
* Creates an array of own enumerable property names and symbols of `object`.
|
|
1853
|
+
*
|
|
1854
|
+
* @private
|
|
1855
|
+
* @param {Object} object The object to query.
|
|
1856
|
+
* @returns {Array} Returns the array of property names and symbols.
|
|
1857
|
+
*/
|
|
759
1858
|
function getAllKeys(object) {
|
|
760
|
-
|
|
1859
|
+
return baseGetAllKeys(object, keys, getSymbols);
|
|
761
1860
|
}
|
|
1861
|
+
//#endregion
|
|
1862
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js
|
|
762
1863
|
var DataView = getNative(root, "DataView");
|
|
1864
|
+
//#endregion
|
|
1865
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js
|
|
763
1866
|
var Promise$1 = getNative(root, "Promise");
|
|
1867
|
+
//#endregion
|
|
1868
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Set.js
|
|
764
1869
|
var Set = getNative(root, "Set");
|
|
1870
|
+
//#endregion
|
|
1871
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js
|
|
1872
|
+
/** `Object#toString` result references. */
|
|
765
1873
|
var mapTag$1 = "[object Map]", objectTag$1 = "[object Object]", promiseTag = "[object Promise]", setTag$1 = "[object Set]", weakMapTag = "[object WeakMap]";
|
|
766
1874
|
var dataViewTag$1 = "[object DataView]";
|
|
1875
|
+
/** Used to detect maps, sets, and weakmaps. */
|
|
767
1876
|
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
|
|
1877
|
+
/**
|
|
1878
|
+
* Gets the `toStringTag` of `value`.
|
|
1879
|
+
*
|
|
1880
|
+
* @private
|
|
1881
|
+
* @param {*} value The value to query.
|
|
1882
|
+
* @returns {string} Returns the `toStringTag`.
|
|
1883
|
+
*/
|
|
768
1884
|
var getTag = baseGetTag;
|
|
769
|
-
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag$1 || Map && getTag(new Map()) != mapTag$1 || Promise$1 && getTag(Promise$1.resolve()) != promiseTag || Set && getTag(new Set()) != setTag$1 || WeakMap && getTag(new WeakMap()) != weakMapTag) {
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
}
|
|
785
|
-
}
|
|
786
|
-
return result;
|
|
787
|
-
};
|
|
788
|
-
}
|
|
1885
|
+
if (DataView && getTag(new DataView(/* @__PURE__ */ new ArrayBuffer(1))) != dataViewTag$1 || Map && getTag(new Map()) != mapTag$1 || Promise$1 && getTag(Promise$1.resolve()) != promiseTag || Set && getTag(new Set()) != setTag$1 || WeakMap && getTag(new WeakMap()) != weakMapTag) getTag = function(value) {
|
|
1886
|
+
var result = baseGetTag(value), Ctor = result == objectTag$1 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
|
|
1887
|
+
if (ctorString) switch (ctorString) {
|
|
1888
|
+
case dataViewCtorString: return dataViewTag$1;
|
|
1889
|
+
case mapCtorString: return mapTag$1;
|
|
1890
|
+
case promiseCtorString: return promiseTag;
|
|
1891
|
+
case setCtorString: return setTag$1;
|
|
1892
|
+
case weakMapCtorString: return weakMapTag;
|
|
1893
|
+
}
|
|
1894
|
+
return result;
|
|
1895
|
+
};
|
|
1896
|
+
var _getTag_default = getTag;
|
|
1897
|
+
//#endregion
|
|
1898
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js
|
|
1899
|
+
/** Built-in value references. */
|
|
789
1900
|
var Uint8Array$1 = root.Uint8Array;
|
|
1901
|
+
//#endregion
|
|
1902
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js
|
|
1903
|
+
/** Used to stand-in for `undefined` hash values. */
|
|
790
1904
|
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
1905
|
+
/**
|
|
1906
|
+
* Adds `value` to the array cache.
|
|
1907
|
+
*
|
|
1908
|
+
* @private
|
|
1909
|
+
* @name add
|
|
1910
|
+
* @memberOf SetCache
|
|
1911
|
+
* @alias push
|
|
1912
|
+
* @param {*} value The value to cache.
|
|
1913
|
+
* @returns {Object} Returns the cache instance.
|
|
1914
|
+
*/
|
|
791
1915
|
function setCacheAdd(value) {
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
}
|
|
1916
|
+
this.__data__.set(value, HASH_UNDEFINED);
|
|
1917
|
+
return this;
|
|
1918
|
+
}
|
|
1919
|
+
//#endregion
|
|
1920
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js
|
|
1921
|
+
/**
|
|
1922
|
+
* Checks if `value` is in the array cache.
|
|
1923
|
+
*
|
|
1924
|
+
* @private
|
|
1925
|
+
* @name has
|
|
1926
|
+
* @memberOf SetCache
|
|
1927
|
+
* @param {*} value The value to search for.
|
|
1928
|
+
* @returns {boolean} Returns `true` if `value` is found, else `false`.
|
|
1929
|
+
*/
|
|
795
1930
|
function setCacheHas(value) {
|
|
796
|
-
|
|
797
|
-
}
|
|
1931
|
+
return this.__data__.has(value);
|
|
1932
|
+
}
|
|
1933
|
+
//#endregion
|
|
1934
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js
|
|
1935
|
+
/**
|
|
1936
|
+
*
|
|
1937
|
+
* Creates an array cache object to store unique values.
|
|
1938
|
+
*
|
|
1939
|
+
* @private
|
|
1940
|
+
* @constructor
|
|
1941
|
+
* @param {Array} [values] The values to cache.
|
|
1942
|
+
*/
|
|
798
1943
|
function SetCache(values) {
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
this.add(values[index]);
|
|
803
|
-
}
|
|
1944
|
+
var index = -1, length = values == null ? 0 : values.length;
|
|
1945
|
+
this.__data__ = new MapCache();
|
|
1946
|
+
while (++index < length) this.add(values[index]);
|
|
804
1947
|
}
|
|
805
1948
|
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
|
|
806
1949
|
SetCache.prototype.has = setCacheHas;
|
|
1950
|
+
//#endregion
|
|
1951
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js
|
|
1952
|
+
/**
|
|
1953
|
+
* A specialized version of `_.some` for arrays without support for iteratee
|
|
1954
|
+
* shorthands.
|
|
1955
|
+
*
|
|
1956
|
+
* @private
|
|
1957
|
+
* @param {Array} [array] The array to iterate over.
|
|
1958
|
+
* @param {Function} predicate The function invoked per iteration.
|
|
1959
|
+
* @returns {boolean} Returns `true` if any element passes the predicate check,
|
|
1960
|
+
* else `false`.
|
|
1961
|
+
*/
|
|
807
1962
|
function arraySome(array, predicate) {
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
1963
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
1964
|
+
while (++index < length) if (predicate(array[index], index, array)) return true;
|
|
1965
|
+
return false;
|
|
1966
|
+
}
|
|
1967
|
+
//#endregion
|
|
1968
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js
|
|
1969
|
+
/**
|
|
1970
|
+
* Checks if a `cache` value for `key` exists.
|
|
1971
|
+
*
|
|
1972
|
+
* @private
|
|
1973
|
+
* @param {Object} cache The cache to query.
|
|
1974
|
+
* @param {string} key The key of the entry to check.
|
|
1975
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1976
|
+
*/
|
|
816
1977
|
function cacheHas(cache, key) {
|
|
817
|
-
|
|
1978
|
+
return cache.has(key);
|
|
818
1979
|
}
|
|
1980
|
+
//#endregion
|
|
1981
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js
|
|
1982
|
+
/** Used to compose bitmasks for value comparisons. */
|
|
819
1983
|
var COMPARE_PARTIAL_FLAG$5 = 1, COMPARE_UNORDERED_FLAG$3 = 2;
|
|
1984
|
+
/**
|
|
1985
|
+
* A specialized version of `baseIsEqualDeep` for arrays with support for
|
|
1986
|
+
* partial deep comparisons.
|
|
1987
|
+
*
|
|
1988
|
+
* @private
|
|
1989
|
+
* @param {Array} array The array to compare.
|
|
1990
|
+
* @param {Array} other The other array to compare.
|
|
1991
|
+
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
|
1992
|
+
* @param {Function} customizer The function to customize comparisons.
|
|
1993
|
+
* @param {Function} equalFunc The function to determine equivalents of values.
|
|
1994
|
+
* @param {Object} stack Tracks traversed `array` and `other` objects.
|
|
1995
|
+
* @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
|
|
1996
|
+
*/
|
|
820
1997
|
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
}
|
|
1998
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$5, arrLength = array.length, othLength = other.length;
|
|
1999
|
+
if (arrLength != othLength && !(isPartial && othLength > arrLength)) return false;
|
|
2000
|
+
var arrStacked = stack.get(array);
|
|
2001
|
+
var othStacked = stack.get(other);
|
|
2002
|
+
if (arrStacked && othStacked) return arrStacked == other && othStacked == array;
|
|
2003
|
+
var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
|
|
2004
|
+
stack.set(array, other);
|
|
2005
|
+
stack.set(other, array);
|
|
2006
|
+
while (++index < arrLength) {
|
|
2007
|
+
var arrValue = array[index], othValue = other[index];
|
|
2008
|
+
if (customizer) var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
|
|
2009
|
+
if (compared !== void 0) {
|
|
2010
|
+
if (compared) continue;
|
|
2011
|
+
result = false;
|
|
2012
|
+
break;
|
|
2013
|
+
}
|
|
2014
|
+
if (seen) {
|
|
2015
|
+
if (!arraySome(other, function(othValue, othIndex) {
|
|
2016
|
+
if (!cacheHas(seen, othIndex) && (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) return seen.push(othIndex);
|
|
2017
|
+
})) {
|
|
2018
|
+
result = false;
|
|
2019
|
+
break;
|
|
2020
|
+
}
|
|
2021
|
+
} else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
|
|
2022
|
+
result = false;
|
|
2023
|
+
break;
|
|
2024
|
+
}
|
|
2025
|
+
}
|
|
2026
|
+
stack["delete"](array);
|
|
2027
|
+
stack["delete"](other);
|
|
2028
|
+
return result;
|
|
2029
|
+
}
|
|
2030
|
+
//#endregion
|
|
2031
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js
|
|
2032
|
+
/**
|
|
2033
|
+
* Converts `map` to its key-value pairs.
|
|
2034
|
+
*
|
|
2035
|
+
* @private
|
|
2036
|
+
* @param {Object} map The map to convert.
|
|
2037
|
+
* @returns {Array} Returns the key-value pairs.
|
|
2038
|
+
*/
|
|
863
2039
|
function mapToArray(map) {
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
}
|
|
2040
|
+
var index = -1, result = Array(map.size);
|
|
2041
|
+
map.forEach(function(value, key) {
|
|
2042
|
+
result[++index] = [key, value];
|
|
2043
|
+
});
|
|
2044
|
+
return result;
|
|
2045
|
+
}
|
|
2046
|
+
//#endregion
|
|
2047
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js
|
|
2048
|
+
/**
|
|
2049
|
+
* Converts `set` to an array of its values.
|
|
2050
|
+
*
|
|
2051
|
+
* @private
|
|
2052
|
+
* @param {Object} set The set to convert.
|
|
2053
|
+
* @returns {Array} Returns the values.
|
|
2054
|
+
*/
|
|
870
2055
|
function setToArray(set) {
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
}
|
|
2056
|
+
var index = -1, result = Array(set.size);
|
|
2057
|
+
set.forEach(function(value) {
|
|
2058
|
+
result[++index] = value;
|
|
2059
|
+
});
|
|
2060
|
+
return result;
|
|
2061
|
+
}
|
|
2062
|
+
//#endregion
|
|
2063
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js
|
|
2064
|
+
/** Used to compose bitmasks for value comparisons. */
|
|
877
2065
|
var COMPARE_PARTIAL_FLAG$4 = 1, COMPARE_UNORDERED_FLAG$2 = 2;
|
|
2066
|
+
/** `Object#toString` result references. */
|
|
878
2067
|
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]";
|
|
879
2068
|
var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]";
|
|
880
|
-
|
|
2069
|
+
/** Used to convert symbols to primitives and strings. */
|
|
2070
|
+
var symbolProto = Symbol ? Symbol.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
2071
|
+
/**
|
|
2072
|
+
* A specialized version of `baseIsEqualDeep` for comparing objects of
|
|
2073
|
+
* the same `toStringTag`.
|
|
2074
|
+
*
|
|
2075
|
+
* **Note:** This function only supports comparing values with tags of
|
|
2076
|
+
* `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
|
|
2077
|
+
*
|
|
2078
|
+
* @private
|
|
2079
|
+
* @param {Object} object The object to compare.
|
|
2080
|
+
* @param {Object} other The other object to compare.
|
|
2081
|
+
* @param {string} tag The `toStringTag` of the objects to compare.
|
|
2082
|
+
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
|
2083
|
+
* @param {Function} customizer The function to customize comparisons.
|
|
2084
|
+
* @param {Function} equalFunc The function to determine equivalents of values.
|
|
2085
|
+
* @param {Object} stack Tracks traversed `object` and `other` objects.
|
|
2086
|
+
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
2087
|
+
*/
|
|
881
2088
|
function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
bitmask |= COMPARE_UNORDERED_FLAG$2;
|
|
916
|
-
stack.set(object, other);
|
|
917
|
-
var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
|
|
918
|
-
stack["delete"](object);
|
|
919
|
-
return result;
|
|
920
|
-
case symbolTag:
|
|
921
|
-
if (symbolValueOf) {
|
|
922
|
-
return symbolValueOf.call(object) == symbolValueOf.call(other);
|
|
923
|
-
}
|
|
924
|
-
}
|
|
925
|
-
return false;
|
|
926
|
-
}
|
|
2089
|
+
switch (tag) {
|
|
2090
|
+
case dataViewTag:
|
|
2091
|
+
if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) return false;
|
|
2092
|
+
object = object.buffer;
|
|
2093
|
+
other = other.buffer;
|
|
2094
|
+
case arrayBufferTag:
|
|
2095
|
+
if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array$1(object), new Uint8Array$1(other))) return false;
|
|
2096
|
+
return true;
|
|
2097
|
+
case boolTag:
|
|
2098
|
+
case dateTag:
|
|
2099
|
+
case numberTag: return eq(+object, +other);
|
|
2100
|
+
case errorTag: return object.name == other.name && object.message == other.message;
|
|
2101
|
+
case regexpTag:
|
|
2102
|
+
case stringTag: return object == other + "";
|
|
2103
|
+
case mapTag: var convert = mapToArray;
|
|
2104
|
+
case setTag:
|
|
2105
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$4;
|
|
2106
|
+
convert || (convert = setToArray);
|
|
2107
|
+
if (object.size != other.size && !isPartial) return false;
|
|
2108
|
+
var stacked = stack.get(object);
|
|
2109
|
+
if (stacked) return stacked == other;
|
|
2110
|
+
bitmask |= COMPARE_UNORDERED_FLAG$2;
|
|
2111
|
+
stack.set(object, other);
|
|
2112
|
+
var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
|
|
2113
|
+
stack["delete"](object);
|
|
2114
|
+
return result;
|
|
2115
|
+
case symbolTag: if (symbolValueOf) return symbolValueOf.call(object) == symbolValueOf.call(other);
|
|
2116
|
+
}
|
|
2117
|
+
return false;
|
|
2118
|
+
}
|
|
2119
|
+
//#endregion
|
|
2120
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js
|
|
2121
|
+
/** Used to compose bitmasks for value comparisons. */
|
|
927
2122
|
var COMPARE_PARTIAL_FLAG$3 = 1;
|
|
928
|
-
|
|
929
|
-
var hasOwnProperty$1 =
|
|
2123
|
+
/** Used to check objects for own properties. */
|
|
2124
|
+
var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
2125
|
+
/**
|
|
2126
|
+
* A specialized version of `baseIsEqualDeep` for objects with support for
|
|
2127
|
+
* partial deep comparisons.
|
|
2128
|
+
*
|
|
2129
|
+
* @private
|
|
2130
|
+
* @param {Object} object The object to compare.
|
|
2131
|
+
* @param {Object} other The other object to compare.
|
|
2132
|
+
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
|
2133
|
+
* @param {Function} customizer The function to customize comparisons.
|
|
2134
|
+
* @param {Function} equalFunc The function to determine equivalents of values.
|
|
2135
|
+
* @param {Object} stack Tracks traversed `object` and `other` objects.
|
|
2136
|
+
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
2137
|
+
*/
|
|
930
2138
|
function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
result = false;
|
|
967
|
-
}
|
|
968
|
-
}
|
|
969
|
-
stack["delete"](object);
|
|
970
|
-
stack["delete"](other);
|
|
971
|
-
return result;
|
|
972
|
-
}
|
|
2139
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3, objProps = getAllKeys(object), objLength = objProps.length;
|
|
2140
|
+
if (objLength != getAllKeys(other).length && !isPartial) return false;
|
|
2141
|
+
var index = objLength;
|
|
2142
|
+
while (index--) {
|
|
2143
|
+
var key = objProps[index];
|
|
2144
|
+
if (!(isPartial ? key in other : hasOwnProperty$1.call(other, key))) return false;
|
|
2145
|
+
}
|
|
2146
|
+
var objStacked = stack.get(object);
|
|
2147
|
+
var othStacked = stack.get(other);
|
|
2148
|
+
if (objStacked && othStacked) return objStacked == other && othStacked == object;
|
|
2149
|
+
var result = true;
|
|
2150
|
+
stack.set(object, other);
|
|
2151
|
+
stack.set(other, object);
|
|
2152
|
+
var skipCtor = isPartial;
|
|
2153
|
+
while (++index < objLength) {
|
|
2154
|
+
key = objProps[index];
|
|
2155
|
+
var objValue = object[key], othValue = other[key];
|
|
2156
|
+
if (customizer) var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
|
|
2157
|
+
if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
|
|
2158
|
+
result = false;
|
|
2159
|
+
break;
|
|
2160
|
+
}
|
|
2161
|
+
skipCtor || (skipCtor = key == "constructor");
|
|
2162
|
+
}
|
|
2163
|
+
if (result && !skipCtor) {
|
|
2164
|
+
var objCtor = object.constructor, othCtor = other.constructor;
|
|
2165
|
+
if (objCtor != othCtor && "constructor" in object && "constructor" in other && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) result = false;
|
|
2166
|
+
}
|
|
2167
|
+
stack["delete"](object);
|
|
2168
|
+
stack["delete"](other);
|
|
2169
|
+
return result;
|
|
2170
|
+
}
|
|
2171
|
+
//#endregion
|
|
2172
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js
|
|
2173
|
+
/** Used to compose bitmasks for value comparisons. */
|
|
973
2174
|
var COMPARE_PARTIAL_FLAG$2 = 1;
|
|
2175
|
+
/** `Object#toString` result references. */
|
|
974
2176
|
var argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]";
|
|
975
|
-
|
|
976
|
-
var hasOwnProperty =
|
|
2177
|
+
/** Used to check objects for own properties. */
|
|
2178
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
2179
|
+
/**
|
|
2180
|
+
* A specialized version of `baseIsEqual` for arrays and objects which performs
|
|
2181
|
+
* deep comparisons and tracks traversed objects enabling objects with circular
|
|
2182
|
+
* references to be compared.
|
|
2183
|
+
*
|
|
2184
|
+
* @private
|
|
2185
|
+
* @param {Object} object The object to compare.
|
|
2186
|
+
* @param {Object} other The other object to compare.
|
|
2187
|
+
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
|
2188
|
+
* @param {Function} customizer The function to customize comparisons.
|
|
2189
|
+
* @param {Function} equalFunc The function to determine equivalents of values.
|
|
2190
|
+
* @param {Object} [stack] Tracks traversed `object` and `other` objects.
|
|
2191
|
+
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
2192
|
+
*/
|
|
977
2193
|
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
2194
|
+
var objIsArr = isArray(object), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : _getTag_default(object), othTag = othIsArr ? arrayTag : _getTag_default(other);
|
|
2195
|
+
objTag = objTag == argsTag ? objectTag : objTag;
|
|
2196
|
+
othTag = othTag == argsTag ? objectTag : othTag;
|
|
2197
|
+
var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag;
|
|
2198
|
+
if (isSameTag && isBuffer(object)) {
|
|
2199
|
+
if (!isBuffer(other)) return false;
|
|
2200
|
+
objIsArr = true;
|
|
2201
|
+
objIsObj = false;
|
|
2202
|
+
}
|
|
2203
|
+
if (isSameTag && !objIsObj) {
|
|
2204
|
+
stack || (stack = new Stack());
|
|
2205
|
+
return objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
2206
|
+
}
|
|
2207
|
+
if (!(bitmask & COMPARE_PARTIAL_FLAG$2)) {
|
|
2208
|
+
var objIsWrapped = objIsObj && hasOwnProperty.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty.call(other, "__wrapped__");
|
|
2209
|
+
if (objIsWrapped || othIsWrapped) {
|
|
2210
|
+
var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
|
|
2211
|
+
stack || (stack = new Stack());
|
|
2212
|
+
return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
|
|
2213
|
+
}
|
|
2214
|
+
}
|
|
2215
|
+
if (!isSameTag) return false;
|
|
2216
|
+
stack || (stack = new Stack());
|
|
2217
|
+
return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
|
|
2218
|
+
}
|
|
2219
|
+
//#endregion
|
|
2220
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js
|
|
2221
|
+
/**
|
|
2222
|
+
* The base implementation of `_.isEqual` which supports partial comparisons
|
|
2223
|
+
* and tracks traversed objects.
|
|
2224
|
+
*
|
|
2225
|
+
* @private
|
|
2226
|
+
* @param {*} value The value to compare.
|
|
2227
|
+
* @param {*} other The other value to compare.
|
|
2228
|
+
* @param {boolean} bitmask The bitmask flags.
|
|
2229
|
+
* 1 - Unordered comparison
|
|
2230
|
+
* 2 - Partial comparison
|
|
2231
|
+
* @param {Function} [customizer] The function to customize comparisons.
|
|
2232
|
+
* @param {Object} [stack] Tracks traversed `value` and `other` objects.
|
|
2233
|
+
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
2234
|
+
*/
|
|
1007
2235
|
function baseIsEqual(value, other, bitmask, customizer, stack) {
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
if (value == null || other == null || !isObjectLike(value) && !isObjectLike(other)) {
|
|
1012
|
-
return value !== value && other !== other;
|
|
1013
|
-
}
|
|
1014
|
-
return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
|
|
2236
|
+
if (value === other) return true;
|
|
2237
|
+
if (value == null || other == null || !isObjectLike(value) && !isObjectLike(other)) return value !== value && other !== other;
|
|
2238
|
+
return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
|
|
1015
2239
|
}
|
|
2240
|
+
//#endregion
|
|
2241
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMatch.js
|
|
2242
|
+
/** Used to compose bitmasks for value comparisons. */
|
|
1016
2243
|
var COMPARE_PARTIAL_FLAG$1 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
|
|
2244
|
+
/**
|
|
2245
|
+
* The base implementation of `_.isMatch` without support for iteratee shorthands.
|
|
2246
|
+
*
|
|
2247
|
+
* @private
|
|
2248
|
+
* @param {Object} object The object to inspect.
|
|
2249
|
+
* @param {Object} source The object of property values to match.
|
|
2250
|
+
* @param {Array} matchData The property names, values, and compare flags to match.
|
|
2251
|
+
* @param {Function} [customizer] The function to customize comparisons.
|
|
2252
|
+
* @returns {boolean} Returns `true` if `object` is a match, else `false`.
|
|
2253
|
+
*/
|
|
1017
2254
|
function baseIsMatch(object, source, matchData, customizer) {
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
}
|
|
2255
|
+
var index = matchData.length, length = index, noCustomizer = !customizer;
|
|
2256
|
+
if (object == null) return !length;
|
|
2257
|
+
object = Object(object);
|
|
2258
|
+
while (index--) {
|
|
2259
|
+
var data = matchData[index];
|
|
2260
|
+
if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) return false;
|
|
2261
|
+
}
|
|
2262
|
+
while (++index < length) {
|
|
2263
|
+
data = matchData[index];
|
|
2264
|
+
var key = data[0], objValue = object[key], srcValue = data[1];
|
|
2265
|
+
if (noCustomizer && data[2]) {
|
|
2266
|
+
if (objValue === void 0 && !(key in object)) return false;
|
|
2267
|
+
} else {
|
|
2268
|
+
var stack = new Stack();
|
|
2269
|
+
if (customizer) var result = customizer(objValue, srcValue, key, object, source, stack);
|
|
2270
|
+
if (!(result === void 0 ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, customizer, stack) : result)) return false;
|
|
2271
|
+
}
|
|
2272
|
+
}
|
|
2273
|
+
return true;
|
|
2274
|
+
}
|
|
2275
|
+
//#endregion
|
|
2276
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isStrictComparable.js
|
|
2277
|
+
/**
|
|
2278
|
+
* Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
|
|
2279
|
+
*
|
|
2280
|
+
* @private
|
|
2281
|
+
* @param {*} value The value to check.
|
|
2282
|
+
* @returns {boolean} Returns `true` if `value` if suitable for strict
|
|
2283
|
+
* equality comparisons, else `false`.
|
|
2284
|
+
*/
|
|
1046
2285
|
function isStrictComparable(value) {
|
|
1047
|
-
|
|
1048
|
-
}
|
|
2286
|
+
return value === value && !isObject(value);
|
|
2287
|
+
}
|
|
2288
|
+
//#endregion
|
|
2289
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getMatchData.js
|
|
2290
|
+
/**
|
|
2291
|
+
* Gets the property names, values, and compare flags of `object`.
|
|
2292
|
+
*
|
|
2293
|
+
* @private
|
|
2294
|
+
* @param {Object} object The object to query.
|
|
2295
|
+
* @returns {Array} Returns the match data of `object`.
|
|
2296
|
+
*/
|
|
1049
2297
|
function getMatchData(object) {
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
2298
|
+
var result = keys(object), length = result.length;
|
|
2299
|
+
while (length--) {
|
|
2300
|
+
var key = result[length], value = object[key];
|
|
2301
|
+
result[length] = [
|
|
2302
|
+
key,
|
|
2303
|
+
value,
|
|
2304
|
+
isStrictComparable(value)
|
|
2305
|
+
];
|
|
2306
|
+
}
|
|
2307
|
+
return result;
|
|
2308
|
+
}
|
|
2309
|
+
//#endregion
|
|
2310
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_matchesStrictComparable.js
|
|
2311
|
+
/**
|
|
2312
|
+
* A specialized version of `matchesProperty` for source values suitable
|
|
2313
|
+
* for strict equality comparisons, i.e. `===`.
|
|
2314
|
+
*
|
|
2315
|
+
* @private
|
|
2316
|
+
* @param {string} key The key of the property to get.
|
|
2317
|
+
* @param {*} srcValue The value to match.
|
|
2318
|
+
* @returns {Function} Returns the new spec function.
|
|
2319
|
+
*/
|
|
1057
2320
|
function matchesStrictComparable(key, srcValue) {
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
2321
|
+
return function(object) {
|
|
2322
|
+
if (object == null) return false;
|
|
2323
|
+
return object[key] === srcValue && (srcValue !== void 0 || key in Object(object));
|
|
2324
|
+
};
|
|
2325
|
+
}
|
|
2326
|
+
//#endregion
|
|
2327
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseMatches.js
|
|
2328
|
+
/**
|
|
2329
|
+
* The base implementation of `_.matches` which doesn't clone `source`.
|
|
2330
|
+
*
|
|
2331
|
+
* @private
|
|
2332
|
+
* @param {Object} source The object of property values to match.
|
|
2333
|
+
* @returns {Function} Returns the new spec function.
|
|
2334
|
+
*/
|
|
1065
2335
|
function baseMatches(source) {
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
2336
|
+
var matchData = getMatchData(source);
|
|
2337
|
+
if (matchData.length == 1 && matchData[0][2]) return matchesStrictComparable(matchData[0][0], matchData[0][1]);
|
|
2338
|
+
return function(object) {
|
|
2339
|
+
return object === source || baseIsMatch(object, source, matchData);
|
|
2340
|
+
};
|
|
2341
|
+
}
|
|
2342
|
+
//#endregion
|
|
2343
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseHasIn.js
|
|
2344
|
+
/**
|
|
2345
|
+
* The base implementation of `_.hasIn` without support for deep paths.
|
|
2346
|
+
*
|
|
2347
|
+
* @private
|
|
2348
|
+
* @param {Object} [object] The object to query.
|
|
2349
|
+
* @param {Array|string} key The key to check.
|
|
2350
|
+
* @returns {boolean} Returns `true` if `key` exists, else `false`.
|
|
2351
|
+
*/
|
|
1074
2352
|
function baseHasIn(object, key) {
|
|
1075
|
-
|
|
1076
|
-
}
|
|
2353
|
+
return object != null && key in Object(object);
|
|
2354
|
+
}
|
|
2355
|
+
//#endregion
|
|
2356
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hasPath.js
|
|
2357
|
+
/**
|
|
2358
|
+
* Checks if `path` exists on `object`.
|
|
2359
|
+
*
|
|
2360
|
+
* @private
|
|
2361
|
+
* @param {Object} object The object to query.
|
|
2362
|
+
* @param {Array|string} path The path to check.
|
|
2363
|
+
* @param {Function} hasFunc The function to check properties.
|
|
2364
|
+
* @returns {boolean} Returns `true` if `path` exists, else `false`.
|
|
2365
|
+
*/
|
|
1077
2366
|
function hasPath(object, path, hasFunc) {
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
2367
|
+
path = castPath(path, object);
|
|
2368
|
+
var index = -1, length = path.length, result = false;
|
|
2369
|
+
while (++index < length) {
|
|
2370
|
+
var key = toKey(path[index]);
|
|
2371
|
+
if (!(result = object != null && hasFunc(object, key))) break;
|
|
2372
|
+
object = object[key];
|
|
2373
|
+
}
|
|
2374
|
+
if (result || ++index != length) return result;
|
|
2375
|
+
length = object == null ? 0 : object.length;
|
|
2376
|
+
return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object));
|
|
2377
|
+
}
|
|
2378
|
+
//#endregion
|
|
2379
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/hasIn.js
|
|
2380
|
+
/**
|
|
2381
|
+
* Checks if `path` is a direct or inherited property of `object`.
|
|
2382
|
+
*
|
|
2383
|
+
* @static
|
|
2384
|
+
* @memberOf _
|
|
2385
|
+
* @since 4.0.0
|
|
2386
|
+
* @category Object
|
|
2387
|
+
* @param {Object} object The object to query.
|
|
2388
|
+
* @param {Array|string} path The path to check.
|
|
2389
|
+
* @returns {boolean} Returns `true` if `path` exists, else `false`.
|
|
2390
|
+
* @example
|
|
2391
|
+
*
|
|
2392
|
+
* var object = _.create({ 'a': _.create({ 'b': 2 }) });
|
|
2393
|
+
*
|
|
2394
|
+
* _.hasIn(object, 'a');
|
|
2395
|
+
* // => true
|
|
2396
|
+
*
|
|
2397
|
+
* _.hasIn(object, 'a.b');
|
|
2398
|
+
* // => true
|
|
2399
|
+
*
|
|
2400
|
+
* _.hasIn(object, ['a', 'b']);
|
|
2401
|
+
* // => true
|
|
2402
|
+
*
|
|
2403
|
+
* _.hasIn(object, 'b');
|
|
2404
|
+
* // => false
|
|
2405
|
+
*/
|
|
1093
2406
|
function hasIn(object, path) {
|
|
1094
|
-
|
|
2407
|
+
return object != null && hasPath(object, path, baseHasIn);
|
|
1095
2408
|
}
|
|
2409
|
+
//#endregion
|
|
2410
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseMatchesProperty.js
|
|
2411
|
+
/** Used to compose bitmasks for value comparisons. */
|
|
1096
2412
|
var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;
|
|
2413
|
+
/**
|
|
2414
|
+
* The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
|
|
2415
|
+
*
|
|
2416
|
+
* @private
|
|
2417
|
+
* @param {string} path The path of the property to get.
|
|
2418
|
+
* @param {*} srcValue The value to match.
|
|
2419
|
+
* @returns {Function} Returns the new spec function.
|
|
2420
|
+
*/
|
|
1097
2421
|
function baseMatchesProperty(path, srcValue) {
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
2422
|
+
if (isKey(path) && isStrictComparable(srcValue)) return matchesStrictComparable(toKey(path), srcValue);
|
|
2423
|
+
return function(object) {
|
|
2424
|
+
var objValue = get(object, path);
|
|
2425
|
+
return objValue === void 0 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
|
2426
|
+
};
|
|
2427
|
+
}
|
|
2428
|
+
//#endregion
|
|
2429
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseProperty.js
|
|
2430
|
+
/**
|
|
2431
|
+
* The base implementation of `_.property` without support for deep paths.
|
|
2432
|
+
*
|
|
2433
|
+
* @private
|
|
2434
|
+
* @param {string} key The key of the property to get.
|
|
2435
|
+
* @returns {Function} Returns the new accessor function.
|
|
2436
|
+
*/
|
|
1106
2437
|
function baseProperty(key) {
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
}
|
|
2438
|
+
return function(object) {
|
|
2439
|
+
return object == null ? void 0 : object[key];
|
|
2440
|
+
};
|
|
2441
|
+
}
|
|
2442
|
+
//#endregion
|
|
2443
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyDeep.js
|
|
2444
|
+
/**
|
|
2445
|
+
* A specialized version of `baseProperty` which supports deep paths.
|
|
2446
|
+
*
|
|
2447
|
+
* @private
|
|
2448
|
+
* @param {Array|string} path The path of the property to get.
|
|
2449
|
+
* @returns {Function} Returns the new accessor function.
|
|
2450
|
+
*/
|
|
1111
2451
|
function basePropertyDeep(path) {
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
}
|
|
2452
|
+
return function(object) {
|
|
2453
|
+
return baseGet(object, path);
|
|
2454
|
+
};
|
|
2455
|
+
}
|
|
2456
|
+
//#endregion
|
|
2457
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/property.js
|
|
2458
|
+
/**
|
|
2459
|
+
* Creates a function that returns the value at `path` of a given object.
|
|
2460
|
+
*
|
|
2461
|
+
* @static
|
|
2462
|
+
* @memberOf _
|
|
2463
|
+
* @since 2.4.0
|
|
2464
|
+
* @category Util
|
|
2465
|
+
* @param {Array|string} path The path of the property to get.
|
|
2466
|
+
* @returns {Function} Returns the new accessor function.
|
|
2467
|
+
* @example
|
|
2468
|
+
*
|
|
2469
|
+
* var objects = [
|
|
2470
|
+
* { 'a': { 'b': 2 } },
|
|
2471
|
+
* { 'a': { 'b': 1 } }
|
|
2472
|
+
* ];
|
|
2473
|
+
*
|
|
2474
|
+
* _.map(objects, _.property('a.b'));
|
|
2475
|
+
* // => [2, 1]
|
|
2476
|
+
*
|
|
2477
|
+
* _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
|
|
2478
|
+
* // => [1, 2]
|
|
2479
|
+
*/
|
|
1116
2480
|
function property(path) {
|
|
1117
|
-
|
|
1118
|
-
}
|
|
2481
|
+
return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
|
|
2482
|
+
}
|
|
2483
|
+
//#endregion
|
|
2484
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIteratee.js
|
|
2485
|
+
/**
|
|
2486
|
+
* The base implementation of `_.iteratee`.
|
|
2487
|
+
*
|
|
2488
|
+
* @private
|
|
2489
|
+
* @param {*} [value=_.identity] The value to convert to an iteratee.
|
|
2490
|
+
* @returns {Function} Returns the iteratee.
|
|
2491
|
+
*/
|
|
1119
2492
|
function baseIteratee(value) {
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
2493
|
+
if (typeof value == "function") return value;
|
|
2494
|
+
if (value == null) return identity;
|
|
2495
|
+
if (typeof value == "object") return isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
|
|
2496
|
+
return property(value);
|
|
2497
|
+
}
|
|
2498
|
+
//#endregion
|
|
2499
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createBaseFor.js
|
|
2500
|
+
/**
|
|
2501
|
+
* Creates a base function for methods like `_.forIn` and `_.forOwn`.
|
|
2502
|
+
*
|
|
2503
|
+
* @private
|
|
2504
|
+
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
2505
|
+
* @returns {Function} Returns the new base function.
|
|
2506
|
+
*/
|
|
1131
2507
|
function createBaseFor(fromRight) {
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
2508
|
+
return function(object, iteratee, keysFunc) {
|
|
2509
|
+
var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
|
|
2510
|
+
while (length--) {
|
|
2511
|
+
var key = props[fromRight ? length : ++index];
|
|
2512
|
+
if (iteratee(iterable[key], key, iterable) === false) break;
|
|
2513
|
+
}
|
|
2514
|
+
return object;
|
|
2515
|
+
};
|
|
2516
|
+
}
|
|
2517
|
+
//#endregion
|
|
2518
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseFor.js
|
|
2519
|
+
/**
|
|
2520
|
+
* The base implementation of `baseForOwn` which iterates over `object`
|
|
2521
|
+
* properties returned by `keysFunc` and invokes `iteratee` for each property.
|
|
2522
|
+
* Iteratee functions may exit iteration early by explicitly returning `false`.
|
|
2523
|
+
*
|
|
2524
|
+
* @private
|
|
2525
|
+
* @param {Object} object The object to iterate over.
|
|
2526
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
2527
|
+
* @param {Function} keysFunc The function to get the keys of `object`.
|
|
2528
|
+
* @returns {Object} Returns `object`.
|
|
2529
|
+
*/
|
|
1143
2530
|
var baseFor = createBaseFor();
|
|
2531
|
+
//#endregion
|
|
2532
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseForOwn.js
|
|
2533
|
+
/**
|
|
2534
|
+
* The base implementation of `_.forOwn` without support for iteratee shorthands.
|
|
2535
|
+
*
|
|
2536
|
+
* @private
|
|
2537
|
+
* @param {Object} object The object to iterate over.
|
|
2538
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
2539
|
+
* @returns {Object} Returns `object`.
|
|
2540
|
+
*/
|
|
1144
2541
|
function baseForOwn(object, iteratee) {
|
|
1145
|
-
|
|
1146
|
-
}
|
|
2542
|
+
return object && baseFor(object, iteratee, keys);
|
|
2543
|
+
}
|
|
2544
|
+
//#endregion
|
|
2545
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createBaseEach.js
|
|
2546
|
+
/**
|
|
2547
|
+
* Creates a `baseEach` or `baseEachRight` function.
|
|
2548
|
+
*
|
|
2549
|
+
* @private
|
|
2550
|
+
* @param {Function} eachFunc The function to iterate over a collection.
|
|
2551
|
+
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
2552
|
+
* @returns {Function} Returns the new base function.
|
|
2553
|
+
*/
|
|
1147
2554
|
function createBaseEach(eachFunc, fromRight) {
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
}
|
|
2555
|
+
return function(collection, iteratee) {
|
|
2556
|
+
if (collection == null) return collection;
|
|
2557
|
+
if (!isArrayLike(collection)) return eachFunc(collection, iteratee);
|
|
2558
|
+
var length = collection.length, index = fromRight ? length : -1, iterable = Object(collection);
|
|
2559
|
+
while (fromRight ? index-- : ++index < length) if (iteratee(iterable[index], index, iterable) === false) break;
|
|
2560
|
+
return collection;
|
|
2561
|
+
};
|
|
2562
|
+
}
|
|
2563
|
+
//#endregion
|
|
2564
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseEach.js
|
|
2565
|
+
/**
|
|
2566
|
+
* The base implementation of `_.forEach` without support for iteratee shorthands.
|
|
2567
|
+
*
|
|
2568
|
+
* @private
|
|
2569
|
+
* @param {Array|Object} collection The collection to iterate over.
|
|
2570
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
2571
|
+
* @returns {Array|Object} Returns `collection`.
|
|
2572
|
+
*/
|
|
1164
2573
|
var baseEach = createBaseEach(baseForOwn);
|
|
2574
|
+
//#endregion
|
|
2575
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseMap.js
|
|
2576
|
+
/**
|
|
2577
|
+
* The base implementation of `_.map` without support for iteratee shorthands.
|
|
2578
|
+
*
|
|
2579
|
+
* @private
|
|
2580
|
+
* @param {Array|Object} collection The collection to iterate over.
|
|
2581
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
2582
|
+
* @returns {Array} Returns the new mapped array.
|
|
2583
|
+
*/
|
|
1165
2584
|
function baseMap(collection, iteratee) {
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
}
|
|
2585
|
+
var index = -1, result = isArrayLike(collection) ? Array(collection.length) : [];
|
|
2586
|
+
baseEach(collection, function(value, key, collection) {
|
|
2587
|
+
result[++index] = iteratee(value, key, collection);
|
|
2588
|
+
});
|
|
2589
|
+
return result;
|
|
2590
|
+
}
|
|
2591
|
+
//#endregion
|
|
2592
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSortBy.js
|
|
2593
|
+
/**
|
|
2594
|
+
* The base implementation of `_.sortBy` which uses `comparer` to define the
|
|
2595
|
+
* sort order of `array` and replaces criteria objects with their corresponding
|
|
2596
|
+
* values.
|
|
2597
|
+
*
|
|
2598
|
+
* @private
|
|
2599
|
+
* @param {Array} array The array to sort.
|
|
2600
|
+
* @param {Function} comparer The function to define sort order.
|
|
2601
|
+
* @returns {Array} Returns `array`.
|
|
2602
|
+
*/
|
|
1172
2603
|
function baseSortBy(array, comparer) {
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
2604
|
+
var length = array.length;
|
|
2605
|
+
array.sort(comparer);
|
|
2606
|
+
while (length--) array[length] = array[length].value;
|
|
2607
|
+
return array;
|
|
2608
|
+
}
|
|
2609
|
+
//#endregion
|
|
2610
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_compareAscending.js
|
|
2611
|
+
/**
|
|
2612
|
+
* Compares values to sort them in ascending order.
|
|
2613
|
+
*
|
|
2614
|
+
* @private
|
|
2615
|
+
* @param {*} value The value to compare.
|
|
2616
|
+
* @param {*} other The other value to compare.
|
|
2617
|
+
* @returns {number} Returns the sort order indicator for `value`.
|
|
2618
|
+
*/
|
|
1180
2619
|
function compareAscending(value, other) {
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
2620
|
+
if (value !== other) {
|
|
2621
|
+
var valIsDefined = value !== void 0, valIsNull = value === null, valIsReflexive = value === value, valIsSymbol = isSymbol(value);
|
|
2622
|
+
var othIsDefined = other !== void 0, othIsNull = other === null, othIsReflexive = other === other, othIsSymbol = isSymbol(other);
|
|
2623
|
+
if (!othIsNull && !othIsSymbol && !valIsSymbol && value > other || valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol || valIsNull && othIsDefined && othIsReflexive || !valIsDefined && othIsReflexive || !valIsReflexive) return 1;
|
|
2624
|
+
if (!valIsNull && !valIsSymbol && !othIsSymbol && value < other || othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol || othIsNull && valIsDefined && valIsReflexive || !othIsDefined && valIsReflexive || !othIsReflexive) return -1;
|
|
2625
|
+
}
|
|
2626
|
+
return 0;
|
|
2627
|
+
}
|
|
2628
|
+
//#endregion
|
|
2629
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_compareMultiple.js
|
|
2630
|
+
/**
|
|
2631
|
+
* Used by `_.orderBy` to compare multiple properties of a value to another
|
|
2632
|
+
* and stable sort them.
|
|
2633
|
+
*
|
|
2634
|
+
* If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
|
|
2635
|
+
* specify an order of "desc" for descending or "asc" for ascending sort order
|
|
2636
|
+
* of corresponding values.
|
|
2637
|
+
*
|
|
2638
|
+
* @private
|
|
2639
|
+
* @param {Object} object The object to compare.
|
|
2640
|
+
* @param {Object} other The other object to compare.
|
|
2641
|
+
* @param {boolean[]|string[]} orders The order to sort by for each property.
|
|
2642
|
+
* @returns {number} Returns the sort order indicator for `object`.
|
|
2643
|
+
*/
|
|
1193
2644
|
function compareMultiple(object, other, orders) {
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
2645
|
+
var index = -1, objCriteria = object.criteria, othCriteria = other.criteria, length = objCriteria.length, ordersLength = orders.length;
|
|
2646
|
+
while (++index < length) {
|
|
2647
|
+
var result = compareAscending(objCriteria[index], othCriteria[index]);
|
|
2648
|
+
if (result) {
|
|
2649
|
+
if (index >= ordersLength) return result;
|
|
2650
|
+
return result * (orders[index] == "desc" ? -1 : 1);
|
|
2651
|
+
}
|
|
2652
|
+
}
|
|
2653
|
+
return object.index - other.index;
|
|
2654
|
+
}
|
|
2655
|
+
//#endregion
|
|
2656
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseOrderBy.js
|
|
2657
|
+
/**
|
|
2658
|
+
* The base implementation of `_.orderBy` without param guards.
|
|
2659
|
+
*
|
|
2660
|
+
* @private
|
|
2661
|
+
* @param {Array|Object} collection The collection to iterate over.
|
|
2662
|
+
* @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
|
|
2663
|
+
* @param {string[]} orders The sort orders of `iteratees`.
|
|
2664
|
+
* @returns {Array} Returns the new sorted array.
|
|
2665
|
+
*/
|
|
1207
2666
|
function baseOrderBy(collection, iteratees, orders) {
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
2667
|
+
if (iteratees.length) iteratees = arrayMap(iteratees, function(iteratee) {
|
|
2668
|
+
if (isArray(iteratee)) return function(value) {
|
|
2669
|
+
return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);
|
|
2670
|
+
};
|
|
2671
|
+
return iteratee;
|
|
2672
|
+
});
|
|
2673
|
+
else iteratees = [identity];
|
|
2674
|
+
var index = -1;
|
|
2675
|
+
iteratees = arrayMap(iteratees, baseUnary(baseIteratee));
|
|
2676
|
+
return baseSortBy(baseMap(collection, function(value, key, collection) {
|
|
2677
|
+
return {
|
|
2678
|
+
"criteria": arrayMap(iteratees, function(iteratee) {
|
|
2679
|
+
return iteratee(value);
|
|
2680
|
+
}),
|
|
2681
|
+
"index": ++index,
|
|
2682
|
+
"value": value
|
|
2683
|
+
};
|
|
2684
|
+
}), function(object, other) {
|
|
2685
|
+
return compareMultiple(object, other, orders);
|
|
2686
|
+
});
|
|
2687
|
+
}
|
|
2688
|
+
//#endregion
|
|
2689
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/sortBy.js
|
|
2690
|
+
/**
|
|
2691
|
+
* Creates an array of elements, sorted in ascending order by the results of
|
|
2692
|
+
* running each element in a collection thru each iteratee. This method
|
|
2693
|
+
* performs a stable sort, that is, it preserves the original sort order of
|
|
2694
|
+
* equal elements. The iteratees are invoked with one argument: (value).
|
|
2695
|
+
*
|
|
2696
|
+
* @static
|
|
2697
|
+
* @memberOf _
|
|
2698
|
+
* @since 0.1.0
|
|
2699
|
+
* @category Collection
|
|
2700
|
+
* @param {Array|Object} collection The collection to iterate over.
|
|
2701
|
+
* @param {...(Function|Function[])} [iteratees=[_.identity]]
|
|
2702
|
+
* The iteratees to sort by.
|
|
2703
|
+
* @returns {Array} Returns the new sorted array.
|
|
2704
|
+
* @example
|
|
2705
|
+
*
|
|
2706
|
+
* var users = [
|
|
2707
|
+
* { 'user': 'fred', 'age': 48 },
|
|
2708
|
+
* { 'user': 'barney', 'age': 36 },
|
|
2709
|
+
* { 'user': 'fred', 'age': 30 },
|
|
2710
|
+
* { 'user': 'barney', 'age': 34 }
|
|
2711
|
+
* ];
|
|
2712
|
+
*
|
|
2713
|
+
* _.sortBy(users, [function(o) { return o.user; }]);
|
|
2714
|
+
* // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]
|
|
2715
|
+
*
|
|
2716
|
+
* _.sortBy(users, ['user', 'age']);
|
|
2717
|
+
* // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]
|
|
2718
|
+
*/
|
|
1232
2719
|
var sortBy = baseRest(function(collection, iteratees) {
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
iteratees = [];
|
|
1239
|
-
} else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {
|
|
1240
|
-
iteratees = [iteratees[0]];
|
|
1241
|
-
}
|
|
1242
|
-
return baseOrderBy(collection, baseFlatten(iteratees), []);
|
|
2720
|
+
if (collection == null) return [];
|
|
2721
|
+
var length = iteratees.length;
|
|
2722
|
+
if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) iteratees = [];
|
|
2723
|
+
else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) iteratees = [iteratees[0]];
|
|
2724
|
+
return baseOrderBy(collection, baseFlatten(iteratees, 1), []);
|
|
1243
2725
|
});
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
};
|
|
1322
|
-
}
|
|
2726
|
+
//#endregion
|
|
2727
|
+
//#region src/components/Display.vue?vue&type=script&setup=true&lang.ts
|
|
2728
|
+
var _hoisted_1 = { class: "tce-modal-root text-center ma-4" };
|
|
2729
|
+
var Display_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
2730
|
+
__name: "Display",
|
|
2731
|
+
props: {
|
|
2732
|
+
element: {},
|
|
2733
|
+
userState: {}
|
|
2734
|
+
},
|
|
2735
|
+
emits: ["interaction"],
|
|
2736
|
+
setup(__props, { emit: __emit }) {
|
|
2737
|
+
const props = __props;
|
|
2738
|
+
const emit = __emit;
|
|
2739
|
+
const isOpen = (0, vue.ref)(false);
|
|
2740
|
+
const viewed = (0, vue.computed)(() => Boolean(props.userState?.openedAt));
|
|
2741
|
+
const embeds = (0, vue.computed)(() => sortBy(props.element.data.embeds, "position"));
|
|
2742
|
+
(0, vue.watch)(isOpen, (open) => {
|
|
2743
|
+
if (open) emit("interaction", { openedAt: Date.now() });
|
|
2744
|
+
});
|
|
2745
|
+
return (_ctx, _cache) => {
|
|
2746
|
+
const _component_VBtn = (0, vue.resolveComponent)("VBtn");
|
|
2747
|
+
const _component_VCardTitle = (0, vue.resolveComponent)("VCardTitle");
|
|
2748
|
+
const _component_VDivider = (0, vue.resolveComponent)("VDivider");
|
|
2749
|
+
const _component_VAlert = (0, vue.resolveComponent)("VAlert");
|
|
2750
|
+
const _component_TailorEmbeddedContainer = (0, vue.resolveComponent)("TailorEmbeddedContainer");
|
|
2751
|
+
const _component_VCardText = (0, vue.resolveComponent)("VCardText");
|
|
2752
|
+
const _component_VCard = (0, vue.resolveComponent)("VCard");
|
|
2753
|
+
const _component_VDialog = (0, vue.resolveComponent)("VDialog");
|
|
2754
|
+
return (0, vue.openBlock)(), (0, vue.createElementBlock)("div", _hoisted_1, [(0, vue.createVNode)(_component_VDialog, {
|
|
2755
|
+
modelValue: isOpen.value,
|
|
2756
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isOpen.value = $event),
|
|
2757
|
+
"max-width": "600",
|
|
2758
|
+
scrollable: ""
|
|
2759
|
+
}, {
|
|
2760
|
+
activator: (0, vue.withCtx)(({ props: activatorProps }) => [(0, vue.createVNode)(_component_VBtn, (0, vue.mergeProps)(activatorProps, {
|
|
2761
|
+
"append-icon": viewed.value ? "mdi-check" : void 0,
|
|
2762
|
+
color: viewed.value ? "success" : "primary",
|
|
2763
|
+
text: __props.element.data.title || "Open Modal",
|
|
2764
|
+
rounded: "md",
|
|
2765
|
+
variant: "tonal"
|
|
2766
|
+
}), null, 16, [
|
|
2767
|
+
"append-icon",
|
|
2768
|
+
"color",
|
|
2769
|
+
"text"
|
|
2770
|
+
])]),
|
|
2771
|
+
default: (0, vue.withCtx)(({ isActive }) => [(0, vue.createVNode)(_component_VCard, null, {
|
|
2772
|
+
default: (0, vue.withCtx)(() => [
|
|
2773
|
+
(0, vue.createVNode)(_component_VCardTitle, { class: "d-flex justify-space-between align-center" }, {
|
|
2774
|
+
default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)(__props.element.data.title || "Modal Content") + " ", 1), (0, vue.createVNode)(_component_VBtn, {
|
|
2775
|
+
icon: "mdi-close",
|
|
2776
|
+
variant: "text",
|
|
2777
|
+
onClick: ($event) => isActive.value = false
|
|
2778
|
+
}, null, 8, ["onClick"])]),
|
|
2779
|
+
_: 2
|
|
2780
|
+
}, 1024),
|
|
2781
|
+
(0, vue.createVNode)(_component_VDivider),
|
|
2782
|
+
(0, vue.createVNode)(_component_VCardText, null, {
|
|
2783
|
+
default: (0, vue.withCtx)(() => [!embeds.value.length ? ((0, vue.openBlock)(), (0, vue.createBlock)(_component_VAlert, {
|
|
2784
|
+
key: 0,
|
|
2785
|
+
type: "info",
|
|
2786
|
+
variant: "tonal"
|
|
2787
|
+
}, {
|
|
2788
|
+
default: (0, vue.withCtx)(() => [..._cache[1] || (_cache[1] = [(0, vue.createTextVNode)(" No content elements added to this item. ", -1)])]),
|
|
2789
|
+
_: 1
|
|
2790
|
+
})) : ((0, vue.openBlock)(), (0, vue.createBlock)(_component_TailorEmbeddedContainer, {
|
|
2791
|
+
key: 1,
|
|
2792
|
+
elements: embeds.value
|
|
2793
|
+
}, null, 8, ["elements"]))]),
|
|
2794
|
+
_: 1
|
|
2795
|
+
})
|
|
2796
|
+
]),
|
|
2797
|
+
_: 2
|
|
2798
|
+
}, 1024)]),
|
|
2799
|
+
_: 1
|
|
2800
|
+
}, 8, ["modelValue"])]);
|
|
2801
|
+
};
|
|
2802
|
+
}
|
|
1323
2803
|
});
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
2804
|
+
//#endregion
|
|
2805
|
+
//#region \0plugin-vue:export-helper
|
|
2806
|
+
var _plugin_vue_export_helper_default = (sfc, props) => {
|
|
2807
|
+
const target = sfc.__vccOpts || sfc;
|
|
2808
|
+
for (const [key, val] of props) target[key] = val;
|
|
2809
|
+
return target;
|
|
1330
2810
|
};
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
2811
|
+
//#endregion
|
|
2812
|
+
//#region src/components/Display.vue
|
|
2813
|
+
var Display_default = /* @__PURE__ */ _plugin_vue_export_helper_default(Display_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-22984316"]]);
|
|
2814
|
+
//#endregion
|
|
2815
|
+
//#region src/index.ts
|
|
2816
|
+
var manifest = {
|
|
2817
|
+
...manifest$1,
|
|
2818
|
+
Display: Display_default
|
|
1335
2819
|
};
|
|
1336
|
-
|
|
2820
|
+
//#endregion
|
|
2821
|
+
exports.Display = Display_default;
|
|
1337
2822
|
exports.default = manifest;
|