@ienlab/react-library 0.17.0-beta.30 → 0.17.0-beta.31
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/my-library.es.js
CHANGED
|
@@ -1,82 +1,81 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import T from "
|
|
10
|
-
import { getDownloadURL as E, ref as ee, uploadBytes as te } from "firebase/storage";
|
|
1
|
+
import { createContext as e, createElement as t, useContext as n, useEffect as r, useMemo as i, useState as a } from "react";
|
|
2
|
+
import { AnimatePresence as o, Reorder as s, motion as c } from "motion/react";
|
|
3
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
4
|
+
import { useTranslation as d } from "react-i18next";
|
|
5
|
+
import { flexRender as f, getCoreRowModel as p, getExpandedRowModel as m, useReactTable as h } from "@tanstack/react-table";
|
|
6
|
+
import { documentId as g, getDoc as _, getDocs as v, onSnapshot as y, query as b, serverTimestamp as x, where as S } from "firebase/firestore";
|
|
7
|
+
import { useStore as C } from "zustand/react";
|
|
8
|
+
import w from "i18next";
|
|
9
|
+
import { getDownloadURL as T, ref as E, uploadBytes as ee } from "firebase/storage";
|
|
11
10
|
//#region \0rolldown/runtime.js
|
|
12
|
-
var
|
|
13
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i =
|
|
11
|
+
var D = Object.create, te = Object.defineProperty, ne = Object.getOwnPropertyDescriptor, O = Object.getOwnPropertyNames, k = Object.getPrototypeOf, A = Object.prototype.hasOwnProperty, j = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), re = (e, t, n, r) => {
|
|
12
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = O(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !A.call(e, s) && s !== n && te(e, s, {
|
|
14
13
|
get: ((e) => t[e]).bind(null, s),
|
|
15
|
-
enumerable: !(r =
|
|
14
|
+
enumerable: !(r = ne(t, s)) || r.enumerable
|
|
16
15
|
});
|
|
17
16
|
return e;
|
|
18
|
-
},
|
|
17
|
+
}, M = (e, t, n) => (n = e == null ? {} : D(k(e)), re(t || !e || !e.__esModule ? te(n, "default", {
|
|
19
18
|
value: e,
|
|
20
19
|
enumerable: !0
|
|
21
20
|
}) : n, e));
|
|
22
21
|
//#endregion
|
|
23
22
|
//#region src/components/image/CrossfadeImage.tsx
|
|
24
|
-
function
|
|
25
|
-
let [
|
|
23
|
+
function N({ placeholder: e, src: t, onLoadError: n, ...i }) {
|
|
24
|
+
let [s, u] = a(() => {
|
|
26
25
|
if (typeof window > "u" || !t) return !1;
|
|
27
26
|
let e = new Image();
|
|
28
27
|
return e.src = t, e.complete && e.naturalWidth > 0;
|
|
29
|
-
}), [d, f] =
|
|
30
|
-
return d !== t && (f(t),
|
|
28
|
+
}), [d, f] = a(t);
|
|
29
|
+
return d !== t && (f(t), u(!1)), r(() => {
|
|
31
30
|
if (!t) return;
|
|
32
31
|
let e = new Image();
|
|
33
|
-
return e.src = t, e.onload = () =>
|
|
32
|
+
return e.src = t, e.onload = () => u(!0), e.onerror = (e) => {
|
|
34
33
|
n ? n(e) : console.error("CrossfadeImage: Failed to load image", t);
|
|
35
34
|
}, e.complete && e.naturalWidth > 0 && e.onload(new Event("load")), () => {
|
|
36
35
|
e.onload = null, e.onerror = null;
|
|
37
36
|
};
|
|
38
|
-
}, [t, n]), /* @__PURE__ */
|
|
37
|
+
}, [t, n]), /* @__PURE__ */ l(o, { children: s && t ? /* @__PURE__ */ l(c.img, {
|
|
39
38
|
src: t,
|
|
40
|
-
...
|
|
39
|
+
...i,
|
|
41
40
|
initial: { opacity: 0 },
|
|
42
41
|
animate: { opacity: 1 },
|
|
43
42
|
exit: { opacity: 0 },
|
|
44
|
-
style: { ...
|
|
45
|
-
}, "loaded-image") : /* @__PURE__ */
|
|
43
|
+
style: { ...i.style }
|
|
44
|
+
}, "loaded-image") : /* @__PURE__ */ l(c.div, {
|
|
46
45
|
initial: { opacity: 1 },
|
|
47
46
|
transition: { duration: .3 },
|
|
48
|
-
style: { ...
|
|
49
|
-
children: e ?? /* @__PURE__ */
|
|
47
|
+
style: { ...i.style },
|
|
48
|
+
children: e ?? /* @__PURE__ */ l("div", { className: "w-full h-full bg-sidebar" })
|
|
50
49
|
}, "placeholder") });
|
|
51
50
|
}
|
|
52
51
|
//#endregion
|
|
53
52
|
//#region src/types/image.tsx
|
|
54
|
-
var
|
|
53
|
+
var P = ({ children: e }) => /* @__PURE__ */ l("div", { children: e }), F = (e) => /* @__PURE__ */ l("label", { ...e }), ie = ({ children: e }) => /* @__PURE__ */ l("p", { children: e }), I = (e) => /* @__PURE__ */ l("input", { ...e }), L = ({ children: e, ...t }) => /* @__PURE__ */ l("div", {
|
|
55
54
|
...t,
|
|
56
55
|
children: e
|
|
57
|
-
}),
|
|
56
|
+
}), ae = (e) => null, oe = ({ children: e, ...t }) => /* @__PURE__ */ l("div", {
|
|
58
57
|
...t,
|
|
59
58
|
children: e
|
|
60
|
-
}),
|
|
59
|
+
}), R = ({ children: e, type: t = "button", ...n }) => /* @__PURE__ */ l("button", {
|
|
61
60
|
type: t,
|
|
62
61
|
...n,
|
|
63
62
|
children: e
|
|
64
|
-
}),
|
|
63
|
+
}), se = ({ className: e }) => /* @__PURE__ */ l("span", {
|
|
65
64
|
className: e,
|
|
66
65
|
children: "×"
|
|
67
|
-
}),
|
|
68
|
-
function
|
|
69
|
-
|
|
66
|
+
}), z = ["ko", "en"], B = null;
|
|
67
|
+
function ce(e) {
|
|
68
|
+
B = e;
|
|
70
69
|
}
|
|
71
|
-
var
|
|
70
|
+
var V = {
|
|
72
71
|
get(e, t = "ko") {
|
|
73
|
-
let n =
|
|
74
|
-
return e[
|
|
72
|
+
let n = B?.();
|
|
73
|
+
return e[z.includes(n) ? n : t] ?? e[t];
|
|
75
74
|
},
|
|
76
75
|
ko(e) {
|
|
77
76
|
return e.ko;
|
|
78
77
|
}
|
|
79
|
-
},
|
|
78
|
+
}, le = class {
|
|
80
79
|
url = "";
|
|
81
80
|
file = null;
|
|
82
81
|
constructor(e = {}) {
|
|
@@ -91,19 +90,19 @@ var ge = {
|
|
|
91
90
|
get isEmpty() {
|
|
92
91
|
return !this.file && !this.url;
|
|
93
92
|
}
|
|
94
|
-
},
|
|
93
|
+
}, ue = (e) => /* @__PURE__ */ l("table", { ...e }), de = (e) => /* @__PURE__ */ l("thead", { ...e }), fe = (e) => /* @__PURE__ */ l("tbody", { ...e }), pe = (e) => /* @__PURE__ */ l("tr", { ...e }), me = (e) => /* @__PURE__ */ l("th", { ...e }), he = (e) => /* @__PURE__ */ l("td", { ...e }), ge = ({ open: e, children: t }) => e ? /* @__PURE__ */ l("div", { children: t }) : null, _e = (e) => /* @__PURE__ */ l("div", { ...e }), ve = (e) => /* @__PURE__ */ l("div", { ...e }), ye = (e) => /* @__PURE__ */ l("h2", { ...e }), be = (e) => /* @__PURE__ */ l("p", { ...e }), xe = (e) => /* @__PURE__ */ l("div", { ...e }), Se = (e) => /* @__PURE__ */ l("div", { children: "Calendar" }), Ce = (e) => /* @__PURE__ */ l("div", {
|
|
95
94
|
className: e.className,
|
|
96
95
|
children: e.children
|
|
97
|
-
}),
|
|
96
|
+
}), we = (e) => /* @__PURE__ */ l("div", {
|
|
98
97
|
className: e.className,
|
|
99
98
|
children: e.children
|
|
100
|
-
}),
|
|
99
|
+
}), Te = (e) => /* @__PURE__ */ l("input", { ...e }), Ee = (e) => /* @__PURE__ */ l("div", {
|
|
101
100
|
className: e.className,
|
|
102
101
|
children: e.children
|
|
103
|
-
}),
|
|
102
|
+
}), De = ({ className: e }) => /* @__PURE__ */ l("span", {
|
|
104
103
|
className: e,
|
|
105
104
|
children: "🕔"
|
|
106
|
-
}),
|
|
105
|
+
}), H = {
|
|
107
106
|
wrapper: {
|
|
108
107
|
display: "flex",
|
|
109
108
|
flexDirection: "column",
|
|
@@ -178,76 +177,76 @@ var ge = {
|
|
|
178
177
|
transition: "box-shadow 160ms ease"
|
|
179
178
|
}
|
|
180
179
|
};
|
|
181
|
-
function
|
|
182
|
-
let { t: p } =
|
|
183
|
-
...
|
|
180
|
+
function Oe({ id: e, label: t, uploadHintText: n, descriptionText: r, value: i, onChange: o, aspectRatio: s = "1 / 1", accept: c = "image/*", components: f }) {
|
|
181
|
+
let { t: p } = d(), m = f?.Field ?? P, h = f?.FieldLabel ?? F, g = f?.FieldDescription ?? ie, _ = f?.Input ?? I, v = {
|
|
182
|
+
...H.imageBox,
|
|
184
183
|
aspectRatio: s
|
|
185
|
-
}, [y, b] =
|
|
186
|
-
return /* @__PURE__ */
|
|
184
|
+
}, [y, b] = a(!1);
|
|
185
|
+
return /* @__PURE__ */ u(m, { children: [/* @__PURE__ */ l(h, {
|
|
187
186
|
htmlFor: e,
|
|
188
187
|
children: t
|
|
189
|
-
}), /* @__PURE__ */
|
|
190
|
-
style:
|
|
188
|
+
}), /* @__PURE__ */ u("div", {
|
|
189
|
+
style: H.wrapper,
|
|
191
190
|
children: [
|
|
192
|
-
/* @__PURE__ */
|
|
191
|
+
/* @__PURE__ */ l("label", {
|
|
193
192
|
htmlFor: e,
|
|
194
193
|
style: {
|
|
195
|
-
...
|
|
194
|
+
...H.trigger,
|
|
196
195
|
backgroundColor: y ? "var(--accent)" : "var(--card)"
|
|
197
196
|
},
|
|
198
197
|
onMouseEnter: () => b(!0),
|
|
199
198
|
onMouseLeave: () => b(!1),
|
|
200
|
-
children: /* @__PURE__ */
|
|
201
|
-
style:
|
|
202
|
-
children: [/* @__PURE__ */
|
|
203
|
-
style:
|
|
204
|
-
children: i.url ? /* @__PURE__ */
|
|
205
|
-
style:
|
|
206
|
-
children: /* @__PURE__ */
|
|
199
|
+
children: /* @__PURE__ */ u("div", {
|
|
200
|
+
style: H.card,
|
|
201
|
+
children: [/* @__PURE__ */ l("div", {
|
|
202
|
+
style: H.frame,
|
|
203
|
+
children: i.url ? /* @__PURE__ */ l("div", {
|
|
204
|
+
style: H.imageLayer,
|
|
205
|
+
children: /* @__PURE__ */ l("div", {
|
|
207
206
|
style: v,
|
|
208
|
-
children: /* @__PURE__ */
|
|
207
|
+
children: /* @__PURE__ */ l(N, {
|
|
209
208
|
src: i.url,
|
|
210
209
|
className: "",
|
|
211
210
|
alt: t,
|
|
212
|
-
style:
|
|
211
|
+
style: H.image
|
|
213
212
|
})
|
|
214
213
|
})
|
|
215
|
-
}) : /* @__PURE__ */
|
|
216
|
-
style:
|
|
217
|
-
children: [/* @__PURE__ */
|
|
218
|
-
style:
|
|
214
|
+
}) : /* @__PURE__ */ u("div", {
|
|
215
|
+
style: H.empty,
|
|
216
|
+
children: [/* @__PURE__ */ l("div", {
|
|
217
|
+
style: H.badge,
|
|
219
218
|
children: p("libs:add_assets")
|
|
220
|
-
}), /* @__PURE__ */
|
|
221
|
-
style:
|
|
219
|
+
}), /* @__PURE__ */ l("p", {
|
|
220
|
+
style: H.hint,
|
|
222
221
|
children: n
|
|
223
222
|
})]
|
|
224
223
|
})
|
|
225
|
-
}), /* @__PURE__ */
|
|
226
|
-
...
|
|
224
|
+
}), /* @__PURE__ */ l("div", { style: {
|
|
225
|
+
...H.overlay,
|
|
227
226
|
boxShadow: y ? "inset 0 0 0 2px rgba(59, 130, 246, 0.16)" : "inset 0 0 0 0 rgba(59, 130, 246, 0)"
|
|
228
227
|
} })]
|
|
229
228
|
})
|
|
230
229
|
}),
|
|
231
|
-
/* @__PURE__ */
|
|
230
|
+
/* @__PURE__ */ l(_, {
|
|
232
231
|
id: e,
|
|
233
232
|
type: "file",
|
|
234
233
|
accept: c,
|
|
235
234
|
onChange: (e) => {
|
|
236
235
|
let t = e.target.files?.[0];
|
|
237
|
-
t && (i.revokeIfNeeded(),
|
|
236
|
+
t && (i.revokeIfNeeded(), o(new le({
|
|
238
237
|
file: t,
|
|
239
238
|
url: URL.createObjectURL(t)
|
|
240
239
|
})), e.currentTarget.value = "");
|
|
241
240
|
},
|
|
242
241
|
style: { display: "none" }
|
|
243
242
|
}),
|
|
244
|
-
/* @__PURE__ */
|
|
243
|
+
/* @__PURE__ */ l(g, { children: r })
|
|
245
244
|
]
|
|
246
245
|
})] });
|
|
247
246
|
}
|
|
248
247
|
//#endregion
|
|
249
248
|
//#region src/components/image/ImageUploadSortableField.tsx
|
|
250
|
-
var
|
|
249
|
+
var U = {
|
|
251
250
|
wrapper: {
|
|
252
251
|
display: "flex",
|
|
253
252
|
flexDirection: "column",
|
|
@@ -351,61 +350,61 @@ var I = {
|
|
|
351
350
|
marginRight: "1rem"
|
|
352
351
|
}
|
|
353
352
|
};
|
|
354
|
-
function
|
|
355
|
-
let { t: p } =
|
|
353
|
+
function ke({ id: e, label: t, descriptionText: n, uploadHintText: r, items: i, onChange: a, aspectRatio: o = "1 / 1", accept: c = "image/*", components: f }) {
|
|
354
|
+
let { t: p } = d(), m = f?.Field ?? P, h = f?.FieldLabel ?? F, g = f?.FieldDescription ?? ie, _ = f?.Input ?? I, v = f?.ScrollArea ?? L, y = f?.ScrollBar ?? ae, b = f?.Card ?? oe, x = f?.Button ?? R, S = f?.CloseIcon ?? se, C = (e) => {
|
|
356
355
|
e.revokeIfNeeded(), a(i.filter((t) => t !== e));
|
|
357
356
|
}, w = (e) => {
|
|
358
|
-
!e || e.length === 0 || a([...i, ...Array.from(e).map((e) => new
|
|
357
|
+
!e || e.length === 0 || a([...i, ...Array.from(e).map((e) => new le({
|
|
359
358
|
file: e,
|
|
360
359
|
url: URL.createObjectURL(e)
|
|
361
360
|
}))]);
|
|
362
361
|
}, T = {
|
|
363
|
-
...
|
|
362
|
+
...U.card,
|
|
364
363
|
aspectRatio: o
|
|
365
364
|
}, E = {
|
|
366
|
-
...
|
|
365
|
+
...U.uploadCard,
|
|
367
366
|
aspectRatio: o
|
|
368
367
|
};
|
|
369
|
-
return /* @__PURE__ */
|
|
368
|
+
return /* @__PURE__ */ u(m, { children: [/* @__PURE__ */ l(h, {
|
|
370
369
|
htmlFor: e,
|
|
371
370
|
children: t
|
|
372
|
-
}), /* @__PURE__ */
|
|
373
|
-
style:
|
|
374
|
-
children: [/* @__PURE__ */
|
|
375
|
-
style:
|
|
376
|
-
children: [/* @__PURE__ */
|
|
377
|
-
style:
|
|
378
|
-
children: [/* @__PURE__ */
|
|
371
|
+
}), /* @__PURE__ */ u("div", {
|
|
372
|
+
style: U.wrapper,
|
|
373
|
+
children: [/* @__PURE__ */ u("div", {
|
|
374
|
+
style: U.outerBox,
|
|
375
|
+
children: [/* @__PURE__ */ u(v, {
|
|
376
|
+
style: U.scrollArea,
|
|
377
|
+
children: [/* @__PURE__ */ u(s.Group, {
|
|
379
378
|
axis: "x",
|
|
380
379
|
values: i,
|
|
381
380
|
onReorder: a,
|
|
382
381
|
layoutScroll: !0,
|
|
383
|
-
style:
|
|
384
|
-
children: [i.map((e) => /* @__PURE__ */
|
|
382
|
+
style: U.list,
|
|
383
|
+
children: [i.map((e) => /* @__PURE__ */ l(s.Item, {
|
|
385
384
|
value: e,
|
|
386
|
-
style:
|
|
387
|
-
children: /* @__PURE__ */
|
|
385
|
+
style: U.item,
|
|
386
|
+
children: /* @__PURE__ */ l(b, {
|
|
388
387
|
style: T,
|
|
389
|
-
children: /* @__PURE__ */
|
|
390
|
-
style:
|
|
391
|
-
children: [/* @__PURE__ */
|
|
388
|
+
children: /* @__PURE__ */ u("div", {
|
|
389
|
+
style: U.cardInner,
|
|
390
|
+
children: [/* @__PURE__ */ l(N, {
|
|
392
391
|
src: e.url,
|
|
393
392
|
className: "",
|
|
394
393
|
alt: t,
|
|
395
|
-
style:
|
|
394
|
+
style: U.image,
|
|
396
395
|
draggable: !1
|
|
397
|
-
}), /* @__PURE__ */
|
|
396
|
+
}), /* @__PURE__ */ l(x, {
|
|
398
397
|
type: "button",
|
|
399
|
-
style:
|
|
398
|
+
style: U.removeButton,
|
|
400
399
|
onClick: () => C(e),
|
|
401
|
-
children: /* @__PURE__ */
|
|
400
|
+
children: /* @__PURE__ */ l(S, {})
|
|
402
401
|
})]
|
|
403
402
|
})
|
|
404
403
|
})
|
|
405
|
-
}, e.url)), /* @__PURE__ */
|
|
404
|
+
}, e.url)), /* @__PURE__ */ l("label", {
|
|
406
405
|
htmlFor: e,
|
|
407
|
-
style:
|
|
408
|
-
children: /* @__PURE__ */
|
|
406
|
+
style: U.uploadLabel,
|
|
407
|
+
children: /* @__PURE__ */ l(b, {
|
|
409
408
|
style: E,
|
|
410
409
|
onMouseEnter: (e) => {
|
|
411
410
|
e.currentTarget.style.backgroundColor = "var(--accent)";
|
|
@@ -413,149 +412,149 @@ function Le({ id: e, label: t, descriptionText: n, uploadHintText: r, items: i,
|
|
|
413
412
|
onMouseLeave: (e) => {
|
|
414
413
|
e.currentTarget.style.backgroundColor = "var(--card)";
|
|
415
414
|
},
|
|
416
|
-
children: /* @__PURE__ */
|
|
417
|
-
style:
|
|
418
|
-
children: [/* @__PURE__ */
|
|
419
|
-
style:
|
|
415
|
+
children: /* @__PURE__ */ u("div", {
|
|
416
|
+
style: U.uploadCardInner,
|
|
417
|
+
children: [/* @__PURE__ */ l("div", {
|
|
418
|
+
style: U.badge,
|
|
420
419
|
children: p("libs:add_assets")
|
|
421
|
-
}), /* @__PURE__ */
|
|
422
|
-
style:
|
|
420
|
+
}), /* @__PURE__ */ l("p", {
|
|
421
|
+
style: U.hint,
|
|
423
422
|
children: r
|
|
424
423
|
})]
|
|
425
424
|
})
|
|
426
425
|
})
|
|
427
426
|
})]
|
|
428
|
-
}), /* @__PURE__ */
|
|
427
|
+
}), /* @__PURE__ */ l(y, {
|
|
429
428
|
orientation: "horizontal",
|
|
430
|
-
style:
|
|
429
|
+
style: U.scrollBar
|
|
431
430
|
})]
|
|
432
|
-
}), /* @__PURE__ */
|
|
431
|
+
}), /* @__PURE__ */ l(_, {
|
|
433
432
|
id: e,
|
|
434
433
|
type: "file",
|
|
435
|
-
accept:
|
|
434
|
+
accept: c,
|
|
436
435
|
multiple: !0,
|
|
437
436
|
onChange: (e) => {
|
|
438
437
|
w(e.target.files), e.currentTarget.value = "";
|
|
439
438
|
},
|
|
440
|
-
style:
|
|
439
|
+
style: U.hiddenInput
|
|
441
440
|
})]
|
|
442
|
-
}), /* @__PURE__ */
|
|
443
|
-
style:
|
|
444
|
-
children: /* @__PURE__ */
|
|
441
|
+
}), /* @__PURE__ */ l("div", {
|
|
442
|
+
style: U.description,
|
|
443
|
+
children: /* @__PURE__ */ l(g, { children: n })
|
|
445
444
|
})]
|
|
446
445
|
})] });
|
|
447
446
|
}
|
|
448
447
|
//#endregion
|
|
449
448
|
//#region node_modules/clsx/dist/clsx.mjs
|
|
450
|
-
function
|
|
449
|
+
function Ae(e) {
|
|
451
450
|
var t, n, r = "";
|
|
452
451
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
453
452
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
454
453
|
var i = e.length;
|
|
455
|
-
for (t = 0; t < i; t++) e[t] && (n =
|
|
454
|
+
for (t = 0; t < i; t++) e[t] && (n = Ae(e[t])) && (r && (r += " "), r += n);
|
|
456
455
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
457
456
|
return r;
|
|
458
457
|
}
|
|
459
|
-
function
|
|
460
|
-
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t =
|
|
458
|
+
function je() {
|
|
459
|
+
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Ae(e)) && (r && (r += " "), r += t);
|
|
461
460
|
return r;
|
|
462
461
|
}
|
|
463
462
|
//#endregion
|
|
464
463
|
//#region node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
465
|
-
var
|
|
464
|
+
var Me = (e, t) => {
|
|
466
465
|
let n = Array(e.length + t.length);
|
|
467
466
|
for (let t = 0; t < e.length; t++) n[t] = e[t];
|
|
468
467
|
for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
|
|
469
468
|
return n;
|
|
470
|
-
},
|
|
469
|
+
}, Ne = (e, t) => ({
|
|
471
470
|
classGroupId: e,
|
|
472
471
|
validator: t
|
|
473
|
-
}),
|
|
472
|
+
}), Pe = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
|
|
474
473
|
nextPart: e,
|
|
475
474
|
validators: t,
|
|
476
475
|
classGroupId: n
|
|
477
|
-
}),
|
|
478
|
-
let t =
|
|
476
|
+
}), Fe = "-", Ie = [], Le = "arbitrary..", Re = (e) => {
|
|
477
|
+
let t = Ve(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
|
|
479
478
|
return {
|
|
480
479
|
getClassGroupId: (e) => {
|
|
481
|
-
if (e.startsWith("[") && e.endsWith("]")) return
|
|
482
|
-
let n = e.split(
|
|
483
|
-
return
|
|
480
|
+
if (e.startsWith("[") && e.endsWith("]")) return Be(e);
|
|
481
|
+
let n = e.split(Fe);
|
|
482
|
+
return ze(n, +(n[0] === "" && n.length > 1), t);
|
|
484
483
|
},
|
|
485
484
|
getConflictingClassGroupIds: (e, t) => {
|
|
486
485
|
if (t) {
|
|
487
486
|
let t = r[e], i = n[e];
|
|
488
|
-
return t ? i ?
|
|
487
|
+
return t ? i ? Me(i, t) : t : i || Ie;
|
|
489
488
|
}
|
|
490
|
-
return n[e] ||
|
|
489
|
+
return n[e] || Ie;
|
|
491
490
|
}
|
|
492
491
|
};
|
|
493
|
-
},
|
|
492
|
+
}, ze = (e, t, n) => {
|
|
494
493
|
if (e.length - t === 0) return n.classGroupId;
|
|
495
494
|
let r = e[t], i = n.nextPart.get(r);
|
|
496
495
|
if (i) {
|
|
497
|
-
let n =
|
|
496
|
+
let n = ze(e, t + 1, i);
|
|
498
497
|
if (n) return n;
|
|
499
498
|
}
|
|
500
499
|
let a = n.validators;
|
|
501
500
|
if (a === null) return;
|
|
502
|
-
let o = t === 0 ? e.join(
|
|
501
|
+
let o = t === 0 ? e.join(Fe) : e.slice(t).join(Fe), s = a.length;
|
|
503
502
|
for (let e = 0; e < s; e++) {
|
|
504
503
|
let t = a[e];
|
|
505
504
|
if (t.validator(o)) return t.classGroupId;
|
|
506
505
|
}
|
|
507
|
-
},
|
|
506
|
+
}, Be = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
508
507
|
let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
|
|
509
|
-
return r ?
|
|
510
|
-
})(),
|
|
508
|
+
return r ? Le + r : void 0;
|
|
509
|
+
})(), Ve = (e) => {
|
|
511
510
|
let { theme: t, classGroups: n } = e;
|
|
512
|
-
return
|
|
513
|
-
},
|
|
514
|
-
let n =
|
|
511
|
+
return He(n, t);
|
|
512
|
+
}, He = (e, t) => {
|
|
513
|
+
let n = Pe();
|
|
515
514
|
for (let r in e) {
|
|
516
515
|
let i = e[r];
|
|
517
|
-
|
|
516
|
+
Ue(i, n, r, t);
|
|
518
517
|
}
|
|
519
518
|
return n;
|
|
520
|
-
},
|
|
519
|
+
}, Ue = (e, t, n, r) => {
|
|
521
520
|
let i = e.length;
|
|
522
521
|
for (let a = 0; a < i; a++) {
|
|
523
522
|
let i = e[a];
|
|
524
|
-
|
|
523
|
+
We(i, t, n, r);
|
|
525
524
|
}
|
|
526
|
-
},
|
|
525
|
+
}, We = (e, t, n, r) => {
|
|
527
526
|
if (typeof e == "string") {
|
|
528
|
-
|
|
527
|
+
Ge(e, t, n);
|
|
529
528
|
return;
|
|
530
529
|
}
|
|
531
530
|
if (typeof e == "function") {
|
|
532
|
-
|
|
531
|
+
Ke(e, t, n, r);
|
|
533
532
|
return;
|
|
534
533
|
}
|
|
535
|
-
|
|
536
|
-
},
|
|
537
|
-
let r = e === "" ? t :
|
|
534
|
+
qe(e, t, n, r);
|
|
535
|
+
}, Ge = (e, t, n) => {
|
|
536
|
+
let r = e === "" ? t : Je(t, e);
|
|
538
537
|
r.classGroupId = n;
|
|
539
|
-
},
|
|
540
|
-
if (
|
|
541
|
-
|
|
538
|
+
}, Ke = (e, t, n, r) => {
|
|
539
|
+
if (Ye(e)) {
|
|
540
|
+
Ue(e(r), t, n, r);
|
|
542
541
|
return;
|
|
543
542
|
}
|
|
544
|
-
t.validators === null && (t.validators = []), t.validators.push(
|
|
545
|
-
},
|
|
543
|
+
t.validators === null && (t.validators = []), t.validators.push(Ne(n, e));
|
|
544
|
+
}, qe = (e, t, n, r) => {
|
|
546
545
|
let i = Object.entries(e), a = i.length;
|
|
547
546
|
for (let e = 0; e < a; e++) {
|
|
548
547
|
let [a, o] = i[e];
|
|
549
|
-
|
|
548
|
+
Ue(o, Je(t, a), n, r);
|
|
550
549
|
}
|
|
551
|
-
},
|
|
552
|
-
let n = e, r = t.split(
|
|
550
|
+
}, Je = (e, t) => {
|
|
551
|
+
let n = e, r = t.split(Fe), i = r.length;
|
|
553
552
|
for (let e = 0; e < i; e++) {
|
|
554
553
|
let t = r[e], i = n.nextPart.get(t);
|
|
555
|
-
i || (i =
|
|
554
|
+
i || (i = Pe(), n.nextPart.set(t, i)), n = i;
|
|
556
555
|
}
|
|
557
556
|
return n;
|
|
558
|
-
},
|
|
557
|
+
}, Ye = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Xe = (e) => {
|
|
559
558
|
if (e < 1) return {
|
|
560
559
|
get: () => void 0,
|
|
561
560
|
set: () => {}
|
|
@@ -573,19 +572,19 @@ var Be = (e, t) => {
|
|
|
573
572
|
e in n ? n[e] = t : i(e, t);
|
|
574
573
|
}
|
|
575
574
|
};
|
|
576
|
-
},
|
|
575
|
+
}, Ze = "!", Qe = ":", $e = [], et = (e, t, n, r, i) => ({
|
|
577
576
|
modifiers: e,
|
|
578
577
|
hasImportantModifier: t,
|
|
579
578
|
baseClassName: n,
|
|
580
579
|
maybePostfixModifierPosition: r,
|
|
581
580
|
isExternal: i
|
|
582
|
-
}),
|
|
581
|
+
}), tt = (e) => {
|
|
583
582
|
let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
|
|
584
583
|
let t = [], n = 0, r = 0, i = 0, a, o = e.length;
|
|
585
584
|
for (let s = 0; s < o; s++) {
|
|
586
585
|
let o = e[s];
|
|
587
586
|
if (n === 0 && r === 0) {
|
|
588
|
-
if (o ===
|
|
587
|
+
if (o === Qe) {
|
|
589
588
|
t.push(e.slice(i, s)), i = s + 1;
|
|
590
589
|
continue;
|
|
591
590
|
}
|
|
@@ -597,13 +596,13 @@ var Be = (e, t) => {
|
|
|
597
596
|
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
|
|
598
597
|
}
|
|
599
598
|
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
|
|
600
|
-
s.endsWith(
|
|
599
|
+
s.endsWith(Ze) ? (c = s.slice(0, -1), l = !0) : s.startsWith(Ze) && (c = s.slice(1), l = !0);
|
|
601
600
|
let u = a && a > i ? a - i : void 0;
|
|
602
|
-
return
|
|
601
|
+
return et(t, l, c, u);
|
|
603
602
|
};
|
|
604
603
|
if (t) {
|
|
605
|
-
let e = t +
|
|
606
|
-
r = (t) => t.startsWith(e) ? n(t.slice(e.length)) :
|
|
604
|
+
let e = t + Qe, n = r;
|
|
605
|
+
r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : et($e, !1, t, void 0, !0);
|
|
607
606
|
}
|
|
608
607
|
if (n) {
|
|
609
608
|
let e = r;
|
|
@@ -613,7 +612,7 @@ var Be = (e, t) => {
|
|
|
613
612
|
});
|
|
614
613
|
}
|
|
615
614
|
return r;
|
|
616
|
-
},
|
|
615
|
+
}, nt = (e) => {
|
|
617
616
|
let t = /* @__PURE__ */ new Map();
|
|
618
617
|
return e.orderSensitiveModifiers.forEach((e, n) => {
|
|
619
618
|
t.set(e, 1e6 + n);
|
|
@@ -625,18 +624,18 @@ var Be = (e, t) => {
|
|
|
625
624
|
}
|
|
626
625
|
return r.length > 0 && (r.sort(), n.push(...r)), n;
|
|
627
626
|
};
|
|
628
|
-
},
|
|
629
|
-
cache:
|
|
630
|
-
parseClassName:
|
|
631
|
-
sortModifiers:
|
|
632
|
-
postfixLookupClassGroupIds:
|
|
633
|
-
...
|
|
634
|
-
}),
|
|
627
|
+
}, rt = (e) => ({
|
|
628
|
+
cache: Xe(e.cacheSize),
|
|
629
|
+
parseClassName: tt(e),
|
|
630
|
+
sortModifiers: nt(e),
|
|
631
|
+
postfixLookupClassGroupIds: it(e),
|
|
632
|
+
...Re(e)
|
|
633
|
+
}), it = (e) => {
|
|
635
634
|
let t = Object.create(null), n = e.postfixLookupClassGroups;
|
|
636
635
|
if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
|
|
637
636
|
return t;
|
|
638
|
-
},
|
|
639
|
-
let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(
|
|
637
|
+
}, at = /\s+/, ot = (e, t) => {
|
|
638
|
+
let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(at), l = "";
|
|
640
639
|
for (let e = c.length - 1; e >= 0; --e) {
|
|
641
640
|
let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
|
|
642
641
|
if (u) {
|
|
@@ -660,7 +659,7 @@ var Be = (e, t) => {
|
|
|
660
659
|
}
|
|
661
660
|
h = !1;
|
|
662
661
|
}
|
|
663
|
-
let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ +
|
|
662
|
+
let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + Ze : _, y = v + g;
|
|
664
663
|
if (s.indexOf(y) > -1) continue;
|
|
665
664
|
s.push(y);
|
|
666
665
|
let b = i(g, h);
|
|
@@ -671,34 +670,34 @@ var Be = (e, t) => {
|
|
|
671
670
|
l = t + (l.length > 0 ? " " + l : l);
|
|
672
671
|
}
|
|
673
672
|
return l;
|
|
674
|
-
},
|
|
673
|
+
}, st = (...e) => {
|
|
675
674
|
let t = 0, n, r, i = "";
|
|
676
|
-
for (; t < e.length;) (n = e[t++]) && (r =
|
|
675
|
+
for (; t < e.length;) (n = e[t++]) && (r = ct(n)) && (i && (i += " "), i += r);
|
|
677
676
|
return i;
|
|
678
|
-
},
|
|
677
|
+
}, ct = (e) => {
|
|
679
678
|
if (typeof e == "string") return e;
|
|
680
679
|
let t, n = "";
|
|
681
|
-
for (let r = 0; r < e.length; r++) e[r] && (t =
|
|
680
|
+
for (let r = 0; r < e.length; r++) e[r] && (t = ct(e[r])) && (n && (n += " "), n += t);
|
|
682
681
|
return n;
|
|
683
|
-
},
|
|
684
|
-
let n, r, i, a, o = (o) => (n =
|
|
682
|
+
}, lt = (e, ...t) => {
|
|
683
|
+
let n, r, i, a, o = (o) => (n = rt(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
|
|
685
684
|
let t = r(e);
|
|
686
685
|
if (t) return t;
|
|
687
|
-
let a =
|
|
686
|
+
let a = ot(e, n);
|
|
688
687
|
return i(e, a), a;
|
|
689
688
|
};
|
|
690
|
-
return a = o, (...e) => a(
|
|
691
|
-
},
|
|
692
|
-
let t = (t) => t[e] ||
|
|
689
|
+
return a = o, (...e) => a(st(...e));
|
|
690
|
+
}, ut = [], W = (e) => {
|
|
691
|
+
let t = (t) => t[e] || ut;
|
|
693
692
|
return t.isThemeGetter = !0, t;
|
|
694
|
-
},
|
|
695
|
-
let r =
|
|
693
|
+
}, dt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, ft = /^\((?:(\w[\w-]*):)?(.+)\)$/i, pt = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, mt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ht = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, gt = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, _t = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, vt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, G = (e) => pt.test(e), K = (e) => !!e && !Number.isNaN(Number(e)), q = (e) => !!e && Number.isInteger(Number(e)), yt = (e) => e.endsWith("%") && K(e.slice(0, -1)), J = (e) => mt.test(e), bt = () => !0, xt = (e) => ht.test(e) && !gt.test(e), St = () => !1, Ct = (e) => _t.test(e), wt = (e) => vt.test(e), Tt = (e) => !Y(e) && !Z(e), Et = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), Dt = (e) => Q(e, Ut, St), Y = (e) => dt.test(e), X = (e) => Q(e, Wt, xt), Ot = (e) => Q(e, Gt, K), kt = (e) => Q(e, qt, bt), At = (e) => Q(e, Kt, St), jt = (e) => Q(e, Vt, St), Mt = (e) => Q(e, Ht, wt), Nt = (e) => Q(e, Jt, Ct), Z = (e) => ft.test(e), Pt = (e) => $(e, Wt), Ft = (e) => $(e, Kt), It = (e) => $(e, Vt), Lt = (e) => $(e, Ut), Rt = (e) => $(e, Ht), zt = (e) => $(e, Jt, !0), Bt = (e) => $(e, qt, !0), Q = (e, t, n) => {
|
|
694
|
+
let r = dt.exec(e);
|
|
696
695
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
697
|
-
},
|
|
698
|
-
let r =
|
|
696
|
+
}, $ = (e, t, n = !1) => {
|
|
697
|
+
let r = ft.exec(e);
|
|
699
698
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
700
|
-
},
|
|
701
|
-
let e =
|
|
699
|
+
}, Vt = (e) => e === "position" || e === "percentage", Ht = (e) => e === "image" || e === "url", Ut = (e) => e === "length" || e === "size" || e === "bg-size", Wt = (e) => e === "length", Gt = (e) => e === "number", Kt = (e) => e === "family-name", qt = (e) => e === "number" || e === "weight", Jt = (e) => e === "shadow", Yt = /* @__PURE__ */ lt(() => {
|
|
700
|
+
let e = W("color"), t = W("font"), n = W("text"), r = W("font-weight"), i = W("tracking"), a = W("leading"), o = W("breakpoint"), s = W("container"), c = W("spacing"), l = W("radius"), u = W("shadow"), d = W("inset-shadow"), f = W("text-shadow"), p = W("drop-shadow"), m = W("blur"), h = W("perspective"), g = W("aspect"), _ = W("ease"), v = W("animate"), y = () => [
|
|
702
701
|
"auto",
|
|
703
702
|
"avoid",
|
|
704
703
|
"all",
|
|
@@ -723,8 +722,8 @@ var Be = (e, t) => {
|
|
|
723
722
|
"left-bottom"
|
|
724
723
|
], x = () => [
|
|
725
724
|
...b(),
|
|
726
|
-
|
|
727
|
-
|
|
725
|
+
Z,
|
|
726
|
+
Y
|
|
728
727
|
], S = () => [
|
|
729
728
|
"auto",
|
|
730
729
|
"hidden",
|
|
@@ -736,44 +735,44 @@ var Be = (e, t) => {
|
|
|
736
735
|
"contain",
|
|
737
736
|
"none"
|
|
738
737
|
], w = () => [
|
|
739
|
-
|
|
740
|
-
|
|
738
|
+
Z,
|
|
739
|
+
Y,
|
|
741
740
|
c
|
|
742
741
|
], T = () => [
|
|
743
|
-
|
|
742
|
+
G,
|
|
744
743
|
"full",
|
|
745
744
|
"auto",
|
|
746
745
|
...w()
|
|
747
746
|
], E = () => [
|
|
748
|
-
|
|
747
|
+
q,
|
|
749
748
|
"none",
|
|
750
749
|
"subgrid",
|
|
751
|
-
|
|
752
|
-
|
|
750
|
+
Z,
|
|
751
|
+
Y
|
|
753
752
|
], ee = () => [
|
|
754
753
|
"auto",
|
|
755
754
|
{ span: [
|
|
756
755
|
"full",
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
756
|
+
q,
|
|
757
|
+
Z,
|
|
758
|
+
Y
|
|
760
759
|
] },
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
],
|
|
765
|
-
|
|
760
|
+
q,
|
|
761
|
+
Z,
|
|
762
|
+
Y
|
|
763
|
+
], D = () => [
|
|
764
|
+
q,
|
|
766
765
|
"auto",
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
],
|
|
766
|
+
Z,
|
|
767
|
+
Y
|
|
768
|
+
], te = () => [
|
|
770
769
|
"auto",
|
|
771
770
|
"min",
|
|
772
771
|
"max",
|
|
773
772
|
"fr",
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
],
|
|
773
|
+
Z,
|
|
774
|
+
Y
|
|
775
|
+
], ne = () => [
|
|
777
776
|
"start",
|
|
778
777
|
"end",
|
|
779
778
|
"center",
|
|
@@ -792,7 +791,7 @@ var Be = (e, t) => {
|
|
|
792
791
|
"center-safe",
|
|
793
792
|
"end-safe"
|
|
794
793
|
], k = () => ["auto", ...w()], A = () => [
|
|
795
|
-
|
|
794
|
+
G,
|
|
796
795
|
"auto",
|
|
797
796
|
"full",
|
|
798
797
|
"dvw",
|
|
@@ -805,8 +804,8 @@ var Be = (e, t) => {
|
|
|
805
804
|
"max",
|
|
806
805
|
"fit",
|
|
807
806
|
...w()
|
|
808
|
-
],
|
|
809
|
-
|
|
807
|
+
], j = () => [
|
|
808
|
+
G,
|
|
810
809
|
"screen",
|
|
811
810
|
"full",
|
|
812
811
|
"dvw",
|
|
@@ -816,8 +815,8 @@ var Be = (e, t) => {
|
|
|
816
815
|
"max",
|
|
817
816
|
"fit",
|
|
818
817
|
...w()
|
|
819
|
-
],
|
|
820
|
-
|
|
818
|
+
], re = () => [
|
|
819
|
+
G,
|
|
821
820
|
"screen",
|
|
822
821
|
"full",
|
|
823
822
|
"lh",
|
|
@@ -828,50 +827,50 @@ var Be = (e, t) => {
|
|
|
828
827
|
"max",
|
|
829
828
|
"fit",
|
|
830
829
|
...w()
|
|
831
|
-
],
|
|
830
|
+
], M = () => [
|
|
832
831
|
e,
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
],
|
|
832
|
+
Z,
|
|
833
|
+
Y
|
|
834
|
+
], N = () => [
|
|
836
835
|
...b(),
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
{ position: [
|
|
840
|
-
],
|
|
836
|
+
It,
|
|
837
|
+
jt,
|
|
838
|
+
{ position: [Z, Y] }
|
|
839
|
+
], P = () => ["no-repeat", { repeat: [
|
|
841
840
|
"",
|
|
842
841
|
"x",
|
|
843
842
|
"y",
|
|
844
843
|
"space",
|
|
845
844
|
"round"
|
|
846
|
-
] }],
|
|
845
|
+
] }], F = () => [
|
|
847
846
|
"auto",
|
|
848
847
|
"cover",
|
|
849
848
|
"contain",
|
|
850
|
-
|
|
851
|
-
Ft,
|
|
852
|
-
{ size: [W, H] }
|
|
853
|
-
], ce = () => [
|
|
849
|
+
Lt,
|
|
854
850
|
Dt,
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
851
|
+
{ size: [Z, Y] }
|
|
852
|
+
], ie = () => [
|
|
853
|
+
yt,
|
|
854
|
+
Pt,
|
|
855
|
+
X
|
|
856
|
+
], I = () => [
|
|
858
857
|
"",
|
|
859
858
|
"none",
|
|
860
859
|
"full",
|
|
861
860
|
l,
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
],
|
|
861
|
+
Z,
|
|
862
|
+
Y
|
|
863
|
+
], L = () => [
|
|
865
864
|
"",
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
],
|
|
865
|
+
K,
|
|
866
|
+
Pt,
|
|
867
|
+
X
|
|
868
|
+
], ae = () => [
|
|
870
869
|
"solid",
|
|
871
870
|
"dashed",
|
|
872
871
|
"dotted",
|
|
873
872
|
"double"
|
|
874
|
-
],
|
|
873
|
+
], oe = () => [
|
|
875
874
|
"normal",
|
|
876
875
|
"multiply",
|
|
877
876
|
"screen",
|
|
@@ -888,33 +887,33 @@ var Be = (e, t) => {
|
|
|
888
887
|
"saturation",
|
|
889
888
|
"color",
|
|
890
889
|
"luminosity"
|
|
891
|
-
],
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
],
|
|
890
|
+
], R = () => [
|
|
891
|
+
K,
|
|
892
|
+
yt,
|
|
893
|
+
It,
|
|
894
|
+
jt
|
|
895
|
+
], se = () => [
|
|
897
896
|
"",
|
|
898
897
|
"none",
|
|
899
898
|
m,
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
],
|
|
899
|
+
Z,
|
|
900
|
+
Y
|
|
901
|
+
], z = () => [
|
|
903
902
|
"none",
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
],
|
|
903
|
+
K,
|
|
904
|
+
Z,
|
|
905
|
+
Y
|
|
906
|
+
], B = () => [
|
|
908
907
|
"none",
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
],
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
],
|
|
917
|
-
|
|
908
|
+
K,
|
|
909
|
+
Z,
|
|
910
|
+
Y
|
|
911
|
+
], ce = () => [
|
|
912
|
+
K,
|
|
913
|
+
Z,
|
|
914
|
+
Y
|
|
915
|
+
], V = () => [
|
|
916
|
+
G,
|
|
918
917
|
"full",
|
|
919
918
|
...w()
|
|
920
919
|
];
|
|
@@ -928,17 +927,17 @@ var Be = (e, t) => {
|
|
|
928
927
|
"bounce"
|
|
929
928
|
],
|
|
930
929
|
aspect: ["video"],
|
|
931
|
-
blur: [
|
|
932
|
-
breakpoint: [
|
|
933
|
-
color: [
|
|
934
|
-
container: [
|
|
935
|
-
"drop-shadow": [
|
|
930
|
+
blur: [J],
|
|
931
|
+
breakpoint: [J],
|
|
932
|
+
color: [bt],
|
|
933
|
+
container: [J],
|
|
934
|
+
"drop-shadow": [J],
|
|
936
935
|
ease: [
|
|
937
936
|
"in",
|
|
938
937
|
"out",
|
|
939
938
|
"in-out"
|
|
940
939
|
],
|
|
941
|
-
font: [
|
|
940
|
+
font: [Tt],
|
|
942
941
|
"font-weight": [
|
|
943
942
|
"thin",
|
|
944
943
|
"extralight",
|
|
@@ -950,7 +949,7 @@ var Be = (e, t) => {
|
|
|
950
949
|
"extrabold",
|
|
951
950
|
"black"
|
|
952
951
|
],
|
|
953
|
-
"inset-shadow": [
|
|
952
|
+
"inset-shadow": [J],
|
|
954
953
|
leading: [
|
|
955
954
|
"none",
|
|
956
955
|
"tight",
|
|
@@ -967,11 +966,11 @@ var Be = (e, t) => {
|
|
|
967
966
|
"distant",
|
|
968
967
|
"none"
|
|
969
968
|
],
|
|
970
|
-
radius: [
|
|
971
|
-
shadow: [
|
|
972
|
-
spacing: ["px",
|
|
973
|
-
text: [
|
|
974
|
-
"text-shadow": [
|
|
969
|
+
radius: [J],
|
|
970
|
+
shadow: [J],
|
|
971
|
+
spacing: ["px", K],
|
|
972
|
+
text: [J],
|
|
973
|
+
"text-shadow": [J],
|
|
975
974
|
tracking: [
|
|
976
975
|
"tighter",
|
|
977
976
|
"tight",
|
|
@@ -985,9 +984,9 @@ var Be = (e, t) => {
|
|
|
985
984
|
aspect: [{ aspect: [
|
|
986
985
|
"auto",
|
|
987
986
|
"square",
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
987
|
+
G,
|
|
988
|
+
Y,
|
|
989
|
+
Z,
|
|
991
990
|
g
|
|
992
991
|
] }],
|
|
993
992
|
container: ["container"],
|
|
@@ -995,14 +994,14 @@ var Be = (e, t) => {
|
|
|
995
994
|
"",
|
|
996
995
|
"normal",
|
|
997
996
|
"size",
|
|
998
|
-
|
|
999
|
-
|
|
997
|
+
Z,
|
|
998
|
+
Y
|
|
1000
999
|
] }],
|
|
1001
|
-
"container-named": [
|
|
1000
|
+
"container-named": [Et],
|
|
1002
1001
|
columns: [{ columns: [
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1002
|
+
K,
|
|
1003
|
+
Y,
|
|
1004
|
+
Z,
|
|
1006
1005
|
s
|
|
1007
1006
|
] }],
|
|
1008
1007
|
"break-after": [{ "break-after": y() }],
|
|
@@ -1099,13 +1098,13 @@ var Be = (e, t) => {
|
|
|
1099
1098
|
"collapse"
|
|
1100
1099
|
],
|
|
1101
1100
|
z: [{ z: [
|
|
1102
|
-
|
|
1101
|
+
q,
|
|
1103
1102
|
"auto",
|
|
1104
|
-
|
|
1105
|
-
|
|
1103
|
+
Z,
|
|
1104
|
+
Y
|
|
1106
1105
|
] }],
|
|
1107
1106
|
basis: [{ basis: [
|
|
1108
|
-
|
|
1107
|
+
G,
|
|
1109
1108
|
"full",
|
|
1110
1109
|
"auto",
|
|
1111
1110
|
s,
|
|
@@ -1123,41 +1122,41 @@ var Be = (e, t) => {
|
|
|
1123
1122
|
"wrap-reverse"
|
|
1124
1123
|
] }],
|
|
1125
1124
|
flex: [{ flex: [
|
|
1126
|
-
|
|
1127
|
-
|
|
1125
|
+
K,
|
|
1126
|
+
G,
|
|
1128
1127
|
"auto",
|
|
1129
1128
|
"initial",
|
|
1130
1129
|
"none",
|
|
1131
|
-
|
|
1130
|
+
Y
|
|
1132
1131
|
] }],
|
|
1133
1132
|
grow: [{ grow: [
|
|
1134
1133
|
"",
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1134
|
+
K,
|
|
1135
|
+
Z,
|
|
1136
|
+
Y
|
|
1138
1137
|
] }],
|
|
1139
1138
|
shrink: [{ shrink: [
|
|
1140
1139
|
"",
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1140
|
+
K,
|
|
1141
|
+
Z,
|
|
1142
|
+
Y
|
|
1144
1143
|
] }],
|
|
1145
1144
|
order: [{ order: [
|
|
1146
|
-
|
|
1145
|
+
q,
|
|
1147
1146
|
"first",
|
|
1148
1147
|
"last",
|
|
1149
1148
|
"none",
|
|
1150
|
-
|
|
1151
|
-
|
|
1149
|
+
Z,
|
|
1150
|
+
Y
|
|
1152
1151
|
] }],
|
|
1153
1152
|
"grid-cols": [{ "grid-cols": E() }],
|
|
1154
1153
|
"col-start-end": [{ col: ee() }],
|
|
1155
|
-
"col-start": [{ "col-start":
|
|
1156
|
-
"col-end": [{ "col-end":
|
|
1154
|
+
"col-start": [{ "col-start": D() }],
|
|
1155
|
+
"col-end": [{ "col-end": D() }],
|
|
1157
1156
|
"grid-rows": [{ "grid-rows": E() }],
|
|
1158
1157
|
"row-start-end": [{ row: ee() }],
|
|
1159
|
-
"row-start": [{ "row-start":
|
|
1160
|
-
"row-end": [{ "row-end":
|
|
1158
|
+
"row-start": [{ "row-start": D() }],
|
|
1159
|
+
"row-end": [{ "row-end": D() }],
|
|
1161
1160
|
"grid-flow": [{ "grid-flow": [
|
|
1162
1161
|
"row",
|
|
1163
1162
|
"col",
|
|
@@ -1165,22 +1164,22 @@ var Be = (e, t) => {
|
|
|
1165
1164
|
"row-dense",
|
|
1166
1165
|
"col-dense"
|
|
1167
1166
|
] }],
|
|
1168
|
-
"auto-cols": [{ "auto-cols":
|
|
1169
|
-
"auto-rows": [{ "auto-rows":
|
|
1167
|
+
"auto-cols": [{ "auto-cols": te() }],
|
|
1168
|
+
"auto-rows": [{ "auto-rows": te() }],
|
|
1170
1169
|
gap: [{ gap: w() }],
|
|
1171
1170
|
"gap-x": [{ "gap-x": w() }],
|
|
1172
1171
|
"gap-y": [{ "gap-y": w() }],
|
|
1173
|
-
"justify-content": [{ justify: [...
|
|
1172
|
+
"justify-content": [{ justify: [...ne(), "normal"] }],
|
|
1174
1173
|
"justify-items": [{ "justify-items": [...O(), "normal"] }],
|
|
1175
1174
|
"justify-self": [{ "justify-self": ["auto", ...O()] }],
|
|
1176
|
-
"align-content": [{ content: ["normal", ...
|
|
1175
|
+
"align-content": [{ content: ["normal", ...ne()] }],
|
|
1177
1176
|
"align-items": [{ items: [...O(), { baseline: ["", "last"] }] }],
|
|
1178
1177
|
"align-self": [{ self: [
|
|
1179
1178
|
"auto",
|
|
1180
1179
|
...O(),
|
|
1181
1180
|
{ baseline: ["", "last"] }
|
|
1182
1181
|
] }],
|
|
1183
|
-
"place-content": [{ "place-content":
|
|
1182
|
+
"place-content": [{ "place-content": ne() }],
|
|
1184
1183
|
"place-items": [{ "place-items": [...O(), "baseline"] }],
|
|
1185
1184
|
"place-self": [{ "place-self": ["auto", ...O()] }],
|
|
1186
1185
|
p: [{ p: w() }],
|
|
@@ -1210,12 +1209,12 @@ var Be = (e, t) => {
|
|
|
1210
1209
|
"space-y": [{ "space-y": w() }],
|
|
1211
1210
|
"space-y-reverse": ["space-y-reverse"],
|
|
1212
1211
|
size: [{ size: A() }],
|
|
1213
|
-
"inline-size": [{ inline: ["auto", ...
|
|
1214
|
-
"min-inline-size": [{ "min-inline": ["auto", ...
|
|
1215
|
-
"max-inline-size": [{ "max-inline": ["none", ...
|
|
1216
|
-
"block-size": [{ block: ["auto", ...
|
|
1217
|
-
"min-block-size": [{ "min-block": ["auto", ...
|
|
1218
|
-
"max-block-size": [{ "max-block": ["none", ...
|
|
1212
|
+
"inline-size": [{ inline: ["auto", ...j()] }],
|
|
1213
|
+
"min-inline-size": [{ "min-inline": ["auto", ...j()] }],
|
|
1214
|
+
"max-inline-size": [{ "max-inline": ["none", ...j()] }],
|
|
1215
|
+
"block-size": [{ block: ["auto", ...re()] }],
|
|
1216
|
+
"min-block-size": [{ "min-block": ["auto", ...re()] }],
|
|
1217
|
+
"max-block-size": [{ "max-block": ["none", ...re()] }],
|
|
1219
1218
|
w: [{ w: [
|
|
1220
1219
|
s,
|
|
1221
1220
|
"screen",
|
|
@@ -1254,15 +1253,15 @@ var Be = (e, t) => {
|
|
|
1254
1253
|
"font-size": [{ text: [
|
|
1255
1254
|
"base",
|
|
1256
1255
|
n,
|
|
1257
|
-
|
|
1258
|
-
|
|
1256
|
+
Pt,
|
|
1257
|
+
X
|
|
1259
1258
|
] }],
|
|
1260
1259
|
"font-smoothing": ["antialiased", "subpixel-antialiased"],
|
|
1261
1260
|
"font-style": ["italic", "not-italic"],
|
|
1262
1261
|
"font-weight": [{ font: [
|
|
1263
1262
|
r,
|
|
1264
|
-
|
|
1265
|
-
|
|
1263
|
+
Bt,
|
|
1264
|
+
kt
|
|
1266
1265
|
] }],
|
|
1267
1266
|
"font-stretch": [{ "font-stretch": [
|
|
1268
1267
|
"ultra-condensed",
|
|
@@ -1274,15 +1273,15 @@ var Be = (e, t) => {
|
|
|
1274
1273
|
"expanded",
|
|
1275
1274
|
"extra-expanded",
|
|
1276
1275
|
"ultra-expanded",
|
|
1277
|
-
|
|
1278
|
-
|
|
1276
|
+
yt,
|
|
1277
|
+
Y
|
|
1279
1278
|
] }],
|
|
1280
1279
|
"font-family": [{ font: [
|
|
1281
|
-
|
|
1282
|
-
|
|
1280
|
+
Ft,
|
|
1281
|
+
At,
|
|
1283
1282
|
t
|
|
1284
1283
|
] }],
|
|
1285
|
-
"font-features": [{ "font-features": [
|
|
1284
|
+
"font-features": [{ "font-features": [Y] }],
|
|
1286
1285
|
"fvn-normal": ["normal-nums"],
|
|
1287
1286
|
"fvn-ordinal": ["ordinal"],
|
|
1288
1287
|
"fvn-slashed-zero": ["slashed-zero"],
|
|
@@ -1291,28 +1290,28 @@ var Be = (e, t) => {
|
|
|
1291
1290
|
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
|
|
1292
1291
|
tracking: [{ tracking: [
|
|
1293
1292
|
i,
|
|
1294
|
-
|
|
1295
|
-
|
|
1293
|
+
Z,
|
|
1294
|
+
Y
|
|
1296
1295
|
] }],
|
|
1297
1296
|
"line-clamp": [{ "line-clamp": [
|
|
1298
|
-
|
|
1297
|
+
K,
|
|
1299
1298
|
"none",
|
|
1300
|
-
|
|
1301
|
-
|
|
1299
|
+
Z,
|
|
1300
|
+
Ot
|
|
1302
1301
|
] }],
|
|
1303
1302
|
leading: [{ leading: [a, ...w()] }],
|
|
1304
1303
|
"list-image": [{ "list-image": [
|
|
1305
1304
|
"none",
|
|
1306
|
-
|
|
1307
|
-
|
|
1305
|
+
Z,
|
|
1306
|
+
Y
|
|
1308
1307
|
] }],
|
|
1309
1308
|
"list-style-position": [{ list: ["inside", "outside"] }],
|
|
1310
1309
|
"list-style-type": [{ list: [
|
|
1311
1310
|
"disc",
|
|
1312
1311
|
"decimal",
|
|
1313
1312
|
"none",
|
|
1314
|
-
|
|
1315
|
-
|
|
1313
|
+
Z,
|
|
1314
|
+
Y
|
|
1316
1315
|
] }],
|
|
1317
1316
|
"text-alignment": [{ text: [
|
|
1318
1317
|
"left",
|
|
@@ -1322,28 +1321,28 @@ var Be = (e, t) => {
|
|
|
1322
1321
|
"start",
|
|
1323
1322
|
"end"
|
|
1324
1323
|
] }],
|
|
1325
|
-
"placeholder-color": [{ placeholder:
|
|
1326
|
-
"text-color": [{ text:
|
|
1324
|
+
"placeholder-color": [{ placeholder: M() }],
|
|
1325
|
+
"text-color": [{ text: M() }],
|
|
1327
1326
|
"text-decoration": [
|
|
1328
1327
|
"underline",
|
|
1329
1328
|
"overline",
|
|
1330
1329
|
"line-through",
|
|
1331
1330
|
"no-underline"
|
|
1332
1331
|
],
|
|
1333
|
-
"text-decoration-style": [{ decoration: [...
|
|
1332
|
+
"text-decoration-style": [{ decoration: [...ae(), "wavy"] }],
|
|
1334
1333
|
"text-decoration-thickness": [{ decoration: [
|
|
1335
|
-
|
|
1334
|
+
K,
|
|
1336
1335
|
"from-font",
|
|
1337
1336
|
"auto",
|
|
1338
|
-
|
|
1339
|
-
|
|
1337
|
+
Z,
|
|
1338
|
+
X
|
|
1340
1339
|
] }],
|
|
1341
|
-
"text-decoration-color": [{ decoration:
|
|
1340
|
+
"text-decoration-color": [{ decoration: M() }],
|
|
1342
1341
|
"underline-offset": [{ "underline-offset": [
|
|
1343
|
-
|
|
1342
|
+
K,
|
|
1344
1343
|
"auto",
|
|
1345
|
-
|
|
1346
|
-
|
|
1344
|
+
Z,
|
|
1345
|
+
Y
|
|
1347
1346
|
] }],
|
|
1348
1347
|
"text-transform": [
|
|
1349
1348
|
"uppercase",
|
|
@@ -1364,9 +1363,9 @@ var Be = (e, t) => {
|
|
|
1364
1363
|
] }],
|
|
1365
1364
|
indent: [{ indent: w() }],
|
|
1366
1365
|
"tab-size": [{ tab: [
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1366
|
+
q,
|
|
1367
|
+
Z,
|
|
1368
|
+
Y
|
|
1370
1369
|
] }],
|
|
1371
1370
|
"vertical-align": [{ align: [
|
|
1372
1371
|
"baseline",
|
|
@@ -1377,8 +1376,8 @@ var Be = (e, t) => {
|
|
|
1377
1376
|
"text-bottom",
|
|
1378
1377
|
"sub",
|
|
1379
1378
|
"super",
|
|
1380
|
-
|
|
1381
|
-
|
|
1379
|
+
Z,
|
|
1380
|
+
Y
|
|
1382
1381
|
] }],
|
|
1383
1382
|
whitespace: [{ whitespace: [
|
|
1384
1383
|
"normal",
|
|
@@ -1406,8 +1405,8 @@ var Be = (e, t) => {
|
|
|
1406
1405
|
] }],
|
|
1407
1406
|
content: [{ content: [
|
|
1408
1407
|
"none",
|
|
1409
|
-
|
|
1410
|
-
|
|
1408
|
+
Z,
|
|
1409
|
+
Y
|
|
1411
1410
|
] }],
|
|
1412
1411
|
"bg-attachment": [{ bg: [
|
|
1413
1412
|
"fixed",
|
|
@@ -1425,9 +1424,9 @@ var Be = (e, t) => {
|
|
|
1425
1424
|
"padding",
|
|
1426
1425
|
"content"
|
|
1427
1426
|
] }],
|
|
1428
|
-
"bg-position": [{ bg:
|
|
1429
|
-
"bg-repeat": [{ bg:
|
|
1430
|
-
"bg-size": [{ bg:
|
|
1427
|
+
"bg-position": [{ bg: N() }],
|
|
1428
|
+
"bg-repeat": [{ bg: P() }],
|
|
1429
|
+
"bg-size": [{ bg: F() }],
|
|
1431
1430
|
"bg-image": [{ bg: [
|
|
1432
1431
|
"none",
|
|
1433
1432
|
{
|
|
@@ -1442,140 +1441,140 @@ var Be = (e, t) => {
|
|
|
1442
1441
|
"l",
|
|
1443
1442
|
"tl"
|
|
1444
1443
|
] },
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1444
|
+
q,
|
|
1445
|
+
Z,
|
|
1446
|
+
Y
|
|
1448
1447
|
],
|
|
1449
1448
|
radial: [
|
|
1450
1449
|
"",
|
|
1451
|
-
|
|
1452
|
-
|
|
1450
|
+
Z,
|
|
1451
|
+
Y
|
|
1453
1452
|
],
|
|
1454
1453
|
conic: [
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1454
|
+
q,
|
|
1455
|
+
Z,
|
|
1456
|
+
Y
|
|
1458
1457
|
]
|
|
1459
1458
|
},
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
] }],
|
|
1463
|
-
"bg-color": [{ bg:
|
|
1464
|
-
"gradient-from-pos": [{ from:
|
|
1465
|
-
"gradient-via-pos": [{ via:
|
|
1466
|
-
"gradient-to-pos": [{ to:
|
|
1467
|
-
"gradient-from": [{ from:
|
|
1468
|
-
"gradient-via": [{ via:
|
|
1469
|
-
"gradient-to": [{ to:
|
|
1470
|
-
rounded: [{ rounded:
|
|
1471
|
-
"rounded-s": [{ "rounded-s":
|
|
1472
|
-
"rounded-e": [{ "rounded-e":
|
|
1473
|
-
"rounded-t": [{ "rounded-t":
|
|
1474
|
-
"rounded-r": [{ "rounded-r":
|
|
1475
|
-
"rounded-b": [{ "rounded-b":
|
|
1476
|
-
"rounded-l": [{ "rounded-l":
|
|
1477
|
-
"rounded-ss": [{ "rounded-ss":
|
|
1478
|
-
"rounded-se": [{ "rounded-se":
|
|
1479
|
-
"rounded-ee": [{ "rounded-ee":
|
|
1480
|
-
"rounded-es": [{ "rounded-es":
|
|
1481
|
-
"rounded-tl": [{ "rounded-tl":
|
|
1482
|
-
"rounded-tr": [{ "rounded-tr":
|
|
1483
|
-
"rounded-br": [{ "rounded-br":
|
|
1484
|
-
"rounded-bl": [{ "rounded-bl":
|
|
1485
|
-
"border-w": [{ border:
|
|
1486
|
-
"border-w-x": [{ "border-x":
|
|
1487
|
-
"border-w-y": [{ "border-y":
|
|
1488
|
-
"border-w-s": [{ "border-s":
|
|
1489
|
-
"border-w-e": [{ "border-e":
|
|
1490
|
-
"border-w-bs": [{ "border-bs":
|
|
1491
|
-
"border-w-be": [{ "border-be":
|
|
1492
|
-
"border-w-t": [{ "border-t":
|
|
1493
|
-
"border-w-r": [{ "border-r":
|
|
1494
|
-
"border-w-b": [{ "border-b":
|
|
1495
|
-
"border-w-l": [{ "border-l":
|
|
1496
|
-
"divide-x": [{ "divide-x":
|
|
1459
|
+
Rt,
|
|
1460
|
+
Mt
|
|
1461
|
+
] }],
|
|
1462
|
+
"bg-color": [{ bg: M() }],
|
|
1463
|
+
"gradient-from-pos": [{ from: ie() }],
|
|
1464
|
+
"gradient-via-pos": [{ via: ie() }],
|
|
1465
|
+
"gradient-to-pos": [{ to: ie() }],
|
|
1466
|
+
"gradient-from": [{ from: M() }],
|
|
1467
|
+
"gradient-via": [{ via: M() }],
|
|
1468
|
+
"gradient-to": [{ to: M() }],
|
|
1469
|
+
rounded: [{ rounded: I() }],
|
|
1470
|
+
"rounded-s": [{ "rounded-s": I() }],
|
|
1471
|
+
"rounded-e": [{ "rounded-e": I() }],
|
|
1472
|
+
"rounded-t": [{ "rounded-t": I() }],
|
|
1473
|
+
"rounded-r": [{ "rounded-r": I() }],
|
|
1474
|
+
"rounded-b": [{ "rounded-b": I() }],
|
|
1475
|
+
"rounded-l": [{ "rounded-l": I() }],
|
|
1476
|
+
"rounded-ss": [{ "rounded-ss": I() }],
|
|
1477
|
+
"rounded-se": [{ "rounded-se": I() }],
|
|
1478
|
+
"rounded-ee": [{ "rounded-ee": I() }],
|
|
1479
|
+
"rounded-es": [{ "rounded-es": I() }],
|
|
1480
|
+
"rounded-tl": [{ "rounded-tl": I() }],
|
|
1481
|
+
"rounded-tr": [{ "rounded-tr": I() }],
|
|
1482
|
+
"rounded-br": [{ "rounded-br": I() }],
|
|
1483
|
+
"rounded-bl": [{ "rounded-bl": I() }],
|
|
1484
|
+
"border-w": [{ border: L() }],
|
|
1485
|
+
"border-w-x": [{ "border-x": L() }],
|
|
1486
|
+
"border-w-y": [{ "border-y": L() }],
|
|
1487
|
+
"border-w-s": [{ "border-s": L() }],
|
|
1488
|
+
"border-w-e": [{ "border-e": L() }],
|
|
1489
|
+
"border-w-bs": [{ "border-bs": L() }],
|
|
1490
|
+
"border-w-be": [{ "border-be": L() }],
|
|
1491
|
+
"border-w-t": [{ "border-t": L() }],
|
|
1492
|
+
"border-w-r": [{ "border-r": L() }],
|
|
1493
|
+
"border-w-b": [{ "border-b": L() }],
|
|
1494
|
+
"border-w-l": [{ "border-l": L() }],
|
|
1495
|
+
"divide-x": [{ "divide-x": L() }],
|
|
1497
1496
|
"divide-x-reverse": ["divide-x-reverse"],
|
|
1498
|
-
"divide-y": [{ "divide-y":
|
|
1497
|
+
"divide-y": [{ "divide-y": L() }],
|
|
1499
1498
|
"divide-y-reverse": ["divide-y-reverse"],
|
|
1500
1499
|
"border-style": [{ border: [
|
|
1501
|
-
...
|
|
1500
|
+
...ae(),
|
|
1502
1501
|
"hidden",
|
|
1503
1502
|
"none"
|
|
1504
1503
|
] }],
|
|
1505
1504
|
"divide-style": [{ divide: [
|
|
1506
|
-
...
|
|
1505
|
+
...ae(),
|
|
1507
1506
|
"hidden",
|
|
1508
1507
|
"none"
|
|
1509
1508
|
] }],
|
|
1510
|
-
"border-color": [{ border:
|
|
1511
|
-
"border-color-x": [{ "border-x":
|
|
1512
|
-
"border-color-y": [{ "border-y":
|
|
1513
|
-
"border-color-s": [{ "border-s":
|
|
1514
|
-
"border-color-e": [{ "border-e":
|
|
1515
|
-
"border-color-bs": [{ "border-bs":
|
|
1516
|
-
"border-color-be": [{ "border-be":
|
|
1517
|
-
"border-color-t": [{ "border-t":
|
|
1518
|
-
"border-color-r": [{ "border-r":
|
|
1519
|
-
"border-color-b": [{ "border-b":
|
|
1520
|
-
"border-color-l": [{ "border-l":
|
|
1521
|
-
"divide-color": [{ divide:
|
|
1509
|
+
"border-color": [{ border: M() }],
|
|
1510
|
+
"border-color-x": [{ "border-x": M() }],
|
|
1511
|
+
"border-color-y": [{ "border-y": M() }],
|
|
1512
|
+
"border-color-s": [{ "border-s": M() }],
|
|
1513
|
+
"border-color-e": [{ "border-e": M() }],
|
|
1514
|
+
"border-color-bs": [{ "border-bs": M() }],
|
|
1515
|
+
"border-color-be": [{ "border-be": M() }],
|
|
1516
|
+
"border-color-t": [{ "border-t": M() }],
|
|
1517
|
+
"border-color-r": [{ "border-r": M() }],
|
|
1518
|
+
"border-color-b": [{ "border-b": M() }],
|
|
1519
|
+
"border-color-l": [{ "border-l": M() }],
|
|
1520
|
+
"divide-color": [{ divide: M() }],
|
|
1522
1521
|
"outline-style": [{ outline: [
|
|
1523
|
-
...
|
|
1522
|
+
...ae(),
|
|
1524
1523
|
"none",
|
|
1525
1524
|
"hidden"
|
|
1526
1525
|
] }],
|
|
1527
1526
|
"outline-offset": [{ "outline-offset": [
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1527
|
+
K,
|
|
1528
|
+
Z,
|
|
1529
|
+
Y
|
|
1531
1530
|
] }],
|
|
1532
1531
|
"outline-w": [{ outline: [
|
|
1533
1532
|
"",
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1533
|
+
K,
|
|
1534
|
+
Pt,
|
|
1535
|
+
X
|
|
1537
1536
|
] }],
|
|
1538
|
-
"outline-color": [{ outline:
|
|
1537
|
+
"outline-color": [{ outline: M() }],
|
|
1539
1538
|
shadow: [{ shadow: [
|
|
1540
1539
|
"",
|
|
1541
1540
|
"none",
|
|
1542
1541
|
u,
|
|
1543
|
-
|
|
1544
|
-
|
|
1542
|
+
zt,
|
|
1543
|
+
Nt
|
|
1545
1544
|
] }],
|
|
1546
|
-
"shadow-color": [{ shadow:
|
|
1545
|
+
"shadow-color": [{ shadow: M() }],
|
|
1547
1546
|
"inset-shadow": [{ "inset-shadow": [
|
|
1548
1547
|
"none",
|
|
1549
1548
|
d,
|
|
1550
|
-
|
|
1551
|
-
|
|
1549
|
+
zt,
|
|
1550
|
+
Nt
|
|
1552
1551
|
] }],
|
|
1553
|
-
"inset-shadow-color": [{ "inset-shadow":
|
|
1554
|
-
"ring-w": [{ ring:
|
|
1552
|
+
"inset-shadow-color": [{ "inset-shadow": M() }],
|
|
1553
|
+
"ring-w": [{ ring: L() }],
|
|
1555
1554
|
"ring-w-inset": ["ring-inset"],
|
|
1556
|
-
"ring-color": [{ ring:
|
|
1557
|
-
"ring-offset-w": [{ "ring-offset": [
|
|
1558
|
-
"ring-offset-color": [{ "ring-offset":
|
|
1559
|
-
"inset-ring-w": [{ "inset-ring":
|
|
1560
|
-
"inset-ring-color": [{ "inset-ring":
|
|
1555
|
+
"ring-color": [{ ring: M() }],
|
|
1556
|
+
"ring-offset-w": [{ "ring-offset": [K, X] }],
|
|
1557
|
+
"ring-offset-color": [{ "ring-offset": M() }],
|
|
1558
|
+
"inset-ring-w": [{ "inset-ring": L() }],
|
|
1559
|
+
"inset-ring-color": [{ "inset-ring": M() }],
|
|
1561
1560
|
"text-shadow": [{ "text-shadow": [
|
|
1562
1561
|
"none",
|
|
1563
1562
|
f,
|
|
1564
|
-
|
|
1565
|
-
|
|
1563
|
+
zt,
|
|
1564
|
+
Nt
|
|
1566
1565
|
] }],
|
|
1567
|
-
"text-shadow-color": [{ "text-shadow":
|
|
1566
|
+
"text-shadow-color": [{ "text-shadow": M() }],
|
|
1568
1567
|
opacity: [{ opacity: [
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1568
|
+
K,
|
|
1569
|
+
Z,
|
|
1570
|
+
Y
|
|
1572
1571
|
] }],
|
|
1573
1572
|
"mix-blend": [{ "mix-blend": [
|
|
1574
|
-
...
|
|
1573
|
+
...oe(),
|
|
1575
1574
|
"plus-darker",
|
|
1576
1575
|
"plus-lighter"
|
|
1577
1576
|
] }],
|
|
1578
|
-
"bg-blend": [{ "bg-blend":
|
|
1577
|
+
"bg-blend": [{ "bg-blend": oe() }],
|
|
1579
1578
|
"mask-clip": [{ "mask-clip": [
|
|
1580
1579
|
"border",
|
|
1581
1580
|
"padding",
|
|
@@ -1590,51 +1589,51 @@ var Be = (e, t) => {
|
|
|
1590
1589
|
"intersect",
|
|
1591
1590
|
"exclude"
|
|
1592
1591
|
] }],
|
|
1593
|
-
"mask-image-linear-pos": [{ "mask-linear": [
|
|
1594
|
-
"mask-image-linear-from-pos": [{ "mask-linear-from":
|
|
1595
|
-
"mask-image-linear-to-pos": [{ "mask-linear-to":
|
|
1596
|
-
"mask-image-linear-from-color": [{ "mask-linear-from":
|
|
1597
|
-
"mask-image-linear-to-color": [{ "mask-linear-to":
|
|
1598
|
-
"mask-image-t-from-pos": [{ "mask-t-from":
|
|
1599
|
-
"mask-image-t-to-pos": [{ "mask-t-to":
|
|
1600
|
-
"mask-image-t-from-color": [{ "mask-t-from":
|
|
1601
|
-
"mask-image-t-to-color": [{ "mask-t-to":
|
|
1602
|
-
"mask-image-r-from-pos": [{ "mask-r-from":
|
|
1603
|
-
"mask-image-r-to-pos": [{ "mask-r-to":
|
|
1604
|
-
"mask-image-r-from-color": [{ "mask-r-from":
|
|
1605
|
-
"mask-image-r-to-color": [{ "mask-r-to":
|
|
1606
|
-
"mask-image-b-from-pos": [{ "mask-b-from":
|
|
1607
|
-
"mask-image-b-to-pos": [{ "mask-b-to":
|
|
1608
|
-
"mask-image-b-from-color": [{ "mask-b-from":
|
|
1609
|
-
"mask-image-b-to-color": [{ "mask-b-to":
|
|
1610
|
-
"mask-image-l-from-pos": [{ "mask-l-from":
|
|
1611
|
-
"mask-image-l-to-pos": [{ "mask-l-to":
|
|
1612
|
-
"mask-image-l-from-color": [{ "mask-l-from":
|
|
1613
|
-
"mask-image-l-to-color": [{ "mask-l-to":
|
|
1614
|
-
"mask-image-x-from-pos": [{ "mask-x-from":
|
|
1615
|
-
"mask-image-x-to-pos": [{ "mask-x-to":
|
|
1616
|
-
"mask-image-x-from-color": [{ "mask-x-from":
|
|
1617
|
-
"mask-image-x-to-color": [{ "mask-x-to":
|
|
1618
|
-
"mask-image-y-from-pos": [{ "mask-y-from":
|
|
1619
|
-
"mask-image-y-to-pos": [{ "mask-y-to":
|
|
1620
|
-
"mask-image-y-from-color": [{ "mask-y-from":
|
|
1621
|
-
"mask-image-y-to-color": [{ "mask-y-to":
|
|
1622
|
-
"mask-image-radial": [{ "mask-radial": [
|
|
1623
|
-
"mask-image-radial-from-pos": [{ "mask-radial-from":
|
|
1624
|
-
"mask-image-radial-to-pos": [{ "mask-radial-to":
|
|
1625
|
-
"mask-image-radial-from-color": [{ "mask-radial-from":
|
|
1626
|
-
"mask-image-radial-to-color": [{ "mask-radial-to":
|
|
1592
|
+
"mask-image-linear-pos": [{ "mask-linear": [K] }],
|
|
1593
|
+
"mask-image-linear-from-pos": [{ "mask-linear-from": R() }],
|
|
1594
|
+
"mask-image-linear-to-pos": [{ "mask-linear-to": R() }],
|
|
1595
|
+
"mask-image-linear-from-color": [{ "mask-linear-from": M() }],
|
|
1596
|
+
"mask-image-linear-to-color": [{ "mask-linear-to": M() }],
|
|
1597
|
+
"mask-image-t-from-pos": [{ "mask-t-from": R() }],
|
|
1598
|
+
"mask-image-t-to-pos": [{ "mask-t-to": R() }],
|
|
1599
|
+
"mask-image-t-from-color": [{ "mask-t-from": M() }],
|
|
1600
|
+
"mask-image-t-to-color": [{ "mask-t-to": M() }],
|
|
1601
|
+
"mask-image-r-from-pos": [{ "mask-r-from": R() }],
|
|
1602
|
+
"mask-image-r-to-pos": [{ "mask-r-to": R() }],
|
|
1603
|
+
"mask-image-r-from-color": [{ "mask-r-from": M() }],
|
|
1604
|
+
"mask-image-r-to-color": [{ "mask-r-to": M() }],
|
|
1605
|
+
"mask-image-b-from-pos": [{ "mask-b-from": R() }],
|
|
1606
|
+
"mask-image-b-to-pos": [{ "mask-b-to": R() }],
|
|
1607
|
+
"mask-image-b-from-color": [{ "mask-b-from": M() }],
|
|
1608
|
+
"mask-image-b-to-color": [{ "mask-b-to": M() }],
|
|
1609
|
+
"mask-image-l-from-pos": [{ "mask-l-from": R() }],
|
|
1610
|
+
"mask-image-l-to-pos": [{ "mask-l-to": R() }],
|
|
1611
|
+
"mask-image-l-from-color": [{ "mask-l-from": M() }],
|
|
1612
|
+
"mask-image-l-to-color": [{ "mask-l-to": M() }],
|
|
1613
|
+
"mask-image-x-from-pos": [{ "mask-x-from": R() }],
|
|
1614
|
+
"mask-image-x-to-pos": [{ "mask-x-to": R() }],
|
|
1615
|
+
"mask-image-x-from-color": [{ "mask-x-from": M() }],
|
|
1616
|
+
"mask-image-x-to-color": [{ "mask-x-to": M() }],
|
|
1617
|
+
"mask-image-y-from-pos": [{ "mask-y-from": R() }],
|
|
1618
|
+
"mask-image-y-to-pos": [{ "mask-y-to": R() }],
|
|
1619
|
+
"mask-image-y-from-color": [{ "mask-y-from": M() }],
|
|
1620
|
+
"mask-image-y-to-color": [{ "mask-y-to": M() }],
|
|
1621
|
+
"mask-image-radial": [{ "mask-radial": [Z, Y] }],
|
|
1622
|
+
"mask-image-radial-from-pos": [{ "mask-radial-from": R() }],
|
|
1623
|
+
"mask-image-radial-to-pos": [{ "mask-radial-to": R() }],
|
|
1624
|
+
"mask-image-radial-from-color": [{ "mask-radial-from": M() }],
|
|
1625
|
+
"mask-image-radial-to-color": [{ "mask-radial-to": M() }],
|
|
1627
1626
|
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
|
|
1628
1627
|
"mask-image-radial-size": [{ "mask-radial": [{
|
|
1629
1628
|
closest: ["side", "corner"],
|
|
1630
1629
|
farthest: ["side", "corner"]
|
|
1631
1630
|
}] }],
|
|
1632
1631
|
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
|
|
1633
|
-
"mask-image-conic-pos": [{ "mask-conic": [
|
|
1634
|
-
"mask-image-conic-from-pos": [{ "mask-conic-from":
|
|
1635
|
-
"mask-image-conic-to-pos": [{ "mask-conic-to":
|
|
1636
|
-
"mask-image-conic-from-color": [{ "mask-conic-from":
|
|
1637
|
-
"mask-image-conic-to-color": [{ "mask-conic-to":
|
|
1632
|
+
"mask-image-conic-pos": [{ "mask-conic": [K] }],
|
|
1633
|
+
"mask-image-conic-from-pos": [{ "mask-conic-from": R() }],
|
|
1634
|
+
"mask-image-conic-to-pos": [{ "mask-conic-to": R() }],
|
|
1635
|
+
"mask-image-conic-from-color": [{ "mask-conic-from": M() }],
|
|
1636
|
+
"mask-image-conic-to-color": [{ "mask-conic-to": M() }],
|
|
1638
1637
|
"mask-mode": [{ mask: [
|
|
1639
1638
|
"alpha",
|
|
1640
1639
|
"luminance",
|
|
@@ -1648,117 +1647,117 @@ var Be = (e, t) => {
|
|
|
1648
1647
|
"stroke",
|
|
1649
1648
|
"view"
|
|
1650
1649
|
] }],
|
|
1651
|
-
"mask-position": [{ mask:
|
|
1652
|
-
"mask-repeat": [{ mask:
|
|
1653
|
-
"mask-size": [{ mask:
|
|
1650
|
+
"mask-position": [{ mask: N() }],
|
|
1651
|
+
"mask-repeat": [{ mask: P() }],
|
|
1652
|
+
"mask-size": [{ mask: F() }],
|
|
1654
1653
|
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
|
|
1655
1654
|
"mask-image": [{ mask: [
|
|
1656
1655
|
"none",
|
|
1657
|
-
|
|
1658
|
-
|
|
1656
|
+
Z,
|
|
1657
|
+
Y
|
|
1659
1658
|
] }],
|
|
1660
1659
|
filter: [{ filter: [
|
|
1661
1660
|
"",
|
|
1662
1661
|
"none",
|
|
1663
|
-
|
|
1664
|
-
|
|
1662
|
+
Z,
|
|
1663
|
+
Y
|
|
1665
1664
|
] }],
|
|
1666
|
-
blur: [{ blur:
|
|
1665
|
+
blur: [{ blur: se() }],
|
|
1667
1666
|
brightness: [{ brightness: [
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1667
|
+
K,
|
|
1668
|
+
Z,
|
|
1669
|
+
Y
|
|
1671
1670
|
] }],
|
|
1672
1671
|
contrast: [{ contrast: [
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1672
|
+
K,
|
|
1673
|
+
Z,
|
|
1674
|
+
Y
|
|
1676
1675
|
] }],
|
|
1677
1676
|
"drop-shadow": [{ "drop-shadow": [
|
|
1678
1677
|
"",
|
|
1679
1678
|
"none",
|
|
1680
1679
|
p,
|
|
1681
|
-
|
|
1682
|
-
|
|
1680
|
+
zt,
|
|
1681
|
+
Nt
|
|
1683
1682
|
] }],
|
|
1684
|
-
"drop-shadow-color": [{ "drop-shadow":
|
|
1683
|
+
"drop-shadow-color": [{ "drop-shadow": M() }],
|
|
1685
1684
|
grayscale: [{ grayscale: [
|
|
1686
1685
|
"",
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1686
|
+
K,
|
|
1687
|
+
Z,
|
|
1688
|
+
Y
|
|
1690
1689
|
] }],
|
|
1691
1690
|
"hue-rotate": [{ "hue-rotate": [
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1691
|
+
K,
|
|
1692
|
+
Z,
|
|
1693
|
+
Y
|
|
1695
1694
|
] }],
|
|
1696
1695
|
invert: [{ invert: [
|
|
1697
1696
|
"",
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1697
|
+
K,
|
|
1698
|
+
Z,
|
|
1699
|
+
Y
|
|
1701
1700
|
] }],
|
|
1702
1701
|
saturate: [{ saturate: [
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1702
|
+
K,
|
|
1703
|
+
Z,
|
|
1704
|
+
Y
|
|
1706
1705
|
] }],
|
|
1707
1706
|
sepia: [{ sepia: [
|
|
1708
1707
|
"",
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1708
|
+
K,
|
|
1709
|
+
Z,
|
|
1710
|
+
Y
|
|
1712
1711
|
] }],
|
|
1713
1712
|
"backdrop-filter": [{ "backdrop-filter": [
|
|
1714
1713
|
"",
|
|
1715
1714
|
"none",
|
|
1716
|
-
|
|
1717
|
-
|
|
1715
|
+
Z,
|
|
1716
|
+
Y
|
|
1718
1717
|
] }],
|
|
1719
|
-
"backdrop-blur": [{ "backdrop-blur":
|
|
1718
|
+
"backdrop-blur": [{ "backdrop-blur": se() }],
|
|
1720
1719
|
"backdrop-brightness": [{ "backdrop-brightness": [
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1720
|
+
K,
|
|
1721
|
+
Z,
|
|
1722
|
+
Y
|
|
1724
1723
|
] }],
|
|
1725
1724
|
"backdrop-contrast": [{ "backdrop-contrast": [
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1725
|
+
K,
|
|
1726
|
+
Z,
|
|
1727
|
+
Y
|
|
1729
1728
|
] }],
|
|
1730
1729
|
"backdrop-grayscale": [{ "backdrop-grayscale": [
|
|
1731
1730
|
"",
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1731
|
+
K,
|
|
1732
|
+
Z,
|
|
1733
|
+
Y
|
|
1735
1734
|
] }],
|
|
1736
1735
|
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1736
|
+
K,
|
|
1737
|
+
Z,
|
|
1738
|
+
Y
|
|
1740
1739
|
] }],
|
|
1741
1740
|
"backdrop-invert": [{ "backdrop-invert": [
|
|
1742
1741
|
"",
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1742
|
+
K,
|
|
1743
|
+
Z,
|
|
1744
|
+
Y
|
|
1746
1745
|
] }],
|
|
1747
1746
|
"backdrop-opacity": [{ "backdrop-opacity": [
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1747
|
+
K,
|
|
1748
|
+
Z,
|
|
1749
|
+
Y
|
|
1751
1750
|
] }],
|
|
1752
1751
|
"backdrop-saturate": [{ "backdrop-saturate": [
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1752
|
+
K,
|
|
1753
|
+
Z,
|
|
1754
|
+
Y
|
|
1756
1755
|
] }],
|
|
1757
1756
|
"backdrop-sepia": [{ "backdrop-sepia": [
|
|
1758
1757
|
"",
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1758
|
+
K,
|
|
1759
|
+
Z,
|
|
1760
|
+
Y
|
|
1762
1761
|
] }],
|
|
1763
1762
|
"border-collapse": [{ border: ["collapse", "separate"] }],
|
|
1764
1763
|
"border-spacing": [{ "border-spacing": w() }],
|
|
@@ -1774,56 +1773,56 @@ var Be = (e, t) => {
|
|
|
1774
1773
|
"shadow",
|
|
1775
1774
|
"transform",
|
|
1776
1775
|
"none",
|
|
1777
|
-
|
|
1778
|
-
|
|
1776
|
+
Z,
|
|
1777
|
+
Y
|
|
1779
1778
|
] }],
|
|
1780
1779
|
"transition-behavior": [{ transition: ["normal", "discrete"] }],
|
|
1781
1780
|
duration: [{ duration: [
|
|
1782
|
-
|
|
1781
|
+
K,
|
|
1783
1782
|
"initial",
|
|
1784
|
-
|
|
1785
|
-
|
|
1783
|
+
Z,
|
|
1784
|
+
Y
|
|
1786
1785
|
] }],
|
|
1787
1786
|
ease: [{ ease: [
|
|
1788
1787
|
"linear",
|
|
1789
1788
|
"initial",
|
|
1790
1789
|
_,
|
|
1791
|
-
|
|
1792
|
-
|
|
1790
|
+
Z,
|
|
1791
|
+
Y
|
|
1793
1792
|
] }],
|
|
1794
1793
|
delay: [{ delay: [
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1794
|
+
K,
|
|
1795
|
+
Z,
|
|
1796
|
+
Y
|
|
1798
1797
|
] }],
|
|
1799
1798
|
animate: [{ animate: [
|
|
1800
1799
|
"none",
|
|
1801
1800
|
v,
|
|
1802
|
-
|
|
1803
|
-
|
|
1801
|
+
Z,
|
|
1802
|
+
Y
|
|
1804
1803
|
] }],
|
|
1805
1804
|
backface: [{ backface: ["hidden", "visible"] }],
|
|
1806
1805
|
perspective: [{ perspective: [
|
|
1807
1806
|
h,
|
|
1808
|
-
|
|
1809
|
-
|
|
1807
|
+
Z,
|
|
1808
|
+
Y
|
|
1810
1809
|
] }],
|
|
1811
1810
|
"perspective-origin": [{ "perspective-origin": x() }],
|
|
1812
|
-
rotate: [{ rotate:
|
|
1813
|
-
"rotate-x": [{ "rotate-x":
|
|
1814
|
-
"rotate-y": [{ "rotate-y":
|
|
1815
|
-
"rotate-z": [{ "rotate-z":
|
|
1816
|
-
scale: [{ scale:
|
|
1817
|
-
"scale-x": [{ "scale-x":
|
|
1818
|
-
"scale-y": [{ "scale-y":
|
|
1819
|
-
"scale-z": [{ "scale-z":
|
|
1811
|
+
rotate: [{ rotate: z() }],
|
|
1812
|
+
"rotate-x": [{ "rotate-x": z() }],
|
|
1813
|
+
"rotate-y": [{ "rotate-y": z() }],
|
|
1814
|
+
"rotate-z": [{ "rotate-z": z() }],
|
|
1815
|
+
scale: [{ scale: B() }],
|
|
1816
|
+
"scale-x": [{ "scale-x": B() }],
|
|
1817
|
+
"scale-y": [{ "scale-y": B() }],
|
|
1818
|
+
"scale-z": [{ "scale-z": B() }],
|
|
1820
1819
|
"scale-3d": ["scale-3d"],
|
|
1821
|
-
skew: [{ skew:
|
|
1822
|
-
"skew-x": [{ "skew-x":
|
|
1823
|
-
"skew-y": [{ "skew-y":
|
|
1820
|
+
skew: [{ skew: ce() }],
|
|
1821
|
+
"skew-x": [{ "skew-x": ce() }],
|
|
1822
|
+
"skew-y": [{ "skew-y": ce() }],
|
|
1824
1823
|
transform: [{ transform: [
|
|
1825
|
-
|
|
1826
|
-
|
|
1824
|
+
Z,
|
|
1825
|
+
Y,
|
|
1827
1826
|
"",
|
|
1828
1827
|
"none",
|
|
1829
1828
|
"gpu",
|
|
@@ -1831,19 +1830,19 @@ var Be = (e, t) => {
|
|
|
1831
1830
|
] }],
|
|
1832
1831
|
"transform-origin": [{ origin: x() }],
|
|
1833
1832
|
"transform-style": [{ transform: ["3d", "flat"] }],
|
|
1834
|
-
translate: [{ translate:
|
|
1835
|
-
"translate-x": [{ "translate-x":
|
|
1836
|
-
"translate-y": [{ "translate-y":
|
|
1837
|
-
"translate-z": [{ "translate-z":
|
|
1833
|
+
translate: [{ translate: V() }],
|
|
1834
|
+
"translate-x": [{ "translate-x": V() }],
|
|
1835
|
+
"translate-y": [{ "translate-y": V() }],
|
|
1836
|
+
"translate-z": [{ "translate-z": V() }],
|
|
1838
1837
|
"translate-none": ["translate-none"],
|
|
1839
1838
|
zoom: [{ zoom: [
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1839
|
+
q,
|
|
1840
|
+
Z,
|
|
1841
|
+
Y
|
|
1843
1842
|
] }],
|
|
1844
|
-
accent: [{ accent:
|
|
1843
|
+
accent: [{ accent: M() }],
|
|
1845
1844
|
appearance: [{ appearance: ["none", "auto"] }],
|
|
1846
|
-
"caret-color": [{ caret:
|
|
1845
|
+
"caret-color": [{ caret: M() }],
|
|
1847
1846
|
"color-scheme": [{ scheme: [
|
|
1848
1847
|
"normal",
|
|
1849
1848
|
"dark",
|
|
@@ -1889,8 +1888,8 @@ var Be = (e, t) => {
|
|
|
1889
1888
|
"nwse-resize",
|
|
1890
1889
|
"zoom-in",
|
|
1891
1890
|
"zoom-out",
|
|
1892
|
-
|
|
1893
|
-
|
|
1891
|
+
Z,
|
|
1892
|
+
Y
|
|
1894
1893
|
] }],
|
|
1895
1894
|
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
|
|
1896
1895
|
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
|
|
@@ -1901,8 +1900,8 @@ var Be = (e, t) => {
|
|
|
1901
1900
|
"x"
|
|
1902
1901
|
] }],
|
|
1903
1902
|
"scroll-behavior": [{ scroll: ["auto", "smooth"] }],
|
|
1904
|
-
"scrollbar-thumb-color": [{ "scrollbar-thumb":
|
|
1905
|
-
"scrollbar-track-color": [{ "scrollbar-track":
|
|
1903
|
+
"scrollbar-thumb-color": [{ "scrollbar-thumb": M() }],
|
|
1904
|
+
"scrollbar-track-color": [{ "scrollbar-track": M() }],
|
|
1906
1905
|
"scrollbar-gutter": [{ "scrollbar-gutter": [
|
|
1907
1906
|
"auto",
|
|
1908
1907
|
"stable",
|
|
@@ -1976,17 +1975,17 @@ var Be = (e, t) => {
|
|
|
1976
1975
|
"scroll",
|
|
1977
1976
|
"contents",
|
|
1978
1977
|
"transform",
|
|
1979
|
-
|
|
1980
|
-
|
|
1978
|
+
Z,
|
|
1979
|
+
Y
|
|
1981
1980
|
] }],
|
|
1982
|
-
fill: [{ fill: ["none", ...
|
|
1981
|
+
fill: [{ fill: ["none", ...M()] }],
|
|
1983
1982
|
"stroke-w": [{ stroke: [
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1983
|
+
K,
|
|
1984
|
+
Pt,
|
|
1985
|
+
X,
|
|
1986
|
+
Ot
|
|
1988
1987
|
] }],
|
|
1989
|
-
stroke: [{ stroke: ["none", ...
|
|
1988
|
+
stroke: [{ stroke: ["none", ...M()] }],
|
|
1990
1989
|
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
|
|
1991
1990
|
},
|
|
1992
1991
|
conflictingClassGroups: {
|
|
@@ -2175,41 +2174,41 @@ var Be = (e, t) => {
|
|
|
2175
2174
|
});
|
|
2176
2175
|
//#endregion
|
|
2177
2176
|
//#region src/lib/utils.ts
|
|
2178
|
-
function
|
|
2179
|
-
return
|
|
2177
|
+
function Xt(...e) {
|
|
2178
|
+
return Yt(je(e));
|
|
2180
2179
|
}
|
|
2181
2180
|
//#endregion
|
|
2182
2181
|
//#region src/components/table/data-table.tsx
|
|
2183
|
-
function
|
|
2184
|
-
let [o, s] = r, c =
|
|
2182
|
+
function Zt({ columns: e, data: t, getRowId: n, selectionState: r, onClick: i, components: a }) {
|
|
2183
|
+
let [o, s] = r, c = h({
|
|
2185
2184
|
data: t,
|
|
2186
2185
|
columns: e,
|
|
2187
2186
|
state: { rowSelection: o },
|
|
2188
2187
|
getRowId: n,
|
|
2189
2188
|
enableRowSelection: !0,
|
|
2190
2189
|
onRowSelectionChange: s,
|
|
2191
|
-
getCoreRowModel:
|
|
2192
|
-
}), { t:
|
|
2193
|
-
return /* @__PURE__ */
|
|
2194
|
-
className:
|
|
2195
|
-
children: e.isPlaceholder ? null :
|
|
2196
|
-
}, e.id)) }, e.id)) }), /* @__PURE__ */
|
|
2190
|
+
getCoreRowModel: p()
|
|
2191
|
+
}), { t: m } = d(), g = a?.Table ?? ue, _ = a?.TableHeader ?? de, v = a?.TableBody ?? fe, y = a?.TableRow ?? pe, b = a?.TableHead ?? me, x = a?.TableCell ?? he;
|
|
2192
|
+
return /* @__PURE__ */ u(g, { children: [/* @__PURE__ */ l(_, { children: c.getHeaderGroups().map((e) => /* @__PURE__ */ l(y, { children: e.headers.map((e) => /* @__PURE__ */ l(b, {
|
|
2193
|
+
className: Xt(e.column.columnDef.meta?.className),
|
|
2194
|
+
children: e.isPlaceholder ? null : f(e.column.columnDef.header, e.getContext())
|
|
2195
|
+
}, e.id)) }, e.id)) }), /* @__PURE__ */ l(v, { children: c.getRowModel().rows?.length ? c.getRowModel().rows.map((e) => /* @__PURE__ */ l(y, {
|
|
2197
2196
|
"data-state": e.getIsSelected() && "selected",
|
|
2198
2197
|
onClick: () => i(e.original),
|
|
2199
|
-
children: e.getVisibleCells().map((e) => /* @__PURE__ */
|
|
2200
|
-
className:
|
|
2201
|
-
children:
|
|
2198
|
+
children: e.getVisibleCells().map((e) => /* @__PURE__ */ l(x, {
|
|
2199
|
+
className: Xt(e.column.columnDef.meta?.className),
|
|
2200
|
+
children: f(e.column.columnDef.cell, e.getContext())
|
|
2202
2201
|
}, e.id))
|
|
2203
|
-
}, e.id)) : /* @__PURE__ */
|
|
2202
|
+
}, e.id)) : /* @__PURE__ */ l(y, { children: /* @__PURE__ */ l(x, {
|
|
2204
2203
|
colSpan: e.length,
|
|
2205
2204
|
className: "h-24 text-center",
|
|
2206
|
-
children:
|
|
2205
|
+
children: m("libs:no_results")
|
|
2207
2206
|
}) }) })] });
|
|
2208
2207
|
}
|
|
2209
2208
|
//#endregion
|
|
2210
2209
|
//#region src/components/table/data-table-grouped.tsx
|
|
2211
|
-
function
|
|
2212
|
-
let [s, c] = r,
|
|
2210
|
+
function Qt({ columns: e, data: t, getRowId: n, selectionState: r, onClick: i, components: a, indentSize: o = 24 }) {
|
|
2211
|
+
let [s, c] = r, g = h({
|
|
2213
2212
|
data: t,
|
|
2214
2213
|
columns: e,
|
|
2215
2214
|
state: {
|
|
@@ -2220,30 +2219,30 @@ function sn({ columns: e, data: t, getRowId: n, selectionState: r, onClick: i, c
|
|
|
2220
2219
|
enableRowSelection: !0,
|
|
2221
2220
|
onRowSelectionChange: c,
|
|
2222
2221
|
getSubRows: (e) => e.subRows,
|
|
2223
|
-
getCoreRowModel:
|
|
2224
|
-
getExpandedRowModel:
|
|
2225
|
-
}), { t: _ } =
|
|
2226
|
-
return /* @__PURE__ */
|
|
2222
|
+
getCoreRowModel: p(),
|
|
2223
|
+
getExpandedRowModel: m()
|
|
2224
|
+
}), { t: _ } = d(), v = a?.Table ?? ue, y = a?.TableHeader ?? de, b = a?.TableBody ?? fe, x = a?.TableRow ?? pe, S = a?.TableHead ?? me, C = a?.TableCell ?? he;
|
|
2225
|
+
return /* @__PURE__ */ u(v, {
|
|
2227
2226
|
style: { width: "100%" },
|
|
2228
|
-
children: [/* @__PURE__ */
|
|
2229
|
-
className:
|
|
2230
|
-
children: e.isPlaceholder ? null :
|
|
2231
|
-
}, e.id)) }, e.id)) }), /* @__PURE__ */
|
|
2227
|
+
children: [/* @__PURE__ */ l(y, { children: g.getHeaderGroups().map((e) => /* @__PURE__ */ l(x, { children: e.headers.map((e) => /* @__PURE__ */ l(S, {
|
|
2228
|
+
className: Xt(e.column.columnDef.meta?.className),
|
|
2229
|
+
children: e.isPlaceholder ? null : f(e.column.columnDef.header, e.getContext())
|
|
2230
|
+
}, e.id)) }, e.id)) }), /* @__PURE__ */ l(b, { children: g.getRowModel().rows?.length ? g.getRowModel().rows.map((e) => /* @__PURE__ */ l(x, {
|
|
2232
2231
|
id: e.id,
|
|
2233
2232
|
"data-state": e.getIsSelected() && "selected",
|
|
2234
2233
|
onClick: () => i(e.original),
|
|
2235
2234
|
children: e.getVisibleCells().map((t, n) => {
|
|
2236
2235
|
let r = n === 0 ? e.depth * o : 0;
|
|
2237
|
-
return /* @__PURE__ */
|
|
2238
|
-
className:
|
|
2236
|
+
return /* @__PURE__ */ u(C, {
|
|
2237
|
+
className: Xt(t.column.columnDef.meta?.className),
|
|
2239
2238
|
style: { paddingLeft: r ? `${r}px` : void 0 },
|
|
2240
|
-
children: [n === 0 && e.depth > 0 && /* @__PURE__ */
|
|
2239
|
+
children: [n === 0 && e.depth > 0 && /* @__PURE__ */ l("span", {
|
|
2241
2240
|
className: "mr-2 text-muted-foreground",
|
|
2242
2241
|
children: "↳"
|
|
2243
|
-
}),
|
|
2242
|
+
}), f(t.column.columnDef.cell, t.getContext())]
|
|
2244
2243
|
}, t.id);
|
|
2245
2244
|
})
|
|
2246
|
-
}, e.id)) : /* @__PURE__ */
|
|
2245
|
+
}, e.id)) : /* @__PURE__ */ l(x, { children: /* @__PURE__ */ l(C, {
|
|
2247
2246
|
colSpan: e.length,
|
|
2248
2247
|
className: "h-24 text-center",
|
|
2249
2248
|
children: _("libs:no_results")
|
|
@@ -2252,7 +2251,7 @@ function sn({ columns: e, data: t, getRowId: n, selectionState: r, onClick: i, c
|
|
|
2252
2251
|
}
|
|
2253
2252
|
//#endregion
|
|
2254
2253
|
//#region src/components/icon/AnimatedSwapIcon.tsx
|
|
2255
|
-
var
|
|
2254
|
+
var $t = {
|
|
2256
2255
|
initial: {
|
|
2257
2256
|
opacity: 0,
|
|
2258
2257
|
scale: .9
|
|
@@ -2270,24 +2269,24 @@ var cn = {
|
|
|
2270
2269
|
ease: "easeOut"
|
|
2271
2270
|
}
|
|
2272
2271
|
};
|
|
2273
|
-
function
|
|
2274
|
-
return /* @__PURE__ */
|
|
2272
|
+
function en({ loading: e, loadingNode: n, idleNode: r, className: i = "w-6 h-6 flex flex-row items-center justify-center", motionProps: a }) {
|
|
2273
|
+
return /* @__PURE__ */ l("div", {
|
|
2275
2274
|
className: i,
|
|
2276
|
-
children: /* @__PURE__ */
|
|
2275
|
+
children: /* @__PURE__ */ l(o, {
|
|
2277
2276
|
mode: "popLayout",
|
|
2278
2277
|
initial: !1,
|
|
2279
|
-
children: /* @__PURE__ */
|
|
2280
|
-
|
|
2278
|
+
children: /* @__PURE__ */ t(c.div, {
|
|
2279
|
+
...$t,
|
|
2281
2280
|
...a,
|
|
2282
2281
|
key: e ? "loading" : "idle"
|
|
2283
|
-
}, e ?
|
|
2282
|
+
}, e ? n : r)
|
|
2284
2283
|
})
|
|
2285
2284
|
});
|
|
2286
2285
|
}
|
|
2287
2286
|
//#endregion
|
|
2288
2287
|
//#region src/components/selector/BaseDateTimeSelector.tsx
|
|
2289
|
-
function
|
|
2290
|
-
let { t } =
|
|
2288
|
+
function tn(e) {
|
|
2289
|
+
let { t } = d(), n = e.date ? [
|
|
2291
2290
|
String(e.date.getHours()).padStart(2, "0"),
|
|
2292
2291
|
String(e.date.getMinutes()).padStart(2, "0"),
|
|
2293
2292
|
String(e.date.getSeconds()).padStart(2, "0")
|
|
@@ -2305,43 +2304,43 @@ function un(e) {
|
|
|
2305
2304
|
}, i = (t) => {
|
|
2306
2305
|
let [n = "0", r = "0", i = "0"] = t.split(":"), a = e.date ? new Date(e.date) : /* @__PURE__ */ new Date();
|
|
2307
2306
|
a.setHours(Number(n), Number(r), Number(i), 0), e.setDate(a);
|
|
2308
|
-
}, a = e.components?.Calendar ??
|
|
2309
|
-
return /* @__PURE__ */
|
|
2307
|
+
}, a = e.components?.Calendar ?? Se, o = e.components?.Field ?? P, s = e.components?.FieldLabel ?? F, c = e.components?.FieldGroup ?? Ce, f = e.components?.InputGroup ?? we, p = e.components?.InputGroupInput ?? Te, m = e.components?.InputGroupAddon ?? Ee, h = e.components?.TimeIcon ?? De;
|
|
2308
|
+
return /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l(a, {
|
|
2310
2309
|
mode: "single",
|
|
2311
2310
|
captionLayout: "dropdown",
|
|
2312
2311
|
defaultMonth: e.date,
|
|
2313
2312
|
selected: e.date,
|
|
2314
2313
|
onSelect: r
|
|
2315
|
-
}), /* @__PURE__ */
|
|
2314
|
+
}), /* @__PURE__ */ l(c, {
|
|
2316
2315
|
className: "border-t p-4",
|
|
2317
|
-
children: /* @__PURE__ */
|
|
2316
|
+
children: /* @__PURE__ */ u(o, { children: [/* @__PURE__ */ l(s, {
|
|
2318
2317
|
htmlFor: "time",
|
|
2319
2318
|
children: t("libs:time")
|
|
2320
|
-
}), /* @__PURE__ */
|
|
2319
|
+
}), /* @__PURE__ */ u(f, { children: [/* @__PURE__ */ l(p, {
|
|
2321
2320
|
id: "time",
|
|
2322
2321
|
type: "time",
|
|
2323
2322
|
step: "1",
|
|
2324
2323
|
value: n,
|
|
2325
2324
|
onChange: (e) => i(e.target.value),
|
|
2326
2325
|
className: "appearance-none [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none"
|
|
2327
|
-
}), /* @__PURE__ */
|
|
2326
|
+
}), /* @__PURE__ */ l(m, { children: /* @__PURE__ */ l(h, { className: "text-muted-foreground" }) })] })] })
|
|
2328
2327
|
})] });
|
|
2329
2328
|
}
|
|
2330
2329
|
//#endregion
|
|
2331
2330
|
//#region src/components/dialog/BaseDeleteAlertDialog.tsx
|
|
2332
|
-
function
|
|
2333
|
-
let { t } =
|
|
2334
|
-
return /* @__PURE__ */
|
|
2331
|
+
function nn(e) {
|
|
2332
|
+
let { t } = d(), n = e.components?.AlertDialog ?? ge, r = e.components?.AlertDialogContent ?? _e, i = e.components?.AlertDialogHeader ?? ve, a = e.components?.AlertDialogTitle ?? ye, o = e.components?.AlertDialogDescription ?? be, s = e.components?.AlertDialogFooter ?? xe, c = e.components?.Button ?? R;
|
|
2333
|
+
return /* @__PURE__ */ l(n, {
|
|
2335
2334
|
open: e.visible,
|
|
2336
2335
|
onOpenChange: e.onVisibleChange,
|
|
2337
|
-
children: /* @__PURE__ */
|
|
2336
|
+
children: /* @__PURE__ */ u(r, {
|
|
2338
2337
|
role: "alertdialog",
|
|
2339
2338
|
"aria-modal": "true",
|
|
2340
|
-
children: [/* @__PURE__ */
|
|
2339
|
+
children: [/* @__PURE__ */ u(i, { children: [/* @__PURE__ */ l(a, { children: t("libs:delete_dialog_title") }), /* @__PURE__ */ l(o, { children: t("libs:delete_dialog_desc") })] }), /* @__PURE__ */ u(s, { children: [/* @__PURE__ */ l(c, {
|
|
2341
2340
|
variant: "outline",
|
|
2342
2341
|
onClick: () => e.onVisibleChange(!1),
|
|
2343
2342
|
children: t("libs:cancel")
|
|
2344
|
-
}), /* @__PURE__ */
|
|
2343
|
+
}), /* @__PURE__ */ l(c, {
|
|
2345
2344
|
variant: "destructive",
|
|
2346
2345
|
onClick: e.onConfirm,
|
|
2347
2346
|
children: t("libs:confirm")
|
|
@@ -2351,16 +2350,16 @@ function dn(e) {
|
|
|
2351
2350
|
}
|
|
2352
2351
|
//#endregion
|
|
2353
2352
|
//#region src/components/dialog/BaseRouterPromptAlertDialog.tsx
|
|
2354
|
-
function
|
|
2355
|
-
let { t } =
|
|
2356
|
-
return /* @__PURE__ */
|
|
2353
|
+
function rn(e) {
|
|
2354
|
+
let { t } = d(), n = e.components?.AlertDialog ?? ge, r = e.components?.AlertDialogContent ?? _e, i = e.components?.AlertDialogHeader ?? ve, a = e.components?.AlertDialogTitle ?? ye, o = e.components?.AlertDialogDescription ?? be, s = e.components?.AlertDialogFooter ?? xe, c = e.components?.Button ?? R;
|
|
2355
|
+
return /* @__PURE__ */ l(n, {
|
|
2357
2356
|
open: e.visible,
|
|
2358
2357
|
onOpenChange: e.onVisibleChange,
|
|
2359
|
-
children: /* @__PURE__ */
|
|
2358
|
+
children: /* @__PURE__ */ u(r, { children: [/* @__PURE__ */ u(i, { children: [/* @__PURE__ */ l(a, { children: t("libs:quit_warning_title") }), /* @__PURE__ */ l(o, { children: t("libs:quite_warning_desc") })] }), /* @__PURE__ */ u(s, { children: [/* @__PURE__ */ l(c, {
|
|
2360
2359
|
variant: "outline",
|
|
2361
2360
|
onClick: () => e.onVisibleChange(!1),
|
|
2362
2361
|
children: t("libs:cancel")
|
|
2363
|
-
}), /* @__PURE__ */
|
|
2362
|
+
}), /* @__PURE__ */ l(c, {
|
|
2364
2363
|
variant: "destructive",
|
|
2365
2364
|
onClick: e.onConfirm,
|
|
2366
2365
|
children: t("libs:confirm")
|
|
@@ -2368,1328 +2367,45 @@ function fn(e) {
|
|
|
2368
2367
|
});
|
|
2369
2368
|
}
|
|
2370
2369
|
//#endregion
|
|
2371
|
-
//#region node_modules/react-router/dist/development/chunk-QUQL4437.mjs
|
|
2372
|
-
function q(e, t) {
|
|
2373
|
-
if (e === !1 || e == null) throw Error(t);
|
|
2374
|
-
}
|
|
2375
|
-
function J(e, t) {
|
|
2376
|
-
if (!e) {
|
|
2377
|
-
typeof console < "u" && console.warn(t);
|
|
2378
|
-
try {
|
|
2379
|
-
throw Error(t);
|
|
2380
|
-
} catch {}
|
|
2381
|
-
}
|
|
2382
|
-
}
|
|
2383
|
-
function pn({ pathname: e = "/", search: t = "", hash: n = "" }) {
|
|
2384
|
-
return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), n && n !== "#" && (e += n.charAt(0) === "#" ? n : "#" + n), e;
|
|
2385
|
-
}
|
|
2386
|
-
function mn(e) {
|
|
2387
|
-
let t = {};
|
|
2388
|
-
if (e) {
|
|
2389
|
-
let n = e.indexOf("#");
|
|
2390
|
-
n >= 0 && (t.hash = e.substring(n), e = e.substring(0, n));
|
|
2391
|
-
let r = e.indexOf("?");
|
|
2392
|
-
r >= 0 && (t.search = e.substring(r), e = e.substring(0, r)), e && (t.pathname = e);
|
|
2393
|
-
}
|
|
2394
|
-
return t;
|
|
2395
|
-
}
|
|
2396
|
-
function hn(e, t, n = "/") {
|
|
2397
|
-
return gn(e, t, n, !1);
|
|
2398
|
-
}
|
|
2399
|
-
function gn(e, t, n, r, i) {
|
|
2400
|
-
let a = Y((typeof t == "string" ? mn(t) : t).pathname || "/", n);
|
|
2401
|
-
if (a == null) return null;
|
|
2402
|
-
let o = i ?? vn(e), s = null, c = Pn(a);
|
|
2403
|
-
for (let e = 0; s == null && e < o.length; ++e) s = jn(o[e], c, r);
|
|
2404
|
-
return s;
|
|
2405
|
-
}
|
|
2406
|
-
function _n(e, t) {
|
|
2407
|
-
let { route: n, pathname: r, params: i } = e;
|
|
2408
|
-
return {
|
|
2409
|
-
id: n.id,
|
|
2410
|
-
pathname: r,
|
|
2411
|
-
params: i,
|
|
2412
|
-
data: t[n.id],
|
|
2413
|
-
loaderData: t[n.id],
|
|
2414
|
-
handle: n.handle
|
|
2415
|
-
};
|
|
2416
|
-
}
|
|
2417
|
-
function vn(e) {
|
|
2418
|
-
let t = yn(e);
|
|
2419
|
-
return xn(t), t;
|
|
2420
|
-
}
|
|
2421
|
-
function yn(e, t = [], n = [], r = "", i = !1) {
|
|
2422
|
-
let a = (e, a, o = i, s) => {
|
|
2423
|
-
let c = {
|
|
2424
|
-
relativePath: s === void 0 ? e.path || "" : s,
|
|
2425
|
-
caseSensitive: e.caseSensitive === !0,
|
|
2426
|
-
childrenIndex: a,
|
|
2427
|
-
route: e
|
|
2428
|
-
};
|
|
2429
|
-
if (c.relativePath.startsWith("/")) {
|
|
2430
|
-
if (!c.relativePath.startsWith(r) && o) return;
|
|
2431
|
-
q(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);
|
|
2432
|
-
}
|
|
2433
|
-
let l = X([r, c.relativePath]), u = n.concat(c);
|
|
2434
|
-
e.children && e.children.length > 0 && (q(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), yn(e.children, t, u, l, o)), !(e.path == null && !e.index) && t.push({
|
|
2435
|
-
path: l,
|
|
2436
|
-
score: kn(l, e.index),
|
|
2437
|
-
routesMeta: u
|
|
2438
|
-
});
|
|
2439
|
-
};
|
|
2440
|
-
return e.forEach((e, t) => {
|
|
2441
|
-
if (e.path === "" || !e.path?.includes("?")) a(e, t);
|
|
2442
|
-
else for (let n of bn(e.path)) a(e, t, !0, n);
|
|
2443
|
-
}), t;
|
|
2444
|
-
}
|
|
2445
|
-
function bn(e) {
|
|
2446
|
-
let t = e.split("/");
|
|
2447
|
-
if (t.length === 0) return [];
|
|
2448
|
-
let [n, ...r] = t, i = n.endsWith("?"), a = n.replace(/\?$/, "");
|
|
2449
|
-
if (r.length === 0) return i ? [a, ""] : [a];
|
|
2450
|
-
let o = bn(r.join("/")), s = [];
|
|
2451
|
-
return s.push(...o.map((e) => e === "" ? a : [a, e].join("/"))), i && s.push(...o), s.map((t) => e.startsWith("/") && t === "" ? "/" : t);
|
|
2452
|
-
}
|
|
2453
|
-
function xn(e) {
|
|
2454
|
-
e.sort((e, t) => e.score === t.score ? An(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
|
|
2455
|
-
}
|
|
2456
|
-
var Sn = /^:[\w-]+$/, Cn = 3, wn = 2, Tn = 1, En = 10, Dn = -2, On = (e) => e === "*";
|
|
2457
|
-
function kn(e, t) {
|
|
2458
|
-
let n = e.split("/"), r = n.length;
|
|
2459
|
-
return n.some(On) && (r += Dn), t && (r += wn), n.filter((e) => !On(e)).reduce((e, t) => e + (Sn.test(t) ? Cn : t === "" ? Tn : En), r);
|
|
2460
|
-
}
|
|
2461
|
-
function An(e, t) {
|
|
2462
|
-
return e.length === t.length && e.slice(0, -1).every((e, n) => e === t[n]) ? e[e.length - 1] - t[t.length - 1] : 0;
|
|
2463
|
-
}
|
|
2464
|
-
function jn(e, t, n = !1) {
|
|
2465
|
-
let { routesMeta: r } = e, i = {}, a = "/", o = [];
|
|
2466
|
-
for (let e = 0; e < r.length; ++e) {
|
|
2467
|
-
let s = r[e], c = e === r.length - 1, l = a === "/" ? t : t.slice(a.length) || "/", u = Mn({
|
|
2468
|
-
path: s.relativePath,
|
|
2469
|
-
caseSensitive: s.caseSensitive,
|
|
2470
|
-
end: c
|
|
2471
|
-
}, l), d = s.route;
|
|
2472
|
-
if (!u && c && n && !r[r.length - 1].route.index && (u = Mn({
|
|
2473
|
-
path: s.relativePath,
|
|
2474
|
-
caseSensitive: s.caseSensitive,
|
|
2475
|
-
end: !1
|
|
2476
|
-
}, l)), !u) return null;
|
|
2477
|
-
Object.assign(i, u.params), o.push({
|
|
2478
|
-
params: i,
|
|
2479
|
-
pathname: X([a, u.pathname]),
|
|
2480
|
-
pathnameBase: Wn(X([a, u.pathnameBase])),
|
|
2481
|
-
route: d
|
|
2482
|
-
}), u.pathnameBase !== "/" && (a = X([a, u.pathnameBase]));
|
|
2483
|
-
}
|
|
2484
|
-
return o;
|
|
2485
|
-
}
|
|
2486
|
-
function Mn(e, t) {
|
|
2487
|
-
typeof e == "string" && (e = {
|
|
2488
|
-
path: e,
|
|
2489
|
-
caseSensitive: !1,
|
|
2490
|
-
end: !0
|
|
2491
|
-
});
|
|
2492
|
-
let [n, r] = Nn(e.path, e.caseSensitive, e.end), i = t.match(n);
|
|
2493
|
-
if (!i) return null;
|
|
2494
|
-
let a = i[0], o = a.replace(/(.)\/+$/, "$1"), s = i.slice(1);
|
|
2495
|
-
return {
|
|
2496
|
-
params: r.reduce((e, { paramName: t, isOptional: n }, r) => {
|
|
2497
|
-
if (t === "*") {
|
|
2498
|
-
let e = s[r] || "";
|
|
2499
|
-
o = a.slice(0, a.length - e.length).replace(/(.)\/+$/, "$1");
|
|
2500
|
-
}
|
|
2501
|
-
let i = s[r];
|
|
2502
|
-
return n && !i ? e[t] = void 0 : e[t] = (i || "").replace(/%2F/g, "/"), e;
|
|
2503
|
-
}, {}),
|
|
2504
|
-
pathname: a,
|
|
2505
|
-
pathnameBase: o,
|
|
2506
|
-
pattern: e
|
|
2507
|
-
};
|
|
2508
|
-
}
|
|
2509
|
-
function Nn(e, t = !1, n = !0) {
|
|
2510
|
-
J(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
|
|
2511
|
-
let r = [], i = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (e, t, n, i, a) => {
|
|
2512
|
-
if (r.push({
|
|
2513
|
-
paramName: t,
|
|
2514
|
-
isOptional: n != null
|
|
2515
|
-
}), n) {
|
|
2516
|
-
let t = a.charAt(i + e.length);
|
|
2517
|
-
return t && t !== "/" ? "/([^\\/]*)" : "(?:/([^\\/]*))?";
|
|
2518
|
-
}
|
|
2519
|
-
return "/([^\\/]+)";
|
|
2520
|
-
}).replace(/\/([\w-]+)\?(\/|$)/g, "(/$1)?$2");
|
|
2521
|
-
return e.endsWith("*") ? (r.push({ paramName: "*" }), i += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? i += "\\/*$" : e !== "" && e !== "/" && (i += "(?:(?=\\/|$))"), [new RegExp(i, t ? void 0 : "i"), r];
|
|
2522
|
-
}
|
|
2523
|
-
function Pn(e) {
|
|
2524
|
-
try {
|
|
2525
|
-
return e.split("/").map((e) => decodeURIComponent(e).replace(/\//g, "%2F")).join("/");
|
|
2526
|
-
} catch (t) {
|
|
2527
|
-
return J(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
|
|
2528
|
-
}
|
|
2529
|
-
}
|
|
2530
|
-
function Y(e, t) {
|
|
2531
|
-
if (t === "/") return e;
|
|
2532
|
-
if (!e.toLowerCase().startsWith(t.toLowerCase())) return null;
|
|
2533
|
-
let n = t.endsWith("/") ? t.length - 1 : t.length, r = e.charAt(n);
|
|
2534
|
-
return r && r !== "/" ? null : e.slice(n) || "/";
|
|
2535
|
-
}
|
|
2536
|
-
var Fn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;
|
|
2537
|
-
function In(e, t = "/") {
|
|
2538
|
-
let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? mn(e) : e, a;
|
|
2539
|
-
return n ? (n = Hn(n), a = n.startsWith("/") ? Ln(n.substring(1), "/") : Ln(n, t)) : a = t, {
|
|
2540
|
-
pathname: a,
|
|
2541
|
-
search: Gn(r),
|
|
2542
|
-
hash: Kn(i)
|
|
2543
|
-
};
|
|
2544
|
-
}
|
|
2545
|
-
function Ln(e, t) {
|
|
2546
|
-
let n = Un(t).split("/");
|
|
2547
|
-
return e.split("/").forEach((e) => {
|
|
2548
|
-
e === ".." ? n.length > 1 && n.pop() : e !== "." && n.push(e);
|
|
2549
|
-
}), n.length > 1 ? n.join("/") : "/";
|
|
2550
|
-
}
|
|
2551
|
-
function Rn(e, t, n, r) {
|
|
2552
|
-
return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
|
|
2553
|
-
}
|
|
2554
|
-
function zn(e) {
|
|
2555
|
-
return e.filter((e, t) => t === 0 || e.route.path && e.route.path.length > 0);
|
|
2556
|
-
}
|
|
2557
|
-
function Bn(e) {
|
|
2558
|
-
let t = zn(e);
|
|
2559
|
-
return t.map((e, n) => n === t.length - 1 ? e.pathname : e.pathnameBase);
|
|
2560
|
-
}
|
|
2561
|
-
function Vn(e, t, n, r = !1) {
|
|
2562
|
-
let i;
|
|
2563
|
-
typeof e == "string" ? i = mn(e) : (i = { ...e }, q(!i.pathname || !i.pathname.includes("?"), Rn("?", "pathname", "search", i)), q(!i.pathname || !i.pathname.includes("#"), Rn("#", "pathname", "hash", i)), q(!i.search || !i.search.includes("#"), Rn("#", "search", "hash", i)));
|
|
2564
|
-
let a = e === "" || i.pathname === "", o = a ? "/" : i.pathname, s;
|
|
2565
|
-
if (o == null) s = n;
|
|
2566
|
-
else {
|
|
2567
|
-
let e = t.length - 1;
|
|
2568
|
-
if (!r && o.startsWith("..")) {
|
|
2569
|
-
let t = o.split("/");
|
|
2570
|
-
for (; t[0] === "..";) t.shift(), --e;
|
|
2571
|
-
i.pathname = t.join("/");
|
|
2572
|
-
}
|
|
2573
|
-
s = e >= 0 ? t[e] : "/";
|
|
2574
|
-
}
|
|
2575
|
-
let c = In(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
|
|
2576
|
-
return !c.pathname.endsWith("/") && (l || u) && (c.pathname += "/"), c;
|
|
2577
|
-
}
|
|
2578
|
-
var Hn = (e) => e.replace(/\/\/+/g, "/"), X = (e) => Hn(e.join("/")), Un = (e) => e.replace(/\/+$/, ""), Wn = (e) => Un(e).replace(/^\/*/, "/"), Gn = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Kn = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, qn = class {
|
|
2579
|
-
constructor(e, t, n, r = !1) {
|
|
2580
|
-
this.status = e, this.statusText = t || "", this.internal = r, n instanceof Error ? (this.data = n.toString(), this.error = n) : this.data = n;
|
|
2581
|
-
}
|
|
2582
|
-
};
|
|
2583
|
-
function Jn(e) {
|
|
2584
|
-
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
|
|
2585
|
-
}
|
|
2586
|
-
function Yn(e) {
|
|
2587
|
-
return X(e.map((e) => e.route.path).filter(Boolean)) || "/";
|
|
2588
|
-
}
|
|
2589
|
-
var Xn = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
|
|
2590
|
-
function Zn(e, t) {
|
|
2591
|
-
let n = e;
|
|
2592
|
-
if (typeof n != "string" || !Fn.test(n)) return {
|
|
2593
|
-
absoluteURL: void 0,
|
|
2594
|
-
isExternal: !1,
|
|
2595
|
-
to: n
|
|
2596
|
-
};
|
|
2597
|
-
let r = n, i = !1;
|
|
2598
|
-
if (Xn) try {
|
|
2599
|
-
let e = new URL(window.location.href), r = n.startsWith("//") ? new URL(e.protocol + n) : new URL(n), a = Y(r.pathname, t);
|
|
2600
|
-
r.origin === e.origin && a != null ? n = a + r.search + r.hash : i = !0;
|
|
2601
|
-
} catch {
|
|
2602
|
-
J(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
|
|
2603
|
-
}
|
|
2604
|
-
return {
|
|
2605
|
-
absoluteURL: r,
|
|
2606
|
-
isExternal: i,
|
|
2607
|
-
to: n
|
|
2608
|
-
};
|
|
2609
|
-
}
|
|
2610
|
-
Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
|
|
2611
|
-
var Qn = [
|
|
2612
|
-
"POST",
|
|
2613
|
-
"PUT",
|
|
2614
|
-
"PATCH",
|
|
2615
|
-
"DELETE"
|
|
2616
|
-
];
|
|
2617
|
-
new Set(Qn);
|
|
2618
|
-
var $n = ["GET", ...Qn];
|
|
2619
|
-
new Set($n);
|
|
2620
|
-
var er = e.createContext(null);
|
|
2621
|
-
er.displayName = "DataRouter";
|
|
2622
|
-
var tr = e.createContext(null);
|
|
2623
|
-
tr.displayName = "DataRouterState";
|
|
2624
|
-
var nr = e.createContext(!1);
|
|
2625
|
-
function rr() {
|
|
2626
|
-
return e.useContext(nr);
|
|
2627
|
-
}
|
|
2628
|
-
var ir = e.createContext({ isTransitioning: !1 });
|
|
2629
|
-
ir.displayName = "ViewTransition";
|
|
2630
|
-
var ar = e.createContext(/* @__PURE__ */ new Map());
|
|
2631
|
-
ar.displayName = "Fetchers";
|
|
2632
|
-
var or = e.createContext(null);
|
|
2633
|
-
or.displayName = "Await";
|
|
2634
|
-
var Z = e.createContext(null);
|
|
2635
|
-
Z.displayName = "Navigation";
|
|
2636
|
-
var sr = e.createContext(null);
|
|
2637
|
-
sr.displayName = "Location";
|
|
2638
|
-
var Q = e.createContext({
|
|
2639
|
-
outlet: null,
|
|
2640
|
-
matches: [],
|
|
2641
|
-
isDataRoute: !1
|
|
2642
|
-
});
|
|
2643
|
-
Q.displayName = "Route";
|
|
2644
|
-
var cr = e.createContext(null);
|
|
2645
|
-
cr.displayName = "RouteError";
|
|
2646
|
-
var lr = "REACT_ROUTER_ERROR", ur = "REDIRECT", dr = "ROUTE_ERROR_RESPONSE";
|
|
2647
|
-
function fr(e) {
|
|
2648
|
-
if (e.startsWith(`${lr}:${ur}:{`)) try {
|
|
2649
|
-
let t = JSON.parse(e.slice(28));
|
|
2650
|
-
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string" && typeof t.location == "string" && typeof t.reloadDocument == "boolean" && typeof t.replace == "boolean") return t;
|
|
2651
|
-
} catch {}
|
|
2652
|
-
}
|
|
2653
|
-
function pr(e) {
|
|
2654
|
-
if (e.startsWith(`${lr}:${dr}:{`)) try {
|
|
2655
|
-
let t = JSON.parse(e.slice(40));
|
|
2656
|
-
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new qn(t.status, t.statusText, t.data);
|
|
2657
|
-
} catch {}
|
|
2658
|
-
}
|
|
2659
|
-
function mr(t, { relative: n } = {}) {
|
|
2660
|
-
q(hr(), "useHref() may be used only in the context of a <Router> component.");
|
|
2661
|
-
let { basename: r, navigator: i } = e.useContext(Z), { hash: a, pathname: o, search: s } = br(t, { relative: n }), c = o;
|
|
2662
|
-
return r !== "/" && (c = o === "/" ? r : X([r, o])), i.createHref({
|
|
2663
|
-
pathname: c,
|
|
2664
|
-
search: s,
|
|
2665
|
-
hash: a
|
|
2666
|
-
});
|
|
2667
|
-
}
|
|
2668
|
-
function hr() {
|
|
2669
|
-
return e.useContext(sr) != null;
|
|
2670
|
-
}
|
|
2671
|
-
function $() {
|
|
2672
|
-
return q(hr(), "useLocation() may be used only in the context of a <Router> component."), e.useContext(sr).location;
|
|
2673
|
-
}
|
|
2674
|
-
var gr = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
2675
|
-
function _r(t) {
|
|
2676
|
-
e.useContext(Z).static || e.useLayoutEffect(t);
|
|
2677
|
-
}
|
|
2678
|
-
function vr() {
|
|
2679
|
-
let { isDataRoute: t } = e.useContext(Q);
|
|
2680
|
-
return t ? Rr() : yr();
|
|
2681
|
-
}
|
|
2682
|
-
function yr() {
|
|
2683
|
-
q(hr(), "useNavigate() may be used only in the context of a <Router> component.");
|
|
2684
|
-
let t = e.useContext(er), { basename: n, navigator: r } = e.useContext(Z), { matches: i } = e.useContext(Q), { pathname: a } = $(), o = JSON.stringify(Bn(i)), s = e.useRef(!1);
|
|
2685
|
-
return _r(() => {
|
|
2686
|
-
s.current = !0;
|
|
2687
|
-
}), e.useCallback((e, i = {}) => {
|
|
2688
|
-
if (J(s.current, gr), !s.current) return;
|
|
2689
|
-
if (typeof e == "number") {
|
|
2690
|
-
r.go(e);
|
|
2691
|
-
return;
|
|
2692
|
-
}
|
|
2693
|
-
let c = Vn(e, JSON.parse(o), a, i.relative === "path");
|
|
2694
|
-
t == null && n !== "/" && (c.pathname = c.pathname === "/" ? n : X([n, c.pathname])), (i.replace ? r.replace : r.push)(c, i.state, i);
|
|
2695
|
-
}, [
|
|
2696
|
-
n,
|
|
2697
|
-
r,
|
|
2698
|
-
o,
|
|
2699
|
-
a,
|
|
2700
|
-
t
|
|
2701
|
-
]);
|
|
2702
|
-
}
|
|
2703
|
-
e.createContext(null);
|
|
2704
|
-
function br(t, { relative: n } = {}) {
|
|
2705
|
-
let { matches: r } = e.useContext(Q), { pathname: i } = $(), a = JSON.stringify(Bn(r));
|
|
2706
|
-
return e.useMemo(() => Vn(t, JSON.parse(a), i, n === "path"), [
|
|
2707
|
-
t,
|
|
2708
|
-
a,
|
|
2709
|
-
i,
|
|
2710
|
-
n
|
|
2711
|
-
]);
|
|
2712
|
-
}
|
|
2713
|
-
function xr(t, n, r) {
|
|
2714
|
-
q(hr(), "useRoutes() may be used only in the context of a <Router> component.");
|
|
2715
|
-
let { navigator: i } = e.useContext(Z), { matches: a } = e.useContext(Q), o = a[a.length - 1], s = o ? o.params : {}, c = o ? o.pathname : "/", l = o ? o.pathnameBase : "/", u = o && o.route;
|
|
2716
|
-
{
|
|
2717
|
-
let e = u && u.path || "";
|
|
2718
|
-
Br(c, !u || e.endsWith("*") || e.endsWith("*?"), `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
2719
|
-
|
|
2720
|
-
Please change the parent <Route path="${e}"> to <Route path="${e === "/" ? "*" : `${e}/*`}">.`);
|
|
2721
|
-
}
|
|
2722
|
-
let d = $(), f;
|
|
2723
|
-
if (n) {
|
|
2724
|
-
let e = typeof n == "string" ? mn(n) : n;
|
|
2725
|
-
q(l === "/" || e.pathname?.startsWith(l), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${e.pathname}" was given in the \`location\` prop.`), f = e;
|
|
2726
|
-
} else f = d;
|
|
2727
|
-
let p = f.pathname || "/", m = p;
|
|
2728
|
-
if (l !== "/") {
|
|
2729
|
-
let e = l.replace(/^\//, "").split("/");
|
|
2730
|
-
m = "/" + p.replace(/^\//, "").split("/").slice(e.length).join("/");
|
|
2731
|
-
}
|
|
2732
|
-
let h = r && r.state.matches.length ? r.state.matches.map((e) => Object.assign(e, { route: r.manifest[e.route.id] || e.route })) : hn(t, { pathname: m });
|
|
2733
|
-
J(u || h != null, `No routes matched location "${f.pathname}${f.search}${f.hash}" `), J(h == null || h[h.length - 1].route.element !== void 0 || h[h.length - 1].route.Component !== void 0 || h[h.length - 1].route.lazy !== void 0, `Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);
|
|
2734
|
-
let g = Or(h && h.map((e) => Object.assign({}, e, {
|
|
2735
|
-
params: Object.assign({}, s, e.params),
|
|
2736
|
-
pathname: X([l, i.encodeLocation ? i.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
|
|
2737
|
-
pathnameBase: e.pathnameBase === "/" ? l : X([l, i.encodeLocation ? i.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
|
|
2738
|
-
})), a, r);
|
|
2739
|
-
return n && g ? /* @__PURE__ */ e.createElement(sr.Provider, { value: {
|
|
2740
|
-
location: {
|
|
2741
|
-
pathname: "/",
|
|
2742
|
-
search: "",
|
|
2743
|
-
hash: "",
|
|
2744
|
-
state: null,
|
|
2745
|
-
key: "default",
|
|
2746
|
-
mask: void 0,
|
|
2747
|
-
...f
|
|
2748
|
-
},
|
|
2749
|
-
navigationType: "POP"
|
|
2750
|
-
} }, g) : g;
|
|
2751
|
-
}
|
|
2752
|
-
function Sr() {
|
|
2753
|
-
let t = Lr(), n = Jn(t) ? `${t.status} ${t.statusText}` : t instanceof Error ? t.message : JSON.stringify(t), r = t instanceof Error ? t.stack : null, i = "rgba(200,200,200, 0.5)", a = {
|
|
2754
|
-
padding: "0.5rem",
|
|
2755
|
-
backgroundColor: i
|
|
2756
|
-
}, o = {
|
|
2757
|
-
padding: "2px 4px",
|
|
2758
|
-
backgroundColor: i
|
|
2759
|
-
}, s = null;
|
|
2760
|
-
return console.error("Error handled by React Router default ErrorBoundary:", t), s = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ e.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ e.createElement("code", { style: o }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ e.createElement("code", { style: o }, "errorElement"), " prop on your route.")), /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ e.createElement("h3", { style: { fontStyle: "italic" } }, n), r ? /* @__PURE__ */ e.createElement("pre", { style: a }, r) : null, s);
|
|
2761
|
-
}
|
|
2762
|
-
var Cr = /* @__PURE__ */ e.createElement(Sr, null), wr = class extends e.Component {
|
|
2763
|
-
constructor(e) {
|
|
2764
|
-
super(e), this.state = {
|
|
2765
|
-
location: e.location,
|
|
2766
|
-
revalidation: e.revalidation,
|
|
2767
|
-
error: e.error
|
|
2768
|
-
};
|
|
2769
|
-
}
|
|
2770
|
-
static getDerivedStateFromError(e) {
|
|
2771
|
-
return { error: e };
|
|
2772
|
-
}
|
|
2773
|
-
static getDerivedStateFromProps(e, t) {
|
|
2774
|
-
return t.location !== e.location || t.revalidation !== "idle" && e.revalidation === "idle" ? {
|
|
2775
|
-
error: e.error,
|
|
2776
|
-
location: e.location,
|
|
2777
|
-
revalidation: e.revalidation
|
|
2778
|
-
} : {
|
|
2779
|
-
error: e.error === void 0 ? t.error : e.error,
|
|
2780
|
-
location: t.location,
|
|
2781
|
-
revalidation: e.revalidation || t.revalidation
|
|
2782
|
-
};
|
|
2783
|
-
}
|
|
2784
|
-
componentDidCatch(e, t) {
|
|
2785
|
-
this.props.onError ? this.props.onError(e, t) : console.error("React Router caught the following error during render", e);
|
|
2786
|
-
}
|
|
2787
|
-
render() {
|
|
2788
|
-
let t = this.state.error;
|
|
2789
|
-
if (this.context && typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
|
|
2790
|
-
let e = pr(t.digest);
|
|
2791
|
-
e && (t = e);
|
|
2792
|
-
}
|
|
2793
|
-
let n = t === void 0 ? this.props.children : /* @__PURE__ */ e.createElement(Q.Provider, { value: this.props.routeContext }, /* @__PURE__ */ e.createElement(cr.Provider, {
|
|
2794
|
-
value: t,
|
|
2795
|
-
children: this.props.component
|
|
2796
|
-
}));
|
|
2797
|
-
return this.context ? /* @__PURE__ */ e.createElement(Er, { error: t }, n) : n;
|
|
2798
|
-
}
|
|
2799
|
-
};
|
|
2800
|
-
wr.contextType = nr;
|
|
2801
|
-
var Tr = /* @__PURE__ */ new WeakMap();
|
|
2802
|
-
function Er({ children: t, error: n }) {
|
|
2803
|
-
let { basename: r } = e.useContext(Z);
|
|
2804
|
-
if (typeof n == "object" && n && "digest" in n && typeof n.digest == "string") {
|
|
2805
|
-
let t = fr(n.digest);
|
|
2806
|
-
if (t) {
|
|
2807
|
-
let i = Tr.get(n);
|
|
2808
|
-
if (i) throw i;
|
|
2809
|
-
let a = Zn(t.location, r);
|
|
2810
|
-
if (Xn && !Tr.get(n)) if (a.isExternal || t.reloadDocument) window.location.href = a.absoluteURL || a.to;
|
|
2811
|
-
else {
|
|
2812
|
-
let e = Promise.resolve().then(() => window.__reactRouterDataRouter.navigate(a.to, { replace: t.replace }));
|
|
2813
|
-
throw Tr.set(n, e), e;
|
|
2814
|
-
}
|
|
2815
|
-
return /* @__PURE__ */ e.createElement("meta", {
|
|
2816
|
-
httpEquiv: "refresh",
|
|
2817
|
-
content: `0;url=${a.absoluteURL || a.to}`
|
|
2818
|
-
});
|
|
2819
|
-
}
|
|
2820
|
-
}
|
|
2821
|
-
return t;
|
|
2822
|
-
}
|
|
2823
|
-
function Dr({ routeContext: t, match: n, children: r }) {
|
|
2824
|
-
let i = e.useContext(er);
|
|
2825
|
-
return i && i.static && i.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ e.createElement(Q.Provider, { value: t }, r);
|
|
2826
|
-
}
|
|
2827
|
-
function Or(t, n = [], r) {
|
|
2828
|
-
let i = r?.state;
|
|
2829
|
-
if (t == null) {
|
|
2830
|
-
if (!i) return null;
|
|
2831
|
-
if (i.errors) t = i.matches;
|
|
2832
|
-
else if (n.length === 0 && !i.initialized && i.matches.length > 0) t = i.matches;
|
|
2833
|
-
else return null;
|
|
2834
|
-
}
|
|
2835
|
-
let a = t, o = i?.errors;
|
|
2836
|
-
if (o != null) {
|
|
2837
|
-
let e = a.findIndex((e) => e.route.id && o?.[e.route.id] !== void 0);
|
|
2838
|
-
q(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`), a = a.slice(0, Math.min(a.length, e + 1));
|
|
2839
|
-
}
|
|
2840
|
-
let s = !1, c = -1;
|
|
2841
|
-
if (r && i) {
|
|
2842
|
-
s = i.renderFallback;
|
|
2843
|
-
for (let e = 0; e < a.length; e++) {
|
|
2844
|
-
let t = a[e];
|
|
2845
|
-
if ((t.route.HydrateFallback || t.route.hydrateFallbackElement) && (c = e), t.route.id) {
|
|
2846
|
-
let { loaderData: e, errors: n } = i, o = t.route.loader && !e.hasOwnProperty(t.route.id) && (!n || n[t.route.id] === void 0);
|
|
2847
|
-
if (t.route.lazy || o) {
|
|
2848
|
-
r.isStatic && (s = !0), a = c >= 0 ? a.slice(0, c + 1) : [a[0]];
|
|
2849
|
-
break;
|
|
2850
|
-
}
|
|
2851
|
-
}
|
|
2852
|
-
}
|
|
2853
|
-
}
|
|
2854
|
-
let l = r?.onError, u = i && l ? (e, t) => {
|
|
2855
|
-
l(e, {
|
|
2856
|
-
location: i.location,
|
|
2857
|
-
params: i.matches?.[0]?.params ?? {},
|
|
2858
|
-
pattern: Yn(i.matches),
|
|
2859
|
-
errorInfo: t
|
|
2860
|
-
});
|
|
2861
|
-
} : void 0;
|
|
2862
|
-
return a.reduceRight((t, r, l) => {
|
|
2863
|
-
let d, f = !1, p = null, m = null;
|
|
2864
|
-
i && (d = o && r.route.id ? o[r.route.id] : void 0, p = r.route.errorElement || Cr, s && (c < 0 && l === 0 ? (Br("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), f = !0, m = null) : c === l && (f = !0, m = r.route.hydrateFallbackElement || null)));
|
|
2865
|
-
let h = n.concat(a.slice(0, l + 1)), g = () => {
|
|
2866
|
-
let n;
|
|
2867
|
-
return n = d ? p : f ? m : r.route.Component ? /* @__PURE__ */ e.createElement(r.route.Component, null) : r.route.element ? r.route.element : t, /* @__PURE__ */ e.createElement(Dr, {
|
|
2868
|
-
match: r,
|
|
2869
|
-
routeContext: {
|
|
2870
|
-
outlet: t,
|
|
2871
|
-
matches: h,
|
|
2872
|
-
isDataRoute: i != null
|
|
2873
|
-
},
|
|
2874
|
-
children: n
|
|
2875
|
-
});
|
|
2876
|
-
};
|
|
2877
|
-
return i && (r.route.ErrorBoundary || r.route.errorElement || l === 0) ? /* @__PURE__ */ e.createElement(wr, {
|
|
2878
|
-
location: i.location,
|
|
2879
|
-
revalidation: i.revalidation,
|
|
2880
|
-
component: p,
|
|
2881
|
-
error: d,
|
|
2882
|
-
children: g(),
|
|
2883
|
-
routeContext: {
|
|
2884
|
-
outlet: null,
|
|
2885
|
-
matches: h,
|
|
2886
|
-
isDataRoute: !0
|
|
2887
|
-
},
|
|
2888
|
-
onError: u
|
|
2889
|
-
}) : g();
|
|
2890
|
-
}, null);
|
|
2891
|
-
}
|
|
2892
|
-
function kr(e) {
|
|
2893
|
-
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
2894
|
-
}
|
|
2895
|
-
function Ar(t) {
|
|
2896
|
-
let n = e.useContext(er);
|
|
2897
|
-
return q(n, kr(t)), n;
|
|
2898
|
-
}
|
|
2899
|
-
function jr(t) {
|
|
2900
|
-
let n = e.useContext(tr);
|
|
2901
|
-
return q(n, kr(t)), n;
|
|
2902
|
-
}
|
|
2903
|
-
function Mr(t) {
|
|
2904
|
-
let n = e.useContext(Q);
|
|
2905
|
-
return q(n, kr(t)), n;
|
|
2906
|
-
}
|
|
2907
|
-
function Nr(e) {
|
|
2908
|
-
let t = Mr(e), n = t.matches[t.matches.length - 1];
|
|
2909
|
-
return q(n.route.id, `${e} can only be used on routes that contain a unique "id"`), n.route.id;
|
|
2910
|
-
}
|
|
2911
|
-
function Pr() {
|
|
2912
|
-
return Nr("useRouteId");
|
|
2913
|
-
}
|
|
2914
|
-
function Fr() {
|
|
2915
|
-
let t = jr("useNavigation");
|
|
2916
|
-
return e.useMemo(() => {
|
|
2917
|
-
let { matches: e, historyAction: n, ...r } = t.navigation;
|
|
2918
|
-
return r;
|
|
2919
|
-
}, [t.navigation]);
|
|
2920
|
-
}
|
|
2921
|
-
function Ir() {
|
|
2922
|
-
let { matches: t, loaderData: n } = jr("useMatches");
|
|
2923
|
-
return e.useMemo(() => t.map((e) => _n(e, n)), [t, n]);
|
|
2924
|
-
}
|
|
2925
|
-
function Lr() {
|
|
2926
|
-
let t = e.useContext(cr), n = jr("useRouteError"), r = Nr("useRouteError");
|
|
2927
|
-
return t === void 0 ? n.errors?.[r] : t;
|
|
2928
|
-
}
|
|
2929
|
-
function Rr() {
|
|
2930
|
-
let { router: t } = Ar("useNavigate"), n = Nr("useNavigate"), r = e.useRef(!1);
|
|
2931
|
-
return _r(() => {
|
|
2932
|
-
r.current = !0;
|
|
2933
|
-
}), e.useCallback(async (e, i = {}) => {
|
|
2934
|
-
J(r.current, gr), r.current && (typeof e == "number" ? await t.navigate(e) : await t.navigate(e, {
|
|
2935
|
-
fromRouteId: n,
|
|
2936
|
-
...i
|
|
2937
|
-
}));
|
|
2938
|
-
}, [t, n]);
|
|
2939
|
-
}
|
|
2940
|
-
var zr = {};
|
|
2941
|
-
function Br(e, t, n) {
|
|
2942
|
-
!t && !zr[e] && (zr[e] = !0, J(!1, n));
|
|
2943
|
-
}
|
|
2944
|
-
e.memo(Vr);
|
|
2945
|
-
function Vr({ routes: e, manifest: t, future: n, state: r, isStatic: i, onError: a }) {
|
|
2946
|
-
return xr(e, void 0, {
|
|
2947
|
-
manifest: t,
|
|
2948
|
-
state: r,
|
|
2949
|
-
isStatic: i,
|
|
2950
|
-
onError: a,
|
|
2951
|
-
future: n
|
|
2952
|
-
});
|
|
2953
|
-
}
|
|
2954
|
-
function Hr({ basename: t = "/", children: n = null, location: r, navigationType: i = "POP", navigator: a, static: o = !1, useTransitions: s }) {
|
|
2955
|
-
q(!hr(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
|
|
2956
|
-
let c = t.replace(/^\/*/, "/"), l = e.useMemo(() => ({
|
|
2957
|
-
basename: c,
|
|
2958
|
-
navigator: a,
|
|
2959
|
-
static: o,
|
|
2960
|
-
useTransitions: s,
|
|
2961
|
-
future: {}
|
|
2962
|
-
}), [
|
|
2963
|
-
c,
|
|
2964
|
-
a,
|
|
2965
|
-
o,
|
|
2966
|
-
s
|
|
2967
|
-
]);
|
|
2968
|
-
typeof r == "string" && (r = mn(r));
|
|
2969
|
-
let { pathname: u = "/", search: d = "", hash: f = "", state: p = null, key: m = "default", mask: h } = r, g = e.useMemo(() => {
|
|
2970
|
-
let e = Y(u, c);
|
|
2971
|
-
return e == null ? null : {
|
|
2972
|
-
location: {
|
|
2973
|
-
pathname: e,
|
|
2974
|
-
search: d,
|
|
2975
|
-
hash: f,
|
|
2976
|
-
state: p,
|
|
2977
|
-
key: m,
|
|
2978
|
-
mask: h
|
|
2979
|
-
},
|
|
2980
|
-
navigationType: i
|
|
2981
|
-
};
|
|
2982
|
-
}, [
|
|
2983
|
-
c,
|
|
2984
|
-
u,
|
|
2985
|
-
d,
|
|
2986
|
-
f,
|
|
2987
|
-
p,
|
|
2988
|
-
m,
|
|
2989
|
-
i,
|
|
2990
|
-
h
|
|
2991
|
-
]);
|
|
2992
|
-
return J(g != null, `<Router basename="${c}"> is not able to match the URL "${u}${d}${f}" because it does not start with the basename, so the <Router> won't render anything.`), g == null ? null : /* @__PURE__ */ e.createElement(Z.Provider, { value: l }, /* @__PURE__ */ e.createElement(sr.Provider, {
|
|
2993
|
-
children: n,
|
|
2994
|
-
value: g
|
|
2995
|
-
}));
|
|
2996
|
-
}
|
|
2997
|
-
e.Component;
|
|
2998
|
-
var Ur = "get", Wr = "application/x-www-form-urlencoded";
|
|
2999
|
-
function Gr(e) {
|
|
3000
|
-
return typeof HTMLElement < "u" && e instanceof HTMLElement;
|
|
3001
|
-
}
|
|
3002
|
-
function Kr(e) {
|
|
3003
|
-
return Gr(e) && e.tagName.toLowerCase() === "button";
|
|
3004
|
-
}
|
|
3005
|
-
function qr(e) {
|
|
3006
|
-
return Gr(e) && e.tagName.toLowerCase() === "form";
|
|
3007
|
-
}
|
|
3008
|
-
function Jr(e) {
|
|
3009
|
-
return Gr(e) && e.tagName.toLowerCase() === "input";
|
|
3010
|
-
}
|
|
3011
|
-
function Yr(e) {
|
|
3012
|
-
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
3013
|
-
}
|
|
3014
|
-
function Xr(e, t) {
|
|
3015
|
-
return e.button === 0 && (!t || t === "_self") && !Yr(e);
|
|
3016
|
-
}
|
|
3017
|
-
var Zr = null;
|
|
3018
|
-
function Qr() {
|
|
3019
|
-
if (Zr === null) try {
|
|
3020
|
-
new FormData(document.createElement("form"), 0), Zr = !1;
|
|
3021
|
-
} catch {
|
|
3022
|
-
Zr = !0;
|
|
3023
|
-
}
|
|
3024
|
-
return Zr;
|
|
3025
|
-
}
|
|
3026
|
-
var $r = /* @__PURE__ */ new Set([
|
|
3027
|
-
"application/x-www-form-urlencoded",
|
|
3028
|
-
"multipart/form-data",
|
|
3029
|
-
"text/plain"
|
|
3030
|
-
]);
|
|
3031
|
-
function ei(e) {
|
|
3032
|
-
return e != null && !$r.has(e) ? (J(!1, `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Wr}"`), null) : e;
|
|
3033
|
-
}
|
|
3034
|
-
function ti(e, t) {
|
|
3035
|
-
let n, r, i, a, o;
|
|
3036
|
-
if (qr(e)) {
|
|
3037
|
-
let o = e.getAttribute("action");
|
|
3038
|
-
r = o ? Y(o, t) : null, n = e.getAttribute("method") || Ur, i = ei(e.getAttribute("enctype")) || Wr, a = new FormData(e);
|
|
3039
|
-
} else if (Kr(e) || Jr(e) && (e.type === "submit" || e.type === "image")) {
|
|
3040
|
-
let o = e.form;
|
|
3041
|
-
if (o == null) throw Error("Cannot submit a <button> or <input type=\"submit\"> without a <form>");
|
|
3042
|
-
let s = e.getAttribute("formaction") || o.getAttribute("action");
|
|
3043
|
-
if (r = s ? Y(s, t) : null, n = e.getAttribute("formmethod") || o.getAttribute("method") || Ur, i = ei(e.getAttribute("formenctype")) || ei(o.getAttribute("enctype")) || Wr, a = new FormData(o, e), !Qr()) {
|
|
3044
|
-
let { name: t, type: n, value: r } = e;
|
|
3045
|
-
if (n === "image") {
|
|
3046
|
-
let e = t ? `${t}.` : "";
|
|
3047
|
-
a.append(`${e}x`, "0"), a.append(`${e}y`, "0");
|
|
3048
|
-
} else t && a.append(t, r);
|
|
3049
|
-
}
|
|
3050
|
-
} else if (Gr(e)) throw Error("Cannot submit element that is not <form>, <button>, or <input type=\"submit|image\">");
|
|
3051
|
-
else n = Ur, r = null, i = Wr, o = e;
|
|
3052
|
-
return a && i === "text/plain" && (o = a, a = void 0), {
|
|
3053
|
-
action: r,
|
|
3054
|
-
method: n.toLowerCase(),
|
|
3055
|
-
encType: i,
|
|
3056
|
-
formData: a,
|
|
3057
|
-
body: o
|
|
3058
|
-
};
|
|
3059
|
-
}
|
|
3060
|
-
Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
|
|
3061
|
-
var ni = {
|
|
3062
|
-
"&": "\\u0026",
|
|
3063
|
-
">": "\\u003e",
|
|
3064
|
-
"<": "\\u003c",
|
|
3065
|
-
"\u2028": "\\u2028",
|
|
3066
|
-
"\u2029": "\\u2029"
|
|
3067
|
-
}, ri = /[&><\u2028\u2029]/g;
|
|
3068
|
-
function ii(e) {
|
|
3069
|
-
return e.replace(ri, (e) => ni[e]);
|
|
3070
|
-
}
|
|
3071
|
-
function ai(e, t) {
|
|
3072
|
-
if (e === !1 || e == null) throw Error(t);
|
|
3073
|
-
}
|
|
3074
|
-
function oi(e, t, n, r) {
|
|
3075
|
-
let i = typeof e == "string" ? new URL(e, typeof window > "u" ? "server://singlefetch/" : window.location.origin) : e;
|
|
3076
|
-
return n ? i.pathname.endsWith("/") ? i.pathname = `${i.pathname}_.${r}` : i.pathname = `${i.pathname}.${r}` : i.pathname === "/" ? i.pathname = `_root.${r}` : t && Y(i.pathname, t) === "/" ? i.pathname = `${Un(t)}/_root.${r}` : i.pathname = `${Un(i.pathname)}.${r}`, i;
|
|
3077
|
-
}
|
|
3078
|
-
async function si(e, t) {
|
|
3079
|
-
if (e.id in t) return t[e.id];
|
|
3080
|
-
try {
|
|
3081
|
-
let n = await import(
|
|
3082
|
-
/* @vite-ignore */
|
|
3083
|
-
/* webpackIgnore: true */
|
|
3084
|
-
e.module
|
|
3085
|
-
);
|
|
3086
|
-
return t[e.id] = n, n;
|
|
3087
|
-
} catch (t) {
|
|
3088
|
-
return console.error(`Error loading route module \`${e.module}\`, reloading page...`), console.error(t), window.__reactRouterContext && window.__reactRouterContext.isSpaMode, window.location.reload(), new Promise(() => {});
|
|
3089
|
-
}
|
|
3090
|
-
}
|
|
3091
|
-
function ci(e) {
|
|
3092
|
-
return e != null && typeof e.page == "string";
|
|
3093
|
-
}
|
|
3094
|
-
function li(e) {
|
|
3095
|
-
return e == null ? !1 : e.href == null ? e.rel === "preload" && typeof e.imageSrcSet == "string" && typeof e.imageSizes == "string" : typeof e.rel == "string" && typeof e.href == "string";
|
|
3096
|
-
}
|
|
3097
|
-
async function ui(e, t, n) {
|
|
3098
|
-
return hi((await Promise.all(e.map(async (e) => {
|
|
3099
|
-
let r = t.routes[e.route.id];
|
|
3100
|
-
if (r) {
|
|
3101
|
-
let e = await si(r, n);
|
|
3102
|
-
return e.links ? e.links() : [];
|
|
3103
|
-
}
|
|
3104
|
-
return [];
|
|
3105
|
-
}))).flat(1).filter(li).filter((e) => e.rel === "stylesheet" || e.rel === "preload").map((e) => e.rel === "stylesheet" ? {
|
|
3106
|
-
...e,
|
|
3107
|
-
rel: "prefetch",
|
|
3108
|
-
as: "style"
|
|
3109
|
-
} : {
|
|
3110
|
-
...e,
|
|
3111
|
-
rel: "prefetch"
|
|
3112
|
-
}));
|
|
3113
|
-
}
|
|
3114
|
-
function di(e, t, n, r, i, a) {
|
|
3115
|
-
let o = (e, t) => n[t] ? e.route.id !== n[t].route.id : !0, s = (e, t) => n[t].pathname !== e.pathname || n[t].route.path?.endsWith("*") && n[t].params["*"] !== e.params["*"];
|
|
3116
|
-
return a === "assets" ? t.filter((e, t) => o(e, t) || s(e, t)) : a === "data" ? t.filter((t, a) => {
|
|
3117
|
-
let c = r.routes[t.route.id];
|
|
3118
|
-
if (!c || !c.hasLoader) return !1;
|
|
3119
|
-
if (o(t, a) || s(t, a)) return !0;
|
|
3120
|
-
if (t.route.shouldRevalidate) {
|
|
3121
|
-
let r = t.route.shouldRevalidate({
|
|
3122
|
-
currentUrl: new URL(i.pathname + i.search + i.hash, window.origin),
|
|
3123
|
-
currentParams: n[0]?.params || {},
|
|
3124
|
-
nextUrl: new URL(e, window.origin),
|
|
3125
|
-
nextParams: t.params,
|
|
3126
|
-
defaultShouldRevalidate: !0
|
|
3127
|
-
});
|
|
3128
|
-
if (typeof r == "boolean") return r;
|
|
3129
|
-
}
|
|
3130
|
-
return !0;
|
|
3131
|
-
}) : [];
|
|
3132
|
-
}
|
|
3133
|
-
function fi(e, t, { includeHydrateFallback: n } = {}) {
|
|
3134
|
-
return pi(e.map((e) => {
|
|
3135
|
-
let r = t.routes[e.route.id];
|
|
3136
|
-
if (!r) return [];
|
|
3137
|
-
let i = [r.module];
|
|
3138
|
-
return r.clientActionModule && (i = i.concat(r.clientActionModule)), r.clientLoaderModule && (i = i.concat(r.clientLoaderModule)), n && r.hydrateFallbackModule && (i = i.concat(r.hydrateFallbackModule)), r.imports && (i = i.concat(r.imports)), i;
|
|
3139
|
-
}).flat(1));
|
|
3140
|
-
}
|
|
3141
|
-
function pi(e) {
|
|
3142
|
-
return [...new Set(e)];
|
|
3143
|
-
}
|
|
3144
|
-
function mi(e) {
|
|
3145
|
-
let t = {}, n = Object.keys(e).sort();
|
|
3146
|
-
for (let r of n) t[r] = e[r];
|
|
3147
|
-
return t;
|
|
3148
|
-
}
|
|
3149
|
-
function hi(e, t) {
|
|
3150
|
-
let n = /* @__PURE__ */ new Set(), r = new Set(t);
|
|
3151
|
-
return e.reduce((e, i) => {
|
|
3152
|
-
if (t && !ci(i) && i.as === "script" && i.href && r.has(i.href)) return e;
|
|
3153
|
-
let a = JSON.stringify(mi(i));
|
|
3154
|
-
return n.has(a) || (n.add(a), e.push({
|
|
3155
|
-
key: a,
|
|
3156
|
-
link: i
|
|
3157
|
-
})), e;
|
|
3158
|
-
}, []);
|
|
3159
|
-
}
|
|
3160
|
-
function gi() {
|
|
3161
|
-
let t = e.useContext(er);
|
|
3162
|
-
return ai(t, "You must render this element inside a <DataRouterContext.Provider> element"), t;
|
|
3163
|
-
}
|
|
3164
|
-
function _i() {
|
|
3165
|
-
let t = e.useContext(tr);
|
|
3166
|
-
return ai(t, "You must render this element inside a <DataRouterStateContext.Provider> element"), t;
|
|
3167
|
-
}
|
|
3168
|
-
var vi = e.createContext(void 0);
|
|
3169
|
-
vi.displayName = "FrameworkContext";
|
|
3170
|
-
function yi() {
|
|
3171
|
-
let t = e.useContext(vi);
|
|
3172
|
-
return ai(t, "You must render this element inside a <HydratedRouter> element"), t;
|
|
3173
|
-
}
|
|
3174
|
-
function bi(t, n) {
|
|
3175
|
-
let r = e.useContext(vi), [i, a] = e.useState(!1), [o, s] = e.useState(!1), { onFocus: c, onBlur: l, onMouseEnter: u, onMouseLeave: d, onTouchStart: f } = n, p = e.useRef(null);
|
|
3176
|
-
e.useEffect(() => {
|
|
3177
|
-
if (t === "render" && s(!0), t === "viewport") {
|
|
3178
|
-
let e = new IntersectionObserver((e) => {
|
|
3179
|
-
e.forEach((e) => {
|
|
3180
|
-
s(e.isIntersecting);
|
|
3181
|
-
});
|
|
3182
|
-
}, { threshold: .5 });
|
|
3183
|
-
return p.current && e.observe(p.current), () => {
|
|
3184
|
-
e.disconnect();
|
|
3185
|
-
};
|
|
3186
|
-
}
|
|
3187
|
-
}, [t]), e.useEffect(() => {
|
|
3188
|
-
if (i) {
|
|
3189
|
-
let e = setTimeout(() => {
|
|
3190
|
-
s(!0);
|
|
3191
|
-
}, 100);
|
|
3192
|
-
return () => {
|
|
3193
|
-
clearTimeout(e);
|
|
3194
|
-
};
|
|
3195
|
-
}
|
|
3196
|
-
}, [i]);
|
|
3197
|
-
let m = () => {
|
|
3198
|
-
a(!0);
|
|
3199
|
-
}, h = () => {
|
|
3200
|
-
a(!1), s(!1);
|
|
3201
|
-
};
|
|
3202
|
-
return r ? t === "intent" ? [
|
|
3203
|
-
o,
|
|
3204
|
-
p,
|
|
3205
|
-
{
|
|
3206
|
-
onFocus: xi(c, m),
|
|
3207
|
-
onBlur: xi(l, h),
|
|
3208
|
-
onMouseEnter: xi(u, m),
|
|
3209
|
-
onMouseLeave: xi(d, h),
|
|
3210
|
-
onTouchStart: xi(f, m)
|
|
3211
|
-
}
|
|
3212
|
-
] : [
|
|
3213
|
-
o,
|
|
3214
|
-
p,
|
|
3215
|
-
{}
|
|
3216
|
-
] : [
|
|
3217
|
-
!1,
|
|
3218
|
-
p,
|
|
3219
|
-
{}
|
|
3220
|
-
];
|
|
3221
|
-
}
|
|
3222
|
-
function xi(e, t) {
|
|
3223
|
-
return (n) => {
|
|
3224
|
-
e && e(n), n.defaultPrevented || t(n);
|
|
3225
|
-
};
|
|
3226
|
-
}
|
|
3227
|
-
function Si({ page: t, ...n }) {
|
|
3228
|
-
let r = rr(), { router: i } = gi(), a = e.useMemo(() => hn(i.routes, t, i.basename), [
|
|
3229
|
-
i.routes,
|
|
3230
|
-
t,
|
|
3231
|
-
i.basename
|
|
3232
|
-
]);
|
|
3233
|
-
return a ? r ? /* @__PURE__ */ e.createElement(wi, {
|
|
3234
|
-
page: t,
|
|
3235
|
-
matches: a,
|
|
3236
|
-
...n
|
|
3237
|
-
}) : /* @__PURE__ */ e.createElement(Ti, {
|
|
3238
|
-
page: t,
|
|
3239
|
-
matches: a,
|
|
3240
|
-
...n
|
|
3241
|
-
}) : null;
|
|
3242
|
-
}
|
|
3243
|
-
function Ci(t) {
|
|
3244
|
-
let { manifest: n, routeModules: r } = yi(), [i, a] = e.useState([]);
|
|
3245
|
-
return e.useEffect(() => {
|
|
3246
|
-
let e = !1;
|
|
3247
|
-
return ui(t, n, r).then((t) => {
|
|
3248
|
-
e || a(t);
|
|
3249
|
-
}), () => {
|
|
3250
|
-
e = !0;
|
|
3251
|
-
};
|
|
3252
|
-
}, [
|
|
3253
|
-
t,
|
|
3254
|
-
n,
|
|
3255
|
-
r
|
|
3256
|
-
]), i;
|
|
3257
|
-
}
|
|
3258
|
-
function wi({ page: t, matches: n, ...r }) {
|
|
3259
|
-
let i = $(), { future: a } = yi(), { basename: o } = gi(), s = e.useMemo(() => {
|
|
3260
|
-
if (t === i.pathname + i.search + i.hash) return [];
|
|
3261
|
-
let e = oi(t, o, a.v8_trailingSlashAwareDataRequests, "rsc"), r = !1, s = [];
|
|
3262
|
-
for (let e of n) typeof e.route.shouldRevalidate == "function" ? r = !0 : s.push(e.route.id);
|
|
3263
|
-
return r && s.length > 0 && e.searchParams.set("_routes", s.join(",")), [e.pathname + e.search];
|
|
3264
|
-
}, [
|
|
3265
|
-
o,
|
|
3266
|
-
a.v8_trailingSlashAwareDataRequests,
|
|
3267
|
-
t,
|
|
3268
|
-
i,
|
|
3269
|
-
n
|
|
3270
|
-
]);
|
|
3271
|
-
return /* @__PURE__ */ e.createElement(e.Fragment, null, s.map((t) => /* @__PURE__ */ e.createElement("link", {
|
|
3272
|
-
key: t,
|
|
3273
|
-
rel: "prefetch",
|
|
3274
|
-
as: "fetch",
|
|
3275
|
-
href: t,
|
|
3276
|
-
...r
|
|
3277
|
-
})));
|
|
3278
|
-
}
|
|
3279
|
-
function Ti({ page: t, matches: n, ...r }) {
|
|
3280
|
-
let i = $(), { future: a, manifest: o, routeModules: s } = yi(), { basename: c } = gi(), { loaderData: l, matches: u } = _i(), d = e.useMemo(() => di(t, n, u, o, i, "data"), [
|
|
3281
|
-
t,
|
|
3282
|
-
n,
|
|
3283
|
-
u,
|
|
3284
|
-
o,
|
|
3285
|
-
i
|
|
3286
|
-
]), f = e.useMemo(() => di(t, n, u, o, i, "assets"), [
|
|
3287
|
-
t,
|
|
3288
|
-
n,
|
|
3289
|
-
u,
|
|
3290
|
-
o,
|
|
3291
|
-
i
|
|
3292
|
-
]), p = e.useMemo(() => {
|
|
3293
|
-
if (t === i.pathname + i.search + i.hash) return [];
|
|
3294
|
-
let e = /* @__PURE__ */ new Set(), r = !1;
|
|
3295
|
-
if (n.forEach((t) => {
|
|
3296
|
-
let n = o.routes[t.route.id];
|
|
3297
|
-
!n || !n.hasLoader || (!d.some((e) => e.route.id === t.route.id) && t.route.id in l && s[t.route.id]?.shouldRevalidate || n.hasClientLoader ? r = !0 : e.add(t.route.id));
|
|
3298
|
-
}), e.size === 0) return [];
|
|
3299
|
-
let u = oi(t, c, a.v8_trailingSlashAwareDataRequests, "data");
|
|
3300
|
-
return r && e.size > 0 && u.searchParams.set("_routes", n.filter((t) => e.has(t.route.id)).map((e) => e.route.id).join(",")), [u.pathname + u.search];
|
|
3301
|
-
}, [
|
|
3302
|
-
c,
|
|
3303
|
-
a.v8_trailingSlashAwareDataRequests,
|
|
3304
|
-
l,
|
|
3305
|
-
i,
|
|
3306
|
-
o,
|
|
3307
|
-
d,
|
|
3308
|
-
n,
|
|
3309
|
-
t,
|
|
3310
|
-
s
|
|
3311
|
-
]), m = e.useMemo(() => fi(f, o), [f, o]), h = Ci(f);
|
|
3312
|
-
return /* @__PURE__ */ e.createElement(e.Fragment, null, p.map((t) => /* @__PURE__ */ e.createElement("link", {
|
|
3313
|
-
key: t,
|
|
3314
|
-
rel: "prefetch",
|
|
3315
|
-
as: "fetch",
|
|
3316
|
-
href: t,
|
|
3317
|
-
...r
|
|
3318
|
-
})), m.map((t) => /* @__PURE__ */ e.createElement("link", {
|
|
3319
|
-
key: t,
|
|
3320
|
-
rel: "modulepreload",
|
|
3321
|
-
href: t,
|
|
3322
|
-
...r
|
|
3323
|
-
})), h.map(({ key: t, link: n }) => /* @__PURE__ */ e.createElement("link", {
|
|
3324
|
-
key: t,
|
|
3325
|
-
nonce: r.nonce,
|
|
3326
|
-
...n,
|
|
3327
|
-
crossOrigin: n.crossOrigin ?? r.crossOrigin
|
|
3328
|
-
})));
|
|
3329
|
-
}
|
|
3330
|
-
function Ei(...e) {
|
|
3331
|
-
return (t) => {
|
|
3332
|
-
e.forEach((e) => {
|
|
3333
|
-
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
3334
|
-
});
|
|
3335
|
-
};
|
|
3336
|
-
}
|
|
3337
|
-
e.Component;
|
|
3338
|
-
var Di = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
|
|
3339
|
-
try {
|
|
3340
|
-
Di && (window.__reactRouterVersion = "7.16.0");
|
|
3341
|
-
} catch {}
|
|
3342
|
-
function Oi({ basename: t, children: n, history: r, useTransitions: i }) {
|
|
3343
|
-
let [a, o] = e.useState({
|
|
3344
|
-
action: r.action,
|
|
3345
|
-
location: r.location
|
|
3346
|
-
}), s = e.useCallback((t) => {
|
|
3347
|
-
i === !1 ? o(t) : e.startTransition(() => o(t));
|
|
3348
|
-
}, [i]);
|
|
3349
|
-
return e.useLayoutEffect(() => r.listen(s), [r, s]), /* @__PURE__ */ e.createElement(Hr, {
|
|
3350
|
-
basename: t,
|
|
3351
|
-
children: n,
|
|
3352
|
-
location: a.location,
|
|
3353
|
-
navigationType: a.action,
|
|
3354
|
-
navigator: r,
|
|
3355
|
-
useTransitions: i
|
|
3356
|
-
});
|
|
3357
|
-
}
|
|
3358
|
-
Oi.displayName = "unstable_HistoryRouter";
|
|
3359
|
-
var ki = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ai = e.forwardRef(function({ onClick: t, discover: n = "render", prefetch: r = "none", relative: i, reloadDocument: a, replace: o, mask: s, state: c, target: l, to: u, preventScrollReset: d, viewTransition: f, defaultShouldRevalidate: p, ...m }, h) {
|
|
3360
|
-
let { basename: g, navigator: _, useTransitions: v } = e.useContext(Z), y = typeof u == "string" && ki.test(u), b = Zn(u, g);
|
|
3361
|
-
u = b.to;
|
|
3362
|
-
let x = mr(u, { relative: i }), S = $(), C = null;
|
|
3363
|
-
if (s) {
|
|
3364
|
-
let e = Vn(s, [], S.mask ? S.mask.pathname : "/", !0);
|
|
3365
|
-
g !== "/" && (e.pathname = e.pathname === "/" ? g : X([g, e.pathname])), C = _.createHref(e);
|
|
3366
|
-
}
|
|
3367
|
-
let [w, T, E] = bi(r, m), ee = Li(u, {
|
|
3368
|
-
replace: o,
|
|
3369
|
-
mask: s,
|
|
3370
|
-
state: c,
|
|
3371
|
-
target: l,
|
|
3372
|
-
preventScrollReset: d,
|
|
3373
|
-
relative: i,
|
|
3374
|
-
viewTransition: f,
|
|
3375
|
-
defaultShouldRevalidate: p,
|
|
3376
|
-
useTransitions: v
|
|
3377
|
-
});
|
|
3378
|
-
function te(e) {
|
|
3379
|
-
t && t(e), e.defaultPrevented || ee(e);
|
|
3380
|
-
}
|
|
3381
|
-
let ne = !(b.isExternal || a), D = /* @__PURE__ */ e.createElement("a", {
|
|
3382
|
-
...m,
|
|
3383
|
-
...E,
|
|
3384
|
-
href: (ne ? C : void 0) || b.absoluteURL || x,
|
|
3385
|
-
onClick: ne ? te : t,
|
|
3386
|
-
ref: Ei(h, T),
|
|
3387
|
-
target: l,
|
|
3388
|
-
"data-discover": !y && n === "render" ? "true" : void 0
|
|
3389
|
-
});
|
|
3390
|
-
return w && !y ? /* @__PURE__ */ e.createElement(e.Fragment, null, D, /* @__PURE__ */ e.createElement(Si, { page: x })) : D;
|
|
3391
|
-
});
|
|
3392
|
-
Ai.displayName = "Link";
|
|
3393
|
-
var ji = e.forwardRef(function({ "aria-current": t = "page", caseSensitive: n = !1, className: r = "", end: i = !1, style: a, to: o, viewTransition: s, children: c, ...l }, u) {
|
|
3394
|
-
let d = br(o, { relative: l.relative }), f = $(), p = e.useContext(tr), { navigator: m, basename: h } = e.useContext(Z), g = p != null && qi(d) && s === !0, _ = m.encodeLocation ? m.encodeLocation(d).pathname : d.pathname, v = f.pathname, y = p && p.navigation && p.navigation.location ? p.navigation.location.pathname : null;
|
|
3395
|
-
n || (v = v.toLowerCase(), y = y ? y.toLowerCase() : null, _ = _.toLowerCase()), y && h && (y = Y(y, h) || y);
|
|
3396
|
-
let b = _ !== "/" && _.endsWith("/") ? _.length - 1 : _.length, x = v === _ || !i && v.startsWith(_) && v.charAt(b) === "/", S = y != null && (y === _ || !i && y.startsWith(_) && y.charAt(_.length) === "/"), C = {
|
|
3397
|
-
isActive: x,
|
|
3398
|
-
isPending: S,
|
|
3399
|
-
isTransitioning: g
|
|
3400
|
-
}, w = x ? t : void 0, T;
|
|
3401
|
-
T = typeof r == "function" ? r(C) : [
|
|
3402
|
-
r,
|
|
3403
|
-
x ? "active" : null,
|
|
3404
|
-
S ? "pending" : null,
|
|
3405
|
-
g ? "transitioning" : null
|
|
3406
|
-
].filter(Boolean).join(" ");
|
|
3407
|
-
let E = typeof a == "function" ? a(C) : a;
|
|
3408
|
-
return /* @__PURE__ */ e.createElement(Ai, {
|
|
3409
|
-
...l,
|
|
3410
|
-
"aria-current": w,
|
|
3411
|
-
className: T,
|
|
3412
|
-
ref: u,
|
|
3413
|
-
style: E,
|
|
3414
|
-
to: o,
|
|
3415
|
-
viewTransition: s
|
|
3416
|
-
}, typeof c == "function" ? c(C) : c);
|
|
3417
|
-
});
|
|
3418
|
-
ji.displayName = "NavLink";
|
|
3419
|
-
var Mi = e.forwardRef(({ discover: t = "render", fetcherKey: n, navigate: r, reloadDocument: i, replace: a, state: o, method: s = Ur, action: c, onSubmit: l, relative: u, preventScrollReset: d, viewTransition: f, defaultShouldRevalidate: p, ...m }, h) => {
|
|
3420
|
-
let { useTransitions: g } = e.useContext(Z), _ = Bi(), v = Vi(c, { relative: u }), y = s.toLowerCase() === "get" ? "get" : "post", b = typeof c == "string" && ki.test(c);
|
|
3421
|
-
return /* @__PURE__ */ e.createElement("form", {
|
|
3422
|
-
ref: h,
|
|
3423
|
-
method: y,
|
|
3424
|
-
action: v,
|
|
3425
|
-
onSubmit: i ? l : (t) => {
|
|
3426
|
-
if (l && l(t), t.defaultPrevented) return;
|
|
3427
|
-
t.preventDefault();
|
|
3428
|
-
let i = t.nativeEvent.submitter, c = i?.getAttribute("formmethod") || s, m = () => _(i || t.currentTarget, {
|
|
3429
|
-
fetcherKey: n,
|
|
3430
|
-
method: c,
|
|
3431
|
-
navigate: r,
|
|
3432
|
-
replace: a,
|
|
3433
|
-
state: o,
|
|
3434
|
-
relative: u,
|
|
3435
|
-
preventScrollReset: d,
|
|
3436
|
-
viewTransition: f,
|
|
3437
|
-
defaultShouldRevalidate: p
|
|
3438
|
-
});
|
|
3439
|
-
g && r !== !1 ? e.startTransition(() => m()) : m();
|
|
3440
|
-
},
|
|
3441
|
-
...m,
|
|
3442
|
-
"data-discover": !b && t === "render" ? "true" : void 0
|
|
3443
|
-
});
|
|
3444
|
-
});
|
|
3445
|
-
Mi.displayName = "Form";
|
|
3446
|
-
function Ni({ getKey: t, storageKey: n, ...r }) {
|
|
3447
|
-
let i = e.useContext(vi), { basename: a } = e.useContext(Z), o = $(), s = Ir();
|
|
3448
|
-
Gi({
|
|
3449
|
-
getKey: t,
|
|
3450
|
-
storageKey: n
|
|
3451
|
-
});
|
|
3452
|
-
let c = e.useMemo(() => {
|
|
3453
|
-
if (!i || !t) return null;
|
|
3454
|
-
let e = Wi(o, s, a, t);
|
|
3455
|
-
return e === o.key ? null : e;
|
|
3456
|
-
}, []);
|
|
3457
|
-
if (!i || i.isSpaMode) return null;
|
|
3458
|
-
let l = ((e, t) => {
|
|
3459
|
-
if (!window.history.state || !window.history.state.key) {
|
|
3460
|
-
let e = Math.random().toString(32).slice(2);
|
|
3461
|
-
window.history.replaceState({ key: e }, "");
|
|
3462
|
-
}
|
|
3463
|
-
try {
|
|
3464
|
-
let n = JSON.parse(sessionStorage.getItem(e) || "{}")[t || window.history.state.key];
|
|
3465
|
-
typeof n == "number" && window.scrollTo(0, n);
|
|
3466
|
-
} catch (t) {
|
|
3467
|
-
console.error(t), sessionStorage.removeItem(e);
|
|
3468
|
-
}
|
|
3469
|
-
}).toString();
|
|
3470
|
-
return /* @__PURE__ */ e.createElement("script", {
|
|
3471
|
-
...r,
|
|
3472
|
-
suppressHydrationWarning: !0,
|
|
3473
|
-
dangerouslySetInnerHTML: { __html: `(${l})(${ii(JSON.stringify(n || Hi))}, ${ii(JSON.stringify(c))})` }
|
|
3474
|
-
});
|
|
3475
|
-
}
|
|
3476
|
-
Ni.displayName = "ScrollRestoration";
|
|
3477
|
-
function Pi(e) {
|
|
3478
|
-
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
3479
|
-
}
|
|
3480
|
-
function Fi(t) {
|
|
3481
|
-
let n = e.useContext(er);
|
|
3482
|
-
return q(n, Pi(t)), n;
|
|
3483
|
-
}
|
|
3484
|
-
function Ii(t) {
|
|
3485
|
-
let n = e.useContext(tr);
|
|
3486
|
-
return q(n, Pi(t)), n;
|
|
3487
|
-
}
|
|
3488
|
-
function Li(t, { target: n, replace: r, mask: i, state: a, preventScrollReset: o, relative: s, viewTransition: c, defaultShouldRevalidate: l, useTransitions: u } = {}) {
|
|
3489
|
-
let d = vr(), f = $(), p = br(t, { relative: s });
|
|
3490
|
-
return e.useCallback((m) => {
|
|
3491
|
-
if (Xr(m, n)) {
|
|
3492
|
-
m.preventDefault();
|
|
3493
|
-
let n = r === void 0 ? pn(f) === pn(p) : r, h = () => d(t, {
|
|
3494
|
-
replace: n,
|
|
3495
|
-
mask: i,
|
|
3496
|
-
state: a,
|
|
3497
|
-
preventScrollReset: o,
|
|
3498
|
-
relative: s,
|
|
3499
|
-
viewTransition: c,
|
|
3500
|
-
defaultShouldRevalidate: l
|
|
3501
|
-
});
|
|
3502
|
-
u ? e.startTransition(() => h()) : h();
|
|
3503
|
-
}
|
|
3504
|
-
}, [
|
|
3505
|
-
f,
|
|
3506
|
-
d,
|
|
3507
|
-
p,
|
|
3508
|
-
r,
|
|
3509
|
-
i,
|
|
3510
|
-
a,
|
|
3511
|
-
n,
|
|
3512
|
-
t,
|
|
3513
|
-
o,
|
|
3514
|
-
s,
|
|
3515
|
-
c,
|
|
3516
|
-
l,
|
|
3517
|
-
u
|
|
3518
|
-
]);
|
|
3519
|
-
}
|
|
3520
|
-
var Ri = 0, zi = () => `__${String(++Ri)}__`;
|
|
3521
|
-
function Bi() {
|
|
3522
|
-
let { router: t } = Fi("useSubmit"), { basename: n } = e.useContext(Z), r = Pr(), i = t.fetch, a = t.navigate;
|
|
3523
|
-
return e.useCallback(async (e, t = {}) => {
|
|
3524
|
-
let { action: o, method: s, encType: c, formData: l, body: u } = ti(e, n);
|
|
3525
|
-
t.navigate === !1 ? await i(t.fetcherKey || zi(), r, t.action || o, {
|
|
3526
|
-
defaultShouldRevalidate: t.defaultShouldRevalidate,
|
|
3527
|
-
preventScrollReset: t.preventScrollReset,
|
|
3528
|
-
formData: l,
|
|
3529
|
-
body: u,
|
|
3530
|
-
formMethod: t.method || s,
|
|
3531
|
-
formEncType: t.encType || c,
|
|
3532
|
-
flushSync: t.flushSync
|
|
3533
|
-
}) : await a(t.action || o, {
|
|
3534
|
-
defaultShouldRevalidate: t.defaultShouldRevalidate,
|
|
3535
|
-
preventScrollReset: t.preventScrollReset,
|
|
3536
|
-
formData: l,
|
|
3537
|
-
body: u,
|
|
3538
|
-
formMethod: t.method || s,
|
|
3539
|
-
formEncType: t.encType || c,
|
|
3540
|
-
replace: t.replace,
|
|
3541
|
-
state: t.state,
|
|
3542
|
-
fromRouteId: r,
|
|
3543
|
-
flushSync: t.flushSync,
|
|
3544
|
-
viewTransition: t.viewTransition
|
|
3545
|
-
});
|
|
3546
|
-
}, [
|
|
3547
|
-
i,
|
|
3548
|
-
a,
|
|
3549
|
-
n,
|
|
3550
|
-
r
|
|
3551
|
-
]);
|
|
3552
|
-
}
|
|
3553
|
-
function Vi(t, { relative: n } = {}) {
|
|
3554
|
-
let { basename: r } = e.useContext(Z), i = e.useContext(Q);
|
|
3555
|
-
q(i, "useFormAction must be used inside a RouteContext");
|
|
3556
|
-
let [a] = i.matches.slice(-1), o = { ...br(t || ".", { relative: n }) }, s = $();
|
|
3557
|
-
if (t == null) {
|
|
3558
|
-
o.search = s.search;
|
|
3559
|
-
let e = new URLSearchParams(o.search), t = e.getAll("index");
|
|
3560
|
-
if (t.some((e) => e === "")) {
|
|
3561
|
-
e.delete("index"), t.filter((e) => e).forEach((t) => e.append("index", t));
|
|
3562
|
-
let n = e.toString();
|
|
3563
|
-
o.search = n ? `?${n}` : "";
|
|
3564
|
-
}
|
|
3565
|
-
}
|
|
3566
|
-
return (!t || t === ".") && a.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (o.pathname = o.pathname === "/" ? r : X([r, o.pathname])), pn(o);
|
|
3567
|
-
}
|
|
3568
|
-
var Hi = "react-router-scroll-positions", Ui = {};
|
|
3569
|
-
function Wi(e, t, n, r) {
|
|
3570
|
-
let i = null;
|
|
3571
|
-
return r && (i = r(n === "/" ? e : {
|
|
3572
|
-
...e,
|
|
3573
|
-
pathname: Y(e.pathname, n) || e.pathname
|
|
3574
|
-
}, t)), i ??= e.key, i;
|
|
3575
|
-
}
|
|
3576
|
-
function Gi({ getKey: t, storageKey: n } = {}) {
|
|
3577
|
-
let { router: r } = Fi("useScrollRestoration"), { restoreScrollPosition: i, preventScrollReset: a } = Ii("useScrollRestoration"), { basename: o } = e.useContext(Z), s = $(), c = Ir(), l = Fr();
|
|
3578
|
-
e.useEffect(() => (window.history.scrollRestoration = "manual", () => {
|
|
3579
|
-
window.history.scrollRestoration = "auto";
|
|
3580
|
-
}), []), Ki(e.useCallback(() => {
|
|
3581
|
-
if (l.state === "idle") {
|
|
3582
|
-
let e = Wi(s, c, o, t);
|
|
3583
|
-
Ui[e] = window.scrollY;
|
|
3584
|
-
}
|
|
3585
|
-
try {
|
|
3586
|
-
sessionStorage.setItem(n || Hi, JSON.stringify(Ui));
|
|
3587
|
-
} catch (e) {
|
|
3588
|
-
J(!1, `Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`);
|
|
3589
|
-
}
|
|
3590
|
-
window.history.scrollRestoration = "auto";
|
|
3591
|
-
}, [
|
|
3592
|
-
l.state,
|
|
3593
|
-
t,
|
|
3594
|
-
o,
|
|
3595
|
-
s,
|
|
3596
|
-
c,
|
|
3597
|
-
n
|
|
3598
|
-
])), typeof document < "u" && (e.useLayoutEffect(() => {
|
|
3599
|
-
try {
|
|
3600
|
-
let e = sessionStorage.getItem(n || Hi);
|
|
3601
|
-
e && (Ui = JSON.parse(e));
|
|
3602
|
-
} catch {}
|
|
3603
|
-
}, [n]), e.useLayoutEffect(() => {
|
|
3604
|
-
let e = r?.enableScrollRestoration(Ui, () => window.scrollY, t ? (e, n) => Wi(e, n, o, t) : void 0);
|
|
3605
|
-
return () => e && e();
|
|
3606
|
-
}, [
|
|
3607
|
-
r,
|
|
3608
|
-
o,
|
|
3609
|
-
t
|
|
3610
|
-
]), e.useLayoutEffect(() => {
|
|
3611
|
-
if (i !== !1) {
|
|
3612
|
-
if (typeof i == "number") {
|
|
3613
|
-
window.scrollTo(0, i);
|
|
3614
|
-
return;
|
|
3615
|
-
}
|
|
3616
|
-
try {
|
|
3617
|
-
if (s.hash) {
|
|
3618
|
-
let e = document.getElementById(decodeURIComponent(s.hash.slice(1)));
|
|
3619
|
-
if (e) {
|
|
3620
|
-
e.scrollIntoView();
|
|
3621
|
-
return;
|
|
3622
|
-
}
|
|
3623
|
-
}
|
|
3624
|
-
} catch {
|
|
3625
|
-
J(!1, `"${s.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`);
|
|
3626
|
-
}
|
|
3627
|
-
a !== !0 && window.scrollTo(0, 0);
|
|
3628
|
-
}
|
|
3629
|
-
}, [
|
|
3630
|
-
s,
|
|
3631
|
-
i,
|
|
3632
|
-
a
|
|
3633
|
-
]));
|
|
3634
|
-
}
|
|
3635
|
-
function Ki(t, n) {
|
|
3636
|
-
let { capture: r } = n || {};
|
|
3637
|
-
e.useEffect(() => {
|
|
3638
|
-
let e = r == null ? void 0 : { capture: r };
|
|
3639
|
-
return window.addEventListener("pagehide", t, e), () => {
|
|
3640
|
-
window.removeEventListener("pagehide", t, e);
|
|
3641
|
-
};
|
|
3642
|
-
}, [t, r]);
|
|
3643
|
-
}
|
|
3644
|
-
function qi(t, { relative: n } = {}) {
|
|
3645
|
-
let r = e.useContext(ir);
|
|
3646
|
-
q(r != null, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");
|
|
3647
|
-
let { basename: i } = Fi("useViewTransitionState"), a = br(t, { relative: n });
|
|
3648
|
-
if (!r.isTransitioning) return !1;
|
|
3649
|
-
let o = Y(r.currentLocation.pathname, i) || r.currentLocation.pathname, s = Y(r.nextLocation.pathname, i) || r.nextLocation.pathname;
|
|
3650
|
-
return Mn(a.pathname, s) != null || Mn(a.pathname, o) != null;
|
|
3651
|
-
}
|
|
3652
|
-
//#endregion
|
|
3653
2370
|
//#region src/hooks/use-screen-lifecycle.tsx
|
|
3654
|
-
function
|
|
2371
|
+
function an(e) {
|
|
3655
2372
|
return typeof e == "object" && !!e && "shouldRefresh" in e && !!e.shouldRefresh;
|
|
3656
2373
|
}
|
|
3657
|
-
function
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
t(), a(r.pathname, {
|
|
2374
|
+
function on({ location: e, navigate: t, init: n, refresh: i, onDisposed: a }) {
|
|
2375
|
+
r(() => {
|
|
2376
|
+
if (an(e.state)) {
|
|
2377
|
+
i(), t(e.pathname, {
|
|
3662
2378
|
replace: !0,
|
|
3663
2379
|
state: {}
|
|
3664
2380
|
});
|
|
3665
2381
|
return;
|
|
3666
2382
|
}
|
|
3667
|
-
|
|
2383
|
+
n();
|
|
3668
2384
|
}, [
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
]),
|
|
2385
|
+
e.key,
|
|
2386
|
+
e.pathname,
|
|
2387
|
+
e.state,
|
|
2388
|
+
t,
|
|
2389
|
+
n,
|
|
2390
|
+
i
|
|
2391
|
+
]), r(() => () => a(), [a]);
|
|
3676
2392
|
}
|
|
3677
2393
|
//#endregion
|
|
3678
2394
|
//#region src/hooks/use-debounced-value.tsx
|
|
3679
|
-
function
|
|
3680
|
-
let [n,
|
|
3681
|
-
return
|
|
2395
|
+
function sn(e, t = 300) {
|
|
2396
|
+
let [n, i] = a(e);
|
|
2397
|
+
return r(() => {
|
|
3682
2398
|
let n = window.setTimeout(() => {
|
|
3683
|
-
|
|
2399
|
+
i(e);
|
|
3684
2400
|
}, t);
|
|
3685
2401
|
return () => window.clearTimeout(n);
|
|
3686
2402
|
}, [e, t]), n;
|
|
3687
2403
|
}
|
|
3688
2404
|
//#endregion
|
|
3689
2405
|
//#region src/hooks/use-debounced-search.tsx
|
|
3690
|
-
function
|
|
3691
|
-
let a =
|
|
3692
|
-
|
|
2406
|
+
function cn(e, t, n, i = 300) {
|
|
2407
|
+
let a = sn(e, i);
|
|
2408
|
+
r(() => {
|
|
3693
2409
|
let e = a.trim();
|
|
3694
2410
|
if (!e) {
|
|
3695
2411
|
n();
|
|
@@ -3704,48 +2420,48 @@ function Zi(e, t, n, r = 300) {
|
|
|
3704
2420
|
}
|
|
3705
2421
|
//#endregion
|
|
3706
2422
|
//#region src/utils/firestore.ts
|
|
3707
|
-
function
|
|
2423
|
+
function ln(e) {
|
|
3708
2424
|
return {
|
|
3709
2425
|
...e.data(),
|
|
3710
2426
|
id: e.id
|
|
3711
2427
|
};
|
|
3712
2428
|
}
|
|
3713
|
-
async function
|
|
2429
|
+
async function un(e, t, n, r) {
|
|
3714
2430
|
let i = r.filter((e) => !!(e && !n.has(e.path)));
|
|
3715
2431
|
for (let r = 0; r < i.length; r += 30) {
|
|
3716
2432
|
let a = i.slice(r, r + 30);
|
|
3717
|
-
(await
|
|
2433
|
+
(await v(b(e, S(g(), "in", a.map((e) => e.id))))).forEach((e) => {
|
|
3718
2434
|
let r = t(e);
|
|
3719
2435
|
n.set(e.ref.path, r);
|
|
3720
2436
|
});
|
|
3721
2437
|
}
|
|
3722
2438
|
}
|
|
3723
|
-
async function
|
|
2439
|
+
async function dn(e, t, n) {
|
|
3724
2440
|
let r = n.filter((e) => !!(e && !t.has(e.path)));
|
|
3725
2441
|
await Promise.all(r.map(async (n) => {
|
|
3726
|
-
let r = e(await
|
|
2442
|
+
let r = e(await _(n));
|
|
3727
2443
|
t.set(n.path, r);
|
|
3728
2444
|
}));
|
|
3729
2445
|
}
|
|
3730
|
-
function
|
|
2446
|
+
function fn(e = {}) {
|
|
3731
2447
|
let { cache: t = !0, includeMetadataChanges: n } = e;
|
|
3732
2448
|
return {
|
|
3733
2449
|
listenOptions: { includeMetadataChanges: n ?? !t },
|
|
3734
2450
|
cache: t
|
|
3735
2451
|
};
|
|
3736
2452
|
}
|
|
3737
|
-
function
|
|
2453
|
+
function pn(e, t) {
|
|
3738
2454
|
return t !== !1 || !e;
|
|
3739
2455
|
}
|
|
3740
|
-
function
|
|
3741
|
-
let { listenOptions: r, cache: i } =
|
|
3742
|
-
return e.type,
|
|
3743
|
-
|
|
2456
|
+
function mn(e, t, n = {}) {
|
|
2457
|
+
let { listenOptions: r, cache: i } = fn(n), { onError: a } = n;
|
|
2458
|
+
return e.type, y(e, r, (e) => {
|
|
2459
|
+
pn(e.metadata.fromCache, i) && t(e);
|
|
3744
2460
|
}, a);
|
|
3745
2461
|
}
|
|
3746
2462
|
//#endregion
|
|
3747
2463
|
//#region src/utils/array.ts
|
|
3748
|
-
function
|
|
2464
|
+
function hn(e, t) {
|
|
3749
2465
|
return e.flatMap((e, n) => {
|
|
3750
2466
|
let r = t(e, n);
|
|
3751
2467
|
return r == null ? [] : [r];
|
|
@@ -3753,37 +2469,37 @@ function ia(e, t) {
|
|
|
3753
2469
|
}
|
|
3754
2470
|
//#endregion
|
|
3755
2471
|
//#region src/utils/platform.ts
|
|
3756
|
-
function
|
|
2472
|
+
function gn() {
|
|
3757
2473
|
if (typeof window > "u") return "pc";
|
|
3758
2474
|
let e = navigator.userAgent, t = navigator.platform, n = /Android/i.test(e), r = /iPhone|iPad|iPod/i.test(e) || t === "MacIntel" && navigator.maxTouchPoints > 1;
|
|
3759
2475
|
return n ? "android" : r ? "ios" : "pc";
|
|
3760
2476
|
}
|
|
3761
2477
|
//#endregion
|
|
3762
2478
|
//#region src/utils/zustand.tsx
|
|
3763
|
-
function
|
|
3764
|
-
let
|
|
3765
|
-
function i({ children:
|
|
3766
|
-
let [i] =
|
|
3767
|
-
return /* @__PURE__ */
|
|
2479
|
+
function _n(t) {
|
|
2480
|
+
let r = e(null);
|
|
2481
|
+
function i({ children: e, ...n }) {
|
|
2482
|
+
let [i] = a(() => t(n));
|
|
2483
|
+
return /* @__PURE__ */ l(r.Provider, {
|
|
3768
2484
|
value: i,
|
|
3769
|
-
children:
|
|
2485
|
+
children: e
|
|
3770
2486
|
});
|
|
3771
2487
|
}
|
|
3772
|
-
function
|
|
3773
|
-
let t = r
|
|
2488
|
+
function o(e) {
|
|
2489
|
+
let t = n(r);
|
|
3774
2490
|
if (!t) throw Error("Provider가 필요합니다.");
|
|
3775
|
-
return
|
|
2491
|
+
return C(t, e);
|
|
3776
2492
|
}
|
|
3777
2493
|
let s = /* @__PURE__ */ new Map();
|
|
3778
2494
|
return {
|
|
3779
2495
|
Provider: i,
|
|
3780
|
-
useStore:
|
|
3781
|
-
use: new Proxy({}, { get: (e, t) => (s.has(t) || s.set(t, () =>
|
|
2496
|
+
useStore: o,
|
|
2497
|
+
use: new Proxy({}, { get: (e, t) => (s.has(t) || s.set(t, () => o((e) => e[t])), s.get(t)) })
|
|
3782
2498
|
};
|
|
3783
2499
|
}
|
|
3784
2500
|
//#endregion
|
|
3785
2501
|
//#region node_modules/dayjs/dayjs.min.js
|
|
3786
|
-
var
|
|
2502
|
+
var vn = /* @__PURE__ */ j(((e, t) => {
|
|
3787
2503
|
(function(n, r) {
|
|
3788
2504
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs = r();
|
|
3789
2505
|
})(e, (function() {
|
|
@@ -4077,9 +2793,9 @@ var sa = /* @__PURE__ */ ie(((e, t) => {
|
|
|
4077
2793
|
return w(1e3 * e);
|
|
4078
2794
|
}, w.en = b[y], w.Ls = b, w.p = {}, w;
|
|
4079
2795
|
}));
|
|
4080
|
-
})),
|
|
2796
|
+
})), yn = /* @__PURE__ */ j(((e, t) => {
|
|
4081
2797
|
(function(n, r) {
|
|
4082
|
-
typeof e == "object" && t !== void 0 ? t.exports = r(
|
|
2798
|
+
typeof e == "object" && t !== void 0 ? t.exports = r(vn()) : typeof define == "function" && define.amd ? define(["dayjs"], r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_locale_ko = r(n.dayjs);
|
|
4083
2799
|
})(e, (function(e) {
|
|
4084
2800
|
function t(e) {
|
|
4085
2801
|
return e && typeof e == "object" && "default" in e ? e : { default: e };
|
|
@@ -4127,7 +2843,7 @@ var sa = /* @__PURE__ */ ie(((e, t) => {
|
|
|
4127
2843
|
};
|
|
4128
2844
|
return n.default.locale(r, null, !0), r;
|
|
4129
2845
|
}));
|
|
4130
|
-
})),
|
|
2846
|
+
})), bn = /* @__PURE__ */ j(((e, t) => {
|
|
4131
2847
|
(function(n, r) {
|
|
4132
2848
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_locale_en = r();
|
|
4133
2849
|
})(e, (function() {
|
|
@@ -4146,54 +2862,54 @@ var sa = /* @__PURE__ */ ie(((e, t) => {
|
|
|
4146
2862
|
}
|
|
4147
2863
|
};
|
|
4148
2864
|
}));
|
|
4149
|
-
})),
|
|
4150
|
-
|
|
4151
|
-
function
|
|
4152
|
-
let r = (0,
|
|
2865
|
+
})), xn = /* @__PURE__ */ M(vn(), 1);
|
|
2866
|
+
yn(), bn();
|
|
2867
|
+
function Sn(e, t, n) {
|
|
2868
|
+
let r = (0, xn.default)(e);
|
|
4153
2869
|
return !e || !r.isValid() ? "" : r.format(n(t));
|
|
4154
2870
|
}
|
|
4155
|
-
function
|
|
4156
|
-
let { t: e } =
|
|
4157
|
-
return
|
|
4158
|
-
basicDateTimeFormat: (t, n) =>
|
|
4159
|
-
dateTimeFormat: (t) =>
|
|
4160
|
-
dateFormat: (t) =>
|
|
4161
|
-
timeFormat: (t) =>
|
|
2871
|
+
function Cn() {
|
|
2872
|
+
let { t: e } = d();
|
|
2873
|
+
return i(() => ({
|
|
2874
|
+
basicDateTimeFormat: (t, n) => Sn(t, n, e),
|
|
2875
|
+
dateTimeFormat: (t) => Sn(t, "libs:datetime.date_time_format", e),
|
|
2876
|
+
dateFormat: (t) => Sn(t, "libs:datetime.date_format", e),
|
|
2877
|
+
timeFormat: (t) => Sn(t, "libs:datetime.time_format", e)
|
|
4162
2878
|
}), [e]);
|
|
4163
2879
|
}
|
|
4164
|
-
function
|
|
4165
|
-
let t = (0,
|
|
2880
|
+
function wn(e) {
|
|
2881
|
+
let t = (0, xn.default)(e);
|
|
4166
2882
|
return t.isValid() ? t.format("YYYYMMDD") : "";
|
|
4167
2883
|
}
|
|
4168
|
-
function
|
|
4169
|
-
let t = (0,
|
|
2884
|
+
function Tn(e) {
|
|
2885
|
+
let t = (0, xn.default)(e);
|
|
4170
2886
|
return t.isValid() ? t.format("HH:mm") : "";
|
|
4171
2887
|
}
|
|
4172
|
-
var
|
|
2888
|
+
var En = (e) => {
|
|
4173
2889
|
let t = e?.split("-")[0] === "ko" ? "ko" : "en";
|
|
4174
|
-
|
|
2890
|
+
xn.default.locale(t);
|
|
4175
2891
|
};
|
|
4176
|
-
|
|
2892
|
+
w.isInitialized && En(w.resolvedLanguage || w.language), w.on("languageChanged", En);
|
|
4177
2893
|
//#endregion
|
|
4178
2894
|
//#region src/utils/file.ts
|
|
4179
|
-
function
|
|
2895
|
+
function Dn(e) {
|
|
4180
2896
|
let t = e.lastIndexOf(".");
|
|
4181
2897
|
return t === -1 ? "" : e.substring(t + 1);
|
|
4182
2898
|
}
|
|
4183
2899
|
//#endregion
|
|
4184
2900
|
//#region src/utils/fb-storage.ts
|
|
4185
|
-
async function
|
|
2901
|
+
async function On(e, t, n) {
|
|
4186
2902
|
if (!n.file) return n.url;
|
|
4187
2903
|
try {
|
|
4188
|
-
let r =
|
|
4189
|
-
return await
|
|
2904
|
+
let r = Dn(n.file.name);
|
|
2905
|
+
return await T((await ee(E(e, r ? t + "." + r : t), n.file, { contentType: n.file.type })).ref);
|
|
4190
2906
|
} catch (e) {
|
|
4191
2907
|
throw console.error("Firebase image upload failed:", e), e;
|
|
4192
2908
|
}
|
|
4193
2909
|
}
|
|
4194
2910
|
//#endregion
|
|
4195
2911
|
//#region src/utils/table.ts
|
|
4196
|
-
function
|
|
2912
|
+
function kn(e, t, n, r) {
|
|
4197
2913
|
let i = /* @__PURE__ */ new Map(), a = [];
|
|
4198
2914
|
for (let n of e) i.set(t(n), {
|
|
4199
2915
|
...n,
|
|
@@ -4212,39 +2928,39 @@ function va(e, t, n, r) {
|
|
|
4212
2928
|
}
|
|
4213
2929
|
//#endregion
|
|
4214
2930
|
//#region src/utils/theme-provider.tsx
|
|
4215
|
-
var
|
|
2931
|
+
var An = e({
|
|
4216
2932
|
theme: "system",
|
|
4217
2933
|
resolvedTheme: "light",
|
|
4218
2934
|
setTheme: () => null
|
|
4219
|
-
}),
|
|
2935
|
+
}), jn = (e) => e === "light" || e === "dark" || e === "system", Mn = (e, t, n) => {
|
|
4220
2936
|
let r = localStorage.getItem(e);
|
|
4221
2937
|
if (!r) return t;
|
|
4222
2938
|
try {
|
|
4223
2939
|
let i = JSON.parse(r);
|
|
4224
|
-
if (
|
|
2940
|
+
if (jn(i)) return i;
|
|
4225
2941
|
if (i && typeof i == "object" && "theme" in i && "time" in i) {
|
|
4226
2942
|
let r = i;
|
|
4227
|
-
if (!
|
|
2943
|
+
if (!jn(r.theme) || typeof r.time != "number") return t;
|
|
4228
2944
|
let a = Date.now(), o = n * 60 * 60 * 1e3;
|
|
4229
2945
|
return a - r.time < o ? r.theme : (localStorage.removeItem(e), t);
|
|
4230
2946
|
}
|
|
4231
2947
|
} catch {
|
|
4232
|
-
if (
|
|
2948
|
+
if (jn(r)) return r;
|
|
4233
2949
|
}
|
|
4234
2950
|
return t;
|
|
4235
2951
|
};
|
|
4236
|
-
function
|
|
4237
|
-
let [s, c] =
|
|
4238
|
-
|
|
2952
|
+
function Nn({ children: e, defaultTheme: t = "system", storageKey: n = "vite-ui-theme", themeExpiryHours: o = 24 }) {
|
|
2953
|
+
let [s, c] = a(() => Mn(n, t, o)), [u, d] = a(() => window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), f = s === "system" ? u : s;
|
|
2954
|
+
r(() => {
|
|
4239
2955
|
let e = window.matchMedia("(prefers-color-scheme: dark)"), t = (e) => {
|
|
4240
2956
|
d(e.matches ? "dark" : "light");
|
|
4241
2957
|
};
|
|
4242
2958
|
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
|
|
4243
|
-
}, []),
|
|
2959
|
+
}, []), r(() => {
|
|
4244
2960
|
let e = window.document.documentElement, t = f === "dark" ? "dark" : "light";
|
|
4245
2961
|
e.classList.remove("light", "dark"), e.classList.add(t);
|
|
4246
2962
|
}, [f]);
|
|
4247
|
-
let p =
|
|
2963
|
+
let p = i(() => ({
|
|
4248
2964
|
theme: s,
|
|
4249
2965
|
resolvedTheme: f,
|
|
4250
2966
|
setTheme: (e) => {
|
|
@@ -4259,39 +2975,39 @@ function Sa({ children: e, defaultTheme: t = "system", storageKey: n = "vite-ui-
|
|
|
4259
2975
|
f,
|
|
4260
2976
|
n
|
|
4261
2977
|
]);
|
|
4262
|
-
return /* @__PURE__ */
|
|
2978
|
+
return /* @__PURE__ */ l(An.Provider, {
|
|
4263
2979
|
value: p,
|
|
4264
2980
|
children: e
|
|
4265
2981
|
});
|
|
4266
2982
|
}
|
|
4267
|
-
var
|
|
2983
|
+
var Pn = () => n(An);
|
|
4268
2984
|
//#endregion
|
|
4269
2985
|
//#region src/utils/text.ts
|
|
4270
|
-
function
|
|
2986
|
+
function Fn(e) {
|
|
4271
2987
|
let t = e.trimEnd(), n = t.length === 0 ? null : t[t.length - 1];
|
|
4272
2988
|
return !n || n.charCodeAt(0) < 44032 || n.charCodeAt(0) > 55203 ? !1 : (n.charCodeAt(0) - 44032) % 28 != 0;
|
|
4273
2989
|
}
|
|
4274
|
-
function
|
|
4275
|
-
return e + (
|
|
2990
|
+
function In(e, t, n) {
|
|
2991
|
+
return e + (Fn(e) ? t : n);
|
|
4276
2992
|
}
|
|
4277
2993
|
//#endregion
|
|
4278
2994
|
//#region src/constant/firestore.ts
|
|
4279
|
-
var
|
|
4280
|
-
updateAt:
|
|
2995
|
+
var Ln = () => ({
|
|
2996
|
+
updateAt: x(),
|
|
4281
2997
|
delete: !0
|
|
4282
|
-
}),
|
|
4283
|
-
updateAt:
|
|
2998
|
+
}), Rn = () => ({
|
|
2999
|
+
updateAt: x(),
|
|
4284
3000
|
delete: !1
|
|
4285
|
-
}),
|
|
4286
|
-
updateAt:
|
|
4287
|
-
deletedAt:
|
|
4288
|
-
}),
|
|
4289
|
-
updateAt:
|
|
3001
|
+
}), zn = () => ({
|
|
3002
|
+
updateAt: x(),
|
|
3003
|
+
deletedAt: x()
|
|
3004
|
+
}), Bn = () => ({
|
|
3005
|
+
updateAt: x(),
|
|
4290
3006
|
deletedAt: null
|
|
4291
3007
|
});
|
|
4292
3008
|
//#endregion
|
|
4293
3009
|
//#region src/constant/auth.ts
|
|
4294
|
-
function
|
|
3010
|
+
function Vn(e) {
|
|
4295
3011
|
switch (e) {
|
|
4296
3012
|
case "auth/user-not-found": return "libs:auth.errors.user_not_found";
|
|
4297
3013
|
case "auth/wrong-password": return "libs:auth.errors.wrong_password";
|
|
@@ -4313,7 +3029,7 @@ function Aa(e) {
|
|
|
4313
3029
|
default: return "libs:auth.errors.default";
|
|
4314
3030
|
}
|
|
4315
3031
|
}
|
|
4316
|
-
var
|
|
3032
|
+
var Hn = {
|
|
4317
3033
|
add_assets: "애셋 추가",
|
|
4318
3034
|
auth: { errors: {
|
|
4319
3035
|
account_exists_with_different_credential: "이미 다른 로그인 방식으로 가입된 이메일이에요. 기존 방식으로 로그인해 주세요.",
|
|
@@ -4351,7 +3067,7 @@ var ja = {
|
|
|
4351
3067
|
quite_warning_desc: "변경된 모든 사항을 취소하고 이전 화면으로 돌아갑니다.",
|
|
4352
3068
|
time: "시각",
|
|
4353
3069
|
unknown_error_occurred: "알 수 없는 오류가 발생했습니다."
|
|
4354
|
-
},
|
|
3070
|
+
}, Un = {
|
|
4355
3071
|
add_assets: "Add Assets",
|
|
4356
3072
|
auth: { errors: {
|
|
4357
3073
|
account_exists_with_different_credential: "This email is already linked to another sign-in method. Please use that method to sign in.",
|
|
@@ -4392,12 +3108,12 @@ var ja = {
|
|
|
4392
3108
|
};
|
|
4393
3109
|
//#endregion
|
|
4394
3110
|
//#region src/locales/i18n.ts
|
|
4395
|
-
function
|
|
4396
|
-
e.hasResourceBundle("ko", "libs") || e.addResourceBundle("ko", "libs",
|
|
3111
|
+
function Wn(e) {
|
|
3112
|
+
e.hasResourceBundle("ko", "libs") || e.addResourceBundle("ko", "libs", Hn, !0, !1), e.hasResourceBundle("en", "libs") || e.addResourceBundle("en", "libs", Un, !0, !1);
|
|
4397
3113
|
}
|
|
4398
3114
|
//#endregion
|
|
4399
3115
|
//#region src/css/toast.ts
|
|
4400
|
-
var
|
|
3116
|
+
var Gn = {
|
|
4401
3117
|
Info: {
|
|
4402
3118
|
Soft: {
|
|
4403
3119
|
"--normal-bg": "color-mix(in oklab, light-dark(var(--color-sky-600), var(--color-sky-400)) 10%, var(--background))",
|
|
@@ -4466,7 +3182,7 @@ var Pa = {
|
|
|
4466
3182
|
"--normal-border": "transparent"
|
|
4467
3183
|
}
|
|
4468
3184
|
}
|
|
4469
|
-
},
|
|
3185
|
+
}, Kn = {
|
|
4470
3186
|
initial: {
|
|
4471
3187
|
opacity: 0,
|
|
4472
3188
|
y: -10
|
|
@@ -4479,11 +3195,11 @@ var Pa = {
|
|
|
4479
3195
|
opacity: 0,
|
|
4480
3196
|
y: -10
|
|
4481
3197
|
}
|
|
4482
|
-
},
|
|
3198
|
+
}, qn = {
|
|
4483
3199
|
initial: { opacity: 0 },
|
|
4484
3200
|
animate: { opacity: 1 },
|
|
4485
3201
|
exit: { opacity: 0 },
|
|
4486
3202
|
transition: { duration: .3 }
|
|
4487
3203
|
};
|
|
4488
3204
|
//#endregion
|
|
4489
|
-
export {
|
|
3205
|
+
export { en as AnimatedSwapIcon, tn as BaseDateTimeSelector, nn as BaseDeleteAlertDialog, rn as BaseRouterPromptAlertDialog, N as CrossfadeImage, Zt as DataTable, Se as DefaultCalendar, _e as DefaultDialogContent, be as DefaultDialogDescription, xe as DefaultDialogFooter, ve as DefaultDialogHeader, ge as DefaultDialogRoot, ye as DefaultDialogTitle, Ce as DefaultFieldGroup, we as DefaultInputGroup, Ee as DefaultInputGroupAddon, Te as DefaultInputGroupInput, ue as DefaultTable, fe as DefaultTableBody, he as DefaultTableCell, me as DefaultTableHead, de as DefaultTableHeader, pe as DefaultTableRow, De as DefaultTimeIcon, Qt as GroupedDataTable, Oe as ImageUploadField, le as ImageUploadItem, ke as ImageUploadSortableField, V as Localized, z as SUPPORTED_LOCALES, Nn as ThemeProvider, Gn as ToastCSS, kn as buildTreeWithSubRows, _n as createZustandContext, wn as dateIdFormat, zn as delItem, Ln as delItemLegacy, qn as fadeProps, un as fetchItems, dn as fetchItemsByOne, Vn as getAuthErrorKey, Dn as getFileExtension, gn as getPlatformType, mn as getSnapshots, Fn as hasLastConsonant, Wn as initIenlabI18n, hn as mapNotNull, ce as setLocalizedLocaleResolver, Kn as slideFadeProps, ln as snapshotToData, Tn as time24Format, Bn as undelItem, Rn as undelItemLegacy, On as uploadImage, Cn as useDateTimeFormatters, cn as useDebouncedSearch, sn as useDebouncedValue, on as useListScreenLifecycle, Pn as useTheme, In as withLetterParticle };
|