melonykit 0.6.3 → 0.7.1
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/index.js +483 -351
- package/package.json +4 -5
- package/dist/browser.js +0 -64
package/dist/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { i as e, o as t } from "./functions-C8th2V6m.js";
|
|
2
2
|
import { Fragment as n, jsx as r, jsxs as i } from "preact/jsx-runtime";
|
|
3
3
|
import { useSignal as a } from "@preact/signals";
|
|
4
|
-
import { useEffect as o } from "preact/hooks";
|
|
4
|
+
import { useEffect as o, useId as s } from "preact/hooks";
|
|
5
5
|
//#region node_modules/@emotion/sheet/dist/emotion-sheet.esm.js
|
|
6
|
-
function
|
|
6
|
+
function c(e) {
|
|
7
7
|
if (e.sheet) return e.sheet;
|
|
8
8
|
/* istanbul ignore next */
|
|
9
9
|
for (var t = 0; t < document.styleSheets.length; t++) if (document.styleSheets[t].ownerNode === e) return document.styleSheets[t];
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function l(e) {
|
|
12
12
|
var t = document.createElement("style");
|
|
13
13
|
return t.setAttribute("data-emotion", e.key), e.nonce !== void 0 && t.setAttribute("nonce", e.nonce), t.appendChild(document.createTextNode("")), t.setAttribute("data-s", ""), t;
|
|
14
14
|
}
|
|
15
|
-
var
|
|
15
|
+
var u = /*#__PURE__*/ function() {
|
|
16
16
|
function e(e) {
|
|
17
17
|
var t = this;
|
|
18
18
|
this._insertTag = function(e) {
|
|
@@ -24,10 +24,10 @@ var l = /*#__PURE__*/ function() {
|
|
|
24
24
|
return t.hydrate = function(e) {
|
|
25
25
|
e.forEach(this._insertTag);
|
|
26
26
|
}, t.insert = function(e) {
|
|
27
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) == 0 && this._insertTag(
|
|
27
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) == 0 && this._insertTag(l(this));
|
|
28
28
|
var t = this.tags[this.tags.length - 1];
|
|
29
29
|
if (this.isSpeedy) {
|
|
30
|
-
var n =
|
|
30
|
+
var n = c(t);
|
|
31
31
|
try {
|
|
32
32
|
n.insertRule(e, n.cssRules.length);
|
|
33
33
|
} catch {}
|
|
@@ -38,20 +38,20 @@ var l = /*#__PURE__*/ function() {
|
|
|
38
38
|
return e.parentNode?.removeChild(e);
|
|
39
39
|
}), this.tags = [], this.ctr = 0;
|
|
40
40
|
}, e;
|
|
41
|
-
}(),
|
|
42
|
-
function
|
|
41
|
+
}(), d = "-ms-", f = "-moz-", p = "-webkit-", m = "comm", h = "rule", g = "decl", _ = "@import", v = "@keyframes", y = "@layer", b = Math.abs, x = String.fromCharCode, S = Object.assign;
|
|
42
|
+
function C(e, t) {
|
|
43
43
|
return E(e, 0) ^ 45 ? (((t << 2 ^ E(e, 0)) << 2 ^ E(e, 1)) << 2 ^ E(e, 2)) << 2 ^ E(e, 3) : 0;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function w(e) {
|
|
46
46
|
return e.trim();
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function ee(e, t) {
|
|
49
49
|
return (e = t.exec(e)) ? e[0] : e;
|
|
50
50
|
}
|
|
51
51
|
function T(e, t, n) {
|
|
52
52
|
return e.replace(t, n);
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function te(e, t) {
|
|
55
55
|
return e.indexOf(t);
|
|
56
56
|
}
|
|
57
57
|
function E(e, t) {
|
|
@@ -63,19 +63,19 @@ function D(e, t, n) {
|
|
|
63
63
|
function O(e) {
|
|
64
64
|
return e.length;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function ne(e) {
|
|
67
67
|
return e.length;
|
|
68
68
|
}
|
|
69
69
|
function k(e, t) {
|
|
70
70
|
return t.push(e), e;
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function re(e, t) {
|
|
73
73
|
return e.map(t).join("");
|
|
74
74
|
}
|
|
75
75
|
//#endregion
|
|
76
76
|
//#region node_modules/stylis/src/Tokenizer.js
|
|
77
|
-
var A = 1, j = 1,
|
|
78
|
-
function
|
|
77
|
+
var A = 1, j = 1, ie = 0, M = 0, N = 0, P = "";
|
|
78
|
+
function ae(e, t, n, r, i, a, o) {
|
|
79
79
|
return {
|
|
80
80
|
value: e,
|
|
81
81
|
root: t,
|
|
@@ -89,28 +89,28 @@ function F(e, t, n, r, i, a, o) {
|
|
|
89
89
|
return: ""
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
|
-
function
|
|
93
|
-
return
|
|
92
|
+
function F(e, t) {
|
|
93
|
+
return S(ae("", null, null, "", null, null, 0), e, { length: -e.length }, t);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function oe() {
|
|
96
96
|
return N;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function se() {
|
|
99
99
|
return N = M > 0 ? E(P, --M) : 0, j--, N === 10 && (j = 1, A--), N;
|
|
100
100
|
}
|
|
101
|
-
function
|
|
102
|
-
return N = M <
|
|
101
|
+
function I() {
|
|
102
|
+
return N = M < ie ? E(P, M++) : 0, j++, N === 10 && (j = 1, A++), N;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function L() {
|
|
105
105
|
return E(P, M);
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function R() {
|
|
108
108
|
return M;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function z(e, t) {
|
|
111
111
|
return D(P, e, t);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function B(e) {
|
|
114
114
|
switch (e) {
|
|
115
115
|
case 0:
|
|
116
116
|
case 9:
|
|
@@ -137,77 +137,77 @@ function V(e) {
|
|
|
137
137
|
}
|
|
138
138
|
return 0;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
return A = j = 1,
|
|
140
|
+
function ce(e) {
|
|
141
|
+
return A = j = 1, ie = O(P = e), M = 0, [];
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function le(e) {
|
|
144
144
|
return P = "", e;
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
return
|
|
146
|
+
function V(e) {
|
|
147
|
+
return w(z(M - 1, fe(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
148
148
|
}
|
|
149
|
-
function
|
|
150
|
-
for (; (N =
|
|
151
|
-
return
|
|
149
|
+
function ue(e) {
|
|
150
|
+
for (; (N = L()) && N < 33;) I();
|
|
151
|
+
return B(e) > 2 || B(N) > 3 ? "" : " ";
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
for (; --t &&
|
|
155
|
-
return
|
|
153
|
+
function de(e, t) {
|
|
154
|
+
for (; --t && I() && !(N < 48 || N > 102 || N > 57 && N < 65 || N > 70 && N < 97););
|
|
155
|
+
return z(e, R() + (t < 6 && L() == 32 && I() == 32));
|
|
156
156
|
}
|
|
157
|
-
function
|
|
158
|
-
for (;
|
|
157
|
+
function fe(e) {
|
|
158
|
+
for (; I();) switch (N) {
|
|
159
159
|
case e: return M;
|
|
160
160
|
case 34:
|
|
161
161
|
case 39:
|
|
162
|
-
e !== 34 && e !== 39 &&
|
|
162
|
+
e !== 34 && e !== 39 && fe(N);
|
|
163
163
|
break;
|
|
164
164
|
case 40:
|
|
165
|
-
e === 41 &&
|
|
165
|
+
e === 41 && fe(e);
|
|
166
166
|
break;
|
|
167
167
|
case 92:
|
|
168
|
-
|
|
168
|
+
I();
|
|
169
169
|
break;
|
|
170
170
|
}
|
|
171
171
|
return M;
|
|
172
172
|
}
|
|
173
|
-
function
|
|
174
|
-
for (;
|
|
175
|
-
return "/*" +
|
|
173
|
+
function pe(e, t) {
|
|
174
|
+
for (; I() && e + N !== 57 && (e + N !== 84 || L() !== 47););
|
|
175
|
+
return "/*" + z(t, M - 1) + "*" + x(e === 47 ? e : I());
|
|
176
176
|
}
|
|
177
|
-
function
|
|
178
|
-
for (; !
|
|
179
|
-
return
|
|
177
|
+
function me(e) {
|
|
178
|
+
for (; !B(L());) I();
|
|
179
|
+
return z(e, M);
|
|
180
180
|
}
|
|
181
181
|
//#endregion
|
|
182
182
|
//#region node_modules/stylis/src/Parser.js
|
|
183
|
-
function
|
|
184
|
-
return
|
|
183
|
+
function he(e) {
|
|
184
|
+
return le(H("", null, null, null, [""], e = ce(e), 0, [0], e));
|
|
185
185
|
}
|
|
186
|
-
function
|
|
187
|
-
for (var l = 0, u = 0, d = o, f = 0, p = 0, m = 0, h = 1, g = 1, _ = 1, v = 0, y = "",
|
|
186
|
+
function H(e, t, n, r, i, a, o, s, c) {
|
|
187
|
+
for (var l = 0, u = 0, d = o, f = 0, p = 0, m = 0, h = 1, g = 1, _ = 1, v = 0, y = "", b = i, S = a, C = r, w = y; g;) switch (m = v, v = I()) {
|
|
188
188
|
case 40: if (m != 108 && E(w, d - 1) == 58) {
|
|
189
|
-
|
|
189
|
+
te(w += T(V(v), "&", "&\f"), "&\f") != -1 && (_ = -1);
|
|
190
190
|
break;
|
|
191
191
|
}
|
|
192
192
|
case 34:
|
|
193
193
|
case 39:
|
|
194
194
|
case 91:
|
|
195
|
-
w +=
|
|
195
|
+
w += V(v);
|
|
196
196
|
break;
|
|
197
197
|
case 9:
|
|
198
198
|
case 10:
|
|
199
199
|
case 13:
|
|
200
200
|
case 32:
|
|
201
|
-
w +=
|
|
201
|
+
w += ue(m);
|
|
202
202
|
break;
|
|
203
203
|
case 92:
|
|
204
|
-
w +=
|
|
204
|
+
w += de(R() - 1, 7);
|
|
205
205
|
continue;
|
|
206
206
|
case 47:
|
|
207
|
-
switch (
|
|
207
|
+
switch (L()) {
|
|
208
208
|
case 42:
|
|
209
209
|
case 47:
|
|
210
|
-
k(
|
|
210
|
+
k(_e(pe(I(), R()), t, n), c);
|
|
211
211
|
break;
|
|
212
212
|
default: w += "/";
|
|
213
213
|
}
|
|
@@ -220,18 +220,18 @@ function U(e, t, n, r, i, a, o, s, c) {
|
|
|
220
220
|
case 0:
|
|
221
221
|
case 125: g = 0;
|
|
222
222
|
case 59 + u:
|
|
223
|
-
_ == -1 && (w = T(w, /\f/g, "")), p > 0 && O(w) - d && k(p > 32 ?
|
|
223
|
+
_ == -1 && (w = T(w, /\f/g, "")), p > 0 && O(w) - d && k(p > 32 ? ve(w + ";", r, n, d - 1) : ve(T(w, " ", "") + ";", r, n, d - 2), c);
|
|
224
224
|
break;
|
|
225
225
|
case 59: w += ";";
|
|
226
|
-
default: if (k(C =
|
|
226
|
+
default: if (k(C = ge(w, t, n, l, u, i, s, y, b = [], S = [], d), a), v === 123) if (u === 0) H(w, t, C, C, b, a, d, s, S);
|
|
227
227
|
else switch (f === 99 && E(w, 3) === 110 ? 100 : f) {
|
|
228
228
|
case 100:
|
|
229
229
|
case 108:
|
|
230
230
|
case 109:
|
|
231
231
|
case 115:
|
|
232
|
-
|
|
232
|
+
H(e, C, C, r && k(ge(e, C, C, 0, 0, i, s, y, i, b = [], d), S), i, S, d, s, r ? b : S);
|
|
233
233
|
break;
|
|
234
|
-
default:
|
|
234
|
+
default: H(w, C, C, C, [""], S, 0, s, S);
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
l = u = p = 0, h = _ = 1, y = w = "", d = o;
|
|
@@ -240,9 +240,9 @@ function U(e, t, n, r, i, a, o, s, c) {
|
|
|
240
240
|
default:
|
|
241
241
|
if (h < 1) {
|
|
242
242
|
if (v == 123) --h;
|
|
243
|
-
else if (v == 125 && h++ == 0 &&
|
|
243
|
+
else if (v == 125 && h++ == 0 && se() == 125) continue;
|
|
244
244
|
}
|
|
245
|
-
switch (w +=
|
|
245
|
+
switch (w += x(v), v * h) {
|
|
246
246
|
case 38:
|
|
247
247
|
_ = u > 0 ? 1 : (w += "\f", -1);
|
|
248
248
|
break;
|
|
@@ -250,57 +250,57 @@ function U(e, t, n, r, i, a, o, s, c) {
|
|
|
250
250
|
s[l++] = (O(w) - 1) * _, _ = 1;
|
|
251
251
|
break;
|
|
252
252
|
case 64:
|
|
253
|
-
|
|
253
|
+
L() === 45 && (w += V(I())), f = L(), u = d = O(y = w += me(R())), v++;
|
|
254
254
|
break;
|
|
255
255
|
case 45: m === 45 && O(w) == 2 && (h = 0);
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
return a;
|
|
259
259
|
}
|
|
260
|
-
function
|
|
261
|
-
for (var d = i - 1, f = i === 0 ? a : [""], p =
|
|
262
|
-
return
|
|
260
|
+
function ge(e, t, n, r, i, a, o, s, c, l, u) {
|
|
261
|
+
for (var d = i - 1, f = i === 0 ? a : [""], p = ne(f), m = 0, g = 0, _ = 0; m < r; ++m) for (var v = 0, y = D(e, d + 1, d = b(g = o[m])), x = e; v < p; ++v) (x = w(g > 0 ? f[v] + " " + y : T(y, /&\f/g, f[v]))) && (c[_++] = x);
|
|
262
|
+
return ae(e, t, n, i === 0 ? h : s, c, l, u);
|
|
263
263
|
}
|
|
264
|
-
function
|
|
265
|
-
return
|
|
264
|
+
function _e(e, t, n) {
|
|
265
|
+
return ae(e, t, n, m, x(oe()), D(e, 2, -2), 0);
|
|
266
266
|
}
|
|
267
|
-
function
|
|
268
|
-
return
|
|
267
|
+
function ve(e, t, n, r) {
|
|
268
|
+
return ae(e, t, n, g, D(e, 0, r), D(e, r + 1, -1), r);
|
|
269
269
|
}
|
|
270
270
|
//#endregion
|
|
271
271
|
//#region node_modules/stylis/src/Serializer.js
|
|
272
|
-
function
|
|
273
|
-
for (var n = "", r =
|
|
272
|
+
function U(e, t) {
|
|
273
|
+
for (var n = "", r = ne(e), i = 0; i < r; i++) n += t(e[i], i, e, t) || "";
|
|
274
274
|
return n;
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function ye(e, t, n, r) {
|
|
277
277
|
switch (e.type) {
|
|
278
|
-
case
|
|
279
|
-
case
|
|
280
|
-
case
|
|
281
|
-
case
|
|
282
|
-
case
|
|
283
|
-
case
|
|
278
|
+
case y: if (e.children.length) break;
|
|
279
|
+
case _:
|
|
280
|
+
case g: return e.return = e.return || e.value;
|
|
281
|
+
case m: return "";
|
|
282
|
+
case v: return e.return = e.value + "{" + U(e.children, r) + "}";
|
|
283
|
+
case h: e.value = e.props.join(",");
|
|
284
284
|
}
|
|
285
|
-
return O(n =
|
|
285
|
+
return O(n = U(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
|
|
286
286
|
}
|
|
287
287
|
//#endregion
|
|
288
288
|
//#region node_modules/stylis/src/Middleware.js
|
|
289
|
-
function
|
|
290
|
-
var t =
|
|
289
|
+
function be(e) {
|
|
290
|
+
var t = ne(e);
|
|
291
291
|
return function(n, r, i, a) {
|
|
292
292
|
for (var o = "", s = 0; s < t; s++) o += e[s](n, r, i, a) || "";
|
|
293
293
|
return o;
|
|
294
294
|
};
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function xe(e) {
|
|
297
297
|
return function(t) {
|
|
298
298
|
t.root || (t = t.return) && e(t);
|
|
299
299
|
};
|
|
300
300
|
}
|
|
301
301
|
//#endregion
|
|
302
302
|
//#region node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
|
|
303
|
-
function
|
|
303
|
+
function Se(e) {
|
|
304
304
|
var t = Object.create(null);
|
|
305
305
|
return function(n) {
|
|
306
306
|
return t[n] === void 0 && (t[n] = e(n)), t[n];
|
|
@@ -308,46 +308,46 @@ function be(e) {
|
|
|
308
308
|
}
|
|
309
309
|
//#endregion
|
|
310
310
|
//#region node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
|
|
311
|
-
var
|
|
312
|
-
for (var r = 0, i = 0; r = i, i =
|
|
313
|
-
return
|
|
314
|
-
},
|
|
311
|
+
var Ce = function(e, t, n) {
|
|
312
|
+
for (var r = 0, i = 0; r = i, i = L(), r === 38 && i === 12 && (t[n] = 1), !B(i);) I();
|
|
313
|
+
return z(e, M);
|
|
314
|
+
}, we = function(e, t) {
|
|
315
315
|
var n = -1, r = 44;
|
|
316
316
|
do
|
|
317
|
-
switch (
|
|
317
|
+
switch (B(r)) {
|
|
318
318
|
case 0:
|
|
319
|
-
r === 38 &&
|
|
319
|
+
r === 38 && L() === 12 && (t[n] = 1), e[n] += Ce(M - 1, t, n);
|
|
320
320
|
break;
|
|
321
321
|
case 2:
|
|
322
|
-
e[n] +=
|
|
322
|
+
e[n] += V(r);
|
|
323
323
|
break;
|
|
324
324
|
case 4: if (r === 44) {
|
|
325
|
-
e[++n] =
|
|
325
|
+
e[++n] = L() === 58 ? "&\f" : "", t[n] = e[n].length;
|
|
326
326
|
break;
|
|
327
327
|
}
|
|
328
|
-
default: e[n] +=
|
|
328
|
+
default: e[n] += x(r);
|
|
329
329
|
}
|
|
330
|
-
while (r =
|
|
330
|
+
while (r = I());
|
|
331
331
|
return e;
|
|
332
|
-
},
|
|
333
|
-
return
|
|
334
|
-
},
|
|
332
|
+
}, Te = function(e, t) {
|
|
333
|
+
return le(we(ce(e), t));
|
|
334
|
+
}, Ee = /* #__PURE__ */ new WeakMap(), De = function(e) {
|
|
335
335
|
if (!(e.type !== "rule" || !e.parent || e.length < 1)) {
|
|
336
336
|
for (var t = e.value, n = e.parent, r = e.column === n.column && e.line === n.line; n.type !== "rule";) if (n = n.parent, !n) return;
|
|
337
|
-
if (!(e.props.length === 1 && t.charCodeAt(0) !== 58 && !
|
|
338
|
-
|
|
339
|
-
for (var i = [], a =
|
|
337
|
+
if (!(e.props.length === 1 && t.charCodeAt(0) !== 58 && !Ee.get(n)) && !r) {
|
|
338
|
+
Ee.set(e, !0);
|
|
339
|
+
for (var i = [], a = Te(t, i), o = n.props, s = 0, c = 0; s < a.length; s++) for (var l = 0; l < o.length; l++, c++) e.props[c] = i[s] ? a[s].replace(/&\f/g, o[l]) : o[l] + " " + a[s];
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
|
-
},
|
|
342
|
+
}, Oe = function(e) {
|
|
343
343
|
if (e.type === "decl") {
|
|
344
344
|
var t = e.value;
|
|
345
345
|
t.charCodeAt(0) === 108 && t.charCodeAt(2) === 98 && (e.return = "", e.value = "");
|
|
346
346
|
}
|
|
347
347
|
};
|
|
348
|
-
function
|
|
349
|
-
switch (
|
|
350
|
-
case 5103: return
|
|
348
|
+
function ke(e, t) {
|
|
349
|
+
switch (C(e, t)) {
|
|
350
|
+
case 5103: return p + "print-" + e + e;
|
|
351
351
|
case 5737:
|
|
352
352
|
case 4201:
|
|
353
353
|
case 3177:
|
|
@@ -372,30 +372,30 @@ function De(e, t) {
|
|
|
372
372
|
case 5109:
|
|
373
373
|
case 5365:
|
|
374
374
|
case 5621:
|
|
375
|
-
case 3829: return
|
|
375
|
+
case 3829: return p + e + e;
|
|
376
376
|
case 5349:
|
|
377
377
|
case 4246:
|
|
378
378
|
case 4810:
|
|
379
379
|
case 6968:
|
|
380
|
-
case 2756: return
|
|
380
|
+
case 2756: return p + e + f + e + d + e + e;
|
|
381
381
|
case 6828:
|
|
382
|
-
case 4268: return
|
|
383
|
-
case 6165: return
|
|
384
|
-
case 5187: return
|
|
385
|
-
case 5443: return
|
|
386
|
-
case 4675: return
|
|
387
|
-
case 5548: return
|
|
388
|
-
case 5292: return
|
|
389
|
-
case 6060: return
|
|
390
|
-
case 4554: return
|
|
391
|
-
case 6187: return T(T(T(e, /(zoom-|grab)/,
|
|
382
|
+
case 4268: return p + e + d + e + e;
|
|
383
|
+
case 6165: return p + e + d + "flex-" + e + e;
|
|
384
|
+
case 5187: return p + e + T(e, /(\w+).+(:[^]+)/, p + "box-$1$2" + d + "flex-$1$2") + e;
|
|
385
|
+
case 5443: return p + e + d + "flex-item-" + T(e, /flex-|-self/, "") + e;
|
|
386
|
+
case 4675: return p + e + d + "flex-line-pack" + T(e, /align-content|flex-|-self/, "") + e;
|
|
387
|
+
case 5548: return p + e + d + T(e, "shrink", "negative") + e;
|
|
388
|
+
case 5292: return p + e + d + T(e, "basis", "preferred-size") + e;
|
|
389
|
+
case 6060: return p + "box-" + T(e, "-grow", "") + p + e + d + T(e, "grow", "positive") + e;
|
|
390
|
+
case 4554: return p + T(e, /([^-])(transform)/g, "$1" + p + "$2") + e;
|
|
391
|
+
case 6187: return T(T(T(e, /(zoom-|grab)/, p + "$1"), /(image-set)/, p + "$1"), e, "") + e;
|
|
392
392
|
case 5495:
|
|
393
|
-
case 3959: return T(e, /(image-set\([^]*)/,
|
|
394
|
-
case 4968: return T(T(e, /(.+:)(flex-)?(.*)/,
|
|
393
|
+
case 3959: return T(e, /(image-set\([^]*)/, p + "$1$`$1");
|
|
394
|
+
case 4968: return T(T(e, /(.+:)(flex-)?(.*)/, p + "box-pack:$3" + d + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + p + e + e;
|
|
395
395
|
case 4095:
|
|
396
396
|
case 3583:
|
|
397
397
|
case 4068:
|
|
398
|
-
case 2532: return T(e, /(.+)-inline(.+)/,
|
|
398
|
+
case 2532: return T(e, /(.+)-inline(.+)/, p + "$1$2") + e;
|
|
399
399
|
case 8116:
|
|
400
400
|
case 7059:
|
|
401
401
|
case 5753:
|
|
@@ -410,47 +410,47 @@ function De(e, t) {
|
|
|
410
410
|
case 4765:
|
|
411
411
|
if (O(e) - 1 - t > 6) switch (E(e, t + 1)) {
|
|
412
412
|
case 109: if (E(e, t + 4) !== 45) break;
|
|
413
|
-
case 102: return T(e, /(.+:)(.+)-([^]+)/, "$1" +
|
|
414
|
-
case 115: return ~
|
|
413
|
+
case 102: return T(e, /(.+:)(.+)-([^]+)/, "$1" + p + "$2-$3$1" + f + (E(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
414
|
+
case 115: return ~te(e, "stretch") ? ke(T(e, "stretch", "fill-available"), t) + e : e;
|
|
415
415
|
}
|
|
416
416
|
break;
|
|
417
417
|
case 4949: if (E(e, t + 1) !== 115) break;
|
|
418
418
|
case 6444:
|
|
419
|
-
switch (E(e, O(e) - 3 - (~
|
|
420
|
-
case 107: return T(e, ":", ":" +
|
|
421
|
-
case 101: return T(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" +
|
|
419
|
+
switch (E(e, O(e) - 3 - (~te(e, "!important") && 10))) {
|
|
420
|
+
case 107: return T(e, ":", ":" + p) + e;
|
|
421
|
+
case 101: return T(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + p + (E(e, 14) === 45 ? "inline-" : "") + "box$3$1" + p + "$2$3$1" + d + "$2box$3") + e;
|
|
422
422
|
}
|
|
423
423
|
break;
|
|
424
424
|
case 5936:
|
|
425
425
|
switch (E(e, t + 11)) {
|
|
426
|
-
case 114: return
|
|
427
|
-
case 108: return
|
|
428
|
-
case 45: return
|
|
426
|
+
case 114: return p + e + d + T(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
427
|
+
case 108: return p + e + d + T(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
428
|
+
case 45: return p + e + d + T(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
429
429
|
}
|
|
430
|
-
return
|
|
430
|
+
return p + e + d + e + e;
|
|
431
431
|
}
|
|
432
432
|
return e;
|
|
433
433
|
}
|
|
434
|
-
var
|
|
434
|
+
var Ae = [function(e, t, n, r) {
|
|
435
435
|
if (e.length > -1 && !e.return) switch (e.type) {
|
|
436
|
-
case
|
|
437
|
-
e.return =
|
|
436
|
+
case g:
|
|
437
|
+
e.return = ke(e.value, e.length);
|
|
438
438
|
break;
|
|
439
|
-
case
|
|
440
|
-
case
|
|
441
|
-
switch (
|
|
439
|
+
case v: return U([F(e, { value: T(e.value, "@", "@" + p) })], r);
|
|
440
|
+
case h: if (e.length) return re(e.props, function(t) {
|
|
441
|
+
switch (ee(t, /(::plac\w+|:read-\w+)/)) {
|
|
442
442
|
case ":read-only":
|
|
443
|
-
case ":read-write": return
|
|
444
|
-
case "::placeholder": return
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
443
|
+
case ":read-write": return U([F(e, { props: [T(t, /:(read-\w+)/, ":" + f + "$1")] })], r);
|
|
444
|
+
case "::placeholder": return U([
|
|
445
|
+
F(e, { props: [T(t, /:(plac\w+)/, ":" + p + "input-$1")] }),
|
|
446
|
+
F(e, { props: [T(t, /:(plac\w+)/, ":" + f + "$1")] }),
|
|
447
|
+
F(e, { props: [T(t, /:(plac\w+)/, d + "input-$1")] })
|
|
448
448
|
], r);
|
|
449
449
|
}
|
|
450
450
|
return "";
|
|
451
451
|
});
|
|
452
452
|
}
|
|
453
|
-
}],
|
|
453
|
+
}], je = function(e) {
|
|
454
454
|
var t = e.key;
|
|
455
455
|
if (t === "css") {
|
|
456
456
|
var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
@@ -458,22 +458,22 @@ var Oe = [function(e, t, n, r) {
|
|
|
458
458
|
e.getAttribute("data-emotion").indexOf(" ") !== -1 && (document.head.appendChild(e), e.setAttribute("data-s", ""));
|
|
459
459
|
});
|
|
460
460
|
}
|
|
461
|
-
var r = e.stylisPlugins ||
|
|
461
|
+
var r = e.stylisPlugins || Ae, i = {}, a, o = [];
|
|
462
462
|
a = e.container || document.head, Array.prototype.forEach.call(document.querySelectorAll("style[data-emotion^=\"" + t + " \"]"), function(e) {
|
|
463
463
|
for (var t = e.getAttribute("data-emotion").split(" "), n = 1; n < t.length; n++) i[t[n]] = !0;
|
|
464
464
|
o.push(e);
|
|
465
465
|
});
|
|
466
|
-
var s, c = [
|
|
467
|
-
|
|
468
|
-
})], f =
|
|
469
|
-
return
|
|
466
|
+
var s, c = [De, Oe], l, d = [ye, xe(function(e) {
|
|
467
|
+
l.insert(e);
|
|
468
|
+
})], f = be(c.concat(r, d)), p = function(e) {
|
|
469
|
+
return U(he(e), f);
|
|
470
470
|
};
|
|
471
471
|
s = function(e, t, n, r) {
|
|
472
|
-
|
|
472
|
+
l = n, p(e ? e + "{" + t.styles + "}" : t.styles), r && (m.inserted[t.name] = !0);
|
|
473
473
|
};
|
|
474
474
|
var m = {
|
|
475
475
|
key: t,
|
|
476
|
-
sheet: new
|
|
476
|
+
sheet: new u({
|
|
477
477
|
key: t,
|
|
478
478
|
container: a,
|
|
479
479
|
nonce: e.nonce,
|
|
@@ -490,7 +490,7 @@ var Oe = [function(e, t, n, r) {
|
|
|
490
490
|
};
|
|
491
491
|
//#endregion
|
|
492
492
|
//#region node_modules/@emotion/hash/dist/emotion-hash.esm.js
|
|
493
|
-
function
|
|
493
|
+
function Me(e) {
|
|
494
494
|
for (var t = 0, n, r = 0, i = e.length; i >= 4; ++r, i -= 4) n = e.charCodeAt(r) & 255 | (e.charCodeAt(++r) & 255) << 8 | (e.charCodeAt(++r) & 255) << 16 | (e.charCodeAt(++r) & 255) << 24, n = (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= n >>> 24, t = (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16) ^ (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
|
|
495
495
|
switch (i) {
|
|
496
496
|
case 3: t ^= (e.charCodeAt(r + 2) & 255) << 16;
|
|
@@ -501,7 +501,7 @@ function Ae(e) {
|
|
|
501
501
|
}
|
|
502
502
|
//#endregion
|
|
503
503
|
//#region node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
|
|
504
|
-
var
|
|
504
|
+
var Ne = {
|
|
505
505
|
animationIterationCount: 1,
|
|
506
506
|
aspectRatio: 1,
|
|
507
507
|
borderImageOutset: 1,
|
|
@@ -549,26 +549,26 @@ var je = {
|
|
|
549
549
|
strokeMiterlimit: 1,
|
|
550
550
|
strokeOpacity: 1,
|
|
551
551
|
strokeWidth: 1
|
|
552
|
-
},
|
|
552
|
+
}, Pe = /[A-Z]|^ms/g, Fe = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Ie = function(e) {
|
|
553
553
|
return e.charCodeAt(1) === 45;
|
|
554
|
-
},
|
|
554
|
+
}, Le = function(e) {
|
|
555
555
|
return e != null && typeof e != "boolean";
|
|
556
|
-
},
|
|
557
|
-
return
|
|
558
|
-
}),
|
|
556
|
+
}, Re = /* #__PURE__ */ Se(function(e) {
|
|
557
|
+
return Ie(e) ? e : e.replace(Pe, "-$&").toLowerCase();
|
|
558
|
+
}), ze = function(e, t) {
|
|
559
559
|
switch (e) {
|
|
560
560
|
case "animation":
|
|
561
|
-
case "animationName": if (typeof t == "string") return t.replace(
|
|
562
|
-
return
|
|
561
|
+
case "animationName": if (typeof t == "string") return t.replace(Fe, function(e, t, n) {
|
|
562
|
+
return G = {
|
|
563
563
|
name: t,
|
|
564
564
|
styles: n,
|
|
565
|
-
next:
|
|
565
|
+
next: G
|
|
566
566
|
}, t;
|
|
567
567
|
});
|
|
568
568
|
}
|
|
569
|
-
return
|
|
569
|
+
return Ne[e] !== 1 && !Ie(e) && typeof t == "number" && t !== 0 ? t + "px" : t;
|
|
570
570
|
};
|
|
571
|
-
function
|
|
571
|
+
function W(e, t, n) {
|
|
572
572
|
if (n == null) return "";
|
|
573
573
|
var r = n;
|
|
574
574
|
if (r.__emotion_styles !== void 0) return r;
|
|
@@ -576,25 +576,25 @@ function G(e, t, n) {
|
|
|
576
576
|
case "boolean": return "";
|
|
577
577
|
case "object":
|
|
578
578
|
var i = n;
|
|
579
|
-
if (i.anim === 1) return
|
|
579
|
+
if (i.anim === 1) return G = {
|
|
580
580
|
name: i.name,
|
|
581
581
|
styles: i.styles,
|
|
582
|
-
next:
|
|
582
|
+
next: G
|
|
583
583
|
}, i.name;
|
|
584
584
|
var a = n;
|
|
585
585
|
if (a.styles !== void 0) {
|
|
586
586
|
var o = a.next;
|
|
587
|
-
if (o !== void 0) for (; o !== void 0;)
|
|
587
|
+
if (o !== void 0) for (; o !== void 0;) G = {
|
|
588
588
|
name: o.name,
|
|
589
589
|
styles: o.styles,
|
|
590
|
-
next:
|
|
590
|
+
next: G
|
|
591
591
|
}, o = o.next;
|
|
592
592
|
return a.styles + ";";
|
|
593
593
|
}
|
|
594
|
-
return
|
|
594
|
+
return Be(e, t, n);
|
|
595
595
|
case "function": if (e !== void 0) {
|
|
596
|
-
var s =
|
|
597
|
-
return
|
|
596
|
+
var s = G, c = n(e);
|
|
597
|
+
return G = s, W(e, t, c);
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
600
|
var l = n;
|
|
@@ -602,21 +602,21 @@ function G(e, t, n) {
|
|
|
602
602
|
var u = t[l];
|
|
603
603
|
return u === void 0 ? l : u;
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function Be(e, t, n) {
|
|
606
606
|
var r = "";
|
|
607
|
-
if (Array.isArray(n)) for (var i = 0; i < n.length; i++) r +=
|
|
607
|
+
if (Array.isArray(n)) for (var i = 0; i < n.length; i++) r += W(e, t, n[i]) + ";";
|
|
608
608
|
else for (var a in n) {
|
|
609
609
|
var o = n[a];
|
|
610
610
|
if (typeof o != "object") {
|
|
611
611
|
var s = o;
|
|
612
|
-
t != null && t[s] !== void 0 ? r += a + "{" + t[s] + "}" :
|
|
613
|
-
} else if (Array.isArray(o) && typeof o[0] == "string" && (t == null || t[o[0]] === void 0)) for (var c = 0; c < o.length; c++)
|
|
612
|
+
t != null && t[s] !== void 0 ? r += a + "{" + t[s] + "}" : Le(s) && (r += Re(a) + ":" + ze(a, s) + ";");
|
|
613
|
+
} else if (Array.isArray(o) && typeof o[0] == "string" && (t == null || t[o[0]] === void 0)) for (var c = 0; c < o.length; c++) Le(o[c]) && (r += Re(a) + ":" + ze(a, o[c]) + ";");
|
|
614
614
|
else {
|
|
615
|
-
var l =
|
|
615
|
+
var l = W(e, t, o);
|
|
616
616
|
switch (a) {
|
|
617
617
|
case "animation":
|
|
618
618
|
case "animationName":
|
|
619
|
-
r +=
|
|
619
|
+
r += Re(a) + ":" + l + ";";
|
|
620
620
|
break;
|
|
621
621
|
default: r += a + "{" + l + "}";
|
|
622
622
|
}
|
|
@@ -624,35 +624,35 @@ function Re(e, t, n) {
|
|
|
624
624
|
}
|
|
625
625
|
return r;
|
|
626
626
|
}
|
|
627
|
-
var
|
|
628
|
-
function
|
|
627
|
+
var Ve = /label:\s*([^\s;{]+)\s*(;|$)/g, G;
|
|
628
|
+
function He(e, t, n) {
|
|
629
629
|
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0) return e[0];
|
|
630
630
|
var r = !0, i = "";
|
|
631
|
-
|
|
631
|
+
G = void 0;
|
|
632
632
|
var a = e[0];
|
|
633
|
-
a == null || a.raw === void 0 ? (r = !1, i +=
|
|
634
|
-
for (var o = 1; o < e.length; o++) i +=
|
|
635
|
-
|
|
636
|
-
for (var s = "", c; (c =
|
|
633
|
+
a == null || a.raw === void 0 ? (r = !1, i += W(n, t, a)) : i += a[0];
|
|
634
|
+
for (var o = 1; o < e.length; o++) i += W(n, t, e[o]), r && (i += a[o]);
|
|
635
|
+
Ve.lastIndex = 0;
|
|
636
|
+
for (var s = "", c; (c = Ve.exec(i)) !== null;) s += "-" + c[1];
|
|
637
637
|
return {
|
|
638
|
-
name:
|
|
638
|
+
name: Me(i) + s,
|
|
639
639
|
styles: i,
|
|
640
|
-
next:
|
|
640
|
+
next: G
|
|
641
641
|
};
|
|
642
642
|
}
|
|
643
643
|
//#endregion
|
|
644
644
|
//#region node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js
|
|
645
|
-
function
|
|
645
|
+
function Ue(e, t, n) {
|
|
646
646
|
var r = "";
|
|
647
647
|
return n.split(" ").forEach(function(n) {
|
|
648
648
|
e[n] === void 0 ? n && (r += n + " ") : t.push(e[n] + ";");
|
|
649
649
|
}), r;
|
|
650
650
|
}
|
|
651
|
-
var
|
|
651
|
+
var We = function(e, t, n) {
|
|
652
652
|
var r = e.key + "-" + t.name;
|
|
653
653
|
n === !1 && e.registered[r] === void 0 && (e.registered[r] = t.styles);
|
|
654
|
-
},
|
|
655
|
-
|
|
654
|
+
}, Ge = function(e, t, n) {
|
|
655
|
+
We(e, t, n);
|
|
656
656
|
var r = e.key + "-" + t.name;
|
|
657
657
|
if (e.inserted[t.name] === void 0) {
|
|
658
658
|
var i = t;
|
|
@@ -663,34 +663,34 @@ var He = function(e, t, n) {
|
|
|
663
663
|
};
|
|
664
664
|
//#endregion
|
|
665
665
|
//#region node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.js
|
|
666
|
-
function
|
|
666
|
+
function Ke(e, t) {
|
|
667
667
|
if (e.inserted[t.name] === void 0) return e.insert("", t, e.sheet, !0);
|
|
668
668
|
}
|
|
669
|
-
function
|
|
670
|
-
var r = [], i =
|
|
669
|
+
function qe(e, t, n) {
|
|
670
|
+
var r = [], i = Ue(e, r, n);
|
|
671
671
|
return r.length < 2 ? n : i + t(r);
|
|
672
672
|
}
|
|
673
|
-
var
|
|
674
|
-
var t =
|
|
673
|
+
var Je = function(e) {
|
|
674
|
+
var t = je(e);
|
|
675
675
|
t.sheet.speedy = function(e) {
|
|
676
676
|
this.isSpeedy = e;
|
|
677
677
|
}, t.compat = !0;
|
|
678
678
|
var n = function() {
|
|
679
|
-
var e =
|
|
680
|
-
return
|
|
679
|
+
var e = He([...arguments], t.registered, void 0);
|
|
680
|
+
return Ge(t, e, !1), t.key + "-" + e.name;
|
|
681
681
|
};
|
|
682
682
|
return {
|
|
683
683
|
css: n,
|
|
684
684
|
cx: function() {
|
|
685
685
|
var e = [...arguments];
|
|
686
|
-
return
|
|
686
|
+
return qe(t.registered, n, Ye(e));
|
|
687
687
|
},
|
|
688
688
|
injectGlobal: function() {
|
|
689
|
-
|
|
689
|
+
Ke(t, He([...arguments], t.registered));
|
|
690
690
|
},
|
|
691
691
|
keyframes: function() {
|
|
692
|
-
var e =
|
|
693
|
-
return
|
|
692
|
+
var e = He([...arguments], t.registered), n = "animation-" + e.name;
|
|
693
|
+
return Ke(t, {
|
|
694
694
|
name: e.name,
|
|
695
695
|
styles: "@keyframes " + n + "{" + e.styles + "}"
|
|
696
696
|
}), n;
|
|
@@ -705,10 +705,10 @@ var Ke = function(e) {
|
|
|
705
705
|
},
|
|
706
706
|
sheet: t.sheet,
|
|
707
707
|
cache: t,
|
|
708
|
-
getRegisteredStyles:
|
|
709
|
-
merge:
|
|
708
|
+
getRegisteredStyles: Ue.bind(null, t.registered),
|
|
709
|
+
merge: qe.bind(null, t.registered, n)
|
|
710
710
|
};
|
|
711
|
-
},
|
|
711
|
+
}, Ye = function e(t) {
|
|
712
712
|
for (var n = "", r = 0; r < t.length; r++) {
|
|
713
713
|
var i = t[r];
|
|
714
714
|
if (i != null) {
|
|
@@ -725,15 +725,15 @@ var Ke = function(e) {
|
|
|
725
725
|
}
|
|
726
726
|
}
|
|
727
727
|
return n;
|
|
728
|
-
},
|
|
729
|
-
|
|
730
|
-
var
|
|
731
|
-
|
|
732
|
-
var
|
|
733
|
-
|
|
728
|
+
}, K = Je({ key: "css" });
|
|
729
|
+
K.flush, K.hydrate;
|
|
730
|
+
var q = K.cx;
|
|
731
|
+
K.merge, K.getRegisteredStyles;
|
|
732
|
+
var Xe = K.injectGlobal, Ze = K.keyframes, J = K.css;
|
|
733
|
+
K.sheet, K.cache;
|
|
734
734
|
//#endregion
|
|
735
735
|
//#region \0virtual:svg-sprite
|
|
736
|
-
var
|
|
736
|
+
var Qe = "<svg xmlns=\"http://www.w3.org/2000/svg\" style=\"position:absolute;width:0;height:0;\" id=\"svg-sprite\"><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-bars-corner\" viewBox=\"0 0 24 24\"><path d=\"M7 15v1a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-1a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1\"/><path d=\"M7 8v1a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1\"/><path d=\"M3 3v10c0 3.771 0 5.657 1.172 6.828S7.229 21 11 21h10\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-check\" viewBox=\"0 0 24 24\"><path d=\"m5 13.26 2.586 2.697C8.252 16.652 8.586 17 9 17s.748-.348 1.414-1.043L19 7\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-exclamation-triangle\" viewBox=\"0 0 24 24\"><path d=\"M13.925 21h-3.85c-4.63 0-6.945 0-7.799-1.506-.853-1.506.331-3.503 2.7-7.495L6.9 8.753C9.176 4.918 10.313 3 12 3s2.824 1.918 5.1 5.753L19.023 12c2.369 3.992 3.553 5.989 2.7 7.495C20.87 21 18.555 21 13.924 21\"/><path d=\"M12 9v4\"/><path d=\"M12.125 16.75H12m.25 0a.25.25 0 1 1-.5 0 .25.25 0 0 1 .5 0\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-home\" viewBox=\"0 0 24 24\"><path d=\"M3 11.99v2.51c0 3.3 0 4.95 1.025 5.975S6.7 21.5 10 21.5h4c3.3 0 4.95 0 5.975-1.025S21 17.8 21 14.5v-2.51c0-1.682 0-2.522-.356-3.25s-1.02-1.244-2.346-2.276l-2-1.555C14.233 3.303 13.2 2.5 12 2.5s-2.233.803-4.298 2.409l-2 1.555C4.375 7.496 3.712 8.012 3.356 8.74S3 10.308 3 11.99\"/><path d=\"M15 17c-.8.622-1.85 1-3 1s-2.2-.378-3-1\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-hourglass\" viewBox=\"0 0 24 24\"><path d=\"M4 3h16\"/><path d=\"M5.5 3v2.03A4 4 0 0 0 7.061 8.2L12 12l4.939-3.8A4 4 0 0 0 18.5 5.03V3\"/><path d=\"M5.5 21v-2.03a4 4 0 0 1 1.561-3.17L12 12l4.939 3.8a4 4 0 0 1 1.561 3.17V21\"/><path d=\"M4 21h16\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-menu\" viewBox=\"0 0 24 24\"><path d=\"M4 9h16\"/><path d=\"M4 15h10\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-plus\" viewBox=\"0 0 24 24\"><path d=\"M11.992 4v16m8-8h-16\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-x\" viewBox=\"0 0 24 24\"><path d=\"m18 6-6 6m0 0-6 6m6-6 6 6m-6-6L6 6\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-trash\" viewBox=\"0 0 24 24\"><path d=\"m19.5 5.5-.62 10.025c-.158 2.561-.237 3.842-.88 4.763a4 4 0 0 1-1.2 1.128c-.957.584-2.24.584-4.806.584-2.57 0-3.855 0-4.814-.585a4 4 0 0 1-1.2-1.13c-.642-.922-.72-2.205-.874-4.77L4.5 5.5\"/><path d=\"M3 5.5h18m-4.944 0-.683-1.408c-.453-.936-.68-1.403-1.071-1.695a2 2 0 0 0-.275-.172C13.594 2 13.074 2 12.035 2c-1.066 0-1.599 0-2.04.234a2 2 0 0 0-.278.18c-.395.303-.616.788-1.058 1.757L8.053 5.5\"/><path d=\"M9.5 16.5v-6\"/><path d=\"M14.5 16.5v-6\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-list-play\" viewBox=\"0 0 24 24\"><path stroke-linecap=\"round\" d=\"M3 5h18\"/><path stroke-linecap=\"round\" d=\"M3 12h6\"/><path d=\"M20.945 15.451c-.176.716-1.012 1.223-2.682 2.235-1.615.979-2.422 1.468-3.073 1.271a1.6 1.6 0 0 1-.712-.448C14 17.994 14 16.996 14 15s0-2.994.478-3.509c.198-.212.443-.367.712-.448.65-.197 1.458.293 3.073 1.271 1.67 1.012 2.506 1.518 2.682 2.235a1.9 1.9 0 0 1 0 .902Z\"/><path stroke-linecap=\"round\" d=\"M3 19h6\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-play\" viewBox=\"0 0 24 24\"><path d=\"M18.89 12.846c-.353 1.343-2.023 2.292-5.364 4.19-3.23 1.835-4.845 2.752-6.146 2.384a3.25 3.25 0 0 1-1.424-.841C5 17.614 5 15.743 5 12s0-5.614.956-6.579a3.25 3.25 0 0 1 1.424-.84c1.301-.37 2.916.548 6.146 2.383 3.34 1.898 5.011 2.847 5.365 4.19a3.3 3.3 0 0 1 0 1.692Z\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-eye\" viewBox=\"0 0 24 24\"><path d=\"M21.544 11.045c.304.426.456.64.456.955 0 .316-.152.529-.456.955C20.178 14.871 16.689 19 12 19c-4.69 0-8.178-4.13-9.544-6.045C2.152 12.529 2 12.315 2 12c0-.316.152-.529.456-.955C3.822 9.129 7.311 5 12 5c4.69 0 8.178 4.13 9.544 6.045Z\"/><path d=\"M15 12a3 3 0 1 0-6 0 3 3 0 0 0 6 0Z\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-sliders\" viewBox=\"0 0 24 24\"><path stroke-linejoin=\"round\" d=\"M2.5 12c0-4.478 0-6.718 1.391-8.109S7.521 2.5 12 2.5c4.478 0 6.718 0 8.109 1.391S21.5 7.521 21.5 12c0 4.478 0 6.718-1.391 8.109S16.479 21.5 12 21.5c-4.478 0-6.718 0-8.109-1.391S2.5 16.479 2.5 12Z\"/><path d=\"M8.5 10a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Z\"/><path d=\"M15.5 17a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z\"/><path stroke-linecap=\"round\" d=\"M10 8.5h7\"/><path stroke-linecap=\"round\" d=\"M14 15.5H7\"/></symbol></svg>", $e = !1, et = new URL("./assets/manrope.woff2", import.meta.url).href ?? "/fonts/manrope.woff2", Y = {
|
|
737
737
|
fontFamily: "Manrope",
|
|
738
738
|
zIndex: {
|
|
739
739
|
front: 1,
|
|
@@ -770,10 +770,10 @@ var Xe = "<svg xmlns=\"http://www.w3.org/2000/svg\" style=\"position:absolute;wi
|
|
|
770
770
|
stretch: "\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n "
|
|
771
771
|
},
|
|
772
772
|
load() {
|
|
773
|
-
|
|
773
|
+
$e || typeof document > "u" || (Xe(`
|
|
774
774
|
@font-face {
|
|
775
775
|
font-family: 'Manrope';
|
|
776
|
-
src: url('${
|
|
776
|
+
src: url('${et}') format('woff2');
|
|
777
777
|
font-weight: 100 900;
|
|
778
778
|
font-style: normal;
|
|
779
779
|
font-display: swap;
|
|
@@ -855,23 +855,23 @@ var Xe = "<svg xmlns=\"http://www.w3.org/2000/svg\" style=\"position:absolute;wi
|
|
|
855
855
|
|
|
856
856
|
[is-loading] { cursor: default !important; }
|
|
857
857
|
[is-clickable] { cursor: pointer; }
|
|
858
|
-
`), !(document.getElementById("svg-sprite") || !document.body) && (document.body.insertAdjacentHTML("afterbegin",
|
|
858
|
+
`), !(document.getElementById("svg-sprite") || !document.body) && (document.body.insertAdjacentHTML("afterbegin", Qe), $e = !0));
|
|
859
859
|
}
|
|
860
860
|
};
|
|
861
861
|
//#endregion
|
|
862
862
|
//#region src/components/_app-wrapper.jsx
|
|
863
|
-
function
|
|
863
|
+
function tt({ maxWidth: e = "67.5rem", children: t }) {
|
|
864
864
|
return /* @__PURE__ */ r(n, { children: /* @__PURE__ */ r("div", {
|
|
865
|
-
className:
|
|
865
|
+
className: nt.base,
|
|
866
866
|
children: /* @__PURE__ */ r("div", {
|
|
867
|
-
className:
|
|
867
|
+
className: nt.inner,
|
|
868
868
|
style: { maxWidth: e },
|
|
869
869
|
children: t
|
|
870
870
|
})
|
|
871
871
|
}) });
|
|
872
872
|
}
|
|
873
|
-
var
|
|
874
|
-
base:
|
|
873
|
+
var nt = {
|
|
874
|
+
base: J`
|
|
875
875
|
// The template is stretched over the entire viewport, and the vertical
|
|
876
876
|
// scrollbar is enabled manually.
|
|
877
877
|
// This is necessary so that the modal overlays can cover the scrollbar,
|
|
@@ -879,32 +879,32 @@ var et = {
|
|
|
879
879
|
// when it's displayed or not.
|
|
880
880
|
// Normally, we'd use the body element for this, but the modal overlay
|
|
881
881
|
// can't cover the scrollbar of the body element.
|
|
882
|
-
${
|
|
882
|
+
${Y.extends.stretch}
|
|
883
883
|
overflow-y: scroll;
|
|
884
884
|
overflow-x: hidden;
|
|
885
885
|
scroll-behavior: smooth;
|
|
886
886
|
`,
|
|
887
|
-
inner:
|
|
887
|
+
inner: J`
|
|
888
888
|
position: relative;
|
|
889
889
|
padding: 8rem 0;
|
|
890
890
|
margin: 0 auto;
|
|
891
891
|
`
|
|
892
|
-
},
|
|
893
|
-
className:
|
|
892
|
+
}, rt = ({ type: e = "normal", width: t = "100%", value: i = 0 }) => /* @__PURE__ */ r(n, { children: /* @__PURE__ */ r("div", {
|
|
893
|
+
className: X.base,
|
|
894
894
|
style: { width: t },
|
|
895
895
|
children: /* @__PURE__ */ r("div", {
|
|
896
|
-
className:
|
|
896
|
+
className: q(X.value, X[e] ?? X.normal),
|
|
897
897
|
style: { width: `${i}%` }
|
|
898
898
|
})
|
|
899
|
-
}) }),
|
|
900
|
-
base:
|
|
899
|
+
}) }), X = {
|
|
900
|
+
base: J`
|
|
901
901
|
position: relative;
|
|
902
902
|
border-radius: 16px;
|
|
903
903
|
height: .625rem;
|
|
904
|
-
border: solid 1px ${
|
|
905
|
-
background-color: ${
|
|
904
|
+
border: solid 1px ${Y.colors.border};
|
|
905
|
+
background-color: ${Y.colors.back.secondary};
|
|
906
906
|
`,
|
|
907
|
-
value:
|
|
907
|
+
value: J`
|
|
908
908
|
position: absolute;
|
|
909
909
|
top: -1px;
|
|
910
910
|
bottom: -1px;
|
|
@@ -913,20 +913,20 @@ var et = {
|
|
|
913
913
|
will-change: width;
|
|
914
914
|
transition: width .3s ease;
|
|
915
915
|
`,
|
|
916
|
-
normal:
|
|
917
|
-
border: solid 1px ${t(
|
|
918
|
-
background-color: ${
|
|
916
|
+
normal: J`
|
|
917
|
+
border: solid 1px ${t(Y.colors.primary, .3)};
|
|
918
|
+
background-color: ${Y.colors.primary};
|
|
919
919
|
`,
|
|
920
|
-
danger:
|
|
921
|
-
border: solid 1px ${t(
|
|
922
|
-
background-color: ${
|
|
920
|
+
danger: J`
|
|
921
|
+
border: solid 1px ${t(Y.colors.danger, .3)};
|
|
922
|
+
background-color: ${Y.colors.danger};
|
|
923
923
|
`
|
|
924
924
|
};
|
|
925
925
|
//#endregion
|
|
926
926
|
//#region src/components/_box.jsx
|
|
927
|
-
function
|
|
927
|
+
function it({ className: e, width: t, height: i, children: a }) {
|
|
928
928
|
return /* @__PURE__ */ r(n, { children: /* @__PURE__ */ r("div", {
|
|
929
|
-
className:
|
|
929
|
+
className: q(at.base, e),
|
|
930
930
|
style: {
|
|
931
931
|
width: t,
|
|
932
932
|
height: i
|
|
@@ -934,19 +934,19 @@ function nt({ className: e, width: t, height: i, children: a }) {
|
|
|
934
934
|
children: a
|
|
935
935
|
}) });
|
|
936
936
|
}
|
|
937
|
-
var
|
|
937
|
+
var at = { base: J`
|
|
938
938
|
position: relative;
|
|
939
939
|
border-radius: 18px;
|
|
940
940
|
border: solid 2px #eee;
|
|
941
941
|
padding: 1.875rem 1.25rem;
|
|
942
|
-
background-color: ${
|
|
943
|
-
box-shadow: ${
|
|
942
|
+
background-color: ${Y.colors.back.primary};
|
|
943
|
+
box-shadow: ${Y.colors.shadow.primary};
|
|
944
944
|
` };
|
|
945
945
|
//#endregion
|
|
946
946
|
//#region src/components/_icon.jsx
|
|
947
|
-
function
|
|
947
|
+
function Z({ className: e, size: t = "1.25rem", color: i = Y.colors.fore.primary, iconName: a, isSpinning: o }) {
|
|
948
948
|
return /* @__PURE__ */ r(n, { children: /* @__PURE__ */ r("svg", {
|
|
949
|
-
className:
|
|
949
|
+
className: q(ot.base, e),
|
|
950
950
|
style: {
|
|
951
951
|
color: i,
|
|
952
952
|
width: t,
|
|
@@ -957,14 +957,14 @@ function Q({ className: e, size: t = "1.25rem", color: i = X.colors.fore.primary
|
|
|
957
957
|
children: /* @__PURE__ */ r("use", { href: `#icon-${a}` })
|
|
958
958
|
}) });
|
|
959
959
|
}
|
|
960
|
-
var
|
|
960
|
+
var ot = { base: J`
|
|
961
961
|
fill: currentColor;
|
|
962
962
|
display: inline-block;
|
|
963
963
|
flex-shrink: 0;
|
|
964
964
|
will-change: transform;
|
|
965
965
|
transition: transform .1s linear;
|
|
966
966
|
|
|
967
|
-
&[is-spinning] { animation: ${
|
|
967
|
+
&[is-spinning] { animation: ${Ze`
|
|
968
968
|
0% {
|
|
969
969
|
transform: rotate(0deg);
|
|
970
970
|
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -983,7 +983,7 @@ var it = { base: Y`
|
|
|
983
983
|
` };
|
|
984
984
|
//#endregion
|
|
985
985
|
//#region src/components/_button.jsx
|
|
986
|
-
function
|
|
986
|
+
function st({ type: e = "primary", label: t, iconName: o, isDisabled: s = !1, isLoading: c = !1, onClick: l }) {
|
|
987
987
|
let u = o || c, d = a(null);
|
|
988
988
|
function f(e) {
|
|
989
989
|
if (s || c) return;
|
|
@@ -997,7 +997,7 @@ function at({ type: e = "primary", label: t, iconName: o, isDisabled: s = !1, is
|
|
|
997
997
|
}
|
|
998
998
|
return /* @__PURE__ */ r(n, { children: /* @__PURE__ */ i("button", {
|
|
999
999
|
type: "button",
|
|
1000
|
-
className:
|
|
1000
|
+
className: q(Q.base, Q[e] ?? Q.normal),
|
|
1001
1001
|
"has-icon": u,
|
|
1002
1002
|
"is-disabled": s || void 0,
|
|
1003
1003
|
"is-loading": c || void 0,
|
|
@@ -1006,19 +1006,19 @@ function at({ type: e = "primary", label: t, iconName: o, isDisabled: s = !1, is
|
|
|
1006
1006
|
onClick: f,
|
|
1007
1007
|
children: [
|
|
1008
1008
|
u && /* @__PURE__ */ r(n, { children: /* @__PURE__ */ r("div", {
|
|
1009
|
-
className:
|
|
1010
|
-
${
|
|
1009
|
+
className: J`
|
|
1010
|
+
${Y.extends.verticalCenter}
|
|
1011
1011
|
|
|
1012
1012
|
left: .5rem;
|
|
1013
1013
|
`,
|
|
1014
|
-
children: c ? /* @__PURE__ */ r(
|
|
1014
|
+
children: c ? /* @__PURE__ */ r(Z, {
|
|
1015
1015
|
name: "loader",
|
|
1016
1016
|
isSpinning: !0
|
|
1017
|
-
}) : /* @__PURE__ */ r(
|
|
1017
|
+
}) : /* @__PURE__ */ r(Z, { name: o })
|
|
1018
1018
|
}) }),
|
|
1019
1019
|
t,
|
|
1020
1020
|
d.value && /* @__PURE__ */ r(n, { children: /* @__PURE__ */ r("span", {
|
|
1021
|
-
className:
|
|
1021
|
+
className: Q.ripple,
|
|
1022
1022
|
style: {
|
|
1023
1023
|
left: d.value.x,
|
|
1024
1024
|
top: d.value.y,
|
|
@@ -1030,7 +1030,7 @@ function at({ type: e = "primary", label: t, iconName: o, isDisabled: s = !1, is
|
|
|
1030
1030
|
]
|
|
1031
1031
|
}) });
|
|
1032
1032
|
}
|
|
1033
|
-
var
|
|
1033
|
+
var ct = Ze`
|
|
1034
1034
|
from {
|
|
1035
1035
|
opacity: .4;
|
|
1036
1036
|
transform: translate(-50%, -50%) scale(0);
|
|
@@ -1040,8 +1040,8 @@ var ot = Ye`
|
|
|
1040
1040
|
opacity: 0;
|
|
1041
1041
|
transform: translate(-50%, -50%) scale(1);
|
|
1042
1042
|
}
|
|
1043
|
-
`,
|
|
1044
|
-
base:
|
|
1043
|
+
`, Q = {
|
|
1044
|
+
base: J`
|
|
1045
1045
|
font-size: .9rem;
|
|
1046
1046
|
display: inline-block;
|
|
1047
1047
|
position: relative;
|
|
@@ -1053,7 +1053,7 @@ var ot = Ye`
|
|
|
1053
1053
|
border-radius: 12px;
|
|
1054
1054
|
will-change: transform, border;
|
|
1055
1055
|
transition: transform .2s ease, border .2s ease;
|
|
1056
|
-
font-family: ${
|
|
1056
|
+
font-family: ${Y.fontFamily}, sans-serif;
|
|
1057
1057
|
|
|
1058
1058
|
&:active {
|
|
1059
1059
|
transform: translateY(2px);
|
|
@@ -1062,30 +1062,30 @@ var ot = Ye`
|
|
|
1062
1062
|
|
|
1063
1063
|
&[has-icon] { padding-left: 1.8rem; }
|
|
1064
1064
|
`,
|
|
1065
|
-
primary:
|
|
1066
|
-
color: ${t(
|
|
1067
|
-
border-bottom: solid 3px ${t(
|
|
1068
|
-
background-color: ${
|
|
1065
|
+
primary: J`
|
|
1066
|
+
color: ${t(Y.colors.primary, .6)};
|
|
1067
|
+
border-bottom: solid 3px ${t(Y.colors.primary, .25)};
|
|
1068
|
+
background-color: ${Y.colors.primary};
|
|
1069
1069
|
`,
|
|
1070
|
-
secondary:
|
|
1071
|
-
color: ${
|
|
1072
|
-
border-bottom: solid 3px ${t(
|
|
1073
|
-
background-color: ${
|
|
1070
|
+
secondary: J`
|
|
1071
|
+
color: ${Y.colors.fore.secondary};
|
|
1072
|
+
border-bottom: solid 3px ${t(Y.colors.secondary, .25)};
|
|
1073
|
+
background-color: ${Y.colors.secondary};
|
|
1074
1074
|
`,
|
|
1075
|
-
ripple:
|
|
1075
|
+
ripple: J`
|
|
1076
1076
|
position: absolute;
|
|
1077
1077
|
z-index: 1;
|
|
1078
1078
|
border-radius: 50%;
|
|
1079
1079
|
pointer-events: none;
|
|
1080
1080
|
background-color: currentColor;
|
|
1081
|
-
animation: ${
|
|
1081
|
+
animation: ${ct} .5s ease-out forwards;
|
|
1082
1082
|
`
|
|
1083
1083
|
};
|
|
1084
1084
|
//#endregion
|
|
1085
1085
|
//#region src/components/_layout.jsx
|
|
1086
|
-
function
|
|
1086
|
+
function lt({ className: e, height: t, direction: i = "row", justify: a, align: o, gap: s, children: c }) {
|
|
1087
1087
|
return /* @__PURE__ */ r(n, { children: /* @__PURE__ */ r("div", {
|
|
1088
|
-
className:
|
|
1088
|
+
className: q(ut.base, e),
|
|
1089
1089
|
style: {
|
|
1090
1090
|
height: t,
|
|
1091
1091
|
flexDirection: i,
|
|
@@ -1096,60 +1096,60 @@ function st({ className: e, height: t, direction: i = "row", justify: a, align:
|
|
|
1096
1096
|
children: c
|
|
1097
1097
|
}) });
|
|
1098
1098
|
}
|
|
1099
|
-
var
|
|
1099
|
+
var ut = { base: J`
|
|
1100
1100
|
display: flex;
|
|
1101
1101
|
` };
|
|
1102
1102
|
//#endregion
|
|
1103
1103
|
//#region src/components/_text.jsx
|
|
1104
|
-
function
|
|
1104
|
+
function dt({ as: e = "span", className: t, size: i = "normal", color: a = Y.colors.fore.primary, children: o }) {
|
|
1105
1105
|
return /* @__PURE__ */ r(n, { children: /* @__PURE__ */ r(e, {
|
|
1106
|
-
className:
|
|
1106
|
+
className: q(ft.base, ft[i] ?? ft.normal, t),
|
|
1107
1107
|
style: { color: a },
|
|
1108
1108
|
children: o
|
|
1109
1109
|
}) });
|
|
1110
1110
|
}
|
|
1111
|
-
var
|
|
1112
|
-
base:
|
|
1111
|
+
var ft = {
|
|
1112
|
+
base: J`
|
|
1113
1113
|
font-weight: 500;
|
|
1114
1114
|
letter-spacing: 1px;
|
|
1115
1115
|
`,
|
|
1116
|
-
normal:
|
|
1116
|
+
normal: J`
|
|
1117
1117
|
font-size: 1rem;
|
|
1118
1118
|
line-height: 1.125rem;
|
|
1119
1119
|
`,
|
|
1120
|
-
small:
|
|
1120
|
+
small: J`
|
|
1121
1121
|
font-size: 0.75rem;
|
|
1122
1122
|
line-height: 1rem;
|
|
1123
1123
|
`,
|
|
1124
|
-
tiny:
|
|
1124
|
+
tiny: J`
|
|
1125
1125
|
font-size: 0.65rem;
|
|
1126
1126
|
line-height: 1rem;
|
|
1127
1127
|
`
|
|
1128
1128
|
};
|
|
1129
1129
|
//#endregion
|
|
1130
1130
|
//#region src/components/_headline.jsx
|
|
1131
|
-
function
|
|
1131
|
+
function pt({ as: e = "h2", className: t, size: i = "normal", color: a = Y.colors.fore.primary, children: o }) {
|
|
1132
1132
|
return /* @__PURE__ */ r(n, { children: /* @__PURE__ */ r(e, {
|
|
1133
|
-
className:
|
|
1133
|
+
className: q(mt.base, mt[i] ?? mt.normal, t),
|
|
1134
1134
|
style: { color: a },
|
|
1135
1135
|
children: o
|
|
1136
1136
|
}) });
|
|
1137
1137
|
}
|
|
1138
|
-
var
|
|
1139
|
-
base:
|
|
1138
|
+
var mt = {
|
|
1139
|
+
base: J`
|
|
1140
1140
|
letter-spacing: 1px;
|
|
1141
1141
|
`,
|
|
1142
|
-
normal:
|
|
1142
|
+
normal: J`
|
|
1143
1143
|
font-weight: 500;
|
|
1144
1144
|
font-size: 1rem;
|
|
1145
1145
|
line-height: 1.2rem;
|
|
1146
1146
|
`,
|
|
1147
|
-
large:
|
|
1147
|
+
large: J`
|
|
1148
1148
|
font-weight: 600;
|
|
1149
1149
|
font-size: 1.4rem;
|
|
1150
1150
|
line-height: 1.2;
|
|
1151
1151
|
`,
|
|
1152
|
-
small:
|
|
1152
|
+
small: J`
|
|
1153
1153
|
font-weight: 500;
|
|
1154
1154
|
font-size: .9rem;
|
|
1155
1155
|
line-height: 1.2rem;
|
|
@@ -1157,7 +1157,7 @@ var ft = {
|
|
|
1157
1157
|
};
|
|
1158
1158
|
//#endregion
|
|
1159
1159
|
//#region src/components/_space.jsx
|
|
1160
|
-
function
|
|
1160
|
+
function ht({ size: e = 1 }) {
|
|
1161
1161
|
return /* @__PURE__ */ r(n, { children: /* @__PURE__ */ r("div", {
|
|
1162
1162
|
"aria-hidden": "true",
|
|
1163
1163
|
style: {
|
|
@@ -1168,35 +1168,35 @@ function pt({ size: e = 1 }) {
|
|
|
1168
1168
|
}
|
|
1169
1169
|
//#endregion
|
|
1170
1170
|
//#region src/components/_text-field.jsx
|
|
1171
|
-
function
|
|
1172
|
-
let
|
|
1173
|
-
function
|
|
1174
|
-
|
|
1171
|
+
function gt({ placeholder: e, value: t, width: o, isDisabled: c, onChange: l }) {
|
|
1172
|
+
let u = s(), d = a(t);
|
|
1173
|
+
function f({ target: e }) {
|
|
1174
|
+
d.value = e.value, l?.(d.value);
|
|
1175
1175
|
}
|
|
1176
1176
|
return /* @__PURE__ */ r(n, { children: /* @__PURE__ */ i("div", {
|
|
1177
|
-
className:
|
|
1177
|
+
className: _t.base,
|
|
1178
1178
|
style: { width: o },
|
|
1179
|
-
"is-disabled":
|
|
1180
|
-
children: [!
|
|
1181
|
-
className:
|
|
1182
|
-
|
|
1179
|
+
"is-disabled": c,
|
|
1180
|
+
children: [!d.value && e && /* @__PURE__ */ r("label", {
|
|
1181
|
+
className: _t.label,
|
|
1182
|
+
htmlFor: u,
|
|
1183
1183
|
children: e
|
|
1184
1184
|
}), /* @__PURE__ */ r("input", {
|
|
1185
|
-
id:
|
|
1186
|
-
name:
|
|
1187
|
-
className:
|
|
1188
|
-
value:
|
|
1189
|
-
disabled:
|
|
1185
|
+
id: u,
|
|
1186
|
+
name: u,
|
|
1187
|
+
className: _t.input,
|
|
1188
|
+
value: d.value,
|
|
1189
|
+
disabled: c,
|
|
1190
1190
|
autocomplete: "off",
|
|
1191
|
-
onInput:
|
|
1191
|
+
onInput: f
|
|
1192
1192
|
})]
|
|
1193
1193
|
}) });
|
|
1194
1194
|
}
|
|
1195
|
-
var
|
|
1196
|
-
base:
|
|
1195
|
+
var _t = {
|
|
1196
|
+
base: J`
|
|
1197
1197
|
position: relative;
|
|
1198
1198
|
`,
|
|
1199
|
-
label:
|
|
1199
|
+
label: J`
|
|
1200
1200
|
font-size: .875rem;
|
|
1201
1201
|
font-weight: 500;
|
|
1202
1202
|
opacity: .5;
|
|
@@ -1205,10 +1205,10 @@ var ht = {
|
|
|
1205
1205
|
top: .75rem;
|
|
1206
1206
|
pointer-events: none;
|
|
1207
1207
|
letter-spacing: 1px;
|
|
1208
|
-
font-family: ${
|
|
1209
|
-
color: ${
|
|
1208
|
+
font-family: ${Y.fontFamily}, sans-serif;
|
|
1209
|
+
color: ${Y.colors.fore.primary};
|
|
1210
1210
|
`,
|
|
1211
|
-
input:
|
|
1211
|
+
input: J`
|
|
1212
1212
|
font-size: .875rem;
|
|
1213
1213
|
font-weight: 500;
|
|
1214
1214
|
color: rgb(58, 58, 58);
|
|
@@ -1219,73 +1219,73 @@ var ht = {
|
|
|
1219
1219
|
width: 100%;
|
|
1220
1220
|
border-radius: 8px;
|
|
1221
1221
|
letter-spacing: 1px;
|
|
1222
|
-
font-family: ${
|
|
1223
|
-
color: ${
|
|
1224
|
-
background-color: ${
|
|
1222
|
+
font-family: ${Y.fontFamily}, sans-serif;
|
|
1223
|
+
color: ${Y.colors.fore.primary};
|
|
1224
|
+
background-color: ${Y.colors.back.secondary};
|
|
1225
1225
|
`
|
|
1226
|
-
},
|
|
1227
|
-
function
|
|
1228
|
-
let
|
|
1229
|
-
o(() =>
|
|
1230
|
-
function
|
|
1231
|
-
let e = !
|
|
1232
|
-
|
|
1226
|
+
}, vt = 28, yt = 3, bt = 11;
|
|
1227
|
+
function xt({ label: e, isChecked: t, isDisabled: c, onChange: l }) {
|
|
1228
|
+
let u = s(), d = a(t);
|
|
1229
|
+
o(() => d.value = t, [t]);
|
|
1230
|
+
function f() {
|
|
1231
|
+
let e = !d.value;
|
|
1232
|
+
d.value = e, l?.(e);
|
|
1233
1233
|
}
|
|
1234
1234
|
return /* @__PURE__ */ r(n, { children: /* @__PURE__ */ i("div", {
|
|
1235
|
-
className:
|
|
1235
|
+
className: St.base,
|
|
1236
1236
|
children: [
|
|
1237
1237
|
/* @__PURE__ */ r("label", {
|
|
1238
|
-
className:
|
|
1239
|
-
htmlFor:
|
|
1240
|
-
"is-disabled":
|
|
1238
|
+
className: St.label,
|
|
1239
|
+
htmlFor: u,
|
|
1240
|
+
"is-disabled": c,
|
|
1241
1241
|
children: e
|
|
1242
1242
|
}),
|
|
1243
1243
|
/* @__PURE__ */ r("input", {
|
|
1244
|
-
id:
|
|
1244
|
+
id: u,
|
|
1245
1245
|
type: "checkbox",
|
|
1246
|
-
className:
|
|
1247
|
-
checked:
|
|
1248
|
-
disabled:
|
|
1249
|
-
onChange:
|
|
1246
|
+
className: St.checkbox,
|
|
1247
|
+
checked: d.value,
|
|
1248
|
+
disabled: c,
|
|
1249
|
+
onChange: f
|
|
1250
1250
|
}),
|
|
1251
1251
|
/* @__PURE__ */ r("label", {
|
|
1252
|
-
className:
|
|
1253
|
-
htmlFor:
|
|
1254
|
-
"is-disabled":
|
|
1252
|
+
className: St.value,
|
|
1253
|
+
htmlFor: u,
|
|
1254
|
+
"is-disabled": c
|
|
1255
1255
|
})
|
|
1256
1256
|
]
|
|
1257
1257
|
}) });
|
|
1258
1258
|
}
|
|
1259
|
-
var
|
|
1260
|
-
base:
|
|
1259
|
+
var St = {
|
|
1260
|
+
base: J`
|
|
1261
1261
|
position: relative;
|
|
1262
1262
|
display: flex;
|
|
1263
1263
|
padding: .2rem 0 0 2rem;
|
|
1264
1264
|
gap: .5rem;
|
|
1265
1265
|
`,
|
|
1266
|
-
label:
|
|
1266
|
+
label: J`
|
|
1267
1267
|
display: inline-block;
|
|
1268
1268
|
font-size: .75rem;
|
|
1269
1269
|
line-height: 1.2rem;
|
|
1270
1270
|
cursor: pointer;
|
|
1271
1271
|
user-select: none;
|
|
1272
1272
|
font-weight: 500;
|
|
1273
|
-
font-family: ${
|
|
1274
|
-
color: ${
|
|
1273
|
+
font-family: ${Y.fontFamily}, sans-serif;
|
|
1274
|
+
color: ${Y.colors.fore.secondary};
|
|
1275
1275
|
`,
|
|
1276
|
-
checkbox:
|
|
1276
|
+
checkbox: J`
|
|
1277
1277
|
display: none;
|
|
1278
1278
|
|
|
1279
1279
|
&:checked ~ label {
|
|
1280
1280
|
background-color: #e1e1e1;
|
|
1281
1281
|
|
|
1282
1282
|
&:before {
|
|
1283
|
-
right: ${
|
|
1283
|
+
right: ${yt}px;
|
|
1284
1284
|
background-color: #3a3a3a;
|
|
1285
1285
|
}
|
|
1286
1286
|
}
|
|
1287
1287
|
`,
|
|
1288
|
-
value:
|
|
1288
|
+
value: J`
|
|
1289
1289
|
display: inline-block;
|
|
1290
1290
|
position: relative;
|
|
1291
1291
|
height: 1.1rem;
|
|
@@ -1294,7 +1294,7 @@ var bt = {
|
|
|
1294
1294
|
cursor: pointer;
|
|
1295
1295
|
user-select: none;
|
|
1296
1296
|
transition: background .3s ease;
|
|
1297
|
-
width: ${
|
|
1297
|
+
width: ${vt}px;
|
|
1298
1298
|
|
|
1299
1299
|
&:before {
|
|
1300
1300
|
background-color: #e1e1e1;
|
|
@@ -1303,22 +1303,22 @@ var bt = {
|
|
|
1303
1303
|
position: absolute;
|
|
1304
1304
|
transition: background .3s ease, right .3s ease;
|
|
1305
1305
|
border-radius: 50%;
|
|
1306
|
-
top: ${
|
|
1306
|
+
top: ${yt}px;
|
|
1307
1307
|
right: ${14}px;
|
|
1308
|
-
width: ${
|
|
1309
|
-
height: ${
|
|
1308
|
+
width: ${bt}px;
|
|
1309
|
+
height: ${bt}px;
|
|
1310
1310
|
}
|
|
1311
1311
|
`
|
|
1312
1312
|
};
|
|
1313
1313
|
//#endregion
|
|
1314
1314
|
//#region src/components/_tag.jsx
|
|
1315
|
-
function
|
|
1315
|
+
function Ct({ className: t, variant: a = "normal", iconName: o, label: s }) {
|
|
1316
1316
|
return /* @__PURE__ */ r(n, { children: /* @__PURE__ */ i("div", {
|
|
1317
|
-
className:
|
|
1317
|
+
className: q(wt.base, wt[a] ?? wt.normal, t),
|
|
1318
1318
|
"has-icon": !e(o),
|
|
1319
|
-
children: [o && /* @__PURE__ */ r(n, { children: /* @__PURE__ */ r(
|
|
1320
|
-
className:
|
|
1321
|
-
${
|
|
1319
|
+
children: [o && /* @__PURE__ */ r(n, { children: /* @__PURE__ */ r(Z, {
|
|
1320
|
+
className: J`
|
|
1321
|
+
${Y.extends.verticalCenter}
|
|
1322
1322
|
left: .3rem;
|
|
1323
1323
|
`,
|
|
1324
1324
|
name: o,
|
|
@@ -1326,7 +1326,7 @@ function xt({ className: t, variant: a = "normal", iconName: o, label: s }) {
|
|
|
1326
1326
|
}) }), s]
|
|
1327
1327
|
}) });
|
|
1328
1328
|
}
|
|
1329
|
-
var
|
|
1329
|
+
var wt = { base: J`
|
|
1330
1330
|
position: relative;
|
|
1331
1331
|
display: inline-block;
|
|
1332
1332
|
padding: .3rem .5rem;
|
|
@@ -1334,41 +1334,41 @@ var St = { base: Y`
|
|
|
1334
1334
|
white-space: pre-wrap;
|
|
1335
1335
|
font-size: .7rem;
|
|
1336
1336
|
font-weight: 600;
|
|
1337
|
-
border: solid 1px ${
|
|
1338
|
-
background-color: ${
|
|
1339
|
-
color: ${
|
|
1337
|
+
border: solid 1px ${Y.colors.border};
|
|
1338
|
+
background-color: ${Y.colors.back.secondary};
|
|
1339
|
+
color: ${Y.colors.fore.primary};
|
|
1340
1340
|
|
|
1341
1341
|
&[has-icon="true"] { padding-left: 1.5rem; }
|
|
1342
1342
|
` };
|
|
1343
1343
|
//#endregion
|
|
1344
1344
|
//#region src/components/_icon-button.jsx
|
|
1345
|
-
function
|
|
1345
|
+
function Tt({ iconName: e, color: t, isDisabled: i, onClick: a }) {
|
|
1346
1346
|
function o(e) {
|
|
1347
1347
|
i || (e.stopPropagation(), e.preventDefault(), a?.(e));
|
|
1348
1348
|
}
|
|
1349
1349
|
return /* @__PURE__ */ r(n, { children: /* @__PURE__ */ r("button", {
|
|
1350
|
-
className:
|
|
1350
|
+
className: Et.base,
|
|
1351
1351
|
"is-disabled": i || void 0,
|
|
1352
1352
|
"is-clickable": !!a || void 0,
|
|
1353
1353
|
disabled: i,
|
|
1354
1354
|
onClick: o,
|
|
1355
|
-
children: /* @__PURE__ */ r(
|
|
1355
|
+
children: /* @__PURE__ */ r(Z, {
|
|
1356
1356
|
color: t,
|
|
1357
|
-
className:
|
|
1357
|
+
className: J`${Y.extends.centrate}`,
|
|
1358
1358
|
iconName: e,
|
|
1359
1359
|
isDisabled: i
|
|
1360
1360
|
})
|
|
1361
1361
|
}) });
|
|
1362
1362
|
}
|
|
1363
|
-
var
|
|
1363
|
+
var Et = { base: J`
|
|
1364
1364
|
position: relative;
|
|
1365
1365
|
width: 2.25rem;
|
|
1366
1366
|
height: 2.25rem;
|
|
1367
1367
|
border-radius: 8px;
|
|
1368
1368
|
will-change: transform, border;
|
|
1369
1369
|
transition: transform .1s ease, border .1s ease;
|
|
1370
|
-
border-bottom: solid 2px ${
|
|
1371
|
-
background-color: ${
|
|
1370
|
+
border-bottom: solid 2px ${Y.colors.border};
|
|
1371
|
+
background-color: ${Y.colors.back.secondary};
|
|
1372
1372
|
|
|
1373
1373
|
&:active {
|
|
1374
1374
|
transform: translateY(1px);
|
|
@@ -1376,4 +1376,136 @@ var wt = { base: Y`
|
|
|
1376
1376
|
}
|
|
1377
1377
|
` };
|
|
1378
1378
|
//#endregion
|
|
1379
|
-
|
|
1379
|
+
//#region src/components/_tab-box.jsx
|
|
1380
|
+
function Dt({ className: e, width: t, height: o, initialIndex: c = 0, items: l = [], onChange: u }) {
|
|
1381
|
+
let d = s(), f = Math.max(l.length - 1, 0), p = a(Math.min(Math.max(c, 0), f)), m = Math.min(p.value, f);
|
|
1382
|
+
function h(e) {
|
|
1383
|
+
e !== m && (p.value = e, u?.(e, l[e]));
|
|
1384
|
+
}
|
|
1385
|
+
return /* @__PURE__ */ r(n, { children: /* @__PURE__ */ i("div", {
|
|
1386
|
+
className: q($.base, e),
|
|
1387
|
+
style: { width: t },
|
|
1388
|
+
children: [/* @__PURE__ */ r(it, {
|
|
1389
|
+
className: $.box,
|
|
1390
|
+
height: o,
|
|
1391
|
+
children: /* @__PURE__ */ r("div", {
|
|
1392
|
+
className: $.track,
|
|
1393
|
+
style: { transform: `translateX(-${m * 100}%)` },
|
|
1394
|
+
children: l.map((e, t) => /* @__PURE__ */ r(n, { children: /* @__PURE__ */ r("div", {
|
|
1395
|
+
id: `${d}-panel-${t}`,
|
|
1396
|
+
className: $.panel,
|
|
1397
|
+
role: "tabpanel",
|
|
1398
|
+
"aria-labelledby": `${d}-tab-${t}`,
|
|
1399
|
+
"aria-hidden": t !== m,
|
|
1400
|
+
inert: t !== m || void 0,
|
|
1401
|
+
children: e.content
|
|
1402
|
+
}, e.id ?? t) }))
|
|
1403
|
+
})
|
|
1404
|
+
}), l.length > 0 && /* @__PURE__ */ r(n, { children: /* @__PURE__ */ r("div", {
|
|
1405
|
+
className: $.tabs,
|
|
1406
|
+
role: "tablist",
|
|
1407
|
+
children: l.map((e, t) => {
|
|
1408
|
+
let a = t === m, o = e.notification != null;
|
|
1409
|
+
return /* @__PURE__ */ r(n, { children: /* @__PURE__ */ i("button", {
|
|
1410
|
+
id: `${d}-tab-${t}`,
|
|
1411
|
+
className: $.tab,
|
|
1412
|
+
type: "button",
|
|
1413
|
+
role: "tab",
|
|
1414
|
+
"aria-controls": `${d}-panel-${t}`,
|
|
1415
|
+
"aria-label": e.label ?? `Tab ${t + 1}`,
|
|
1416
|
+
"aria-selected": a,
|
|
1417
|
+
tabIndex: a ? 0 : -1,
|
|
1418
|
+
"is-active": a || void 0,
|
|
1419
|
+
onClick: () => h(t),
|
|
1420
|
+
children: [
|
|
1421
|
+
e.iconName && /* @__PURE__ */ r(Z, {
|
|
1422
|
+
iconName: e.iconName,
|
|
1423
|
+
size: "1rem"
|
|
1424
|
+
}),
|
|
1425
|
+
e.label && /* @__PURE__ */ r("span", { children: e.label }),
|
|
1426
|
+
o && /* @__PURE__ */ r("span", {
|
|
1427
|
+
className: $.notification,
|
|
1428
|
+
"aria-label": `${e.notification} notifications`,
|
|
1429
|
+
children: e.notification
|
|
1430
|
+
})
|
|
1431
|
+
]
|
|
1432
|
+
}, e.id ?? t) });
|
|
1433
|
+
})
|
|
1434
|
+
}) })]
|
|
1435
|
+
}) });
|
|
1436
|
+
}
|
|
1437
|
+
var $ = {
|
|
1438
|
+
base: J`
|
|
1439
|
+
position: relative;
|
|
1440
|
+
max-width: 100%;
|
|
1441
|
+
`,
|
|
1442
|
+
box: J`
|
|
1443
|
+
z-index: ${Y.zIndex.front};
|
|
1444
|
+
width: 100%;
|
|
1445
|
+
padding: 0;
|
|
1446
|
+
overflow: hidden;
|
|
1447
|
+
`,
|
|
1448
|
+
track: J`
|
|
1449
|
+
display: flex;
|
|
1450
|
+
width: 100%;
|
|
1451
|
+
min-height: 100%;
|
|
1452
|
+
will-change: transform;
|
|
1453
|
+
transition: transform .35s cubic-bezier(.22, .61, .36, 1);
|
|
1454
|
+
|
|
1455
|
+
@media (prefers-reduced-motion: reduce) { transition: none; }
|
|
1456
|
+
`,
|
|
1457
|
+
panel: J`
|
|
1458
|
+
flex: 0 0 100%;
|
|
1459
|
+
min-width: 0;
|
|
1460
|
+
padding: 1.875rem 1.25rem;
|
|
1461
|
+
`,
|
|
1462
|
+
tabs: J`
|
|
1463
|
+
display: flex;
|
|
1464
|
+
position: relative;
|
|
1465
|
+
margin-top: -1rem;
|
|
1466
|
+
overflow: hidden;
|
|
1467
|
+
border: solid 2px #eee;
|
|
1468
|
+
border-top: 0;
|
|
1469
|
+
border-radius: 0 0 18px 18px;
|
|
1470
|
+
background-color: ${Y.colors.back.secondary};
|
|
1471
|
+
`,
|
|
1472
|
+
tab: J`
|
|
1473
|
+
display: flex;
|
|
1474
|
+
flex: 1 1 0;
|
|
1475
|
+
align-items: center;
|
|
1476
|
+
justify-content: center;
|
|
1477
|
+
gap: .4rem;
|
|
1478
|
+
min-width: 0;
|
|
1479
|
+
min-height: 3.6rem;
|
|
1480
|
+
padding: 1.5rem .5rem .5rem .5rem;
|
|
1481
|
+
cursor: pointer;
|
|
1482
|
+
font-size: .8rem;
|
|
1483
|
+
font-weight: 600;
|
|
1484
|
+
transition: color .2s ease, background-color .2s ease;
|
|
1485
|
+
color: ${Y.colors.fore.secondary};
|
|
1486
|
+
font-family: ${Y.fontFamily}, sans-serif;
|
|
1487
|
+
|
|
1488
|
+
& + & { border-left: solid 1px #e5e7e9; }
|
|
1489
|
+
|
|
1490
|
+
&[is-active] {
|
|
1491
|
+
color: ${Y.colors.fore.primary};
|
|
1492
|
+
background-color: ${Y.colors.back.primary};
|
|
1493
|
+
}
|
|
1494
|
+
`,
|
|
1495
|
+
notification: J`
|
|
1496
|
+
display: inline-flex;
|
|
1497
|
+
align-items: center;
|
|
1498
|
+
justify-content: center;
|
|
1499
|
+
min-width: 1.2rem;
|
|
1500
|
+
height: 1.2rem;
|
|
1501
|
+
padding: 0 .2rem;
|
|
1502
|
+
border-radius: 50%;
|
|
1503
|
+
font-size: .7rem;
|
|
1504
|
+
font-weight: 700;
|
|
1505
|
+
line-height: 1;
|
|
1506
|
+
color: ${Y.colors.fore.primary};
|
|
1507
|
+
background-color: ${Y.colors.back.primary};
|
|
1508
|
+
`
|
|
1509
|
+
};
|
|
1510
|
+
//#endregion
|
|
1511
|
+
export { tt as AppWrapper, rt as Bar, it as Box, st as Button, pt as Headline, Z as Icon, Tt as IconButton, lt as Layout, ht as Space, xt as Switch, Dt as TabBox, Ct as Tag, dt as Text, gt as TextField, Y as Theme };
|