@vinicunca/perkakas 1.5.0 → 1.7.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 (569) hide show
  1. package/dist/add-prop.cjs +1 -1
  2. package/dist/add-prop.d.cts +1 -1
  3. package/dist/add-prop.d.ts +1 -1
  4. package/dist/add-prop.js +1 -1
  5. package/dist/add.cjs +1 -1
  6. package/dist/add.js +1 -1
  7. package/dist/all-pass.cjs +1 -1
  8. package/dist/all-pass.js +1 -1
  9. package/dist/any-pass.cjs +1 -1
  10. package/dist/any-pass.js +1 -1
  11. package/dist/array-required-prefix-Ck4lHkbA.d.cts +33 -0
  12. package/dist/array-required-prefix-DXv_WnmG.d.ts +33 -0
  13. package/dist/bounded-partial-BqwRN49U.d.cts +15 -0
  14. package/dist/bounded-partial-BzynYDVs.d.ts +15 -0
  15. package/dist/ceil.cjs +1 -1
  16. package/dist/ceil.js +1 -1
  17. package/dist/{chunk-AJQEGHF5.cjs → chunk-22AQJBPW.cjs} +1 -1
  18. package/dist/chunk-2HQM73IT.cjs +1 -0
  19. package/dist/chunk-2XGSSTCA.js +1 -0
  20. package/dist/chunk-3DOG24FJ.cjs +1 -0
  21. package/dist/{chunk-6ENW2VLC.cjs → chunk-3LC3CLYE.cjs} +1 -1
  22. package/dist/chunk-44LUF6RO.js +1 -0
  23. package/dist/chunk-4BTTPOEU.cjs +1 -0
  24. package/dist/chunk-4Y6KJJOW.js +1 -0
  25. package/dist/chunk-5PMGMODH.js +1 -0
  26. package/dist/{chunk-GVYLRJPB.cjs → chunk-66JP4PUG.cjs} +1 -1
  27. package/dist/chunk-6M4IYQFZ.js +1 -0
  28. package/dist/chunk-76VE5EC6.cjs +1 -0
  29. package/dist/{chunk-TNA73S2T.cjs → chunk-7C7R7JNX.cjs} +1 -1
  30. package/dist/{chunk-WONMP5WS.js → chunk-7V7IBWP5.js} +1 -1
  31. package/dist/chunk-B6SBIS6W.js +1 -0
  32. package/dist/chunk-BEMQAYI5.cjs +1 -0
  33. package/dist/chunk-BKBHW2XJ.js +1 -0
  34. package/dist/chunk-BSNCALDT.cjs +1 -0
  35. package/dist/chunk-CTGIT5TY.js +1 -0
  36. package/dist/{chunk-UGWBDJPI.cjs → chunk-D4TUHKBA.cjs} +1 -1
  37. package/dist/chunk-EK7ODJWE.js +1 -0
  38. package/dist/chunk-FGMSPUSF.cjs +1 -0
  39. package/dist/chunk-FIO5FNV2.js +1 -0
  40. package/dist/chunk-FOUZI2Q3.cjs +1 -0
  41. package/dist/chunk-GRKRFDIL.js +1 -0
  42. package/dist/chunk-GW4KDK3D.cjs +1 -0
  43. package/dist/chunk-HSNPZS6R.cjs +1 -0
  44. package/dist/chunk-ITDJLXHO.js +1 -0
  45. package/dist/{chunk-FLQYTU5W.cjs → chunk-JHFSYEXB.cjs} +1 -1
  46. package/dist/{chunk-WCPENZWH.js → chunk-JI5FJX2E.js} +1 -1
  47. package/dist/chunk-JYWIRZ2Z.js +1 -0
  48. package/dist/chunk-K26HQR4Y.cjs +1 -0
  49. package/dist/chunk-KYMVIFAW.cjs +1 -0
  50. package/dist/chunk-MBGSSEZN.cjs +1 -0
  51. package/dist/{chunk-22IDCBFS.js → chunk-MPWQN3WY.js} +1 -1
  52. package/dist/chunk-NHTBBY2L.js +1 -0
  53. package/dist/chunk-NQUTCPKD.js +1 -0
  54. package/dist/{chunk-ZQXE6PIV.cjs → chunk-NVCXF5UR.cjs} +1 -1
  55. package/dist/chunk-O74TUGYF.js +1 -0
  56. package/dist/chunk-OKBFQ7B6.js +1 -0
  57. package/dist/{chunk-MHEODCN3.cjs → chunk-OMHZCALN.cjs} +1 -1
  58. package/dist/chunk-P7RCAO7P.cjs +438 -0
  59. package/dist/chunk-QGF2XNZS.cjs +1 -0
  60. package/dist/chunk-R4O7XE2F.cjs +1 -0
  61. package/dist/chunk-RMOD5JNB.cjs +1 -0
  62. package/dist/chunk-RTFVY5D4.cjs +1 -0
  63. package/dist/chunk-SG2YWG6U.cjs +1 -0
  64. package/dist/chunk-SXNRBENP.cjs +1 -0
  65. package/dist/chunk-TSP3FU72.cjs +1 -0
  66. package/dist/chunk-TVMG2NYC.js +1 -0
  67. package/dist/chunk-TWCEO47X.cjs +1 -0
  68. package/dist/{chunk-L4FN2W5Q.cjs → chunk-TXPRX236.cjs} +1 -1
  69. package/dist/{chunk-3K7SNX4D.cjs → chunk-UURK6I3D.cjs} +1 -1
  70. package/dist/chunk-UWMBE6BM.js +1 -0
  71. package/dist/{chunk-VBH6SKKO.js → chunk-VI2QG3FU.js} +1 -1
  72. package/dist/chunk-XCG2UC6T.js +1 -0
  73. package/dist/chunk-YCSQX2SY.js +1 -0
  74. package/dist/{chunk-6XVLHSPK.js → chunk-YRVN4PYH.js} +1 -1
  75. package/dist/chunk-YWIXN5BR.js +1 -0
  76. package/dist/chunk-Z23BZCCD.js +438 -0
  77. package/dist/{chunk-EDZFEURO.js → chunk-Z5YZYBC2.js} +1 -1
  78. package/dist/chunk-Z7D7Q6U3.js +1 -0
  79. package/dist/chunk-ZITGCTSW.js +1 -0
  80. package/dist/chunk-ZMG3NQDL.js +1 -0
  81. package/dist/chunk.cjs +1 -1
  82. package/dist/chunk.d.cts +37 -41
  83. package/dist/chunk.d.ts +37 -41
  84. package/dist/chunk.js +1 -1
  85. package/dist/clamp.cjs +1 -1
  86. package/dist/clamp.js +1 -1
  87. package/dist/clamped-integer-subtract-DZ7rsJE4.d.cts +15 -0
  88. package/dist/clamped-integer-subtract-DZ7rsJE4.d.ts +15 -0
  89. package/dist/clone.cjs +1 -1
  90. package/dist/clone.js +1 -1
  91. package/dist/coerced-array-DRz3tqda.d.cts +14 -0
  92. package/dist/coerced-array-DRz3tqda.d.ts +14 -0
  93. package/dist/concat.cjs +1 -1
  94. package/dist/concat.js +1 -1
  95. package/dist/conditional.cjs +1 -1
  96. package/dist/conditional.d.cts +133 -43
  97. package/dist/conditional.d.ts +133 -43
  98. package/dist/conditional.js +1 -1
  99. package/dist/constant.cjs +1 -1
  100. package/dist/constant.js +1 -1
  101. package/dist/count-by.cjs +1 -1
  102. package/dist/count-by.d.cts +5 -4
  103. package/dist/count-by.d.ts +5 -4
  104. package/dist/count-by.js +1 -1
  105. package/dist/curry.cjs +1 -1
  106. package/dist/curry.js +1 -1
  107. package/dist/debounce.cjs +1 -1
  108. package/dist/debounce.js +1 -1
  109. package/dist/difference-with.cjs +1 -1
  110. package/dist/difference-with.js +1 -1
  111. package/dist/difference.cjs +1 -1
  112. package/dist/difference.js +1 -1
  113. package/dist/divide.cjs +1 -1
  114. package/dist/divide.js +1 -1
  115. package/dist/do-nothing.cjs +1 -1
  116. package/dist/do-nothing.js +1 -1
  117. package/dist/drop-first-by.cjs +1 -1
  118. package/dist/drop-first-by.d.cts +1 -1
  119. package/dist/drop-first-by.d.ts +1 -1
  120. package/dist/drop-first-by.js +1 -1
  121. package/dist/drop-last-while.cjs +1 -1
  122. package/dist/drop-last-while.js +1 -1
  123. package/dist/drop-last.cjs +1 -1
  124. package/dist/drop-last.js +1 -1
  125. package/dist/drop-while.cjs +1 -1
  126. package/dist/drop-while.js +1 -1
  127. package/dist/drop.cjs +1 -1
  128. package/dist/drop.d.cts +18 -30
  129. package/dist/drop.d.ts +18 -30
  130. package/dist/drop.js +1 -1
  131. package/dist/entries.cjs +1 -1
  132. package/dist/entries.d.cts +8 -5
  133. package/dist/entries.d.ts +8 -5
  134. package/dist/entries.js +1 -1
  135. package/dist/{enumerable-string-key-of-BQ4aR5ep.d.cts → enumerable-string-key-of-C4gsorXe.d.ts} +3 -1
  136. package/dist/{enumerable-string-key-of-BQ4aR5ep.d.ts → enumerable-string-key-of-D8w_3Yg8.d.cts} +3 -1
  137. package/dist/enumerable-string-keyed-value-of-BU9R_cEk.d.cts +9 -0
  138. package/dist/enumerable-string-keyed-value-of-BU9R_cEk.d.ts +9 -0
  139. package/dist/evolve.cjs +1 -1
  140. package/dist/evolve.js +1 -1
  141. package/dist/filter.cjs +1 -1
  142. package/dist/filter.d.cts +12 -4
  143. package/dist/filter.d.ts +12 -4
  144. package/dist/filter.js +1 -1
  145. package/dist/filtered-array-BCjySbC6.d.cts +18 -0
  146. package/dist/filtered-array-JKATL39M.d.ts +18 -0
  147. package/dist/find-index.cjs +1 -1
  148. package/dist/find-index.js +1 -1
  149. package/dist/find-last-index.cjs +1 -1
  150. package/dist/find-last-index.js +1 -1
  151. package/dist/find-last.cjs +1 -1
  152. package/dist/find-last.js +1 -1
  153. package/dist/find.cjs +1 -1
  154. package/dist/find.js +1 -1
  155. package/dist/first-by.cjs +1 -1
  156. package/dist/first-by.d.cts +1 -1
  157. package/dist/first-by.d.ts +1 -1
  158. package/dist/first-by.js +1 -1
  159. package/dist/first.cjs +1 -1
  160. package/dist/first.js +1 -1
  161. package/dist/flat-map.cjs +1 -1
  162. package/dist/flat-map.js +1 -1
  163. package/dist/flat.cjs +1 -1
  164. package/dist/flat.d.cts +2 -5
  165. package/dist/flat.d.ts +2 -5
  166. package/dist/flat.js +1 -1
  167. package/dist/floor.cjs +1 -1
  168. package/dist/floor.js +1 -1
  169. package/dist/for-each-obj.cjs +1 -1
  170. package/dist/for-each-obj.d.cts +3 -2
  171. package/dist/for-each-obj.d.ts +3 -2
  172. package/dist/for-each-obj.js +1 -1
  173. package/dist/for-each.cjs +1 -1
  174. package/dist/for-each.js +1 -1
  175. package/dist/from-entries.cjs +1 -1
  176. package/dist/from-entries.d.cts +4 -2
  177. package/dist/from-entries.d.ts +4 -2
  178. package/dist/from-entries.js +1 -1
  179. package/dist/from-keys.cjs +1 -1
  180. package/dist/from-keys.d.cts +4 -3
  181. package/dist/from-keys.d.ts +4 -3
  182. package/dist/from-keys.js +1 -1
  183. package/dist/funnel.cjs +1 -1
  184. package/dist/funnel.d.cts +7 -7
  185. package/dist/funnel.d.ts +7 -7
  186. package/dist/funnel.js +1 -1
  187. package/dist/funnel.lodash-debounce-with-cached-value.test.cjs +1 -1
  188. package/dist/funnel.lodash-debounce-with-cached-value.test.js +1 -1
  189. package/dist/funnel.lodash-debounce.test.cjs +1 -1
  190. package/dist/funnel.lodash-debounce.test.js +1 -1
  191. package/dist/funnel.lodash-throttle-with-cached-value.test.cjs +1 -1
  192. package/dist/funnel.lodash-throttle-with-cached-value.test.js +1 -1
  193. package/dist/funnel.lodash-throttle.test.cjs +1 -1
  194. package/dist/funnel.lodash-throttle.test.js +1 -1
  195. package/dist/funnel.perkakas-debounce.test.cjs +1 -0
  196. package/dist/funnel.perkakas-debounce.test.js +1 -0
  197. package/dist/funnel.reference-batch.test.cjs +1 -1
  198. package/dist/funnel.reference-batch.test.js +1 -1
  199. package/dist/funnel.test-d.cjs +1 -1
  200. package/dist/funnel.test-d.js +1 -1
  201. package/dist/funnel.test.cjs +1 -1
  202. package/dist/funnel.test.js +1 -1
  203. package/dist/group-by-prop.cjs +1 -0
  204. package/dist/group-by-prop.d.cts +93 -0
  205. package/dist/group-by-prop.d.ts +93 -0
  206. package/dist/group-by-prop.js +1 -0
  207. package/dist/group-by.cjs +1 -1
  208. package/dist/group-by.d.cts +15 -4
  209. package/dist/group-by.d.ts +15 -4
  210. package/dist/group-by.js +1 -1
  211. package/dist/has-at-least.cjs +1 -1
  212. package/dist/has-at-least.d.cts +7 -15
  213. package/dist/has-at-least.d.ts +7 -15
  214. package/dist/has-at-least.js +1 -1
  215. package/dist/has-sub-object.cjs +1 -1
  216. package/dist/has-sub-object.js +1 -1
  217. package/dist/human-readable-file-size.cjs +1 -1
  218. package/dist/human-readable-file-size.js +1 -1
  219. package/dist/identity.cjs +1 -1
  220. package/dist/identity.js +1 -1
  221. package/dist/if-D4QIikQ1.d.cts +5 -0
  222. package/dist/if-D4QIikQ1.d.ts +5 -0
  223. package/dist/index-by.cjs +1 -1
  224. package/dist/index-by.d.cts +5 -4
  225. package/dist/index-by.d.ts +5 -4
  226. package/dist/index-by.js +1 -1
  227. package/dist/index.cjs +1 -1
  228. package/dist/index.d.cts +15 -8
  229. package/dist/index.d.ts +15 -8
  230. package/dist/index.js +1 -1
  231. package/dist/intersection-with.cjs +1 -1
  232. package/dist/intersection-with.js +1 -1
  233. package/dist/intersection.cjs +1 -1
  234. package/dist/intersection.js +1 -1
  235. package/dist/invert.cjs +1 -1
  236. package/dist/invert.d.cts +2 -1
  237. package/dist/invert.d.ts +2 -1
  238. package/dist/invert.js +1 -1
  239. package/dist/is-array.cjs +1 -1
  240. package/dist/is-array.js +1 -1
  241. package/dist/is-big-int.cjs +1 -1
  242. package/dist/is-big-int.js +1 -1
  243. package/dist/is-boolean.cjs +1 -1
  244. package/dist/is-boolean.js +1 -1
  245. package/dist/is-bounded-record-C9WAwfA8.d.cts +30 -0
  246. package/dist/is-bounded-record-C9WAwfA8.d.ts +30 -0
  247. package/dist/is-date.cjs +1 -1
  248. package/dist/is-date.js +1 -1
  249. package/dist/is-deep-equal.cjs +1 -1
  250. package/dist/is-deep-equal.js +1 -1
  251. package/dist/is-defined.cjs +1 -1
  252. package/dist/is-defined.js +1 -1
  253. package/dist/is-empty.cjs +1 -1
  254. package/dist/is-empty.js +1 -1
  255. package/dist/is-error.cjs +1 -1
  256. package/dist/is-error.js +1 -1
  257. package/dist/is-function.cjs +1 -1
  258. package/dist/is-function.js +1 -1
  259. package/dist/is-included-in.cjs +1 -1
  260. package/dist/is-included-in.js +1 -1
  261. package/dist/is-non-null.cjs +1 -1
  262. package/dist/is-non-null.js +1 -1
  263. package/dist/is-non-nullish.cjs +1 -1
  264. package/dist/is-non-nullish.js +1 -1
  265. package/dist/is-not.cjs +1 -1
  266. package/dist/is-not.js +1 -1
  267. package/dist/is-nullish.cjs +1 -1
  268. package/dist/is-nullish.js +1 -1
  269. package/dist/is-number.cjs +1 -1
  270. package/dist/is-number.js +1 -1
  271. package/dist/is-object-type.cjs +1 -1
  272. package/dist/is-object-type.js +1 -1
  273. package/dist/is-plain-object.cjs +1 -1
  274. package/dist/is-plain-object.js +1 -1
  275. package/dist/is-promise.cjs +1 -1
  276. package/dist/is-promise.js +1 -1
  277. package/dist/is-shallow-equal.cjs +1 -1
  278. package/dist/is-shallow-equal.js +1 -1
  279. package/dist/is-strict-equal.cjs +1 -1
  280. package/dist/is-strict-equal.js +1 -1
  281. package/dist/is-string.cjs +1 -1
  282. package/dist/is-string.js +1 -1
  283. package/dist/is-symbol.cjs +1 -1
  284. package/dist/is-symbol.js +1 -1
  285. package/dist/is-truthy.cjs +1 -1
  286. package/dist/is-truthy.js +1 -1
  287. package/dist/join.cjs +1 -1
  288. package/dist/join.js +1 -1
  289. package/dist/key-codes.cjs +1 -1
  290. package/dist/key-codes.js +1 -1
  291. package/dist/keys.cjs +1 -1
  292. package/dist/keys.d.cts +4 -3
  293. package/dist/keys.d.ts +4 -3
  294. package/dist/keys.js +1 -1
  295. package/dist/last.cjs +1 -1
  296. package/dist/last.js +1 -1
  297. package/dist/length.cjs +1 -1
  298. package/dist/length.js +1 -1
  299. package/dist/magic-string.es-2ADFIHOO.cjs +13 -0
  300. package/dist/magic-string.es-PNCTE22R.js +13 -0
  301. package/dist/map-keys.cjs +1 -1
  302. package/dist/map-keys.d.cts +8 -6
  303. package/dist/map-keys.d.ts +8 -6
  304. package/dist/map-keys.js +1 -1
  305. package/dist/map-to-obj.cjs +1 -1
  306. package/dist/map-to-obj.d.cts +30 -12
  307. package/dist/map-to-obj.d.ts +30 -12
  308. package/dist/map-to-obj.js +1 -1
  309. package/dist/map-values.cjs +1 -1
  310. package/dist/map-values.d.cts +3 -2
  311. package/dist/map-values.d.ts +3 -2
  312. package/dist/map-values.js +1 -1
  313. package/dist/map-with-feedback.cjs +1 -1
  314. package/dist/map-with-feedback.js +1 -1
  315. package/dist/map.cjs +1 -1
  316. package/dist/map.js +1 -1
  317. package/dist/mean-by.cjs +1 -1
  318. package/dist/mean-by.js +1 -1
  319. package/dist/merge-all.cjs +1 -1
  320. package/dist/merge-all.d.cts +2 -1
  321. package/dist/merge-all.d.ts +2 -1
  322. package/dist/merge-all.js +1 -1
  323. package/dist/merge-deep.cjs +1 -1
  324. package/dist/merge-deep.js +1 -1
  325. package/dist/merge.cjs +1 -1
  326. package/dist/merge.js +1 -1
  327. package/dist/multiply.cjs +1 -1
  328. package/dist/multiply.js +1 -1
  329. package/dist/nth-by.cjs +1 -1
  330. package/dist/nth-by.d.cts +1 -1
  331. package/dist/nth-by.d.ts +1 -1
  332. package/dist/nth-by.js +1 -1
  333. package/dist/obj-of.cjs +1 -1
  334. package/dist/obj-of.js +1 -1
  335. package/dist/omit-by.cjs +1 -1
  336. package/dist/omit-by.d.cts +7 -6
  337. package/dist/omit-by.d.ts +7 -6
  338. package/dist/omit-by.js +1 -1
  339. package/dist/omit.cjs +1 -1
  340. package/dist/omit.js +1 -1
  341. package/dist/once.cjs +1 -1
  342. package/dist/once.js +1 -1
  343. package/dist/only.cjs +1 -1
  344. package/dist/only.js +1 -1
  345. package/dist/partial-array-Vnf1fBtl.d.cts +10 -0
  346. package/dist/partial-array-Vnf1fBtl.d.ts +10 -0
  347. package/dist/partition.cjs +1 -1
  348. package/dist/partition.js +1 -1
  349. package/dist/path-or.cjs +1 -1
  350. package/dist/path-or.js +1 -1
  351. package/dist/perkakas-type-error-8wPb8T2y.d.cts +17 -0
  352. package/dist/perkakas-type-error-8wPb8T2y.d.ts +17 -0
  353. package/dist/pick-by.cjs +1 -1
  354. package/dist/pick-by.d.cts +11 -11
  355. package/dist/pick-by.d.ts +11 -11
  356. package/dist/pick-by.js +1 -1
  357. package/dist/pick.cjs +1 -1
  358. package/dist/pick.d.cts +52 -7
  359. package/dist/pick.d.ts +52 -7
  360. package/dist/pick.js +1 -1
  361. package/dist/pipe.cjs +1 -1
  362. package/dist/pipe.js +1 -1
  363. package/dist/piped.cjs +1 -1
  364. package/dist/piped.js +1 -1
  365. package/dist/product.cjs +1 -1
  366. package/dist/product.js +1 -1
  367. package/dist/prop.cjs +1 -1
  368. package/dist/prop.js +1 -1
  369. package/dist/pull-object.cjs +1 -1
  370. package/dist/pull-object.d.cts +5 -4
  371. package/dist/pull-object.d.ts +5 -4
  372. package/dist/pull-object.js +1 -1
  373. package/dist/random-integer.cjs +1 -1
  374. package/dist/random-integer.js +1 -1
  375. package/dist/random-string.cjs +1 -1
  376. package/dist/random-string.js +1 -1
  377. package/dist/range.cjs +1 -1
  378. package/dist/range.js +1 -1
  379. package/dist/rank-by.cjs +1 -1
  380. package/dist/rank-by.d.cts +1 -1
  381. package/dist/rank-by.d.ts +1 -1
  382. package/dist/rank-by.js +1 -1
  383. package/dist/reduce.cjs +1 -1
  384. package/dist/reduce.js +1 -1
  385. package/dist/reverse.cjs +1 -1
  386. package/dist/reverse.js +1 -1
  387. package/dist/round.cjs +1 -1
  388. package/dist/round.js +1 -1
  389. package/dist/sample.cjs +1 -1
  390. package/dist/sample.js +1 -1
  391. package/dist/set-path.cjs +1 -1
  392. package/dist/set-path.d.cts +18 -7
  393. package/dist/set-path.d.ts +18 -7
  394. package/dist/set-path.js +1 -1
  395. package/dist/set.cjs +1 -1
  396. package/dist/set.d.cts +1 -1
  397. package/dist/set.d.ts +1 -1
  398. package/dist/set.js +1 -1
  399. package/dist/shuffle.cjs +1 -1
  400. package/dist/shuffle.js +1 -1
  401. package/dist/sleep.cjs +1 -1
  402. package/dist/sleep.js +1 -1
  403. package/dist/slice-string.cjs +1 -1
  404. package/dist/slice-string.js +1 -1
  405. package/dist/slugify.cjs +1 -1
  406. package/dist/slugify.js +1 -1
  407. package/dist/sort-by.cjs +1 -1
  408. package/dist/sort-by.d.cts +1 -1
  409. package/dist/sort-by.d.ts +1 -1
  410. package/dist/sort-by.js +1 -1
  411. package/dist/sort.cjs +1 -1
  412. package/dist/sort.js +1 -1
  413. package/dist/sorted-index-by.cjs +1 -1
  414. package/dist/sorted-index-by.js +1 -1
  415. package/dist/sorted-index-with.cjs +1 -1
  416. package/dist/sorted-index-with.js +1 -1
  417. package/dist/sorted-index.cjs +1 -1
  418. package/dist/sorted-index.js +1 -1
  419. package/dist/sorted-last-index-by.cjs +1 -1
  420. package/dist/sorted-last-index-by.js +1 -1
  421. package/dist/sorted-last-index.cjs +1 -1
  422. package/dist/sorted-last-index.js +1 -1
  423. package/dist/splice.cjs +1 -1
  424. package/dist/splice.js +1 -1
  425. package/dist/split-at.cjs +1 -1
  426. package/dist/split-at.js +1 -1
  427. package/dist/split-when.cjs +1 -1
  428. package/dist/split-when.js +1 -1
  429. package/dist/split.cjs +1 -1
  430. package/dist/split.js +1 -1
  431. package/dist/string-to-path.cjs +1 -1
  432. package/dist/string-to-path.d.cts +33 -11
  433. package/dist/string-to-path.d.ts +33 -11
  434. package/dist/string-to-path.js +1 -1
  435. package/dist/subtract.cjs +1 -1
  436. package/dist/subtract.js +1 -1
  437. package/dist/sum-by.cjs +1 -1
  438. package/dist/sum-by.js +1 -1
  439. package/dist/sum.cjs +1 -1
  440. package/dist/sum.js +1 -1
  441. package/dist/swap-indices.cjs +1 -1
  442. package/dist/swap-indices.js +1 -1
  443. package/dist/swap-props.cjs +1 -1
  444. package/dist/swap-props.js +1 -1
  445. package/dist/take-first-by.cjs +1 -1
  446. package/dist/take-first-by.d.cts +1 -1
  447. package/dist/take-first-by.d.ts +1 -1
  448. package/dist/take-first-by.js +1 -1
  449. package/dist/take-last-while.cjs +1 -1
  450. package/dist/take-last-while.d.cts +2 -0
  451. package/dist/take-last-while.d.ts +2 -0
  452. package/dist/take-last-while.js +1 -1
  453. package/dist/take-last.cjs +1 -1
  454. package/dist/take-last.js +1 -1
  455. package/dist/take-while.cjs +1 -1
  456. package/dist/take-while.d.cts +2 -0
  457. package/dist/take-while.d.ts +2 -0
  458. package/dist/take-while.js +1 -1
  459. package/dist/take.cjs +1 -1
  460. package/dist/take.js +1 -1
  461. package/dist/tap.cjs +1 -1
  462. package/dist/tap.js +1 -1
  463. package/dist/times.cjs +1 -1
  464. package/dist/times.d.cts +1 -9
  465. package/dist/times.d.ts +1 -9
  466. package/dist/times.js +1 -1
  467. package/dist/to-camel-case.cjs +1 -1
  468. package/dist/to-camel-case.js +1 -1
  469. package/dist/to-capital-case.cjs +1 -1
  470. package/dist/to-capital-case.js +1 -1
  471. package/dist/to-constant-case.cjs +1 -1
  472. package/dist/to-constant-case.js +1 -1
  473. package/dist/to-kebab-case.cjs +1 -1
  474. package/dist/to-kebab-case.js +1 -1
  475. package/dist/to-no-case.cjs +1 -1
  476. package/dist/to-no-case.js +1 -1
  477. package/dist/to-pascal-case.cjs +1 -1
  478. package/dist/to-pascal-case.js +1 -1
  479. package/dist/to-pascal-snake-case.cjs +1 -1
  480. package/dist/to-pascal-snake-case.js +1 -1
  481. package/dist/to-sentence-case.cjs +1 -1
  482. package/dist/to-sentence-case.js +1 -1
  483. package/dist/to-snake-case.cjs +1 -1
  484. package/dist/to-snake-case.js +1 -1
  485. package/dist/to-string-DO8zw6jS.d.cts +11 -0
  486. package/dist/to-string-DO8zw6jS.d.ts +11 -0
  487. package/dist/to-train-case.cjs +1 -1
  488. package/dist/to-train-case.js +1 -1
  489. package/dist/tuple-parts-BTivqbtT.d.ts +86 -0
  490. package/dist/tuple-parts-v6av7LMU.d.cts +86 -0
  491. package/dist/unique-by.cjs +1 -1
  492. package/dist/unique-by.js +1 -1
  493. package/dist/unique-with.cjs +1 -1
  494. package/dist/unique-with.js +1 -1
  495. package/dist/unique.cjs +1 -1
  496. package/dist/unique.js +1 -1
  497. package/dist/{upsert-prop-tIHFi_F_.d.cts → upsert-prop-Cc3jEW9l.d.cts} +1 -2
  498. package/dist/{upsert-prop-D0N8486l.d.ts → upsert-prop-CdUtD50i.d.ts} +1 -2
  499. package/dist/values.cjs +1 -1
  500. package/dist/values.d.cts +1 -1
  501. package/dist/values.d.ts +1 -1
  502. package/dist/values.js +1 -1
  503. package/dist/zip-with.cjs +1 -1
  504. package/dist/zip-with.js +1 -1
  505. package/dist/zip.cjs +1 -1
  506. package/dist/zip.js +1 -1
  507. package/package.json +12 -12
  508. package/dist/chunk-2MU3SHCO.js +0 -1
  509. package/dist/chunk-3CFBQYOQ.js +0 -1
  510. package/dist/chunk-5SAUYUEK.js +0 -1
  511. package/dist/chunk-5VXKW6SI.cjs +0 -1
  512. package/dist/chunk-6HSB3NFW.js +0 -1
  513. package/dist/chunk-6L5XEBJG.js +0 -1
  514. package/dist/chunk-A2PAJNYA.js +0 -1
  515. package/dist/chunk-APUBIDDU.cjs +0 -1
  516. package/dist/chunk-AWXJSK4F.js +0 -1
  517. package/dist/chunk-B5QDOWVQ.cjs +0 -1
  518. package/dist/chunk-B7RHAPUE.js +0 -1
  519. package/dist/chunk-BOOMUHPG.js +0 -1
  520. package/dist/chunk-CZLV6ZLZ.js +0 -1
  521. package/dist/chunk-DLXKXNZT.js +0 -1
  522. package/dist/chunk-F3JXHUP4.cjs +0 -1
  523. package/dist/chunk-FMUPPQZE.js +0 -1
  524. package/dist/chunk-GFQXVPLP.cjs +0 -1
  525. package/dist/chunk-GOUUMCT7.cjs +0 -1
  526. package/dist/chunk-HRK4GMT2.cjs +0 -1
  527. package/dist/chunk-I7K3Z4BT.js +0 -1
  528. package/dist/chunk-ICYGL2YZ.js +0 -1
  529. package/dist/chunk-IJ4I5A3K.js +0 -1
  530. package/dist/chunk-IXGOK22A.cjs +0 -1
  531. package/dist/chunk-L4ITKDYB.cjs +0 -1
  532. package/dist/chunk-MBC7VZHY.js +0 -1
  533. package/dist/chunk-NQGMUM3E.cjs +0 -1
  534. package/dist/chunk-OBWPUDD3.cjs +0 -1
  535. package/dist/chunk-OEJ5J23C.js +0 -1
  536. package/dist/chunk-OL2TQDYM.cjs +0 -1
  537. package/dist/chunk-PIF5X7RQ.cjs +0 -1
  538. package/dist/chunk-PWHX2554.js +0 -1
  539. package/dist/chunk-QQMFHVPX.cjs +0 -1
  540. package/dist/chunk-SQZULO7V.js +0 -1
  541. package/dist/chunk-THE6MSJO.cjs +0 -1
  542. package/dist/chunk-UDSRBKNR.js +0 -1
  543. package/dist/chunk-UUYCL4G2.js +0 -1
  544. package/dist/chunk-VRZNQSZN.cjs +0 -1
  545. package/dist/chunk-WYM2JV5T.cjs +0 -1
  546. package/dist/chunk-XLGD5ZUY.cjs +0 -1
  547. package/dist/chunk-XU4TDKMD.cjs +0 -1
  548. package/dist/chunk-YCM6N46T.js +0 -1
  549. package/dist/chunk-Z46FX2Y4.js +0 -1
  550. package/dist/enumerable-string-keyed-value-of-CLzltniW.d.cts +0 -15
  551. package/dist/enumerable-string-keyed-value-of-CLzltniW.d.ts +0 -15
  552. package/dist/exact-record-Dhbe_K-E.d.ts +0 -5
  553. package/dist/exact-record-_isi2JMR.d.cts +0 -5
  554. package/dist/funnel.remeda-debounce.test.cjs +0 -1
  555. package/dist/funnel.remeda-debounce.test.js +0 -1
  556. package/dist/if-bounded-record-Drd4UbBU.d.cts +0 -29
  557. package/dist/if-bounded-record-Drd4UbBU.d.ts +0 -29
  558. package/dist/n-tuple-5jljrt4c.d.cts +0 -10
  559. package/dist/n-tuple-5jljrt4c.d.ts +0 -10
  560. package/dist/reconstructed-record-DchLaSO8.d.cts +0 -10
  561. package/dist/reconstructed-record-DuxOLlMs.d.ts +0 -10
  562. package/dist/take-last-while.spec-d-.cjs +0 -1
  563. package/dist/take-last-while.spec-d-.d.cts +0 -2
  564. package/dist/take-last-while.spec-d-.d.ts +0 -2
  565. package/dist/take-last-while.spec-d-.js +0 -1
  566. package/dist/tuple-parts-CP0H7BrE.d.cts +0 -37
  567. package/dist/tuple-parts-CP0H7BrE.d.ts +0 -37
  568. /package/dist/{funnel.remeda-debounce.test.d.cts → funnel.perkakas-debounce.test.d.cts} +0 -0
  569. /package/dist/{funnel.remeda-debounce.test.d.ts → funnel.perkakas-debounce.test.d.ts} +0 -0
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkZCCHYKDGcjs = require('./chunk-ZCCHYKDG.cjs');exports.isFunction = _chunkZCCHYKDGcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkZCCHYKDGcjs = require('./chunk-ZCCHYKDG.cjs');require('./chunk-MBGSSEZN.cjs');exports.isFunction = _chunkZCCHYKDGcjs.a;
@@ -1 +1 @@
1
- import{a}from"./chunk-VPHS3T3W.js";export{a as isFunction};
1
+ import{a}from"./chunk-VPHS3T3W.js";import"./chunk-EK7ODJWE.js";export{a as isFunction};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWFR3HBYRcjs = require('./chunk-WFR3HBYR.cjs');exports.isIncludedIn = _chunkWFR3HBYRcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWFR3HBYRcjs = require('./chunk-WFR3HBYR.cjs');require('./chunk-MBGSSEZN.cjs');exports.isIncludedIn = _chunkWFR3HBYRcjs.a;
@@ -1 +1 @@
1
- import{a}from"./chunk-75K2QEB3.js";export{a as isIncludedIn};
1
+ import{a}from"./chunk-75K2QEB3.js";import"./chunk-EK7ODJWE.js";export{a as isIncludedIn};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk7XMQFPW7cjs = require('./chunk-7XMQFPW7.cjs');exports.isNonNull = _chunk7XMQFPW7cjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk7XMQFPW7cjs = require('./chunk-7XMQFPW7.cjs');require('./chunk-MBGSSEZN.cjs');exports.isNonNull = _chunk7XMQFPW7cjs.a;
@@ -1 +1 @@
1
- import{a}from"./chunk-6BKLAQWR.js";export{a as isNonNull};
1
+ import{a}from"./chunk-6BKLAQWR.js";import"./chunk-EK7ODJWE.js";export{a as isNonNull};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkDAFN5EJRcjs = require('./chunk-DAFN5EJR.cjs');exports.isNonNullish = _chunkDAFN5EJRcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkDAFN5EJRcjs = require('./chunk-DAFN5EJR.cjs');require('./chunk-MBGSSEZN.cjs');exports.isNonNullish = _chunkDAFN5EJRcjs.a;
@@ -1 +1 @@
1
- import{a}from"./chunk-QPP664N4.js";export{a as isNonNullish};
1
+ import{a}from"./chunk-QPP664N4.js";import"./chunk-EK7ODJWE.js";export{a as isNonNullish};
package/dist/is-not.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkU3OEHN5Pcjs = require('./chunk-U3OEHN5P.cjs');exports.isNot = _chunkU3OEHN5Pcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkU3OEHN5Pcjs = require('./chunk-U3OEHN5P.cjs');require('./chunk-MBGSSEZN.cjs');exports.isNot = _chunkU3OEHN5Pcjs.a;
package/dist/is-not.js CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-G73S4IVJ.js";export{a as isNot};
1
+ import{a}from"./chunk-G73S4IVJ.js";import"./chunk-EK7ODJWE.js";export{a as isNot};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkNBUEBREGcjs = require('./chunk-NBUEBREG.cjs');exports.isNullish = _chunkNBUEBREGcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkNBUEBREGcjs = require('./chunk-NBUEBREG.cjs');require('./chunk-MBGSSEZN.cjs');exports.isNullish = _chunkNBUEBREGcjs.a;
@@ -1 +1 @@
1
- import{a}from"./chunk-3I7FLADN.js";export{a as isNullish};
1
+ import{a}from"./chunk-3I7FLADN.js";import"./chunk-EK7ODJWE.js";export{a as isNullish};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYWTY4X2Rcjs = require('./chunk-YWTY4X2R.cjs');exports.isNumber = _chunkYWTY4X2Rcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYWTY4X2Rcjs = require('./chunk-YWTY4X2R.cjs');require('./chunk-MBGSSEZN.cjs');exports.isNumber = _chunkYWTY4X2Rcjs.a;
package/dist/is-number.js CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-Q2HW4RVT.js";export{a as isNumber};
1
+ import{a}from"./chunk-Q2HW4RVT.js";import"./chunk-EK7ODJWE.js";export{a as isNumber};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkR3TYGYBQcjs = require('./chunk-R3TYGYBQ.cjs');exports.isObjectType = _chunkR3TYGYBQcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkR3TYGYBQcjs = require('./chunk-R3TYGYBQ.cjs');require('./chunk-MBGSSEZN.cjs');exports.isObjectType = _chunkR3TYGYBQcjs.a;
@@ -1 +1 @@
1
- import{a}from"./chunk-EBS4GCKX.js";export{a as isObjectType};
1
+ import{a}from"./chunk-EBS4GCKX.js";import"./chunk-EK7ODJWE.js";export{a as isObjectType};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk7HFKYJCKcjs = require('./chunk-7HFKYJCK.cjs');exports.isPlainObject = _chunk7HFKYJCKcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk7HFKYJCKcjs = require('./chunk-7HFKYJCK.cjs');require('./chunk-MBGSSEZN.cjs');exports.isPlainObject = _chunk7HFKYJCKcjs.a;
@@ -1 +1 @@
1
- import{a}from"./chunk-6AFNPQW2.js";export{a as isPlainObject};
1
+ import{a}from"./chunk-6AFNPQW2.js";import"./chunk-EK7ODJWE.js";export{a as isPlainObject};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWM4KSO6Ccjs = require('./chunk-WM4KSO6C.cjs');exports.isPromise = _chunkWM4KSO6Ccjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWM4KSO6Ccjs = require('./chunk-WM4KSO6C.cjs');require('./chunk-MBGSSEZN.cjs');exports.isPromise = _chunkWM4KSO6Ccjs.a;
@@ -1 +1 @@
1
- import{a}from"./chunk-HFNVS6OX.js";export{a as isPromise};
1
+ import{a}from"./chunk-HFNVS6OX.js";import"./chunk-EK7ODJWE.js";export{a as isPromise};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk7Y6PT4GTcjs = require('./chunk-7Y6PT4GT.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');exports.isShallowEqual = _chunk7Y6PT4GTcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk7Y6PT4GTcjs = require('./chunk-7Y6PT4GT.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');require('./chunk-MBGSSEZN.cjs');exports.isShallowEqual = _chunk7Y6PT4GTcjs.a;
@@ -1 +1 @@
1
- import{a}from"./chunk-H5KJ7ULU.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";export{a as isShallowEqual};
1
+ import{a}from"./chunk-H5KJ7ULU.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";import"./chunk-EK7ODJWE.js";export{a as isShallowEqual};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkZ3F6RC7Scjs = require('./chunk-Z3F6RC7S.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');exports.isStrictEqual = _chunkZ3F6RC7Scjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkZ3F6RC7Scjs = require('./chunk-Z3F6RC7S.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');require('./chunk-MBGSSEZN.cjs');exports.isStrictEqual = _chunkZ3F6RC7Scjs.a;
@@ -1 +1 @@
1
- import{a}from"./chunk-CA4X5NZI.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";export{a as isStrictEqual};
1
+ import{a}from"./chunk-CA4X5NZI.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";import"./chunk-EK7ODJWE.js";export{a as isStrictEqual};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkEHJK4JRFcjs = require('./chunk-EHJK4JRF.cjs');exports.isString = _chunkEHJK4JRFcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkEHJK4JRFcjs = require('./chunk-EHJK4JRF.cjs');require('./chunk-MBGSSEZN.cjs');exports.isString = _chunkEHJK4JRFcjs.a;
package/dist/is-string.js CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-UYLVIAK4.js";export{a as isString};
1
+ import{a}from"./chunk-UYLVIAK4.js";import"./chunk-EK7ODJWE.js";export{a as isString};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSW62SX4Ycjs = require('./chunk-SW62SX4Y.cjs');exports.isSymbol = _chunkSW62SX4Ycjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSW62SX4Ycjs = require('./chunk-SW62SX4Y.cjs');require('./chunk-MBGSSEZN.cjs');exports.isSymbol = _chunkSW62SX4Ycjs.a;
package/dist/is-symbol.js CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-YBJMFRB6.js";export{a as isSymbol};
1
+ import{a}from"./chunk-YBJMFRB6.js";import"./chunk-EK7ODJWE.js";export{a as isSymbol};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkOFLOVIU2cjs = require('./chunk-OFLOVIU2.cjs');exports.isTruthy = _chunkOFLOVIU2cjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkOFLOVIU2cjs = require('./chunk-OFLOVIU2.cjs');require('./chunk-MBGSSEZN.cjs');exports.isTruthy = _chunkOFLOVIU2cjs.a;
package/dist/is-truthy.js CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-RFHE6DOJ.js";export{a as isTruthy};
1
+ import{a}from"./chunk-RFHE6DOJ.js";import"./chunk-EK7ODJWE.js";export{a as isTruthy};
package/dist/join.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVOILRHZ5cjs = require('./chunk-VOILRHZ5.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');exports.join = _chunkVOILRHZ5cjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVOILRHZ5cjs = require('./chunk-VOILRHZ5.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');require('./chunk-MBGSSEZN.cjs');exports.join = _chunkVOILRHZ5cjs.a;
package/dist/join.js CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-WKNGQQYL.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";export{a as join};
1
+ import{a}from"./chunk-WKNGQQYL.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";import"./chunk-EK7ODJWE.js";export{a as join};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkUTMQRL7Ncjs = require('./chunk-UTMQRL7N.cjs');exports.KEY_CODES = _chunkUTMQRL7Ncjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkUTMQRL7Ncjs = require('./chunk-UTMQRL7N.cjs');require('./chunk-MBGSSEZN.cjs');exports.KEY_CODES = _chunkUTMQRL7Ncjs.a;
package/dist/key-codes.js CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-BQA4B5JX.js";export{a as KEY_CODES};
1
+ import{a}from"./chunk-BQA4B5JX.js";import"./chunk-EK7ODJWE.js";export{a as KEY_CODES};
package/dist/keys.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVHOWC6UMcjs = require('./chunk-VHOWC6UM.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');exports.keys = _chunkVHOWC6UMcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVHOWC6UMcjs = require('./chunk-VHOWC6UM.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');require('./chunk-MBGSSEZN.cjs');exports.keys = _chunkVHOWC6UMcjs.a;
package/dist/keys.d.cts CHANGED
@@ -1,12 +1,13 @@
1
- import { E as EnumerableStringKeyOf } from './enumerable-string-key-of-BQ4aR5ep.cjs';
1
+ import { E as EnumerableStringKeyOf } from './enumerable-string-key-of-D8w_3Yg8.cjs';
2
2
  import { I as IterableContainer } from './iterable-container-BTpDVdNc.cjs';
