@likec4/core 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/dist/THIRD-PARTY-LICENSES.md +1012 -0
- package/dist/_chunks/Builder.view-element.mjs +2 -3284
- package/dist/_chunks/LikeC4Model.d.mts +21 -25
- package/dist/_chunks/RichText.mjs +1 -148
- package/dist/_chunks/_types.d.mts +1 -5
- package/dist/_chunks/_types2.d.mts +2 -4
- package/dist/_chunks/assignTagColors.mjs +1 -24
- package/dist/_chunks/calcDriftsFromSnapshot.mjs +1 -379
- package/dist/_chunks/guards.d.mts +2026 -0
- package/dist/_chunks/guards.mjs +4 -0
- package/dist/_chunks/index.d.mts +255 -136
- package/dist/_chunks/libs/@mantine/colors-generator.mjs +2 -3403
- package/dist/_chunks/libs/@radix-ui/colors.mjs +1 -0
- package/dist/_chunks/libs/@ungap/structured-clone.mjs +1 -213
- package/dist/_chunks/libs/bail.mjs +1 -14
- package/dist/_chunks/libs/ccount.mjs +1 -25
- package/dist/_chunks/libs/character-entities-html4.mjs +1 -263
- package/dist/_chunks/libs/character-entities-legacy.mjs +1 -117
- package/dist/_chunks/libs/character-entities.mjs +2 -2136
- package/dist/_chunks/libs/comma-separated-tokens.mjs +1 -18
- package/dist/_chunks/libs/decode-named-character-reference.mjs +1 -21
- package/dist/_chunks/libs/defu.mjs +1 -42
- package/dist/_chunks/libs/devlop.mjs +1 -5
- package/dist/_chunks/libs/escape-string-regexp.mjs +1 -8
- package/dist/_chunks/libs/extend.mjs +1 -77
- package/dist/_chunks/libs/graphology-dag.mjs +1 -703
- package/dist/_chunks/libs/graphology.mjs +1 -4565
- package/dist/_chunks/libs/hast-util-sanitize.mjs +1 -863
- package/dist/_chunks/libs/hast-util-to-html.mjs +9 -2696
- package/dist/_chunks/libs/is-plain-obj.mjs +1 -9
- package/dist/_chunks/libs/longest-streak.mjs +1 -30
- package/dist/_chunks/libs/markdown-table.mjs +2 -290
- package/dist/_chunks/libs/mdast-util-find-and-replace.mjs +1 -653
- package/dist/_chunks/libs/mdast-util-from-markdown.mjs +3 -8522
- package/dist/_chunks/libs/mdast-util-gfm.mjs +15 -2393
- package/dist/_chunks/libs/mdast-util-to-hast.mjs +11 -1803
- package/dist/_chunks/libs/micromark-extension-gfm.mjs +1 -2243
- package/dist/_chunks/libs/mnemonist.d.mts +1 -91
- package/dist/_chunks/libs/mnemonist.mjs +1 -1978
- package/dist/_chunks/libs/natural-compare-lite.mjs +9 -42
- package/dist/_chunks/libs/ohash.mjs +1 -0
- package/dist/_chunks/libs/rehype-sanitize.mjs +1 -29
- package/dist/_chunks/libs/rehype-stringify.mjs +1 -34
- package/dist/_chunks/libs/remark-gfm.mjs +1 -36
- package/dist/_chunks/libs/remark-github-blockquote-alert.mjs +3 -100
- package/dist/_chunks/libs/remark-parse.mjs +1 -39
- package/dist/_chunks/libs/remark-rehype.mjs +1 -171
- package/dist/_chunks/libs/remeda.mjs +1 -702
- package/dist/_chunks/libs/trough.mjs +1 -158
- package/dist/_chunks/libs/unified.mjs +1 -2212
- package/dist/_chunks/rolldown-runtime.mjs +1 -42
- package/dist/_chunks/{index3.d.mts → theme.d.mts} +15 -13
- package/dist/_chunks/{index7.d.mts → to-text.d.mts} +165 -29
- package/dist/_chunks/to-text.mjs +1 -0
- package/dist/_chunks/vector.d.mts +198 -0
- package/dist/_chunks/vector.mjs +1 -0
- package/dist/builder/index.d.mts +2 -8
- package/dist/builder/index.mjs +1 -662
- package/dist/compute-view/index.d.mts +86 -15
- package/dist/compute-view/index.mjs +2 -262
- package/dist/geometry/index.d.mts +2 -2
- package/dist/geometry/index.mjs +1 -3
- package/dist/index.d.mts +9 -13
- package/dist/index.mjs +1 -27
- package/dist/model/index.d.mts +4 -14
- package/dist/model/index.mjs +1 -11
- package/dist/styles/index.d.mts +2 -8
- package/dist/styles/index.mjs +1 -30
- package/dist/types/index.d.mts +3 -9
- package/dist/types/index.mjs +1 -15
- package/dist/utils/graphology/index.d.mts +1 -1
- package/dist/utils/graphology/index.mjs +1 -3
- package/dist/utils/index.d.mts +4 -11
- package/dist/utils/index.mjs +1 -17
- package/package.json +13 -12
- package/dist/_chunks/LikeC4Styles.mjs +0 -691
- package/dist/_chunks/RichText.d.mts +0 -84
- package/dist/_chunks/_aux.d.mts +0 -289
- package/dist/_chunks/_aux.mjs +0 -18
- package/dist/_chunks/connection.mjs +0 -0
- package/dist/_chunks/const.d.mts +0 -43
- package/dist/_chunks/const.mjs +0 -33
- package/dist/_chunks/expression-model.d.mts +0 -192
- package/dist/_chunks/expression-model.mjs +0 -103
- package/dist/_chunks/expression.d.mts +0 -347
- package/dist/_chunks/expression.mjs +0 -107
- package/dist/_chunks/find.d.mts +0 -82
- package/dist/_chunks/find.mjs +0 -646
- package/dist/_chunks/find2.d.mts +0 -78
- package/dist/_chunks/find2.mjs +0 -287
- package/dist/_chunks/fqnRef.d.mts +0 -58
- package/dist/_chunks/fqnRef.mjs +0 -41
- package/dist/_chunks/geometry.mjs +0 -335
- package/dist/_chunks/index2.d.mts +0 -937
- package/dist/_chunks/index4.d.mts +0 -62
- package/dist/_chunks/index5.d.mts +0 -42
- package/dist/_chunks/index6.d.mts +0 -43
- package/dist/_chunks/index8.d.mts +0 -144
- package/dist/_chunks/invariant.mjs +0 -18
- package/dist/_chunks/iterable.mjs +0 -146
- package/dist/_chunks/libs/graphology-types.d.mts +0 -601
- package/dist/_chunks/libs/graphology.d.mts +0 -6
- package/dist/_chunks/mnemonist.d.mts +0 -1
- package/dist/_chunks/mnemonist.mjs +0 -0
- package/dist/_chunks/model.mjs +0 -1898
- package/dist/_chunks/model2.mjs +0 -0
- package/dist/_chunks/relationships-view.mjs +0 -132
- package/dist/_chunks/scalar.d.mts +0 -109
- package/dist/_chunks/scalar.mjs +0 -84
- package/dist/_chunks/utils.mjs +0 -483
- package/dist/compute-view/relationships-view/index.d.mts +0 -16
- package/dist/compute-view/relationships-view/index.mjs +0 -7
- package/dist/model/connection/deployment/index.d.mts +0 -12
- package/dist/model/connection/deployment/index.mjs +0 -9
- package/dist/model/connection/index.d.mts +0 -14
- package/dist/model/connection/index.mjs +0 -10
- package/dist/model/connection/model/index.d.mts +0 -12
- package/dist/model/connection/model/index.mjs +0 -8
- package/dist/types/RichText.d.mts +0 -3
- package/dist/types/RichText.mjs +0 -7
- package/dist/types/_aux.d.mts +0 -3
- package/dist/types/_aux.mjs +0 -3
- package/dist/types/expression-model.d.mts +0 -6
- package/dist/types/expression-model.mjs +0 -7
- package/dist/types/expression.d.mts +0 -5
- package/dist/types/expression.mjs +0 -7
- package/dist/types/fqnRef.d.mts +0 -4
- package/dist/types/fqnRef.mjs +0 -7
- package/dist/types/scalar.d.mts +0 -2
- package/dist/types/scalar.mjs +0 -7
- package/dist/utils/iterable/index.d.mts +0 -9
- package/dist/utils/iterable/index.mjs +0 -3
- package/dist/utils/mnemonist.d.mts +0 -2
- package/dist/utils/mnemonist.mjs +0 -12
|
@@ -1,702 +1 @@
|
|
|
1
|
-
|
|
2
|
-
function e$20(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$39(t, n, r) {
|
|
13
|
-
let i = t.length - n.length;
|
|
14
|
-
if (i === 0) return t(...n);
|
|
15
|
-
if (i === 1) return e$20(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/allPass-7JBKS7eL.js
|
|
21
|
-
function t$38(...t) {
|
|
22
|
-
return t$39(n$34, t);
|
|
23
|
-
}
|
|
24
|
-
const n$34 = (e, t) => t.every((t) => t(e));
|
|
25
|
-
|
|
26
|
-
//#endregion
|
|
27
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/anyPass-C9yFxHyK.js
|
|
28
|
-
function t$37(...t) {
|
|
29
|
-
return t$39(n$33, t);
|
|
30
|
-
}
|
|
31
|
-
const n$33 = (e, t) => t.some((t) => t(e));
|
|
32
|
-
|
|
33
|
-
//#endregion
|
|
34
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/concat-Bi7sChf0.js
|
|
35
|
-
function t$36(...t) {
|
|
36
|
-
return t$39(n$32, t);
|
|
37
|
-
}
|
|
38
|
-
const n$32 = (e, t) => [...e, ...t];
|
|
39
|
-
|
|
40
|
-
//#endregion
|
|
41
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/constant-ZKESIgIV.js
|
|
42
|
-
function e$19(e) {
|
|
43
|
-
return () => e;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
//#endregion
|
|
47
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/utilityEvaluators-DORpnx39.js
|
|
48
|
-
const e$18 = {
|
|
49
|
-
done: !0,
|
|
50
|
-
hasNext: !1
|
|
51
|
-
}, t$35 = {
|
|
52
|
-
done: !1,
|
|
53
|
-
hasNext: !1
|
|
54
|
-
}, n$31 = () => e$18, r$13 = (e) => ({
|
|
55
|
-
hasNext: !0,
|
|
56
|
-
next: e,
|
|
57
|
-
done: !1
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
//#endregion
|
|
61
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/pipe-jLehR9-P.js
|
|
62
|
-
function t$34(e, ...t) {
|
|
63
|
-
let a = e, o = t.map((e) => `lazy` in e ? r$12(e) : void 0), s = 0;
|
|
64
|
-
for (; s < t.length;) {
|
|
65
|
-
if (o[s] === void 0 || !i$6(a)) {
|
|
66
|
-
let e = t[s];
|
|
67
|
-
a = e(a), s += 1;
|
|
68
|
-
continue;
|
|
69
|
-
}
|
|
70
|
-
let e = [];
|
|
71
|
-
for (let n = s; n < t.length; n++) {
|
|
72
|
-
let t = o[n];
|
|
73
|
-
if (t === void 0 || (e.push(t), t.isSingle)) break;
|
|
74
|
-
}
|
|
75
|
-
let r = [];
|
|
76
|
-
for (let t of a) if (n$30(t, r, e)) break;
|
|
77
|
-
let { isSingle: c } = e.at(-1);
|
|
78
|
-
a = c ? r[0] : r, s += e.length;
|
|
79
|
-
}
|
|
80
|
-
return a;
|
|
81
|
-
}
|
|
82
|
-
function n$30(t, r, i) {
|
|
83
|
-
if (i.length === 0) return r.push(t), !1;
|
|
84
|
-
let a = t, o = t$35, s = !1;
|
|
85
|
-
for (let [e, t] of i.entries()) {
|
|
86
|
-
let { index: c, items: l } = t;
|
|
87
|
-
if (l.push(a), o = t(a, c, l), t.index += 1, o.hasNext) {
|
|
88
|
-
if (o.hasMany ?? !1) {
|
|
89
|
-
for (let t of o.next) if (n$30(t, r, i.slice(e + 1))) return !0;
|
|
90
|
-
return s;
|
|
91
|
-
}
|
|
92
|
-
a = o.next;
|
|
93
|
-
}
|
|
94
|
-
if (!o.hasNext) break;
|
|
95
|
-
o.done && (s = !0);
|
|
96
|
-
}
|
|
97
|
-
return o.hasNext && r.push(a), s;
|
|
98
|
-
}
|
|
99
|
-
function r$12(e) {
|
|
100
|
-
let { lazy: t, lazyArgs: n } = e, r = t(...n);
|
|
101
|
-
return Object.assign(r, {
|
|
102
|
-
isSingle: t.single ?? !1,
|
|
103
|
-
index: 0,
|
|
104
|
-
items: []
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
function i$6(e) {
|
|
108
|
-
return typeof e == `string` || typeof e == `object` && !!e && Symbol.iterator in e;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
//#endregion
|
|
112
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/purryFromLazy-3oywCNIb.js
|
|
113
|
-
function t$33(t, n) {
|
|
114
|
-
let r = n.length - t.length;
|
|
115
|
-
if (r === 1) {
|
|
116
|
-
let [r, ...i] = n;
|
|
117
|
-
return t$34(r, {
|
|
118
|
-
lazy: t,
|
|
119
|
-
lazyArgs: i
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
if (r === 0) {
|
|
123
|
-
let r = {
|
|
124
|
-
lazy: t,
|
|
125
|
-
lazyArgs: n
|
|
126
|
-
};
|
|
127
|
-
return Object.assign((t) => t$34(t, r), r);
|
|
128
|
-
}
|
|
129
|
-
throw Error(`Wrong number of arguments`);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
//#endregion
|
|
133
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/hasAtLeast-F1Oj_xBB.js
|
|
134
|
-
function t$32(...t) {
|
|
135
|
-
return t$39(n$29, t);
|
|
136
|
-
}
|
|
137
|
-
const n$29 = (e, t) => e.length >= t;
|
|
138
|
-
|
|
139
|
-
//#endregion
|
|
140
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/purryOrderRules-CfRtTEyM.js
|
|
141
|
-
const e$17 = {
|
|
142
|
-
asc: (e, t) => e > t,
|
|
143
|
-
desc: (e, t) => e < t
|
|
144
|
-
};
|
|
145
|
-
function t$31(e, t) {
|
|
146
|
-
let [n, ...a] = t;
|
|
147
|
-
if (!i$5(n)) return e(n, r$11(...a));
|
|
148
|
-
let o = r$11(n, ...a);
|
|
149
|
-
return (t) => e(t, o);
|
|
150
|
-
}
|
|
151
|
-
function r$11(t, n, ...i) {
|
|
152
|
-
let a = typeof t == `function` ? t : t[0], o = typeof t == `function` ? `asc` : t[1], { [o]: s } = e$17, c = n === void 0 ? void 0 : r$11(n, ...i);
|
|
153
|
-
return (e, t) => {
|
|
154
|
-
let n = a(e), r = a(t);
|
|
155
|
-
return s(n, r) ? 1 : s(r, n) ? -1 : c?.(e, t) ?? 0;
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
function i$5(t) {
|
|
159
|
-
if (a$2(t)) return !0;
|
|
160
|
-
if (typeof t != `object` || !Array.isArray(t)) return !1;
|
|
161
|
-
let [n, r, ...i] = t;
|
|
162
|
-
return a$2(n) && typeof r == `string` && r in e$17 && i.length === 0;
|
|
163
|
-
}
|
|
164
|
-
const a$2 = (e) => typeof e == `function` && e.length === 1;
|
|
165
|
-
|
|
166
|
-
//#endregion
|
|
167
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/dropWhile-tNbnGg9S.js
|
|
168
|
-
function t$30(...t) {
|
|
169
|
-
return t$39(n$28, t);
|
|
170
|
-
}
|
|
171
|
-
function n$28(e, t) {
|
|
172
|
-
for (let [n, r] of e.entries()) if (!t(r, n, e)) return e.slice(n);
|
|
173
|
-
return [];
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
//#endregion
|
|
177
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/entries-IutXYNeS.js
|
|
178
|
-
function t$29(...t) {
|
|
179
|
-
return t$39(Object.entries, t);
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
//#endregion
|
|
183
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/filter-BiMaBet0.js
|
|
184
|
-
function n$27(...t) {
|
|
185
|
-
return t$39(r$10, t, i$4);
|
|
186
|
-
}
|
|
187
|
-
const r$10 = (e, t) => e.filter(t), i$4 = (e) => (n, r, i) => e(n, r, i) ? {
|
|
188
|
-
done: !1,
|
|
189
|
-
hasNext: !0,
|
|
190
|
-
next: n
|
|
191
|
-
} : t$35;
|
|
192
|
-
|
|
193
|
-
//#endregion
|
|
194
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/toSingle-Bfpp5_i-.js
|
|
195
|
-
const e$16 = (e) => Object.assign(e, { single: !0 });
|
|
196
|
-
|
|
197
|
-
//#endregion
|
|
198
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/findLast-4m16uIkT.js
|
|
199
|
-
function t$28(...t) {
|
|
200
|
-
return t$39(n$26, t);
|
|
201
|
-
}
|
|
202
|
-
const n$26 = (e, t) => {
|
|
203
|
-
for (let n = e.length - 1; n >= 0; n--) {
|
|
204
|
-
let r = e[n];
|
|
205
|
-
if (t(r, n, e)) return r;
|
|
206
|
-
}
|
|
207
|
-
};
|
|
208
|
-
|
|
209
|
-
//#endregion
|
|
210
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/first-1mSmk2BJ.js
|
|
211
|
-
function n$25(...n) {
|
|
212
|
-
return t$39(r$9, n, e$16(i$3));
|
|
213
|
-
}
|
|
214
|
-
const r$9 = ([e]) => e, i$3 = () => a$1, a$1 = (e) => ({
|
|
215
|
-
hasNext: !0,
|
|
216
|
-
next: e,
|
|
217
|
-
done: !0
|
|
218
|
-
});
|
|
219
|
-
|
|
220
|
-
//#endregion
|
|
221
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/flatMap-Cw4Hh6bl.js
|
|
222
|
-
function t$27(...t) {
|
|
223
|
-
return t$39(n$24, t, r$8);
|
|
224
|
-
}
|
|
225
|
-
const n$24 = (e, t) => e.flatMap(t), r$8 = (e) => (t, n, r) => {
|
|
226
|
-
let i = e(t, n, r);
|
|
227
|
-
return Array.isArray(i) ? {
|
|
228
|
-
done: !1,
|
|
229
|
-
hasNext: !0,
|
|
230
|
-
hasMany: !0,
|
|
231
|
-
next: i
|
|
232
|
-
} : {
|
|
233
|
-
done: !1,
|
|
234
|
-
hasNext: !0,
|
|
235
|
-
next: i
|
|
236
|
-
};
|
|
237
|
-
};
|
|
238
|
-
|
|
239
|
-
//#endregion
|
|
240
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/forEach-y9rIgINo.js
|
|
241
|
-
function t$26(...t) {
|
|
242
|
-
return t$39(n$23, t, r$7);
|
|
243
|
-
}
|
|
244
|
-
function n$23(e, t) {
|
|
245
|
-
return e.forEach(t), e;
|
|
246
|
-
}
|
|
247
|
-
const r$7 = (e) => (t, n, r) => (e(t, n, r), {
|
|
248
|
-
done: !1,
|
|
249
|
-
hasNext: !0,
|
|
250
|
-
next: t
|
|
251
|
-
});
|
|
252
|
-
|
|
253
|
-
//#endregion
|
|
254
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/fromEntries-BAoo2mmx.js
|
|
255
|
-
function t$25(...t) {
|
|
256
|
-
return t$39(Object.fromEntries, t);
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
//#endregion
|
|
260
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/fromKeys-fsUaiGAg.js
|
|
261
|
-
function t$24(...t) {
|
|
262
|
-
return t$39(n$22, t);
|
|
263
|
-
}
|
|
264
|
-
function n$22(e, t) {
|
|
265
|
-
let n = {};
|
|
266
|
-
for (let [r, i] of e.entries()) n[i] = t(i, r, e);
|
|
267
|
-
return n;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
//#endregion
|
|
271
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/groupBy-DG3Piv-t.js
|
|
272
|
-
function t$23(...t) {
|
|
273
|
-
return t$39(n$21, t);
|
|
274
|
-
}
|
|
275
|
-
const n$21 = (e, t) => {
|
|
276
|
-
let n = Object.create(null);
|
|
277
|
-
for (let r = 0; r < e.length; r++) {
|
|
278
|
-
let i = e[r], a = t(i, r, e);
|
|
279
|
-
if (a !== void 0) {
|
|
280
|
-
let e = n[a];
|
|
281
|
-
e === void 0 ? n[a] = [i] : e.push(i);
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
return Object.setPrototypeOf(n, Object.prototype), n;
|
|
285
|
-
};
|
|
286
|
-
|
|
287
|
-
//#endregion
|
|
288
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/isDeepEqual-jLo35Woq.js
|
|
289
|
-
function t$22(...t) {
|
|
290
|
-
return t$39(n$20, t);
|
|
291
|
-
}
|
|
292
|
-
function n$20(e, t) {
|
|
293
|
-
if (e === t || Object.is(e, t)) return !0;
|
|
294
|
-
if (typeof e != `object` || typeof t != `object` || e === null || t === null || Object.getPrototypeOf(e) !== Object.getPrototypeOf(t)) return !1;
|
|
295
|
-
if (Array.isArray(e)) return r$6(e, t);
|
|
296
|
-
if (e instanceof Map) return i$2(e, t);
|
|
297
|
-
if (e instanceof Set) return a(e, t);
|
|
298
|
-
if (e instanceof Date) return e.getTime() === t.getTime();
|
|
299
|
-
if (e instanceof RegExp) return e.toString() === t.toString();
|
|
300
|
-
if (Object.keys(e).length !== Object.keys(t).length) return !1;
|
|
301
|
-
for (let [r, i] of Object.entries(e)) if (!(r in t) || !n$20(i, t[r])) return !1;
|
|
302
|
-
return !0;
|
|
303
|
-
}
|
|
304
|
-
function r$6(e, t) {
|
|
305
|
-
if (e.length !== t.length) return !1;
|
|
306
|
-
for (let [r, i] of e.entries()) if (!n$20(i, t[r])) return !1;
|
|
307
|
-
return !0;
|
|
308
|
-
}
|
|
309
|
-
function i$2(e, t) {
|
|
310
|
-
if (e.size !== t.size) return !1;
|
|
311
|
-
for (let [r, i] of e.entries()) if (!t.has(r) || !n$20(i, t.get(r))) return !1;
|
|
312
|
-
return !0;
|
|
313
|
-
}
|
|
314
|
-
function a(e, t) {
|
|
315
|
-
if (e.size !== t.size) return !1;
|
|
316
|
-
let r = [...t];
|
|
317
|
-
for (let t of e) {
|
|
318
|
-
let e = !1;
|
|
319
|
-
for (let [i, a] of r.entries()) if (n$20(t, a)) {
|
|
320
|
-
e = !0, r.splice(i, 1);
|
|
321
|
-
break;
|
|
322
|
-
}
|
|
323
|
-
if (!e) return !1;
|
|
324
|
-
}
|
|
325
|
-
return !0;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
//#endregion
|
|
329
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/isArray-C3HaRgzz.js
|
|
330
|
-
function e$15(e) {
|
|
331
|
-
return Array.isArray(e);
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
//#endregion
|
|
335
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/isBoolean-rUPD1MTE.js
|
|
336
|
-
function e$14(e) {
|
|
337
|
-
return typeof e == `boolean`;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
//#endregion
|
|
341
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/isDefined-D96LKBI6.js
|
|
342
|
-
function e$13(e) {
|
|
343
|
-
return e !== void 0;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
//#endregion
|
|
347
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/isEmpty-B6r3tkJ8.js
|
|
348
|
-
function e$12(e) {
|
|
349
|
-
return e === `` || e === void 0 ? !0 : Array.isArray(e) ? e.length === 0 : Object.keys(e).length === 0;
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
//#endregion
|
|
353
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/isEmptyish-uIGYrS1r.js
|
|
354
|
-
function e$11(e) {
|
|
355
|
-
if (e == null || e === ``) return !0;
|
|
356
|
-
if (typeof e != `object`) return !1;
|
|
357
|
-
if (`length` in e && typeof e.length == `number`) return e.length === 0;
|
|
358
|
-
if (`size` in e && typeof e.size == `number`) return e.size === 0;
|
|
359
|
-
for (let t in e) return !1;
|
|
360
|
-
return Object.getOwnPropertySymbols(e).length === 0;
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
//#endregion
|
|
364
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/isFunction-BJjFuZR7.js
|
|
365
|
-
const e$10 = (e) => typeof e == `function`;
|
|
366
|
-
|
|
367
|
-
//#endregion
|
|
368
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/isNonNullish-C9wd575s.js
|
|
369
|
-
function e$9(e) {
|
|
370
|
-
return e != null;
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
//#endregion
|
|
374
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/isNot-FWWca4Ev.js
|
|
375
|
-
function e$8(e) {
|
|
376
|
-
return (t) => !e(t);
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
//#endregion
|
|
380
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/isNullish-Mu0-VITK.js
|
|
381
|
-
function e$7(e) {
|
|
382
|
-
return e == null;
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
//#endregion
|
|
386
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/isNumber-ccMQhOVD.js
|
|
387
|
-
function e$6(e) {
|
|
388
|
-
return typeof e == `number` && !Number.isNaN(e);
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
//#endregion
|
|
392
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/isShallowEqual-B8ugYLnO.js
|
|
393
|
-
function t$21(...t) {
|
|
394
|
-
return t$39(n$19, t);
|
|
395
|
-
}
|
|
396
|
-
function n$19(e, t) {
|
|
397
|
-
if (e === t || Object.is(e, t)) return !0;
|
|
398
|
-
if (typeof e != `object` || !e || typeof t != `object` || !t) return !1;
|
|
399
|
-
if (e instanceof Map && t instanceof Map) return r$5(e, t);
|
|
400
|
-
if (e instanceof Set && t instanceof Set) return i$1(e, t);
|
|
401
|
-
let n = Object.keys(e);
|
|
402
|
-
if (n.length !== Object.keys(t).length) return !1;
|
|
403
|
-
for (let r of n) {
|
|
404
|
-
if (!Object.hasOwn(t, r)) return !1;
|
|
405
|
-
let { [r]: n } = e, { [r]: i } = t;
|
|
406
|
-
if (n !== i || !Object.is(n, i)) return !1;
|
|
407
|
-
}
|
|
408
|
-
return !0;
|
|
409
|
-
}
|
|
410
|
-
function r$5(e, t) {
|
|
411
|
-
if (e.size !== t.size) return !1;
|
|
412
|
-
for (let [n, r] of e) {
|
|
413
|
-
let e = t.get(n);
|
|
414
|
-
if (r !== e || !Object.is(r, e)) return !1;
|
|
415
|
-
}
|
|
416
|
-
return !0;
|
|
417
|
-
}
|
|
418
|
-
function i$1(e, t) {
|
|
419
|
-
if (e.size !== t.size) return !1;
|
|
420
|
-
for (let n of e) if (!t.has(n)) return !1;
|
|
421
|
-
return !0;
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
//#endregion
|
|
425
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/isString-BPlksnnG.js
|
|
426
|
-
function e$5(e) {
|
|
427
|
-
return typeof e == `string`;
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
//#endregion
|
|
431
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/isTruthy-LnBlxhiF.js
|
|
432
|
-
function e$4(e) {
|
|
433
|
-
return !!e;
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
//#endregion
|
|
437
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/keys-CT72t2DB.js
|
|
438
|
-
function t$20(...t) {
|
|
439
|
-
return t$39(Object.keys, t);
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
//#endregion
|
|
443
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/last-BaD4Geh6.js
|
|
444
|
-
function t$19(...t) {
|
|
445
|
-
return t$39(n$18, t);
|
|
446
|
-
}
|
|
447
|
-
const n$18 = (e) => e.at(-1);
|
|
448
|
-
|
|
449
|
-
//#endregion
|
|
450
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/map-B0uTZUd8.js
|
|
451
|
-
function t$18(...t) {
|
|
452
|
-
return t$39(n$17, t, r$4);
|
|
453
|
-
}
|
|
454
|
-
const n$17 = (e, t) => e.map(t), r$4 = (e) => (t, n, r) => ({
|
|
455
|
-
done: !1,
|
|
456
|
-
hasNext: !0,
|
|
457
|
-
next: e(t, n, r)
|
|
458
|
-
});
|
|
459
|
-
|
|
460
|
-
//#endregion
|
|
461
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/mapToObj-8STtUbFK.js
|
|
462
|
-
function t$17(...t) {
|
|
463
|
-
return t$39(n$16, t);
|
|
464
|
-
}
|
|
465
|
-
function n$16(e, t) {
|
|
466
|
-
let n = {};
|
|
467
|
-
for (let [r, i] of e.entries()) {
|
|
468
|
-
let [a, o] = t(i, r, e);
|
|
469
|
-
n[a] = o;
|
|
470
|
-
}
|
|
471
|
-
return n;
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
//#endregion
|
|
475
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/mapValues-D8ywfrE_.js
|
|
476
|
-
function t$16(...t) {
|
|
477
|
-
return t$39(n$15, t);
|
|
478
|
-
}
|
|
479
|
-
function n$15(e, t) {
|
|
480
|
-
let n = {};
|
|
481
|
-
for (let [r, i] of Object.entries(e)) n[r] = t(i, r, e);
|
|
482
|
-
return n;
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
//#endregion
|
|
486
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/omit-HZOiLuMO.js
|
|
487
|
-
function n$14(...t) {
|
|
488
|
-
return t$39(r$3, t);
|
|
489
|
-
}
|
|
490
|
-
function r$3(e, n) {
|
|
491
|
-
if (!t$32(n, 1)) return { ...e };
|
|
492
|
-
if (!t$32(n, 2)) {
|
|
493
|
-
let { [n[0]]: t, ...r } = e;
|
|
494
|
-
return r;
|
|
495
|
-
}
|
|
496
|
-
let r = { ...e };
|
|
497
|
-
for (let e of n) delete r[e];
|
|
498
|
-
return r;
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
//#endregion
|
|
502
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/omitBy-CgV9CAW2.js
|
|
503
|
-
function t$15(...t) {
|
|
504
|
-
return t$39(n$13, t);
|
|
505
|
-
}
|
|
506
|
-
function n$13(e, t) {
|
|
507
|
-
let n = { ...e };
|
|
508
|
-
for (let [r, i] of Object.entries(n)) t(i, r, e) && delete n[r];
|
|
509
|
-
return n;
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
//#endregion
|
|
513
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/only-CrFFJyuV.js
|
|
514
|
-
function t$14(...t) {
|
|
515
|
-
return t$39(n$12, t);
|
|
516
|
-
}
|
|
517
|
-
const n$12 = (e) => e.length === 1 ? e[0] : void 0;
|
|
518
|
-
|
|
519
|
-
//#endregion
|
|
520
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/partition-DAu403JQ.js
|
|
521
|
-
function t$13(...t) {
|
|
522
|
-
return t$39(n$11, t);
|
|
523
|
-
}
|
|
524
|
-
const n$11 = (e, t) => {
|
|
525
|
-
let n = [[], []];
|
|
526
|
-
for (let [r, i] of e.entries()) t(i, r, e) ? n[0].push(i) : n[1].push(i);
|
|
527
|
-
return n;
|
|
528
|
-
};
|
|
529
|
-
|
|
530
|
-
//#endregion
|
|
531
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/pick-CZJrFX39.js
|
|
532
|
-
function t$12(...t) {
|
|
533
|
-
return t$39(n$10, t);
|
|
534
|
-
}
|
|
535
|
-
function n$10(e, t) {
|
|
536
|
-
let n = {};
|
|
537
|
-
for (let r of t) r in e && (n[r] = e[r]);
|
|
538
|
-
return n;
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
//#endregion
|
|
542
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/pickBy-DE-thspn.js
|
|
543
|
-
function t$11(...t) {
|
|
544
|
-
return t$39(n$9, t);
|
|
545
|
-
}
|
|
546
|
-
function n$9(e, t) {
|
|
547
|
-
let n = {};
|
|
548
|
-
for (let [r, i] of Object.entries(e)) t(i, r, e) && (n[r] = i);
|
|
549
|
-
return n;
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
//#endregion
|
|
553
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/piped-DL3yOG5i.js
|
|
554
|
-
function t$10(...t) {
|
|
555
|
-
return (n) => t$34(n, ...t);
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
//#endregion
|
|
559
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/prop-Cv_AVBuA.js
|
|
560
|
-
function e$3(e, ...n) {
|
|
561
|
-
return typeof e == `string` || typeof e == `number` || typeof e == `symbol` ? (r) => t$9(r, e, ...n) : t$9(e, ...n);
|
|
562
|
-
}
|
|
563
|
-
function t$9(e, ...t) {
|
|
564
|
-
let n = e;
|
|
565
|
-
for (let e of t) {
|
|
566
|
-
if (n == null) return;
|
|
567
|
-
n = n[e];
|
|
568
|
-
}
|
|
569
|
-
return n;
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
//#endregion
|
|
573
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/pullObject-fGM6Dh13.js
|
|
574
|
-
function t$8(...t) {
|
|
575
|
-
return t$39(n$8, t);
|
|
576
|
-
}
|
|
577
|
-
function n$8(e, t, n) {
|
|
578
|
-
let r = {};
|
|
579
|
-
for (let [i, a] of e.entries()) {
|
|
580
|
-
let o = t(a, i, e);
|
|
581
|
-
r[o] = n(a, i, e);
|
|
582
|
-
}
|
|
583
|
-
return r;
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
//#endregion
|
|
587
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/randomInteger-_2VFJqbV.js
|
|
588
|
-
function e$2(e, t) {
|
|
589
|
-
let n = Math.ceil(e), r = Math.floor(t);
|
|
590
|
-
if (r < n) throw RangeError(`randomInteger: The range [${e.toString()},${t.toString()}] contains no integer`);
|
|
591
|
-
return Math.floor(Math.random() * (r - n + 1) + n);
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
//#endregion
|
|
595
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/reduce-Cu1bxvtw.js
|
|
596
|
-
function t$7(...t) {
|
|
597
|
-
return t$39(n$7, t);
|
|
598
|
-
}
|
|
599
|
-
const n$7 = (e, t, n) => e.reduce(t, n);
|
|
600
|
-
|
|
601
|
-
//#endregion
|
|
602
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/reverse-CkjHvjWj.js
|
|
603
|
-
function t$6(...t) {
|
|
604
|
-
return t$39(n$6, t);
|
|
605
|
-
}
|
|
606
|
-
function n$6(e) {
|
|
607
|
-
return [...e].reverse();
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
//#endregion
|
|
611
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/sort-DJMgrJTX.js
|
|
612
|
-
function t$5(...t) {
|
|
613
|
-
return t$39(n$5, t);
|
|
614
|
-
}
|
|
615
|
-
function n$5(e, t) {
|
|
616
|
-
let n = [...e];
|
|
617
|
-
return n.sort(t), n;
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
//#endregion
|
|
621
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/sortBy-CjYY6W42.js
|
|
622
|
-
function t$4(...t) {
|
|
623
|
-
return t$31(n$4, t);
|
|
624
|
-
}
|
|
625
|
-
const n$4 = (e, t) => [...e].sort(t);
|
|
626
|
-
|
|
627
|
-
//#endregion
|
|
628
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/split-DJnBKW9T.js
|
|
629
|
-
function e$1(e, t, n) {
|
|
630
|
-
return typeof t == `number` || t === void 0 ? (n) => n.split(e, t) : e.split(t, n);
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
//#endregion
|
|
634
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/take-Bdy9Ko1L.js
|
|
635
|
-
function n$3(...t) {
|
|
636
|
-
return t$39(r$2, t, i);
|
|
637
|
-
}
|
|
638
|
-
const r$2 = (e, t) => t < 0 ? [] : e.slice(0, t);
|
|
639
|
-
function i(e) {
|
|
640
|
-
if (e <= 0) return n$31;
|
|
641
|
-
let n = e;
|
|
642
|
-
return (e) => (--n, {
|
|
643
|
-
done: n <= 0,
|
|
644
|
-
hasNext: !0,
|
|
645
|
-
next: e
|
|
646
|
-
});
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
//#endregion
|
|
650
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/takeWhile-QWH_1pO-.js
|
|
651
|
-
function t$3(...t) {
|
|
652
|
-
return t$39(n$2, t);
|
|
653
|
-
}
|
|
654
|
-
function n$2(e, t) {
|
|
655
|
-
let n = [];
|
|
656
|
-
for (let [r, i] of e.entries()) {
|
|
657
|
-
if (!t(i, r, e)) break;
|
|
658
|
-
n.push(i);
|
|
659
|
-
}
|
|
660
|
-
return n;
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
//#endregion
|
|
664
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/unique-10P7QXxd.js
|
|
665
|
-
function n$1(...e) {
|
|
666
|
-
return t$33(r$1, e);
|
|
667
|
-
}
|
|
668
|
-
function r$1() {
|
|
669
|
-
let t = /* @__PURE__ */ new Set();
|
|
670
|
-
return (n) => t.has(n) ? t$35 : (t.add(n), {
|
|
671
|
-
done: !1,
|
|
672
|
-
hasNext: !0,
|
|
673
|
-
next: n
|
|
674
|
-
});
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
//#endregion
|
|
678
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/values-CpYo8vbR.js
|
|
679
|
-
function t$2(...t) {
|
|
680
|
-
return t$39(Object.values, t);
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
//#endregion
|
|
684
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/when-DKwiB_tk.js
|
|
685
|
-
function e(...e) {
|
|
686
|
-
return e.length === 2 ? (n, ...r) => t$1(n, ...e, ...r) : t$1(...e);
|
|
687
|
-
}
|
|
688
|
-
const t$1 = (e, t, n, ...r) => t(e, ...r) ? typeof n == `function` ? n(e, ...r) : n.onTrue(e, ...r) : typeof n == `function` ? e : n.onFalse(e, ...r);
|
|
689
|
-
|
|
690
|
-
//#endregion
|
|
691
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/zip-DxS_OtaF.js
|
|
692
|
-
function t(...t) {
|
|
693
|
-
return t$39(n, t, r);
|
|
694
|
-
}
|
|
695
|
-
const n = (e, t) => e.length < t.length ? e.map((e, n) => [e, t[n]]) : t.map((t, n) => [e[n], t]), r = (e) => (t, n) => ({
|
|
696
|
-
hasNext: !0,
|
|
697
|
-
next: [t, e[n]],
|
|
698
|
-
done: n >= e.length - 1
|
|
699
|
-
});
|
|
700
|
-
|
|
701
|
-
//#endregion
|
|
702
|
-
export { e$19 as $, e$6 as A, t$22 as B, t$17 as C, e$4 as D, t$20 as E, e$11 as F, t$27 as G, t$24 as H, e$12 as I, n$27 as J, n$25 as K, e$13 as L, e$8 as M, e$9 as N, e$5 as O, e$10 as P, t$34 as Q, e$14 as R, t$16 as S, t$19 as T, t$25 as U, t$23 as V, t$26 as W, t$30 as X, t$29 as Y, t$32 as Z, t$12 as _, t$3 as a, t$15 as b, t$4 as c, t$7 as d, t$36 as et, e$2 as f, t$11 as g, t$10 as h, n$1 as i, e$7 as j, t$21 as k, t$5 as l, e$3 as m, e as n, t$38 as nt, n$3 as o, t$8 as p, t$28 as q, t$2 as r, e$1 as s, t, t$37 as tt, t$6 as u, t$13 as v, t$18 as w, n$14 as x, t$14 as y, e$15 as z };
|
|
1
|
+
function e$21(o,s,c){let l=c=>o(c,...s);return c===void 0?l:Object.assign(l,{lazy:c,lazyArgs:s})}function t$39(s,c,l){let u=s.length-c.length;if(u===0)return s(...c);if(u===1)return e$21(s,c,l);throw Error(`Wrong number of arguments`)}function t$38(...o){return t$39(n$34,o)}const n$34=(o,s)=>s.every(s=>s(o));function t$37(...o){return t$39(n$33,o)}const n$33=(o,s)=>s.some(s=>s(o));function t$36(...o){return t$39(n$32,o)}const n$32=(o,s)=>[...o,...s];function e$20(o){return()=>o}const e$19={done:!0,hasNext:!1},t$35={done:!1,hasNext:!1},n$31=()=>e$19,r$14=o=>({hasNext:!0,next:o,done:!1});function t$34(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$30(s,d,o))break;let{isSingle:f}=o.at(-1);c=f?d[0]:d,u+=o.length}return c}function n$30(o,s,c){if(c.length===0)return s.push(o),!1;let l=o,u=t$35,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$30(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$33(o,s){let c=s.length-o.length;if(c===1){let[c,...l]=s;return t$34(c,{lazy:o,lazyArgs:l})}if(c===0){let c={lazy:o,lazyArgs:s};return Object.assign(o=>t$34(o,c),c)}throw Error(`Wrong number of arguments`)}function r$12(...o){return t$39(i$6,o,a$3)}const i$6=(o,s)=>s<0?[...o]:o.slice(s);function a$3(o){if(o<=0)return r$14;let s=o;return o=>s>0?(--s,t$35):{done:!1,hasNext:!0,next:o}}function t$32(...o){return t$39(n$29,o)}const n$29=(o,s)=>o.length>=s,e$18={asc:(o,s)=>o>s,desc:(o,s)=>o<s};function t$31(o,s){let[c,...l]=s;if(!i$5(c))return o(c,r$11(...l));let u=r$11(c,...l);return s=>o(s,u)}function r$11(o,s,...c){let l=typeof o==`function`?o:o[0],u=typeof o==`function`?`asc`:o[1],{[u]:d}=e$18,f=s===void 0?void 0:r$11(s,...c);return(o,s)=>{let c=l(o),u=l(s);return d(c,u)?1:d(u,c)?-1:f?.(o,s)??0}}function i$5(o){if(a$2(o))return!0;if(typeof o!=`object`||!Array.isArray(o))return!1;let[s,c,...l]=o;return a$2(s)&&typeof c==`string`&&c in e$18&&l.length===0}const a$2=o=>typeof o==`function`&&o.length===1;function t$30(...o){return t$39(n$28,o)}function n$28(o,s){for(let[c,l]of o.entries())if(!s(l,c,o))return o.slice(c);return[]}function t$29(...o){return t$39(Object.entries,o)}function n$27(...o){return t$39(r$10,o,i$4)}const r$10=(o,s)=>o.filter(s),i$4=o=>(s,c,l)=>o(s,c,l)?{done:!1,hasNext:!0,next:s}:t$35,e$17=o=>Object.assign(o,{single:!0});function t$28(...o){return t$39(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$39(r$9,o,e$17(i$3))}const r$9=([o])=>o,i$3=()=>a$1,a$1=o=>({hasNext:!0,next:o,done:!0});function t$27(...o){return t$39(n$24,o,r$8)}const n$24=(o,s)=>o.flatMap(s),r$8=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$26(...o){return t$39(n$23,o,r$7)}function n$23(o,s){return o.forEach(s),o}const r$7=o=>(s,c,l)=>(o(s,c,l),{done:!1,hasNext:!0,next:s});function t$25(...o){return t$39(Object.fromEntries,o)}function t$24(...o){return t$39(n$22,o)}function n$22(o,s){let c={};for(let[l,u]of o.entries())c[u]=s(u,l,o);return c}function t$23(...o){return t$39(n$21,o)}const n$21=(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$22(...o){return t$39(n$20,o)}function n$20(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$6(o,s);if(o instanceof Map)return i$2(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$20(l,s[c]))return!1;return!0}function r$6(o,s){if(o.length!==s.length)return!1;for(let[c,l]of o.entries())if(!n$20(l,s[c]))return!1;return!0}function i$2(o,s){if(o.size!==s.size)return!1;for(let[c,l]of o.entries())if(!s.has(c)||!n$20(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$20(s,u)){o=!0,c.splice(l,1);break}if(!o)return!1}return!0}function e$16(o){return Array.isArray(o)}function e$15(o){return typeof o==`boolean`}function e$14(o){return o!==void 0}function e$13(o){return o===``||o===void 0?!0:Array.isArray(o)?o.length===0:Object.keys(o).length===0}function e$12(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}const e$11=o=>typeof o==`function`;function e$10(o){return o!=null}function e$9(o){return s=>!o(s)}function e$8(o){return o==null}function e$7(o){return typeof o==`number`&&!Number.isNaN(o)}function t$21(...o){return t$39(n$19,o)}function n$19(o,s){if(o===s||Object.is(o,s))return!0;if(typeof o!=`object`||!o||typeof s!=`object`||!s)return!1;if(o instanceof Map&&s instanceof Map)return r$5(o,s);if(o instanceof Set&&s instanceof Set)return i$1(o,s);let c=Object.keys(o);if(c.length!==Object.keys(s).length)return!1;for(let l of c){if(!Object.hasOwn(s,l))return!1;let{[l]:c}=o,{[l]:u}=s;if(c!==u||!Object.is(c,u))return!1}return!0}function r$5(o,s){if(o.size!==s.size)return!1;for(let[c,l]of o){let o=s.get(c);if(l!==o||!Object.is(l,o))return!1}return!0}function i$1(o,s){if(o.size!==s.size)return!1;for(let c of o)if(!s.has(c))return!1;return!0}function e$6(o){return typeof o==`string`}function e$5(o){return!!o}function t$20(...o){return t$39(Object.keys,o)}function t$19(...o){return t$39(n$18,o)}const n$18=o=>o.at(-1);function t$18(...o){return t$39(n$17,o,r$4)}const n$17=(o,s)=>o.map(s),r$4=o=>(s,c,l)=>({done:!1,hasNext:!0,next:o(s,c,l)});function t$17(...o){return t$39(n$16,o)}function n$16(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$16(...o){return t$39(n$15,o)}function n$15(o,s){let c={};for(let[l,u]of Object.entries(o))c[l]=s(u,l,o);return c}function n$14(...o){return t$39(r$3,o)}function r$3(o,s){if(!t$32(s,1))return{...o};if(!t$32(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$15(...o){return t$39(n$13,o)}function n$13(o,s){let c={...o};for(let[l,u]of Object.entries(c))s(u,l,o)&&delete c[l];return c}function e$4(o){let s=!1,c;return()=>(s||=(c=o(),!0),c)}function t$14(...o){return t$39(n$12,o)}const n$12=o=>o.length===1?o[0]:void 0;function t$13(...o){return t$39(n$11,o)}const n$11=(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$12(...o){return t$39(n$10,o)}function n$10(o,s){let c={};for(let l of s)l in o&&(c[l]=o[l]);return c}function t$11(...o){return t$39(n$9,o)}function n$9(o,s){let c={};for(let[l,u]of Object.entries(o))s(u,l,o)&&(c[l]=u);return c}function t$10(...o){return s=>t$34(s,...o)}function e$3(o,...s){return typeof o==`string`||typeof o==`number`||typeof o==`symbol`?c=>t$9(c,o,...s):t$9(o,...s)}function t$9(o,...s){let c=o;for(let o of s){if(c==null)return;c=c[o]}return c}function t$8(...o){return t$39(n$8,o)}function n$8(o,s,c){let l={};for(let[u,d]of o.entries()){let f=s(d,u,o);l[f]=c(d,u,o)}return l}function e$2(o,s){let c=Math.ceil(o),l=Math.floor(s);if(l<c)throw RangeError(`randomInteger: The range [${o.toString()},${s.toString()}] contains no integer`);return Math.floor(Math.random()*(l-c+1)+c)}function t$7(...o){return t$39(n$7,o)}const n$7=(o,s,c)=>o.reduce(s,c);function t$6(...o){return t$39(n$6,o)}function n$6(o){return[...o].reverse()}function t$5(...o){return t$39(n$5,o)}function n$5(o,s){let c=[...o];return c.sort(s),c}function t$4(...o){return t$31(n$4,o)}const n$4=(o,s)=>[...o].sort(s);function e$1(o,s,c){return typeof s==`number`||s===void 0?c=>c.split(o,s):o.split(s,c)}function n$3(...o){return t$39(r$2,o,i)}const r$2=(o,s)=>s<0?[]:o.slice(0,s);function i(o){if(o<=0)return n$31;let s=o;return o=>(--s,{done:s<=0,hasNext:!0,next:o})}function t$3(...o){return t$39(n$2,o)}function n$2(o,s){let c=[];for(let[l,u]of o.entries()){if(!s(u,l,o))break;c.push(u)}return c}function n$1(...o){return t$33(r$1,o)}function r$1(){let o=new Set;return s=>o.has(s)?t$35:(o.add(s),{done:!1,hasNext:!0,next:s})}function t$2(...o){return t$39(Object.values,o)}function e(...o){return o.length===2?(s,...c)=>t$1(s,...o,...c):t$1(...o)}const t$1=(o,s,c,...l)=>s(o,...l)?typeof c==`function`?c(o,...l):c.onTrue(o,...l):typeof c==`function`?o:c.onFalse(o,...l);function t(...o){return t$39(n,o,r)}const n=(o,s)=>o.length<s.length?o.map((o,c)=>[o,s[c]]):s.map((s,c)=>[o[c],s]),r=o=>(s,c)=>({hasNext:!0,next:[s,o[c]],done:c>=o.length-1});export{r$12 as $,t$21 as A,e$16 as B,t$16 as C,t$20 as D,t$19 as E,e$11 as F,t$26 as G,t$23 as H,e$12 as I,t$28 as J,t$27 as K,e$13 as L,e$8 as M,e$9 as N,e$5 as O,e$10 as P,t$32 as Q,e$14 as R,n$14 as S,t$18 as T,t$24 as U,t$22 as V,t$25 as W,t$29 as X,n$27 as Y,t$30 as Z,t$12 as _,t$3 as a,e$4 as b,t$4 as c,t$7 as d,t$34 as et,e$2 as f,t$11 as g,t$10 as h,n$1 as i,t$38 as it,e$7 as j,e$6 as k,t$5 as l,e$3 as m,e as n,t$36 as nt,n$3 as o,t$8 as p,n$25 as q,t$2 as r,t$37 as rt,e$1 as s,t,e$20 as tt,t$6 as u,t$13 as v,t$17 as w,t$15 as x,t$14 as y,e$15 as z};
|