@vinicunca/perkakas 1.0.0 → 1.0.2

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 (189) hide show
  1. package/dist/add-prop.d.cts +5 -9
  2. package/dist/add-prop.d.ts +5 -9
  3. package/dist/chunk-2T576V7A.js +1 -0
  4. package/dist/chunk-5NG5PDAH.js +1 -0
  5. package/dist/{chunk-4PHYW76J.cjs → chunk-64KL2FA2.cjs} +1 -1
  6. package/dist/chunk-6TRXWRYJ.cjs +1 -0
  7. package/dist/chunk-CIZWCFSY.cjs +1 -0
  8. package/dist/chunk-E6JSDI5S.cjs +1 -0
  9. package/dist/chunk-EBS4GCKX.js +1 -0
  10. package/dist/{chunk-WN5RHRS6.cjs → chunk-GUZPDGVH.cjs} +1 -1
  11. package/dist/chunk-GXVKH5OX.cjs +1 -0
  12. package/dist/chunk-H2E5GCCP.js +1 -0
  13. package/dist/chunk-KG2TAX4E.js +1 -0
  14. package/dist/chunk-LWPEZ7RI.js +1 -0
  15. package/dist/chunk-MKM3UJUV.js +1 -0
  16. package/dist/chunk-R3TYGYBQ.cjs +1 -0
  17. package/dist/chunk-RBODUO3Q.js +1 -0
  18. package/dist/chunk-T2LJNGWI.js +1 -0
  19. package/dist/chunk-TFN3JWPS.cjs +1 -0
  20. package/dist/chunk-TKJ7YEHS.cjs +1 -0
  21. package/dist/chunk-TT2VLICK.js +1 -0
  22. package/dist/chunk-UHUFGDIS.cjs +1 -0
  23. package/dist/chunk-VEG55EJ6.cjs +1 -0
  24. package/dist/chunk-XXU2FTTA.cjs +1 -0
  25. package/dist/chunk-ZIF7K2PC.js +1 -0
  26. package/dist/chunk-ZSI3ZTMX.js +1 -0
  27. package/dist/chunk.d.cts +1 -1
  28. package/dist/chunk.d.ts +1 -1
  29. package/dist/concat.d.cts +1 -1
  30. package/dist/concat.d.ts +1 -1
  31. package/dist/conditional.cjs +1 -1
  32. package/dist/conditional.d.cts +6 -6
  33. package/dist/conditional.d.ts +6 -6
  34. package/dist/conditional.js +1 -1
  35. package/dist/drop-first-by.d.cts +1 -1
  36. package/dist/drop-first-by.d.ts +1 -1
  37. package/dist/evolve.d.cts +1 -1
  38. package/dist/evolve.d.ts +1 -1
  39. package/dist/first-by.d.cts +1 -1
  40. package/dist/first-by.d.ts +1 -1
  41. package/dist/first.d.cts +1 -1
  42. package/dist/first.d.ts +1 -1
  43. package/dist/flat.d.cts +1 -1
  44. package/dist/flat.d.ts +1 -1
  45. package/dist/for-each-obj.d.cts +1 -1
  46. package/dist/for-each-obj.d.ts +1 -1
  47. package/dist/for-each.cjs +1 -1
  48. package/dist/for-each.d.cts +5 -2
  49. package/dist/for-each.d.ts +5 -2
  50. package/dist/for-each.js +1 -1
  51. package/dist/from-entries.d.cts +5 -5
  52. package/dist/from-entries.d.ts +5 -5
  53. package/dist/from-keys.cjs +1 -1
  54. package/dist/from-keys.d.cts +2 -2
  55. package/dist/from-keys.d.ts +2 -2
  56. package/dist/from-keys.js +1 -1
  57. package/dist/group-by.d.cts +1 -1
  58. package/dist/group-by.d.ts +1 -1
  59. package/dist/has-at-least.d.cts +1 -1
  60. package/dist/has-at-least.d.ts +1 -1
  61. package/dist/has-sub-object.cjs +1 -1
  62. package/dist/has-sub-object.d.cts +18 -3
  63. package/dist/has-sub-object.d.ts +18 -3
  64. package/dist/has-sub-object.js +1 -1
  65. package/dist/human-readable-file-size.d.cts +3 -5
  66. package/dist/human-readable-file-size.d.ts +3 -5
  67. package/dist/index-by.d.cts +1 -1
  68. package/dist/index-by.d.ts +1 -1
  69. package/dist/index.cjs +1 -1
  70. package/dist/index.d.cts +2 -1
  71. package/dist/index.d.ts +2 -1
  72. package/dist/index.js +1 -1
  73. package/dist/is-array.d.cts +1 -1
  74. package/dist/is-array.d.ts +1 -1
  75. package/dist/is-big-int.d.cts +1 -1
  76. package/dist/is-big-int.d.ts +1 -1
  77. package/dist/is-boolean.d.cts +1 -1
  78. package/dist/is-boolean.d.ts +1 -1
  79. package/dist/is-empty.d.cts +1 -1
  80. package/dist/is-empty.d.ts +1 -1
  81. package/dist/is-included-in.d.cts +1 -1
  82. package/dist/is-included-in.d.ts +1 -1
  83. package/dist/is-nullish.d.cts +1 -1
  84. package/dist/is-nullish.d.ts +1 -1
  85. package/dist/is-number.d.cts +1 -1
  86. package/dist/is-number.d.ts +1 -1
  87. package/dist/is-object-type.cjs +1 -1
  88. package/dist/is-object-type.d.cts +6 -4
  89. package/dist/is-object-type.d.ts +6 -4
  90. package/dist/is-object-type.js +1 -1
  91. package/dist/is-plain-object.d.cts +1 -1
  92. package/dist/is-plain-object.d.ts +1 -1
  93. package/dist/is-string.d.cts +1 -1
  94. package/dist/is-string.d.ts +1 -1
  95. package/dist/is-symbol.d.cts +1 -1
  96. package/dist/is-symbol.d.ts +1 -1
  97. package/dist/keys.d.cts +1 -1
  98. package/dist/keys.d.ts +1 -1
  99. package/dist/last.d.cts +1 -1
  100. package/dist/last.d.ts +1 -1
  101. package/dist/map-keys.cjs +1 -1
  102. package/dist/map-keys.d.cts +3 -3
  103. package/dist/map-keys.d.ts +3 -3
  104. package/dist/map-keys.js +1 -1
  105. package/dist/map-values.d.cts +1 -1
  106. package/dist/map-values.d.ts +1 -1
  107. package/dist/map-with-feedback.d.cts +1 -1
  108. package/dist/map-with-feedback.d.ts +1 -1
  109. package/dist/map.d.cts +1 -1
  110. package/dist/map.d.ts +1 -1
  111. package/dist/nth-by.d.cts +1 -1
  112. package/dist/nth-by.d.ts +1 -1
  113. package/dist/omit-by.cjs +1 -1
  114. package/dist/omit-by.d.cts +3 -3
  115. package/dist/omit-by.d.ts +3 -3
  116. package/dist/omit-by.js +1 -1
  117. package/dist/only.d.cts +1 -1
  118. package/dist/only.d.ts +1 -1
  119. package/dist/pick-by.cjs +1 -1
  120. package/dist/pick-by.d.cts +3 -3
  121. package/dist/pick-by.d.ts +3 -3
  122. package/dist/pick-by.js +1 -1
  123. package/dist/product.cjs +1 -1
  124. package/dist/product.d.cts +22 -5
  125. package/dist/product.d.ts +22 -5
  126. package/dist/product.js +1 -1
  127. package/dist/pull-object.cjs +1 -1
  128. package/dist/pull-object.d.cts +3 -3
  129. package/dist/pull-object.d.ts +3 -3
  130. package/dist/pull-object.js +1 -1
  131. package/dist/rank-by.d.cts +1 -1
  132. package/dist/rank-by.d.ts +1 -1
  133. package/dist/sample.d.cts +1 -1
  134. package/dist/sample.d.ts +1 -1
  135. package/dist/set.d.cts +1 -1
  136. package/dist/set.d.ts +1 -1
  137. package/dist/sleep.d.cts +3 -4
  138. package/dist/sleep.d.ts +3 -4
  139. package/dist/slugify.d.cts +3 -5
  140. package/dist/slugify.d.ts +3 -5
  141. package/dist/sort-by.d.cts +1 -1
  142. package/dist/sort-by.d.ts +1 -1
  143. package/dist/sort.d.cts +1 -1
  144. package/dist/sort.d.ts +1 -1
  145. package/dist/split.cjs +1 -0
  146. package/dist/split.d.cts +60 -0
  147. package/dist/split.d.ts +60 -0
  148. package/dist/split.js +1 -0
  149. package/dist/string-to-path.d.cts +5 -2
  150. package/dist/string-to-path.d.ts +5 -2
  151. package/dist/sum.cjs +1 -1
  152. package/dist/sum.d.cts +22 -5
  153. package/dist/sum.d.ts +22 -5
  154. package/dist/sum.js +1 -1
  155. package/dist/swap-indices.d.cts +1 -1
  156. package/dist/swap-indices.d.ts +1 -1
  157. package/dist/take-first-by.d.cts +1 -1
  158. package/dist/take-first-by.d.ts +1 -1
  159. package/dist/times.d.cts +13 -4
  160. package/dist/times.d.ts +13 -4
  161. package/dist/{types-DCY4LHuA.d.cts → types-BMu1PIvo.d.cts} +41 -28
  162. package/dist/{types-DCY4LHuA.d.ts → types-BMu1PIvo.d.ts} +41 -28
  163. package/dist/values.d.cts +1 -1
  164. package/dist/values.d.ts +1 -1
  165. package/dist/zip-with.d.cts +1 -1
  166. package/dist/zip-with.d.ts +1 -1
  167. package/dist/zip.d.cts +1 -1
  168. package/dist/zip.d.ts +1 -1
  169. package/package.json +1 -1
  170. package/dist/chunk-2G3P6PPR.js +0 -1
  171. package/dist/chunk-2SALTIYD.js +0 -1
  172. package/dist/chunk-5OVP2TQW.js +0 -1
  173. package/dist/chunk-67PSL457.cjs +0 -1
  174. package/dist/chunk-6LV46ASN.cjs +0 -1
  175. package/dist/chunk-6SQ2YEMB.js +0 -1
  176. package/dist/chunk-775ZQ6M4.js +0 -1
  177. package/dist/chunk-BH4FVL5M.js +0 -1
  178. package/dist/chunk-DQPVQH4H.cjs +0 -1
  179. package/dist/chunk-EIHJRQSP.js +0 -1
  180. package/dist/chunk-I237OF5R.cjs +0 -1
  181. package/dist/chunk-IF5LD7K5.js +0 -1
  182. package/dist/chunk-LNPZR2QM.cjs +0 -1
  183. package/dist/chunk-S2HXZ3NZ.cjs +0 -1
  184. package/dist/chunk-T43Q6JL2.js +0 -1
  185. package/dist/chunk-TUUS6PD5.cjs +0 -1
  186. package/dist/chunk-U5RGUZNM.js +0 -1
  187. package/dist/chunk-VD6VNORF.cjs +0 -1
  188. package/dist/chunk-YZNFAANS.cjs +0 -1
  189. package/dist/chunk-Z6SSEPER.js +0 -1
