@likec4/core 1.47.0 → 1.48.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/LICENSE +1 -1
  2. package/dist/_chunks/Builder.view-element.mjs +3284 -0
  3. package/dist/_chunks/LikeC4Model.d.mts +1287 -0
  4. package/dist/_chunks/LikeC4Styles.mjs +691 -0
  5. package/dist/_chunks/RichText.d.mts +84 -0
  6. package/dist/_chunks/RichText.mjs +148 -0
  7. package/dist/_chunks/_aux.d.mts +289 -0
  8. package/dist/_chunks/_aux.mjs +18 -0
  9. package/dist/_chunks/_types.d.mts +781 -0
  10. package/dist/_chunks/_types2.d.mts +38 -0
  11. package/dist/_chunks/assignTagColors.mjs +24 -0
  12. package/dist/_chunks/calcDriftsFromSnapshot.mjs +379 -0
  13. package/dist/_chunks/connection.mjs +0 -0
  14. package/dist/_chunks/const.d.mts +43 -0
  15. package/dist/_chunks/const.mjs +33 -0
  16. package/dist/_chunks/expression-model.d.mts +192 -0
  17. package/dist/_chunks/expression-model.mjs +103 -0
  18. package/dist/_chunks/expression.d.mts +347 -0
  19. package/dist/_chunks/expression.mjs +107 -0
  20. package/dist/_chunks/find.d.mts +82 -0
  21. package/dist/_chunks/find.mjs +646 -0
  22. package/dist/_chunks/find2.d.mts +78 -0
  23. package/dist/_chunks/find2.mjs +287 -0
  24. package/dist/_chunks/fqnRef.d.mts +58 -0
  25. package/dist/_chunks/fqnRef.mjs +41 -0
  26. package/dist/_chunks/geometry.mjs +335 -0
  27. package/dist/_chunks/index.d.mts +169 -0
  28. package/dist/_chunks/index2.d.mts +937 -0
  29. package/dist/_chunks/index3.d.mts +146 -0
  30. package/dist/_chunks/index4.d.mts +62 -0
  31. package/dist/_chunks/index5.d.mts +42 -0
  32. package/dist/_chunks/index6.d.mts +43 -0
  33. package/dist/{shared/core.OtRNdMxy.d.mts → _chunks/index7.d.mts} +113 -197
  34. package/dist/_chunks/index8.d.mts +144 -0
  35. package/dist/_chunks/invariant.mjs +18 -0
  36. package/dist/_chunks/iterable.mjs +146 -0
  37. package/dist/_chunks/libs/@mantine/colors-generator.mjs +3416 -0
  38. package/dist/_chunks/libs/@ungap/structured-clone.mjs +213 -0
  39. package/dist/_chunks/libs/bail.mjs +14 -0
  40. package/dist/_chunks/libs/ccount.mjs +25 -0
  41. package/dist/_chunks/libs/character-entities-html4.mjs +263 -0
  42. package/dist/_chunks/libs/character-entities-legacy.mjs +117 -0
  43. package/dist/_chunks/libs/character-entities.mjs +2136 -0
  44. package/dist/_chunks/libs/comma-separated-tokens.mjs +18 -0
  45. package/dist/_chunks/libs/decode-named-character-reference.mjs +21 -0
  46. package/dist/_chunks/libs/defu.mjs +42 -0
  47. package/dist/_chunks/libs/devlop.mjs +5 -0
  48. package/dist/_chunks/libs/escape-string-regexp.mjs +8 -0
  49. package/dist/_chunks/libs/extend.mjs +77 -0
  50. package/dist/_chunks/libs/graphology-dag.mjs +703 -0
  51. package/dist/_chunks/libs/graphology-types.d.mts +601 -0
  52. package/dist/_chunks/libs/graphology.d.mts +6 -0
  53. package/dist/_chunks/libs/graphology.mjs +4565 -0
  54. package/dist/_chunks/libs/hast-util-sanitize.mjs +863 -0
  55. package/dist/_chunks/libs/hast-util-to-html.mjs +2696 -0
  56. package/dist/_chunks/libs/is-plain-obj.mjs +9 -0
  57. package/dist/_chunks/libs/longest-streak.mjs +30 -0
  58. package/dist/_chunks/libs/markdown-table.mjs +290 -0
  59. package/dist/_chunks/libs/mdast-util-find-and-replace.mjs +653 -0
  60. package/dist/_chunks/libs/mdast-util-from-markdown.mjs +8522 -0
  61. package/dist/_chunks/libs/mdast-util-gfm.mjs +2393 -0
  62. package/dist/_chunks/libs/mdast-util-to-hast.mjs +1803 -0
  63. package/dist/_chunks/libs/micromark-extension-gfm.mjs +2243 -0
  64. package/dist/_chunks/libs/mnemonist.d.mts +254 -0
  65. package/dist/_chunks/libs/mnemonist.mjs +1978 -0
  66. package/dist/_chunks/libs/natural-compare-lite.mjs +42 -0
  67. package/dist/_chunks/libs/rehype-sanitize.mjs +29 -0
  68. package/dist/_chunks/libs/rehype-stringify.mjs +34 -0
  69. package/dist/_chunks/libs/remark-gfm.mjs +36 -0
  70. package/dist/_chunks/libs/remark-github-blockquote-alert.mjs +100 -0
  71. package/dist/_chunks/libs/remark-parse.mjs +39 -0
  72. package/dist/_chunks/libs/remark-rehype.mjs +171 -0
  73. package/dist/_chunks/libs/remeda.mjs +702 -0
  74. package/dist/_chunks/libs/trough.mjs +158 -0
  75. package/dist/_chunks/libs/unified.mjs +2212 -0
  76. package/dist/_chunks/mnemonist.d.mts +1 -0
  77. package/dist/_chunks/mnemonist.mjs +0 -0
  78. package/dist/_chunks/model.mjs +1898 -0
  79. package/dist/_chunks/model2.mjs +0 -0
  80. package/dist/_chunks/relationships-view.mjs +132 -0
  81. package/dist/_chunks/rolldown-runtime.mjs +42 -0
  82. package/dist/{shared/core.C_3y3eqV.d.mts → _chunks/scalar.d.mts} +13 -43
  83. package/dist/_chunks/scalar.mjs +84 -0
  84. package/dist/_chunks/utils.mjs +483 -0
  85. package/dist/builder/index.d.mts +11 -775
  86. package/dist/builder/index.mjs +631 -1022
  87. package/dist/compute-view/index.d.mts +85 -56
  88. package/dist/compute-view/index.mjs +247 -214
  89. package/dist/compute-view/relationships-view/index.d.mts +16 -51
  90. package/dist/compute-view/relationships-view/index.mjs +6 -184
  91. package/dist/geometry/index.d.mts +2 -109
  92. package/dist/geometry/index.mjs +2 -327
  93. package/dist/index.d.mts +18 -20
  94. package/dist/index.mjs +27 -18
  95. package/dist/model/connection/deployment/index.d.mts +12 -15
  96. package/dist/model/connection/deployment/index.mjs +9 -2
  97. package/dist/model/connection/index.d.mts +14 -75
  98. package/dist/model/connection/index.mjs +10 -3
  99. package/dist/model/connection/model/index.d.mts +12 -15
  100. package/dist/model/connection/model/index.mjs +8 -2
  101. package/dist/model/index.d.mts +15 -57
  102. package/dist/model/index.mjs +11 -4
  103. package/dist/styles/index.d.mts +9 -117
  104. package/dist/styles/index.mjs +26 -59
  105. package/dist/types/RichText.d.mts +3 -0
  106. package/dist/types/RichText.mjs +7 -0
  107. package/dist/types/_aux.d.mts +3 -4
  108. package/dist/types/_aux.mjs +2 -7
  109. package/dist/types/expression-model.d.mts +6 -190
  110. package/dist/types/expression-model.mjs +6 -108
  111. package/dist/types/expression.d.mts +5 -6
  112. package/dist/types/expression.mjs +6 -112
  113. package/dist/types/fqnRef.d.mts +4 -60
  114. package/dist/types/fqnRef.mjs +6 -44
  115. package/dist/types/index.d.mts +9 -47
  116. package/dist/types/index.mjs +14 -16
  117. package/dist/types/scalar.d.mts +2 -2
  118. package/dist/types/scalar.mjs +7 -4
  119. package/dist/utils/graphology/index.d.mts +2 -1864
  120. package/dist/utils/graphology/index.mjs +3 -1
  121. package/dist/utils/index.d.mts +11 -124
  122. package/dist/utils/index.mjs +16 -43
  123. package/dist/utils/iterable/index.d.mts +9 -132
  124. package/dist/utils/iterable/index.mjs +2 -61
  125. package/dist/utils/mnemonist.d.mts +2 -0
  126. package/dist/utils/mnemonist.mjs +12 -0
  127. package/package.json +17 -22
  128. package/compute-view/relationships/package.json +0 -4
  129. package/dist/shared/core.3ZhnKAlZ.mjs +0 -106
  130. package/dist/shared/core.78IWAHAE.mjs +0 -332
  131. package/dist/shared/core.B85MJLTf.mjs +0 -5
  132. package/dist/shared/core.BFd1lU9R.mjs +0 -29
  133. package/dist/shared/core.BKlholso.mjs +0 -3
  134. package/dist/shared/core.BNN-3vPH.mjs +0 -1255
  135. package/dist/shared/core.BPGOjone.d.mts +0 -46
  136. package/dist/shared/core.BP_QHEXs.mjs +0 -785
  137. package/dist/shared/core.BbE4y-yl.mjs +0 -177
  138. package/dist/shared/core.Bdy3hhTc.mjs +0 -28382
  139. package/dist/shared/core.BfCKSW-g.d.mts +0 -1266
  140. package/dist/shared/core.BhNcrwzK.mjs +0 -7
  141. package/dist/shared/core.BkVA6gjl.mjs +0 -5
  142. package/dist/shared/core.BoYfZOBm.mjs +0 -3
  143. package/dist/shared/core.BsSXS-_R.mjs +0 -7
  144. package/dist/shared/core.C3JowhaZ.mjs +0 -32
  145. package/dist/shared/core.C4x8aaWa.mjs +0 -27
  146. package/dist/shared/core.CAgYpDtM.d.mts +0 -98
  147. package/dist/shared/core.CHf8VEa3.mjs +0 -1206
  148. package/dist/shared/core.CLSZtnFh.mjs +0 -69
  149. package/dist/shared/core.CbT8JVYL.mjs +0 -5
  150. package/dist/shared/core.CdNCAwq7.mjs +0 -176
  151. package/dist/shared/core.CmGY9blO.mjs +0 -6717
  152. package/dist/shared/core.CmPXpJ8l.mjs +0 -21
  153. package/dist/shared/core.Coi_LOUZ.mjs +0 -7
  154. package/dist/shared/core.CqAJJpK_.mjs +0 -3
  155. package/dist/shared/core.CywrQs86.d.mts +0 -31
  156. package/dist/shared/core.D00YbOhQ.d.mts +0 -300
  157. package/dist/shared/core.D0WZutNd.mjs +0 -94
  158. package/dist/shared/core.D4npX2q8.mjs +0 -18
  159. package/dist/shared/core.DB0Ue5Wx.d.mts +0 -70
  160. package/dist/shared/core.DC5IAaDT.d.mts +0 -334
  161. package/dist/shared/core.DE9qzhn8.d.mts +0 -83
  162. package/dist/shared/core.DGcIbsj4.mjs +0 -3946
  163. package/dist/shared/core.DH7TXqXf.mjs +0 -136
  164. package/dist/shared/core.DKhRkHRN.d.mts +0 -41
  165. package/dist/shared/core.DRJma0Ol.mjs +0 -22
  166. package/dist/shared/core.DU5SRqNF.mjs +0 -2209
  167. package/dist/shared/core.DXhDWKFZ.d.mts +0 -3
  168. package/dist/shared/core.DbfO90vF.mjs +0 -434
  169. package/dist/shared/core.DcS-0zys.mjs +0 -10
  170. package/dist/shared/core.Dh119QSP.mjs +0 -4995
  171. package/dist/shared/core.DjcWextK.mjs +0 -1371
  172. package/dist/shared/core.Dojz4bvg.d.mts +0 -504
  173. package/dist/shared/core.FZ305VYd.mjs +0 -21
  174. package/dist/shared/core.RfnaEmgA.mjs +0 -7
  175. package/dist/shared/core.btEq3i3f.mjs +0 -300
  176. package/dist/shared/core.oSV6SRfk.mjs +0 -13
  177. package/dist/shared/core.om36dXXW.mjs +0 -41
  178. package/dist/shared/core.osFs8tU7.d.mts +0 -466
  179. package/dist/shared/core.q10OP9oJ.mjs +0 -5
  180. package/dist/shared/core.tpvDGvdC.d.mts +0 -87
  181. package/dist/shared/core.uFk_o9X6.mjs +0 -13
@@ -0,0 +1,702 @@
1
+ //#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/lazyDataLastImpl-BDhrIOwR.js
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 };