@rzl-zone/utils-js 3.0.2-beta.2 → 3.1.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/NumberRangeUnion-DC-C3_Kq.d.ts +23 -23
- package/dist/any-BmdI8UbK.d.ts +56 -56
- package/dist/arrays-normalize-recursive-CnjYJ9xg.d.ts +66 -66
- package/dist/assertions/index.cjs +1 -1
- package/dist/assertions/index.d.ts +398 -418
- package/dist/assertions/index.js +1 -1
- package/dist/chunk-26W3VZIK.cjs +1 -0
- package/dist/chunk-2KRCHXFG.cjs +2 -0
- package/dist/chunk-33ZLH266.js +1 -0
- package/dist/{chunk-EXZ47NOW.js → chunk-4L4EJTNZ.js} +1 -1
- package/dist/chunk-5Q37AP7P.js +1 -0
- package/dist/chunk-7CHFAMS2.js +1 -0
- package/dist/chunk-7MMJZ6HS.js +1 -0
- package/dist/chunk-7TC6DE3J.cjs +1 -0
- package/dist/{chunk-XH6MCRLP.js → chunk-7VX33E3V.js} +1 -1
- package/dist/chunk-BEZPD44N.cjs +1 -0
- package/dist/chunk-BI263OHW.js +1 -0
- package/dist/chunk-CII6WWLO.cjs +1 -0
- package/dist/chunk-D5TYPCWU.cjs +1 -0
- package/dist/chunk-EEQY5QUG.js +1 -0
- package/dist/chunk-ESJYBIYH.js +1 -0
- package/dist/chunk-EWYPSKKM.js +1 -0
- package/dist/chunk-EXCOQLWX.cjs +1 -0
- package/dist/chunk-FWQVTMYA.cjs +1 -0
- package/dist/chunk-G4EWCRKS.js +1 -0
- package/dist/chunk-G7R5XZRM.cjs +1 -0
- package/dist/chunk-GGEV7LXX.cjs +1 -0
- package/dist/chunk-HJOZOENU.cjs +1 -0
- package/dist/{chunk-BYZAD3XN.cjs → chunk-IRDZVLNZ.cjs} +1 -1
- package/dist/chunk-IW73G523.cjs +1 -0
- package/dist/chunk-IY5OZAB3.cjs +1 -0
- package/dist/chunk-J4NCYYGS.js +1 -0
- package/dist/chunk-J7JAZAJD.js +1 -0
- package/dist/{chunk-FF76ISQ2.js → chunk-JYNSO7ZY.js} +1 -1
- package/dist/chunk-K3UVKYEU.js +1 -0
- package/dist/chunk-LQ76EDZG.js +1 -0
- package/dist/chunk-MROH35V3.cjs +1 -0
- package/dist/chunk-NJSAV73S.js +1 -0
- package/dist/chunk-NR44SNYE.js +1 -0
- package/dist/chunk-NXMTWY77.js +1 -0
- package/dist/chunk-OZCQZO2V.cjs +4 -0
- package/dist/chunk-Q3NTKN5I.cjs +1 -0
- package/dist/chunk-QDNSC57Z.js +4 -0
- package/dist/chunk-QGXTL5ZH.js +2 -0
- package/dist/{chunk-JWHM3WZQ.cjs → chunk-QSQDP7L2.cjs} +1 -1
- package/dist/{chunk-RN3TP3S3.js → chunk-S5M33A4O.js} +1 -1
- package/dist/chunk-SGTHOQQ2.js +1 -0
- package/dist/chunk-SL3RQOWA.js +1 -0
- package/dist/chunk-SZPWZZYG.cjs +1 -0
- package/dist/chunk-UA4B7JBO.cjs +1 -0
- package/dist/chunk-UQDJF5RR.cjs +1 -0
- package/dist/chunk-UTQUYABU.cjs +1 -0
- package/dist/chunk-VPW3DRV5.js +1 -0
- package/dist/chunk-W32WALNU.js +1 -0
- package/dist/chunk-XGZ6K753.cjs +1 -0
- package/dist/chunk-YFTR64N5.cjs +1 -0
- package/dist/chunk-ZFDS7W6B.cjs +1 -0
- package/dist/chunk-ZQOLZE6Z.cjs +1 -0
- package/dist/conversions/index.cjs +1 -1
- package/dist/conversions/index.d.ts +1307 -1504
- package/dist/conversions/index.js +1 -1
- package/dist/env/index.d.ts +14 -17
- package/dist/events/index.cjs +1 -1
- package/dist/events/index.d.ts +111 -108
- package/dist/events/index.js +1 -1
- package/dist/extends-Bk_SBGdT.d.ts +367 -0
- package/dist/formatting/index.cjs +1 -1
- package/dist/formatting/index.d.ts +878 -840
- package/dist/formatting/index.js +1 -1
- package/dist/generator/index.cjs +1 -1
- package/dist/generator/index.d.ts +173 -150
- package/dist/generator/index.js +1 -1
- package/dist/if-CvT4R7Kh.d.ts +16 -16
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/is-array--YjXV-Wx.d.ts +1207 -0
- package/dist/isPlainObject-BVhBAPHX.d.ts +169 -0
- package/dist/never-BfayMBF9.d.ts +64 -64
- package/dist/next/index.cjs +6 -6
- package/dist/next/index.d.ts +196 -176
- package/dist/next/index.js +5 -5
- package/dist/next/server/index.cjs +1 -1
- package/dist/next/server/index.d.ts +26 -40
- package/dist/next/server/index.js +1 -1
- package/dist/nils-DMz3kU7M.d.ts +155 -155
- package/dist/omit-VvmIsZmX.d.ts +25 -25
- package/dist/operations/index.cjs +1 -1
- package/dist/operations/index.d.ts +121 -176
- package/dist/operations/index.js +1 -1
- package/dist/parsers/index.cjs +1 -1
- package/dist/parsers/index.d.ts +35 -36
- package/dist/parsers/index.js +1 -1
- package/dist/predicates/index.cjs +1 -1
- package/dist/predicates/index.d.ts +1701 -1675
- package/dist/predicates/index.js +1 -1
- package/dist/prettify-C4xLcYOP.d.ts +328 -328
- package/dist/promise/index.cjs +1 -1
- package/dist/promise/index.d.ts +29 -38
- package/dist/promise/index.js +1 -1
- package/dist/rzl-utils.global.js +3 -3
- package/dist/string-XA-til3C.d.ts +351 -0
- package/dist/strings/index.cjs +1 -1
- package/dist/strings/index.d.ts +712 -787
- package/dist/strings/index.js +1 -1
- package/dist/stylings/index.cjs +1 -1
- package/dist/stylings/index.d.ts +37 -45
- package/dist/stylings/index.js +1 -1
- package/dist/type-data-DDs-u2kq.d.ts +241 -241
- package/dist/types/index.d.ts +3266 -3266
- package/dist/urls/index.cjs +1 -1
- package/dist/urls/index.d.ts +384 -409
- package/dist/urls/index.js +1 -1
- package/package.json +53 -11
- package/dist/array-CIZRbqTF.d.ts +0 -223
- package/dist/chunk-2TRAPBZ7.cjs +0 -1
- package/dist/chunk-3D74QO5D.cjs +0 -1
- package/dist/chunk-4DK3RCC4.js +0 -2
- package/dist/chunk-4JOQ45HL.js +0 -1
- package/dist/chunk-55CZALRS.js +0 -1
- package/dist/chunk-5JFV3GDE.cjs +0 -4
- package/dist/chunk-62HX5Z45.cjs +0 -1
- package/dist/chunk-7NA6DUHR.cjs +0 -2
- package/dist/chunk-BVPMMWDL.cjs +0 -1
- package/dist/chunk-CEFYHEM4.cjs +0 -1
- package/dist/chunk-CN53M4QZ.cjs +0 -1
- package/dist/chunk-D47MHBSD.cjs +0 -1
- package/dist/chunk-DGH75GJD.js +0 -1
- package/dist/chunk-E5NUI7PN.js +0 -1
- package/dist/chunk-FDITZ5C6.cjs +0 -1
- package/dist/chunk-FSSV24W7.cjs +0 -1
- package/dist/chunk-GCGU2WB7.js +0 -1
- package/dist/chunk-GECI2YBP.js +0 -1
- package/dist/chunk-GQE4OVHC.cjs +0 -1
- package/dist/chunk-GRVZXQXL.cjs +0 -1
- package/dist/chunk-I4AVNHPA.cjs +0 -1
- package/dist/chunk-JFRL7NKU.js +0 -4
- package/dist/chunk-KCQDDZJE.cjs +0 -1
- package/dist/chunk-L54ZPSYJ.js +0 -1
- package/dist/chunk-LVKAYEZ4.js +0 -1
- package/dist/chunk-MBDWTK54.cjs +0 -1
- package/dist/chunk-MNGGDB2G.js +0 -1
- package/dist/chunk-MY7BA4GI.cjs +0 -1
- package/dist/chunk-N2IJPIND.cjs +0 -1
- package/dist/chunk-NIMNTEGV.js +0 -1
- package/dist/chunk-PVJF2JHM.js +0 -1
- package/dist/chunk-QCFXEUKL.js +0 -1
- package/dist/chunk-QFCGBBSY.js +0 -1
- package/dist/chunk-QQYAUPSK.cjs +0 -1
- package/dist/chunk-TC4VBE4Y.cjs +0 -1
- package/dist/chunk-TUXDINHF.cjs +0 -1
- package/dist/chunk-U5Y2FXMN.cjs +0 -1
- package/dist/chunk-UUPQI6ND.cjs +0 -1
- package/dist/chunk-VYCGZ2S6.js +0 -1
- package/dist/chunk-W5EDKJK3.js +0 -1
- package/dist/chunk-WHAVUFEU.js +0 -1
- package/dist/chunk-XCFIOTCV.js +0 -1
- package/dist/chunk-XE27XPJR.js +0 -1
- package/dist/chunk-XVB3ZZEB.js +0 -1
- package/dist/chunk-ZBSIGJFO.cjs +0 -1
- package/dist/chunk-ZYAML74V.js +0 -1
- package/dist/extends-Mp81Hq9-.d.ts +0 -145
- package/dist/is-array-Ckm_47hw.d.ts +0 -1557
- package/dist/isPlainObject-BKYaI6a8.d.ts +0 -182
package/dist/urls/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as constructURL,b as extractURLs}from'../chunk-
|
|
1
|
+
export{a as constructURL,b as extractURLs}from'../chunk-SGTHOQQ2.js';import'../chunk-NNM7QCNB.js';import'../chunk-W32WALNU.js';import'../chunk-7MMJZ6HS.js';import'../chunk-LQ76EDZG.js';import'../chunk-SL3RQOWA.js';import'../chunk-ESJYBIYH.js';export{d as formatEnvPort,b as getFirstPrefixPathname,a as getPrefixPathname,c as normalizePathname}from'../chunk-QDNSC57Z.js';import'../chunk-NR44SNYE.js';import'../chunk-7CHFAMS2.js';import'../chunk-ELDDNERR.js';import'../chunk-J4NCYYGS.js';import'../chunk-5SZUSNGZ.js';import'../chunk-EWYPSKKM.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rzl-zone/utils-js",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.1-beta.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"engineStrict": true,
|
|
@@ -47,16 +47,6 @@
|
|
|
47
47
|
"node": ">=16"
|
|
48
48
|
},
|
|
49
49
|
"exports": {
|
|
50
|
-
".": {
|
|
51
|
-
"import": {
|
|
52
|
-
"types": "./dist/index.d.ts",
|
|
53
|
-
"default": "./dist/index.js"
|
|
54
|
-
},
|
|
55
|
-
"require": {
|
|
56
|
-
"types": "./dist/index.d.ts",
|
|
57
|
-
"default": "./dist/index.cjs"
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
50
|
"./assertions": {
|
|
61
51
|
"import": {
|
|
62
52
|
"types": "./dist/assertions/index.d.ts",
|
|
@@ -209,18 +199,70 @@
|
|
|
209
199
|
},
|
|
210
200
|
"./types": {
|
|
211
201
|
"types": "./dist/types/index.d.ts"
|
|
202
|
+
},
|
|
203
|
+
".": {
|
|
204
|
+
"import": {
|
|
205
|
+
"types": "./dist/index.d.ts",
|
|
206
|
+
"default": "./dist/index.js"
|
|
207
|
+
},
|
|
208
|
+
"require": {
|
|
209
|
+
"types": "./dist/index.d.ts",
|
|
210
|
+
"default": "./dist/index.cjs"
|
|
211
|
+
}
|
|
212
212
|
}
|
|
213
213
|
},
|
|
214
214
|
"typesVersions": {
|
|
215
215
|
"*": {
|
|
216
|
+
"assertions": [
|
|
217
|
+
"dist/assertions/index.d.ts"
|
|
218
|
+
],
|
|
219
|
+
"conversions": [
|
|
220
|
+
"dist/conversions/index.d.ts"
|
|
221
|
+
],
|
|
222
|
+
"env": [
|
|
223
|
+
"dist/env/index.d.ts"
|
|
224
|
+
],
|
|
225
|
+
"events": [
|
|
226
|
+
"dist/events/index.d.ts"
|
|
227
|
+
],
|
|
228
|
+
"formatting": [
|
|
229
|
+
"dist/formatting/index.d.ts"
|
|
230
|
+
],
|
|
231
|
+
"generator": [
|
|
232
|
+
"dist/generator/index.d.ts"
|
|
233
|
+
],
|
|
216
234
|
"next": [
|
|
217
235
|
"dist/next/index.d.ts"
|
|
218
236
|
],
|
|
219
237
|
"next/server": [
|
|
220
238
|
"dist/next/server/index.d.ts"
|
|
221
239
|
],
|
|
240
|
+
"operations": [
|
|
241
|
+
"dist/operations/index.d.ts"
|
|
242
|
+
],
|
|
243
|
+
"parsers": [
|
|
244
|
+
"dist/parsers/index.d.ts"
|
|
245
|
+
],
|
|
246
|
+
"predicates": [
|
|
247
|
+
"dist/predicates/index.d.ts"
|
|
248
|
+
],
|
|
249
|
+
"promise": [
|
|
250
|
+
"dist/promise/index.d.ts"
|
|
251
|
+
],
|
|
252
|
+
"strings": [
|
|
253
|
+
"dist/strings/index.d.ts"
|
|
254
|
+
],
|
|
255
|
+
"stylings": [
|
|
256
|
+
"dist/stylings/index.d.ts"
|
|
257
|
+
],
|
|
258
|
+
"urls": [
|
|
259
|
+
"dist/urls/index.d.ts"
|
|
260
|
+
],
|
|
222
261
|
"types": [
|
|
223
262
|
"dist/types/index.d.ts"
|
|
263
|
+
],
|
|
264
|
+
".": [
|
|
265
|
+
"dist/index.d.ts"
|
|
224
266
|
]
|
|
225
267
|
}
|
|
226
268
|
},
|
package/dist/array-CIZRbqTF.d.ts
DELETED
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
import{I as If}from'./if-CvT4R7Kh.js';import{I as IsNever}from'./never-BfayMBF9.js';
|
|
2
|
-
/** -------------------------------------------------------
|
|
3
|
-
* * ***Arrayable.***
|
|
4
|
-
* -------------------------------------------------------
|
|
5
|
-
* Represents a type that can be either:
|
|
6
|
-
* - a single value of type `T`, or
|
|
7
|
-
* - an array of values of type `T`.
|
|
8
|
-
*
|
|
9
|
-
* Useful when a function or API accepts **either one item or multiple items**.
|
|
10
|
-
*
|
|
11
|
-
* @template T - The element type.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* function toArray<T>(input: Arrayable<T>): T[] {
|
|
16
|
-
* return Array.isArray(input) ? input : [input];
|
|
17
|
-
* }
|
|
18
|
-
*
|
|
19
|
-
* type A = Arrayable<string>;
|
|
20
|
-
* // ➔ string | string[]
|
|
21
|
-
*
|
|
22
|
-
* const a: A = "foo";
|
|
23
|
-
* const b: A = ["foo", "bar"];
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
type Arrayable<T>=T|Array<T>;
|
|
27
|
-
/** -------------------------------------------------------
|
|
28
|
-
* * ***MutableArray.***
|
|
29
|
-
* -------------------------------------------------------
|
|
30
|
-
* Recursively creates a **mutable version** of a readonly array, tuple, or object type.
|
|
31
|
-
*
|
|
32
|
-
* By default, TypeScript infers tuple/array literals as `readonly` (especially with `as const`).
|
|
33
|
-
* This utility removes the `readonly` modifier from all elements recursively,
|
|
34
|
-
* turning a readonly tuple, array, or object into a mutable one.
|
|
35
|
-
*
|
|
36
|
-
* Optionally, if `Widen` is `true`, literal types (`1`, `'foo'`, `true`) are widened to
|
|
37
|
-
* their primitive equivalents (`number`, `string`, `boolean`) for easier assignment.
|
|
38
|
-
*
|
|
39
|
-
* @template T - The readonly array, tuple, or object type to make mutable.
|
|
40
|
-
* @template Widen - Whether to widen literal primitive types to their base types (default: `false`).
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* ```ts
|
|
44
|
-
* type A = readonly [1, 2, 3];
|
|
45
|
-
* type B = MutableArray<A>;
|
|
46
|
-
* // ➔ [1, 2, 3]
|
|
47
|
-
*
|
|
48
|
-
* const x: A = [1, 2, 3] as const;
|
|
49
|
-
* // x[0] = 9; // ❌ Error: read-only
|
|
50
|
-
*
|
|
51
|
-
* const y: MutableArray<B,true> = [1, 2, 3];
|
|
52
|
-
* y[0] = 9; // ✅ Allowed
|
|
53
|
-
*
|
|
54
|
-
* // Recursive example with objects
|
|
55
|
-
* type Obj = readonly [{ a: 1, b: readonly [2] }];
|
|
56
|
-
* type MutableObj = MutableArray<Obj, true>;
|
|
57
|
-
* // ➔ [{ a: number; b: [number]; }]
|
|
58
|
-
* ```
|
|
59
|
-
*/
|
|
60
|
-
type MutableArray<T,Widen extends boolean=false>=T extends(...args:any)=>any?T:T extends readonly any[]?{-readonly [K in keyof T]:MutableArray<T[K],Widen>;}:T extends object?{-readonly [K in keyof T]:MutableArray<T[K],Widen>;}:Widen extends true?T extends number?number:T extends string?string:T extends boolean?boolean:T extends bigint?bigint:T extends symbol?symbol:T:T;
|
|
61
|
-
/** --------------------------------------------------
|
|
62
|
-
* * ***GetArrayElementType.***
|
|
63
|
-
* --------------------------------------------------
|
|
64
|
-
* Gets the element type from a readonly array or tuple.
|
|
65
|
-
*
|
|
66
|
-
* ✅ Useful when working with `as const` arrays to extract the union of literal types.
|
|
67
|
-
*
|
|
68
|
-
* @template T - A readonly array or tuple type.
|
|
69
|
-
*
|
|
70
|
-
* @example
|
|
71
|
-
* ```ts
|
|
72
|
-
* const roles = ['admin', 'user'] as const;
|
|
73
|
-
* type Role = GetArrayElementType<typeof roles>;
|
|
74
|
-
* // ➔ "admin" | "user"
|
|
75
|
-
* ```
|
|
76
|
-
*/
|
|
77
|
-
type GetArrayElementType<T extends readonly any[]>=T extends readonly(infer U)[]?U:never;
|
|
78
|
-
/** -------------------------------------------------------
|
|
79
|
-
* * ***EmptyArray.***
|
|
80
|
-
* -------------------------------------------------------
|
|
81
|
-
* A type-level utility that returns `T` if it is an ***empty array***,
|
|
82
|
-
* otherwise returns `never`.
|
|
83
|
-
*
|
|
84
|
-
* @template T - The array type to check.
|
|
85
|
-
* @example
|
|
86
|
-
* ```ts
|
|
87
|
-
* type A = EmptyArray<[]>;
|
|
88
|
-
* // ➔ []
|
|
89
|
-
* type B = EmptyArray<[1]>;
|
|
90
|
-
* // ➔ never
|
|
91
|
-
* type C = EmptyArray<string[]>;
|
|
92
|
-
* // ➔ string[]
|
|
93
|
-
* type D = EmptyArray<number[]>;
|
|
94
|
-
* // ➔ number[]
|
|
95
|
-
* type E = EmptyArray<readonly []>;
|
|
96
|
-
* // ➔ readonly []
|
|
97
|
-
* ```
|
|
98
|
-
*/
|
|
99
|
-
type EmptyArray<T extends readonly unknown[]>=T extends readonly [ unknown,...unknown[]]?never:T;
|
|
100
|
-
/** -------------------------------------------------------
|
|
101
|
-
* * ***NonEmptyArray.***
|
|
102
|
-
* -------------------------------------------------------
|
|
103
|
-
* A type-level utility that returns `T` if it is a ***non-empty array***,
|
|
104
|
-
* otherwise returns `never`.
|
|
105
|
-
*
|
|
106
|
-
* @template T - The array type to check.
|
|
107
|
-
* @example
|
|
108
|
-
* ```ts
|
|
109
|
-
* type A = NonEmptyArray<[]>;
|
|
110
|
-
* // ➔ never
|
|
111
|
-
* type B = NonEmptyArray<[1]>;
|
|
112
|
-
* // ➔ [1]
|
|
113
|
-
* type C = NonEmptyArray<string[]>;
|
|
114
|
-
* // ➔ never
|
|
115
|
-
* type D = NonEmptyArray<number[]>;
|
|
116
|
-
* // ➔ never
|
|
117
|
-
* type E = NonEmptyArray<readonly []>;
|
|
118
|
-
* // ➔ never
|
|
119
|
-
* ```
|
|
120
|
-
*/
|
|
121
|
-
type NonEmptyArray<T extends readonly unknown[]>=If<IsNever<EmptyArray<T>>,T,never>;
|
|
122
|
-
/** -------------------------------------------------------
|
|
123
|
-
* * ***IsEmptyArray.***
|
|
124
|
-
* -------------------------------------------------------
|
|
125
|
-
* A type-level utility that evaluates to `true` if `T` is an ***empty array.***
|
|
126
|
-
* (or can be empty per this definition), otherwise `false`.
|
|
127
|
-
*
|
|
128
|
-
* @template T - The array type to check.
|
|
129
|
-
* @example
|
|
130
|
-
* ```ts
|
|
131
|
-
* type A = IsEmptyArray<[]>;
|
|
132
|
-
* // ➔ true
|
|
133
|
-
* type B = IsEmptyArray<[1]>;
|
|
134
|
-
* // ➔ false
|
|
135
|
-
* type C = IsEmptyArray<string[]>;
|
|
136
|
-
* // ➔ true
|
|
137
|
-
* type D = IsEmptyArray<number[]>;
|
|
138
|
-
* // ➔ true
|
|
139
|
-
* type E = IsEmptyArray<readonly []>;
|
|
140
|
-
* // ➔ true
|
|
141
|
-
* ```
|
|
142
|
-
*/
|
|
143
|
-
type IsEmptyArray<T extends readonly unknown[]>=If<IsNever<EmptyArray<T>>,false,true>;
|
|
144
|
-
/** -------------------------------------------------------
|
|
145
|
-
* * ***IsNonEmptyArray.***
|
|
146
|
-
* -------------------------------------------------------
|
|
147
|
-
* A type-level utility that evaluates to `true` if `T` is a ***non-empty array.***
|
|
148
|
-
* (strictly a non-empty tuple), otherwise `false`.
|
|
149
|
-
*
|
|
150
|
-
* @template T - The array type to check.
|
|
151
|
-
* @example
|
|
152
|
-
* ```ts
|
|
153
|
-
* type A = IsNonEmptyArray<[]>;
|
|
154
|
-
* // ➔ false
|
|
155
|
-
* type B = IsNonEmptyArray<[1]>;
|
|
156
|
-
* // ➔ true
|
|
157
|
-
* type C = IsNonEmptyArray<string[]>;
|
|
158
|
-
* // ➔ false
|
|
159
|
-
* type D = IsNonEmptyArray<number[]>;
|
|
160
|
-
* // ➔ false
|
|
161
|
-
* type E = IsNonEmptyArray<readonly []>;
|
|
162
|
-
* // ➔ false
|
|
163
|
-
* ```
|
|
164
|
-
*/
|
|
165
|
-
type IsNonEmptyArray<T extends readonly unknown[]>=If<IsNever<EmptyArray<T>>,true,false>;
|
|
166
|
-
/** -------------------------------------------------------
|
|
167
|
-
* * ***IfEmptyArray.***
|
|
168
|
-
* -------------------------------------------------------
|
|
169
|
-
* Returns the second argument if `T` is an ***empty array*** (per this utility),
|
|
170
|
-
* otherwise returns the third argument.
|
|
171
|
-
* - Defaults: `IfTrue = true`, `IfFalse = false`.
|
|
172
|
-
*
|
|
173
|
-
* @template T - The array type to check.
|
|
174
|
-
* @template IfTrue - Returned type if `T` is empty by this definition.
|
|
175
|
-
* @template IfFalse - Returned type if `T` is not empty by this definition.
|
|
176
|
-
* @example
|
|
177
|
-
* ```ts
|
|
178
|
-
* type A = IfEmptyArray<[]>;
|
|
179
|
-
* // ➔ true
|
|
180
|
-
* type B = IfEmptyArray<[1]>;
|
|
181
|
-
* // ➔ false
|
|
182
|
-
* type C = IfEmptyArray<string[]>;
|
|
183
|
-
* // ➔ true
|
|
184
|
-
* type D = IfEmptyArray<readonly []>;
|
|
185
|
-
* // ➔ true
|
|
186
|
-
* type E = IfEmptyArray<[], "yes", "no">;
|
|
187
|
-
* // ➔ "yes"
|
|
188
|
-
* type F = IfEmptyArray<[1], "yes", "no">;
|
|
189
|
-
* // ➔ "no"
|
|
190
|
-
* type G = IfEmptyArray<string[], "yes", "no">;
|
|
191
|
-
* // ➔ "yes"
|
|
192
|
-
* ```
|
|
193
|
-
*/
|
|
194
|
-
type IfEmptyArray<T extends readonly unknown[],IfTrue=true,IfFalse=false>=If<IsEmptyArray<T>,IfTrue,IfFalse>;
|
|
195
|
-
/** -------------------------------------------------------
|
|
196
|
-
* * ***IfNonEmptyArray.***
|
|
197
|
-
* -------------------------------------------------------
|
|
198
|
-
* Returns the second argument if `T` is a ***non-empty array*** (strict tuple),
|
|
199
|
-
* otherwise returns the third argument.
|
|
200
|
-
* - Defaults: `IfTrue = true`, `IfFalse = false`.
|
|
201
|
-
*
|
|
202
|
-
* @template T - The array type to check.
|
|
203
|
-
* @template IfTrue - Returned type if `T` is non-empty by this definition.
|
|
204
|
-
* @template IfFalse - Returned type if `T` is not non-empty by this definition.
|
|
205
|
-
* @example
|
|
206
|
-
* ```ts
|
|
207
|
-
* type A = IfNonEmptyArray<[]>;
|
|
208
|
-
* // ➔ false
|
|
209
|
-
* type B = IfNonEmptyArray<[1]>;
|
|
210
|
-
* // ➔ true
|
|
211
|
-
* type C = IfNonEmptyArray<string[]>;
|
|
212
|
-
* // ➔ false
|
|
213
|
-
* type D = IfNonEmptyArray<readonly []>;
|
|
214
|
-
* // ➔ false
|
|
215
|
-
* type E = IfNonEmptyArray<[1], "yes", "no">;
|
|
216
|
-
* // ➔ "yes"
|
|
217
|
-
* type F = IfNonEmptyArray<[], "yes", "no">;
|
|
218
|
-
* // ➔ "no"
|
|
219
|
-
* type G = IfNonEmptyArray<string[], "yes", "no">;
|
|
220
|
-
* // ➔ "no"
|
|
221
|
-
* ```
|
|
222
|
-
*/
|
|
223
|
-
type IfNonEmptyArray<T extends readonly unknown[],IfTrue=true,IfFalse=false>=If<IsNonEmptyArray<T>,IfTrue,IfFalse>;export type{Arrayable as A,EmptyArray as E,GetArrayElementType as G,IsEmptyArray as I,MutableArray as M,NonEmptyArray as N,IfEmptyArray as a,IfNonEmptyArray as b,IsNonEmptyArray as c};
|
package/dist/chunk-2TRAPBZ7.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');var r=(n,o={})=>!chunkCN53M4QZ_cjs.p(n,o);exports.a=r;
|
package/dist/chunk-3D74QO5D.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkFIEZKTAZ_cjs=require('./chunk-FIEZKTAZ.cjs'),chunkTC4VBE4Y_cjs=require('./chunk-TC4VBE4Y.cjs'),chunkUUPQI6ND_cjs=require('./chunk-UUPQI6ND.cjs'),chunk62HX5Z45_cjs=require('./chunk-62HX5Z45.cjs'),chunkN2IJPIND_cjs=require('./chunk-N2IJPIND.cjs'),chunk2TRAPBZ7_cjs=require('./chunk-2TRAPBZ7.cjs'),chunkU5Y2FXMN_cjs=require('./chunk-U5Y2FXMN.cjs'),chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');var A=(t,e,o)=>{if(chunkCN53M4QZ_cjs.h(t)){if(chunk2TRAPBZ7_cjs.a(t))throw new TypeError("First parameter (`baseUrl`) cannot be an empty string.");t=chunkN2IJPIND_cjs.b(t);}else if(!chunkFIEZKTAZ_cjs.a(t))throw new TypeError(`First parameter (\`baseUrl\`) must be of type an URL instance or a \`string\` and a non-empty string, but received: \`${chunkCN53M4QZ_cjs.E(t)}\`, with current value: \`${chunkU5Y2FXMN_cjs.c(t)}\`.`);if(!chunkCN53M4QZ_cjs.k(o)&&(chunk62HX5Z45_cjs.a(o,{message:({currentType:r,validType:n})=>`Third parameter (\`removeParams\`) must be of type \`${n} of strings\`, but received: \`${r}\`.`}),!o.every(r=>chunkCN53M4QZ_cjs.p(r))))throw new TypeError("Third parameter (`removeParams`) must be of type `array` and contains `string` only and non-empty string.");try{if(!chunkCN53M4QZ_cjs.k(e)&&!chunkCN53M4QZ_cjs.b(e[Symbol.iterator]))throw new TypeError(`Second parameter (\`queryParams\`) must be iterable (like URLSearchParams.entries() or an array of [[string, string | number]...]), but received: \`${chunkCN53M4QZ_cjs.E(e)}\`, with value: \`${chunkU5Y2FXMN_cjs.c(e)}\`.`);let r=new URL(t);if(!chunkCN53M4QZ_cjs.k(e)){let n=Object.fromEntries(e);if(!chunkUUPQI6ND_cjs.a(n)){let i=new URLSearchParams(r.search);for(let[s,f]of Object.entries(n)){if(!chunkCN53M4QZ_cjs.p(f)&&!chunkCN53M4QZ_cjs.i(f,{includeNaN:!0}))throw new TypeError(`Second parameter (\`queryParams\`) must be iterable (like URLSearchParams.entries() or an array of [[string, string | number]...]), but received: \`${chunkCN53M4QZ_cjs.E(e)}\`, with value: \`${chunkU5Y2FXMN_cjs.c(e)}\`.`);i.set(s,String(f));}o?.length&&chunkTC4VBE4Y_cjs.e(o).map(s=>{i.delete(s);}),r.search=i.toString();}}return o?.forEach(n=>r.searchParams.delete(n)),r}catch(r){throw chunkCN53M4QZ_cjs.D(r)?r:new Error("Failed to construct a valid URL in `constructURL()`, Error:"+r)}};var C=t=>{if(!chunkCN53M4QZ_cjs.p(t))return null;let e;try{e=decodeURIComponent(t);}catch{return null}let o=/https?:\/\/.*?(?=https?:\/\/|\s|$)/g,r=e.match(o);if(!r)return null;let n=r.map(i=>i.replace(/[.,;:!?)]*$/,"")).filter(i=>{try{let s=new URL(i);return s.protocol==="http:"||s.protocol==="https:"}catch{return false}});return n.length?n:null};exports.a=A;exports.b=C;
|
package/dist/chunk-4DK3RCC4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-NNM7QCNB.js';import {b as b$2}from'./chunk-DGH75GJD.js';import {d,e,a as a$4,c as c$2}from'./chunk-W5EDKJK3.js';import {a as a$3}from'./chunk-XH6MCRLP.js';import {a as a$1}from'./chunk-NIMNTEGV.js';import {a as a$2}from'./chunk-XVB3ZZEB.js';import {c,b as b$1,a as a$5}from'./chunk-MNGGDB2G.js';import {d as d$1,E,G as G$1,m,p,l,h,i,j,b,q,f,c as c$1,a as a$6,C,n,k,e as e$1,g}from'./chunk-XCFIOTCV.js';var nr=(r,t,e=false)=>{if(!(d$1(r)&&d$1(t)))throw new TypeError(`Parameters \`array1\` and \`array2\` property of the \`options\` (second parameter) must be of type \`array\`, but received: ['array1': \`${E(r)}\`, 'array2': \`${E(t)}\`].`);if(G$1(e,{message:({currentType:o,validType:n})=>`Third parameter \`ignoreOrder\` must be of type \`${n}\`, but received: \`${o}\`.`}),!d(r.length,t.length))return false;let s=o=>d$1(o)?o.map(m=>d$1(m)?s(m):m).sort((m,u)=>{let z=c(m),U=c(u);return z<U?-1:z>U?1:0}):o,i=e?s(r):r,a=e?s(t):t;return d(i.length,a.length)?i.every((o,n)=>c(o)===c(a[n])):false};var mr=(r,t)=>d(r,t);var ar=(r,t)=>{if(!a(r)||!a(t))throw new TypeError("Parameters `urlA` and `urlB` (first and second parameter) must be instance of URL.].");return r.protocol+"//"+r.host+r.pathname==t.protocol+"//"+t.host+t.pathname};var lr=(r,t)=>{if(!a(r)||!a(t))throw new TypeError("Parameters `urlA` and `urlB` (first and second parameter) must be instance of URL.].");return r.protocol+"//"+r.host+r.pathname+r.search==t.protocol+"//"+t.host+t.pathname+t.search};var Tr=(r,t,e={})=>{if(a$1(r)||!d$1(t))return false;m(e,{message:({currentType:n,validType:m})=>`Third parameter (\`options\`) must be of type \`${m}\`, but received: \`${n}\`.`});let{exactMatch:s=false,flags:i="i"}=e;G$1(s,{message:({currentType:n,validType:m})=>`Parameter \`exactMatch\` property of the \`options\` (third parameter) must be of type \`${m}\`, but received: \`${n}\`.`}),a$2(i,{message:({currentType:n,validType:m})=>`Parameter \`flags\` property of the \`options\` (third parameter) must be of type \`${m}\`, but received: \`${n}\`.`});let a=n=>n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),o=t.filter(n=>p(n)).map(a);return o.length===0?false:o.every(n=>{let m=s?`(?<!\\S)${n}(?!\\S)`:n;return new RegExp(m,i.includes("u")?i:i+"u").test(r)})};var Rr=(r,t,e)=>{if(a$1(r)||!d$1(t))return false;m(e,{message:({currentType:m,validType:u})=>`Third parameter (\`options\`) must be of type \`${u}\`, but received: \`${m}\`.`});let{exactMatch:s=false,flags:i="i"}=e||{};G$1(s,{message:({currentType:m,validType:u})=>`Parameter \`exactMatch\` property of the \`options\` (third parameter) must be of type \`${u}\`, but received: \`${m}\`.`}),a$2(i,{message:({currentType:m,validType:u})=>`Parameter \`flags\` property of the \`options\` (third parameter) must be of type \`${u}\`, but received: \`${m}\`.`});let a=m=>m.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),o=t.filter(m=>p(m)).map(a);if(o.length===0)return false;let n=s?`(?<!\\S)(${o.join("|")})(?!\\S)`:`(${o.join("|")})`;return new RegExp(n,i.includes("u")?i:i+"u").test(r)};var H=(r,t)=>{if(!l(r))return false;if(!(h(t)||i(t)||j(t)))throw new TypeError(`Second Parameter (\`key\`) must be of type \`string\`, \`number\` or \`symbol\`, but received: \`${E(t)}\`.`);return Object.prototype.hasOwnProperty.call(r,t)?true:d$1(r)?r.some(e=>H(e,t)):Object.values(r).some(e=>l(e)&&H(e,t))};var Br=(r,t)=>{if(!d$1(r)||!d$1(t)||e(r)||e(t))return false;let e$1=new Set(r);return t.some(s=>e$1.has(s))};var Z=r=>Object.prototype.toString.call(r)==="[object Arguments]";function $(r){return typeof r=="number"&&r>-1&&Number.isInteger(r)&&r<=Number.MAX_SAFE_INTEGER}function st(r){return !b(r)&&l(r)&&$(r?.length)}function at(r){return l(r)&&$(r.length)}var xt=r=>h(r)||i(r)?a$3(r.toString())!==0?true:r.toString().trim()==="0":false;var T=(r,t)=>{if(typeof r=="number"&&typeof t=="number"&&Number.isNaN(r)&&Number.isNaN(t)||r===t)return true;if(typeof r!=typeof t)return false;if(b$1(r)&&b$1(t))return r.getTime()===t.getTime();if(a$4(r)&&a$4(t)||j(r)&&j(t))return r.toString()===t.toString();if(q(r)&&q(t)){if(r.size!==t.size)return false;let e=Array.from(t),s=new Set;for(let i of r){let a=false;for(let o=0;o<e.length;o++)if(!s.has(o)&&T(i,e[o])){s.add(o),a=true;break}if(!a)return false}return true}if(a$5(r)&&a$5(t)){if(r.size!==t.size)return false;let e=Array.from(t),s=new Set;for(let[i,a]of r){let o=false;for(let n=0;n<e.length;n++){if(s.has(n))continue;let[m,u]=e[n];if(T(i,m)&&T(a,u)){s.add(n),o=true;break}}if(!o)return false}return true}if(d$1(r)&&d$1(t))return r.length!==t.length?false:r.every((e,s)=>T(e,t[s]));if(l(r)&&l(t)&&r&&t){if(d$1(r)!==d$1(t))return false;let e=Object.keys(r),s=Object.keys(t);return e.length!==s.length?false:e.every(i=>T(r[i],t[i]))}return false};function Tt(r){return !!r&&typeof r=="object"&&r?.nodeType===1&&!f(r)}function Ct(r){return c$1(r)||a$6(r)||i(r,{includeNaN:true})||j(r)?true:b(r)?Object.keys(r).length===0:h(r)||d$1(r)||Z(r)||b$2(r)?r.length===0:a$5(r)||q(r)?r.size===0:C(r)?r.length===0:f(r)?Object.keys(r).length===0:false}var G=r=>{if(h(r))return a$1(r);if(i(r))return n(r);if(d$1(r))return e(r)||r.every(G);if(l(r)){let t=Object.keys(r),e=Object.getOwnPropertySymbols(r);return t.length===0&&e.length===0?true:[...t,...e].every(s=>G(r[s]))}return !r};function Qt(r,t,e){return c$2(r,t,e,new WeakMap)}function X(r,t,e){return I(r,t,e)}function B(r,t){return r===t||r===0&&t===0||Number.isNaN(r)&&Number.isNaN(t)}function I(r,t,e){if(r===t)return true;if(!l(t))return B(r,t);if(!l(r))return false;let s=Reflect.ownKeys(t).filter(i=>!(d$1(t)&&i==="length"));for(let i of s){if(!(i in r))return false;let a=r[i],o=t[i],n=e?.(a,o,i,r,t);if(!k(n)){if(!n)return false;continue}if(l(a)&&l(o)){if(!X(a,o,e))return false}else if(!B(a,o))return false}return true}function fe(r,t){return I(r,t)}var J=Function.prototype.toString,Q=/\{\s*\[native code\]\s*\}/;function ue(r){if(!b(r))return false;try{let t=J.call(r);return Q.test(t)}catch{return false}}function be(r){return !c$1(r)&&(l(r)||b(r))}function he(r){return typeof r=="number"&&Number.isSafeInteger(r)}var we=r=>{if(!p(r))return false;let t;try{t=decodeURIComponent(r);}catch{return false}return !t.startsWith("http://")&&!t.startsWith("https://")?false:new RegExp(/^https?:\/\/(?:localhost(?::\d+)?(?:[\/?#][^\s]*)?|(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}(?::\d+)?(?:[\/?#][^\s]*)?)$/).test(t)};function Oe(r){return e$1(r)&&!g(r)&&r instanceof WeakMap}
|
|
2
|
-
export{nr as a,mr as b,ar as c,lr as d,Tr as e,Rr as f,H as g,Br as h,Z as i,$ as j,st as k,at as l,xt as m,T as n,Tt as o,Ct as p,G as q,Qt as r,X as s,fe as t,ue as u,be as v,he as w,we as x,Oe as y};
|
package/dist/chunk-4JOQ45HL.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {i}from'./chunk-XCFIOTCV.js';function e(i$1){return i(i$1)&&Number.isFinite(i$1)}export{e as a};
|
package/dist/chunk-55CZALRS.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-5SZUSNGZ.js';import {F,o,i}from'./chunk-XCFIOTCV.js';var I=(r,s={})=>{if(a(r))return;let o=F({value:r,options:s,requiredValidType:"big int"});throw new TypeError(o)};var O=(r,s={})=>{let o$1=o(s,"includeNaN")?s.includeNaN:void 0;if(i(r,{includeNaN:o$1}))return;let p=F({value:r,options:s,requiredValidType:"number"});throw new TypeError(p)};export{I as a,O as b};
|
package/dist/chunk-5JFV3GDE.cjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkN2IJPIND_cjs=require('./chunk-N2IJPIND.cjs'),chunk2TRAPBZ7_cjs=require('./chunk-2TRAPBZ7.cjs'),chunkPUQXRLZH_cjs=require('./chunk-PUQXRLZH.cjs'),chunkU5Y2FXMN_cjs=require('./chunk-U5Y2FXMN.cjs'),chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');var h=class r extends Error{constructor(t,o){super(t);this.originalError=o;this.name="NormalizePathnameError",Error.captureStackTrace&&Error.captureStackTrace(this,r);}};var G=(r,e=null,t={})=>{let o=[];!chunkCN53M4QZ_cjs.h(r)&&!chunkCN53M4QZ_cjs.d(r)&&o.push(`First parameter \`url\` must be of type \`string\` or \`array-string\`, but received: \`${chunkCN53M4QZ_cjs.E(r)}\`.`),!chunkCN53M4QZ_cjs.h(e)&&!chunkCN53M4QZ_cjs.d(e)&&!chunkCN53M4QZ_cjs.g(e)&&o.push(`Second parameter \`base\` must be of type \`string\`, \`array-string\` or \`null\`, but received: \`${chunkCN53M4QZ_cjs.E(e)}\`.`),chunkCN53M4QZ_cjs.f(t)||o.push(`Second parameter (\`options\`) must be of type \`plain-object\`, but received: \`${chunkCN53M4QZ_cjs.E(t)}\`.`);let{levels:m=1,removeDuplicates:c=true}=t;if((!chunkPUQXRLZH_cjs.a(m)||chunkPUQXRLZH_cjs.a(m)&&m<0)&&o.push(`Parameter \`levels\` property of the \`options\` (second parameter) must be of type \`integer-number\` and minimum is \`0\`, but received: \`${chunkCN53M4QZ_cjs.E(m)}\`, with value: \`${chunkU5Y2FXMN_cjs.c(m)}\`.`),chunkCN53M4QZ_cjs.a(c)||o.push(`Parameter \`removeDuplicates\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: \`${chunkCN53M4QZ_cjs.E(c)}\`.`),chunkCN53M4QZ_cjs.r(o))throw new TypeError(`Invalid parameter(s) in getPrefixPathname:
|
|
2
|
-
- ${o.join(`
|
|
3
|
-
- `)}`);function b(i){return `/${s(i).split("/").filter(Boolean).slice(0,m).join("/")}`}function w(i){if(e){if(i=s(i),chunkCN53M4QZ_cjs.d(e)){for(let a of e)if(i.startsWith(s(a)))return b(i)}else if(chunkCN53M4QZ_cjs.p(e)&&i.startsWith(s(e)))return b(i);return null}return b(i)}if(chunkCN53M4QZ_cjs.d(r)){let i=r.map(w).filter(z=>!chunkCN53M4QZ_cjs.g(z)),a=c?[...new Set(i)]:i;return a.length===1?a[0]:a}return w(r)},H=(r,e="/")=>{if(!chunkCN53M4QZ_cjs.p(e))throw new TypeError(`Second parameter (\`defaultValue\`) must be of type \`string\` and not empty string, but received: \`${chunkCN53M4QZ_cjs.E(e)}\`, with value: \`${chunkU5Y2FXMN_cjs.c(e)}\`.`);if(chunkCN53M4QZ_cjs.d(r)){if(!r.every(t=>chunkCN53M4QZ_cjs.h(t)))throw new TypeError(`First parameter (\`result\`) must be of type \`string\` or \`array of string\`, but received: \`${chunkCN53M4QZ_cjs.E(r)}\`, with value: \`${chunkU5Y2FXMN_cjs.c(r)}\`.`);for(let t of r){let o=s(t);if(o!=="/")return o}return s(e)}if(chunkCN53M4QZ_cjs.h(r)){let t=s(r);return t!=="/"?t:s(e)}if(!chunkCN53M4QZ_cjs.g(r))throw new TypeError(`First parameter \`result\` must be of type \`string\`, \`array-string\` or \`null\`, but received: \`${chunkCN53M4QZ_cjs.E(r)}\`.`);return s(e)},s=(r,e="/")=>{if(!chunkCN53M4QZ_cjs.p(e))throw new TypeError(`Second parameter (\`defaultPath\`) must be of type \`string\` and not empty string, but received: \`${chunkCN53M4QZ_cjs.E(e)}\`, with value: \`${chunkU5Y2FXMN_cjs.c(e)}\`.`);if(!chunkCN53M4QZ_cjs.p(r))return e;try{if(r=chunkN2IJPIND_cjs.c(r,{trimOnly:!0}),r=r.replace(/\s+/g,""),r.startsWith("http://")||r.startsWith("https://")){let t=new URL(r);return `${t.pathname}${t.search}${t.hash}`.replace(/^\/+/,"/")}return "/"+r.replace(/^\/+/,"").replace(/\/{2,}/g,"/")}catch(t){let o=chunkCN53M4QZ_cjs.D(t)?t:new Error("Unknown error from function `normalizePathname()`.");throw new h(`Failed to normalize pathname in function \`normalizePathname()\`: ${o.message}`,o)}};var _=(r,e={})=>{if(!chunkCN53M4QZ_cjs.p(r))return "";chunkCN53M4QZ_cjs.m(e,{message:({currentType:m,validType:c})=>`Second parameter (\`options\`) must be of type \`${c}\`, but received: \`${m}\`.`});let t=chunkCN53M4QZ_cjs.o(e,"prefixColon")?e.prefixColon:false;if(!chunkCN53M4QZ_cjs.a(t))throw new TypeError(`Parameter \`prefixColon\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: \`${chunkCN53M4QZ_cjs.E(t)}\`.`);let o=r.replace(/\D+/g,"");return chunk2TRAPBZ7_cjs.a(o)?"":t?`:${o}`:o};
|
|
4
|
-
exports.a=G;exports.b=H;exports.c=s;exports.d=_;
|
package/dist/chunk-62HX5Z45.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');function u(r,e){if(chunkCN53M4QZ_cjs.d(r))return;let t=chunkCN53M4QZ_cjs.F({value:r,options:e,requiredValidType:"array"});throw new TypeError(t)}exports.a=u;
|
package/dist/chunk-7NA6DUHR.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkFIEZKTAZ_cjs=require('./chunk-FIEZKTAZ.cjs'),chunkD47MHBSD_cjs=require('./chunk-D47MHBSD.cjs'),chunkKCQDDZJE_cjs=require('./chunk-KCQDDZJE.cjs'),chunkJWHM3WZQ_cjs=require('./chunk-JWHM3WZQ.cjs'),chunk2TRAPBZ7_cjs=require('./chunk-2TRAPBZ7.cjs'),chunkBVPMMWDL_cjs=require('./chunk-BVPMMWDL.cjs'),chunkU5Y2FXMN_cjs=require('./chunk-U5Y2FXMN.cjs'),chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');var nr=(r,t,e=false)=>{if(!(chunkCN53M4QZ_cjs.d(r)&&chunkCN53M4QZ_cjs.d(t)))throw new TypeError(`Parameters \`array1\` and \`array2\` property of the \`options\` (second parameter) must be of type \`array\`, but received: ['array1': \`${chunkCN53M4QZ_cjs.E(r)}\`, 'array2': \`${chunkCN53M4QZ_cjs.E(t)}\`].`);if(chunkCN53M4QZ_cjs.G(e,{message:({currentType:o,validType:n})=>`Third parameter \`ignoreOrder\` must be of type \`${n}\`, but received: \`${o}\`.`}),!chunkKCQDDZJE_cjs.d(r.length,t.length))return false;let s=o=>chunkCN53M4QZ_cjs.d(o)?o.map(m=>chunkCN53M4QZ_cjs.d(m)?s(m):m).sort((m,u)=>{let z=chunkU5Y2FXMN_cjs.c(m),U=chunkU5Y2FXMN_cjs.c(u);return z<U?-1:z>U?1:0}):o,i=e?s(r):r,a=e?s(t):t;return chunkKCQDDZJE_cjs.d(i.length,a.length)?i.every((o,n)=>chunkU5Y2FXMN_cjs.c(o)===chunkU5Y2FXMN_cjs.c(a[n])):false};var mr=(r,t)=>chunkKCQDDZJE_cjs.d(r,t);var ar=(r,t)=>{if(!chunkFIEZKTAZ_cjs.a(r)||!chunkFIEZKTAZ_cjs.a(t))throw new TypeError("Parameters `urlA` and `urlB` (first and second parameter) must be instance of URL.].");return r.protocol+"//"+r.host+r.pathname==t.protocol+"//"+t.host+t.pathname};var lr=(r,t)=>{if(!chunkFIEZKTAZ_cjs.a(r)||!chunkFIEZKTAZ_cjs.a(t))throw new TypeError("Parameters `urlA` and `urlB` (first and second parameter) must be instance of URL.].");return r.protocol+"//"+r.host+r.pathname+r.search==t.protocol+"//"+t.host+t.pathname+t.search};var Tr=(r,t,e={})=>{if(chunk2TRAPBZ7_cjs.a(r)||!chunkCN53M4QZ_cjs.d(t))return false;chunkCN53M4QZ_cjs.m(e,{message:({currentType:n,validType:m})=>`Third parameter (\`options\`) must be of type \`${m}\`, but received: \`${n}\`.`});let{exactMatch:s=false,flags:i="i"}=e;chunkCN53M4QZ_cjs.G(s,{message:({currentType:n,validType:m})=>`Parameter \`exactMatch\` property of the \`options\` (third parameter) must be of type \`${m}\`, but received: \`${n}\`.`}),chunkBVPMMWDL_cjs.a(i,{message:({currentType:n,validType:m})=>`Parameter \`flags\` property of the \`options\` (third parameter) must be of type \`${m}\`, but received: \`${n}\`.`});let a=n=>n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),o=t.filter(n=>chunkCN53M4QZ_cjs.p(n)).map(a);return o.length===0?false:o.every(n=>{let m=s?`(?<!\\S)${n}(?!\\S)`:n;return new RegExp(m,i.includes("u")?i:i+"u").test(r)})};var Rr=(r,t,e)=>{if(chunk2TRAPBZ7_cjs.a(r)||!chunkCN53M4QZ_cjs.d(t))return false;chunkCN53M4QZ_cjs.m(e,{message:({currentType:m,validType:u})=>`Third parameter (\`options\`) must be of type \`${u}\`, but received: \`${m}\`.`});let{exactMatch:s=false,flags:i="i"}=e||{};chunkCN53M4QZ_cjs.G(s,{message:({currentType:m,validType:u})=>`Parameter \`exactMatch\` property of the \`options\` (third parameter) must be of type \`${u}\`, but received: \`${m}\`.`}),chunkBVPMMWDL_cjs.a(i,{message:({currentType:m,validType:u})=>`Parameter \`flags\` property of the \`options\` (third parameter) must be of type \`${u}\`, but received: \`${m}\`.`});let a=m=>m.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),o=t.filter(m=>chunkCN53M4QZ_cjs.p(m)).map(a);if(o.length===0)return false;let n=s?`(?<!\\S)(${o.join("|")})(?!\\S)`:`(${o.join("|")})`;return new RegExp(n,i.includes("u")?i:i+"u").test(r)};var H=(r,t)=>{if(!chunkCN53M4QZ_cjs.l(r))return false;if(!(chunkCN53M4QZ_cjs.h(t)||chunkCN53M4QZ_cjs.i(t)||chunkCN53M4QZ_cjs.j(t)))throw new TypeError(`Second Parameter (\`key\`) must be of type \`string\`, \`number\` or \`symbol\`, but received: \`${chunkCN53M4QZ_cjs.E(t)}\`.`);return Object.prototype.hasOwnProperty.call(r,t)?true:chunkCN53M4QZ_cjs.d(r)?r.some(e=>H(e,t)):Object.values(r).some(e=>chunkCN53M4QZ_cjs.l(e)&&H(e,t))};var Br=(r,t)=>{if(!chunkCN53M4QZ_cjs.d(r)||!chunkCN53M4QZ_cjs.d(t)||chunkKCQDDZJE_cjs.e(r)||chunkKCQDDZJE_cjs.e(t))return false;let e=new Set(r);return t.some(s=>e.has(s))};var Z=r=>Object.prototype.toString.call(r)==="[object Arguments]";function $(r){return typeof r=="number"&&r>-1&&Number.isInteger(r)&&r<=Number.MAX_SAFE_INTEGER}function st(r){return !chunkCN53M4QZ_cjs.b(r)&&chunkCN53M4QZ_cjs.l(r)&&$(r?.length)}function at(r){return chunkCN53M4QZ_cjs.l(r)&&$(r.length)}var xt=r=>chunkCN53M4QZ_cjs.h(r)||chunkCN53M4QZ_cjs.i(r)?chunkJWHM3WZQ_cjs.a(r.toString())!==0?true:r.toString().trim()==="0":false;var T=(r,t)=>{if(typeof r=="number"&&typeof t=="number"&&Number.isNaN(r)&&Number.isNaN(t)||r===t)return true;if(typeof r!=typeof t)return false;if(chunkU5Y2FXMN_cjs.b(r)&&chunkU5Y2FXMN_cjs.b(t))return r.getTime()===t.getTime();if(chunkKCQDDZJE_cjs.a(r)&&chunkKCQDDZJE_cjs.a(t)||chunkCN53M4QZ_cjs.j(r)&&chunkCN53M4QZ_cjs.j(t))return r.toString()===t.toString();if(chunkCN53M4QZ_cjs.q(r)&&chunkCN53M4QZ_cjs.q(t)){if(r.size!==t.size)return false;let e=Array.from(t),s=new Set;for(let i of r){let a=false;for(let o=0;o<e.length;o++)if(!s.has(o)&&T(i,e[o])){s.add(o),a=true;break}if(!a)return false}return true}if(chunkU5Y2FXMN_cjs.a(r)&&chunkU5Y2FXMN_cjs.a(t)){if(r.size!==t.size)return false;let e=Array.from(t),s=new Set;for(let[i,a]of r){let o=false;for(let n=0;n<e.length;n++){if(s.has(n))continue;let[m,u]=e[n];if(T(i,m)&&T(a,u)){s.add(n),o=true;break}}if(!o)return false}return true}if(chunkCN53M4QZ_cjs.d(r)&&chunkCN53M4QZ_cjs.d(t))return r.length!==t.length?false:r.every((e,s)=>T(e,t[s]));if(chunkCN53M4QZ_cjs.l(r)&&chunkCN53M4QZ_cjs.l(t)&&r&&t){if(chunkCN53M4QZ_cjs.d(r)!==chunkCN53M4QZ_cjs.d(t))return false;let e=Object.keys(r),s=Object.keys(t);return e.length!==s.length?false:e.every(i=>T(r[i],t[i]))}return false};function Tt(r){return !!r&&typeof r=="object"&&r?.nodeType===1&&!chunkCN53M4QZ_cjs.f(r)}function Ct(r){return chunkCN53M4QZ_cjs.c(r)||chunkCN53M4QZ_cjs.a(r)||chunkCN53M4QZ_cjs.i(r,{includeNaN:true})||chunkCN53M4QZ_cjs.j(r)?true:chunkCN53M4QZ_cjs.b(r)?Object.keys(r).length===0:chunkCN53M4QZ_cjs.h(r)||chunkCN53M4QZ_cjs.d(r)||Z(r)||chunkD47MHBSD_cjs.b(r)?r.length===0:chunkU5Y2FXMN_cjs.a(r)||chunkCN53M4QZ_cjs.q(r)?r.size===0:chunkCN53M4QZ_cjs.C(r)?r.length===0:chunkCN53M4QZ_cjs.f(r)?Object.keys(r).length===0:false}var G=r=>{if(chunkCN53M4QZ_cjs.h(r))return chunk2TRAPBZ7_cjs.a(r);if(chunkCN53M4QZ_cjs.i(r))return chunkCN53M4QZ_cjs.n(r);if(chunkCN53M4QZ_cjs.d(r))return chunkKCQDDZJE_cjs.e(r)||r.every(G);if(chunkCN53M4QZ_cjs.l(r)){let t=Object.keys(r),e=Object.getOwnPropertySymbols(r);return t.length===0&&e.length===0?true:[...t,...e].every(s=>G(r[s]))}return !r};function Qt(r,t,e){return chunkKCQDDZJE_cjs.c(r,t,e,new WeakMap)}function X(r,t,e){return I(r,t,e)}function B(r,t){return r===t||r===0&&t===0||Number.isNaN(r)&&Number.isNaN(t)}function I(r,t,e){if(r===t)return true;if(!chunkCN53M4QZ_cjs.l(t))return B(r,t);if(!chunkCN53M4QZ_cjs.l(r))return false;let s=Reflect.ownKeys(t).filter(i=>!(chunkCN53M4QZ_cjs.d(t)&&i==="length"));for(let i of s){if(!(i in r))return false;let a=r[i],o=t[i],n=e?.(a,o,i,r,t);if(!chunkCN53M4QZ_cjs.k(n)){if(!n)return false;continue}if(chunkCN53M4QZ_cjs.l(a)&&chunkCN53M4QZ_cjs.l(o)){if(!X(a,o,e))return false}else if(!B(a,o))return false}return true}function fe(r,t){return I(r,t)}var J=Function.prototype.toString,Q=/\{\s*\[native code\]\s*\}/;function ue(r){if(!chunkCN53M4QZ_cjs.b(r))return false;try{let t=J.call(r);return Q.test(t)}catch{return false}}function be(r){return !chunkCN53M4QZ_cjs.c(r)&&(chunkCN53M4QZ_cjs.l(r)||chunkCN53M4QZ_cjs.b(r))}function he(r){return typeof r=="number"&&Number.isSafeInteger(r)}var we=r=>{if(!chunkCN53M4QZ_cjs.p(r))return false;let t;try{t=decodeURIComponent(r);}catch{return false}return !t.startsWith("http://")&&!t.startsWith("https://")?false:new RegExp(/^https?:\/\/(?:localhost(?::\d+)?(?:[\/?#][^\s]*)?|(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}(?::\d+)?(?:[\/?#][^\s]*)?)$/).test(t)};function Oe(r){return chunkCN53M4QZ_cjs.e(r)&&!chunkCN53M4QZ_cjs.g(r)&&r instanceof WeakMap}
|
|
2
|
-
exports.a=nr;exports.b=mr;exports.c=ar;exports.d=lr;exports.e=Tr;exports.f=Rr;exports.g=H;exports.h=Br;exports.i=Z;exports.j=$;exports.k=st;exports.l=at;exports.m=xt;exports.n=T;exports.o=Tt;exports.p=Ct;exports.q=G;exports.r=Qt;exports.s=X;exports.t=fe;exports.u=ue;exports.v=be;exports.w=he;exports.x=we;exports.y=Oe;
|
package/dist/chunk-BVPMMWDL.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');var p=(s,t={})=>{if(chunkCN53M4QZ_cjs.h(s))return;let n=chunkCN53M4QZ_cjs.F({value:s,options:t,requiredValidType:"string"});throw new TypeError(n)};exports.a=p;
|
package/dist/chunk-CEFYHEM4.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkPUQXRLZH_cjs=require('./chunk-PUQXRLZH.cjs'),chunkU5Y2FXMN_cjs=require('./chunk-U5Y2FXMN.cjs'),chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');var v=(r=1e3,e)=>{if(!chunkPUQXRLZH_cjs.a(r)||r<=0)throw new TypeError(`First parameter \`milliSeconds\` must be a number, non-zero, non-NaN, non-negative, and integer-number, but received: \`${chunkCN53M4QZ_cjs.E(r)}\`, with value: \`${chunkU5Y2FXMN_cjs.c(r)}\`.`);if(chunkCN53M4QZ_cjs.g(e)||e&&!(e instanceof AbortSignal))throw new TypeError("Second parameter `signal` must be an instance of AbortSignal if provided.");return new Promise((b,f)=>{let p=setTimeout(()=>{o(),b();},r),o=()=>{clearTimeout(p),e&&e.removeEventListener("abort",t);},t=()=>{o(),f(new DOMException("Delay aborted","AbortError"));};e&&(e.aborted?t():e.addEventListener("abort",t,{once:true}));})};exports.a=v;
|
package/dist/chunk-CN53M4QZ.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var N=e=>typeof e=="boolean";var d=e=>typeof e=="function";function D(e){return e==null}function T(e){return Array.isArray(e)}function w(e){return typeof e=="object"&&!D(e)&&!T(e)}function u(e){if(!w(e))return false;let r=Object.getPrototypeOf(e);return r===Object.prototype||r===null}var j=e=>e===null;var x=e=>typeof e=="string";var A=(e,r={})=>{let t=u(r)&&N(r.includeNaN)?r.includeNaN:false,o=typeof e=="number";return t?o:o&&!Number.isNaN(e)};var E=e=>typeof e=="symbol";var K=e=>typeof e>"u";function k(e){return T(e)||w(e)}var v=(e,r={})=>{if(N(e))return;let t=C({value:e,options:r,requiredValidType:"boolean"});throw new TypeError(t)};function I(e){return typeof e=="number"?Number.isNaN(e):Object.prototype.toString.call(e)==="[object Number]"&&Number.isNaN(e.valueOf())}function U(e,r,t={}){if(!x(e)&&!k(e)&&!d(e))return false;L(t,{message:({currentType:i,validType:c})=>`Third parameter (\`options\`) must be of type \`${c}\`, but received: \`${i}\`.`});let o=t.discardUndefined===void 0?true:t.discardUndefined,n=t.discardNull===void 0?false:t.discardNull;v(o,{message:({currentType:i,validType:c})=>`Parameter \`discardUndefined\` property of the \`options\` (third parameter) must be of type \`${c}\`, but received: \`${i}\`.`}),v(n,{message:({currentType:i,validType:c})=>`Parameter \`discardNull\` property of the \`options\` (third parameter) must be of type \`${c}\`, but received: \`${i}\`.`});let s=[];if(x(r)&&r.trim().length>0||A(r,{includeNaN:true}))(A(r,{includeNaN:true})?String(r):r).split(".").forEach(c=>{let S=c.match(/^\[(\d+)\]$/),P=c.match(/^Symbol\((.+)\)$/);S?s.push(Number(S[1])):P?s.push(Symbol.for(P[1])):I(Number(c))?s.push(c):s.push(Number(c));});else if(E(r))s.push(r);else return false;let a=x(e)&&e.trim().length>0?Object(e):e;for(let i of s)if(x(i)&&i.trim().length>0||A(i,{includeNaN:true})){if(j(a)||!Object.prototype.hasOwnProperty.call(a,i))return false;a=a[i];}else if(E(i)){if(j(a)||typeof a!="object"&&!d(a))return false;let S=Object.getOwnPropertySymbols(a).find(P=>P===i||P.description===i.description);if(!S)return false;a=a[S];}else return false;return !(o&&K(a)||n&&j(a))}var l=(e,r={})=>x(e)?(u(r)||(r={}),((U(r,"trim")?r.trim:true)?e.trim():e).length>0):false;function H(e){return Object.prototype.toString.call(e)==="[object Set]"||e instanceof Set}function m(e){return Array.isArray(e)&&e.length>0}var Be=(e,r={lowerCaseNextRest:true,trim:false})=>{if(!l(e))return "";u(r)||(r={});let t=r.lowerCaseNextRest!==false;return r.trim===true&&(e=e.trim()),e[0].toUpperCase()+(t?e.slice(1).toLowerCase():e.slice(1))},Ve=(e,r={collapseSpaces:false,trim:false})=>{if(!l(e))return "";let t=e;u(r)||(r={});let o=r.collapseSpaces===true;if(r.trim===true&&(t=t.trim()),o){let s=t.match(/^\s*/)?.[0]??"",a=t.match(/\s*$/)?.[0]??"";t=t.trim().replace(/\s+/g," "),t=`${s}${t}${a}`;}return t.toLowerCase().split(" ").map(s=>s.charAt(0).toUpperCase()+s.slice(1)).join(" ")};var g=e=>{let r="";return T(e)?r=e.map(t=>l(t)?t.trim():"").filter(t=>t.length).join("-"):l(e)&&(r=e.trim()),r.split(/[^\p{L}\p{N}]+/u).filter(Boolean)};var O=e=>{let r=new Set([]),t=o=>o.trim().split(/[^\p{L}\p{N}]+/u).filter(Boolean).join("");if(l(e)){let o=t(e);o&&r.add(o);}return m(e)&&e.forEach(o=>{if(l(o)){let n=t(o);n&&r.add(n);}}),H(e)&&e.forEach(o=>{if(l(o)){let n=t(o);n&&r.add(n);}}),r},F=(e,r)=>{if(!m(e)&&!l(e))return "";let t=g(e),o=O(r);return t.map((n,s)=>o.has(n)?n:s===0?n.toLowerCase():n.charAt(0).toUpperCase()+n.slice(1).toLowerCase()).join("")},M=(e,r)=>{if(!m(e)&&!l(e))return "";let t=g(e),o=O(r);return t.map(n=>o.has(n)?n:n.charAt(0).toUpperCase()+n.slice(1).toLowerCase()).join(" ")},B=(e,r)=>{if(!m(e)&&!l(e))return "";let t=g(e),o=O(r);return t.map(n=>o.has(n)?n:n.charAt(0).toUpperCase()+n.slice(1).toLowerCase()).join("")},V=(e,r)=>{if(!m(e)&&!l(e))return "";let t=g(e),o=O(r);return t.map(n=>o.has(n)?n:n.toLowerCase()).join(" ")},h=(e,r)=>{if(!m(e)&&!l(e))return "";let t=g(e),o=O(r);return t.map(n=>o.has(n)?n:n.toLowerCase()).join("-")},_=(e,r)=>{if(!m(e)&&!l(e))return "";let t=g(e),o=O(r);return t.map(n=>o.has(n)?n:n.toLowerCase()).join("_")},W=(e,r)=>{if(!m(e)&&!l(e))return "";let t=g(e),o=O(r);return t.map(n=>o.has(n)?n:n.toLowerCase()).join(".")},$=(e,r)=>{if(!m(e)&&!l(e))return "";let t=g(e),o=O(r);return t.map(s=>o.has(s)?s:s.toLowerCase()).join("-").replace(/^-+|-+$/g,"")};var G=e=>typeof Buffer<"u"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(e);var z=e=>Object.prototype.toString.call(e)==="[object Error]"||e instanceof Error;var b=Object.freeze(["URI","URL","HTTP","HTTPS","HTML","XML","CSS","JS","JSON","SVG","DOM","UTC","XHR","RTC","ICE","TLS","TCP","UDP","IDB","ID"]),R={string:"String",number:"Number",boolean:"Boolean",bigint:"Big Int",symbol:"Symbol",undefined:"Undefined",null:"Null",regexp:"Reg Exp",reflect:"Reflect",proxy:"Proxy",atomics:"Atomics",object:"Object",array:"Array",arguments:"Arguments",function:"Function",asyncfunction:"Async Function",generatorfunction:"Generator Function",asyncgeneratorfunction:"Async Generator Function",generator:"Generator",promise:"Promise",evalerror:"Eval Error",rangeerror:"Range Error",referenceerror:"Reference Error",syntaxerror:"Syntax Error",typeerror:"Type Error",urierror:"URI Error",aggregateerror:"Aggregate Error",error:"Error",int8array:"Int 8 Array",uint8array:"Uint 8 Array",uint8clampedarray:"Uint 8 Clamped Array",int16array:"Int 16 Array",uint16array:"Uint 16 Array",int32array:"Int 32 Array",uint32array:"Uint 32 Array",float32array:"Float 32 Array",float64array:"Float 64 Array",bigint64array:"Big Int 64 Array",biguint64array:"Big Uint 64 Array",arraybuffer:"Array Buffer",sharedarraybuffer:"Shared Array Buffer",dataview:"Data View",arraybufferview:"Array Buffer View",map:"Map",set:"Set",weakmap:"Weak Map",weakset:"Weak Set",mapiterator:"Map Iterator",setiterator:"Set Iterator",arrayiterator:"Array Iterator",stringiterator:"String Iterator",readablestream:"Readable Stream",writablestream:"Writable Stream",transformstream:"Transform Stream",readablestreamdefaultreader:"Readable Stream Default Reader",writablestreamdefaultwriter:"Writable Stream Default Writer",readablestreamdefaultcontroller:"Readable Stream Default Controller",transformstreamdefaultcontroller:"Transform Stream Default Controller",abortcontroller:"Abort Controller",abortsignal:"Abort Signal",fetch:"fetch",request:"Request",response:"Response",headers:"Headers",formdata:"FormData",blob:"Blob",file:"File",filelist:"FileList",filereader:"FileReader",intl:"Intl",collator:"Intl. Collator",datetimeformat:"Intl. Date Time Format",listformat:"Intl. List Format",numberformat:"Intl. Number Format",pluralrules:"Intl. Plural Rules",relativetimeformat:"Intl. Relative Time Format",segmenter:"Intl. Segmenter",locale:"Intl. Locale",displaynames:"Intl. Display Names",finalizationregistry:"Finalization Registry",weakref:"Weak Ref",structuredclone:"structured Clone",urlpattern:"URL Pattern",performance:"Performance",performanceobserver:"Performance Observer",performanceentry:"Performance Entry",performancemark:"Performance Mark",performancemeasure:"Performance Measure",webassembly:"Web Assembly",wasmmodule:"WebAssembly .Module",wasminstance:"WebAssembly. Instance",wasmmemory:"WebAssembly. Memory",wasmtable:"WebAssembly. Table",buffer:"Buffer",process:"Process",eventemitter:"Event Emitter",stream:"Stream",fs:"fs",path:"path",url:"URL",urlsearchparams:"URL Search Params",node:"Node",element:"Element",htmlelement:"HTML Element",svgelement:"SVG Element",document:"Document",documentfragment:"Document Fragment",shadowroot:"Shadow Root",nodelist:"Node List",htmlcollection:"HTML Collection",mutationobserver:"Mutation Observer",intersectionobserver:"Intersection Observer",resizeobserver:"Resize Observer"};var f=e=>e.replace(/[\s_\-]+/g,"").toLowerCase(),y=Object.entries(R).reduce((e,[r,t])=>(e[f(r)]=t,e),{});function X(e){if(typeof e!="object"||e===null)return false;let r=Object.prototype.toString.call(e);if(["[object Array]","[object Date]","[object RegExp]","[object Map]","[object Set]","[object WeakMap]","[object WeakSet]","[object Function]","[object Error]","[object Promise]","[object Generator]","[object GeneratorFunction]","[object AsyncFunction]"].includes(r))return false;try{return Reflect.defineProperty(e,"__proxy_detect__",{configurable:!0,value:1}),Reflect.deleteProperty(e,"__proxy_detect__"),!1}catch{return true}}var p=(e,r)=>r==="toPascalCaseSpace"?M(e,b):r==="slugify"?$(e,b):r==="toCamelCase"?F(e,b):r==="toDotCase"?W(e,b):r==="toKebabCase"?h(e,b):r==="toPascalCase"?B(e,b):r==="toSnakeCase"?_(e,b):V(e,b),q=(e,r={formatCase:"toLowerCase"})=>{u(r)||(r={});let t=r.formatCase;if(j(e))return p(y[f("null")]??"Null",t);if(I(e))return "NaN";if(e===1/0)return "Infinity";if(e===-1/0)return "-Infinity";if(e instanceof Number)return p("Number Constructor",t);if(e instanceof String)return p("String Constructor",t);if(e instanceof Boolean)return p("Boolean Constructor",t);let o=typeof e;if(!k(e)&&!d(e))return p(y[f(o)]??o,t);if(G(e))return p(y[f("buffer")]??"Buffer",t);if(X(e))return p(y[f("proxy")]??"Proxy",t);if(w(e)&&d(e?.next)&&d(e?.throw))return p(y[f("generator")]??"Generator",t);if(z(e)){let i=e.constructor?.name??"Error";return p(y[f(i)]??y[f(i.replace(/\s+/g,""))]??i,t)}if(j(Object.getPrototypeOf(e)))return p(y[f("object")]??"Object",t);let n=Object.prototype.toString.call(e).slice(8,-1)||"Object",s=y[f(n)];if(s)return p(s,t);let a=e?.constructor?.name;return p(a&&a!=="Object"?y[f(a)]??a:n,t)};function C({value:e,options:r,requiredValidType:t}){let{message:o,formatCase:n}=u(r)?r:{},s=h(t),a=q(e,{formatCase:n}),i={currentType:a,validType:s},c=`Parameter input (\`value\`) must be of type \`${s}\`, but received: \`${a}\`.`;return d(o)?l(o(i))?o(i).trim():c:l(o)?o.trim():c}function L(e,r={}){if(u(e))return;let t=C({value:e,options:r,requiredValidType:"plain object"});throw new TypeError(t)}exports.A=W;exports.B=$;exports.C=G;exports.D=z;exports.E=q;exports.F=C;exports.G=v;exports.a=N;exports.b=d;exports.c=D;exports.d=T;exports.e=w;exports.f=u;exports.g=j;exports.h=x;exports.i=A;exports.j=E;exports.k=K;exports.l=k;exports.m=L;exports.n=I;exports.o=U;exports.p=l;exports.q=H;exports.r=m;exports.s=Be;exports.t=Ve;exports.u=F;exports.v=M;exports.w=B;exports.x=V;exports.y=h;exports.z=_;
|
package/dist/chunk-D47MHBSD.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkUUPQI6ND_cjs=require('./chunk-UUPQI6ND.cjs');var y=(t,o={})=>!chunkUUPQI6ND_cjs.a(t,o);function p(t){return t!=null&&typeof t=="object"&&e.has(Object.prototype.toString.call(t))}var e=new Set(["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object BigInt64Array]","[object BigUint64Array]"]);exports.a=y;exports.b=p;
|
package/dist/chunk-DGH75GJD.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-ZYAML74V.js';var y=(t,o={})=>!a(t,o);function p(t){return t!=null&&typeof t=="object"&&e.has(Object.prototype.toString.call(t))}var e=new Set(["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object BigInt64Array]","[object BigUint64Array]"]);export{y as a,p as b};
|
package/dist/chunk-E5NUI7PN.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-ELDDNERR.js';import {c}from'./chunk-MNGGDB2G.js';import {E,g}from'./chunk-XCFIOTCV.js';var v=(r=1e3,e)=>{if(!a(r)||r<=0)throw new TypeError(`First parameter \`milliSeconds\` must be a number, non-zero, non-NaN, non-negative, and integer-number, but received: \`${E(r)}\`, with value: \`${c(r)}\`.`);if(g(e)||e&&!(e instanceof AbortSignal))throw new TypeError("Second parameter `signal` must be an instance of AbortSignal if provided.");return new Promise((b,f)=>{let p=setTimeout(()=>{o(),b();},r),o=()=>{clearTimeout(p),e&&e.removeEventListener("abort",t);},t=()=>{o(),f(new DOMException("Delay aborted","AbortError"));};e&&(e.aborted?t():e.addEventListener("abort",t,{once:true}));})};export{v as a};
|
package/dist/chunk-FDITZ5C6.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');function e(i){return chunkCN53M4QZ_cjs.i(i)&&Number.isFinite(i)}exports.a=e;
|
package/dist/chunk-FSSV24W7.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkGRVZXQXL_cjs=require('./chunk-GRVZXQXL.cjs'),chunkKCQDDZJE_cjs=require('./chunk-KCQDDZJE.cjs'),chunk62HX5Z45_cjs=require('./chunk-62HX5Z45.cjs'),chunkU5Y2FXMN_cjs=require('./chunk-U5Y2FXMN.cjs'),chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');var c=i=>{chunk62HX5Z45_cjs.a(i,{message:({currentType:t,validType:n})=>`First parameter (\`values\`) must be of type \`${n}\` (array literal or instance), but received: \`${t}\`.`});let r=[];return i.forEach((t,n)=>{for(let s=n+1;s<i.length;s++)if(chunkKCQDDZJE_cjs.d(t,i[s])){r.some(d=>chunkKCQDDZJE_cjs.d(d,t))||r.push(t);break}}),r};var D=(i,r)=>{if(!chunkCN53M4QZ_cjs.f(i))return {};chunk62HX5Z45_cjs.a(r,{message:({currentType:n,validType:s})=>`Second parameter (\`keysToOmit\`) must be of type \`${s}\` (array literal or instance), but received: \`${n}\`.`});let t=c(r);if(t.length>0)throw new Error(`Function "omitKeys" Error: Duplicate keys detected - \`${t}\``);return Object.fromEntries(Object.entries(i).filter(([n])=>!r.includes(n)))};var G=(i,r)=>{if(!chunkCN53M4QZ_cjs.f(i))return {};chunk62HX5Z45_cjs.a(r,{message:({currentType:e,validType:a})=>`Second parameter (\`keysToOmit\`) must be of type \`${a}\` (array literal or instance), but received: \`${e}\`.`});let t=c(r);if(chunkCN53M4QZ_cjs.r(t))throw new Error(`Function "omitKeysDeep" Error: Duplicate keys detected - \`${chunkU5Y2FXMN_cjs.c(t)}\`.`);let n=(e,a)=>{if(!chunkCN53M4QZ_cjs.l(e))return e;let[o,...l]=a;if(chunkKCQDDZJE_cjs.e(l))if(chunkCN53M4QZ_cjs.d(e)){let f=parseInt(o);!chunkCN53M4QZ_cjs.n(f)&&f in e&&e.splice(f,1);}else delete e[o];else {let f=e[o];chunkCN53M4QZ_cjs.l(f)&&(e[o]=n(f,l));}return e},s=e=>chunkCN53M4QZ_cjs.d(e)?e.map(s).filter(a=>!(chunkCN53M4QZ_cjs.l(a)&&Object.keys(a).length===0)):chunkCN53M4QZ_cjs.l(e)?Object.fromEntries(Object.entries(e).map(([o,l])=>[o,s(l)]).filter(([,o])=>!chunkCN53M4QZ_cjs.k(o)&&!(chunkCN53M4QZ_cjs.l(o)&&Object.keys(o).length===0))):e,d=chunkGRVZXQXL_cjs.d(chunkU5Y2FXMN_cjs.c(i));for(let e of r){let a=e.split(".");n(d,a);}return s(d)};var W=(i,r)=>{chunk62HX5Z45_cjs.a(r,{message:({currentType:n,validType:s})=>`Second parameter (\`arrayExcept\`) must be of type \`${s}\` (array literal or instance), but received: \`${n}\`.`});let t=c(r);if(chunkCN53M4QZ_cjs.r(t))throw new Error(`Function omitProps error, cause duplicate of arrayExcept: ${chunkU5Y2FXMN_cjs.c(t)}.`);if(i){let n=Object.entries(i).filter(([s])=>!r.includes(s));return Object.fromEntries(n)}};exports.a=c;exports.b=D;exports.c=G;exports.d=W;
|
package/dist/chunk-GCGU2WB7.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {d as d$1}from'./chunk-PVJF2JHM.js';import {d,e}from'./chunk-W5EDKJK3.js';import {a}from'./chunk-QFCGBBSY.js';import {c as c$1}from'./chunk-MNGGDB2G.js';import {f,r,l,d as d$2,n,k}from'./chunk-XCFIOTCV.js';var c=i=>{a(i,{message:({currentType:t,validType:n})=>`First parameter (\`values\`) must be of type \`${n}\` (array literal or instance), but received: \`${t}\`.`});let r=[];return i.forEach((t,n)=>{for(let s=n+1;s<i.length;s++)if(d(t,i[s])){r.some(d$1=>d(d$1,t))||r.push(t);break}}),r};var D=(i,r)=>{if(!f(i))return {};a(r,{message:({currentType:n,validType:s})=>`Second parameter (\`keysToOmit\`) must be of type \`${s}\` (array literal or instance), but received: \`${n}\`.`});let t=c(r);if(t.length>0)throw new Error(`Function "omitKeys" Error: Duplicate keys detected - \`${t}\``);return Object.fromEntries(Object.entries(i).filter(([n])=>!r.includes(n)))};var G=(i,r$1)=>{if(!f(i))return {};a(r$1,{message:({currentType:e,validType:a})=>`Second parameter (\`keysToOmit\`) must be of type \`${a}\` (array literal or instance), but received: \`${e}\`.`});let t=c(r$1);if(r(t))throw new Error(`Function "omitKeysDeep" Error: Duplicate keys detected - \`${c$1(t)}\`.`);let n$1=(e$1,a)=>{if(!l(e$1))return e$1;let[o,...l$1]=a;if(e(l$1))if(d$2(e$1)){let f=parseInt(o);!n(f)&&f in e$1&&e$1.splice(f,1);}else delete e$1[o];else {let f=e$1[o];l(f)&&(e$1[o]=n$1(f,l$1));}return e$1},s=e=>d$2(e)?e.map(s).filter(a=>!(l(a)&&Object.keys(a).length===0)):l(e)?Object.fromEntries(Object.entries(e).map(([o,l])=>[o,s(l)]).filter(([,o])=>!k(o)&&!(l(o)&&Object.keys(o).length===0))):e,d=d$1(c$1(i));for(let e of r$1){let a=e.split(".");n$1(d,a);}return s(d)};var W=(i,r$1)=>{a(r$1,{message:({currentType:n,validType:s})=>`Second parameter (\`arrayExcept\`) must be of type \`${s}\` (array literal or instance), but received: \`${n}\`.`});let t=c(r$1);if(r(t))throw new Error(`Function omitProps error, cause duplicate of arrayExcept: ${c$1(t)}.`);if(i){let n=Object.entries(i).filter(([s])=>!r$1.includes(s));return Object.fromEntries(n)}};export{c as a,D as b,G as c,W as d};
|
package/dist/chunk-GECI2YBP.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-NIMNTEGV.js';import {p as p$1,f,h}from'./chunk-XCFIOTCV.js';var a=(r,n={withTrim:true,trimOnly:false})=>{if(!p$1(r))return "";f(n)||(n={});let{trimOnly:t=false,withTrim:l=true}=n;return t?r.trim():(l&&(r=r.trim()),r.replace(/\s+/g," "))},c=r=>p$1(r)?r.trim():"",p=(r,n={trimOnly:false})=>{if(!p$1(r))return "";f(n)||(n={});let{trimOnly:t=false}=n;return t?r.trim():r.replace(/\s+/g,"")},u=r=>h(r)?a$1(r)?"":r.replace(/<\/?[a-zA-Z][^<>]*\/?>/g," ").trim().replace(/\s+/g," ").trim():void 0;export{a,c as b,p as c,u as d};
|
package/dist/chunk-GQE4OVHC.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkSW6HYEW7_cjs=require('./chunk-SW6HYEW7.cjs'),chunkBVPMMWDL_cjs=require('./chunk-BVPMMWDL.cjs'),chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');var b=(e="on_processing")=>{if(chunkSW6HYEW7_cjs.a())return;chunkBVPMMWDL_cjs.a(e,{message({validType:r,currentType:i}){return `First parameter \`className\` must be of type \`${r}\`, but received: \`${i}\`.`}});let{documentElement:t}=document;t&&!t.classList.contains(e)&&t.classList.add(e);},h=(e="on_processing")=>{if(chunkSW6HYEW7_cjs.a())return;chunkBVPMMWDL_cjs.a(e,{message({validType:r,currentType:i}){return `First parameter \`className\` must be of type \`${r}\`, but received: \`${i}\`.`}});let{documentElement:t}=document;t&&t.classList.contains(e)&&t.classList.remove(e);},T=()=>{if(chunkSW6HYEW7_cjs.a())return;let e=document.activeElement;e instanceof HTMLElement&&e.blur();},g=e=>{if(chunkSW6HYEW7_cjs.a())return;chunkCN53M4QZ_cjs.f(e)||(e={});let t=chunkCN53M4QZ_cjs.o(e,"behavior")&&chunkCN53M4QZ_cjs.p(e.behavior)&&["auto","instant","smooth"].includes(e.behavior.trim())?e.behavior:"smooth",r=chunkCN53M4QZ_cjs.o(e,"timeout")&&chunkCN53M4QZ_cjs.i(e.timeout)&&e.timeout>=1?e.timeout:1;setTimeout(()=>{window.scrollTo({top:0,left:0,behavior:t});},r);};exports.a=b;exports.b=h;exports.c=T;exports.d=g;
|
package/dist/chunk-GRVZXQXL.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkKCQDDZJE_cjs=require('./chunk-KCQDDZJE.cjs'),chunkRV2VULM7_cjs=require('./chunk-RV2VULM7.cjs'),chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');var M=e=>{if(!chunkCN53M4QZ_cjs.h(e)&&!chunkCN53M4QZ_cjs.i(e))return 0;let a=String(e).trim().replace(/[^0-9]/g,"");return Number(a)||0};var j=(e={})=>{chunkCN53M4QZ_cjs.m(e,{message:({currentType:A,validType:U})=>`Second parameter (\`options\`) must be of type \`${U}\`, but received: \`${A}\`.`});let a=chunkCN53M4QZ_cjs.o(e,"convertBooleans")?e.convertBooleans:false,r=chunkCN53M4QZ_cjs.o(e,"convertDates")?e.convertDates:false,n=chunkCN53M4QZ_cjs.o(e,"convertNumbers")?e.convertNumbers:false,t=chunkCN53M4QZ_cjs.o(e,"loggingOnFail")?e.loggingOnFail:false,s=chunkCN53M4QZ_cjs.o(e,"removeEmptyArrays")?e.removeEmptyArrays:false,m=chunkCN53M4QZ_cjs.o(e,"removeEmptyObjects")?e.removeEmptyObjects:false,o=chunkCN53M4QZ_cjs.o(e,"removeNulls")?e.removeNulls:false,g=chunkCN53M4QZ_cjs.o(e,"removeUndefined")?e.removeUndefined:false,N=chunkCN53M4QZ_cjs.o(e,"strictMode")?e.strictMode:false,E=chunkCN53M4QZ_cjs.o(e,"checkSymbols")?e.checkSymbols:false,P=chunkCN53M4QZ_cjs.o(e,"convertNaN")?e.convertNaN:false,v=chunkCN53M4QZ_cjs.o(e,"customDateFormats")?e.customDateFormats:[],b=chunkCN53M4QZ_cjs.o(e,"onError")?e.onError:chunkRV2VULM7_cjs.a;if(!(chunkCN53M4QZ_cjs.a(a)&&chunkCN53M4QZ_cjs.a(r)&&chunkCN53M4QZ_cjs.a(n)&&chunkCN53M4QZ_cjs.a(P)&&chunkCN53M4QZ_cjs.a(E)&&chunkCN53M4QZ_cjs.a(t)&&chunkCN53M4QZ_cjs.a(s)&&chunkCN53M4QZ_cjs.a(m)&&chunkCN53M4QZ_cjs.a(o)&&chunkCN53M4QZ_cjs.a(g)&&chunkCN53M4QZ_cjs.a(N)&&chunkCN53M4QZ_cjs.d(v)&&chunkCN53M4QZ_cjs.b(b)))throw new TypeError(`Invalid \`options\` parameter (second argument): \`convertBooleans\`, \`convertDates\`, \`convertNumbers\`, \`loggingOnFail\`, \`removeEmptyArrays\`, \`removeEmptyObjects\`, \`removeNulls\`, \`removeUndefined\`, \`strictMode\` expected to be a \`boolean\` type, \`customDateFormats\` expected to be a \`array\` type and \`onError\` expected to be a \`void function\` type. But received: ['convertBooleans': \`${chunkCN53M4QZ_cjs.E(a)}\`, 'convertDates': \`${chunkCN53M4QZ_cjs.E(r)}\`, 'convertNumbers': \`${chunkCN53M4QZ_cjs.E(n)}\`, 'loggingOnFail': \`${chunkCN53M4QZ_cjs.E(t)}\`, 'removeEmptyArrays': \`${chunkCN53M4QZ_cjs.E(s)}\`, 'removeEmptyObjects': \`${chunkCN53M4QZ_cjs.E(m)}\`, 'removeNulls': \`${chunkCN53M4QZ_cjs.E(o)}\`, 'removeUndefined': \`${chunkCN53M4QZ_cjs.E(g)}\`, 'strictMode': \`${chunkCN53M4QZ_cjs.E(N)}\`, 'customDateFormats': \`${chunkCN53M4QZ_cjs.E(v)}\`, 'onError': \`${chunkCN53M4QZ_cjs.E(b)}\`].`);return {convertBooleans:a,convertDates:r,convertNumbers:n,convertNaN:P,loggingOnFail:t,removeEmptyArrays:s,removeEmptyObjects:m,removeNulls:o,removeUndefined:g,strictMode:N,customDateFormats:v,onError:b,checkSymbols:E}},O=(e,a={})=>{let r=j(a);if(chunkCN53M4QZ_cjs.g(e))return r.removeNulls?void 0:null;if(chunkCN53M4QZ_cjs.k(e))return r.removeUndefined,void 0;if(chunkCN53M4QZ_cjs.h(e)){let n=e.trim();if(r.convertNaN&&n==="NaN")return NaN;if(r.convertNumbers&&!chunkCN53M4QZ_cjs.n(Number(n)))return Number(n);if(r.convertBooleans){if(n==="true")return true;if(n==="false")return false}if(r.convertDates){if(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/.test(n))return new Date(n);if(r.customDateFormats?.length)for(let t of r.customDateFormats){let s=B(n,t);if(s)return s}}return r.strictMode?void 0:n}if(chunkCN53M4QZ_cjs.d(e)){let n=e.map(t=>O(t,r)).filter(t=>!chunkCN53M4QZ_cjs.k(t));return r.removeEmptyArrays&&chunkKCQDDZJE_cjs.e(n)?void 0:n}if(chunkCN53M4QZ_cjs.e(e)){let n={};for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let s=O(e[t],r);chunkCN53M4QZ_cjs.k(s)||(n[t]=s);}return r.removeEmptyObjects&&chunkKCQDDZJE_cjs.f(n,{checkSymbols:r.checkSymbols})?void 0:n}return r.strictMode?void 0:e},B=(e,a)=>{if(!chunkCN53M4QZ_cjs.h(e)||!chunkCN53M4QZ_cjs.h(a))throw new TypeError(`Parameter \`dateString\` and \`format\` must be of type \`string\`, but received: "['dateString': \`${chunkCN53M4QZ_cjs.E(e)}\`, 'format': \`${chunkCN53M4QZ_cjs.E(a)}\`]".`);let r=e.split(/[-/]/).map(Number);if(r.length!==3||r.some(chunkCN53M4QZ_cjs.n))return null;let n,t,s;if(a==="DD/MM/YYYY")[n,t,s]=r;else if(a==="MM/DD/YYYY")[t,n,s]=r;else return null;t-=1;let m=new Date(s,t,n);return m.getFullYear()!==s||m.getMonth()!==t||m.getDate()!==n?null:m};function se(e,a={}){if(chunkCN53M4QZ_cjs.g(e))return null;let r=j(a);if(r.convertNaN&&(chunkCN53M4QZ_cjs.n(e)||chunkCN53M4QZ_cjs.p(e)&&e==="NaN"))return NaN;if(r.convertNumbers&&!chunkCN53M4QZ_cjs.n(Number(e))&&chunkCN53M4QZ_cjs.i(M(e)))return Number(e);if(chunkCN53M4QZ_cjs.h(e))try{let n=I(e);r.removeUndefined?n=n.replace(/,\s*"[^"]*"\s*:\s*undefined(?=\s*[},])/g,"").replace(/"[^"]*"\s*:\s*undefined\s*(,)?/g,""):n=n.replace(/:\s*undefined(?=\s*[,}])/g,":null"),r.convertNaN?n=n.replace(/:\s*NaN(?=\s*[,}])/g,':"NaN"'):n=n.replace(/:\s*NaN(?=\s*[,}])/g,':"NaN"').replace(/,\s*"[^"]*"\s*:\s*NaN(?=\s*[},])/g,"").replace(/"[^"]*"\s*:\s*NaN\s*(,)?/g,""),n=n.replace(/,(\s*[}\]])/g,"$1");let t=JSON.parse(n);return O(t,r)}catch(n){r.loggingOnFail&&console.error("Failed to parsing at `safeJsonParse`:",n),r.onError(chunkCN53M4QZ_cjs.D(n)?new Error(n.message.replace(/^JSON\.parse:/,"Failed to parsing")):new Error(String(n)));return}}function I(e){let a=new Set(["\\",'"',"/","b","f","n","r","t","u"]),r="",n=false,t=false,s=false;for(let m=0;m<e.length;m++){let o=e[m];if(s){n?o==="'"?r+="'":a.has(o)?o==="\\"?r+="\\\\":o==='"'?r+='\\"':r+="\\"+o:r+="\\\\"+o:t?o==='"'?r+='\\"':a.has(o)?r+="\\"+o:r+="\\\\"+o:r+="\\"+o,s=false;continue}if(o==="\\"){s=true;continue}if(!n&&!t){if(o==="'"){r+='"',n=true;continue}if(o==='"'){r+='"',t=true;continue}}else if(n){if(o==="'"){r+='"',n=false;continue}}else if(t&&o==='"'){r+='"',t=false;continue}r+=o;}return r}exports.a=M;exports.b=O;exports.c=B;exports.d=se;
|
package/dist/chunk-I4AVNHPA.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunk7YWAQOA4_cjs=require('./chunk-7YWAQOA4.cjs'),chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');var I=(r,s={})=>{if(chunk7YWAQOA4_cjs.a(r))return;let o=chunkCN53M4QZ_cjs.F({value:r,options:s,requiredValidType:"big int"});throw new TypeError(o)};var O=(r,s={})=>{let o=chunkCN53M4QZ_cjs.o(s,"includeNaN")?s.includeNaN:void 0;if(chunkCN53M4QZ_cjs.i(r,{includeNaN:o}))return;let p=chunkCN53M4QZ_cjs.F({value:r,options:s,requiredValidType:"number"});throw new TypeError(p)};exports.a=I;exports.b=O;
|
package/dist/chunk-JFRL7NKU.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import {c as c$1}from'./chunk-GECI2YBP.js';import {a as a$2}from'./chunk-NIMNTEGV.js';import {a}from'./chunk-ELDDNERR.js';import {c}from'./chunk-MNGGDB2G.js';import {h as h$1,d,E,g,f,a as a$1,r,p,D,m,o}from'./chunk-XCFIOTCV.js';var h=class r extends Error{constructor(t,o){super(t);this.originalError=o;this.name="NormalizePathnameError",Error.captureStackTrace&&Error.captureStackTrace(this,r);}};var G=(r$1,e=null,t={})=>{let o=[];!h$1(r$1)&&!d(r$1)&&o.push(`First parameter \`url\` must be of type \`string\` or \`array-string\`, but received: \`${E(r$1)}\`.`),!h$1(e)&&!d(e)&&!g(e)&&o.push(`Second parameter \`base\` must be of type \`string\`, \`array-string\` or \`null\`, but received: \`${E(e)}\`.`),f(t)||o.push(`Second parameter (\`options\`) must be of type \`plain-object\`, but received: \`${E(t)}\`.`);let{levels:m=1,removeDuplicates:c$1=true}=t;if((!a(m)||a(m)&&m<0)&&o.push(`Parameter \`levels\` property of the \`options\` (second parameter) must be of type \`integer-number\` and minimum is \`0\`, but received: \`${E(m)}\`, with value: \`${c(m)}\`.`),a$1(c$1)||o.push(`Parameter \`removeDuplicates\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: \`${E(c$1)}\`.`),r(o))throw new TypeError(`Invalid parameter(s) in getPrefixPathname:
|
|
2
|
-
- ${o.join(`
|
|
3
|
-
- `)}`);function b(i){return `/${s(i).split("/").filter(Boolean).slice(0,m).join("/")}`}function w(i){if(e){if(i=s(i),d(e)){for(let a of e)if(i.startsWith(s(a)))return b(i)}else if(p(e)&&i.startsWith(s(e)))return b(i);return null}return b(i)}if(d(r$1)){let i=r$1.map(w).filter(z=>!g(z)),a=c$1?[...new Set(i)]:i;return a.length===1?a[0]:a}return w(r$1)},H=(r,e="/")=>{if(!p(e))throw new TypeError(`Second parameter (\`defaultValue\`) must be of type \`string\` and not empty string, but received: \`${E(e)}\`, with value: \`${c(e)}\`.`);if(d(r)){if(!r.every(t=>h$1(t)))throw new TypeError(`First parameter (\`result\`) must be of type \`string\` or \`array of string\`, but received: \`${E(r)}\`, with value: \`${c(r)}\`.`);for(let t of r){let o=s(t);if(o!=="/")return o}return s(e)}if(h$1(r)){let t=s(r);return t!=="/"?t:s(e)}if(!g(r))throw new TypeError(`First parameter \`result\` must be of type \`string\`, \`array-string\` or \`null\`, but received: \`${E(r)}\`.`);return s(e)},s=(r,e="/")=>{if(!p(e))throw new TypeError(`Second parameter (\`defaultPath\`) must be of type \`string\` and not empty string, but received: \`${E(e)}\`, with value: \`${c(e)}\`.`);if(!p(r))return e;try{if(r=c$1(r,{trimOnly:!0}),r=r.replace(/\s+/g,""),r.startsWith("http://")||r.startsWith("https://")){let t=new URL(r);return `${t.pathname}${t.search}${t.hash}`.replace(/^\/+/,"/")}return "/"+r.replace(/^\/+/,"").replace(/\/{2,}/g,"/")}catch(t){let o=D(t)?t:new Error("Unknown error from function `normalizePathname()`.");throw new h(`Failed to normalize pathname in function \`normalizePathname()\`: ${o.message}`,o)}};var _=(r,e={})=>{if(!p(r))return "";m(e,{message:({currentType:m,validType:c})=>`Second parameter (\`options\`) must be of type \`${c}\`, but received: \`${m}\`.`});let t=o(e,"prefixColon")?e.prefixColon:false;if(!a$1(t))throw new TypeError(`Parameter \`prefixColon\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: \`${E(t)}\`.`);let o$1=r.replace(/\D+/g,"");return a$2(o$1)?"":t?`:${o$1}`:o$1};
|
|
4
|
-
export{G as a,H as b,s as c,_ as d};
|
package/dist/chunk-KCQDDZJE.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkU5Y2FXMN_cjs=require('./chunk-U5Y2FXMN.cjs'),chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');var b=r=>r instanceof RegExp;function g(r){return r instanceof ArrayBuffer}function c(r,n,s,i=new WeakMap){if(r===n||r!==r&&n!==n)return true;if(!chunkCN53M4QZ_cjs.l(r)||!chunkCN53M4QZ_cjs.l(n))return false;if(i.get(r)===n)return true;i.set(r,n);let w=(t,f,e,B,K)=>{if(s){let l=s(t,f,e,B,K,i);if(!chunkCN53M4QZ_cjs.k(l))return l}return c(t,f,s,i)};if(chunkU5Y2FXMN_cjs.b(r)&&chunkU5Y2FXMN_cjs.b(n))return r.getTime()===n.getTime();if(b(r)&&b(n))return r.source===n.source&&r.flags===n.flags;if(chunkCN53M4QZ_cjs.D(r)&&chunkCN53M4QZ_cjs.D(n))return r.name===n.name&&r.message===n.message;if(ArrayBuffer.isView(r)&&ArrayBuffer.isView(n)){let t=new Uint8Array(r.buffer,r.byteOffset,r.byteLength),f=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);if(t.length!==f.length)return false;for(let e=0;e<t.length;e++)if(t[e]!==f[e])return false;return true}if(g(r)&&g(n)){if(r.byteLength!==n.byteLength)return false;let t=new Uint8Array(r),f=new Uint8Array(n);for(let e=0;e<t.length;e++)if(t[e]!==f[e])return false;return true}if(chunkU5Y2FXMN_cjs.a(r)&&chunkU5Y2FXMN_cjs.a(n)){if(r.size!==n.size)return false;for(let[t,f]of r)if(!n.has(t)||!c(f,n.get(t),s,i))return false;return true}if(chunkCN53M4QZ_cjs.q(r)&&chunkCN53M4QZ_cjs.q(n)){if(r.size!==n.size)return false;for(let t of r){let f=false;for(let e of n)if(c(t,e,s,i)){f=true;break}if(!f)return false}return true}if(chunkCN53M4QZ_cjs.d(r)&&chunkCN53M4QZ_cjs.d(n)){if(r.length!==n.length)return false;for(let t=0;t<r.length;t++)if(!w(r[t],n[t],t,r,n))return false;return true}if(Object.getPrototypeOf(r)!==Object.getPrototypeOf(n))return false;let k=Reflect.ownKeys(r),x=Reflect.ownKeys(n);if(k.length!==x.length)return false;for(let t of k){let f=r[t],e=n[t];if(!w(f,e,t,r,n))return false}return true}function W(r,n){return c(r,n,void 0,new WeakMap)}var F=r=>chunkCN53M4QZ_cjs.d(r)?r.length===0:true;function X(r,n={}){if(!chunkCN53M4QZ_cjs.e(r))return true;chunkCN53M4QZ_cjs.f(n)||(n={});let s=chunkCN53M4QZ_cjs.o(n,"checkSymbols")?n.checkSymbols:false,i=Object.keys(r).length===0;return s?i&&Object.getOwnPropertySymbols(r).length===0:i}exports.a=b;exports.b=g;exports.c=c;exports.d=W;exports.e=F;exports.f=X;
|
package/dist/chunk-L54ZPSYJ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-NNM7QCNB.js';import {e}from'./chunk-WHAVUFEU.js';import {a as a$3}from'./chunk-ZYAML74V.js';import {a as a$2}from'./chunk-QFCGBBSY.js';import {b}from'./chunk-GECI2YBP.js';import {a}from'./chunk-NIMNTEGV.js';import {c}from'./chunk-MNGGDB2G.js';import {h,E,k,p,b as b$1,i,D}from'./chunk-XCFIOTCV.js';var A=(t,e$1,o)=>{if(h(t)){if(a(t))throw new TypeError("First parameter (`baseUrl`) cannot be an empty string.");t=b(t);}else if(!a$1(t))throw new TypeError(`First parameter (\`baseUrl\`) must be of type an URL instance or a \`string\` and a non-empty string, but received: \`${E(t)}\`, with current value: \`${c(t)}\`.`);if(!k(o)&&(a$2(o,{message:({currentType:r,validType:n})=>`Third parameter (\`removeParams\`) must be of type \`${n} of strings\`, but received: \`${r}\`.`}),!o.every(r=>p(r))))throw new TypeError("Third parameter (`removeParams`) must be of type `array` and contains `string` only and non-empty string.");try{if(!k(e$1)&&!b$1(e$1[Symbol.iterator]))throw new TypeError(`Second parameter (\`queryParams\`) must be iterable (like URLSearchParams.entries() or an array of [[string, string | number]...]), but received: \`${E(e$1)}\`, with value: \`${c(e$1)}\`.`);let r=new URL(t);if(!k(e$1)){let n=Object.fromEntries(e$1);if(!a$3(n)){let i$1=new URLSearchParams(r.search);for(let[s,f]of Object.entries(n)){if(!p(f)&&!i(f,{includeNaN:!0}))throw new TypeError(`Second parameter (\`queryParams\`) must be iterable (like URLSearchParams.entries() or an array of [[string, string | number]...]), but received: \`${E(e$1)}\`, with value: \`${c(e$1)}\`.`);i$1.set(s,String(f));}o?.length&&e(o).map(s=>{i$1.delete(s);}),r.search=i$1.toString();}}return o?.forEach(n=>r.searchParams.delete(n)),r}catch(r){throw D(r)?r:new Error("Failed to construct a valid URL in `constructURL()`, Error:"+r)}};var C=t=>{if(!p(t))return null;let e;try{e=decodeURIComponent(t);}catch{return null}let o=/https?:\/\/.*?(?=https?:\/\/|\s|$)/g,r=e.match(o);if(!r)return null;let n=r.map(i=>i.replace(/[.,;:!?)]*$/,"")).filter(i=>{try{let s=new URL(i);return s.protocol==="http:"||s.protocol==="https:"}catch{return false}});return n.length?n:null};export{A as a,C as b};
|
package/dist/chunk-LVKAYEZ4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {i,h,E,p}from'./chunk-XCFIOTCV.js';var g=(r,t,o)=>{if(!i(r)||!h(o)||!h(t))throw new TypeError(`First parameter \`index\` must be of type \`number\`, second parameter \`originalString\` and third parameter \`replaceTo\` must be of type \`string\`, but received: "['index': \`${E(r)}\`, 'originalString': \`${E(t)}\`, 'replaceTo': \`${E(o)}\`]".`);if(r<0||r>=t.length)throw new RangeError("First parameter (`index`) is out of range from second parameter `originalString`.");return t.slice(0,r)+o+t.slice(r+1)},u=r=>{if(!p(r))return "";r=r.replace(/\s+/g," ").trim();let t=r.split(" ");return t.length>1?t[0][0]+t[1][0].toUpperCase():r.length>1?r.substring(0,2).toUpperCase():r[0].toUpperCase()};export{g as a,u as b};
|
package/dist/chunk-MBDWTK54.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkD47MHBSD_cjs=require('./chunk-D47MHBSD.cjs'),chunkTC4VBE4Y_cjs=require('./chunk-TC4VBE4Y.cjs'),chunkKCQDDZJE_cjs=require('./chunk-KCQDDZJE.cjs'),chunk62HX5Z45_cjs=require('./chunk-62HX5Z45.cjs'),chunkFDITZ5C6_cjs=require('./chunk-FDITZ5C6.cjs'),chunk2TRAPBZ7_cjs=require('./chunk-2TRAPBZ7.cjs'),chunkBVPMMWDL_cjs=require('./chunk-BVPMMWDL.cjs'),chunkU5Y2FXMN_cjs=require('./chunk-U5Y2FXMN.cjs'),chunk7YWAQOA4_cjs=require('./chunk-7YWAQOA4.cjs'),chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');function ne(e,n={}){chunkCN53M4QZ_cjs.m(n,{message:({currentType:i,validType:m})=>`Second parameter (\`options\`) must be of type \`${m}\`, but received: \`${i}\`.`});let p=chunkCN53M4QZ_cjs.o(n,"removeInvalidValueNumber")?n.removeInvalidValueNumber:true;if(chunkCN53M4QZ_cjs.G(p,{message:({currentType:i,validType:m})=>`Parameter \`removeInvalidValueNumber\` property of the \`options\` (second parameter) must be of type \`${m}\`, but received: \`${i}\`.`}),chunkCN53M4QZ_cjs.d(e)){let i=Array.from(e,m=>{if(chunk7YWAQOA4_cjs.a(m))return Number(m);let u=String(m).trim().match(/-?\d+(\.\d+)?/);return u?Number(u[0]):chunkCN53M4QZ_cjs.g(m)?null:void 0});return p?chunkTC4VBE4Y_cjs.b(i):i}}var Oe=e=>chunkCN53M4QZ_cjs.c(e)?false:chunkCN53M4QZ_cjs.h(e)?chunkCN53M4QZ_cjs.p(e):chunkCN53M4QZ_cjs.a(e)?e:chunkCN53M4QZ_cjs.i(e,{includeNaN:true})?e!==0:chunkCN53M4QZ_cjs.d(e)||chunkCN53M4QZ_cjs.e(e)?chunkD47MHBSD_cjs.a(e):!!e;var Q=e=>chunkCN53M4QZ_cjs.c(e)?false:chunkCN53M4QZ_cjs.h(e)?chunkCN53M4QZ_cjs.p(e):chunkCN53M4QZ_cjs.a(e)?e:chunkCN53M4QZ_cjs.i(e,{includeNaN:true})?e!==0:chunkCN53M4QZ_cjs.d(e)?e.some(Q):chunkCN53M4QZ_cjs.e(e)?Object.values(e).some(Q):false;var Ke=(e,n={})=>{if(chunkCN53M4QZ_cjs.c(e))return false;chunkCN53M4QZ_cjs.f(n)||(n={});let p=chunkCN53M4QZ_cjs.o(n,"caseInsensitive")?n.caseInsensitive:false,i=chunkCN53M4QZ_cjs.o(n,"trimString")?n.trimString:true,m=chunkCN53M4QZ_cjs.o(n,"includeIndeterminate")?n.includeIndeterminate:false;if(!chunkCN53M4QZ_cjs.a(p)||!chunkCN53M4QZ_cjs.a(i)||!chunkCN53M4QZ_cjs.a(m))throw new TypeError(`Parameters \`caseInsensitive\`, \`trimString\` and \`includeIndeterminate\` property of the \`options\` (second parameter) expected to be a \`boolean\` type, but received: ['caseInsensitive': \`${chunkCN53M4QZ_cjs.E(p)}\`, 'trimString': \`${chunkCN53M4QZ_cjs.E(i)}\`, 'includeIndeterminate': \`${chunkCN53M4QZ_cjs.E(m)}\`].`);if(chunkCN53M4QZ_cjs.h(e)){let r=e;i&&(r=r.trim()),p&&(r=r.toLowerCase());let u=["true","on","yes","1"];return m&&u.push("indeterminate"),u.includes(r)}return chunkCN53M4QZ_cjs.i(e)?e===1:chunkCN53M4QZ_cjs.a(e)?e:false};var _e=e=>chunkCN53M4QZ_cjs.c(e)?false:chunkCN53M4QZ_cjs.h(e)?!chunk2TRAPBZ7_cjs.a(e):chunkCN53M4QZ_cjs.a(e)?e:chunkCN53M4QZ_cjs.i(e,{includeNaN:true})?e!==0:chunkCN53M4QZ_cjs.d(e)?e.length>0:!!e;var mr=e=>{let n={undefined:void 0,null:null,nan:NaN,true:true,false:false,yes:true,no:false};if(chunkCN53M4QZ_cjs.h(e)){let p=e.trim().toLowerCase();if(Object.prototype.hasOwnProperty.call(n,p))return n[p];let i=p.replace(/,/g,""),m=Number(i);return !chunkCN53M4QZ_cjs.n(m)&&chunkCN53M4QZ_cjs.p(i)?m:e.trim()}return e};var X=e=>{try{if(chunkCN53M4QZ_cjs.b(structuredClone))return structuredClone(e)}catch{}return JSON.parse(JSON.stringify(e))},$=(e,n)=>{if(!chunkCN53M4QZ_cjs.l(e))return e;let[p,...i]=n;if(chunkCN53M4QZ_cjs.d(e))for(let m of e)chunkCN53M4QZ_cjs.l(m)&&$(m,n);else chunkKCQDDZJE_cjs.e(i)?chunkCN53M4QZ_cjs.f(e)&&delete e[p]:chunkCN53M4QZ_cjs.f(e)&&chunkCN53M4QZ_cjs.l(e[p])&&$(e[p],i);return e},W=(e,n)=>{if(!chunkCN53M4QZ_cjs.f(e))return e;let[p,...i]=n;return i.length===0?chunkCN53M4QZ_cjs.f(e)&&delete e[p]:chunkCN53M4QZ_cjs.f(e[p])&&W(e[p],i),e};function Nr(e,n,p=true){if(chunkKCQDDZJE_cjs.f(e,{checkSymbols:true}))return {};if(chunk62HX5Z45_cjs.a(n,{message:({currentType:m,validType:r})=>`Second parameter (\`keysToDelete\`) must be of type \`${r}\` with value of { key: string, deep?: boolean } plain-object, but received: \`${m}\`, with value: ${chunkU5Y2FXMN_cjs.c(n)}.`}),!n.every(m=>chunkCN53M4QZ_cjs.f(m)&&"key"in m))throw new TypeError(`Each element in Second Parameter (\`keysToDelete\`) must be of type \`plain-object\` with at least a "key" property (optionally "deep"), but received: ${chunkU5Y2FXMN_cjs.c(n)}.`);let i=p?X(e):e;for(let{key:m,deep:r}of n){if(chunkBVPMMWDL_cjs.a(m,{message:({currentType:s,validType:a})=>`Parameter \`key\` at Second Parameter (\`keysToDelete\`) must be of type \`${a}\`, but received: \`${s}\`.`}),!chunkCN53M4QZ_cjs.k(r)&&!chunkCN53M4QZ_cjs.a(r))throw new TypeError(`Parameter \`deep\` at Second Parameter (\`keysToDelete\`) \u2794 (key: "${m}", deep: ${r}) must be of type \`boolean\` or \`undefined\`, but received: \`${chunkCN53M4QZ_cjs.E(r)}\`.`);let u=m.split(".");i=r?$(i,u):W(i,u);}return i}function Xr(e,n={}){chunkCN53M4QZ_cjs.m(n,{message:({currentType:r,validType:u})=>`Second parameter (\`options\`) must be of type \`${u}\`, but received: \`${r}\`.`});let p=chunkCN53M4QZ_cjs.o(n,"removeEmptyObjects")?n.removeEmptyObjects:false,i=chunkCN53M4QZ_cjs.o(n,"removeEmptyArrays")?n.removeEmptyArrays:false;function m(r,u){if(chunkCN53M4QZ_cjs.c(r))return;let{removeEmptyArrays:s,removeEmptyObjects:a,isRoot:k}=u;if(!chunkCN53M4QZ_cjs.a(a)||!chunkCN53M4QZ_cjs.a(s))throw new TypeError(`Parameters \`removeEmptyObjects\` and \`removeEmptyArrays\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: ['removeEmptyObjects': \`${chunkCN53M4QZ_cjs.E(a)}\`, 'removeEmptyArrays': \`${chunkCN53M4QZ_cjs.E(s)}\`].`);if(chunkCN53M4QZ_cjs.i(r)||chunkCN53M4QZ_cjs.p(r)&&!chunkCN53M4QZ_cjs.n(Number(r))){let o=Number(r);return chunkFDITZ5C6_cjs.a(o)?o:void 0}if(chunkCN53M4QZ_cjs.d(r)){let o=r.map(t=>m(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).filter(t=>!chunkCN53M4QZ_cjs.k(t));return s&&chunkKCQDDZJE_cjs.e(o)?void 0:o}if(chunkCN53M4QZ_cjs.q(r)){let o=Array.from(r).map(t=>m(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).filter(t=>!chunkCN53M4QZ_cjs.k(t));return s&&chunkKCQDDZJE_cjs.e(o)?void 0:o}if(chunkU5Y2FXMN_cjs.a(r)){let o=Array.from(r.entries()).map(([t,A])=>{let T=m(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false}),B=m(A,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false});return !chunkCN53M4QZ_cjs.k(T)&&!chunkCN53M4QZ_cjs.k(B)?[T,B]:void 0}).filter(t=>!chunkCN53M4QZ_cjs.k(t));return s&&(o=o.filter(t=>!(chunkCN53M4QZ_cjs.d(t)&&t.length===0))),s&&chunkKCQDDZJE_cjs.e(o)?void 0:o}if(chunkCN53M4QZ_cjs.C(r)){let o=Array.from(r).map(t=>m(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).filter(t=>!chunkCN53M4QZ_cjs.k(t));return s&&chunkKCQDDZJE_cjs.e(o)?void 0:o}if(chunkD47MHBSD_cjs.b(r))if(r instanceof BigInt64Array||r instanceof BigUint64Array){let o=Array.from(r).map(t=>m(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).filter(t=>!chunkCN53M4QZ_cjs.k(t));return s&&chunkKCQDDZJE_cjs.e(o)?void 0:o}else {let o=Array.from(r).map(t=>m(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).filter(t=>!chunkCN53M4QZ_cjs.k(t));return s&&chunkKCQDDZJE_cjs.e(o)?void 0:o}if(chunkU5Y2FXMN_cjs.b(r))return chunkCN53M4QZ_cjs.n(r.getTime())?0:r.getTime();if(chunkCN53M4QZ_cjs.e(r)){let o={};for(let[t,A]of Object.entries(r)){let T=m(A,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false});chunkCN53M4QZ_cjs.k(T)||(o[t]=T);}return a&&chunkKCQDDZJE_cjs.f(o)?k?{}:void 0:o}}return m(e,{removeEmptyObjects:p,removeEmptyArrays:i,isRoot:true})}function vt(e,n={}){chunkCN53M4QZ_cjs.m(n,{message:({currentType:r,validType:u})=>`Second parameter (\`options\`) must be of type \`${u}\`, but received: \`${r}\`.`});let p=chunkCN53M4QZ_cjs.o(n,"removeEmptyObjects")?n.removeEmptyObjects:false,i=chunkCN53M4QZ_cjs.o(n,"removeEmptyArrays")?n.removeEmptyArrays:false;function m(r,u){if(chunkCN53M4QZ_cjs.c(r))return;let{removeEmptyArrays:s,removeEmptyObjects:a,isRoot:k}=u;if(!chunkCN53M4QZ_cjs.a(a)||!chunkCN53M4QZ_cjs.a(s))throw new TypeError(`Parameters \`removeEmptyObjects\` and \`removeEmptyArrays\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: ['removeEmptyObjects': \`${chunkCN53M4QZ_cjs.E(a)}\`, 'removeEmptyArrays': \`${chunkCN53M4QZ_cjs.E(s)}\`].`);if(chunkCN53M4QZ_cjs.i(r)||chunkCN53M4QZ_cjs.h(r))return String(r);if(chunkU5Y2FXMN_cjs.b(r))return r.toISOString();if(chunkKCQDDZJE_cjs.a(r))return r.toString();if(chunkCN53M4QZ_cjs.C(r))return Array.from(r).map(o=>String(o)).filter(o=>!chunkCN53M4QZ_cjs.k(o));if(chunkD47MHBSD_cjs.b(r))if(r instanceof BigInt64Array||r instanceof BigUint64Array){let o=Array.from(r).map(t=>m(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).map(t=>String(t)).filter(t=>!chunkCN53M4QZ_cjs.k(t));return s&&chunkKCQDDZJE_cjs.e(o)?void 0:o}else {let o=Array.from(r).map(t=>m(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).map(t=>String(t)).filter(t=>!chunkCN53M4QZ_cjs.k(t));return s&&chunkKCQDDZJE_cjs.e(o)?void 0:o}if(chunkCN53M4QZ_cjs.q(r)){let o=Array.from(r).map(t=>m(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).filter(t=>!chunkCN53M4QZ_cjs.k(t));return s&&chunkKCQDDZJE_cjs.e(o)?void 0:o}if(chunkU5Y2FXMN_cjs.a(r)){let o=Array.from(r.entries()).map(([t,A])=>[m(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false}),m(A,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})]).filter(([t,A])=>!chunkCN53M4QZ_cjs.k(t)&&!chunkCN53M4QZ_cjs.k(A));return s&&chunkKCQDDZJE_cjs.e(o)?void 0:o}if(chunkCN53M4QZ_cjs.d(r)){let o=r.map(t=>m(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).filter(t=>!chunkCN53M4QZ_cjs.k(t));return s&&(o=o.filter(t=>!(chunkCN53M4QZ_cjs.d(t)&&t.length===0))),s&&chunkKCQDDZJE_cjs.e(o)?void 0:o}if(chunkCN53M4QZ_cjs.e(r)){let o={};for(let[t,A]of Object.entries(r)){let T=m(A,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false});chunkCN53M4QZ_cjs.k(T)?chunkCN53M4QZ_cjs.d(A)&&!s&&(o[t]=[]):o[t]=T;}return a&&Object.keys(o).length===0?k?{}:void 0:o}}return m(e,{removeEmptyObjects:p,removeEmptyArrays:i,isRoot:true})}exports.a=ne;exports.b=Oe;exports.c=Q;exports.d=Ke;exports.e=_e;exports.f=mr;exports.g=Nr;exports.h=Xr;exports.i=vt;
|
package/dist/chunk-MNGGDB2G.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-5SZUSNGZ.js';import {n,m,o,a,E,b,j,k,l,q,d,g,i,e}from'./chunk-XCFIOTCV.js';function I(o){return Object.prototype.toString.call(o)==="[object Map]"||o instanceof Map}var $=o=>o instanceof Date&&!n(o.getTime());var v=(o$1,i$1={})=>{m(i$1,{message:({currentType:r,validType:m})=>`Second parameter (\`options\`) must be of type \`${m}\`, but received: \`${r}\`.`});let y=o(i$1,"sortKeys")?i$1.sortKeys:true,b$1=o(i$1,"sortArray")?i$1.sortArray:false,S=o(i$1,"pretty")?i$1.pretty:false;if(!a(y)||!a(b$1)||!a(S))throw new TypeError(`Parameters \`sortKeys\`, \`sortArray\` and \`pretty\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: "['sortKeys': \`${E(y)}\`, 'sortArray': \`${E(b$1)}\`, 'pretty': \`${E(S)}\`]".`);let N=new WeakSet,B=r=>g(r)||!l(r)&&!b(r),f=r=>{if(r instanceof Number)return Number(r);if(r instanceof String)return String(r);if(r instanceof Boolean)return !!r;if(!(b(r)||j(r))){if(a$1(r))return r.toString();if(k(r)||n(r)||r===1/0||r===-1/0)return null;if(l(r)){if(N.has(r))return "[Circular]";if(N.add(r),$(r))return r.toISOString();if(I(r))return {map:Array.from(r.entries()).map(([e,t])=>[e,f(t)])};if(q(r))return {set:Array.from(r.values()).map(f)};if(d(r)){let e=r.map(f);if(b$1){let t=[],u=[];for(let n of e)B(n)?t.push(n):u.push(n);return t.sort((n,w)=>i(n)&&i(w)?n-w:String(n).localeCompare(String(w))),[...t,...u]}return e}let m=Object.keys(r);y&&m.sort((e,t)=>{let u=Number(e),n$1=Number(t);return !n(u)&&!n(n$1)?u-n$1:e.localeCompare(t)});let O={};if(e(r))for(let e of m){let t=f(r[e]);k(t)||(O[e]=t);}return O}return r}};try{return JSON.stringify(f(o$1),null,S?2:0)}catch(r){return console.warn("Error in safeStableStringify:",r),"{}"}};export{I as a,$ as b,v as c};
|
package/dist/chunk-MY7BA4GI.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunk62HX5Z45_cjs=require('./chunk-62HX5Z45.cjs');var p=t=>(chunk62HX5Z45_cjs.a(t,{message:({currentType:o,validType:r})=>`First parameter (\`props\`) must be of type \`${r}\`, but received: \`${o}\`.`}),o=>!t.map(r=>r.toString()).includes(o.toString()));exports.a=p;
|
package/dist/chunk-N2IJPIND.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunk2TRAPBZ7_cjs=require('./chunk-2TRAPBZ7.cjs'),chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');var a=(r,n={withTrim:true,trimOnly:false})=>{if(!chunkCN53M4QZ_cjs.p(r))return "";chunkCN53M4QZ_cjs.f(n)||(n={});let{trimOnly:t=false,withTrim:l=true}=n;return t?r.trim():(l&&(r=r.trim()),r.replace(/\s+/g," "))},c=r=>chunkCN53M4QZ_cjs.p(r)?r.trim():"",p=(r,n={trimOnly:false})=>{if(!chunkCN53M4QZ_cjs.p(r))return "";chunkCN53M4QZ_cjs.f(n)||(n={});let{trimOnly:t=false}=n;return t?r.trim():r.replace(/\s+/g,"")},u=r=>chunkCN53M4QZ_cjs.h(r)?chunk2TRAPBZ7_cjs.a(r)?"":r.replace(/<\/?[a-zA-Z][^<>]*\/?>/g," ").trim().replace(/\s+/g," ").trim():void 0;exports.a=a;exports.b=c;exports.c=p;exports.d=u;
|
package/dist/chunk-NIMNTEGV.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {p}from'./chunk-XCFIOTCV.js';var r=(n,o={})=>!p(n,o);export{r as a};
|
package/dist/chunk-PVJF2JHM.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {e,f}from'./chunk-W5EDKJK3.js';import {a}from'./chunk-SYJC7UAW.js';import {h,i,g,k,n,d,e as e$1,E,p,D,m,o,a as a$1,b}from'./chunk-XCFIOTCV.js';var M=e=>{if(!h(e)&&!i(e))return 0;let a=String(e).trim().replace(/[^0-9]/g,"");return Number(a)||0};var j=(e={})=>{m(e,{message:({currentType:A,validType:U})=>`Second parameter (\`options\`) must be of type \`${U}\`, but received: \`${A}\`.`});let a$2=o(e,"convertBooleans")?e.convertBooleans:false,r=o(e,"convertDates")?e.convertDates:false,n=o(e,"convertNumbers")?e.convertNumbers:false,t=o(e,"loggingOnFail")?e.loggingOnFail:false,s=o(e,"removeEmptyArrays")?e.removeEmptyArrays:false,m$1=o(e,"removeEmptyObjects")?e.removeEmptyObjects:false,o$1=o(e,"removeNulls")?e.removeNulls:false,g=o(e,"removeUndefined")?e.removeUndefined:false,N=o(e,"strictMode")?e.strictMode:false,E$1=o(e,"checkSymbols")?e.checkSymbols:false,P=o(e,"convertNaN")?e.convertNaN:false,v=o(e,"customDateFormats")?e.customDateFormats:[],b$1=o(e,"onError")?e.onError:a;if(!(a$1(a$2)&&a$1(r)&&a$1(n)&&a$1(P)&&a$1(E$1)&&a$1(t)&&a$1(s)&&a$1(m$1)&&a$1(o$1)&&a$1(g)&&a$1(N)&&d(v)&&b(b$1)))throw new TypeError(`Invalid \`options\` parameter (second argument): \`convertBooleans\`, \`convertDates\`, \`convertNumbers\`, \`loggingOnFail\`, \`removeEmptyArrays\`, \`removeEmptyObjects\`, \`removeNulls\`, \`removeUndefined\`, \`strictMode\` expected to be a \`boolean\` type, \`customDateFormats\` expected to be a \`array\` type and \`onError\` expected to be a \`void function\` type. But received: ['convertBooleans': \`${E(a$2)}\`, 'convertDates': \`${E(r)}\`, 'convertNumbers': \`${E(n)}\`, 'loggingOnFail': \`${E(t)}\`, 'removeEmptyArrays': \`${E(s)}\`, 'removeEmptyObjects': \`${E(m$1)}\`, 'removeNulls': \`${E(o$1)}\`, 'removeUndefined': \`${E(g)}\`, 'strictMode': \`${E(N)}\`, 'customDateFormats': \`${E(v)}\`, 'onError': \`${E(b$1)}\`].`);return {convertBooleans:a$2,convertDates:r,convertNumbers:n,convertNaN:P,loggingOnFail:t,removeEmptyArrays:s,removeEmptyObjects:m$1,removeNulls:o$1,removeUndefined:g,strictMode:N,customDateFormats:v,onError:b$1,checkSymbols:E$1}},O=(e$2,a={})=>{let r=j(a);if(g(e$2))return r.removeNulls?void 0:null;if(k(e$2))return r.removeUndefined,void 0;if(h(e$2)){let n$1=e$2.trim();if(r.convertNaN&&n$1==="NaN")return NaN;if(r.convertNumbers&&!n(Number(n$1)))return Number(n$1);if(r.convertBooleans){if(n$1==="true")return true;if(n$1==="false")return false}if(r.convertDates){if(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/.test(n$1))return new Date(n$1);if(r.customDateFormats?.length)for(let t of r.customDateFormats){let s=B(n$1,t);if(s)return s}}return r.strictMode?void 0:n$1}if(d(e$2)){let n=e$2.map(t=>O(t,r)).filter(t=>!k(t));return r.removeEmptyArrays&&e(n)?void 0:n}if(e$1(e$2)){let n={};for(let t in e$2)if(Object.prototype.hasOwnProperty.call(e$2,t)){let s=O(e$2[t],r);k(s)||(n[t]=s);}return r.removeEmptyObjects&&f(n,{checkSymbols:r.checkSymbols})?void 0:n}return r.strictMode?void 0:e$2},B=(e,a)=>{if(!h(e)||!h(a))throw new TypeError(`Parameter \`dateString\` and \`format\` must be of type \`string\`, but received: "['dateString': \`${E(e)}\`, 'format': \`${E(a)}\`]".`);let r=e.split(/[-/]/).map(Number);if(r.length!==3||r.some(n))return null;let n$1,t,s;if(a==="DD/MM/YYYY")[n$1,t,s]=r;else if(a==="MM/DD/YYYY")[t,n$1,s]=r;else return null;t-=1;let m=new Date(s,t,n$1);return m.getFullYear()!==s||m.getMonth()!==t||m.getDate()!==n$1?null:m};function se(e,a={}){if(g(e))return null;let r=j(a);if(r.convertNaN&&(n(e)||p(e)&&e==="NaN"))return NaN;if(r.convertNumbers&&!n(Number(e))&&i(M(e)))return Number(e);if(h(e))try{let n=I(e);r.removeUndefined?n=n.replace(/,\s*"[^"]*"\s*:\s*undefined(?=\s*[},])/g,"").replace(/"[^"]*"\s*:\s*undefined\s*(,)?/g,""):n=n.replace(/:\s*undefined(?=\s*[,}])/g,":null"),r.convertNaN?n=n.replace(/:\s*NaN(?=\s*[,}])/g,':"NaN"'):n=n.replace(/:\s*NaN(?=\s*[,}])/g,':"NaN"').replace(/,\s*"[^"]*"\s*:\s*NaN(?=\s*[},])/g,"").replace(/"[^"]*"\s*:\s*NaN\s*(,)?/g,""),n=n.replace(/,(\s*[}\]])/g,"$1");let t=JSON.parse(n);return O(t,r)}catch(n){r.loggingOnFail&&console.error("Failed to parsing at `safeJsonParse`:",n),r.onError(D(n)?new Error(n.message.replace(/^JSON\.parse:/,"Failed to parsing")):new Error(String(n)));return}}function I(e){let a=new Set(["\\",'"',"/","b","f","n","r","t","u"]),r="",n=false,t=false,s=false;for(let m=0;m<e.length;m++){let o=e[m];if(s){n?o==="'"?r+="'":a.has(o)?o==="\\"?r+="\\\\":o==='"'?r+='\\"':r+="\\"+o:r+="\\\\"+o:t?o==='"'?r+='\\"':a.has(o)?r+="\\"+o:r+="\\\\"+o:r+="\\"+o,s=false;continue}if(o==="\\"){s=true;continue}if(!n&&!t){if(o==="'"){r+='"',n=true;continue}if(o==='"'){r+='"',t=true;continue}}else if(n){if(o==="'"){r+='"',n=false;continue}}else if(t&&o==='"'){r+='"',t=false;continue}r+=o;}return r}export{M as a,O as b,B as c,se as d};
|