package/dist/map.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { I as IterableContainer, M as Mapped } from './types-DCY4LHuA.js';
1
+ import { I as IterableContainer, M as Mapped } from './types-BMu1PIvo.js';
2
2
  import 'type-fest';
3
3
 
4
4
  /**
package/dist/nth-by.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { I as IterableContainer, N as NonEmptyArray } from './types-DCY4LHuA.cjs';
1
+ import { I as IterableContainer, N as NonEmptyArray } from './types-BMu1PIvo.cjs';
2
2
  import { O as OrderRule } from './curry-order-rules-BOMf1JS7.cjs';
3
3
  import 'type-fest';
4
4
 
package/dist/nth-by.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { I as IterableContainer, N as NonEmptyArray } from './types-DCY4LHuA.js';
1
+ import { I as IterableContainer, N as NonEmptyArray } from './types-BMu1PIvo.js';
2
2
  import { O as OrderRule } from './curry-order-rules-BOMf1JS7.js';
3
3
  import 'type-fest';
4
4
 
package/dist/omit-by.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk6LV46ASNcjs = require('./chunk-6LV46ASN.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');exports.omitBy = _chunk6LV46ASNcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkCIZWCFSYcjs = require('./chunk-CIZWCFSY.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');exports.omitBy = _chunkCIZWCFSYcjs.a;
@@ -1,12 +1,12 @@
1
1
  import { Simplify, IfNever } from 'type-fest';
2
- import { E as EnumerableStringKeyedValueOf, a as EnumerableStringKeyOf, e as IfSimpleRecord, R as ReconstructedRecord } from './types-DCY4LHuA.cjs';
2
+ import { E as EnumerableStringKeyedValueOf, a as EnumerableStringKeyOf, e as IfBoundedRecord, R as ReconstructedRecord } from './types-BMu1PIvo.cjs';
3
3
 
4
4
  type PickSymbolKeys<T extends object> = {
5
5
  -readonly [P in keyof T as P extends symbol ? P : never]: T[P];
6
6
  };
7
- type PartialEnumerableKeys<T extends object> = Simplify<IfSimpleRecord<T, ReconstructedRecord<T>, PickSymbolKeys<T> & {
7
+ type PartialEnumerableKeys<T extends object> = T extends unknown ? Simplify<IfBoundedRecord<T, PickSymbolKeys<T> & {
8
8
  -readonly [P in keyof T as P extends symbol ? never : P]?: Required<T>[P];
9
- }>>;
9
+ }, ReconstructedRecord<T>>> : never;
10
10
  type PartialEnumerableKeysNarrowed<T extends object, S> = Simplify<ExactProps<T, S> & PartialProps<T, S> & PickSymbolKeys<T>>;
11
11
  type ExactProps<T, S> = {
12
12
  -readonly [P in keyof T as IsExactProp<T, P, S> extends true ? P : never]: Exclude<T[P], S>;
package/dist/omit-by.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  import { Simplify, IfNever } from 'type-fest';
2
- import { E as EnumerableStringKeyedValueOf, a as EnumerableStringKeyOf, e as IfSimpleRecord, R as ReconstructedRecord } from './types-DCY4LHuA.js';
2
+ import { E as EnumerableStringKeyedValueOf, a as EnumerableStringKeyOf, e as IfBoundedRecord, R as ReconstructedRecord } from './types-BMu1PIvo.js';
3
3
 
4
4
  type PickSymbolKeys<T extends object> = {
5
5
  -readonly [P in keyof T as P extends symbol ? P : never]: T[P];
6
6
  };
7
- type PartialEnumerableKeys<T extends object> = Simplify<IfSimpleRecord<T, ReconstructedRecord<T>, PickSymbolKeys<T> & {
7
+ type PartialEnumerableKeys<T extends object> = T extends unknown ? Simplify<IfBoundedRecord<T, PickSymbolKeys<T> & {
8
8
  -readonly [P in keyof T as P extends symbol ? never : P]?: Required<T>[P];
9
- }>>;
9
+ }, ReconstructedRecord<T>>> : never;
10
10
  type PartialEnumerableKeysNarrowed<T extends object, S> = Simplify<ExactProps<T, S> & PartialProps<T, S> & PickSymbolKeys<T>>;
11
11
  type ExactProps<T, S> = {
12
12
  -readonly [P in keyof T as IsExactProp<T, P, S> extends true ? P : never]: Exclude<T[P], S>;
package/dist/omit-by.js CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-5OVP2TQW.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";export{a as omitBy};
1
+ import{a}from"./chunk-ZIF7K2PC.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";export{a as omitBy};
package/dist/only.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { I as IterableContainer } from './types-DCY4LHuA.cjs';
1
+ import { I as IterableContainer } from './types-BMu1PIvo.cjs';
2
2
  import 'type-fest';
3
3
 
4
4
  type Only<T extends IterableContainer> = T extends readonly [...Array<unknown>, unknown, unknown] | readonly [] | readonly [unknown, ...Array<unknown>, unknown] | readonly [unknown, unknown, ...Array<unknown>] ? undefined : T extends readonly [unknown] ? T[number] : T[number] | undefined;
package/dist/only.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { I as IterableContainer } from './types-DCY4LHuA.js';
1
+ import { I as IterableContainer } from './types-BMu1PIvo.js';
2
2
  import 'type-fest';
3
3
 
4
4
  type Only<T extends IterableContainer> = T extends readonly [...Array<unknown>, unknown, unknown] | readonly [] | readonly [unknown, ...Array<unknown>, unknown] | readonly [unknown, unknown, ...Array<unknown>] ? undefined : T extends readonly [unknown] ? T[number] : T[number] | undefined;
package/dist/pick-by.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYZNFAANScjs = require('./chunk-YZNFAANS.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');exports.pickBy = _chunkYZNFAANScjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkGXVKH5OXcjs = require('./chunk-GXVKH5OX.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');exports.pickBy = _chunkGXVKH5OXcjs.a;
@@ -1,10 +1,10 @@
1
1
  import { Simplify, IfNever } from 'type-fest';
2
- import { E as EnumerableStringKeyedValueOf, a as EnumerableStringKeyOf, e as IfSimpleRecord, R as ReconstructedRecord } from './types-DCY4LHuA.cjs';
2
+ import { E as EnumerableStringKeyedValueOf, a as EnumerableStringKeyOf, e as IfBoundedRecord, R as ReconstructedRecord } from './types-BMu1PIvo.cjs';
3
3
 
4
4
  type EnumerableKey<T> = `${T extends number | string ? T : never}`;
5
- type EnumeratedPartial<T> = Simplify<IfSimpleRecord<T, ReconstructedRecord<T>, {
5
+ type EnumeratedPartial<T> = T extends unknown ? Simplify<IfBoundedRecord<T, {
6
6
  -readonly [P in keyof T as EnumerableKey<P>]?: Required<T>[P];
7
- }>>;
7
+ }, ReconstructedRecord<T>>> : never;
8
8
  type EnumeratedPartialNarrowed<T, S> = Simplify<ExactProps<T, S> & PartialProps<T, S>>;
9
9
  type ExactProps<T, S> = {
10
10
  -readonly [P in keyof T as EnumerableKey<IsExactProp<T, P, S> extends true ? P : never>]: Extract<Required<T>[P], S>;
package/dist/pick-by.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { Simplify, IfNever } from 'type-fest';
2
- import { E as EnumerableStringKeyedValueOf, a as EnumerableStringKeyOf, e as IfSimpleRecord, R as ReconstructedRecord } from './types-DCY4LHuA.js';
2
+ import { E as EnumerableStringKeyedValueOf, a as EnumerableStringKeyOf, e as IfBoundedRecord, R as ReconstructedRecord } from './types-BMu1PIvo.js';
3
3
 
4
4
  type EnumerableKey<T> = `${T extends number | string ? T : never}`;
5
- type EnumeratedPartial<T> = Simplify<IfSimpleRecord<T, ReconstructedRecord<T>, {
5
+ type EnumeratedPartial<T> = T extends unknown ? Simplify<IfBoundedRecord<T, {
6
6
  -readonly [P in keyof T as EnumerableKey<P>]?: Required<T>[P];
7
- }>>;
7
+ }, ReconstructedRecord<T>>> : never;
8
8
  type EnumeratedPartialNarrowed<T, S> = Simplify<ExactProps<T, S> & PartialProps<T, S>>;
9
9
  type ExactProps<T, S> = {
10
10
  -readonly [P in keyof T as EnumerableKey<IsExactProp<T, P, S> extends true ? P : never>]: Extract<Required<T>[P], S>;
package/dist/pick-by.js CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-EIHJRQSP.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";export{a as pickBy};
1
+ import{a}from"./chunk-LWPEZ7RI.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";export{a as pickBy};
package/dist/product.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkS2HXZ3NZcjs = require('./chunk-S2HXZ3NZ.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');exports.product = _chunkS2HXZ3NZcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkTKJ7YEHScjs = require('./chunk-TKJ7YEHS.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');exports.product = _chunkTKJ7YEHScjs.a;
@@ -1,34 +1,51 @@
1
- import { N as NonEmptyArray } from './types-DCY4LHuA.cjs';
1
+ import { I as IterableContainer } from './types-BMu1PIvo.cjs';
2
2
  import 'type-fest';
3
3
 
4
+ type Product<T extends IterableContainer<bigint> | IterableContainer<number>> = T extends readonly [] ? 1 : T extends readonly [bigint, ...ReadonlyArray<unknown>] ? bigint : T[number] extends bigint ? 1 | bigint : number;
4
5
  /**
5
6
  * Compute the product of the numbers in the array, or return 1 for an empty
6
7
  * array.
7
8
  *
9
+ * Works for both `number` and `bigint` arrays, but not arrays that contain both
10
+ * types.
11
+ *
12
+ * IMPORTANT: The result for empty arrays would be 1 (`number`) regardless of
13
+ * the type of the array; to avoid adding this to the return type for cases
14
+ * where the array is known to be non-empty you can use `hasAtLeast` or
15
+ * `isEmpty` to guard against this case.
16
+ *
8
17
  * @param data - The array of numbers.
9
18
  * @signature
10
19
  * P.product(data);
11
20
  * @example
12
21
  * P.product([1, 2, 3]); // => 6
22
+ * P.product([1n, 2n, 3n]); // => 6n
13
23
  * P.product([]); // => 1
14
24
  * @dataFirst
15
25
  * @category Number
16
26
  */
