@tailor-cms/ce-flashcards-display 0.0.1 → 0.0.2

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