@goodbyenjn/utils 26.3.0 → 26.4.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.
@@ -1,2782 +0,0 @@
1
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/lazyDataLastImpl-DtF3cihj.js
2
- function e$46(e$47, t$106, n$117) {
3
- let r$44 = (n$118) => e$47(n$118, ...t$106);
4
- return n$117 === void 0 ? r$44 : Object.assign(r$44, {
5
- lazy: n$117,
6
- lazyArgs: t$106
7
- });
8
- }
9
-
10
- //#endregion
11
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/purry-GjwKKIlp.js
12
- function t$105(t$106, n$117, r$44) {
13
- let i$17 = t$106.length - n$117.length;
14
- if (i$17 === 0) return t$106(...n$117);
15
- if (i$17 === 1) return e$46(t$106, n$117, r$44);
16
- throw Error(`Wrong number of arguments`);
17
- }
18
-
19
- //#endregion
20
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/add.js
21
- function t$104(...t$106) {
22
- return t$105(n$116, t$106);
23
- }
24
- const n$116 = (e$47, t$106) => e$47 + t$106;
25
-
26
- //#endregion
27
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/addProp.js
28
- function t$103(...t$106) {
29
- return t$105(n$115, t$106);
30
- }
31
- const n$115 = (e$47, t$106, n$117) => ({
32
- ...e$47,
33
- [t$106]: n$117
34
- });
35
-
36
- //#endregion
37
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/allPass.js
38
- function t$102(...t$106) {
39
- return t$105(n$114, t$106);
40
- }
41
- const n$114 = (e$47, t$106) => t$106.every((t$107) => t$107(e$47));
42
-
43
- //#endregion
44
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/anyPass.js
45
- function t$101(...t$106) {
46
- return t$105(n$113, t$106);
47
- }
48
- const n$113 = (e$47, t$106) => t$106.some((t$107) => t$107(e$47));
49
-
50
- //#endregion
51
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/capitalize.js
52
- function t$100(...t$106) {
53
- return t$105(n$112, t$106);
54
- }
55
- const n$112 = (e$47) => `${e$47[0]?.toUpperCase() ?? ``}${e$47.slice(1)}`;
56
-
57
- //#endregion
58
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/withPrecision-CGLvbgFW.js
59
- const e$45 = (e$47) => (n$117, r$44) => {
60
- if (r$44 === 0) return e$47(n$117);
61
- if (!Number.isInteger(r$44)) throw TypeError(`precision must be an integer: ${r$44.toString()}`);
62
- if (r$44 > 15 || r$44 < -15) throw RangeError(`precision must be between -15 and 15`);
63
- return Number.isNaN(n$117) || !Number.isFinite(n$117) ? e$47(n$117) : t$99(e$47(t$99(n$117, r$44)), -r$44);
64
- };
65
- function t$99(e$47, t$106) {
66
- let [n$117, r$44] = e$47.toString().split(`e`), i$17 = `${n$117}e${((r$44 === void 0 ? 0 : Number.parseInt(r$44, 10)) + t$106).toString()}`;
67
- return Number.parseFloat(i$17);
68
- }
69
-
70
- //#endregion
71
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/ceil.js
72
- function n$111(...n$117) {
73
- return t$105(e$45(Math.ceil), n$117);
74
- }
75
-
76
- //#endregion
77
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/chunk.js
78
- function t$98(...t$106) {
79
- return t$105(n$110, t$106);
80
- }
81
- function n$110(e$47, t$106) {
82
- if (t$106 < 1) throw RangeError(`chunk: A chunk size of '${t$106.toString()}' would result in an infinite array`);
83
- if (e$47.length === 0) return [];
84
- if (t$106 >= e$47.length) return [[...e$47]];
85
- let n$117 = Math.ceil(e$47.length / t$106), r$44 = Array(n$117);
86
- if (t$106 === 1) for (let [t$107, n$118] of e$47.entries()) r$44[t$107] = [n$118];
87
- else for (let i$17 = 0; i$17 < n$117; i$17 += 1) {
88
- let n$118 = i$17 * t$106;
89
- r$44[i$17] = e$47.slice(n$118, n$118 + t$106);
90
- }
91
- return r$44;
92
- }
93
-
94
- //#endregion
95
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/clamp.js
96
- function t$97(...t$106) {
97
- return t$105(n$109, t$106);
98
- }
99
- const n$109 = (e$47, { min: t$106, max: n$117 }) => t$106 !== void 0 && e$47 < t$106 ? t$106 : n$117 !== void 0 && e$47 > n$117 ? n$117 : e$47;
100
-
101
- //#endregion
102
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/clone.js
103
- function t$96(...t$106) {
104
- return t$105(n$108, t$106);
105
- }
106
- function n$108(e$47, t$106 = [], n$117 = []) {
107
- if (typeof e$47 == `function`) return e$47;
108
- if (typeof e$47 != `object` || !e$47) return structuredClone(e$47);
109
- let a$7 = Object.getPrototypeOf(e$47);
110
- if (!Array.isArray(e$47) && a$7 !== null && a$7 !== Object.prototype) return structuredClone(e$47);
111
- let o$1 = t$106.indexOf(e$47);
112
- return o$1 === -1 ? (t$106.push(e$47), Array.isArray(e$47) ? i$16(e$47, t$106, n$117) : r$43(e$47, t$106, n$117)) : n$117[o$1];
113
- }
114
- function r$43(e$47, t$106, r$44) {
115
- let i$17 = {};
116
- r$44.push(i$17);
117
- for (let [a$7, o$1] of Object.entries(e$47)) i$17[a$7] = n$108(o$1, t$106, r$44);
118
- return i$17;
119
- }
120
- function i$16(e$47, t$106, r$44) {
121
- let i$17 = [];
122
- r$44.push(i$17);
123
- for (let [a$7, o$1] of e$47.entries()) i$17[a$7] = n$108(o$1, t$106, r$44);
124
- return i$17;
125
- }
126
-
127
- //#endregion
128
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/concat.js
129
- function t$95(...t$106) {
130
- return t$105(n$107, t$106);
131
- }
132
- const n$107 = (e$47, t$106) => [...e$47, ...t$106];
133
-
134
- //#endregion
135
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/conditional-CbyGGQT0.js
136
- function e$44(e$47, t$106, n$117) {
137
- return e$47(n$117[0]) ? (e$48) => t$106(e$48, ...n$117) : t$106(...n$117);
138
- }
139
- function t$94(...t$106) {
140
- return e$44(r$42, n$106, t$106);
141
- }
142
- function n$106(e$47, ...t$106) {
143
- for (let n$117 of t$106) {
144
- if (typeof n$117 == `function`) return n$117(e$47);
145
- let [t$107, r$44] = n$117;
146
- if (t$107(e$47)) return r$44(e$47);
147
- }
148
- throw Error(`conditional: data failed for all cases`);
149
- }
150
- function r$42(e$47) {
151
- if (!Array.isArray(e$47)) return !1;
152
- let [t$106, n$117, ...r$44] = e$47;
153
- return typeof t$106 == `function` && t$106.length <= 1 && typeof n$117 == `function` && n$117.length <= 1 && r$44.length === 0;
154
- }
155
-
156
- //#endregion
157
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/constant.js
158
- function e$43(e$47) {
159
- return () => e$47;
160
- }
161
-
162
- //#endregion
163
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/countBy.js
164
- function t$93(...t$106) {
165
- return t$105(n$105, t$106);
166
- }
167
- const n$105 = (e$47, t$106) => {
168
- let n$117 = /* @__PURE__ */ new Map();
169
- for (let [r$44, i$17] of e$47.entries()) {
170
- let a$7 = t$106(i$17, r$44, e$47);
171
- if (a$7 !== void 0) {
172
- let e$48 = n$117.get(a$7);
173
- e$48 === void 0 ? n$117.set(a$7, 1) : n$117.set(a$7, e$48 + 1);
174
- }
175
- }
176
- return Object.fromEntries(n$117);
177
- };
178
-
179
- //#endregion
180
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/debounce.js
181
- function e$42(e$47, { waitMs: t$106, timing: n$117 = `trailing`, maxWaitMs: r$44 }) {
182
- if (r$44 !== void 0 && t$106 !== void 0 && r$44 < t$106) throw Error(`debounce: maxWaitMs (${r$44.toString()}) cannot be less than waitMs (${t$106.toString()})`);
183
- let i$17, a$7, o$1, s, c = () => {
184
- if (a$7 !== void 0) {
185
- let e$48 = a$7;
186
- a$7 = void 0, clearTimeout(e$48);
187
- }
188
- if (o$1 === void 0) throw Error(`REMEDA[debounce]: latestCallArgs was unexpectedly undefined.`);
189
- let t$107 = o$1;
190
- o$1 = void 0, s = e$47(...t$107);
191
- }, l = () => {
192
- if (i$17 === void 0) return;
193
- let e$48 = i$17;
194
- i$17 = void 0, clearTimeout(e$48), o$1 !== void 0 && c();
195
- }, u = (e$48) => {
196
- o$1 = e$48, r$44 !== void 0 && a$7 === void 0 && (a$7 = setTimeout(c, r$44));
197
- };
198
- return {
199
- call: (...a$8) => {
200
- if (i$17 === void 0) n$117 === `trailing` ? u(a$8) : s = e$47(...a$8);
201
- else {
202
- n$117 !== `leading` && u(a$8);
203
- let e$48 = i$17;
204
- i$17 = void 0, clearTimeout(e$48);
205
- }
206
- return i$17 = setTimeout(l, t$106 ?? r$44 ?? 0), s;
207
- },
208
- cancel: () => {
209
- if (i$17 !== void 0) {
210
- let e$48 = i$17;
211
- i$17 = void 0, clearTimeout(e$48);
212
- }
213
- if (a$7 !== void 0) {
214
- let e$48 = a$7;
215
- a$7 = void 0, clearTimeout(e$48);
216
- }
217
- o$1 = void 0;
218
- },
219
- flush: () => (l(), s),
220
- get isPending() {
221
- return i$17 !== void 0;
222
- },
223
- get cachedValue() {
224
- return s;
225
- }
226
- };
227
- }
228
-
229
- //#endregion
230
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/defaultTo.js
231
- function t$92(...t$106) {
232
- return t$105(n$104, t$106);
233
- }
234
- const n$104 = (e$47, t$106) => e$47 ?? t$106;
235
-
236
- //#endregion
237
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/utilityEvaluators-D7O7U3FY.js
238
- const e$41 = {
239
- done: !0,
240
- hasNext: !1
241
- }, t$91 = {
242
- done: !1,
243
- hasNext: !1
244
- }, n$103 = () => e$41, r$41 = (e$47) => ({
245
- hasNext: !0,
246
- next: e$47,
247
- done: !1
248
- });
249
-
250
- //#endregion
251
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/pipe-CRsqNjLF.js
252
- function t$90(e$47, ...t$106) {
253
- let a$7 = e$47, o$1 = t$106.map((e$48) => `lazy` in e$48 ? r$40(e$48) : void 0), s = 0;
254
- for (; s < t$106.length;) {
255
- if (o$1[s] === void 0 || !i$15(a$7)) {
256
- let e$49 = t$106[s];
257
- a$7 = e$49(a$7), s += 1;
258
- continue;
259
- }
260
- let e$48 = [];
261
- for (let n$117 = s; n$117 < t$106.length; n$117++) {
262
- let t$107 = o$1[n$117];
263
- if (t$107 === void 0 || (e$48.push(t$107), t$107.isSingle)) break;
264
- }
265
- let r$44 = [];
266
- for (let t$107 of a$7) if (n$102(t$107, r$44, e$48)) break;
267
- let { isSingle: c } = e$48.at(-1);
268
- a$7 = c ? r$44[0] : r$44, s += e$48.length;
269
- }
270
- return a$7;
271
- }
272
- function n$102(t$106, r$44, i$17) {
273
- if (i$17.length === 0) return r$44.push(t$106), !1;
274
- let a$7 = t$106, o$1 = t$91, s = !1;
275
- for (let [e$47, t$107] of i$17.entries()) {
276
- let { index: c, items: l } = t$107;
277
- if (l.push(a$7), o$1 = t$107(a$7, c, l), t$107.index += 1, o$1.hasNext) {
278
- if (o$1.hasMany ?? !1) {
279
- for (let t$108 of o$1.next) if (n$102(t$108, r$44, i$17.slice(e$47 + 1))) return !0;
280
- return s;
281
- }
282
- a$7 = o$1.next;
283
- }
284
- if (!o$1.hasNext) break;
285
- o$1.done && (s = !0);
286
- }
287
- return o$1.hasNext && r$44.push(a$7), s;
288
- }
289
- function r$40(e$47) {
290
- let { lazy: t$106, lazyArgs: n$117 } = e$47, r$44 = t$106(...n$117);
291
- return Object.assign(r$44, {
292
- isSingle: t$106.single ?? !1,
293
- index: 0,
294
- items: []
295
- });
296
- }
297
- function i$15(e$47) {
298
- return typeof e$47 == `string` || typeof e$47 == `object` && !!e$47 && Symbol.iterator in e$47;
299
- }
300
-
301
- //#endregion
302
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/purryFromLazy-C1RBdBlx.js
303
- function t$89(t$106, n$117) {
304
- let r$44 = n$117.length - t$106.length;
305
- if (r$44 === 1) {
306
- let [r$45, ...i$17] = n$117;
307
- return t$90(r$45, {
308
- lazy: t$106,
309
- lazyArgs: i$17
310
- });
311
- }
312
- if (r$44 === 0) {
313
- let r$45 = {
314
- lazy: t$106,
315
- lazyArgs: n$117
316
- };
317
- return Object.assign((t$107) => t$90(t$107, r$45), r$45);
318
- }
319
- throw Error(`Wrong number of arguments`);
320
- }
321
-
322
- //#endregion
323
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/difference.js
324
- function r$39(...e$47) {
325
- return t$89(i$14, e$47);
326
- }
327
- function i$14(n$117) {
328
- if (n$117.length === 0) return r$41;
329
- let r$44 = /* @__PURE__ */ new Map();
330
- for (let e$47 of n$117) r$44.set(e$47, (r$44.get(e$47) ?? 0) + 1);
331
- return (e$47) => {
332
- let n$118 = r$44.get(e$47);
333
- return n$118 === void 0 || n$118 === 0 ? {
334
- done: !1,
335
- hasNext: !0,
336
- next: e$47
337
- } : (r$44.set(e$47, n$118 - 1), t$91);
338
- };
339
- }
340
-
341
- //#endregion
342
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/differenceWith.js
343
- function n$101(...e$47) {
344
- return t$89(r$38, e$47);
345
- }
346
- const r$38 = (t$106, n$117) => (r$44) => t$106.every((e$47) => !n$117(r$44, e$47)) ? {
347
- done: !1,
348
- hasNext: !0,
349
- next: r$44
350
- } : t$91;
351
-
352
- //#endregion
353
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/divide.js
354
- function t$88(...t$106) {
355
- return t$105(n$100, t$106);
356
- }
357
- const n$100 = (e$47, t$106) => e$47 / t$106;
358
-
359
- //#endregion
360
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/doNothing.js
361
- function e$40() {
362
- return t$87;
363
- }
364
- function t$87(...e$47) {}
365
-
366
- //#endregion
367
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/drop.js
368
- function r$37(...t$106) {
369
- return t$105(i$13, t$106, a$6);
370
- }
371
- const i$13 = (e$47, t$106) => t$106 < 0 ? [...e$47] : e$47.slice(t$106);
372
- function a$6(e$47) {
373
- if (e$47 <= 0) return r$41;
374
- let r$44 = e$47;
375
- return (e$48) => r$44 > 0 ? (--r$44, t$91) : {
376
- done: !1,
377
- hasNext: !0,
378
- next: e$48
379
- };
380
- }
381
-
382
- //#endregion
383
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/hasAtLeast-C6VESifI.js
384
- function t$86(...t$106) {
385
- return t$105(n$99, t$106);
386
- }
387
- const n$99 = (e$47, t$106) => e$47.length >= t$106;
388
-
389
- //#endregion
390
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/swapInPlace-BLjuUtir.js
391
- function e$39(e$47, t$106, n$117) {
392
- [e$47[t$106], e$47[n$117]] = [e$47[n$117], e$47[t$106]];
393
- }
394
-
395
- //#endregion
396
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/heap-CmRflSHM.js
397
- function n$98(e$47, t$106) {
398
- for (let n$117 = Math.floor(e$47.length / 2) - 1; n$117 >= 0; n$117--) i$12(e$47, n$117, t$106);
399
- }
400
- function r$36(t$106, n$117, r$44) {
401
- if (!t$86(t$106, 1)) return;
402
- let [a$7] = t$106;
403
- if (!(n$117(r$44, a$7) >= 0)) return t$106[0] = r$44, i$12(t$106, 0, n$117), a$7;
404
- }
405
- function i$12(e$47, n$117, r$44) {
406
- let i$17 = n$117;
407
- for (; i$17 * 2 + 1 < e$47.length;) {
408
- let n$118 = i$17 * 2 + 1, a$7 = r$44(e$47[i$17], e$47[n$118]) < 0 ? n$118 : i$17, o$1 = n$118 + 1;
409
- if (o$1 < e$47.length && r$44(e$47[a$7], e$47[o$1]) < 0 && (a$7 = o$1), a$7 === i$17) return;
410
- e$39(e$47, i$17, a$7), i$17 = a$7;
411
- }
412
- }
413
-
414
- //#endregion
415
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/purryOrderRules-LBeHSsQr.js
416
- const e$38 = {
417
- asc: (e$47, t$106) => e$47 > t$106,
418
- desc: (e$47, t$106) => e$47 < t$106
419
- };
420
- function t$85(e$47, t$106) {
421
- let [n$117, ...a$7] = t$106;
422
- if (!i$11(n$117)) return e$47(n$117, r$35(...a$7));
423
- let o$1 = r$35(n$117, ...a$7);
424
- return (t$107) => e$47(t$107, o$1);
425
- }
426
- function n$97(e$47, [n$117, r$44, ...a$7]) {
427
- let o$1, s;
428
- return i$11(r$44) ? (o$1 = n$117, s = [r$44, ...a$7]) : (o$1 = r$44, s = [n$117, ...a$7]), t$85((...t$106) => e$47(...t$106, o$1), s);
429
- }
430
- function r$35(t$106, n$117, ...i$17) {
431
- let a$7 = typeof t$106 == `function` ? t$106 : t$106[0], o$1 = typeof t$106 == `function` ? `asc` : t$106[1], { [o$1]: s } = e$38, c = n$117 === void 0 ? void 0 : r$35(n$117, ...i$17);
432
- return (e$47, t$107) => {
433
- let n$118 = a$7(e$47), r$44 = a$7(t$107);
434
- return s(n$118, r$44) ? 1 : s(r$44, n$118) ? -1 : c?.(e$47, t$107) ?? 0;
435
- };
436
- }
437
- function i$11(t$106) {
438
- if (a$5(t$106)) return !0;
439
- if (typeof t$106 != `object` || !Array.isArray(t$106)) return !1;
440
- let [n$117, r$44, ...i$17] = t$106;
441
- return a$5(n$117) && typeof r$44 == `string` && r$44 in e$38 && i$17.length === 0;
442
- }
443
- const a$5 = (e$47) => typeof e$47 == `function` && e$47.length === 1;
444
-
445
- //#endregion
446
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/dropFirstBy.js
447
- function r$34(...e$47) {
448
- return n$97(i$10, e$47);
449
- }
450
- function i$10(n$117, r$44, i$17) {
451
- if (i$17 >= n$117.length) return [];
452
- if (i$17 <= 0) return [...n$117];
453
- let a$7 = n$117.slice(0, i$17);
454
- n$98(a$7, r$44);
455
- let o$1 = [], s = n$117.slice(i$17);
456
- for (let e$47 of s) {
457
- let n$118 = r$36(a$7, r$44, e$47);
458
- o$1.push(n$118 ?? e$47);
459
- }
460
- return o$1;
461
- }
462
-
463
- //#endregion
464
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/dropLast.js
465
- function t$84(...t$106) {
466
- return t$105(n$96, t$106);
467
- }
468
- const n$96 = (e$47, t$106) => t$106 > 0 ? e$47.slice(0, Math.max(0, e$47.length - t$106)) : [...e$47];
469
-
470
- //#endregion
471
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/dropLastWhile.js
472
- function t$83(...t$106) {
473
- return t$105(n$95, t$106);
474
- }
475
- function n$95(e$47, t$106) {
476
- for (let n$117 = e$47.length - 1; n$117 >= 0; n$117--) if (!t$106(e$47[n$117], n$117, e$47)) return e$47.slice(0, n$117 + 1);
477
- return [];
478
- }
479
-
480
- //#endregion
481
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/dropWhile.js
482
- function t$82(...t$106) {
483
- return t$105(n$94, t$106);
484
- }
485
- function n$94(e$47, t$106) {
486
- for (let [n$117, r$44] of e$47.entries()) if (!t$106(r$44, n$117, e$47)) return e$47.slice(n$117);
487
- return [];
488
- }
489
-
490
- //#endregion
491
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/endsWith.js
492
- function t$81(...t$106) {
493
- return t$105(n$93, t$106);
494
- }
495
- const n$93 = (e$47, t$106) => e$47.endsWith(t$106);
496
-
497
- //#endregion
498
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/entries.js
499
- function t$80(...t$106) {
500
- return t$105(Object.entries, t$106);
501
- }
502
-
503
- //#endregion
504
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/evolve.js
505
- function t$79(...t$106) {
506
- return t$105(n$92, t$106);
507
- }
508
- function n$92(e$47, t$106) {
509
- if (typeof e$47 != `object` || !e$47) return e$47;
510
- let r$44 = { ...e$47 };
511
- for (let [e$48, i$17] of Object.entries(t$106)) e$48 in r$44 && (r$44[e$48] = typeof i$17 == `function` ? i$17(r$44[e$48]) : n$92(r$44[e$48], i$17));
512
- return r$44;
513
- }
514
-
515
- //#endregion
516
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/filter.js
517
- function n$91(...t$106) {
518
- return t$105(r$33, t$106, i$9);
519
- }
520
- const r$33 = (e$47, t$106) => e$47.filter(t$106), i$9 = (e$47) => (n$117, r$44, i$17) => e$47(n$117, r$44, i$17) ? {
521
- done: !1,
522
- hasNext: !0,
523
- next: n$117
524
- } : t$91;
525
-
526
- //#endregion
527
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/toSingle-CGZ0h6zD.js
528
- const e$37 = (e$47) => Object.assign(e$47, { single: !0 });
529
-
530
- //#endregion
531
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/find.js
532
- function r$32(...t$106) {
533
- return t$105(i$8, t$106, e$37(a$4));
534
- }
535
- const i$8 = (e$47, t$106) => e$47.find(t$106), a$4 = (e$47) => (n$117, r$44, i$17) => e$47(n$117, r$44, i$17) ? {
536
- done: !0,
537
- hasNext: !0,
538
- next: n$117
539
- } : t$91;
540
-
541
- //#endregion
542
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/findIndex.js
543
- function t$78(...t$106) {
544
- return t$105(n$90, t$106);
545
- }
546
- const n$90 = (e$47, t$106) => e$47.findIndex(t$106);
547
-
548
- //#endregion
549
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/findLast.js
550
- function t$77(...t$106) {
551
- return t$105(n$89, t$106);
552
- }
553
- const n$89 = (e$47, t$106) => {
554
- for (let n$117 = e$47.length - 1; n$117 >= 0; n$117--) {
555
- let r$44 = e$47[n$117];
556
- if (t$106(r$44, n$117, e$47)) return r$44;
557
- }
558
- };
559
-
560
- //#endregion
561
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/findLastIndex.js
562
- function t$76(...t$106) {
563
- return t$105(n$88, t$106);
564
- }
565
- const n$88 = (e$47, t$106) => {
566
- for (let n$117 = e$47.length - 1; n$117 >= 0; n$117--) if (t$106(e$47[n$117], n$117, e$47)) return n$117;
567
- return -1;
568
- };
569
-
570
- //#endregion
571
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/first.js
572
- function n$87(...n$117) {
573
- return t$105(r$31, n$117, e$37(i$7));
574
- }
575
- const r$31 = ([e$47]) => e$47, i$7 = () => a$3, a$3 = (e$47) => ({
576
- hasNext: !0,
577
- next: e$47,
578
- done: !0
579
- });
580
-
581
- //#endregion
582
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/firstBy.js
583
- function n$86(...e$47) {
584
- return t$85(r$30, e$47);
585
- }
586
- function r$30(t$106, n$117) {
587
- if (!t$86(t$106, 2)) return t$106[0];
588
- let [r$44] = t$106, [, ...i$17] = t$106;
589
- for (let e$47 of i$17) n$117(e$47, r$44) < 0 && (r$44 = e$47);
590
- return r$44;
591
- }
592
-
593
- //#endregion
594
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/flat.js
595
- function n$85(t$106, n$117) {
596
- return typeof t$106 == `object` ? r$29(t$106, n$117) : e$46(r$29, t$106 === void 0 ? [] : [t$106], i$6);
597
- }
598
- const r$29 = (e$47, t$106) => t$106 === void 0 ? e$47.flat() : e$47.flat(t$106), i$6 = (e$47) => e$47 === void 0 || e$47 === 1 ? a$2 : e$47 <= 0 ? r$41 : (t$106) => Array.isArray(t$106) ? {
599
- next: t$106.flat(e$47 - 1),
600
- hasNext: !0,
601
- hasMany: !0,
602
- done: !1
603
- } : {
604
- next: t$106,
605
- hasNext: !0,
606
- done: !1
607
- }, a$2 = (e$47) => Array.isArray(e$47) ? {
608
- next: e$47,
609
- hasNext: !0,
610
- hasMany: !0,
611
- done: !1
612
- } : {
613
- next: e$47,
614
- hasNext: !0,
615
- done: !1
616
- };
617
-
618
- //#endregion
619
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/flatMap.js
620
- function t$75(...t$106) {
621
- return t$105(n$84, t$106, r$28);
622
- }
623
- const n$84 = (e$47, t$106) => e$47.flatMap(t$106), r$28 = (e$47) => (t$106, n$117, r$44) => {
624
- let i$17 = e$47(t$106, n$117, r$44);
625
- return Array.isArray(i$17) ? {
626
- done: !1,
627
- hasNext: !0,
628
- hasMany: !0,
629
- next: i$17
630
- } : {
631
- done: !1,
632
- hasNext: !0,
633
- next: i$17
634
- };
635
- };
636
-
637
- //#endregion
638
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/floor.js
639
- function n$83(...n$117) {
640
- return t$105(e$45(Math.floor), n$117);
641
- }
642
-
643
- //#endregion
644
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/forEach.js
645
- function t$74(...t$106) {
646
- return t$105(n$82, t$106, r$27);
647
- }
648
- function n$82(e$47, t$106) {
649
- return e$47.forEach(t$106), e$47;
650
- }
651
- const r$27 = (e$47) => (t$106, n$117, r$44) => (e$47(t$106, n$117, r$44), {
652
- done: !1,
653
- hasNext: !0,
654
- next: t$106
655
- });
656
-
657
- //#endregion
658
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/forEachObj.js
659
- function t$73(...t$106) {
660
- return t$105(n$81, t$106);
661
- }
662
- function n$81(e$47, t$106) {
663
- for (let [n$117, r$44] of Object.entries(e$47)) t$106(r$44, n$117, e$47);
664
- return e$47;
665
- }
666
-
667
- //#endregion
668
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/fromEntries.js
669
- function t$72(...t$106) {
670
- return t$105(Object.fromEntries, t$106);
671
- }
672
-
673
- //#endregion
674
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/fromKeys.js
675
- function t$71(...t$106) {
676
- return t$105(n$80, t$106);
677
- }
678
- function n$80(e$47, t$106) {
679
- let n$117 = {};
680
- for (let [r$44, i$17] of e$47.entries()) n$117[i$17] = t$106(i$17, r$44, e$47);
681
- return n$117;
682
- }
683
-
684
- //#endregion
685
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/funnel.js
686
- const e$36 = Symbol(`funnel/voidReducer`), t$70 = () => e$36;
687
- function n$79(n$117, { triggerAt: r$44 = `end`, minQuietPeriodMs: i$17, maxBurstDurationMs: a$7, minGapMs: o$1, reducer: s = t$70 }) {
688
- let c, l, u, d, f = () => {
689
- let t$106 = u;
690
- t$106 !== void 0 && (u = void 0, t$106 === e$36 ? n$117() : n$117(t$106), o$1 !== void 0 && (l = setTimeout(p, o$1)));
691
- }, p = () => {
692
- clearTimeout(l), l = void 0, c === void 0 && f();
693
- }, m = () => {
694
- clearTimeout(c), c = void 0, d = void 0, l === void 0 && f();
695
- };
696
- return {
697
- call: (...e$47) => {
698
- let t$106 = c === void 0 && l === void 0;
699
- if ((r$44 !== `start` || t$106) && (u = s(u, ...e$47)), !(c === void 0 && !t$106)) {
700
- if (i$17 !== void 0 || a$7 !== void 0 || o$1 === void 0) {
701
- clearTimeout(c);
702
- let e$48 = Date.now();
703
- d ??= e$48;
704
- let t$107 = a$7 === void 0 ? i$17 ?? 0 : Math.min(i$17 ?? a$7, a$7 - (e$48 - d));
705
- c = setTimeout(m, t$107);
706
- }
707
- r$44 !== `end` && t$106 && f();
708
- }
709
- },
710
- cancel: () => {
711
- clearTimeout(c), c = void 0, d = void 0, clearTimeout(l), l = void 0, u = void 0;
712
- },
713
- flush: () => {
714
- m(), p();
715
- },
716
- get isIdle() {
717
- return c === void 0 && l === void 0;
718
- }
719
- };
720
- }
721
-
722
- //#endregion
723
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/groupBy.js
724
- function t$69(...t$106) {
725
- return t$105(n$78, t$106);
726
- }
727
- const n$78 = (e$47, t$106) => {
728
- let n$117 = Object.create(null);
729
- for (let r$44 = 0; r$44 < e$47.length; r$44++) {
730
- let i$17 = e$47[r$44], a$7 = t$106(i$17, r$44, e$47);
731
- if (a$7 !== void 0) {
732
- let e$48 = n$117[a$7];
733
- e$48 === void 0 ? n$117[a$7] = [i$17] : e$48.push(i$17);
734
- }
735
- }
736
- return Object.setPrototypeOf(n$117, Object.prototype), n$117;
737
- };
738
-
739
- //#endregion
740
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/groupByProp.js
741
- function t$68(...t$106) {
742
- return t$105(n$77, t$106);
743
- }
744
- function n$77(e$47, t$106) {
745
- let n$117 = Object.create(null);
746
- for (let r$44 of e$47) {
747
- let e$48 = r$44?.[t$106];
748
- if (e$48 !== void 0) {
749
- let t$107 = n$117[e$48];
750
- t$107 === void 0 ? n$117[e$48] = [r$44] : t$107.push(r$44);
751
- }
752
- }
753
- return Object.setPrototypeOf(n$117, Object.prototype), n$117;
754
- }
755
-
756
- //#endregion
757
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/isDeepEqual.js
758
- function t$67(...t$106) {
759
- return t$105(n$76, t$106);
760
- }
761
- function n$76(e$47, t$106) {
762
- if (e$47 === t$106 || Object.is(e$47, t$106)) return !0;
763
- if (typeof e$47 != `object` || typeof t$106 != `object` || e$47 === null || t$106 === null || Object.getPrototypeOf(e$47) !== Object.getPrototypeOf(t$106)) return !1;
764
- if (Array.isArray(e$47)) return r$26(e$47, t$106);
765
- if (e$47 instanceof Map) return i$5(e$47, t$106);
766
- if (e$47 instanceof Set) return a$1(e$47, t$106);
767
- if (e$47 instanceof Date) return e$47.getTime() === t$106.getTime();
768
- if (e$47 instanceof RegExp) return e$47.toString() === t$106.toString();
769
- if (Object.keys(e$47).length !== Object.keys(t$106).length) return !1;
770
- for (let [r$44, i$17] of Object.entries(e$47)) if (!(r$44 in t$106) || !n$76(i$17, t$106[r$44])) return !1;
771
- return !0;
772
- }
773
- function r$26(e$47, t$106) {
774
- if (e$47.length !== t$106.length) return !1;
775
- for (let [r$44, i$17] of e$47.entries()) if (!n$76(i$17, t$106[r$44])) return !1;
776
- return !0;
777
- }
778
- function i$5(e$47, t$106) {
779
- if (e$47.size !== t$106.size) return !1;
780
- for (let [r$44, i$17] of e$47.entries()) if (!t$106.has(r$44) || !n$76(i$17, t$106.get(r$44))) return !1;
781
- return !0;
782
- }
783
- function a$1(e$47, t$106) {
784
- if (e$47.size !== t$106.size) return !1;
785
- let r$44 = [...t$106];
786
- for (let t$107 of e$47) {
787
- let e$48 = !1;
788
- for (let [i$17, a$7] of r$44.entries()) if (n$76(t$107, a$7)) {
789
- e$48 = !0, r$44.splice(i$17, 1);
790
- break;
791
- }
792
- if (!e$48) return !1;
793
- }
794
- return !0;
795
- }
796
-
797
- //#endregion
798
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/hasSubObject.js
799
- function n$75(...t$106) {
800
- return t$105(r$25, t$106);
801
- }
802
- function r$25(e$47, n$117) {
803
- for (let [r$44, i$17] of Object.entries(n$117)) if (!Object.hasOwn(e$47, r$44) || !t$67(i$17, e$47[r$44])) return !1;
804
- return !0;
805
- }
806
-
807
- //#endregion
808
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/identity.js
809
- function e$35() {
810
- return t$66;
811
- }
812
- const t$66 = (e$47) => e$47;
813
-
814
- //#endregion
815
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/indexBy.js
816
- function t$65(...t$106) {
817
- return t$105(n$74, t$106);
818
- }
819
- function n$74(e$47, t$106) {
820
- let n$117 = {};
821
- for (let [r$44, i$17] of e$47.entries()) {
822
- let a$7 = t$106(i$17, r$44, e$47);
823
- n$117[a$7] = i$17;
824
- }
825
- return n$117;
826
- }
827
-
828
- //#endregion
829
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/intersection.js
830
- function r$24(...e$47) {
831
- return t$89(i$4, e$47);
832
- }
833
- function i$4(n$117) {
834
- if (n$117.length === 0) return n$103;
835
- let r$44 = /* @__PURE__ */ new Map();
836
- for (let e$47 of n$117) r$44.set(e$47, (r$44.get(e$47) ?? 0) + 1);
837
- return (e$47) => {
838
- let n$118 = r$44.get(e$47);
839
- return n$118 === void 0 || n$118 === 0 ? t$91 : (n$118 === 1 ? r$44.delete(e$47) : r$44.set(e$47, n$118 - 1), {
840
- hasNext: !0,
841
- next: e$47,
842
- done: r$44.size === 0
843
- });
844
- };
845
- }
846
-
847
- //#endregion
848
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/intersectionWith.js
849
- function n$73(...e$47) {
850
- return t$89(r$23, e$47);
851
- }
852
- const r$23 = (t$106, n$117) => (r$44) => t$106.some((e$47) => n$117(r$44, e$47)) ? {
853
- done: !1,
854
- hasNext: !0,
855
- next: r$44
856
- } : t$91;
857
-
858
- //#endregion
859
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/invert.js
860
- function t$64(...t$106) {
861
- return t$105(n$72, t$106);
862
- }
863
- function n$72(e$47) {
864
- let t$106 = {};
865
- for (let [n$117, r$44] of Object.entries(e$47)) t$106[r$44] = n$117;
866
- return t$106;
867
- }
868
-
869
- //#endregion
870
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/isArray.js
871
- function e$34(e$47) {
872
- return Array.isArray(e$47);
873
- }
874
-
875
- //#endregion
876
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/isBigInt.js
877
- function e$33(e$47) {
878
- return typeof e$47 == `bigint`;
879
- }
880
-
881
- //#endregion
882
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/isBoolean.js
883
- function e$32(e$47) {
884
- return typeof e$47 == `boolean`;
885
- }
886
-
887
- //#endregion
888
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/isDate.js
889
- function e$31(e$47) {
890
- return e$47 instanceof Date;
891
- }
892
-
893
- //#endregion
894
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/isDefined.js
895
- function e$30(e$47) {
896
- return e$47 !== void 0;
897
- }
898
-
899
- //#endregion
900
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/isEmpty.js
901
- function e$29(e$47) {
902
- return e$47 === `` || e$47 === void 0 ? !0 : Array.isArray(e$47) ? e$47.length === 0 : Object.keys(e$47).length === 0;
903
- }
904
-
905
- //#endregion
906
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/isEmptyish.js
907
- function e$28(e$47) {
908
- if (e$47 == null || e$47 === ``) return !0;
909
- if (typeof e$47 != `object`) return !1;
910
- if (`length` in e$47 && typeof e$47.length == `number`) return e$47.length === 0;
911
- if (`size` in e$47 && typeof e$47.size == `number`) return e$47.size === 0;
912
- for (let t$106 in e$47) return !1;
913
- return Object.getOwnPropertySymbols(e$47).length === 0;
914
- }
915
-
916
- //#endregion
917
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/isError.js
918
- function e$27(e$47) {
919
- return e$47 instanceof Error;
920
- }
921
-
922
- //#endregion
923
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/isFunction.js
924
- const e$26 = (e$47) => typeof e$47 == `function`;
925
-
926
- //#endregion
927
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/isIncludedIn.js
928
- function e$25(e$47, t$106) {
929
- if (t$106 === void 0) {
930
- let t$107 = new Set(e$47);
931
- return (e$48) => t$107.has(e$48);
932
- }
933
- return t$106.includes(e$47);
934
- }
935
-
936
- //#endregion
937
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/isNonNull.js
938
- function e$24(e$47) {
939
- return e$47 !== null;
940
- }
941
-
942
- //#endregion
943
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/isNonNullish.js
944
- function e$23(e$47) {
945
- return e$47 != null;
946
- }
947
-
948
- //#endregion
949
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/isNot.js
950
- function e$22(e$47) {
951
- return (t$106) => !e$47(t$106);
952
- }
953
-
954
- //#endregion
955
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/isNullish.js
956
- function e$21(e$47) {
957
- return e$47 == null;
958
- }
959
-
960
- //#endregion
961
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/isNumber.js
962
- function e$20(e$47) {
963
- return typeof e$47 == `number` && !Number.isNaN(e$47);
964
- }
965
-
966
- //#endregion
967
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/isObjectType.js
968
- function e$19(e$47) {
969
- return typeof e$47 == `object` && !!e$47;
970
- }
971
-
972
- //#endregion
973
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/isPlainObject.js
974
- function e$18(e$47) {
975
- if (typeof e$47 != `object` || !e$47) return !1;
976
- let t$106 = Object.getPrototypeOf(e$47);
977
- return t$106 === null || t$106 === Object.prototype;
978
- }
979
-
980
- //#endregion
981
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/isPromise.js
982
- function e$17(e$47) {
983
- return e$47 instanceof Promise;
984
- }
985
-
986
- //#endregion
987
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/isShallowEqual.js
988
- function t$63(...t$106) {
989
- return t$105(n$71, t$106);
990
- }
991
- function n$71(e$47, t$106) {
992
- if (e$47 === t$106 || Object.is(e$47, t$106)) return !0;
993
- if (typeof e$47 != `object` || !e$47 || typeof t$106 != `object` || !t$106) return !1;
994
- if (e$47 instanceof Map && t$106 instanceof Map) return r$22(e$47, t$106);
995
- if (e$47 instanceof Set && t$106 instanceof Set) return i$3(e$47, t$106);
996
- let n$117 = Object.keys(e$47);
997
- if (n$117.length !== Object.keys(t$106).length) return !1;
998
- for (let r$44 of n$117) {
999
- if (!Object.hasOwn(t$106, r$44)) return !1;
1000
- let { [r$44]: n$118 } = e$47, { [r$44]: i$17 } = t$106;
1001
- if (n$118 !== i$17 || !Object.is(n$118, i$17)) return !1;
1002
- }
1003
- return !0;
1004
- }
1005
- function r$22(e$47, t$106) {
1006
- if (e$47.size !== t$106.size) return !1;
1007
- for (let [n$117, r$44] of e$47) {
1008
- let e$48 = t$106.get(n$117);
1009
- if (r$44 !== e$48 || !Object.is(r$44, e$48)) return !1;
1010
- }
1011
- return !0;
1012
- }
1013
- function i$3(e$47, t$106) {
1014
- if (e$47.size !== t$106.size) return !1;
1015
- for (let n$117 of e$47) if (!t$106.has(n$117)) return !1;
1016
- return !0;
1017
- }
1018
-
1019
- //#endregion
1020
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/isStrictEqual.js
1021
- function t$62(...t$106) {
1022
- return t$105(n$70, t$106);
1023
- }
1024
- const n$70 = (e$47, t$106) => e$47 === t$106 || Object.is(e$47, t$106);
1025
-
1026
- //#endregion
1027
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/isString.js
1028
- function e$16(e$47) {
1029
- return typeof e$47 == `string`;
1030
- }
1031
-
1032
- //#endregion
1033
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/isSymbol.js
1034
- function e$15(e$47) {
1035
- return typeof e$47 == `symbol`;
1036
- }
1037
-
1038
- //#endregion
1039
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/isTruthy.js
1040
- function e$14(e$47) {
1041
- return !!e$47;
1042
- }
1043
-
1044
- //#endregion
1045
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/join.js
1046
- function t$61(...t$106) {
1047
- return t$105(n$69, t$106);
1048
- }
1049
- const n$69 = (e$47, t$106) => e$47.join(t$106);
1050
-
1051
- //#endregion
1052
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/keys.js
1053
- function t$60(...t$106) {
1054
- return t$105(Object.keys, t$106);
1055
- }
1056
-
1057
- //#endregion
1058
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/last.js
1059
- function t$59(...t$106) {
1060
- return t$105(n$68, t$106);
1061
- }
1062
- const n$68 = (e$47) => e$47.at(-1);
1063
-
1064
- //#endregion
1065
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/length.js
1066
- function t$58(...t$106) {
1067
- return t$105(n$67, t$106);
1068
- }
1069
- const n$67 = (e$47) => `length` in e$47 ? e$47.length : [...e$47].length;
1070
-
1071
- //#endregion
1072
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/map.js
1073
- function t$57(...t$106) {
1074
- return t$105(n$66, t$106, r$21);
1075
- }
1076
- const n$66 = (e$47, t$106) => e$47.map(t$106), r$21 = (e$47) => (t$106, n$117, r$44) => ({
1077
- done: !1,
1078
- hasNext: !0,
1079
- next: e$47(t$106, n$117, r$44)
1080
- });
1081
-
1082
- //#endregion
1083
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/mapKeys.js
1084
- function t$56(...t$106) {
1085
- return t$105(n$65, t$106);
1086
- }
1087
- function n$65(e$47, t$106) {
1088
- let n$117 = {};
1089
- for (let [r$44, i$17] of Object.entries(e$47)) {
1090
- let a$7 = t$106(r$44, i$17, e$47);
1091
- n$117[a$7] = i$17;
1092
- }
1093
- return n$117;
1094
- }
1095
-
1096
- //#endregion
1097
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/mapToObj.js
1098
- function t$55(...t$106) {
1099
- return t$105(n$64, t$106);
1100
- }
1101
- function n$64(e$47, t$106) {
1102
- let n$117 = {};
1103
- for (let [r$44, i$17] of e$47.entries()) {
1104
- let [a$7, o$1] = t$106(i$17, r$44, e$47);
1105
- n$117[a$7] = o$1;
1106
- }
1107
- return n$117;
1108
- }
1109
-
1110
- //#endregion
1111
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/mapValues.js
1112
- function t$54(...t$106) {
1113
- return t$105(n$63, t$106);
1114
- }
1115
- function n$63(e$47, t$106) {
1116
- let n$117 = {};
1117
- for (let [r$44, i$17] of Object.entries(e$47)) n$117[r$44] = t$106(i$17, r$44, e$47);
1118
- return n$117;
1119
- }
1120
-
1121
- //#endregion
1122
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/mapWithFeedback.js
1123
- function t$53(...t$106) {
1124
- return t$89(n$62, t$106);
1125
- }
1126
- const n$62 = (e$47, t$106) => {
1127
- let n$117 = t$106;
1128
- return (t$107, r$44, i$17) => (n$117 = e$47(n$117, t$107, r$44, i$17), {
1129
- done: !1,
1130
- hasNext: !0,
1131
- next: n$117
1132
- });
1133
- };
1134
-
1135
- //#endregion
1136
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/sum.js
1137
- function t$52(...t$106) {
1138
- return t$105(n$61, t$106);
1139
- }
1140
- function n$61(e$47) {
1141
- let t$106 = typeof e$47[0] == `bigint` ? 0n : 0;
1142
- for (let n$117 of e$47) t$106 += n$117;
1143
- return t$106;
1144
- }
1145
-
1146
- //#endregion
1147
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/mean.js
1148
- function n$60(...t$106) {
1149
- return t$105(r$20, t$106);
1150
- }
1151
- function r$20(e$47) {
1152
- if (e$47.length !== 0) return t$52(e$47) / e$47.length;
1153
- }
1154
-
1155
- //#endregion
1156
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/meanBy.js
1157
- function t$51(...t$106) {
1158
- return t$105(n$59, t$106);
1159
- }
1160
- const n$59 = (e$47, t$106) => {
1161
- if (e$47.length === 0) return NaN;
1162
- let n$117 = 0;
1163
- for (let [r$44, i$17] of e$47.entries()) n$117 += t$106(i$17, r$44, e$47);
1164
- return n$117 / e$47.length;
1165
- };
1166
-
1167
- //#endregion
1168
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/median.js
1169
- function t$50(...t$106) {
1170
- return t$105(r$19, t$106);
1171
- }
1172
- const n$58 = (e$47, t$106) => e$47 - t$106;
1173
- function r$19(e$47) {
1174
- if (e$47.length === 0) return;
1175
- let t$106 = [...e$47].sort(n$58);
1176
- if (t$106.length % 2 != 0) return t$106[(t$106.length - 1) / 2];
1177
- let r$44 = t$106.length / 2;
1178
- return (t$106[r$44] + t$106[r$44 - 1]) / 2;
1179
- }
1180
-
1181
- //#endregion
1182
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/merge.js
1183
- function t$49(...t$106) {
1184
- return t$105(n$57, t$106);
1185
- }
1186
- const n$57 = (e$47, t$106) => ({
1187
- ...e$47,
1188
- ...t$106
1189
- });
1190
-
1191
- //#endregion
1192
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/mergeAll.js
1193
- function e$13(e$47) {
1194
- let t$106 = {};
1195
- for (let n$117 of e$47) t$106 = {
1196
- ...t$106,
1197
- ...n$117
1198
- };
1199
- return t$106;
1200
- }
1201
-
1202
- //#endregion
1203
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/mergeDeep.js
1204
- function n$56(...t$106) {
1205
- return t$105(r$18, t$106);
1206
- }
1207
- function r$18(e$47, n$117) {
1208
- let i$17 = {
1209
- ...e$47,
1210
- ...n$117
1211
- };
1212
- for (let a$7 in n$117) {
1213
- if (!(a$7 in e$47)) continue;
1214
- let { [a$7]: o$1 } = e$47;
1215
- if (!e$18(o$1)) continue;
1216
- let { [a$7]: s } = n$117;
1217
- e$18(s) && (i$17[a$7] = r$18(o$1, s));
1218
- }
1219
- return i$17;
1220
- }
1221
-
1222
- //#endregion
1223
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/multiply.js
1224
- function t$48(...t$106) {
1225
- return t$105(n$55, t$106);
1226
- }
1227
- const n$55 = (e$47, t$106) => e$47 * t$106;
1228
-
1229
- //#endregion
1230
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/nthBy-BAdA7NIc.js
1231
- const n$54 = (e$47, t$106, n$117) => t$106 < 0 || t$106 >= e$47.length ? void 0 : r$17([...e$47], 0, e$47.length - 1, t$106, n$117);
1232
- function r$17(e$47, t$106, n$117, a$7, o$1) {
1233
- if (t$106 === n$117) return e$47[t$106];
1234
- let s = i$2(e$47, t$106, n$117, o$1);
1235
- return a$7 === s ? e$47[a$7] : r$17(e$47, a$7 < s ? t$106 : s + 1, a$7 < s ? s - 1 : n$117, a$7, o$1);
1236
- }
1237
- function i$2(t$106, n$117, r$44, i$17) {
1238
- let a$7 = t$106[r$44], o$1 = n$117;
1239
- for (let s = n$117; s < r$44; s++) i$17(t$106[s], a$7) < 0 && (e$39(t$106, o$1, s), o$1 += 1);
1240
- return e$39(t$106, o$1, r$44), o$1;
1241
- }
1242
- function a(...e$47) {
1243
- return n$97(o, e$47);
1244
- }
1245
- const o = (e$47, t$106, r$44) => n$54(e$47, r$44 >= 0 ? r$44 : e$47.length + r$44, t$106);
1246
-
1247
- //#endregion
1248
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/objOf.js
1249
- function t$47(...t$106) {
1250
- return t$105(n$53, t$106);
1251
- }
1252
- const n$53 = (e$47, t$106) => ({ [t$106]: e$47 });
1253
-
1254
- //#endregion
1255
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/omit.js
1256
- function n$52(...t$106) {
1257
- return t$105(r$16, t$106);
1258
- }
1259
- function r$16(e$47, n$117) {
1260
- if (!t$86(n$117, 1)) return { ...e$47 };
1261
- if (!t$86(n$117, 2)) {
1262
- let { [n$117[0]]: t$106, ...r$45 } = e$47;
1263
- return r$45;
1264
- }
1265
- let r$44 = { ...e$47 };
1266
- for (let e$48 of n$117) delete r$44[e$48];
1267
- return r$44;
1268
- }
1269
-
1270
- //#endregion
1271
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/omitBy.js
1272
- function t$46(...t$106) {
1273
- return t$105(n$51, t$106);
1274
- }
1275
- function n$51(e$47, t$106) {
1276
- let n$117 = { ...e$47 };
1277
- for (let [r$44, i$17] of Object.entries(n$117)) t$106(i$17, r$44, e$47) && delete n$117[r$44];
1278
- return n$117;
1279
- }
1280
-
1281
- //#endregion
1282
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/once.js
1283
- function e$12(e$47) {
1284
- let t$106 = !1, n$117;
1285
- return () => (t$106 ||= (n$117 = e$47(), !0), n$117);
1286
- }
1287
-
1288
- //#endregion
1289
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/only.js
1290
- function t$45(...t$106) {
1291
- return t$105(n$50, t$106);
1292
- }
1293
- const n$50 = (e$47) => e$47.length === 1 ? e$47[0] : void 0;
1294
-
1295
- //#endregion
1296
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/partialBind.js
1297
- function e$11(e$47, ...t$106) {
1298
- return (...n$117) => e$47(...t$106, ...n$117);
1299
- }
1300
-
1301
- //#endregion
1302
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/partialLastBind.js
1303
- function e$10(e$47, ...t$106) {
1304
- return (...n$117) => e$47(...n$117, ...t$106);
1305
- }
1306
-
1307
- //#endregion
1308
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/partition.js
1309
- function t$44(...t$106) {
1310
- return t$105(n$49, t$106);
1311
- }
1312
- const n$49 = (e$47, t$106) => {
1313
- let n$117 = [[], []];
1314
- for (let [r$44, i$17] of e$47.entries()) t$106(i$17, r$44, e$47) ? n$117[0].push(i$17) : n$117[1].push(i$17);
1315
- return n$117;
1316
- };
1317
-
1318
- //#endregion
1319
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/pathOr.js
1320
- function t$43(...t$106) {
1321
- return t$105(n$48, t$106);
1322
- }
1323
- function n$48(e$47, t$106, n$117) {
1324
- let r$44 = e$47;
1325
- for (let e$48 of t$106) {
1326
- if (r$44 == null) break;
1327
- r$44 = r$44[e$48];
1328
- }
1329
- return r$44 ?? n$117;
1330
- }
1331
-
1332
- //#endregion
1333
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/pick.js
1334
- function t$42(...t$106) {
1335
- return t$105(n$47, t$106);
1336
- }
1337
- function n$47(e$47, t$106) {
1338
- let n$117 = {};
1339
- for (let r$44 of t$106) r$44 in e$47 && (n$117[r$44] = e$47[r$44]);
1340
- return n$117;
1341
- }
1342
-
1343
- //#endregion
1344
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/pickBy.js
1345
- function t$41(...t$106) {
1346
- return t$105(n$46, t$106);
1347
- }
1348
- function n$46(e$47, t$106) {
1349
- let n$117 = {};
1350
- for (let [r$44, i$17] of Object.entries(e$47)) t$106(i$17, r$44, e$47) && (n$117[r$44] = i$17);
1351
- return n$117;
1352
- }
1353
-
1354
- //#endregion
1355
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/piped.js
1356
- function t$40(...t$106) {
1357
- return (n$117) => t$90(n$117, ...t$106);
1358
- }
1359
-
1360
- //#endregion
1361
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/product.js
1362
- function t$39(...t$106) {
1363
- return t$105(n$45, t$106);
1364
- }
1365
- function n$45(e$47) {
1366
- let t$106 = typeof e$47[0] == `bigint` ? 1n : 1;
1367
- for (let n$117 of e$47) t$106 *= n$117;
1368
- return t$106;
1369
- }
1370
-
1371
- //#endregion
1372
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/prop.js
1373
- function e$9(e$47, ...n$117) {
1374
- return typeof e$47 == `string` || typeof e$47 == `number` || typeof e$47 == `symbol` ? (r$44) => t$38(r$44, e$47, ...n$117) : t$38(e$47, ...n$117);
1375
- }
1376
- function t$38(e$47, ...t$106) {
1377
- let n$117 = e$47;
1378
- for (let e$48 of t$106) {
1379
- if (n$117 == null) return;
1380
- n$117 = n$117[e$48];
1381
- }
1382
- return n$117;
1383
- }
1384
-
1385
- //#endregion
1386
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/pullObject.js
1387
- function t$37(...t$106) {
1388
- return t$105(n$44, t$106);
1389
- }
1390
- function n$44(e$47, t$106, n$117) {
1391
- let r$44 = {};
1392
- for (let [i$17, a$7] of e$47.entries()) {
1393
- let o$1 = t$106(a$7, i$17, e$47);
1394
- r$44[o$1] = n$117(a$7, i$17, e$47);
1395
- }
1396
- return r$44;
1397
- }
1398
-
1399
- //#endregion
1400
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/randomBigInt.js
1401
- function e$8(e$47, r$44) {
1402
- if (r$44 < e$47) throw RangeError(`randomBigInt: The range [${e$47.toString()},${r$44.toString()}] is empty.`);
1403
- let i$17 = r$44 - e$47, { length: a$7 } = i$17.toString(2), o$1 = Math.ceil(a$7 / 8), s = BigInt(8 - a$7 % 8);
1404
- for (;;) {
1405
- let r$45 = t$36(n$43(o$1)) >> s;
1406
- if (r$45 <= i$17) return r$45 + e$47;
1407
- }
1408
- }
1409
- function t$36(e$47) {
1410
- let t$106 = 0n;
1411
- for (let n$117 of e$47) t$106 = (t$106 << 8n) + BigInt(n$117);
1412
- return t$106;
1413
- }
1414
- function n$43(e$47) {
1415
- let t$106 = new Uint8Array(e$47);
1416
- if (typeof crypto > `u`) for (let n$117 = 0; n$117 < e$47; n$117 += 1) t$106[n$117] = Math.floor(Math.random() * 256);
1417
- else crypto.getRandomValues(t$106);
1418
- return t$106;
1419
- }
1420
-
1421
- //#endregion
1422
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/randomInteger.js
1423
- function e$7(e$47, t$106) {
1424
- let n$117 = Math.ceil(e$47), r$44 = Math.floor(t$106);
1425
- if (r$44 < n$117) throw RangeError(`randomInteger: The range [${e$47.toString()},${t$106.toString()}] contains no integer`);
1426
- return Math.floor(Math.random() * (r$44 - n$117 + 1) + n$117);
1427
- }
1428
-
1429
- //#endregion
1430
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/randomString.js
1431
- function t$35(...t$106) {
1432
- return t$105(n$42, t$106);
1433
- }
1434
- function n$42(e$47) {
1435
- let t$106 = [];
1436
- for (let n$117 = 0; n$117 < e$47; n$117++) {
1437
- let e$48 = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`[Math.floor(Math.random() * 62)];
1438
- t$106.push(e$48);
1439
- }
1440
- return t$106.join(``);
1441
- }
1442
-
1443
- //#endregion
1444
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/range.js
1445
- function t$34(...t$106) {
1446
- return t$105(n$41, t$106);
1447
- }
1448
- function n$41(e$47, t$106) {
1449
- let n$117 = [];
1450
- for (let r$44 = e$47; r$44 < t$106; r$44++) n$117.push(r$44);
1451
- return n$117;
1452
- }
1453
-
1454
- //#endregion
1455
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/rankBy.js
1456
- function t$33(...t$106) {
1457
- return n$97(n$40, t$106);
1458
- }
1459
- function n$40(e$47, t$106, n$117) {
1460
- let r$44 = 0;
1461
- for (let i$17 of e$47) t$106(n$117, i$17) > 0 && (r$44 += 1);
1462
- return r$44;
1463
- }
1464
-
1465
- //#endregion
1466
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/reduce.js
1467
- function t$32(...t$106) {
1468
- return t$105(n$39, t$106);
1469
- }
1470
- const n$39 = (e$47, t$106, n$117) => e$47.reduce(t$106, n$117);
1471
-
1472
- //#endregion
1473
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/reverse.js
1474
- function t$31(...t$106) {
1475
- return t$105(n$38, t$106);
1476
- }
1477
- function n$38(e$47) {
1478
- return [...e$47].reverse();
1479
- }
1480
-
1481
- //#endregion
1482
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/round.js
1483
- function n$37(...n$117) {
1484
- return t$105(e$45(Math.round), n$117);
1485
- }
1486
-
1487
- //#endregion
1488
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/sample.js
1489
- function t$30(...t$106) {
1490
- return t$105(n$36, t$106);
1491
- }
1492
- function n$36(e$47, t$106) {
1493
- if (t$106 <= 0) return [];
1494
- if (t$106 >= e$47.length) return [...e$47];
1495
- let n$117 = Math.min(t$106, e$47.length - t$106), r$44 = /* @__PURE__ */ new Set();
1496
- for (; r$44.size < n$117;) {
1497
- let t$107 = Math.floor(Math.random() * e$47.length);
1498
- r$44.add(t$107);
1499
- }
1500
- return t$106 === n$117 ? [...r$44].sort((e$48, t$107) => e$48 - t$107).map((t$107) => e$47[t$107]) : e$47.filter((e$48, t$107) => !r$44.has(t$107));
1501
- }
1502
-
1503
- //#endregion
1504
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/set.js
1505
- function t$29(...t$106) {
1506
- return t$105(n$35, t$106);
1507
- }
1508
- const n$35 = (e$47, t$106, n$117) => ({
1509
- ...e$47,
1510
- [t$106]: n$117
1511
- });
1512
-
1513
- //#endregion
1514
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/setPath.js
1515
- function t$28(...t$106) {
1516
- return t$105(n$34, t$106);
1517
- }
1518
- function n$34(e$47, t$106, r$44) {
1519
- let [i$17, ...a$7] = t$106;
1520
- if (i$17 === void 0) return r$44;
1521
- if (Array.isArray(e$47)) {
1522
- let t$107 = [...e$47];
1523
- return t$107[i$17] = n$34(e$47[i$17], a$7, r$44), t$107;
1524
- }
1525
- let { [i$17]: o$1, ...s } = e$47;
1526
- return {
1527
- ...s,
1528
- [i$17]: n$34(o$1, a$7, r$44)
1529
- };
1530
- }
1531
-
1532
- //#endregion
1533
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/shuffle.js
1534
- function t$27(...t$106) {
1535
- return t$105(n$33, t$106);
1536
- }
1537
- function n$33(e$47) {
1538
- let t$106 = [...e$47];
1539
- for (let n$117 = 0; n$117 < e$47.length; n$117++) {
1540
- let r$44 = n$117 + Math.floor(Math.random() * (e$47.length - n$117)), i$17 = t$106[r$44];
1541
- t$106[r$44] = t$106[n$117], t$106[n$117] = i$17;
1542
- }
1543
- return t$106;
1544
- }
1545
-
1546
- //#endregion
1547
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/sliceString.js
1548
- function e$6(e$47, t$106, n$117) {
1549
- return typeof e$47 == `string` ? e$47.slice(t$106, n$117) : (n$118) => n$118.slice(e$47, t$106);
1550
- }
1551
-
1552
- //#endregion
1553
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/sort.js
1554
- function t$26(...t$106) {
1555
- return t$105(n$32, t$106);
1556
- }
1557
- function n$32(e$47, t$106) {
1558
- let n$117 = [...e$47];
1559
- return n$117.sort(t$106), n$117;
1560
- }
1561
-
1562
- //#endregion
1563
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/sortBy.js
1564
- function t$25(...t$106) {
1565
- return t$85(n$31, t$106);
1566
- }
1567
- const n$31 = (e$47, t$106) => [...e$47].sort(t$106);
1568
-
1569
- //#endregion
1570
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/binarySearchCutoffIndex-Bdl6tV2n.js
1571
- function e$5(e$47, t$106) {
1572
- let n$117 = 0, r$44 = e$47.length;
1573
- for (; n$117 < r$44;) {
1574
- let i$17 = n$117 + r$44 >>> 1, a$7 = e$47[i$17];
1575
- t$106(a$7, i$17, e$47) ? n$117 = i$17 + 1 : r$44 = i$17;
1576
- }
1577
- return r$44;
1578
- }
1579
-
1580
- //#endregion
1581
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/sortedIndex.js
1582
- function n$30(...t$106) {
1583
- return t$105(r$15, t$106);
1584
- }
1585
- const r$15 = (e$47, n$117) => e$5(e$47, (e$48) => e$48 < n$117);
1586
-
1587
- //#endregion
1588
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/sortedIndexBy.js
1589
- function n$29(...t$106) {
1590
- return t$105(r$14, t$106);
1591
- }
1592
- function r$14(e$47, n$117, r$44) {
1593
- let i$17 = r$44(n$117, void 0, e$47);
1594
- return e$5(e$47, (t$106, n$118) => r$44(t$106, n$118, e$47) < i$17);
1595
- }
1596
-
1597
- //#endregion
1598
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/sortedIndexWith.js
1599
- function n$28(...n$117) {
1600
- return t$105(e$5, n$117);
1601
- }
1602
-
1603
- //#endregion
1604
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/sortedLastIndex.js
1605
- function n$27(...t$106) {
1606
- return t$105(r$13, t$106);
1607
- }
1608
- const r$13 = (e$47, n$117) => e$5(e$47, (e$48) => e$48 <= n$117);
1609
-
1610
- //#endregion
1611
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/sortedLastIndexBy.js
1612
- function n$26(...t$106) {
1613
- return t$105(r$12, t$106);
1614
- }
1615
- function r$12(e$47, n$117, r$44) {
1616
- let i$17 = r$44(n$117, void 0, e$47);
1617
- return e$5(e$47, (t$106, n$118) => r$44(t$106, n$118, e$47) <= i$17);
1618
- }
1619
-
1620
- //#endregion
1621
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/splice.js
1622
- function t$24(...t$106) {
1623
- return t$105(n$25, t$106);
1624
- }
1625
- function n$25(e$47, t$106, n$117, r$44) {
1626
- let i$17 = [...e$47];
1627
- return i$17.splice(t$106, n$117, ...r$44), i$17;
1628
- }
1629
-
1630
- //#endregion
1631
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/split.js
1632
- function e$4(e$47, t$106, n$117) {
1633
- return typeof t$106 == `number` || t$106 === void 0 ? (n$118) => n$118.split(e$47, t$106) : e$47.split(t$106, n$117);
1634
- }
1635
-
1636
- //#endregion
1637
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/splitAt.js
1638
- function t$23(...t$106) {
1639
- return t$105(n$24, t$106);
1640
- }
1641
- function n$24(e$47, t$106) {
1642
- let n$117 = Math.max(Math.min(t$106 < 0 ? e$47.length + t$106 : t$106, e$47.length), 0);
1643
- return [e$47.slice(0, n$117), e$47.slice(n$117)];
1644
- }
1645
-
1646
- //#endregion
1647
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/splitWhen.js
1648
- function t$22(...t$106) {
1649
- return t$105(n$23, t$106);
1650
- }
1651
- function n$23(e$47, t$106) {
1652
- let n$117 = e$47.findIndex(t$106);
1653
- return n$117 === -1 ? [[...e$47], []] : [e$47.slice(0, n$117), e$47.slice(n$117)];
1654
- }
1655
-
1656
- //#endregion
1657
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/startsWith.js
1658
- function t$21(...t$106) {
1659
- return t$105(n$22, t$106);
1660
- }
1661
- const n$22 = (e$47, t$106) => e$47.startsWith(t$106);
1662
-
1663
- //#endregion
1664
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/stringToPath.js
1665
- const e$3 = /^(?:0|[1-9][0-9]*)$/u;
1666
- function t$20(n$117) {
1667
- let r$44 = [], i$17 = /\.{0,4096}(?<propName>[^.[\]]+)|\['(?<quoted>.{0,4096}?)'\]|\["(?<doubleQuoted>.{0,4096}?)"\]|\[(?<unquoted>.{0,4096}?)\]/uy, a$7;
1668
- for (; (a$7 = i$17.exec(n$117)) !== null;) {
1669
- let { propName: n$118, quoted: i$18, doubleQuoted: o$1, unquoted: s } = a$7.groups;
1670
- if (s !== void 0) {
1671
- r$44.push(...t$20(s));
1672
- continue;
1673
- }
1674
- r$44.push(n$118 === void 0 ? i$18 ?? o$1 : e$3.test(n$118) ? Number(n$118) : n$118);
1675
- }
1676
- return r$44;
1677
- }
1678
-
1679
- //#endregion
1680
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/subtract.js
1681
- function t$19(...t$106) {
1682
- return t$105(n$21, t$106);
1683
- }
1684
- const n$21 = (e$47, t$106) => e$47 - t$106;
1685
-
1686
- //#endregion
1687
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/sumBy.js
1688
- function t$18(...t$106) {
1689
- return t$105(n$20, t$106);
1690
- }
1691
- const n$20 = (e$47, t$106) => {
1692
- let n$117 = e$47.entries(), r$44 = n$117.next();
1693
- if (`done` in r$44 && r$44.done) return 0;
1694
- let { value: [, i$17] } = r$44, a$7 = t$106(i$17, 0, e$47);
1695
- for (let [r$45, i$18] of n$117) {
1696
- let n$118 = t$106(i$18, r$45, e$47);
1697
- a$7 += n$118;
1698
- }
1699
- return a$7;
1700
- };
1701
-
1702
- //#endregion
1703
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/swapIndices.js
1704
- function t$17(...t$106) {
1705
- return t$105(n$19, t$106);
1706
- }
1707
- const n$19 = (e$47, t$106, n$117) => typeof e$47 == `string` ? r$11([...e$47], t$106, n$117).join(``) : r$11(e$47, t$106, n$117);
1708
- function r$11(e$47, t$106, n$117) {
1709
- let r$44 = [...e$47];
1710
- if (Number.isNaN(t$106) || Number.isNaN(n$117)) return r$44;
1711
- let i$17 = t$106 < 0 ? e$47.length + t$106 : t$106, a$7 = n$117 < 0 ? e$47.length + n$117 : n$117;
1712
- return i$17 < 0 || i$17 > e$47.length || a$7 < 0 || a$7 > e$47.length ? r$44 : (r$44[i$17] = e$47[a$7], r$44[a$7] = e$47[i$17], r$44);
1713
- }
1714
-
1715
- //#endregion
1716
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/swapProps.js
1717
- function t$16(...t$106) {
1718
- return t$105(n$18, t$106);
1719
- }
1720
- function n$18(e$47, t$106, n$117) {
1721
- let { [t$106]: r$44, [n$117]: i$17 } = e$47;
1722
- return {
1723
- ...e$47,
1724
- [t$106]: i$17,
1725
- [n$117]: r$44
1726
- };
1727
- }
1728
-
1729
- //#endregion
1730
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/take.js
1731
- function n$17(...t$106) {
1732
- return t$105(r$10, t$106, i$1);
1733
- }
1734
- const r$10 = (e$47, t$106) => t$106 < 0 ? [] : e$47.slice(0, t$106);
1735
- function i$1(e$47) {
1736
- if (e$47 <= 0) return n$103;
1737
- let n$117 = e$47;
1738
- return (e$48) => (--n$117, {
1739
- done: n$117 <= 0,
1740
- hasNext: !0,
1741
- next: e$48
1742
- });
1743
- }
1744
-
1745
- //#endregion
1746
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/takeFirstBy.js
1747
- function r$9(...e$47) {
1748
- return n$97(i, e$47);
1749
- }
1750
- function i(n$117, r$44, i$17) {
1751
- if (i$17 <= 0) return [];
1752
- if (i$17 >= n$117.length) return [...n$117];
1753
- let a$7 = n$117.slice(0, i$17);
1754
- n$98(a$7, r$44);
1755
- let o$1 = n$117.slice(i$17);
1756
- for (let e$47 of o$1) r$36(a$7, r$44, e$47);
1757
- return a$7;
1758
- }
1759
-
1760
- //#endregion
1761
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/takeLast.js
1762
- function t$15(...t$106) {
1763
- return t$105(n$16, t$106);
1764
- }
1765
- const n$16 = (e$47, t$106) => t$106 > 0 ? e$47.slice(Math.max(0, e$47.length - t$106)) : [];
1766
-
1767
- //#endregion
1768
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/takeLastWhile.js
1769
- function t$14(...t$106) {
1770
- return t$105(n$15, t$106);
1771
- }
1772
- function n$15(e$47, t$106) {
1773
- for (let n$117 = e$47.length - 1; n$117 >= 0; n$117--) if (!t$106(e$47[n$117], n$117, e$47)) return e$47.slice(n$117 + 1);
1774
- return [...e$47];
1775
- }
1776
-
1777
- //#endregion
1778
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/takeWhile.js
1779
- function t$13(...t$106) {
1780
- return t$105(n$14, t$106);
1781
- }
1782
- function n$14(e$47, t$106) {
1783
- let n$117 = [];
1784
- for (let [r$44, i$17] of e$47.entries()) {
1785
- if (!t$106(i$17, r$44, e$47)) break;
1786
- n$117.push(i$17);
1787
- }
1788
- return n$117;
1789
- }
1790
-
1791
- //#endregion
1792
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/tap.js
1793
- function t$12(...t$106) {
1794
- return t$105(n$13, t$106);
1795
- }
1796
- function n$13(e$47, t$106) {
1797
- return t$106(e$47), e$47;
1798
- }
1799
-
1800
- //#endregion
1801
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/times.js
1802
- function t$11(...t$106) {
1803
- return t$105(n$12, t$106);
1804
- }
1805
- function n$12(e$47, t$106) {
1806
- if (e$47 < 1) return [];
1807
- let n$117 = Number.isInteger(e$47) ? e$47 : Math.floor(e$47), r$44 = Array(n$117);
1808
- for (let e$48 = 0; e$48 < n$117; e$48++) r$44[e$48] = t$106(e$48);
1809
- return r$44;
1810
- }
1811
-
1812
- //#endregion
1813
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/words-idA5_J31.js
1814
- const e$2 = new Set([
1815
- `-`,
1816
- `_`,
1817
- ...` .
1818
- .\v.\f.\r. .….\xA0. . . . . . . . . . . . .\u2028.\u2029. . . .`.split(`.`)
1819
- ]), t$10 = (t$106) => {
1820
- let n$117 = [], r$44 = ``, i$17 = () => {
1821
- r$44.length > 0 && (n$117.push(r$44), r$44 = ``);
1822
- };
1823
- for (let n$118 of t$106) {
1824
- if (e$2.has(n$118)) {
1825
- i$17();
1826
- continue;
1827
- }
1828
- if (/[a-z]$/u.test(r$44) && /[A-Z]/u.test(n$118)) i$17();
1829
- else if (/[A-Z][A-Z]$/u.test(r$44) && /[a-z]/u.test(n$118)) {
1830
- let e$47 = r$44.slice(-1);
1831
- r$44 = r$44.slice(0, -1), i$17(), r$44 = e$47;
1832
- } else /\d$/u.test(r$44) !== /\d/u.test(n$118) && i$17();
1833
- r$44 += n$118;
1834
- }
1835
- return i$17(), n$117;
1836
- };
1837
-
1838
- //#endregion
1839
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/toCamelCase.js
1840
- const t$9 = /[a-z]/u;
1841
- function n$11(e$47, t$106) {
1842
- return typeof e$47 == `string` ? r$8(e$47, t$106) : (t$107) => r$8(t$107, e$47);
1843
- }
1844
- const r$8 = (n$117, { preserveConsecutiveUppercase: r$44 = !0 } = {}) => t$10(t$9.test(n$117) ? n$117 : n$117.toLowerCase()).map((e$47, t$106) => `${t$106 === 0 ? e$47[0].toLowerCase() : e$47[0].toUpperCase()}${r$44 ? e$47.slice(1) : e$47.slice(1).toLowerCase()}`).join(``);
1845
-
1846
- //#endregion
1847
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/toKebabCase.js
1848
- function n$10(...t$106) {
1849
- return t$105(r$7, t$106);
1850
- }
1851
- const r$7 = (e$47) => t$10(e$47).join(`-`).toLowerCase();
1852
-
1853
- //#endregion
1854
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/toLowerCase.js
1855
- function t$8(...t$106) {
1856
- return t$105(n$9, t$106);
1857
- }
1858
- const n$9 = (e$47) => e$47.toLowerCase();
1859
-
1860
- //#endregion
1861
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/toSnakeCase.js
1862
- function n$8(...t$106) {
1863
- return t$105(r$6, t$106);
1864
- }
1865
- const r$6 = (e$47) => t$10(e$47).join(`_`).toLowerCase();
1866
-
1867
- //#endregion
1868
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/toTitleCase.js
1869
- const t$7 = /[a-z]/u;
1870
- function n$7(e$47, t$106) {
1871
- return typeof e$47 == `string` ? r$5(e$47, t$106) : (t$107) => r$5(t$107, e$47);
1872
- }
1873
- const r$5 = (n$117, { preserveConsecutiveUppercase: r$44 = !0 } = {}) => t$10(t$7.test(n$117) ? n$117 : n$117.toLowerCase()).map((e$47) => `${e$47[0].toUpperCase()}${r$44 ? e$47.slice(1) : e$47.slice(1).toLowerCase()}`).join(` `);
1874
-
1875
- //#endregion
1876
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/toUpperCase.js
1877
- function t$6(...t$106) {
1878
- return t$105(n$6, t$106);
1879
- }
1880
- const n$6 = (e$47) => e$47.toUpperCase();
1881
-
1882
- //#endregion
1883
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/truncate.js
1884
- function e$1(e$47, n$117, r$44) {
1885
- return typeof e$47 == `string` ? t$5(e$47, n$117, r$44) : (r$45) => t$5(r$45, e$47, n$117);
1886
- }
1887
- function t$5(e$47, t$106, { omission: n$117 = `...`, separator: r$44 } = {}) {
1888
- if (e$47.length <= t$106) return e$47;
1889
- if (t$106 <= 0) return ``;
1890
- if (t$106 < n$117.length) return n$117.slice(0, t$106);
1891
- let i$17 = t$106 - n$117.length;
1892
- if (typeof r$44 == `string`) {
1893
- let t$107 = e$47.lastIndexOf(r$44, i$17);
1894
- t$107 !== -1 && (i$17 = t$107);
1895
- } else if (r$44 !== void 0) {
1896
- let t$107 = r$44.flags.includes(`g`) ? r$44 : new RegExp(r$44.source, `${r$44.flags}g`), n$118;
1897
- for (let { index: r$45 } of e$47.matchAll(t$107)) {
1898
- if (r$45 > i$17) break;
1899
- n$118 = r$45;
1900
- }
1901
- n$118 !== void 0 && (i$17 = n$118);
1902
- }
1903
- return `${e$47.slice(0, i$17)}${n$117}`;
1904
- }
1905
-
1906
- //#endregion
1907
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/uncapitalize.js
1908
- function t$4(...t$106) {
1909
- return t$105(n$5, t$106);
1910
- }
1911
- const n$5 = (e$47) => `${e$47[0]?.toLowerCase() ?? ``}${e$47.slice(1)}`;
1912
-
1913
- //#endregion
1914
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/unique.js
1915
- function n$4(...e$47) {
1916
- return t$89(r$4, e$47);
1917
- }
1918
- function r$4() {
1919
- let t$106 = /* @__PURE__ */ new Set();
1920
- return (n$117) => t$106.has(n$117) ? t$91 : (t$106.add(n$117), {
1921
- done: !1,
1922
- hasNext: !0,
1923
- next: n$117
1924
- });
1925
- }
1926
-
1927
- //#endregion
1928
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/uniqueBy.js
1929
- function n$3(...e$47) {
1930
- return t$89(r$3, e$47);
1931
- }
1932
- function r$3(t$106) {
1933
- let n$117 = t$106, r$44 = /* @__PURE__ */ new Set();
1934
- return (t$107, i$17, a$7) => {
1935
- let o$1 = n$117(t$107, i$17, a$7);
1936
- return r$44.has(o$1) ? t$91 : (r$44.add(o$1), {
1937
- done: !1,
1938
- hasNext: !0,
1939
- next: t$107
1940
- });
1941
- };
1942
- }
1943
-
1944
- //#endregion
1945
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/uniqueWith.js
1946
- function n$2(...e$47) {
1947
- return t$89(r$2, e$47);
1948
- }
1949
- const r$2 = (t$106) => (n$117, r$44, i$17) => i$17.findIndex((e$47, i$18) => r$44 === i$18 || t$106(n$117, e$47)) === r$44 ? {
1950
- done: !1,
1951
- hasNext: !0,
1952
- next: n$117
1953
- } : t$91;
1954
-
1955
- //#endregion
1956
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/values.js
1957
- function t$3(...t$106) {
1958
- return t$105(Object.values, t$106);
1959
- }
1960
-
1961
- //#endregion
1962
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/when.js
1963
- function e(...e$47) {
1964
- return e$47.length === 2 ? (n$117, ...r$44) => t$2(n$117, ...e$47, ...r$44) : t$2(...e$47);
1965
- }
1966
- const t$2 = (e$47, t$106, n$117, ...r$44) => t$106(e$47, ...r$44) ? typeof n$117 == `function` ? n$117(e$47, ...r$44) : n$117.onTrue(e$47, ...r$44) : typeof n$117 == `function` ? e$47 : n$117.onFalse(e$47, ...r$44);
1967
-
1968
- //#endregion
1969
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/zip.js
1970
- function t$1(...t$106) {
1971
- return t$105(n$1, t$106, r$1);
1972
- }
1973
- const n$1 = (e$47, t$106) => e$47.length < t$106.length ? e$47.map((e$48, n$117) => [e$48, t$106[n$117]]) : t$106.map((t$107, n$117) => [e$47[n$117], t$107]), r$1 = (e$47) => (t$106, n$117) => ({
1974
- hasNext: !0,
1975
- next: [t$106, e$47[n$117]],
1976
- done: n$117 >= e$47.length - 1
1977
- });
1978
-
1979
- //#endregion
1980
- //#region node_modules/.pnpm/remeda@2.33.1/node_modules/remeda/dist/zipWith.js
1981
- function t(t$106, i$17, a$7) {
1982
- return typeof t$106 == `function` ? (e$47, r$44) => n(e$47, r$44, t$106) : typeof i$17 == `function` ? e$46(n, [t$106, i$17], r) : n(t$106, i$17, a$7);
1983
- }
1984
- function n(e$47, t$106, n$117) {
1985
- let r$44 = [e$47, t$106];
1986
- return e$47.length < t$106.length ? e$47.map((e$48, i$17) => n$117(e$48, t$106[i$17], i$17, r$44)) : t$106.map((t$107, i$17) => n$117(e$47[i$17], t$107, i$17, r$44));
1987
- }
1988
- const r = (e$47, t$106) => (n$117, r$44, i$17) => ({
1989
- next: t$106(n$117, e$47[r$44], r$44, [i$17, e$47]),
1990
- hasNext: !0,
1991
- done: r$44 >= e$47.length - 1
1992
- });
1993
-
1994
- //#endregion
1995
- //#region src/remeda/hasOwnProperty.ts
1996
- function hasOwnProperty(...args) {
1997
- return t$105(hasOwnPropertyImplementation, args);
1998
- }
1999
- function hasOwnPropertyImplementation(data, properties) {
2000
- if (!e$19(data)) return false;
2001
- for (const property of properties) if (!Object.hasOwn(data, property)) return false;
2002
- return true;
2003
- }
2004
-
2005
- //#endregion
2006
- //#region src/remeda/isFunction.ts
2007
- /**
2008
-
2009
- * A function that checks if the passed parameter is a Function and narrows its type accordingly.
2010
-
2011
- *
2012
-
2013
- * @param data - The variable to check.
2014
-
2015
- * @returns True if the passed input is a Function, false otherwise.
2016
-
2017
- * @signature
2018
-
2019
- * R.isFunction(data)
2020
-
2021
- * @example
2022
-
2023
- * R.isFunction(() => {}) //=> true
2024
-
2025
- * R.isFunction('somethingElse') //=> false
2026
-
2027
- * @category Guard
2028
-
2029
- */
2030
- function isFunction(data) {
2031
- return typeof data === "function";
2032
- }
2033
-
2034
- //#endregion
2035
- //#region src/remeda/isPromiseLike.ts
2036
- /**
2037
- * A function that checks if the passed parameter is a isPromiseLike and narrows its type accordingly.
2038
- *
2039
- * @param data - The variable to check.
2040
- * @returns True if the passed input is a isPromiseLike, false otherwise.
2041
- * @signature
2042
- * R.isPromiseLike(data)
2043
- * @example
2044
- * R.isPromiseLike(Promise.resolve(5)) //=> true
2045
- * R.isPromiseLike(Promise.reject(5)) //=> true
2046
- * R.isPromiseLike({ then: () => {} }) //=> true
2047
- * R.isPromiseLike('somethingElse') //=> false
2048
- * @category Guard
2049
- */
2050
- function isPromiseLike(data) {
2051
- return e$19(data) && e$26(data.then) && Object.getOwnPropertyDescriptor(data, "then")?.get === void 0;
2052
- }
2053
-
2054
- //#endregion
2055
- //#region node_modules/.pnpm/rotery@0.7.0/node_modules/rotery/dist/esm/compositions/pipe.js
2056
- function pipe(value, ...operations) {
2057
- let result = value;
2058
- for (const operation of operations) result = operation(result);
2059
- return result;
2060
- }
2061
-
2062
- //#endregion
2063
- //#region node_modules/.pnpm/rotery@0.7.0/node_modules/rotery/dist/esm/compositions/compose.js
2064
- function compose(...functions) {
2065
- return (value) => pipe(value, ...functions);
2066
- }
2067
-
2068
- //#endregion
2069
- //#region node_modules/.pnpm/rotery@0.7.0/node_modules/rotery/dist/esm/compositions/curry.js
2070
- function curry(fn, nth) {
2071
- const curried = ((...args) => (a0) => fn(a0, ...args));
2072
- return nth === void 0 || nth <= 1 ? curried : curry(curried, nth - 1);
2073
- }
2074
-
2075
- //#endregion
2076
- //#region node_modules/.pnpm/rotery@0.7.0/node_modules/rotery/dist/esm/compositions/purry.js
2077
- function purry(fn) {
2078
- return ((...args) => fn.length === args.length ? fn(...args) : curry(fn)(...args));
2079
- }
2080
-
2081
- //#endregion
2082
- //#region node_modules/.pnpm/rotery@0.7.0/node_modules/rotery/dist/esm/controls/_guards.js
2083
- const _isIterable = (value) => Symbol.iterator in value;
2084
-
2085
- //#endregion
2086
- //#region node_modules/.pnpm/rotery@0.7.0/node_modules/rotery/dist/esm/controls/accumulate.js
2087
- function accumulateSync(input) {
2088
- return [...input];
2089
- }
2090
- async function accumulateAsync(input) {
2091
- const accumulator = [];
2092
- const awaited = await input;
2093
- if (_isIterable(awaited)) for (const value of awaited) accumulator.push(await value);
2094
- else for await (const value of awaited) accumulator.push(value);
2095
- return accumulator;
2096
- }
2097
- var accumulate;
2098
- (function(accumulate$1) {
2099
- accumulate$1.sync = accumulateSync;
2100
- accumulate$1.async = accumulateAsync;
2101
- })(accumulate || (accumulate = {}));
2102
- const executeAsync = accumulateAsync;
2103
- const toArrayAsync = accumulateAsync;
2104
- const awaitAll = accumulateAsync;
2105
-
2106
- //#endregion
2107
- //#region node_modules/.pnpm/rotery@0.7.0/node_modules/rotery/dist/esm/controls/buffer.js
2108
- const isNotEmptyElement = () => true;
2109
- const isArrayOrSet = (awaited) => Array.isArray(awaited) || awaited instanceof Set;
2110
- const toAwaitedIterator = async (input) => {
2111
- const awaited = await input;
2112
- return isArrayOrSet(awaited) ? awaited.values() : awaited;
2113
- };
2114
- const constructWorkFunction = (iterator) => async (k) => {
2115
- const next = iterator.next();
2116
- return {
2117
- k,
2118
- result: next instanceof Promise ? await next : {
2119
- value: await next.value,
2120
- done: next.done
2121
- }
2122
- };
2123
- };
2124
- const constructWorker = async (input, size, mode) => {
2125
- const work = constructWorkFunction(await toAwaitedIterator(input));
2126
- const workers = Array.from({ length: size }, async (_, k) => await work(k));
2127
- let fifoIndex = 0;
2128
- return {
2129
- next: mode === "fifo" ? async () => {
2130
- const { k, result } = await workers[fifoIndex];
2131
- if (result.done === true) delete workers[k];
2132
- else workers.splice(k, 1, work(k));
2133
- fifoIndex = (fifoIndex + 1) % size;
2134
- return result;
2135
- } : async () => {
2136
- const { k, result } = await Promise.race(workers.filter(isNotEmptyElement));
2137
- if (result.done === true) delete workers[k];
2138
- else workers.splice(k, 1, work(k));
2139
- return result;
2140
- },
2141
- get isActive() {
2142
- return workers.some(isNotEmptyElement);
2143
- }
2144
- };
2145
- };
2146
- async function* _buffer(input, options) {
2147
- const { size, mode } = {
2148
- mode: "frfo",
2149
- ...options
2150
- };
2151
- if (size <= 0 || !Number.isInteger(size)) throw new RangeError(`"size" must be a positive integer (got ${size.toString()}).`);
2152
- const worker = await constructWorker(input, size, mode);
2153
- while (worker.isActive) {
2154
- const result = await worker.next();
2155
- if (result.done === true) continue;
2156
- yield result.value;
2157
- }
2158
- }
2159
- function buffer(...args) {
2160
- return purry(_buffer)(...args);
2161
- }
2162
- const throttle = buffer;
2163
- const concurrency = throttle;
2164
-
2165
- //#endregion
2166
- //#region node_modules/.pnpm/rotery@0.7.0/node_modules/rotery/dist/esm/controls/chunk.js
2167
- function* _syncChunk(input, size) {
2168
- let accumulator = [];
2169
- for (const value of input) {
2170
- accumulator.push(value);
2171
- if (accumulator.length >= size) {
2172
- yield accumulator;
2173
- accumulator = [];
2174
- }
2175
- }
2176
- if (accumulator.length > 0) yield accumulator;
2177
- }
2178
- async function* _asyncChunk(input, size) {
2179
- let accumulator = [];
2180
- const awaited = await input;
2181
- if (_isIterable(awaited)) for (const value of awaited) {
2182
- accumulator.push(await value);
2183
- if (accumulator.length >= size) {
2184
- yield accumulator;
2185
- accumulator = [];
2186
- }
2187
- }
2188
- else for await (const value of awaited) {
2189
- accumulator.push(value);
2190
- if (accumulator.length >= size) {
2191
- yield accumulator;
2192
- accumulator = [];
2193
- }
2194
- }
2195
- if (accumulator.length > 0) yield accumulator;
2196
- }
2197
- function chunkSync(...args) {
2198
- return purry(_syncChunk)(...args);
2199
- }
2200
- function chunkAsync(...args) {
2201
- return purry(_asyncChunk)(...args);
2202
- }
2203
- var chunk;
2204
- (function(chunk$1) {
2205
- chunk$1.sync = chunkSync;
2206
- chunk$1.async = chunkAsync;
2207
- })(chunk || (chunk = {}));
2208
-
2209
- //#endregion
2210
- //#region node_modules/.pnpm/rotery@0.7.0/node_modules/rotery/dist/esm/controls/flatten.js
2211
- function* flattenSync(input) {
2212
- for (const pool of input) for (const value of pool) yield value;
2213
- }
2214
- async function* flattenAsync(input) {
2215
- const awaited = await input;
2216
- if (_isIterable(awaited)) for (const pool of awaited) {
2217
- const innerAwaited = await pool;
2218
- if (_isIterable(innerAwaited)) for (const value of innerAwaited) yield value;
2219
- else for await (const value of innerAwaited) yield value;
2220
- }
2221
- else for await (const pool of awaited) if (_isIterable(pool)) for (const value of pool) yield value;
2222
- else for await (const value of pool) yield value;
2223
- }
2224
- var flatten;
2225
- (function(flatten$1) {
2226
- flatten$1.sync = flattenSync;
2227
- flatten$1.async = flattenAsync;
2228
- })(flatten || (flatten = {}));
2229
-
2230
- //#endregion
2231
- //#region node_modules/.pnpm/rotery@0.7.0/node_modules/rotery/dist/esm/controls/serialize.js
2232
- function serializeSync(input) {
2233
- return input[Symbol.iterator]();
2234
- }
2235
- async function* serializeAsync(input) {
2236
- const awaited = await input;
2237
- if (_isIterable(awaited)) for (const value of awaited) yield value;
2238
- else for await (const value of awaited) yield value;
2239
- }
2240
- var serialize;
2241
- (function(serialize$1) {
2242
- serialize$1.sync = serializeSync;
2243
- serialize$1.async = serializeAsync;
2244
- })(serialize || (serialize = {}));
2245
- const toIteratorAsync = serializeAsync;
2246
-
2247
- //#endregion
2248
- //#region node_modules/.pnpm/rotery@0.7.0/node_modules/rotery/dist/esm/operations/filters/filter.js
2249
- function* _syncFilter(input, test) {
2250
- for (const value of input) if (test(value)) yield value;
2251
- }
2252
- async function* _asyncFilter(input, test) {
2253
- const awaited = await input;
2254
- if (_isIterable(awaited)) {
2255
- for (const value of awaited) if (await test(await value)) yield value;
2256
- } else for await (const value of awaited) if (await test(value)) yield value;
2257
- }
2258
- function filterSync(...args) {
2259
- return purry(_syncFilter)(...args);
2260
- }
2261
- function filterAsync(...args) {
2262
- return purry(_asyncFilter)(...args);
2263
- }
2264
- var filter;
2265
- (function(filter$1) {
2266
- filter$1.sync = filterSync;
2267
- filter$1.async = filterAsync;
2268
- })(filter || (filter = {}));
2269
-
2270
- //#endregion
2271
- //#region node_modules/.pnpm/rotery@0.7.0/node_modules/rotery/dist/esm/operations/filters/_unique-context.js
2272
- const _uniqueContext = () => {
2273
- const set = /* @__PURE__ */ new Set();
2274
- return Object.assign((value) => set.has(value) ? false : (set.add(value), true), { set });
2275
- };
2276
-
2277
- //#endregion
2278
- //#region node_modules/.pnpm/rotery@0.7.0/node_modules/rotery/dist/esm/operations/filters/unique.js
2279
- const uniqueSync = (input) => filterSync(input, _uniqueContext());
2280
- const uniqueAsync = (input) => filterAsync(input, _uniqueContext());
2281
- var unique;
2282
- (function(unique$1) {
2283
- unique$1.sync = uniqueSync;
2284
- unique$1.async = uniqueAsync;
2285
- })(unique || (unique = {}));
2286
-
2287
- //#endregion
2288
- //#region node_modules/.pnpm/rotery@0.7.0/node_modules/rotery/dist/esm/operations/filters/unique-by.js
2289
- const _syncUniqueBy = (input, key) => {
2290
- const isUnique = _uniqueContext();
2291
- return filterSync(input, (value) => isUnique(key(value)));
2292
- };
2293
- const _asyncUniqueBy = (input, key) => {
2294
- const isUnique = _uniqueContext();
2295
- return filterAsync(input, async (value) => isUnique(await key(value)));
2296
- };
2297
- function uniqueBySync(...args) {
2298
- return purry(_syncUniqueBy)(...args);
2299
- }
2300
- function uniqueByAsync(...args) {
2301
- return purry(_asyncUniqueBy)(...args);
2302
- }
2303
- var uniqueBy;
2304
- (function(uniqueBy$1) {
2305
- uniqueBy$1.sync = uniqueBySync;
2306
- uniqueBy$1.async = uniqueByAsync;
2307
- })(uniqueBy || (uniqueBy = {}));
2308
-
2309
- //#endregion
2310
- //#region node_modules/.pnpm/rotery@0.7.0/node_modules/rotery/dist/esm/operations/reducers/some.js
2311
- function _syncSome(input, test) {
2312
- for (const value of input) if (test(value)) return true;
2313
- return false;
2314
- }
2315
- async function _asyncSome(input, test) {
2316
- const awaited = await input;
2317
- if (_isIterable(awaited)) {
2318
- for (const value of awaited) if (await test(await value)) return true;
2319
- } else for await (const value of awaited) if (await test(value)) return true;
2320
- return false;
2321
- }
2322
- function someSync(...args) {
2323
- return purry(_syncSome)(...args);
2324
- }
2325
- function someAsync(...args) {
2326
- return purry(_asyncSome)(...args);
2327
- }
2328
- var some;
2329
- (function(some$1) {
2330
- some$1.sync = someSync;
2331
- some$1.async = someAsync;
2332
- })(some || (some = {}));
2333
-
2334
- //#endregion
2335
- //#region node_modules/.pnpm/rotery@0.7.0/node_modules/rotery/dist/esm/operations/filters/unique-with.js
2336
- const _syncUniqueWith = (input, equals) => {
2337
- const array = [];
2338
- return filterSync(input, (value1) => array.some((value2) => equals(value1, value2)) ? false : (array.push(value1), true));
2339
- };
2340
- const _asyncUniqueWith = (input, equals) => {
2341
- const array = [];
2342
- return filterAsync(input, async (value1) => await someAsync(array, async (value2) => await equals(value1, value2)) ? false : (array.push(value1), true));
2343
- };
2344
- function uniqueWithSync(...args) {
2345
- return purry(_syncUniqueWith)(...args);
2346
- }
2347
- function uniqueWithAsync(...args) {
2348
- return purry(_asyncUniqueWith)(...args);
2349
- }
2350
- var uniqueWith;
2351
- (function(uniqueWith$1) {
2352
- uniqueWith$1.sync = uniqueWithSync;
2353
- uniqueWith$1.async = uniqueWithAsync;
2354
- })(uniqueWith || (uniqueWith = {}));
2355
-
2356
- //#endregion
2357
- //#region node_modules/.pnpm/rotery@0.7.0/node_modules/rotery/dist/esm/operations/groups/_to-set.js
2358
- const _toSet = (input) => input instanceof Set ? input : new Set(input);
2359
-
2360
- //#endregion
2361
- //#region node_modules/.pnpm/rotery@0.7.0/node_modules/rotery/dist/esm/operations/groups/difference.js
2362
- const _syncDifference = (input, other) => {
2363
- const otherSet = _toSet(other);
2364
- return filterSync(input, (value) => !otherSet.has(value));
2365
- };
2366
- const _asyncDifference = (input, other) => {
2367
- const otherSet = _toSet(other);
2368
- return filterAsync(input, (value) => !otherSet.has(value));
2369
- };
2370
- function differenceSync(...args) {
2371
- return purry(_syncDifference)(...args);
2372
- }
2373
- function differenceAsync(...args) {
2374
- return purry(_asyncDifference)(...args);
2375
- }
2376
- var difference;
2377
- (function(difference$1) {
2378
- difference$1.sync = differenceSync;
2379
- difference$1.async = differenceAsync;
2380
- })(difference || (difference = {}));
2381
-
2382
- //#endregion
2383
- //#region node_modules/.pnpm/rotery@0.7.0/node_modules/rotery/dist/esm/operations/groups/difference-by.js
2384
- const _syncDifferenceBy = (input, other, key) => {
2385
- const otherSet = _toSet(other);
2386
- return filterSync(input, (value) => !otherSet.has(key(value)));
2387
- };
2388
- const _asyncDifferenceBy = (input, other, key) => {
2389
- const otherSet = _toSet(other);
2390
- return filterAsync(input, async (value) => !otherSet.has(await key(value)));
2391
- };
2392
- function differenceBySync(...args) {
2393
- return purry(_syncDifferenceBy)(...args);
2394
- }
2395
- function differenceByAsync(...args) {
2396
- return purry(_asyncDifferenceBy)(...args);
2397
- }
2398
- var differenceBy;
2399
- (function(differenceBy$1) {
2400
- differenceBy$1.sync = differenceBySync;
2401
- differenceBy$1.async = differenceByAsync;
2402
- })(differenceBy || (differenceBy = {}));
2403
-
2404
- //#endregion
2405
- //#region node_modules/.pnpm/rotery@0.7.0/node_modules/rotery/dist/esm/operations/groups/_intersect-with.js
2406
- const _syncIntersectWith = (other, equals) => (value) => {
2407
- for (const otherValue of other) if (equals(value, otherValue)) return true;
2408
- return false;
2409
- };
2410
- const _asyncIntersectWith = (other, equals) => async (value) => {
2411
- for (const otherValue of other) if (await equals(value, otherValue)) return true;
2412
- return false;
2413
- };
2414
-
2415
- //#endregion
2416
- //#region node_modules/.pnpm/rotery@0.7.0/node_modules/rotery/dist/esm/operations/groups/_different-with.js
2417
- const _syncNot = (fn) => (...args) => !fn(...args);
2418
- const _asyncNot = (fn) => async (...args) => !await fn(...args);
2419
- const _syncDifferentWith = (other, equals) => _syncNot(_syncIntersectWith(other, equals));
2420
- const _asyncDifferentWith = (other, equals) => _asyncNot(_asyncIntersectWith(other, equals));
2421
-
2422
- //#endregion
2423
- //#region node_modules/.pnpm/rotery@0.7.0/node_modules/rotery/dist/esm/operations/groups/difference-with.js
2424
- const _syncDifferenceWith = (input, other, equals) => filterSync(input, _syncDifferentWith(other, equals));
2425
- const _asyncDifferenceWith = (input, other, equals) => filterAsync(input, _asyncDifferentWith(other, equals));
2426
- function differenceWithSync(...args) {
2427
- return purry(_syncDifferenceWith)(...args);
2428
- }
2429
- function differenceWithAsync(...args) {
2430
- return purry(_asyncDifferenceWith)(...args);
2431
- }
2432
- var differenceWith;
2433
- (function(differenceWith$1) {
2434
- differenceWith$1.sync = differenceWithSync;
2435
- differenceWith$1.async = differenceWithAsync;
2436
- })(differenceWith || (differenceWith = {}));
2437
-
2438
- //#endregion
2439
- //#region node_modules/.pnpm/rotery@0.7.0/node_modules/rotery/dist/esm/operations/groups/intersection.js
2440
- const _syncIntersection = (input, other) => {
2441
- const otherSet = _toSet(other);
2442
- return filterSync(input, (value) => otherSet.has(value));
2443
- };
2444
- const _asyncIntersection = (input, other) => {
2445
- const otherSet = _toSet(other);
2446
- return filterAsync(input, (value) => otherSet.has(value));
2447
- };
2448
- function intersectionSync(...args) {
2449
- return purry(_syncIntersection)(...args);
2450
- }
2451
- function intersectionAsync(...args) {
2452
- return purry(_asyncIntersection)(...args);
2453
- }
2454
- var intersection;
2455
- (function(intersection$1) {
2456
- intersection$1.sync = intersectionSync;
2457
- intersection$1.async = intersectionAsync;
2458
- })(intersection || (intersection = {}));
2459
-
2460
- //#endregion
2461
- //#region node_modules/.pnpm/rotery@0.7.0/node_modules/rotery/dist/esm/operations/groups/intersection-by.js
2462
- const _syncIntersectionBy = (input, other, key) => {
2463
- const otherSet = _toSet(other);
2464
- return filterSync(input, (value) => otherSet.has(key(value)));
2465
- };
2466
- const _asyncIntersectionBy = (input, other, key) => {
2467
- const otherSet = _toSet(other);
2468
- return filterAsync(input, async (value) => otherSet.has(await key(value)));
2469
- };
2470
- function intersectionBySync(...args) {
2471
- return purry(_syncIntersectionBy)(...args);
2472
- }
2473
- function intersectionByAsync(...args) {
2474
- return purry(_asyncIntersectionBy)(...args);
2475
- }
2476
- var intersectionBy;
2477
- (function(intersectionBy$1) {
2478
- intersectionBy$1.sync = intersectionBySync;
2479
- intersectionBy$1.async = intersectionByAsync;
2480
- })(intersectionBy || (intersectionBy = {}));
2481
-
2482
- //#endregion
2483
- //#region node_modules/.pnpm/rotery@0.7.0/node_modules/rotery/dist/esm/operations/groups/intersection-with.js
2484
- const _syncIntersectionWith = (input, other, equals) => filterSync(input, _syncIntersectWith(other, equals));
2485
- const _asyncIntersectionWith = (input, other, equals) => filterAsync(input, _asyncIntersectWith(other, equals));
2486
- function intersectionWithSync(...args) {
2487
- return purry(_syncIntersectionWith)(...args);
2488
- }
2489
- function intersectionWithAsync(...args) {
2490
- return purry(_asyncIntersectionWith)(...args);
2491
- }
2492
- var intersectionWith;
2493
- (function(intersectionWith$1) {
2494
- intersectionWith$1.sync = intersectionWithSync;
2495
- intersectionWith$1.async = intersectionWithAsync;
2496
- })(intersectionWith || (intersectionWith = {}));
2497
-
2498
- //#endregion
2499
- //#region node_modules/.pnpm/rotery@0.7.0/node_modules/rotery/dist/esm/operations/mappers/flat-map.js
2500
- function* _syncFlatMap(input, mapper) {
2501
- for (const value of input) for (const output of mapper(value)) yield output;
2502
- }
2503
- async function* _asyncFlatMap(input, mapper) {
2504
- const awaited = await input;
2505
- if (_isIterable(awaited)) for (const value of awaited) {
2506
- const results = await mapper(await value);
2507
- if (_isIterable(results)) for (const output of results) yield output;
2508
- else for await (const output of results) yield output;
2509
- }
2510
- else for await (const value of awaited) {
2511
- const results = await mapper(value);
2512
- if (_isIterable(results)) for (const output of results) yield output;
2513
- else for await (const output of results) yield output;
2514
- }
2515
- }
2516
- function flatMapSync(...args) {
2517
- return purry(_syncFlatMap)(...args);
2518
- }
2519
- function flatMapAsync(...args) {
2520
- return purry(_asyncFlatMap)(...args);
2521
- }
2522
- var flatMap;
2523
- (function(flatMap$1) {
2524
- flatMap$1.sync = flatMapSync;
2525
- flatMap$1.async = flatMapAsync;
2526
- })(flatMap || (flatMap = {}));
2527
-
2528
- //#endregion
2529
- //#region node_modules/.pnpm/rotery@0.7.0/node_modules/rotery/dist/esm/operations/mappers/map.js
2530
- function* _syncMap(input, mapper) {
2531
- for (const value of input) yield mapper(value);
2532
- }
2533
- async function* _asyncMap(input, mapper) {
2534
- const awaited = await input;
2535
- if (_isIterable(awaited)) for (const value of awaited) yield mapper(await value);
2536
- else for await (const value of awaited) yield mapper(value);
2537
- }
2538
- function mapSync(...args) {
2539
- return purry(_syncMap)(...args);
2540
- }
2541
- function mapAsync(...args) {
2542
- return purry(_asyncMap)(...args);
2543
- }
2544
- var map;
2545
- (function(map$1) {
2546
- map$1.sync = mapSync;
2547
- map$1.async = mapAsync;
2548
- })(map || (map = {}));
2549
-
2550
- //#endregion
2551
- //#region node_modules/.pnpm/rotery@0.7.0/node_modules/rotery/dist/esm/operations/reducers/every.js
2552
- function _syncEvery(input, test) {
2553
- for (const value of input) if (!test(value)) return false;
2554
- return true;
2555
- }
2556
- async function _asyncEvery(input, test) {
2557
- const awaited = await input;
2558
- if (_isIterable(awaited)) {
2559
- for (const value of awaited) if (!await test(await value)) return false;
2560
- } else for await (const value of awaited) if (!await test(value)) return false;
2561
- return true;
2562
- }
2563
- function everySync(...args) {
2564
- return purry(_syncEvery)(...args);
2565
- }
2566
- function everyAsync(...args) {
2567
- return purry(_asyncEvery)(...args);
2568
- }
2569
- var every;
2570
- (function(every$1) {
2571
- every$1.sync = everySync;
2572
- every$1.async = everyAsync;
2573
- })(every || (every = {}));
2574
-
2575
- //#endregion
2576
- //#region node_modules/.pnpm/rotery@0.7.0/node_modules/rotery/dist/esm/operations/reducers/find.js
2577
- function _syncFind(input, test) {
2578
- for (const value of input) if (test(value)) return value;
2579
- }
2580
- async function _asyncFind(input, test) {
2581
- const awaited = await input;
2582
- if (_isIterable(awaited)) {
2583
- for (const value of awaited) if (await test(await value)) return await value;
2584
- } else for await (const value of awaited) if (await test(value)) return value;
2585
- }
2586
- function findSync(...args) {
2587
- return purry(_syncFind)(...args);
2588
- }
2589
- function findAsync(...args) {
2590
- return purry(_asyncFind)(...args);
2591
- }
2592
- var find;
2593
- (function(find$1) {
2594
- find$1.sync = findSync;
2595
- find$1.async = findAsync;
2596
- })(find || (find = {}));
2597
-
2598
- //#endregion
2599
- //#region node_modules/.pnpm/rotery@0.7.0/node_modules/rotery/dist/esm/operations/reducers/reduce.js
2600
- function _syncReduce(input, reducer, initialValue) {
2601
- let returnValue = initialValue;
2602
- for (const value of input) returnValue = reducer(returnValue, value);
2603
- return returnValue;
2604
- }
2605
- async function _asyncReduce(input, reducer, initialValue) {
2606
- let returnValue = await initialValue;
2607
- const awaited = await input;
2608
- if (_isIterable(awaited)) for (const value of awaited) returnValue = await reducer(returnValue, await value);
2609
- else for await (const value of awaited) returnValue = await reducer(returnValue, value);
2610
- return returnValue;
2611
- }
2612
- function reduceSync(...args) {
2613
- return purry(_syncReduce)(...args);
2614
- }
2615
- function reduceAsync(...args) {
2616
- return purry(_asyncReduce)(...args);
2617
- }
2618
- var reduce;
2619
- (function(reduce$1) {
2620
- reduce$1.sync = reduceSync;
2621
- reduce$1.async = reduceAsync;
2622
- })(reduce || (reduce = {}));
2623
-
2624
- //#endregion
2625
- //#region node_modules/.pnpm/rotery@0.7.0/node_modules/rotery/dist/esm/operations/side-effectors/for-each.js
2626
- function _syncForEach(input, action) {
2627
- for (const value of input) action(value);
2628
- }
2629
- async function _asyncForEach(input, action) {
2630
- const awaited = await input;
2631
- if (_isIterable(awaited)) for (const value of awaited) await action(await value);
2632
- else for await (const value of awaited) await action(value);
2633
- }
2634
- function forEachSync(...args) {
2635
- return purry(_syncForEach)(...args);
2636
- }
2637
- function forEachAsync(...args) {
2638
- return purry(_asyncForEach)(...args);
2639
- }
2640
- var forEach;
2641
- (function(forEach$1) {
2642
- forEach$1.sync = forEachSync;
2643
- forEach$1.async = forEachAsync;
2644
- })(forEach || (forEach = {}));
2645
-
2646
- //#endregion
2647
- //#region node_modules/.pnpm/rotery@0.7.0/node_modules/rotery/dist/esm/operations/side-effectors/peek.js
2648
- function* _syncPeek(input, action) {
2649
- for (const value of input) {
2650
- action(value);
2651
- yield value;
2652
- }
2653
- }
2654
- async function* _asyncPeek(input, action) {
2655
- const awaited = await input;
2656
- if (_isIterable(awaited)) for (const value of awaited) {
2657
- await action(await value);
2658
- yield value;
2659
- }
2660
- else for await (const value of awaited) {
2661
- await action(value);
2662
- yield value;
2663
- }
2664
- }
2665
- function peekSync(...args) {
2666
- return purry(_syncPeek)(...args);
2667
- }
2668
- function peekAsync(...args) {
2669
- return purry(_asyncPeek)(...args);
2670
- }
2671
- var peek;
2672
- (function(peek$1) {
2673
- peek$1.sync = peekSync;
2674
- peek$1.async = peekAsync;
2675
- })(peek || (peek = {}));
2676
-
2677
- //#endregion
2678
- //#region node_modules/.pnpm/rotery@0.7.0/node_modules/rotery/dist/esm/operations/splicers/concat.js
2679
- function* _syncConcat(preceding, following) {
2680
- for (const value of preceding) yield value;
2681
- for (const value of following) yield value;
2682
- }
2683
- async function* _asyncConcat(preceding, following) {
2684
- const awaitedPreceding = await preceding;
2685
- if (_isIterable(awaitedPreceding)) for (const value of awaitedPreceding) yield value;
2686
- else for await (const value of awaitedPreceding) yield value;
2687
- const awaitedFollowing = await following;
2688
- if (_isIterable(awaitedFollowing)) for (const value of awaitedFollowing) yield value;
2689
- else for await (const value of awaitedFollowing) yield value;
2690
- }
2691
- function concatSync(...args) {
2692
- return purry(_syncConcat)(...args);
2693
- }
2694
- function concatAsync(...args) {
2695
- return purry(_asyncConcat)(...args);
2696
- }
2697
- var concat;
2698
- (function(concat$1) {
2699
- concat$1.sync = concatSync;
2700
- concat$1.async = concatAsync;
2701
- })(concat || (concat = {}));
2702
-
2703
- //#endregion
2704
- //#region node_modules/.pnpm/rotery@0.7.0/node_modules/rotery/dist/esm/operations/splicers/drop.js
2705
- function* _syncDrop(input, drop$1) {
2706
- let leftDrop = drop$1;
2707
- for (const value of input) {
2708
- if (leftDrop > 0) {
2709
- leftDrop--;
2710
- continue;
2711
- }
2712
- yield value;
2713
- }
2714
- }
2715
- async function* _asyncDrop(input, drop$1) {
2716
- let leftDrop = drop$1;
2717
- const awaited = await input;
2718
- if (_isIterable(awaited)) for (const value of awaited) {
2719
- if (leftDrop > 0) {
2720
- leftDrop--;
2721
- continue;
2722
- }
2723
- yield value;
2724
- }
2725
- else for await (const value of awaited) {
2726
- if (leftDrop > 0) {
2727
- leftDrop--;
2728
- continue;
2729
- }
2730
- yield value;
2731
- }
2732
- }
2733
- function dropSync(...args) {
2734
- return purry(_syncDrop)(...args);
2735
- }
2736
- function dropAsync(...args) {
2737
- return purry(_asyncDrop)(...args);
2738
- }
2739
- var drop;
2740
- (function(drop$1) {
2741
- drop$1.sync = dropSync;
2742
- drop$1.async = dropAsync;
2743
- })(drop || (drop = {}));
2744
-
2745
- //#endregion
2746
- //#region node_modules/.pnpm/rotery@0.7.0/node_modules/rotery/dist/esm/operations/splicers/take.js
2747
- function* _syncTake(input, take$1) {
2748
- let leftTake = take$1;
2749
- for (const value of input) {
2750
- if (leftTake <= 0) break;
2751
- yield value;
2752
- leftTake--;
2753
- }
2754
- }
2755
- async function* _asyncTake(input, take$1) {
2756
- let leftTake = take$1;
2757
- const awaited = await input;
2758
- if (_isIterable(awaited)) for (const value of awaited) {
2759
- if (leftTake <= 0) break;
2760
- yield value;
2761
- leftTake--;
2762
- }
2763
- else for await (const value of awaited) {
2764
- if (leftTake <= 0) break;
2765
- yield value;
2766
- leftTake--;
2767
- }
2768
- }
2769
- function takeSync(...args) {
2770
- return purry(_syncTake)(...args);
2771
- }
2772
- function takeAsync(...args) {
2773
- return purry(_asyncTake)(...args);
2774
- }
2775
- var take;
2776
- (function(take$1) {
2777
- take$1.sync = takeSync;
2778
- take$1.async = takeAsync;
2779
- })(take || (take = {}));
2780
-
2781
- //#endregion
2782
- export { t$12 as $, n$86 as $n, e$13 as $t, awaitAll as A, e$29 as An, t$100 as Ar, t$33 as At, t$3 as B, e$35 as Bn, t$42 as Bt, toIteratorAsync as C, e$21 as Cn, e$43 as Cr, t$27 as Ct, concurrency as D, e$25 as Dn, t$97 as Dr, n$37 as Dt, buffer as E, e$24 as En, t$96 as Er, t$30 as Et, isFunction as F, e$34 as Fn, t$105 as Fr, t$37 as Ft, e$1 as G, n$79 as Gn, t$45 as Gt, n$3 as H, t$67 as Hn, t$44 as Ht, hasOwnProperty as I, t$64 as In, e$9 as It, n$8 as J, t$73 as Jn, n$52 as Jt, t$6 as K, t$71 as Kn, e$12 as Kt, t as L, n$73 as Ln, t$39 as Lt, toArrayAsync as M, e$31 as Mn, t$102 as Mr, t$35 as Mt, compose as N, e$32 as Nn, t$103 as Nr, e$7 as Nt, throttle as O, e$27 as On, t$98 as Or, t$31 as Ot, isPromiseLike as P, e$33 as Pn, t$104 as Pr, e$8 as Pt, t$11 as Q, n$85 as Qn, n$56 as Qt, t$1 as R, r$24 as Rn, t$40 as Rt, serializeAsync as S, e$20 as Sn, t$93 as Sr, e$6 as St, chunkAsync as T, e$23 as Tn, t$95 as Tr, t$29 as Tt, n$4 as U, t$68 as Un, e$10 as Ut, n$2 as V, n$75 as Vn, t$43 as Vt, t$4 as W, t$69 as Wn, e$11 as Wt, n$10 as X, n$83 as Xn, a as Xt, t$8 as Y, t$74 as Yn, t$47 as Yt, n$11 as Z, t$75 as Zn, t$48 as Zt, uniqueWithAsync as _, t$62 as _n, n$101 as _r, n$28 as _t, forEachAsync as a, t$53 as an, n$91 as ar, t$16 as at, uniqueAsync as b, e$18 as bn, t$92 as br, t$25 as bt, everyAsync as c, t$56 as cn, t$81 as cr, t$19 as ct, intersectionWithAsync as d, t$59 as dn, t$84 as dr, t$22 as dt, t$49 as en, n$87 as er, t$13 as et, intersectionByAsync as f, t$60 as fn, r$34 as fr, t$23 as ft, differenceAsync as g, e$16 as gn, t$88 as gr, n$27 as gt, differenceByAsync as h, e$15 as hn, e$40 as hr, n$26 as ht, peekAsync as i, t$52 as in, r$32 as ir, n$17 as it, executeAsync as j, e$30 as jn, t$101 as jr, t$34 as jt, accumulateAsync as k, e$28 as kn, n$111 as kr, t$32 as kt, mapAsync as l, t$57 as ln, t$82 as lr, t$20 as lt, differenceWithAsync as m, e$14 as mn, r$37 as mr, t$24 as mt, dropAsync as n, t$51 as nn, t$77 as nr, t$15 as nt, reduceAsync as o, t$54 as on, t$79 as or, t$17 as ot, intersectionAsync as p, t$61 as pn, t$86 as pr, e$4 as pt, n$7 as q, t$72 as qn, t$46 as qt, concatAsync as r, n$60 as rn, t$78 as rr, r$9 as rt, findAsync as s, t$55 as sn, t$80 as sr, t$18 as st, takeAsync as t, t$50 as tn, t$76 as tr, t$14 as tt, flatMapAsync as u, t$58 as un, t$83 as ur, t$21 as ut, someAsync as v, t$63 as vn, r$39 as vr, n$29 as vt, flattenAsync as w, e$22 as wn, t$94 as wr, t$28 as wt, filterAsync as x, e$19 as xn, e$42 as xr, t$26 as xt, uniqueByAsync as y, e$17 as yn, t$90 as yr, n$30 as yt, e as z, t$65 as zn, t$41 as zt };