17
- declare function product(data: ReadonlyArray<number>): number;
18
- declare function product(data: Readonly<NonEmptyArray<bigint>>): bigint;
27
+ declare function product<T extends IterableContainer<bigint> | IterableContainer<number>>(data: T): Product<T>;
19
28
  /**
20
29
  * Compute the product of the numbers in the array, or return 1 for an empty
21
30
  * array.
22
31
  *
32
+ * Works for both `number` and `bigint` arrays, but not arrays that contain both
33
+ * types.
34
+ *
35
+ * IMPORTANT: The result for empty arrays would be 1 (`number`) regardless of
36
+ * the type of the array; to avoid adding this to the return type for cases
37
+ * where the array is known to be non-empty you can use `hasAtLeast` or
38
+ * `isEmpty` to guard against this case.
39
+ *
23
40
  * @signature
24
41
  * P.product()(data);
25
42
  * @example
26
43
  * P.pipe([1, 2, 3], P.product()); // => 6
44
+ * P.pipe([1n, 2n, 3n], R.product()); // => 6n
27
45
  * P.pipe([], P.product()); // => 1
28
46
  * @dataLast
29
47
  * @category Number
30
48
  */
31
- declare function product(): (data: ReadonlyArray<number>) => number;
32
- declare function product(): (data: Readonly<NonEmptyArray<bigint>>) => bigint;
49
+ declare function product(): <T extends IterableContainer<bigint> | IterableContainer<number>>(data: T) => Product<T>;
33
50
 
