deverything 4.0.0 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -30,8 +30,9 @@ Contributions always welcome!
30
30
  - `isFile()` if it's a file
31
31
  - `isFunction()`
32
32
  - `isJsDate()` if it's a **valid** javascript's Date
33
- - `isFutureDate()`
34
- - `isPastDate()`
33
+ - `isBetweenDates()` check if date falls between two other dates (left inclusive: includes start, excludes end)
34
+ - `isFutureDate()` check if date is in the future, optionally against a reference date
35
+ - `isPastDate()` check if date is in the past, optionally against a reference date
35
36
  - `isStringDate()` also checks if the string passed is a **valid** date
36
37
  - `isKey()` is a real key of an object
37
38
  - `isLastIndex()` is the index is the last item of array
@@ -61,7 +62,9 @@ Contributions always welcome!
61
62
  ### Dates
62
63
 
63
64
  - `getDateRangeSeries()` generate a series of dates within a range
64
- - `isOver18()`
65
+ - `getDateSeriesRange()` get the smallest and biggest dates from an array of dates
66
+ - `groupByDateBucket()` group items into date buckets based on their dates and specified time intervals
67
+ - `isOver18()` check if someone is over 18 years old
65
68
  - `startOfDay()` get the start of a specific day
66
69
  - `startOfNextMonth()`
67
70
  - `startOfNextWeek()`
package/dist/index.d.mts CHANGED
@@ -142,6 +142,7 @@ type Serialized<T> = T extends Date ? string : T extends Array<infer R> ? Array<
142
142
 
143
143
  /**
144
144
  * Buckets dates into groups based on a date series
145
+ * @deprecated Use `groupByDateBucket` instead. This function will be removed in the next major version.
145
146
  * @param dateSeries Array of dates that define the buckets, must be sorted in ascending order
146
147
  * @param dates Array of dates to be bucketed, must be sorted in ascending order
147
148
  * @param unit The time unit to use for bucketing ('day', 'hour', 'minute', 'second')
@@ -164,6 +165,23 @@ declare const getDateRangeSeries: (dateRange: DateRange, unit: "day" | "hour" |
164
165
  */
165
166
  declare const getDateSeriesRange: (dateSeries: DateSeries) => DateRange;
166
167
 
168
+ type PropertyAccessor<T> = keyof T | ((item: T) => any);
169
+
170
+ /**
171
+ * Groups items into date buckets based on their dates and specified time intervals
172
+ * @param dateBuckets Array of ISO date strings that define the bucket boundaries, must be sorted in ascending order
173
+ * @param items Array of items to be grouped into buckets, should be sorted in ascending order by the date property for optimal performance
174
+ * @param unit The time unit to use for bucket intervals ('day', 'hour', 'minute', 'second')
175
+ * @param accessor Optional property accessor for extracting dates from items. If not provided, assumes items are ISO date strings
176
+ * @returns Record where keys are ISO date strings from dateBuckets and values are arrays of items that fall within each bucket's time range
177
+ */
178
+ declare function groupByDateBucket<T>({ dateBuckets, items, unit, accessor, }: {
179
+ dateBuckets: ISODate[];
180
+ items: T[];
181
+ unit: "day" | "hour" | "minute" | "second";
182
+ accessor?: PropertyAccessor<T>;
183
+ }): Record<ISODate, T[]>;
184
+
167
185
  declare const isOver18: (birthDate: DateLike) => boolean;
168
186
 
169
187
  /**
@@ -760,11 +778,42 @@ declare const randomVerb: () => string;
760
778
 
761
779
  declare const formatTrpcInputQueryString: (input: PlainObject) => URLSearchParams;
762
780
 
781
+ /**
782
+ * Checks if the provided argument is an array.
783
+ *
784
+ * @template T - The type of elements in the array.
785
+ * @param arg - The value to check.
786
+ * @returns True if the argument is an array, false otherwise.
787
+ */
763
788
  declare const isArray: <T>(arg?: any) => arg is T[];
764
789
 
790
+ /**
791
+ * Checks if all elements of the first array are included in the second array.
792
+ *
793
+ * @template T - The type of elements in the arrays.
794
+ * @param arr1 - The array whose elements are to be checked for inclusion.
795
+ * @param arr2 - The array to check against.
796
+ * @returns True if every element in arr1 is included in arr2, false otherwise.
797
+ */
765
798
  declare const isArrayIncluded: <T>(arr1: T[], arr2: T[]) => boolean;
766
799
 
767
- declare const isBoolean: (arg: any) => arg is boolean;
800
+ /**
801
+ * Checks if a date falls between two other dates (left inclusive)
802
+ * @param date The date to check
803
+ * @param dateRange The date range to check against
804
+ * @returns true if the date is between the start and end dates (includes startDate, excludes endDate)
805
+ *
806
+ * @alias isInDateRange
807
+ *
808
+ * @example
809
+ * isBetweenDates("2023-06-15", { startDate: "2023-01-01", endDate: "2023-12-31" }) // true
810
+ * isBetweenDates("2023-01-01", { startDate: "2023-01-01", endDate: "2023-12-31" }) // true (includes start)
811
+ * isBetweenDates("2023-12-31", { startDate: "2023-01-01", endDate: "2023-12-31" }) // false (excludes end)
812
+ */
813
+ declare const isBetweenDates: (date: DateLike, dateRange: DateRange) => boolean;
814
+ declare const isInDateRange: (date: DateLike, dateRange: DateRange) => boolean;
815
+
816
+ declare const isBoolean: (arg?: any) => arg is boolean;
768
817
 
769
818
  declare const isBrowser: () => boolean;
770
819
 
@@ -784,11 +833,24 @@ declare const isFile: (arg?: any) => arg is File;
784
833
  /**
785
834
  * @returns true if the argument can be called like a function -> fn() or await fn()
786
835
  */
787
- declare const isFunction: (arg: any) => arg is Function;
836
+ declare const isFunction: (arg?: any) => arg is Function;
788
837
 
789
- declare const isFutureDate: (arg: DateLike) => boolean;
838
+ declare const isFutureDate: (arg: DateLike, { referenceDate }?: {
839
+ referenceDate?: DateLike;
840
+ }) => boolean;
790
841
 
791
- declare const isJsDate: (arg: Date) => arg is Date;
842
+ /**
843
+ * Checks if the provided argument is a valid JavaScript Date object.
844
+ *
845
+ * @param arg - The value to check.
846
+ * @returns True if the argument is a Date object and is valid (not NaN), otherwise false.
847
+ *
848
+ * @example
849
+ * isJsDate(new Date()); // true
850
+ * isJsDate("2023-01-01"); // false
851
+ * isJsDate(new Date("invalid-date")); // false
852
+ */
853
+ declare const isJsDate: (arg?: any) => arg is Date;
792
854
 
793
855
  declare const isKey: <T extends PlainObject>(key: Key, // cannot use PlainKey here because it does not include symbol (keyof T does)
794
856
  obj: T) => key is keyof T;
@@ -797,13 +859,13 @@ declare const isLastIndex: (index: number, array: any[]) => boolean;
797
859
 
798
860
  declare const isNotEmptyString: (arg: any) => boolean;
799
861
 
800
- declare const isInt: (arg: any) => boolean;
801
- declare const isEven: (arg: any) => boolean;
802
- declare const isOdd: (arg: any) => boolean;
803
- declare const isPositiveInt: (arg: any) => boolean;
804
- declare const isNegativeInt: (arg: any) => boolean;
805
- declare const isNumber: (arg: any) => arg is number;
806
- declare const isBigInt: (arg: any) => arg is BigInt;
862
+ declare const isInt: (arg?: any) => boolean;
863
+ declare const isEven: (arg?: any) => boolean;
864
+ declare const isOdd: (arg?: any) => boolean;
865
+ declare const isPositiveInt: (arg?: any) => boolean;
866
+ declare const isNegativeInt: (arg?: any) => boolean;
867
+ declare const isNumber: (arg?: any) => arg is number;
868
+ declare const isBigInt: (arg?: any) => arg is BigInt;
807
869
  declare const isBigIntString: (arg: string) => boolean;
808
870
  declare const isOutsideInt4: (num: number) => boolean;
809
871
 
@@ -822,9 +884,11 @@ declare const isNumericId: (id: string) => boolean;
822
884
 
823
885
  declare const isObject: <T>(arg?: any) => arg is PlainObject<T>;
824
886
 
825
- declare const isPastDate: (arg: DateLike) => boolean;
887
+ declare const isPastDate: (arg: DateLike, { referenceDate }?: {
888
+ referenceDate?: DateLike;
889
+ }) => boolean;
826
890
 
827
- declare const isPromise: (arg: any) => arg is Promise<any>;
891
+ declare const isPromise: (arg?: unknown) => arg is Promise<unknown>;
828
892
 
829
893
  declare const isPWA: () => boolean;
830
894
 
@@ -848,7 +912,7 @@ declare const isServer: () => boolean;
848
912
 
849
913
  declare const isSpacedString: (s: string) => boolean;
850
914
 
851
- declare const isString: (arg: any) => arg is string;
915
+ declare const isString: (arg?: any) => arg is string;
852
916
 
853
917
  declare const isStringDate: (arg: string) => boolean;
854
918
 
@@ -856,6 +920,20 @@ declare const isURL: (arg: string) => boolean;
856
920
 
857
921
  declare const isUUID: (arg: string) => boolean;
858
922
 
923
+ /**
924
+ * Checks if the provided argument is not null, undefined, or NaN.
925
+ *
926
+ * @template T
927
+ * @param {Maybe<T>} arg - The value to check.
928
+ * @returns {arg is T} True if the argument is a value (not null, undefined, or NaN), otherwise false.
929
+ *
930
+ * @example
931
+ * isValue(0); // true
932
+ * isValue(""); // true
933
+ * isValue(null); // false
934
+ * isValue(undefined); // false
935
+ * isValue(NaN); // false
936
+ */
859
937
  declare const isValue: <T>(arg?: Maybe<T>) => arg is T;
860
938
 
861
- export { type BoolMap, type Coords, type DateLike, type DateRange, type DateSeries, type Datey, type Defined, type Dimensions, type HashMap, type ISODate, type ISODay, type ISOMonth, type ISOYear, JS_MAX_DIGITS, type Key, type Matrix, type Maybe, type MaybePromise, type MaybePromiseOrValue, type MaybePromiseOrValueArray, type NonUndefined, type NumberMap, type ObjectEntries, type ObjectEntry, type ObjectKey, type ObjectKeys, type ObjectValue, type ObjectValues, type PickDefined, type PickRequired, type PlainKey, type PlainObject, type Point, type PrismaSelect, type Serialized, type StringMap, type Timezone, type TrueMap, type VoidFn, array, arrayDiff, arrayIntersection, average, bucketSortedDates, capitalize, chunkArray, chunkedAll, chunkedAsync, chunkedDynamic, clamp, cleanSpaces, cyclicalItem, dir, enumKeys, enumValues, filterAlphanumeric, first, firstKey, firstValue, formatCamelCase, formatCookies, formatIndexProgress, formatNumber, formatPercentage, formatTrpcInputQueryString, getCookieByName, getDateRangeSeries, getDateSeriesRange, getKeys, getUrlSearchParam, getUrlSearchParams, groupByKey, incrementalId, isArray, isArrayIncluded, isBetween, isBigInt, isBigIntString, isBoolean, isBrowser, isBuffer, isClient, isEmail, isEmpty, isEmptyArray, isEmptyObject, isEmptyString, isEven, isFile, isFunction, isFutureDate, isInt, isJsDate, isKey, isLastIndex, isNegativeInt, isNotEmptyString, isNumber, isNumeric, isNumericId, isObject, isOdd, isOutside, isOutsideInt4, isOver18, isPWA, isPastDate, isPositiveInt, isPromise, isReactElement, isRegExp, isSame, isSequence, isServer, isSpacedString, isStrictlyBetween, isString, isStringDate, isURL, isUUID, isValue, keysLength, last, lastIndex, mapByKey, max, merge, mergeArrays, min, moveToFirst, moveToLast, multiply, noop, normaliseArray, normaliseNumber, normalizeNumber, objectDiff, omit, parseDate, percentageChange, pickObjectKeys, pickObjectValues, pluck, prismaDateRange, promiseWithTimeout, randomAddress, randomAlphaNumericCode, randomArray, randomArrayItem, randomBankAccount, randomBigInt, randomBool, randomChar, randomCompany, randomCoords, randomDate, randomDateRange, randomEmail, randomEmoji, randomEmptyValue, randomEnumKey, randomEnumValue, randomFile, randomFirstName, randomFloat, randomFormattedPercentage, randomFullName, randomFutureDate, randomHandle, randomHexColor, randomHexValue, randomHtmlColorName, randomIBAN, randomIP, randomInt, randomLastName, randomLat, randomLng, randomMaxDate, randomMaxInt, randomMaxSafeInt, randomName, randomNegativeInt, randomNoun, randomNumericCode, randomObject, randomParagraph, randomPassword, randomPastDate, randomPath, randomPhoneNumber, randomPositiveInt, randomString, randomSymbol, randomUUID, randomValue, randomVerb, randomWord, removeUndefinedValues, scrambleText, serialize, seriesAsync, setObjectPath, setUrlSearchParams, shuffle, sleep, startOfDay, startOfNextMonth, startOfNextWeek, startOfThisWeek, startOfToday, startOfTomorrow, startOfUTCDay, startOfUTCTomorrow, stringToCSSUnicode, stringToUnicode, stringify, sum, toggleArrayValue, truncate, uniqueValues };
939
+ export { type BoolMap, type Coords, type DateLike, type DateRange, type DateSeries, type Datey, type Defined, type Dimensions, type HashMap, type ISODate, type ISODay, type ISOMonth, type ISOYear, JS_MAX_DIGITS, type Key, type Matrix, type Maybe, type MaybePromise, type MaybePromiseOrValue, type MaybePromiseOrValueArray, type NonUndefined, type NumberMap, type ObjectEntries, type ObjectEntry, type ObjectKey, type ObjectKeys, type ObjectValue, type ObjectValues, type PickDefined, type PickRequired, type PlainKey, type PlainObject, type Point, type PrismaSelect, type Serialized, type StringMap, type Timezone, type TrueMap, type VoidFn, array, arrayDiff, arrayIntersection, average, bucketSortedDates, capitalize, chunkArray, chunkedAll, chunkedAsync, chunkedDynamic, clamp, cleanSpaces, cyclicalItem, dir, enumKeys, enumValues, filterAlphanumeric, first, firstKey, firstValue, formatCamelCase, formatCookies, formatIndexProgress, formatNumber, formatPercentage, formatTrpcInputQueryString, getCookieByName, getDateRangeSeries, getDateSeriesRange, getKeys, getUrlSearchParam, getUrlSearchParams, groupByDateBucket, groupByKey, incrementalId, isArray, isArrayIncluded, isBetween, isBetweenDates, isBigInt, isBigIntString, isBoolean, isBrowser, isBuffer, isClient, isEmail, isEmpty, isEmptyArray, isEmptyObject, isEmptyString, isEven, isFile, isFunction, isFutureDate, isInDateRange, isInt, isJsDate, isKey, isLastIndex, isNegativeInt, isNotEmptyString, isNumber, isNumeric, isNumericId, isObject, isOdd, isOutside, isOutsideInt4, isOver18, isPWA, isPastDate, isPositiveInt, isPromise, isReactElement, isRegExp, isSame, isSequence, isServer, isSpacedString, isStrictlyBetween, isString, isStringDate, isURL, isUUID, isValue, keysLength, last, lastIndex, mapByKey, max, merge, mergeArrays, min, moveToFirst, moveToLast, multiply, noop, normaliseArray, normaliseNumber, normalizeNumber, objectDiff, omit, parseDate, percentageChange, pickObjectKeys, pickObjectValues, pluck, prismaDateRange, promiseWithTimeout, randomAddress, randomAlphaNumericCode, randomArray, randomArrayItem, randomBankAccount, randomBigInt, randomBool, randomChar, randomCompany, randomCoords, randomDate, randomDateRange, randomEmail, randomEmoji, randomEmptyValue, randomEnumKey, randomEnumValue, randomFile, randomFirstName, randomFloat, randomFormattedPercentage, randomFullName, randomFutureDate, randomHandle, randomHexColor, randomHexValue, randomHtmlColorName, randomIBAN, randomIP, randomInt, randomLastName, randomLat, randomLng, randomMaxDate, randomMaxInt, randomMaxSafeInt, randomName, randomNegativeInt, randomNoun, randomNumericCode, randomObject, randomParagraph, randomPassword, randomPastDate, randomPath, randomPhoneNumber, randomPositiveInt, randomString, randomSymbol, randomUUID, randomValue, randomVerb, randomWord, removeUndefinedValues, scrambleText, serialize, seriesAsync, setObjectPath, setUrlSearchParams, shuffle, sleep, startOfDay, startOfNextMonth, startOfNextWeek, startOfThisWeek, startOfToday, startOfTomorrow, startOfUTCDay, startOfUTCTomorrow, stringToCSSUnicode, stringToUnicode, stringify, sum, toggleArrayValue, truncate, uniqueValues };
package/dist/index.d.ts CHANGED
@@ -142,6 +142,7 @@ type Serialized<T> = T extends Date ? string : T extends Array<infer R> ? Array<
142
142
 