3
+ import { T as ToString } from './to-string-DO8zw6jS.cjs';
3
4
 
4
5
  type Keys<T> = T extends IterableContainer ? ArrayKeys<T> : ObjectKeys<T>;
5
6
  type ArrayKeys<T extends IterableContainer> = {
6
- -readonly [Index in keyof T]: Index extends number | string ? `${IsIndexAfterSpread<T, Index> extends true ? number : Index}` : never;
7
+ -readonly [Index in keyof T]: Index extends number | string ? ToString<IsIndexAfterSpread<T, Index> extends true ? number : Index> : never;
7
8
  };
8
9
  type IsIndexAfterSpread<T extends IterableContainer, Index extends number | string> = IndicesAfterSpread<T> extends never ? false : Index extends `${IndicesAfterSpread<T>}` ? true : false;
9
- type IndicesAfterSpread<T extends [] | ReadonlyArray<unknown>, Iterations extends ReadonlyArray<unknown> = []> = T[number] extends never ? never : T extends readonly [unknown, ...infer Tail] ? IndicesAfterSpread<Tail, [unknown, ...Iterations]> : T extends readonly [...infer Head, unknown] ? IndicesAfterSpread<Head, [unknown, ...Iterations]> | Iterations['length'] : Iterations['length'];
10
+ type IndicesAfterSpread<T extends ReadonlyArray<unknown> | [], Iterations extends ReadonlyArray<unknown> = []> = T[number] extends never ? never : T extends readonly [unknown, ...infer Tail] ? IndicesAfterSpread<Tail, [unknown, ...Iterations]> : T extends readonly [...infer Head, unknown] ? IndicesAfterSpread<Head, [unknown, ...Iterations]> | Iterations['length'] : Iterations['length'];
10
11
  type ObjectKeys<T> = T extends Record<PropertyKey, never> ? [] : Array<EnumerableStringKeyOf<T>>;
