Leon4gr45 commited on
Commit
63ff9a5
·
verified ·
1 Parent(s): aab1ead

Upload folder using huggingface_hub (part 15)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +1 -0
  2. node_modules/es-toolkit/dist/object/pick.d.mts +20 -0
  3. node_modules/es-toolkit/dist/object/pick.d.ts +20 -0
  4. node_modules/es-toolkit/dist/object/pick.js +16 -0
  5. node_modules/es-toolkit/dist/object/pick.mjs +12 -0
  6. node_modules/es-toolkit/dist/object/pickBy.d.mts +22 -0
  7. node_modules/es-toolkit/dist/object/pickBy.d.ts +22 -0
  8. node_modules/es-toolkit/dist/object/pickBy.js +18 -0
  9. node_modules/es-toolkit/dist/object/pickBy.mjs +14 -0
  10. node_modules/es-toolkit/dist/object/toCamelCaseKeys.d.mts +57 -0
  11. node_modules/es-toolkit/dist/object/toCamelCaseKeys.d.ts +57 -0
  12. node_modules/es-toolkit/dist/object/toCamelCaseKeys.js +27 -0
  13. node_modules/es-toolkit/dist/object/toCamelCaseKeys.mjs +23 -0
  14. node_modules/es-toolkit/dist/object/toMerged.d.mts +45 -0
  15. node_modules/es-toolkit/dist/object/toMerged.d.ts +45 -0
  16. node_modules/es-toolkit/dist/object/toMerged.js +30 -0
  17. node_modules/es-toolkit/dist/object/toMerged.mjs +26 -0
  18. node_modules/es-toolkit/dist/object/toSnakeCaseKeys.d.mts +54 -0
  19. node_modules/es-toolkit/dist/object/toSnakeCaseKeys.d.ts +54 -0
  20. node_modules/es-toolkit/dist/object/toSnakeCaseKeys.js +27 -0
  21. node_modules/es-toolkit/dist/object/toSnakeCaseKeys.mjs +23 -0
  22. node_modules/es-toolkit/dist/predicate/index.d.mts +32 -0
  23. node_modules/es-toolkit/dist/predicate/index.d.ts +32 -0
  24. node_modules/es-toolkit/dist/predicate/index.js +73 -0
  25. node_modules/es-toolkit/dist/predicate/index.mjs +32 -0
  26. node_modules/es-toolkit/dist/predicate/isArrayBuffer.d.mts +20 -0
  27. node_modules/es-toolkit/dist/predicate/isArrayBuffer.d.ts +20 -0
  28. node_modules/es-toolkit/dist/predicate/isArrayBuffer.js +9 -0
  29. node_modules/es-toolkit/dist/predicate/isArrayBuffer.mjs +5 -0
  30. node_modules/es-toolkit/dist/predicate/isBlob.d.mts +19 -0
  31. node_modules/es-toolkit/dist/predicate/isBlob.d.ts +19 -0
  32. node_modules/es-toolkit/dist/predicate/isBlob.js +12 -0
  33. node_modules/es-toolkit/dist/predicate/isBlob.mjs +8 -0
  34. node_modules/es-toolkit/dist/predicate/isBoolean.d.mts +25 -0
  35. node_modules/es-toolkit/dist/predicate/isBoolean.d.ts +25 -0
  36. node_modules/es-toolkit/dist/predicate/isBoolean.js +9 -0
  37. node_modules/es-toolkit/dist/predicate/isBoolean.mjs +5 -0
  38. node_modules/es-toolkit/dist/predicate/isBrowser.d.mts +17 -0
  39. node_modules/es-toolkit/dist/predicate/isBrowser.d.ts +17 -0
  40. node_modules/es-toolkit/dist/predicate/isBrowser.js +9 -0
  41. node_modules/es-toolkit/dist/predicate/isBrowser.mjs +5 -0
  42. node_modules/es-toolkit/dist/predicate/isBuffer.d.mts +21 -0
  43. node_modules/es-toolkit/dist/predicate/isBuffer.d.ts +21 -0
  44. node_modules/es-toolkit/dist/predicate/isBuffer.js +9 -0
  45. node_modules/es-toolkit/dist/predicate/isBuffer.mjs +5 -0
  46. node_modules/es-toolkit/dist/predicate/isDate.d.mts +16 -0
  47. node_modules/es-toolkit/dist/predicate/isDate.d.ts +16 -0
  48. node_modules/es-toolkit/dist/predicate/isDate.js +9 -0
  49. node_modules/es-toolkit/dist/predicate/isDate.mjs +5 -0
  50. node_modules/es-toolkit/dist/predicate/isEmptyObject.d.mts +15 -0
.gitattributes CHANGED
@@ -42,3 +42,4 @@ node_modules/@plotly/d3-sankey/img/align-right.png filter=lfs diff=lfs merge=lfs
42
  node_modules/@plotly/d3-sankey/img/energy.png filter=lfs diff=lfs merge=lfs -text
43
  node_modules/@rollup/rollup-linux-x64-gnu/rollup.linux-x64-gnu.node filter=lfs diff=lfs merge=lfs -text
44
  node_modules/@rollup/rollup-linux-x64-musl/rollup.linux-x64-musl.node filter=lfs diff=lfs merge=lfs -text
 
 
42
  node_modules/@plotly/d3-sankey/img/energy.png filter=lfs diff=lfs merge=lfs -text
43
  node_modules/@rollup/rollup-linux-x64-gnu/rollup.linux-x64-gnu.node filter=lfs diff=lfs merge=lfs -text
44
  node_modules/@rollup/rollup-linux-x64-musl/rollup.linux-x64-musl.node filter=lfs diff=lfs merge=lfs -text