143
143
  /**
144
144
  * Buckets dates into groups based on a date series
145
+ * @deprecated Use `groupByDateBucket` instead. This function will be removed in the next major version.
145
146
  * @param dateSeries Array of dates that define the buckets, must be sorted in ascending order
146
147
  * @param dates Array of dates to be bucketed, must be sorted in ascending order
147
148
  * @param unit The time unit to use for bucketing ('day', 'hour', 'minute', 'second')
@@ -164,6 +165,23 @@ declare const getDateRangeSeries: (dateRange: DateRange, unit: "day" | "hour" |
164
165
  */
165
166
  declare const getDateSeriesRange: (dateSeries: DateSeries) => DateRange;
166
167
 
168
+ type PropertyAccessor<T> = keyof T | ((item: T) => any);
169
+
170
+ /**
171
+ * Groups items into date buckets based on their dates and specified time intervals
172
+ * @param dateBuckets Array of ISO date strings that define the bucket boundaries, must be sorted in ascending order
173
+ * @param items Array of items to be grouped into buckets, should be sorted in ascending order by the date property for optimal performance
174
+ * @param unit The time unit to use for bucket intervals ('day', 'hour', 'minute', 'second')
175
+ * @param accessor Optional property accessor for extracting dates from items. If not provided, assumes items are ISO date strings
176
+ * @returns Record where keys are ISO date strings from dateBuckets and values are arrays of items that fall within each bucket's time range
177
+ */
178
+ declare function groupByDateBucket<T>({ dateBuckets, items, unit, accessor, }: {
179
+ dateBuckets: ISODate[];
180
+ items: T[];
181
+ unit: "day" | "hour" | "minute" | "second";
182
+ accessor?: PropertyAccessor<T>;
183
+ }): Record<ISODate, T[]>;
184
+
167
185
  declare const isOver18: (birthDate: DateLike) => boolean;
168
186
 
169
187
  /**
@@ -760,11 +778,42 @@ declare const randomVerb: () => string;
760
778
 
761
779
  declare const formatTrpcInputQueryString: (input: PlainObject) => URLSearchParams;
762
780
 
781
+ /**
782
+ * Checks if the provided argument is an array.
783
+ *
784
+ * @template T - The type of elements in the array.
785
+ * @param arg - The value to check.
786
+ * @returns True if the argument is an array, false otherwise.
787
+ */
763
788
  declare const isArray: <T>(arg?: any) => arg is T[];
764
789
 
790
+ /**
791
+ * Checks if all elements of the first array are included in the second array.
792
+ *
793
+ * @template T - The type of elements in the arrays.
794
+ * @param arr1 - The array whose elements are to be checked for inclusion.
795
+ * @param arr2 - The array to check against.
796
+ * @returns True if every element in arr1 is included in arr2, false otherwise.
797
+ */
765
798
  declare const isArrayIncluded: <T>(arr1: T[], arr2: T[]) => boolean;
766
799
 
767
- declare const isBoolean: (arg: any) => arg is boolean;
800
+ /**
801
+ * Checks if a date falls between two other dates (left inclusive)
802
+ * @param date The date to check
803
+ * @param dateRange The date range to check against
804
+ * @returns true if the date is between the start and end dates (includes startDate, excludes endDate)
805
+ *
806
+ * @alias isInDateRange
807
+ *
808
+ * @example
809
+ * isBetweenDates("2023-06-15", { startDate: "2023-01-01", endDate: "2023-12-31" }) // true
810
+ * isBetweenDates("2023-01-01", { startDate: "2023-01-01", endDate: "2023-12-31" }) // true (includes start)
811
+ * isBetweenDates("2023-12-31", { startDate: "2023-01-01", endDate: "2023-12-31" }) // false (excludes end)
812
+ */
813
+ declare const isBetweenDates: (date: DateLike, dateRange: DateRange) => boolean;
814
+ declare const isInDateRange: (date: DateLike, dateRange: DateRange) => boolean;
815
+
816
+ declare const isBoolean: (arg?: any) => arg is boolean;
768
817
 
769
818
  declare const isBrowser: () => boolean;
770
819
 
@@ -784,11 +833,24 @@ declare const isFile: (arg?: any) => arg is File;
784
833
  /**
785
834
  * @returns true if the argument can be called like a function -> fn() or await fn()
786
835
  */
787
- declare const isFunction: (arg: any) => arg is Function;
836
+ declare const isFunction: (arg?: any) => arg is Function;
788
837
 
789
- declare const isFutureDate: (arg: DateLike) => boolean;
838
+ declare const isFutureDate: (arg: DateLike, { referenceDate }?: {
839
+ referenceDate?: DateLike;
840
+ }) => boolean;
790
841
 
791
- declare const isJsDate: (arg: Date) => arg is Date;
842
+ /**
843
+ * Checks if the provided argument is a valid JavaScript Date object.
844
+ *
845
+ * @param arg - The value to check.
846
+ * @returns True if the argument is a Date object and is valid (not NaN), otherwise false.
847
+ *
848
+ * @example
849
+ * isJsDate(new Date()); // true
850
+ * isJsDate("2023-01-01"); // false
851
+ * isJsDate(new Date("invalid-date")); // false
852
+ */
853
+ declare const isJsDate: (arg?: any) => arg is Date;
792
854
 
793
855
  declare const isKey: <T extends PlainObject>(key: Key, // cannot use PlainKey here because it does not include symbol (keyof T does)
794
856
  obj: T) => key is keyof T;
@@ -797,13 +859,13 @@ declare const isLastIndex: (index: number, array: any[]) => boolean;
797
859
 
798
860
  declare const isNotEmptyString: (arg: any) => boolean;
799
861
 
800
- declare const isInt: (arg: any) => boolean;
801
- declare const isEven: (arg: any) => boolean;
802
- declare const isOdd: (arg: any) => boolean;
803
- declare const isPositiveInt: (arg: any) => boolean;
804
- declare const isNegativeInt: (arg: any) => boolean;
805
- declare const isNumber: (arg: any) => arg is number;
806
- declare const isBigInt: (arg: any) => arg is BigInt;
862
+ declare const isInt: (arg?: any) => boolean;
863
+ declare const isEven: (arg?: any) => boolean;
864
+ declare const isOdd: (arg?: any) => boolean;
865
+ declare const isPositiveInt: (arg?: any) => boolean;
866
+ declare const isNegativeInt: (arg?: any) => boolean;
867
+ declare const isNumber: (arg?: any) => arg is number;
868
+ declare const isBigInt: (arg?: any) => arg is BigInt;
807
869
  declare const isBigIntString: (arg: string) => boolean;
808
870
  declare const isOutsideInt4: (num: number) => boolean;
809
871
 
@@ -822,9 +884,11 @@ declare const isNumericId: (id: string) => boolean;
822
884
 
823
885
  declare const isObject: <T>(arg?: any) => arg is PlainObject<T>;
824
886
 
825
- declare const isPastDate: (arg: DateLike) => boolean;
887
+ declare const isPastDate: (arg: DateLike, { referenceDate }?: {
888
+ referenceDate?: DateLike;
889
+ }) => boolean;
826
890
 
827
- declare const isPromise: (arg: any) => arg is Promise<any>;
891
+ declare const isPromise: (arg?: unknown) => arg is Promise<unknown>;
828
892
 
829
893
  declare const isPWA: () => boolean;
830
894
 
@@ -848,7 +912,7 @@ declare const isServer: () => boolean;
848
912
 
849
913
  declare const isSpacedString: (s: string) => boolean;
850
914
 
851
- declare const isString: (arg: any) => arg is string;
915
+ declare const isString: (arg?: any) => arg is string;
852
916
 
853
917
  declare const isStringDate: (arg: string) => boolean;
854
918
 
@@ -856,6 +920,20 @@ declare const isURL: (arg: string) => boolean;
856
920
 
857
921
  declare const isUUID: (arg: string) => boolean;
858
922
 
923
+ /**
924
+ * Checks if the provided argument is not null, undefined, or NaN.
925
+ *
926
+ * @template T
927
+ * @param {Maybe<T>} arg - The value to check.
928
+ * @returns {arg is T} True if the argument is a value (not null, undefined, or NaN), otherwise false.
929
+ *
930
+ * @example
931
+ * isValue(0); // true
932
+ * isValue(""); // true
933
+ * isValue(null); // false
934
+ * isValue(undefined); // false
935
+ * isValue(NaN); // false
936
+ */
859
937
  declare const isValue: <T>(arg?: Maybe<T>) => arg is T;
860
938
 