11
12
  /**
12
13
  * Returns a new array containing the keys of the array or object.
package/dist/keys.d.ts CHANGED
@@ -1,12 +1,13 @@
1
- import { E as EnumerableStringKeyOf } from './enumerable-string-key-of-BQ4aR5ep.js';
1
+ import { E as EnumerableStringKeyOf } from './enumerable-string-key-of-C4gsorXe.js';
2
2
  import { I as IterableContainer } from './iterable-container-BTpDVdNc.js';
3
+ import { T as ToString } from './to-string-DO8zw6jS.js';
3
4
 
4
5
  type Keys<T> = T extends IterableContainer ? ArrayKeys<T> : ObjectKeys<T>;
5
6
  type ArrayKeys<T extends IterableContainer> = {
6
- -readonly [Index in keyof T]: Index extends number | string ? `${IsIndexAfterSpread<T, Index> extends true ? number : Index}` : never;
7
+ -readonly [Index in keyof T]: Index extends number | string ? ToString<IsIndexAfterSpread<T, Index> extends true ? number : Index> : never;
7
8
  };
8
9
  type IsIndexAfterSpread<T extends IterableContainer, Index extends number | string> = IndicesAfterSpread<T> extends never ? false : Index extends `${IndicesAfterSpread<T>}` ? true : false;
9
- type IndicesAfterSpread<T extends [] | ReadonlyArray<unknown>, Iterations extends ReadonlyArray<unknown> = []> = T[number] extends never ? never : T extends readonly [unknown, ...infer Tail] ? IndicesAfterSpread<Tail, [unknown, ...Iterations]> : T extends readonly [...infer Head, unknown] ? IndicesAfterSpread<Head, [unknown, ...Iterations]> | Iterations['length'] : Iterations['length'];
10
+ type IndicesAfterSpread<T extends ReadonlyArray<unknown> | [], Iterations extends ReadonlyArray<unknown> = []> = T[number] extends never ? never : T extends readonly [unknown, ...infer Tail] ? IndicesAfterSpread<Tail, [unknown, ...Iterations]> : T extends readonly [...infer Head, unknown] ? IndicesAfterSpread<Head, [unknown, ...Iterations]> | Iterations['length'] : Iterations['length'];
10
11
  type ObjectKeys<T> = T extends Record<PropertyKey, never> ? [] : Array<EnumerableStringKeyOf<T>>;
11
12
  /**
12
13
  * Returns a new array containing the keys of the array or object.
package/dist/keys.js CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-ESNMSCOM.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";export{a as keys};
1
+ import{a}from"./chunk-ESNMSCOM.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";import"./chunk-EK7ODJWE.js";export{a as keys};
package/dist/last.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRLUXP6U4cjs = require('./chunk-RLUXP6U4.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');exports.last = _chunkRLUXP6U4cjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRLUXP6U4cjs = require('./chunk-RLUXP6U4.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');require('./chunk-MBGSSEZN.cjs');exports.last = _chunkRLUXP6U4cjs.a;
package/dist/last.js CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-54MVGVJC.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";export{a as last};
1
+ import{a}from"./chunk-54MVGVJC.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";import"./chunk-EK7ODJWE.js";export{a as last};
package/dist/length.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk37ONVI2Mcjs = require('./chunk-37ONVI2M.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');exports.length = _chunk37ONVI2Mcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk37ONVI2Mcjs = require('./chunk-37ONVI2M.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');require('./chunk-MBGSSEZN.cjs');exports.length = _chunk37ONVI2Mcjs.a;
package/dist/length.js CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-I2T3T7TN.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";export{a as length};
1
+ import{a}from"./chunk-I2T3T7TN.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";import"./chunk-EK7ODJWE.js";export{a as length};
@@ -0,0 +1,13 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-MBGSSEZN.cjs');var y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",L=new Uint8Array(64),N=new Uint8Array(128);for(let l=0;l<y.length;l++){let t=y.charCodeAt(l);L[l]=t,N[t]=l}function d(l,t,e){let n=t-e;n=n<0?-n<<1|1:n<<1;do{let i=n&31;n>>>=5,n>0&&(i|=32),l.write(L[i])}while(n>0);return t}var E=1024*16,v=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(l){return Buffer.from(l.buffer,l.byteOffset,l.byteLength).toString()}}:{decode(l){let t="";for(let e=0;e<l.length;e++)t+=String.fromCharCode(l[e]);return t}},S=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(E)}write(t){let{buffer:e}=this;e[this.pos++]=t,this.pos===E&&(this.out+=v.decode(e),this.pos=0)}flush(){let{buffer:t,out:e,pos:n}=this;return n>0?e+v.decode(t.subarray(0,n)):e}};function k(l){let t=new S,e=0,n=0,i=0,r=0;for(let s=0;s<l.length;s++){let h=l[s];if(s>0&&t.write(59),h.length===0)continue;let o=0;for(let u=0;u<h.length;u++){let a=h[u];u>0&&t.write(44),o=d(t,a[0],o),a.length!==1&&(e=d(t,a[1],e),n=d(t,a[2],n),i=d(t,a[3],i),a.length!==4&&(r=d(t,a[4],r)))}}return t.flush()}var p=class l{constructor(t){this.bits=t instanceof l?t.bits.slice():[]}add(t){this.bits[t>>5]|=1<<(t&31)}has(t){return!!(this.bits[t>>5]&1<<(t&31))}},m=class l{constructor(t,e,n){this.start=t,this.end=e,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(t){this.outro+=t}appendRight(t){this.intro=this.intro+t}clone(){let t=new l(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(t){return this.start<t&&t<this.end}eachNext(t){let e=this;for(;e;)t(e),e=e.next}eachPrevious(t){let e=this;for(;e;)t(e),e=e.previous}edit(t,e,n){return this.content=t,n||(this.intro="",this.outro=""),this.storeName=e,this.edited=!0,this}prependLeft(t){this.outro=t+this.outro}prependRight(t){this.intro=t+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(t){let e=t-this.start,n=this.original.slice(0,e),i=this.original.slice(e);this.original=n;let r=new l(t,this.end,i);return r.outro=this.outro,this.outro="",this.end=t,this.edited?(r.edit("",!1),this.content=""):this.content=n,r.next=this.next,r.next&&(r.next.previous=r),r.previous=this,this.next=r,r}toString(){return this.intro+this.content+this.outro}trimEnd(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;let e=this.content.replace(t,"");if(e.length)return e!==this.content&&(this.split(this.start+e.length).edit("",void 0,!0),this.edited&&this.edit(e,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),this.intro.length)return!0}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;let e=this.content.replace(t,"");if(e.length){if(e!==this.content){let n=this.split(this.end-e.length);this.edited&&n.edit(e,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),this.outro.length)return!0}};function A(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?l=>globalThis.btoa(unescape(encodeURIComponent(l))):typeof Buffer=="function"?l=>Buffer.from(l,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var j=A(),w= exports.SourceMap =class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=k(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList),typeof t.debugId<"u"&&(this.debugId=t.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+j(this.toString())}};function $(l){let t=l.split(`
2
+ `),e=t.filter(r=>/^\t+/.test(r)),n=t.filter(r=>/^ {2,}/.test(r));if(e.length===0&&n.length===0)return null;if(e.length>=n.length)return" ";let i=n.reduce((r,s)=>{let h=/^ +/.exec(s)[0].length;return Math.min(h,r)},1/0);return new Array(i+1).join(" ")}function O(l,t){let e=l.split(/[/\\]/),n=t.split(/[/\\]/);for(e.pop();e[0]===n[0];)e.shift(),n.shift();if(e.length){let i=e.length;for(;i--;)e[i]=".."}return e.concat(n).join("/")}var q=Object.prototype.toString;function _(l){return q.call(l)==="[object Object]"}function x(l){let t=l.split(`
3
+ `),e=[];for(let n=0,i=0;n<t.length;n++)e.push(i),i+=t[n].length+1;return function(i){let r=0,s=e.length;for(;r<s;){let u=r+s>>1;i<e[u]?s=u:r=u+1}let h=r-1,o=i-e[h];return{line:h,column:o}}}var T=/\w/,b=class{constructor(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(t,e,n,i){if(e.length){let r=e.length-1,s=e.indexOf(`
4
+ `,0),h=-1;for(;s>=0&&r>s;){let u=[this.generatedCodeColumn,t,n.line,n.column];i>=0&&u.push(i),this.rawSegments.push(u),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,h=s,s=e.indexOf(`
5
+ `,s+1)}let o=[this.generatedCodeColumn,t,n.line,n.column];i>=0&&o.push(i),this.rawSegments.push(o),this.advance(e.slice(h+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(e));this.pending=null}addUneditedChunk(t,e,n,i,r){let s=e.start,h=!0,o=!1;for(;s<e.end;){if(n[s]===`
6
+ `)i.line+=1,i.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,h=!0,o=!1;else{if(this.hires||h||r.has(s)){let u=[this.generatedCodeColumn,t,i.line,i.column];this.hires==="boundary"?T.test(n[s])?o||(this.rawSegments.push(u),o=!0):(this.rawSegments.push(u),o=!1):this.rawSegments.push(u)}i.column+=1,this.generatedCodeColumn+=1,h=!1}s+=1}this.pending=null}advance(t){if(!t)return;let e=t.split(`
7
+ `);if(e.length>1){for(let n=0;n<e.length-1;n++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=e[e.length-1].length}},g=`
8
+ `,f={insertLeft:!1,insertRight:!1,storeName:!1},C= exports.default =class l{constructor(t,e={}){let n=new m(0,t.length,t);Object.defineProperties(this,{original:{writable:!0,value:t},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:n},lastChunk:{writable:!0,value:n},lastSearchedChunk:{writable:!0,value:n},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:e.filename},indentExclusionRanges:{writable:!0,value:e.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new p},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:e.ignoreList},offset:{writable:!0,value:e.offset||0}}),this.byStart[0]=n,this.byEnd[t.length]=n}addSourcemapLocation(t){this.sourcemapLocations.add(t)}append(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.outro+=t,this}appendLeft(t,e){if(t=t+this.offset,typeof e!="string")throw new TypeError("inserted content must be a string");this._split(t);let n=this.byEnd[t];return n?n.appendLeft(e):this.intro+=e,this}appendRight(t,e){if(t=t+this.offset,typeof e!="string")throw new TypeError("inserted content must be a string");this._split(t);let n=this.byStart[t];return n?n.appendRight(e):this.outro+=e,this}clone(){let t=new l(this.original,{filename:this.filename,offset:this.offset}),e=this.firstChunk,n=t.firstChunk=t.lastSearchedChunk=e.clone();for(;e;){t.byStart[n.start]=n,t.byEnd[n.end]=n;let i=e.next,r=i&&i.clone();r&&(n.next=r,r.previous=n,n=r),e=i}return t.lastChunk=n,this.indentExclusionRanges&&(t.indentExclusionRanges=this.indentExclusionRanges.slice()),t.sourcemapLocations=new p(this.sourcemapLocations),t.intro=this.intro,t.outro=this.outro,t}generateDecodedMap(t){t=t||{};let e=0,n=Object.keys(this.storedNames),i=new b(t.hires),r=x(this.original);return this.intro&&i.advance(this.intro),this.firstChunk.eachNext(s=>{let h=r(s.start);s.intro.length&&i.advance(s.intro),s.edited?i.addEdit(e,s.content,h,s.storeName?n.indexOf(s.original):-1):i.addUneditedChunk(e,s,this.original,h,this.sourcemapLocations),s.outro.length&&i.advance(s.outro)}),{file:t.file?t.file.split(/[/\\]/).pop():void 0,sources:[t.source?O(t.file||"",t.source):t.file||""],sourcesContent:t.includeContent?[this.original]:void 0,names:n,mappings:i.raw,x_google_ignoreList:this.ignoreList?[e]:void 0}}generateMap(t){return new w(this.generateDecodedMap(t))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=$(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(t,e){let n=/^[^\r\n]/gm;if(_(t)&&(e=t,t=void 0),t===void 0&&(this._ensureindentStr(),t=this.indentStr||" "),t==="")return this;e=e||{};let i={};e.exclude&&(typeof e.exclude[0]=="number"?[e.exclude]:e.exclude).forEach(a=>{for(let c=a[0];c<a[1];c+=1)i[c]=!0});let r=e.indentStart!==!1,s=u=>r?`${t}${u}`:(r=!0,u);this.intro=this.intro.replace(n,s);let h=0,o=this.firstChunk;for(;o;){let u=o.end;if(o.edited)i[h]||(o.content=o.content.replace(n,s),o.content.length&&(r=o.content[o.content.length-1]===`
9
+ `));else for(h=o.start;h<u;){if(!i[h]){let a=this.original[h];a===`
10
+ `?r=!0:a!=="\r"&&r&&(r=!1,h===o.start||(this._splitChunk(o,h),o=o.next),o.prependRight(t))}h+=1}h=o.end,o=o.next}return this.outro=this.outro.replace(n,s),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(t,e){return f.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),f.insertLeft=!0),this.appendLeft(t,e)}insertRight(t,e){return f.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),f.insertRight=!0),this.prependRight(t,e)}move(t,e,n){if(t=t+this.offset,e=e+this.offset,n=n+this.offset,n>=t&&n<=e)throw new Error("Cannot move a selection inside itself");this._split(t),this._split(e),this._split(n);let i=this.byStart[t],r=this.byEnd[e],s=i.previous,h=r.next,o=this.byStart[n];if(!o&&r===this.lastChunk)return this;let u=o?o.previous:this.lastChunk;return s&&(s.next=h),h&&(h.previous=s),u&&(u.next=i),o&&(o.previous=r),i.previous||(this.firstChunk=r.next),r.next||(this.lastChunk=i.previous,this.lastChunk.next=null),i.previous=u,r.next=o||null,u||(this.firstChunk=i),o||(this.lastChunk=r),this}overwrite(t,e,n,i){return i=i||{},this.update(t,e,n,{...i,overwrite:!i.contentOnly})}update(t,e,n,i){if(t=t+this.offset,e=e+this.offset,typeof n!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;t<0;)t+=this.original.length;for(;e<0;)e+=this.original.length}if(e>this.original.length)throw new Error("end is out of bounds");if(t===e)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(t),this._split(e),i===!0&&(f.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),f.storeName=!0),i={storeName:!0});let r=i!==void 0?i.storeName:!1,s=i!==void 0?i.overwrite:!1;if(r){let u=this.original.slice(t,e);Object.defineProperty(this.storedNames,u,{writable:!0,value:!0,enumerable:!0})}let h=this.byStart[t],o=this.byEnd[e];if(h){let u=h;for(;u!==o;){if(u.next!==this.byStart[u.end])throw new Error("Cannot overwrite across a split point");u=u.next,u.edit("",!1)}h.edit(n,r,!s)}else{let u=new m(t,e,"").edit(n,r);o.next=u,u.previous=o}return this}prepend(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.intro=t+this.intro,this}prependLeft(t,e){if(t=t+this.offset,typeof e!="string")throw new TypeError("inserted content must be a string");this._split(t);let n=this.byEnd[t];return n?n.prependLeft(e):this.intro=e+this.intro,this}prependRight(t,e){if(t=t+this.offset,typeof e!="string")throw new TypeError("inserted content must be a string");this._split(t);let n=this.byStart[t];return n?n.prependRight(e):this.outro=e+this.outro,this}remove(t,e){if(t=t+this.offset,e=e+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;e<0;)e+=this.original.length}if(t===e)return this;if(t<0||e>this.original.length)throw new Error("Character is out of bounds");if(t>e)throw new Error("end must be greater than start");this._split(t),this._split(e);let n=this.byStart[t];for(;n;)n.intro="",n.outro="",n.edit(""),n=e>n.end?this.byStart[n.end]:null;return this}reset(t,e){if(t=t+this.offset,e=e+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;e<0;)e+=this.original.length}if(t===e)return this;if(t<0||e>this.original.length)throw new Error("Character is out of bounds");if(t>e)throw new Error("end must be greater than start");this._split(t),this._split(e);let n=this.byStart[t];for(;n;)n.reset(),n=e>n.end?this.byStart[n.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let t=this.lastChunk;do{if(t.outro.length)return t.outro[t.outro.length-1];if(t.content.length)return t.content[t.content.length-1];if(t.intro.length)return t.intro[t.intro.length-1]}while(t=t.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let t=this.outro.lastIndexOf(g);if(t!==-1)return this.outro.substr(t+1);let e=this.outro,n=this.lastChunk;do{if(n.outro.length>0){if(t=n.outro.lastIndexOf(g),t!==-1)return n.outro.substr(t+1)+e;e=n.outro+e}if(n.content.length>0){if(t=n.content.lastIndexOf(g),t!==-1)return n.content.substr(t+1)+e;e=n.content+e}if(n.intro.length>0){if(t=n.intro.lastIndexOf(g),t!==-1)return n.intro.substr(t+1)+e;e=n.intro+e}}while(n=n.previous);return t=this.intro.lastIndexOf(g),t!==-1?this.intro.substr(t+1)+e:this.intro+e}slice(t=0,e=this.original.length-this.offset){if(t=t+this.offset,e=e+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;e<0;)e+=this.original.length}let n="",i=this.firstChunk;for(;i&&(i.start>t||i.end<=t);){if(i.start<e&&i.end>=e)return n;i=i.next}if(i&&i.edited&&i.start!==t)throw new Error(`Cannot use replaced character ${t} as slice start anchor.`);let r=i;for(;i;){i.intro&&(r!==i||i.start===t)&&(n+=i.intro);let s=i.start<e&&i.end>=e;if(s&&i.edited&&i.end!==e)throw new Error(`Cannot use replaced character ${e} as slice end anchor.`);let h=r===i?t-i.start:0,o=s?i.content.length+e-i.end:i.content.length;if(n+=i.content.slice(h,o),i.outro&&(!s||i.end===e)&&(n+=i.outro),s)break;i=i.next}return n}snip(t,e){let n=this.clone();return n.remove(0,t),n.remove(e,n.original.length),n}_split(t){if(this.byStart[t]||this.byEnd[t])return;let e=this.lastSearchedChunk,n=t>e.end;for(;e;){if(e.contains(t))return this._splitChunk(e,t);e=n?this.byStart[e.end]:this.byEnd[e.start]}}_splitChunk(t,e){if(t.edited&&t.content.length){let i=x(this.original)(e);throw new Error(`Cannot split a chunk that has already been edited (${i.line}:${i.column} \u2013 "${t.original}")`)}let n=t.split(e);return this.byEnd[e]=t,this.byStart[e]=n,this.byEnd[n.end]=n,t===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=t,!0}toString(){let t=this.intro,e=this.firstChunk;for(;e;)t+=e.toString(),e=e.next;return t+this.outro}isEmpty(){let t=this.firstChunk;do if(t.intro.length&&t.intro.trim()||t.content.length&&t.content.trim()||t.outro.length&&t.outro.trim())return!1;while(t=t.next);return!0}length(){let t=this.firstChunk,e=0;do e+=t.intro.length+t.content.length+t.outro.length;while(t=t.next);return e}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimEndAborted(t){let e=new RegExp((t||"\\s")+"+$");if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;let n=this.lastChunk;do{let i=n.end,r=n.trimEnd(e);if(n.end!==i&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),r)return!0;n=n.previous}while(n);return!1}trimEnd(t){return this.trimEndAborted(t),this}trimStartAborted(t){let e=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;let n=this.firstChunk;do{let i=n.end,r=n.trimStart(e);if(n.end!==i&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),r)return!0;n=n.next}while(n);return!1}trimStart(t){return this.trimStartAborted(t),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(t,e){function n(r,s){return typeof e=="string"?e.replace(/\$(\$|&|\d+)/g,(h,o)=>o==="$"?"$":o==="&"?r[0]:+o<r.length?r[+o]:`$${o}`):e(...r,r.index,s,r.groups)}function i(r,s){let h,o=[];for(;h=r.exec(s);)o.push(h);return o}if(t.global)i(t,this.original).forEach(s=>{if(s.index!=null){let h=n(s,this.original);h!==s[0]&&this.overwrite(s.index,s.index+s[0].length,h)}});else{let r=this.original.match(t);if(r&&r.index!=null){let s=n(r,this.original);s!==r[0]&&this.overwrite(r.index,r.index+r[0].length,s)}}return this}_replaceString(t,e){let{original:n}=this,i=n.indexOf(t);return i!==-1&&this.overwrite(i,i+t.length,e),this}replace(t,e){return typeof t=="string"?this._replaceString(t,e):this._replaceRegexp(t,e)}_replaceAllString(t,e){let{original:n}=this,i=t.length;for(let r=n.indexOf(t);r!==-1;r=n.indexOf(t,r+i))n.slice(r,r+i)!==e&&this.overwrite(r,r+i,e);return this}replaceAll(t,e){if(typeof t=="string")return this._replaceAllString(t,e);if(!t.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(t,e)}},R=Object.prototype.hasOwnProperty,I= exports.Bundle =class l{constructor(t={}){this.intro=t.intro||"",this.separator=t.separator!==void 0?t.separator:`
11
+ `,this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={}}addSource(t){if(t instanceof C)return this.addSource({content:t,filename:t.filename,separator:this.separator});if(!_(t)||!t.content)throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`");if(["filename","ignoreList","indentExclusionRanges","separator"].forEach(e=>{R.call(t,e)||(t[e]=t.content[e])}),t.separator===void 0&&(t.separator=this.separator),t.filename)if(!R.call(this.uniqueSourceIndexByFilename,t.filename))this.uniqueSourceIndexByFilename[t.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:t.filename,content:t.content.original});else{let e=this.uniqueSources[this.uniqueSourceIndexByFilename[t.filename]];if(t.content.original!==e.content)throw new Error(`Illegal source: same filename (${t.filename}), different contents`)}return this.sources.push(t),this}append(t,e){return this.addSource({content:new C(t),separator:e&&e.separator||""}),this}clone(){let t=new l({intro:this.intro,separator:this.separator});return this.sources.forEach(e=>{t.addSource({filename:e.filename,content:e.content.clone(),separator:e.separator})}),t}generateDecodedMap(t={}){let e=[],n;this.sources.forEach(r=>{Object.keys(r.content.storedNames).forEach(s=>{~e.indexOf(s)||e.push(s)})});let i=new b(t.hires);return this.intro&&i.advance(this.intro),this.sources.forEach((r,s)=>{s>0&&i.advance(this.separator);let h=r.filename?this.uniqueSourceIndexByFilename[r.filename]:-1,o=r.content,u=x(o.original);o.intro&&i.advance(o.intro),o.firstChunk.eachNext(a=>{let c=u(a.start);a.intro.length&&i.advance(a.intro),r.filename?a.edited?i.addEdit(h,a.content,c,a.storeName?e.indexOf(a.original):-1):i.addUneditedChunk(h,a,o.original,c,o.sourcemapLocations):i.advance(a.content),a.outro.length&&i.advance(a.outro)}),o.outro&&i.advance(o.outro),r.ignoreList&&h!==-1&&(n===void 0&&(n=[]),n.push(h))}),{file:t.file?t.file.split(/[/\\]/).pop():void 0,sources:this.uniqueSources.map(r=>t.file?O(t.file,r.filename):r.filename),sourcesContent:this.uniqueSources.map(r=>t.includeContent?r.content:null),names:e,mappings:i.raw,x_google_ignoreList:n}}generateMap(t){return new w(this.generateDecodedMap(t))}getIndentString(){let t={};return this.sources.forEach(e=>{let n=e.content._getRawIndentString();n!==null&&(t[n]||(t[n]=0),t[n]+=1)}),Object.keys(t).sort((e,n)=>t[e]-t[n])[0]||" "}indent(t){if(arguments.length||(t=this.getIndentString()),t==="")return this;let e=!this.intro||this.intro.slice(-1)===`
12
+ `;return this.sources.forEach((n,i)=>{let r=n.separator!==void 0?n.separator:this.separator,s=e||i>0&&/\r?\n$/.test(r);n.content.indent(t,{exclude:n.indentExclusionRanges,indentStart:s}),e=n.content.lastChar()===`
13
+ `}),this.intro&&(this.intro=t+this.intro.replace(/^[^\n]/gm,(n,i)=>i>0?t+n:n)),this}prepend(t){return this.intro=t+this.intro,this}toString(){let t=this.sources.map((e,n)=>{let i=e.separator!==void 0?e.separator:this.separator;return(n>0?i:"")+e.content.toString()}).join("");return this.intro+t}isEmpty(){return!(this.intro.length&&this.intro.trim()||this.sources.some(t=>!t.content.isEmpty()))}length(){return this.sources.reduce((t,e)=>t+e.content.length(),this.intro.length)}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimStart(t){let e=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(e,""),!this.intro){let n,i=0;do if(n=this.sources[i++],!n)break;while(!n.content.trimStartAborted(t))}return this}trimEnd(t){let e=new RegExp((t||"\\s")+"+$"),n,i=this.sources.length-1;do if(n=this.sources[i--],!n){this.intro=this.intro.replace(e,"");break}while(!n.content.trimEndAborted(t));return this}};exports.Bundle = I; exports.SourceMap = w; exports.default = C;
@@ -0,0 +1,13 @@
1
+ import"./chunk-EK7ODJWE.js";var y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",L=new Uint8Array(64),N=new Uint8Array(128);for(let l=0;l<y.length;l++){let t=y.charCodeAt(l);L[l]=t,N[t]=l}function d(l,t,e){let n=t-e;n=n<0?-n<<1|1:n<<1;do{let i=n&31;n>>>=5,n>0&&(i|=32),l.write(L[i])}while(n>0);return t}var E=1024*16,v=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(l){return Buffer.from(l.buffer,l.byteOffset,l.byteLength).toString()}}:{decode(l){let t="";for(let e=0;e<l.length;e++)t+=String.fromCharCode(l[e]);return t}},S=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(E)}write(t){let{buffer:e}=this;e[this.pos++]=t,this.pos===E&&(this.out+=v.decode(e),this.pos=0)}flush(){let{buffer:t,out:e,pos:n}=this;return n>0?e+v.decode(t.subarray(0,n)):e}};function k(l){let t=new S,e=0,n=0,i=0,r=0;for(let s=0;s<l.length;s++){let h=l[s];if(s>0&&t.write(59),h.length===0)continue;let o=0;for(let u=0;u<h.length;u++){let a=h[u];u>0&&t.write(44),o=d(t,a[0],o),a.length!==1&&(e=d(t,a[1],e),n=d(t,a[2],n),i=d(t,a[3],i),a.length!==4&&(r=d(t,a[4],r)))}}return t.flush()}var p=class l{constructor(t){this.bits=t instanceof l?t.bits.slice():[]}add(t){this.bits[t>>5]|=1<<(t&31)}has(t){return!!(this.bits[t>>5]&1<<(t&31))}},m=class l{constructor(t,e,n){this.start=t,this.end=e,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(t){this.outro+=t}appendRight(t){this.intro=this.intro+t}clone(){let t=new l(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(t){return this.start<t&&t<this.end}eachNext(t){let e=this;for(;e;)t(e),e=e.next}eachPrevious(t){let e=this;for(;e;)t(e),e=e.previous}edit(t,e,n){return this.content=t,n||(this.intro="",this.outro=""),this.storeName=e,this.edited=!0,this}prependLeft(t){this.outro=t+this.outro}prependRight(t){this.intro=t+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(t){let e=t-this.start,n=this.original.slice(0,e),i=this.original.slice(e);this.original=n;let r=new l(t,this.end,i);return r.outro=this.outro,this.outro="",this.end=t,this.edited?(r.edit("",!1),this.content=""):this.content=n,r.next=this.next,r.next&&(r.next.previous=r),r.previous=this,this.next=r,r}toString(){return this.intro+this.content+this.outro}trimEnd(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;let e=this.content.replace(t,"");if(e.length)return e!==this.content&&(this.split(this.start+e.length).edit("",void 0,!0),this.edited&&this.edit(e,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),this.intro.length)return!0}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;let e=this.content.replace(t,"");if(e.length){if(e!==this.content){let n=this.split(this.end-e.length);this.edited&&n.edit(e,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),this.outro.length)return!0}};function A(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?l=>globalThis.btoa(unescape(encodeURIComponent(l))):typeof Buffer=="function"?l=>Buffer.from(l,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var j=A(),w=class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=k(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList),typeof t.debugId<"u"&&(this.debugId=t.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+j(this.toString())}};function $(l){let t=l.split(`
2
+ `),e=t.filter(r=>/^\t+/.test(r)),n=t.filter(r=>/^ {2,}/.test(r));if(e.length===0&&n.length===0)return null;if(e.length>=n.length)return" ";let i=n.reduce((r,s)=>{let h=/^ +/.exec(s)[0].length;return Math.min(h,r)},1/0);return new Array(i+1).join(" ")}function O(l,t){let e=l.split(/[/\\]/),n=t.split(/[/\\]/);for(e.pop();e[0]===n[0];)e.shift(),n.shift();if(e.length){let i=e.length;for(;i--;)e[i]=".."}return e.concat(n).join("/")}var q=Object.prototype.toString;function _(l){return q.call(l)==="[object Object]"}function x(l){let t=l.split(`
3
+ `),e=[];for(let n=0,i=0;n<t.length;n++)e.push(i),i+=t[n].length+1;return function(i){let r=0,s=e.length;for(;r<s;){let u=r+s>>1;i<e[u]?s=u:r=u+1}let h=r-1,o=i-e[h];return{line:h,column:o}}}var T=/\w/,b=class{constructor(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(t,e,n,i){if(e.length){let r=e.length-1,s=e.indexOf(`
4
+ `,0),h=-1;for(;s>=0&&r>s;){let u=[this.generatedCodeColumn,t,n.line,n.column];i>=0&&u.push(i),this.rawSegments.push(u),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,h=s,s=e.indexOf(`
5
+ `,s+1)}let o=[this.generatedCodeColumn,t,n.line,n.column];i>=0&&o.push(i),this.rawSegments.push(o),this.advance(e.slice(h+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(e));this.pending=null}addUneditedChunk(t,e,n,i,r){let s=e.start,h=!0,o=!1;for(;s<e.end;){if(n[s]===`
6
+ `)i.line+=1,i.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,h=!0,o=!1;else{if(this.hires||h||r.has(s)){let u=[this.generatedCodeColumn,t,i.line,i.column];this.hires==="boundary"?T.test(n[s])?o||(this.rawSegments.push(u),o=!0):(this.rawSegments.push(u),o=!1):this.rawSegments.push(u)}i.column+=1,this.generatedCodeColumn+=1,h=!1}s+=1}this.pending=null}advance(t){if(!t)return;let e=t.split(`
7
+ `);if(e.length>1){for(let n=0;n<e.length-1;n++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=e[e.length-1].length}},g=`
8
+ `,f={insertLeft:!1,insertRight:!1,storeName:!1},C=class l{constructor(t,e={}){let n=new m(0,t.length,t);Object.defineProperties(this,{original:{writable:!0,value:t},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:n},lastChunk:{writable:!0,value:n},lastSearchedChunk:{writable:!0,value:n},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:e.filename},indentExclusionRanges:{writable:!0,value:e.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new p},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:e.ignoreList},offset:{writable:!0,value:e.offset||0}}),this.byStart[0]=n,this.byEnd[t.length]=n}addSourcemapLocation(t){this.sourcemapLocations.add(t)}append(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.outro+=t,this}appendLeft(t,e){if(t=t+this.offset,typeof e!="string")throw new TypeError("inserted content must be a string");this._split(t);let n=this.byEnd[t];return n?n.appendLeft(e):this.intro+=e,this}appendRight(t,e){if(t=t+this.offset,typeof e!="string")throw new TypeError("inserted content must be a string");this._split(t);let n=this.byStart[t];return n?n.appendRight(e):this.outro+=e,this}clone(){let t=new l(this.original,{filename:this.filename,offset:this.offset}),e=this.firstChunk,n=t.firstChunk=t.lastSearchedChunk=e.clone();for(;e;){t.byStart[n.start]=n,t.byEnd[n.end]=n;let i=e.next,r=i&&i.clone();r&&(n.next=r,r.previous=n,n=r),e=i}return t.lastChunk=n,this.indentExclusionRanges&&(t.indentExclusionRanges=this.indentExclusionRanges.slice()),t.sourcemapLocations=new p(this.sourcemapLocations),t.intro=this.intro,t.outro=this.outro,t}generateDecodedMap(t){t=t||{};let e=0,n=Object.keys(this.storedNames),i=new b(t.hires),r=x(this.original);return this.intro&&i.advance(this.intro),this.firstChunk.eachNext(s=>{let h=r(s.start);s.intro.length&&i.advance(s.intro),s.edited?i.addEdit(e,s.content,h,s.storeName?n.indexOf(s.original):-1):i.addUneditedChunk(e,s,this.original,h,this.sourcemapLocations),s.outro.length&&i.advance(s.outro)}),{file:t.file?t.file.split(/[/\\]/).pop():void 0,sources:[t.source?O(t.file||"",t.source):t.file||""],sourcesContent:t.includeContent?[this.original]:void 0,names:n,mappings:i.raw,x_google_ignoreList:this.ignoreList?[e]:void 0}}generateMap(t){return new w(this.generateDecodedMap(t))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=$(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(t,e){let n=/^[^\r\n]/gm;if(_(t)&&(e=t,t=void 0),t===void 0&&(this._ensureindentStr(),t=this.indentStr||" "),t==="")return this;e=e||{};let i={};e.exclude&&(typeof e.exclude[0]=="number"?[e.exclude]:e.exclude).forEach(a=>{for(let c=a[0];c<a[1];c+=1)i[c]=!0});let r=e.indentStart!==!1,s=u=>r?`${t}${u}`:(r=!0,u);this.intro=this.intro.replace(n,s);let h=0,o=this.firstChunk;for(;o;){let u=o.end;if(o.edited)i[h]||(o.content=o.content.replace(n,s),o.content.length&&(r=o.content[o.content.length-1]===`
9
+ `));else for(h=o.start;h<u;){if(!i[h]){let a=this.original[h];a===`
10
+ `?r=!0:a!=="\r"&&r&&(r=!1,h===o.start||(this._splitChunk(o,h),o=o.next),o.prependRight(t))}h+=1}h=o.end,o=o.next}return this.outro=this.outro.replace(n,s),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(t,e){return f.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),f.insertLeft=!0),this.appendLeft(t,e)}insertRight(t,e){return f.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),f.insertRight=!0),this.prependRight(t,e)}move(t,e,n){if(t=t+this.offset,e=e+this.offset,n=n+this.offset,n>=t&&n<=e)throw new Error("Cannot move a selection inside itself");this._split(t),this._split(e),this._split(n);let i=this.byStart[t],r=this.byEnd[e],s=i.previous,h=r.next,o=this.byStart[n];if(!o&&r===this.lastChunk)return this;let u=o?o.previous:this.lastChunk;return s&&(s.next=h),h&&(h.previous=s),u&&(u.next=i),o&&(o.previous=r),i.previous||(this.firstChunk=r.next),r.next||(this.lastChunk=i.previous,this.lastChunk.next=null),i.previous=u,r.next=o||null,u||(this.firstChunk=i),o||(this.lastChunk=r),this}overwrite(t,e,n,i){return i=i||{},this.update(t,e,n,{...i,overwrite:!i.contentOnly})}update(t,e,n,i){if(t=t+this.offset,e=e+this.offset,typeof n!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;t<0;)t+=this.original.length;for(;e<0;)e+=this.original.length}if(e>this.original.length)throw new Error("end is out of bounds");if(t===e)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(t),this._split(e),i===!0&&(f.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),f.storeName=!0),i={storeName:!0});let r=i!==void 0?i.storeName:!1,s=i!==void 0?i.overwrite:!1;if(r){let u=this.original.slice(t,e);Object.defineProperty(this.storedNames,u,{writable:!0,value:!0,enumerable:!0})}let h=this.byStart[t],o=this.byEnd[e];if(h){let u=h;for(;u!==o;){if(u.next!==this.byStart[u.end])throw new Error("Cannot overwrite across a split point");u=u.next,u.edit("",!1)}h.edit(n,r,!s)}else{let u=new m(t,e,"").edit(n,r);o.next=u,u.previous=o}return this}prepend(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.intro=t+this.intro,this}prependLeft(t,e){if(t=t+this.offset,typeof e!="string")throw new TypeError("inserted content must be a string");this._split(t);let n=this.byEnd[t];return n?n.prependLeft(e):this.intro=e+this.intro,this}prependRight(t,e){if(t=t+this.offset,typeof e!="string")throw new TypeError("inserted content must be a string");this._split(t);let n=this.byStart[t];return n?n.prependRight(e):this.outro=e+this.outro,this}remove(t,e){if(t=t+this.offset,e=e+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;e<0;)e+=this.original.length}if(t===e)return this;if(t<0||e>this.original.length)throw new Error("Character is out of bounds");if(t>e)throw new Error("end must be greater than start");this._split(t),this._split(e);let n=this.byStart[t];for(;n;)n.intro="",n.outro="",n.edit(""),n=e>n.end?this.byStart[n.end]:null;return this}reset(t,e){if(t=t+this.offset,e=e+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;e<0;)e+=this.original.length}if(t===e)return this;if(t<0||e>this.original.length)throw new Error("Character is out of bounds");if(t>e)throw new Error("end must be greater than start");this._split(t),this._split(e);let n=this.byStart[t];for(;n;)n.reset(),n=e>n.end?this.byStart[n.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let t=this.lastChunk;do{if(t.outro.length)return t.outro[t.outro.length-1];if(t.content.length)return t.content[t.content.length-1];if(t.intro.length)return t.intro[t.intro.length-1]}while(t=t.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let t=this.outro.lastIndexOf(g);if(t!==-1)return this.outro.substr(t+1);let e=this.outro,n=this.lastChunk;do{if(n.outro.length>0){if(t=n.outro.lastIndexOf(g),t!==-1)return n.outro.substr(t+1)+e;e=n.outro+e}if(n.content.length>0){if(t=n.content.lastIndexOf(g),t!==-1)return n.content.substr(t+1)+e;e=n.content+e}if(n.intro.length>0){if(t=n.intro.lastIndexOf(g),t!==-1)return n.intro.substr(t+1)+e;e=n.intro+e}}while(n=n.previous);return t=this.intro.lastIndexOf(g),t!==-1?this.intro.substr(t+1)+e:this.intro+e}slice(t=0,e=this.original.length-this.offset){if(t=t+this.offset,e=e+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;e<0;)e+=this.original.length}let n="",i=this.firstChunk;for(;i&&(i.start>t||i.end<=t);){if(i.start<e&&i.end>=e)return n;i=i.next}if(i&&i.edited&&i.start!==t)throw new Error(`Cannot use replaced character ${t} as slice start anchor.`);let r=i;for(;i;){i.intro&&(r!==i||i.start===t)&&(n+=i.intro);let s=i.start<e&&i.end>=e;if(s&&i.edited&&i.end!==e)throw new Error(`Cannot use replaced character ${e} as slice end anchor.`);let h=r===i?t-i.start:0,o=s?i.content.length+e-i.end:i.content.length;if(n+=i.content.slice(h,o),i.outro&&(!s||i.end===e)&&(n+=i.outro),s)break;i=i.next}return n}snip(t,e){let n=this.clone();return n.remove(0,t),n.remove(e,n.original.length),n}_split(t){if(this.byStart[t]||this.byEnd[t])return;let e=this.lastSearchedChunk,n=t>e.end;for(;e;){if(e.contains(t))return this._splitChunk(e,t);e=n?this.byStart[e.end]:this.byEnd[e.start]}}_splitChunk(t,e){if(t.edited&&t.content.length){let i=x(this.original)(e);throw new Error(`Cannot split a chunk that has already been edited (${i.line}:${i.column} \u2013 "${t.original}")`)}let n=t.split(e);return this.byEnd[e]=t,this.byStart[e]=n,this.byEnd[n.end]=n,t===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=t,!0}toString(){let t=this.intro,e=this.firstChunk;for(;e;)t+=e.toString(),e=e.next;return t+this.outro}isEmpty(){let t=this.firstChunk;do if(t.intro.length&&t.intro.trim()||t.content.length&&t.content.trim()||t.outro.length&&t.outro.trim())return!1;while(t=t.next);return!0}length(){let t=this.firstChunk,e=0;do e+=t.intro.length+t.content.length+t.outro.length;while(t=t.next);return e}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimEndAborted(t){let e=new RegExp((t||"\\s")+"+$");if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;let n=this.lastChunk;do{let i=n.end,r=n.trimEnd(e);if(n.end!==i&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),r)return!0;n=n.previous}while(n);return!1}trimEnd(t){return this.trimEndAborted(t),this}trimStartAborted(t){let e=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;let n=this.firstChunk;do{let i=n.end,r=n.trimStart(e);if(n.end!==i&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),r)return!0;n=n.next}while(n);return!1}trimStart(t){return this.trimStartAborted(t),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(t,e){function n(r,s){return typeof e=="string"?e.replace(/\$(\$|&|\d+)/g,(h,o)=>o==="$"?"$":o==="&"?r[0]:+o<r.length?r[+o]:`$${o}`):e(...r,r.index,s,r.groups)}function i(r,s){let h,o=[];for(;h=r.exec(s);)o.push(h);return o}if(t.global)i(t,this.original).forEach(s=>{if(s.index!=null){let h=n(s,this.original);h!==s[0]&&this.overwrite(s.index,s.index+s[0].length,h)}});else{let r=this.original.match(t);if(r&&r.index!=null){let s=n(r,this.original);s!==r[0]&&this.overwrite(r.index,r.index+r[0].length,s)}}return this}_replaceString(t,e){let{original:n}=this,i=n.indexOf(t);return i!==-1&&this.overwrite(i,i+t.length,e),this}replace(t,e){return typeof t=="string"?this._replaceString(t,e):this._replaceRegexp(t,e)}_replaceAllString(t,e){let{original:n}=this,i=t.length;for(let r=n.indexOf(t);r!==-1;r=n.indexOf(t,r+i))n.slice(r,r+i)!==e&&this.overwrite(r,r+i,e);return this}replaceAll(t,e){if(typeof t=="string")return this._replaceAllString(t,e);if(!t.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(t,e)}},R=Object.prototype.hasOwnProperty,I=class l{constructor(t={}){this.intro=t.intro||"",this.separator=t.separator!==void 0?t.separator:`
11
+ `,this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={}}addSource(t){if(t instanceof C)return this.addSource({content:t,filename:t.filename,separator:this.separator});if(!_(t)||!t.content)throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`");if(["filename","ignoreList","indentExclusionRanges","separator"].forEach(e=>{R.call(t,e)||(t[e]=t.content[e])}),t.separator===void 0&&(t.separator=this.separator),t.filename)if(!R.call(this.uniqueSourceIndexByFilename,t.filename))this.uniqueSourceIndexByFilename[t.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:t.filename,content:t.content.original});else{let e=this.uniqueSources[this.uniqueSourceIndexByFilename[t.filename]];if(t.content.original!==e.content)throw new Error(`Illegal source: same filename (${t.filename}), different contents`)}return this.sources.push(t),this}append(t,e){return this.addSource({content:new C(t),separator:e&&e.separator||""}),this}clone(){let t=new l({intro:this.intro,separator:this.separator});return this.sources.forEach(e=>{t.addSource({filename:e.filename,content:e.content.clone(),separator:e.separator})}),t}generateDecodedMap(t={}){let e=[],n;this.sources.forEach(r=>{Object.keys(r.content.storedNames).forEach(s=>{~e.indexOf(s)||e.push(s)})});let i=new b(t.hires);return this.intro&&i.advance(this.intro),this.sources.forEach((r,s)=>{s>0&&i.advance(this.separator);let h=r.filename?this.uniqueSourceIndexByFilename[r.filename]:-1,o=r.content,u=x(o.original);o.intro&&i.advance(o.intro),o.firstChunk.eachNext(a=>{let c=u(a.start);a.intro.length&&i.advance(a.intro),r.filename?a.edited?i.addEdit(h,a.content,c,a.storeName?e.indexOf(a.original):-1):i.addUneditedChunk(h,a,o.original,c,o.sourcemapLocations):i.advance(a.content),a.outro.length&&i.advance(a.outro)}),o.outro&&i.advance(o.outro),r.ignoreList&&h!==-1&&(n===void 0&&(n=[]),n.push(h))}),{file:t.file?t.file.split(/[/\\]/).pop():void 0,sources:this.uniqueSources.map(r=>t.file?O(t.file,r.filename):r.filename),sourcesContent:this.uniqueSources.map(r=>t.includeContent?r.content:null),names:e,mappings:i.raw,x_google_ignoreList:n}}generateMap(t){return new w(this.generateDecodedMap(t))}getIndentString(){let t={};return this.sources.forEach(e=>{let n=e.content._getRawIndentString();n!==null&&(t[n]||(t[n]=0),t[n]+=1)}),Object.keys(t).sort((e,n)=>t[e]-t[n])[0]||" "}indent(t){if(arguments.length||(t=this.getIndentString()),t==="")return this;let e=!this.intro||this.intro.slice(-1)===`
12
+ `;return this.sources.forEach((n,i)=>{let r=n.separator!==void 0?n.separator:this.separator,s=e||i>0&&/\r?\n$/.test(r);n.content.indent(t,{exclude:n.indentExclusionRanges,indentStart:s}),e=n.content.lastChar()===`
13
+ `}),this.intro&&(this.intro=t+this.intro.replace(/^[^\n]/gm,(n,i)=>i>0?t+n:n)),this}prepend(t){return this.intro=t+this.intro,this}toString(){let t=this.sources.map((e,n)=>{let i=e.separator!==void 0?e.separator:this.separator;return(n>0?i:"")+e.content.toString()}).join("");return this.intro+t}isEmpty(){return!(this.intro.length&&this.intro.trim()||this.sources.some(t=>!t.content.isEmpty()))}length(){return this.sources.reduce((t,e)=>t+e.content.length(),this.intro.length)}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimStart(t){let e=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(e,""),!this.intro){let n,i=0;do if(n=this.sources[i++],!n)break;while(!n.content.trimStartAborted(t))}return this}trimEnd(t){let e=new RegExp((t||"\\s")+"+$"),n,i=this.sources.length-1;do if(n=this.sources[i--],!n){this.intro=this.intro.replace(e,"");break}while(!n.content.trimEndAborted(t));return this}};export{I as Bundle,w as SourceMap,C as default};
package/dist/map-keys.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk5VXKW6SIcjs = require('./chunk-5VXKW6SI.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');exports.mapKeys = _chunk5VXKW6SIcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkKYMVIFAWcjs = require('./chunk-KYMVIFAW.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');require('./chunk-MBGSSEZN.cjs');exports.mapKeys = _chunkKYMVIFAWcjs.a;
@@ -1,8 +1,10 @@
1
- import { E as EnumerableStringKeyOf } from './enumerable-string-key-of-BQ4aR5ep.cjs';
2
- import { E as EnumerableStringKeyedValueOf } from './enumerable-string-keyed-value-of-CLzltniW.cjs';
3
- import { E as ExactRecord } from './exact-record-_isi2JMR.cjs';
1
+ import { B as BoundedPartial } from './bounded-partial-BqwRN49U.cjs';
2
+ import { E as EnumerableStringKeyOf } from './enumerable-string-key-of-D8w_3Yg8.cjs';
3
+ import { E as EnumerableStringKeyedValueOf } from './enumerable-string-keyed-value-of-BU9R_cEk.cjs';
4
+ import './if-D4QIikQ1.cjs';
4
5
  import 'type-fest';
5
- import './if-bounded-record-Drd4UbBU.cjs';
6
+ import './is-bounded-record-C9WAwfA8.cjs';
7
+ import './to-string-DO8zw6jS.cjs';
6
8
 
7
9
  /**
8
10
  * Maps keys of `object` and keeps the same values.
@@ -16,7 +18,7 @@ import './if-bounded-record-Drd4UbBU.cjs';
16
18
  * @dataFirst
17
19
  * @category Object
18
20
  */
