@rzl-zone/utils-js 3.0.0-beta.0 → 3.0.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.
Files changed (197) hide show
  1. package/README.md +56 -27
  2. package/dist/NumberRangeUnion-DC-C3_Kq.d.ts +23 -23
  3. package/dist/any-BmdI8UbK.d.ts +56 -56
  4. package/dist/arrays-normalize-recursive-CnjYJ9xg.d.ts +66 -66
  5. package/dist/assertions/index.cjs +1 -1
  6. package/dist/assertions/index.d.ts +398 -418
  7. package/dist/assertions/index.js +1 -1
  8. package/dist/chunk-2HSNUPEO.cjs +1 -0
  9. package/dist/chunk-3YCFMGRB.js +1 -0
  10. package/dist/chunk-4Z75R3IT.cjs +1 -0
  11. package/dist/chunk-5C2SMIGX.cjs +1 -0
  12. package/dist/chunk-5Z2G23WP.js +1 -0
  13. package/dist/chunk-6C3ATUGM.cjs +1 -0
  14. package/dist/chunk-AJ25PWXX.cjs +1 -0
  15. package/dist/chunk-BHIBDDQF.js +1 -0
  16. package/dist/chunk-CE4JI2YB.js +1 -0
  17. package/dist/chunk-CMJ6UYWW.cjs +1 -0
  18. package/dist/chunk-D3VSHABU.cjs +1 -0
  19. package/dist/chunk-DG2GWBTS.cjs +1 -0
  20. package/dist/chunk-DVMHRLKP.cjs +1 -0
  21. package/dist/chunk-ECRNH4FW.js +1 -0
  22. package/dist/chunk-EKS4IZJR.cjs +1 -0
  23. package/dist/chunk-EOZKYR5S.cjs +1 -0
  24. package/dist/chunk-EUANTHVN.js +1 -0
  25. package/dist/chunk-EW3I4O7X.js +1 -0
  26. package/dist/chunk-F3E77L46.js +1 -0
  27. package/dist/chunk-FIAAX3UE.js +1 -0
  28. package/dist/chunk-FV7SEBKD.cjs +1 -0
  29. package/dist/chunk-GGWPB23G.cjs +1 -0
  30. package/dist/chunk-GVWGQNLF.js +1 -0
  31. package/dist/chunk-H3FXL4DU.cjs +1 -0
  32. package/dist/chunk-HHPDLSX2.cjs +1 -0
  33. package/dist/chunk-IMCLPT5V.cjs +1 -0
  34. package/dist/chunk-IRGE5W7L.js +1 -0
  35. package/dist/chunk-J2RGTPGK.cjs +1 -0
  36. package/dist/chunk-JARPXKBM.cjs +1 -0
  37. package/dist/chunk-JFJUPYDT.cjs +1 -0
  38. package/dist/chunk-JLP56WSM.js +1 -0
  39. package/dist/chunk-K3MV4AIN.cjs +1 -0
  40. package/dist/chunk-KHO2SBNA.cjs +1 -0
  41. package/dist/chunk-KOVO72OM.js +1 -0
  42. package/dist/chunk-LJ4M3VGE.js +1 -0
  43. package/dist/chunk-LJVGJLP4.js +1 -0
  44. package/dist/chunk-M47QIBXI.cjs +1 -0
  45. package/dist/chunk-MC3LXMCQ.js +1 -0
  46. package/dist/chunk-MISCBZJC.js +1 -0
  47. package/dist/chunk-MMSYCIJ2.cjs +1 -1
  48. package/dist/chunk-MTUBDVJ2.js +1 -0
  49. package/dist/chunk-O7UT5AN3.cjs +1 -0
  50. package/dist/chunk-OGPPP2S3.js +1 -0
  51. package/dist/chunk-OLPKAX7F.cjs +1 -0
  52. package/dist/chunk-ONZFBJVW.js +1 -0
  53. package/dist/chunk-ORZFHBEY.js +1 -0
  54. package/dist/chunk-OWV2P376.js +1 -0
  55. package/dist/chunk-QNKGP5DY.js +1 -0
  56. package/dist/chunk-RV2WK5E6.js +1 -0
  57. package/dist/chunk-SBF43G3B.cjs +1 -0
  58. package/dist/chunk-T4CIAKEK.js +1 -0
  59. package/dist/chunk-UDA26MCU.cjs +1 -0
  60. package/dist/chunk-VCFXNV3Q.cjs +1 -0
  61. package/dist/chunk-VHAPTHEA.cjs +1 -0
  62. package/dist/chunk-WVSPXFTY.js +1 -0
  63. package/dist/chunk-X74TUJSE.cjs +1 -0
  64. package/dist/chunk-XC3QHAK2.cjs +1 -0
  65. package/dist/chunk-XLDAIZRK.js +1 -0
  66. package/dist/chunk-XZJ7C4N6.js +1 -0
  67. package/dist/chunk-YV3K2EKJ.js +1 -0
  68. package/dist/chunk-ZHV5ZYVN.cjs +1 -0
  69. package/dist/chunk-ZL7J6GTP.js +1 -0
  70. package/dist/chunk-ZTCLKKMB.js +1 -0
  71. package/dist/conversions/index.cjs +1 -1
  72. package/dist/conversions/index.d.ts +1307 -1504
  73. package/dist/conversions/index.js +1 -1
  74. package/dist/env/index.cjs +1 -1
  75. package/dist/env/index.d.ts +14 -17
  76. package/dist/env/index.js +1 -1
  77. package/dist/events/index.cjs +1 -1
  78. package/dist/events/index.d.ts +111 -108
  79. package/dist/events/index.js +1 -1
  80. package/dist/extends-Bk_SBGdT.d.ts +367 -0
  81. package/dist/formatting/index.cjs +1 -1
  82. package/dist/formatting/index.d.ts +878 -840
  83. package/dist/formatting/index.js +1 -1
  84. package/dist/generator/index.cjs +1 -1
  85. package/dist/generator/index.d.ts +173 -150
  86. package/dist/generator/index.js +1 -1
  87. package/dist/if-CvT4R7Kh.d.ts +16 -16
  88. package/dist/is-array--YjXV-Wx.d.ts +1207 -0
  89. package/dist/isPlainObject-BVhBAPHX.d.ts +169 -0
  90. package/dist/never-BfayMBF9.d.ts +64 -64
  91. package/dist/next/index.cjs +1 -8
  92. package/dist/next/index.d.ts +196 -176
  93. package/dist/next/index.js +1 -8
  94. package/dist/next/server/index.cjs +1 -2
  95. package/dist/next/server/index.d.ts +26 -40
  96. package/dist/next/server/index.js +1 -2
  97. package/dist/nils-DMz3kU7M.d.ts +155 -155
  98. package/dist/omit-VvmIsZmX.d.ts +25 -25
  99. package/dist/operations/index.cjs +1 -1
  100. package/dist/operations/index.d.ts +121 -176
  101. package/dist/operations/index.js +1 -1
  102. package/dist/parsers/index.cjs +1 -1
  103. package/dist/parsers/index.d.ts +35 -36
  104. package/dist/parsers/index.js +1 -1
  105. package/dist/predicates/index.cjs +1 -1
  106. package/dist/predicates/index.d.ts +1701 -1675
  107. package/dist/predicates/index.js +1 -1
  108. package/dist/prettify-C4xLcYOP.d.ts +328 -328
  109. package/dist/promise/index.cjs +1 -1
  110. package/dist/promise/index.d.ts +29 -38
  111. package/dist/promise/index.js +1 -1
  112. package/dist/rzl-utils.global.js +1 -4
  113. package/dist/string-XA-til3C.d.ts +351 -0
  114. package/dist/strings/index.cjs +1 -1
  115. package/dist/strings/index.d.ts +712 -787
  116. package/dist/strings/index.js +1 -1
  117. package/dist/tailwind/index.cjs +1 -0
  118. package/dist/tailwind/index.d.ts +565 -0
  119. package/dist/tailwind/index.js +1 -0
  120. package/dist/type-data-DDs-u2kq.d.ts +241 -241
  121. package/dist/types/index.d.ts +3266 -3266
  122. package/dist/urls/index.cjs +1 -1
  123. package/dist/urls/index.d.ts +384 -409
  124. package/dist/urls/index.js +1 -1
  125. package/package.json +61 -18
  126. package/dist/array-CIZRbqTF.d.ts +0 -223
  127. package/dist/chunk-2TRAPBZ7.cjs +0 -1
  128. package/dist/chunk-3D74QO5D.cjs +0 -1
  129. package/dist/chunk-4DK3RCC4.js +0 -2
  130. package/dist/chunk-4JOQ45HL.js +0 -1
  131. package/dist/chunk-55CZALRS.js +0 -1
  132. package/dist/chunk-56QBKKRE.js +0 -1
  133. package/dist/chunk-5JFV3GDE.cjs +0 -4
  134. package/dist/chunk-5SZUSNGZ.js +0 -1
  135. package/dist/chunk-62HX5Z45.cjs +0 -1
  136. package/dist/chunk-7NA6DUHR.cjs +0 -2
  137. package/dist/chunk-7YWAQOA4.cjs +0 -1
  138. package/dist/chunk-BVPMMWDL.cjs +0 -1
  139. package/dist/chunk-BYZAD3XN.cjs +0 -1
  140. package/dist/chunk-CEFYHEM4.cjs +0 -1
  141. package/dist/chunk-CN53M4QZ.cjs +0 -1
  142. package/dist/chunk-D47MHBSD.cjs +0 -1
  143. package/dist/chunk-DGH75GJD.js +0 -1
  144. package/dist/chunk-E5NUI7PN.js +0 -1
  145. package/dist/chunk-ELDDNERR.js +0 -1
  146. package/dist/chunk-EXZ47NOW.js +0 -1
  147. package/dist/chunk-FDITZ5C6.cjs +0 -1
  148. package/dist/chunk-FF76ISQ2.js +0 -1
  149. package/dist/chunk-FIEZKTAZ.cjs +0 -1
  150. package/dist/chunk-FSSV24W7.cjs +0 -1
  151. package/dist/chunk-GCGU2WB7.js +0 -1
  152. package/dist/chunk-GECI2YBP.js +0 -1
  153. package/dist/chunk-GQE4OVHC.cjs +0 -1
  154. package/dist/chunk-GRVZXQXL.cjs +0 -1
  155. package/dist/chunk-I4AVNHPA.cjs +0 -1
  156. package/dist/chunk-JFRL7NKU.js +0 -4
  157. package/dist/chunk-JWHM3WZQ.cjs +0 -1
  158. package/dist/chunk-KCQDDZJE.cjs +0 -1
  159. package/dist/chunk-L54ZPSYJ.js +0 -1
  160. package/dist/chunk-LVKAYEZ4.js +0 -1
  161. package/dist/chunk-MBDWTK54.cjs +0 -1
  162. package/dist/chunk-MNGGDB2G.js +0 -1
  163. package/dist/chunk-MY7BA4GI.cjs +0 -1
  164. package/dist/chunk-N2IJPIND.cjs +0 -1
  165. package/dist/chunk-NIMNTEGV.js +0 -1
  166. package/dist/chunk-NNM7QCNB.js +0 -1
  167. package/dist/chunk-PUQXRLZH.cjs +0 -1
  168. package/dist/chunk-PVJF2JHM.js +0 -1
  169. package/dist/chunk-QCFXEUKL.js +0 -1
  170. package/dist/chunk-QFCGBBSY.js +0 -1
  171. package/dist/chunk-QQYAUPSK.cjs +0 -1
  172. package/dist/chunk-RN3TP3S3.js +0 -1
  173. package/dist/chunk-RV2VULM7.cjs +0 -1
  174. package/dist/chunk-SW6HYEW7.cjs +0 -1
  175. package/dist/chunk-SYJC7UAW.js +0 -1
  176. package/dist/chunk-TC4VBE4Y.cjs +0 -1
  177. package/dist/chunk-TUXDINHF.cjs +0 -1
  178. package/dist/chunk-U5Y2FXMN.cjs +0 -1
  179. package/dist/chunk-UUPQI6ND.cjs +0 -1
  180. package/dist/chunk-VYCGZ2S6.js +0 -1
  181. package/dist/chunk-W5EDKJK3.js +0 -1
  182. package/dist/chunk-WHAVUFEU.js +0 -1
  183. package/dist/chunk-XCFIOTCV.js +0 -1
  184. package/dist/chunk-XE27XPJR.js +0 -1
  185. package/dist/chunk-XH6MCRLP.js +0 -1
  186. package/dist/chunk-XVB3ZZEB.js +0 -1
  187. package/dist/chunk-ZBSIGJFO.cjs +0 -1
  188. package/dist/chunk-ZYAML74V.js +0 -1
  189. package/dist/extends-Mp81Hq9-.d.ts +0 -145
  190. package/dist/index.cjs +0 -1
  191. package/dist/index.d.ts +0 -1
  192. package/dist/index.js +0 -1
  193. package/dist/is-array-Ckm_47hw.d.ts +0 -1557
  194. package/dist/isPlainObject-BKYaI6a8.d.ts +0 -182
  195. package/dist/stylings/index.cjs +0 -1
  196. package/dist/stylings/index.d.ts +0 -49
  197. package/dist/stylings/index.js +0 -1
