@basmilius/apple-devices 0.9.9 → 0.9.11

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.
Files changed (2) hide show
  1. package/dist/index.mjs +12 -1934
  2. package/package.json +5 -7
package/dist/index.mjs CHANGED
@@ -4,1931 +4,10 @@ import { EventEmitter } from "node:events";
4
4
  import { waitFor } from "@basmilius/apple-common";
5
5
  import { Protocol as Protocol$1, convertAttentionState } from "@basmilius/apple-companion-link";
6
6
 
7
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_freeGlobal.js
8
- /** Detect free variable `global` from Node.js. */
9
- var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
10
-
11
- //#endregion
12
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_root.js
13
- /** Detect free variable `self`. */
14
- var freeSelf = typeof self == "object" && self && self.Object === Object && self;
15
- /** Used as a reference to the global object. */
16
- var root = freeGlobal || freeSelf || Function("return this")();
17
-
18
- //#endregion
19
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Symbol.js
20
- /** Built-in value references. */
21
- var Symbol$1 = root.Symbol;
22
-
23
- //#endregion
24
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getRawTag.js
25
- /** Used for built-in method references. */
26
- var objectProto$4 = Object.prototype;
27
- /** Used to check objects for own properties. */
28
- var hasOwnProperty$8 = objectProto$4.hasOwnProperty;
29
- /**
30
- * Used to resolve the
31
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
32
- * of values.
33
- */
34
- var nativeObjectToString$1 = objectProto$4.toString;
35
- /** Built-in value references. */
36
- var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : void 0;
37
- /**
38
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
39
- *
40
- * @private
41
- * @param {*} value The value to query.
42
- * @returns {string} Returns the raw `toStringTag`.
43
- */
44
- function getRawTag(value) {
45
- var isOwn = hasOwnProperty$8.call(value, symToStringTag$1), tag = value[symToStringTag$1];
46
- try {
47
- value[symToStringTag$1] = void 0;
48
- var unmasked = true;
49
- } catch (e) {}
50
- var result = nativeObjectToString$1.call(value);
51
- if (unmasked) if (isOwn) value[symToStringTag$1] = tag;
52
- else delete value[symToStringTag$1];
53
- return result;
54
- }
55
-
56
- //#endregion
57
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_objectToString.js
58
- /**
59
- * Used to resolve the
60
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
61
- * of values.
62
- */
63
- var nativeObjectToString = Object.prototype.toString;
64
- /**
65
- * Converts `value` to a string using `Object.prototype.toString`.
66
- *
67
- * @private
68
- * @param {*} value The value to convert.
69
- * @returns {string} Returns the converted string.
70
- */
71
- function objectToString(value) {
72
- return nativeObjectToString.call(value);
73
- }
74
-
75
- //#endregion
76
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseGetTag.js
77
- /** `Object#toString` result references. */
78
- var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
79
- /** Built-in value references. */
80
- var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : void 0;
81
- /**
82
- * The base implementation of `getTag` without fallbacks for buggy environments.
83
- *
84
- * @private
85
- * @param {*} value The value to query.
86
- * @returns {string} Returns the `toStringTag`.
87
- */
88
- function baseGetTag(value) {
89
- if (value == null) return value === void 0 ? undefinedTag : nullTag;
90
- return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
91
- }
92
-
93
- //#endregion
94
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isObjectLike.js
95
- /**
96
- * Checks if `value` is object-like. A value is object-like if it's not `null`
97
- * and has a `typeof` result of "object".
98
- *
99
- * @static
100
- * @memberOf _
101
- * @since 4.0.0
102
- * @category Lang
103
- * @param {*} value The value to check.
104
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
105
- * @example
106
- *
107
- * _.isObjectLike({});
108
- * // => true
109
- *
110
- * _.isObjectLike([1, 2, 3]);
111
- * // => true
112
- *
113
- * _.isObjectLike(_.noop);
114
- * // => false
115
- *
116
- * _.isObjectLike(null);
117
- * // => false
118
- */
119
- function isObjectLike(value) {
120
- return value != null && typeof value == "object";
121
- }
122
-
123
- //#endregion
124
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArray.js
125
- /**
126
- * Checks if `value` is classified as an `Array` object.
127
- *
128
- * @static
129
- * @memberOf _
130
- * @since 0.1.0
131
- * @category Lang
132
- * @param {*} value The value to check.
133
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
134
- * @example
135
- *
136
- * _.isArray([1, 2, 3]);
137
- * // => true
138
- *
139
- * _.isArray(document.body.children);
140
- * // => false
141
- *
142
- * _.isArray('abc');
143
- * // => false
144
- *
145
- * _.isArray(_.noop);
146
- * // => false
147
- */
148
- var isArray = Array.isArray;
149
-
150
- //#endregion
151
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isObject.js
152
- /**
153
- * Checks if `value` is the
154
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
155
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
156
- *
157
- * @static
158
- * @memberOf _
159
- * @since 0.1.0
160
- * @category Lang
161
- * @param {*} value The value to check.
162
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
163
- * @example
164
- *
165
- * _.isObject({});
166
- * // => true
167
- *
168
- * _.isObject([1, 2, 3]);
169
- * // => true
170
- *
171
- * _.isObject(_.noop);
172
- * // => true
173
- *
174
- * _.isObject(null);
175
- * // => false
176
- */
177
- function isObject(value) {
178
- var type = typeof value;
179
- return value != null && (type == "object" || type == "function");
180
- }
181
-
182
- //#endregion
183
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/identity.js
184
- /**
185
- * This method returns the first argument it receives.
186
- *
187
- * @static
188
- * @since 0.1.0
189
- * @memberOf _
190
- * @category Util
191
- * @param {*} value Any value.
192
- * @returns {*} Returns `value`.
193
- * @example
194
- *
195
- * var object = { 'a': 1 };
196
- *
197
- * console.log(_.identity(object) === object);
198
- * // => true
199
- */
200
- function identity(value) {
201
- return value;
202
- }
203
-
204
- //#endregion
205
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isFunction.js
206
- /** `Object#toString` result references. */
207
- var asyncTag = "[object AsyncFunction]", funcTag$1 = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
208
- /**
209
- * Checks if `value` is classified as a `Function` object.
210
- *
211
- * @static
212
- * @memberOf _
213
- * @since 0.1.0
214
- * @category Lang
215
- * @param {*} value The value to check.
216
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
217
- * @example
218
- *
219
- * _.isFunction(_);
220
- * // => true
221
- *
222
- * _.isFunction(/abc/);
223
- * // => false
224
- */
225
- function isFunction(value) {
226
- if (!isObject(value)) return false;
227
- var tag = baseGetTag(value);
228
- return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
229
- }
230
-
231
- //#endregion
232
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_coreJsData.js
233
- /** Used to detect overreaching core-js shims. */
234
- var coreJsData = root["__core-js_shared__"];
235
-
236
- //#endregion
237
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isMasked.js
238
- /** Used to detect methods masquerading as native. */
239
- var maskSrcKey = function() {
240
- var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
241
- return uid ? "Symbol(src)_1." + uid : "";
242
- }();
243
- /**
244
- * Checks if `func` has its source masked.
245
- *
246
- * @private
247
- * @param {Function} func The function to check.
248
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
249
- */
250
- function isMasked(func) {
251
- return !!maskSrcKey && maskSrcKey in func;
252
- }
253
-
254
- //#endregion
255
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_toSource.js
256
- /** Used to resolve the decompiled source of functions. */
257
- var funcToString$2 = Function.prototype.toString;
258
- /**
259
- * Converts `func` to its source code.
260
- *
261
- * @private
262
- * @param {Function} func The function to convert.
263
- * @returns {string} Returns the source code.
264
- */
265
- function toSource(func) {
266
- if (func != null) {
267
- try {
268
- return funcToString$2.call(func);
269
- } catch (e) {}
270
- try {
271
- return func + "";
272
- } catch (e) {}
273
- }
274
- return "";
275
- }
276
-
277
- //#endregion
278
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsNative.js
279
- /**
280
- * Used to match `RegExp`
281
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
282
- */
283
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
284
- /** Used to detect host constructors (Safari). */
285
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
286
- /** Used for built-in method references. */
287
- var funcProto$1 = Function.prototype, objectProto$3 = Object.prototype;
288
- /** Used to resolve the decompiled source of functions. */
289
- var funcToString$1 = funcProto$1.toString;
290
- /** Used to check objects for own properties. */
291
- var hasOwnProperty$7 = objectProto$3.hasOwnProperty;
292
- /** Used to detect if a method is native. */
293
- var reIsNative = RegExp("^" + funcToString$1.call(hasOwnProperty$7).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
294
- /**
295
- * The base implementation of `_.isNative` without bad shim checks.
296
- *
297
- * @private
298
- * @param {*} value The value to check.
299
- * @returns {boolean} Returns `true` if `value` is a native function,
300
- * else `false`.
301
- */
302
- function baseIsNative(value) {
303
- if (!isObject(value) || isMasked(value)) return false;
304
- return (isFunction(value) ? reIsNative : reIsHostCtor).test(toSource(value));
305
- }
306
-
307
- //#endregion
308
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getValue.js
309
- /**
310
- * Gets the value at `key` of `object`.
311
- *
312
- * @private
313
- * @param {Object} [object] The object to query.
314
- * @param {string} key The key of the property to get.
315
- * @returns {*} Returns the property value.
316
- */
317
- function getValue(object, key) {
318
- return object == null ? void 0 : object[key];
319
- }
320
-
321
- //#endregion
322
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getNative.js
323
- /**
324
- * Gets the native function at `key` of `object`.
325
- *
326
- * @private
327
- * @param {Object} object The object to query.
328
- * @param {string} key The key of the method to get.
329
- * @returns {*} Returns the function if it's native, else `undefined`.
330
- */
331
- function getNative(object, key) {
332
- var value = getValue(object, key);
333
- return baseIsNative(value) ? value : void 0;
334
- }
335
-
336
- //#endregion
337
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseCreate.js
338
- /** Built-in value references. */
339
- var objectCreate = Object.create;
340
- /**
341
- * The base implementation of `_.create` without support for assigning
342
- * properties to the created object.
343
- *
344
- * @private
345
- * @param {Object} proto The object to inherit from.
346
- * @returns {Object} Returns the new object.
347
- */
348
- var baseCreate = function() {
349
- function object() {}
350
- return function(proto) {
351
- if (!isObject(proto)) return {};
352
- if (objectCreate) return objectCreate(proto);
353
- object.prototype = proto;
354
- var result = new object();
355
- object.prototype = void 0;
356
- return result;
357
- };
358
- }();
359
-
360
- //#endregion
361
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_apply.js
362
- /**
363
- * A faster alternative to `Function#apply`, this function invokes `func`
364
- * with the `this` binding of `thisArg` and the arguments of `args`.
365
- *
366
- * @private
367
- * @param {Function} func The function to invoke.
368
- * @param {*} thisArg The `this` binding of `func`.
369
- * @param {Array} args The arguments to invoke `func` with.
370
- * @returns {*} Returns the result of `func`.
371
- */
372
- function apply(func, thisArg, args) {
373
- switch (args.length) {
374
- case 0: return func.call(thisArg);
375
- case 1: return func.call(thisArg, args[0]);
376
- case 2: return func.call(thisArg, args[0], args[1]);
377
- case 3: return func.call(thisArg, args[0], args[1], args[2]);
378
- }
379
- return func.apply(thisArg, args);
380
- }
381
-
382
- //#endregion
383
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copyArray.js
384
- /**
385
- * Copies the values of `source` to `array`.
386
- *
387
- * @private
388
- * @param {Array} source The array to copy values from.
389
- * @param {Array} [array=[]] The array to copy values to.
390
- * @returns {Array} Returns `array`.
391
- */
392
- function copyArray(source, array) {
393
- var index = -1, length = source.length;
394
- array || (array = Array(length));
395
- while (++index < length) array[index] = source[index];
396
- return array;
397
- }
398
-
399
- //#endregion
400
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_shortOut.js
401
- /** Used to detect hot functions by number of calls within a span of milliseconds. */
402
- var HOT_COUNT = 800, HOT_SPAN = 16;
403
- var nativeNow = Date.now;
404
- /**
405
- * Creates a function that'll short out and invoke `identity` instead
406
- * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
407
- * milliseconds.
408
- *
409
- * @private
410
- * @param {Function} func The function to restrict.
411
- * @returns {Function} Returns the new shortable function.
412
- */
413
- function shortOut(func) {
414
- var count = 0, lastCalled = 0;
415
- return function() {
416
- var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
417
- lastCalled = stamp;
418
- if (remaining > 0) {
419
- if (++count >= HOT_COUNT) return arguments[0];
420
- } else count = 0;
421
- return func.apply(void 0, arguments);
422
- };
423
- }
424
-
425
- //#endregion
426
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/constant.js
427
- /**
428
- * Creates a function that returns `value`.
429
- *
430
- * @static
431
- * @memberOf _
432
- * @since 2.4.0
433
- * @category Util
434
- * @param {*} value The value to return from the new function.
435
- * @returns {Function} Returns the new constant function.
436
- * @example
437
- *
438
- * var objects = _.times(2, _.constant({ 'a': 1 }));
439
- *
440
- * console.log(objects);
441
- * // => [{ 'a': 1 }, { 'a': 1 }]
442
- *
443
- * console.log(objects[0] === objects[1]);
444
- * // => true
445
- */
446
- function constant(value) {
447
- return function() {
448
- return value;
449
- };
450
- }
451
-
452
- //#endregion
453
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_defineProperty.js
454
- var defineProperty = function() {
455
- try {
456
- var func = getNative(Object, "defineProperty");
457
- func({}, "", {});
458
- return func;
459
- } catch (e) {}
460
- }();
461
-
462
- //#endregion
463
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseSetToString.js
464
- /**
465
- * The base implementation of `setToString` without support for hot loop shorting.
466
- *
467
- * @private
468
- * @param {Function} func The function to modify.
469
- * @param {Function} string The `toString` result.
470
- * @returns {Function} Returns `func`.
471
- */
472
- var baseSetToString = !defineProperty ? identity : function(func, string) {
473
- return defineProperty(func, "toString", {
474
- "configurable": true,
475
- "enumerable": false,
476
- "value": constant(string),
477
- "writable": true
478
- });
479
- };
480
-
481
- //#endregion
482
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_setToString.js
483
- /**
484
- * Sets the `toString` method of `func` to return `string`.
485
- *
486
- * @private
487
- * @param {Function} func The function to modify.
488
- * @param {Function} string The `toString` result.
489
- * @returns {Function} Returns `func`.
490
- */
491
- var setToString = shortOut(baseSetToString);
492
-
493
- //#endregion
494
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isIndex.js
495
- /** Used as references for various `Number` constants. */
496
- var MAX_SAFE_INTEGER$1 = 9007199254740991;
497
- /** Used to detect unsigned integer values. */
498
- var reIsUint = /^(?:0|[1-9]\d*)$/;
499
- /**
500
- * Checks if `value` is a valid array-like index.
501
- *
502
- * @private
503
- * @param {*} value The value to check.
504
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
505
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
506
- */
507
- function isIndex(value, length) {
508
- var type = typeof value;
509
- length = length == null ? MAX_SAFE_INTEGER$1 : length;
510
- return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
511
- }
512
-
513
- //#endregion
514
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseAssignValue.js
515
- /**
516
- * The base implementation of `assignValue` and `assignMergeValue` without
517
- * value checks.
518
- *
519
- * @private
520
- * @param {Object} object The object to modify.
521
- * @param {string} key The key of the property to assign.
522
- * @param {*} value The value to assign.
523
- */
524
- function baseAssignValue(object, key, value) {
525
- if (key == "__proto__" && defineProperty) defineProperty(object, key, {
526
- "configurable": true,
527
- "enumerable": true,
528
- "value": value,
529
- "writable": true
530
- });
531
- else object[key] = value;
532
- }
533
-
534
- //#endregion
535
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/eq.js
536
- /**
537
- * Performs a
538
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
539
- * comparison between two values to determine if they are equivalent.
540
- *
541
- * @static
542
- * @memberOf _
543
- * @since 4.0.0
544
- * @category Lang
545
- * @param {*} value The value to compare.
546
- * @param {*} other The other value to compare.
547
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
548
- * @example
549
- *
550
- * var object = { 'a': 1 };
551
- * var other = { 'a': 1 };
552
- *
553
- * _.eq(object, object);
554
- * // => true
555
- *
556
- * _.eq(object, other);
557
- * // => false
558
- *
559
- * _.eq('a', 'a');
560
- * // => true
561
- *
562
- * _.eq('a', Object('a'));
563
- * // => false
564
- *
565
- * _.eq(NaN, NaN);
566
- * // => true
567
- */
568
- function eq(value, other) {
569
- return value === other || value !== value && other !== other;
570
- }
571
-
572
- //#endregion
573
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_assignValue.js
574
- /** Used to check objects for own properties. */
575
- var hasOwnProperty$6 = Object.prototype.hasOwnProperty;
576
- /**
577
- * Assigns `value` to `key` of `object` if the existing value is not equivalent
578
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
579
- * for equality comparisons.
580
- *
581
- * @private
582
- * @param {Object} object The object to modify.
583
- * @param {string} key The key of the property to assign.
584
- * @param {*} value The value to assign.
585
- */
586
- function assignValue(object, key, value) {
587
- var objValue = object[key];
588
- if (!(hasOwnProperty$6.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) baseAssignValue(object, key, value);
589
- }
590
-
591
- //#endregion
592
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copyObject.js
593
- /**
594
- * Copies properties of `source` to `object`.
595
- *
596
- * @private
597
- * @param {Object} source The object to copy properties from.
598
- * @param {Array} props The property identifiers to copy.
599
- * @param {Object} [object={}] The object to copy properties to.
600
- * @param {Function} [customizer] The function to customize copied values.
601
- * @returns {Object} Returns `object`.
602
- */
603
- function copyObject(source, props, object, customizer) {
604
- var isNew = !object;
605
- object || (object = {});
606
- var index = -1, length = props.length;
607
- while (++index < length) {
608
- var key = props[index];
609
- var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
610
- if (newValue === void 0) newValue = source[key];
611
- if (isNew) baseAssignValue(object, key, newValue);
612
- else assignValue(object, key, newValue);
613
- }
614
- return object;
615
- }
616
-
617
- //#endregion
618
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_overRest.js
619
- var nativeMax = Math.max;
620
- /**
621
- * A specialized version of `baseRest` which transforms the rest array.
622
- *
623
- * @private
624
- * @param {Function} func The function to apply a rest parameter to.
625
- * @param {number} [start=func.length-1] The start position of the rest parameter.
626
- * @param {Function} transform The rest array transform.
627
- * @returns {Function} Returns the new function.
628
- */
629
- function overRest(func, start, transform) {
630
- start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
631
- return function() {
632
- var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
633
- while (++index < length) array[index] = args[start + index];
634
- index = -1;
635
- var otherArgs = Array(start + 1);
636
- while (++index < start) otherArgs[index] = args[index];
637
- otherArgs[start] = transform(array);
638
- return apply(func, this, otherArgs);
639
- };
640
- }
641
-
642
- //#endregion
643
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseRest.js
644
- /**
645
- * The base implementation of `_.rest` which doesn't validate or coerce arguments.
646
- *
647
- * @private
648
- * @param {Function} func The function to apply a rest parameter to.
649
- * @param {number} [start=func.length-1] The start position of the rest parameter.
650
- * @returns {Function} Returns the new function.
651
- */
652
- function baseRest(func, start) {
653
- return setToString(overRest(func, start, identity), func + "");
654
- }
655
-
656
- //#endregion
657
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isLength.js
658
- /** Used as references for various `Number` constants. */
659
- var MAX_SAFE_INTEGER = 9007199254740991;
660
- /**
661
- * Checks if `value` is a valid array-like length.
662
- *
663
- * **Note:** This method is loosely based on
664
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
665
- *
666
- * @static
667
- * @memberOf _
668
- * @since 4.0.0
669
- * @category Lang
670
- * @param {*} value The value to check.
671
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
672
- * @example
673
- *
674
- * _.isLength(3);
675
- * // => true
676
- *
677
- * _.isLength(Number.MIN_VALUE);
678
- * // => false
679
- *
680
- * _.isLength(Infinity);
681
- * // => false
682
- *
683
- * _.isLength('3');
684
- * // => false
685
- */
686
- function isLength(value) {
687
- return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
688
- }
689
-
690
- //#endregion
691
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArrayLike.js
692
- /**
693
- * Checks if `value` is array-like. A value is considered array-like if it's
694
- * not a function and has a `value.length` that's an integer greater than or
695
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
696
- *
697
- * @static
698
- * @memberOf _
699
- * @since 4.0.0
700
- * @category Lang
701
- * @param {*} value The value to check.
702
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
703
- * @example
704
- *
705
- * _.isArrayLike([1, 2, 3]);
706
- * // => true
707
- *
708
- * _.isArrayLike(document.body.children);
709
- * // => true
710
- *
711
- * _.isArrayLike('abc');
712
- * // => true
713
- *
714
- * _.isArrayLike(_.noop);
715
- * // => false
716
- */
717
- function isArrayLike(value) {
718
- return value != null && isLength(value.length) && !isFunction(value);
719
- }
720
-
721
- //#endregion
722
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isIterateeCall.js
723
- /**
724
- * Checks if the given arguments are from an iteratee call.
725
- *
726
- * @private
727
- * @param {*} value The potential iteratee value argument.
728
- * @param {*} index The potential iteratee index or key argument.
729
- * @param {*} object The potential iteratee object argument.
730
- * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
731
- * else `false`.
732
- */
733
- function isIterateeCall(value, index, object) {
734
- if (!isObject(object)) return false;
735
- var type = typeof index;
736
- if (type == "number" ? isArrayLike(object) && isIndex(index, object.length) : type == "string" && index in object) return eq(object[index], value);
737
- return false;
738
- }
739
-
740
- //#endregion
741
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_createAssigner.js
742
- /**
743
- * Creates a function like `_.assign`.
744
- *
745
- * @private
746
- * @param {Function} assigner The function to assign values.
747
- * @returns {Function} Returns the new assigner function.
748
- */
749
- function createAssigner(assigner) {
750
- return baseRest(function(object, sources) {
751
- var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0;
752
- customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0;
753
- if (guard && isIterateeCall(sources[0], sources[1], guard)) {
754
- customizer = length < 3 ? void 0 : customizer;
755
- length = 1;
756
- }
757
- object = Object(object);
758
- while (++index < length) {
759
- var source = sources[index];
760
- if (source) assigner(object, source, index, customizer);
761
- }
762
- return object;
763
- });
764
- }
765
-
766
- //#endregion
767
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isPrototype.js
768
- /** Used for built-in method references. */
769
- var objectProto$2 = Object.prototype;
770
- /**
771
- * Checks if `value` is likely a prototype object.
772
- *
773
- * @private
774
- * @param {*} value The value to check.
775
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
776
- */
777
- function isPrototype(value) {
778
- var Ctor = value && value.constructor;
779
- return value === (typeof Ctor == "function" && Ctor.prototype || objectProto$2);
780
- }
781
-
782
- //#endregion
783
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseTimes.js
784
- /**
785
- * The base implementation of `_.times` without support for iteratee shorthands
786
- * or max array length checks.
787
- *
788
- * @private
789
- * @param {number} n The number of times to invoke `iteratee`.
790
- * @param {Function} iteratee The function invoked per iteration.
791
- * @returns {Array} Returns the array of results.
792
- */
793
- function baseTimes(n, iteratee) {
794
- var index = -1, result = Array(n);
795
- while (++index < n) result[index] = iteratee(index);
796
- return result;
797
- }
798
-
799
- //#endregion
800
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsArguments.js
801
- /** `Object#toString` result references. */
802
- var argsTag$1 = "[object Arguments]";
803
- /**
804
- * The base implementation of `_.isArguments`.
805
- *
806
- * @private
807
- * @param {*} value The value to check.
808
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
809
- */
810
- function baseIsArguments(value) {
811
- return isObjectLike(value) && baseGetTag(value) == argsTag$1;
812
- }
813
-
814
- //#endregion
815
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArguments.js
816
- /** Used for built-in method references. */
817
- var objectProto$1 = Object.prototype;
818
- /** Used to check objects for own properties. */
819
- var hasOwnProperty$5 = objectProto$1.hasOwnProperty;
820
- /** Built-in value references. */
821
- var propertyIsEnumerable = objectProto$1.propertyIsEnumerable;
822
- /**
823
- * Checks if `value` is likely an `arguments` object.
824
- *
825
- * @static
826
- * @memberOf _
827
- * @since 0.1.0
828
- * @category Lang
829
- * @param {*} value The value to check.
830
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
831
- * else `false`.
832
- * @example
833
- *
834
- * _.isArguments(function() { return arguments; }());
835
- * // => true
836
- *
837
- * _.isArguments([1, 2, 3]);
838
- * // => false
839
- */
840
- var isArguments = baseIsArguments(function() {
841
- return arguments;
842
- }()) ? baseIsArguments : function(value) {
843
- return isObjectLike(value) && hasOwnProperty$5.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
844
- };
845
-
846
- //#endregion
847
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/stubFalse.js
848
- /**
849
- * This method returns `false`.
850
- *
851
- * @static
852
- * @memberOf _
853
- * @since 4.13.0
854
- * @category Util
855
- * @returns {boolean} Returns `false`.
856
- * @example
857
- *
858
- * _.times(2, _.stubFalse);
859
- * // => [false, false]
860
- */
861
- function stubFalse() {
862
- return false;
863
- }
864
-
865
- //#endregion
866
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isBuffer.js
867
- /** Detect free variable `exports`. */
868
- var freeExports$2 = typeof exports == "object" && exports && !exports.nodeType && exports;
869
- /** Detect free variable `module`. */
870
- var freeModule$2 = freeExports$2 && typeof module == "object" && module && !module.nodeType && module;
871
- /** Built-in value references. */
872
- var Buffer$1 = freeModule$2 && freeModule$2.exports === freeExports$2 ? root.Buffer : void 0;
873
- /**
874
- * Checks if `value` is a buffer.
875
- *
876
- * @static
877
- * @memberOf _
878
- * @since 4.3.0
879
- * @category Lang
880
- * @param {*} value The value to check.
881
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
882
- * @example
883
- *
884
- * _.isBuffer(new Buffer(2));
885
- * // => true
886
- *
887
- * _.isBuffer(new Uint8Array(2));
888
- * // => false
889
- */
890
- var isBuffer = (Buffer$1 ? Buffer$1.isBuffer : void 0) || stubFalse;
891
-
892
- //#endregion
893
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsTypedArray.js
894
- /** `Object#toString` result references. */
895
- var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag$1 = "[object Object]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", weakMapTag = "[object WeakMap]";
896
- var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[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]";
897
- /** Used to identify `toStringTag` values of typed arrays. */
898
- var typedArrayTags = {};
899
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
900
- typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag$1] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
901
- /**
902
- * The base implementation of `_.isTypedArray` without Node.js optimizations.
903
- *
904
- * @private
905
- * @param {*} value The value to check.
906
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
907
- */
908
- function baseIsTypedArray(value) {
909
- return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
910
- }
911
-
912
- //#endregion
913
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseUnary.js
914
- /**
915
- * The base implementation of `_.unary` without support for storing metadata.
916
- *
917
- * @private
918
- * @param {Function} func The function to cap arguments for.
919
- * @returns {Function} Returns the new capped function.
920
- */
921
- function baseUnary(func) {
922
- return function(value) {
923
- return func(value);
924
- };
925
- }
926
-
927
- //#endregion
928
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nodeUtil.js
929
- /** Detect free variable `exports`. */
930
- var freeExports$1 = typeof exports == "object" && exports && !exports.nodeType && exports;
931
- /** Detect free variable `module`. */
932
- var freeModule$1 = freeExports$1 && typeof module == "object" && module && !module.nodeType && module;
933
- /** Detect free variable `process` from Node.js. */
934
- var freeProcess = freeModule$1 && freeModule$1.exports === freeExports$1 && freeGlobal.process;
935
- /** Used to access faster Node.js helpers. */
936
- var nodeUtil = function() {
937
- try {
938
- var types = freeModule$1 && freeModule$1.require && freeModule$1.require("util").types;
939
- if (types) return types;
940
- return freeProcess && freeProcess.binding && freeProcess.binding("util");
941
- } catch (e) {}
942
- }();
943
-
944
- //#endregion
945
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isTypedArray.js
946
- var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
947
- /**
948
- * Checks if `value` is classified as a typed array.
949
- *
950
- * @static
951
- * @memberOf _
952
- * @since 3.0.0
953
- * @category Lang
954
- * @param {*} value The value to check.
955
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
956
- * @example
957
- *
958
- * _.isTypedArray(new Uint8Array);
959
- * // => true
960
- *
961
- * _.isTypedArray([]);
962
- * // => false
963
- */
964
- var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
965
-
966
- //#endregion
967
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayLikeKeys.js
968
- /** Used to check objects for own properties. */
969
- var hasOwnProperty$4 = Object.prototype.hasOwnProperty;
970
- /**
971
- * Creates an array of the enumerable property names of the array-like `value`.
972
- *
973
- * @private
974
- * @param {*} value The value to query.
975
- * @param {boolean} inherited Specify returning inherited property names.
976
- * @returns {Array} Returns the array of property names.
977
- */
978
- function arrayLikeKeys(value, inherited) {
979
- 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;
980
- for (var key in value) if ((inherited || hasOwnProperty$4.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) result.push(key);
981
- return result;
982
- }
983
-
984
- //#endregion
985
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_overArg.js
986
- /**
987
- * Creates a unary function that invokes `func` with its argument transformed.
988
- *
989
- * @private
990
- * @param {Function} func The function to wrap.
991
- * @param {Function} transform The argument transform.
992
- * @returns {Function} Returns the new function.
993
- */
994
- function overArg(func, transform) {
995
- return function(arg) {
996
- return func(transform(arg));
997
- };
998
- }
999
-
1000
- //#endregion
1001
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nativeKeysIn.js
1002
- /**
1003
- * This function is like
1004
- * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
1005
- * except that it includes inherited enumerable properties.
1006
- *
1007
- * @private
1008
- * @param {Object} object The object to query.
1009
- * @returns {Array} Returns the array of property names.
1010
- */
1011
- function nativeKeysIn(object) {
1012
- var result = [];
1013
- if (object != null) for (var key in Object(object)) result.push(key);
1014
- return result;
1015
- }
1016
-
1017
- //#endregion
1018
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseKeysIn.js
1019
- /** Used to check objects for own properties. */
1020
- var hasOwnProperty$3 = Object.prototype.hasOwnProperty;
1021
- /**
1022
- * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
1023
- *
1024
- * @private
1025
- * @param {Object} object The object to query.
1026
- * @returns {Array} Returns the array of property names.
1027
- */
1028
- function baseKeysIn(object) {
1029
- if (!isObject(object)) return nativeKeysIn(object);
1030
- var isProto = isPrototype(object), result = [];
1031
- for (var key in object) if (!(key == "constructor" && (isProto || !hasOwnProperty$3.call(object, key)))) result.push(key);
1032
- return result;
1033
- }
1034
-
1035
- //#endregion
1036
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/keysIn.js
1037
- /**
1038
- * Creates an array of the own and inherited enumerable property names of `object`.
1039
- *
1040
- * **Note:** Non-object values are coerced to objects.
1041
- *
1042
- * @static
1043
- * @memberOf _
1044
- * @since 3.0.0
1045
- * @category Object
1046
- * @param {Object} object The object to query.
1047
- * @returns {Array} Returns the array of property names.
1048
- * @example
1049
- *
1050
- * function Foo() {
1051
- * this.a = 1;
1052
- * this.b = 2;
1053
- * }
1054
- *
1055
- * Foo.prototype.c = 3;
1056
- *
1057
- * _.keysIn(new Foo);
1058
- * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
1059
- */
1060
- function keysIn(object) {
1061
- return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
1062
- }
1063
-
1064
- //#endregion
1065
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nativeCreate.js
1066
- var nativeCreate = getNative(Object, "create");
1067
-
1068
- //#endregion
1069
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashClear.js
1070
- /**
1071
- * Removes all key-value entries from the hash.
1072
- *
1073
- * @private
1074
- * @name clear
1075
- * @memberOf Hash
1076
- */
1077
- function hashClear() {
1078
- this.__data__ = nativeCreate ? nativeCreate(null) : {};
1079
- this.size = 0;
1080
- }
1081
-
1082
- //#endregion
1083
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashDelete.js
1084
- /**
1085
- * Removes `key` and its value from the hash.
1086
- *
1087
- * @private
1088
- * @name delete
1089
- * @memberOf Hash
1090
- * @param {Object} hash The hash to modify.
1091
- * @param {string} key The key of the value to remove.
1092
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1093
- */
1094
- function hashDelete(key) {
1095
- var result = this.has(key) && delete this.__data__[key];
1096
- this.size -= result ? 1 : 0;
1097
- return result;
1098
- }
1099
-
1100
- //#endregion
1101
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashGet.js
1102
- /** Used to stand-in for `undefined` hash values. */
1103
- var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
1104
- /** Used to check objects for own properties. */
1105
- var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
1106
- /**
1107
- * Gets the hash value for `key`.
1108
- *
1109
- * @private
1110
- * @name get
1111
- * @memberOf Hash
1112
- * @param {string} key The key of the value to get.
1113
- * @returns {*} Returns the entry value.
1114
- */
1115
- function hashGet(key) {
1116
- var data = this.__data__;
1117
- if (nativeCreate) {
1118
- var result = data[key];
1119
- return result === HASH_UNDEFINED$1 ? void 0 : result;
1120
- }
1121
- return hasOwnProperty$2.call(data, key) ? data[key] : void 0;
1122
- }
1123
-
1124
- //#endregion
1125
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashHas.js
1126
- /** Used to check objects for own properties. */
1127
- var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
1128
- /**
1129
- * Checks if a hash value for `key` exists.
1130
- *
1131
- * @private
1132
- * @name has
1133
- * @memberOf Hash
1134
- * @param {string} key The key of the entry to check.
1135
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1136
- */
1137
- function hashHas(key) {
1138
- var data = this.__data__;
1139
- return nativeCreate ? data[key] !== void 0 : hasOwnProperty$1.call(data, key);
1140
- }
1141
-
1142
- //#endregion
1143
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashSet.js
1144
- /** Used to stand-in for `undefined` hash values. */
1145
- var HASH_UNDEFINED = "__lodash_hash_undefined__";
1146
- /**
1147
- * Sets the hash `key` to `value`.
1148
- *
1149
- * @private
1150
- * @name set
1151
- * @memberOf Hash
1152
- * @param {string} key The key of the value to set.
1153
- * @param {*} value The value to set.
1154
- * @returns {Object} Returns the hash instance.
1155
- */
1156
- function hashSet(key, value) {
1157
- var data = this.__data__;
1158
- this.size += this.has(key) ? 0 : 1;
1159
- data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
1160
- return this;
1161
- }
1162
-
1163
- //#endregion
1164
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Hash.js
1165
- /**
1166
- * Creates a hash object.
1167
- *
1168
- * @private
1169
- * @constructor
1170
- * @param {Array} [entries] The key-value pairs to cache.
1171
- */
1172
- function Hash(entries) {
1173
- var index = -1, length = entries == null ? 0 : entries.length;
1174
- this.clear();
1175
- while (++index < length) {
1176
- var entry = entries[index];
1177
- this.set(entry[0], entry[1]);
1178
- }
1179
- }
1180
- Hash.prototype.clear = hashClear;
1181
- Hash.prototype["delete"] = hashDelete;
1182
- Hash.prototype.get = hashGet;
1183
- Hash.prototype.has = hashHas;
1184
- Hash.prototype.set = hashSet;
1185
-
1186
- //#endregion
1187
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheClear.js
1188
- /**
1189
- * Removes all key-value entries from the list cache.
1190
- *
1191
- * @private
1192
- * @name clear
1193
- * @memberOf ListCache
1194
- */
1195
- function listCacheClear() {
1196
- this.__data__ = [];
1197
- this.size = 0;
1198
- }
1199
-
1200
- //#endregion
1201
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_assocIndexOf.js
1202
- /**
1203
- * Gets the index at which the `key` is found in `array` of key-value pairs.
1204
- *
1205
- * @private
1206
- * @param {Array} array The array to inspect.
1207
- * @param {*} key The key to search for.
1208
- * @returns {number} Returns the index of the matched value, else `-1`.
1209
- */
1210
- function assocIndexOf(array, key) {
1211
- var length = array.length;
1212
- while (length--) if (eq(array[length][0], key)) return length;
1213
- return -1;
1214
- }
1215
-
1216
- //#endregion
1217
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheDelete.js
1218
- /** Built-in value references. */
1219
- var splice = Array.prototype.splice;
1220
- /**
1221
- * Removes `key` and its value from the list cache.
1222
- *
1223
- * @private
1224
- * @name delete
1225
- * @memberOf ListCache
1226
- * @param {string} key The key of the value to remove.
1227
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1228
- */
1229
- function listCacheDelete(key) {
1230
- var data = this.__data__, index = assocIndexOf(data, key);
1231
- if (index < 0) return false;
1232
- if (index == data.length - 1) data.pop();
1233
- else splice.call(data, index, 1);
1234
- --this.size;
1235
- return true;
1236
- }
1237
-
1238
- //#endregion
1239
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheGet.js
1240
- /**
1241
- * Gets the list cache value for `key`.
1242
- *
1243
- * @private
1244
- * @name get
1245
- * @memberOf ListCache
1246
- * @param {string} key The key of the value to get.
1247
- * @returns {*} Returns the entry value.
1248
- */
1249
- function listCacheGet(key) {
1250
- var data = this.__data__, index = assocIndexOf(data, key);
1251
- return index < 0 ? void 0 : data[index][1];
1252
- }
1253
-
1254
- //#endregion
1255
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheHas.js
1256
- /**
1257
- * Checks if a list cache value for `key` exists.
1258
- *
1259
- * @private
1260
- * @name has
1261
- * @memberOf ListCache
1262
- * @param {string} key The key of the entry to check.
1263
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1264
- */
1265
- function listCacheHas(key) {
1266
- return assocIndexOf(this.__data__, key) > -1;
1267
- }
1268
-
1269
- //#endregion
1270
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheSet.js
1271
- /**
1272
- * Sets the list cache `key` to `value`.
1273
- *
1274
- * @private
1275
- * @name set
1276
- * @memberOf ListCache
1277
- * @param {string} key The key of the value to set.
1278
- * @param {*} value The value to set.
1279
- * @returns {Object} Returns the list cache instance.
1280
- */
1281
- function listCacheSet(key, value) {
1282
- var data = this.__data__, index = assocIndexOf(data, key);
1283
- if (index < 0) {
1284
- ++this.size;
1285
- data.push([key, value]);
1286
- } else data[index][1] = value;
1287
- return this;
1288
- }
1289
-
1290
- //#endregion
1291
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_ListCache.js
1292
- /**
1293
- * Creates an list cache object.
1294
- *
1295
- * @private
1296
- * @constructor
1297
- * @param {Array} [entries] The key-value pairs to cache.
1298
- */
1299
- function ListCache(entries) {
1300
- var index = -1, length = entries == null ? 0 : entries.length;
1301
- this.clear();
1302
- while (++index < length) {
1303
- var entry = entries[index];
1304
- this.set(entry[0], entry[1]);
1305
- }
1306
- }
1307
- ListCache.prototype.clear = listCacheClear;
1308
- ListCache.prototype["delete"] = listCacheDelete;
1309
- ListCache.prototype.get = listCacheGet;
1310
- ListCache.prototype.has = listCacheHas;
1311
- ListCache.prototype.set = listCacheSet;
1312
-
1313
- //#endregion
1314
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Map.js
1315
- var Map = getNative(root, "Map");
1316
-
1317
- //#endregion
1318
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheClear.js
1319
- /**
1320
- * Removes all key-value entries from the map.
1321
- *
1322
- * @private
1323
- * @name clear
1324
- * @memberOf MapCache
1325
- */
1326
- function mapCacheClear() {
1327
- this.size = 0;
1328
- this.__data__ = {
1329
- "hash": new Hash(),
1330
- "map": new (Map || ListCache)(),
1331
- "string": new Hash()
1332
- };
1333
- }
1334
-
1335
- //#endregion
1336
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isKeyable.js
1337
- /**
1338
- * Checks if `value` is suitable for use as unique object key.
1339
- *
1340
- * @private
1341
- * @param {*} value The value to check.
1342
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
1343
- */
1344
- function isKeyable(value) {
1345
- var type = typeof value;
1346
- return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
1347
- }
1348
-
1349
- //#endregion
1350
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getMapData.js
1351
- /**
1352
- * Gets the data for `map`.
1353
- *
1354
- * @private
1355
- * @param {Object} map The map to query.
1356
- * @param {string} key The reference key.
1357
- * @returns {*} Returns the map data.
1358
- */
1359
- function getMapData(map, key) {
1360
- var data = map.__data__;
1361
- return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
1362
- }
1363
-
1364
- //#endregion
1365
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheDelete.js
1366
- /**
1367
- * Removes `key` and its value from the map.
1368
- *
1369
- * @private
1370
- * @name delete
1371
- * @memberOf MapCache
1372
- * @param {string} key The key of the value to remove.
1373
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1374
- */
1375
- function mapCacheDelete(key) {
1376
- var result = getMapData(this, key)["delete"](key);
1377
- this.size -= result ? 1 : 0;
1378
- return result;
1379
- }
1380
-
1381
- //#endregion
1382
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheGet.js
1383
- /**
1384
- * Gets the map value for `key`.
1385
- *
1386
- * @private
1387
- * @name get
1388
- * @memberOf MapCache
1389
- * @param {string} key The key of the value to get.
1390
- * @returns {*} Returns the entry value.
1391
- */
1392
- function mapCacheGet(key) {
1393
- return getMapData(this, key).get(key);
1394
- }
1395
-
1396
- //#endregion
1397
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheHas.js
1398
- /**
1399
- * Checks if a map value for `key` exists.
1400
- *
1401
- * @private
1402
- * @name has
1403
- * @memberOf MapCache
1404
- * @param {string} key The key of the entry to check.
1405
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1406
- */
1407
- function mapCacheHas(key) {
1408
- return getMapData(this, key).has(key);
1409
- }
1410
-
1411
- //#endregion
1412
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheSet.js
1413
- /**
1414
- * Sets the map `key` to `value`.
1415
- *
1416
- * @private
1417
- * @name set
1418
- * @memberOf MapCache
1419
- * @param {string} key The key of the value to set.
1420
- * @param {*} value The value to set.
1421
- * @returns {Object} Returns the map cache instance.
1422
- */
1423
- function mapCacheSet(key, value) {
1424
- var data = getMapData(this, key), size = data.size;
1425
- data.set(key, value);
1426
- this.size += data.size == size ? 0 : 1;
1427
- return this;
1428
- }
1429
-
1430
- //#endregion
1431
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_MapCache.js
1432
- /**
1433
- * Creates a map cache object to store key-value pairs.
1434
- *
1435
- * @private
1436
- * @constructor
1437
- * @param {Array} [entries] The key-value pairs to cache.
1438
- */
1439
- function MapCache(entries) {
1440
- var index = -1, length = entries == null ? 0 : entries.length;
1441
- this.clear();
1442
- while (++index < length) {
1443
- var entry = entries[index];
1444
- this.set(entry[0], entry[1]);
1445
- }
1446
- }
1447
- MapCache.prototype.clear = mapCacheClear;
1448
- MapCache.prototype["delete"] = mapCacheDelete;
1449
- MapCache.prototype.get = mapCacheGet;
1450
- MapCache.prototype.has = mapCacheHas;
1451
- MapCache.prototype.set = mapCacheSet;
1452
-
1453
- //#endregion
1454
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getPrototype.js
1455
- /** Built-in value references. */
1456
- var getPrototype = overArg(Object.getPrototypeOf, Object);
1457
-
1458
- //#endregion
1459
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isPlainObject.js
1460
- /** `Object#toString` result references. */
1461
- var objectTag = "[object Object]";
1462
- /** Used for built-in method references. */
1463
- var funcProto = Function.prototype, objectProto = Object.prototype;
1464
- /** Used to resolve the decompiled source of functions. */
1465
- var funcToString = funcProto.toString;
1466
- /** Used to check objects for own properties. */
1467
- var hasOwnProperty = objectProto.hasOwnProperty;
1468
- /** Used to infer the `Object` constructor. */
1469
- var objectCtorString = funcToString.call(Object);
1470
- /**
1471
- * Checks if `value` is a plain object, that is, an object created by the
1472
- * `Object` constructor or one with a `[[Prototype]]` of `null`.
1473
- *
1474
- * @static
1475
- * @memberOf _
1476
- * @since 0.8.0
1477
- * @category Lang
1478
- * @param {*} value The value to check.
1479
- * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
1480
- * @example
1481
- *
1482
- * function Foo() {
1483
- * this.a = 1;
1484
- * }
1485
- *
1486
- * _.isPlainObject(new Foo);
1487
- * // => false
1488
- *
1489
- * _.isPlainObject([1, 2, 3]);
1490
- * // => false
1491
- *
1492
- * _.isPlainObject({ 'x': 0, 'y': 0 });
1493
- * // => true
1494
- *
1495
- * _.isPlainObject(Object.create(null));
1496
- * // => true
1497
- */
1498
- function isPlainObject(value) {
1499
- if (!isObjectLike(value) || baseGetTag(value) != objectTag) return false;
1500
- var proto = getPrototype(value);
1501
- if (proto === null) return true;
1502
- var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor;
1503
- return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
1504
- }
1505
-
1506
- //#endregion
1507
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackClear.js
1508
- /**
1509
- * Removes all key-value entries from the stack.
1510
- *
1511
- * @private
1512
- * @name clear
1513
- * @memberOf Stack
1514
- */
1515
- function stackClear() {
1516
- this.__data__ = new ListCache();
1517
- this.size = 0;
1518
- }
1519
-
1520
- //#endregion
1521
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackDelete.js
1522
- /**
1523
- * Removes `key` and its value from the stack.
1524
- *
1525
- * @private
1526
- * @name delete
1527
- * @memberOf Stack
1528
- * @param {string} key The key of the value to remove.
1529
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1530
- */
1531
- function stackDelete(key) {
1532
- var data = this.__data__, result = data["delete"](key);
1533
- this.size = data.size;
1534
- return result;
1535
- }
1536
-
1537
- //#endregion
1538
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackGet.js
1539
- /**
1540
- * Gets the stack value for `key`.
1541
- *
1542
- * @private
1543
- * @name get
1544
- * @memberOf Stack
1545
- * @param {string} key The key of the value to get.
1546
- * @returns {*} Returns the entry value.
1547
- */
1548
- function stackGet(key) {
1549
- return this.__data__.get(key);
1550
- }
1551
-
1552
- //#endregion
1553
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackHas.js
1554
- /**
1555
- * Checks if a stack value for `key` exists.
1556
- *
1557
- * @private
1558
- * @name has
1559
- * @memberOf Stack
1560
- * @param {string} key The key of the entry to check.
1561
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1562
- */
1563
- function stackHas(key) {
1564
- return this.__data__.has(key);
1565
- }
1566
-
1567
- //#endregion
1568
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackSet.js
1569
- /** Used as the size to enable large array optimizations. */
1570
- var LARGE_ARRAY_SIZE = 200;
1571
- /**
1572
- * Sets the stack `key` to `value`.
1573
- *
1574
- * @private
1575
- * @name set
1576
- * @memberOf Stack
1577
- * @param {string} key The key of the value to set.
1578
- * @param {*} value The value to set.
1579
- * @returns {Object} Returns the stack cache instance.
1580
- */
1581
- function stackSet(key, value) {
1582
- var data = this.__data__;
1583
- if (data instanceof ListCache) {
1584
- var pairs = data.__data__;
1585
- if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
1586
- pairs.push([key, value]);
1587
- this.size = ++data.size;
1588
- return this;
1589
- }
1590
- data = this.__data__ = new MapCache(pairs);
1591
- }
1592
- data.set(key, value);
1593
- this.size = data.size;
1594
- return this;
1595
- }
1596
-
1597
- //#endregion
1598
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Stack.js
1599
- /**
1600
- * Creates a stack cache object to store key-value pairs.
1601
- *
1602
- * @private
1603
- * @constructor
1604
- * @param {Array} [entries] The key-value pairs to cache.
1605
- */
1606
- function Stack(entries) {
1607
- this.size = (this.__data__ = new ListCache(entries)).size;
1608
- }
1609
- Stack.prototype.clear = stackClear;
1610
- Stack.prototype["delete"] = stackDelete;
1611
- Stack.prototype.get = stackGet;
1612
- Stack.prototype.has = stackHas;
1613
- Stack.prototype.set = stackSet;
1614
-
1615
- //#endregion
1616
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneBuffer.js
1617
- /** Detect free variable `exports`. */
1618
- var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
1619
- /** Detect free variable `module`. */
1620
- var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
1621
- /** Built-in value references. */
1622
- var Buffer = freeModule && freeModule.exports === freeExports ? root.Buffer : void 0, allocUnsafe = Buffer ? Buffer.allocUnsafe : void 0;
1623
- /**
1624
- * Creates a clone of `buffer`.
1625
- *
1626
- * @private
1627
- * @param {Buffer} buffer The buffer to clone.
1628
- * @param {boolean} [isDeep] Specify a deep clone.
1629
- * @returns {Buffer} Returns the cloned buffer.
1630
- */
1631
- function cloneBuffer(buffer, isDeep) {
1632
- if (isDeep) return buffer.slice();
1633
- var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
1634
- buffer.copy(result);
1635
- return result;
1636
- }
1637
-
1638
- //#endregion
1639
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Uint8Array.js
1640
- /** Built-in value references. */
1641
- var Uint8Array = root.Uint8Array;
1642
-
1643
- //#endregion
1644
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneArrayBuffer.js
1645
- /**
1646
- * Creates a clone of `arrayBuffer`.
1647
- *
1648
- * @private
1649
- * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
1650
- * @returns {ArrayBuffer} Returns the cloned array buffer.
1651
- */
1652
- function cloneArrayBuffer(arrayBuffer) {
1653
- var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
1654
- new Uint8Array(result).set(new Uint8Array(arrayBuffer));
1655
- return result;
1656
- }
1657
-
1658
- //#endregion
1659
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneTypedArray.js
1660
- /**
1661
- * Creates a clone of `typedArray`.
1662
- *
1663
- * @private
1664
- * @param {Object} typedArray The typed array to clone.
1665
- * @param {boolean} [isDeep] Specify a deep clone.
1666
- * @returns {Object} Returns the cloned typed array.
1667
- */
1668
- function cloneTypedArray(typedArray, isDeep) {
1669
- var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
1670
- return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
1671
- }
1672
-
1673
- //#endregion
1674
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_initCloneObject.js
1675
- /**
1676
- * Initializes an object clone.
1677
- *
1678
- * @private
1679
- * @param {Object} object The object to clone.
1680
- * @returns {Object} Returns the initialized clone.
1681
- */
1682
- function initCloneObject(object) {
1683
- return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
1684
- }
1685
-
1686
- //#endregion
1687
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_createBaseFor.js
1688
- /**
1689
- * Creates a base function for methods like `_.forIn` and `_.forOwn`.
1690
- *
1691
- * @private
1692
- * @param {boolean} [fromRight] Specify iterating from right to left.
1693
- * @returns {Function} Returns the new base function.
1694
- */
1695
- function createBaseFor(fromRight) {
1696
- return function(object, iteratee, keysFunc) {
1697
- var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
1698
- while (length--) {
1699
- var key = props[fromRight ? length : ++index];
1700
- if (iteratee(iterable[key], key, iterable) === false) break;
1701
- }
1702
- return object;
1703
- };
1704
- }
1705
-
1706
- //#endregion
1707
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseFor.js
1708
- /**
1709
- * The base implementation of `baseForOwn` which iterates over `object`
1710
- * properties returned by `keysFunc` and invokes `iteratee` for each property.
1711
- * Iteratee functions may exit iteration early by explicitly returning `false`.
1712
- *
1713
- * @private
1714
- * @param {Object} object The object to iterate over.
1715
- * @param {Function} iteratee The function invoked per iteration.
1716
- * @param {Function} keysFunc The function to get the keys of `object`.
1717
- * @returns {Object} Returns `object`.
1718
- */
1719
- var baseFor = createBaseFor();
1720
-
1721
- //#endregion
1722
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_assignMergeValue.js
1723
- /**
1724
- * This function is like `assignValue` except that it doesn't assign
1725
- * `undefined` values.
1726
- *
1727
- * @private
1728
- * @param {Object} object The object to modify.
1729
- * @param {string} key The key of the property to assign.
1730
- * @param {*} value The value to assign.
1731
- */
1732
- function assignMergeValue(object, key, value) {
1733
- if (value !== void 0 && !eq(object[key], value) || value === void 0 && !(key in object)) baseAssignValue(object, key, value);
1734
- }
1735
-
1736
- //#endregion
1737
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArrayLikeObject.js
1738
- /**
1739
- * This method is like `_.isArrayLike` except that it also checks if `value`
1740
- * is an object.
1741
- *
1742
- * @static
1743
- * @memberOf _
1744
- * @since 4.0.0
1745
- * @category Lang
1746
- * @param {*} value The value to check.
1747
- * @returns {boolean} Returns `true` if `value` is an array-like object,
1748
- * else `false`.
1749
- * @example
1750
- *
1751
- * _.isArrayLikeObject([1, 2, 3]);
1752
- * // => true
1753
- *
1754
- * _.isArrayLikeObject(document.body.children);
1755
- * // => true
1756
- *
1757
- * _.isArrayLikeObject('abc');
1758
- * // => false
1759
- *
1760
- * _.isArrayLikeObject(_.noop);
1761
- * // => false
1762
- */
1763
- function isArrayLikeObject(value) {
1764
- return isObjectLike(value) && isArrayLike(value);
1765
- }
1766
-
1767
- //#endregion
1768
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_safeGet.js
1769
- /**
1770
- * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
1771
- *
1772
- * @private
1773
- * @param {Object} object The object to query.
1774
- * @param {string} key The key of the property to get.
1775
- * @returns {*} Returns the property value.
1776
- */
1777
- function safeGet(object, key) {
1778
- if (key === "constructor" && typeof object[key] === "function") return;
1779
- if (key == "__proto__") return;
1780
- return object[key];
1781
- }
1782
-
1783
- //#endregion
1784
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/toPlainObject.js
1785
- /**
1786
- * Converts `value` to a plain object flattening inherited enumerable string
1787
- * keyed properties of `value` to own properties of the plain object.
1788
- *
1789
- * @static
1790
- * @memberOf _
1791
- * @since 3.0.0
1792
- * @category Lang
1793
- * @param {*} value The value to convert.
1794
- * @returns {Object} Returns the converted plain object.
1795
- * @example
1796
- *
1797
- * function Foo() {
1798
- * this.b = 2;
1799
- * }
1800
- *
1801
- * Foo.prototype.c = 3;
1802
- *
1803
- * _.assign({ 'a': 1 }, new Foo);
1804
- * // => { 'a': 1, 'b': 2 }
1805
- *
1806
- * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
1807
- * // => { 'a': 1, 'b': 2, 'c': 3 }
1808
- */
1809
- function toPlainObject(value) {
1810
- return copyObject(value, keysIn(value));
1811
- }
1812
-
1813
- //#endregion
1814
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseMergeDeep.js
1815
- /**
1816
- * A specialized version of `baseMerge` for arrays and objects which performs
1817
- * deep merges and tracks traversed objects enabling objects with circular
1818
- * references to be merged.
1819
- *
1820
- * @private
1821
- * @param {Object} object The destination object.
1822
- * @param {Object} source The source object.
1823
- * @param {string} key The key of the value to merge.
1824
- * @param {number} srcIndex The index of `source`.
1825
- * @param {Function} mergeFunc The function to merge values.
1826
- * @param {Function} [customizer] The function to customize assigned values.
1827
- * @param {Object} [stack] Tracks traversed source values and their merged
1828
- * counterparts.
1829
- */
1830
- function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
1831
- var objValue = safeGet(object, key), srcValue = safeGet(source, key), stacked = stack.get(srcValue);
1832
- if (stacked) {
1833
- assignMergeValue(object, key, stacked);
1834
- return;
1835
- }
1836
- var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : void 0;
1837
- var isCommon = newValue === void 0;
1838
- if (isCommon) {
1839
- var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue);
1840
- newValue = srcValue;
1841
- if (isArr || isBuff || isTyped) if (isArray(objValue)) newValue = objValue;
1842
- else if (isArrayLikeObject(objValue)) newValue = copyArray(objValue);
1843
- else if (isBuff) {
1844
- isCommon = false;
1845
- newValue = cloneBuffer(srcValue, true);
1846
- } else if (isTyped) {
1847
- isCommon = false;
1848
- newValue = cloneTypedArray(srcValue, true);
1849
- } else newValue = [];
1850
- else if (isPlainObject(srcValue) || isArguments(srcValue)) {
1851
- newValue = objValue;
1852
- if (isArguments(objValue)) newValue = toPlainObject(objValue);
1853
- else if (!isObject(objValue) || isFunction(objValue)) newValue = initCloneObject(srcValue);
1854
- } else isCommon = false;
1855
- }
1856
- if (isCommon) {
1857
- stack.set(srcValue, newValue);
1858
- mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
1859
- stack["delete"](srcValue);
1860
- }
1861
- assignMergeValue(object, key, newValue);
1862
- }
1863
-
1864
- //#endregion
1865
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseMerge.js
1866
- /**
1867
- * The base implementation of `_.merge` without support for multiple sources.
1868
- *
1869
- * @private
1870
- * @param {Object} object The destination object.
1871
- * @param {Object} source The source object.
1872
- * @param {number} srcIndex The index of `source`.
1873
- * @param {Function} [customizer] The function to customize merged values.
1874
- * @param {Object} [stack] Tracks traversed source values and their merged
1875
- * counterparts.
1876
- */
1877
- function baseMerge(object, source, srcIndex, customizer, stack) {
1878
- if (object === source) return;
1879
- baseFor(source, function(srcValue, key) {
1880
- stack || (stack = new Stack());
1881
- if (isObject(srcValue)) baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
1882
- else {
1883
- var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : void 0;
1884
- if (newValue === void 0) newValue = srcValue;
1885
- assignMergeValue(object, key, newValue);
1886
- }
1887
- }, keysIn);
1888
- }
1889
-
1890
- //#endregion
1891
- //#region ../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/merge.js
1892
- /**
1893
- * This method is like `_.assign` except that it recursively merges own and
1894
- * inherited enumerable string keyed properties of source objects into the
1895
- * destination object. Source properties that resolve to `undefined` are
1896
- * skipped if a destination value exists. Array and plain object properties
1897
- * are merged recursively. Other objects and value types are overridden by
1898
- * assignment. Source objects are applied from left to right. Subsequent
1899
- * sources overwrite property assignments of previous sources.
1900
- *
1901
- * **Note:** This method mutates `object`.
1902
- *
1903
- * @static
1904
- * @memberOf _
1905
- * @since 0.5.0
1906
- * @category Object
1907
- * @param {Object} object The destination object.
1908
- * @param {...Object} [sources] The source objects.
1909
- * @returns {Object} Returns `object`.
1910
- * @example
1911
- *
1912
- * var object = {
1913
- * 'a': [{ 'b': 2 }, { 'd': 4 }]
1914
- * };
1915
- *
1916
- * var other = {
1917
- * 'a': [{ 'c': 3 }, { 'e': 5 }]
1918
- * };
1919
- *
1920
- * _.merge(object, other);
1921
- * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
1922
- */
1923
- var merge = createAssigner(function(object, source, srcIndex) {
1924
- baseMerge(object, source, srcIndex);
1925
- });
1926
-
1927
- //#endregion
1928
7
  //#region src/airplay/client.ts
