opsfuse-ui 0.1.12 → 0.1.14
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/components/ui/avatar.d.ts +1 -1
- package/dist/components/ui/avatar.d.ts.map +1 -1
- package/dist/components/ui/dialog.d.ts +1 -1
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/shadcn/shadcn-avatar.d.ts +1 -1
- package/dist/components/ui/shadcn/shadcn-avatar.d.ts.map +1 -1
- package/dist/components/ui/shadcn/shadcn-combobox.d.ts.map +1 -1
- package/dist/core.js +3 -3
- package/dist/extended.js +2 -2
- package/dist/index.js +23 -23
- package/dist/{input-group-Cs_7xSjN.js → input-group-B7EsxYkc.js} +1091 -1060
- package/dist/{input-otp-CGTrl2aj.js → input-otp-DUMPmzcw.js} +3350 -3346
- package/dist/lib/portaled-layer.d.ts +16 -0
- package/dist/lib/portaled-layer.d.ts.map +1 -0
- package/dist/style.css +2 -2
- package/dist/{toggle-group-BBYrK3NA.js → toggle-group-Dqx7Nhg1.js} +2906 -2906
- package/package.json +1 -1
|
@@ -19,7 +19,7 @@ var _ = (e, t) => {
|
|
|
19
19
|
validators: t,
|
|
20
20
|
classGroupId: n
|
|
21
21
|
}), b = "-", x = [], S = "arbitrary..", C = (e) => {
|
|
22
|
-
let t =
|
|
22
|
+
let t = ee(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
|
|
23
23
|
return {
|
|
24
24
|
getClassGroupId: (e) => {
|
|
25
25
|
if (e.startsWith("[") && e.endsWith("]")) return T(e);
|
|
@@ -51,55 +51,55 @@ var _ = (e, t) => {
|
|
|
51
51
|
}, T = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
52
52
|
let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
|
|
53
53
|
return r ? S + r : void 0;
|
|
54
|
-
})(),
|
|
54
|
+
})(), ee = (e) => {
|
|
55
55
|
let { theme: t, classGroups: n } = e;
|
|
56
|
-
return
|
|
57
|
-
},
|
|
56
|
+
return E(n, t);
|
|
57
|
+
}, E = (e, t) => {
|
|
58
58
|
let n = y();
|
|
59
59
|
for (let r in e) {
|
|
60
60
|
let i = e[r];
|
|
61
|
-
|
|
61
|
+
D(i, n, r, t);
|
|
62
62
|
}
|
|
63
63
|
return n;
|
|
64
|
-
},
|
|
64
|
+
}, D = (e, t, n, r) => {
|
|
65
65
|
let i = e.length;
|
|
66
66
|
for (let a = 0; a < i; a++) {
|
|
67
67
|
let i = e[a];
|
|
68
|
-
|
|
68
|
+
te(i, t, n, r);
|
|
69
69
|
}
|
|
70
|
-
},
|
|
70
|
+
}, te = (e, t, n, r) => {
|
|
71
71
|
if (typeof e == "string") {
|
|
72
|
-
|
|
72
|
+
O(e, t, n);
|
|
73
73
|
return;
|
|
74
74
|
}
|
|
75
75
|
if (typeof e == "function") {
|
|
76
|
-
|
|
76
|
+
k(e, t, n, r);
|
|
77
77
|
return;
|
|
78
78
|
}
|
|
79
|
-
|
|
80
|
-
},
|
|
81
|
-
let r = e === "" ? t :
|
|
79
|
+
A(e, t, n, r);
|
|
80
|
+
}, O = (e, t, n) => {
|
|
81
|
+
let r = e === "" ? t : j(t, e);
|
|
82
82
|
r.classGroupId = n;
|
|
83
|
-
},
|
|
84
|
-
if (
|
|
85
|
-
|
|
83
|
+
}, k = (e, t, n, r) => {
|
|
84
|
+
if (M(e)) {
|
|
85
|
+
D(e(r), t, n, r);
|
|
86
86
|
return;
|
|
87
87
|
}
|
|
88
88
|
t.validators === null && (t.validators = []), t.validators.push(v(n, e));
|
|
89
|
-
},
|
|
89
|
+
}, A = (e, t, n, r) => {
|
|
90
90
|
let i = Object.entries(e), a = i.length;
|
|
91
91
|
for (let e = 0; e < a; e++) {
|
|
92
92
|
let [a, o] = i[e];
|
|
93
|
-
|
|
93
|
+
D(o, j(t, a), n, r);
|
|
94
94
|
}
|
|
95
|
-
},
|
|
95
|
+
}, j = (e, t) => {
|
|
96
96
|
let n = e, r = t.split(b), i = r.length;
|
|
97
97
|
for (let e = 0; e < i; e++) {
|
|
98
98
|
let t = r[e], i = n.nextPart.get(t);
|
|
99
99
|
i || (i = y(), n.nextPart.set(t, i)), n = i;
|
|
100
100
|
}
|
|
101
101
|
return n;
|
|
102
|
-
},
|
|
102
|
+
}, M = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, N = (e) => {
|
|
103
103
|
if (e < 1) return {
|
|
104
104
|
get: () => void 0,
|
|
105
105
|
set: () => {}
|
|
@@ -117,19 +117,19 @@ var _ = (e, t) => {
|
|
|
117
117
|
e in n ? n[e] = t : i(e, t);
|
|
118
118
|
}
|
|
119
119
|
};
|
|
120
|
-
},
|
|
120
|
+
}, P = "!", F = ":", ne = [], re = (e, t, n, r, i) => ({
|
|
121
121
|
modifiers: e,
|
|
122
122
|
hasImportantModifier: t,
|
|
123
123
|
baseClassName: n,
|
|
124
124
|
maybePostfixModifierPosition: r,
|
|
125
125
|
isExternal: i
|
|
126
|
-
}),
|
|
126
|
+
}), ie = (e) => {
|
|
127
127
|
let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
|
|
128
128
|
let t = [], n = 0, r = 0, i = 0, a, o = e.length;
|
|
129
129
|
for (let s = 0; s < o; s++) {
|
|
130
130
|
let o = e[s];
|
|
131
131
|
if (n === 0 && r === 0) {
|
|
132
|
-
if (o ===
|
|
132
|
+
if (o === F) {
|
|
133
133
|
t.push(e.slice(i, s)), i = s + 1;
|
|
134
134
|
continue;
|
|
135
135
|
}
|
|
@@ -141,13 +141,13 @@ var _ = (e, t) => {
|
|
|
141
141
|
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
|
|
142
142
|
}
|
|
143
143
|
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
|
|
144
|
-
s.endsWith(
|
|
144
|
+
s.endsWith(P) ? (c = s.slice(0, -1), l = !0) : s.startsWith(P) && (c = s.slice(1), l = !0);
|
|
145
145
|
let u = a && a > i ? a - i : void 0;
|
|
146
|
-
return
|
|
146
|
+
return re(t, l, c, u);
|
|
147
147
|
};
|
|
148
148
|
if (t) {
|
|
149
|
-
let e = t +
|
|
150
|
-
r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : ne
|
|
149
|
+
let e = t + F, n = r;
|
|
150
|
+
r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : re(ne, !1, t, void 0, !0);
|
|
151
151
|
}
|
|
152
152
|
if (n) {
|
|
153
153
|
let e = r;
|
|
@@ -157,7 +157,7 @@ var _ = (e, t) => {
|
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
159
|
return r;
|
|
160
|
-
},
|
|
160
|
+
}, I = (e) => {
|
|
161
161
|
let t = /* @__PURE__ */ new Map();
|
|
162
162
|
return e.orderSensitiveModifiers.forEach((e, n) => {
|
|
163
163
|
t.set(e, 1e6 + n);
|
|
@@ -169,18 +169,18 @@ var _ = (e, t) => {
|
|
|
169
169
|
}
|
|
170
170
|
return r.length > 0 && (r.sort(), n.push(...r)), n;
|
|
171
171
|
};
|
|
172
|
-
},
|
|
173
|
-
cache:
|
|
174
|
-
parseClassName:
|
|
175
|
-
sortModifiers:
|
|
176
|
-
postfixLookupClassGroupIds:
|
|
172
|
+
}, L = (e) => ({
|
|
173
|
+
cache: N(e.cacheSize),
|
|
174
|
+
parseClassName: ie(e),
|
|
175
|
+
sortModifiers: I(e),
|
|
176
|
+
postfixLookupClassGroupIds: ae(e),
|
|
177
177
|
...C(e)
|
|
178
|
-
}),
|
|
178
|
+
}), ae = (e) => {
|
|
179
179
|
let t = Object.create(null), n = e.postfixLookupClassGroups;
|
|
180
180
|
if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
|
|
181
181
|
return t;
|
|
182
|
-
},
|
|
183
|
-
let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(
|
|
182
|
+
}, oe = /\s+/, R = (e, t) => {
|
|
183
|
+
let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(oe), l = "";
|
|
184
184
|
for (let e = c.length - 1; e >= 0; --e) {
|
|
185
185
|
let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
|
|
186
186
|
if (u) {
|
|
@@ -204,7 +204,7 @@ var _ = (e, t) => {
|
|
|
204
204
|
}
|
|
205
205
|
h = !1;
|
|
206
206
|
}
|
|
207
|
-
let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ +
|
|
207
|
+
let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + P : _, y = v + g;
|
|
208
208
|
if (s.indexOf(y) > -1) continue;
|
|
209
209
|
s.push(y);
|
|
210
210
|
let b = i(g, h);
|
|
@@ -215,34 +215,34 @@ var _ = (e, t) => {
|
|
|
215
215
|
l = t + (l.length > 0 ? " " + l : l);
|
|
216
216
|
}
|
|
217
217
|
return l;
|
|
218
|
-
},
|
|
218
|
+
}, se = (...e) => {
|
|
219
219
|
let t = 0, n, r, i = "";
|
|
220
|
-
for (; t < e.length;) (n = e[t++]) && (r =
|
|
220
|
+
for (; t < e.length;) (n = e[t++]) && (r = z(n)) && (i && (i += " "), i += r);
|
|
221
221
|
return i;
|
|
222
|
-
},
|
|
222
|
+
}, z = (e) => {
|
|
223
223
|
if (typeof e == "string") return e;
|
|
224
224
|
let t, n = "";
|
|
225
|
-
for (let r = 0; r < e.length; r++) e[r] && (t =
|
|
225
|
+
for (let r = 0; r < e.length; r++) e[r] && (t = z(e[r])) && (n && (n += " "), n += t);
|
|
226
226
|
return n;
|
|
227
|
-
},
|
|
228
|
-
let n, r, i, a, o = (o) => (n =
|
|
227
|
+
}, ce = (e, ...t) => {
|
|
228
|
+
let n, r, i, a, o = (o) => (n = L(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
|
|
229
229
|
let t = r(e);
|
|
230
230
|
if (t) return t;
|
|
231
|
-
let a =
|
|
231
|
+
let a = R(e, n);
|
|
232
232
|
return i(e, a), a;
|
|
233
233
|
};
|
|
234
|
-
return a = o, (...e) => a(
|
|
235
|
-
},
|
|
236
|
-
let t = (t) => t[e] ||
|
|
234
|
+
return a = o, (...e) => a(se(...e));
|
|
235
|
+
}, le = [], B = (e) => {
|
|
236
|
+
let t = (t) => t[e] || le;
|
|
237
237
|
return t.isThemeGetter = !0, t;
|
|
238
|
-
},
|
|
239
|
-
let r =
|
|
238
|
+
}, V = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, ue = /^\((?:(\w[\w-]*):)?(.+)\)$/i, de = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, fe = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, pe = /\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$/, me = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, he = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, ge = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, _e = (e) => de.test(e), H = (e) => !!e && !Number.isNaN(Number(e)), U = (e) => !!e && Number.isInteger(Number(e)), ve = (e) => e.endsWith("%") && H(e.slice(0, -1)), W = (e) => fe.test(e), ye = () => !0, be = (e) => pe.test(e) && !me.test(e), xe = () => !1, Se = (e) => he.test(e), Ce = (e) => ge.test(e), we = (e) => !G(e) && !K(e), Te = (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)), Ee = (e) => Ve(e, Ge, xe), G = (e) => V.test(e), De = (e) => Ve(e, Ke, be), Oe = (e) => Ve(e, qe, H), ke = (e) => Ve(e, Ye, ye), Ae = (e) => Ve(e, Je, xe), je = (e) => Ve(e, Ue, xe), Me = (e) => Ve(e, We, Ce), Ne = (e) => Ve(e, Xe, Se), K = (e) => ue.test(e), Pe = (e) => He(e, Ke), Fe = (e) => He(e, Je), Ie = (e) => He(e, Ue), Le = (e) => He(e, Ge), Re = (e) => He(e, We), ze = (e) => He(e, Xe, !0), Be = (e) => He(e, Ye, !0), Ve = (e, t, n) => {
|
|
239
|
+
let r = V.exec(e);
|
|
240
240
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
241
|
-
},
|
|
242
|
-
let r =
|
|
241
|
+
}, He = (e, t, n = !1) => {
|
|
242
|
+
let r = ue.exec(e);
|
|
243
243
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
244
|
-
},
|
|
245
|
-
let e =
|
|
244
|
+
}, Ue = (e) => e === "position" || e === "percentage", We = (e) => e === "image" || e === "url", Ge = (e) => e === "length" || e === "size" || e === "bg-size", Ke = (e) => e === "length", qe = (e) => e === "number", Je = (e) => e === "family-name", Ye = (e) => e === "number" || e === "weight", Xe = (e) => e === "shadow", Ze = /*#__PURE__*/ ce(() => {
|
|
245
|
+
let e = B("color"), t = B("font"), n = B("text"), r = B("font-weight"), i = B("tracking"), a = B("leading"), o = B("breakpoint"), s = B("container"), c = B("spacing"), l = B("radius"), u = B("shadow"), d = B("inset-shadow"), f = B("text-shadow"), p = B("drop-shadow"), m = B("blur"), h = B("perspective"), g = B("aspect"), _ = B("ease"), v = B("animate"), y = () => [
|
|
246
246
|
"auto",
|
|
247
247
|
"avoid",
|
|
248
248
|
"all",
|
|
@@ -267,8 +267,8 @@ var _ = (e, t) => {
|
|
|
267
267
|
"left-bottom"
|
|
268
268
|
], x = () => [
|
|
269
269
|
...b(),
|
|
270
|
-
|
|
271
|
-
|
|
270
|
+
K,
|
|
271
|
+
G
|
|
272
272
|
], S = () => [
|
|
273
273
|
"auto",
|
|
274
274
|
"hidden",
|
|
@@ -280,44 +280,44 @@ var _ = (e, t) => {
|
|
|
280
280
|
"contain",
|
|
281
281
|
"none"
|
|
282
282
|
], w = () => [
|
|
283
|
-
q,
|
|
284
283
|
K,
|
|
284
|
+
G,
|
|
285
285
|
c
|
|
286
286
|
], T = () => [
|
|
287
|
-
|
|
287
|
+
_e,
|
|
288
288
|
"full",
|
|
289
289
|
"auto",
|
|
290
290
|
...w()
|
|
291
|
-
],
|
|
292
|
-
|
|
291
|
+
], ee = () => [
|
|
292
|
+
U,
|
|
293
293
|
"none",
|
|
294
294
|
"subgrid",
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
],
|
|
295
|
+
K,
|
|
296
|
+
G
|
|
297
|
+
], E = () => [
|
|
298
298
|
"auto",
|
|
299
299
|
{ span: [
|
|
300
300
|
"full",
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
301
|
+
U,
|
|
302
|
+
K,
|
|
303
|
+
G
|
|
304
304
|
] },
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
],
|
|
309
|
-
|
|
305
|
+
U,
|
|
306
|
+
K,
|
|
307
|
+
G
|
|
308
|
+
], D = () => [
|
|
309
|
+
U,
|
|
310
310
|
"auto",
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
],
|
|
311
|
+
K,
|
|
312
|
+
G
|
|
313
|
+
], te = () => [
|
|
314
314
|
"auto",
|
|
315
315
|
"min",
|
|
316
316
|
"max",
|
|
317
317
|
"fr",
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
],
|
|
318
|
+
K,
|
|
319
|
+
G
|
|
320
|
+
], O = () => [
|
|
321
321
|
"start",
|
|
322
322
|
"end",
|
|
323
323
|
"center",
|
|
@@ -328,15 +328,15 @@ var _ = (e, t) => {
|
|
|
328
328
|
"baseline",
|
|
329
329
|
"center-safe",
|
|
330
330
|
"end-safe"
|
|
331
|
-
],
|
|
331
|
+
], k = () => [
|
|
332
332
|
"start",
|
|
333
333
|
"end",
|
|
334
334
|
"center",
|
|
335
335
|
"stretch",
|
|
336
336
|
"center-safe",
|
|
337
337
|
"end-safe"
|
|
338
|
-
],
|
|
339
|
-
|
|
338
|
+
], A = () => ["auto", ...w()], j = () => [
|
|
339
|
+
_e,
|
|
340
340
|
"auto",
|
|
341
341
|
"full",
|
|
342
342
|
"dvw",
|
|
@@ -349,8 +349,8 @@ var _ = (e, t) => {
|
|
|
349
349
|
"max",
|
|
350
350
|
"fit",
|
|
351
351
|
...w()
|
|
352
|
-
],
|
|
353
|
-
|
|
352
|
+
], M = () => [
|
|
353
|
+
_e,
|
|
354
354
|
"screen",
|
|
355
355
|
"full",
|
|
356
356
|
"dvw",
|
|
@@ -360,8 +360,8 @@ var _ = (e, t) => {
|
|
|
360
360
|
"max",
|
|
361
361
|
"fit",
|
|
362
362
|
...w()
|
|
363
|
-
],
|
|
364
|
-
|
|
363
|
+
], N = () => [
|
|
364
|
+
_e,
|
|
365
365
|
"screen",
|
|
366
366
|
"full",
|
|
367
367
|
"lh",
|
|
@@ -372,50 +372,50 @@ var _ = (e, t) => {
|
|
|
372
372
|
"max",
|
|
373
373
|
"fit",
|
|
374
374
|
...w()
|
|
375
|
-
],
|
|
375
|
+
], P = () => [
|
|
376
376
|
e,
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
],
|
|
377
|
+
K,
|
|
378
|
+
G
|
|
379
|
+
], F = () => [
|
|
380
380
|
...b(),
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
{ position: [
|
|
384
|
-
],
|
|
381
|
+
Ie,
|
|
382
|
+
je,
|
|
383
|
+
{ position: [K, G] }
|
|
384
|
+
], ne = () => ["no-repeat", { repeat: [
|
|
385
385
|
"",
|
|
386
386
|
"x",
|
|
387
387
|
"y",
|
|
388
388
|
"space",
|
|
389
389
|
"round"
|
|
390
|
-
] }],
|
|
390
|
+
] }], re = () => [
|
|
391
391
|
"auto",
|
|
392
392
|
"cover",
|
|
393
393
|
"contain",
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
{ size: [
|
|
397
|
-
],
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
],
|
|
394
|
+
Le,
|
|
395
|
+
Ee,
|
|
396
|
+
{ size: [K, G] }
|
|
397
|
+
], ie = () => [
|
|
398
|
+
ve,
|
|
399
|
+
Pe,
|
|
400
|
+
De
|
|
401
|
+
], I = () => [
|
|
402
402
|
"",
|
|
403
403
|
"none",
|
|
404
404
|
"full",
|
|
405
405
|
l,
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
],
|
|
406
|
+
K,
|
|
407
|
+
G
|
|
408
|
+
], L = () => [
|
|
409
409
|
"",
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
],
|
|
410
|
+
H,
|
|
411
|
+
Pe,
|
|
412
|
+
De
|
|
413
|
+
], ae = () => [
|
|
414
414
|
"solid",
|
|
415
415
|
"dashed",
|
|
416
416
|
"dotted",
|
|
417
417
|
"double"
|
|
418
|
-
],
|
|
418
|
+
], oe = () => [
|
|
419
419
|
"normal",
|
|
420
420
|
"multiply",
|
|
421
421
|
"screen",
|
|
@@ -432,33 +432,33 @@ var _ = (e, t) => {
|
|
|
432
432
|
"saturation",
|
|
433
433
|
"color",
|
|
434
434
|
"luminosity"
|
|
435
|
-
],
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
],
|
|
435
|
+
], R = () => [
|
|
436
|
+
H,
|
|
437
|
+
ve,
|
|
438
|
+
Ie,
|
|
439
|
+
je
|
|
440
|
+
], se = () => [
|
|
441
441
|
"",
|
|
442
442
|
"none",
|
|
443
443
|
m,
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
],
|
|
447
|
-
"none",
|
|
448
|
-
U,
|
|
449
|
-
q,
|
|
450
|
-
K
|
|
451
|
-
], se = () => [
|
|
444
|
+
K,
|
|
445
|
+
G
|
|
446
|
+
], z = () => [
|
|
452
447
|
"none",
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
448
|
+
H,
|
|
449
|
+
K,
|
|
450
|
+
G
|
|
456
451
|
], ce = () => [
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
K
|
|
460
|
-
|
|
461
|
-
|
|
452
|
+
"none",
|
|
453
|
+
H,
|
|
454
|
+
K,
|
|
455
|
+
G
|
|
456
|
+
], le = () => [
|
|
457
|
+
H,
|
|
458
|
+
K,
|
|
459
|
+
G
|
|
460
|
+
], V = () => [
|
|
461
|
+
_e,
|
|
462
462
|
"full",
|
|
463
463
|
...w()
|
|
464
464
|
];
|
|
@@ -472,17 +472,17 @@ var _ = (e, t) => {
|
|
|
472
472
|
"bounce"
|
|
473
473
|
],
|
|
474
474
|
aspect: ["video"],
|
|
475
|
-
blur: [
|
|
476
|
-
breakpoint: [
|
|
477
|
-
color: [
|
|
478
|
-
container: [
|
|
479
|
-
"drop-shadow": [
|
|
475
|
+
blur: [W],
|
|
476
|
+
breakpoint: [W],
|
|
477
|
+
color: [ye],
|
|
478
|
+
container: [W],
|
|
479
|
+
"drop-shadow": [W],
|
|
480
480
|
ease: [
|
|
481
481
|
"in",
|
|
482
482
|
"out",
|
|
483
483
|
"in-out"
|
|
484
484
|
],
|
|
485
|
-
font: [
|
|
485
|
+
font: [we],
|
|
486
486
|
"font-weight": [
|
|
487
487
|
"thin",
|
|
488
488
|
"extralight",
|
|
@@ -494,7 +494,7 @@ var _ = (e, t) => {
|
|
|
494
494
|
"extrabold",
|
|
495
495
|
"black"
|
|
496
496
|
],
|
|
497
|
-
"inset-shadow": [
|
|
497
|
+
"inset-shadow": [W],
|
|
498
498
|
leading: [
|
|
499
499
|
"none",
|
|
500
500
|
"tight",
|
|
@@ -511,11 +511,11 @@ var _ = (e, t) => {
|
|
|
511
511
|
"distant",
|
|
512
512
|
"none"
|
|
513
513
|
],
|
|
514
|
-
radius: [
|
|
515
|
-
shadow: [
|
|
516
|
-
spacing: ["px",
|
|
517
|
-
text: [
|
|
518
|
-
"text-shadow": [
|
|
514
|
+
radius: [W],
|
|
515
|
+
shadow: [W],
|
|
516
|
+
spacing: ["px", H],
|
|
517
|
+
text: [W],
|
|
518
|
+
"text-shadow": [W],
|
|
519
519
|
tracking: [
|
|
520
520
|
"tighter",
|
|
521
521
|
"tight",
|
|
@@ -529,9 +529,9 @@ var _ = (e, t) => {
|
|
|
529
529
|
aspect: [{ aspect: [
|
|
530
530
|
"auto",
|
|
531
531
|
"square",
|
|
532
|
-
|
|
532
|
+
_e,
|
|
533
|
+
G,
|
|
533
534
|
K,
|
|
534
|
-
q,
|
|
535
535
|
g
|
|
536
536
|
] }],
|
|
537
537
|
container: ["container"],
|
|
@@ -539,14 +539,14 @@ var _ = (e, t) => {
|
|
|
539
539
|
"",
|
|
540
540
|
"normal",
|
|
541
541
|
"size",
|
|
542
|
-
|
|
543
|
-
|
|
542
|
+
K,
|
|
543
|
+
G
|
|
544
544
|
] }],
|
|
545
|
-
"container-named": [
|
|
545
|
+
"container-named": [Te],
|
|
546
546
|
columns: [{ columns: [
|
|
547
|
-
|
|
547
|
+
H,
|
|
548
|
+
G,
|
|
548
549
|
K,
|
|
549
|
-
q,
|
|
550
550
|
s
|
|
551
551
|
] }],
|
|
552
552
|
"break-after": [{ "break-after": y() }],
|
|
@@ -643,13 +643,13 @@ var _ = (e, t) => {
|
|
|
643
643
|
"collapse"
|
|
644
644
|
],
|
|
645
645
|
z: [{ z: [
|
|
646
|
-
|
|
646
|
+
U,
|
|
647
647
|
"auto",
|
|
648
|
-
|
|
649
|
-
|
|
648
|
+
K,
|
|
649
|
+
G
|
|
650
650
|
] }],
|
|
651
651
|
basis: [{ basis: [
|
|
652
|
-
|
|
652
|
+
_e,
|
|
653
653
|
"full",
|
|
654
654
|
"auto",
|
|
655
655
|
s,
|
|
@@ -667,41 +667,41 @@ var _ = (e, t) => {
|
|
|
667
667
|
"wrap-reverse"
|
|
668
668
|
] }],
|
|
669
669
|
flex: [{ flex: [
|
|
670
|
-
|
|
671
|
-
|
|
670
|
+
H,
|
|
671
|
+
_e,
|
|
672
672
|
"auto",
|
|
673
673
|
"initial",
|
|
674
674
|
"none",
|
|
675
|
-
|
|
675
|
+
G
|
|
676
676
|
] }],
|
|
677
677
|
grow: [{ grow: [
|
|
678
678
|
"",
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
679
|
+
H,
|
|
680
|
+
K,
|
|
681
|
+
G
|
|
682
682
|
] }],
|
|
683
683
|
shrink: [{ shrink: [
|
|
684
684
|
"",
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
685
|
+
H,
|
|
686
|
+
K,
|
|
687
|
+
G
|
|
688
688
|
] }],
|
|
689
689
|
order: [{ order: [
|
|
690
|
-
|
|
690
|
+
U,
|
|
691
691
|
"first",
|
|
692
692
|
"last",
|
|
693
693
|
"none",
|
|
694
|
-
|
|
695
|
-
|
|
694
|
+
K,
|
|
695
|
+
G
|
|
696
696
|
] }],
|
|
697
|
-
"grid-cols": [{ "grid-cols":
|
|
698
|
-
"col-start-end": [{ col:
|
|
699
|
-
"col-start": [{ "col-start":
|
|
700
|
-
"col-end": [{ "col-end":
|
|
701
|
-
"grid-rows": [{ "grid-rows":
|
|
702
|
-
"row-start-end": [{ row:
|
|
703
|
-
"row-start": [{ "row-start":
|
|
704
|
-
"row-end": [{ "row-end":
|
|
697
|
+
"grid-cols": [{ "grid-cols": ee() }],
|
|
698
|
+
"col-start-end": [{ col: E() }],
|
|
699
|
+
"col-start": [{ "col-start": D() }],
|
|
700
|
+
"col-end": [{ "col-end": D() }],
|
|
701
|
+
"grid-rows": [{ "grid-rows": ee() }],
|
|
702
|
+
"row-start-end": [{ row: E() }],
|
|
703
|
+
"row-start": [{ "row-start": D() }],
|
|
704
|
+
"row-end": [{ "row-end": D() }],
|
|
705
705
|
"grid-flow": [{ "grid-flow": [
|
|
706
706
|
"row",
|
|
707
707
|
"col",
|
|
@@ -709,24 +709,24 @@ var _ = (e, t) => {
|
|
|
709
709
|
"row-dense",
|
|
710
710
|
"col-dense"
|
|
711
711
|
] }],
|
|
712
|
-
"auto-cols": [{ "auto-cols":
|
|
713
|
-
"auto-rows": [{ "auto-rows":
|
|
712
|
+
"auto-cols": [{ "auto-cols": te() }],
|
|
713
|
+
"auto-rows": [{ "auto-rows": te() }],
|
|
714
714
|
gap: [{ gap: w() }],
|
|
715
715
|
"gap-x": [{ "gap-x": w() }],
|
|
716
716
|
"gap-y": [{ "gap-y": w() }],
|
|
717
|
-
"justify-content": [{ justify: [...
|
|
718
|
-
"justify-items": [{ "justify-items": [...
|
|
719
|
-
"justify-self": [{ "justify-self": ["auto", ...
|
|
720
|
-
"align-content": [{ content: ["normal", ...
|
|
721
|
-
"align-items": [{ items: [...
|
|
717
|
+
"justify-content": [{ justify: [...O(), "normal"] }],
|
|
718
|
+
"justify-items": [{ "justify-items": [...k(), "normal"] }],
|
|
719
|
+
"justify-self": [{ "justify-self": ["auto", ...k()] }],
|
|
720
|
+
"align-content": [{ content: ["normal", ...O()] }],
|
|
721
|
+
"align-items": [{ items: [...k(), { baseline: ["", "last"] }] }],
|
|
722
722
|
"align-self": [{ self: [
|
|
723
723
|
"auto",
|
|
724
|
-
...
|
|
724
|
+
...k(),
|
|
725
725
|
{ baseline: ["", "last"] }
|
|
726
726
|
] }],
|
|
727
|
-
"place-content": [{ "place-content":
|
|
728
|
-
"place-items": [{ "place-items": [...
|
|
729
|
-
"place-self": [{ "place-self": ["auto", ...
|
|
727
|
+
"place-content": [{ "place-content": O() }],
|
|
728
|
+
"place-items": [{ "place-items": [...k(), "baseline"] }],
|
|
729
|
+
"place-self": [{ "place-self": ["auto", ...k()] }],
|
|
730
730
|
p: [{ p: w() }],
|
|
731
731
|
px: [{ px: w() }],
|
|
732
732
|
py: [{ py: w() }],
|
|
@@ -738,38 +738,38 @@ var _ = (e, t) => {
|
|
|
738
738
|
pr: [{ pr: w() }],
|
|
739
739
|
pb: [{ pb: w() }],
|
|
740
740
|
pl: [{ pl: w() }],
|
|
741
|
-
m: [{ m:
|
|
742
|
-
mx: [{ mx:
|
|
743
|
-
my: [{ my:
|
|
744
|
-
ms: [{ ms:
|
|
745
|
-
me: [{ me:
|
|
746
|
-
mbs: [{ mbs:
|
|
747
|
-
mbe: [{ mbe:
|
|
748
|
-
mt: [{ mt:
|
|
749
|
-
mr: [{ mr:
|
|
750
|
-
mb: [{ mb:
|
|
751
|
-
ml: [{ ml:
|
|
741
|
+
m: [{ m: A() }],
|
|
742
|
+
mx: [{ mx: A() }],
|
|
743
|
+
my: [{ my: A() }],
|
|
744
|
+
ms: [{ ms: A() }],
|
|
745
|
+
me: [{ me: A() }],
|
|
746
|
+
mbs: [{ mbs: A() }],
|
|
747
|
+
mbe: [{ mbe: A() }],
|
|
748
|
+
mt: [{ mt: A() }],
|
|
749
|
+
mr: [{ mr: A() }],
|
|
750
|
+
mb: [{ mb: A() }],
|
|
751
|
+
ml: [{ ml: A() }],
|
|
752
752
|
"space-x": [{ "space-x": w() }],
|
|
753
753
|
"space-x-reverse": ["space-x-reverse"],
|
|
754
754
|
"space-y": [{ "space-y": w() }],
|
|
755
755
|
"space-y-reverse": ["space-y-reverse"],
|
|
756
|
-
size: [{ size:
|
|
757
|
-
"inline-size": [{ inline: ["auto", ...
|
|
758
|
-
"min-inline-size": [{ "min-inline": ["auto", ...
|
|
759
|
-
"max-inline-size": [{ "max-inline": ["none", ...
|
|
760
|
-
"block-size": [{ block: ["auto", ...
|
|
761
|
-
"min-block-size": [{ "min-block": ["auto", ...
|
|
762
|
-
"max-block-size": [{ "max-block": ["none", ...
|
|
756
|
+
size: [{ size: j() }],
|
|
757
|
+
"inline-size": [{ inline: ["auto", ...M()] }],
|
|
758
|
+
"min-inline-size": [{ "min-inline": ["auto", ...M()] }],
|
|
759
|
+
"max-inline-size": [{ "max-inline": ["none", ...M()] }],
|
|
760
|
+
"block-size": [{ block: ["auto", ...N()] }],
|
|
761
|
+
"min-block-size": [{ "min-block": ["auto", ...N()] }],
|
|
762
|
+
"max-block-size": [{ "max-block": ["none", ...N()] }],
|
|
763
763
|
w: [{ w: [
|
|
764
764
|
s,
|
|
765
765
|
"screen",
|
|
766
|
-
...
|
|
766
|
+
...j()
|
|
767
767
|
] }],
|
|
768
768
|
"min-w": [{ "min-w": [
|
|
769
769
|
s,
|
|
770
770
|
"screen",
|
|
771
771
|
"none",
|
|
772
|
-
...
|
|
772
|
+
...j()
|
|
773
773
|
] }],
|
|
774
774
|
"max-w": [{ "max-w": [
|
|
775
775
|
s,
|
|
@@ -777,36 +777,36 @@ var _ = (e, t) => {
|
|
|
777
777
|
"none",
|
|
778
778
|
"prose",
|
|
779
779
|
{ screen: [o] },
|
|
780
|
-
...
|
|
780
|
+
...j()
|
|
781
781
|
] }],
|
|
782
782
|
h: [{ h: [
|
|
783
783
|
"screen",
|
|
784
784
|
"lh",
|
|
785
|
-
...
|
|
785
|
+
...j()
|
|
786
786
|
] }],
|
|
787
787
|
"min-h": [{ "min-h": [
|
|
788
788
|
"screen",
|
|
789
789
|
"lh",
|
|
790
790
|
"none",
|
|
791
|
-
...
|
|
791
|
+
...j()
|
|
792
792
|
] }],
|
|
793
793
|
"max-h": [{ "max-h": [
|
|
794
794
|
"screen",
|
|
795
795
|
"lh",
|
|
796
|
-
...
|
|
796
|
+
...j()
|
|
797
797
|
] }],
|
|
798
798
|
"font-size": [{ text: [
|
|
799
799
|
"base",
|
|
800
800
|
n,
|
|
801
|
-
|
|
802
|
-
|
|
801
|
+
Pe,
|
|
802
|
+
De
|
|
803
803
|
] }],
|
|
804
804
|
"font-smoothing": ["antialiased", "subpixel-antialiased"],
|
|
805
805
|
"font-style": ["italic", "not-italic"],
|
|
806
806
|
"font-weight": [{ font: [
|
|
807
807
|
r,
|
|
808
|
-
|
|
809
|
-
|
|
808
|
+
Be,
|
|
809
|
+
ke
|
|
810
810
|
] }],
|
|
811
811
|
"font-stretch": [{ "font-stretch": [
|
|
812
812
|
"ultra-condensed",
|
|
@@ -818,15 +818,15 @@ var _ = (e, t) => {
|
|
|
818
818
|
"expanded",
|
|
819
819
|
"extra-expanded",
|
|
820
820
|
"ultra-expanded",
|
|
821
|
-
|
|
822
|
-
|
|
821
|
+
ve,
|
|
822
|
+
G
|
|
823
823
|
] }],
|
|
824
824
|
"font-family": [{ font: [
|
|
825
|
-
|
|
826
|
-
|
|
825
|
+
Fe,
|
|
826
|
+
Ae,
|
|
827
827
|
t
|
|
828
828
|
] }],
|
|
829
|
-
"font-features": [{ "font-features": [
|
|
829
|
+
"font-features": [{ "font-features": [G] }],
|
|
830
830
|
"fvn-normal": ["normal-nums"],
|
|
831
831
|
"fvn-ordinal": ["ordinal"],
|
|
832
832
|
"fvn-slashed-zero": ["slashed-zero"],
|
|
@@ -835,28 +835,28 @@ var _ = (e, t) => {
|
|
|
835
835
|
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
|
|
836
836
|
tracking: [{ tracking: [
|
|
837
837
|
i,
|
|
838
|
-
|
|
839
|
-
|
|
838
|
+
K,
|
|
839
|
+
G
|
|
840
840
|
] }],
|
|
841
841
|
"line-clamp": [{ "line-clamp": [
|
|
842
|
-
|
|
842
|
+
H,
|
|
843
843
|
"none",
|
|
844
|
-
|
|
845
|
-
|
|
844
|
+
K,
|
|
845
|
+
Oe
|
|
846
846
|
] }],
|
|
847
847
|
leading: [{ leading: [a, ...w()] }],
|
|
848
848
|
"list-image": [{ "list-image": [
|
|
849
849
|
"none",
|
|
850
|
-
|
|
851
|
-
|
|
850
|
+
K,
|
|
851
|
+
G
|
|
852
852
|
] }],
|
|
853
853
|
"list-style-position": [{ list: ["inside", "outside"] }],
|
|
854
854
|
"list-style-type": [{ list: [
|
|
855
855
|
"disc",
|
|
856
856
|
"decimal",
|
|
857
857
|
"none",
|
|
858
|
-
|
|
859
|
-
|
|
858
|
+
K,
|
|
859
|
+
G
|
|
860
860
|
] }],
|
|
861
861
|
"text-alignment": [{ text: [
|
|
862
862
|
"left",
|
|
@@ -866,28 +866,28 @@ var _ = (e, t) => {
|
|
|
866
866
|
"start",
|
|
867
867
|
"end"
|
|
868
868
|
] }],
|
|
869
|
-
"placeholder-color": [{ placeholder:
|
|
870
|
-
"text-color": [{ text:
|
|
869
|
+
"placeholder-color": [{ placeholder: P() }],
|
|
870
|
+
"text-color": [{ text: P() }],
|
|
871
871
|
"text-decoration": [
|
|
872
872
|
"underline",
|
|
873
873
|
"overline",
|
|
874
874
|
"line-through",
|
|
875
875
|
"no-underline"
|
|
876
876
|
],
|
|
877
|
-
"text-decoration-style": [{ decoration: [...
|
|
877
|
+
"text-decoration-style": [{ decoration: [...ae(), "wavy"] }],
|
|
878
878
|
"text-decoration-thickness": [{ decoration: [
|
|
879
|
-
|
|
879
|
+
H,
|
|
880
880
|
"from-font",
|
|
881
881
|
"auto",
|
|
882
|
-
|
|
883
|
-
|
|
882
|
+
K,
|
|
883
|
+
De
|
|
884
884
|
] }],
|
|
885
|
-
"text-decoration-color": [{ decoration:
|
|
885
|
+
"text-decoration-color": [{ decoration: P() }],
|
|
886
886
|
"underline-offset": [{ "underline-offset": [
|
|
887
|
-
|
|
887
|
+
H,
|
|
888
888
|
"auto",
|
|
889
|
-
|
|
890
|
-
|
|
889
|
+
K,
|
|
890
|
+
G
|
|
891
891
|
] }],
|
|
892
892
|
"text-transform": [
|
|
893
893
|
"uppercase",
|
|
@@ -908,9 +908,9 @@ var _ = (e, t) => {
|
|
|
908
908
|
] }],
|
|
909
909
|
indent: [{ indent: w() }],
|
|
910
910
|
"tab-size": [{ tab: [
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
911
|
+
U,
|
|
912
|
+
K,
|
|
913
|
+
G
|
|
914
914
|
] }],
|
|
915
915
|
"vertical-align": [{ align: [
|
|
916
916
|
"baseline",
|
|
@@ -921,8 +921,8 @@ var _ = (e, t) => {
|
|
|
921
921
|
"text-bottom",
|
|
922
922
|
"sub",
|
|
923
923
|
"super",
|
|
924
|
-
|
|
925
|
-
|
|
924
|
+
K,
|
|
925
|
+
G
|
|
926
926
|
] }],
|
|
927
927
|
whitespace: [{ whitespace: [
|
|
928
928
|
"normal",
|
|
@@ -950,8 +950,8 @@ var _ = (e, t) => {
|
|
|
950
950
|
] }],
|
|
951
951
|
content: [{ content: [
|
|
952
952
|
"none",
|
|
953
|
-
|
|
954
|
-
|
|
953
|
+
K,
|
|
954
|
+
G
|
|
955
955
|
] }],
|
|
956
956
|
"bg-attachment": [{ bg: [
|
|
957
957
|
"fixed",
|
|
@@ -969,9 +969,9 @@ var _ = (e, t) => {
|
|
|
969
969
|
"padding",
|
|
970
970
|
"content"
|
|
971
971
|
] }],
|
|
972
|
-
"bg-position": [{ bg:
|
|
973
|
-
"bg-repeat": [{ bg:
|
|
974
|
-
"bg-size": [{ bg:
|
|
972
|
+
"bg-position": [{ bg: F() }],
|
|
973
|
+
"bg-repeat": [{ bg: ne() }],
|
|
974
|
+
"bg-size": [{ bg: re() }],
|
|
975
975
|
"bg-image": [{ bg: [
|
|
976
976
|
"none",
|
|
977
977
|
{
|
|
@@ -986,140 +986,140 @@ var _ = (e, t) => {
|
|
|
986
986
|
"l",
|
|
987
987
|
"tl"
|
|
988
988
|
] },
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
989
|
+
U,
|
|
990
|
+
K,
|
|
991
|
+
G
|
|
992
992
|
],
|
|
993
993
|
radial: [
|
|
994
994
|
"",
|
|
995
|
-
|
|
996
|
-
|
|
995
|
+
K,
|
|
996
|
+
G
|
|
997
997
|
],
|
|
998
998
|
conic: [
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
999
|
+
U,
|
|
1000
|
+
K,
|
|
1001
|
+
G
|
|
1002
1002
|
]
|
|
1003
1003
|
},
|
|
1004
|
-
|
|
1005
|
-
|
|
1004
|
+
Re,
|
|
1005
|
+
Me
|
|
1006
1006
|
] }],
|
|
1007
|
-
"bg-color": [{ bg:
|
|
1008
|
-
"gradient-from-pos": [{ from:
|
|
1009
|
-
"gradient-via-pos": [{ via:
|
|
1010
|
-
"gradient-to-pos": [{ to:
|
|
1011
|
-
"gradient-from": [{ from:
|
|
1012
|
-
"gradient-via": [{ via:
|
|
1013
|
-
"gradient-to": [{ to:
|
|
1014
|
-
rounded: [{ rounded:
|
|
1015
|
-
"rounded-s": [{ "rounded-s":
|
|
1016
|
-
"rounded-e": [{ "rounded-e":
|
|
1017
|
-
"rounded-t": [{ "rounded-t":
|
|
1018
|
-
"rounded-r": [{ "rounded-r":
|
|
1019
|
-
"rounded-b": [{ "rounded-b":
|
|
1020
|
-
"rounded-l": [{ "rounded-l":
|
|
1021
|
-
"rounded-ss": [{ "rounded-ss":
|
|
1022
|
-
"rounded-se": [{ "rounded-se":
|
|
1023
|
-
"rounded-ee": [{ "rounded-ee":
|
|
1024
|
-
"rounded-es": [{ "rounded-es":
|
|
1025
|
-
"rounded-tl": [{ "rounded-tl":
|
|
1026
|
-
"rounded-tr": [{ "rounded-tr":
|
|
1027
|
-
"rounded-br": [{ "rounded-br":
|
|
1028
|
-
"rounded-bl": [{ "rounded-bl":
|
|
1029
|
-
"border-w": [{ border:
|
|
1030
|
-
"border-w-x": [{ "border-x":
|
|
1031
|
-
"border-w-y": [{ "border-y":
|
|
1032
|
-
"border-w-s": [{ "border-s":
|
|
1033
|
-
"border-w-e": [{ "border-e":
|
|
1034
|
-
"border-w-bs": [{ "border-bs":
|
|
1035
|
-
"border-w-be": [{ "border-be":
|
|
1036
|
-
"border-w-t": [{ "border-t":
|
|
1037
|
-
"border-w-r": [{ "border-r":
|
|
1038
|
-
"border-w-b": [{ "border-b":
|
|
1039
|
-
"border-w-l": [{ "border-l":
|
|
1040
|
-
"divide-x": [{ "divide-x":
|
|
1007
|
+
"bg-color": [{ bg: P() }],
|
|
1008
|
+
"gradient-from-pos": [{ from: ie() }],
|
|
1009
|
+
"gradient-via-pos": [{ via: ie() }],
|
|
1010
|
+
"gradient-to-pos": [{ to: ie() }],
|
|
1011
|
+
"gradient-from": [{ from: P() }],
|
|
1012
|
+
"gradient-via": [{ via: P() }],
|
|
1013
|
+
"gradient-to": [{ to: P() }],
|
|
1014
|
+
rounded: [{ rounded: I() }],
|
|
1015
|
+
"rounded-s": [{ "rounded-s": I() }],
|
|
1016
|
+
"rounded-e": [{ "rounded-e": I() }],
|
|
1017
|
+
"rounded-t": [{ "rounded-t": I() }],
|
|
1018
|
+
"rounded-r": [{ "rounded-r": I() }],
|
|
1019
|
+
"rounded-b": [{ "rounded-b": I() }],
|
|
1020
|
+
"rounded-l": [{ "rounded-l": I() }],
|
|
1021
|
+
"rounded-ss": [{ "rounded-ss": I() }],
|
|
1022
|
+
"rounded-se": [{ "rounded-se": I() }],
|
|
1023
|
+
"rounded-ee": [{ "rounded-ee": I() }],
|
|
1024
|
+
"rounded-es": [{ "rounded-es": I() }],
|
|
1025
|
+
"rounded-tl": [{ "rounded-tl": I() }],
|
|
1026
|
+
"rounded-tr": [{ "rounded-tr": I() }],
|
|
1027
|
+
"rounded-br": [{ "rounded-br": I() }],
|
|
1028
|
+
"rounded-bl": [{ "rounded-bl": I() }],
|
|
1029
|
+
"border-w": [{ border: L() }],
|
|
1030
|
+
"border-w-x": [{ "border-x": L() }],
|
|
1031
|
+
"border-w-y": [{ "border-y": L() }],
|
|
1032
|
+
"border-w-s": [{ "border-s": L() }],
|
|
1033
|
+
"border-w-e": [{ "border-e": L() }],
|
|
1034
|
+
"border-w-bs": [{ "border-bs": L() }],
|
|
1035
|
+
"border-w-be": [{ "border-be": L() }],
|
|
1036
|
+
"border-w-t": [{ "border-t": L() }],
|
|
1037
|
+
"border-w-r": [{ "border-r": L() }],
|
|
1038
|
+
"border-w-b": [{ "border-b": L() }],
|
|
1039
|
+
"border-w-l": [{ "border-l": L() }],
|
|
1040
|
+
"divide-x": [{ "divide-x": L() }],
|
|
1041
1041
|
"divide-x-reverse": ["divide-x-reverse"],
|
|
1042
|
-
"divide-y": [{ "divide-y":
|
|
1042
|
+
"divide-y": [{ "divide-y": L() }],
|
|
1043
1043
|
"divide-y-reverse": ["divide-y-reverse"],
|
|
1044
1044
|
"border-style": [{ border: [
|
|
1045
|
-
...
|
|
1045
|
+
...ae(),
|
|
1046
1046
|
"hidden",
|
|
1047
1047
|
"none"
|
|
1048
1048
|
] }],
|
|
1049
1049
|
"divide-style": [{ divide: [
|
|
1050
|
-
...
|
|
1050
|
+
...ae(),
|
|
1051
1051
|
"hidden",
|
|
1052
1052
|
"none"
|
|
1053
1053
|
] }],
|
|
1054
|
-
"border-color": [{ border:
|
|
1055
|
-
"border-color-x": [{ "border-x":
|
|
1056
|
-
"border-color-y": [{ "border-y":
|
|
1057
|
-
"border-color-s": [{ "border-s":
|
|
1058
|
-
"border-color-e": [{ "border-e":
|
|
1059
|
-
"border-color-bs": [{ "border-bs":
|
|
1060
|
-
"border-color-be": [{ "border-be":
|
|
1061
|
-
"border-color-t": [{ "border-t":
|
|
1062
|
-
"border-color-r": [{ "border-r":
|
|
1063
|
-
"border-color-b": [{ "border-b":
|
|
1064
|
-
"border-color-l": [{ "border-l":
|
|
1065
|
-
"divide-color": [{ divide:
|
|
1054
|
+
"border-color": [{ border: P() }],
|
|
1055
|
+
"border-color-x": [{ "border-x": P() }],
|
|
1056
|
+
"border-color-y": [{ "border-y": P() }],
|
|
1057
|
+
"border-color-s": [{ "border-s": P() }],
|
|
1058
|
+
"border-color-e": [{ "border-e": P() }],
|
|
1059
|
+
"border-color-bs": [{ "border-bs": P() }],
|
|
1060
|
+
"border-color-be": [{ "border-be": P() }],
|
|
1061
|
+
"border-color-t": [{ "border-t": P() }],
|
|
1062
|
+
"border-color-r": [{ "border-r": P() }],
|
|
1063
|
+
"border-color-b": [{ "border-b": P() }],
|
|
1064
|
+
"border-color-l": [{ "border-l": P() }],
|
|
1065
|
+
"divide-color": [{ divide: P() }],
|
|
1066
1066
|
"outline-style": [{ outline: [
|
|
1067
|
-
...
|
|
1067
|
+
...ae(),
|
|
1068
1068
|
"none",
|
|
1069
1069
|
"hidden"
|
|
1070
1070
|
] }],
|
|
1071
1071
|
"outline-offset": [{ "outline-offset": [
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1072
|
+
H,
|
|
1073
|
+
K,
|
|
1074
|
+
G
|
|
1075
1075
|
] }],
|
|
1076
1076
|
"outline-w": [{ outline: [
|
|
1077
1077
|
"",
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1078
|
+
H,
|
|
1079
|
+
Pe,
|
|
1080
|
+
De
|
|
1081
1081
|
] }],
|
|
1082
|
-
"outline-color": [{ outline:
|
|
1082
|
+
"outline-color": [{ outline: P() }],
|
|
1083
1083
|
shadow: [{ shadow: [
|
|
1084
1084
|
"",
|
|
1085
1085
|
"none",
|
|
1086
1086
|
u,
|
|
1087
|
-
|
|
1088
|
-
|
|
1087
|
+
ze,
|
|
1088
|
+
Ne
|
|
1089
1089
|
] }],
|
|
1090
|
-
"shadow-color": [{ shadow:
|
|
1090
|
+
"shadow-color": [{ shadow: P() }],
|
|
1091
1091
|
"inset-shadow": [{ "inset-shadow": [
|
|
1092
1092
|
"none",
|
|
1093
1093
|
d,
|
|
1094
|
-
|
|
1095
|
-
|
|
1094
|
+
ze,
|
|
1095
|
+
Ne
|
|
1096
1096
|
] }],
|
|
1097
|
-
"inset-shadow-color": [{ "inset-shadow":
|
|
1098
|
-
"ring-w": [{ ring:
|
|
1097
|
+
"inset-shadow-color": [{ "inset-shadow": P() }],
|
|
1098
|
+
"ring-w": [{ ring: L() }],
|
|
1099
1099
|
"ring-w-inset": ["ring-inset"],
|
|
1100
|
-
"ring-color": [{ ring:
|
|
1101
|
-
"ring-offset-w": [{ "ring-offset": [
|
|
1102
|
-
"ring-offset-color": [{ "ring-offset":
|
|
1103
|
-
"inset-ring-w": [{ "inset-ring":
|
|
1104
|
-
"inset-ring-color": [{ "inset-ring":
|
|
1100
|
+
"ring-color": [{ ring: P() }],
|
|
1101
|
+
"ring-offset-w": [{ "ring-offset": [H, De] }],
|
|
1102
|
+
"ring-offset-color": [{ "ring-offset": P() }],
|
|
1103
|
+
"inset-ring-w": [{ "inset-ring": L() }],
|
|
1104
|
+
"inset-ring-color": [{ "inset-ring": P() }],
|
|
1105
1105
|
"text-shadow": [{ "text-shadow": [
|
|
1106
1106
|
"none",
|
|
1107
1107
|
f,
|
|
1108
|
-
|
|
1109
|
-
|
|
1108
|
+
ze,
|
|
1109
|
+
Ne
|
|
1110
1110
|
] }],
|
|
1111
|
-
"text-shadow-color": [{ "text-shadow":
|
|
1111
|
+
"text-shadow-color": [{ "text-shadow": P() }],
|
|
1112
1112
|
opacity: [{ opacity: [
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1113
|
+
H,
|
|
1114
|
+
K,
|
|
1115
|
+
G
|
|
1116
1116
|
] }],
|
|
1117
1117
|
"mix-blend": [{ "mix-blend": [
|
|
1118
|
-
...
|
|
1118
|
+
...oe(),
|
|
1119
1119
|
"plus-darker",
|
|
1120
1120
|
"plus-lighter"
|
|
1121
1121
|
] }],
|
|
1122
|
-
"bg-blend": [{ "bg-blend":
|
|
1122
|
+
"bg-blend": [{ "bg-blend": oe() }],
|
|
1123
1123
|
"mask-clip": [{ "mask-clip": [
|
|
1124
1124
|
"border",
|
|
1125
1125
|
"padding",
|
|
@@ -1134,51 +1134,51 @@ var _ = (e, t) => {
|
|
|
1134
1134
|
"intersect",
|
|
1135
1135
|
"exclude"
|
|
1136
1136
|
] }],
|
|
1137
|
-
"mask-image-linear-pos": [{ "mask-linear": [
|
|
1138
|
-
"mask-image-linear-from-pos": [{ "mask-linear-from":
|
|
1139
|
-
"mask-image-linear-to-pos": [{ "mask-linear-to":
|
|
1140
|
-
"mask-image-linear-from-color": [{ "mask-linear-from":
|
|
1141
|
-
"mask-image-linear-to-color": [{ "mask-linear-to":
|
|
1142
|
-
"mask-image-t-from-pos": [{ "mask-t-from":
|
|
1143
|
-
"mask-image-t-to-pos": [{ "mask-t-to":
|
|
1144
|
-
"mask-image-t-from-color": [{ "mask-t-from":
|
|
1145
|
-
"mask-image-t-to-color": [{ "mask-t-to":
|
|
1146
|
-
"mask-image-r-from-pos": [{ "mask-r-from":
|
|
1147
|
-
"mask-image-r-to-pos": [{ "mask-r-to":
|
|
1148
|
-
"mask-image-r-from-color": [{ "mask-r-from":
|
|
1149
|
-
"mask-image-r-to-color": [{ "mask-r-to":
|
|
1150
|
-
"mask-image-b-from-pos": [{ "mask-b-from":
|
|
1151
|
-
"mask-image-b-to-pos": [{ "mask-b-to":
|
|
1152
|
-
"mask-image-b-from-color": [{ "mask-b-from":
|
|
1153
|
-
"mask-image-b-to-color": [{ "mask-b-to":
|
|
1154
|
-
"mask-image-l-from-pos": [{ "mask-l-from":
|
|
1155
|
-
"mask-image-l-to-pos": [{ "mask-l-to":
|
|
1156
|
-
"mask-image-l-from-color": [{ "mask-l-from":
|
|
1157
|
-
"mask-image-l-to-color": [{ "mask-l-to":
|
|
1158
|
-
"mask-image-x-from-pos": [{ "mask-x-from":
|
|
1159
|
-
"mask-image-x-to-pos": [{ "mask-x-to":
|
|
1160
|
-
"mask-image-x-from-color": [{ "mask-x-from":
|
|
1161
|
-
"mask-image-x-to-color": [{ "mask-x-to":
|
|
1162
|
-
"mask-image-y-from-pos": [{ "mask-y-from":
|
|
1163
|
-
"mask-image-y-to-pos": [{ "mask-y-to":
|
|
1164
|
-
"mask-image-y-from-color": [{ "mask-y-from":
|
|
1165
|
-
"mask-image-y-to-color": [{ "mask-y-to":
|
|
1166
|
-
"mask-image-radial": [{ "mask-radial": [
|
|
1167
|
-
"mask-image-radial-from-pos": [{ "mask-radial-from":
|
|
1168
|
-
"mask-image-radial-to-pos": [{ "mask-radial-to":
|
|
1169
|
-
"mask-image-radial-from-color": [{ "mask-radial-from":
|
|
1170
|
-
"mask-image-radial-to-color": [{ "mask-radial-to":
|
|
1137
|
+
"mask-image-linear-pos": [{ "mask-linear": [H] }],
|
|
1138
|
+
"mask-image-linear-from-pos": [{ "mask-linear-from": R() }],
|
|
1139
|
+
"mask-image-linear-to-pos": [{ "mask-linear-to": R() }],
|
|
1140
|
+
"mask-image-linear-from-color": [{ "mask-linear-from": P() }],
|
|
1141
|
+
"mask-image-linear-to-color": [{ "mask-linear-to": P() }],
|
|
1142
|
+
"mask-image-t-from-pos": [{ "mask-t-from": R() }],
|
|
1143
|
+
"mask-image-t-to-pos": [{ "mask-t-to": R() }],
|
|
1144
|
+
"mask-image-t-from-color": [{ "mask-t-from": P() }],
|
|
1145
|
+
"mask-image-t-to-color": [{ "mask-t-to": P() }],
|
|
1146
|
+
"mask-image-r-from-pos": [{ "mask-r-from": R() }],
|
|
1147
|
+
"mask-image-r-to-pos": [{ "mask-r-to": R() }],
|
|
1148
|
+
"mask-image-r-from-color": [{ "mask-r-from": P() }],
|
|
1149
|
+
"mask-image-r-to-color": [{ "mask-r-to": P() }],
|
|
1150
|
+
"mask-image-b-from-pos": [{ "mask-b-from": R() }],
|
|
1151
|
+
"mask-image-b-to-pos": [{ "mask-b-to": R() }],
|
|
1152
|
+
"mask-image-b-from-color": [{ "mask-b-from": P() }],
|
|
1153
|
+
"mask-image-b-to-color": [{ "mask-b-to": P() }],
|
|
1154
|
+
"mask-image-l-from-pos": [{ "mask-l-from": R() }],
|
|
1155
|
+
"mask-image-l-to-pos": [{ "mask-l-to": R() }],
|
|
1156
|
+
"mask-image-l-from-color": [{ "mask-l-from": P() }],
|
|
1157
|
+
"mask-image-l-to-color": [{ "mask-l-to": P() }],
|
|
1158
|
+
"mask-image-x-from-pos": [{ "mask-x-from": R() }],
|
|
1159
|
+
"mask-image-x-to-pos": [{ "mask-x-to": R() }],
|
|
1160
|
+
"mask-image-x-from-color": [{ "mask-x-from": P() }],
|
|
1161
|
+
"mask-image-x-to-color": [{ "mask-x-to": P() }],
|
|
1162
|
+
"mask-image-y-from-pos": [{ "mask-y-from": R() }],
|
|
1163
|
+
"mask-image-y-to-pos": [{ "mask-y-to": R() }],
|
|
1164
|
+
"mask-image-y-from-color": [{ "mask-y-from": P() }],
|
|
1165
|
+
"mask-image-y-to-color": [{ "mask-y-to": P() }],
|
|
1166
|
+
"mask-image-radial": [{ "mask-radial": [K, G] }],
|
|
1167
|
+
"mask-image-radial-from-pos": [{ "mask-radial-from": R() }],
|
|
1168
|
+
"mask-image-radial-to-pos": [{ "mask-radial-to": R() }],
|
|
1169
|
+
"mask-image-radial-from-color": [{ "mask-radial-from": P() }],
|
|
1170
|
+
"mask-image-radial-to-color": [{ "mask-radial-to": P() }],
|
|
1171
1171
|
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
|
|
1172
1172
|
"mask-image-radial-size": [{ "mask-radial": [{
|
|
1173
1173
|
closest: ["side", "corner"],
|
|
1174
1174
|
farthest: ["side", "corner"]
|
|
1175
1175
|
}] }],
|
|
1176
1176
|
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
|
|
1177
|
-
"mask-image-conic-pos": [{ "mask-conic": [
|
|
1178
|
-
"mask-image-conic-from-pos": [{ "mask-conic-from":
|
|
1179
|
-
"mask-image-conic-to-pos": [{ "mask-conic-to":
|
|
1180
|
-
"mask-image-conic-from-color": [{ "mask-conic-from":
|
|
1181
|
-
"mask-image-conic-to-color": [{ "mask-conic-to":
|
|
1177
|
+
"mask-image-conic-pos": [{ "mask-conic": [H] }],
|
|
1178
|
+
"mask-image-conic-from-pos": [{ "mask-conic-from": R() }],
|
|
1179
|
+
"mask-image-conic-to-pos": [{ "mask-conic-to": R() }],
|
|
1180
|
+
"mask-image-conic-from-color": [{ "mask-conic-from": P() }],
|
|
1181
|
+
"mask-image-conic-to-color": [{ "mask-conic-to": P() }],
|
|
1182
1182
|
"mask-mode": [{ mask: [
|
|
1183
1183
|
"alpha",
|
|
1184
1184
|
"luminance",
|
|
@@ -1192,117 +1192,117 @@ var _ = (e, t) => {
|
|
|
1192
1192
|
"stroke",
|
|
1193
1193
|
"view"
|
|
1194
1194
|
] }],
|
|
1195
|
-
"mask-position": [{ mask:
|
|
1196
|
-
"mask-repeat": [{ mask:
|
|
1197
|
-
"mask-size": [{ mask:
|
|
1195
|
+
"mask-position": [{ mask: F() }],
|
|
1196
|
+
"mask-repeat": [{ mask: ne() }],
|
|
1197
|
+
"mask-size": [{ mask: re() }],
|
|
1198
1198
|
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
|
|
1199
1199
|
"mask-image": [{ mask: [
|
|
1200
1200
|
"none",
|
|
1201
|
-
|
|
1202
|
-
|
|
1201
|
+
K,
|
|
1202
|
+
G
|
|
1203
1203
|
] }],
|
|
1204
1204
|
filter: [{ filter: [
|
|
1205
1205
|
"",
|
|
1206
1206
|
"none",
|
|
1207
|
-
|
|
1208
|
-
|
|
1207
|
+
K,
|
|
1208
|
+
G
|
|
1209
1209
|
] }],
|
|
1210
|
-
blur: [{ blur:
|
|
1210
|
+
blur: [{ blur: se() }],
|
|
1211
1211
|
brightness: [{ brightness: [
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1212
|
+
H,
|
|
1213
|
+
K,
|
|
1214
|
+
G
|
|
1215
1215
|
] }],
|
|
1216
1216
|
contrast: [{ contrast: [
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1217
|
+
H,
|
|
1218
|
+
K,
|
|
1219
|
+
G
|
|
1220
1220
|
] }],
|
|
1221
1221
|
"drop-shadow": [{ "drop-shadow": [
|
|
1222
1222
|
"",
|
|
1223
1223
|
"none",
|
|
1224
1224
|
p,
|
|
1225
|
-
|
|
1226
|
-
|
|
1225
|
+
ze,
|
|
1226
|
+
Ne
|
|
1227
1227
|
] }],
|
|
1228
|
-
"drop-shadow-color": [{ "drop-shadow":
|
|
1228
|
+
"drop-shadow-color": [{ "drop-shadow": P() }],
|
|
1229
1229
|
grayscale: [{ grayscale: [
|
|
1230
1230
|
"",
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1231
|
+
H,
|
|
1232
|
+
K,
|
|
1233
|
+
G
|
|
1234
1234
|
] }],
|
|
1235
1235
|
"hue-rotate": [{ "hue-rotate": [
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1236
|
+
H,
|
|
1237
|
+
K,
|
|
1238
|
+
G
|
|
1239
1239
|
] }],
|
|
1240
1240
|
invert: [{ invert: [
|
|
1241
1241
|
"",
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1242
|
+
H,
|
|
1243
|
+
K,
|
|
1244
|
+
G
|
|
1245
1245
|
] }],
|
|
1246
1246
|
saturate: [{ saturate: [
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1247
|
+
H,
|
|
1248
|
+
K,
|
|
1249
|
+
G
|
|
1250
1250
|
] }],
|
|
1251
1251
|
sepia: [{ sepia: [
|
|
1252
1252
|
"",
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1253
|
+
H,
|
|
1254
|
+
K,
|
|
1255
|
+
G
|
|
1256
1256
|
] }],
|
|
1257
1257
|
"backdrop-filter": [{ "backdrop-filter": [
|
|
1258
1258
|
"",
|
|
1259
1259
|
"none",
|
|
1260
|
-
|
|
1261
|
-
|
|
1260
|
+
K,
|
|
1261
|
+
G
|
|
1262
1262
|
] }],
|
|
1263
|
-
"backdrop-blur": [{ "backdrop-blur":
|
|
1263
|
+
"backdrop-blur": [{ "backdrop-blur": se() }],
|
|
1264
1264
|
"backdrop-brightness": [{ "backdrop-brightness": [
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1265
|
+
H,
|
|
1266
|
+
K,
|
|
1267
|
+
G
|
|
1268
1268
|
] }],
|
|
1269
1269
|
"backdrop-contrast": [{ "backdrop-contrast": [
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1270
|
+
H,
|
|
1271
|
+
K,
|
|
1272
|
+
G
|
|
1273
1273
|
] }],
|
|
1274
1274
|
"backdrop-grayscale": [{ "backdrop-grayscale": [
|
|
1275
1275
|
"",
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1276
|
+
H,
|
|
1277
|
+
K,
|
|
1278
|
+
G
|
|
1279
1279
|
] }],
|
|
1280
1280
|
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1281
|
+
H,
|
|
1282
|
+
K,
|
|
1283
|
+
G
|
|
1284
1284
|
] }],
|
|
1285
1285
|
"backdrop-invert": [{ "backdrop-invert": [
|
|
1286
1286
|
"",
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1287
|
+
H,
|
|
1288
|
+
K,
|
|
1289
|
+
G
|
|
1290
1290
|
] }],
|
|
1291
1291
|
"backdrop-opacity": [{ "backdrop-opacity": [
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1292
|
+
H,
|
|
1293
|
+
K,
|
|
1294
|
+
G
|
|
1295
1295
|
] }],
|
|
1296
1296
|
"backdrop-saturate": [{ "backdrop-saturate": [
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1297
|
+
H,
|
|
1298
|
+
K,
|
|
1299
|
+
G
|
|
1300
1300
|
] }],
|
|
1301
1301
|
"backdrop-sepia": [{ "backdrop-sepia": [
|
|
1302
1302
|
"",
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1303
|
+
H,
|
|
1304
|
+
K,
|
|
1305
|
+
G
|
|
1306
1306
|
] }],
|
|
1307
1307
|
"border-collapse": [{ border: ["collapse", "separate"] }],
|
|
1308
1308
|
"border-spacing": [{ "border-spacing": w() }],
|
|
@@ -1318,56 +1318,56 @@ var _ = (e, t) => {
|
|
|
1318
1318
|
"shadow",
|
|
1319
1319
|
"transform",
|
|
1320
1320
|
"none",
|
|
1321
|
-
|
|
1322
|
-
|
|
1321
|
+
K,
|
|
1322
|
+
G
|
|
1323
1323
|
] }],
|
|
1324
1324
|
"transition-behavior": [{ transition: ["normal", "discrete"] }],
|
|
1325
1325
|
duration: [{ duration: [
|
|
1326
|
-
|
|
1326
|
+
H,
|
|
1327
1327
|
"initial",
|
|
1328
|
-
|
|
1329
|
-
|
|
1328
|
+
K,
|
|
1329
|
+
G
|
|
1330
1330
|
] }],
|
|
1331
1331
|
ease: [{ ease: [
|
|
1332
1332
|
"linear",
|
|
1333
1333
|
"initial",
|
|
1334
1334
|
_,
|
|
1335
|
-
|
|
1336
|
-
|
|
1335
|
+
K,
|
|
1336
|
+
G
|
|
1337
1337
|
] }],
|
|
1338
1338
|
delay: [{ delay: [
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1339
|
+
H,
|
|
1340
|
+
K,
|
|
1341
|
+
G
|
|
1342
1342
|
] }],
|
|
1343
1343
|
animate: [{ animate: [
|
|
1344
1344
|
"none",
|
|
1345
1345
|
v,
|
|
1346
|
-
|
|
1347
|
-
|
|
1346
|
+
K,
|
|
1347
|
+
G
|
|
1348
1348
|
] }],
|
|
1349
1349
|
backface: [{ backface: ["hidden", "visible"] }],
|
|
1350
1350
|
perspective: [{ perspective: [
|
|
1351
1351
|
h,
|
|
1352
|
-
|
|
1353
|
-
|
|
1352
|
+
K,
|
|
1353
|
+
G
|
|
1354
1354
|
] }],
|
|
1355
1355
|
"perspective-origin": [{ "perspective-origin": x() }],
|
|
1356
|
-
rotate: [{ rotate:
|
|
1357
|
-
"rotate-x": [{ "rotate-x":
|
|
1358
|
-
"rotate-y": [{ "rotate-y":
|
|
1359
|
-
"rotate-z": [{ "rotate-z":
|
|
1360
|
-
scale: [{ scale:
|
|
1361
|
-
"scale-x": [{ "scale-x":
|
|
1362
|
-
"scale-y": [{ "scale-y":
|
|
1363
|
-
"scale-z": [{ "scale-z":
|
|
1356
|
+
rotate: [{ rotate: z() }],
|
|
1357
|
+
"rotate-x": [{ "rotate-x": z() }],
|
|
1358
|
+
"rotate-y": [{ "rotate-y": z() }],
|
|
1359
|
+
"rotate-z": [{ "rotate-z": z() }],
|
|
1360
|
+
scale: [{ scale: ce() }],
|
|
1361
|
+
"scale-x": [{ "scale-x": ce() }],
|
|
1362
|
+
"scale-y": [{ "scale-y": ce() }],
|
|
1363
|
+
"scale-z": [{ "scale-z": ce() }],
|
|
1364
1364
|
"scale-3d": ["scale-3d"],
|
|
1365
|
-
skew: [{ skew:
|
|
1366
|
-
"skew-x": [{ "skew-x":
|
|
1367
|
-
"skew-y": [{ "skew-y":
|
|
1365
|
+
skew: [{ skew: le() }],
|
|
1366
|
+
"skew-x": [{ "skew-x": le() }],
|
|
1367
|
+
"skew-y": [{ "skew-y": le() }],
|
|
1368
1368
|
transform: [{ transform: [
|
|
1369
|
-
q,
|
|
1370
1369
|
K,
|
|
1370
|
+
G,
|
|
1371
1371
|
"",
|
|
1372
1372
|
"none",
|
|
1373
1373
|
"gpu",
|
|
@@ -1375,19 +1375,19 @@ var _ = (e, t) => {
|
|
|
1375
1375
|
] }],
|
|
1376
1376
|
"transform-origin": [{ origin: x() }],
|
|
1377
1377
|
"transform-style": [{ transform: ["3d", "flat"] }],
|
|
1378
|
-
translate: [{ translate:
|
|
1379
|
-
"translate-x": [{ "translate-x":
|
|
1380
|
-
"translate-y": [{ "translate-y":
|
|
1381
|
-
"translate-z": [{ "translate-z":
|
|
1378
|
+
translate: [{ translate: V() }],
|
|
1379
|
+
"translate-x": [{ "translate-x": V() }],
|
|
1380
|
+
"translate-y": [{ "translate-y": V() }],
|
|
1381
|
+
"translate-z": [{ "translate-z": V() }],
|
|
1382
1382
|
"translate-none": ["translate-none"],
|
|
1383
1383
|
zoom: [{ zoom: [
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1384
|
+
U,
|
|
1385
|
+
K,
|
|
1386
|
+
G
|
|
1387
1387
|
] }],
|
|
1388
|
-
accent: [{ accent:
|
|
1388
|
+
accent: [{ accent: P() }],
|
|
1389
1389
|
appearance: [{ appearance: ["none", "auto"] }],
|
|
1390
|
-
"caret-color": [{ caret:
|
|
1390
|
+
"caret-color": [{ caret: P() }],
|
|
1391
1391
|
"color-scheme": [{ scheme: [
|
|
1392
1392
|
"normal",
|
|
1393
1393
|
"dark",
|
|
@@ -1433,8 +1433,8 @@ var _ = (e, t) => {
|
|
|
1433
1433
|
"nwse-resize",
|
|
1434
1434
|
"zoom-in",
|
|
1435
1435
|
"zoom-out",
|
|
1436
|
-
|
|
1437
|
-
|
|
1436
|
+
K,
|
|
1437
|
+
G
|
|
1438
1438
|
] }],
|
|
1439
1439
|
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
|
|
1440
1440
|
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
|
|
@@ -1445,8 +1445,8 @@ var _ = (e, t) => {
|
|
|
1445
1445
|
"x"
|
|
1446
1446
|
] }],
|
|
1447
1447
|
"scroll-behavior": [{ scroll: ["auto", "smooth"] }],
|
|
1448
|
-
"scrollbar-thumb-color": [{ "scrollbar-thumb":
|
|
1449
|
-
"scrollbar-track-color": [{ "scrollbar-track":
|
|
1448
|
+
"scrollbar-thumb-color": [{ "scrollbar-thumb": P() }],
|
|
1449
|
+
"scrollbar-track-color": [{ "scrollbar-track": P() }],
|
|
1450
1450
|
"scrollbar-gutter": [{ "scrollbar-gutter": [
|
|
1451
1451
|
"auto",
|
|
1452
1452
|
"stable",
|
|
@@ -1520,17 +1520,17 @@ var _ = (e, t) => {
|
|
|
1520
1520
|
"scroll",
|
|
1521
1521
|
"contents",
|
|
1522
1522
|
"transform",
|
|
1523
|
-
|
|
1524
|
-
|
|
1523
|
+
K,
|
|
1524
|
+
G
|
|
1525
1525
|
] }],
|
|
1526
|
-
fill: [{ fill: ["none", ...
|
|
1526
|
+
fill: [{ fill: ["none", ...P()] }],
|
|
1527
1527
|
"stroke-w": [{ stroke: [
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1528
|
+
H,
|
|
1529
|
+
Pe,
|
|
1530
|
+
De,
|
|
1531
|
+
Oe
|
|
1532
1532
|
] }],
|
|
1533
|
-
stroke: [{ stroke: ["none", ...
|
|
1533
|
+
stroke: [{ stroke: ["none", ...P()] }],
|
|
1534
1534
|
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
|
|
1535
1535
|
},
|
|
1536
1536
|
conflictingClassGroups: {
|
|
@@ -1719,23 +1719,23 @@ var _ = (e, t) => {
|
|
|
1719
1719
|
});
|
|
1720
1720
|
//#endregion
|
|
1721
1721
|
//#region src/lib/utils.ts
|
|
1722
|
-
function
|
|
1723
|
-
return
|
|
1722
|
+
function q(...e) {
|
|
1723
|
+
return Ze(o(e));
|
|
1724
1724
|
}
|
|
1725
1725
|
//#endregion
|
|
1726
1726
|
//#region node_modules/class-variance-authority/dist/index.mjs
|
|
1727
|
-
var
|
|
1728
|
-
if (t?.variants == null) return
|
|
1727
|
+
var Qe = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = o, et = (e, t) => (n) => {
|
|
1728
|
+
if (t?.variants == null) return $e(e, n?.class, n?.className);
|
|
1729
1729
|
let { variants: r, defaultVariants: i } = t, a = Object.keys(r).map((e) => {
|
|
1730
1730
|
let t = n?.[e], a = i?.[e];
|
|
1731
1731
|
if (t === null) return null;
|
|
1732
|
-
let o =
|
|
1732
|
+
let o = Qe(t) || Qe(a);
|
|
1733
1733
|
return r[e][o];
|
|
1734
1734
|
}), o = n && Object.entries(n).reduce((e, t) => {
|
|
1735
1735
|
let [n, r] = t;
|
|
1736
1736
|
return r === void 0 || (e[n] = r), e;
|
|
1737
1737
|
}, {});
|
|
1738
|
-
return
|
|
1738
|
+
return $e(e, a, t?.compoundVariants?.reduce((e, t) => {
|
|
1739
1739
|
let { class: n, className: r, ...a } = t;
|
|
1740
1740
|
return Object.entries(a).every((e) => {
|
|
1741
1741
|
let [t, n] = e;
|
|
@@ -1755,33 +1755,33 @@ var Ze = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qe = o, $e =
|
|
|
1755
1755
|
};
|
|
1756
1756
|
//#endregion
|
|
1757
1757
|
//#region node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
1758
|
-
function
|
|
1758
|
+
function tt(e, t) {
|
|
1759
1759
|
if (typeof e == "function") return e(t);
|
|
1760
1760
|
e != null && (e.current = t);
|
|
1761
1761
|
}
|
|
1762
|
-
function
|
|
1762
|
+
function nt(...e) {
|
|
1763
1763
|
return (t) => {
|
|
1764
1764
|
let n = !1, r = e.map((e) => {
|
|
1765
|
-
let r =
|
|
1765
|
+
let r = tt(e, t);
|
|
1766
1766
|
return !n && typeof r == "function" && (n = !0), r;
|
|
1767
1767
|
});
|
|
1768
1768
|
if (n) return () => {
|
|
1769
1769
|
for (let t = 0; t < r.length; t++) {
|
|
1770
1770
|
let n = r[t];
|
|
1771
|
-
typeof n == "function" ? n() :
|
|
1771
|
+
typeof n == "function" ? n() : tt(e[t], null);
|
|
1772
1772
|
}
|
|
1773
1773
|
};
|
|
1774
1774
|
};
|
|
1775
1775
|
}
|
|
1776
|
-
function
|
|
1777
|
-
return s.useCallback(
|
|
1776
|
+
function rt(...e) {
|
|
1777
|
+
return s.useCallback(nt(...e), e);
|
|
1778
1778
|
}
|
|
1779
1779
|
//#endregion
|
|
1780
1780
|
//#region node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
1781
1781
|
// @__NO_SIDE_EFFECTS__
|
|
1782
|
-
function
|
|
1783
|
-
let t = /* @__PURE__ */
|
|
1784
|
-
let { children: r, ...i } = e, a = s.Children.toArray(r), o = a.find(
|
|
1782
|
+
function it(e) {
|
|
1783
|
+
let t = /* @__PURE__ */ ot(e), n = s.forwardRef((e, n) => {
|
|
1784
|
+
let { children: r, ...i } = e, a = s.Children.toArray(r), o = a.find(lt);
|
|
1785
1785
|
if (o) {
|
|
1786
1786
|
let e = o.props.children, r = a.map((t) => t === o ? s.Children.count(e) > 1 ? s.Children.only(null) : s.isValidElement(e) ? e.props.children : null : t);
|
|
1787
1787
|
return /* @__PURE__ */ h(t, {
|
|
@@ -1798,29 +1798,29 @@ function rt(e) {
|
|
|
1798
1798
|
});
|
|
1799
1799
|
return n.displayName = `${e}.Slot`, n;
|
|
1800
1800
|
}
|
|
1801
|
-
var
|
|
1801
|
+
var at = /* @__PURE__ */ it("Slot");
|
|
1802
1802
|
// @__NO_SIDE_EFFECTS__
|
|
1803
|
-
function
|
|
1803
|
+
function ot(e) {
|
|
1804
1804
|
let t = s.forwardRef((e, t) => {
|
|
1805
1805
|
let { children: n, ...r } = e;
|
|
1806
1806
|
if (s.isValidElement(n)) {
|
|
1807
|
-
let e =
|
|
1808
|
-
return n.type !== s.Fragment && (i.ref = t ?
|
|
1807
|
+
let e = dt(n), i = ut(r, n.props);
|
|
1808
|
+
return n.type !== s.Fragment && (i.ref = t ? nt(t, e) : e), s.cloneElement(n, i);
|
|
1809
1809
|
}
|
|
1810
1810
|
return s.Children.count(n) > 1 ? s.Children.only(null) : null;
|
|
1811
1811
|
});
|
|
1812
1812
|
return t.displayName = `${e}.SlotClone`, t;
|
|
1813
1813
|
}
|
|
1814
|
-
var
|
|
1814
|
+
var st = Symbol("radix.slottable");
|
|
1815
1815
|
// @__NO_SIDE_EFFECTS__
|
|
1816
|
-
function
|
|
1816
|
+
function ct(e) {
|
|
1817
1817
|
let t = ({ children: e }) => /* @__PURE__ */ h(m, { children: e });
|
|
1818
|
-
return t.displayName = `${e}.Slottable`, t.__radixId =
|
|
1818
|
+
return t.displayName = `${e}.Slottable`, t.__radixId = st, t;
|
|
1819
1819
|
}
|
|
1820
|
-
function
|
|
1821
|
-
return s.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
1820
|
+
function lt(e) {
|
|
1821
|
+
return s.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === st;
|
|
1822
1822
|
}
|
|
1823
|
-
function
|
|
1823
|
+
function ut(e, t) {
|
|
1824
1824
|
let n = { ...t };
|
|
1825
1825
|
for (let r in t) {
|
|
1826
1826
|
let i = e[r], a = t[r];
|
|
@@ -1837,13 +1837,13 @@ function lt(e, t) {
|
|
|
1837
1837
|
...n
|
|
1838
1838
|
};
|
|
1839
1839
|
}
|
|
1840
|
-
function
|
|
1840
|
+
function dt(e) {
|
|
1841
1841
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
1842
1842
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
1843
1843
|
}
|
|
1844
1844
|
//#endregion
|
|
1845
1845
|
//#region node_modules/@radix-ui/react-context/dist/index.mjs
|
|
1846
|
-
function
|
|
1846
|
+
function ft(e, t) {
|
|
1847
1847
|
let n = s.createContext(t), r = (e) => {
|
|
1848
1848
|
let { children: t, ...r } = e, i = s.useMemo(() => r, Object.values(r));
|
|
1849
1849
|
return /* @__PURE__ */ h(n.Provider, {
|
|
@@ -1860,7 +1860,7 @@ function dt(e, t) {
|
|
|
1860
1860
|
}
|
|
1861
1861
|
return [r, i];
|
|
1862
1862
|
}
|
|
1863
|
-
function
|
|
1863
|
+
function pt(e, t = []) {
|
|
1864
1864
|
let n = [];
|
|
1865
1865
|
function r(t, r) {
|
|
1866
1866
|
let i = s.createContext(r), a = n.length;
|
|
@@ -1891,9 +1891,9 @@ function ft(e, t = []) {
|
|
|
1891
1891
|
} }), [n, r]);
|
|
1892
1892
|
};
|
|
1893
1893
|
};
|
|
1894
|
-
return i.scopeName = e, [r,
|
|
1894
|
+
return i.scopeName = e, [r, mt(i, ...t)];
|
|
1895
1895
|
}
|
|
1896
|
-
function
|
|
1896
|
+
function mt(...e) {
|
|
1897
1897
|
let t = e[0];
|
|
1898
1898
|
if (e.length === 1) return t;
|
|
1899
1899
|
let n = () => {
|
|
@@ -1915,16 +1915,16 @@ function pt(...e) {
|
|
|
1915
1915
|
return n.scopeName = t.scopeName, n;
|
|
1916
1916
|
}
|
|
1917
1917
|
typeof window < "u" && window.document && window.document.createElement;
|
|
1918
|
-
function
|
|
1918
|
+
function ht(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
1919
1919
|
return function(r) {
|
|
1920
1920
|
if (e?.(r), n === !1 || !r.defaultPrevented) return t?.(r);
|
|
1921
1921
|
};
|
|
1922
1922
|
}
|
|
1923
1923
|
//#endregion
|
|
1924
1924
|
//#region node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
|
|
1925
|
-
var
|
|
1926
|
-
function
|
|
1927
|
-
let [i, a, o] =
|
|
1925
|
+
var gt = globalThis?.document ? s.useLayoutEffect : () => {}, _t = s.useInsertionEffect || gt;
|
|
1926
|
+
function vt({ prop: e, defaultProp: t, onChange: n = () => {}, caller: r }) {
|
|
1927
|
+
let [i, a, o] = yt({
|
|
1928
1928
|
defaultProp: t,
|
|
1929
1929
|
onChange: n
|
|
1930
1930
|
}), c = e !== void 0, l = c ? e : i;
|
|
@@ -1937,7 +1937,7 @@ function _t({ prop: e, defaultProp: t, onChange: n = () => {}, caller: r }) {
|
|
|
1937
1937
|
}
|
|
1938
1938
|
return [l, s.useCallback((t) => {
|
|
1939
1939
|
if (c) {
|
|
1940
|
-
let n =
|
|
1940
|
+
let n = bt(t) ? t(e) : t;
|
|
1941
1941
|
n !== e && o.current?.(n);
|
|
1942
1942
|
} else a(t);
|
|
1943
1943
|
}, [
|
|
@@ -1947,9 +1947,9 @@ function _t({ prop: e, defaultProp: t, onChange: n = () => {}, caller: r }) {
|
|
|
1947
1947
|
o
|
|
1948
1948
|
])];
|
|
1949
1949
|
}
|
|
1950
|
-
function
|
|
1950
|
+
function yt({ defaultProp: e, onChange: t }) {
|
|
1951
1951
|
let [n, r] = s.useState(e), i = s.useRef(n), a = s.useRef(t);
|
|
1952
|
-
return
|
|
1952
|
+
return _t(() => {
|
|
1953
1953
|
a.current = t;
|
|
1954
1954
|
}, [t]), s.useEffect(() => {
|
|
1955
1955
|
i.current !== n && (a.current?.(n), i.current = n);
|
|
@@ -1959,21 +1959,21 @@ function vt({ defaultProp: e, onChange: t }) {
|
|
|
1959
1959
|
a
|
|
1960
1960
|
];
|
|
1961
1961
|
}
|
|
1962
|
-
function
|
|
1962
|
+
function bt(e) {
|
|
1963
1963
|
return typeof e == "function";
|
|
1964
1964
|
}
|
|
1965
1965
|
//#endregion
|
|
1966
1966
|
//#region node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
1967
|
-
function
|
|
1967
|
+
function xt(e, t) {
|
|
1968
1968
|
return s.useReducer((e, n) => t[e][n] ?? e, e);
|
|
1969
1969
|
}
|
|
1970
|
-
var
|
|
1971
|
-
let { present: t, children: n } = e, r =
|
|
1970
|
+
var St = (e) => {
|
|
1971
|
+
let { present: t, children: n } = e, r = Ct(t), i = typeof n == "function" ? n({ present: r.isPresent }) : s.Children.only(n), a = rt(r.ref, Tt(i));
|
|
1972
1972
|
return typeof n == "function" || r.isPresent ? s.cloneElement(i, { ref: a }) : null;
|
|
1973
1973
|
};
|
|
1974
|
-
|
|
1975
|
-
function
|
|
1976
|
-
let [t, n] = s.useState(), r = s.useRef(null), i = s.useRef(e), a = s.useRef("none"), [o, c] =
|
|
1974
|
+
St.displayName = "Presence";
|
|
1975
|
+
function Ct(e) {
|
|
1976
|
+
let [t, n] = s.useState(), r = s.useRef(null), i = s.useRef(e), a = s.useRef("none"), [o, c] = xt(e ? "mounted" : "unmounted", {
|
|
1977
1977
|
mounted: {
|
|
1978
1978
|
UNMOUNT: "unmounted",
|
|
1979
1979
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -1985,18 +1985,18 @@ function St(e) {
|
|
|
1985
1985
|
unmounted: { MOUNT: "mounted" }
|
|
1986
1986
|
});
|
|
1987
1987
|
return s.useEffect(() => {
|
|
1988
|
-
let e =
|
|
1988
|
+
let e = wt(r.current);
|
|
1989
1989
|
a.current = o === "mounted" ? e : "none";
|
|
1990
|
-
}, [o]),
|
|
1990
|
+
}, [o]), gt(() => {
|
|
1991
1991
|
let t = r.current, n = i.current;
|
|
1992
1992
|
if (n !== e) {
|
|
1993
|
-
let r = a.current, o =
|
|
1993
|
+
let r = a.current, o = wt(t);
|
|
1994
1994
|
e ? c("MOUNT") : o === "none" || t?.display === "none" ? c("UNMOUNT") : c(n && r !== o ? "ANIMATION_OUT" : "UNMOUNT"), i.current = e;
|
|
1995
1995
|
}
|
|
1996
|
-
}, [e, c]),
|
|
1996
|
+
}, [e, c]), gt(() => {
|
|
1997
1997
|
if (t) {
|
|
1998
1998
|
let e, n = t.ownerDocument.defaultView ?? window, o = (a) => {
|
|
1999
|
-
let o =
|
|
1999
|
+
let o = wt(r.current).includes(CSS.escape(a.animationName));
|
|
2000
2000
|
if (a.target === t && o && (c("ANIMATION_END"), !i.current)) {
|
|
2001
2001
|
let r = t.style.animationFillMode;
|
|
2002
2002
|
t.style.animationFillMode = "forwards", e = n.setTimeout(() => {
|
|
@@ -2004,7 +2004,7 @@ function St(e) {
|
|
|
2004
2004
|
});
|
|
2005
2005
|
}
|
|
2006
2006
|
}, s = (e) => {
|
|
2007
|
-
e.target === t && (a.current =
|
|
2007
|
+
e.target === t && (a.current = wt(r.current));
|
|
2008
2008
|
};
|
|
2009
2009
|
return t.addEventListener("animationstart", s), t.addEventListener("animationcancel", o), t.addEventListener("animationend", o), () => {
|
|
2010
2010
|
n.clearTimeout(e), t.removeEventListener("animationstart", s), t.removeEventListener("animationcancel", o), t.removeEventListener("animationend", o);
|
|
@@ -2017,25 +2017,25 @@ function St(e) {
|
|
|
2017
2017
|
}, [])
|
|
2018
2018
|
};
|
|
2019
2019
|
}
|
|
2020
|
-
function
|
|
2020
|
+
function wt(e) {
|
|
2021
2021
|
return e?.animationName || "none";
|
|
2022
2022
|
}
|
|
2023
|
-
function
|
|
2023
|
+
function Tt(e) {
|
|
2024
2024
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
2025
2025
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
2026
2026
|
}
|
|
2027
2027
|
//#endregion
|
|
2028
2028
|
//#region node_modules/@radix-ui/react-id/dist/index.mjs
|
|
2029
|
-
var
|
|
2030
|
-
function
|
|
2031
|
-
let [t, n] = s.useState(
|
|
2032
|
-
return
|
|
2033
|
-
e || n((e) => e ?? String(
|
|
2029
|
+
var Et = s.useId || (() => void 0), Dt = 0;
|
|
2030
|
+
function Ot(e) {
|
|
2031
|
+
let [t, n] = s.useState(Et());
|
|
2032
|
+
return gt(() => {
|
|
2033
|
+
e || n((e) => e ?? String(Dt++));
|
|
2034
2034
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
2035
2035
|
}
|
|
2036
2036
|
//#endregion
|
|
2037
2037
|
//#region node_modules/@radix-ui/react-dismissable-layer/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
2038
|
-
var
|
|
2038
|
+
var kt = [
|
|
2039
2039
|
"a",
|
|
2040
2040
|
"button",
|
|
2041
2041
|
"div",
|
|
@@ -2054,7 +2054,7 @@ var Ot = [
|
|
|
2054
2054
|
"svg",
|
|
2055
2055
|
"ul"
|
|
2056
2056
|
].reduce((e, t) => {
|
|
2057
|
-
let n = /* @__PURE__ */
|
|
2057
|
+
let n = /* @__PURE__ */ it(`Primitive.${t}`), r = s.forwardRef((e, r) => {
|
|
2058
2058
|
let { asChild: i, ...a } = e, o = i ? n : t;
|
|
2059
2059
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ h(o, {
|
|
2060
2060
|
...a,
|
|
@@ -2066,12 +2066,12 @@ var Ot = [
|
|
|
2066
2066
|
[t]: r
|
|
2067
2067
|
};
|
|
2068
2068
|
}, {});
|
|
2069
|
-
function
|
|
2069
|
+
function At(e, t) {
|
|
2070
2070
|
e && f.flushSync(() => e.dispatchEvent(t));
|
|
2071
2071
|
}
|
|
2072
2072
|
//#endregion
|
|
2073
2073
|
//#region node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
2074
|
-
function
|
|
2074
|
+
function jt(e) {
|
|
2075
2075
|
let t = s.useRef(e);
|
|
2076
2076
|
return s.useEffect(() => {
|
|
2077
2077
|
t.current = e;
|
|
@@ -2079,8 +2079,8 @@ function At(e) {
|
|
|
2079
2079
|
}
|
|
2080
2080
|
//#endregion
|
|
2081
2081
|
//#region node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
|
|
2082
|
-
function
|
|
2083
|
-
let n =
|
|
2082
|
+
function Mt(e, t = globalThis?.document) {
|
|
2083
|
+
let n = jt(e);
|
|
2084
2084
|
s.useEffect(() => {
|
|
2085
2085
|
let e = (e) => {
|
|
2086
2086
|
e.key === "Escape" && n(e);
|
|
@@ -2090,23 +2090,23 @@ function jt(e, t = globalThis?.document) {
|
|
|
2090
2090
|
}
|
|
2091
2091
|
//#endregion
|
|
2092
2092
|
//#region node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
2093
|
-
var
|
|
2093
|
+
var Nt = "DismissableLayer", Pt = "dismissableLayer.update", Ft = "dismissableLayer.pointerDownOutside", It = "dismissableLayer.focusOutside", Lt, Rt = s.createContext({
|
|
2094
2094
|
layers: /* @__PURE__ */ new Set(),
|
|
2095
2095
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
2096
2096
|
branches: /* @__PURE__ */ new Set()
|
|
2097
|
-
}),
|
|
2098
|
-
let { disableOutsidePointerEvents: n = !1, onEscapeKeyDown: r, onPointerDownOutside: i, onFocusOutside: a, onInteractOutside: o, onDismiss: c, ...l } = e, u = s.useContext(
|
|
2097
|
+
}), zt = s.forwardRef((e, t) => {
|
|
2098
|
+
let { disableOutsidePointerEvents: n = !1, onEscapeKeyDown: r, onPointerDownOutside: i, onFocusOutside: a, onInteractOutside: o, onDismiss: c, ...l } = e, u = s.useContext(Rt), [d, f] = s.useState(null), p = d?.ownerDocument ?? globalThis?.document, [, m] = s.useState({}), g = rt(t, (e) => f(e)), _ = Array.from(u.layers), [v] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), y = _.indexOf(v), b = d ? _.indexOf(d) : -1, x = u.layersWithOutsidePointerEventsDisabled.size > 0, S = b >= y, C = Ht((e) => {
|
|
2099
2099
|
let t = e.target, n = [...u.branches].some((e) => e.contains(t));
|
|
2100
2100
|
!S || n || (i?.(e), o?.(e), e.defaultPrevented || c?.());
|
|
2101
|
-
}, p), w =
|
|
2101
|
+
}, p), w = Ut((e) => {
|
|
2102
2102
|
let t = e.target;
|
|
2103
2103
|
[...u.branches].some((e) => e.contains(t)) || (a?.(e), o?.(e), e.defaultPrevented || c?.());
|
|
2104
2104
|
}, p);
|
|
2105
|
-
return
|
|
2105
|
+
return Mt((e) => {
|
|
2106
2106
|
b === u.layers.size - 1 && (r?.(e), !e.defaultPrevented && c && (e.preventDefault(), c()));
|
|
2107
2107
|
}, p), s.useEffect(() => {
|
|
2108
|
-
if (d) return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (
|
|
2109
|
-
n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (p.body.style.pointerEvents =
|
|
2108
|
+
if (d) return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (Lt = p.body.style.pointerEvents, p.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(d)), u.layers.add(d), Wt(), () => {
|
|
2109
|
+
n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (p.body.style.pointerEvents = Lt);
|
|
2110
2110
|
};
|
|
2111
2111
|
}, [
|
|
2112
2112
|
d,
|
|
@@ -2114,43 +2114,43 @@ var Mt = "DismissableLayer", Nt = "dismissableLayer.update", Pt = "dismissableLa
|
|
|
2114
2114
|
n,
|
|
2115
2115
|
u
|
|
2116
2116
|
]), s.useEffect(() => () => {
|
|
2117
|
-
d && (u.layers.delete(d), u.layersWithOutsidePointerEventsDisabled.delete(d),
|
|
2117
|
+
d && (u.layers.delete(d), u.layersWithOutsidePointerEventsDisabled.delete(d), Wt());
|
|
2118
2118
|
}, [d, u]), s.useEffect(() => {
|
|
2119
2119
|
let e = () => m({});
|
|
2120
|
-
return document.addEventListener(
|
|
2121
|
-
}, []), /* @__PURE__ */ h(
|
|
2120
|
+
return document.addEventListener(Pt, e), () => document.removeEventListener(Pt, e);
|
|
2121
|
+
}, []), /* @__PURE__ */ h(kt.div, {
|
|
2122
2122
|
...l,
|
|
2123
2123
|
ref: g,
|
|
2124
2124
|
style: {
|
|
2125
2125
|
pointerEvents: x ? S ? "auto" : "none" : void 0,
|
|
2126
2126
|
...e.style
|
|
2127
2127
|
},
|
|
2128
|
-
onFocusCapture:
|
|
2129
|
-
onBlurCapture:
|
|
2130
|
-
onPointerDownCapture:
|
|
2128
|
+
onFocusCapture: ht(e.onFocusCapture, w.onFocusCapture),
|
|
2129
|
+
onBlurCapture: ht(e.onBlurCapture, w.onBlurCapture),
|
|
2130
|
+
onPointerDownCapture: ht(e.onPointerDownCapture, C.onPointerDownCapture)
|
|
2131
2131
|
});
|
|
2132
2132
|
});
|
|
2133
|
-
|
|
2134
|
-
var
|
|
2135
|
-
let n = s.useContext(
|
|
2133
|
+
zt.displayName = Nt;
|
|
2134
|
+
var Bt = "DismissableLayerBranch", Vt = s.forwardRef((e, t) => {
|
|
2135
|
+
let n = s.useContext(Rt), r = s.useRef(null), i = rt(t, r);
|
|
2136
2136
|
return s.useEffect(() => {
|
|
2137
2137
|
let e = r.current;
|
|
2138
2138
|
if (e) return n.branches.add(e), () => {
|
|
2139
2139
|
n.branches.delete(e);
|
|
2140
2140
|
};
|
|
2141
|
-
}, [n.branches]), /* @__PURE__ */ h(
|
|
2141
|
+
}, [n.branches]), /* @__PURE__ */ h(kt.div, {
|
|
2142
2142
|
...e,
|
|
2143
2143
|
ref: i
|
|
2144
2144
|
});
|
|
2145
2145
|
});
|
|
2146
|
-
|
|
2147
|
-
function
|
|
2148
|
-
let n =
|
|
2146
|
+
Vt.displayName = Bt;
|
|
2147
|
+
function Ht(e, t = globalThis?.document) {
|
|
2148
|
+
let n = jt(e), r = s.useRef(!1), i = s.useRef(() => {});
|
|
2149
2149
|
return s.useEffect(() => {
|
|
2150
2150
|
let e = (e) => {
|
|
2151
2151
|
if (e.target && !r.current) {
|
|
2152
2152
|
let r = function() {
|
|
2153
|
-
|
|
2153
|
+
Gt(Ft, n, a, { discrete: !0 });
|
|
2154
2154
|
}, a = { originalEvent: e };
|
|
2155
2155
|
e.pointerType === "touch" ? (t.removeEventListener("click", i.current), i.current = r, t.addEventListener("click", i.current, { once: !0 })) : r();
|
|
2156
2156
|
} else t.removeEventListener("click", i.current);
|
|
@@ -2163,11 +2163,11 @@ function Vt(e, t = globalThis?.document) {
|
|
|
2163
2163
|
};
|
|
2164
2164
|
}, [t, n]), { onPointerDownCapture: () => r.current = !0 };
|
|
2165
2165
|
}
|
|
2166
|
-
function
|
|
2167
|
-
let n =
|
|
2166
|
+
function Ut(e, t = globalThis?.document) {
|
|
2167
|
+
let n = jt(e), r = s.useRef(!1);
|
|
2168
2168
|
return s.useEffect(() => {
|
|
2169
2169
|
let e = (e) => {
|
|
2170
|
-
e.target && !r.current &&
|
|
2170
|
+
e.target && !r.current && Gt(It, n, { originalEvent: e }, { discrete: !1 });
|
|
2171
2171
|
};
|
|
2172
2172
|
return t.addEventListener("focusin", e), () => t.removeEventListener("focusin", e);
|
|
2173
2173
|
}, [t, n]), {
|
|
@@ -2175,21 +2175,21 @@ function Ht(e, t = globalThis?.document) {
|
|
|
2175
2175
|
onBlurCapture: () => r.current = !1
|
|
2176
2176
|
};
|
|
2177
2177
|
}
|
|
2178
|
-
function
|
|
2179
|
-
let e = new CustomEvent(
|
|
2178
|
+
function Wt() {
|
|
2179
|
+
let e = new CustomEvent(Pt);
|
|
2180
2180
|
document.dispatchEvent(e);
|
|
2181
2181
|
}
|
|
2182
|
-
function
|
|
2182
|
+
function Gt(e, t, n, { discrete: r }) {
|
|
2183
2183
|
let i = n.originalEvent.target, a = new CustomEvent(e, {
|
|
2184
2184
|
bubbles: !1,
|
|
2185
2185
|
cancelable: !0,
|
|
2186
2186
|
detail: n
|
|
2187
2187
|
});
|
|
2188
|
-
t && i.addEventListener(e, t, { once: !0 }), r ?
|
|
2188
|
+
t && i.addEventListener(e, t, { once: !0 }), r ? At(i, a) : i.dispatchEvent(a);
|
|
2189
2189
|
}
|
|
2190
2190
|
//#endregion
|
|
2191
2191
|
//#region node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
2192
|
-
var
|
|
2192
|
+
var Kt = [
|
|
2193
2193
|
"a",
|
|
2194
2194
|
"button",
|
|
2195
2195
|
"div",
|
|
@@ -2208,7 +2208,7 @@ var Gt = [
|
|
|
2208
2208
|
"svg",
|
|
2209
2209
|
"ul"
|
|
2210
2210
|
].reduce((e, t) => {
|
|
2211
|
-
let n = /* @__PURE__ */
|
|
2211
|
+
let n = /* @__PURE__ */ it(`Primitive.${t}`), r = s.forwardRef((e, r) => {
|
|
2212
2212
|
let { asChild: i, ...a } = e, o = i ? n : t;
|
|
2213
2213
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ h(o, {
|
|
2214
2214
|
...a,
|
|
@@ -2219,11 +2219,11 @@ var Gt = [
|
|
|
2219
2219
|
...e,
|
|
2220
2220
|
[t]: r
|
|
2221
2221
|
};
|
|
2222
|
-
}, {}),
|
|
2222
|
+
}, {}), qt = "focusScope.autoFocusOnMount", Jt = "focusScope.autoFocusOnUnmount", Yt = {
|
|
2223
2223
|
bubbles: !1,
|
|
2224
2224
|
cancelable: !0
|
|
2225
|
-
},
|
|
2226
|
-
let { loop: n = !1, trapped: r = !1, onMountAutoFocus: i, onUnmountAutoFocus: a, ...o } = e, [c, l] = s.useState(null), u =
|
|
2225
|
+
}, Xt = "FocusScope", Zt = s.forwardRef((e, t) => {
|
|
2226
|
+
let { loop: n = !1, trapped: r = !1, onMountAutoFocus: i, onUnmountAutoFocus: a, ...o } = e, [c, l] = s.useState(null), u = jt(i), d = jt(a), f = s.useRef(null), p = rt(t, (e) => l(e)), m = s.useRef({
|
|
2227
2227
|
paused: !1,
|
|
2228
2228
|
pause() {
|
|
2229
2229
|
this.paused = !0;
|
|
@@ -2237,13 +2237,13 @@ var Gt = [
|
|
|
2237
2237
|
let e = function(e) {
|
|
2238
2238
|
if (m.paused || !c) return;
|
|
2239
2239
|
let t = e.target;
|
|
2240
|
-
c.contains(t) ? f.current = t :
|
|
2240
|
+
c.contains(t) ? f.current = t : an(f.current, { select: !0 });
|
|
2241
2241
|
}, t = function(e) {
|
|
2242
2242
|
if (m.paused || !c) return;
|
|
2243
2243
|
let t = e.relatedTarget;
|
|
2244
|
-
t !== null && (c.contains(t) ||
|
|
2244
|
+
t !== null && (c.contains(t) || an(f.current, { select: !0 }));
|
|
2245
2245
|
}, n = function(e) {
|
|
2246
|
-
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 &&
|
|
2246
|
+
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 && an(c);
|
|
2247
2247
|
};
|
|
2248
2248
|
document.addEventListener("focusin", e), document.addEventListener("focusout", t);
|
|
2249
2249
|
let r = new MutationObserver(n);
|
|
@@ -2260,16 +2260,16 @@ var Gt = [
|
|
|
2260
2260
|
m.paused
|
|
2261
2261
|
]), s.useEffect(() => {
|
|
2262
2262
|
if (c) {
|
|
2263
|
-
|
|
2263
|
+
on.add(m);
|
|
2264
2264
|
let e = document.activeElement;
|
|
2265
2265
|
if (!c.contains(e)) {
|
|
2266
|
-
let t = new CustomEvent(
|
|
2267
|
-
c.addEventListener(
|
|
2266
|
+
let t = new CustomEvent(qt, Yt);
|
|
2267
|
+
c.addEventListener(qt, u), c.dispatchEvent(t), t.defaultPrevented || (Qt(ln(en(c)), { select: !0 }), document.activeElement === e && an(c));
|
|
2268
2268
|
}
|
|
2269
2269
|
return () => {
|
|
2270
|
-
c.removeEventListener(
|
|
2271
|
-
let t = new CustomEvent(
|
|
2272
|
-
c.addEventListener(
|
|
2270
|
+
c.removeEventListener(qt, u), setTimeout(() => {
|
|
2271
|
+
let t = new CustomEvent(Jt, Yt);
|
|
2272
|
+
c.addEventListener(Jt, d), c.dispatchEvent(t), t.defaultPrevented || an(e ?? document.body, { select: !0 }), c.removeEventListener(Jt, d), on.remove(m);
|
|
2273
2273
|
}, 0);
|
|
2274
2274
|
};
|
|
2275
2275
|
}
|
|
@@ -2283,31 +2283,31 @@ var Gt = [
|
|
|
2283
2283
|
if (!n && !r || m.paused) return;
|
|
2284
2284
|
let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, i = document.activeElement;
|
|
2285
2285
|
if (t && i) {
|
|
2286
|
-
let t = e.currentTarget, [r, a] =
|
|
2287
|
-
r && a ? !e.shiftKey && i === a ? (e.preventDefault(), n &&
|
|
2286
|
+
let t = e.currentTarget, [r, a] = $t(t);
|
|
2287
|
+
r && a ? !e.shiftKey && i === a ? (e.preventDefault(), n && an(r, { select: !0 })) : e.shiftKey && i === r && (e.preventDefault(), n && an(a, { select: !0 })) : i === t && e.preventDefault();
|
|
2288
2288
|
}
|
|
2289
2289
|
}, [
|
|
2290
2290
|
n,
|
|
2291
2291
|
r,
|
|
2292
2292
|
m.paused
|
|
2293
2293
|
]);
|
|
2294
|
-
return /* @__PURE__ */ h(
|
|
2294
|
+
return /* @__PURE__ */ h(Kt.div, {
|
|
2295
2295
|
tabIndex: -1,
|
|
2296
2296
|
...o,
|
|
2297
2297
|
ref: p,
|
|
2298
2298
|
onKeyDown: g
|
|
2299
2299
|
});
|
|
2300
2300
|
});
|
|
2301
|
-
|
|
2302
|
-
function
|
|
2301
|
+
Zt.displayName = Xt;
|
|
2302
|
+
function Qt(e, { select: t = !1 } = {}) {
|
|
2303
2303
|
let n = document.activeElement;
|
|
2304
|
-
for (let r of e) if (
|
|
2305
|
-
}
|
|
2306
|
-
function Qt(e) {
|
|
2307
|
-
let t = $t(e);
|
|
2308
|
-
return [en(t, e), en(t.reverse(), e)];
|
|
2304
|
+
for (let r of e) if (an(r, { select: t }), document.activeElement !== n) return;
|
|
2309
2305
|
}
|
|
2310
2306
|
function $t(e) {
|
|
2307
|
+
let t = en(e);
|
|
2308
|
+
return [tn(t, e), tn(t.reverse(), e)];
|
|
2309
|
+
}
|
|
2310
|
+
function en(e) {
|
|
2311
2311
|
let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (e) => {
|
|
2312
2312
|
let t = e.tagName === "INPUT" && e.type === "hidden";
|
|
2313
2313
|
return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
@@ -2315,10 +2315,10 @@ function $t(e) {
|
|
|
2315
2315
|
for (; n.nextNode();) t.push(n.currentNode);
|
|
2316
2316
|
return t;
|
|
2317
2317
|
}
|
|
2318
|
-
function
|
|
2319
|
-
for (let n of e) if (!
|
|
2318
|
+
function tn(e, t) {
|
|
2319
|
+
for (let n of e) if (!nn(n, { upTo: t })) return n;
|
|
2320
2320
|
}
|
|
2321
|
-
function
|
|
2321
|
+
function nn(e, { upTo: t }) {
|
|
2322
2322
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
2323
2323
|
for (; e;) {
|
|
2324
2324
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -2327,38 +2327,38 @@ function tn(e, { upTo: t }) {
|
|
|
2327
2327
|
}
|
|
2328
2328
|
return !1;
|
|
2329
2329
|
}
|
|
2330
|
-
function
|
|
2330
|
+
function rn(e) {
|
|
2331
2331
|
return e instanceof HTMLInputElement && "select" in e;
|
|
2332
2332
|
}
|
|
2333
|
-
function
|
|
2333
|
+
function an(e, { select: t = !1 } = {}) {
|
|
2334
2334
|
if (e && e.focus) {
|
|
2335
2335
|
let n = document.activeElement;
|
|
2336
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
2336
|
+
e.focus({ preventScroll: !0 }), e !== n && rn(e) && t && e.select();
|
|
2337
2337
|
}
|
|
2338
2338
|
}
|
|
2339
|
-
var
|
|
2340
|
-
function
|
|
2339
|
+
var on = sn();
|
|
2340
|
+
function sn() {
|
|
2341
2341
|
let e = [];
|
|
2342
2342
|
return {
|
|
2343
2343
|
add(t) {
|
|
2344
2344
|
let n = e[0];
|
|
2345
|
-
t !== n && n?.pause(), e =
|
|
2345
|
+
t !== n && n?.pause(), e = cn(e, t), e.unshift(t);
|
|
2346
2346
|
},
|
|
2347
2347
|
remove(t) {
|
|
2348
|
-
e =
|
|
2348
|
+
e = cn(e, t), e[0]?.resume();
|
|
2349
2349
|
}
|
|
2350
2350
|
};
|
|
2351
2351
|
}
|
|
2352
|
-
function
|
|
2352
|
+
function cn(e, t) {
|
|
2353
2353
|
let n = [...e], r = n.indexOf(t);
|
|
2354
2354
|
return r !== -1 && n.splice(r, 1), n;
|
|
2355
2355
|
}
|
|
2356
|
-
function
|
|
2356
|
+
function ln(e) {
|
|
2357
2357
|
return e.filter((e) => e.tagName !== "A");
|
|
2358
2358
|
}
|
|
2359
2359
|
//#endregion
|
|
2360
2360
|
//#region node_modules/@radix-ui/react-portal/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
2361
|
-
var
|
|
2361
|
+
var un = [
|
|
2362
2362
|
"a",
|
|
2363
2363
|
"button",
|
|
2364
2364
|
"div",
|
|
@@ -2377,7 +2377,7 @@ var ln = [
|
|
|
2377
2377
|
"svg",
|
|
2378
2378
|
"ul"
|
|
2379
2379
|
].reduce((e, t) => {
|
|
2380
|
-
let n = /* @__PURE__ */
|
|
2380
|
+
let n = /* @__PURE__ */ it(`Primitive.${t}`), r = s.forwardRef((e, r) => {
|
|
2381
2381
|
let { asChild: i, ...a } = e, o = i ? n : t;
|
|
2382
2382
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ h(o, {
|
|
2383
2383
|
...a,
|
|
@@ -2388,19 +2388,19 @@ var ln = [
|
|
|
2388
2388
|
...e,
|
|
2389
2389
|
[t]: r
|
|
2390
2390
|
};
|
|
2391
|
-
}, {}),
|
|
2391
|
+
}, {}), dn = "Portal", fn = s.forwardRef((e, t) => {
|
|
2392
2392
|
let { container: n, ...r } = e, [i, a] = s.useState(!1);
|
|
2393
|
-
|
|
2393
|
+
gt(() => a(!0), []);
|
|
2394
2394
|
let o = n || i && globalThis?.document?.body;
|
|
2395
|
-
return o ? p.createPortal(/* @__PURE__ */ h(
|
|
2395
|
+
return o ? p.createPortal(/* @__PURE__ */ h(un.div, {
|
|
2396
2396
|
...r,
|
|
2397
2397
|
ref: t
|
|
2398
2398
|
}), o) : null;
|
|
2399
2399
|
});
|
|
2400
|
-
|
|
2400
|
+
fn.displayName = dn;
|
|
2401
2401
|
//#endregion
|
|
2402
2402
|
//#region node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
2403
|
-
var
|
|
2403
|
+
var pn = [
|
|
2404
2404
|
"a",
|
|
2405
2405
|
"button",
|
|
2406
2406
|
"div",
|
|
@@ -2419,7 +2419,7 @@ var fn = [
|
|
|
2419
2419
|
"svg",
|
|
2420
2420
|
"ul"
|
|
2421
2421
|
].reduce((e, t) => {
|
|
2422
|
-
let n = /* @__PURE__ */
|
|
2422
|
+
let n = /* @__PURE__ */ it(`Primitive.${t}`), r = s.forwardRef((e, r) => {
|
|
2423
2423
|
let { asChild: i, ...a } = e, o = i ? n : t;
|
|
2424
2424
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ h(o, {
|
|
2425
2425
|
...a,
|
|
@@ -2430,48 +2430,48 @@ var fn = [
|
|
|
2430
2430
|
...e,
|
|
2431
2431
|
[t]: r
|
|
2432
2432
|
};
|
|
2433
|
-
}, {}),
|
|
2434
|
-
function
|
|
2433
|
+
}, {}), mn = 0;
|
|
2434
|
+
function hn() {
|
|
2435
2435
|
s.useEffect(() => {
|
|
2436
2436
|
let e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
2437
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ??
|
|
2438
|
-
|
|
2437
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? gn()), document.body.insertAdjacentElement("beforeend", e[1] ?? gn()), mn++, () => {
|
|
2438
|
+
mn === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((e) => e.remove()), mn--;
|
|
2439
2439
|
};
|
|
2440
2440
|
}, []);
|
|
2441
2441
|
}
|
|
2442
|
-
function
|
|
2442
|
+
function gn() {
|
|
2443
2443
|
let e = document.createElement("span");
|
|
2444
2444
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
2445
2445
|
}
|
|
2446
2446
|
//#endregion
|
|
2447
2447
|
//#region node_modules/tslib/tslib.es6.mjs
|
|
2448
|
-
var
|
|
2449
|
-
return
|
|
2448
|
+
var _n = function() {
|
|
2449
|
+
return _n = Object.assign || function(e) {
|
|
2450
2450
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
2451
2451
|
return e;
|
|
2452
|
-
},
|
|
2452
|
+
}, _n.apply(this, arguments);
|
|
2453
2453
|
};
|
|
2454
|
-
function
|
|
2454
|
+
function vn(e, t) {
|
|
2455
2455
|
var n = {};
|
|
2456
2456
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
2457
2457
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
2458
2458
|
return n;
|
|
2459
2459
|
}
|
|
2460
|
-
function
|
|
2460
|
+
function yn(e, t, n) {
|
|
2461
2461
|
if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
|
|
2462
2462
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
2463
2463
|
}
|
|
2464
2464
|
//#endregion
|
|
2465
2465
|
//#region node_modules/react-remove-scroll-bar/dist/es2015/constants.js
|
|
2466
|
-
var
|
|
2466
|
+
var bn = "right-scroll-bar-position", xn = "width-before-scroll-bar", Sn = "with-scroll-bars-hidden", Cn = "--removed-body-scroll-bar-size";
|
|
2467
2467
|
//#endregion
|
|
2468
2468
|
//#region node_modules/use-callback-ref/dist/es2015/assignRef.js
|
|
2469
|
-
function
|
|
2469
|
+
function wn(e, t) {
|
|
2470
2470
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
2471
2471
|
}
|
|
2472
2472
|
//#endregion
|
|
2473
2473
|
//#region node_modules/use-callback-ref/dist/es2015/useRef.js
|
|
2474
|
-
function
|
|
2474
|
+
function Tn(e, t) {
|
|
2475
2475
|
var n = d(function() {
|
|
2476
2476
|
return {
|
|
2477
2477
|
value: e,
|
|
@@ -2491,33 +2491,33 @@ function wn(e, t) {
|
|
|
2491
2491
|
}
|
|
2492
2492
|
//#endregion
|
|
2493
2493
|
//#region node_modules/use-callback-ref/dist/es2015/useMergeRef.js
|
|
2494
|
-
var
|
|
2495
|
-
function
|
|
2496
|
-
var n =
|
|
2494
|
+
var En = typeof window < "u" ? s.useLayoutEffect : s.useEffect, Dn = /* @__PURE__ */ new WeakMap();
|
|
2495
|
+
function On(e, t) {
|
|
2496
|
+
var n = Tn(t || null, function(t) {
|
|
2497
2497
|
return e.forEach(function(e) {
|
|
2498
|
-
return
|
|
2498
|
+
return wn(e, t);
|
|
2499
2499
|
});
|
|
2500
2500
|
});
|
|
2501
|
-
return
|
|
2502
|
-
var t =
|
|
2501
|
+
return En(function() {
|
|
2502
|
+
var t = Dn.get(n);
|
|
2503
2503
|
if (t) {
|
|
2504
2504
|
var r = new Set(t), i = new Set(e), a = n.current;
|
|
2505
2505
|
r.forEach(function(e) {
|
|
2506
|
-
i.has(e) ||
|
|
2506
|
+
i.has(e) || wn(e, null);
|
|
2507
2507
|
}), i.forEach(function(e) {
|
|
2508
|
-
r.has(e) ||
|
|
2508
|
+
r.has(e) || wn(e, a);
|
|
2509
2509
|
});
|
|
2510
2510
|
}
|
|
2511
|
-
|
|
2511
|
+
Dn.set(n, e);
|
|
2512
2512
|
}, [e]), n;
|
|
2513
2513
|
}
|
|
2514
2514
|
//#endregion
|
|
2515
2515
|
//#region node_modules/use-sidecar/dist/es2015/medium.js
|
|
2516
|
-
function
|
|
2516
|
+
function kn(e) {
|
|
2517
2517
|
return e;
|
|
2518
2518
|
}
|
|
2519
|
-
function
|
|
2520
|
-
t === void 0 && (t =
|
|
2519
|
+
function An(e, t) {
|
|
2520
|
+
t === void 0 && (t = kn);
|
|
2521
2521
|
var n = [], r = !1;
|
|
2522
2522
|
return {
|
|
2523
2523
|
read: function() {
|
|
@@ -2570,35 +2570,35 @@ function kn(e, t) {
|
|
|
2570
2570
|
}
|
|
2571
2571
|
};
|
|
2572
2572
|
}
|
|
2573
|
-
function
|
|
2573
|
+
function jn(e) {
|
|
2574
2574
|
e === void 0 && (e = {});
|
|
2575
|
-
var t =
|
|
2576
|
-
return t.options =
|
|
2575
|
+
var t = An(null);
|
|
2576
|
+
return t.options = _n({
|
|
2577
2577
|
async: !0,
|
|
2578
2578
|
ssr: !1
|
|
2579
2579
|
}, e), t;
|
|
2580
2580
|
}
|
|
2581
2581
|
//#endregion
|
|
2582
2582
|
//#region node_modules/use-sidecar/dist/es2015/exports.js
|
|
2583
|
-
var
|
|
2584
|
-
var t = e.sideCar, n =
|
|
2583
|
+
var Mn = function(e) {
|
|
2584
|
+
var t = e.sideCar, n = vn(e, ["sideCar"]);
|
|
2585
2585
|
if (!t) throw Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
2586
2586
|
var r = t.read();
|
|
2587
2587
|
if (!r) throw Error("Sidecar medium not found");
|
|
2588
|
-
return s.createElement(r,
|
|
2588
|
+
return s.createElement(r, _n({}, n));
|
|
2589
2589
|
};
|
|
2590
|
-
|
|
2591
|
-
function
|
|
2592
|
-
return e.useMedium(t),
|
|
2590
|
+
Mn.isSideCarExport = !0;
|
|
2591
|
+
function Nn(e, t) {
|
|
2592
|
+
return e.useMedium(t), Mn;
|
|
2593
2593
|
}
|
|
2594
2594
|
//#endregion
|
|
2595
2595
|
//#region node_modules/react-remove-scroll/dist/es2015/medium.js
|
|
2596
|
-
var
|
|
2596
|
+
var Pn = jn(), Fn = function() {}, In = s.forwardRef(function(e, t) {
|
|
2597
2597
|
var n = s.useRef(null), r = s.useState({
|
|
2598
|
-
onScrollCapture:
|
|
2599
|
-
onWheelCapture:
|
|
2600
|
-
onTouchMoveCapture:
|
|
2601
|
-
}), i = r[0], a = r[1], o = e.forwardProps, c = e.children, l = e.className, u = e.removeScrollBar, d = e.enabled, f = e.shards, p = e.sideCar, m = e.noRelative, h = e.noIsolation, g = e.inert, _ = e.allowPinchZoom, v = e.as, y = v === void 0 ? "div" : v, b = e.gapMode, x =
|
|
2598
|
+
onScrollCapture: Fn,
|
|
2599
|
+
onWheelCapture: Fn,
|
|
2600
|
+
onTouchMoveCapture: Fn
|
|
2601
|
+
}), i = r[0], a = r[1], o = e.forwardProps, c = e.children, l = e.className, u = e.removeScrollBar, d = e.enabled, f = e.shards, p = e.sideCar, m = e.noRelative, h = e.noIsolation, g = e.inert, _ = e.allowPinchZoom, v = e.as, y = v === void 0 ? "div" : v, b = e.gapMode, x = vn(e, [
|
|
2602
2602
|
"forwardProps",
|
|
2603
2603
|
"children",
|
|
2604
2604
|
"className",
|
|
@@ -2612,9 +2612,9 @@ var Nn = An(), Pn = function() {}, Fn = s.forwardRef(function(e, t) {
|
|
|
2612
2612
|
"allowPinchZoom",
|
|
2613
2613
|
"as",
|
|
2614
2614
|
"gapMode"
|
|
2615
|
-
]), S = p, C =
|
|
2615
|
+
]), S = p, C = On([n, t]), w = _n(_n({}, x), i);
|
|
2616
2616
|
return s.createElement(s.Fragment, null, d && s.createElement(S, {
|
|
2617
|
-
sideCar:
|
|
2617
|
+
sideCar: Pn,
|
|
2618
2618
|
removeScrollBar: u,
|
|
2619
2619
|
shards: f,
|
|
2620
2620
|
noRelative: m,
|
|
@@ -2624,52 +2624,52 @@ var Nn = An(), Pn = function() {}, Fn = s.forwardRef(function(e, t) {
|
|
|
2624
2624
|
allowPinchZoom: !!_,
|
|
2625
2625
|
lockRef: n,
|
|
2626
2626
|
gapMode: b
|
|
2627
|
-
}), o ? s.cloneElement(s.Children.only(c),
|
|
2627
|
+
}), o ? s.cloneElement(s.Children.only(c), _n(_n({}, w), { ref: C })) : s.createElement(y, _n({}, w, {
|
|
2628
2628
|
className: l,
|
|
2629
2629
|
ref: C
|
|
2630
2630
|
}), c));
|
|
2631
2631
|
});
|
|
2632
|
-
|
|
2632
|
+
In.defaultProps = {
|
|
2633
2633
|
enabled: !0,
|
|
2634
2634
|
removeScrollBar: !0,
|
|
2635
2635
|
inert: !1
|
|
2636
|
-
},
|
|
2637
|
-
fullWidth:
|
|
2638
|
-
zeroRight:
|
|
2636
|
+
}, In.classNames = {
|
|
2637
|
+
fullWidth: xn,
|
|
2638
|
+
zeroRight: bn
|
|
2639
2639
|
};
|
|
2640
2640
|
//#endregion
|
|
2641
2641
|
//#region node_modules/get-nonce/dist/es2015/index.js
|
|
2642
|
-
var
|
|
2643
|
-
if (
|
|
2642
|
+
var Ln, Rn = function() {
|
|
2643
|
+
if (Ln) return Ln;
|
|
2644
2644
|
if (typeof __webpack_nonce__ < "u") return __webpack_nonce__;
|
|
2645
2645
|
};
|
|
2646
2646
|
//#endregion
|
|
2647
2647
|
//#region node_modules/react-style-singleton/dist/es2015/singleton.js
|
|
2648
|
-
function
|
|
2648
|
+
function zn() {
|
|
2649
2649
|
if (!document) return null;
|
|
2650
2650
|
var e = document.createElement("style");
|
|
2651
2651
|
e.type = "text/css";
|
|
2652
|
-
var t =
|
|
2652
|
+
var t = Rn();
|
|
2653
2653
|
return t && e.setAttribute("nonce", t), e;
|
|
2654
2654
|
}
|
|
2655
|
-
function
|
|
2655
|
+
function Bn(e, t) {
|
|
2656
2656
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
2657
2657
|
}
|
|
2658
|
-
function
|
|
2658
|
+
function Vn(e) {
|
|
2659
2659
|
(document.head || document.getElementsByTagName("head")[0]).appendChild(e);
|
|
2660
2660
|
}
|
|
2661
|
-
var
|
|
2661
|
+
var Hn = function() {
|
|
2662
2662
|
var e = 0, t = null;
|
|
2663
2663
|
return {
|
|
2664
2664
|
add: function(n) {
|
|
2665
|
-
e == 0 && (t =
|
|
2665
|
+
e == 0 && (t = zn()) && (Bn(t, n), Vn(t)), e++;
|
|
2666
2666
|
},
|
|
2667
2667
|
remove: function() {
|
|
2668
2668
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
2669
2669
|
}
|
|
2670
2670
|
};
|
|
2671
|
-
},
|
|
2672
|
-
var e =
|
|
2671
|
+
}, Un = function() {
|
|
2672
|
+
var e = Hn();
|
|
2673
2673
|
return function(t, n) {
|
|
2674
2674
|
s.useEffect(function() {
|
|
2675
2675
|
return e.add(t), function() {
|
|
@@ -2677,43 +2677,43 @@ var Vn = function() {
|
|
|
2677
2677
|
};
|
|
2678
2678
|
}, [t && n]);
|
|
2679
2679
|
};
|
|
2680
|
-
},
|
|
2681
|
-
var e =
|
|
2680
|
+
}, Wn = function() {
|
|
2681
|
+
var e = Un();
|
|
2682
2682
|
return function(t) {
|
|
2683
2683
|
var n = t.styles, r = t.dynamic;
|
|
2684
2684
|
return e(n, r), null;
|
|
2685
2685
|
};
|
|
2686
|
-
},
|
|
2686
|
+
}, Gn = {
|
|
2687
2687
|
left: 0,
|
|
2688
2688
|
top: 0,
|
|
2689
2689
|
right: 0,
|
|
2690
2690
|
gap: 0
|
|
2691
|
-
}, Gn = function(e) {
|
|
2692
|
-
return parseInt(e || "", 10) || 0;
|
|
2693
2691
|
}, Kn = function(e) {
|
|
2692
|
+
return parseInt(e || "", 10) || 0;
|
|
2693
|
+
}, qn = function(e) {
|
|
2694
2694
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], i = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
2695
2695
|
return [
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2696
|
+
Kn(n),
|
|
2697
|
+
Kn(r),
|
|
2698
|
+
Kn(i)
|
|
2699
2699
|
];
|
|
2700
|
-
},
|
|
2701
|
-
if (e === void 0 && (e = "margin"), typeof window > "u") return
|
|
2702
|
-
var t =
|
|
2700
|
+
}, Jn = function(e) {
|
|
2701
|
+
if (e === void 0 && (e = "margin"), typeof window > "u") return Gn;
|
|
2702
|
+
var t = qn(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
2703
2703
|
return {
|
|
2704
2704
|
left: t[0],
|
|
2705
2705
|
top: t[1],
|
|
2706
2706
|
right: t[2],
|
|
2707
2707
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
2708
2708
|
};
|
|
2709
|
-
},
|
|
2709
|
+
}, Yn = Wn(), Xn = "data-scroll-locked", Zn = function(e, t, n, r) {
|
|
2710
2710
|
var i = e.left, a = e.top, o = e.right, s = e.gap;
|
|
2711
2711
|
return n === void 0 && (n = "margin"), `
|
|
2712
|
-
.${
|
|
2712
|
+
.${Sn} {
|
|
2713
2713
|
overflow: hidden ${r};
|
|
2714
2714
|
padding-right: ${s}px ${r};
|
|
2715
2715
|
}
|
|
2716
|
-
body[${
|
|
2716
|
+
body[${Xn}] {
|
|
2717
2717
|
overflow: hidden ${r};
|
|
2718
2718
|
overscroll-behavior: contain;
|
|
2719
2719
|
${[
|
|
@@ -2730,122 +2730,122 @@ var Vn = function() {
|
|
|
2730
2730
|
].filter(Boolean).join("")}
|
|
2731
2731
|
}
|
|
2732
2732
|
|
|
2733
|
-
.${
|
|
2733
|
+
.${bn} {
|
|
2734
2734
|
right: ${s}px ${r};
|
|
2735
2735
|
}
|
|
2736
2736
|
|
|
2737
|
-
.${
|
|
2737
|
+
.${xn} {
|
|
2738
2738
|
margin-right: ${s}px ${r};
|
|
2739
2739
|
}
|
|
2740
2740
|
|
|
2741
|
-
.${
|
|
2741
|
+
.${bn} .${bn} {
|
|
2742
2742
|
right: 0 ${r};
|
|
2743
2743
|
}
|
|
2744
2744
|
|
|
2745
|
-
.${
|
|
2745
|
+
.${xn} .${xn} {
|
|
2746
2746
|
margin-right: 0 ${r};
|
|
2747
2747
|
}
|
|
2748
2748
|
|
|
2749
|
-
body[${
|
|
2750
|
-
${
|
|
2749
|
+
body[${Xn}] {
|
|
2750
|
+
${Cn}: ${s}px;
|
|
2751
2751
|
}
|
|
2752
2752
|
`;
|
|
2753
|
-
},
|
|
2753
|
+
}, Qn = function() {
|
|
2754
2754
|
var e = parseInt(document.body.getAttribute("data-scroll-locked") || "0", 10);
|
|
2755
2755
|
return isFinite(e) ? e : 0;
|
|
2756
|
-
},
|
|
2756
|
+
}, $n = function() {
|
|
2757
2757
|
s.useEffect(function() {
|
|
2758
|
-
return document.body.setAttribute(
|
|
2759
|
-
var e =
|
|
2760
|
-
e <= 0 ? document.body.removeAttribute(
|
|
2758
|
+
return document.body.setAttribute(Xn, (Qn() + 1).toString()), function() {
|
|
2759
|
+
var e = Qn() - 1;
|
|
2760
|
+
e <= 0 ? document.body.removeAttribute(Xn) : document.body.setAttribute(Xn, e.toString());
|
|
2761
2761
|
};
|
|
2762
2762
|
}, []);
|
|
2763
|
-
},
|
|
2763
|
+
}, er = function(e) {
|
|
2764
2764
|
var t = e.noRelative, n = e.noImportant, r = e.gapMode, i = r === void 0 ? "margin" : r;
|
|
2765
|
-
|
|
2765
|
+
$n();
|
|
2766
2766
|
var a = s.useMemo(function() {
|
|
2767
|
-
return
|
|
2767
|
+
return Jn(i);
|
|
2768
2768
|
}, [i]);
|
|
2769
|
-
return s.createElement(
|
|
2770
|
-
},
|
|
2769
|
+
return s.createElement(Yn, { styles: Zn(a, !t, i, n ? "" : "!important") });
|
|
2770
|
+
}, tr = !1;
|
|
2771
2771
|
if (typeof window < "u") try {
|
|
2772
|
-
var
|
|
2773
|
-
return
|
|
2772
|
+
var nr = Object.defineProperty({}, "passive", { get: function() {
|
|
2773
|
+
return tr = !0, !0;
|
|
2774
2774
|
} });
|
|
2775
|
-
window.addEventListener("test",
|
|
2775
|
+
window.addEventListener("test", nr, nr), window.removeEventListener("test", nr, nr);
|
|
2776
2776
|
} catch {
|
|
2777
|
-
|
|
2777
|
+
tr = !1;
|
|
2778
2778
|
}
|
|
2779
|
-
var
|
|
2779
|
+
var rr = tr ? { passive: !1 } : !1, ir = function(e) {
|
|
2780
2780
|
return e.tagName === "TEXTAREA";
|
|
2781
|
-
},
|
|
2781
|
+
}, ar = function(e, t) {
|
|
2782
2782
|
if (!(e instanceof Element)) return !1;
|
|
2783
2783
|
var n = window.getComputedStyle(e);
|
|
2784
|
-
return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !
|
|
2785
|
-
}, ar = function(e) {
|
|
2786
|
-
return ir(e, "overflowY");
|
|
2784
|
+
return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !ir(e) && n[t] === "visible");
|
|
2787
2785
|
}, or = function(e) {
|
|
2788
|
-
return
|
|
2789
|
-
}, sr = function(e
|
|
2786
|
+
return ar(e, "overflowY");
|
|
2787
|
+
}, sr = function(e) {
|
|
2788
|
+
return ar(e, "overflowX");
|
|
2789
|
+
}, cr = function(e, t) {
|
|
2790
2790
|
var n = t.ownerDocument, r = t;
|
|
2791
2791
|
do {
|
|
2792
|
-
if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host),
|
|
2793
|
-
var i =
|
|
2792
|
+
if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host), dr(e, r)) {
|
|
2793
|
+
var i = fr(e, r);
|
|
2794
2794
|
if (i[1] > i[2]) return !0;
|
|
2795
2795
|
}
|
|
2796
2796
|
r = r.parentNode;
|
|
2797
2797
|
} while (r && r !== n.body);
|
|
2798
2798
|
return !1;
|
|
2799
|
-
},
|
|
2799
|
+
}, lr = function(e) {
|
|
2800
2800
|
return [
|
|
2801
2801
|
e.scrollTop,
|
|
2802
2802
|
e.scrollHeight,
|
|
2803
2803
|
e.clientHeight
|
|
2804
2804
|
];
|
|
2805
|
-
},
|
|
2805
|
+
}, ur = function(e) {
|
|
2806
2806
|
return [
|
|
2807
2807
|
e.scrollLeft,
|
|
2808
2808
|
e.scrollWidth,
|
|
2809
2809
|
e.clientWidth
|
|
2810
2810
|
];
|
|
2811
|
-
}, ur = function(e, t) {
|
|
2812
|
-
return e === "v" ? ar(t) : or(t);
|
|
2813
2811
|
}, dr = function(e, t) {
|
|
2814
|
-
return e === "v" ?
|
|
2812
|
+
return e === "v" ? or(t) : sr(t);
|
|
2815
2813
|
}, fr = function(e, t) {
|
|
2814
|
+
return e === "v" ? lr(t) : ur(t);
|
|
2815
|
+
}, pr = function(e, t) {
|
|
2816
2816
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
2817
|
-
},
|
|
2818
|
-
var a =
|
|
2817
|
+
}, mr = function(e, t, n, r, i) {
|
|
2818
|
+
var a = pr(e, window.getComputedStyle(t).direction), o = a * r, s = n.target, c = t.contains(s), l = !1, u = o > 0, d = 0, f = 0;
|
|
2819
2819
|
do {
|
|
2820
2820
|
if (!s) break;
|
|
2821
|
-
var p =
|
|
2822
|
-
(m || h) &&
|
|
2821
|
+
var p = fr(e, s), m = p[0], h = p[1] - p[2] - a * m;
|
|
2822
|
+
(m || h) && dr(e, s) && (d += h, f += m);
|
|
2823
2823
|
var g = s.parentNode;
|
|
2824
2824
|
s = g && g.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? g.host : g;
|
|
2825
2825
|
} while (!c && s !== document.body || c && (t.contains(s) || t === s));
|
|
2826
2826
|
return (u && (i && Math.abs(d) < 1 || !i && o > d) || !u && (i && Math.abs(f) < 1 || !i && -o > f)) && (l = !0), l;
|
|
2827
|
-
}, mr = function(e) {
|
|
2828
|
-
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
2829
2827
|
}, hr = function(e) {
|
|
2830
|
-
return [e.
|
|
2828
|
+
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
2831
2829
|
}, gr = function(e) {
|
|
2830
|
+
return [e.deltaX, e.deltaY];
|
|
2831
|
+
}, _r = function(e) {
|
|
2832
2832
|
return e && "current" in e ? e.current : e;
|
|
2833
|
-
},
|
|
2833
|
+
}, vr = function(e, t) {
|
|
2834
2834
|
return e[0] === t[0] && e[1] === t[1];
|
|
2835
|
-
},
|
|
2835
|
+
}, yr = function(e) {
|
|
2836
2836
|
return `
|
|
2837
2837
|
.block-interactivity-${e} {pointer-events: none;}
|
|
2838
2838
|
.allow-interactivity-${e} {pointer-events: all;}
|
|
2839
2839
|
`;
|
|
2840
|
-
},
|
|
2841
|
-
function
|
|
2842
|
-
var t = s.useRef([]), n = s.useRef([0, 0]), r = s.useRef(), i = s.useState(
|
|
2840
|
+
}, br = 0, xr = [];
|
|
2841
|
+
function Sr(e) {
|
|
2842
|
+
var t = s.useRef([]), n = s.useRef([0, 0]), r = s.useRef(), i = s.useState(br++)[0], a = s.useState(Wn)[0], o = s.useRef(e);
|
|
2843
2843
|
s.useEffect(function() {
|
|
2844
2844
|
o.current = e;
|
|
2845
2845
|
}, [e]), s.useEffect(function() {
|
|
2846
2846
|
if (e.inert) {
|
|
2847
2847
|
document.body.classList.add(`block-interactivity-${i}`);
|
|
2848
|
-
var t =
|
|
2848
|
+
var t = yn([e.lockRef.current], (e.shards || []).map(_r), !0).filter(Boolean);
|
|
2849
2849
|
return t.forEach(function(e) {
|
|
2850
2850
|
return e.classList.add(`allow-interactivity-${i}`);
|
|
2851
2851
|
}), function() {
|
|
@@ -2861,28 +2861,28 @@ function xr(e) {
|
|
|
2861
2861
|
]);
|
|
2862
2862
|
var c = s.useCallback(function(e, t) {
|
|
2863
2863
|
if ("touches" in e && e.touches.length === 2 || e.type === "wheel" && e.ctrlKey) return !o.current.allowPinchZoom;
|
|
2864
|
-
var i =
|
|
2864
|
+
var i = hr(e), a = n.current, s = "deltaX" in e ? e.deltaX : a[0] - i[0], c = "deltaY" in e ? e.deltaY : a[1] - i[1], l, u = e.target, d = Math.abs(s) > Math.abs(c) ? "h" : "v";
|
|
2865
2865
|
if ("touches" in e && d === "h" && u.type === "range") return !1;
|
|
2866
2866
|
var f = window.getSelection(), p = f && f.anchorNode;
|
|
2867
2867
|
if (p && (p === u || p.contains(u))) return !1;
|
|
2868
|
-
var m =
|
|
2868
|
+
var m = cr(d, u);
|
|
2869
2869
|
if (!m) return !0;
|
|
2870
|
-
if (m ? l = d : (l = d === "v" ? "h" : "v", m =
|
|
2870
|
+
if (m ? l = d : (l = d === "v" ? "h" : "v", m = cr(d, u)), !m) return !1;
|
|
2871
2871
|
if (!r.current && "changedTouches" in e && (s || c) && (r.current = l), !l) return !0;
|
|
2872
2872
|
var h = r.current || l;
|
|
2873
|
-
return
|
|
2873
|
+
return mr(h, t, e, h === "h" ? s : c, !0);
|
|
2874
2874
|
}, []), l = s.useCallback(function(e) {
|
|
2875
2875
|
var n = e;
|
|
2876
|
-
if (!(!
|
|
2877
|
-
var r = "deltaY" in n ?
|
|
2878
|
-
return e.name === n.type && (e.target === n.target || n.target === e.shadowParent) &&
|
|
2876
|
+
if (!(!xr.length || xr[xr.length - 1] !== a)) {
|
|
2877
|
+
var r = "deltaY" in n ? gr(n) : hr(n), i = t.current.filter(function(e) {
|
|
2878
|
+
return e.name === n.type && (e.target === n.target || n.target === e.shadowParent) && vr(e.delta, r);
|
|
2879
2879
|
})[0];
|
|
2880
2880
|
if (i && i.should) {
|
|
2881
2881
|
n.cancelable && n.preventDefault();
|
|
2882
2882
|
return;
|
|
2883
2883
|
}
|
|
2884
2884
|
if (!i) {
|
|
2885
|
-
var s = (o.current.shards || []).map(
|
|
2885
|
+
var s = (o.current.shards || []).map(_r).filter(Boolean).filter(function(e) {
|
|
2886
2886
|
return e.contains(n.target);
|
|
2887
2887
|
});
|
|
2888
2888
|
(s.length > 0 ? c(n, s[0]) : !o.current.noIsolation) && n.cancelable && n.preventDefault();
|
|
@@ -2894,7 +2894,7 @@ function xr(e) {
|
|
|
2894
2894
|
delta: n,
|
|
2895
2895
|
target: r,
|
|
2896
2896
|
should: i,
|
|
2897
|
-
shadowParent:
|
|
2897
|
+
shadowParent: Cr(r)
|
|
2898
2898
|
};
|
|
2899
2899
|
t.current.push(a), setTimeout(function() {
|
|
2900
2900
|
t.current = t.current.filter(function(e) {
|
|
@@ -2902,60 +2902,60 @@ function xr(e) {
|
|
|
2902
2902
|
});
|
|
2903
2903
|
}, 1);
|
|
2904
2904
|
}, []), d = s.useCallback(function(e) {
|
|
2905
|
-
n.current =
|
|
2905
|
+
n.current = hr(e), r.current = void 0;
|
|
2906
2906
|
}, []), f = s.useCallback(function(t) {
|
|
2907
|
-
u(t.type,
|
|
2907
|
+
u(t.type, gr(t), t.target, c(t, e.lockRef.current));
|
|
2908
2908
|
}, []), p = s.useCallback(function(t) {
|
|
2909
|
-
u(t.type,
|
|
2909
|
+
u(t.type, hr(t), t.target, c(t, e.lockRef.current));
|
|
2910
2910
|
}, []);
|
|
2911
2911
|
s.useEffect(function() {
|
|
2912
|
-
return
|
|
2912
|
+
return xr.push(a), e.setCallbacks({
|
|
2913
2913
|
onScrollCapture: f,
|
|
2914
2914
|
onWheelCapture: f,
|
|
2915
2915
|
onTouchMoveCapture: p
|
|
2916
|
-
}), document.addEventListener("wheel", l,
|
|
2917
|
-
|
|
2916
|
+
}), document.addEventListener("wheel", l, rr), document.addEventListener("touchmove", l, rr), document.addEventListener("touchstart", d, rr), function() {
|
|
2917
|
+
xr = xr.filter(function(e) {
|
|
2918
2918
|
return e !== a;
|
|
2919
|
-
}), document.removeEventListener("wheel", l,
|
|
2919
|
+
}), document.removeEventListener("wheel", l, rr), document.removeEventListener("touchmove", l, rr), document.removeEventListener("touchstart", d, rr);
|
|
2920
2920
|
};
|
|
2921
2921
|
}, []);
|
|
2922
2922
|
var m = e.removeScrollBar, h = e.inert;
|
|
2923
|
-
return s.createElement(s.Fragment, null, h ? s.createElement(a, { styles:
|
|
2923
|
+
return s.createElement(s.Fragment, null, h ? s.createElement(a, { styles: yr(i) }) : null, m ? s.createElement(er, {
|
|
2924
2924
|
noRelative: e.noRelative,
|
|
2925
2925
|
gapMode: e.gapMode
|
|
2926
2926
|
}) : null);
|
|
2927
2927
|
}
|
|
2928
|
-
function
|
|
2928
|
+
function Cr(e) {
|
|
2929
2929
|
for (var t = null; e !== null;) e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
2930
2930
|
return t;
|
|
2931
2931
|
}
|
|
2932
2932
|
//#endregion
|
|
2933
2933
|
//#region node_modules/react-remove-scroll/dist/es2015/sidecar.js
|
|
2934
|
-
var
|
|
2935
|
-
return s.createElement(
|
|
2934
|
+
var wr = Nn(Pn, Sr), Tr = s.forwardRef(function(e, t) {
|
|
2935
|
+
return s.createElement(In, _n({}, e, {
|
|
2936
2936
|
ref: t,
|
|
2937
|
-
sideCar:
|
|
2937
|
+
sideCar: wr
|
|
2938
2938
|
}));
|
|
2939
2939
|
});
|
|
2940
|
-
|
|
2940
|
+
Tr.classNames = In.classNames;
|
|
2941
2941
|
//#endregion
|
|
2942
2942
|
//#region node_modules/aria-hidden/dist/es2015/index.js
|
|
2943
|
-
var
|
|
2943
|
+
var Er = function(e) {
|
|
2944
2944
|
return typeof document > "u" ? null : (Array.isArray(e) ? e[0] : e).ownerDocument.body;
|
|
2945
|
-
},
|
|
2946
|
-
return e && (e.host ||
|
|
2947
|
-
},
|
|
2945
|
+
}, Dr = /* @__PURE__ */ new WeakMap(), Or = /* @__PURE__ */ new WeakMap(), kr = {}, Ar = 0, jr = function(e) {
|
|
2946
|
+
return e && (e.host || jr(e.parentNode));
|
|
2947
|
+
}, Mr = function(e, t) {
|
|
2948
2948
|
return t.map(function(t) {
|
|
2949
2949
|
if (e.contains(t)) return t;
|
|
2950
|
-
var n =
|
|
2950
|
+
var n = jr(t);
|
|
2951
2951
|
return n && e.contains(n) ? n : (console.error("aria-hidden", t, "in not contained inside", e, ". Doing nothing"), null);
|
|
2952
2952
|
}).filter(function(e) {
|
|
2953
2953
|
return !!e;
|
|
2954
2954
|
});
|
|
2955
|
-
},
|
|
2956
|
-
var i =
|
|
2957
|
-
|
|
2958
|
-
var a =
|
|
2955
|
+
}, Nr = function(e, t, n, r) {
|
|
2956
|
+
var i = Mr(t, Array.isArray(e) ? e : [e]);
|
|
2957
|
+
kr[n] || (kr[n] = /* @__PURE__ */ new WeakMap());
|
|
2958
|
+
var a = kr[n], o = [], s = /* @__PURE__ */ new Set(), c = new Set(i), l = function(e) {
|
|
2959
2959
|
!e || s.has(e) || (s.add(e), l(e.parentNode));
|
|
2960
2960
|
};
|
|
2961
2961
|
i.forEach(l);
|
|
@@ -2963,39 +2963,39 @@ var Tr = function(e) {
|
|
|
2963
2963
|
!e || c.has(e) || Array.prototype.forEach.call(e.children, function(e) {
|
|
2964
2964
|
if (s.has(e)) u(e);
|
|
2965
2965
|
else try {
|
|
2966
|
-
var t = e.getAttribute(r), i = t !== null && t !== "false", c = (
|
|
2967
|
-
|
|
2966
|
+
var t = e.getAttribute(r), i = t !== null && t !== "false", c = (Dr.get(e) || 0) + 1, l = (a.get(e) || 0) + 1;
|
|
2967
|
+
Dr.set(e, c), a.set(e, l), o.push(e), c === 1 && i && Or.set(e, !0), l === 1 && e.setAttribute(n, "true"), i || e.setAttribute(r, "true");
|
|
2968
2968
|
} catch (t) {
|
|
2969
2969
|
console.error("aria-hidden: cannot operate on ", e, t);
|
|
2970
2970
|
}
|
|
2971
2971
|
});
|
|
2972
2972
|
};
|
|
2973
|
-
return u(t), s.clear(),
|
|
2973
|
+
return u(t), s.clear(), Ar++, function() {
|
|
2974
2974
|
o.forEach(function(e) {
|
|
2975
|
-
var t =
|
|
2976
|
-
|
|
2977
|
-
}),
|
|
2975
|
+
var t = Dr.get(e) - 1, i = a.get(e) - 1;
|
|
2976
|
+
Dr.set(e, t), a.set(e, i), t || (Or.has(e) || e.removeAttribute(r), Or.delete(e)), i || e.removeAttribute(n);
|
|
2977
|
+
}), Ar--, Ar || (Dr = /* @__PURE__ */ new WeakMap(), Dr = /* @__PURE__ */ new WeakMap(), Or = /* @__PURE__ */ new WeakMap(), kr = {});
|
|
2978
2978
|
};
|
|
2979
|
-
},
|
|
2979
|
+
}, Pr = function(e, t, n) {
|
|
2980
2980
|
n === void 0 && (n = "data-aria-hidden");
|
|
2981
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), i = t ||
|
|
2982
|
-
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))),
|
|
2981
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), i = t || Er(e);
|
|
2982
|
+
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))), Nr(r, i, n, "aria-hidden")) : function() {
|
|
2983
2983
|
return null;
|
|
2984
2984
|
};
|
|
2985
|
-
},
|
|
2986
|
-
let { __scopeDialog: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: o = !0 } = e, c = s.useRef(null), l = s.useRef(null), [u, d] =
|
|
2985
|
+
}, Fr = "Dialog", [Ir, Lr] = pt(Fr), [Rr, J] = Ir(Fr), zr = (e) => {
|
|
2986
|
+
let { __scopeDialog: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: o = !0 } = e, c = s.useRef(null), l = s.useRef(null), [u, d] = vt({
|
|
2987
2987
|
prop: r,
|
|
2988
2988
|
defaultProp: i ?? !1,
|
|
2989
2989
|
onChange: a,
|
|
2990
|
-
caller:
|
|
2990
|
+
caller: Fr
|
|
2991
2991
|
});
|
|
2992
|
-
return /* @__PURE__ */ h(
|
|
2992
|
+
return /* @__PURE__ */ h(Rr, {
|
|
2993
2993
|
scope: t,
|
|
2994
2994
|
triggerRef: c,
|
|
2995
2995
|
contentRef: l,
|
|
2996
|
-
contentId:
|
|
2997
|
-
titleId:
|
|
2998
|
-
descriptionId:
|
|
2996
|
+
contentId: Ot(),
|
|
2997
|
+
titleId: Ot(),
|
|
2998
|
+
descriptionId: Ot(),
|
|
2999
2999
|
open: u,
|
|
3000
3000
|
onOpenChange: d,
|
|
3001
3001
|
onOpenToggle: s.useCallback(() => d((e) => !e), [d]),
|
|
@@ -3003,10 +3003,10 @@ var Tr = function(e) {
|
|
|
3003
3003
|
children: n
|
|
3004
3004
|
});
|
|
3005
3005
|
};
|
|
3006
|
-
zr.displayName =
|
|
3006
|
+
zr.displayName = Fr;
|
|
3007
3007
|
var Br = "DialogTrigger", Vr = s.forwardRef((e, t) => {
|
|
3008
|
-
let { __scopeDialog: n, ...r } = e, i =
|
|
3009
|
-
return /* @__PURE__ */ h(
|
|
3008
|
+
let { __scopeDialog: n, ...r } = e, i = J(Br, n), a = rt(t, i.triggerRef);
|
|
3009
|
+
return /* @__PURE__ */ h(pn.button, {
|
|
3010
3010
|
type: "button",
|
|
3011
3011
|
"aria-haspopup": "dialog",
|
|
3012
3012
|
"aria-expanded": i.open,
|
|
@@ -3014,18 +3014,18 @@ var Br = "DialogTrigger", Vr = s.forwardRef((e, t) => {
|
|
|
3014
3014
|
"data-state": si(i.open),
|
|
3015
3015
|
...r,
|
|
3016
3016
|
ref: a,
|
|
3017
|
-
onClick:
|
|
3017
|
+
onClick: ht(e.onClick, i.onOpenToggle)
|
|
3018
3018
|
});
|
|
3019
3019
|
});
|
|
3020
3020
|
Vr.displayName = Br;
|
|
3021
|
-
var Hr = "DialogPortal", [Ur, Wr] =
|
|
3022
|
-
let { __scopeDialog: t, forceMount: n, children: r, container: i } = e, a =
|
|
3021
|
+
var Hr = "DialogPortal", [Ur, Wr] = Ir(Hr, { forceMount: void 0 }), Gr = (e) => {
|
|
3022
|
+
let { __scopeDialog: t, forceMount: n, children: r, container: i } = e, a = J(Hr, t);
|
|
3023
3023
|
return /* @__PURE__ */ h(Ur, {
|
|
3024
3024
|
scope: t,
|
|
3025
3025
|
forceMount: n,
|
|
3026
|
-
children: s.Children.map(r, (e) => /* @__PURE__ */ h(
|
|
3026
|
+
children: s.Children.map(r, (e) => /* @__PURE__ */ h(St, {
|
|
3027
3027
|
present: n || a.open,
|
|
3028
|
-
children: /* @__PURE__ */ h(
|
|
3028
|
+
children: /* @__PURE__ */ h(fn, {
|
|
3029
3029
|
asChild: !0,
|
|
3030
3030
|
container: i,
|
|
3031
3031
|
children: e
|
|
@@ -3035,8 +3035,8 @@ var Hr = "DialogPortal", [Ur, Wr] = Fr(Hr, { forceMount: void 0 }), Gr = (e) =>
|
|
|
3035
3035
|
};
|
|
3036
3036
|
Gr.displayName = Hr;
|
|
3037
3037
|
var Kr = "DialogOverlay", qr = s.forwardRef((e, t) => {
|
|
3038
|
-
let n = Wr(Kr, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a =
|
|
3039
|
-
return a.modal ? /* @__PURE__ */ h(
|
|
3038
|
+
let n = Wr(Kr, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = J(Kr, e.__scopeDialog);
|
|
3039
|
+
return a.modal ? /* @__PURE__ */ h(St, {
|
|
3040
3040
|
present: r || a.open,
|
|
3041
3041
|
children: /* @__PURE__ */ h(Yr, {
|
|
3042
3042
|
...i,
|
|
@@ -3045,13 +3045,13 @@ var Kr = "DialogOverlay", qr = s.forwardRef((e, t) => {
|
|
|
3045
3045
|
}) : null;
|
|
3046
3046
|
});
|
|
3047
3047
|
qr.displayName = Kr;
|
|
3048
|
-
var Jr = /* @__PURE__ */
|
|
3049
|
-
let { __scopeDialog: n, ...r } = e, i =
|
|
3050
|
-
return /* @__PURE__ */ h(
|
|
3048
|
+
var Jr = /* @__PURE__ */ it("DialogOverlay.RemoveScroll"), Yr = s.forwardRef((e, t) => {
|
|
3049
|
+
let { __scopeDialog: n, ...r } = e, i = J(Kr, n);
|
|
3050
|
+
return /* @__PURE__ */ h(Tr, {
|
|
3051
3051
|
as: Jr,
|
|
3052
3052
|
allowPinchZoom: !0,
|
|
3053
3053
|
shards: [i.contentRef],
|
|
3054
|
-
children: /* @__PURE__ */ h(
|
|
3054
|
+
children: /* @__PURE__ */ h(pn.div, {
|
|
3055
3055
|
"data-state": si(i.open),
|
|
3056
3056
|
...r,
|
|
3057
3057
|
ref: t,
|
|
@@ -3062,8 +3062,8 @@ var Jr = /* @__PURE__ */ rt("DialogOverlay.RemoveScroll"), Yr = s.forwardRef((e,
|
|
|
3062
3062
|
})
|
|
3063
3063
|
});
|
|
3064
3064
|
}), Xr = "DialogContent", Zr = s.forwardRef((e, t) => {
|
|
3065
|
-
let n = Wr(Xr, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a =
|
|
3066
|
-
return /* @__PURE__ */ h(
|
|
3065
|
+
let n = Wr(Xr, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = J(Xr, e.__scopeDialog);
|
|
3066
|
+
return /* @__PURE__ */ h(St, {
|
|
3067
3067
|
present: r || a.open,
|
|
3068
3068
|
children: a.modal ? /* @__PURE__ */ h(Qr, {
|
|
3069
3069
|
...i,
|
|
@@ -3076,26 +3076,26 @@ var Jr = /* @__PURE__ */ rt("DialogOverlay.RemoveScroll"), Yr = s.forwardRef((e,
|
|
|
3076
3076
|
});
|
|
3077
3077
|
Zr.displayName = Xr;
|
|
3078
3078
|
var Qr = s.forwardRef((e, t) => {
|
|
3079
|
-
let n =
|
|
3079
|
+
let n = J(Xr, e.__scopeDialog), r = s.useRef(null), i = rt(t, n.contentRef, r);
|
|
3080
3080
|
return s.useEffect(() => {
|
|
3081
3081
|
let e = r.current;
|
|
3082
|
-
if (e) return
|
|
3082
|
+
if (e) return Pr(e);
|
|
3083
3083
|
}, []), /* @__PURE__ */ h(ei, {
|
|
3084
3084
|
...e,
|
|
3085
3085
|
ref: i,
|
|
3086
3086
|
trapFocus: n.open,
|
|
3087
3087
|
disableOutsidePointerEvents: !0,
|
|
3088
|
-
onCloseAutoFocus:
|
|
3088
|
+
onCloseAutoFocus: ht(e.onCloseAutoFocus, (e) => {
|
|
3089
3089
|
e.preventDefault(), n.triggerRef.current?.focus();
|
|
3090
3090
|
}),
|
|
3091
|
-
onPointerDownOutside:
|
|
3091
|
+
onPointerDownOutside: ht(e.onPointerDownOutside, (e) => {
|
|
3092
3092
|
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0;
|
|
3093
3093
|
(t.button === 2 || n) && e.preventDefault();
|
|
3094
3094
|
}),
|
|
3095
|
-
onFocusOutside:
|
|
3095
|
+
onFocusOutside: ht(e.onFocusOutside, (e) => e.preventDefault())
|
|
3096
3096
|
});
|
|
3097
3097
|
}), $r = s.forwardRef((e, t) => {
|
|
3098
|
-
let n =
|
|
3098
|
+
let n = J(Xr, e.__scopeDialog), r = s.useRef(!1), i = s.useRef(!1);
|
|
3099
3099
|
return /* @__PURE__ */ h(ei, {
|
|
3100
3100
|
...e,
|
|
3101
3101
|
ref: t,
|
|
@@ -3111,14 +3111,14 @@ var Qr = s.forwardRef((e, t) => {
|
|
|
3111
3111
|
}
|
|
3112
3112
|
});
|
|
3113
3113
|
}), ei = s.forwardRef((e, t) => {
|
|
3114
|
-
let { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, ...o } = e, c =
|
|
3115
|
-
return
|
|
3114
|
+
let { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, ...o } = e, c = J(Xr, n), l = s.useRef(null), u = rt(t, l);
|
|
3115
|
+
return hn(), /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(Zt, {
|
|
3116
3116
|
asChild: !0,
|
|
3117
3117
|
loop: !0,
|
|
3118
3118
|
trapped: r,
|
|
3119
3119
|
onMountAutoFocus: i,
|
|
3120
3120
|
onUnmountAutoFocus: a,
|
|
3121
|
-
children: /* @__PURE__ */ h(
|
|
3121
|
+
children: /* @__PURE__ */ h(zt, {
|
|
3122
3122
|
role: "dialog",
|
|
3123
3123
|
id: c.contentId,
|
|
3124
3124
|
"aria-describedby": c.descriptionId,
|
|
@@ -3133,8 +3133,8 @@ var Qr = s.forwardRef((e, t) => {
|
|
|
3133
3133
|
descriptionId: c.descriptionId
|
|
3134
3134
|
})] })] });
|
|
3135
3135
|
}), ti = "DialogTitle", ni = s.forwardRef((e, t) => {
|
|
3136
|
-
let { __scopeDialog: n, ...r } = e, i =
|
|
3137
|
-
return /* @__PURE__ */ h(
|
|
3136
|
+
let { __scopeDialog: n, ...r } = e, i = J(ti, n);
|
|
3137
|
+
return /* @__PURE__ */ h(pn.h2, {
|
|
3138
3138
|
id: i.titleId,
|
|
3139
3139
|
...r,
|
|
3140
3140
|
ref: t
|
|
@@ -3142,8 +3142,8 @@ var Qr = s.forwardRef((e, t) => {
|
|
|
3142
3142
|
});
|
|
3143
3143
|
ni.displayName = ti;
|
|
3144
3144
|
var ri = "DialogDescription", ii = s.forwardRef((e, t) => {
|
|
3145
|
-
let { __scopeDialog: n, ...r } = e, i =
|
|
3146
|
-
return /* @__PURE__ */ h(
|
|
3145
|
+
let { __scopeDialog: n, ...r } = e, i = J(ri, n);
|
|
3146
|
+
return /* @__PURE__ */ h(pn.p, {
|
|
3147
3147
|
id: i.descriptionId,
|
|
3148
3148
|
...r,
|
|
3149
3149
|
ref: t
|
|
@@ -3151,19 +3151,19 @@ var ri = "DialogDescription", ii = s.forwardRef((e, t) => {
|
|
|
3151
3151
|
});
|
|
3152
3152
|
ii.displayName = ri;
|
|
3153
3153
|
var ai = "DialogClose", oi = s.forwardRef((e, t) => {
|
|
3154
|
-
let { __scopeDialog: n, ...r } = e, i =
|
|
3155
|
-
return /* @__PURE__ */ h(
|
|
3154
|
+
let { __scopeDialog: n, ...r } = e, i = J(ai, n);
|
|
3155
|
+
return /* @__PURE__ */ h(pn.button, {
|
|
3156
3156
|
type: "button",
|
|
3157
3157
|
...r,
|
|
3158
3158
|
ref: t,
|
|
3159
|
-
onClick:
|
|
3159
|
+
onClick: ht(e.onClick, () => i.onOpenChange(!1))
|
|
3160
3160
|
});
|
|
3161
3161
|
});
|
|
3162
3162
|
oi.displayName = ai;
|
|
3163
3163
|
function si(e) {
|
|
3164
3164
|
return e ? "open" : "closed";
|
|
3165
3165
|
}
|
|
3166
|
-
var ci = "DialogTitleWarning", [li, ui] =
|
|
3166
|
+
var ci = "DialogTitleWarning", [li, ui] = ft(ci, {
|
|
3167
3167
|
contentName: Xr,
|
|
3168
3168
|
titleName: ti,
|
|
3169
3169
|
docsSlug: "dialog"
|
|
@@ -3414,15 +3414,15 @@ var Zi = 50, Qi = async (e, t, n) => {
|
|
|
3414
3414
|
y: r
|
|
3415
3415
|
}, p = Fi(i), m = Ni(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
|
|
3416
3416
|
(!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
|
|
3417
|
-
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1,
|
|
3417
|
+
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, ee = Ci(d[_], T), E = Ci(d[v], T), D = ee, te = C - h[m] - E, O = C / 2 - h[m] / 2 + w, k = Oi(D, O, te), A = !c.arrow && ji(i) != null && O !== k && a.reference[m] / 2 - (O < D ? ee : E) - h[m] / 2 < 0, j = A ? O < D ? O - D : O - te : 0;
|
|
3418
3418
|
return {
|
|
3419
|
-
[p]: f[p] +
|
|
3419
|
+
[p]: f[p] + j,
|
|
3420
3420
|
data: {
|
|
3421
|
-
[p]:
|
|
3422
|
-
centerOffset:
|
|
3423
|
-
...
|
|
3421
|
+
[p]: k,
|
|
3422
|
+
centerOffset: O - k - j,
|
|
3423
|
+
...A && { alignmentOffset: j }
|
|
3424
3424
|
},
|
|
3425
|
-
reset:
|
|
3425
|
+
reset: A
|
|
3426
3426
|
};
|
|
3427
3427
|
}
|
|
3428
3428
|
}), ea = function(e) {
|
|
@@ -4115,19 +4115,19 @@ function So(e) {
|
|
|
4115
4115
|
e !== w.current && (w.current = e, _(e));
|
|
4116
4116
|
}, []), x = s.useCallback((e) => {
|
|
4117
4117
|
e !== T.current && (T.current = e, y(e));
|
|
4118
|
-
}, []), S = a || g, C = o || v, w = s.useRef(null), T = s.useRef(null),
|
|
4118
|
+
}, []), S = a || g, C = o || v, w = s.useRef(null), T = s.useRef(null), ee = s.useRef(d), E = l != null, D = xo(l), te = xo(i), O = xo(u), k = s.useCallback(() => {
|
|
4119
4119
|
if (!w.current || !T.current) return;
|
|
4120
4120
|
let e = {
|
|
4121
4121
|
placement: t,
|
|
4122
4122
|
strategy: n,
|
|
4123
4123
|
middleware: m
|
|
4124
4124
|
};
|
|
4125
|
-
|
|
4125
|
+
te.current && (e.platform = te.current), go(w.current, T.current, e).then((e) => {
|
|
4126
4126
|
let t = {
|
|
4127
4127
|
...e,
|
|
4128
|
-
isPositioned:
|
|
4128
|
+
isPositioned: O.current !== !1
|
|
4129
4129
|
};
|
|
4130
|
-
|
|
4130
|
+
A.current && !vo(ee.current, t) && (ee.current = t, f.flushSync(() => {
|
|
4131
4131
|
p(t);
|
|
4132
4132
|
}));
|
|
4133
4133
|
});
|
|
@@ -4135,50 +4135,50 @@ function So(e) {
|
|
|
4135
4135
|
m,
|
|
4136
4136
|
t,
|
|
4137
4137
|
n,
|
|
4138
|
-
|
|
4139
|
-
|
|
4138
|
+
te,
|
|
4139
|
+
O
|
|
4140
4140
|
]);
|
|
4141
4141
|
_o(() => {
|
|
4142
|
-
u === !1 &&
|
|
4142
|
+
u === !1 && ee.current.isPositioned && (ee.current.isPositioned = !1, p((e) => ({
|
|
4143
4143
|
...e,
|
|
4144
4144
|
isPositioned: !1
|
|
4145
4145
|
})));
|
|
4146
4146
|
}, [u]);
|
|
4147
|
-
let
|
|
4148
|
-
_o(() => (
|
|
4149
|
-
|
|
4147
|
+
let A = s.useRef(!1);
|
|
4148
|
+
_o(() => (A.current = !0, () => {
|
|
4149
|
+
A.current = !1;
|
|
4150
4150
|
}), []), _o(() => {
|
|
4151
4151
|
if (S && (w.current = S), C && (T.current = C), S && C) {
|
|
4152
|
-
if (
|
|
4153
|
-
|
|
4152
|
+
if (D.current) return D.current(S, C, k);
|
|
4153
|
+
k();
|
|
4154
4154
|
}
|
|
4155
4155
|
}, [
|
|
4156
4156
|
S,
|
|
4157
4157
|
C,
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4158
|
+
k,
|
|
4159
|
+
D,
|
|
4160
|
+
E
|
|
4161
4161
|
]);
|
|
4162
|
-
let
|
|
4162
|
+
let j = s.useMemo(() => ({
|
|
4163
4163
|
reference: w,
|
|
4164
4164
|
floating: T,
|
|
4165
4165
|
setReference: b,
|
|
4166
4166
|
setFloating: x
|
|
4167
|
-
}), [b, x]),
|
|
4167
|
+
}), [b, x]), M = s.useMemo(() => ({
|
|
4168
4168
|
reference: S,
|
|
4169
4169
|
floating: C
|
|
4170
|
-
}), [S, C]),
|
|
4170
|
+
}), [S, C]), N = s.useMemo(() => {
|
|
4171
4171
|
let e = {
|
|
4172
4172
|
position: n,
|
|
4173
4173
|
left: 0,
|
|
4174
4174
|
top: 0
|
|
4175
4175
|
};
|
|
4176
|
-
if (!
|
|
4177
|
-
let t = bo(
|
|
4176
|
+
if (!M.floating) return e;
|
|
4177
|
+
let t = bo(M.floating, d.x), r = bo(M.floating, d.y);
|
|
4178
4178
|
return c ? {
|
|
4179
4179
|
...e,
|
|
4180
4180
|
transform: "translate(" + t + "px, " + r + "px)",
|
|
4181
|
-
...yo(
|
|
4181
|
+
...yo(M.floating) >= 1.5 && { willChange: "transform" }
|
|
4182
4182
|
} : {
|
|
4183
4183
|
position: n,
|
|
4184
4184
|
left: t,
|
|
@@ -4187,22 +4187,22 @@ function So(e) {
|
|
|
4187
4187
|
}, [
|
|
4188
4188
|
n,
|
|
4189
4189
|
c,
|
|
4190
|
-
|
|
4190
|
+
M.floating,
|
|
4191
4191
|
d.x,
|
|
4192
4192
|
d.y
|
|
4193
4193
|
]);
|
|
4194
4194
|
return s.useMemo(() => ({
|
|
4195
4195
|
...d,
|
|
4196
|
-
update:
|
|
4197
|
-
refs:
|
|
4198
|
-
elements:
|
|
4199
|
-
floatingStyles:
|
|
4196
|
+
update: k,
|
|
4197
|
+
refs: j,
|
|
4198
|
+
elements: M,
|
|
4199
|
+
floatingStyles: N
|
|
4200
4200
|
}), [
|
|
4201
4201
|
d,
|
|
4202
|
-
|
|
4202
|
+
k,
|
|
4203
|
+
j,
|
|
4203
4204
|
M,
|
|
4204
|
-
N
|
|
4205
|
-
P
|
|
4205
|
+
N
|
|
4206
4206
|
]);
|
|
4207
4207
|
}
|
|
4208
4208
|
var Co = (e) => {
|
|
@@ -4287,7 +4287,7 @@ var Co = (e) => {
|
|
|
4287
4287
|
"svg",
|
|
4288
4288
|
"ul"
|
|
4289
4289
|
].reduce((e, t) => {
|
|
4290
|
-
let n = /* @__PURE__ */
|
|
4290
|
+
let n = /* @__PURE__ */ it(`Primitive.${t}`), r = s.forwardRef((e, r) => {
|
|
4291
4291
|
let { asChild: i, ...a } = e, o = i ? n : t;
|
|
4292
4292
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ h(o, {
|
|
4293
4293
|
...a,
|
|
@@ -4313,13 +4313,13 @@ function Fo({ className: t, ...n }) {
|
|
|
4313
4313
|
return /* @__PURE__ */ h(e, {
|
|
4314
4314
|
role: "status",
|
|
4315
4315
|
"aria-label": "Loading",
|
|
4316
|
-
className:
|
|
4316
|
+
className: q("size-4 animate-spin", t),
|
|
4317
4317
|
...n
|
|
4318
4318
|
});
|
|
4319
4319
|
}
|
|
4320
4320
|
//#endregion
|
|
4321
4321
|
//#region src/components/ui/button.tsx
|
|
4322
|
-
var Io =
|
|
4322
|
+
var Io = et("cursor-pointer group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
|
|
4323
4323
|
variants: {
|
|
4324
4324
|
motion: {
|
|
4325
4325
|
default: "transition-all",
|
|
@@ -4353,12 +4353,12 @@ var Io = $e("cursor-pointer group/button inline-flex shrink-0 items-center justi
|
|
|
4353
4353
|
}
|
|
4354
4354
|
});
|
|
4355
4355
|
function Lo({ className: e, variant: t = "default", size: n = "default", motion: r = "default", asChild: i = !1, loading: a = !1, loadingText: o = "Loading...", ...s }) {
|
|
4356
|
-
return /* @__PURE__ */ h(i ?
|
|
4356
|
+
return /* @__PURE__ */ h(i ? at : "button", {
|
|
4357
4357
|
"data-slot": "button",
|
|
4358
4358
|
"data-variant": t,
|
|
4359
4359
|
"data-size": n,
|
|
4360
4360
|
"data-motion": r,
|
|
4361
|
-
className:
|
|
4361
|
+
className: q(Io({
|
|
4362
4362
|
variant: t,
|
|
4363
4363
|
size: n,
|
|
4364
4364
|
motion: r
|
|
@@ -4499,7 +4499,7 @@ function qo(e) {
|
|
|
4499
4499
|
}
|
|
4500
4500
|
function Jo(e, t, n, r) {
|
|
4501
4501
|
return {
|
|
4502
|
-
className:
|
|
4502
|
+
className: q(Ho, qo(e), t && "dark", n),
|
|
4503
4503
|
style: {
|
|
4504
4504
|
...Uo,
|
|
4505
4505
|
...r
|
|
@@ -4510,48 +4510,79 @@ function Yo(e, t) {
|
|
|
4510
4510
|
return Jo(Ko(), Vo(), e, t);
|
|
4511
4511
|
}
|
|
4512
4512
|
//#endregion
|
|
4513
|
+
//#region src/lib/portaled-layer.ts
|
|
4514
|
+
var Xo = { zIndex: "var(--z-popover)" }, Zo = ["[data-slot=\"combobox-content\"]", "[data-slot=\"combobox-positioner\"]"].join(", ");
|
|
4515
|
+
function Qo(e) {
|
|
4516
|
+
return e instanceof Element && !!e.closest(Zo);
|
|
4517
|
+
}
|
|
4518
|
+
function $o(e) {
|
|
4519
|
+
return Qo(e.detail.originalEvent.target);
|
|
4520
|
+
}
|
|
4521
|
+
function es() {
|
|
4522
|
+
for (let e of document.querySelectorAll(Zo)) for (let t = e; t && t !== document.body; t = t.parentElement) t.getAttribute("aria-hidden") === "true" && t.removeAttribute("aria-hidden");
|
|
4523
|
+
}
|
|
4524
|
+
//#endregion
|
|
4513
4525
|
//#region src/components/ui/dialog.tsx
|
|
4514
|
-
function
|
|
4526
|
+
function ts({ ...e }) {
|
|
4515
4527
|
return /* @__PURE__ */ h(mi, {
|
|
4516
4528
|
"data-slot": "dialog",
|
|
4517
4529
|
...e
|
|
4518
4530
|
});
|
|
4519
4531
|
}
|
|
4520
|
-
function
|
|
4532
|
+
function ns({ ...e }) {
|
|
4521
4533
|
return /* @__PURE__ */ h(hi, {
|
|
4522
4534
|
"data-slot": "dialog-trigger",
|
|
4523
4535
|
...e
|
|
4524
4536
|
});
|
|
4525
4537
|
}
|
|
4526
|
-
function
|
|
4538
|
+
function rs({ ...e }) {
|
|
4527
4539
|
return /* @__PURE__ */ h(gi, {
|
|
4528
4540
|
"data-slot": "dialog-portal",
|
|
4529
4541
|
...e
|
|
4530
4542
|
});
|
|
4531
4543
|
}
|
|
4532
|
-
function
|
|
4544
|
+
function is({ ...e }) {
|
|
4533
4545
|
return /* @__PURE__ */ h(xi, {
|
|
4534
4546
|
"data-slot": "dialog-close",
|
|
4535
4547
|
...e
|
|
4536
4548
|
});
|
|
4537
4549
|
}
|
|
4538
|
-
function
|
|
4550
|
+
function as({ className: e, ...t }) {
|
|
4539
4551
|
return /* @__PURE__ */ h(_i, {
|
|
4540
4552
|
"data-slot": "dialog-overlay",
|
|
4541
|
-
className:
|
|
4553
|
+
className: q("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0", e),
|
|
4542
4554
|
...t
|
|
4543
4555
|
});
|
|
4544
4556
|
}
|
|
4545
|
-
function
|
|
4546
|
-
let
|
|
4547
|
-
|
|
4557
|
+
function os({ className: e, children: t, showCloseButton: n = !0, style: i, onPointerDownOutside: a, onFocusOutside: o, onInteractOutside: c, ...l }) {
|
|
4558
|
+
let u = Yo(), d = s.useCallback((e, t) => {
|
|
4559
|
+
if ($o(e)) {
|
|
4560
|
+
e.preventDefault();
|
|
4561
|
+
return;
|
|
4562
|
+
}
|
|
4563
|
+
t?.(e);
|
|
4564
|
+
}, []);
|
|
4565
|
+
return s.useLayoutEffect(() => {
|
|
4566
|
+
es();
|
|
4567
|
+
let e = new MutationObserver(() => {
|
|
4568
|
+
es();
|
|
4569
|
+
});
|
|
4570
|
+
return e.observe(document.body, {
|
|
4571
|
+
subtree: !0,
|
|
4572
|
+
attributes: !0,
|
|
4573
|
+
attributeFilter: ["aria-hidden"]
|
|
4574
|
+
}), () => e.disconnect();
|
|
4575
|
+
}, []), /* @__PURE__ */ g(rs, { children: [/* @__PURE__ */ h(as, {}), /* @__PURE__ */ g(vi, {
|
|
4548
4576
|
"data-slot": "dialog-content",
|
|
4549
4577
|
style: {
|
|
4550
|
-
...
|
|
4578
|
+
...u.style,
|
|
4551
4579
|
...i
|
|
4552
4580
|
},
|
|
4553
|
-
className:
|
|
4554
|
-
|
|
4581
|
+
className: q(u.className, "fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-6 rounded-xl bg-popover p-6 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-md data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", e),
|
|
4582
|
+
onPointerDownOutside: (e) => d(e, a),
|
|
4583
|
+
onFocusOutside: (e) => d(e, o),
|
|
4584
|
+
onInteractOutside: (e) => d(e, c),
|
|
4585
|
+
...l,
|
|
4555
4586
|
children: [t, n && /* @__PURE__ */ h(xi, {
|
|
4556
4587
|
"data-slot": "dialog-close",
|
|
4557
4588
|
asChild: !0,
|
|
@@ -4567,17 +4598,17 @@ function ts({ className: e, children: t, showCloseButton: n = !0, style: i, ...a
|
|
|
4567
4598
|
})]
|
|
4568
4599
|
})] });
|
|
4569
4600
|
}
|
|
4570
|
-
function
|
|
4601
|
+
function ss({ className: e, ...t }) {
|
|
4571
4602
|
return /* @__PURE__ */ h("div", {
|
|
4572
4603
|
"data-slot": "dialog-header",
|
|
4573
|
-
className:
|
|
4604
|
+
className: q("flex flex-col gap-2", e),
|
|
4574
4605
|
...t
|
|
4575
4606
|
});
|
|
4576
4607
|
}
|
|
4577
|
-
function
|
|
4608
|
+
function cs({ className: e, showCloseButton: t = !1, children: n, ...r }) {
|
|
4578
4609
|
return /* @__PURE__ */ g("div", {
|
|
4579
4610
|
"data-slot": "dialog-footer",
|
|
4580
|
-
className:
|
|
4611
|
+
className: q("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", e),
|
|
4581
4612
|
...r,
|
|
4582
4613
|
children: [n, t && /* @__PURE__ */ h(xi, {
|
|
4583
4614
|
asChild: !0,
|
|
@@ -4588,38 +4619,38 @@ function rs({ className: e, showCloseButton: t = !1, children: n, ...r }) {
|
|
|
4588
4619
|
})]
|
|
4589
4620
|
});
|
|
4590
4621
|
}
|
|
4591
|
-
function
|
|
4622
|
+
function ls({ className: e, ...t }) {
|
|
4592
4623
|
return /* @__PURE__ */ h(yi, {
|
|
4593
4624
|
"data-slot": "dialog-title",
|
|
4594
|
-
className:
|
|
4625
|
+
className: q("font-heading text-base leading-none font-semibold", e),
|
|
4595
4626
|
...t
|
|
4596
4627
|
});
|
|
4597
4628
|
}
|
|
4598
|
-
function
|
|
4629
|
+
function us({ className: e, ...t }) {
|
|
4599
4630
|
return /* @__PURE__ */ h(bi, {
|
|
4600
4631
|
"data-slot": "dialog-description",
|
|
4601
|
-
className:
|
|
4632
|
+
className: q("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", e),
|
|
4602
4633
|
...t
|
|
4603
4634
|
});
|
|
4604
4635
|
}
|
|
4605
|
-
var
|
|
4606
|
-
function
|
|
4607
|
-
|
|
4636
|
+
var ds = null;
|
|
4637
|
+
function fs(e) {
|
|
4638
|
+
ds?.(e);
|
|
4608
4639
|
}
|
|
4609
|
-
function
|
|
4640
|
+
function ps({ children: e }) {
|
|
4610
4641
|
let [t, n] = s.useState(null);
|
|
4611
|
-
s.useLayoutEffect(() => (
|
|
4612
|
-
|
|
4642
|
+
s.useLayoutEffect(() => (ds = (e) => n(e), () => {
|
|
4643
|
+
ds = null;
|
|
4613
4644
|
}), []);
|
|
4614
4645
|
let r = s.useCallback((e) => {
|
|
4615
4646
|
e || n((e) => (e && e.onClose?.(), null));
|
|
4616
4647
|
}, []);
|
|
4617
|
-
return /* @__PURE__ */ g(m, { children: [e, t ? /* @__PURE__ */ h(
|
|
4648
|
+
return /* @__PURE__ */ g(m, { children: [e, t ? /* @__PURE__ */ h(ts, {
|
|
4618
4649
|
open: !0,
|
|
4619
4650
|
onOpenChange: r,
|
|
4620
|
-
children: /* @__PURE__ */ g(
|
|
4651
|
+
children: /* @__PURE__ */ g(os, {
|
|
4621
4652
|
showCloseButton: t.showCloseButton ?? !0,
|
|
4622
|
-
children: [/* @__PURE__ */ g(
|
|
4653
|
+
children: [/* @__PURE__ */ g(ss, { children: [/* @__PURE__ */ h(ls, { children: t.title }), /* @__PURE__ */ h(us, {
|
|
4623
4654
|
className: t.description ? void 0 : "sr-only",
|
|
4624
4655
|
children: t.description ?? t.title
|
|
4625
4656
|
})] }), t.children]
|
|
@@ -4628,26 +4659,26 @@ function cs({ children: e }) {
|
|
|
4628
4659
|
}
|
|
4629
4660
|
//#endregion
|
|
4630
4661
|
//#region node_modules/sonner/dist/index.mjs
|
|
4631
|
-
function
|
|
4662
|
+
function ms(e) {
|
|
4632
4663
|
if (!e || typeof document > "u") return;
|
|
4633
4664
|
let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
|
|
4634
4665
|
n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
|
|
4635
4666
|
}
|
|
4636
|
-
var
|
|
4667
|
+
var hs = (e) => {
|
|
4637
4668
|
switch (e) {
|
|
4638
|
-
case "success": return
|
|
4639
|
-
case "info": return
|
|
4640
|
-
case "warning": return
|
|
4641
|
-
case "error": return
|
|
4669
|
+
case "success": return vs;
|
|
4670
|
+
case "info": return bs;
|
|
4671
|
+
case "warning": return ys;
|
|
4672
|
+
case "error": return xs;
|
|
4642
4673
|
default: return null;
|
|
4643
4674
|
}
|
|
4644
|
-
},
|
|
4675
|
+
}, gs = Array(12).fill(0), _s = ({ visible: e, className: t }) => /*#__PURE__*/ c.createElement("div", {
|
|
4645
4676
|
className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),
|
|
4646
4677
|
"data-visible": e
|
|
4647
|
-
}, /*#__PURE__*/ c.createElement("div", { className: "sonner-spinner" },
|
|
4678
|
+
}, /*#__PURE__*/ c.createElement("div", { className: "sonner-spinner" }, gs.map((e, t) => /*#__PURE__*/ c.createElement("div", {
|
|
4648
4679
|
className: "sonner-loading-bar",
|
|
4649
4680
|
key: `spinner-bar-${t}`
|
|
4650
|
-
})))),
|
|
4681
|
+
})))), vs = /*#__PURE__*/ c.createElement("svg", {
|
|
4651
4682
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4652
4683
|
viewBox: "0 0 20 20",
|
|
4653
4684
|
fill: "currentColor",
|
|
@@ -4657,7 +4688,7 @@ var us = (e) => {
|
|
|
4657
4688
|
fillRule: "evenodd",
|
|
4658
4689
|
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",
|
|
4659
4690
|
clipRule: "evenodd"
|
|
4660
|
-
})),
|
|
4691
|
+
})), ys = /*#__PURE__*/ c.createElement("svg", {
|
|
4661
4692
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4662
4693
|
viewBox: "0 0 24 24",
|
|
4663
4694
|
fill: "currentColor",
|
|
@@ -4667,7 +4698,7 @@ var us = (e) => {
|
|
|
4667
4698
|
fillRule: "evenodd",
|
|
4668
4699
|
d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
|
|
4669
4700
|
clipRule: "evenodd"
|
|
4670
|
-
})),
|
|
4701
|
+
})), bs = /*#__PURE__*/ c.createElement("svg", {
|
|
4671
4702
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4672
4703
|
viewBox: "0 0 20 20",
|
|
4673
4704
|
fill: "currentColor",
|
|
@@ -4677,7 +4708,7 @@ var us = (e) => {
|
|
|
4677
4708
|
fillRule: "evenodd",
|
|
4678
4709
|
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",
|
|
4679
4710
|
clipRule: "evenodd"
|
|
4680
|
-
})),
|
|
4711
|
+
})), xs = /*#__PURE__*/ c.createElement("svg", {
|
|
4681
4712
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4682
4713
|
viewBox: "0 0 20 20",
|
|
4683
4714
|
fill: "currentColor",
|
|
@@ -4687,7 +4718,7 @@ var us = (e) => {
|
|
|
4687
4718
|
fillRule: "evenodd",
|
|
4688
4719
|
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",
|
|
4689
4720
|
clipRule: "evenodd"
|
|
4690
|
-
})),
|
|
4721
|
+
})), Ss = /*#__PURE__*/ c.createElement("svg", {
|
|
4691
4722
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4692
4723
|
width: "12",
|
|
4693
4724
|
height: "12",
|
|
@@ -4707,7 +4738,7 @@ var us = (e) => {
|
|
|
4707
4738
|
y1: "6",
|
|
4708
4739
|
x2: "18",
|
|
4709
4740
|
y2: "18"
|
|
4710
|
-
})),
|
|
4741
|
+
})), Cs = () => {
|
|
4711
4742
|
let [e, t] = c.useState(document.hidden);
|
|
4712
4743
|
return c.useEffect(() => {
|
|
4713
4744
|
let e = () => {
|
|
@@ -4715,7 +4746,7 @@ var us = (e) => {
|
|
|
4715
4746
|
};
|
|
4716
4747
|
return document.addEventListener("visibilitychange", e), () => window.removeEventListener("visibilitychange", e);
|
|
4717
4748
|
}, []), e;
|
|
4718
|
-
},
|
|
4749
|
+
}, ws = 1, $ = new class {
|
|
4719
4750
|
constructor() {
|
|
4720
4751
|
this.subscribe = (e) => (this.subscribers.push(e), () => {
|
|
4721
4752
|
let t = this.subscribers.indexOf(e);
|
|
@@ -4725,7 +4756,7 @@ var us = (e) => {
|
|
|
4725
4756
|
}, this.addToast = (e) => {
|
|
4726
4757
|
this.publish(e), this.toasts = [...this.toasts, e];
|
|
4727
4758
|
}, this.create = (e) => {
|
|
4728
|
-
let { message: t, ...n } = e, r = typeof e?.id == "number" || e.id?.length > 0 ? e.id :
|
|
4759
|
+
let { message: t, ...n } = e, r = typeof e?.id == "number" || e.id?.length > 0 ? e.id : ws++, i = this.toasts.find((e) => e.id === r), a = e.dismissible === void 0 ? !0 : e.dismissible;
|
|
4729
4760
|
return this.dismissedToasts.has(r) && this.dismissedToasts.delete(r), i ? this.toasts = this.toasts.map((n) => n.id === r ? (this.publish({
|
|
4730
4761
|
...n,
|
|
4731
4762
|
...e,
|
|
@@ -4790,7 +4821,7 @@ var us = (e) => {
|
|
|
4790
4821
|
type: "default",
|
|
4791
4822
|
message: e
|
|
4792
4823
|
});
|
|
4793
|
-
else if (
|
|
4824
|
+
else if (Es(e) && !e.ok) {
|
|
4794
4825
|
i = !1;
|
|
4795
4826
|
let r = typeof t.error == "function" ? await t.error(`HTTP error! status: ${e.status}`) : t.error, a = typeof t.description == "function" ? await t.description(`HTTP error! status: ${e.status}`) : t.description, o = typeof r == "object" && !c.isValidElement(r) ? r : { message: r };
|
|
4796
4827
|
this.create({
|
|
@@ -4834,7 +4865,7 @@ var us = (e) => {
|
|
|
4834
4865
|
}), s = () => new Promise((e, t) => o.then(() => a[0] === "reject" ? t(a[1]) : e(a[1])).catch(t));
|
|
4835
4866
|
return typeof n != "string" && typeof n != "number" ? { unwrap: s } : Object.assign(n, { unwrap: s });
|
|
4836
4867
|
}, this.custom = (e, t) => {
|
|
4837
|
-
let n = t?.id ||
|
|
4868
|
+
let n = t?.id || ws++;
|
|
4838
4869
|
return this.create({
|
|
4839
4870
|
jsx: e(n),
|
|
4840
4871
|
id: n,
|
|
@@ -4842,14 +4873,14 @@ var us = (e) => {
|
|
|
4842
4873
|
}), n;
|
|
4843
4874
|
}, this.getActiveToasts = () => this.toasts.filter((e) => !this.dismissedToasts.has(e.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set();
|
|
4844
4875
|
}
|
|
4845
|
-
}(),
|
|
4846
|
-
let n = t?.id ||
|
|
4876
|
+
}(), Ts = (e, t) => {
|
|
4877
|
+
let n = t?.id || ws++;
|
|
4847
4878
|
return $.addToast({
|
|
4848
4879
|
title: e,
|
|
4849
4880
|
...t,
|
|
4850
4881
|
id: n
|
|
4851
4882
|
}), n;
|
|
4852
|
-
},
|
|
4883
|
+
}, Es = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", Ds = Object.assign(Ts, {
|
|
4853
4884
|
success: $.success,
|
|
4854
4885
|
info: $.info,
|
|
4855
4886
|
warning: $.warning,
|
|
@@ -4863,40 +4894,40 @@ var us = (e) => {
|
|
|
4863
4894
|
getHistory: () => $.toasts,
|
|
4864
4895
|
getToasts: () => $.getActiveToasts()
|
|
4865
4896
|
});
|
|
4866
|
-
ls("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
|
|
4867
|
-
function
|
|
4897
|
+
ms("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
|
|
4898
|
+
function Os(e) {
|
|
4868
4899
|
return e.label !== void 0;
|
|
4869
4900
|
}
|
|
4870
|
-
var
|
|
4871
|
-
function
|
|
4901
|
+
var ks = 3, As = "24px", js = "16px", Ms = 4e3, Ns = 356, Ps = 14, Fs = 45, Is = 200;
|
|
4902
|
+
function Ls(...e) {
|
|
4872
4903
|
return e.filter(Boolean).join(" ");
|
|
4873
4904
|
}
|
|
4874
|
-
function
|
|
4905
|
+
function Rs(e) {
|
|
4875
4906
|
let [t, n] = e.split("-"), r = [];
|
|
4876
4907
|
return t && r.push(t), n && r.push(n), r;
|
|
4877
4908
|
}
|
|
4878
|
-
var
|
|
4879
|
-
let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: l, toasts: u, expanded: d, removeToast: f, defaultRichColors: p, closeButton: m, style: h, cancelButtonStyle: g, actionButtonStyle: _, className: v = "", descriptionClassName: y = "", duration: b, position: x, gap: S, expandByDefault: C, classNames: w, icons: T, closeButtonAriaLabel:
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
}, [
|
|
4883
|
-
|
|
4909
|
+
var zs = (e) => {
|
|
4910
|
+
let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: l, toasts: u, expanded: d, removeToast: f, defaultRichColors: p, closeButton: m, style: h, cancelButtonStyle: g, actionButtonStyle: _, className: v = "", descriptionClassName: y = "", duration: b, position: x, gap: S, expandByDefault: C, classNames: w, icons: T, closeButtonAriaLabel: ee = "Close toast" } = e, [E, D] = c.useState(null), [te, O] = c.useState(null), [k, A] = c.useState(!1), [j, M] = c.useState(!1), [N, P] = c.useState(!1), [F, ne] = c.useState(!1), [re, ie] = c.useState(!1), [I, L] = c.useState(0), [ae, oe] = c.useState(0), R = c.useRef(n.duration || b || Ms), se = c.useRef(null), z = c.useRef(null), ce = l === 0, le = l + 1 <= o, B = n.type, V = n.dismissible !== !1, ue = n.className || "", de = n.descriptionClassName || "", fe = c.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), pe = c.useMemo(() => n.closeButton ?? m, [n.closeButton, m]), me = c.useMemo(() => n.duration || b || Ms, [n.duration, b]), he = c.useRef(0), ge = c.useRef(0), _e = c.useRef(0), H = c.useRef(null), [U, ve] = x.split("-"), W = c.useMemo(() => s.reduce((e, t, n) => n >= fe ? e : e + t.height, 0), [s, fe]), ye = Cs(), be = n.invert || t, xe = B === "loading";
|
|
4911
|
+
ge.current = c.useMemo(() => fe * S + W, [fe, W]), c.useEffect(() => {
|
|
4912
|
+
R.current = me;
|
|
4913
|
+
}, [me]), c.useEffect(() => {
|
|
4914
|
+
A(!0);
|
|
4884
4915
|
}, []), c.useEffect(() => {
|
|
4885
|
-
let e =
|
|
4916
|
+
let e = z.current;
|
|
4886
4917
|
if (e) {
|
|
4887
4918
|
let t = e.getBoundingClientRect().height;
|
|
4888
|
-
return
|
|
4919
|
+
return oe(t), a((e) => [{
|
|
4889
4920
|
toastId: n.id,
|
|
4890
4921
|
height: t,
|
|
4891
4922
|
position: n.position
|
|
4892
4923
|
}, ...e]), () => a((e) => e.filter((e) => e.toastId !== n.id));
|
|
4893
4924
|
}
|
|
4894
4925
|
}, [a, n.id]), c.useLayoutEffect(() => {
|
|
4895
|
-
if (!
|
|
4896
|
-
let e =
|
|
4926
|
+
if (!k) return;
|
|
4927
|
+
let e = z.current, t = e.style.height;
|
|
4897
4928
|
e.style.height = "auto";
|
|
4898
4929
|
let r = e.getBoundingClientRect().height;
|
|
4899
|
-
e.style.height = t,
|
|
4930
|
+
e.style.height = t, oe(r), a((e) => e.find((e) => e.toastId === n.id) ? e.map((e) => e.toastId === n.id ? {
|
|
4900
4931
|
...e,
|
|
4901
4932
|
height: r
|
|
4902
4933
|
} : e) : [{
|
|
@@ -4905,7 +4936,7 @@ var Ps = (e) => {
|
|
|
4905
4936
|
position: n.position
|
|
4906
4937
|
}, ...e]);
|
|
4907
4938
|
}, [
|
|
4908
|
-
|
|
4939
|
+
k,
|
|
4909
4940
|
n.title,
|
|
4910
4941
|
n.description,
|
|
4911
4942
|
a,
|
|
@@ -4914,172 +4945,172 @@ var Ps = (e) => {
|
|
|
4914
4945
|
n.action,
|
|
4915
4946
|
n.cancel
|
|
4916
4947
|
]);
|
|
4917
|
-
let
|
|
4918
|
-
|
|
4948
|
+
let Se = c.useCallback(() => {
|
|
4949
|
+
M(!0), L(ge.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
|
|
4919
4950
|
f(n);
|
|
4920
|
-
},
|
|
4951
|
+
}, Is);
|
|
4921
4952
|
}, [
|
|
4922
4953
|
n,
|
|
4923
4954
|
f,
|
|
4924
4955
|
a,
|
|
4925
|
-
|
|
4956
|
+
ge
|
|
4926
4957
|
]);
|
|
4927
4958
|
c.useEffect(() => {
|
|
4928
|
-
if (n.promise &&
|
|
4959
|
+
if (n.promise && B === "loading" || n.duration === Infinity || n.type === "loading") return;
|
|
4929
4960
|
let e;
|
|
4930
|
-
return d || i ||
|
|
4931
|
-
if (
|
|
4932
|
-
let e = (/* @__PURE__ */ new Date()).getTime() -
|
|
4933
|
-
|
|
4961
|
+
return d || i || ye ? (() => {
|
|
4962
|
+
if (_e.current < he.current) {
|
|
4963
|
+
let e = (/* @__PURE__ */ new Date()).getTime() - he.current;
|
|
4964
|
+
R.current -= e;
|
|
4934
4965
|
}
|
|
4935
|
-
|
|
4936
|
-
})() :
|
|
4937
|
-
n.onAutoClose == null || n.onAutoClose.call(n, n),
|
|
4938
|
-
},
|
|
4966
|
+
_e.current = (/* @__PURE__ */ new Date()).getTime();
|
|
4967
|
+
})() : R.current !== Infinity && (he.current = (/* @__PURE__ */ new Date()).getTime(), e = setTimeout(() => {
|
|
4968
|
+
n.onAutoClose == null || n.onAutoClose.call(n, n), Se();
|
|
4969
|
+
}, R.current)), () => clearTimeout(e);
|
|
4939
4970
|
}, [
|
|
4940
4971
|
d,
|
|
4941
4972
|
i,
|
|
4942
4973
|
n,
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4974
|
+
B,
|
|
4975
|
+
ye,
|
|
4976
|
+
Se
|
|
4946
4977
|
]), c.useEffect(() => {
|
|
4947
|
-
n.delete && (
|
|
4948
|
-
}, [
|
|
4949
|
-
function
|
|
4978
|
+
n.delete && (Se(), n.onDismiss == null || n.onDismiss.call(n, n));
|
|
4979
|
+
}, [Se, n.delete]);
|
|
4980
|
+
function Ce() {
|
|
4950
4981
|
return T?.loading ? /*#__PURE__*/ c.createElement("div", {
|
|
4951
|
-
className:
|
|
4952
|
-
"data-visible":
|
|
4953
|
-
}, T.loading) : /*#__PURE__*/ c.createElement(
|
|
4954
|
-
className:
|
|
4955
|
-
visible:
|
|
4982
|
+
className: Ls(w?.loader, n?.classNames?.loader, "sonner-loader"),
|
|
4983
|
+
"data-visible": B === "loading"
|
|
4984
|
+
}, T.loading) : /*#__PURE__*/ c.createElement(_s, {
|
|
4985
|
+
className: Ls(w?.loader, n?.classNames?.loader),
|
|
4986
|
+
visible: B === "loading"
|
|
4956
4987
|
});
|
|
4957
4988
|
}
|
|
4958
|
-
let
|
|
4989
|
+
let we = n.icon || T?.[B] || hs(B);
|
|
4959
4990
|
return /*#__PURE__*/ c.createElement("li", {
|
|
4960
4991
|
tabIndex: 0,
|
|
4961
|
-
ref:
|
|
4962
|
-
className:
|
|
4992
|
+
ref: z,
|
|
4993
|
+
className: Ls(v, ue, w?.toast, n?.classNames?.toast, w?.default, w?.[B], n?.classNames?.[B]),
|
|
4963
4994
|
"data-sonner-toast": "",
|
|
4964
4995
|
"data-rich-colors": n.richColors ?? p,
|
|
4965
4996
|
"data-styled": !(n.jsx || n.unstyled || r),
|
|
4966
|
-
"data-mounted":
|
|
4997
|
+
"data-mounted": k,
|
|
4967
4998
|
"data-promise": !!n.promise,
|
|
4968
|
-
"data-swiped":
|
|
4969
|
-
"data-removed":
|
|
4970
|
-
"data-visible":
|
|
4971
|
-
"data-y-position":
|
|
4972
|
-
"data-x-position":
|
|
4999
|
+
"data-swiped": re,
|
|
5000
|
+
"data-removed": j,
|
|
5001
|
+
"data-visible": le,
|
|
5002
|
+
"data-y-position": U,
|
|
5003
|
+
"data-x-position": ve,
|
|
4973
5004
|
"data-index": l,
|
|
4974
|
-
"data-front":
|
|
4975
|
-
"data-swiping":
|
|
4976
|
-
"data-dismissible":
|
|
4977
|
-
"data-type":
|
|
4978
|
-
"data-invert":
|
|
4979
|
-
"data-swipe-out":
|
|
4980
|
-
"data-swipe-direction":
|
|
4981
|
-
"data-expanded": !!(d || C &&
|
|
5005
|
+
"data-front": ce,
|
|
5006
|
+
"data-swiping": N,
|
|
5007
|
+
"data-dismissible": V,
|
|
5008
|
+
"data-type": B,
|
|
5009
|
+
"data-invert": be,
|
|
5010
|
+
"data-swipe-out": F,
|
|
5011
|
+
"data-swipe-direction": te,
|
|
5012
|
+
"data-expanded": !!(d || C && k),
|
|
4982
5013
|
"data-testid": n.testId,
|
|
4983
5014
|
style: {
|
|
4984
5015
|
"--index": l,
|
|
4985
5016
|
"--toasts-before": l,
|
|
4986
5017
|
"--z-index": u.length - l,
|
|
4987
|
-
"--offset": `${
|
|
4988
|
-
"--initial-height": C ? "auto" : `${
|
|
5018
|
+
"--offset": `${j ? I : ge.current}px`,
|
|
5019
|
+
"--initial-height": C ? "auto" : `${ae}px`,
|
|
4989
5020
|
...h,
|
|
4990
5021
|
...n.style
|
|
4991
5022
|
},
|
|
4992
5023
|
onDragEnd: () => {
|
|
4993
|
-
|
|
5024
|
+
P(!1), D(null), H.current = null;
|
|
4994
5025
|
},
|
|
4995
5026
|
onPointerDown: (e) => {
|
|
4996
|
-
e.button !== 2 && (
|
|
5027
|
+
e.button !== 2 && (xe || !V || (se.current = /* @__PURE__ */ new Date(), L(ge.current), e.target.setPointerCapture(e.pointerId), e.target.tagName !== "BUTTON" && (P(!0), H.current = {
|
|
4997
5028
|
x: e.clientX,
|
|
4998
5029
|
y: e.clientY
|
|
4999
5030
|
})));
|
|
5000
5031
|
},
|
|
5001
5032
|
onPointerUp: () => {
|
|
5002
|
-
if (
|
|
5003
|
-
|
|
5004
|
-
let e = Number(
|
|
5005
|
-
if (Math.abs(i) >=
|
|
5006
|
-
|
|
5033
|
+
if (F || !V) return;
|
|
5034
|
+
H.current = null;
|
|
5035
|
+
let e = Number(z.current?.style.getPropertyValue("--swipe-amount-x").replace("px", "") || 0), t = Number(z.current?.style.getPropertyValue("--swipe-amount-y").replace("px", "") || 0), r = (/* @__PURE__ */ new Date()).getTime() - se.current?.getTime(), i = E === "x" ? e : t, a = Math.abs(i) / r;
|
|
5036
|
+
if (Math.abs(i) >= Fs || a > .11) {
|
|
5037
|
+
L(ge.current), n.onDismiss == null || n.onDismiss.call(n, n), O(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), Se(), ne(!0);
|
|
5007
5038
|
return;
|
|
5008
5039
|
} else {
|
|
5009
5040
|
var o, s;
|
|
5010
|
-
(o =
|
|
5041
|
+
(o = z.current) == null || o.style.setProperty("--swipe-amount-x", "0px"), (s = z.current) == null || s.style.setProperty("--swipe-amount-y", "0px");
|
|
5011
5042
|
}
|
|
5012
|
-
|
|
5043
|
+
ie(!1), P(!1), D(null);
|
|
5013
5044
|
},
|
|
5014
5045
|
onPointerMove: (t) => {
|
|
5015
5046
|
var n, r;
|
|
5016
|
-
if (!
|
|
5017
|
-
let i = t.clientY -
|
|
5018
|
-
!
|
|
5047
|
+
if (!H.current || !V || window.getSelection()?.toString().length > 0) return;
|
|
5048
|
+
let i = t.clientY - H.current.y, a = t.clientX - H.current.x, o = e.swipeDirections ?? Rs(x);
|
|
5049
|
+
!E && (Math.abs(a) > 1 || Math.abs(i) > 1) && D(Math.abs(a) > Math.abs(i) ? "x" : "y");
|
|
5019
5050
|
let s = {
|
|
5020
5051
|
x: 0,
|
|
5021
5052
|
y: 0
|
|
5022
5053
|
}, c = (e) => 1 / (1.5 + Math.abs(e) / 20);
|
|
5023
|
-
if (
|
|
5054
|
+
if (E === "y") {
|
|
5024
5055
|
if (o.includes("top") || o.includes("bottom")) if (o.includes("top") && i < 0 || o.includes("bottom") && i > 0) s.y = i;
|
|
5025
5056
|
else {
|
|
5026
5057
|
let e = i * c(i);
|
|
5027
5058
|
s.y = Math.abs(e) < Math.abs(i) ? e : i;
|
|
5028
5059
|
}
|
|
5029
|
-
} else if (
|
|
5060
|
+
} else if (E === "x" && (o.includes("left") || o.includes("right"))) if (o.includes("left") && a < 0 || o.includes("right") && a > 0) s.x = a;
|
|
5030
5061
|
else {
|
|
5031
5062
|
let e = a * c(a);
|
|
5032
5063
|
s.x = Math.abs(e) < Math.abs(a) ? e : a;
|
|
5033
5064
|
}
|
|
5034
|
-
(Math.abs(s.x) > 0 || Math.abs(s.y) > 0) &&
|
|
5065
|
+
(Math.abs(s.x) > 0 || Math.abs(s.y) > 0) && ie(!0), (n = z.current) == null || n.style.setProperty("--swipe-amount-x", `${s.x}px`), (r = z.current) == null || r.style.setProperty("--swipe-amount-y", `${s.y}px`);
|
|
5035
5066
|
}
|
|
5036
|
-
},
|
|
5037
|
-
"aria-label":
|
|
5038
|
-
"data-disabled":
|
|
5067
|
+
}, pe && !n.jsx && B !== "loading" ? /*#__PURE__*/ c.createElement("button", {
|
|
5068
|
+
"aria-label": ee,
|
|
5069
|
+
"data-disabled": xe,
|
|
5039
5070
|
"data-close-button": !0,
|
|
5040
|
-
onClick:
|
|
5041
|
-
|
|
5071
|
+
onClick: xe || !V ? () => {} : () => {
|
|
5072
|
+
Se(), n.onDismiss == null || n.onDismiss.call(n, n);
|
|
5042
5073
|
},
|
|
5043
|
-
className:
|
|
5044
|
-
}, T?.close ??
|
|
5074
|
+
className: Ls(w?.closeButton, n?.classNames?.closeButton)
|
|
5075
|
+
}, T?.close ?? Ss) : null, (B || n.icon || n.promise) && n.icon !== null && (T?.[B] !== null || n.icon) ? /*#__PURE__*/ c.createElement("div", {
|
|
5045
5076
|
"data-icon": "",
|
|
5046
|
-
className:
|
|
5047
|
-
}, n.promise || n.type === "loading" && !n.icon ? n.icon ||
|
|
5077
|
+
className: Ls(w?.icon, n?.classNames?.icon)
|
|
5078
|
+
}, n.promise || n.type === "loading" && !n.icon ? n.icon || Ce() : null, n.type === "loading" ? null : we) : null, /*#__PURE__*/ c.createElement("div", {
|
|
5048
5079
|
"data-content": "",
|
|
5049
|
-
className:
|
|
5080
|
+
className: Ls(w?.content, n?.classNames?.content)
|
|
5050
5081
|
}, /*#__PURE__*/ c.createElement("div", {
|
|
5051
5082
|
"data-title": "",
|
|
5052
|
-
className:
|
|
5083
|
+
className: Ls(w?.title, n?.classNames?.title)
|
|
5053
5084
|
}, n.jsx ? n.jsx : typeof n.title == "function" ? n.title() : n.title), n.description ? /*#__PURE__*/ c.createElement("div", {
|
|
5054
5085
|
"data-description": "",
|
|
5055
|
-
className:
|
|
5056
|
-
}, typeof n.description == "function" ? n.description() : n.description) : null), /*#__PURE__*/ c.isValidElement(n.cancel) ? n.cancel : n.cancel &&
|
|
5086
|
+
className: Ls(y, de, w?.description, n?.classNames?.description)
|
|
5087
|
+
}, typeof n.description == "function" ? n.description() : n.description) : null), /*#__PURE__*/ c.isValidElement(n.cancel) ? n.cancel : n.cancel && Os(n.cancel) ? /*#__PURE__*/ c.createElement("button", {
|
|
5057
5088
|
"data-button": !0,
|
|
5058
5089
|
"data-cancel": !0,
|
|
5059
5090
|
style: n.cancelButtonStyle || g,
|
|
5060
5091
|
onClick: (e) => {
|
|
5061
|
-
|
|
5092
|
+
Os(n.cancel) && V && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), Se());
|
|
5062
5093
|
},
|
|
5063
|
-
className:
|
|
5064
|
-
}, n.cancel.label) : null, /*#__PURE__*/ c.isValidElement(n.action) ? n.action : n.action &&
|
|
5094
|
+
className: Ls(w?.cancelButton, n?.classNames?.cancelButton)
|
|
5095
|
+
}, n.cancel.label) : null, /*#__PURE__*/ c.isValidElement(n.action) ? n.action : n.action && Os(n.action) ? /*#__PURE__*/ c.createElement("button", {
|
|
5065
5096
|
"data-button": !0,
|
|
5066
5097
|
"data-action": !0,
|
|
5067
5098
|
style: n.actionButtonStyle || _,
|
|
5068
5099
|
onClick: (e) => {
|
|
5069
|
-
|
|
5100
|
+
Os(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && Se());
|
|
5070
5101
|
},
|
|
5071
|
-
className:
|
|
5102
|
+
className: Ls(w?.actionButton, n?.classNames?.actionButton)
|
|
5072
5103
|
}, n.action.label) : null);
|
|
5073
5104
|
};
|
|
5074
|
-
function
|
|
5105
|
+
function Bs() {
|
|
5075
5106
|
if (typeof window > "u" || typeof document > "u") return "ltr";
|
|
5076
5107
|
let e = document.documentElement.getAttribute("dir");
|
|
5077
5108
|
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
|
|
5078
5109
|
}
|
|
5079
|
-
function
|
|
5110
|
+
function Vs(e, t) {
|
|
5080
5111
|
let n = {};
|
|
5081
5112
|
return [e, t].forEach((e, t) => {
|
|
5082
|
-
let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ?
|
|
5113
|
+
let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? js : As;
|
|
5083
5114
|
function o(e) {
|
|
5084
5115
|
[
|
|
5085
5116
|
"top",
|
|
@@ -5100,8 +5131,8 @@ function Is(e, t) {
|
|
|
5100
5131
|
}) : o(a);
|
|
5101
5132
|
}), n;
|
|
5102
5133
|
}
|
|
5103
|
-
var
|
|
5104
|
-
let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: l, offset: u, mobileOffset: d, theme: f = "light", richColors: m, duration: h, style: g, visibleToasts: _ =
|
|
5134
|
+
var Hs = /*#__PURE__*/ c.forwardRef(function(e, t) {
|
|
5135
|
+
let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: l, offset: u, mobileOffset: d, theme: f = "light", richColors: m, duration: h, style: g, visibleToasts: _ = ks, toastOptions: v, dir: y = Bs(), gap: b = Ps, icons: x, containerAriaLabel: S = "Notifications" } = e, [C, w] = c.useState([]), T = c.useMemo(() => n ? C.filter((e) => e.toasterId === n) : C.filter((e) => !e.toasterId), [C, n]), ee = c.useMemo(() => Array.from(new Set([i].concat(T.filter((e) => e.position).map((e) => e.position)))), [T, i]), [E, D] = c.useState([]), [te, O] = c.useState(!1), [k, A] = c.useState(!1), [j, M] = c.useState(f === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : f), N = c.useRef(null), P = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), F = c.useRef(null), ne = c.useRef(!1), re = c.useCallback((e) => {
|
|
5105
5136
|
w((t) => (t.find((t) => t.id === e.id)?.delete || $.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
|
|
5106
5137
|
}, []);
|
|
5107
5138
|
return c.useEffect(() => $.subscribe((e) => {
|
|
@@ -5131,83 +5162,83 @@ var Ls = /*#__PURE__*/ c.forwardRef(function(e, t) {
|
|
|
5131
5162
|
});
|
|
5132
5163
|
}), [C]), c.useEffect(() => {
|
|
5133
5164
|
if (f !== "system") {
|
|
5134
|
-
|
|
5165
|
+
M(f);
|
|
5135
5166
|
return;
|
|
5136
5167
|
}
|
|
5137
|
-
if (f === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ?
|
|
5168
|
+
if (f === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? M("dark") : M("light")), typeof window > "u") return;
|
|
5138
5169
|
let e = window.matchMedia("(prefers-color-scheme: dark)");
|
|
5139
5170
|
try {
|
|
5140
5171
|
e.addEventListener("change", ({ matches: e }) => {
|
|
5141
|
-
|
|
5172
|
+
M(e ? "dark" : "light");
|
|
5142
5173
|
});
|
|
5143
5174
|
} catch {
|
|
5144
5175
|
e.addListener(({ matches: e }) => {
|
|
5145
5176
|
try {
|
|
5146
|
-
|
|
5177
|
+
M(e ? "dark" : "light");
|
|
5147
5178
|
} catch (e) {
|
|
5148
5179
|
console.error(e);
|
|
5149
5180
|
}
|
|
5150
5181
|
});
|
|
5151
5182
|
}
|
|
5152
5183
|
}, [f]), c.useEffect(() => {
|
|
5153
|
-
C.length <= 1 &&
|
|
5184
|
+
C.length <= 1 && O(!1);
|
|
5154
5185
|
}, [C]), c.useEffect(() => {
|
|
5155
5186
|
let e = (e) => {
|
|
5156
5187
|
if (a.every((t) => e[t] || e.code === t)) {
|
|
5157
5188
|
var t;
|
|
5158
|
-
|
|
5189
|
+
O(!0), (t = N.current) == null || t.focus();
|
|
5159
5190
|
}
|
|
5160
|
-
e.code === "Escape" && (document.activeElement ===
|
|
5191
|
+
e.code === "Escape" && (document.activeElement === N.current || N.current?.contains(document.activeElement)) && O(!1);
|
|
5161
5192
|
};
|
|
5162
5193
|
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
5163
5194
|
}, [a]), c.useEffect(() => {
|
|
5164
|
-
if (
|
|
5165
|
-
|
|
5195
|
+
if (N.current) return () => {
|
|
5196
|
+
F.current && (F.current.focus({ preventScroll: !0 }), F.current = null, ne.current = !1);
|
|
5166
5197
|
};
|
|
5167
|
-
}, [
|
|
5198
|
+
}, [N.current]), /*#__PURE__*/ c.createElement("section", {
|
|
5168
5199
|
ref: t,
|
|
5169
|
-
"aria-label": `${S} ${
|
|
5200
|
+
"aria-label": `${S} ${P}`,
|
|
5170
5201
|
tabIndex: -1,
|
|
5171
5202
|
"aria-live": "polite",
|
|
5172
5203
|
"aria-relevant": "additions text",
|
|
5173
5204
|
"aria-atomic": "false",
|
|
5174
5205
|
suppressHydrationWarning: !0
|
|
5175
|
-
},
|
|
5206
|
+
}, ee.map((t, n) => {
|
|
5176
5207
|
let [i, a] = t.split("-");
|
|
5177
5208
|
return T.length ? /*#__PURE__*/ c.createElement("ol", {
|
|
5178
5209
|
key: t,
|
|
5179
|
-
dir: y === "auto" ?
|
|
5210
|
+
dir: y === "auto" ? Bs() : y,
|
|
5180
5211
|
tabIndex: -1,
|
|
5181
|
-
ref:
|
|
5212
|
+
ref: N,
|
|
5182
5213
|
className: l,
|
|
5183
5214
|
"data-sonner-toaster": !0,
|
|
5184
|
-
"data-sonner-theme":
|
|
5215
|
+
"data-sonner-theme": j,
|
|
5185
5216
|
"data-y-position": i,
|
|
5186
5217
|
"data-x-position": a,
|
|
5187
5218
|
style: {
|
|
5188
|
-
"--front-toast-height": `${
|
|
5189
|
-
"--width": `${
|
|
5219
|
+
"--front-toast-height": `${E[0]?.height || 0}px`,
|
|
5220
|
+
"--width": `${Ns}px`,
|
|
5190
5221
|
"--gap": `${b}px`,
|
|
5191
5222
|
...g,
|
|
5192
|
-
...
|
|
5223
|
+
...Vs(u, d)
|
|
5193
5224
|
},
|
|
5194
5225
|
onBlur: (e) => {
|
|
5195
|
-
|
|
5226
|
+
ne.current && !e.currentTarget.contains(e.relatedTarget) && (ne.current = !1, F.current &&= (F.current.focus({ preventScroll: !0 }), null));
|
|
5196
5227
|
},
|
|
5197
5228
|
onFocus: (e) => {
|
|
5198
|
-
e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" ||
|
|
5229
|
+
e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || ne.current || (ne.current = !0, F.current = e.relatedTarget);
|
|
5199
5230
|
},
|
|
5200
|
-
onMouseEnter: () =>
|
|
5201
|
-
onMouseMove: () =>
|
|
5231
|
+
onMouseEnter: () => O(!0),
|
|
5232
|
+
onMouseMove: () => O(!0),
|
|
5202
5233
|
onMouseLeave: () => {
|
|
5203
|
-
|
|
5234
|
+
k || O(!1);
|
|
5204
5235
|
},
|
|
5205
|
-
onDragEnd: () =>
|
|
5236
|
+
onDragEnd: () => O(!1),
|
|
5206
5237
|
onPointerDown: (e) => {
|
|
5207
|
-
e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" ||
|
|
5238
|
+
e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || A(!0);
|
|
5208
5239
|
},
|
|
5209
|
-
onPointerUp: () =>
|
|
5210
|
-
}, T.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ c.createElement(
|
|
5240
|
+
onPointerUp: () => A(!1)
|
|
5241
|
+
}, T.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ c.createElement(zs, {
|
|
5211
5242
|
key: n.id,
|
|
5212
5243
|
icons: x,
|
|
5213
5244
|
index: i,
|
|
@@ -5219,7 +5250,7 @@ var Ls = /*#__PURE__*/ c.forwardRef(function(e, t) {
|
|
|
5219
5250
|
invert: r,
|
|
5220
5251
|
visibleToasts: _,
|
|
5221
5252
|
closeButton: v?.closeButton ?? s,
|
|
5222
|
-
interacting:
|
|
5253
|
+
interacting: k,
|
|
5223
5254
|
position: t,
|
|
5224
5255
|
style: v?.style,
|
|
5225
5256
|
unstyled: v?.unstyled,
|
|
@@ -5227,21 +5258,21 @@ var Ls = /*#__PURE__*/ c.forwardRef(function(e, t) {
|
|
|
5227
5258
|
cancelButtonStyle: v?.cancelButtonStyle,
|
|
5228
5259
|
actionButtonStyle: v?.actionButtonStyle,
|
|
5229
5260
|
closeButtonAriaLabel: v?.closeButtonAriaLabel,
|
|
5230
|
-
removeToast:
|
|
5261
|
+
removeToast: re,
|
|
5231
5262
|
toasts: T.filter((e) => e.position == n.position),
|
|
5232
|
-
heights:
|
|
5233
|
-
setHeights:
|
|
5263
|
+
heights: E.filter((e) => e.position == n.position),
|
|
5264
|
+
setHeights: D,
|
|
5234
5265
|
expandByDefault: o,
|
|
5235
5266
|
gap: b,
|
|
5236
|
-
expanded:
|
|
5267
|
+
expanded: te,
|
|
5237
5268
|
swipeDirections: e.swipeDirections
|
|
5238
5269
|
}))) : null;
|
|
5239
5270
|
}));
|
|
5240
|
-
}),
|
|
5271
|
+
}), Us = ({ style: r, className: o, ...s }) => {
|
|
5241
5272
|
let c = Ko(), l = Vo(), u = Jo(c, l);
|
|
5242
|
-
return /* @__PURE__ */ h(
|
|
5273
|
+
return /* @__PURE__ */ h(Hs, {
|
|
5243
5274
|
theme: l ? "dark" : "light",
|
|
5244
|
-
className:
|
|
5275
|
+
className: q("toaster group", u.className, o),
|
|
5245
5276
|
icons: {
|
|
5246
5277
|
success: /* @__PURE__ */ h(a, { className: "size-4" }),
|
|
5247
5278
|
info: /* @__PURE__ */ h(i, { className: "size-4" }),
|
|
@@ -5263,21 +5294,21 @@ var Ls = /*#__PURE__*/ c.forwardRef(function(e, t) {
|
|
|
5263
5294
|
};
|
|
5264
5295
|
//#endregion
|
|
5265
5296
|
//#region src/components/ui/label.tsx
|
|
5266
|
-
function
|
|
5297
|
+
function Ws({ className: e, ...t }) {
|
|
5267
5298
|
return /* @__PURE__ */ h(Po, {
|
|
5268
5299
|
"data-slot": "label",
|
|
5269
|
-
className:
|
|
5300
|
+
className: q("flex items-center text-foreground gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", e),
|
|
5270
5301
|
...t
|
|
5271
5302
|
});
|
|
5272
5303
|
}
|
|
5273
5304
|
//#endregion
|
|
5274
5305
|
//#region src/components/ui/input.tsx
|
|
5275
|
-
function
|
|
5276
|
-
let u = a ? l(a, { className:
|
|
5306
|
+
function Gs({ className: e, type: t, error: n = !1, label: r, helperText: i, startIcon: a, endIcon: o, appearance: s = "default", ...c }) {
|
|
5307
|
+
let u = a ? l(a, { className: q("stroke-text-input-placeholder") }) : null, d = o ? l(o, { className: q("stroke-text-input-placeholder") }) : null;
|
|
5277
5308
|
return /* @__PURE__ */ g("div", {
|
|
5278
5309
|
className: "w-full flex flex-col gap-2 h-fit ",
|
|
5279
5310
|
children: [
|
|
5280
|
-
!!r && /* @__PURE__ */ h(
|
|
5311
|
+
!!r && /* @__PURE__ */ h(Ws, { children: r }),
|
|
5281
5312
|
/* @__PURE__ */ g("div", {
|
|
5282
5313
|
className: "w-full relative",
|
|
5283
5314
|
children: [
|
|
@@ -5291,7 +5322,7 @@ function Bs({ className: e, type: t, error: n = !1, label: r, helperText: i, sta
|
|
|
5291
5322
|
"data-slot": "input",
|
|
5292
5323
|
"data-appearance": s,
|
|
5293
5324
|
"aria-invalid": n ? !0 : c["aria-invalid"],
|
|
5294
|
-
className:
|
|
5325
|
+
className: q(s === "themed" && "input-themed transition-smooth flex h-9 w-full min-w-0 py-1 text-base shadow-none outline-none md:text-sm", s === "default" && `file:text-foreground ${c?.placeholder ? "placeholder:text-text-disabled placeholder:text-sm placeholder:font-normal" : "placeholder:text-muted-foreground"} selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 ${u ? "pl-10" : "pl-3"} ${d ? "pr-10" : "pr-3"} py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-base-secondary-disabled md:text-sm`, s === "default" && "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", s === "themed" && (n || c["aria-invalid"] === !0 ? "input-error" : void 0), u && s === "themed" && "pl-10", !u && s === "themed" && "pl-3", d && s === "themed" && "pr-10", !d && s === "themed" && "pr-3", e)
|
|
5295
5326
|
}),
|
|
5296
5327
|
d && /* @__PURE__ */ h("div", {
|
|
5297
5328
|
className: "absolute right-3 top-1/2 -translate-y-1/2",
|
|
@@ -5308,14 +5339,14 @@ function Bs({ className: e, type: t, error: n = !1, label: r, helperText: i, sta
|
|
|
5308
5339
|
}
|
|
5309
5340
|
//#endregion
|
|
5310
5341
|
//#region src/components/ui/textarea.tsx
|
|
5311
|
-
function
|
|
5342
|
+
function Ks({ className: e, error: t = !1, label: n, helperText: r, ...i }) {
|
|
5312
5343
|
return /* @__PURE__ */ g("div", {
|
|
5313
5344
|
className: "w-full flex flex-col gap-2",
|
|
5314
5345
|
children: [
|
|
5315
|
-
n && /* @__PURE__ */ h(
|
|
5346
|
+
n && /* @__PURE__ */ h(Ws, { children: n }),
|
|
5316
5347
|
/* @__PURE__ */ h("textarea", {
|
|
5317
5348
|
"data-slot": "textarea",
|
|
5318
|
-
className:
|
|
5349
|
+
className: q("flex-1 border-input placeholder:text-text-disabled focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", e),
|
|
5319
5350
|
...i
|
|
5320
5351
|
}),
|
|
5321
5352
|
r && /* @__PURE__ */ h("p", {
|
|
@@ -5327,15 +5358,15 @@ function Vs({ className: e, error: t = !1, label: n, helperText: r, ...i }) {
|
|
|
5327
5358
|
}
|
|
5328
5359
|
//#endregion
|
|
5329
5360
|
//#region src/components/ui/input-group.tsx
|
|
5330
|
-
function
|
|
5361
|
+
function qs({ className: e, ...t }) {
|
|
5331
5362
|
return /* @__PURE__ */ h("div", {
|
|
5332
5363
|
"data-slot": "input-group",
|
|
5333
5364
|
role: "group",
|
|
5334
|
-
className:
|
|
5365
|
+
className: q("group/input-group relative flex h-9 w-full min-w-0 items-center rounded-lg border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5", e),
|
|
5335
5366
|
...t
|
|
5336
5367
|
});
|
|
5337
5368
|
}
|
|
5338
|
-
var
|
|
5369
|
+
var Js = et("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4", {
|
|
5339
5370
|
variants: { align: {
|
|
5340
5371
|
"inline-start": "order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]",
|
|
5341
5372
|
"inline-end": "order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]",
|
|
@@ -5344,19 +5375,19 @@ var Us = $e("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 te
|
|
|
5344
5375
|
} },
|
|
5345
5376
|
defaultVariants: { align: "inline-start" }
|
|
5346
5377
|
});
|
|
5347
|
-
function
|
|
5378
|
+
function Ys({ className: e, align: t = "inline-start", ...n }) {
|
|
5348
5379
|
return /* @__PURE__ */ h("div", {
|
|
5349
5380
|
role: "group",
|
|
5350
5381
|
"data-slot": "input-group-addon",
|
|
5351
5382
|
"data-align": t,
|
|
5352
|
-
className:
|
|
5383
|
+
className: q(Js({ align: t }), e),
|
|
5353
5384
|
onClick: (e) => {
|
|
5354
5385
|
e.target.closest("button") || e.currentTarget.parentElement?.querySelector("input")?.focus();
|
|
5355
5386
|
},
|
|
5356
5387
|
...n
|
|
5357
5388
|
});
|
|
5358
5389
|
}
|
|
5359
|
-
var
|
|
5390
|
+
var Xs = et("flex items-center gap-2 text-sm shadow-none", {
|
|
5360
5391
|
variants: { size: {
|
|
5361
5392
|
xs: "h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",
|
|
5362
5393
|
sm: "",
|
|
@@ -5365,34 +5396,34 @@ var Gs = $e("flex items-center gap-2 text-sm shadow-none", {
|
|
|
5365
5396
|
} },
|
|
5366
5397
|
defaultVariants: { size: "xs" }
|
|
5367
5398
|
});
|
|
5368
|
-
function
|
|
5399
|
+
function Zs({ className: e, type: t = "button", variant: n = "ghost", size: r = "xs", ...i }) {
|
|
5369
5400
|
return /* @__PURE__ */ h(Lo, {
|
|
5370
5401
|
type: t,
|
|
5371
5402
|
"data-size": r,
|
|
5372
5403
|
variant: n,
|
|
5373
|
-
className:
|
|
5404
|
+
className: q(Xs({ size: r }), e),
|
|
5374
5405
|
...i
|
|
5375
5406
|
});
|
|
5376
5407
|
}
|
|
5377
|
-
function
|
|
5408
|
+
function Qs({ className: e, ...t }) {
|
|
5378
5409
|
return /* @__PURE__ */ h("span", {
|
|
5379
|
-
className:
|
|
5410
|
+
className: q("flex items-center gap-2 text-sm text-muted-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", e),
|
|
5380
5411
|
...t
|
|
5381
5412
|
});
|
|
5382
5413
|
}
|
|
5383
|
-
function
|
|
5384
|
-
return /* @__PURE__ */ h(
|
|
5414
|
+
function $s({ className: e, ...t }) {
|
|
5415
|
+
return /* @__PURE__ */ h(Gs, {
|
|
5385
5416
|
"data-slot": "input-group-control",
|
|
5386
|
-
className:
|
|
5417
|
+
className: q("flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent", e),
|
|
5387
5418
|
...t
|
|
5388
5419
|
});
|
|
5389
5420
|
}
|
|
5390
|
-
function
|
|
5391
|
-
return /* @__PURE__ */ h(
|
|
5421
|
+
function ec({ className: e, ...t }) {
|
|
5422
|
+
return /* @__PURE__ */ h(Ks, {
|
|
5392
5423
|
"data-slot": "input-group-control",
|
|
5393
|
-
className:
|
|
5424
|
+
className: q("flex-1 resize-none rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent", e),
|
|
5394
5425
|
...t
|
|
5395
5426
|
});
|
|
5396
5427
|
}
|
|
5397
5428
|
//#endregion
|
|
5398
|
-
export {
|
|
5429
|
+
export { Ea as $, Yo as A, jt as At, ko as B, nt as Bt, fs as C, Pr as Ct, Jo as D, Zt as Dt, Go as E, fn as Et, Lo as F, ht as Ft, So as G, wo as H, et as Ht, Io as I, pt as It, da as J, so as K, Fo as L, at as Lt, Bo as M, St as Mt, zo as N, vt as Nt, qo as O, zt as Ot, Ro as P, gt as Pt, ma as Q, Ao as R, it as Rt, ns as S, Lr as St, Uo as T, hn as Tt, To as U, q as Ut, Eo as V, rt as Vt, Oo as W, X, Oa as Y, Z, ss as _, gi as _t, Qs as a, ki as at, ps as b, hi as bt, Gs as c, Fi as ct, Ds as d, Ai as dt, pa as et, ts as f, Pi as ft, cs as g, _i as gt, us as h, bi as ht, $s as i, Oi as it, Ho as j, Ot as jt, Ko as k, Vt as kt, Ws as l, Ni as lt, os as m, vi as mt, Ys as n, ha as nt, ec as o, Ti as ot, is as p, xi as pt, Q as q, Zs as r, Ta as rt, Ks as s, ji as st, qs as t, ga as tt, Us as u, qi as ut, as as v, mi as vt, Xo as w, Tr as wt, ls as x, li as xt, rs as y, yi as yt, Do as z, ct as zt };
|