likec4 1.48.0 → 1.50.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 +5941 -4496
- package/__app__/src/routes/index.js +3 -153
- package/__app__/src/routes/projects.js +21 -1087
- package/__app__/src/routes/single.js +1228 -16
- package/__app__/src/style.css +1 -1
- package/__app__/src/vendors.js +4649 -1897
- package/__app__/src/webcomponent.js +1 -1
- package/config/schema.json +169 -141
- package/dist/THIRD-PARTY-LICENSES.md +1769 -0
- package/dist/_chunks/LikeC4.mjs +1154 -202
- package/dist/_chunks/binary.mjs +72 -0
- package/dist/_chunks/index.d.mts +234 -140
- package/dist/_chunks/index2.d.mts +2043 -1828
- package/dist/_chunks/libs/@chevrotain/cst-dts-gen.mjs +30 -0
- 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 +114 -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.d.mts +61 -1
- package/dist/_chunks/libs/@nanostores/react.mjs +1 -30
- package/dist/_chunks/libs/@smithy/is-array-buffer.mjs +1 -10
- 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 +2913 -2876
- package/dist/_chunks/libs/langium.mjs +33 -20351
- package/dist/_chunks/libs/merge-error-cause.mjs +2 -746
- 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/pako.mjs +1 -0
- 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 +2 -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/rolldown-runtime.mjs +1 -48
- package/dist/_chunks/sequence.mjs +1 -0
- package/dist/_chunks/src.mjs +15 -0
- package/dist/_chunks/src2.mjs +499 -0
- package/dist/cli/index.mjs +77 -1952
- package/dist/config/index.d.mts +2 -2
- package/dist/config/index.mjs +1 -6
- package/dist/index.d.mts +150 -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 +7 -3
- package/dist/vite-plugin/index.mjs +1 -22
- package/dist/vite-plugin/internal.d.mts +6 -7
- package/dist/vite-plugin/internal.mjs +1 -68
- package/package.json +64 -45
- package/react/{index.d.ts → index.d.mts} +114 -72
- package/react/{index.js → index.mjs} +21320 -22041
- package/react/package.json +2 -5
- package/vite-plugin-modules.d.ts +10 -5
- package/dist/_chunks/LikeC4.d.mts +0 -121
- 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/libs/@chevrotain/gast.mjs +0 -3969
- package/dist/_chunks/libs/hono.mjs +0 -1829
- package/dist/_chunks/libs/nanoid.mjs +0 -29
- package/dist/_chunks/libs/nanostores.d.mts +0 -63
- package/dist/_chunks/libs/nanostores.mjs +0 -198
- 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/plugin.mjs +0 -996
- package/dist/_chunks/sequence-view.mjs +0 -575
- 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
- /package/dist/_chunks/{index4.d.mts → libs/@chevrotain/types.d.mts} +0 -0
|
@@ -1,690 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
function e
|
|
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(e,t,n){let r=n=>e(n,...t);return n===void 0?r:Object.assign(r,{lazy:n,lazyArgs:t})}function t(t,n,r){let i=t.length-n.length;if(i===0)return t(...n);if(i===1)return e(t,n,r);throw Error(`Wrong number of arguments`)}function n(...e){return t(r,e)}const r=(e,t)=>t.some(t=>t(e));function i(...e){return t(a,e)}function a(e,t){if(t<1)throw RangeError(`chunk: A chunk size of '${t.toString()}' would result in an infinite array`);if(e.length===0)return[];if(t>=e.length)return[[...e]];let n=Math.ceil(e.length/t),r=Array(n);if(t===1)for(let[t,n]of e.entries())r[t]=[n];else for(let i=0;i<n;i+=1){let n=i*t;r[i]=e.slice(n,n+t)}return r}function o(...e){return t(s,e)}const s=(e,{min:t,max:n})=>t!==void 0&&e<t?t:n!==void 0&&e>n?n:e;function c(...e){return t(l,e)}const l=(e,t)=>[...e,...t],u={done:!0,hasNext:!1},d={done:!1,hasNext:!1},f=()=>u,p=e=>({hasNext:!0,next:e,done:!1});function m(e,...t){let n=e,r=t.map(e=>`lazy`in e?g(e):void 0),i=0;for(;i<t.length;){if(r[i]===void 0||!ee(n)){let e=t[i];n=e(n),i+=1;continue}let e=[];for(let n=i;n<t.length;n++){let t=r[n];if(t===void 0||(e.push(t),t.isSingle))break}let a=[];for(let t of n)if(h(t,a,e))break;let{isSingle:o}=e.at(-1);n=o?a[0]:a,i+=e.length}return n}function h(e,t,n){if(n.length===0)return t.push(e),!1;let r=e,i=d,a=!1;for(let[e,o]of n.entries()){let{index:s,items:c}=o;if(c.push(r),i=o(r,s,c),o.index+=1,i.hasNext){if(i.hasMany??!1){for(let r of i.next)if(h(r,t,n.slice(e+1)))return!0;return a}r=i.next}if(!i.hasNext)break;i.done&&(a=!0)}return i.hasNext&&t.push(r),a}function g(e){let{lazy:t,lazyArgs:n}=e,r=t(...n);return Object.assign(r,{isSingle:t.single??!1,index:0,items:[]})}function ee(e){return typeof e==`string`||typeof e==`object`&&!!e&&Symbol.iterator in e}function _(e,t){let n=t.length-e.length;if(n===1){let[n,...r]=t;return m(n,{lazy:e,lazyArgs:r})}if(n===0){let n={lazy:e,lazyArgs:t};return Object.assign(e=>m(e,n),n)}throw Error(`Wrong number of arguments`)}function v(...e){return _(y,e)}function y(e){if(e.length===0)return p;let t=new Map;for(let n of e)t.set(n,(t.get(n)??0)+1);return e=>{let n=t.get(e);return n===void 0||n===0?{done:!1,hasNext:!0,next:e}:(t.set(e,n-1),d)}}function b(...e){return t(te,e)}const te=(e,t)=>e.length>=t;function ne(...e){return t(Object.entries,e)}function re(...e){return t(x,e,S)}const x=(e,t)=>e.filter(t),S=e=>(t,n,r)=>e(t,n,r)?{done:!1,hasNext:!0,next:t}:d,C=e=>Object.assign(e,{single:!0});function w(...e){return t(T,e,C(E))}const T=(e,t)=>e.find(t),E=e=>(t,n,r)=>e(t,n,r)?{done:!0,hasNext:!0,next:t}:d;function D(...e){return t(O,e)}const O=(e,t)=>{for(let n=e.length-1;n>=0;n--){let r=e[n];if(t(r,n,e))return r}};function k(...e){return t(A,e,C(j))}const A=([e])=>e,j=()=>M,M=e=>({hasNext:!0,next:e,done:!0});function N(t,n){return typeof t==`object`?P(t,n):e(P,t===void 0?[]:[t],F)}const P=(e,t)=>t===void 0?e.flat():e.flat(t),F=e=>e===void 0||e===1?I:e<=0?p:t=>Array.isArray(t)?{next:t.flat(e-1),hasNext:!0,hasMany:!0,done:!1}:{next:t,hasNext:!0,done:!1},I=e=>Array.isArray(e)?{next:e,hasNext:!0,hasMany:!0,done:!1}:{next:e,hasNext:!0,done:!1};function L(...e){return t(R,e,z)}const R=(e,t)=>e.flatMap(t),z=e=>(t,n,r)=>{let i=e(t,n,r);return Array.isArray(i)?{done:!1,hasNext:!0,hasMany:!0,next:i}:{done:!1,hasNext:!0,next:i}};function B(...e){return t(V,e,H)}function V(e,t){return e.forEach(t),e}const H=e=>(t,n,r)=>(e(t,n,r),{done:!1,hasNext:!0,next:t});function U(...e){return t(W,e)}function W(e,t){for(let[n,r]of Object.entries(e))t(r,n,e);return e}const G=Symbol(`funnel/voidReducer`),K=()=>G;function q(e,{triggerAt:t=`end`,minQuietPeriodMs:n,maxBurstDurationMs:r,minGapMs:i,reducer:a=K}){let o,s,c,l,u=()=>{let t=c;t!==void 0&&(c=void 0,t===G?e():e(t),i!==void 0&&(s=setTimeout(d,i)))},d=()=>{clearTimeout(s),s=void 0,o===void 0&&u()},f=()=>{clearTimeout(o),o=void 0,l=void 0,s===void 0&&u()};return{call:(...e)=>{let d=o===void 0&&s===void 0;if((t!==`start`||d)&&(c=a(c,...e)),!(o===void 0&&!d)){if(n!==void 0||r!==void 0||i===void 0){clearTimeout(o);let e=Date.now();l??=e;let t=r===void 0?n??0:Math.min(n??r,Math.max(0,r-(e-l)));o=setTimeout(f,t)}t!==`end`&&d&&u()}},cancel:()=>{clearTimeout(o),o=void 0,l=void 0,clearTimeout(s),s=void 0,c=void 0},flush:()=>{f(),d()},get isIdle(){return o===void 0&&s===void 0}}}function J(...e){return t(Y,e)}const Y=(e,t)=>{let n=Object.create(null);for(let r=0;r<e.length;r++){let i=e[r],a=t(i,r,e);if(a!==void 0){let e=n[a];e===void 0?n[a]=[i]:e.push(i)}}return Object.setPrototypeOf(n,Object.prototype),n};function X(...e){return t(ie,e)}function ie(e,t){let n=Object.create(null);for(let r of e){let e=r?.[t];if(e!==void 0){let t=n[e];t===void 0?n[e]=[r]:t.push(r)}}return Object.setPrototypeOf(n,Object.prototype),n}function ae(...e){return t(Z,e)}function Z(e,t){if(e===t||Object.is(e,t))return!0;if(typeof e!=`object`||typeof t!=`object`||e===null||t===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;if(Array.isArray(e))return oe(e,t);if(e instanceof Map)return se(e,t);if(e instanceof Set)return ce(e,t);if(e instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp)return e.toString()===t.toString();if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let[n,r]of Object.entries(e))if(!(n in t)||!Z(r,t[n]))return!1;return!0}function oe(e,t){if(e.length!==t.length)return!1;for(let[n,r]of e.entries())if(!Z(r,t[n]))return!1;return!0}function se(e,t){if(e.size!==t.size)return!1;for(let[n,r]of e.entries())if(!t.has(n)||!Z(r,t.get(n)))return!1;return!0}function ce(e,t){if(e.size!==t.size)return!1;let n=[...t];for(let t of e){let e=!1;for(let[r,i]of n.entries())if(Z(t,i)){e=!0,n.splice(r,1);break}if(!e)return!1}return!0}function le(){return ue}const ue=e=>e;function de(...e){return t(fe,e)}function fe(e,t){let n={};for(let[r,i]of e.entries()){let a=t(i,r,e);n[a]=i}return n}function pe(e){return Array.isArray(e)}function me(e){return typeof e==`boolean`}function he(e){return e!==void 0}function ge(e){return e===``||e===void 0?!0:Array.isArray(e)?e.length===0:Object.keys(e).length===0}function _e(e){if(e==null||e===``)return!0;if(typeof e!=`object`)return!1;if(`length`in e&&typeof e.length==`number`)return e.length===0;if(`size`in e&&typeof e.size==`number`)return e.size===0;for(let t in e)return!1;return Object.getOwnPropertySymbols(e).length===0}function ve(e){return e!=null}function ye(e){return e==null}function be(e){return typeof e==`number`&&!Number.isNaN(e)}function xe(e){return e instanceof Promise}function Se(e){return typeof e==`string`}function Ce(e){return!!e}function we(...e){return t(Object.keys,e)}function Te(...e){return t(Ee,e)}const Ee=e=>e.at(-1);function De(...e){return t(Oe,e,ke)}const Oe=(e,t)=>e.map(t),ke=e=>(t,n,r)=>({done:!1,hasNext:!0,next:e(t,n,r)});function Ae(...e){return t(je,e)}function je(e,t){let n={};for(let[r,i]of e.entries()){let[a,o]=t(i,r,e);n[a]=o}return n}function Me(...e){return t(Ne,e)}function Ne(e,t){let n={};for(let[r,i]of Object.entries(e))n[r]=t(i,r,e);return n}function Pe(...e){return t(Fe,e)}function Fe(e,t){if(!b(t,1))return{...e};if(!b(t,2)){let{[t[0]]:n,...r}=e;return r}let n={...e};for(let e of t)delete n[e];return n}function Ie(...e){return t(Le,e)}function Le(e,t){let n={...e};for(let[r,i]of Object.entries(n))t(i,r,e)&&delete n[r];return n}function Re(e){let t=!1,n;return()=>(t||=(n=e(),!0),n)}function ze(...e){return t(Be,e)}const Be=e=>e.length===1?e[0]:void 0;function Ve(...e){return t(He,e)}const He=(e,t)=>{let n=[[],[]];for(let[r,i]of e.entries())t(i,r,e)?n[0].push(i):n[1].push(i);return n};function Ue(...e){return t(We,e)}function We(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Ge(...e){return t=>m(t,...e)}function Ke(e,...t){return typeof e==`string`||typeof e==`number`||typeof e==`symbol`?n=>Q(n,e,...t):Q(e,...t)}function Q(e,...t){let n=e;for(let e of t){if(n==null)return;n=n[e]}return n}function qe(...e){return t(Je,e)}const Je=(e,t,n)=>e.reduce(t,n);function $(...e){return t(Ye,e)}function Ye(e){return[...e].reverse()}function Xe(...e){return t(Ze,e)}function Ze(e,t){let n=[...e];return n.sort(t),n}function Qe(...e){return t($e,e,et)}const $e=(e,t)=>t<0?[]:e.slice(0,t);function et(e){if(e<=0)return f;let t=e;return e=>(--t,{done:t<=0,hasNext:!0,next:e})}function tt(...e){return t(nt,e)}function nt(e,t){return t(e),e}new Set([`-`,`_`,...` .
|
|
2
|
+
.\v.\f.\r. .
.\xA0. . . . . . . . . . . . .\u2028.\u2029. . . .`.split(`.`)]);function rt(...e){return _(it,e)}function it(){let e=new Set;return t=>e.has(t)?d:(e.add(t),{done:!1,hasNext:!0,next:t})}function at(...e){return _(ot,e)}function ot(e){let t=e,n=new Set;return(e,r,i)=>{let a=t(e,r,i);return n.has(a)?d:(n.add(a),{done:!1,hasNext:!0,next:e})}}function st(...e){return t(Object.values,e)}export{i as $,he as A,B,Se as C,ve as D,ye as E,ae as F,w as G,N as H,X as I,b as J,re as K,J as L,pe as M,de as N,_e as O,le as P,o as Q,q as R,Ce as S,be as T,k as U,L as V,D as W,m as X,v as Y,c as Z,Me as _,Qe as a,Te as b,qe as c,Ue as d,n as et,Ve as f,Pe as g,Ie as h,tt as i,me as j,ge as k,Ke as l,Re as m,at as n,Xe as o,ze as p,ne as q,rt as r,$ as s,st as t,t as tt,Ge as u,Ae as v,xe as w,we as x,De as y,U as z};
|