34
51
  export { product };
package/dist/product.d.ts CHANGED
@@ -1,34 +1,51 @@
1
- import { N as NonEmptyArray } from './types-DCY4LHuA.js';
1
+ import { I as IterableContainer } from './types-BMu1PIvo.js';
2
2
  import 'type-fest';
3
3
 
4
+ type Product<T extends IterableContainer<bigint> | IterableContainer<number>> = T extends readonly [] ? 1 : T extends readonly [bigint, ...ReadonlyArray<unknown>] ? bigint : T[number] extends bigint ? 1 | bigint : number;
4
5
  /**
5
6
  * Compute the product of the numbers in the array, or return 1 for an empty
6
7
  * array.
7
8
  *
9
+ * Works for both `number` and `bigint` arrays, but not arrays that contain both
10
+ * types.
11
+ *
12
+ * IMPORTANT: The result for empty arrays would be 1 (`number`) regardless of
13
+ * the type of the array; to avoid adding this to the return type for cases
14
+ * where the array is known to be non-empty you can use `hasAtLeast` or
15
+ * `isEmpty` to guard against this case.
16
+ *
8
17
  * @param data - The array of numbers.
9
18
  * @signature
10
19
  * P.product(data);
11
20
  * @example
12
21
  * P.product([1, 2, 3]); // => 6
22
+ * P.product([1n, 2n, 3n]); // => 6n
13
23
  * P.product([]); // => 1
14
24
  * @dataFirst
15
25
  * @category Number
16
26
  */