19
- declare function mapKeys<T extends {}, S extends PropertyKey>(data: T, keyMapper: (key: EnumerableStringKeyOf<T>, value: EnumerableStringKeyedValueOf<T>, data: T) => S): ExactRecord<S, EnumerableStringKeyedValueOf<T>>;
21
+ declare function mapKeys<T extends {}, S extends PropertyKey>(data: T, keyMapper: (key: EnumerableStringKeyOf<T>, value: EnumerableStringKeyedValueOf<T>, data: T) => S): BoundedPartial<Record<S, EnumerableStringKeyedValueOf<T>>>;
20
22
  /**
21
23
  * Maps keys of `object` and keeps the same values.
22
24
  *
@@ -28,6 +30,6 @@ declare function mapKeys<T extends {}, S extends PropertyKey>(data: T, keyMapper
28
30
  * @dataLast
29
31
  * @category Object
30
32
  */
31
- declare function mapKeys<T extends {}, S extends PropertyKey>(keyMapper: (key: EnumerableStringKeyOf<T>, value: EnumerableStringKeyedValueOf<T>, data: T) => S): (data: T) => ExactRecord<S, EnumerableStringKeyedValueOf<T>>;
33
+ declare function mapKeys<T extends {}, S extends PropertyKey>(keyMapper: (key: EnumerableStringKeyOf<T>, value: EnumerableStringKeyedValueOf<T>, data: T) => S): (data: T) => BoundedPartial<Record<S, EnumerableStringKeyedValueOf<T>>>;
32
34
 