45
+ node_modules/esbuild/bin/esbuild filter=lfs diff=lfs merge=lfs -text
node_modules/es-toolkit/dist/object/pick.d.mts ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Creates a new object composed of the picked object properties.
3
+ *
4
+ * This function takes an object and an array of keys, and returns a new object that
5
+ * includes only the properties corresponding to the specified keys.
6
+ *
7
+ * @template T - The type of object.
8
+ * @template K - The type of keys in object.
9
+ * @param {T} obj - The object to pick keys from.
10
+ * @param {K[]} keys - An array of keys to be picked from the object.
11
+ * @returns {Pick<T, K>} A new object with the specified keys picked.
12
+ *
13
+ * @example
14
+ * const obj = { a: 1, b: 2, c: 3 };
15
+ * const result = pick(obj, ['a', 'c']);
16
+ * // result will be { a: 1, c: 3 }
17
+ */
18
+ declare function pick<T extends Record<string, any>, K extends keyof T>(obj: T, keys: readonly K[]): Pick<T, K>;
19
+
20
+ export { pick };
node_modules/es-toolkit/dist/object/pick.d.ts ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Creates a new object composed of the picked object properties.
3
+ *
4
+ * This function takes an object and an array of keys, and returns a new object that
5
+ * includes only the properties corresponding to the specified keys.
6
+ *
7
+ * @template T - The type of object.
8
+ * @template K - The type of keys in object.
9
+ * @param {T} obj - The object to pick keys from.
10
+ * @param {K[]} keys - An array of keys to be picked from the object.
11
+ * @returns {Pick<T, K>} A new object with the specified keys picked.
12
+ *
13
+ * @example
14
+ * const obj = { a: 1, b: 2, c: 3 };
15
+ * const result = pick(obj, ['a', 'c']);
16
+ * // result will be { a: 1, c: 3 }
17
+ */
18
+ declare function pick<T extends Record<string, any>, K extends keyof T>(obj: T, keys: readonly K[]): Pick<T, K>;
19
+
20
+ export { pick };
node_modules/es-toolkit/dist/object/pick.js ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ function pick(obj, keys) {
6
+ const result = {};
7
+ for (let i = 0; i < keys.length; i++) {
8
+ const key = keys[i];
9
+ if (Object.hasOwn(obj, key)) {
10
+ result[key] = obj[key];
11
+ }
12
+ }
13
+ return result;
14
+ }
15
+
16
+ exports.pick = pick;
node_modules/es-toolkit/dist/object/pick.mjs ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ function pick(obj, keys) {
2
+ const result = {};
3
+ for (let i = 0; i < keys.length; i++) {
4
+ const key = keys[i];
5
+ if (Object.hasOwn(obj, key)) {
6
+ result[key] = obj[key];
7
+ }
8
+ }
9
+ return result;
10
+ }
11
+
12
+ export { pick };
node_modules/es-toolkit/dist/object/pickBy.d.mts ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Creates a new object composed of the properties that satisfy the predicate function.
3
+ *
4
+ * This function takes an object and a predicate function, and returns a new object that
5
+ * includes only the properties for which the predicate function returns true.
6
+ *
7
+ * @template T - The type of object.
8
+ * @param {T} obj - The object to pick properties from.
9
+ * @param {(value: T[keyof T], key: keyof T) => boolean} shouldPick - A predicate function that determines
10
+ * whether a property should be picked. It takes the property's key and value as arguments and returns `true`
11
+ * if the property should be picked, and `false` otherwise.
12
+ * @returns {Partial<T>} A new object with the properties that satisfy the predicate function.
13
+ *
14
+ * @example
15
+ * const obj = { a: 1, b: 'pick', c: 3 };
16
+ * const shouldPick = (value) => typeof value === 'string';
17
+ * const result = pickBy(obj, shouldPick);
18
+ * // result will be { b: 'pick' }
19
+ */
20
+ declare function pickBy<T extends Record<string, any>>(obj: T, shouldPick: (value: T[keyof T], key: keyof T) => boolean): Partial<T>;
21
+
22
+ export { pickBy };
node_modules/es-toolkit/dist/object/pickBy.d.ts ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Creates a new object composed of the properties that satisfy the predicate function.
3
+ *
4
+ * This function takes an object and a predicate function, and returns a new object that
5
+ * includes only the properties for which the predicate function returns true.
6
+ *
7
+ * @template T - The type of object.
8
+ * @param {T} obj - The object to pick properties from.
9
+ * @param {(value: T[keyof T], key: keyof T) => boolean} shouldPick - A predicate function that determines
10
+ * whether a property should be picked. It takes the property's key and value as arguments and returns `true`
11
+ * if the property should be picked, and `false` otherwise.
12
+ * @returns {Partial<T>} A new object with the properties that satisfy the predicate function.
13
+ *
14
+ * @example
15
+ * const obj = { a: 1, b: 'pick', c: 3 };
16
+ * const shouldPick = (value) => typeof value === 'string';
17
+ * const result = pickBy(obj, shouldPick);
18
+ * // result will be { b: 'pick' }
19
+ */
20
+ declare function pickBy<T extends Record<string, any>>(obj: T, shouldPick: (value: T[keyof T], key: keyof T) => boolean): Partial<T>;
21
+
22
+ export { pickBy };
node_modules/es-toolkit/dist/object/pickBy.js ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ function pickBy(obj, shouldPick) {
6
+ const result = {};
7
+ const keys = Object.keys(obj);
8
+ for (let i = 0; i < keys.length; i++) {
9
+ const key = keys[i];
10
+ const value = obj[key];
11
+ if (shouldPick(value, key)) {
12
+ result[key] = value;
13
+ }
14
+ }
15
+ return result;
16
+ }
17
+
18
+ exports.pickBy = pickBy;
node_modules/es-toolkit/dist/object/pickBy.mjs ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ function pickBy(obj, shouldPick) {
2
+ const result = {};
3
+ const keys = Object.keys(obj);
4
+ for (let i = 0; i < keys.length; i++) {
5
+ const key = keys[i];
6
+ const value = obj[key];
7
+ if (shouldPick(value, key)) {
8
+ result[key] = value;
9
+ }
10
+ }
11
+ return result;
12
+ }
13
+
14
+ export { pickBy };
node_modules/es-toolkit/dist/object/toCamelCaseKeys.d.mts ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ type SnakeToCamel<S extends string> = S extends `${infer H}_${infer T}` ? `${Lowercase<H>}${Capitalize<SnakeToCamel<T>>}` : Lowercase<S>;
2
+ type PascalToCamel<S extends string> = S extends `${infer F}${infer R}` ? `${Lowercase<F>}${R}` : S;
3
+ /** If it's snake_case, apply the snake_case rule; for uppercase keys, lowercase the entire string; otherwise, just lowercase the first letter (including PascalCase → camelCase). */
4
+ type AnyToCamel<S extends string> = S extends `${string}_${string}` ? SnakeToCamel<S> : S extends Uppercase<S> ? Lowercase<S> : PascalToCamel<S>;
5
+ type NonPlainObject = Date | RegExp | Map<any, any> | Set<any> | WeakMap<any, any> | WeakSet<any> | Promise<any> | Error | ArrayBuffer | DataView | Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array | ((...args: any[]) => any) | typeof globalThis;
6
+ type ToCamelCaseKeys<T> = T extends NonPlainObject ? T : T extends any[] ? Array<ToCamelCaseKeys<T[number]>> : T extends Record<string, any> ? {
7
+ [K in keyof T as AnyToCamel<Extract<K, string>>]: ToCamelCaseKeys<T[K]>;
8
+ } : T;
9
+ /**
10
+ * Creates a new object composed of the properties with keys converted to camelCase.
11
+ *
12
+ * This function takes an object and returns a new object that includes the same properties,
13
+ * but with all keys converted to camelCase format.
14
+ *
15
+ * @template T - The type of object.
16
+ * @param {T} obj - The object to convert keys from.
17
+ * @returns {ToCamelCaseKeys<T>} A new object with all keys converted to camelCase.
18
+ *
19
+ * @example
20
+ * // Example with objects
21
+ * const obj = { user_id: 1, first_name: 'John' };
22
+ * const result = toCamelCaseKeys(obj);
23
+ * // result will be { userId: 1, firstName: 'John' }
24
+ *
25
+ * // Example with arrays of objects
26
+ * const arr = [
27
+ * { user_id: 1, first_name: 'John' },
28
+ * { user_id: 2, first_name: 'Jane' }
29
+ * ];
30
+ * const arrResult = toCamelCaseKeys(arr);
31
+ * // arrResult will be [{ userId: 1, firstName: 'John' }, { userId: 2, firstName: 'Jane' }]
32
+ *
33
+ * // Example with nested objects
34
+ * const nested = {
35
+ * user_data: {
36
+ * user_id: 1,
37
+ * user_address: {
38
+ * street_name: 'Main St',
39
+ * zip_code: '12345'
40
+ * }
41
+ * }
42
+ * };
43
+ * const nestedResult = toCamelCaseKeys(nested);
44
+ * // nestedResult will be:
45
+ * // {
46
+ * // userData: {
47
+ * // userId: 1,
48
+ * // userAddress: {
49
+ * // streetName: 'Main St',
50
+ * // zipCode: '12345'
51
+ * // }
52
+ * // }
53
+ * // }
54
+ */
55
+ declare function toCamelCaseKeys<T>(obj: T): ToCamelCaseKeys<T>;
56
+
57
+ export { toCamelCaseKeys };
node_modules/es-toolkit/dist/object/toCamelCaseKeys.d.ts ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ type SnakeToCamel<S extends string> = S extends `${infer H}_${infer T}` ? `${Lowercase<H>}${Capitalize<SnakeToCamel<T>>}` : Lowercase<S>;
2
+ type PascalToCamel<S extends string> = S extends `${infer F}${infer R}` ? `${Lowercase<F>}${R}` : S;
3
+ /** If it's snake_case, apply the snake_case rule; for uppercase keys, lowercase the entire string; otherwise, just lowercase the first letter (including PascalCase → camelCase). */
4
+ type AnyToCamel<S extends string> = S extends `${string}_${string}` ? SnakeToCamel<S> : S extends Uppercase<S> ? Lowercase<S> : PascalToCamel<S>;
5
+ type NonPlainObject = Date | RegExp | Map<any, any> | Set<any> | WeakMap<any, any> | WeakSet<any> | Promise<any> | Error | ArrayBuffer | DataView | Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array | ((...args: any[]) => any) | typeof globalThis;
6
+ type ToCamelCaseKeys<T> = T extends NonPlainObject ? T : T extends any[] ? Array<ToCamelCaseKeys<T[number]>> : T extends Record<string, any> ? {
7
+ [K in keyof T as AnyToCamel<Extract<K, string>>]: ToCamelCaseKeys<T[K]>;
8
+ } : T;
9
+ /**
10
+ * Creates a new object composed of the properties with keys converted to camelCase.
11
+ *
12
+ * This function takes an object and returns a new object that includes the same properties,
13
+ * but with all keys converted to camelCase format.
14
+ *
15
+ * @template T - The type of object.
16
+ * @param {T} obj - The object to convert keys from.
17
+ * @returns {ToCamelCaseKeys<T>} A new object with all keys converted to camelCase.
18
+ *
19
+ * @example
20
+ * // Example with objects
21
+ * const obj = { user_id: 1, first_name: 'John' };
22
+ * const result = toCamelCaseKeys(obj);
23
+ * // result will be { userId: 1, firstName: 'John' }
24
+ *
25
+ * // Example with arrays of objects
26
+ * const arr = [
27
+ * { user_id: 1, first_name: 'John' },
28
+ * { user_id: 2, first_name: 'Jane' }
29
+ * ];
30
+ * const arrResult = toCamelCaseKeys(arr);
31
+ * // arrResult will be [{ userId: 1, firstName: 'John' }, { userId: 2, firstName: 'Jane' }]
32
+ *
33
+ * // Example with nested objects
34
+ * const nested = {
35
+ * user_data: {
36
+ * user_id: 1,
37
+ * user_address: {
38
+ * street_name: 'Main St',
39
+ * zip_code: '12345'
40
+ * }
41
+ * }
42
+ * };
43
+ * const nestedResult = toCamelCaseKeys(nested);
44
+ * // nestedResult will be:
45
+ * // {
46
+ * // userData: {
47
+ * // userId: 1,
48
+ * // userAddress: {
49
+ * // streetName: 'Main St',
50
+ * // zipCode: '12345'
51
+ * // }
52
+ * // }
53
+ * // }
54
+ */
55
+ declare function toCamelCaseKeys<T>(obj: T): ToCamelCaseKeys<T>;
56
+
57
+ export { toCamelCaseKeys };
node_modules/es-toolkit/dist/object/toCamelCaseKeys.js ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const isArray = require('../compat/predicate/isArray.js');
6
+ const isPlainObject = require('../predicate/isPlainObject.js');
7
+ const camelCase = require('../string/camelCase.js');
8
+
9
+ function toCamelCaseKeys(obj) {
10
+ if (isArray.isArray(obj)) {
11
+ return obj.map(item => toCamelCaseKeys(item));
12
+ }
13
+ if (isPlainObject.isPlainObject(obj)) {
14
+ const result = {};
15
+ const keys = Object.keys(obj);
16
+ for (let i = 0; i < keys.length; i++) {
17
+ const key = keys[i];
18
+ const camelKey = camelCase.camelCase(key);
19
+ const convertedValue = toCamelCaseKeys(obj[key]);
20
+ result[camelKey] = convertedValue;
21
+ }
22
+ return result;
23
+ }
24
+ return obj;
25
+ }
26
+
27
+ exports.toCamelCaseKeys = toCamelCaseKeys;
node_modules/es-toolkit/dist/object/toCamelCaseKeys.mjs ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { isArray } from '../compat/predicate/isArray.mjs';
2
+ import { isPlainObject } from '../predicate/isPlainObject.mjs';
3
+ import { camelCase } from '../string/camelCase.mjs';
4
+
5
+ function toCamelCaseKeys(obj) {
6
+ if (isArray(obj)) {
7
+ return obj.map(item => toCamelCaseKeys(item));
8
+ }
9
+ if (isPlainObject(obj)) {
10
+ const result = {};
11
+ const keys = Object.keys(obj);
12
+ for (let i = 0; i < keys.length; i++) {
13
+ const key = keys[i];
14
+ const camelKey = camelCase(key);
15
+ const convertedValue = toCamelCaseKeys(obj[key]);
16
+ result[camelKey] = convertedValue;
17
+ }
18
+ return result;
19
+ }
20
+ return obj;
21
+ }
22
+
23
+ export { toCamelCaseKeys };
node_modules/es-toolkit/dist/object/toMerged.d.mts ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Merges the properties of the source object into a deep clone of the target object.
3
+ * Unlike `merge`, This function does not modify the original target object.
4
+ *
5
+ * This function performs a deep merge, meaning nested objects and arrays are merged recursively.
6
+ *
7
+ * - If a property in the source object is an array or object and the corresponding property in the target object is also an array or object, they will be merged.
8
+ * - If a property in the source object is undefined, it will not overwrite a defined property in the target object.
9
+ *
10
+ * Note that this function does not mutate the target object.
11
+ *
12
+ * @param {T} target - The target object to be cloned and merged into. This object is not modified directly.
13
+ * @param {S} source - The source object whose properties will be merged into the cloned target object.
14
+ * @returns {T & S} A new object with properties from the source object merged into a deep clone of the target object.
15
+ *
16
+ * @template T - Type of the target object.
17
+ * @template S - Type of the source object.
18
+ *
19
+ * @example
20
+ * const target = { a: 1, b: { x: 1, y: 2 } };
21
+ * const source = { b: { y: 3, z: 4 }, c: 5 };
22
+ *
23
+ * const result = toMerged(target, source);
24
+ * console.log(result);
25
+ * // Output: { a: 1, b: { x: 1, y: 3, z: 4 }, c: 5 }
26
+ *
27
+ * @example
28
+ * const target = { a: [1, 2], b: { x: 1 } };
29
+ * const source = { a: [3], b: { y: 2 } };
30
+ *
31
+ * const result = toMerged(target, source);
32
+ * console.log(result);
33
+ * // Output: { a: [3, 2], b: { x: 1, y: 2 } }
34
+ *
35
+ * @example
36
+ * const target = { a: null };
37
+ * const source = { a: [1, 2, 3] };
38
+ *
39
+ * const result = toMerged(target, source);
40
+ * console.log(result);
41
+ * // Output: { a: [1, 2, 3] }
42
+ */
43
+ declare function toMerged<T extends Record<PropertyKey, any>, S extends Record<PropertyKey, any>>(target: T, source: S): T & S;
44
+
45
+ export { toMerged };
node_modules/es-toolkit/dist/object/toMerged.d.ts ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Merges the properties of the source object into a deep clone of the target object.
3
+ * Unlike `merge`, This function does not modify the original target object.
4
+ *
5
+ * This function performs a deep merge, meaning nested objects and arrays are merged recursively.
6
+ *
7
+ * - If a property in the source object is an array or object and the corresponding property in the target object is also an array or object, they will be merged.
8
+ * - If a property in the source object is undefined, it will not overwrite a defined property in the target object.
9
+ *
10
+ * Note that this function does not mutate the target object.
11
+ *
12
+ * @param {T} target - The target object to be cloned and merged into. This object is not modified directly.
13
+ * @param {S} source - The source object whose properties will be merged into the cloned target object.
14
+ * @returns {T & S} A new object with properties from the source object merged into a deep clone of the target object.
15
+ *
16
+ * @template T - Type of the target object.
17
+ * @template S - Type of the source object.
18
+ *
19
+ * @example
20
+ * const target = { a: 1, b: { x: 1, y: 2 } };
21
+ * const source = { b: { y: 3, z: 4 }, c: 5 };
22
+ *
23
+ * const result = toMerged(target, source);
24
+ * console.log(result);
25
+ * // Output: { a: 1, b: { x: 1, y: 3, z: 4 }, c: 5 }
26
+ *
27
+ * @example
28
+ * const target = { a: [1, 2], b: { x: 1 } };
29
+ * const source = { a: [3], b: { y: 2 } };
30
+ *
31
+ * const result = toMerged(target, source);
32
+ * console.log(result);
33
+ * // Output: { a: [3, 2], b: { x: 1, y: 2 } }
34
+ *
35
+ * @example
36
+ * const target = { a: null };
37
+ * const source = { a: [1, 2, 3] };
38
+ *
39
+ * const result = toMerged(target, source);
40
+ * console.log(result);
41
+ * // Output: { a: [1, 2, 3] }
42
+ */
43
+ declare function toMerged<T extends Record<PropertyKey, any>, S extends Record<PropertyKey, any>>(target: T, source: S): T & S;
44
+
45
+ export { toMerged };
node_modules/es-toolkit/dist/object/toMerged.js ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const clone = require('./clone.js');
6
+ const mergeWith = require('./mergeWith.js');
7
+ const isPlainObject = require('../predicate/isPlainObject.js');
8
+
9
+ function toMerged(target, source) {
10
+ return mergeWith.mergeWith(clone.clone(target), source, function mergeRecursively(targetValue, sourceValue) {
11
+ if (Array.isArray(sourceValue)) {
12
+ if (Array.isArray(targetValue)) {
13
+ return mergeWith.mergeWith(clone.clone(targetValue), sourceValue, mergeRecursively);
14
+ }
15
+ else {
16
+ return mergeWith.mergeWith([], sourceValue, mergeRecursively);
17
+ }
18
+ }
19
+ else if (isPlainObject.isPlainObject(sourceValue)) {
20
+ if (isPlainObject.isPlainObject(targetValue)) {
21
+ return mergeWith.mergeWith(clone.clone(targetValue), sourceValue, mergeRecursively);
22
+ }
23
+ else {
24
+ return mergeWith.mergeWith({}, sourceValue, mergeRecursively);
25
+ }
26
+ }
27
+ });
28
+ }
29
+
30
+ exports.toMerged = toMerged;
node_modules/es-toolkit/dist/object/toMerged.mjs ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { clone } from './clone.mjs';
2
+ import { mergeWith } from './mergeWith.mjs';
3
+ import { isPlainObject } from '../predicate/isPlainObject.mjs';
4
+
5
+ function toMerged(target, source) {
6
+ return mergeWith(clone(target), source, function mergeRecursively(targetValue, sourceValue) {
7
+ if (Array.isArray(sourceValue)) {
8
+ if (Array.isArray(targetValue)) {
9
+ return mergeWith(clone(targetValue), sourceValue, mergeRecursively);
10
+ }
11
+ else {
12
+ return mergeWith([], sourceValue, mergeRecursively);
13
+ }
14
+ }
15
+ else if (isPlainObject(sourceValue)) {
16
+ if (isPlainObject(targetValue)) {
17
+ return mergeWith(clone(targetValue), sourceValue, mergeRecursively);
18
+ }
19
+ else {
20
+ return mergeWith({}, sourceValue, mergeRecursively);
21
+ }
22
+ }
23
+ });
24
+ }
25
+
26
+ export { toMerged };
node_modules/es-toolkit/dist/object/toSnakeCaseKeys.d.mts ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ type SnakeCase<S extends string> = S extends Uppercase<S> ? Lowercase<S> : S extends `${infer P1}${infer P2}` ? P2 extends Uncapitalize<P2> ? `${Lowercase<P1>}${SnakeCase<P2>}` : `${Lowercase<P1>}_${SnakeCase<Uncapitalize<P2>>}` : Lowercase<S>;
2
+ type NonPlainObject = Date | RegExp | Map<any, any> | Set<any> | WeakMap<any, any> | WeakSet<any> | Promise<any> | Error | ArrayBuffer | DataView | Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array | ((...args: any[]) => any) | typeof globalThis;
3
+ type ToSnakeCaseKeys<T> = T extends NonPlainObject ? T : T extends any[] ? Array<ToSnakeCaseKeys<T[number]>> : T extends Record<string, any> ? {
4
+ [K in keyof T as SnakeCase<string & K>]: ToSnakeCaseKeys<T[K]>;
5
+ } : T;
6
+ /**
7
+ * Creates a new object composed of the properties with keys converted to snake_case.
8
+ *
9
+ * This function takes an object and returns a new object that includes the same properties,
10
+ * but with all keys converted to snake_case format.
11
+ *
12
+ * @template T - The type of object.
13
+ * @param {T} obj - The object to convert keys from.
14
+ * @returns {ToSnakeCaseKeys<T>} A new object with all keys converted to snake_case.
15
+ *
16
+ * @example
17
+ * // Example with objects
18
+ * const obj = { userId: 1, firstName: 'John' };
19
+ * const result = toSnakeCaseKeys(obj);
20
+ * // result will be { user_id: 1, first_name: 'John' }
21
+ *
22
+ * // Example with arrays of objects
23
+ * const arr = [
24
+ * { userId: 1, firstName: 'John' },
25
+ * { userId: 2, firstName: 'Jane' }
26
+ * ];
27
+ * const arrResult = toSnakeCaseKeys(arr);
28
+ * // arrResult will be [{ user_id: 1, first_name: 'John' }, { user_id: 2, first_name: 'Jane' }]
29
+ *
30
+ * // Example with nested objects
31
+ * const nested = {
32
+ * userData: {
33
+ * userId: 1,
34
+ * userAddress: {
35
+ * streetName: 'Main St',
36
+ * zipCode: '12345'
37
+ * }
38
+ * }
39
+ * };
40
+ * const nestedResult = toSnakeCaseKeys(nested);
41
+ * // nestedResult will be:
42
+ * // {
43
+ * // user_data: {
44
+ * // user_id: 1,
45
+ * // user_address: {
46
+ * // street_name: 'Main St',
47
+ * // zip_code: '12345'
48
+ * // }
49
+ * // }
50
+ * // }
51
+ */
52
+ declare function toSnakeCaseKeys<T>(obj: T): ToSnakeCaseKeys<T>;
53
+
54
+ export { type ToSnakeCaseKeys, toSnakeCaseKeys };
node_modules/es-toolkit/dist/object/toSnakeCaseKeys.d.ts ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ type SnakeCase<S extends string> = S extends Uppercase<S> ? Lowercase<S> : S extends `${infer P1}${infer P2}` ? P2 extends Uncapitalize<P2> ? `${Lowercase<P1>}${SnakeCase<P2>}` : `${Lowercase<P1>}_${SnakeCase<Uncapitalize<P2>>}` : Lowercase<S>;
2
+ type NonPlainObject = Date | RegExp | Map<any, any> | Set<any> | WeakMap<any, any> | WeakSet<any> | Promise<any> | Error | ArrayBuffer | DataView | Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array | ((...args: any[]) => any) | typeof globalThis;
3
+ type ToSnakeCaseKeys<T> = T extends NonPlainObject ? T : T extends any[] ? Array<ToSnakeCaseKeys<T[number]>> : T extends Record<string, any> ? {
4
+ [K in keyof T as SnakeCase<string & K>]: ToSnakeCaseKeys<T[K]>;
5
+ } : T;
6
+ /**
7
+ * Creates a new object composed of the properties with keys converted to snake_case.
8
+ *
9
+ * This function takes an object and returns a new object that includes the same properties,
10
+ * but with all keys converted to snake_case format.
11
+ *
12
+ * @template T - The type of object.
13
+ * @param {T} obj - The object to convert keys from.
14
+ * @returns {ToSnakeCaseKeys<T>} A new object with all keys converted to snake_case.
15
+ *
16
+ * @example
17
+ * // Example with objects
18
+ * const obj = { userId: 1, firstName: 'John' };
19
+ * const result = toSnakeCaseKeys(obj);
20
+ * // result will be { user_id: 1, first_name: 'John' }
21
+ *
22
+ * // Example with arrays of objects
23
+ * const arr = [
24
+ * { userId: 1, firstName: 'John' },
25
+ * { userId: 2, firstName: 'Jane' }
26
+ * ];
27
+ * const arrResult = toSnakeCaseKeys(arr);
28
+ * // arrResult will be [{ user_id: 1, first_name: 'John' }, { user_id: 2, first_name: 'Jane' }]
29
+ *
30
+ * // Example with nested objects
31
+ * const nested = {
32
+ * userData: {
33
+ * userId: 1,
34
+ * userAddress: {
35
+ * streetName: 'Main St',
36
+ * zipCode: '12345'
37
+ * }
38
+ * }
39
+ * };
40
+ * const nestedResult = toSnakeCaseKeys(nested);
41
+ * // nestedResult will be:
42
+ * // {
43
+ * // user_data: {
44
+ * // user_id: 1,
45
+ * // user_address: {
46
+ * // street_name: 'Main St',
47
+ * // zip_code: '12345'
48
+ * // }
49
+ * // }
50
+ * // }
51
+ */
52
+ declare function toSnakeCaseKeys<T>(obj: T): ToSnakeCaseKeys<T>;
53
+
54
+ export { type ToSnakeCaseKeys, toSnakeCaseKeys };
node_modules/es-toolkit/dist/object/toSnakeCaseKeys.js ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const isArray = require('../compat/predicate/isArray.js');
6
+ const isPlainObject = require('../compat/predicate/isPlainObject.js');
7
+ const snakeCase = require('../string/snakeCase.js');
8
+
9
+ function toSnakeCaseKeys(obj) {
10
+ if (isArray.isArray(obj)) {
11
+ return obj.map(item => toSnakeCaseKeys(item));
12
+ }
13
+ if (isPlainObject.isPlainObject(obj)) {
14
+ const result = {};
15
+ const keys = Object.keys(obj);
16
+ for (let i = 0; i < keys.length; i++) {
17
+ const key = keys[i];
18
+ const snakeKey = snakeCase.snakeCase(key);
19
+ const convertedValue = toSnakeCaseKeys(obj[key]);
20
+ result[snakeKey] = convertedValue;
21
+ }
22
+ return result;
23
+ }
24
+ return obj;
25
+ }
26
+
27
+ exports.toSnakeCaseKeys = toSnakeCaseKeys;
node_modules/es-toolkit/dist/object/toSnakeCaseKeys.mjs ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { isArray } from '../compat/predicate/isArray.mjs';
2
+ import { isPlainObject } from '../compat/predicate/isPlainObject.mjs';
3
+ import { snakeCase } from '../string/snakeCase.mjs';
4
+
5
+ function toSnakeCaseKeys(obj) {
6
+ if (isArray(obj)) {
7
+ return obj.map(item => toSnakeCaseKeys(item));
8
+ }
9
+ if (isPlainObject(obj)) {
10
+ const result = {};
11
+ const keys = Object.keys(obj);
12
+ for (let i = 0; i < keys.length; i++) {
13
+ const key = keys[i];
14
+ const snakeKey = snakeCase(key);
15
+ const convertedValue = toSnakeCaseKeys(obj[key]);
16
+ result[snakeKey] = convertedValue;
17
+ }
18
+ return result;
19
+ }
20
+ return obj;
21
+ }
22
+
23
+ export { toSnakeCaseKeys };
node_modules/es-toolkit/dist/predicate/index.d.mts ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export { isArrayBuffer } from './isArrayBuffer.mjs';
2
+ export { isBlob } from './isBlob.mjs';
3
+ export { isBoolean } from './isBoolean.mjs';
4
+ export { isBrowser } from './isBrowser.mjs';
5
+ export { isBuffer } from './isBuffer.mjs';
6
+ export { isDate } from './isDate.mjs';
7
+ export { isEmptyObject } from './isEmptyObject.mjs';
8
+ export { isEqual } from './isEqual.mjs';
9
+ export { isEqualWith } from './isEqualWith.mjs';
10
+ export { isError } from './isError.mjs';
11
+ export { isFile } from './isFile.mjs';
12
+ export { isFunction } from './isFunction.mjs';
13
+ export { isJSON } from './isJSON.mjs';
14
+ export { isJSONArray, isJSONObject, isJSONValue } from './isJSONValue.mjs';
15
+ export { isLength } from './isLength.mjs';
16
+ export { isMap } from './isMap.mjs';
17
+ export { isNil } from './isNil.mjs';
18
+ export { isNode } from './isNode.mjs';
19
+ export { isNotNil } from './isNotNil.mjs';
20
+ export { isNull } from './isNull.mjs';
21
+ export { isNumber } from './isNumber.mjs';
22
+ export { isPlainObject } from './isPlainObject.mjs';
23
+ export { isPrimitive } from './isPrimitive.mjs';
24
+ export { isPromise } from './isPromise.mjs';
25
+ export { isRegExp } from './isRegExp.mjs';
26
+ export { isSet } from './isSet.mjs';
27
+ export { isString } from './isString.mjs';
28
+ export { isSymbol } from './isSymbol.mjs';
29
+ export { isTypedArray } from './isTypedArray.mjs';
30
+ export { isUndefined } from './isUndefined.mjs';
31
+ export { isWeakMap } from './isWeakMap.mjs';
32
+ export { isWeakSet } from './isWeakSet.mjs';
node_modules/es-toolkit/dist/predicate/index.d.ts ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export { isArrayBuffer } from './isArrayBuffer.js';
2
+ export { isBlob } from './isBlob.js';
3
+ export { isBoolean } from './isBoolean.js';
4
+ export { isBrowser } from './isBrowser.js';
5
+ export { isBuffer } from './isBuffer.js';
6
+ export { isDate } from './isDate.js';
7
+ export { isEmptyObject } from './isEmptyObject.js';
8
+ export { isEqual } from './isEqual.js';
9
+ export { isEqualWith } from './isEqualWith.js';
10
+ export { isError } from './isError.js';
11
+ export { isFile } from './isFile.js';
12
+ export { isFunction } from './isFunction.js';
13
+ export { isJSON } from './isJSON.js';
14
+ export { isJSONArray, isJSONObject, isJSONValue } from './isJSONValue.js';
15
+ export { isLength } from './isLength.js';
16
+ export { isMap } from './isMap.js';
17
+ export { isNil } from './isNil.js';
18
+ export { isNode } from './isNode.js';
19
+ export { isNotNil } from './isNotNil.js';
20
+ export { isNull } from './isNull.js';
21
+ export { isNumber } from './isNumber.js';
22
+ export { isPlainObject } from './isPlainObject.js';
23
+ export { isPrimitive } from './isPrimitive.js';
24
+ export { isPromise } from './isPromise.js';
25
+ export { isRegExp } from './isRegExp.js';
26
+ export { isSet } from './isSet.js';
27
+ export { isString } from './isString.js';
28
+ export { isSymbol } from './isSymbol.js';
29
+ export { isTypedArray } from './isTypedArray.js';
30
+ export { isUndefined } from './isUndefined.js';
31
+ export { isWeakMap } from './isWeakMap.js';
32
+ export { isWeakSet } from './isWeakSet.js';
node_modules/es-toolkit/dist/predicate/index.js ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const isArrayBuffer = require('./isArrayBuffer.js');
6
+ const isBlob = require('./isBlob.js');
7
+ const isBoolean = require('./isBoolean.js');
8
+ const isBrowser = require('./isBrowser.js');
9
+ const isBuffer = require('./isBuffer.js');
10
+ const isDate = require('./isDate.js');
11
+ const isEmptyObject = require('./isEmptyObject.js');
12
+ const isEqual = require('./isEqual.js');
13
+ const isEqualWith = require('./isEqualWith.js');
14
+ const isError = require('./isError.js');
15
+ const isFile = require('./isFile.js');
16
+ const isFunction = require('./isFunction.js');
17
+ const isJSON = require('./isJSON.js');
18
+ const isJSONValue = require('./isJSONValue.js');
19
+ const isLength = require('./isLength.js');
20
+ const isMap = require('./isMap.js');
21
+ const isNil = require('./isNil.js');
22
+ const isNode = require('./isNode.js');
23
+ const isNotNil = require('./isNotNil.js');
24
+ const isNull = require('./isNull.js');
25
+ const isNumber = require('./isNumber.js');
26
+ const isPlainObject = require('./isPlainObject.js');
27
+ const isPrimitive = require('./isPrimitive.js');
28
+ const isPromise = require('./isPromise.js');
29
+ const isRegExp = require('./isRegExp.js');
30
+ const isSet = require('./isSet.js');
31
+ const isString = require('./isString.js');
32
+ const isSymbol = require('./isSymbol.js');
33
+ const isTypedArray = require('./isTypedArray.js');
34
+ const isUndefined = require('./isUndefined.js');
35
+ const isWeakMap = require('./isWeakMap.js');
36
+ const isWeakSet = require('./isWeakSet.js');
37
+
38
+
39
+
40
+ exports.isArrayBuffer = isArrayBuffer.isArrayBuffer;
41
+ exports.isBlob = isBlob.isBlob;
42
+ exports.isBoolean = isBoolean.isBoolean;
43
+ exports.isBrowser = isBrowser.isBrowser;
44
+ exports.isBuffer = isBuffer.isBuffer;
45
+ exports.isDate = isDate.isDate;
46
+ exports.isEmptyObject = isEmptyObject.isEmptyObject;
47
+ exports.isEqual = isEqual.isEqual;
48
+ exports.isEqualWith = isEqualWith.isEqualWith;
49
+ exports.isError = isError.isError;
50
+ exports.isFile = isFile.isFile;
51
+ exports.isFunction = isFunction.isFunction;
52
+ exports.isJSON = isJSON.isJSON;
53
+ exports.isJSONArray = isJSONValue.isJSONArray;
54
+ exports.isJSONObject = isJSONValue.isJSONObject;
55
+ exports.isJSONValue = isJSONValue.isJSONValue;
56
+ exports.isLength = isLength.isLength;
57
+ exports.isMap = isMap.isMap;
58
+ exports.isNil = isNil.isNil;
59
+ exports.isNode = isNode.isNode;
60
+ exports.isNotNil = isNotNil.isNotNil;
61
+ exports.isNull = isNull.isNull;
62
+ exports.isNumber = isNumber.isNumber;
63
+ exports.isPlainObject = isPlainObject.isPlainObject;
64
+ exports.isPrimitive = isPrimitive.isPrimitive;
65
+ exports.isPromise = isPromise.isPromise;
66
+ exports.isRegExp = isRegExp.isRegExp;
67
+ exports.isSet = isSet.isSet;
68
+ exports.isString = isString.isString;
69
+ exports.isSymbol = isSymbol.isSymbol;
70
+ exports.isTypedArray = isTypedArray.isTypedArray;
71
+ exports.isUndefined = isUndefined.isUndefined;
72
+ exports.isWeakMap = isWeakMap.isWeakMap;
73
+ exports.isWeakSet = isWeakSet.isWeakSet;
node_modules/es-toolkit/dist/predicate/index.mjs ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export { isArrayBuffer } from './isArrayBuffer.mjs';
2
+ export { isBlob } from './isBlob.mjs';
3
+ export { isBoolean } from './isBoolean.mjs';
4
+ export { isBrowser } from './isBrowser.mjs';
5
+ export { isBuffer } from './isBuffer.mjs';
6
+ export { isDate } from './isDate.mjs';
7
+ export { isEmptyObject } from './isEmptyObject.mjs';
8
+ export { isEqual } from './isEqual.mjs';
9
+ export { isEqualWith } from './isEqualWith.mjs';
10
+ export { isError } from './isError.mjs';
11
+ export { isFile } from './isFile.mjs';
12
+ export { isFunction } from './isFunction.mjs';
13
+ export { isJSON } from './isJSON.mjs';
14
+ export { isJSONArray, isJSONObject, isJSONValue } from './isJSONValue.mjs';
15
+ export { isLength } from './isLength.mjs';
16
+ export { isMap } from './isMap.mjs';
17
+ export { isNil } from './isNil.mjs';
18
+ export { isNode } from './isNode.mjs';
19
+ export { isNotNil } from './isNotNil.mjs';
20
+ export { isNull } from './isNull.mjs';
21
+ export { isNumber } from './isNumber.mjs';
22
+ export { isPlainObject } from './isPlainObject.mjs';
23
+ export { isPrimitive } from './isPrimitive.mjs';
24
+ export { isPromise } from './isPromise.mjs';
25
+ export { isRegExp } from './isRegExp.mjs';
26
+ export { isSet } from './isSet.mjs';
27
+ export { isString } from './isString.mjs';
28
+ export { isSymbol } from './isSymbol.mjs';
29
+ export { isTypedArray } from './isTypedArray.mjs';
30
+ export { isUndefined } from './isUndefined.mjs';
31
+ export { isWeakMap } from './isWeakMap.mjs';
32
+ export { isWeakSet } from './isWeakSet.mjs';
node_modules/es-toolkit/dist/predicate/isArrayBuffer.d.mts ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Checks if a given value is `ArrayBuffer`.
3
+ *
4
+ * This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `ArrayBuffer`.
5
+ *
6
+ * @param {unknown} value The value to check if it is a `ArrayBuffer`.
7
+ * @returns {value is ArrayBuffer} Returns `true` if `value` is a `ArrayBuffer`, else `false`.
8
+ *
9
+ * @example
10
+ * const value1 = new ArrayBuffer();
11
+ * const value2 = new Array();
12
+ * const value3 = new Map();
13
+ *
14
+ * console.log(isArrayBuffer(value1)); // true
15
+ * console.log(isArrayBuffer(value2)); // false
16
+ * console.log(isArrayBuffer(value3)); // false
17
+ */
18
+ declare function isArrayBuffer(value: unknown): value is ArrayBuffer;
19
+
20
+ export { isArrayBuffer };
node_modules/es-toolkit/dist/predicate/isArrayBuffer.d.ts ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Checks if a given value is `ArrayBuffer`.
3
+ *
4
+ * This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `ArrayBuffer`.
5
+ *
6
+ * @param {unknown} value The value to check if it is a `ArrayBuffer`.
7
+ * @returns {value is ArrayBuffer} Returns `true` if `value` is a `ArrayBuffer`, else `false`.
8
+ *
9
+ * @example
10
+ * const value1 = new ArrayBuffer();
11
+ * const value2 = new Array();
12
+ * const value3 = new Map();
13
+ *
14
+ * console.log(isArrayBuffer(value1)); // true
15
+ * console.log(isArrayBuffer(value2)); // false
16
+ * console.log(isArrayBuffer(value3)); // false
17
+ */
18
+ declare function isArrayBuffer(value: unknown): value is ArrayBuffer;
19
+
20
+ export { isArrayBuffer };
node_modules/es-toolkit/dist/predicate/isArrayBuffer.js ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ function isArrayBuffer(value) {
6
+ return value instanceof ArrayBuffer;
7
+ }
8
+
9
+ exports.isArrayBuffer = isArrayBuffer;
node_modules/es-toolkit/dist/predicate/isArrayBuffer.mjs ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ function isArrayBuffer(value) {
2
+ return value instanceof ArrayBuffer;
3
+ }
4
+
5
+ export { isArrayBuffer };
node_modules/es-toolkit/dist/predicate/isBlob.d.mts ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Checks if the given value is a Blob.
3
+ *
4
+ * This function tests whether the provided value is an instance of `Blob`.
5
+ * It returns `true` if the value is an instance of `Blob`, and `false` otherwise.
6
+ *
7
+ * @param {unknown} x - The value to test if it is a Blob.
8
+ * @returns {x is Blob} True if the value is a Blob, false otherwise.
9
+ *
10
+ * @example
11
+ * const value1 = new Blob();
12
+ * const value2 = {};
13
+ *
14
+ * console.log(isBlob(value1)); // true
15
+ * console.log(isBlob(value2)); // false
16
+ */
17
+ declare function isBlob(x: unknown): x is Blob;
18
+
19
+ export { isBlob };
node_modules/es-toolkit/dist/predicate/isBlob.d.ts ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Checks if the given value is a Blob.
3
+ *
4
+ * This function tests whether the provided value is an instance of `Blob`.
5
+ * It returns `true` if the value is an instance of `Blob`, and `false` otherwise.
6
+ *
7
+ * @param {unknown} x - The value to test if it is a Blob.
8
+ * @returns {x is Blob} True if the value is a Blob, false otherwise.
9
+ *
10
+ * @example
11
+ * const value1 = new Blob();
12
+ * const value2 = {};
13
+ *
14
+ * console.log(isBlob(value1)); // true
15
+ * console.log(isBlob(value2)); // false
16
+ */
17
+ declare function isBlob(x: unknown): x is Blob;
18
+
19
+ export { isBlob };
node_modules/es-toolkit/dist/predicate/isBlob.js ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ function isBlob(x) {
6
+ if (typeof Blob === 'undefined') {
7
+ return false;
8
+ }
9
+ return x instanceof Blob;
10
+ }
11
+
12
+ exports.isBlob = isBlob;
node_modules/es-toolkit/dist/predicate/isBlob.mjs ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ function isBlob(x) {
2
+ if (typeof Blob === 'undefined') {
3
+ return false;
4
+ }
5
+ return x instanceof Blob;
6
+ }
7
+
8
+ export { isBlob };
node_modules/es-toolkit/dist/predicate/isBoolean.d.mts ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Checks if the given value is boolean.
3
+ *
4
+ * This function tests whether the provided value is strictly `boolean`.
5
+ * It returns `true` if the value is `boolean`, and `false` otherwise.
6
+ *
7
+ * This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `boolean`.
8
+ *
9
+ * @param {unknown} x - The Value to test if it is boolean.
10
+ * @returns {x is boolean} True if the value is boolean, false otherwise.
11
+ *
12
+ * @example
13
+ *
14
+ * const value1 = true;
15
+ * const value2 = 0;
16
+ * const value3 = 'abc';
17
+ *
18
+ * console.log(isBoolean(value1)); // true
19
+ * console.log(isBoolean(value2)); // false
20
+ * console.log(isBoolean(value3)); // false
21
+ *
22
+ */
23
+ declare function isBoolean(x: unknown): x is boolean;
24
+
25
+ export { isBoolean };
node_modules/es-toolkit/dist/predicate/isBoolean.d.ts ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Checks if the given value is boolean.
3
+ *
4
+ * This function tests whether the provided value is strictly `boolean`.
5
+ * It returns `true` if the value is `boolean`, and `false` otherwise.
6
+ *
7
+ * This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `boolean`.
8
+ *
9
+ * @param {unknown} x - The Value to test if it is boolean.
10
+ * @returns {x is boolean} True if the value is boolean, false otherwise.
11
+ *
12
+ * @example
13
+ *
14
+ * const value1 = true;
15
+ * const value2 = 0;
16
+ * const value3 = 'abc';
17
+ *
18
+ * console.log(isBoolean(value1)); // true
19
+ * console.log(isBoolean(value2)); // false
20
+ * console.log(isBoolean(value3)); // false
21
+ *
22
+ */
23
+ declare function isBoolean(x: unknown): x is boolean;
24
+
25
+ export { isBoolean };
node_modules/es-toolkit/dist/predicate/isBoolean.js ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ function isBoolean(x) {
6
+ return typeof x === 'boolean';
7
+ }
8
+
9
+ exports.isBoolean = isBoolean;
node_modules/es-toolkit/dist/predicate/isBoolean.mjs ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ function isBoolean(x) {
2
+ return typeof x === 'boolean';
3
+ }
4
+
5
+ export { isBoolean };
node_modules/es-toolkit/dist/predicate/isBrowser.d.mts ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Checks if the current environment is a browser.
3
+ *
4
+ * This function checks for the existence of the `window.document` property,
5
+ * which only exists in browser environments.
6
+ *
7
+ * @returns {boolean} `true` if the current environment is a browser, otherwise `false`.
8
+ *
9
+ * @example
10
+ * if (isBrowser()) {
11
+ * console.log("This is running in a browser");
12
+ * document.getElementById('app').innerHTML = 'Hello World';
13
+ * }
14
+ */
15
+ declare function isBrowser(): boolean;
16
+
17
+ export { isBrowser };
node_modules/es-toolkit/dist/predicate/isBrowser.d.ts ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Checks if the current environment is a browser.
3
+ *
4
+ * This function checks for the existence of the `window.document` property,
5
+ * which only exists in browser environments.
6
+ *
7
+ * @returns {boolean} `true` if the current environment is a browser, otherwise `false`.
8
+ *
9
+ * @example
10
+ * if (isBrowser()) {
11
+ * console.log("This is running in a browser");
12
+ * document.getElementById('app').innerHTML = 'Hello World';
13
+ * }
14
+ */
15
+ declare function isBrowser(): boolean;
16
+
17
+ export { isBrowser };
node_modules/es-toolkit/dist/predicate/isBrowser.js ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ function isBrowser() {
6
+ return typeof window !== 'undefined' && window?.document != null;
7
+ }
8
+
9
+ exports.isBrowser = isBrowser;
node_modules/es-toolkit/dist/predicate/isBrowser.mjs ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ function isBrowser() {
2
+ return typeof window !== 'undefined' && window?.document != null;
3
+ }
4
+
5
+ export { isBrowser };
node_modules/es-toolkit/dist/predicate/isBuffer.d.mts ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Checks if the given value is a Buffer instance.
3
+ *
4
+ * This function tests whether the provided value is an instance of Buffer.
5
+ * It returns `true` if the value is a Buffer, and `false` otherwise.
6
+ *
7
+ * This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `Buffer`.
8
+ *
9
+ * @param {unknown} x - The value to check if it is a Buffer.
10
+ * @returns {boolean} Returns `true` if `x` is a Buffer, else `false`.
11
+ *
12
+ * @example
13
+ * const buffer = Buffer.from("test");
14
+ * console.log(isBuffer(buffer)); // true
15
+ *
16
+ * const notBuffer = "not a buffer";
17
+ * console.log(isBuffer(notBuffer)); // false
18
+ */
19
+ declare function isBuffer(x: unknown): boolean;
20
+
21
+ export { isBuffer };
node_modules/es-toolkit/dist/predicate/isBuffer.d.ts ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Checks if the given value is a Buffer instance.
3
+ *
4
+ * This function tests whether the provided value is an instance of Buffer.
5
+ * It returns `true` if the value is a Buffer, and `false` otherwise.
6
+ *
7
+ * This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `Buffer`.
8
+ *
9
+ * @param {unknown} x - The value to check if it is a Buffer.
10
+ * @returns {boolean} Returns `true` if `x` is a Buffer, else `false`.
11
+ *
12
+ * @example
13
+ * const buffer = Buffer.from("test");
14
+ * console.log(isBuffer(buffer)); // true
15
+ *
16
+ * const notBuffer = "not a buffer";
17
+ * console.log(isBuffer(notBuffer)); // false
18
+ */
19
+ declare function isBuffer(x: unknown): boolean;
20
+
21
+ export { isBuffer };
node_modules/es-toolkit/dist/predicate/isBuffer.js ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ function isBuffer(x) {
6
+ return typeof Buffer !== 'undefined' && Buffer.isBuffer(x);
7
+ }
8
+
9
+ exports.isBuffer = isBuffer;
node_modules/es-toolkit/dist/predicate/isBuffer.mjs ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ function isBuffer(x) {
2
+ return typeof Buffer !== 'undefined' && Buffer.isBuffer(x);
3
+ }
4
+
5
+ export { isBuffer };
node_modules/es-toolkit/dist/predicate/isDate.d.mts ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Checks if `value` is a Date object.
3
+ *
4
+ * @param {unknown} value The value to check.
5
+ * @returns {value is Date} Returns `true` if `value` is a Date object, `false` otherwise.
6
+ *
7
+ * @example
8
+ * const value1 = new Date();
9
+ * const value2 = '2024-01-01';
10
+ *
11
+ * console.log(isDate(value1)); // true
12
+ * console.log(isDate(value2)); // false
13
+ */
14
+ declare function isDate(value: unknown): value is Date;
15
+
16
+ export { isDate };
node_modules/es-toolkit/dist/predicate/isDate.d.ts ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Checks if `value` is a Date object.
3
+ *
4
+ * @param {unknown} value The value to check.
5
+ * @returns {value is Date} Returns `true` if `value` is a Date object, `false` otherwise.
6
+ *
7
+ * @example
8
+ * const value1 = new Date();
9
+ * const value2 = '2024-01-01';
10
+ *
11
+ * console.log(isDate(value1)); // true
12
+ * console.log(isDate(value2)); // false
13
+ */
14
+ declare function isDate(value: unknown): value is Date;
15
+
16
+ export { isDate };
node_modules/es-toolkit/dist/predicate/isDate.js ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ function isDate(value) {
6
+ return value instanceof Date;
7
+ }
8
+
9
+ exports.isDate = isDate;
node_modules/es-toolkit/dist/predicate/isDate.mjs ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ function isDate(value) {
2
+ return value instanceof Date;
3
+ }
4
+
5
+ export { isDate };
node_modules/es-toolkit/dist/predicate/isEmptyObject.d.mts ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Checks if a value is an empty plain object.
3
+ *
4
+ * @param {unknown} value - The value to check.
5
+ * @returns {value is Record<PropertyKey, never>} - True if the value is an empty plain object, otherwise false.
6
+ *
7
+ * @example
8
+ * isEmptyObject({}); // true
9
+ * isEmptyObject({ a: 1 }); // false
10
+ * isEmptyObject([]); // false
11
+ * isEmptyObject(null); // false
12
+ */
13
+ declare function isEmptyObject(value: unknown): value is Record<PropertyKey, never>;
14
+
15
+ export { isEmptyObject };