17
- declare function product(data: ReadonlyArray<number>): number;
18
- declare function product(data: Readonly<NonEmptyArray<bigint>>): bigint;
27
+ declare function product<T extends IterableContainer<bigint> | IterableContainer<number>>(data: T): Product<T>;
19
28
  /**
20
29
  * Compute the product of the numbers in the array, or return 1 for an empty
21
30
  * array.
22
31
  *
32
+ * Works for both `number` and `bigint` arrays, but not arrays that contain both
33
+ * types.
34
+ *
35
+ * IMPORTANT: The result for empty arrays would be 1 (`number`) regardless of
36
+ * the type of the array; to avoid adding this to the return type for cases
37
+ * where the array is known to be non-empty you can use `hasAtLeast` or
38
+ * `isEmpty` to guard against this case.
39
+ *
23
40
  * @signature
24
41
  * P.product()(data);
25
42
  * @example
26
43
  * P.pipe([1, 2, 3], P.product()); // => 6
44
+ * P.pipe([1n, 2n, 3n], R.product()); // => 6n
27
45
  * P.pipe([], P.product()); // => 1
28
46
  * @dataLast
29
47
  * @category Number
30
48
  */
31
- declare function product(): (data: ReadonlyArray<number>) => number;
32
- declare function product(): (data: Readonly<NonEmptyArray<bigint>>) => bigint;
49
+ declare function product(): <T extends IterableContainer<bigint> | IterableContainer<number>>(data: T) => Product<T>;
33
50
 
34
51
  export { product };
package/dist/product.js CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-BH4FVL5M.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";export{a as product};
1
+ import{a}from"./chunk-KG2TAX4E.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";export{a as product};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkLNPZR2QMcjs = require('./chunk-LNPZR2QM.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');exports.pullObject = _chunkLNPZR2QMcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVEG55EJ6cjs = require('./chunk-VEG55EJ6.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');exports.pullObject = _chunkVEG55EJ6cjs.a;
@@ -1,4 +1,4 @@
1
- import { I as IterableContainer } from './types-DCY4LHuA.cjs';
1
+ import { I as IterableContainer, b as ExactRecord } from './types-BMu1PIvo.cjs';
2
2
  import 'type-fest';
3
3
 
4
4
  /**
@@ -32,7 +32,7 @@ import 'type-fest';
32
32
  * @dataFirst
33
33
  * @category Object
34
34
  */
35
- declare function pullObject<T extends IterableContainer, K extends PropertyKey, V>(data: T, keyExtractor: (item: T[number], index: number, data: T) => K, valueExtractor: (item: T[number], index: number, data: T) => V): Partial<Record<K, V>>;
35
+ declare function pullObject<T extends IterableContainer, K extends PropertyKey, V>(data: T, keyExtractor: (item: T[number], index: number, data: T) => K, valueExtractor: (item: T[number], index: number, data: T) => V): ExactRecord<K, V>;
36
36
  /**
37
37
  * Creates an object that maps the result of `valueExtractor` with a key
38
38
  * resulting from running `keyExtractor` on each item in `data`. Duplicate keys
@@ -62,6 +62,6 @@ declare function pullObject<T extends IterableContainer, K extends PropertyKey,
62
62
  * @dataLast
63
63
  * @category Object
64
64
  */
65
- declare function pullObject<T extends IterableContainer, K extends PropertyKey, V>(keyExtractor: (item: T[number], index: number, data: T) => K, valueExtractor: (item: T[number], index: number, data: T) => V): (data: T) => Partial<Record<K, V>>;
65
+ declare function pullObject<T extends IterableContainer, K extends PropertyKey, V>(keyExtractor: (item: T[number], index: number, data: T) => K, valueExtractor: (item: T[number], index: number, data: T) => V): (data: T) => ExactRecord<K, V>;
66
66
 
67
67
  export { pullObject };
@@ -1,4 +1,4 @@
1
- import { I as IterableContainer } from './types-DCY4LHuA.js';
1
+ import { I as IterableContainer, b as ExactRecord } from './types-BMu1PIvo.js';
2
2
  import 'type-fest';