1929
8
  const COCOA_EPOCH_OFFSET = 978307200;
1930
- const extrapolateElapsed = (elapsed, cocoaTimestamp, rate, isPlaying) => {
1931
- if (!rate || !isPlaying) return elapsed;
9
+ const extrapolateElapsed = (elapsed, cocoaTimestamp, rate) => {
10
+ if (!rate) return elapsed;
1932
11
  const timestampUnix = cocoaTimestamp + COCOA_EPOCH_OFFSET;
1933
12
  const delta = (Date.now() / 1e3 - timestampUnix) * rate;
1934
13
  return Math.max(0, elapsed + delta);
@@ -2000,14 +79,8 @@ var Client = class {
2000
79
  get elapsedTime() {
2001
80
  const npi = this.#nowPlayingInfo;
2002
81
  const meta = this.currentItemMetadata;
2003
- const npiValid = npi?.elapsedTime != null && npi.timestamp;
2004
- const metaValid = meta?.elapsedTime != null && meta.elapsedTimeTimestamp;
2005
- if (npiValid && metaValid) {
2006
- if (meta.elapsedTimeTimestamp > npi.timestamp) return extrapolateElapsed(meta.elapsedTime, meta.elapsedTimeTimestamp, meta.playbackRate ?? npi.playbackRate, this.isPlaying);
2007
- return extrapolateElapsed(npi.elapsedTime, npi.timestamp, npi.playbackRate, this.isPlaying);
2008
- }
2009
- if (npiValid) return extrapolateElapsed(npi.elapsedTime, npi.timestamp, npi.playbackRate, this.isPlaying);
2010
- if (metaValid) return extrapolateElapsed(meta.elapsedTime, meta.elapsedTimeTimestamp, meta.playbackRate, this.isPlaying);
82
+ if (npi?.elapsedTime != null && npi.timestamp) return extrapolateElapsed(npi.elapsedTime, npi.timestamp, npi.playbackRate);
83
+ if (meta?.elapsedTime != null && meta.elapsedTimeTimestamp) return extrapolateElapsed(meta.elapsedTime, meta.elapsedTimeTimestamp, meta.playbackRate);
2011
84
  return npi?.elapsedTime || meta?.elapsedTime || 0;
2012
85
  }
2013
86
  get currentItem() {
@@ -2066,9 +139,14 @@ var Client = class {
2066
139
  }
2067
140
  updateContentItem(item) {
2068
141
  if (!this.#playbackQueue) return;
2069
- const index = this.#playbackQueue.contentItems.findIndex((i) => i.identifier === item.identifier);
2070
- if (index === -1) return;
2071
- this.#playbackQueue.contentItems[index] = merge(item, this.#playbackQueue.contentItems[index]);
142
+ const existing = this.#playbackQueue.contentItems.find((i) => i.identifier === item.identifier);
143
+ if (!existing) return;
144
+ if (item.metadata != null && existing.metadata != null) {
145
+ for (const [key, value] of Object.entries(item.metadata)) if (value != null) existing.metadata[key] = value;
146
+ } else if (item.metadata != null) existing.metadata = item.metadata;
147
+ if (item.artworkData != null) existing.artworkData = item.artworkData;
148
+ if (item.lyrics != null) existing.lyrics = item.lyrics;
149
+ if (item.info != null) existing.info = item.info;
2072
150
  }
2073
151
  };
2074
152