@@ -1 +1 @@
1
- export{a as constructURL,b as extractURLs}from'../chunk-L54ZPSYJ.js';import'../chunk-NNM7QCNB.js';import'../chunk-WHAVUFEU.js';import'../chunk-ZYAML74V.js';import'../chunk-W5EDKJK3.js';import'../chunk-QFCGBBSY.js';import'../chunk-4JOQ45HL.js';export{d as formatEnvPort,b as getFirstPrefixPathname,a as getPrefixPathname,c as normalizePathname}from'../chunk-JFRL7NKU.js';import'../chunk-GECI2YBP.js';import'../chunk-NIMNTEGV.js';import'../chunk-ELDDNERR.js';import'../chunk-MNGGDB2G.js';import'../chunk-5SZUSNGZ.js';import'../chunk-XCFIOTCV.js';
1
+ export{constructURL,extractURLs}from"../chunk-JLP56WSM.js";import"../chunk-ONZFBJVW.js";import"../chunk-ORZFHBEY.js";import"../chunk-IRGE5W7L.js";import"../chunk-ZTCLKKMB.js";import"../chunk-ECRNH4FW.js";import"../chunk-OWV2P376.js";export{formatEnvPort,getFirstPrefixPathname,getPrefixPathname,normalizePathname}from"../chunk-LJVGJLP4.js";import"../chunk-MISCBZJC.js";import"../chunk-KOVO72OM.js";import"../chunk-WVSPXFTY.js";import"../chunk-BHIBDDQF.js";import"../chunk-QNKGP5DY.js";import"../chunk-EW3I4O7X.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rzl-zone/utils-js",
3
- "version": "3.0.0-beta.0",
3
+ "version": "3.0.0",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "engineStrict": true,
@@ -21,7 +21,9 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "date-fns": "^4.1.0",
24
- "server-only": "^0.0.1"
24
+ "server-only": "^0.0.1",
25
+ "tailwind-merge-v3": "npm:tailwind-merge@2.6.0",
26
+ "tailwind-merge-v4": "npm:tailwind-merge@3.3.1"
25
27
  },