3
3
 
4
4
  /**
@@ -32,7 +32,7 @@ import 'type-fest';
32
32
  * @dataFirst
33
33
  * @category Object
34
34
  */
35
- declare function pullObject<T extends IterableContainer, K extends PropertyKey, V>(data: T, keyExtractor: (item: T[number], index: number, data: T) => K, valueExtractor: (item: T[number], index: number, data: T) => V): Partial<Record<K, V>>;
35
+ declare function pullObject<T extends IterableContainer, K extends PropertyKey, V>(data: T, keyExtractor: (item: T[number], index: number, data: T) => K, valueExtractor: (item: T[number], index: number, data: T) => V): ExactRecord<K, V>;
36
36
  /**
37
37
  * Creates an object that maps the result of `valueExtractor` with a key
38
38
  * resulting from running `keyExtractor` on each item in `data`. Duplicate keys
@@ -62,6 +62,6 @@ declare function pullObject<T extends IterableContainer, K extends PropertyKey,
62
62
  * @dataLast
63
63
  * @category Object
64
64
  */
65
- declare function pullObject<T extends IterableContainer, K extends PropertyKey, V>(keyExtractor: (item: T[number], index: number, data: T) => K, valueExtractor: (item: T[number], index: number, data: T) => V): (data: T) => Partial<Record<K, V>>;
65
+ declare function pullObject<T extends IterableContainer, K extends PropertyKey, V>(keyExtractor: (item: T[number], index: number, data: T) => K, valueExtractor: (item: T[number], index: number, data: T) => V): (data: T) => ExactRecord<K, V>;
66
66
 
67
67
  export { pullObject };
@@ -1 +1 @@
1
- import{a}from"./chunk-775ZQ6M4.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";export{a as pullObject};
1
+ import{a}from"./chunk-MKM3UJUV.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";export{a as pullObject};
@@ -1,4 +1,4 @@
1
- import { N as NonEmptyArray } from './types-DCY4LHuA.cjs';
1
+ import { N as NonEmptyArray } from './types-BMu1PIvo.cjs';
2
2
  import { O as OrderRule } from './curry-order-rules-BOMf1JS7.cjs';
3
3
  import 'type-fest';
4
4
 
package/dist/rank-by.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { N as NonEmptyArray } from './types-DCY4LHuA.js';
1
+ import { N as NonEmptyArray } from './types-BMu1PIvo.js';
2
2
  import { O as OrderRule } from './curry-order-rules-BOMf1JS7.js';
3
3
  import 'type-fest';
4
4
 
package/dist/sample.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { I as IterableContainer } from './types-DCY4LHuA.cjs';
1
+ import { I as IterableContainer } from './types-BMu1PIvo.cjs';
2
2
  import 'type-fest';
3
3
 
4
4
  type Sampled<T extends IterableContainer, N extends number> = number extends N ? SampledGeneric<T> : undefined extends T[N] ? T : SampledLiteral<T, N>;
package/dist/sample.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { I as IterableContainer } from './types-DCY4LHuA.js';
1
+ import { I as IterableContainer } from './types-BMu1PIvo.js';
2
2
  import 'type-fest';
3
3
 
4
4
  type Sampled<T extends IterableContainer, N extends number> = number extends N ? SampledGeneric<T> : undefined extends T[N] ? T : SampledLiteral<T, N>;
package/dist/set.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { U as UpsertProp } from './types-DCY4LHuA.cjs';
1
+ import { U as UpsertProp } from './types-BMu1PIvo.cjs';
2
2
  import 'type-fest';
3
3
 
4
4
  /**
package/dist/set.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { U as UpsertProp } from './types-DCY4LHuA.js';
1
+ import { U as UpsertProp } from './types-BMu1PIvo.js';
2
2
  import 'type-fest';
3
3
 
4
4
  /**
package/dist/sleep.d.cts CHANGED
@@ -2,12 +2,11 @@
2
2
  * Delay execution for a given number of milliseconds.
3
3
  *
4
4
  * @param timeout the number of milliseconds to wait
5
+ *
5
6
  * @signature
6
- * sleep(timeout)
7
+ * P.sleep(timeout)
7
8
  * @example
8
- * import { sleep } from '@vinicunca/perkakas';
9
- *
10
- * sleep(1000); // => Promise<void>
9
+ * P.sleep(1000); // => Promise<void>
11
10
  * @category Function
12
11
  */
13
12
  declare function sleep(timeout: number): Promise<void>;
package/dist/sleep.d.ts CHANGED
@@ -2,12 +2,11 @@
2
2
  * Delay execution for a given number of milliseconds.
3
3
  *
4
4
  * @param timeout the number of milliseconds to wait
5
+ *
5
6
  * @signature
6
- * sleep(timeout)
7
+ * P.sleep(timeout)
7
8
  * @example
8
- * import { sleep } from '@vinicunca/perkakas';
9
- *
10
- * sleep(1000); // => Promise<void>
9
+ * P.sleep(1000); // => Promise<void>
11
10
  * @category Function
12
11
  */
13
12
  declare function sleep(timeout: number): Promise<void>;
@@ -2,12 +2,10 @@
2
2
  * Turn any string into a URL/DOM safe string.
3
3
  * @param str the string to slugify
4
4
  * @signature
5
- * slugify(str)
5
+ * P.slugify(str)
6
6
  * @example
7
- * import { slugify } from '@vinicunca/perkakas';
8
- *
9
- * slugify('FooBar'); // => 'foobar'
10
- * slugify('This!-is*&%#@^up!'); // => 'this-is-up'
7
+ * P.slugify('FooBar'); // => 'foobar'
8
+ * P.slugify('This!-is*&%#@^up!'); // => 'this-is-up'
11
9
  * @category String