33
35
  export { mapKeys };
@@ -1,8 +1,10 @@
1
- import { E as EnumerableStringKeyOf } from './enumerable-string-key-of-BQ4aR5ep.js';
2
- import { E as EnumerableStringKeyedValueOf } from './enumerable-string-keyed-value-of-CLzltniW.js';
3
- import { E as ExactRecord } from './exact-record-Dhbe_K-E.js';
1
+ import { B as BoundedPartial } from './bounded-partial-BzynYDVs.js';
2
+ import { E as EnumerableStringKeyOf } from './enumerable-string-key-of-C4gsorXe.js';
3
+ import { E as EnumerableStringKeyedValueOf } from './enumerable-string-keyed-value-of-BU9R_cEk.js';
4
+ import './if-D4QIikQ1.js';
4
5
  import 'type-fest';
5
- import './if-bounded-record-Drd4UbBU.js';
6
+ import './is-bounded-record-C9WAwfA8.js';
7
+ import './to-string-DO8zw6jS.js';
6
8
 
7
9
  /**
8
10
  * Maps keys of `object` and keeps the same values.
@@ -16,7 +18,7 @@ import './if-bounded-record-Drd4UbBU.js';
16
18
  * @dataFirst
17
19
  * @category Object
18
20
  */
19
- declare function mapKeys<T extends {}, S extends PropertyKey>(data: T, keyMapper: (key: EnumerableStringKeyOf<T>, value: EnumerableStringKeyedValueOf<T>, data: T) => S): ExactRecord<S, EnumerableStringKeyedValueOf<T>>;
21
+ declare function mapKeys<T extends {}, S extends PropertyKey>(data: T, keyMapper: (key: EnumerableStringKeyOf<T>, value: EnumerableStringKeyedValueOf<T>, data: T) => S): BoundedPartial<Record<S, EnumerableStringKeyedValueOf<T>>>;
20
22
  /**
21
23
  * Maps keys of `object` and keeps the same values.
22
24
  *
@@ -28,6 +30,6 @@ declare function mapKeys<T extends {}, S extends PropertyKey>(data: T, keyMapper
28
30
  * @dataLast
29
31
  * @category Object
30
32
  */