26
28
  "devDependencies": {
27
29
  "@eslint/js": "^9.31.0",
@@ -29,6 +31,7 @@
29
31
  "@types/rollup": "^0.51.4",
30
32
  "@vitest/coverage-v8": "^3.2.4",
31
33
  "barrelsby": "^2.8.1",
34
+ "clsx": "latest",
32
35
  "del-cli": "^6.0.0",
33
36
  "dts-bundle-generator": "^9.5.1",
34
37
  "eslint": "^9.31.0",
@@ -36,6 +39,8 @@
36
39
  "jsdom": "^26.1.0",
37
40
  "next": "^15.5.2",
38
41
  "release-please": "^17.1.1",
42
+ "tailwindcss": "^4.1.13",
43
+ "terser": "^5.44.0",
39
44
  "tsc-alias": "^1.8.16",
40
45
  "tsup": "^8.5.0",
41
46
  "tsx": "^4.20.3",
@@ -43,20 +48,18 @@
43
48
  "typescript-eslint": "^8.41.0",
44
49
  "vitest": "^3.2.4"
45
50
  },
51
+ "peerDependencies": {
52
+ "tailwindcss": "^3.0.0 || ^4.0.0"
53
+ },
54
+ "peerDependenciesMeta": {
55
+ "tailwindcss": {
56
+ "optional": true
57
+ }
58
+ },
46
59
  "engines": {
47
60
  "node": ">=16"
48
61
  },
