@kvell-group/ui 1.4.2

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/main.js ADDED
@@ -0,0 +1,2429 @@
1
+ import { jsx as p, jsxs as z, Fragment as pr } from "react/jsx-runtime";
2
+ import { useState as tr, useRef as H, useEffect as A, useLayoutEffect as Ht, createContext as Dr, useContext as $r, useMemo as zt, useCallback as Lr, useId as Yt, forwardRef as P } from "react";
3
+ import Gt from "react-dom";
4
+ import './assets/main.css';function M(r) {
5
+ return Object.keys(r);
6
+ }
7
+ function ir(r) {
8
+ return r && typeof r == "object" && !Array.isArray(r);
9
+ }
10
+ function vr(r, t) {
11
+ const e = { ...r }, n = t;
12
+ return ir(r) && ir(t) && Object.keys(t).forEach((a) => {
13
+ ir(n[a]) && a in r ? e[a] = vr(e[a], n[a]) : e[a] = n[a];
14
+ }), e;
15
+ }
16
+ function Dt(r) {
17
+ return r.replace(/[A-Z]/g, (t) => `-${t.toLowerCase()}`);
18
+ }
19
+ function Xt(r) {
20
+ var t;
21
+ return typeof r != "string" || !r.includes("var(--mantine-scale)") ? r : (t = r.match(/^calc\((.*?)\)$/)) == null ? void 0 : t[1].split("*")[0].trim();
22
+ }
23
+ function Ut(r) {
24
+ const t = Xt(r);
25
+ return typeof t == "number" ? t : typeof t == "string" ? t.includes("calc") || t.includes("var") ? t : t.includes("px") ? Number(t.replace("px", "")) : t.includes("rem") ? Number(t.replace("rem", "")) * 16 : t.includes("em") ? Number(t.replace("em", "")) * 16 : Number(t) : NaN;
26
+ }
27
+ function sr(r) {
28
+ return r === "0rem" ? "0rem" : `calc(${r} * var(--mantine-scale))`;
29
+ }
30
+ function Xr(r, { shouldScale: t = !1 } = {}) {
31
+ function e(n) {
32
+ if (n === 0 || n === "0")
33
+ return `0${r}`;
34
+ if (typeof n == "number") {
35
+ const a = `${n / 16}${r}`;
36
+ return t ? sr(a) : a;
37
+ }
38
+ if (typeof n == "string") {
39
+ if (n === "" || n.startsWith("calc(") || n.startsWith("clamp(") || n.includes("rgba("))
40
+ return n;
41
+ if (n.includes(","))
42
+ return n.split(",").map((o) => e(o)).join(",");
43
+ if (n.includes(" "))
44
+ return n.split(" ").map((o) => e(o)).join(" ");
45
+ if (n.includes(r))
46
+ return t ? sr(n) : n;
47
+ const a = n.replace("px", "");
48
+ if (!Number.isNaN(Number(a))) {
49
+ const o = `${Number(a) / 16}${r}`;
50
+ return t ? sr(o) : o;
51
+ }
52
+ }
53
+ return n;
54
+ }
55
+ return e;
56
+ }
57
+ const c = Xr("rem", { shouldScale: !0 }), Er = Xr("em");
58
+ function Sr(r) {
59
+ return Object.keys(r).reduce((t, e) => (r[e] !== void 0 && (t[e] = r[e]), t), {});
60
+ }
61
+ function Ur(r) {
62
+ if (typeof r == "number")
63
+ return !0;
64
+ if (typeof r == "string") {
65
+ if (r.startsWith("calc(") || r.startsWith("var(") || r.includes(" ") && r.trim() !== "")
66
+ return !0;
67
+ const t = /^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;
68
+ return r.trim().split(/\s+/).every((n) => t.test(n));
69
+ }
70
+ return !1;
71
+ }
72
+ function O(r, t = "size", e = !0) {
73
+ if (r !== void 0)
74
+ return Ur(r) ? e ? c(r) : r : `var(--${t}-${r})`;
75
+ }
76
+ function qr(r) {
77
+ return r === void 0 ? "var(--mantine-radius-default)" : O(r, "mantine-radius");
78
+ }
79
+ function nr(r) {
80
+ return O(r, "mantine-font-size");
81
+ }
82
+ function qt(r, t) {
83
+ try {
84
+ return r.addEventListener("change", t), () => r.removeEventListener("change", t);
85
+ } catch {
86
+ return r.addListener(t), () => r.removeListener(t);
87
+ }
88
+ }
89
+ function Qt(r, t) {
90
+ return typeof window < "u" && "matchMedia" in window ? window.matchMedia(r).matches : !1;
91
+ }
92
+ function Kt(r, t, { getInitialValueInEffect: e } = {
93
+ getInitialValueInEffect: !0
94
+ }) {
95
+ const [n, a] = tr(
96
+ e ? t : Qt(r)
97
+ ), o = H(null);
98
+ return A(() => {
99
+ if ("matchMedia" in window)
100
+ return o.current = window.matchMedia(r), a(o.current.matches), qt(o.current, (i) => a(i.matches));
101
+ }, [r]), n;
102
+ }
103
+ const Qr = typeof document < "u" ? Ht : A;
104
+ function Zt(r, t) {
105
+ const e = H(!1);
106
+ A(
107
+ () => () => {
108
+ e.current = !1;
109
+ },
110
+ []
111
+ ), A(() => {
112
+ if (e.current)
113
+ return r();
114
+ e.current = !0;
115
+ }, t);
116
+ }
117
+ function Jt(r, t) {
118
+ return Kt("(prefers-reduced-motion: reduce)", r, t);
119
+ }
120
+ function Kr(r) {
121
+ var t, e, n = "";
122
+ if (typeof r == "string" || typeof r == "number") n += r;
123
+ else if (typeof r == "object") if (Array.isArray(r)) {
124
+ var a = r.length;
125
+ for (t = 0; t < a; t++) r[t] && (e = Kr(r[t])) && (n && (n += " "), n += e);
126
+ } else for (e in r) r[e] && (n && (n += " "), n += e);
127
+ return n;
128
+ }
129
+ function I() {
130
+ for (var r, t, e = 0, n = "", a = arguments.length; e < a; e++) (r = arguments[e]) && (t = Kr(r)) && (n && (n += " "), n += t);
131
+ return n;
132
+ }
133
+ const rn = {};
134
+ function tn(r) {
135
+ const t = {};
136
+ return r.forEach((e) => {
137
+ Object.entries(e).forEach(([n, a]) => {
138
+ t[n] ? t[n] = I(t[n], a) : t[n] = a;
139
+ });
140
+ }), t;
141
+ }
142
+ function wr({ theme: r, classNames: t, props: e, stylesCtx: n }) {
143
+ const o = (Array.isArray(t) ? t : [t]).map(
144
+ (i) => typeof i == "function" ? i(r, e, n) : i || rn
145
+ );
146
+ return tn(o);
147
+ }
148
+ function yr({ theme: r, styles: t, props: e, stylesCtx: n }) {
149
+ return (Array.isArray(t) ? t : [t]).reduce((o, i) => typeof i == "function" ? { ...o, ...i(r, e, n) } : { ...o, ...i }, {});
150
+ }
151
+ const Zr = Dr(null);
152
+ function _() {
153
+ const r = $r(Zr);
154
+ if (!r)
155
+ throw new Error("[@mantine/core] MantineProvider was not found in tree");
156
+ return r;
157
+ }
158
+ function nn() {
159
+ return _().cssVariablesResolver;
160
+ }
161
+ function en() {
162
+ return _().classNamesPrefix;
163
+ }
164
+ function Cr() {
165
+ return _().getStyleNonce;
166
+ }
167
+ function on() {
168
+ return _().withStaticClasses;
169
+ }
170
+ function an() {
171
+ return _().headless;
172
+ }
173
+ function sn() {
174
+ var r;
175
+ return (r = _().stylesTransform) == null ? void 0 : r.sx;
176
+ }
177
+ function cn() {
178
+ var r;
179
+ return (r = _().stylesTransform) == null ? void 0 : r.styles;
180
+ }
181
+ function ln() {
182
+ return _().env || "default";
183
+ }
184
+ function fn(r) {
185
+ return /^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(r);
186
+ }
187
+ function dn(r) {
188
+ let t = r.replace("#", "");
189
+ if (t.length === 3) {
190
+ const i = t.split("");
191
+ t = [
192
+ i[0],
193
+ i[0],
194
+ i[1],
195
+ i[1],
196
+ i[2],
197
+ i[2]
198
+ ].join("");
199
+ }
200
+ if (t.length === 8) {
201
+ const i = parseInt(t.slice(6, 8), 16) / 255;
202
+ return {
203
+ r: parseInt(t.slice(0, 2), 16),
204
+ g: parseInt(t.slice(2, 4), 16),
205
+ b: parseInt(t.slice(4, 6), 16),
206
+ a: i
207
+ };
208
+ }
209
+ const e = parseInt(t, 16), n = e >> 16 & 255, a = e >> 8 & 255, o = e & 255;
210
+ return {
211
+ r: n,
212
+ g: a,
213
+ b: o,
214
+ a: 1
215
+ };
216
+ }
217
+ function un(r) {
218
+ const [t, e, n, a] = r.replace(/[^0-9,./]/g, "").split(/[/,]/).map(Number);
219
+ return { r: t, g: e, b: n, a: a || 1 };
220
+ }
221
+ function mn(r) {
222
+ const t = /^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i, e = r.match(t);
223
+ if (!e)
224
+ return {
225
+ r: 0,
226
+ g: 0,
227
+ b: 0,
228
+ a: 1
229
+ };
230
+ const n = parseInt(e[1], 10), a = parseInt(e[2], 10) / 100, o = parseInt(e[3], 10) / 100, i = e[5] ? parseFloat(e[5]) : void 0, s = (1 - Math.abs(2 * o - 1)) * a, l = n / 60, f = s * (1 - Math.abs(l % 2 - 1)), u = o - s / 2;
231
+ let d, m, y;
232
+ return l >= 0 && l < 1 ? (d = s, m = f, y = 0) : l >= 1 && l < 2 ? (d = f, m = s, y = 0) : l >= 2 && l < 3 ? (d = 0, m = s, y = f) : l >= 3 && l < 4 ? (d = 0, m = f, y = s) : l >= 4 && l < 5 ? (d = f, m = 0, y = s) : (d = s, m = 0, y = f), {
233
+ r: Math.round((d + u) * 255),
234
+ g: Math.round((m + u) * 255),
235
+ b: Math.round((y + u) * 255),
236
+ a: i || 1
237
+ };
238
+ }
239
+ function xr(r) {
240
+ return fn(r) ? dn(r) : r.startsWith("rgb") ? un(r) : r.startsWith("hsl") ? mn(r) : {
241
+ r: 0,
242
+ g: 0,
243
+ b: 0,
244
+ a: 1
245
+ };
246
+ }
247
+ function Z(r, t) {
248
+ if (r.startsWith("var("))
249
+ return `color-mix(in srgb, ${r}, black ${t * 100}%)`;
250
+ const { r: e, g: n, b: a, a: o } = xr(r), i = 1 - t, s = (l) => Math.round(l * i);
251
+ return `rgba(${s(e)}, ${s(n)}, ${s(a)}, ${o})`;
252
+ }
253
+ function U(r, t) {
254
+ return typeof r.primaryShade == "number" ? r.primaryShade : t === "dark" ? r.primaryShade.dark : r.primaryShade.light;
255
+ }
256
+ function cr(r) {
257
+ return r <= 0.03928 ? r / 12.92 : ((r + 0.055) / 1.055) ** 2.4;
258
+ }
259
+ function pn(r) {
260
+ const t = r.match(/oklch\((.*?)%\s/);
261
+ return t ? parseFloat(t[1]) : null;
262
+ }
263
+ function yn(r) {
264
+ if (r.startsWith("oklch("))
265
+ return (pn(r) || 0) / 100;
266
+ const { r: t, g: e, b: n } = xr(r), a = t / 255, o = e / 255, i = n / 255, s = cr(a), l = cr(o), f = cr(i);
267
+ return 0.2126 * s + 0.7152 * l + 0.0722 * f;
268
+ }
269
+ function G(r, t = 0.179) {
270
+ return r.startsWith("var(") ? !1 : yn(r) > t;
271
+ }
272
+ function q({
273
+ color: r,
274
+ theme: t,
275
+ colorScheme: e
276
+ }) {
277
+ if (typeof r != "string")
278
+ throw new Error(
279
+ `[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof r}`
280
+ );
281
+ if (r === "bright")
282
+ return {
283
+ color: r,
284
+ value: e === "dark" ? t.white : t.black,
285
+ shade: void 0,
286
+ isThemeColor: !1,
287
+ isLight: G(
288
+ e === "dark" ? t.white : t.black,
289
+ t.luminanceThreshold
290
+ ),
291
+ variable: "--mantine-color-bright"
292
+ };
293
+ if (r === "dimmed")
294
+ return {
295
+ color: r,
296
+ value: e === "dark" ? t.colors.dark[2] : t.colors.gray[7],
297
+ shade: void 0,
298
+ isThemeColor: !1,
299
+ isLight: G(
300
+ e === "dark" ? t.colors.dark[2] : t.colors.gray[6],
301
+ t.luminanceThreshold
302
+ ),
303
+ variable: "--mantine-color-dimmed"
304
+ };
305
+ if (r === "white" || r === "black")
306
+ return {
307
+ color: r,
308
+ value: r === "white" ? t.white : t.black,
309
+ shade: void 0,
310
+ isThemeColor: !1,
311
+ isLight: G(
312
+ r === "white" ? t.white : t.black,
313
+ t.luminanceThreshold
314
+ ),
315
+ variable: `--mantine-color-${r}`
316
+ };
317
+ const [n, a] = r.split("."), o = a ? Number(a) : void 0, i = n in t.colors;
318
+ if (i) {
319
+ const s = o !== void 0 ? t.colors[n][o] : t.colors[n][U(t, e || "light")];
320
+ return {
321
+ color: n,
322
+ value: s,
323
+ shade: o,
324
+ isThemeColor: i,
325
+ isLight: G(s, t.luminanceThreshold),
326
+ variable: a ? `--mantine-color-${n}-${o}` : `--mantine-color-${n}-filled`
327
+ };
328
+ }
329
+ return {
330
+ color: r,
331
+ value: r,
332
+ isThemeColor: i,
333
+ isLight: G(r, t.luminanceThreshold),
334
+ shade: o,
335
+ variable: void 0
336
+ };
337
+ }
338
+ function gr(r, t) {
339
+ const e = q({ color: r || t.primaryColor, theme: t });
340
+ return e.variable ? `var(${e.variable})` : r;
341
+ }
342
+ function Ar(r, t) {
343
+ const e = {
344
+ from: (r == null ? void 0 : r.from) || t.defaultGradient.from,
345
+ to: (r == null ? void 0 : r.to) || t.defaultGradient.to,
346
+ deg: (r == null ? void 0 : r.deg) ?? t.defaultGradient.deg ?? 0
347
+ }, n = gr(e.from, t), a = gr(e.to, t);
348
+ return `linear-gradient(${e.deg}deg, ${n} 0%, ${a} 100%)`;
349
+ }
350
+ function R(r, t) {
351
+ if (typeof r != "string" || t > 1 || t < 0)
352
+ return "rgba(0, 0, 0, 1)";
353
+ if (r.startsWith("var(")) {
354
+ const o = (1 - t) * 100;
355
+ return `color-mix(in srgb, ${r}, transparent ${o}%)`;
356
+ }
357
+ if (r.startsWith("oklch"))
358
+ return r.includes("/") ? r.replace(/\/\s*[\d.]+\s*\)/, `/ ${t})`) : r.replace(")", ` / ${t})`);
359
+ const { r: e, g: n, b: a } = xr(r);
360
+ return `rgba(${e}, ${n}, ${a}, ${t})`;
361
+ }
362
+ const j = R, gn = ({
363
+ color: r,
364
+ theme: t,
365
+ variant: e,
366
+ gradient: n,
367
+ autoContrast: a
368
+ }) => {
369
+ const o = q({ color: r, theme: t }), i = typeof a == "boolean" ? a : t.autoContrast;
370
+ if (e === "filled") {
371
+ const s = i && o.isLight ? "var(--mantine-color-black)" : "var(--mantine-color-white)";
372
+ return o.isThemeColor ? o.shade === void 0 ? {
373
+ background: `var(--mantine-color-${r}-filled)`,
374
+ hover: `var(--mantine-color-${r}-filled-hover)`,
375
+ color: s,
376
+ border: `${c(1)} solid transparent`
377
+ } : {
378
+ background: `var(--mantine-color-${o.color}-${o.shade})`,
379
+ hover: `var(--mantine-color-${o.color}-${o.shade === 9 ? 8 : o.shade + 1})`,
380
+ color: s,
381
+ border: `${c(1)} solid transparent`
382
+ } : {
383
+ background: r,
384
+ hover: Z(r, 0.1),
385
+ color: s,
386
+ border: `${c(1)} solid transparent`
387
+ };
388
+ }
389
+ if (e === "light") {
390
+ if (o.isThemeColor) {
391
+ if (o.shade === void 0)
392
+ return {
393
+ background: `var(--mantine-color-${r}-light)`,
394
+ hover: `var(--mantine-color-${r}-light-hover)`,
395
+ color: `var(--mantine-color-${r}-light-color)`,
396
+ border: `${c(1)} solid transparent`
397
+ };
398
+ const s = t.colors[o.color][o.shade];
399
+ return {
400
+ background: R(s, 0.1),
401
+ hover: R(s, 0.12),
402
+ color: `var(--mantine-color-${o.color}-${Math.min(o.shade, 6)})`,
403
+ border: `${c(1)} solid transparent`
404
+ };
405
+ }
406
+ return {
407
+ background: R(r, 0.1),
408
+ hover: R(r, 0.12),
409
+ color: r,
410
+ border: `${c(1)} solid transparent`
411
+ };
412
+ }
413
+ if (e === "outline")
414
+ return o.isThemeColor ? o.shade === void 0 ? {
415
+ background: "transparent",
416
+ hover: `var(--mantine-color-${r}-outline-hover)`,
417
+ color: `var(--mantine-color-${r}-outline)`,
418
+ border: `${c(1)} solid var(--mantine-color-${r}-outline)`
419
+ } : {
420
+ background: "transparent",
421
+ hover: R(t.colors[o.color][o.shade], 0.05),
422
+ color: `var(--mantine-color-${o.color}-${o.shade})`,
423
+ border: `${c(1)} solid var(--mantine-color-${o.color}-${o.shade})`
424
+ } : {
425
+ background: "transparent",
426
+ hover: R(r, 0.05),
427
+ color: r,
428
+ border: `${c(1)} solid ${r}`
429
+ };
430
+ if (e === "subtle") {
431
+ if (o.isThemeColor) {
432
+ if (o.shade === void 0)
433
+ return {
434
+ background: "transparent",
435
+ hover: `var(--mantine-color-${r}-light-hover)`,
436
+ color: `var(--mantine-color-${r}-light-color)`,
437
+ border: `${c(1)} solid transparent`
438
+ };
439
+ const s = t.colors[o.color][o.shade];
440
+ return {
441
+ background: "transparent",
442
+ hover: R(s, 0.12),
443
+ color: `var(--mantine-color-${o.color}-${Math.min(o.shade, 6)})`,
444
+ border: `${c(1)} solid transparent`
445
+ };
446
+ }
447
+ return {
448
+ background: "transparent",
449
+ hover: R(r, 0.12),
450
+ color: r,
451
+ border: `${c(1)} solid transparent`
452
+ };
453
+ }
454
+ return e === "transparent" ? o.isThemeColor ? o.shade === void 0 ? {
455
+ background: "transparent",
456
+ hover: "transparent",
457
+ color: `var(--mantine-color-${r}-light-color)`,
458
+ border: `${c(1)} solid transparent`
459
+ } : {
460
+ background: "transparent",
461
+ hover: "transparent",
462
+ color: `var(--mantine-color-${o.color}-${Math.min(o.shade, 6)})`,
463
+ border: `${c(1)} solid transparent`
464
+ } : {
465
+ background: "transparent",
466
+ hover: "transparent",
467
+ color: r,
468
+ border: `${c(1)} solid transparent`
469
+ } : e === "white" ? o.isThemeColor ? o.shade === void 0 ? {
470
+ background: "var(--mantine-color-white)",
471
+ hover: Z(t.white, 0.01),
472
+ color: `var(--mantine-color-${r}-filled)`,
473
+ border: `${c(1)} solid transparent`
474
+ } : {
475
+ background: "var(--mantine-color-white)",
476
+ hover: Z(t.white, 0.01),
477
+ color: `var(--mantine-color-${o.color}-${o.shade})`,
478
+ border: `${c(1)} solid transparent`
479
+ } : {
480
+ background: "var(--mantine-color-white)",
481
+ hover: Z(t.white, 0.01),
482
+ color: r,
483
+ border: `${c(1)} solid transparent`
484
+ } : e === "gradient" ? {
485
+ background: Ar(n, t),
486
+ hover: Ar(n, t),
487
+ color: "var(--mantine-color-white)",
488
+ border: "none"
489
+ } : e === "default" ? {
490
+ background: "var(--mantine-color-default)",
491
+ hover: "var(--mantine-color-default-hover)",
492
+ color: "var(--mantine-color-default-color)",
493
+ border: `${c(1)} solid var(--mantine-color-default-border)`
494
+ } : {};
495
+ }, bn = {
496
+ dark: [
497
+ "#C9C9C9",
498
+ "#b8b8b8",
499
+ "#828282",
500
+ "#696969",
501
+ "#424242",
502
+ "#3b3b3b",
503
+ "#2e2e2e",
504
+ "#242424",
505
+ "#1f1f1f",
506
+ "#141414"
507
+ ],
508
+ gray: [
509
+ "#f8f9fa",
510
+ "#f1f3f5",
511
+ "#e9ecef",
512
+ "#dee2e6",
513
+ "#ced4da",
514
+ "#adb5bd",
515
+ "#868e96",
516
+ "#495057",
517
+ "#343a40",
518
+ "#212529"
519
+ ],
520
+ red: [
521
+ "#fff5f5",
522
+ "#ffe3e3",
523
+ "#ffc9c9",
524
+ "#ffa8a8",
525
+ "#ff8787",
526
+ "#ff6b6b",
527
+ "#fa5252",
528
+ "#f03e3e",
529
+ "#e03131",
530
+ "#c92a2a"
531
+ ],
532
+ pink: [
533
+ "#fff0f6",
534
+ "#ffdeeb",
535
+ "#fcc2d7",
536
+ "#faa2c1",
537
+ "#f783ac",
538
+ "#f06595",
539
+ "#e64980",
540
+ "#d6336c",
541
+ "#c2255c",
542
+ "#a61e4d"
543
+ ],
544
+ grape: [
545
+ "#f8f0fc",
546
+ "#f3d9fa",
547
+ "#eebefa",
548
+ "#e599f7",
549
+ "#da77f2",
550
+ "#cc5de8",
551
+ "#be4bdb",
552
+ "#ae3ec9",
553
+ "#9c36b5",
554
+ "#862e9c"
555
+ ],
556
+ violet: [
557
+ "#f3f0ff",
558
+ "#e5dbff",
559
+ "#d0bfff",
560
+ "#b197fc",
561
+ "#9775fa",
562
+ "#845ef7",
563
+ "#7950f2",
564
+ "#7048e8",
565
+ "#6741d9",
566
+ "#5f3dc4"
567
+ ],
568
+ indigo: [
569
+ "#edf2ff",
570
+ "#dbe4ff",
571
+ "#bac8ff",
572
+ "#91a7ff",
573
+ "#748ffc",
574
+ "#5c7cfa",
575
+ "#4c6ef5",
576
+ "#4263eb",
577
+ "#3b5bdb",
578
+ "#364fc7"
579
+ ],
580
+ blue: [
581
+ "#e7f5ff",
582
+ "#d0ebff",
583
+ "#a5d8ff",
584
+ "#74c0fc",
585
+ "#4dabf7",
586
+ "#339af0",
587
+ "#228be6",
588
+ "#1c7ed6",
589
+ "#1971c2",
590
+ "#1864ab"
591
+ ],
592
+ cyan: [
593
+ "#e3fafc",
594
+ "#c5f6fa",
595
+ "#99e9f2",
596
+ "#66d9e8",
597
+ "#3bc9db",
598
+ "#22b8cf",
599
+ "#15aabf",
600
+ "#1098ad",
601
+ "#0c8599",
602
+ "#0b7285"
603
+ ],
604
+ teal: [
605
+ "#e6fcf5",
606
+ "#c3fae8",
607
+ "#96f2d7",
608
+ "#63e6be",
609
+ "#38d9a9",
610
+ "#20c997",
611
+ "#12b886",
612
+ "#0ca678",
613
+ "#099268",
614
+ "#087f5b"
615
+ ],
616
+ green: [
617
+ "#ebfbee",
618
+ "#d3f9d8",
619
+ "#b2f2bb",
620
+ "#8ce99a",
621
+ "#69db7c",
622
+ "#51cf66",
623
+ "#40c057",
624
+ "#37b24d",
625
+ "#2f9e44",
626
+ "#2b8a3e"
627
+ ],
628
+ lime: [
629
+ "#f4fce3",
630
+ "#e9fac8",
631
+ "#d8f5a2",
632
+ "#c0eb75",
633
+ "#a9e34b",
634
+ "#94d82d",
635
+ "#82c91e",
636
+ "#74b816",
637
+ "#66a80f",
638
+ "#5c940d"
639
+ ],
640
+ yellow: [
641
+ "#fff9db",
642
+ "#fff3bf",
643
+ "#ffec99",
644
+ "#ffe066",
645
+ "#ffd43b",
646
+ "#fcc419",
647
+ "#fab005",
648
+ "#f59f00",
649
+ "#f08c00",
650
+ "#e67700"
651
+ ],
652
+ orange: [
653
+ "#fff4e6",
654
+ "#ffe8cc",
655
+ "#ffd8a8",
656
+ "#ffc078",
657
+ "#ffa94d",
658
+ "#ff922b",
659
+ "#fd7e14",
660
+ "#f76707",
661
+ "#e8590c",
662
+ "#d9480f"
663
+ ]
664
+ }, Or = "-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji", kr = {
665
+ scale: 1,
666
+ fontSmoothing: !0,
667
+ focusRing: "auto",
668
+ white: "#fff",
669
+ black: "#000",
670
+ colors: bn,
671
+ primaryShade: { light: 6, dark: 8 },
672
+ primaryColor: "blue",
673
+ variantColorResolver: gn,
674
+ autoContrast: !1,
675
+ luminanceThreshold: 0.3,
676
+ fontFamily: Or,
677
+ fontFamilyMonospace: "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",
678
+ respectReducedMotion: !1,
679
+ cursorType: "default",
680
+ defaultGradient: { from: "blue", to: "cyan", deg: 45 },
681
+ defaultRadius: "sm",
682
+ activeClassName: "mantine-active",
683
+ focusClassName: "",
684
+ headings: {
685
+ fontFamily: Or,
686
+ fontWeight: "700",
687
+ textWrap: "wrap",
688
+ sizes: {
689
+ h1: { fontSize: c(34), lineHeight: "1.3" },
690
+ h2: { fontSize: c(26), lineHeight: "1.35" },
691
+ h3: { fontSize: c(22), lineHeight: "1.4" },
692
+ h4: { fontSize: c(18), lineHeight: "1.45" },
693
+ h5: { fontSize: c(16), lineHeight: "1.5" },
694
+ h6: { fontSize: c(14), lineHeight: "1.5" }
695
+ }
696
+ },
697
+ fontSizes: {
698
+ xs: c(12),
699
+ sm: c(14),
700
+ md: c(16),
701
+ lg: c(18),
702
+ xl: c(20)
703
+ },
704
+ lineHeights: {
705
+ xs: "1.4",
706
+ sm: "1.45",
707
+ md: "1.55",
708
+ lg: "1.6",
709
+ xl: "1.65"
710
+ },
711
+ radius: {
712
+ xs: c(2),
713
+ sm: c(4),
714
+ md: c(8),
715
+ lg: c(16),
716
+ xl: c(32)
717
+ },
718
+ spacing: {
719
+ xs: c(10),
720
+ sm: c(12),
721
+ md: c(16),
722
+ lg: c(20),
723
+ xl: c(32)
724
+ },
725
+ breakpoints: {
726
+ xs: "36em",
727
+ sm: "48em",
728
+ md: "62em",
729
+ lg: "75em",
730
+ xl: "88em"
731
+ },
732
+ shadows: {
733
+ xs: `0 ${c(1)} ${c(3)} rgba(0, 0, 0, 0.05), 0 ${c(1)} ${c(2)} rgba(0, 0, 0, 0.1)`,
734
+ sm: `0 ${c(1)} ${c(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${c(10)} ${c(
735
+ 15
736
+ )} ${c(-5)}, rgba(0, 0, 0, 0.04) 0 ${c(7)} ${c(7)} ${c(-5)}`,
737
+ md: `0 ${c(1)} ${c(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${c(20)} ${c(
738
+ 25
739
+ )} ${c(-5)}, rgba(0, 0, 0, 0.04) 0 ${c(10)} ${c(10)} ${c(-5)}`,
740
+ lg: `0 ${c(1)} ${c(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${c(28)} ${c(
741
+ 23
742
+ )} ${c(-7)}, rgba(0, 0, 0, 0.04) 0 ${c(12)} ${c(12)} ${c(-7)}`,
743
+ xl: `0 ${c(1)} ${c(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${c(36)} ${c(
744
+ 28
745
+ )} ${c(-7)}, rgba(0, 0, 0, 0.04) 0 ${c(17)} ${c(17)} ${c(-7)}`
746
+ },
747
+ other: {},
748
+ components: {}
749
+ };
750
+ function Br(r) {
751
+ return r === "auto" || r === "dark" || r === "light";
752
+ }
753
+ function hn({
754
+ key: r = "mantine-color-scheme-value"
755
+ } = {}) {
756
+ let t;
757
+ return {
758
+ get: (e) => {
759
+ if (typeof window > "u")
760
+ return e;
761
+ try {
762
+ const n = window.localStorage.getItem(r);
763
+ return Br(n) ? n : e;
764
+ } catch {
765
+ return e;
766
+ }
767
+ },
768
+ set: (e) => {
769
+ try {
770
+ window.localStorage.setItem(r, e);
771
+ } catch (n) {
772
+ console.warn(
773
+ "[@mantine/core] Local storage color scheme manager was unable to save color scheme.",
774
+ n
775
+ );
776
+ }
777
+ },
778
+ subscribe: (e) => {
779
+ t = (n) => {
780
+ n.storageArea === window.localStorage && n.key === r && Br(n.newValue) && e(n.newValue);
781
+ }, window.addEventListener("storage", t);
782
+ },
783
+ unsubscribe: () => {
784
+ window.removeEventListener("storage", t);
785
+ },
786
+ clear: () => {
787
+ window.localStorage.removeItem(r);
788
+ }
789
+ };
790
+ }
791
+ const $n = "[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color", Ir = "[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";
792
+ function lr(r) {
793
+ return r < 0 || r > 9 ? !1 : parseInt(r.toString(), 10) === r;
794
+ }
795
+ function Vr(r) {
796
+ if (!(r.primaryColor in r.colors))
797
+ throw new Error($n);
798
+ if (typeof r.primaryShade == "object" && (!lr(r.primaryShade.dark) || !lr(r.primaryShade.light)))
799
+ throw new Error(Ir);
800
+ if (typeof r.primaryShade == "number" && !lr(r.primaryShade))
801
+ throw new Error(Ir);
802
+ }
803
+ function vn(r, t) {
804
+ var n;
805
+ if (!t)
806
+ return Vr(r), r;
807
+ const e = vr(r, t);
808
+ return t.fontFamily && !((n = t.headings) != null && n.fontFamily) && (e.headings.fontFamily = t.fontFamily), Vr(e), e;
809
+ }
810
+ const Nr = Dr(null), Sn = () => $r(Nr) || kr;
811
+ function V() {
812
+ const r = $r(Nr);
813
+ if (!r)
814
+ throw new Error(
815
+ "@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app"
816
+ );
817
+ return r;
818
+ }
819
+ function Jr({
820
+ theme: r,
821
+ children: t,
822
+ inherit: e = !0
823
+ }) {
824
+ const n = Sn(), a = zt(
825
+ () => vn(e ? n : kr, r),
826
+ [r, n, e]
827
+ );
828
+ return /* @__PURE__ */ p(Nr.Provider, { value: a, children: t });
829
+ }
830
+ Jr.displayName = "@mantine/core/MantineThemeProvider";
831
+ function wn() {
832
+ const r = V(), t = Cr(), e = M(r.breakpoints).reduce((n, a) => {
833
+ const o = r.breakpoints[a].includes("px"), i = Ut(r.breakpoints[a]), s = o ? `${i - 0.1}px` : Er(i - 0.1), l = o ? `${i}px` : Er(i);
834
+ return `${n}@media (max-width: ${s}) {.mantine-visible-from-${a} {display: none !important;}}@media (min-width: ${l}) {.mantine-hidden-from-${a} {display: none !important;}}`;
835
+ }, "");
836
+ return /* @__PURE__ */ p(
837
+ "style",
838
+ {
839
+ "data-mantine-styles": "classes",
840
+ nonce: t == null ? void 0 : t(),
841
+ dangerouslySetInnerHTML: { __html: e }
842
+ }
843
+ );
844
+ }
845
+ function fr(r) {
846
+ return Object.entries(r).map(([t, e]) => `${t}: ${e};`).join("");
847
+ }
848
+ function D(r, t) {
849
+ return (Array.isArray(r) ? r : [r]).reduce((n, a) => `${a}{${n}}`, t);
850
+ }
851
+ function Cn(r, t) {
852
+ const e = fr(r.variables), n = e ? D(t, e) : "", a = fr(r.dark), o = fr(r.light), i = a ? D(t === ":host" ? `${t}([data-mantine-color-scheme="dark"])` : `${t}[data-mantine-color-scheme="dark"]`, a) : "", s = o ? D(t === ":host" ? `${t}([data-mantine-color-scheme="light"])` : `${t}[data-mantine-color-scheme="light"]`, o) : "";
853
+ return `${n}${i}${s}`;
854
+ }
855
+ function xn({ color: r, theme: t, autoContrast: e }) {
856
+ return t.autoContrast && q({ color: r || t.primaryColor, theme: t }).isLight ? "var(--mantine-color-black)" : "var(--mantine-color-white)";
857
+ }
858
+ function jr(r, t) {
859
+ return xn({
860
+ color: r.colors[r.primaryColor][U(r, t)],
861
+ theme: r,
862
+ autoContrast: null
863
+ });
864
+ }
865
+ function J({
866
+ theme: r,
867
+ color: t,
868
+ colorScheme: e,
869
+ name: n = t,
870
+ withColorValues: a = !0
871
+ }) {
872
+ if (!r.colors[t])
873
+ return {};
874
+ if (e === "light") {
875
+ const s = U(r, "light"), l = {
876
+ [`--mantine-color-${n}-text`]: `var(--mantine-color-${n}-filled)`,
877
+ [`--mantine-color-${n}-filled`]: `var(--mantine-color-${n}-${s})`,
878
+ [`--mantine-color-${n}-filled-hover`]: `var(--mantine-color-${n}-${s === 9 ? 8 : s + 1})`,
879
+ [`--mantine-color-${n}-light`]: j(r.colors[t][s], 0.1),
880
+ [`--mantine-color-${n}-light-hover`]: j(r.colors[t][s], 0.12),
881
+ [`--mantine-color-${n}-light-color`]: `var(--mantine-color-${n}-${s})`,
882
+ [`--mantine-color-${n}-outline`]: `var(--mantine-color-${n}-${s})`,
883
+ [`--mantine-color-${n}-outline-hover`]: j(r.colors[t][s], 0.05)
884
+ };
885
+ return a ? {
886
+ [`--mantine-color-${n}-0`]: r.colors[t][0],
887
+ [`--mantine-color-${n}-1`]: r.colors[t][1],
888
+ [`--mantine-color-${n}-2`]: r.colors[t][2],
889
+ [`--mantine-color-${n}-3`]: r.colors[t][3],
890
+ [`--mantine-color-${n}-4`]: r.colors[t][4],
891
+ [`--mantine-color-${n}-5`]: r.colors[t][5],
892
+ [`--mantine-color-${n}-6`]: r.colors[t][6],
893
+ [`--mantine-color-${n}-7`]: r.colors[t][7],
894
+ [`--mantine-color-${n}-8`]: r.colors[t][8],
895
+ [`--mantine-color-${n}-9`]: r.colors[t][9],
896
+ ...l
897
+ } : l;
898
+ }
899
+ const o = U(r, "dark"), i = {
900
+ [`--mantine-color-${n}-text`]: `var(--mantine-color-${n}-4)`,
901
+ [`--mantine-color-${n}-filled`]: `var(--mantine-color-${n}-${o})`,
902
+ [`--mantine-color-${n}-filled-hover`]: `var(--mantine-color-${n}-${o === 9 ? 8 : o + 1})`,
903
+ [`--mantine-color-${n}-light`]: j(
904
+ r.colors[t][Math.max(0, o - 2)],
905
+ 0.15
906
+ ),
907
+ [`--mantine-color-${n}-light-hover`]: j(
908
+ r.colors[t][Math.max(0, o - 2)],
909
+ 0.2
910
+ ),
911
+ [`--mantine-color-${n}-light-color`]: `var(--mantine-color-${n}-${Math.max(o - 5, 0)})`,
912
+ [`--mantine-color-${n}-outline`]: `var(--mantine-color-${n}-${Math.max(o - 4, 0)})`,
913
+ [`--mantine-color-${n}-outline-hover`]: j(
914
+ r.colors[t][Math.max(o - 4, 0)],
915
+ 0.05
916
+ )
917
+ };
918
+ return a ? {
919
+ [`--mantine-color-${n}-0`]: r.colors[t][0],
920
+ [`--mantine-color-${n}-1`]: r.colors[t][1],
921
+ [`--mantine-color-${n}-2`]: r.colors[t][2],
922
+ [`--mantine-color-${n}-3`]: r.colors[t][3],
923
+ [`--mantine-color-${n}-4`]: r.colors[t][4],
924
+ [`--mantine-color-${n}-5`]: r.colors[t][5],
925
+ [`--mantine-color-${n}-6`]: r.colors[t][6],
926
+ [`--mantine-color-${n}-7`]: r.colors[t][7],
927
+ [`--mantine-color-${n}-8`]: r.colors[t][8],
928
+ [`--mantine-color-${n}-9`]: r.colors[t][9],
929
+ ...i
930
+ } : i;
931
+ }
932
+ function kn(r) {
933
+ return !!r && typeof r == "object" && "mantine-virtual-color" in r;
934
+ }
935
+ function F(r, t, e) {
936
+ M(t).forEach(
937
+ (n) => Object.assign(r, { [`--mantine-${e}-${n}`]: t[n] })
938
+ );
939
+ }
940
+ const rt = (r) => {
941
+ const t = U(r, "light"), e = r.defaultRadius in r.radius ? r.radius[r.defaultRadius] : c(r.defaultRadius), n = {
942
+ variables: {
943
+ "--mantine-scale": r.scale.toString(),
944
+ "--mantine-cursor-type": r.cursorType,
945
+ "--mantine-color-scheme": "light dark",
946
+ "--mantine-webkit-font-smoothing": r.fontSmoothing ? "antialiased" : "unset",
947
+ "--mantine-moz-font-smoothing": r.fontSmoothing ? "grayscale" : "unset",
948
+ "--mantine-color-white": r.white,
949
+ "--mantine-color-black": r.black,
950
+ "--mantine-line-height": r.lineHeights.md,
951
+ "--mantine-font-family": r.fontFamily,
952
+ "--mantine-font-family-monospace": r.fontFamilyMonospace,
953
+ "--mantine-font-family-headings": r.headings.fontFamily,
954
+ "--mantine-heading-font-weight": r.headings.fontWeight,
955
+ "--mantine-heading-text-wrap": r.headings.textWrap,
956
+ "--mantine-radius-default": e,
957
+ // Primary colors
958
+ "--mantine-primary-color-filled": `var(--mantine-color-${r.primaryColor}-filled)`,
959
+ "--mantine-primary-color-filled-hover": `var(--mantine-color-${r.primaryColor}-filled-hover)`,
960
+ "--mantine-primary-color-light": `var(--mantine-color-${r.primaryColor}-light)`,
961
+ "--mantine-primary-color-light-hover": `var(--mantine-color-${r.primaryColor}-light-hover)`,
962
+ "--mantine-primary-color-light-color": `var(--mantine-color-${r.primaryColor}-light-color)`
963
+ },
964
+ light: {
965
+ "--mantine-primary-color-contrast": jr(r, "light"),
966
+ "--mantine-color-bright": "var(--mantine-color-black)",
967
+ "--mantine-color-text": r.black,
968
+ "--mantine-color-body": r.white,
969
+ "--mantine-color-error": "var(--mantine-color-red-6)",
970
+ "--mantine-color-placeholder": "var(--mantine-color-gray-5)",
971
+ "--mantine-color-anchor": `var(--mantine-color-${r.primaryColor}-${t})`,
972
+ "--mantine-color-default": "var(--mantine-color-white)",
973
+ "--mantine-color-default-hover": "var(--mantine-color-gray-0)",
974
+ "--mantine-color-default-color": "var(--mantine-color-black)",
975
+ "--mantine-color-default-border": "var(--mantine-color-gray-4)",
976
+ "--mantine-color-dimmed": "var(--mantine-color-gray-6)"
977
+ },
978
+ dark: {
979
+ "--mantine-primary-color-contrast": jr(r, "dark"),
980
+ "--mantine-color-bright": "var(--mantine-color-white)",
981
+ "--mantine-color-text": "var(--mantine-color-dark-0)",
982
+ "--mantine-color-body": "var(--mantine-color-dark-7)",
983
+ "--mantine-color-error": "var(--mantine-color-red-8)",
984
+ "--mantine-color-placeholder": "var(--mantine-color-dark-3)",
985
+ "--mantine-color-anchor": `var(--mantine-color-${r.primaryColor}-4)`,
986
+ "--mantine-color-default": "var(--mantine-color-dark-6)",
987
+ "--mantine-color-default-hover": "var(--mantine-color-dark-5)",
988
+ "--mantine-color-default-color": "var(--mantine-color-white)",
989
+ "--mantine-color-default-border": "var(--mantine-color-dark-4)",
990
+ "--mantine-color-dimmed": "var(--mantine-color-dark-2)"
991
+ }
992
+ };
993
+ F(n.variables, r.breakpoints, "breakpoint"), F(n.variables, r.spacing, "spacing"), F(n.variables, r.fontSizes, "font-size"), F(n.variables, r.lineHeights, "line-height"), F(n.variables, r.shadows, "shadow"), F(n.variables, r.radius, "radius"), r.colors[r.primaryColor].forEach((o, i) => {
994
+ n.variables[`--mantine-primary-color-${i}`] = `var(--mantine-color-${r.primaryColor}-${i})`;
995
+ }), M(r.colors).forEach((o) => {
996
+ const i = r.colors[o];
997
+ if (kn(i)) {
998
+ Object.assign(
999
+ n.light,
1000
+ J({
1001
+ theme: r,
1002
+ name: i.name,
1003
+ color: i.light,
1004
+ colorScheme: "light",
1005
+ withColorValues: !0
1006
+ })
1007
+ ), Object.assign(
1008
+ n.dark,
1009
+ J({
1010
+ theme: r,
1011
+ name: i.name,
1012
+ color: i.dark,
1013
+ colorScheme: "dark",
1014
+ withColorValues: !0
1015
+ })
1016
+ );
1017
+ return;
1018
+ }
1019
+ i.forEach((s, l) => {
1020
+ n.variables[`--mantine-color-${o}-${l}`] = s;
1021
+ }), Object.assign(
1022
+ n.light,
1023
+ J({
1024
+ theme: r,
1025
+ color: o,
1026
+ colorScheme: "light",
1027
+ withColorValues: !1
1028
+ })
1029
+ ), Object.assign(
1030
+ n.dark,
1031
+ J({
1032
+ theme: r,
1033
+ color: o,
1034
+ colorScheme: "dark",
1035
+ withColorValues: !1
1036
+ })
1037
+ );
1038
+ });
1039
+ const a = r.headings.sizes;
1040
+ return M(a).forEach((o) => {
1041
+ n.variables[`--mantine-${o}-font-size`] = a[o].fontSize, n.variables[`--mantine-${o}-line-height`] = a[o].lineHeight, n.variables[`--mantine-${o}-font-weight`] = a[o].fontWeight || r.headings.fontWeight;
1042
+ }), n;
1043
+ };
1044
+ function Nn({ theme: r, generator: t }) {
1045
+ const e = rt(r), n = t == null ? void 0 : t(r);
1046
+ return n ? vr(e, n) : e;
1047
+ }
1048
+ const dr = rt(kr);
1049
+ function Tn(r) {
1050
+ const t = {
1051
+ variables: {},
1052
+ light: {},
1053
+ dark: {}
1054
+ };
1055
+ return M(r.variables).forEach((e) => {
1056
+ dr.variables[e] !== r.variables[e] && (t.variables[e] = r.variables[e]);
1057
+ }), M(r.light).forEach((e) => {
1058
+ dr.light[e] !== r.light[e] && (t.light[e] = r.light[e]);
1059
+ }), M(r.dark).forEach((e) => {
1060
+ dr.dark[e] !== r.dark[e] && (t.dark[e] = r.dark[e]);
1061
+ }), t;
1062
+ }
1063
+ function Mn(r) {
1064
+ return `
1065
+ ${r}[data-mantine-color-scheme="dark"] { --mantine-color-scheme: dark; }
1066
+ ${r}[data-mantine-color-scheme="light"] { --mantine-color-scheme: light; }
1067
+ `;
1068
+ }
1069
+ function tt({
1070
+ cssVariablesSelector: r,
1071
+ deduplicateCssVariables: t
1072
+ }) {
1073
+ const e = V(), n = Cr(), a = nn(), o = Nn({ theme: e, generator: a }), i = r === ":root" && t, s = i ? Tn(o) : o, l = Cn(s, r);
1074
+ return l ? /* @__PURE__ */ p(
1075
+ "style",
1076
+ {
1077
+ "data-mantine-styles": !0,
1078
+ nonce: n == null ? void 0 : n(),
1079
+ dangerouslySetInnerHTML: {
1080
+ __html: `${l}${i ? "" : Mn(r)}`
1081
+ }
1082
+ }
1083
+ ) : null;
1084
+ }
1085
+ tt.displayName = "@mantine/CssVariables";
1086
+ function Rn() {
1087
+ const r = console.error;
1088
+ console.error = (...t) => {
1089
+ t.length > 1 && typeof t[0] == "string" && t[0].toLowerCase().includes("extra attributes from the server") && typeof t[1] == "string" && t[1].toLowerCase().includes("data-mantine-color-scheme") || r(...t);
1090
+ };
1091
+ }
1092
+ function W(r, t) {
1093
+ var a, o;
1094
+ const e = typeof window < "u" && "matchMedia" in window && ((a = window.matchMedia("(prefers-color-scheme: dark)")) == null ? void 0 : a.matches), n = r !== "auto" ? r : e ? "dark" : "light";
1095
+ (o = t()) == null || o.setAttribute("data-mantine-color-scheme", n);
1096
+ }
1097
+ function Pn({
1098
+ manager: r,
1099
+ defaultColorScheme: t,
1100
+ getRootElement: e,
1101
+ forceColorScheme: n
1102
+ }) {
1103
+ const a = H(null), [o, i] = tr(() => r.get(t)), s = n || o, l = Lr(
1104
+ (u) => {
1105
+ n || (W(u, e), i(u), r.set(u));
1106
+ },
1107
+ [r.set, s, n]
1108
+ ), f = Lr(() => {
1109
+ i(t), W(t, e), r.clear();
1110
+ }, [r.clear, t]);
1111
+ return A(() => (r.subscribe(l), r.unsubscribe), [r.subscribe, r.unsubscribe]), Qr(() => {
1112
+ W(r.get(t), e);
1113
+ }, []), A(() => {
1114
+ var d;
1115
+ if (n)
1116
+ return W(n, e), () => {
1117
+ };
1118
+ n === void 0 && W(o, e), typeof window < "u" && "matchMedia" in window && (a.current = window.matchMedia("(prefers-color-scheme: dark)"));
1119
+ const u = (m) => {
1120
+ o === "auto" && W(m.matches ? "dark" : "light", e);
1121
+ };
1122
+ return (d = a.current) == null || d.addEventListener("change", u), () => {
1123
+ var m;
1124
+ return (m = a.current) == null ? void 0 : m.removeEventListener("change", u);
1125
+ };
1126
+ }, [o, n]), { colorScheme: s, setColorScheme: l, clearColorScheme: f };
1127
+ }
1128
+ function _n({
1129
+ respectReducedMotion: r,
1130
+ getRootElement: t
1131
+ }) {
1132
+ Qr(() => {
1133
+ var e;
1134
+ r && ((e = t()) == null || e.setAttribute("data-respect-reduced-motion", "true"));
1135
+ }, [r]);
1136
+ }
1137
+ Rn();
1138
+ function nt({
1139
+ theme: r,
1140
+ children: t,
1141
+ getStyleNonce: e,
1142
+ withStaticClasses: n = !0,
1143
+ withGlobalClasses: a = !0,
1144
+ deduplicateCssVariables: o = !0,
1145
+ withCssVariables: i = !0,
1146
+ cssVariablesSelector: s = ":root",
1147
+ classNamesPrefix: l = "mantine",
1148
+ colorSchemeManager: f = hn(),
1149
+ defaultColorScheme: u = "light",
1150
+ getRootElement: d = () => document.documentElement,
1151
+ cssVariablesResolver: m,
1152
+ forceColorScheme: y,
1153
+ stylesTransform: g,
1154
+ env: $
1155
+ }) {
1156
+ const { colorScheme: h, setColorScheme: C, clearColorScheme: x } = Pn({
1157
+ defaultColorScheme: u,
1158
+ forceColorScheme: y,
1159
+ manager: f,
1160
+ getRootElement: d
1161
+ });
1162
+ return _n({
1163
+ respectReducedMotion: (r == null ? void 0 : r.respectReducedMotion) || !1,
1164
+ getRootElement: d
1165
+ }), /* @__PURE__ */ p(
1166
+ Zr.Provider,
1167
+ {
1168
+ value: {
1169
+ colorScheme: h,
1170
+ setColorScheme: C,
1171
+ clearColorScheme: x,
1172
+ getRootElement: d,
1173
+ classNamesPrefix: l,
1174
+ getStyleNonce: e,
1175
+ cssVariablesResolver: m,
1176
+ cssVariablesSelector: s,
1177
+ withStaticClasses: n,
1178
+ stylesTransform: g,
1179
+ env: $
1180
+ },
1181
+ children: /* @__PURE__ */ z(Jr, { theme: r, children: [
1182
+ i && /* @__PURE__ */ p(
1183
+ tt,
1184
+ {
1185
+ cssVariablesSelector: s,
1186
+ deduplicateCssVariables: o
1187
+ }
1188
+ ),
1189
+ a && /* @__PURE__ */ p(wn, {}),
1190
+ t
1191
+ ] })
1192
+ }
1193
+ );
1194
+ }
1195
+ nt.displayName = "@mantine/core/MantineProvider";
1196
+ const Ln = {
1197
+ always: "mantine-focus-always",
1198
+ auto: "mantine-focus-auto",
1199
+ never: "mantine-focus-never"
1200
+ };
1201
+ function En({ theme: r, options: t, unstyled: e }) {
1202
+ return I(
1203
+ (t == null ? void 0 : t.focusable) && !e && (r.focusClassName || Ln[r.focusRing]),
1204
+ (t == null ? void 0 : t.active) && !e && r.activeClassName
1205
+ );
1206
+ }
1207
+ function An({
1208
+ selector: r,
1209
+ stylesCtx: t,
1210
+ options: e,
1211
+ props: n,
1212
+ theme: a
1213
+ }) {
1214
+ return wr({
1215
+ theme: a,
1216
+ classNames: e == null ? void 0 : e.classNames,
1217
+ props: (e == null ? void 0 : e.props) || n,
1218
+ stylesCtx: t
1219
+ })[r];
1220
+ }
1221
+ function Fr({
1222
+ selector: r,
1223
+ stylesCtx: t,
1224
+ theme: e,
1225
+ classNames: n,
1226
+ props: a
1227
+ }) {
1228
+ return wr({ theme: e, classNames: n, props: a, stylesCtx: t })[r];
1229
+ }
1230
+ function On({ rootSelector: r, selector: t, className: e }) {
1231
+ return r === t ? e : void 0;
1232
+ }
1233
+ function Bn({ selector: r, classes: t, unstyled: e }) {
1234
+ return e ? void 0 : t[r];
1235
+ }
1236
+ function In({
1237
+ themeName: r,
1238
+ classNamesPrefix: t,
1239
+ selector: e,
1240
+ withStaticClass: n
1241
+ }) {
1242
+ return n === !1 ? [] : r.map((a) => `${t}-${a}-${e}`);
1243
+ }
1244
+ function Vn({
1245
+ themeName: r,
1246
+ theme: t,
1247
+ selector: e,
1248
+ props: n,
1249
+ stylesCtx: a
1250
+ }) {
1251
+ return r.map(
1252
+ (o) => {
1253
+ var i, s;
1254
+ return (s = wr({
1255
+ theme: t,
1256
+ classNames: (i = t.components[o]) == null ? void 0 : i.classNames,
1257
+ props: n,
1258
+ stylesCtx: a
1259
+ })) == null ? void 0 : s[e];
1260
+ }
1261
+ );
1262
+ }
1263
+ function jn({
1264
+ options: r,
1265
+ classes: t,
1266
+ selector: e,
1267
+ unstyled: n
1268
+ }) {
1269
+ return r != null && r.variant && !n ? t[`${e}--${r.variant}`] : void 0;
1270
+ }
1271
+ function Fn({
1272
+ theme: r,
1273
+ options: t,
1274
+ themeName: e,
1275
+ selector: n,
1276
+ classNamesPrefix: a,
1277
+ classNames: o,
1278
+ classes: i,
1279
+ unstyled: s,
1280
+ className: l,
1281
+ rootSelector: f,
1282
+ props: u,
1283
+ stylesCtx: d,
1284
+ withStaticClasses: m,
1285
+ headless: y,
1286
+ transformedStyles: g
1287
+ }) {
1288
+ return I(
1289
+ En({ theme: r, options: t, unstyled: s || y }),
1290
+ Vn({ theme: r, themeName: e, selector: n, props: u, stylesCtx: d }),
1291
+ jn({ options: t, classes: i, selector: n, unstyled: s }),
1292
+ Fr({ selector: n, stylesCtx: d, theme: r, classNames: o, props: u }),
1293
+ Fr({ selector: n, stylesCtx: d, theme: r, classNames: g, props: u }),
1294
+ An({ selector: n, stylesCtx: d, options: t, props: u, theme: r }),
1295
+ On({ rootSelector: f, selector: n, className: l }),
1296
+ Bn({ selector: n, classes: i, unstyled: s || y }),
1297
+ m && !y && In({
1298
+ themeName: e,
1299
+ classNamesPrefix: a,
1300
+ selector: n,
1301
+ withStaticClass: t == null ? void 0 : t.withStaticClass
1302
+ }),
1303
+ t == null ? void 0 : t.className
1304
+ );
1305
+ }
1306
+ function Wn({
1307
+ theme: r,
1308
+ themeName: t,
1309
+ props: e,
1310
+ stylesCtx: n,
1311
+ selector: a
1312
+ }) {
1313
+ return t.map(
1314
+ (o) => {
1315
+ var i;
1316
+ return yr({
1317
+ theme: r,
1318
+ styles: (i = r.components[o]) == null ? void 0 : i.styles,
1319
+ props: e,
1320
+ stylesCtx: n
1321
+ })[a];
1322
+ }
1323
+ ).reduce((o, i) => ({ ...o, ...i }), {});
1324
+ }
1325
+ function br({ style: r, theme: t }) {
1326
+ return Array.isArray(r) ? [...r].reduce(
1327
+ (e, n) => ({ ...e, ...br({ style: n, theme: t }) }),
1328
+ {}
1329
+ ) : typeof r == "function" ? r(t) : r ?? {};
1330
+ }
1331
+ function Hn(r) {
1332
+ return r.reduce((t, e) => (e && Object.keys(e).forEach((n) => {
1333
+ t[n] = { ...t[n], ...Sr(e[n]) };
1334
+ }), t), {});
1335
+ }
1336
+ function zn({
1337
+ vars: r,
1338
+ varsResolver: t,
1339
+ theme: e,
1340
+ props: n,
1341
+ stylesCtx: a,
1342
+ selector: o,
1343
+ themeName: i,
1344
+ headless: s
1345
+ }) {
1346
+ var l;
1347
+ return (l = Hn([
1348
+ s ? {} : t == null ? void 0 : t(e, n, a),
1349
+ ...i.map((f) => {
1350
+ var u, d, m;
1351
+ return (m = (d = (u = e.components) == null ? void 0 : u[f]) == null ? void 0 : d.vars) == null ? void 0 : m.call(d, e, n, a);
1352
+ }),
1353
+ r == null ? void 0 : r(e, n, a)
1354
+ ])) == null ? void 0 : l[o];
1355
+ }
1356
+ function Yn({
1357
+ theme: r,
1358
+ themeName: t,
1359
+ selector: e,
1360
+ options: n,
1361
+ props: a,
1362
+ stylesCtx: o,
1363
+ rootSelector: i,
1364
+ styles: s,
1365
+ style: l,
1366
+ vars: f,
1367
+ varsResolver: u,
1368
+ headless: d,
1369
+ withStylesTransform: m
1370
+ }) {
1371
+ return {
1372
+ ...!m && Wn({ theme: r, themeName: t, props: a, stylesCtx: o, selector: e }),
1373
+ ...!m && yr({ theme: r, styles: s, props: a, stylesCtx: o })[e],
1374
+ ...!m && yr({ theme: r, styles: n == null ? void 0 : n.styles, props: (n == null ? void 0 : n.props) || a, stylesCtx: o })[e],
1375
+ ...zn({ theme: r, props: a, stylesCtx: o, vars: f, varsResolver: u, selector: e, themeName: t, headless: d }),
1376
+ ...i === e ? br({ style: l, theme: r }) : null,
1377
+ ...br({ style: n == null ? void 0 : n.style, theme: r })
1378
+ };
1379
+ }
1380
+ function Gn({ props: r, stylesCtx: t, themeName: e }) {
1381
+ var i;
1382
+ const n = V(), a = (i = cn()) == null ? void 0 : i();
1383
+ return {
1384
+ getTransformedStyles: (s) => a ? [
1385
+ ...s.map(
1386
+ (f) => a(f, { props: r, theme: n, ctx: t })
1387
+ ),
1388
+ ...e.map(
1389
+ (f) => {
1390
+ var u;
1391
+ return a((u = n.components[f]) == null ? void 0 : u.styles, { props: r, theme: n, ctx: t });
1392
+ }
1393
+ )
1394
+ ].filter(Boolean) : [],
1395
+ withStylesTransform: !!a
1396
+ };
1397
+ }
1398
+ function Q({
1399
+ name: r,
1400
+ classes: t,
1401
+ props: e,
1402
+ stylesCtx: n,
1403
+ className: a,
1404
+ style: o,
1405
+ rootSelector: i = "root",
1406
+ unstyled: s,
1407
+ classNames: l,
1408
+ styles: f,
1409
+ vars: u,
1410
+ varsResolver: d
1411
+ }) {
1412
+ const m = V(), y = en(), g = on(), $ = an(), h = (Array.isArray(r) ? r : [r]).filter((v) => v), { withStylesTransform: C, getTransformedStyles: x } = Gn({
1413
+ props: e,
1414
+ stylesCtx: n,
1415
+ themeName: h
1416
+ });
1417
+ return (v, w) => ({
1418
+ className: Fn({
1419
+ theme: m,
1420
+ options: w,
1421
+ themeName: h,
1422
+ selector: v,
1423
+ classNamesPrefix: y,
1424
+ classNames: l,
1425
+ classes: t,
1426
+ unstyled: s,
1427
+ className: a,
1428
+ rootSelector: i,
1429
+ props: e,
1430
+ stylesCtx: n,
1431
+ withStaticClasses: g,
1432
+ headless: $,
1433
+ transformedStyles: x([w == null ? void 0 : w.styles, f])
1434
+ }),
1435
+ style: Yn({
1436
+ theme: m,
1437
+ themeName: h,
1438
+ selector: v,
1439
+ options: w,
1440
+ props: e,
1441
+ stylesCtx: n,
1442
+ rootSelector: i,
1443
+ styles: f,
1444
+ style: o,
1445
+ vars: u,
1446
+ varsResolver: d,
1447
+ headless: $,
1448
+ withStylesTransform: C
1449
+ })
1450
+ });
1451
+ }
1452
+ function B(r, t, e) {
1453
+ var i;
1454
+ const n = V(), a = (i = n.components[r]) == null ? void 0 : i.defaultProps, o = typeof a == "function" ? a(n) : a;
1455
+ return { ...t, ...o, ...Sr(e) };
1456
+ }
1457
+ function ur(r) {
1458
+ return M(r).reduce(
1459
+ (t, e) => r[e] !== void 0 ? `${t}${Dt(e)}:${r[e]};` : t,
1460
+ ""
1461
+ ).trim();
1462
+ }
1463
+ function Dn({ selector: r, styles: t, media: e, container: n }) {
1464
+ const a = t ? ur(t) : "", o = Array.isArray(e) ? e.map((s) => `@media${s.query}{${r}{${ur(s.styles)}}}`) : [], i = Array.isArray(n) ? n.map(
1465
+ (s) => `@container ${s.query}{${r}{${ur(s.styles)}}}`
1466
+ ) : [];
1467
+ return `${a ? `${r}{${a}}` : ""}${o.join("")}${i.join("")}`.trim();
1468
+ }
1469
+ function Xn(r) {
1470
+ const t = Cr();
1471
+ return /* @__PURE__ */ p(
1472
+ "style",
1473
+ {
1474
+ "data-mantine-styles": "inline",
1475
+ nonce: t == null ? void 0 : t(),
1476
+ dangerouslySetInnerHTML: { __html: Dn(r) }
1477
+ }
1478
+ );
1479
+ }
1480
+ function Un(r) {
1481
+ const {
1482
+ m: t,
1483
+ mx: e,
1484
+ my: n,
1485
+ mt: a,
1486
+ mb: o,
1487
+ ml: i,
1488
+ mr: s,
1489
+ me: l,
1490
+ ms: f,
1491
+ p: u,
1492
+ px: d,
1493
+ py: m,
1494
+ pt: y,
1495
+ pb: g,
1496
+ pl: $,
1497
+ pr: h,
1498
+ pe: C,
1499
+ ps: x,
1500
+ bd: v,
1501
+ bg: w,
1502
+ c: L,
1503
+ opacity: b,
1504
+ ff: k,
1505
+ fz: S,
1506
+ fw: E,
1507
+ lts: or,
1508
+ ta: ar,
1509
+ lh: pt,
1510
+ fs: yt,
1511
+ tt: gt,
1512
+ td: bt,
1513
+ w: ht,
1514
+ miw: $t,
1515
+ maw: vt,
1516
+ h: St,
1517
+ mih: wt,
1518
+ mah: Ct,
1519
+ bgsz: xt,
1520
+ bgp: kt,
1521
+ bgr: Nt,
1522
+ bga: Tt,
1523
+ pos: Mt,
1524
+ top: Rt,
1525
+ left: Pt,
1526
+ bottom: _t,
1527
+ right: Lt,
1528
+ inset: Et,
1529
+ display: At,
1530
+ flex: Ot,
1531
+ hiddenFrom: Bt,
1532
+ visibleFrom: It,
1533
+ lightHidden: Vt,
1534
+ darkHidden: jt,
1535
+ sx: Ft,
1536
+ ...Wt
1537
+ } = r;
1538
+ return { styleProps: Sr({
1539
+ m: t,
1540
+ mx: e,
1541
+ my: n,
1542
+ mt: a,
1543
+ mb: o,
1544
+ ml: i,
1545
+ mr: s,
1546
+ me: l,
1547
+ ms: f,
1548
+ p: u,
1549
+ px: d,
1550
+ py: m,
1551
+ pt: y,
1552
+ pb: g,
1553
+ pl: $,
1554
+ pr: h,
1555
+ pe: C,
1556
+ ps: x,
1557
+ bd: v,
1558
+ bg: w,
1559
+ c: L,
1560
+ opacity: b,
1561
+ ff: k,
1562
+ fz: S,
1563
+ fw: E,
1564
+ lts: or,
1565
+ ta: ar,
1566
+ lh: pt,
1567
+ fs: yt,
1568
+ tt: gt,
1569
+ td: bt,
1570
+ w: ht,
1571
+ miw: $t,
1572
+ maw: vt,
1573
+ h: St,
1574
+ mih: wt,
1575
+ mah: Ct,
1576
+ bgsz: xt,
1577
+ bgp: kt,
1578
+ bgr: Nt,
1579
+ bga: Tt,
1580
+ pos: Mt,
1581
+ top: Rt,
1582
+ left: Pt,
1583
+ bottom: _t,
1584
+ right: Lt,
1585
+ inset: Et,
1586
+ display: At,
1587
+ flex: Ot,
1588
+ hiddenFrom: Bt,
1589
+ visibleFrom: It,
1590
+ lightHidden: Vt,
1591
+ darkHidden: jt,
1592
+ sx: Ft
1593
+ }), rest: Wt };
1594
+ }
1595
+ const qn = {
1596
+ m: { type: "spacing", property: "margin" },
1597
+ mt: { type: "spacing", property: "marginTop" },
1598
+ mb: { type: "spacing", property: "marginBottom" },
1599
+ ml: { type: "spacing", property: "marginLeft" },
1600
+ mr: { type: "spacing", property: "marginRight" },
1601
+ ms: { type: "spacing", property: "marginInlineStart" },
1602
+ me: { type: "spacing", property: "marginInlineEnd" },
1603
+ mx: { type: "spacing", property: "marginInline" },
1604
+ my: { type: "spacing", property: "marginBlock" },
1605
+ p: { type: "spacing", property: "padding" },
1606
+ pt: { type: "spacing", property: "paddingTop" },
1607
+ pb: { type: "spacing", property: "paddingBottom" },
1608
+ pl: { type: "spacing", property: "paddingLeft" },
1609
+ pr: { type: "spacing", property: "paddingRight" },
1610
+ ps: { type: "spacing", property: "paddingInlineStart" },
1611
+ pe: { type: "spacing", property: "paddingInlineEnd" },
1612
+ px: { type: "spacing", property: "paddingInline" },
1613
+ py: { type: "spacing", property: "paddingBlock" },
1614
+ bd: { type: "border", property: "border" },
1615
+ bg: { type: "color", property: "background" },
1616
+ c: { type: "textColor", property: "color" },
1617
+ opacity: { type: "identity", property: "opacity" },
1618
+ ff: { type: "fontFamily", property: "fontFamily" },
1619
+ fz: { type: "fontSize", property: "fontSize" },
1620
+ fw: { type: "identity", property: "fontWeight" },
1621
+ lts: { type: "size", property: "letterSpacing" },
1622
+ ta: { type: "identity", property: "textAlign" },
1623
+ lh: { type: "lineHeight", property: "lineHeight" },
1624
+ fs: { type: "identity", property: "fontStyle" },
1625
+ tt: { type: "identity", property: "textTransform" },
1626
+ td: { type: "identity", property: "textDecoration" },
1627
+ w: { type: "spacing", property: "width" },
1628
+ miw: { type: "spacing", property: "minWidth" },
1629
+ maw: { type: "spacing", property: "maxWidth" },
1630
+ h: { type: "spacing", property: "height" },
1631
+ mih: { type: "spacing", property: "minHeight" },
1632
+ mah: { type: "spacing", property: "maxHeight" },
1633
+ bgsz: { type: "size", property: "backgroundSize" },
1634
+ bgp: { type: "identity", property: "backgroundPosition" },
1635
+ bgr: { type: "identity", property: "backgroundRepeat" },
1636
+ bga: { type: "identity", property: "backgroundAttachment" },
1637
+ pos: { type: "identity", property: "position" },
1638
+ top: { type: "size", property: "top" },
1639
+ left: { type: "size", property: "left" },
1640
+ bottom: { type: "size", property: "bottom" },
1641
+ right: { type: "size", property: "right" },
1642
+ inset: { type: "size", property: "inset" },
1643
+ display: { type: "identity", property: "display" },
1644
+ flex: { type: "identity", property: "flex" }
1645
+ };
1646
+ function Tr(r, t) {
1647
+ const e = q({ color: r, theme: t });
1648
+ return e.color === "dimmed" ? "var(--mantine-color-dimmed)" : e.color === "bright" ? "var(--mantine-color-bright)" : e.variable ? `var(${e.variable})` : e.color;
1649
+ }
1650
+ function Qn(r, t) {
1651
+ const e = q({ color: r, theme: t });
1652
+ return e.isThemeColor && e.shade === void 0 ? `var(--mantine-color-${e.color}-text)` : Tr(r, t);
1653
+ }
1654
+ function Kn(r, t) {
1655
+ if (typeof r == "number")
1656
+ return c(r);
1657
+ if (typeof r == "string") {
1658
+ const [e, n, ...a] = r.split(" ").filter((i) => i.trim() !== "");
1659
+ let o = `${c(e)}`;
1660
+ return n && (o += ` ${n}`), a.length > 0 && (o += ` ${Tr(a.join(" "), t)}`), o.trim();
1661
+ }
1662
+ return r;
1663
+ }
1664
+ const Wr = {
1665
+ text: "var(--mantine-font-family)",
1666
+ mono: "var(--mantine-font-family-monospace)",
1667
+ monospace: "var(--mantine-font-family-monospace)",
1668
+ heading: "var(--mantine-font-family-headings)",
1669
+ headings: "var(--mantine-font-family-headings)"
1670
+ };
1671
+ function Zn(r) {
1672
+ return typeof r == "string" && r in Wr ? Wr[r] : r;
1673
+ }
1674
+ const Jn = ["h1", "h2", "h3", "h4", "h5", "h6"];
1675
+ function re(r, t) {
1676
+ return typeof r == "string" && r in t.fontSizes ? `var(--mantine-font-size-${r})` : typeof r == "string" && Jn.includes(r) ? `var(--mantine-${r}-font-size)` : typeof r == "number" || typeof r == "string" ? c(r) : r;
1677
+ }
1678
+ function te(r) {
1679
+ return r;
1680
+ }
1681
+ const ne = ["h1", "h2", "h3", "h4", "h5", "h6"];
1682
+ function ee(r, t) {
1683
+ return typeof r == "string" && r in t.lineHeights ? `var(--mantine-line-height-${r})` : typeof r == "string" && ne.includes(r) ? `var(--mantine-${r}-line-height)` : r;
1684
+ }
1685
+ function oe(r) {
1686
+ return typeof r == "number" ? c(r) : r;
1687
+ }
1688
+ function ae(r, t) {
1689
+ if (typeof r == "number")
1690
+ return c(r);
1691
+ if (typeof r == "string") {
1692
+ const e = r.replace("-", "");
1693
+ if (!(e in t.spacing))
1694
+ return c(r);
1695
+ const n = `--mantine-spacing-${e}`;
1696
+ return r.startsWith("-") ? `calc(var(${n}) * -1)` : `var(${n})`;
1697
+ }
1698
+ return r;
1699
+ }
1700
+ const mr = {
1701
+ color: Tr,
1702
+ textColor: Qn,
1703
+ fontSize: re,
1704
+ spacing: ae,
1705
+ identity: te,
1706
+ size: oe,
1707
+ lineHeight: ee,
1708
+ fontFamily: Zn,
1709
+ border: Kn
1710
+ };
1711
+ function Hr(r) {
1712
+ return r.replace("(min-width: ", "").replace("em)", "");
1713
+ }
1714
+ function ie({
1715
+ media: r,
1716
+ ...t
1717
+ }) {
1718
+ const n = Object.keys(r).sort((a, o) => Number(Hr(a)) - Number(Hr(o))).map((a) => ({ query: a, styles: r[a] }));
1719
+ return { ...t, media: n };
1720
+ }
1721
+ function se(r) {
1722
+ if (typeof r != "object" || r === null)
1723
+ return !1;
1724
+ const t = Object.keys(r);
1725
+ return !(t.length === 1 && t[0] === "base");
1726
+ }
1727
+ function ce(r) {
1728
+ return typeof r == "object" && r !== null ? "base" in r ? r.base : void 0 : r;
1729
+ }
1730
+ function le(r) {
1731
+ return typeof r == "object" && r !== null ? M(r).filter((t) => t !== "base") : [];
1732
+ }
1733
+ function fe(r, t) {
1734
+ return typeof r == "object" && r !== null && t in r ? r[t] : r;
1735
+ }
1736
+ function de({
1737
+ styleProps: r,
1738
+ data: t,
1739
+ theme: e
1740
+ }) {
1741
+ return ie(
1742
+ M(r).reduce(
1743
+ (n, a) => {
1744
+ if (a === "hiddenFrom" || a === "visibleFrom" || a === "sx")
1745
+ return n;
1746
+ const o = t[a], i = Array.isArray(o.property) ? o.property : [o.property], s = ce(r[a]);
1747
+ if (!se(r[a]))
1748
+ return i.forEach((f) => {
1749
+ n.inlineStyles[f] = mr[o.type](s, e);
1750
+ }), n;
1751
+ n.hasResponsiveStyles = !0;
1752
+ const l = le(r[a]);
1753
+ return i.forEach((f) => {
1754
+ s && (n.styles[f] = mr[o.type](s, e)), l.forEach((u) => {
1755
+ const d = `(min-width: ${e.breakpoints[u]})`;
1756
+ n.media[d] = {
1757
+ ...n.media[d],
1758
+ [f]: mr[o.type](
1759
+ fe(r[a], u),
1760
+ e
1761
+ )
1762
+ };
1763
+ });
1764
+ }), n;
1765
+ },
1766
+ {
1767
+ hasResponsiveStyles: !1,
1768
+ styles: {},
1769
+ inlineStyles: {},
1770
+ media: {}
1771
+ }
1772
+ )
1773
+ );
1774
+ }
1775
+ function ue() {
1776
+ return `__m__-${Yt().replace(/:/g, "")}`;
1777
+ }
1778
+ function et(r) {
1779
+ return r.startsWith("data-") ? r : `data-${r}`;
1780
+ }
1781
+ function me(r) {
1782
+ return Object.keys(r).reduce((t, e) => {
1783
+ const n = r[e];
1784
+ return n === void 0 || n === "" || n === !1 || n === null || (t[et(e)] = r[e]), t;
1785
+ }, {});
1786
+ }
1787
+ function ot(r) {
1788
+ return r ? typeof r == "string" ? { [et(r)]: !0 } : Array.isArray(r) ? [...r].reduce(
1789
+ (t, e) => ({ ...t, ...ot(e) }),
1790
+ {}
1791
+ ) : me(r) : null;
1792
+ }
1793
+ function hr(r, t) {
1794
+ return Array.isArray(r) ? [...r].reduce(
1795
+ (e, n) => ({ ...e, ...hr(n, t) }),
1796
+ {}
1797
+ ) : typeof r == "function" ? r(t) : r ?? {};
1798
+ }
1799
+ function pe({
1800
+ theme: r,
1801
+ style: t,
1802
+ vars: e,
1803
+ styleProps: n
1804
+ }) {
1805
+ const a = hr(t, r), o = hr(e, r);
1806
+ return { ...a, ...o, ...n };
1807
+ }
1808
+ const at = P(
1809
+ ({
1810
+ component: r,
1811
+ style: t,
1812
+ __vars: e,
1813
+ className: n,
1814
+ variant: a,
1815
+ mod: o,
1816
+ size: i,
1817
+ hiddenFrom: s,
1818
+ visibleFrom: l,
1819
+ lightHidden: f,
1820
+ darkHidden: u,
1821
+ renderRoot: d,
1822
+ __size: m,
1823
+ ...y
1824
+ }, g) => {
1825
+ var S;
1826
+ const $ = V(), h = r || "div", { styleProps: C, rest: x } = Un(y), v = sn(), w = (S = v == null ? void 0 : v()) == null ? void 0 : S(C.sx), L = ue(), b = de({
1827
+ styleProps: C,
1828
+ theme: $,
1829
+ data: qn
1830
+ }), k = {
1831
+ ref: g,
1832
+ style: pe({
1833
+ theme: $,
1834
+ style: t,
1835
+ vars: e,
1836
+ styleProps: b.inlineStyles
1837
+ }),
1838
+ className: I(n, w, {
1839
+ [L]: b.hasResponsiveStyles,
1840
+ "mantine-light-hidden": f,
1841
+ "mantine-dark-hidden": u,
1842
+ [`mantine-hidden-from-${s}`]: s,
1843
+ [`mantine-visible-from-${l}`]: l
1844
+ }),
1845
+ "data-variant": a,
1846
+ "data-size": Ur(i) ? void 0 : i || void 0,
1847
+ size: m,
1848
+ ...ot(o),
1849
+ ...x
1850
+ };
1851
+ return /* @__PURE__ */ z(pr, { children: [
1852
+ b.hasResponsiveStyles && /* @__PURE__ */ p(
1853
+ Xn,
1854
+ {
1855
+ selector: `.${L}`,
1856
+ styles: b.styles,
1857
+ media: b.media
1858
+ }
1859
+ ),
1860
+ typeof d == "function" ? d(k) : /* @__PURE__ */ p(h, { ...k })
1861
+ ] });
1862
+ }
1863
+ );
1864
+ at.displayName = "@mantine/core/Box";
1865
+ const N = at;
1866
+ function it(r) {
1867
+ return r;
1868
+ }
1869
+ function Mr(r) {
1870
+ const t = P(r);
1871
+ return t.extend = it, t.withProps = (e) => {
1872
+ const n = P((a, o) => /* @__PURE__ */ p(t, { ...e, ...a, ref: o }));
1873
+ return n.extend = t.extend, n.displayName = `WithProps(${t.displayName})`, n;
1874
+ }, t;
1875
+ }
1876
+ function st(r) {
1877
+ const t = P(r);
1878
+ return t.withProps = (e) => {
1879
+ const n = P((a, o) => /* @__PURE__ */ p(t, { ...e, ...a, ref: o }));
1880
+ return n.extend = t.extend, n.displayName = `WithProps(${t.displayName})`, n;
1881
+ }, t.extend = it, t;
1882
+ }
1883
+ var ct = { root: "m_87cf2631" };
1884
+ const ye = {
1885
+ __staticSelector: "UnstyledButton"
1886
+ }, Rr = st(
1887
+ (r, t) => {
1888
+ const e = B("UnstyledButton", ye, r), {
1889
+ className: n,
1890
+ component: a = "button",
1891
+ __staticSelector: o,
1892
+ unstyled: i,
1893
+ classNames: s,
1894
+ styles: l,
1895
+ style: f,
1896
+ ...u
1897
+ } = e, d = Q({
1898
+ name: o,
1899
+ props: e,
1900
+ classes: ct,
1901
+ className: n,
1902
+ style: f,
1903
+ classNames: s,
1904
+ styles: l,
1905
+ unstyled: i
1906
+ });
1907
+ return /* @__PURE__ */ p(
1908
+ N,
1909
+ {
1910
+ ...d("root", { focusable: !0 }),
1911
+ component: a,
1912
+ ref: t,
1913
+ type: a === "button" ? "button" : void 0,
1914
+ ...u
1915
+ }
1916
+ );
1917
+ }
1918
+ );
1919
+ Rr.classes = ct;
1920
+ Rr.displayName = "@mantine/core/UnstyledButton";
1921
+ const X = (r) => ({
1922
+ in: { opacity: 1, transform: "scale(1)" },
1923
+ out: { opacity: 0, transform: `scale(.9) translateY(${r === "bottom" ? 10 : -10}px)` },
1924
+ transitionProperty: "transform, opacity"
1925
+ }), rr = {
1926
+ fade: {
1927
+ in: { opacity: 1 },
1928
+ out: { opacity: 0 },
1929
+ transitionProperty: "opacity"
1930
+ },
1931
+ "fade-up": {
1932
+ in: { opacity: 1, transform: "translateY(0)" },
1933
+ out: { opacity: 0, transform: "translateY(30px)" },
1934
+ transitionProperty: "opacity, transform"
1935
+ },
1936
+ "fade-down": {
1937
+ in: { opacity: 1, transform: "translateY(0)" },
1938
+ out: { opacity: 0, transform: "translateY(-30px)" },
1939
+ transitionProperty: "opacity, transform"
1940
+ },
1941
+ "fade-left": {
1942
+ in: { opacity: 1, transform: "translateX(0)" },
1943
+ out: { opacity: 0, transform: "translateX(30px)" },
1944
+ transitionProperty: "opacity, transform"
1945
+ },
1946
+ "fade-right": {
1947
+ in: { opacity: 1, transform: "translateX(0)" },
1948
+ out: { opacity: 0, transform: "translateX(-30px)" },
1949
+ transitionProperty: "opacity, transform"
1950
+ },
1951
+ scale: {
1952
+ in: { opacity: 1, transform: "scale(1)" },
1953
+ out: { opacity: 0, transform: "scale(0)" },
1954
+ common: { transformOrigin: "top" },
1955
+ transitionProperty: "transform, opacity"
1956
+ },
1957
+ "scale-y": {
1958
+ in: { opacity: 1, transform: "scaleY(1)" },
1959
+ out: { opacity: 0, transform: "scaleY(0)" },
1960
+ common: { transformOrigin: "top" },
1961
+ transitionProperty: "transform, opacity"
1962
+ },
1963
+ "scale-x": {
1964
+ in: { opacity: 1, transform: "scaleX(1)" },
1965
+ out: { opacity: 0, transform: "scaleX(0)" },
1966
+ common: { transformOrigin: "left" },
1967
+ transitionProperty: "transform, opacity"
1968
+ },
1969
+ "skew-up": {
1970
+ in: { opacity: 1, transform: "translateY(0) skew(0deg, 0deg)" },
1971
+ out: { opacity: 0, transform: "translateY(-20px) skew(-10deg, -5deg)" },
1972
+ common: { transformOrigin: "top" },
1973
+ transitionProperty: "transform, opacity"
1974
+ },
1975
+ "skew-down": {
1976
+ in: { opacity: 1, transform: "translateY(0) skew(0deg, 0deg)" },
1977
+ out: { opacity: 0, transform: "translateY(20px) skew(-10deg, -5deg)" },
1978
+ common: { transformOrigin: "bottom" },
1979
+ transitionProperty: "transform, opacity"
1980
+ },
1981
+ "rotate-left": {
1982
+ in: { opacity: 1, transform: "translateY(0) rotate(0deg)" },
1983
+ out: { opacity: 0, transform: "translateY(20px) rotate(-5deg)" },
1984
+ common: { transformOrigin: "bottom" },
1985
+ transitionProperty: "transform, opacity"
1986
+ },
1987
+ "rotate-right": {
1988
+ in: { opacity: 1, transform: "translateY(0) rotate(0deg)" },
1989
+ out: { opacity: 0, transform: "translateY(20px) rotate(5deg)" },
1990
+ common: { transformOrigin: "top" },
1991
+ transitionProperty: "transform, opacity"
1992
+ },
1993
+ "slide-down": {
1994
+ in: { opacity: 1, transform: "translateY(0)" },
1995
+ out: { opacity: 0, transform: "translateY(-100%)" },
1996
+ common: { transformOrigin: "top" },
1997
+ transitionProperty: "transform, opacity"
1998
+ },
1999
+ "slide-up": {
2000
+ in: { opacity: 1, transform: "translateY(0)" },
2001
+ out: { opacity: 0, transform: "translateY(100%)" },
2002
+ common: { transformOrigin: "bottom" },
2003
+ transitionProperty: "transform, opacity"
2004
+ },
2005
+ "slide-left": {
2006
+ in: { opacity: 1, transform: "translateX(0)" },
2007
+ out: { opacity: 0, transform: "translateX(100%)" },
2008
+ common: { transformOrigin: "left" },
2009
+ transitionProperty: "transform, opacity"
2010
+ },
2011
+ "slide-right": {
2012
+ in: { opacity: 1, transform: "translateX(0)" },
2013
+ out: { opacity: 0, transform: "translateX(-100%)" },
2014
+ common: { transformOrigin: "right" },
2015
+ transitionProperty: "transform, opacity"
2016
+ },
2017
+ pop: {
2018
+ ...X("bottom"),
2019
+ common: { transformOrigin: "center center" }
2020
+ },
2021
+ "pop-bottom-left": {
2022
+ ...X("bottom"),
2023
+ common: { transformOrigin: "bottom left" }
2024
+ },
2025
+ "pop-bottom-right": {
2026
+ ...X("bottom"),
2027
+ common: { transformOrigin: "bottom right" }
2028
+ },
2029
+ "pop-top-left": {
2030
+ ...X("top"),
2031
+ common: { transformOrigin: "top left" }
2032
+ },
2033
+ "pop-top-right": {
2034
+ ...X("top"),
2035
+ common: { transformOrigin: "top right" }
2036
+ }
2037
+ }, zr = {
2038
+ entering: "in",
2039
+ entered: "in",
2040
+ exiting: "out",
2041
+ exited: "out",
2042
+ "pre-exiting": "out",
2043
+ "pre-entering": "out"
2044
+ };
2045
+ function ge({
2046
+ transition: r,
2047
+ state: t,
2048
+ duration: e,
2049
+ timingFunction: n
2050
+ }) {
2051
+ const a = {
2052
+ WebkitBackfaceVisibility: "hidden",
2053
+ willChange: "transform, opacity",
2054
+ transitionDuration: `${e}ms`,
2055
+ transitionTimingFunction: n
2056
+ };
2057
+ return typeof r == "string" ? r in rr ? {
2058
+ transitionProperty: rr[r].transitionProperty,
2059
+ ...a,
2060
+ ...rr[r].common,
2061
+ ...rr[r][zr[t]]
2062
+ } : {} : {
2063
+ transitionProperty: r.transitionProperty,
2064
+ ...a,
2065
+ ...r.common,
2066
+ ...r[zr[t]]
2067
+ };
2068
+ }
2069
+ function be({
2070
+ duration: r,
2071
+ exitDuration: t,
2072
+ timingFunction: e,
2073
+ mounted: n,
2074
+ onEnter: a,
2075
+ onExit: o,
2076
+ onEntered: i,
2077
+ onExited: s,
2078
+ enterDelay: l,
2079
+ exitDelay: f
2080
+ }) {
2081
+ const u = V(), d = Jt(), m = u.respectReducedMotion ? d : !1, [y, g] = tr(m ? 0 : r), [$, h] = tr(n ? "entered" : "exited"), C = H(-1), x = H(-1), v = H(-1), w = (b) => {
2082
+ const k = b ? a : o, S = b ? i : s;
2083
+ window.clearTimeout(C.current);
2084
+ const E = m ? 0 : b ? r : t;
2085
+ g(E), E === 0 ? (typeof k == "function" && k(), typeof S == "function" && S(), h(b ? "entered" : "exited")) : v.current = requestAnimationFrame(() => {
2086
+ Gt.flushSync(() => {
2087
+ h(b ? "pre-entering" : "pre-exiting");
2088
+ }), v.current = requestAnimationFrame(() => {
2089
+ typeof k == "function" && k(), h(b ? "entering" : "exiting"), C.current = window.setTimeout(() => {
2090
+ typeof S == "function" && S(), h(b ? "entered" : "exited");
2091
+ }, E);
2092
+ });
2093
+ });
2094
+ }, L = (b) => {
2095
+ if (window.clearTimeout(x.current), typeof (b ? l : f) != "number") {
2096
+ w(b);
2097
+ return;
2098
+ }
2099
+ x.current = window.setTimeout(
2100
+ () => {
2101
+ w(b);
2102
+ },
2103
+ b ? l : f
2104
+ );
2105
+ };
2106
+ return Zt(() => {
2107
+ L(n);
2108
+ }, [n]), A(
2109
+ () => () => {
2110
+ window.clearTimeout(C.current), cancelAnimationFrame(v.current);
2111
+ },
2112
+ []
2113
+ ), {
2114
+ transitionDuration: y,
2115
+ transitionStatus: $,
2116
+ transitionTimingFunction: e || "ease"
2117
+ };
2118
+ }
2119
+ function lt({
2120
+ keepMounted: r,
2121
+ transition: t = "fade",
2122
+ duration: e = 250,
2123
+ exitDuration: n = e,
2124
+ mounted: a,
2125
+ children: o,
2126
+ timingFunction: i = "ease",
2127
+ onExit: s,
2128
+ onEntered: l,
2129
+ onEnter: f,
2130
+ onExited: u,
2131
+ enterDelay: d,
2132
+ exitDelay: m
2133
+ }) {
2134
+ const y = ln(), { transitionDuration: g, transitionStatus: $, transitionTimingFunction: h } = be({
2135
+ mounted: a,
2136
+ exitDuration: n,
2137
+ duration: e,
2138
+ timingFunction: i,
2139
+ onExit: s,
2140
+ onEntered: l,
2141
+ onEnter: f,
2142
+ onExited: u,
2143
+ enterDelay: d,
2144
+ exitDelay: m
2145
+ });
2146
+ return g === 0 || y === "test" ? a ? /* @__PURE__ */ p(pr, { children: o({}) }) : r ? o({ display: "none" }) : null : $ === "exited" ? r ? o({ display: "none" }) : null : /* @__PURE__ */ p(pr, { children: o(
2147
+ ge({
2148
+ transition: t,
2149
+ duration: g,
2150
+ state: $,
2151
+ timingFunction: h
2152
+ })
2153
+ ) });
2154
+ }
2155
+ lt.displayName = "@mantine/core/Transition";
2156
+ var T = { root: "m_5ae2e3c", barsLoader: "m_7a2bd4cd", bar: "m_870bb79", "bars-loader-animation": "m_5d2b3b9d", dotsLoader: "m_4e3f22d7", dot: "m_870c4af", "loader-dots-animation": "m_aac34a1", ovalLoader: "m_b34414df", "oval-loader-animation": "m_f8e89c4b" };
2157
+ const ft = P(({ className: r, ...t }, e) => /* @__PURE__ */ z(N, { component: "span", className: I(T.barsLoader, r), ...t, ref: e, children: [
2158
+ /* @__PURE__ */ p("span", { className: T.bar }),
2159
+ /* @__PURE__ */ p("span", { className: T.bar }),
2160
+ /* @__PURE__ */ p("span", { className: T.bar })
2161
+ ] }));
2162
+ ft.displayName = "@mantine/core/Bars";
2163
+ const dt = P(({ className: r, ...t }, e) => /* @__PURE__ */ z(N, { component: "span", className: I(T.dotsLoader, r), ...t, ref: e, children: [
2164
+ /* @__PURE__ */ p("span", { className: T.dot }),
2165
+ /* @__PURE__ */ p("span", { className: T.dot }),
2166
+ /* @__PURE__ */ p("span", { className: T.dot })
2167
+ ] }));
2168
+ dt.displayName = "@mantine/core/Dots";
2169
+ const ut = P(({ className: r, ...t }, e) => /* @__PURE__ */ p(N, { component: "span", className: I(T.ovalLoader, r), ...t, ref: e }));
2170
+ ut.displayName = "@mantine/core/Oval";
2171
+ const mt = {
2172
+ bars: ft,
2173
+ oval: ut,
2174
+ dots: dt
2175
+ }, he = {
2176
+ loaders: mt,
2177
+ type: "oval"
2178
+ }, $e = (r, { size: t, color: e }) => ({
2179
+ root: {
2180
+ "--loader-size": O(t, "loader-size"),
2181
+ "--loader-color": e ? gr(e, r) : void 0
2182
+ }
2183
+ }), er = Mr((r, t) => {
2184
+ const e = B("Loader", he, r), {
2185
+ size: n,
2186
+ color: a,
2187
+ type: o,
2188
+ vars: i,
2189
+ className: s,
2190
+ style: l,
2191
+ classNames: f,
2192
+ styles: u,
2193
+ unstyled: d,
2194
+ loaders: m,
2195
+ variant: y,
2196
+ children: g,
2197
+ ...$
2198
+ } = e, h = Q({
2199
+ name: "Loader",
2200
+ props: e,
2201
+ classes: T,
2202
+ className: s,
2203
+ style: l,
2204
+ classNames: f,
2205
+ styles: u,
2206
+ unstyled: d,
2207
+ vars: i,
2208
+ varsResolver: $e
2209
+ });
2210
+ return g ? /* @__PURE__ */ p(N, { ...h("root"), ref: t, ...$, children: g }) : /* @__PURE__ */ p(
2211
+ N,
2212
+ {
2213
+ ...h("root"),
2214
+ ref: t,
2215
+ component: m[o],
2216
+ variant: y,
2217
+ size: n,
2218
+ ...$
2219
+ }
2220
+ );
2221
+ });
2222
+ er.defaultLoaders = mt;
2223
+ er.classes = T;
2224
+ er.displayName = "@mantine/core/Loader";
2225
+ var Y = { root: "m_77c9d27d", inner: "m_80f1301b", label: "m_811560b9", section: "m_a74036a", loader: "m_a25b86ee", group: "m_80d6d844", groupSection: "m_70be2a01" };
2226
+ const Yr = {
2227
+ orientation: "horizontal"
2228
+ }, ve = (r, { borderWidth: t }) => ({
2229
+ group: { "--button-border-width": c(t) }
2230
+ }), Pr = Mr((r, t) => {
2231
+ const e = B("ButtonGroup", Yr, r), {
2232
+ className: n,
2233
+ style: a,
2234
+ classNames: o,
2235
+ styles: i,
2236
+ unstyled: s,
2237
+ orientation: l,
2238
+ vars: f,
2239
+ borderWidth: u,
2240
+ variant: d,
2241
+ mod: m,
2242
+ ...y
2243
+ } = B("ButtonGroup", Yr, r), g = Q({
2244
+ name: "ButtonGroup",
2245
+ props: e,
2246
+ classes: Y,
2247
+ className: n,
2248
+ style: a,
2249
+ classNames: o,
2250
+ styles: i,
2251
+ unstyled: s,
2252
+ vars: f,
2253
+ varsResolver: ve,
2254
+ rootSelector: "group"
2255
+ });
2256
+ return /* @__PURE__ */ p(
2257
+ N,
2258
+ {
2259
+ ...g("group"),
2260
+ ref: t,
2261
+ variant: d,
2262
+ mod: [{ "data-orientation": l }, m],
2263
+ role: "group",
2264
+ ...y
2265
+ }
2266
+ );
2267
+ });
2268
+ Pr.classes = Y;
2269
+ Pr.displayName = "@mantine/core/ButtonGroup";
2270
+ const Gr = {}, Se = (r, { radius: t, color: e, gradient: n, variant: a, autoContrast: o, size: i }) => {
2271
+ const s = r.variantColorResolver({
2272
+ color: e || r.primaryColor,
2273
+ theme: r,
2274
+ gradient: n,
2275
+ variant: a || "filled",
2276
+ autoContrast: o
2277
+ });
2278
+ return {
2279
+ groupSection: {
2280
+ "--section-height": O(i, "section-height"),
2281
+ "--section-padding-x": O(i, "section-padding-x"),
2282
+ "--section-fz": i != null && i.includes("compact") ? nr(i.replace("compact-", "")) : nr(i),
2283
+ "--section-radius": t === void 0 ? void 0 : qr(t),
2284
+ "--section-bg": e || a ? s.background : void 0,
2285
+ "--section-color": s.color,
2286
+ "--section-bd": e || a ? s.border : void 0
2287
+ }
2288
+ };
2289
+ }, _r = Mr((r, t) => {
2290
+ const e = B("ButtonGroupSection", Gr, r), {
2291
+ className: n,
2292
+ style: a,
2293
+ classNames: o,
2294
+ styles: i,
2295
+ unstyled: s,
2296
+ vars: l,
2297
+ variant: f,
2298
+ gradient: u,
2299
+ radius: d,
2300
+ autoContrast: m,
2301
+ ...y
2302
+ } = B("ButtonGroupSection", Gr, r), g = Q({
2303
+ name: "ButtonGroupSection",
2304
+ props: e,
2305
+ classes: Y,
2306
+ className: n,
2307
+ style: a,
2308
+ classNames: o,
2309
+ styles: i,
2310
+ unstyled: s,
2311
+ vars: l,
2312
+ varsResolver: Se,
2313
+ rootSelector: "groupSection"
2314
+ });
2315
+ return /* @__PURE__ */ p(N, { ...g("groupSection"), ref: t, variant: f, ...y });
2316
+ });
2317
+ _r.classes = Y;
2318
+ _r.displayName = "@mantine/core/ButtonGroupSection";
2319
+ const we = {
2320
+ in: { opacity: 1, transform: `translate(-50%, calc(-50% + ${c(1)}))` },
2321
+ out: { opacity: 0, transform: "translate(-50%, -200%)" },
2322
+ common: { transformOrigin: "center" },
2323
+ transitionProperty: "transform, opacity"
2324
+ }, Ce = {}, xe = (r, { radius: t, color: e, gradient: n, variant: a, size: o, justify: i, autoContrast: s }) => {
2325
+ const l = r.variantColorResolver({
2326
+ color: e || r.primaryColor,
2327
+ theme: r,
2328
+ gradient: n,
2329
+ variant: a || "filled",
2330
+ autoContrast: s
2331
+ });
2332
+ return {
2333
+ root: {
2334
+ "--button-justify": i,
2335
+ "--button-height": O(o, "button-height"),
2336
+ "--button-padding-x": O(o, "button-padding-x"),
2337
+ "--button-fz": o != null && o.includes("compact") ? nr(o.replace("compact-", "")) : nr(o),
2338
+ "--button-radius": t === void 0 ? void 0 : qr(t),
2339
+ "--button-bg": e || a ? l.background : void 0,
2340
+ "--button-hover": e || a ? l.hover : void 0,
2341
+ "--button-color": l.color,
2342
+ "--button-bd": e || a ? l.border : void 0,
2343
+ "--button-hover-color": e || a ? l.hoverColor : void 0
2344
+ }
2345
+ };
2346
+ }, K = st((r, t) => {
2347
+ const e = B("Button", Ce, r), {
2348
+ style: n,
2349
+ vars: a,
2350
+ className: o,
2351
+ color: i,
2352
+ disabled: s,
2353
+ children: l,
2354
+ leftSection: f,
2355
+ rightSection: u,
2356
+ fullWidth: d,
2357
+ variant: m,
2358
+ radius: y,
2359
+ loading: g,
2360
+ loaderProps: $,
2361
+ gradient: h,
2362
+ classNames: C,
2363
+ styles: x,
2364
+ unstyled: v,
2365
+ "data-disabled": w,
2366
+ autoContrast: L,
2367
+ mod: b,
2368
+ ...k
2369
+ } = e, S = Q({
2370
+ name: "Button",
2371
+ props: e,
2372
+ classes: Y,
2373
+ className: o,
2374
+ style: n,
2375
+ classNames: C,
2376
+ styles: x,
2377
+ unstyled: v,
2378
+ vars: a,
2379
+ varsResolver: xe
2380
+ }), E = !!f, or = !!u;
2381
+ return /* @__PURE__ */ z(
2382
+ Rr,
2383
+ {
2384
+ ref: t,
2385
+ ...S("root", { active: !s && !g && !w }),
2386
+ unstyled: v,
2387
+ variant: m,
2388
+ disabled: s || g,
2389
+ mod: [
2390
+ {
2391
+ disabled: s || w,
2392
+ loading: g,
2393
+ block: d,
2394
+ "with-left-section": E,
2395
+ "with-right-section": or
2396
+ },
2397
+ b
2398
+ ],
2399
+ ...k,
2400
+ children: [
2401
+ /* @__PURE__ */ p(lt, { mounted: !!g, transition: we, duration: 150, children: (ar) => /* @__PURE__ */ p(N, { component: "span", ...S("loader", { style: ar }), "aria-hidden": !0, children: /* @__PURE__ */ p(
2402
+ er,
2403
+ {
2404
+ color: "var(--button-color)",
2405
+ size: "calc(var(--button-height) / 1.8)",
2406
+ ...$
2407
+ }
2408
+ ) }) }),
2409
+ /* @__PURE__ */ z("span", { ...S("inner"), children: [
2410
+ f && /* @__PURE__ */ p(N, { component: "span", ...S("section"), mod: { position: "left" }, children: f }),
2411
+ /* @__PURE__ */ p(N, { component: "span", mod: { loading: g }, ...S("label"), children: l }),
2412
+ u && /* @__PURE__ */ p(N, { component: "span", ...S("section"), mod: { position: "right" }, children: u })
2413
+ ] })
2414
+ ]
2415
+ }
2416
+ );
2417
+ });
2418
+ K.classes = Y;
2419
+ K.displayName = "@mantine/core/Button";
2420
+ K.Group = Pr;
2421
+ K.GroupSection = _r;
2422
+ function Re({ children: r }) {
2423
+ return /* @__PURE__ */ p(nt, { children: r });
2424
+ }
2425
+ const Pe = (r) => /* @__PURE__ */ p(K, { ...r });
2426
+ export {
2427
+ Re as MantineProvider,
2428
+ Pe as TestButton
2429
+ };