31
- declare function mapKeys<T extends {}, S extends PropertyKey>(keyMapper: (key: EnumerableStringKeyOf<T>, value: EnumerableStringKeyedValueOf<T>, data: T) => S): (data: T) => ExactRecord<S, EnumerableStringKeyedValueOf<T>>;
33
+ declare function mapKeys<T extends {}, S extends PropertyKey>(keyMapper: (key: EnumerableStringKeyOf<T>, value: EnumerableStringKeyedValueOf<T>, data: T) => S): (data: T) => BoundedPartial<Record<S, EnumerableStringKeyedValueOf<T>>>;
32
34
 
33
35
  export { mapKeys };
package/dist/map-keys.js CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-YCM6N46T.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";export{a as mapKeys};
1
+ import{a}from"./chunk-5PMGMODH.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";import"./chunk-EK7ODJWE.js";export{a as mapKeys};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkXJFQUA2Ucjs = require('./chunk-XJFQUA2U.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');exports.mapToObj = _chunkXJFQUA2Ucjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkXJFQUA2Ucjs = require('./chunk-XJFQUA2U.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');require('./chunk-MBGSSEZN.cjs');exports.mapToObj = _chunkXJFQUA2Ucjs.a;
@@ -1,13 +1,22 @@
1
1
  /**
2
- * Map each element of an array into an object using a defined callback function.
2
+ * Map each element of an array into an object using a defined mapper that
3
+ * converts each item into an object entry (a tuple of `[<key>, <value>]`).
3
4
  *
4
5
  * There are several other functions that could be used to build an object from
5
6
  * an array:
6
- * `fromKeys` - Builds an object from an array of *keys* and a mapper for values.
7
- * `indexBy` - Builds an object from an array of *values* and a mapper for keys.
8
- * `pullObject` - Builds an object from an array of items with mappers for *both* keys and values.
9
- * `fromEntries` - Builds an object from an array of key-value pairs.
10
- * Refer to the docs for more details.
7
+ * - `fromKeys` - Builds an object from an array of *keys* and a mapper for
8
+ * values.
9
+ * - `indexBy` - Builds an object from an array of *values* and a mapper for
10
+ * keys.
11
+ * - `pullObject` - Builds an object from an array of items with a mapper for
12
+ * values and another mapper for keys.
13
+ * - `fromEntries` - Builds an object from an array of key-value pairs.
14
+ *
15
+ * **Warning**: We strongly advise against using this function unless it is
16
+ * used with a huge input array and your app has stringent memory/gc
17
+ * constraints. We recommend that in most cases you should use `pullObject`,
18
+ * or the composition `fromEntries(map(array, fn))`. This function will be
19
+ * deprecated and **removed** in future versions of the library!
11
20
  *
12
21
  * @param array - The array to map.
13
22
  * @param fn - The mapping function, which should return a tuple of [key, value], similar to Object.fromEntries.
@@ -21,15 +30,24 @@
21
30
  */