861
- export { type BoolMap, type Coords, type DateLike, type DateRange, type DateSeries, type Datey, type Defined, type Dimensions, type HashMap, type ISODate, type ISODay, type ISOMonth, type ISOYear, JS_MAX_DIGITS, type Key, type Matrix, type Maybe, type MaybePromise, type MaybePromiseOrValue, type MaybePromiseOrValueArray, type NonUndefined, type NumberMap, type ObjectEntries, type ObjectEntry, type ObjectKey, type ObjectKeys, type ObjectValue, type ObjectValues, type PickDefined, type PickRequired, type PlainKey, type PlainObject, type Point, type PrismaSelect, type Serialized, type StringMap, type Timezone, type TrueMap, type VoidFn, array, arrayDiff, arrayIntersection, average, bucketSortedDates, capitalize, chunkArray, chunkedAll, chunkedAsync, chunkedDynamic, clamp, cleanSpaces, cyclicalItem, dir, enumKeys, enumValues, filterAlphanumeric, first, firstKey, firstValue, formatCamelCase, formatCookies, formatIndexProgress, formatNumber, formatPercentage, formatTrpcInputQueryString, getCookieByName, getDateRangeSeries, getDateSeriesRange, getKeys, getUrlSearchParam, getUrlSearchParams, groupByKey, incrementalId, isArray, isArrayIncluded, isBetween, isBigInt, isBigIntString, isBoolean, isBrowser, isBuffer, isClient, isEmail, isEmpty, isEmptyArray, isEmptyObject, isEmptyString, isEven, isFile, isFunction, isFutureDate, isInt, isJsDate, isKey, isLastIndex, isNegativeInt, isNotEmptyString, isNumber, isNumeric, isNumericId, isObject, isOdd, isOutside, isOutsideInt4, isOver18, isPWA, isPastDate, isPositiveInt, isPromise, isReactElement, isRegExp, isSame, isSequence, isServer, isSpacedString, isStrictlyBetween, isString, isStringDate, isURL, isUUID, isValue, keysLength, last, lastIndex, mapByKey, max, merge, mergeArrays, min, moveToFirst, moveToLast, multiply, noop, normaliseArray, normaliseNumber, normalizeNumber, objectDiff, omit, parseDate, percentageChange, pickObjectKeys, pickObjectValues, pluck, prismaDateRange, promiseWithTimeout, randomAddress, randomAlphaNumericCode, randomArray, randomArrayItem, randomBankAccount, randomBigInt, randomBool, randomChar, randomCompany, randomCoords, randomDate, randomDateRange, randomEmail, randomEmoji, randomEmptyValue, randomEnumKey, randomEnumValue, randomFile, randomFirstName, randomFloat, randomFormattedPercentage, randomFullName, randomFutureDate, randomHandle, randomHexColor, randomHexValue, randomHtmlColorName, randomIBAN, randomIP, randomInt, randomLastName, randomLat, randomLng, randomMaxDate, randomMaxInt, randomMaxSafeInt, randomName, randomNegativeInt, randomNoun, randomNumericCode, randomObject, randomParagraph, randomPassword, randomPastDate, randomPath, randomPhoneNumber, randomPositiveInt, randomString, randomSymbol, randomUUID, randomValue, randomVerb, randomWord, removeUndefinedValues, scrambleText, serialize, seriesAsync, setObjectPath, setUrlSearchParams, shuffle, sleep, startOfDay, startOfNextMonth, startOfNextWeek, startOfThisWeek, startOfToday, startOfTomorrow, startOfUTCDay, startOfUTCTomorrow, stringToCSSUnicode, stringToUnicode, stringify, sum, toggleArrayValue, truncate, uniqueValues };
939
+ export { type BoolMap, type Coords, type DateLike, type DateRange, type DateSeries, type Datey, type Defined, type Dimensions, type HashMap, type ISODate, type ISODay, type ISOMonth, type ISOYear, JS_MAX_DIGITS, type Key, type Matrix, type Maybe, type MaybePromise, type MaybePromiseOrValue, type MaybePromiseOrValueArray, type NonUndefined, type NumberMap, type ObjectEntries, type ObjectEntry, type ObjectKey, type ObjectKeys, type ObjectValue, type ObjectValues, type PickDefined, type PickRequired, type PlainKey, type PlainObject, type Point, type PrismaSelect, type Serialized, type StringMap, type Timezone, type TrueMap, type VoidFn, array, arrayDiff, arrayIntersection, average, bucketSortedDates, capitalize, chunkArray, chunkedAll, chunkedAsync, chunkedDynamic, clamp, cleanSpaces, cyclicalItem, dir, enumKeys, enumValues, filterAlphanumeric, first, firstKey, firstValue, formatCamelCase, formatCookies, formatIndexProgress, formatNumber, formatPercentage, formatTrpcInputQueryString, getCookieByName, getDateRangeSeries, getDateSeriesRange, getKeys, getUrlSearchParam, getUrlSearchParams, groupByDateBucket, groupByKey, incrementalId, isArray, isArrayIncluded, isBetween, isBetweenDates, isBigInt, isBigIntString, isBoolean, isBrowser, isBuffer, isClient, isEmail, isEmpty, isEmptyArray, isEmptyObject, isEmptyString, isEven, isFile, isFunction, isFutureDate, isInDateRange, isInt, isJsDate, isKey, isLastIndex, isNegativeInt, isNotEmptyString, isNumber, isNumeric, isNumericId, isObject, isOdd, isOutside, isOutsideInt4, isOver18, isPWA, isPastDate, isPositiveInt, isPromise, isReactElement, isRegExp, isSame, isSequence, isServer, isSpacedString, isStrictlyBetween, isString, isStringDate, isURL, isUUID, isValue, keysLength, last, lastIndex, mapByKey, max, merge, mergeArrays, min, moveToFirst, moveToLast, multiply, noop, normaliseArray, normaliseNumber, normalizeNumber, objectDiff, omit, parseDate, percentageChange, pickObjectKeys, pickObjectValues, pluck, prismaDateRange, promiseWithTimeout, randomAddress, randomAlphaNumericCode, randomArray, randomArrayItem, randomBankAccount, randomBigInt, randomBool, randomChar, randomCompany, randomCoords, randomDate, randomDateRange, randomEmail, randomEmoji, randomEmptyValue, randomEnumKey, randomEnumValue, randomFile, randomFirstName, randomFloat, randomFormattedPercentage, randomFullName, randomFutureDate, randomHandle, randomHexColor, randomHexValue, randomHtmlColorName, randomIBAN, randomIP, randomInt, randomLastName, randomLat, randomLng, randomMaxDate, randomMaxInt, randomMaxSafeInt, randomName, randomNegativeInt, randomNoun, randomNumericCode, randomObject, randomParagraph, randomPassword, randomPastDate, randomPath, randomPhoneNumber, randomPositiveInt, randomString, randomSymbol, randomUUID, randomValue, randomVerb, randomWord, removeUndefinedValues, scrambleText, serialize, seriesAsync, setObjectPath, setUrlSearchParams, shuffle, sleep, startOfDay, startOfNextMonth, startOfNextWeek, startOfThisWeek, startOfToday, startOfTomorrow, startOfUTCDay, startOfUTCTomorrow, stringToCSSUnicode, stringToUnicode, stringify, sum, toggleArrayValue, truncate, uniqueValues };
@@ -1,3 +1,3 @@
1
- (function(exports){'use strict';var g=t=>Array.isArray(t);var f=t=>Object.prototype.toString.call(t)==="[object Object]";var b=t=>typeof t=="string";var Y=t=>!!(t===void 0||t===null||Vt(t)||zt(t)||Kt(t)),Vt=t=>b(t)&&t.trim().length===0,Kt=t=>g(t)&&t.length===0,zt=t=>f(t)&&Object.keys(t).length===0;var w=t=>Object.prototype.toString.call(t)==="[object Date]"&&!isNaN(t);var Ht=/^\d{4}(-\d{2})?(-\d{2})?$/,l=(t,e)=>{if(Y(t))return;b(t)&&Ht.test(t)&&(t=`${t+"-01-01".slice(t.length-4)}T00:00:00`,e?.asUTC&&(t+="Z"));let r=new Date(t);if(w(r))return r};var Re=(t,e,r)=>{let o=(u=>{switch(u){case "day":return 864e5;case "hour":return 36e5;case "minute":return 6e4;case "second":return 1e3}})(r),i=t.map(u=>{let p=new Date(u);return {timestamp:p.getTime(),normalizedKey:p.toISOString()}}),m={};i.forEach(({normalizedKey:u})=>{m[u]=[];});let s=0;return e.forEach(u=>{let p=l(u);if(!p)return;let x=p.getTime(),A=p.toISOString();for(;s<i.length;){let E=i[s].timestamp,z=s<i.length-1?i[s+1].timestamp:E+o;if(x>=E&&x<z){m[i[s].normalizedKey].push(A);break}if(x<E)break;s++;}}),m};var _e=(t,e)=>{let{startDate:r,endDate:n}=t,o=l(r),i=l(n);if(!o||!i||o.getTime()>i.getTime())throw new Error("Invalid date range");let m=[],s=new Date(o.getTime());for(;s<i;)switch(m.push(s.toISOString()),e){case "calendarMonth":if(o.getUTCDate()>28)throw new Error("Cannot add months when the start day of month is greater than 28, it may lead to unexpected results");let u=s.getUTCMonth();s.setUTCMonth(u+1);break;case "day":s.setUTCDate(s.getUTCDate()+1);break;case "hour":s.setUTCHours(s.getUTCHours()+1);break;case "minute":s.setUTCMinutes(s.getUTCMinutes()+1);break;case "second":s.setUTCSeconds(s.getUTCSeconds()+1);break;default:throw new Error(`Unsupported unit: ${e}`)}return m};var Le=t=>{if(!t||t.length===0)throw new Error("Cannot find date range for empty array");let e=t.map(s=>l(s)).filter(s=>s!==void 0);if(e.length===0)throw new Error("No valid dates found in array");let r=e.map(s=>s.getTime()),n=Math.min(...r),o=Math.max(...r),i=new Date(n),m=new Date(o);return {startDate:i,endDate:m}};var d=(t,e=()=>{})=>Array.from({length:t},e);var Ke=(t,e)=>{let r=new Set(t),n=new Set(e),o=[...r].filter(m=>!n.has(m)),i=[...n].filter(m=>!r.has(m));return [...o,...i]};var He=(t,e)=>{if(t.length===0||e.length===0)return [];let r=new Set(t),n=new Set(e),[o,i]=r.size<n.size?[r,n]:[n,r];return [...o].filter(m=>i.has(m))};var q=t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase();var R=(t,e)=>{let r=[];for(let n=0;n<t.length;n+=e)r.push(t.slice(n,n+e));return r};var Xe=async(t,e,r)=>{let n=R(t,e);return await Promise.all(n.map(r))};var O=t=>new Promise(e=>{setTimeout(e,t);});var Qe=async(t,e,r,{minChunkTimeMs:n}={})=>{let o=[],i=R(t,e);for(let[m,s]of i.entries()){let u=performance.now(),p=await r(s,m,i);if(o.push(p),n){let x=performance.now()-u;x<n&&await O(n-x);}}return o};var N=({number:t,min:e,max:r})=>(r<e&&process.env.DEVERYTHING_WARNINGS&&console.warn("clamp: max < min",{number:t,min:e,max:r}),t<e?e:t>r?r:t);var or=async(t,e,r,{idealChunkDuration:n,maxChunkSize:o,minChunkDuration:i,minChunkSize:m,sleepTimeMs:s}={})=>{let u=[],p=0,x=0,A=e;for(;p<t.length;){let E=performance.now(),z=t.slice(p,p+A);p+=A;let Ft=await r(z,x);if(x+=1,u.push(Ft),s&&await O(s),n){let P=performance.now()-E;A=N({number:Math.round(A*(n/P)),min:m||1,max:o||200});}if(i){let P=performance.now()-E;P<i&&await O(i-P);}}return u};var Z=new RegExp(/\p{C}/,"gu");var Q=/\p{Zs}/gu;var tt=/\p{Zl}/gu;var et=/\p{Zp}/gu;var fr=t=>t.replace(Z," ").replace(Q," ").replace(tt," ").replace(et," ").trim().replace(/\s{2,}/g," ");var br=(t,e)=>t[e%t.length];var gr=(t,{maxDepth:e=5}={})=>{console.dir(t,{depth:e});};var rt=(t,e,r)=>t<e||t>r;var k=t=>Number.isInteger(t),Nr=t=>k(t)&&!(t%2),Dr=t=>k(t)&&!!(t%2),nt=t=>k(t)&&t>0,Cr=t=>k(t)&&t<0,j=t=>Object.prototype.toString.apply(t)==="[object Number]"&&isFinite(t),Or=t=>Object.prototype.toString.apply(t)==="[object BigInt]",Ir=t=>{try{return BigInt(t)>Number.MAX_SAFE_INTEGER}catch{return false}},Mr=t=>rt(t,-2147483647,2147483647);var ot=t=>j(t)?true:b(t)?/^[+-]?((\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?|0[xX][\dA-Fa-f]+|0[bB][01]+)$/.test(t):false;var at=t=>Object.keys(t).filter(e=>!ot(e));var _=(t,e)=>e.hasOwnProperty(t)&&e.propertyIsEnumerable(t);var it=t=>{let e=[];return Object.values(t).forEach(r=>{_(r,t)&&!e.includes(r)&&e.push(t[r]);}),e};var Fr=t=>t.replace(/[^a-zA-Z0-9]/g,"");var Kr=t=>t[0];var Hr=t=>Object.keys(t)[0];var vr=t=>Object.values(t)[0];var Jr=t=>{if(typeof document>"u")return;let e=document.cookie.split(";");for(let r of e){let[n,o]=r.trim().split("=");if(n===t)return decodeURIComponent(o)}};var $r=Object.keys;var st=t=>{if(!t)return {};try{let e=t.startsWith("/"),r=new URL(t,e?"https://deverything.dev/":void 0);return Object.fromEntries(r.searchParams)}catch{return {}}};var Qr=(t,e)=>st(t)[e];var y=t=>t!=null&&!Number.isNaN(t);var nn=(t,e)=>t.reduce((r,n)=>{let o=n[e];return y(o)&&(r[o]||(r[o]=[]),r[o].push(n)),r},{});var Wt=1,B=()=>Wt++;var sn=t=>Object.keys(t).length;var D=t=>t.length-1;var mt=t=>t[D(t)];var ln=(t,e)=>t.every(r=>e.includes(r));var fn=t=>Object.prototype.toString.call(t)==="[object Boolean]";var ct=()=>typeof window>"u";var U=()=>!ct();var Tn=U;var S=t=>{let e=Object.prototype.toString.call(t);return e==="[object Function]"||e==="[object AsyncFunction]"};var Dn=t=>y(t)&&y(t.constructor)&&S(t.constructor.isBuffer)&&t.constructor.isBuffer(t);var In=t=>b(t)&&/\S+@\S+\.\S+/.test(t);var Pn=t=>Object.prototype.toString.call(t)==="[object File]";var H=t=>{let e=l(t);return !!e&&e>new Date};var _n=(t,e)=>t===D(e);var Ln=t=>b(t)&&t.trim().length>0;var Vn=t=>/^\d+$/.test(t)&&parseInt(t)>0;var W=t=>{let e=l(t);return !!e&&e<new Date};var Wn=t=>t instanceof Promise;var Jn=()=>U()&&window.matchMedia("(display-mode: standalone)").matches;var vt=typeof Symbol=="function"&&Symbol.for,Gt=vt?Symbol.for("react.element"):60103,$n=t=>t.$$typeof===Gt;var qn=t=>Object.prototype.toString.call(t)==="[object RegExp]";var L=(t,e)=>{if(t===e)return true;if(g(t)&&g(e))return t.length!==e.length?false:t.every((r,n)=>L(r,e[n]));if(f(t)&&f(e)){let r=Object.keys(t);return r.length!==Object.keys(e).length?false:r.every(n=>L(t[n],e[n]))}return S(t)&&S(e)?t.toString()===e.toString():false};var no=t=>t.length<2?true:t[0]!==1?false:t.slice(1).every((e,r)=>e===t[r-1]+1);var ao=t=>t.indexOf(" ")>=0;var mo=t=>{let e=new Date(t);return w(e)};var Jt=new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i"),uo=t=>!!t&&Jt.test(t);var lo=t=>/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t);var bo=(t,e)=>t.reduce((r,n)=>(y(n[e])&&(r[n[e]]=n),r),{});var v=(t,e)=>{let r={};return Object.keys(t).forEach(n=>{r[n]=f(t[n])?v({},t[n]):t[n];}),Object.keys(e).forEach(n=>{_(n,t)?r[n]=f(t[n])&&f(e[n])?v(t[n],e[n]):e[n]:r[n]=f(e[n])?v({},e[n]):e[n];}),r};var To=(t,e)=>t.concat(e.filter(r=>!t.includes(r)));var Ao=(t,e)=>{let r=[...t];for(let n=0;n<r.length;n++)if(e(r[n],n,r)){let o=r.splice(n,1);r.unshift(o[0]);break}return r};var No=(t,e)=>{let r=[...t];for(let n=0;n<r.length;n++)if(e(r[n],n,r)){let o=r.splice(n,1)[0];r.push(o);break}return r};var Co=({value:t,max:e,min:r})=>t>=e?1:t<=r?0:(t-r)/(e-r);var Mo=(t,e)=>{var r={};let n=new Set([...Object.keys(t),...Object.keys(e)]);for(let o of n)L(e[o],t[o])||(r[o]={from:t[o],to:e[o]});return r};var wo=(t,e)=>{let r={};for(let n in t)e.includes(n)||(r[n]=t[n]);return r};var ko=(t,e)=>{let r={};for(let n in t)e.includes(n)&&(r[n]=t[n]);return r};var _o=(t,e)=>{let r={};for(let n in t)e.includes(t[n])&&(r[n]=t[n]);return r};var Lo=(t,e)=>t.reduce((r,n)=>(y(n[e])&&r.push(n[e]),r),[]);var Vo=(t,e,r)=>{let n,o=new Promise((i,m)=>{n=setTimeout(()=>m(r??new Error("Promise timed out")),e);});return Promise.race([t(),o]).finally(()=>{clearTimeout(n);})};var zo=t=>Object.fromEntries(Object.entries(t).filter(([e,r])=>r!==void 0));var c=({min:t=-100,max:e=100}={})=>(t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1)+t)),ut=()=>BigInt(c()),Wo=({min:t=1,max:e}={})=>c({min:t,max:e}),vo=({min:t,max:e=-1}={})=>c({min:t,max:e}),Go=()=>c({min:-Number.MAX_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER}),Jo=()=>c({min:-Number.MAX_VALUE,max:Number.MAX_VALUE}),Xo=()=>c()+"%";var F=()=>String.fromCharCode(c({min:97,max:122}));var pt=new RegExp(/\p{L}/,"gu");var ea=t=>t.replace(pt,()=>F());var na=t=>{let e=new Set;return JSON.stringify(t,(r,n)=>(e.add(r),n)),JSON.stringify(t,Array.from(e).sort())};var ia=async t=>{let e=[];for(let r of t)if(S(r))e.push(await r());else throw new Error(`seriesAsync: invalid type received "${typeof r}", make sure all items are functions, not promises, otherwise they would've been executed already`);return e};var ca=(t,e,r)=>{let n=e.split("."),o=(i,m,s)=>{let u=m[0];if(m.length===1){i[u]=s;return}(!i[u]||!f(i[u]))&&(i[u]={}),o(i[u],m.slice(1),s);};o(t,n,r);};var la=(t,e={})=>{let r=t.startsWith("/"),n=new URL(t,r?"https://deverything.dev/":void 0);return Object.entries(e).forEach(([o,i])=>{i!=null&&(f(i)?n.searchParams.set(o,JSON.stringify(i)):n.searchParams.set(o,i.toString()));}),r?n.pathname+n.search+n.hash:n.toString()};var fa=t=>{let e=[...t];for(let r=e.length-1;r>0;r--){let n=Math.floor(Math.random()*(r+1));[e[r],e[n]]=[e[n],e[r]];}return e};var lt=()=>{let t=[],e=[],r=function(n,o){return t[0]===o?"[Circular ~]":"[Circular ~."+e.slice(0,t.indexOf(o)).join(".")+"]"};return function(n,o){if(t.length>0){let i=t.indexOf(this);~i?t.splice(i+1):t.push(this),~i?e.splice(i,1/0,n):e.push(n),~t.indexOf(o)&&(o=r.call(this,n,o));}else t.push(o);return o}};var ga=t=>JSON.stringify(t,lt(),2);var ha=(t,e)=>{if(!g(t))return t;let r=t.reduce((n,o)=>(o!==e&&n.push(o),n),[]);return r.length===t.length&&r.push(e),r};var Na=(t,e,{ellipsis:r,position:n}={})=>{if(r||(r="..."),n||(n="end"),!nt(e))return t;let o=[...t],i=r.length;if(o.length<=e)return t;switch(n){case "start":let m=e-i;return r+o.slice(-m).join("");case "middle":{let s=Math.ceil((e-i)/2),u=o.length-Math.floor((e-i)/2);return o.slice(0,s).join("")+r+o.slice(u).join("")}case "end":default:return o.slice(0,e-i).join("")+r}};var Ca=t=>[...new Set(t)];var Ma=t=>{let e=new Date,r=l(t);if(!r)return false;let n=e.getFullYear()-r.getFullYear();if(n>18)return true;if(n<18)return false;if(n===18){if(e.getMonth()>r.getMonth())return true;if(e.getMonth()<r.getMonth())return false;if(e.getMonth()===r.getMonth()){if(e.getDate()>=r.getDate())return true;if(e.getDate()<r.getDate())return false}}return false};var dt=t=>new Date(t.getFullYear(),t.getMonth(),t.getDate());var Ra=()=>{let t=new Date;return new Date(t.getFullYear(),t.getMonth()+1,1)};var ja=()=>{let t=new Date;return new Date(t.getFullYear(),t.getMonth(),t.getDate()+7-t.getDay())};var Ba=()=>{let t=new Date;return new Date(t.getFullYear(),t.getMonth(),t.getDate()-t.getDay())};var Fa=()=>dt(new Date);var Ka=()=>{let t=new Date;return new Date(t.getFullYear(),t.getMonth(),t.getDate()+1)};var Ha=t=>new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()));var va=()=>{let t=new Date;return t.setUTCDate(t.getUTCDate()+1),new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()))};var Ja=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o});var $a=t=>Object.entries(t).reduce((e,[r,n])=>(n!==void 0&&e.push(`${r}=${n}`),e),[]).join("; ")+";";var Za=(t,e)=>`[${N({number:t+1,min:1,max:e})}/${e}]`;var ei=(t,{compact:e,maxDigits:r,percentage:n}={})=>n?`${((j(t)?t:0)*100).toFixed(r||0)}%`:Intl.NumberFormat("en",{notation:e?"compact":"standard",maximumSignificantDigits:r}).format(t);var oi=(t,{digits:e}={})=>`${N({number:t*100,min:0,max:100}).toFixed(e||0)}%`;var ii=t=>Array.from(t).map(e=>{let r=e.codePointAt(0);return r!==void 0?`\\${r.toString(16)}`:""}).join("");var mi=t=>Array.from(t).map(e=>{let r=e.codePointAt(0);return r!==void 0?`\\u{${r.toString(16)}}`:""}).join("");var ui=t=>t.reduce((r,n)=>r+n,0)/t.length;var li=(t,e,r)=>t>=e&&t<=r;var fi=(t,e,r)=>t>e&&t<r;var ft=t=>t.length?Math.max(...t):0;var yt=t=>Math.min(...t);var gi=t=>t.reduce((e,r)=>e*r,1);var bt=(t,e,r)=>(t-e)/(r-e);var Ni=t=>{let e=yt(t),r=ft(t);return t.map(n=>bt(n,e,r))};var Ci=(t,e)=>{if(t<0||e<0||e===0&&t===0)return 0;if(e===0&&t!==0)return -1;if(e!==0&&t===0)return 1;let r=(e-t)/t;return parseFloat(r.toFixed(4))};var xt=t=>t.reduce((e,r)=>e+r,0);var Pi=({startDate:t,endDate:e})=>{let r=l(t),n=l(e);if(!r||!n)throw new Error("prismaDateRange: Invalid date range");return {gte:r,lt:n}};var Xt=[{city:"London",country:"United Kingdom",countryCode:"GB",line2:"Marylebone",number:"221B",street:"Baker Street",zip:"NW1 6XE"},{city:"Birmingham",country:"United Kingdom",countryCode:"GB",number:"B1 1AA",street:"Bordesley Street",zip:"B1 1AA"}],$t=[{city:"New York",country:"United States",countryCode:"US",state:"NY",street:"Broadway",line2:"Manhattan",number:"42",zip:"10036"},{city:"Los Angeles",country:"United States",countryCode:"US",state:"CA",street:"Hollywood Boulevard",number:"6801",zip:"90028"}],Yt=[{city:"Paris",country:"France",countryCode:"FR",street:"Rue de Rivoli",number:"75001",zip:"75001"},{city:"Berlin",country:"Germany",countryCode:"DE",street:"Unter den Linden",line2:"Mitte",number:"10117",zip:"10117"},{city:"Rome",country:"Italy",countryCode:"IT",street:"Via del Corso",number:"00186",zip:"00186"},{city:"Madrid",country:"Spain",countryCode:"ES",street:"Gran V\xEDa",line2:"Sol",number:"28013",zip:"28013"}],qt=[{city:"Moscow",country:"Russia",countryCode:"RU",street:"Tverskaya",number:"101000",zip:"101000"},{city:"Tokyo",country:"Japan",countryCode:"JP",street:"Shinjuku",line2:"Shinjuku City",number:"160-0022",zip:"160-0022"},{city:"Beijing",country:"China",countryCode:"CN",street:"Changan",number:"100005",zip:"100005"},{city:"Cairo",country:"Egypt",countryCode:"EG",street:"Al-Muizz",number:"11511",zip:"11511"},{city:"Buenos Aires",country:"Argentina",countryCode:"AR",street:"Avenida de Mayo",number:"1002",zip:"C1006AAQ"},{city:"Cape Town",country:"South Africa",countryCode:"ZA",street:"Adderley",number:"7700",zip:"7700"},{city:"Sydney",country:"Australia",countryCode:"AU",street:"George",line2:"Haymarket",number:"2000",zip:"2000"},{city:"Rio de Janeiro",country:"Brazil",countryCode:"BR",street:"Av. Presidente Vargas",number:"20021-000",zip:"20021-000"},{city:"Mexico City",country:"Mexico",countryCode:"MX",street:"Paseo de la Reforma",number:"06500",zip:"06500"}],gt=[...Xt,...$t,...Yt,...qt];var a=(t,{weights:e}={})=>{if(e&&e.length===t.length){let r=xt(e),n=Math.random()*r;for(let o=0;o<e.length;o++)if(n-=e[o],n<=0)return t[o];return mt(t)}return t[c({min:0,max:D(t)})]};var Vi=()=>a(gt);var Zt="123456789ABCDEFGHIJKLMNPQRSTUVWXYZ".split(""),Wi=({length:t=6}={})=>{if(t<1)throw new Error("randomAlphaNumericCode: Length must be greater than 0.");return d(t,()=>a(Zt)).join("")};var St=()=>a([true,false]);var ee=(t=new Date)=>G(t,31536e7),re=(t=new Date)=>G(t,-31536e7),G=(t,e)=>new Date(t.getTime()+e),T=({startDate:t,endDate:e}={})=>{let r=l(t),n=l(e);r&&n&&r>n&&console.warn("randomDate: startDate must be before endDate");let o=r||re(n),i=n||ee(r);return new Date(c({min:o.getTime(),max:i.getTime()}))},Zi=({startDate:t,endDate:e})=>(t=t||new Date(-864e13),e=e||new Date(864e13),T({startDate:t,endDate:e})),Qi=({startDate:t,endDate:e}={})=>{t&&W(t)&&console.warn("randomFutureDate: startDate must be in the future"),e&&W(e)&&console.warn("randomFutureDate: endDate must be in the future");let r=l(t)||G(new Date,5*6e4);return T({startDate:r,endDate:e})},ts=({startDate:t,endDate:e}={})=>{t&&H(t)&&console.warn("randomPastDate: startDate must be in the past"),e&&H(e)&&console.warn("randomPastDate: endDate must be in the past");let r=l(e)||new Date;return T({startDate:t,endDate:r})},es=()=>{let t=T();return {endDate:T({startDate:t}),startDate:t}};var h=({length:t=10}={})=>d(t,()=>F()).join("");var Tt=()=>Symbol(h());var V=()=>a([St(),h(),c(),T(),ut(),Tt()]);var ht=()=>d(c({min:1,max:5}),V);var At=["AD1200012030200359100100","BA391290079401028494","BE68539007547034","BG80BNBG96611020345678","FI2112345600000785","FO6264600001631634","FR1420041010050500013M02606","GB29NWBK60161331926819","GE29NB0000000101904917"];var ne=[{accountHolderName:"John Peters",accountNumber:"12345678",bankAddress:"1 Churchill Place, Canary Wharf, London, E14 5HP, UK",bankName:"Barclays plc",bicSwift:"BARCGB22",iban:"GB51BARC20039534871253",sortCode:"12-34-56",accountHolderType:"individual"},{accountHolderName:"Jane Evans",accountNumber:"87654321",bankAddress:"8 Canada Square, London, E14 5HQ, UK",bankName:"HSBC Holdings plc",bicSwift:"HSBCGB2L",iban:"GB82BARC20031847813531",sortCode:"65-43-21",accountHolderType:"company"}],oe=[{accountHolderName:"Jack I. Taylor",accountNumber:"123456789012",accountType:"checking",bankAddress:"Bank of America Corporate Center, 100 North Tryon Street, Charlotte, NC 28255, USA",bankName:"Bank of America Corporation",routingNumber:"111000025",accountHolderType:"individual"},{accountHolderName:"Sally T King",accountNumber:"987654321098",accountType:"savings",bankAddress:"383 Madison Avenue, New York, NY 10179, USA",bankName:"JPMorgan Chase & Co.",routingNumber:"021000021",accountHolderType:"company"}],ae=[{accountHolderName:"William Kevin White",accountNumber:"123456789012",accountType:"savings",bankAddress:"Commonwealth Bank Centre, Tower 1, 201 Sussex Street, Sydney, NSW 2000, Australia",bankName:"Commonwealth Bank of Australia",bicSwift:"CTBAAU2S",bsbNumber:"062-000",accountHolderType:"individual"},{accountHolderName:"Jennifer Ann Brown",accountNumber:"987654321098",accountType:"checking",bankAddress:"Westpac Place, 275 Kent Street, Sydney, NSW 2000, Australia",bankName:"Westpac Banking Corporation",bicSwift:"WPACAU2S",bsbNumber:"032-001",accountHolderType:"company"}],ie=[{accountHolderName:"Charles Green",accountNumber:"123456789012",accountType:"savings",bankAddress:"Royal Bank Plaza, 200 Bay Street, North Tower, Toronto, ON M5J 2J5, Canada",bankName:"Royal Bank of Canada",branchTransitNumber:"45678",institutionNumber:"123",accountHolderType:"individual"},{accountHolderName:"Olivia Orange",accountNumber:"987654321098",accountType:"checking",bankAddress:"TD Canada Trust Tower, 161 Bay Street, Toronto, ON M5J 2S8, Canada",bankName:"Toronto-Dominion Bank",branchTransitNumber:"65432",institutionNumber:"987",accountHolderType:"company"}],Et=[...ne,...oe,...ae,...ie];var As=()=>a(Et);var Nt=["IE1234567T","GB123456789","XI123456789"],Dt=["Acme Inc.","Globex Ltd.","Aurora LLC","Serenity Systems","Vulcan Ventures","Umbrella Corp."];var Is=()=>({name:a(Dt),vatRegNumber:a(Nt)});var ws=16,J=(t=-9,e=9,r)=>{let n=Math.random()*(e-t)+t;return y(r)?parseFloat(n.toFixed(r)):n};var js=()=>({lat:se(),lng:me()}),se=()=>J(-90,90),me=()=>J(-180,180);var Ct=["gmail.com","yahoo.com","hotmail.com","aol.com","msn.com","comcast.net","live.com","att.net","mac.com","me.com","charter.net","shaw.ca","yahoo.ca","mail.com","qq.com","web.de","gmx.de","mail.ru"];var Ot=["Albatross","Dolphin","Elephant","Giraffe","Koala","Lion","Penguin","Squirrel","Tiger","Turtle","Whale","Zebra"],It=["Axe","Chisel","Drill","Hammer","Mallet","Pliers","Saw","Screwdriver","Wrench","Blowtorch","Crowbar","Ladder"],I=["Adrian","Albert","Alexander","Alice","Amanda","Amy","Benjamin","David","Emma","Esther","Olivia","Ruby","Sarah","Victoria"],M=["Anderson","Brown","Davis","Jackson","Johnson","Jones","Miller","Moore","Smith","Taylor","Thomas","White","Williams","Wilson"],ce=["\u0410\u0431\u0438\u0433\u0430\u0438\u043B","\u0410\u0433\u043D\u0435\u0441","\u0410\u0434\u0430\u043C","\u0410\u0434\u0440\u0438\u0430\u043D","\u0410\u043B\u0430\u043D","\u0410\u043B\u0435\u043A\u0441\u0430\u043D\u0434\u0440","\u0410\u043B\u0438\u0441\u0430","\u0410\u043B\u044C\u0431\u0435\u0440\u0442","\u0410\u043C\u0430\u043D\u0434\u0430","\u0410\u043C\u0435\u043B\u0438\u044F","\u042D\u043C\u0438","\u042D\u043D\u0434\u0440\u044E"],ue=["\u0410\u043D\u0434\u0435\u0440\u0441\u043E\u043D","\u0411\u0440\u0430\u0443\u043D","\u0412\u0438\u043B\u0441\u043E\u043D","\u0414\u0436\u0435\u043A\u0441\u043E\u043D","\u0414\u0436\u043E\u043D\u0441","\u0414\u0436\u043E\u043D\u0441\u043E\u043D","\u0414\u044D\u0432\u0438\u0441","\u041C\u0438\u043B\u043B\u0435\u0440","\u041C\u0443\u0440","\u0421\u043C\u0438\u0442","\u0422\u0435\u0439\u043B\u043E\u0440","\u0422\u043E\u043C\u0430\u0441","\u0423\u0430\u0439\u0442","\u0423\u0438\u043B\u044C\u044F\u043C\u0441"],pe=["\u30A2\u30B0\u30CD\u30B9","\u30A2\u30C0\u30E0","\u30A2\u30C9\u30EA\u30A2\u30F3","\u30A2\u30D3\u30B2\u30A4\u30EB","\u30A2\u30DE\u30F3\u30C0","\u30A2\u30DF\u30FC","\u30A2\u30E1\u30EA\u30A2","\u30A2\u30E9\u30F3","\u30A2\u30EA\u30B9","\u30A2\u30EB\u30D0\u30FC\u30C8","\u30A2\u30EC\u30AF\u30B5\u30F3\u30C0\u30FC","\u30A2\u30F3\u30C9\u30EA\u30E5\u30FC"],le=["\u30A2\u30F3\u30C0\u30FC\u30BD\u30F3","\u30A6\u30A3\u30EA\u30A2\u30E0\u30BA","\u30A6\u30A3\u30EB\u30BD\u30F3","\u30B8\u30E3\u30AF\u30BD\u30F3","\u30B8\u30E7\u30FC\u30F3\u30BA","\u30B8\u30E7\u30F3\u30BD\u30F3","\u30B9\u30DF\u30B9","\u30BF\u30A4\u30E9\u30FC","\u30C7\u30A4\u30D3\u30B9","\u30C8\u30FC\u30DE\u30B9","\u30D6\u30E9\u30A6\u30F3","\u30DB\u30EF\u30A4\u30C8","\u30DF\u30E9\u30FC","\u30E2\u30A2"],de=["\u0622\u062F\u0631\u064A\u0627\u0646","\u0622\u062F\u0645","\u0622\u0644\u0627\u0646","\u0622\u0644\u0628\u0631\u062A","\u0622\u0644\u064A\u0633","\u0622\u0645\u0627\u0646\u062F\u0627","\u0622\u0645\u064A","\u0622\u0645\u064A\u0644\u064A\u0627","\u0623\u0628\u064A\u062C\u064A\u0644","\u0623\u063A\u0646\u064A\u0633","\u0623\u0644\u0643\u0633\u0646\u062F\u0631","\u0623\u0646\u062F\u0631\u0648"],fe=["\u0623\u0646\u062F\u0631\u0633\u0648\u0646","\u0628\u0631\u0627\u0648\u0646","\u062A\u0627\u064A\u0644\u0648\u0631","\u062A\u0648\u0645\u0627\u0633","\u062C\u0627\u0643\u0633\u0648\u0646","\u062C\u0648\u0646\u0632","\u062C\u0648\u0646\u0633\u0648\u0646","\u062F\u064A\u0641\u064A\u0633","\u0633\u0645\u064A\u062B","\u0645\u0648\u0631","\u0645\u064A\u0644\u0631","\u0648\u0627\u064A\u062A","\u0648\u064A\u0644\u0633\u0648\u0646","\u0648\u064A\u0644\u064A\u0627\u0645\u0632"],Mt=[...I,...ce,...pe,...de],Pt=[...M,...ue,...le,...fe];var wt=({suffix:t}={})=>(a(I)+"."+a(M)).toLowerCase()+B()+(t||"");var vs=({handle:t,handleSuffix:e}={})=>`${t||wt({suffix:e})}@${a(Ct)}`;var Rt=["\u{1F600}","\u{1F601}","\u{1F602}","\u{1F923}","\u{1F603}","\u{1F604}","\u{1F605}","\u{1F606}","\u{1F609}","\u{1F60A}","\u{1F60B}","\u{1F60E}","\u{1F60D}","\u{1F618}","\u{1F617}","\u{1F619}"],kt=["!","@","#","$","%","^","&","*"];var Ys=()=>a(Rt);var Qs=()=>a([void 0,null,NaN,1/0]);var nm=t=>{let e=at(t);return a(e)};var sm=t=>{let e=it(t);return a(e)};var X=["act","add","agree","allow","be","catch","create","delete","discover","eat","explore","go","help","imagine","jump","merge","need","offer","play","read","run","search","skip","solve","speak","think","try","work","write"],$=["city","coffee","courage","fact","family","flower","food","friend","fun","hope","justice","key","life","love","music","smile","time"],ye=["absolute","compassionate","cozy","dull","enigmatic","fascinating","interesting","playful","predictable","remarkable","soothing","sunny","unforgettable","wonderful"],be=["accidentally","accommodatingly","boldly","briskly","carefully","efficiently","freely","gently","happily","lightly","loudly","quickly","quietly","suddenly","unexpectedly","wisely"],xe=["Pneumonoultramicroscopicsilicovolcanoconiosis","Floccinaucinihilipilification","Pseudopseudohypoparathyroidism","Hippopotomonstrosesquippedaliophobia","Antidisestablishmentarianism","Supercalifragilisticexpialidocious","Honorificabilitudinitatibus"];var jt=["AliceBlue","Aqua","Aquamarine","Azure","Beige","Bisque","Black","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","DarkSlateGray","DeepPink","Gold","Lime","Olive","Orchid","Salmon","Turquoise"],_t=[...X,...$,...ye,...be,...xe];var C=()=>a(_t),Bt=()=>a($),lm=()=>a(X);var Ut=({maxCharacters:t=200,minWords:e=8,maxWords:r=16}={})=>q(d(c({min:e,max:r}),()=>C()).join(" ").slice(0,t-1)+".");var ge=["png","jpg","jpeg","gif","svg","webp"],Am=({name:t,extension:e}={})=>{if(typeof File>"u")return;let r=e||a(ge);return new File([Ut()],`${t||C()}.${r}`,{type:`image/${r}`})};var K=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"];var Im=()=>"#"+d(6,()=>a(K)).join("");var Rm=()=>a(K);var Bm=()=>a(jt);var Vm=()=>a(At);var Wm=()=>d(4,()=>c({min:0,max:255}).toString()).join(".");var Xm=()=>a([...Ot,...It]),$m=()=>a(Mt),Ym=()=>a(Pt),qm=()=>a(I)+" "+a(M);var ec=({length:t=6}={})=>{if(t<1)throw new Error("randomNumericCode: Length must be greater than 0.");return d(t,(e,r)=>c({min:r?0:1,max:9})).join("")};var cc=({maxDepth:t=5,circular:e=false}={})=>{let r=(o=0)=>o>=t?{}:d(c({min:1,max:5}),Bt).reduce((m,s)=>{let u=a(["value","object","array"]);if(u==="object"){let p=r(o+1);m[s]=p,e&&a([true,false],{weights:[.2,.8]})&&(p.circular=p);}else if(u==="array"){let p=ht();m[s]=p;}else {let p=V();m[s]=p;}return m},{});return r()};var yc=({minChars:t=9,maxChars:e=32}={})=>h({length:1}).toUpperCase()+h({length:c({min:t,max:e})-3})+a(kt)+c({min:1,max:9});var Sc=({depth:t=3}={})=>d(t,C).join("/");var Lt=["+44 20 7123 4567","+33 1 45 67 89 10","+81 3 1234 5678","+61 2 9876 5432","+49 30 9876 5432"];var Nc=()=>a(Lt);var Oc=()=>{let t=B().toString().padStart(15,"0"),e=t.substring(0,12);return `00000000-0000-1000-8${t.substring(12,15)}-${e}`};var Mc=t=>new URLSearchParams({input:JSON.stringify(t)});var wc=()=>{};
2
- exports.JS_MAX_DIGITS=ws;exports.array=d;exports.arrayDiff=Ke;exports.arrayIntersection=He;exports.average=ui;exports.bucketSortedDates=Re;exports.capitalize=q;exports.chunkArray=R;exports.chunkedAll=Xe;exports.chunkedAsync=Qe;exports.chunkedDynamic=or;exports.clamp=N;exports.cleanSpaces=fr;exports.cyclicalItem=br;exports.dir=gr;exports.enumKeys=at;exports.enumValues=it;exports.filterAlphanumeric=Fr;exports.first=Kr;exports.firstKey=Hr;exports.firstValue=vr;exports.formatCamelCase=Ja;exports.formatCookies=$a;exports.formatIndexProgress=Za;exports.formatNumber=ei;exports.formatPercentage=oi;exports.formatTrpcInputQueryString=Mc;exports.getCookieByName=Jr;exports.getDateRangeSeries=_e;exports.getDateSeriesRange=Le;exports.getKeys=$r;exports.getUrlSearchParam=Qr;exports.getUrlSearchParams=st;exports.groupByKey=nn;exports.incrementalId=B;exports.isArray=g;exports.isArrayIncluded=ln;exports.isBetween=li;exports.isBigInt=Or;exports.isBigIntString=Ir;exports.isBoolean=fn;exports.isBrowser=Tn;exports.isBuffer=Dn;exports.isClient=U;exports.isEmail=In;exports.isEmpty=Y;exports.isEmptyArray=Kt;exports.isEmptyObject=zt;exports.isEmptyString=Vt;exports.isEven=Nr;exports.isFile=Pn;exports.isFunction=S;exports.isFutureDate=H;exports.isInt=k;exports.isJsDate=w;exports.isKey=_;exports.isLastIndex=_n;exports.isNegativeInt=Cr;exports.isNotEmptyString=Ln;exports.isNumber=j;exports.isNumeric=ot;exports.isNumericId=Vn;exports.isObject=f;exports.isOdd=Dr;exports.isOutside=rt;exports.isOutsideInt4=Mr;exports.isOver18=Ma;exports.isPWA=Jn;exports.isPastDate=W;exports.isPositiveInt=nt;exports.isPromise=Wn;exports.isReactElement=$n;exports.isRegExp=qn;exports.isSame=L;exports.isSequence=no;exports.isServer=ct;exports.isSpacedString=ao;exports.isStrictlyBetween=fi;exports.isString=b;exports.isStringDate=mo;exports.isURL=uo;exports.isUUID=lo;exports.isValue=y;exports.keysLength=sn;exports.last=mt;exports.lastIndex=D;exports.mapByKey=bo;exports.max=ft;exports.merge=v;exports.mergeArrays=To;exports.min=yt;exports.moveToFirst=Ao;exports.moveToLast=No;exports.multiply=gi;exports.noop=wc;exports.normaliseArray=Ni;exports.normaliseNumber=bt;exports.normalizeNumber=Co;exports.objectDiff=Mo;exports.omit=wo;exports.parseDate=l;exports.percentageChange=Ci;exports.pickObjectKeys=ko;exports.pickObjectValues=_o;exports.pluck=Lo;exports.prismaDateRange=Pi;exports.promiseWithTimeout=Vo;exports.randomAddress=Vi;exports.randomAlphaNumericCode=Wi;exports.randomArray=ht;exports.randomArrayItem=a;exports.randomBankAccount=As;exports.randomBigInt=ut;exports.randomBool=St;exports.randomChar=F;exports.randomCompany=Is;exports.randomCoords=js;exports.randomDate=T;exports.randomDateRange=es;exports.randomEmail=vs;exports.randomEmoji=Ys;exports.randomEmptyValue=Qs;exports.randomEnumKey=nm;exports.randomEnumValue=sm;exports.randomFile=Am;exports.randomFirstName=$m;exports.randomFloat=J;exports.randomFormattedPercentage=Xo;exports.randomFullName=qm;exports.randomFutureDate=Qi;exports.randomHandle=wt;exports.randomHexColor=Im;exports.randomHexValue=Rm;exports.randomHtmlColorName=Bm;exports.randomIBAN=Vm;exports.randomIP=Wm;exports.randomInt=c;exports.randomLastName=Ym;exports.randomLat=se;exports.randomLng=me;exports.randomMaxDate=Zi;exports.randomMaxInt=Jo;exports.randomMaxSafeInt=Go;exports.randomName=Xm;exports.randomNegativeInt=vo;exports.randomNoun=Bt;exports.randomNumericCode=ec;exports.randomObject=cc;exports.randomParagraph=Ut;exports.randomPassword=yc;exports.randomPastDate=ts;exports.randomPath=Sc;exports.randomPhoneNumber=Nc;exports.randomPositiveInt=Wo;exports.randomString=h;exports.randomSymbol=Tt;exports.randomUUID=Oc;exports.randomValue=V;exports.randomVerb=lm;exports.randomWord=C;exports.removeUndefinedValues=zo;exports.scrambleText=ea;exports.serialize=na;exports.seriesAsync=ia;exports.setObjectPath=ca;exports.setUrlSearchParams=la;exports.shuffle=fa;exports.sleep=O;exports.startOfDay=dt;exports.startOfNextMonth=Ra;exports.startOfNextWeek=ja;exports.startOfThisWeek=Ba;exports.startOfToday=Fa;exports.startOfTomorrow=Ka;exports.startOfUTCDay=Ha;exports.startOfUTCTomorrow=va;exports.stringToCSSUnicode=ii;exports.stringToUnicode=mi;exports.stringify=ga;exports.sum=xt;exports.toggleArrayValue=ha;exports.truncate=Na;exports.uniqueValues=Ca;return exports;})({});//# sourceMappingURL=index.global.js.map
1
+ (function(exports){'use strict';var A=e=>Array.isArray(e);var y=e=>Object.prototype.toString.call(e)==="[object Object]";var g=e=>typeof e=="string";var Z=e=>!!(e===void 0||e===null||ze(e)||He(e)||ve(e)),ze=e=>g(e)&&e.trim().length===0,ve=e=>A(e)&&e.length===0,He=e=>y(e)&&Object.keys(e).length===0;var j=e=>Object.prototype.toString.call(e)==="[object Date]"&&!isNaN(e);var Q=(e,t,r)=>e<t||e>r;var _=e=>Number.isInteger(e),Rt=e=>_(e)&&!(e%2),jt=e=>_(e)&&!!(e%2),ee=e=>_(e)&&e>0,_t=e=>_(e)&&e<0,O=e=>Object.prototype.toString.apply(e)==="[object Number]"&&isFinite(e),Bt=e=>Object.prototype.toString.apply(e)==="[object BigInt]",Lt=e=>{try{return BigInt(e)>Number.MAX_SAFE_INTEGER}catch{return false}},Ut=e=>Q(e,-2147483647,2147483647);var We=/^\d{4}(-\d{2})?(-\d{2})?$/,c=(e,t)=>{if(Z(e)||O(e)&&(!Number.isInteger(e)||e<-864e13||e>864e13||!Number.isFinite(e)))return;g(e)&&We.test(e)&&(e=`${e+"-01-01".slice(e.length-4)}T00:00:00`,t?.asUTC&&(e+="Z"));let r=new Date(e);if(j(r))return r};var Gt=(e,t,r)=>{let o=(l=>{switch(l){case "day":return 864e5;case "hour":return 36e5;case "minute":return 6e4;case "second":return 1e3}})(r),i=e.map(l=>{let u=new Date(l);return {timestamp:u.getTime(),normalizedKey:u.toISOString()}}),m={};i.forEach(({normalizedKey:l})=>{m[l]=[];});let s=0;return t.forEach(l=>{let u=c(l);if(!u)return;let d=u.getTime(),b=u.toISOString();for(;s<i.length;){let S=i[s].timestamp,h=s<i.length-1?i[s+1].timestamp:S+o;if(d>=S&&d<h){m[i[s].normalizedKey].push(b);break}if(d<S)break;s++;}}),m};var $t=(e,t)=>{let{startDate:r,endDate:n}=e,o=c(r),i=c(n);if(!o||!i||o.getTime()>i.getTime())throw new Error("Invalid date range");let m=[],s=new Date(o.getTime());for(;s<i;)switch(m.push(s.toISOString()),t){case "calendarMonth":if(o.getUTCDate()>28)throw new Error("Cannot add months when the start day of month is greater than 28, it may lead to unexpected results");{let l=s.getUTCMonth();s.setUTCMonth(l+1);}break;case "day":s.setUTCDate(s.getUTCDate()+1);break;case "hour":s.setUTCHours(s.getUTCHours()+1);break;case "minute":s.setUTCMinutes(s.getUTCMinutes()+1);break;case "second":s.setUTCSeconds(s.getUTCSeconds()+1);break;default:throw new Error(`Unsupported unit: ${t}`)}return m};var Zt=e=>{if(!e||e.length===0)throw new Error("Cannot find date range for empty array");let t=e.map(s=>c(s)).filter(s=>s!==void 0);if(t.length===0)throw new Error("No valid dates found in array");let r=t.map(s=>s.getTime()),n=Math.min(...r),o=Math.max(...r),i=new Date(n),m=new Date(o);return {startDate:i,endDate:m}};var er=(e,t)=>e.every(r=>t.includes(r));var f=(e,t=()=>{})=>Array.from({length:e},t);var nr=(e,t)=>{let r=new Set(e),n=new Set(t),o=[...r].filter(m=>!n.has(m)),i=[...n].filter(m=>!r.has(m));return [...o,...i]};var ar=(e,t)=>{if(e.length===0||t.length===0)return [];let r=new Set(e),n=new Set(t),[o,i]=r.size<n.size?[r,n]:[n,r];return [...o].filter(m=>i.has(m))};var te=e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase();var B=(e,t)=>{let r=[];for(let n=0;n<e.length;n+=t)r.push(e.slice(n,n+t));return r};var ur=async(e,t,r)=>{let n=B(e,t);return await Promise.all(n.map(r))};var M=e=>new Promise(t=>{setTimeout(t,e);});var yr=async(e,t,r,{minChunkTimeMs:n}={})=>{let o=[],i=B(e,t);for(let[m,s]of i.entries()){let l=performance.now(),u=await r(s,m,i);if(o.push(u),n){let d=performance.now()-l;d<n&&await M(n-d);}}return o};var C=({number:e,min:t,max:r})=>(r<t&&process.env.DEVERYTHING_WARNINGS&&console.warn("clamp: max < min",{number:e,min:t,max:r}),e<t?t:e>r?r:e);var Tr=async(e,t,r,{idealChunkDuration:n,maxChunkSize:o,minChunkDuration:i,minChunkSize:m,sleepTimeMs:s}={})=>{let l=[],u=0,d=0,b=t;for(;u<e.length;){let S=performance.now(),h=e.slice(u,u+b);u+=b;let w=await r(h,d);if(d+=1,l.push(w),s&&await M(s),n){let N=performance.now()-S;b=C({number:Math.round(b*(n/N)),min:m||1,max:o||200});}if(i){let N=performance.now()-S;N<i&&await M(i-N);}}return l};var re=new RegExp(/\p{C}/,"gu");var ne=/\p{Zs}/gu;var oe=/\p{Zl}/gu;var ae=/\p{Zp}/gu;var wr=e=>e.replace(re," ").replace(ne," ").replace(oe," ").replace(ae," ").trim().replace(/\s{2,}/g," ");var kr=(e,t)=>e[t%e.length];var jr=(e,{maxDepth:t=5}={})=>{console.dir(e,{depth:t});};var ie=e=>O(e)?true:g(e)?/^[+-]?((\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?|0[xX][\dA-Fa-f]+|0[bB][01]+)$/.test(e):false;var se=e=>Object.keys(e).filter(t=>!ie(t));var L=(e,t)=>t.hasOwnProperty(e)&&t.propertyIsEnumerable(e);var me=e=>{let t=[];return Object.values(e).forEach(r=>{L(r,e)&&!t.includes(r)&&t.push(e[r]);}),t};var Hr=e=>e.replace(/[^a-zA-Z0-9]/g,"");var Gr=e=>e[0];var Xr=e=>Object.keys(e)[0];var Yr=e=>Object.values(e)[0];var Zr=e=>{if(typeof document>"u")return;let t=document.cookie.split(";");for(let r of t){let[n,o]=r.trim().split("=");if(n===e)return decodeURIComponent(o)}};var en=Object.keys;var ce=e=>{if(!e)return {};try{let t=e.startsWith("/"),r=new URL(e,t?"https://deverything.dev/":void 0);return Object.fromEntries(r.searchParams)}catch{return {}}};var on=(e,t)=>ce(e)[t];var x=e=>e!=null&&!Number.isNaN(e);var cn=(e,t)=>e.reduce((r,n)=>{let o=n[t];return x(o)&&(r[o]||(r[o]=[]),r[o].push(n)),r},{});var Ge=1,U=()=>Ge++;var ln=e=>Object.keys(e).length;var I=e=>e.length-1;var ue=e=>e[I(e)];var gn=(e,t)=>e.reduce((r,n)=>(x(n[t])&&(r[n[t]]=n),r),{});var W=(e,t)=>{let r={};return Object.keys(e).forEach(n=>{r[n]=y(e[n])?W({},e[n]):e[n];}),Object.keys(t).forEach(n=>{L(n,e)?r[n]=y(e[n])&&y(t[n])?W(e[n],t[n]):t[n]:r[n]=y(t[n])?W({},t[n]):t[n];}),r};var An=(e,t)=>e.concat(t.filter(r=>!e.includes(r)));var En=(e,t)=>{let r=[...e];for(let n=0;n<r.length;n++)if(t(r[n],n,r)){let o=r.splice(n,1);r.unshift(o[0]);break}return r};var On=(e,t)=>{let r=[...e];for(let n=0;n<r.length;n++)if(t(r[n],n,r)){let o=r.splice(n,1)[0];r.push(o);break}return r};var In=({value:e,max:t,min:r})=>e>=t?1:e<=r?0:(e-r)/(t-r);var T=e=>{let t=Object.prototype.toString.call(e);return t==="[object Function]"||t==="[object AsyncFunction]"};var F=(e,t)=>{if(e===t)return true;if(A(e)&&A(t))return e.length!==t.length?false:e.every((r,n)=>F(r,t[n]));if(y(e)&&y(t)){let r=Object.keys(e);return r.length!==Object.keys(t).length?false:r.every(n=>F(e[n],t[n]))}return T(e)&&T(t)?e.toString()===t.toString():false};var Bn=(e,t)=>{let r={},n=new Set([...Object.keys(e),...Object.keys(t)]);for(let o of n)F(t[o],e[o])||(r[o]={from:e[o],to:t[o]});return r};var Un=(e,t)=>{let r={};for(let n in e)t.includes(n)||(r[n]=e[n]);return r};var Vn=(e,t)=>{let r={};for(let n in e)t.includes(n)&&(r[n]=e[n]);return r};var zn=(e,t)=>{let r={};for(let n in e)t.includes(e[n])&&(r[n]=e[n]);return r};var Wn=(e,t)=>e.reduce((r,n)=>(x(n[t])&&r.push(n[t]),r),[]);var Jn=(e,t,r)=>{let n,o=new Promise((i,m)=>{n=setTimeout(()=>m(r??new Error("Promise timed out")),t);});return Promise.race([e(),o]).finally(()=>{clearTimeout(n);})};var $n=e=>Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0));var p=({min:e=-100,max:t=100}={})=>(e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1)+e)),pe=()=>BigInt(p()),qn=({min:e=1,max:t}={})=>p({min:e,max:t}),Zn=({min:e,max:t=-1}={})=>p({min:e,max:t}),Qn=()=>p({min:-Number.MAX_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER}),eo=()=>p({min:-Number.MAX_VALUE,max:Number.MAX_VALUE}),to=()=>p()+"%";var V=()=>String.fromCharCode(p({min:97,max:122}));var le=new RegExp(/\p{L}/,"gu");var mo=e=>e.replace(le,()=>V());var uo=e=>{let t=new Set;return JSON.stringify(e,(r,n)=>(t.add(r),n)),JSON.stringify(e,Array.from(t).sort())};var fo=async e=>{let t=[];for(let r of e)if(T(r))t.push(await r());else throw new Error(`seriesAsync: invalid type received "${typeof r}", make sure all items are functions, not promises, otherwise they would've been executed already`);return t};var xo=(e,t,r)=>{let n=t.split("."),o=(i,m,s)=>{let l=m[0];if(m.length===1){i[l]=s;return}(!i[l]||!y(i[l]))&&(i[l]={}),o(i[l],m.slice(1),s);};o(e,n,r);};var To=(e,t={})=>{let r=e.startsWith("/"),n=new URL(e,r?"https://deverything.dev/":void 0);return Object.entries(t).forEach(([o,i])=>{i!=null&&(y(i)?n.searchParams.set(o,JSON.stringify(i)):n.searchParams.set(o,i.toString()));}),r?n.pathname+n.search+n.hash:n.toString()};var Ao=e=>{let t=[...e];for(let r=t.length-1;r>0;r--){let n=Math.floor(Math.random()*(r+1));[t[r],t[n]]=[t[n],t[r]];}return t};var de=()=>{let e=[],t=[],r=function(n,o){return e[0]===o?"[Circular ~]":"[Circular ~."+t.slice(0,e.indexOf(o)).join(".")+"]"};return function(n,o){if(e.length>0){let i=e.indexOf(this);~i?e.splice(i+1):e.push(this),~i?t.splice(i,1/0,n):t.push(n),e.indexOf(o)!==-1&&(o=r.call(this,n,o));}else e.push(o);return o}};var Oo=e=>JSON.stringify(e,de(),2);var Po=(e,t)=>{if(!A(e))return e;let r=e.reduce((n,o)=>(o!==t&&n.push(o),n),[]);return r.length===e.length&&r.push(t),r};var ko=(e,t,{ellipsis:r,position:n}={})=>{if(r||(r="..."),n||(n="end"),!ee(t))return e;let o=[...e],i=r.length;if(o.length<=t)return e;switch(n){case "start":{let m=t-i;return r+o.slice(-m).join("")}case "middle":{let m=Math.ceil((t-i)/2),s=o.length-Math.floor((t-i)/2);return o.slice(0,m).join("")+r+o.slice(s).join("")}case "end":default:return o.slice(0,t-i).join("")+r}};var jo=e=>[...new Set(e)];var Je=(e,t)=>{let r=c(e),n=c(t.startDate),o=c(t.endDate);return !r||!n||!o?false:r>=n&&r<o},Lo=Je;var Fo=e=>Object.prototype.toString.call(e)==="[object Boolean]";var fe=()=>typeof window>"u";var K=()=>!fe();var Wo=K;var $o=e=>x(e)&&x(e.constructor)&&T(e.constructor.isBuffer)&&e.constructor.isBuffer(e);var Zo=e=>g(e)&&/\S+@\S+\.\S+/.test(e);var ea=e=>Object.prototype.toString.call(e)==="[object File]";var G=(e,{referenceDate:t}={})=>{let r=c(e),n=t?c(t):new Date;if(!n)throw new Error(`[isFutureDate] Invalid referenceDate: ${t}`);return !!r&&r>n};var aa=(e,t)=>e===I(t);var ma=e=>g(e)&&e.trim().length>0;var ua=e=>/^\d+$/.test(e)&&parseInt(e)>0;var J=(e,{referenceDate:t}={})=>{let r=c(e),n=t?c(t):new Date;if(!n)throw new Error(`[isPastDate] Invalid referenceDate: ${t}`);return !!r&&r<n};var fa=e=>e instanceof Promise;var xa=()=>K()&&window.matchMedia("(display-mode: standalone)").matches;var Xe=typeof Symbol=="function"&&Symbol.for,$e=Xe?Symbol.for("react.element"):60103,Sa=e=>e.$$typeof===$e;var ha=e=>Object.prototype.toString.call(e)==="[object RegExp]";var Da=e=>e.length<2?true:e[0]!==1?false:e.slice(1).every((t,r)=>t===e[r-1]+1);var Na=e=>e.indexOf(" ")>=0;var Ia=e=>{let t=new Date(e);return j(t)};var Ye=new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i"),wa=e=>!!e&&Ye.test(e);var ka=e=>/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e);var ye=(e,t)=>T(t)?t(e):e[t];function Ua({dateBuckets:e,items:t,unit:r,accessor:n}){let i=(d=>{switch(d){case "day":return 864e5;case "hour":return 36e5;case "minute":return 6e4;case "second":return 1e3}})(r),m=e.map(d=>{let b=c(d);if(!b)throw new Error(`[groupByDateBucket] Invalid dateBucket: ${d}`);return {timestamp:b.getTime(),normalizedKey:b.toISOString()}}),s={};m.forEach(({normalizedKey:d})=>{s[d]=[];});let l=d=>n?ye(d,n):d,u=0;return t.forEach(d=>{let b=l(d);if(!b)return;let S=c(b);if(!S)return;let h=S.getTime();for(;u<m.length;){let w=m[u].timestamp,N=u<m.length-1?m[u+1].timestamp:w+i;if(h>=w&&h<N){s[m[u].normalizedKey].push(d);break}if(h<w)break;u++;}}),s}var Ka=e=>{let t=new Date,r=c(e);if(!r)return false;let n=t.getFullYear()-r.getFullYear();if(n>18)return true;if(n<18)return false;if(n===18){if(t.getMonth()>r.getMonth())return true;if(t.getMonth()<r.getMonth())return false;if(t.getMonth()===r.getMonth()){if(t.getDate()>=r.getDate())return true;if(t.getDate()<r.getDate())return false}}return false};var be=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate());var Ha=()=>{let e=new Date;return new Date(e.getFullYear(),e.getMonth()+1,1)};var Ga=()=>{let e=new Date;return new Date(e.getFullYear(),e.getMonth(),e.getDate()+7-e.getDay())};var Xa=()=>{let e=new Date;return new Date(e.getFullYear(),e.getMonth(),e.getDate()-e.getDay())};var qa=()=>be(new Date);var Qa=()=>{let e=new Date;return new Date(e.getFullYear(),e.getMonth(),e.getDate()+1)};var ti=e=>new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()));var ni=()=>{let e=new Date;return e.setUTCDate(e.getUTCDate()+1),new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()))};var ai=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n);var si=e=>Object.entries(e).reduce((t,[r,n])=>(n!==void 0&&t.push(`${r}=${n}`),t),[]).join("; ")+";";var ui=(e,t)=>`[${C({number:e+1,min:1,max:t})}/${t}]`;var di=(e,{compact:t,maxDigits:r,percentage:n}={})=>n?`${((O(e)?e:0)*100).toFixed(r||0)}%`:Intl.NumberFormat("en",{notation:t?"compact":"standard",maximumSignificantDigits:r}).format(e);var bi=(e,{digits:t}={})=>`${C({number:e*100,min:0,max:100}).toFixed(t||0)}%`;var gi=e=>Array.from(e).map(t=>{let r=t.codePointAt(0);return r!==void 0?`\\${r.toString(16)}`:""}).join("");var Ti=e=>Array.from(e).map(t=>{let r=t.codePointAt(0);return r!==void 0?`\\u{${r.toString(16)}}`:""}).join("");var Ai=e=>e.reduce((r,n)=>r+n,0)/e.length;var Ei=(e,t,r)=>e>=t&&e<=r;var Oi=(e,t,r)=>e>t&&e<r;var xe=e=>e.length?Math.max(...e):0;var ge=e=>Math.min(...e);var wi=e=>e.reduce((t,r)=>t*r,1);var Se=(e,t,r)=>(e-t)/(r-t);var Bi=e=>{let t=ge(e),r=xe(e);return e.map(n=>Se(n,t,r))};var Ui=(e,t)=>{if(e<0||t<0||t===0&&e===0)return 0;if(t===0&&e!==0)return -1;if(t!==0&&e===0)return 1;let r=(t-e)/e;return parseFloat(r.toFixed(4))};var Te=e=>e.reduce((t,r)=>t+r,0);var zi=({startDate:e,endDate:t})=>{let r=c(e),n=c(t);if(!r||!n)throw new Error("prismaDateRange: Invalid date range");return {gte:r,lt:n}};var qe=[{city:"London",country:"United Kingdom",countryCode:"GB",line2:"Marylebone",number:"221B",street:"Baker Street",zip:"NW1 6XE"},{city:"Birmingham",country:"United Kingdom",countryCode:"GB",number:"B1 1AA",street:"Bordesley Street",zip:"B1 1AA"}],Ze=[{city:"New York",country:"United States",countryCode:"US",state:"NY",street:"Broadway",line2:"Manhattan",number:"42",zip:"10036"},{city:"Los Angeles",country:"United States",countryCode:"US",state:"CA",street:"Hollywood Boulevard",number:"6801",zip:"90028"}],Qe=[{city:"Paris",country:"France",countryCode:"FR",street:"Rue de Rivoli",number:"75001",zip:"75001"},{city:"Berlin",country:"Germany",countryCode:"DE",street:"Unter den Linden",line2:"Mitte",number:"10117",zip:"10117"},{city:"Rome",country:"Italy",countryCode:"IT",street:"Via del Corso",number:"00186",zip:"00186"},{city:"Madrid",country:"Spain",countryCode:"ES",street:"Gran V\xEDa",line2:"Sol",number:"28013",zip:"28013"}],et=[{city:"Moscow",country:"Russia",countryCode:"RU",street:"Tverskaya",number:"101000",zip:"101000"},{city:"Tokyo",country:"Japan",countryCode:"JP",street:"Shinjuku",line2:"Shinjuku City",number:"160-0022",zip:"160-0022"},{city:"Beijing",country:"China",countryCode:"CN",street:"Changan",number:"100005",zip:"100005"},{city:"Cairo",country:"Egypt",countryCode:"EG",street:"Al-Muizz",number:"11511",zip:"11511"},{city:"Buenos Aires",country:"Argentina",countryCode:"AR",street:"Avenida de Mayo",number:"1002",zip:"C1006AAQ"},{city:"Cape Town",country:"South Africa",countryCode:"ZA",street:"Adderley",number:"7700",zip:"7700"},{city:"Sydney",country:"Australia",countryCode:"AU",street:"George",line2:"Haymarket",number:"2000",zip:"2000"},{city:"Rio de Janeiro",country:"Brazil",countryCode:"BR",street:"Av. Presidente Vargas",number:"20021-000",zip:"20021-000"},{city:"Mexico City",country:"Mexico",countryCode:"MX",street:"Paseo de la Reforma",number:"06500",zip:"06500"}],he=[...qe,...Ze,...Qe,...et];var a=(e,{weights:t}={})=>{if(t&&t.length===e.length){let r=Te(t),n=Math.random()*r;for(let o=0;o<t.length;o++)if(n-=t[o],n<=0)return e[o];return ue(e)}return e[p({min:0,max:I(e)})]};var Zi=()=>a(he);var tt="123456789ABCDEFGHIJKLMNPQRSTUVWXYZ".split(""),rs=({length:e=6}={})=>{if(e<1)throw new Error("randomAlphaNumericCode: Length must be greater than 0.");return f(e,()=>a(tt)).join("")};var Ae=()=>a([true,false]);var nt=(e=new Date)=>X(e,31536e7),ot=(e=new Date)=>X(e,-31536e7),X=(e,t)=>new Date(e.getTime()+t),D=({startDate:e,endDate:t}={})=>{let r=c(e),n=c(t);r&&n&&r>n&&console.warn("randomDate: startDate must be before endDate");let o=r||ot(n),i=n||nt(r);return new Date(p({min:o.getTime(),max:i.getTime()}))},us=({startDate:e,endDate:t})=>(e=e||new Date(-864e13),t=t||new Date(864e13),D({startDate:e,endDate:t})),ps=({startDate:e,endDate:t}={})=>{e&&J(e)&&console.warn("randomFutureDate: startDate must be in the future"),t&&J(t)&&console.warn("randomFutureDate: endDate must be in the future");let r=c(e)||X(new Date,5*6e4);return D({startDate:r,endDate:t})},ls=({startDate:e,endDate:t}={})=>{e&&G(e)&&console.warn("randomPastDate: startDate must be in the past"),t&&G(t)&&console.warn("randomPastDate: endDate must be in the past");let r=c(t)||new Date;return D({startDate:e,endDate:r})},ds=()=>{let e=D();return {endDate:D({startDate:e}),startDate:e}};var E=({length:e=10}={})=>f(e,()=>V()).join("");var De=()=>Symbol(E());var z=()=>a([Ae(),E(),p(),D(),pe(),De()]);var Ee=()=>f(p({min:1,max:5}),z);var Ne=["AD1200012030200359100100","BA391290079401028494","BE68539007547034","BG80BNBG96611020345678","FI2112345600000785","FO6264600001631634","FR1420041010050500013M02606","GB29NWBK60161331926819","GE29NB0000000101904917"];var at=[{accountHolderName:"John Peters",accountNumber:"12345678",bankAddress:"1 Churchill Place, Canary Wharf, London, E14 5HP, UK",bankName:"Barclays plc",bicSwift:"BARCGB22",iban:"GB51BARC20039534871253",sortCode:"12-34-56",accountHolderType:"individual"},{accountHolderName:"Jane Evans",accountNumber:"87654321",bankAddress:"8 Canada Square, London, E14 5HQ, UK",bankName:"HSBC Holdings plc",bicSwift:"HSBCGB2L",iban:"GB82BARC20031847813531",sortCode:"65-43-21",accountHolderType:"company"}],it=[{accountHolderName:"Jack I. Taylor",accountNumber:"123456789012",accountType:"checking",bankAddress:"Bank of America Corporate Center, 100 North Tryon Street, Charlotte, NC 28255, USA",bankName:"Bank of America Corporation",routingNumber:"111000025",accountHolderType:"individual"},{accountHolderName:"Sally T King",accountNumber:"987654321098",accountType:"savings",bankAddress:"383 Madison Avenue, New York, NY 10179, USA",bankName:"JPMorgan Chase & Co.",routingNumber:"021000021",accountHolderType:"company"}],st=[{accountHolderName:"William Kevin White",accountNumber:"123456789012",accountType:"savings",bankAddress:"Commonwealth Bank Centre, Tower 1, 201 Sussex Street, Sydney, NSW 2000, Australia",bankName:"Commonwealth Bank of Australia",bicSwift:"CTBAAU2S",bsbNumber:"062-000",accountHolderType:"individual"},{accountHolderName:"Jennifer Ann Brown",accountNumber:"987654321098",accountType:"checking",bankAddress:"Westpac Place, 275 Kent Street, Sydney, NSW 2000, Australia",bankName:"Westpac Banking Corporation",bicSwift:"WPACAU2S",bsbNumber:"032-001",accountHolderType:"company"}],mt=[{accountHolderName:"Charles Green",accountNumber:"123456789012",accountType:"savings",bankAddress:"Royal Bank Plaza, 200 Bay Street, North Tower, Toronto, ON M5J 2J5, Canada",bankName:"Royal Bank of Canada",branchTransitNumber:"45678",institutionNumber:"123",accountHolderType:"individual"},{accountHolderName:"Olivia Orange",accountNumber:"987654321098",accountType:"checking",bankAddress:"TD Canada Trust Tower, 161 Bay Street, Toronto, ON M5J 2S8, Canada",bankName:"Toronto-Dominion Bank",branchTransitNumber:"65432",institutionNumber:"987",accountHolderType:"company"}],Oe=[...at,...it,...st,...mt];var js=()=>a(Oe);var Ce=["IE1234567T","GB123456789","XI123456789"],Ie=["Acme Inc.","Globex Ltd.","Aurora LLC","Serenity Systems","Vulcan Ventures","Umbrella Corp."];var Vs=()=>({name:a(Ie),vatRegNumber:a(Ce)});var vs=16,$=(e=-9,t=9,r)=>{let n=Math.random()*(t-e)+e;return x(r)?parseFloat(n.toFixed(r)):n};var Gs=()=>({lat:ct(),lng:ut()}),ct=()=>$(-90,90),ut=()=>$(-180,180);var Pe=["gmail.com","yahoo.com","hotmail.com","aol.com","msn.com","comcast.net","live.com","att.net","mac.com","me.com","charter.net","shaw.ca","yahoo.ca","mail.com","qq.com","web.de","gmx.de","mail.ru"];var we=["Albatross","Dolphin","Elephant","Giraffe","Koala","Lion","Penguin","Squirrel","Tiger","Turtle","Whale","Zebra"],Me=["Axe","Chisel","Drill","Hammer","Mallet","Pliers","Saw","Screwdriver","Wrench","Blowtorch","Crowbar","Ladder"],k=["Adrian","Albert","Alexander","Alice","Amanda","Amy","Benjamin","David","Emma","Esther","Olivia","Ruby","Sarah","Victoria"],R=["Anderson","Brown","Davis","Jackson","Johnson","Jones","Miller","Moore","Smith","Taylor","Thomas","White","Williams","Wilson"],pt=["\u0410\u0431\u0438\u0433\u0430\u0438\u043B","\u0410\u0433\u043D\u0435\u0441","\u0410\u0434\u0430\u043C","\u0410\u0434\u0440\u0438\u0430\u043D","\u0410\u043B\u0430\u043D","\u0410\u043B\u0435\u043A\u0441\u0430\u043D\u0434\u0440","\u0410\u043B\u0438\u0441\u0430","\u0410\u043B\u044C\u0431\u0435\u0440\u0442","\u0410\u043C\u0430\u043D\u0434\u0430","\u0410\u043C\u0435\u043B\u0438\u044F","\u042D\u043C\u0438","\u042D\u043D\u0434\u0440\u044E"],lt=["\u0410\u043D\u0434\u0435\u0440\u0441\u043E\u043D","\u0411\u0440\u0430\u0443\u043D","\u0412\u0438\u043B\u0441\u043E\u043D","\u0414\u0436\u0435\u043A\u0441\u043E\u043D","\u0414\u0436\u043E\u043D\u0441","\u0414\u0436\u043E\u043D\u0441\u043E\u043D","\u0414\u044D\u0432\u0438\u0441","\u041C\u0438\u043B\u043B\u0435\u0440","\u041C\u0443\u0440","\u0421\u043C\u0438\u0442","\u0422\u0435\u0439\u043B\u043E\u0440","\u0422\u043E\u043C\u0430\u0441","\u0423\u0430\u0439\u0442","\u0423\u0438\u043B\u044C\u044F\u043C\u0441"],dt=["\u30A2\u30B0\u30CD\u30B9","\u30A2\u30C0\u30E0","\u30A2\u30C9\u30EA\u30A2\u30F3","\u30A2\u30D3\u30B2\u30A4\u30EB","\u30A2\u30DE\u30F3\u30C0","\u30A2\u30DF\u30FC","\u30A2\u30E1\u30EA\u30A2","\u30A2\u30E9\u30F3","\u30A2\u30EA\u30B9","\u30A2\u30EB\u30D0\u30FC\u30C8","\u30A2\u30EC\u30AF\u30B5\u30F3\u30C0\u30FC","\u30A2\u30F3\u30C9\u30EA\u30E5\u30FC"],ft=["\u30A2\u30F3\u30C0\u30FC\u30BD\u30F3","\u30A6\u30A3\u30EA\u30A2\u30E0\u30BA","\u30A6\u30A3\u30EB\u30BD\u30F3","\u30B8\u30E3\u30AF\u30BD\u30F3","\u30B8\u30E7\u30FC\u30F3\u30BA","\u30B8\u30E7\u30F3\u30BD\u30F3","\u30B9\u30DF\u30B9","\u30BF\u30A4\u30E9\u30FC","\u30C7\u30A4\u30D3\u30B9","\u30C8\u30FC\u30DE\u30B9","\u30D6\u30E9\u30A6\u30F3","\u30DB\u30EF\u30A4\u30C8","\u30DF\u30E9\u30FC","\u30E2\u30A2"],yt=["\u0622\u062F\u0631\u064A\u0627\u0646","\u0622\u062F\u0645","\u0622\u0644\u0627\u0646","\u0622\u0644\u0628\u0631\u062A","\u0622\u0644\u064A\u0633","\u0622\u0645\u0627\u0646\u062F\u0627","\u0622\u0645\u064A","\u0622\u0645\u064A\u0644\u064A\u0627","\u0623\u0628\u064A\u062C\u064A\u0644","\u0623\u063A\u0646\u064A\u0633","\u0623\u0644\u0643\u0633\u0646\u062F\u0631","\u0623\u0646\u062F\u0631\u0648"],bt=["\u0623\u0646\u062F\u0631\u0633\u0648\u0646","\u0628\u0631\u0627\u0648\u0646","\u062A\u0627\u064A\u0644\u0648\u0631","\u062A\u0648\u0645\u0627\u0633","\u062C\u0627\u0643\u0633\u0648\u0646","\u062C\u0648\u0646\u0632","\u062C\u0648\u0646\u0633\u0648\u0646","\u062F\u064A\u0641\u064A\u0633","\u0633\u0645\u064A\u062B","\u0645\u0648\u0631","\u0645\u064A\u0644\u0631","\u0648\u0627\u064A\u062A","\u0648\u064A\u0644\u0633\u0648\u0646","\u0648\u064A\u0644\u064A\u0627\u0645\u0632"],ke=[...k,...pt,...dt,...yt],Re=[...R,...lt,...ft,...bt];var je=({suffix:e}={})=>(a(k)+"."+a(R)).toLowerCase()+U()+(e||"");var nm=({handle:e,handleSuffix:t}={})=>`${e||je({suffix:t})}@${a(Pe)}`;var _e=["\u{1F600}","\u{1F601}","\u{1F602}","\u{1F923}","\u{1F603}","\u{1F604}","\u{1F605}","\u{1F606}","\u{1F609}","\u{1F60A}","\u{1F60B}","\u{1F60E}","\u{1F60D}","\u{1F618}","\u{1F617}","\u{1F619}"],Be=["!","@","#","$","%","^","&","*"];var mm=()=>a(_e);var pm=()=>a([void 0,null,NaN,1/0]);var ym=e=>{let t=se(e);return a(t)};var Sm=e=>{let t=me(e);return a(t)};var Y=["act","add","agree","allow","be","catch","create","delete","discover","eat","explore","go","help","imagine","jump","merge","need","offer","play","read","run","search","skip","solve","speak","think","try","work","write"],q=["city","coffee","courage","fact","family","flower","food","friend","fun","hope","justice","key","life","love","music","smile","time"],xt=["absolute","compassionate","cozy","dull","enigmatic","fascinating","interesting","playful","predictable","remarkable","soothing","sunny","unforgettable","wonderful"],gt=["accidentally","accommodatingly","boldly","briskly","carefully","efficiently","freely","gently","happily","lightly","loudly","quickly","quietly","suddenly","unexpectedly","wisely"],St=["Pneumonoultramicroscopicsilicovolcanoconiosis","Floccinaucinihilipilification","Pseudopseudohypoparathyroidism","Hippopotomonstrosesquippedaliophobia","Antidisestablishmentarianism","Supercalifragilisticexpialidocious","Honorificabilitudinitatibus"];var Le=["AliceBlue","Aqua","Aquamarine","Azure","Beige","Bisque","Black","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","DarkSlateGray","DeepPink","Gold","Lime","Olive","Orchid","Salmon","Turquoise"],Ue=[...Y,...q,...xt,...gt,...St];var P=()=>a(Ue),Fe=()=>a(q),Em=()=>a(Y);var Ve=({maxCharacters:e=200,minWords:t=8,maxWords:r=16}={})=>te(f(p({min:t,max:r}),()=>P()).join(" ").slice(0,e-1)+".");var Tt=["png","jpg","jpeg","gif","svg","webp"],jm=({name:e,extension:t}={})=>{if(typeof File>"u")return;let r=t||a(Tt);return new File([Ve()],`${e||P()}.${r}`,{type:`image/${r}`})};var v=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"];var Vm=()=>"#"+f(6,()=>a(v)).join("");var Hm=()=>a(v);var Xm=()=>a(Le);var Zm=()=>a(Ne);var rc=()=>f(4,()=>p({min:0,max:255}).toString()).join(".");var ic=()=>a([...we,...Me]),sc=()=>a(ke),mc=()=>a(Re),cc=()=>a(k)+" "+a(R);var dc=({length:e=6}={})=>{if(e<1)throw new Error("randomNumericCode: Length must be greater than 0.");return f(e,(t,r)=>p({min:r?0:1,max:9})).join("")};var hc=({maxDepth:e=5,circular:t=false}={})=>{let r=(o=0)=>o>=e?{}:f(p({min:1,max:5}),Fe).reduce((m,s)=>{let l=a(["value","object","array"]);if(l==="object"){let u=r(o+1);m[s]=u,t&&a([true,false],{weights:[.2,.8]})&&(u.circular=u);}else if(l==="array"){let u=Ee();m[s]=u;}else {let u=z();m[s]=u;}return m},{});return r()};var Cc=({minChars:e=9,maxChars:t=32}={})=>E({length:1}).toUpperCase()+E({length:p({min:e,max:t})-3})+a(Be)+p({min:1,max:9});var Mc=({depth:e=3}={})=>f(e,P).join("/");var Ke=["+44 20 7123 4567","+33 1 45 67 89 10","+81 3 1234 5678","+61 2 9876 5432","+49 30 9876 5432"];var Bc=()=>a(Ke);var Fc=()=>{let e=U().toString().padStart(15,"0"),t=e.substring(0,12);return `00000000-0000-1000-8${e.substring(12,15)}-${t}`};var Kc=e=>new URLSearchParams({input:JSON.stringify(e)});var vc=()=>{};
2
+ exports.JS_MAX_DIGITS=vs;exports.array=f;exports.arrayDiff=nr;exports.arrayIntersection=ar;exports.average=Ai;exports.bucketSortedDates=Gt;exports.capitalize=te;exports.chunkArray=B;exports.chunkedAll=ur;exports.chunkedAsync=yr;exports.chunkedDynamic=Tr;exports.clamp=C;exports.cleanSpaces=wr;exports.cyclicalItem=kr;exports.dir=jr;exports.enumKeys=se;exports.enumValues=me;exports.filterAlphanumeric=Hr;exports.first=Gr;exports.firstKey=Xr;exports.firstValue=Yr;exports.formatCamelCase=ai;exports.formatCookies=si;exports.formatIndexProgress=ui;exports.formatNumber=di;exports.formatPercentage=bi;exports.formatTrpcInputQueryString=Kc;exports.getCookieByName=Zr;exports.getDateRangeSeries=$t;exports.getDateSeriesRange=Zt;exports.getKeys=en;exports.getUrlSearchParam=on;exports.getUrlSearchParams=ce;exports.groupByDateBucket=Ua;exports.groupByKey=cn;exports.incrementalId=U;exports.isArray=A;exports.isArrayIncluded=er;exports.isBetween=Ei;exports.isBetweenDates=Je;exports.isBigInt=Bt;exports.isBigIntString=Lt;exports.isBoolean=Fo;exports.isBrowser=Wo;exports.isBuffer=$o;exports.isClient=K;exports.isEmail=Zo;exports.isEmpty=Z;exports.isEmptyArray=ve;exports.isEmptyObject=He;exports.isEmptyString=ze;exports.isEven=Rt;exports.isFile=ea;exports.isFunction=T;exports.isFutureDate=G;exports.isInDateRange=Lo;exports.isInt=_;exports.isJsDate=j;exports.isKey=L;exports.isLastIndex=aa;exports.isNegativeInt=_t;exports.isNotEmptyString=ma;exports.isNumber=O;exports.isNumeric=ie;exports.isNumericId=ua;exports.isObject=y;exports.isOdd=jt;exports.isOutside=Q;exports.isOutsideInt4=Ut;exports.isOver18=Ka;exports.isPWA=xa;exports.isPastDate=J;exports.isPositiveInt=ee;exports.isPromise=fa;exports.isReactElement=Sa;exports.isRegExp=ha;exports.isSame=F;exports.isSequence=Da;exports.isServer=fe;exports.isSpacedString=Na;exports.isStrictlyBetween=Oi;exports.isString=g;exports.isStringDate=Ia;exports.isURL=wa;exports.isUUID=ka;exports.isValue=x;exports.keysLength=ln;exports.last=ue;exports.lastIndex=I;exports.mapByKey=gn;exports.max=xe;exports.merge=W;exports.mergeArrays=An;exports.min=ge;exports.moveToFirst=En;exports.moveToLast=On;exports.multiply=wi;exports.noop=vc;exports.normaliseArray=Bi;exports.normaliseNumber=Se;exports.normalizeNumber=In;exports.objectDiff=Bn;exports.omit=Un;exports.parseDate=c;exports.percentageChange=Ui;exports.pickObjectKeys=Vn;exports.pickObjectValues=zn;exports.pluck=Wn;exports.prismaDateRange=zi;exports.promiseWithTimeout=Jn;exports.randomAddress=Zi;exports.randomAlphaNumericCode=rs;exports.randomArray=Ee;exports.randomArrayItem=a;exports.randomBankAccount=js;exports.randomBigInt=pe;exports.randomBool=Ae;exports.randomChar=V;exports.randomCompany=Vs;exports.randomCoords=Gs;exports.randomDate=D;exports.randomDateRange=ds;exports.randomEmail=nm;exports.randomEmoji=mm;exports.randomEmptyValue=pm;exports.randomEnumKey=ym;exports.randomEnumValue=Sm;exports.randomFile=jm;exports.randomFirstName=sc;exports.randomFloat=$;exports.randomFormattedPercentage=to;exports.randomFullName=cc;exports.randomFutureDate=ps;exports.randomHandle=je;exports.randomHexColor=Vm;exports.randomHexValue=Hm;exports.randomHtmlColorName=Xm;exports.randomIBAN=Zm;exports.randomIP=rc;exports.randomInt=p;exports.randomLastName=mc;exports.randomLat=ct;exports.randomLng=ut;exports.randomMaxDate=us;exports.randomMaxInt=eo;exports.randomMaxSafeInt=Qn;exports.randomName=ic;exports.randomNegativeInt=Zn;exports.randomNoun=Fe;exports.randomNumericCode=dc;exports.randomObject=hc;exports.randomParagraph=Ve;exports.randomPassword=Cc;exports.randomPastDate=ls;exports.randomPath=Mc;exports.randomPhoneNumber=Bc;exports.randomPositiveInt=qn;exports.randomString=E;exports.randomSymbol=De;exports.randomUUID=Fc;exports.randomValue=z;exports.randomVerb=Em;exports.randomWord=P;exports.removeUndefinedValues=$n;exports.scrambleText=mo;exports.serialize=uo;exports.seriesAsync=fo;exports.setObjectPath=xo;exports.setUrlSearchParams=To;exports.shuffle=Ao;exports.sleep=M;exports.startOfDay=be;exports.startOfNextMonth=Ha;exports.startOfNextWeek=Ga;exports.startOfThisWeek=Xa;exports.startOfToday=qa;exports.startOfTomorrow=Qa;exports.startOfUTCDay=ti;exports.startOfUTCTomorrow=ni;exports.stringToCSSUnicode=gi;exports.stringToUnicode=Ti;exports.stringify=Oo;exports.sum=Te;exports.toggleArrayValue=Po;exports.truncate=ko;exports.uniqueValues=jo;return exports;})({});//# sourceMappingURL=index.global.js.map
3
3
  //# sourceMappingURL=index.global.js.map