49
62
  "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
63
  "./assertions": {
61
64
  "import": {
62
65
  "types": "./dist/assertions/index.d.ts",
@@ -187,14 +190,14 @@
187
190
  "default": "./dist/strings/index.cjs"
188
191
  }
189
192
  },
190
- "./stylings": {
193
+ "./tailwind": {
191
194
  "import": {
192
- "types": "./dist/stylings/index.d.ts",
193
- "default": "./dist/stylings/index.js"
195
+ "types": "./dist/tailwind/index.d.ts",
196
+ "default": "./dist/tailwind/index.js"
194
197
  },
195
198
  "require": {
196
- "types": "./dist/stylings/index.d.ts",
197
- "default": "./dist/stylings/index.cjs"
199
+ "types": "./dist/tailwind/index.d.ts",
200
+ "default": "./dist/tailwind/index.cjs"
198
201
  }
199
202
  },
200
203
  "./urls": {
@@ -213,12 +216,51 @@
213
216
  },
214
217
  "typesVersions": {
215
218
  "*": {
219
+ "assertions": [
220
+ "dist/assertions/index.d.ts"
221
+ ],
222
+ "conversions": [
223
+ "dist/conversions/index.d.ts"
224
+ ],
225
+ "env": [
226
+ "dist/env/index.d.ts"
227
+ ],
228
+ "events": [
229
+ "dist/events/index.d.ts"
230
+ ],
231
+ "formatting": [
232
+ "dist/formatting/index.d.ts"
233
+ ],
234
+ "generator": [
235
+ "dist/generator/index.d.ts"
236
+ ],
216
237
  "next": [
217
238
  "dist/next/index.d.ts"
218
239
  ],
219
240
  "next/server": [
220
241
  "dist/next/server/index.d.ts"
221
242
  ],
243
+ "operations": [
244
+ "dist/operations/index.d.ts"
245
+ ],
246
+ "parsers": [
247
+ "dist/parsers/index.d.ts"
248
+ ],
249
+ "predicates": [
250
+ "dist/predicates/index.d.ts"
251
+ ],
252
+ "promise": [
253
+ "dist/promise/index.d.ts"
254
+ ],
255
+ "strings": [
256
+ "dist/strings/index.d.ts"
257
+ ],
258
+ "tailwind": [
259
+ "dist/tailwind/index.d.ts"
260
+ ],
261
+ "urls": [
262
+ "dist/urls/index.d.ts"
263
+ ],
222
264
  "types": [
223
265
  "dist/types/index.d.ts"
224
266
  ]
@@ -257,7 +299,8 @@
257
299
  "prepare": "npm run build",
258
300
  "prepublishOnly": "npm run barrel",
259
301
  "check-publish": "npm pack --dry-run",
260
- "postbuild": "del-cli \"dist/**/*.d.cts\"",
302
+ "delete-dist:index": "del-cli \"dist/index.{js,js.map,cjs,cjs.map}\" \"dist/index.d.{ts,cts}\"",
303
+ "postbuild": "del-cli \"dist/**/*.d.cts\" && npm run delete-dist:index",
261
304
  "barrel:generate": "npx barrelsby --config barrelsby.config.json",
262
305
  "barrel": "npm run barrel:generate && npm run barrel:generate && npx tsx scripts/removeBarrelsbyComment.ts ",
263
306
  "barrel:remove-comment-dist": "tsx scripts/removeBarrelsbyComment.ts",
@@ -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};
@@ -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;
@@ -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;
@@ -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};
@@ -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};
@@ -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};
@@ -1 +0,0 @@
1
- var e=()=>typeof window>"u"||typeof document>"u";export{e as a};
@@ -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=_;
@@ -1 +0,0 @@
1
- var i=n=>typeof n=="bigint";export{i as a};
@@ -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;
@@ -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;
@@ -1 +0,0 @@
1
- 'use strict';var i=n=>typeof n=="bigint";exports.a=i;
@@ -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;
@@ -1 +0,0 @@
1
- 'use strict';var chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');var i=new Set(["txt","md","rtf","tex","doc","docx","odt","ott","pdf","djvu","epub","mobi","azw","azw3","xls","xlsx","ods","csv","tsv","ppt","pptx","odp","pps","md","bib","tex","log","jpg","jpeg","png","gif","bmp","tif","tiff","webp","svg","ico","heif","heic","raw","cr2","nef","orf","sr2","dng","dds","psd","exr","xcf","ai","eps","cdr","psd","indd","mp3","wav","ogg","flac","aac","m4a","wma","alac","aiff","amr","mid","midi","opus","au","caf","ape","opus","mp4","mkv","avi","mov","flv","wmv","webm","mpeg","mpg","3gp","3g2","m4v","ts","mts","asf","rm","rmvb","vob","f4v","ogv","m2ts","mod","dav","zip","rar","7z","tar","gz","bz2","xz","tgz","tbz2","txz","lz","lzma","z","cab","arj","ace","iso","dmg","rpm","deb","pkg","apk","jar","iso","img","vhd","vmdk","qcow2","dmg","sql","db","dbf","mdb","accdb","json","xml","yaml","yml","toml","ini","plist","yaml","pkl","msgpack","h5","hdf5","parquet","avro","orc","ndjson","db","pdb","sqlite","sqlite3","dbx","sdf","js","jsx","ts","tsx","c","cpp","h","hpp","java","py","rb","go","rs","php","pl","sh","bat","cmd","ps1","lua","swift","kt","scala","cs","vb","dart","m","r","jl","fs","vbproj","sln","pri","Makefile","html","htm","xhtml","css","scss","sass","less","xml","json","yaml","yml","xlf","xlf","po","pot","jsp","asp","aspx","php","jspf","cgi","cfm","pl","env","conf","config","xml","ini","cfg","toml","yaml","dockerfile","gitignore","gitconfig","gitattributes","npmignore","lock","gradle","pom","yaml","prettierrc","eslintrc","babelrc","editorconfig","ttf","otf","woff","woff2","eot","dwg","dxf","shp","kml","kmz","gpx","stl","step","iges","3ds","3dm","fbx","obj","exe","msi","bin","run","com","cmd","apk","app","deb","rpm","elf","dll","so","dylib","sys","pem","crt","cer","key","der","csr","p12","pfx","jks","iso","cue","bin","nes","sfc","gba","nds","nes","sav","rom","pak","vpk","bik","epub","mobi","azw","azw3","fb2","lit","lrf","cbr","cbz","cbt","cba","opds","fasta","fa","fas","ffn","faa","fna","frn","fastq","fq","gb","gbk","sam","bam","vcf","gff","bed","log","bak","tmp","old","backup","swp","part","crdownload","torrent","ics","vcf","ics","ical","ics","ical","calendar","srt","sub","idx","cue","cdf","hdf","h5","nc","grib","fits","netcdf","sdf","vtk","xmind","drawio","jar","war","ear","crx","xpi","plugin","vsix","safariextz"]),p=new Set(["tar.gz","tar.bz2","tar.xz","tar.lz","tar.lzma","tar.Z","tar.zst","tar.xz"]),o=e=>{if(!chunkCN53M4QZ_cjs.p(e))return;let s=e.split("/").pop();if(s==="")return "";if(s){for(let t of p){let a=`.${t}`;if(s.toLowerCase().endsWith(a))return s.slice(0,-a.length)}for(;;){let t=s.lastIndexOf(".");if(t===-1)break;let a=s.slice(t+1).toLowerCase();if(i.has(a))s=s.slice(0,t);else break}return s}};exports.a=o;
@@ -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;
@@ -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=_;
@@ -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;
@@ -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};
@@ -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};
@@ -1 +0,0 @@
1
- function n(e){return typeof e=="number"&&Number.isInteger(e)}export{n as a};
@@ -1 +0,0 @@
1
- import {p as p$1}from'./chunk-XCFIOTCV.js';var i=new Set(["txt","md","rtf","tex","doc","docx","odt","ott","pdf","djvu","epub","mobi","azw","azw3","xls","xlsx","ods","csv","tsv","ppt","pptx","odp","pps","md","bib","tex","log","jpg","jpeg","png","gif","bmp","tif","tiff","webp","svg","ico","heif","heic","raw","cr2","nef","orf","sr2","dng","dds","psd","exr","xcf","ai","eps","cdr","psd","indd","mp3","wav","ogg","flac","aac","m4a","wma","alac","aiff","amr","mid","midi","opus","au","caf","ape","opus","mp4","mkv","avi","mov","flv","wmv","webm","mpeg","mpg","3gp","3g2","m4v","ts","mts","asf","rm","rmvb","vob","f4v","ogv","m2ts","mod","dav","zip","rar","7z","tar","gz","bz2","xz","tgz","tbz2","txz","lz","lzma","z","cab","arj","ace","iso","dmg","rpm","deb","pkg","apk","jar","iso","img","vhd","vmdk","qcow2","dmg","sql","db","dbf","mdb","accdb","json","xml","yaml","yml","toml","ini","plist","yaml","pkl","msgpack","h5","hdf5","parquet","avro","orc","ndjson","db","pdb","sqlite","sqlite3","dbx","sdf","js","jsx","ts","tsx","c","cpp","h","hpp","java","py","rb","go","rs","php","pl","sh","bat","cmd","ps1","lua","swift","kt","scala","cs","vb","dart","m","r","jl","fs","vbproj","sln","pri","Makefile","html","htm","xhtml","css","scss","sass","less","xml","json","yaml","yml","xlf","xlf","po","pot","jsp","asp","aspx","php","jspf","cgi","cfm","pl","env","conf","config","xml","ini","cfg","toml","yaml","dockerfile","gitignore","gitconfig","gitattributes","npmignore","lock","gradle","pom","yaml","prettierrc","eslintrc","babelrc","editorconfig","ttf","otf","woff","woff2","eot","dwg","dxf","shp","kml","kmz","gpx","stl","step","iges","3ds","3dm","fbx","obj","exe","msi","bin","run","com","cmd","apk","app","deb","rpm","elf","dll","so","dylib","sys","pem","crt","cer","key","der","csr","p12","pfx","jks","iso","cue","bin","nes","sfc","gba","nds","nes","sav","rom","pak","vpk","bik","epub","mobi","azw","azw3","fb2","lit","lrf","cbr","cbz","cbt","cba","opds","fasta","fa","fas","ffn","faa","fna","frn","fastq","fq","gb","gbk","sam","bam","vcf","gff","bed","log","bak","tmp","old","backup","swp","part","crdownload","torrent","ics","vcf","ics","ical","ics","ical","calendar","srt","sub","idx","cue","cdf","hdf","h5","nc","grib","fits","netcdf","sdf","vtk","xmind","drawio","jar","war","ear","crx","xpi","plugin","vsix","safariextz"]),p=new Set(["tar.gz","tar.bz2","tar.xz","tar.lz","tar.lzma","tar.Z","tar.zst","tar.xz"]),o=e=>{if(!p$1(e))return;let s=e.split("/").pop();if(s==="")return "";if(s){for(let t of p){let a=`.${t}`;if(s.toLowerCase().endsWith(a))return s.slice(0,-a.length)}for(;;){let t=s.lastIndexOf(".");if(t===-1)break;let a=s.slice(t+1).toLowerCase();if(i.has(a))s=s.slice(0,t);else break}return s}};export{o as a};
@@ -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;
@@ -1 +0,0 @@
1
- import {a}from'./chunk-QFCGBBSY.js';var p=t=>(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()));export{p as a};
@@ -1 +0,0 @@
1
- 'use strict';var e=n=>n instanceof URL;exports.a=e;
@@ -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;
@@ -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};
@@ -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};
@@ -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;
@@ -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;
@@ -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;