22
31
  declare function mapToObj<T, K extends PropertyKey, V>(array: ReadonlyArray<T>, fn: (value: T, index: number, data: ReadonlyArray<T>) => [K, V]): Record<K, V>;
23
32
  /**
24
- * Map each element of an array into an object using a defined callback function.
33
+ * Map each element of an array into an object using a defined mapper that
34
+ * converts each item into an object entry (a tuple of `[<key>, <value>]`).
25
35
  *
26
36
  * There are several other functions that could be used to build an object from
27
37
  * an array:
28
- * `fromKeys` - Builds an object from an array of *keys* and a mapper for values.
29
- * `indexBy` - Builds an object from an array of *values* and a mapper for keys.
30
- * `pullObject` - Builds an object from an array of items with mappers for *both* keys and values.
31
- * `fromEntries` - Builds an object from an array of key-value pairs.
32
- * Refer to the docs for more details.
38
+ * - `fromKeys` - Builds an object from an array of *keys* and a mapper for
39
+ * values.
40
+ * - `indexBy` - Builds an object from an array of *values* and a mapper for
41
+ * keys.
42
+ * - `pullObject` - Builds an object from an array of items with a mapper for
43
+ * values and another mapper for keys.
44
+ * - `fromEntries` - Builds an object from an array of key-value pairs.
45
+ *
46
+ * **Warning**: We strongly advise against using this function unless it is
47
+ * used with a huge input array and your app has stringent memory/gc
48
+ * constraints. We recommend that in most cases you should use `pullObject`,
49
+ * or the composition `fromEntries(map(array, fn))`. This function will be
50
+ * deprecated and **removed** in future versions of the library!
33
51
  *
34
52
  * @param fn - The mapping function, which should return a tuple of [key, value], similar to Object.fromEntries.
35
53
  * @returns The new mapped object.
@@ -1,13 +1,22 @@
1
1
  /**
2
- * Map each element of an array into an object using a defined callback function.
2
+ * Map each element of an array into an object using a defined mapper that
3
+ * converts each item into an object entry (a tuple of `[<key>, <value>]`).
3
4
  *
4
5
  * There are several other functions that could be used to build an object from
5
6
  * an array:
6
- * `fromKeys` - Builds an object from an array of *keys* and a mapper for values.
7
- * `indexBy` - Builds an object from an array of *values* and a mapper for keys.
8
- * `pullObject` - Builds an object from an array of items with mappers for *both* keys and values.
9
- * `fromEntries` - Builds an object from an array of key-value pairs.
10
- * Refer to the docs for more details.
7
+ * - `fromKeys` - Builds an object from an array of *keys* and a mapper for
8
+ * values.
9
+ * - `indexBy` - Builds an object from an array of *values* and a mapper for
10
+ * keys.
11
+ * - `pullObject` - Builds an object from an array of items with a mapper for
12
+ * values and another mapper for keys.
13
+ * - `fromEntries` - Builds an object from an array of key-value pairs.
14
+ *
15
+ * **Warning**: We strongly advise against using this function unless it is
16
+ * used with a huge input array and your app has stringent memory/gc
17
+ * constraints. We recommend that in most cases you should use `pullObject`,
18
+ * or the composition `fromEntries(map(array, fn))`. This function will be
19
+ * deprecated and **removed** in future versions of the library!
11
20
  *
12
21
  * @param array - The array to map.
13
22
  * @param fn - The mapping function, which should return a tuple of [key, value], similar to Object.fromEntries.
@@ -21,15 +30,24 @@
21
30
  */