12
10
  */
13
11
  declare function slugify(str: string): string;
package/dist/slugify.d.ts CHANGED
@@ -2,12 +2,10 @@
2
2
  * Turn any string into a URL/DOM safe string.
3
3
  * @param str the string to slugify
4
4
  * @signature
5
- * slugify(str)
5
+ * P.slugify(str)
6
6
  * @example
7
- * import { slugify } from '@vinicunca/perkakas';
8
- *
9
- * slugify('FooBar'); // => 'foobar'
10
- * slugify('This!-is*&%#@^up!'); // => 'this-is-up'
7
+ * P.slugify('FooBar'); // => 'foobar'
8
+ * P.slugify('This!-is*&%#@^up!'); // => 'this-is-up'
11
9
  * @category String
12
10
  */
13
11
  declare function slugify(str: string): string;
@@ -1,4 +1,4 @@
1
- import { I as IterableContainer, N as NonEmptyArray, f as ReorderedArray } from './types-DCY4LHuA.cjs';
1
+ import { I as IterableContainer, N as NonEmptyArray, f as ReorderedArray } from './types-BMu1PIvo.cjs';
2
2
  import { O as OrderRule } from './curry-order-rules-BOMf1JS7.cjs';
3
3
  import 'type-fest';
4
4
 
package/dist/sort-by.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { I as IterableContainer, N as NonEmptyArray, f as ReorderedArray } from './types-DCY4LHuA.js';
1
+ import { I as IterableContainer, N as NonEmptyArray, f as ReorderedArray } from './types-BMu1PIvo.js';
2
2
  import { O as OrderRule } from './curry-order-rules-BOMf1JS7.js';
3
3
  import 'type-fest';
4
4
 
package/dist/sort.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { I as IterableContainer, f as ReorderedArray } from './types-DCY4LHuA.cjs';
1
+ import { I as IterableContainer, f as ReorderedArray } from './types-BMu1PIvo.cjs';
2
2
  import 'type-fest';
3
3
 
