likec4 1.48.0 → 1.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -1
- package/__app__/src/likec4.js +5595 -4127
- package/__app__/src/routes/index.js +3 -153
- package/__app__/src/routes/projects.js +21 -1087
- package/__app__/src/routes/single.js +1221 -16
- package/__app__/src/style.css +1 -1
- package/__app__/src/vendors.js +3507 -894
- package/__app__/src/webcomponent.js +1 -1
- package/config/schema.json +155 -143
- package/dist/THIRD-PARTY-LICENSES.md +1739 -0
- package/dist/_chunks/GraphvizBinaryAdapter.mjs +72 -0
- package/dist/_chunks/filenames.mjs +14 -0
- package/dist/_chunks/index.d.mts +224 -129
- package/dist/_chunks/index2.d.mts +2033 -1908
- package/dist/_chunks/libs/@chevrotain/gast.mjs +1 -3969
- package/dist/_chunks/libs/@chevrotain/regexp-to-ast.mjs +9 -785
- package/dist/_chunks/libs/@chevrotain/utils.mjs +1 -37
- package/dist/_chunks/libs/@hono/mcp.mjs +34 -0
- package/dist/_chunks/libs/@hono/node-server.mjs +1 -436
- package/dist/_chunks/libs/@logtape/logtape.d.mts +741 -0
- package/dist/_chunks/libs/@logtape/logtape.mjs +6 -1354
- package/dist/_chunks/libs/@lume/kiwi.mjs +1 -1355
- package/dist/_chunks/libs/@modelcontextprotocol/sdk.d.mts +14 -14
- package/dist/_chunks/libs/@modelcontextprotocol/sdk.mjs +12 -25105
- package/dist/_chunks/libs/@msgpack/msgpack.mjs +1 -1503
- package/dist/_chunks/libs/@nanostores/react.mjs +1 -30
- package/dist/_chunks/libs/@smithy/util-base64.mjs +1 -100
- package/dist/_chunks/libs/ajv.mjs +1 -777
- package/dist/_chunks/libs/atomically.mjs +1 -362
- package/dist/_chunks/libs/birpc.mjs +1 -201
- package/dist/_chunks/libs/chevrotain-allstar.mjs +2 -850
- package/dist/_chunks/libs/chevrotain.mjs +55 -6229
- package/dist/_chunks/libs/conf.mjs +1 -2258
- package/dist/_chunks/libs/defu.mjs +1 -42
- package/dist/_chunks/libs/esm-env.mjs +1 -5
- package/dist/_chunks/libs/eventemitter3.mjs +1 -243
- package/dist/_chunks/libs/fast-equals.mjs +1 -446
- package/dist/_chunks/libs/find-up-simple.mjs +1 -24
- package/dist/_chunks/libs/get-port.mjs +1 -107
- package/dist/_chunks/libs/is-docker.mjs +1 -26
- package/dist/_chunks/libs/is-error-instance.mjs +1 -26
- package/dist/_chunks/libs/is-inside-container.mjs +1 -20
- package/dist/_chunks/libs/is-plain-obj.mjs +1 -9
- package/dist/_chunks/libs/isexe.mjs +1 -127
- package/dist/_chunks/libs/json5.mjs +14 -959
- package/dist/_chunks/libs/khroma.mjs +1 -605
- package/dist/_chunks/libs/ky.mjs +2 -807
- package/dist/_chunks/libs/langium.d.mts +2880 -2844
- package/dist/_chunks/libs/langium.mjs +32 -20351
- package/dist/_chunks/libs/merge-error-cause.mjs +2 -746
- package/dist/_chunks/libs/nanostores.mjs +1 -198
- package/dist/_chunks/libs/p-limit.mjs +1 -120
- package/dist/_chunks/libs/p-queue.mjs +1 -449
- package/dist/_chunks/libs/package-manager-detector.mjs +1 -559
- package/dist/_chunks/libs/package-up.mjs +1 -10
- package/dist/_chunks/libs/parse-ms.mjs +1 -36
- package/dist/_chunks/libs/pathe.mjs +1 -0
- package/dist/_chunks/libs/picomatch.mjs +1 -1673
- package/dist/_chunks/libs/pretty-ms.mjs +1 -80
- package/dist/_chunks/libs/remeda.mjs +1 -690
- package/dist/_chunks/libs/safe-stringify.mjs +1 -21
- package/dist/_chunks/libs/strip-indent.mjs +1 -15
- package/dist/_chunks/libs/tinyrainbow.mjs +1 -88
- package/dist/_chunks/libs/ts-graphviz.mjs +4 -725
- package/dist/_chunks/libs/ufo.mjs +1 -240
- package/dist/_chunks/libs/which.mjs +1 -84
- package/dist/_chunks/libs/word-wrap.mjs +12 -43
- package/dist/_chunks/node.mjs +481 -0
- package/dist/_chunks/plugin.mjs +98 -772
- package/dist/_chunks/rolldown-runtime.mjs +1 -48
- package/dist/_chunks/sequence-view.mjs +1 -575
- package/dist/cli/index.mjs +127 -1846
- package/dist/config/index.d.mts +2 -2
- package/dist/config/index.mjs +1 -6
- package/dist/index.d.mts +148 -7
- package/dist/index.mjs +1 -21
- package/dist/model/builder.mjs +1 -3
- package/dist/model/index.d.mts +57 -3
- package/dist/model/index.mjs +1 -5
- package/dist/vite-plugin/index.d.mts +4 -3
- package/dist/vite-plugin/index.mjs +1 -22
- package/dist/vite-plugin/internal.d.mts +5 -5
- package/dist/vite-plugin/internal.mjs +1 -68
- package/package.json +60 -41
- package/react/{index.d.ts → index.d.mts} +112 -70
- package/react/{index.js → index.mjs} +21361 -22064
- package/react/package.json +2 -5
- package/vite-plugin-modules.d.ts +5 -5
- package/dist/_chunks/LikeC4.d.mts +0 -121
- package/dist/_chunks/LikeC4.mjs +0 -202
- package/dist/_chunks/config-app.prod.d.mts +0 -18
- package/dist/_chunks/config-app.prod.mjs +0 -188
- package/dist/_chunks/config-webcomponent.prod.mjs +0 -71
- package/dist/_chunks/define-config.mjs +0 -409
- package/dist/_chunks/index3.d.mts +0 -60
- package/dist/_chunks/index4.d.mts +0 -1
- package/dist/_chunks/libs/@smithy/is-array-buffer.mjs +0 -10
- package/dist/_chunks/libs/hono.mjs +0 -1829
- package/dist/_chunks/libs/nanoid.mjs +0 -29
- package/dist/_chunks/model.mjs +0 -12
- package/dist/_chunks/module.d.mts +0 -71
- package/dist/_chunks/module.mjs +0 -18657
- package/dist/_chunks/vite-build.mjs +0 -69
- package/dist/_chunks/vite-dev.mjs +0 -79
- package/dist/_chunks/vite-preview.mjs +0 -27
- package/dist/language/module.d.mts +0 -5
- package/dist/language/module.mjs +0 -20
- package/dist/vite/vite-build.d.mts +0 -26
- package/dist/vite/vite-build.mjs +0 -27
- package/dist/vite/vite-dev.d.mts +0 -34
- package/dist/vite/vite-dev.mjs +0 -29
- package/dist/vite/vite-preview.d.mts +0 -20
- package/dist/vite/vite-preview.mjs +0 -26
|
@@ -1,690 +1 @@
|
|
|
1
|
-
|
|
2
|
-
function e$16(e, t, n) {
|
|
3
|
-
let r = (n) => e(n, ...t);
|
|
4
|
-
return n === void 0 ? r : Object.assign(r, {
|
|
5
|
-
lazy: n,
|
|
6
|
-
lazyArgs: t
|
|
7
|
-
});
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
//#endregion
|
|
11
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/purry-DH9cw9sy.js
|
|
12
|
-
function t$34(t, n, r) {
|
|
13
|
-
let i = t.length - n.length;
|
|
14
|
-
if (i === 0) return t(...n);
|
|
15
|
-
if (i === 1) return e$16(t, n, r);
|
|
16
|
-
throw Error(`Wrong number of arguments`);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
//#endregion
|
|
20
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/anyPass-C9yFxHyK.js
|
|
21
|
-
function t$33(...t) {
|
|
22
|
-
return t$34(n$33, t);
|
|
23
|
-
}
|
|
24
|
-
const n$33 = (e, t) => t.some((t) => t(e));
|
|
25
|
-
|
|
26
|
-
//#endregion
|
|
27
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/chunk-DjNU0gfg.js
|
|
28
|
-
function t$32(...t) {
|
|
29
|
-
return t$34(n$32, t);
|
|
30
|
-
}
|
|
31
|
-
function n$32(e, t) {
|
|
32
|
-
if (t < 1) throw RangeError(`chunk: A chunk size of '${t.toString()}' would result in an infinite array`);
|
|
33
|
-
if (e.length === 0) return [];
|
|
34
|
-
if (t >= e.length) return [[...e]];
|
|
35
|
-
let n = Math.ceil(e.length / t), r = Array(n);
|
|
36
|
-
if (t === 1) for (let [t, n] of e.entries()) r[t] = [n];
|
|
37
|
-
else for (let i = 0; i < n; i += 1) {
|
|
38
|
-
let n = i * t;
|
|
39
|
-
r[i] = e.slice(n, n + t);
|
|
40
|
-
}
|
|
41
|
-
return r;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
//#endregion
|
|
45
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/clamp-DSPiOOFS.js
|
|
46
|
-
function t$31(...t) {
|
|
47
|
-
return t$34(n$31, t);
|
|
48
|
-
}
|
|
49
|
-
const n$31 = (e, { min: t, max: n }) => t !== void 0 && e < t ? t : n !== void 0 && e > n ? n : e;
|
|
50
|
-
|
|
51
|
-
//#endregion
|
|
52
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/concat-Bi7sChf0.js
|
|
53
|
-
function t$30(...t) {
|
|
54
|
-
return t$34(n$30, t);
|
|
55
|
-
}
|
|
56
|
-
const n$30 = (e, t) => [...e, ...t];
|
|
57
|
-
|
|
58
|
-
//#endregion
|
|
59
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/utilityEvaluators-DORpnx39.js
|
|
60
|
-
const e$15 = {
|
|
61
|
-
done: !0,
|
|
62
|
-
hasNext: !1
|
|
63
|
-
}, t$29 = {
|
|
64
|
-
done: !1,
|
|
65
|
-
hasNext: !1
|
|
66
|
-
}, n$29 = () => e$15, r$13 = (e) => ({
|
|
67
|
-
hasNext: !0,
|
|
68
|
-
next: e,
|
|
69
|
-
done: !1
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
//#endregion
|
|
73
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/pipe-jLehR9-P.js
|
|
74
|
-
function t$28(e, ...t) {
|
|
75
|
-
let a = e, o = t.map((e) => `lazy` in e ? r$12(e) : void 0), s = 0;
|
|
76
|
-
for (; s < t.length;) {
|
|
77
|
-
if (o[s] === void 0 || !i$7(a)) {
|
|
78
|
-
let e = t[s];
|
|
79
|
-
a = e(a), s += 1;
|
|
80
|
-
continue;
|
|
81
|
-
}
|
|
82
|
-
let e = [];
|
|
83
|
-
for (let n = s; n < t.length; n++) {
|
|
84
|
-
let t = o[n];
|
|
85
|
-
if (t === void 0 || (e.push(t), t.isSingle)) break;
|
|
86
|
-
}
|
|
87
|
-
let r = [];
|
|
88
|
-
for (let t of a) if (n$28(t, r, e)) break;
|
|
89
|
-
let { isSingle: c } = e.at(-1);
|
|
90
|
-
a = c ? r[0] : r, s += e.length;
|
|
91
|
-
}
|
|
92
|
-
return a;
|
|
93
|
-
}
|
|
94
|
-
function n$28(t, r, i) {
|
|
95
|
-
if (i.length === 0) return r.push(t), !1;
|
|
96
|
-
let a = t, o = t$29, s = !1;
|
|
97
|
-
for (let [e, t] of i.entries()) {
|
|
98
|
-
let { index: c, items: l } = t;
|
|
99
|
-
if (l.push(a), o = t(a, c, l), t.index += 1, o.hasNext) {
|
|
100
|
-
if (o.hasMany ?? !1) {
|
|
101
|
-
for (let t of o.next) if (n$28(t, r, i.slice(e + 1))) return !0;
|
|
102
|
-
return s;
|
|
103
|
-
}
|
|
104
|
-
a = o.next;
|
|
105
|
-
}
|
|
106
|
-
if (!o.hasNext) break;
|
|
107
|
-
o.done && (s = !0);
|
|
108
|
-
}
|
|
109
|
-
return o.hasNext && r.push(a), s;
|
|
110
|
-
}
|
|
111
|
-
function r$12(e) {
|
|
112
|
-
let { lazy: t, lazyArgs: n } = e, r = t(...n);
|
|
113
|
-
return Object.assign(r, {
|
|
114
|
-
isSingle: t.single ?? !1,
|
|
115
|
-
index: 0,
|
|
116
|
-
items: []
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
function i$7(e) {
|
|
120
|
-
return typeof e == `string` || typeof e == `object` && !!e && Symbol.iterator in e;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
//#endregion
|
|
124
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/purryFromLazy-3oywCNIb.js
|
|
125
|
-
function t$27(t, n) {
|
|
126
|
-
let r = n.length - t.length;
|
|
127
|
-
if (r === 1) {
|
|
128
|
-
let [r, ...i] = n;
|
|
129
|
-
return t$28(r, {
|
|
130
|
-
lazy: t,
|
|
131
|
-
lazyArgs: i
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
if (r === 0) {
|
|
135
|
-
let r = {
|
|
136
|
-
lazy: t,
|
|
137
|
-
lazyArgs: n
|
|
138
|
-
};
|
|
139
|
-
return Object.assign((t) => t$28(t, r), r);
|
|
140
|
-
}
|
|
141
|
-
throw Error(`Wrong number of arguments`);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
//#endregion
|
|
145
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/difference-DxYg8_zs.js
|
|
146
|
-
function r$11(...e) {
|
|
147
|
-
return t$27(i$6, e);
|
|
148
|
-
}
|
|
149
|
-
function i$6(n) {
|
|
150
|
-
if (n.length === 0) return r$13;
|
|
151
|
-
let r = /* @__PURE__ */ new Map();
|
|
152
|
-
for (let e of n) r.set(e, (r.get(e) ?? 0) + 1);
|
|
153
|
-
return (t) => {
|
|
154
|
-
let n = r.get(t);
|
|
155
|
-
return n === void 0 || n === 0 ? {
|
|
156
|
-
done: !1,
|
|
157
|
-
hasNext: !0,
|
|
158
|
-
next: t
|
|
159
|
-
} : (r.set(t, n - 1), t$29);
|
|
160
|
-
};
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
//#endregion
|
|
164
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/hasAtLeast-F1Oj_xBB.js
|
|
165
|
-
function t$26(...t) {
|
|
166
|
-
return t$34(n$27, t);
|
|
167
|
-
}
|
|
168
|
-
const n$27 = (e, t) => e.length >= t;
|
|
169
|
-
|
|
170
|
-
//#endregion
|
|
171
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/entries-IutXYNeS.js
|
|
172
|
-
function t$25(...t) {
|
|
173
|
-
return t$34(Object.entries, t);
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
//#endregion
|
|
177
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/filter-BiMaBet0.js
|
|
178
|
-
function n$26(...t) {
|
|
179
|
-
return t$34(r$10, t, i$5);
|
|
180
|
-
}
|
|
181
|
-
const r$10 = (e, t) => e.filter(t), i$5 = (e) => (n, r, i) => e(n, r, i) ? {
|
|
182
|
-
done: !1,
|
|
183
|
-
hasNext: !0,
|
|
184
|
-
next: n
|
|
185
|
-
} : t$29;
|
|
186
|
-
|
|
187
|
-
//#endregion
|
|
188
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/toSingle-Bfpp5_i-.js
|
|
189
|
-
const e$14 = (e) => Object.assign(e, { single: !0 });
|
|
190
|
-
|
|
191
|
-
//#endregion
|
|
192
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/find-iUA4Ke5f.js
|
|
193
|
-
function r$9(...t) {
|
|
194
|
-
return t$34(i$4, t, e$14(a$3));
|
|
195
|
-
}
|
|
196
|
-
const i$4 = (e, t) => e.find(t), a$3 = (e) => (n, r, i) => e(n, r, i) ? {
|
|
197
|
-
done: !0,
|
|
198
|
-
hasNext: !0,
|
|
199
|
-
next: n
|
|
200
|
-
} : t$29;
|
|
201
|
-
|
|
202
|
-
//#endregion
|
|
203
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/findLast-4m16uIkT.js
|
|
204
|
-
function t$24(...t) {
|
|
205
|
-
return t$34(n$25, t);
|
|
206
|
-
}
|
|
207
|
-
const n$25 = (e, t) => {
|
|
208
|
-
for (let n = e.length - 1; n >= 0; n--) {
|
|
209
|
-
let r = e[n];
|
|
210
|
-
if (t(r, n, e)) return r;
|
|
211
|
-
}
|
|
212
|
-
};
|
|
213
|
-
|
|
214
|
-
//#endregion
|
|
215
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/first-1mSmk2BJ.js
|
|
216
|
-
function n$24(...n) {
|
|
217
|
-
return t$34(r$8, n, e$14(i$3));
|
|
218
|
-
}
|
|
219
|
-
const r$8 = ([e]) => e, i$3 = () => a$2, a$2 = (e) => ({
|
|
220
|
-
hasNext: !0,
|
|
221
|
-
next: e,
|
|
222
|
-
done: !0
|
|
223
|
-
});
|
|
224
|
-
|
|
225
|
-
//#endregion
|
|
226
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/flat-BxeTKxVc.js
|
|
227
|
-
function n$23(t, n) {
|
|
228
|
-
return typeof t == `object` ? r$7(t, n) : e$16(r$7, t === void 0 ? [] : [t], i$2);
|
|
229
|
-
}
|
|
230
|
-
const r$7 = (e, t) => t === void 0 ? e.flat() : e.flat(t), i$2 = (e) => e === void 0 || e === 1 ? a$1 : e <= 0 ? r$13 : (t) => Array.isArray(t) ? {
|
|
231
|
-
next: t.flat(e - 1),
|
|
232
|
-
hasNext: !0,
|
|
233
|
-
hasMany: !0,
|
|
234
|
-
done: !1
|
|
235
|
-
} : {
|
|
236
|
-
next: t,
|
|
237
|
-
hasNext: !0,
|
|
238
|
-
done: !1
|
|
239
|
-
}, a$1 = (e) => Array.isArray(e) ? {
|
|
240
|
-
next: e,
|
|
241
|
-
hasNext: !0,
|
|
242
|
-
hasMany: !0,
|
|
243
|
-
done: !1
|
|
244
|
-
} : {
|
|
245
|
-
next: e,
|
|
246
|
-
hasNext: !0,
|
|
247
|
-
done: !1
|
|
248
|
-
};
|
|
249
|
-
|
|
250
|
-
//#endregion
|
|
251
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/flatMap-Cw4Hh6bl.js
|
|
252
|
-
function t$23(...t) {
|
|
253
|
-
return t$34(n$22, t, r$6);
|
|
254
|
-
}
|
|
255
|
-
const n$22 = (e, t) => e.flatMap(t), r$6 = (e) => (t, n, r) => {
|
|
256
|
-
let i = e(t, n, r);
|
|
257
|
-
return Array.isArray(i) ? {
|
|
258
|
-
done: !1,
|
|
259
|
-
hasNext: !0,
|
|
260
|
-
hasMany: !0,
|
|
261
|
-
next: i
|
|
262
|
-
} : {
|
|
263
|
-
done: !1,
|
|
264
|
-
hasNext: !0,
|
|
265
|
-
next: i
|
|
266
|
-
};
|
|
267
|
-
};
|
|
268
|
-
|
|
269
|
-
//#endregion
|
|
270
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/forEach-y9rIgINo.js
|
|
271
|
-
function t$22(...t) {
|
|
272
|
-
return t$34(n$21, t, r$5);
|
|
273
|
-
}
|
|
274
|
-
function n$21(e, t) {
|
|
275
|
-
return e.forEach(t), e;
|
|
276
|
-
}
|
|
277
|
-
const r$5 = (e) => (t, n, r) => (e(t, n, r), {
|
|
278
|
-
done: !1,
|
|
279
|
-
hasNext: !0,
|
|
280
|
-
next: t
|
|
281
|
-
});
|
|
282
|
-
|
|
283
|
-
//#endregion
|
|
284
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/forEachObj-t8MUyUxS.js
|
|
285
|
-
function t$21(...t) {
|
|
286
|
-
return t$34(n$20, t);
|
|
287
|
-
}
|
|
288
|
-
function n$20(e, t) {
|
|
289
|
-
for (let [n, r] of Object.entries(e)) t(r, n, e);
|
|
290
|
-
return e;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
//#endregion
|
|
294
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/fromKeys-fsUaiGAg.js
|
|
295
|
-
function t$20(...t) {
|
|
296
|
-
return t$34(n$19, t);
|
|
297
|
-
}
|
|
298
|
-
function n$19(e, t) {
|
|
299
|
-
let n = {};
|
|
300
|
-
for (let [r, i] of e.entries()) n[i] = t(i, r, e);
|
|
301
|
-
return n;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
//#endregion
|
|
305
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/funnel-yqgBeZ-Z.js
|
|
306
|
-
const e$13 = Symbol(`funnel/voidReducer`), t$19 = () => e$13;
|
|
307
|
-
function n$18(n, { triggerAt: r = `end`, minQuietPeriodMs: i, maxBurstDurationMs: a, minGapMs: o, reducer: s = t$19 }) {
|
|
308
|
-
let c, l, u, d, f = () => {
|
|
309
|
-
let t = u;
|
|
310
|
-
t !== void 0 && (u = void 0, t === e$13 ? n() : n(t), o !== void 0 && (l = setTimeout(p, o)));
|
|
311
|
-
}, p = () => {
|
|
312
|
-
clearTimeout(l), l = void 0, c === void 0 && f();
|
|
313
|
-
}, m = () => {
|
|
314
|
-
clearTimeout(c), c = void 0, d = void 0, l === void 0 && f();
|
|
315
|
-
};
|
|
316
|
-
return {
|
|
317
|
-
call: (...e) => {
|
|
318
|
-
let t = c === void 0 && l === void 0;
|
|
319
|
-
if ((r !== `start` || t) && (u = s(u, ...e)), !(c === void 0 && !t)) {
|
|
320
|
-
if (i !== void 0 || a !== void 0 || o === void 0) {
|
|
321
|
-
clearTimeout(c);
|
|
322
|
-
let e = Date.now();
|
|
323
|
-
d ??= e;
|
|
324
|
-
let t = a === void 0 ? i ?? 0 : Math.min(i ?? a, a - (e - d));
|
|
325
|
-
c = setTimeout(m, t);
|
|
326
|
-
}
|
|
327
|
-
r !== `end` && t && f();
|
|
328
|
-
}
|
|
329
|
-
},
|
|
330
|
-
cancel: () => {
|
|
331
|
-
clearTimeout(c), c = void 0, d = void 0, clearTimeout(l), l = void 0, u = void 0;
|
|
332
|
-
},
|
|
333
|
-
flush: () => {
|
|
334
|
-
m(), p();
|
|
335
|
-
},
|
|
336
|
-
get isIdle() {
|
|
337
|
-
return c === void 0 && l === void 0;
|
|
338
|
-
}
|
|
339
|
-
};
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
//#endregion
|
|
343
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/groupBy-DG3Piv-t.js
|
|
344
|
-
function t$18(...t) {
|
|
345
|
-
return t$34(n$17, t);
|
|
346
|
-
}
|
|
347
|
-
const n$17 = (e, t) => {
|
|
348
|
-
let n = Object.create(null);
|
|
349
|
-
for (let r = 0; r < e.length; r++) {
|
|
350
|
-
let i = e[r], a = t(i, r, e);
|
|
351
|
-
if (a !== void 0) {
|
|
352
|
-
let e = n[a];
|
|
353
|
-
e === void 0 ? n[a] = [i] : e.push(i);
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
return Object.setPrototypeOf(n, Object.prototype), n;
|
|
357
|
-
};
|
|
358
|
-
|
|
359
|
-
//#endregion
|
|
360
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/groupByProp-Xmu8A2SP.js
|
|
361
|
-
function t$17(...t) {
|
|
362
|
-
return t$34(n$16, t);
|
|
363
|
-
}
|
|
364
|
-
function n$16(e, t) {
|
|
365
|
-
let n = Object.create(null);
|
|
366
|
-
for (let r of e) {
|
|
367
|
-
let e = r?.[t];
|
|
368
|
-
if (e !== void 0) {
|
|
369
|
-
let t = n[e];
|
|
370
|
-
t === void 0 ? n[e] = [r] : t.push(r);
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
return Object.setPrototypeOf(n, Object.prototype), n;
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
//#endregion
|
|
377
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/isDeepEqual-jLo35Woq.js
|
|
378
|
-
function t$16(...t) {
|
|
379
|
-
return t$34(n$15, t);
|
|
380
|
-
}
|
|
381
|
-
function n$15(e, t) {
|
|
382
|
-
if (e === t || Object.is(e, t)) return !0;
|
|
383
|
-
if (typeof e != `object` || typeof t != `object` || e === null || t === null || Object.getPrototypeOf(e) !== Object.getPrototypeOf(t)) return !1;
|
|
384
|
-
if (Array.isArray(e)) return r$4(e, t);
|
|
385
|
-
if (e instanceof Map) return i$1(e, t);
|
|
386
|
-
if (e instanceof Set) return a(e, t);
|
|
387
|
-
if (e instanceof Date) return e.getTime() === t.getTime();
|
|
388
|
-
if (e instanceof RegExp) return e.toString() === t.toString();
|
|
389
|
-
if (Object.keys(e).length !== Object.keys(t).length) return !1;
|
|
390
|
-
for (let [r, i] of Object.entries(e)) if (!(r in t) || !n$15(i, t[r])) return !1;
|
|
391
|
-
return !0;
|
|
392
|
-
}
|
|
393
|
-
function r$4(e, t) {
|
|
394
|
-
if (e.length !== t.length) return !1;
|
|
395
|
-
for (let [r, i] of e.entries()) if (!n$15(i, t[r])) return !1;
|
|
396
|
-
return !0;
|
|
397
|
-
}
|
|
398
|
-
function i$1(e, t) {
|
|
399
|
-
if (e.size !== t.size) return !1;
|
|
400
|
-
for (let [r, i] of e.entries()) if (!t.has(r) || !n$15(i, t.get(r))) return !1;
|
|
401
|
-
return !0;
|
|
402
|
-
}
|
|
403
|
-
function a(e, t) {
|
|
404
|
-
if (e.size !== t.size) return !1;
|
|
405
|
-
let r = [...t];
|
|
406
|
-
for (let t of e) {
|
|
407
|
-
let e = !1;
|
|
408
|
-
for (let [i, a] of r.entries()) if (n$15(t, a)) {
|
|
409
|
-
e = !0, r.splice(i, 1);
|
|
410
|
-
break;
|
|
411
|
-
}
|
|
412
|
-
if (!e) return !1;
|
|
413
|
-
}
|
|
414
|
-
return !0;
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
//#endregion
|
|
418
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/identity-CdMenAq7.js
|
|
419
|
-
function e$12() {
|
|
420
|
-
return t$15;
|
|
421
|
-
}
|
|
422
|
-
const t$15 = (e) => e;
|
|
423
|
-
|
|
424
|
-
//#endregion
|
|
425
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/indexBy-BwSvEDkk.js
|
|
426
|
-
function t$14(...t) {
|
|
427
|
-
return t$34(n$14, t);
|
|
428
|
-
}
|
|
429
|
-
function n$14(e, t) {
|
|
430
|
-
let n = {};
|
|
431
|
-
for (let [r, i] of e.entries()) {
|
|
432
|
-
let a = t(i, r, e);
|
|
433
|
-
n[a] = i;
|
|
434
|
-
}
|
|
435
|
-
return n;
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
//#endregion
|
|
439
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/isArray-C3HaRgzz.js
|
|
440
|
-
function e$11(e) {
|
|
441
|
-
return Array.isArray(e);
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
//#endregion
|
|
445
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/isBoolean-rUPD1MTE.js
|
|
446
|
-
function e$10(e) {
|
|
447
|
-
return typeof e == `boolean`;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
//#endregion
|
|
451
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/isDefined-D96LKBI6.js
|
|
452
|
-
function e$9(e) {
|
|
453
|
-
return e !== void 0;
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
//#endregion
|
|
457
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/isEmpty-B6r3tkJ8.js
|
|
458
|
-
function e$8(e) {
|
|
459
|
-
return e === `` || e === void 0 ? !0 : Array.isArray(e) ? e.length === 0 : Object.keys(e).length === 0;
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
//#endregion
|
|
463
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/isEmptyish-uIGYrS1r.js
|
|
464
|
-
function e$7(e) {
|
|
465
|
-
if (e == null || e === ``) return !0;
|
|
466
|
-
if (typeof e != `object`) return !1;
|
|
467
|
-
if (`length` in e && typeof e.length == `number`) return e.length === 0;
|
|
468
|
-
if (`size` in e && typeof e.size == `number`) return e.size === 0;
|
|
469
|
-
for (let t in e) return !1;
|
|
470
|
-
return Object.getOwnPropertySymbols(e).length === 0;
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
//#endregion
|
|
474
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/isNonNullish-C9wd575s.js
|
|
475
|
-
function e$6(e) {
|
|
476
|
-
return e != null;
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
//#endregion
|
|
480
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/isNullish-Mu0-VITK.js
|
|
481
|
-
function e$5(e) {
|
|
482
|
-
return e == null;
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
//#endregion
|
|
486
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/isNumber-ccMQhOVD.js
|
|
487
|
-
function e$4(e) {
|
|
488
|
-
return typeof e == `number` && !Number.isNaN(e);
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
//#endregion
|
|
492
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/isPromise-APPd_fLV.js
|
|
493
|
-
function e$3(e) {
|
|
494
|
-
return e instanceof Promise;
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
//#endregion
|
|
498
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/isString-BPlksnnG.js
|
|
499
|
-
function e$2(e) {
|
|
500
|
-
return typeof e == `string`;
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
//#endregion
|
|
504
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/isTruthy-LnBlxhiF.js
|
|
505
|
-
function e$1(e) {
|
|
506
|
-
return !!e;
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
//#endregion
|
|
510
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/keys-CT72t2DB.js
|
|
511
|
-
function t$13(...t) {
|
|
512
|
-
return t$34(Object.keys, t);
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
//#endregion
|
|
516
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/last-BaD4Geh6.js
|
|
517
|
-
function t$12(...t) {
|
|
518
|
-
return t$34(n$13, t);
|
|
519
|
-
}
|
|
520
|
-
const n$13 = (e) => e.at(-1);
|
|
521
|
-
|
|
522
|
-
//#endregion
|
|
523
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/map-B0uTZUd8.js
|
|
524
|
-
function t$11(...t) {
|
|
525
|
-
return t$34(n$12, t, r$3);
|
|
526
|
-
}
|
|
527
|
-
const n$12 = (e, t) => e.map(t), r$3 = (e) => (t, n, r) => ({
|
|
528
|
-
done: !1,
|
|
529
|
-
hasNext: !0,
|
|
530
|
-
next: e(t, n, r)
|
|
531
|
-
});
|
|
532
|
-
|
|
533
|
-
//#endregion
|
|
534
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/mapToObj-8STtUbFK.js
|
|
535
|
-
function t$10(...t) {
|
|
536
|
-
return t$34(n$11, t);
|
|
537
|
-
}
|
|
538
|
-
function n$11(e, t) {
|
|
539
|
-
let n = {};
|
|
540
|
-
for (let [r, i] of e.entries()) {
|
|
541
|
-
let [a, o] = t(i, r, e);
|
|
542
|
-
n[a] = o;
|
|
543
|
-
}
|
|
544
|
-
return n;
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
//#endregion
|
|
548
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/mapValues-D8ywfrE_.js
|
|
549
|
-
function t$9(...t) {
|
|
550
|
-
return t$34(n$10, t);
|
|
551
|
-
}
|
|
552
|
-
function n$10(e, t) {
|
|
553
|
-
let n = {};
|
|
554
|
-
for (let [r, i] of Object.entries(e)) n[r] = t(i, r, e);
|
|
555
|
-
return n;
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
//#endregion
|
|
559
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/omitBy-CgV9CAW2.js
|
|
560
|
-
function t$8(...t) {
|
|
561
|
-
return t$34(n$9, t);
|
|
562
|
-
}
|
|
563
|
-
function n$9(e, t) {
|
|
564
|
-
let n = { ...e };
|
|
565
|
-
for (let [r, i] of Object.entries(n)) t(i, r, e) && delete n[r];
|
|
566
|
-
return n;
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
//#endregion
|
|
570
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/only-CrFFJyuV.js
|
|
571
|
-
function t$7(...t) {
|
|
572
|
-
return t$34(n$8, t);
|
|
573
|
-
}
|
|
574
|
-
const n$8 = (e) => e.length === 1 ? e[0] : void 0;
|
|
575
|
-
|
|
576
|
-
//#endregion
|
|
577
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/pick-CZJrFX39.js
|
|
578
|
-
function t$6(...t) {
|
|
579
|
-
return t$34(n$7, t);
|
|
580
|
-
}
|
|
581
|
-
function n$7(e, t) {
|
|
582
|
-
let n = {};
|
|
583
|
-
for (let r of t) r in e && (n[r] = e[r]);
|
|
584
|
-
return n;
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
//#endregion
|
|
588
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/prop-Cv_AVBuA.js
|
|
589
|
-
function e(e, ...n) {
|
|
590
|
-
return typeof e == `string` || typeof e == `number` || typeof e == `symbol` ? (r) => t$5(r, e, ...n) : t$5(e, ...n);
|
|
591
|
-
}
|
|
592
|
-
function t$5(e, ...t) {
|
|
593
|
-
let n = e;
|
|
594
|
-
for (let e of t) {
|
|
595
|
-
if (n == null) return;
|
|
596
|
-
n = n[e];
|
|
597
|
-
}
|
|
598
|
-
return n;
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
//#endregion
|
|
602
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/reduce-Cu1bxvtw.js
|
|
603
|
-
function t$4(...t) {
|
|
604
|
-
return t$34(n$6, t);
|
|
605
|
-
}
|
|
606
|
-
const n$6 = (e, t, n) => e.reduce(t, n);
|
|
607
|
-
|
|
608
|
-
//#endregion
|
|
609
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/reverse-CkjHvjWj.js
|
|
610
|
-
function t$3(...t) {
|
|
611
|
-
return t$34(n$5, t);
|
|
612
|
-
}
|
|
613
|
-
function n$5(e) {
|
|
614
|
-
return [...e].reverse();
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
//#endregion
|
|
618
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/sort-DJMgrJTX.js
|
|
619
|
-
function t$2(...t) {
|
|
620
|
-
return t$34(n$4, t);
|
|
621
|
-
}
|
|
622
|
-
function n$4(e, t) {
|
|
623
|
-
let n = [...e];
|
|
624
|
-
return n.sort(t), n;
|
|
625
|
-
}
|
|
626
|
-
|
|
627
|
-
//#endregion
|
|
628
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/take-Bdy9Ko1L.js
|
|
629
|
-
function n$3(...t) {
|
|
630
|
-
return t$34(r$2, t, i);
|
|
631
|
-
}
|
|
632
|
-
const r$2 = (e, t) => t < 0 ? [] : e.slice(0, t);
|
|
633
|
-
function i(e) {
|
|
634
|
-
if (e <= 0) return n$29;
|
|
635
|
-
let n = e;
|
|
636
|
-
return (e) => (--n, {
|
|
637
|
-
done: n <= 0,
|
|
638
|
-
hasNext: !0,
|
|
639
|
-
next: e
|
|
640
|
-
});
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
//#endregion
|
|
644
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/tap-u-DUpkP9.js
|
|
645
|
-
function t$1(...t) {
|
|
646
|
-
return t$34(n$2, t);
|
|
647
|
-
}
|
|
648
|
-
function n$2(e, t) {
|
|
649
|
-
return t(e), e;
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
//#endregion
|
|
653
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/unique-10P7QXxd.js
|
|
654
|
-
function n$1(...e) {
|
|
655
|
-
return t$27(r$1, e);
|
|
656
|
-
}
|
|
657
|
-
function r$1() {
|
|
658
|
-
let t = /* @__PURE__ */ new Set();
|
|
659
|
-
return (n) => t.has(n) ? t$29 : (t.add(n), {
|
|
660
|
-
done: !1,
|
|
661
|
-
hasNext: !0,
|
|
662
|
-
next: n
|
|
663
|
-
});
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
//#endregion
|
|
667
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/uniqueBy-C_PxkF_D.js
|
|
668
|
-
function n(...e) {
|
|
669
|
-
return t$27(r, e);
|
|
670
|
-
}
|
|
671
|
-
function r(t) {
|
|
672
|
-
let n = t, r = /* @__PURE__ */ new Set();
|
|
673
|
-
return (t, i, a) => {
|
|
674
|
-
let o = n(t, i, a);
|
|
675
|
-
return r.has(o) ? t$29 : (r.add(o), {
|
|
676
|
-
done: !1,
|
|
677
|
-
hasNext: !0,
|
|
678
|
-
next: t
|
|
679
|
-
});
|
|
680
|
-
};
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
//#endregion
|
|
684
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/values-CpYo8vbR.js
|
|
685
|
-
function t(...t) {
|
|
686
|
-
return t$34(Object.values, t);
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
//#endregion
|
|
690
|
-
export { e$12 as A, n$24 as B, e$6 as C, e$10 as D, e$9 as E, t$20 as F, t$26 as G, r$9 as H, t$21 as I, t$30 as J, r$11 as K, t$22 as L, t$17 as M, t$18 as N, e$11 as O, n$18 as P, t$23 as R, e$5 as S, e$8 as T, n$26 as U, t$24 as V, t$25 as W, t$32 as X, t$31 as Y, t$33 as Z, t$13 as _, n$3 as a, e$3 as b, t$4 as c, t$7 as d, t$8 as f, t$12 as g, t$11 as h, t$1 as i, t$16 as j, t$14 as k, e as l, t$10 as m, n, t$2 as o, t$9 as p, t$28 as q, n$1 as r, t$3 as s, t, t$6 as u, e$1 as v, e$7 as w, e$4 as x, e$2 as y, n$23 as z };
|
|
1
|
+
function e$17(o,s,c){let l=c=>o(c,...s);return c===void 0?l:Object.assign(l,{lazy:c,lazyArgs:s})}function t$35(s,c,l){let u=s.length-c.length;if(u===0)return s(...c);if(u===1)return e$17(s,c,l);throw Error(`Wrong number of arguments`)}function t$34(...o){return t$35(n$34,o)}const n$34=(o,s)=>s.some(s=>s(o));function t$33(...o){return t$35(n$33,o)}function n$33(o,s){if(s<1)throw RangeError(`chunk: A chunk size of '${s.toString()}' would result in an infinite array`);if(o.length===0)return[];if(s>=o.length)return[[...o]];let c=Math.ceil(o.length/s),l=Array(c);if(s===1)for(let[s,c]of o.entries())l[s]=[c];else for(let u=0;u<c;u+=1){let c=u*s;l[u]=o.slice(c,c+s)}return l}function t$32(...o){return t$35(n$32,o)}const n$32=(o,{min:s,max:c})=>s!==void 0&&o<s?s:c!==void 0&&o>c?c:o;function t$31(...o){return t$35(n$31,o)}const n$31=(o,s)=>[...o,...s],e$16={done:!0,hasNext:!1},t$30={done:!1,hasNext:!1},n$30=()=>e$16,r$14=o=>({hasNext:!0,next:o,done:!1});function t$29(o,...s){let c=o,l=s.map(o=>`lazy`in o?r$13(o):void 0),u=0;for(;u<s.length;){if(l[u]===void 0||!i$7(c)){let o=s[u];c=o(c),u+=1;continue}let o=[];for(let c=u;c<s.length;c++){let s=l[c];if(s===void 0||(o.push(s),s.isSingle))break}let d=[];for(let s of c)if(n$29(s,d,o))break;let{isSingle:f}=o.at(-1);c=f?d[0]:d,u+=o.length}return c}function n$29(o,s,c){if(c.length===0)return s.push(o),!1;let l=o,u=t$30,d=!1;for(let[o,f]of c.entries()){let{index:p,items:m}=f;if(m.push(l),u=f(l,p,m),f.index+=1,u.hasNext){if(u.hasMany??!1){for(let l of u.next)if(n$29(l,s,c.slice(o+1)))return!0;return d}l=u.next}if(!u.hasNext)break;u.done&&(d=!0)}return u.hasNext&&s.push(l),d}function r$13(o){let{lazy:s,lazyArgs:c}=o,l=s(...c);return Object.assign(l,{isSingle:s.single??!1,index:0,items:[]})}function i$7(o){return typeof o==`string`||typeof o==`object`&&!!o&&Symbol.iterator in o}function t$28(o,s){let c=s.length-o.length;if(c===1){let[c,...l]=s;return t$29(c,{lazy:o,lazyArgs:l})}if(c===0){let c={lazy:o,lazyArgs:s};return Object.assign(o=>t$29(o,c),c)}throw Error(`Wrong number of arguments`)}function r$12(...o){return t$28(i$6,o)}function i$6(o){if(o.length===0)return r$14;let s=new Map;for(let c of o)s.set(c,(s.get(c)??0)+1);return o=>{let c=s.get(o);return c===void 0||c===0?{done:!1,hasNext:!0,next:o}:(s.set(o,c-1),t$30)}}function t$27(...o){return t$35(n$28,o)}const n$28=(o,s)=>o.length>=s;function t$26(...o){return t$35(Object.entries,o)}function n$27(...o){return t$35(r$11,o,i$5)}const r$11=(o,s)=>o.filter(s),i$5=o=>(s,c,l)=>o(s,c,l)?{done:!1,hasNext:!0,next:s}:t$30,e$15=o=>Object.assign(o,{single:!0});function r$10(...o){return t$35(i$4,o,e$15(a$3))}const i$4=(o,s)=>o.find(s),a$3=o=>(s,c,l)=>o(s,c,l)?{done:!0,hasNext:!0,next:s}:t$30;function t$25(...o){return t$35(n$26,o)}const n$26=(o,s)=>{for(let c=o.length-1;c>=0;c--){let l=o[c];if(s(l,c,o))return l}};function n$25(...o){return t$35(r$9,o,e$15(i$3))}const r$9=([o])=>o,i$3=()=>a$2,a$2=o=>({hasNext:!0,next:o,done:!0});function n$24(s,c){return typeof s==`object`?r$8(s,c):e$17(r$8,s===void 0?[]:[s],i$2)}const r$8=(o,s)=>s===void 0?o.flat():o.flat(s),i$2=o=>o===void 0||o===1?a$1:o<=0?r$14:s=>Array.isArray(s)?{next:s.flat(o-1),hasNext:!0,hasMany:!0,done:!1}:{next:s,hasNext:!0,done:!1},a$1=o=>Array.isArray(o)?{next:o,hasNext:!0,hasMany:!0,done:!1}:{next:o,hasNext:!0,done:!1};function t$24(...o){return t$35(n$23,o,r$7)}const n$23=(o,s)=>o.flatMap(s),r$7=o=>(s,c,l)=>{let u=o(s,c,l);return Array.isArray(u)?{done:!1,hasNext:!0,hasMany:!0,next:u}:{done:!1,hasNext:!0,next:u}};function t$23(...o){return t$35(n$22,o,r$6)}function n$22(o,s){return o.forEach(s),o}const r$6=o=>(s,c,l)=>(o(s,c,l),{done:!1,hasNext:!0,next:s});function t$22(...o){return t$35(n$21,o)}function n$21(o,s){for(let[c,l]of Object.entries(o))s(l,c,o);return o}const e$14=Symbol(`funnel/voidReducer`),t$21=()=>e$14;function n$20(o,{triggerAt:s=`end`,minQuietPeriodMs:c,maxBurstDurationMs:l,minGapMs:u,reducer:d=t$21}){let f,p,m,h,g=()=>{let s=m;s!==void 0&&(m=void 0,s===e$14?o():o(s),u!==void 0&&(p=setTimeout(_,u)))},_=()=>{clearTimeout(p),p=void 0,f===void 0&&g()},v=()=>{clearTimeout(f),f=void 0,h=void 0,p===void 0&&g()};return{call:(...o)=>{let _=f===void 0&&p===void 0;if((s!==`start`||_)&&(m=d(m,...o)),!(f===void 0&&!_)){if(c!==void 0||l!==void 0||u===void 0){clearTimeout(f);let o=Date.now();h??=o;let s=l===void 0?c??0:Math.min(c??l,Math.max(0,l-(o-h)));f=setTimeout(v,s)}s!==`end`&&_&&g()}},cancel:()=>{clearTimeout(f),f=void 0,h=void 0,clearTimeout(p),p=void 0,m=void 0},flush:()=>{v(),_()},get isIdle(){return f===void 0&&p===void 0}}}function t$20(...o){return t$35(n$19,o)}const n$19=(o,s)=>{let c=Object.create(null);for(let l=0;l<o.length;l++){let u=o[l],d=s(u,l,o);if(d!==void 0){let o=c[d];o===void 0?c[d]=[u]:o.push(u)}}return Object.setPrototypeOf(c,Object.prototype),c};function t$19(...o){return t$35(n$18,o)}function n$18(o,s){let c=Object.create(null);for(let l of o){let o=l?.[s];if(o!==void 0){let s=c[o];s===void 0?c[o]=[l]:s.push(l)}}return Object.setPrototypeOf(c,Object.prototype),c}function t$18(...o){return t$35(n$17,o)}function n$17(o,s){if(o===s||Object.is(o,s))return!0;if(typeof o!=`object`||typeof s!=`object`||o===null||s===null||Object.getPrototypeOf(o)!==Object.getPrototypeOf(s))return!1;if(Array.isArray(o))return r$5(o,s);if(o instanceof Map)return i$1(o,s);if(o instanceof Set)return a(o,s);if(o instanceof Date)return o.getTime()===s.getTime();if(o instanceof RegExp)return o.toString()===s.toString();if(Object.keys(o).length!==Object.keys(s).length)return!1;for(let[c,l]of Object.entries(o))if(!(c in s)||!n$17(l,s[c]))return!1;return!0}function r$5(o,s){if(o.length!==s.length)return!1;for(let[c,l]of o.entries())if(!n$17(l,s[c]))return!1;return!0}function i$1(o,s){if(o.size!==s.size)return!1;for(let[c,l]of o.entries())if(!s.has(c)||!n$17(l,s.get(c)))return!1;return!0}function a(o,s){if(o.size!==s.size)return!1;let c=[...s];for(let s of o){let o=!1;for(let[l,u]of c.entries())if(n$17(s,u)){o=!0,c.splice(l,1);break}if(!o)return!1}return!0}function e$13(){return t$17}const t$17=o=>o;function t$16(...o){return t$35(n$16,o)}function n$16(o,s){let c={};for(let[l,u]of o.entries()){let d=s(u,l,o);c[d]=u}return c}function e$12(o){return Array.isArray(o)}function e$11(o){return typeof o==`boolean`}function e$10(o){return o!==void 0}function e$9(o){return o===``||o===void 0?!0:Array.isArray(o)?o.length===0:Object.keys(o).length===0}function e$8(o){if(o==null||o===``)return!0;if(typeof o!=`object`)return!1;if(`length`in o&&typeof o.length==`number`)return o.length===0;if(`size`in o&&typeof o.size==`number`)return o.size===0;for(let s in o)return!1;return Object.getOwnPropertySymbols(o).length===0}function e$7(o){return o!=null}function e$6(o){return o==null}function e$5(o){return typeof o==`number`&&!Number.isNaN(o)}function e$4(o){return o instanceof Promise}function e$3(o){return typeof o==`string`}function e$2(o){return!!o}function t$15(...o){return t$35(Object.keys,o)}function t$14(...o){return t$35(n$15,o)}const n$15=o=>o.at(-1);function t$13(...o){return t$35(n$14,o,r$4)}const n$14=(o,s)=>o.map(s),r$4=o=>(s,c,l)=>({done:!1,hasNext:!0,next:o(s,c,l)});function t$12(...o){return t$35(n$13,o)}function n$13(o,s){let c={};for(let[l,u]of o.entries()){let[d,f]=s(u,l,o);c[d]=f}return c}function t$11(...o){return t$35(n$12,o)}function n$12(o,s){let c={};for(let[l,u]of Object.entries(o))c[l]=s(u,l,o);return c}function n$11(...o){return t$35(r$3,o)}function r$3(o,s){if(!t$27(s,1))return{...o};if(!t$27(s,2)){let{[s[0]]:c,...l}=o;return l}let c={...o};for(let o of s)delete c[o];return c}function t$10(...o){return t$35(n$10,o)}function n$10(o,s){let c={...o};for(let[l,u]of Object.entries(c))s(u,l,o)&&delete c[l];return c}function e$1(o){let s=!1,c;return()=>(s||=(c=o(),!0),c)}function t$9(...o){return t$35(n$9,o)}const n$9=o=>o.length===1?o[0]:void 0;function t$8(...o){return t$35(n$8,o)}const n$8=(o,s)=>{let c=[[],[]];for(let[l,u]of o.entries())s(u,l,o)?c[0].push(u):c[1].push(u);return c};function t$7(...o){return t$35(n$7,o)}function n$7(o,s){let c={};for(let l of s)l in o&&(c[l]=o[l]);return c}function t$6(...o){return s=>t$29(s,...o)}function e(o,...s){return typeof o==`string`||typeof o==`number`||typeof o==`symbol`?c=>t$5(c,o,...s):t$5(o,...s)}function t$5(o,...s){let c=o;for(let o of s){if(c==null)return;c=c[o]}return c}function t$4(...o){return t$35(n$6,o)}const n$6=(o,s,c)=>o.reduce(s,c);function t$3(...o){return t$35(n$5,o)}function n$5(o){return[...o].reverse()}function t$2(...o){return t$35(n$4,o)}function n$4(o,s){let c=[...o];return c.sort(s),c}function n$3(...o){return t$35(r$2,o,i)}const r$2=(o,s)=>s<0?[]:o.slice(0,s);function i(o){if(o<=0)return n$30;let s=o;return o=>(--s,{done:s<=0,hasNext:!0,next:o})}function t$1(...o){return t$35(n$2,o)}function n$2(o,s){return s(o),o}function n$1(...o){return t$28(r$1,o)}function r$1(){let o=new Set;return s=>o.has(s)?t$30:(o.add(s),{done:!1,hasNext:!0,next:s})}function n(...o){return t$28(r,o)}function r(o){let s=o,c=new Set;return(o,l,u)=>{let d=s(o,l,u);return c.has(d)?t$30:(c.add(d),{done:!1,hasNext:!0,next:o})}}function t(...o){return t$35(Object.values,o)}export{t$33 as $,e$10 as A,t$23 as B,e$3 as C,e$7 as D,e$6 as E,t$18 as F,r$10 as G,n$24 as H,t$19 as I,t$27 as J,n$27 as K,t$20 as L,e$12 as M,t$16 as N,e$8 as O,e$13 as P,t$32 as Q,n$20 as R,e$2 as S,e$5 as T,n$25 as U,t$24 as V,t$25 as W,t$29 as X,r$12 as Y,t$31 as Z,t$11 as _,n$3 as a,t$14 as b,t$4 as c,t$7 as d,t$34 as et,t$8 as f,n$11 as g,t$10 as h,t$1 as i,e$11 as j,e$9 as k,e as l,e$1 as m,n,t$2 as o,t$9 as p,t$26 as q,n$1 as r,t$3 as s,t,t$35 as tt,t$6 as u,t$12 as v,e$4 as w,t$15 as x,t$13 as y,t$22 as z};
|