22
31
  declare function mapToObj<T, K extends PropertyKey, V>(array: ReadonlyArray<T>, fn: (value: T, index: number, data: ReadonlyArray<T>) => [K, V]): Record<K, V>;
23
32
  /**
24
- * Map each element of an array into an object using a defined callback function.
33
+ * Map each element of an array into an object using a defined mapper that
34
+ * converts each item into an object entry (a tuple of `[<key>, <value>]`).
25
35
  *
26
36
  * There are several other functions that could be used to build an object from
27
37
  * an array:
28
- * `fromKeys` - Builds an object from an array of *keys* and a mapper for values.
29
- * `indexBy` - Builds an object from an array of *values* and a mapper for keys.
30
- * `pullObject` - Builds an object from an array of items with mappers for *both* keys and values.
31
- * `fromEntries` - Builds an object from an array of key-value pairs.
32
- * Refer to the docs for more details.
38
+ * - `fromKeys` - Builds an object from an array of *keys* and a mapper for
39
+ * values.
40
+ * - `indexBy` - Builds an object from an array of *values* and a mapper for
41
+ * keys.
42
+ * - `pullObject` - Builds an object from an array of items with a mapper for
43
+ * values and another mapper for keys.
44
+ * - `fromEntries` - Builds an object from an array of key-value pairs.
45
+ *
46
+ * **Warning**: We strongly advise against using this function unless it is
47
+ * used with a huge input array and your app has stringent memory/gc
48
+ * constraints. We recommend that in most cases you should use `pullObject`,
49
+ * or the composition `fromEntries(map(array, fn))`. This function will be
50
+ * deprecated and **removed** in future versions of the library!
33
51
  *
34
52
  * @param fn - The mapping function, which should return a tuple of [key, value], similar to Object.fromEntries.
35
53
  * @returns The new mapped object.
@@ -1 +1 @@
1
- import{a}from"./chunk-QZ3KOXCB.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";export{a as mapToObj};
1
+ import{a}from"./chunk-QZ3KOXCB.js";import"./chunk-J6WPJH72.js";import"./chunk-KGPDVVVV.js";import"./chunk-EK7ODJWE.js";export{a as mapToObj};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkCP5LRZUFcjs = require('./chunk-CP5LRZUF.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');exports.mapValues = _chunkCP5LRZUFcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkCP5LRZUFcjs = require('./chunk-CP5LRZUF.cjs');require('./chunk-XR72I63W.cjs');require('./chunk-GZJMERDJ.cjs');require('./chunk-MBGSSEZN.cjs');exports.mapValues = _chunkCP5LRZUFcjs.a;
@@ -1,6 +1,7 @@
1
1
  import { Simplify } from 'type-fest';
2
- import { E as EnumerableStringKeyOf } from './enumerable-string-key-of-BQ4aR5ep.cjs';
3
- import { E as EnumerableStringKeyedValueOf } from './enumerable-string-keyed-value-of-CLzltniW.cjs';
2
+ import { E as EnumerableStringKeyOf } from './enumerable-string-key-of-D8w_3Yg8.cjs';
3
+ import { E as EnumerableStringKeyedValueOf } from './enumerable-string-keyed-value-of-BU9R_cEk.cjs';
4
+ import './to-string-DO8zw6jS.cjs';
4
5
 
5
6
  type MappedValues<T extends object, Value> = Simplify<{
6
7
  -readonly [P in keyof T as `${P extends number | string ? P : never}`]: Value;