4
4
  /**
package/dist/sort.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { I as IterableContainer, f as ReorderedArray } from './types-DCY4LHuA.js';
1
+ import { I as IterableContainer, f as ReorderedArray } from './types-BMu1PIvo.js';
2
2
  import 'type-fest';
3
3
 
4
4
  /**
package/dist/split.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkTFN3JWPScjs = require('./chunk-TFN3JWPS.cjs');exports.split = _chunkTFN3JWPScjs.a;
@@ -0,0 +1,60 @@
1
+ import { IsFloat, ArraySlice, Split as Split$1, NonNegative } from 'type-fest';
2
+
3
+ type Split<S extends string, Separator extends string, N extends number | undefined = undefined> = string extends S ? Array<string> : string extends Separator ? Array<string> : number extends N ? Array<string> : IsFloat<N> extends true ? Array<string> : ArraySlice<Split$1<S, Separator>, 0, N extends number ? NonNegative<N> : never>;
4
+ /**
5
+ * Takes a pattern and divides this string into an ordered list of substrings by
6
+ * searching for the pattern, puts these substrings into an array, and returns
7
+ * the array. This function mirrors the built-in [`String.prototype.split`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split)
8
+ * method.
9
+ *
10
+ * @param data - The string to split.
11
+ * @param separator - The pattern describing where each split should occur. Can
12
+ * be a string, or a regular expression.
13
+ * @param limit - A non-negative integer specifying a limit on the number of
14
+ * substrings to be included in the array. If provided, splits the string at
15
+ * each occurrence of the specified separator, but stops when limit entries have
16
+ * been placed in the array. Any leftover text is not included in the array at
17
+ * all. The array may contain fewer entries than limit if the end of the string
18
+ * is reached before the limit is reached. If limit is 0, [] is returned.
19
+ * @returns An Array of strings, split at each point where the separator occurs
20
+ * in the given string.
21
+ * @signature
22
+ * R.split(data, separator, limit);
23
+ * @example
24
+ * R.split("a,b,c", ","); //=> ["a", "b", "c"]
25
+ * R.split("a,b,c", ",", 2); //=> ["a", "b"]
26
+ * R.split("a1b2c3d", /\d/u); //=> ["a", "b", "c", "d"]
27
+ * @dataFirst
28
+ * @category String
29
+ */
30
+ declare function split(data: string, separator: RegExp, limit?: number): Array<string>;
31
+ declare function split<S extends string, Separator extends string, N extends number | undefined = undefined>(data: S, separator: Separator, limit?: N): Split<S, Separator, N>;
32
+ /**
33
+ * Takes a pattern and divides this string into an ordered list of substrings by
34
+ * searching for the pattern, puts these substrings into an array, and returns
35
+ * the array. This function mirrors the built-in [`String.prototype.split`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split)
36
+ * method.
37
+ *
38
+ * @param separator - The pattern describing where each split should occur. Can
39
+ * be a string, or a regular expression.
40
+ * @param limit - A non-negative integer specifying a limit on the number of
41
+ * substrings to be included in the array. If provided, splits the string at
42
+ * each occurrence of the specified separator, but stops when limit entries have
43
+ * been placed in the array. Any leftover text is not included in the array at
44
+ * all. The array may contain fewer entries than limit if the end of the string
45
+ * is reached before the limit is reached. If limit is 0, [] is returned.
46
+ * @returns An Array of strings, split at each point where the separator occurs
47
+ * in the given string.
48
+ * @signature
49
+ * R.split(separator, limit)(data);
50
+ * @example
51
+ * R.pipe("a,b,c", R.split(",")); //=> ["a", "b", "c"]
52
+ * R.pipe("a,b,c", R.split(",", 2)); //=> ["a", "b"]
53
+ * R.pipe("a1b2c3d", R.split(/\d/u)); //=> ["a", "b", "c", "d"]
54
+ * @dataLast
55
+ * @category String
56
+ */
57
+ declare function split(separator: RegExp, limit?: number): (data: string) => Array<string>;
58
+ declare function split<S extends string, Separator extends string, N extends number | undefined = undefined>(separator: Separator, limit?: N): (data: S) => Split<S, Separator, N>;
59
+
60
+ export { split };
@@ -0,0 +1,60 @@
1
+ import { IsFloat, ArraySlice, Split as Split$1, NonNegative } from 'type-fest';
2
+
3
+ type Split<S extends string, Separator extends string, N extends number | undefined = undefined> = string extends S ? Array<string> : string extends Separator ? Array<string> : number extends N ? Array<string> : IsFloat<N> extends true ? Array<string> : ArraySlice<Split$1<S, Separator>, 0, N extends number ? NonNegative<N> : never>;
4
+ /**
5
+ * Takes a pattern and divides this string into an ordered list of substrings by
6
+ * searching for the pattern, puts these substrings into an array, and returns
7
+ * the array. This function mirrors the built-in [`String.prototype.split`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split)
8
+ * method.
9
+ *
10
+ * @param data - The string to split.
11
+ * @param separator - The pattern describing where each split should occur. Can
12
+ * be a string, or a regular expression.
13
+ * @param limit - A non-negative integer specifying a limit on the number of
14
+ * substrings to be included in the array. If provided, splits the string at
15
+ * each occurrence of the specified separator, but stops when limit entries have
16
+ * been placed in the array. Any leftover text is not included in the array at
17
+ * all. The array may contain fewer entries than limit if the end of the string
18
+ * is reached before the limit is reached. If limit is 0, [] is returned.
19
+ * @returns An Array of strings, split at each point where the separator occurs
20
+ * in the given string.
21
+ * @signature
22
+ * R.split(data, separator, limit);
23
+ * @example
24
+ * R.split("a,b,c", ","); //=> ["a", "b", "c"]
25
+ * R.split("a,b,c", ",", 2); //=> ["a", "b"]
26
+ * R.split("a1b2c3d", /\d/u); //=> ["a", "b", "c", "d"]
27
+ * @dataFirst
28
+ * @category String
29
+ */
30
+ declare function split(data: string, separator: RegExp, limit?: number): Array<string>;
31
+ declare function split<S extends string, Separator extends string, N extends number | undefined = undefined>(data: S, separator: Separator, limit?: N): Split<S, Separator, N>;
32
+ /**
33
+ * Takes a pattern and divides this string into an ordered list of substrings by
34
+ * searching for the pattern, puts these substrings into an array, and returns
35
+ * the array. This function mirrors the built-in [`String.prototype.split`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split)
36
+ * method.
37
+ *
38
+ * @param separator - The pattern describing where each split should occur. Can
39
+ * be a string, or a regular expression.
40
+ * @param limit - A non-negative integer specifying a limit on the number of
41
+ * substrings to be included in the array. If provided, splits the string at
42
+ * each occurrence of the specified separator, but stops when limit entries have
43
+ * been placed in the array. Any leftover text is not included in the array at
44
+ * all. The array may contain fewer entries than limit if the end of the string
45
+ * is reached before the limit is reached. If limit is 0, [] is returned.
46
+ * @returns An Array of strings, split at each point where the separator occurs
47
+ * in the given string.
48
+ * @signature
49
+ * R.split(separator, limit)(data);
50
+ * @example
51
+ * R.pipe("a,b,c", R.split(",")); //=> ["a", "b", "c"]
52
+ * R.pipe("a,b,c", R.split(",", 2)); //=> ["a", "b"]
53
+ * R.pipe("a1b2c3d", R.split(/\d/u)); //=> ["a", "b", "c", "d"]
54
+ * @dataLast
55
+ * @category String
56
+ */
57
+ declare function split(separator: RegExp, limit?: number): (data: string) => Array<string>;
58
+ declare function split<S extends string, Separator extends string, N extends number | undefined = undefined>(separator: Separator, limit?: N): (data: S) => Split<S, Separator, N>;
59
+
60
+ export { split };
package/dist/split.js ADDED
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-RBODUO3Q.js";export{a as split};
@@ -9,8 +9,11 @@ type StringToPath<T extends string> = string extends T ? never : T extends '' ?
9
9
  * access" functions like `pathOr` or `setPath`.
10
10
  *
11
11
  * @param path - A string path.
12
- * @signature P.stringToPathArray(path)
13
- * @example P.stringToPathArray('a.b[0].c') // => ['a', 'b', '0', 'c']
12
+ *
13
+ * @signature
14
+ * P.stringToPathArray(path)
15
+ * @example
16
+ * P.stringToPathArray('a.b[0].c') // => ['a', 'b', '0', 'c']
14
17
  * @dataFirst
15
18
  * @category Utility
16
19
  */
@@ -9,8 +9,11 @@ type StringToPath<T extends string> = string extends T ? never : T extends '' ?
9
9
  * access" functions like `pathOr` or `setPath`.
10
10
  *
11
11
  * @param path - A string path.
12
- * @signature P.stringToPathArray(path)
13
- * @example P.stringToPathArray('a.b[0].c') // => ['a', 'b', '0', 'c']
12
+ *
13
+ * @signature
14
+ * P.stringToPathArray(path)
15
+ * @example
16
+ * P.stringToPathArray('a.b[0].c') // => ['a', 'b', '0', 'c']
14
17
  * @dataFirst
15
18
  * @category Utility
16
19
  */
package/dist/sum.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkI237OF5Rcjs = require('./chunk-I237OF5R.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');exports.sum = _chunkI237OF5Rcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk6TRXWRYJcjs = require('./chunk-6TRXWRYJ.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');exports.sum = _chunk6TRXWRYJcjs.a;