@squeletteapp/widget 0.3.3 → 0.3.5
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/{app-CKSSWZ7T.js → app-BOiUBwAx.js} +1 -1
- package/dist/{index-p5opKtwa.js → index-Bk1mDGB8.js} +525 -521
- package/dist/types/banner/banner-modal.d.ts +2 -1
- package/dist/types/banner/banner.d.ts +2 -1
- package/dist/types/banner/index.d.ts +2 -1
- package/dist/widget.es.js +1 -1
- package/dist/widget.js +4 -4
- package/package.json +1 -1
|
@@ -4,8 +4,8 @@ var Sr = (e) => {
|
|
|
4
4
|
};
|
|
5
5
|
var To = (e, t, n) => t in e ? So(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
6
6
|
var ut = (e, t, n) => To(e, typeof t != "symbol" ? t + "" : t, n), Tr = (e, t, n) => t.has(e) || Sr("Cannot " + n);
|
|
7
|
-
var
|
|
8
|
-
var Qt, E, Mi, Ci, qe, Ar, Vi, Ei, Pi, Hn, _n, vn, gt = {},
|
|
7
|
+
var g = (e, t, n) => (Tr(e, t, "read from private field"), n ? n.call(e) : t.get(e)), ee = (e, t, n) => t.has(e) ? Sr("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), L = (e, t, n, r) => (Tr(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
|
|
8
|
+
var Qt, E, Mi, Ci, qe, Ar, Vi, Ei, Pi, Hn, _n, vn, gt = {}, $i = [], Ao = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Tt = Array.isArray;
|
|
9
9
|
function Se(e, t) {
|
|
10
10
|
for (var n in t) e[n] = t[n];
|
|
11
11
|
return e;
|
|
@@ -34,26 +34,26 @@ function Ze(e, t) {
|
|
|
34
34
|
for (var n; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) return n.__e;
|
|
35
35
|
return typeof e.type == "function" ? Ze(e) : null;
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function Ri(e) {
|
|
38
38
|
var t, n;
|
|
39
39
|
if ((e = e.__) != null && e.__c != null) {
|
|
40
40
|
for (e.__e = e.__c.base = null, t = 0; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) {
|
|
41
41
|
e.__e = e.__c.base = n.__e;
|
|
42
42
|
break;
|
|
43
43
|
}
|
|
44
|
-
return
|
|
44
|
+
return Ri(e);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
function Mr(e) {
|
|
48
48
|
(!e.__d && (e.__d = !0) && qe.push(e) && !zt.__r++ || Ar != E.debounceRendering) && ((Ar = E.debounceRendering) || Vi)(zt);
|
|
49
49
|
}
|
|
50
50
|
function zt() {
|
|
51
|
-
for (var e, t, n, r, i, s, o, a = 1; qe.length; ) qe.length > a && qe.sort(Ei), e = qe.shift(), a = qe.length, e.__d && (n = void 0, r = void 0, i = (r = (t = e).__v).__e, s = [], o = [], t.__P && ((n = Se({}, r)).__v = r.__v + 1, E.vnode && E.vnode(n), Xn(t.__P, n, r, t.__n, t.__P.namespaceURI, 32 & r.__u ? [i] : null, s, i == null ? Ze(r) : i, !!(32 & r.__u), o), n.__v = r.__v, n.__.__k[n.__i] = n, Ni(s, n, o), r.__e = r.__ = null, n.__e != i &&
|
|
51
|
+
for (var e, t, n, r, i, s, o, a = 1; qe.length; ) qe.length > a && qe.sort(Ei), e = qe.shift(), a = qe.length, e.__d && (n = void 0, r = void 0, i = (r = (t = e).__v).__e, s = [], o = [], t.__P && ((n = Se({}, r)).__v = r.__v + 1, E.vnode && E.vnode(n), Xn(t.__P, n, r, t.__n, t.__P.namespaceURI, 32 & r.__u ? [i] : null, s, i == null ? Ze(r) : i, !!(32 & r.__u), o), n.__v = r.__v, n.__.__k[n.__i] = n, Ni(s, n, o), r.__e = r.__ = null, n.__e != i && Ri(n)));
|
|
52
52
|
zt.__r = 0;
|
|
53
53
|
}
|
|
54
54
|
function Fi(e, t, n, r, i, s, o, a, l, c, d) {
|
|
55
|
-
var u, h, p,
|
|
56
|
-
for (l = Mo(n, t,
|
|
55
|
+
var u, h, p, b, _, v, m, y = r && r.__k || $i, A = t.length;
|
|
56
|
+
for (l = Mo(n, t, y, l, A), u = 0; u < A; u++) (p = n.__k[u]) != null && (h = p.__i == -1 ? gt : y[p.__i] || gt, p.__i = u, v = Xn(e, p, h, i, s, o, a, l, c, d), b = p.__e, p.ref && h.ref != p.ref && (h.ref && Zn(h.ref, null, p), d.push(p.ref, p.__c || b, p)), _ == null && b != null && (_ = b), (m = !!(4 & p.__u)) || h.__k === p.__k ? l = qi(p, l, e, m) : typeof p.type == "function" && v !== void 0 ? l = v : b && (l = b.nextSibling), p.__u &= -7);
|
|
57
57
|
return n.__e = _, l;
|
|
58
58
|
}
|
|
59
59
|
function Mo(e, t, n, r, i) {
|
|
@@ -119,36 +119,36 @@ function Vr(e) {
|
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
121
|
function Xn(e, t, n, r, i, s, o, a, l, c) {
|
|
122
|
-
var d, u, h, p,
|
|
122
|
+
var d, u, h, p, b, _, v, m, y, A, M, x, C, N, f, T, $, P = t.type;
|
|
123
123
|
if (t.constructor != null) return null;
|
|
124
124
|
128 & n.__u && (l = !!(32 & n.__u), s = [a = t.__e = n.__e]), (d = E.__b) && d(t);
|
|
125
125
|
e: if (typeof P == "function") try {
|
|
126
|
-
if (m = t.props,
|
|
126
|
+
if (m = t.props, y = "prototype" in P && P.prototype.render, A = (d = P.contextType) && r[d.__c], M = d ? A ? A.props.value : d.__ : r, n.__c ? v = (u = t.__c = n.__c).__ = u.__E : (y ? t.__c = u = new P(m, M) : (t.__c = u = new ve(m, M), u.constructor = P, u.render = Eo), A && A.sub(u), u.props = m, u.state || (u.state = {}), u.context = M, u.__n = r, h = u.__d = !0, u.__h = [], u._sb = []), y && u.__s == null && (u.__s = u.state), y && P.getDerivedStateFromProps != null && (u.__s == u.state && (u.__s = Se({}, u.__s)), Se(u.__s, P.getDerivedStateFromProps(m, u.__s))), p = u.props, b = u.state, u.__v = t, h) y && P.getDerivedStateFromProps == null && u.componentWillMount != null && u.componentWillMount(), y && u.componentDidMount != null && u.__h.push(u.componentDidMount);
|
|
127
127
|
else {
|
|
128
|
-
if (
|
|
128
|
+
if (y && P.getDerivedStateFromProps == null && m !== p && u.componentWillReceiveProps != null && u.componentWillReceiveProps(m, M), !u.__e && u.shouldComponentUpdate != null && u.shouldComponentUpdate(m, u.__s, M) === !1 || t.__v == n.__v) {
|
|
129
129
|
for (t.__v != n.__v && (u.props = m, u.state = u.__s, u.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.some(function(z) {
|
|
130
130
|
z && (z.__ = t);
|
|
131
|
-
}),
|
|
131
|
+
}), x = 0; x < u._sb.length; x++) u.__h.push(u._sb[x]);
|
|
132
132
|
u._sb = [], u.__h.length && o.push(u);
|
|
133
133
|
break e;
|
|
134
134
|
}
|
|
135
|
-
u.componentWillUpdate != null && u.componentWillUpdate(m, u.__s, M),
|
|
136
|
-
u.componentDidUpdate(p,
|
|
135
|
+
u.componentWillUpdate != null && u.componentWillUpdate(m, u.__s, M), y && u.componentDidUpdate != null && u.__h.push(function() {
|
|
136
|
+
u.componentDidUpdate(p, b, _);
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
|
-
if (u.context = M, u.props = m, u.__P = e, u.__e = !1, C = E.__r, N = 0,
|
|
139
|
+
if (u.context = M, u.props = m, u.__P = e, u.__e = !1, C = E.__r, N = 0, y) {
|
|
140
140
|
for (u.state = u.__s, u.__d = !1, C && C(t), d = u.render(u.props, u.state, u.context), f = 0; f < u._sb.length; f++) u.__h.push(u._sb[f]);
|
|
141
141
|
u._sb = [];
|
|
142
142
|
} else do
|
|
143
143
|
u.__d = !1, C && C(t), d = u.render(u.props, u.state, u.context), u.state = u.__s;
|
|
144
144
|
while (u.__d && ++N < 25);
|
|
145
|
-
u.state = u.__s, u.getChildContext != null && (r = Se(Se({}, r), u.getChildContext())),
|
|
145
|
+
u.state = u.__s, u.getChildContext != null && (r = Se(Se({}, r), u.getChildContext())), y && !h && u.getSnapshotBeforeUpdate != null && (_ = u.getSnapshotBeforeUpdate(p, b)), T = d, d != null && d.type === Te && d.key == null && (T = Ii(d.props.children)), a = Fi(e, Tt(T) ? T : [T], t, n, r, i, s, o, a, l, c), u.base = t.__e, t.__u &= -161, u.__h.length && o.push(u), v && (u.__E = u.__ = null);
|
|
146
146
|
} catch (z) {
|
|
147
147
|
if (t.__v = null, l || s != null) if (z.then) {
|
|
148
148
|
for (t.__u |= l ? 160 : 128; a && a.nodeType == 8 && a.nextSibling; ) a = a.nextSibling;
|
|
149
149
|
s[s.indexOf(a)] = null, t.__e = a;
|
|
150
150
|
} else {
|
|
151
|
-
for (
|
|
151
|
+
for ($ = s.length; $--; ) Yn(s[$]);
|
|
152
152
|
wn(t);
|
|
153
153
|
}
|
|
154
154
|
else t.__e = n.__e, t.__k = n.__k, z.then || wn(t);
|
|
@@ -176,31 +176,31 @@ function Ii(e) {
|
|
|
176
176
|
return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Tt(e) ? e.map(Ii) : Se({}, e);
|
|
177
177
|
}
|
|
178
178
|
function Vo(e, t, n, r, i, s, o, a, l) {
|
|
179
|
-
var c, d, u, h, p,
|
|
180
|
-
if (
|
|
181
|
-
for (c = 0; c < s.length; c++) if ((p = s[c]) && "setAttribute" in p == !!
|
|
179
|
+
var c, d, u, h, p, b, _, v = n.props, m = t.props, y = t.type;
|
|
180
|
+
if (y == "svg" ? i = "http://www.w3.org/2000/svg" : y == "math" ? i = "http://www.w3.org/1998/Math/MathML" : i || (i = "http://www.w3.org/1999/xhtml"), s != null) {
|
|
181
|
+
for (c = 0; c < s.length; c++) if ((p = s[c]) && "setAttribute" in p == !!y && (y ? p.localName == y : p.nodeType == 3)) {
|
|
182
182
|
e = p, s[c] = null;
|
|
183
183
|
break;
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
if (e == null) {
|
|
187
|
-
if (
|
|
188
|
-
e = document.createElementNS(i,
|
|
187
|
+
if (y == null) return document.createTextNode(m);
|
|
188
|
+
e = document.createElementNS(i, y, m.is && m), a && (E.__m && E.__m(t, s), a = !1), s = null;
|
|
189
189
|
}
|
|
190
|
-
if (
|
|
190
|
+
if (y == null) v === m || a && e.data == m || (e.data = m);
|
|
191
191
|
else {
|
|
192
|
-
if (s = s && Qt.call(e.childNodes),
|
|
193
|
-
for (c in
|
|
192
|
+
if (s = s && Qt.call(e.childNodes), v = n.props || gt, !a && s != null) for (v = {}, c = 0; c < e.attributes.length; c++) v[(p = e.attributes[c]).name] = p.value;
|
|
193
|
+
for (c in v) if (p = v[c], c != "children") {
|
|
194
194
|
if (c == "dangerouslySetInnerHTML") u = p;
|
|
195
195
|
else if (!(c in m)) {
|
|
196
196
|
if (c == "value" && "defaultValue" in m || c == "checked" && "defaultChecked" in m) continue;
|
|
197
197
|
Pt(e, c, null, p, i);
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
-
for (c in m) p = m[c], c == "children" ? h = p : c == "dangerouslySetInnerHTML" ? d = p : c == "value" ?
|
|
200
|
+
for (c in m) p = m[c], c == "children" ? h = p : c == "dangerouslySetInnerHTML" ? d = p : c == "value" ? b = p : c == "checked" ? _ = p : a && typeof p != "function" || v[c] === p || Pt(e, c, p, v[c], i);
|
|
201
201
|
if (d) a || u && (d.__html == u.__html || d.__html == e.innerHTML) || (e.innerHTML = d.__html), t.__k = [];
|
|
202
|
-
else if (u && (e.innerHTML = ""), Fi(t.type == "template" ? e.content : e, Tt(h) ? h : [h], t, n, r,
|
|
203
|
-
a || (c = "value",
|
|
202
|
+
else if (u && (e.innerHTML = ""), Fi(t.type == "template" ? e.content : e, Tt(h) ? h : [h], t, n, r, y == "foreignObject" ? "http://www.w3.org/1999/xhtml" : i, s, o, s ? s[0] : n.__k && Ze(n, 0), a, l), s != null) for (c = s.length; c--; ) Yn(s[c]);
|
|
203
|
+
a || (c = "value", y == "progress" && b == null ? e.removeAttribute("value") : b != null && (b !== e[c] || y == "progress" && !b || y == "option" && b != v[c]) && Pt(e, c, b, v[c], i), c = "checked", _ != null && _ != e[c] && Pt(e, c, _, v[c], i));
|
|
204
204
|
}
|
|
205
205
|
return e;
|
|
206
206
|
}
|
|
@@ -234,7 +234,7 @@ function Je(e, t, n) {
|
|
|
234
234
|
var r, i, s, o;
|
|
235
235
|
t == document && (t = document.documentElement), E.__ && E.__(e, t), i = (r = !1) ? null : t.__k, s = [], o = [], Xn(t, e = t.__k = bt(Te, null, [e]), i || gt, gt, t.namespaceURI, i ? null : t.firstChild ? Qt.call(t.childNodes) : null, s, i ? i.__e : t.firstChild, r, o), Ni(s, e, o);
|
|
236
236
|
}
|
|
237
|
-
Qt =
|
|
237
|
+
Qt = $i.slice, E = { __e: function(e, t, n, r) {
|
|
238
238
|
for (var i, s, o; t = t.__; ) if ((i = t.__c) && !i.__) try {
|
|
239
239
|
if ((s = i.constructor) && s.getDerivedStateFromError != null && (i.setState(s.getDerivedStateFromError(e)), o = i.__d), i.componentDidCatch != null && (i.componentDidCatch(e, r || {}), o = i.__d), o) return i.__E = i;
|
|
240
240
|
} catch (a) {
|
|
@@ -260,7 +260,7 @@ function F(e, t, n, r, i, s) {
|
|
|
260
260
|
if (typeof e == "function" && (o = e.defaultProps)) for (a in o) l[a] === void 0 && (l[a] = o[a]);
|
|
261
261
|
return E.vnode && E.vnode(c), c;
|
|
262
262
|
}
|
|
263
|
-
const
|
|
263
|
+
const $o = `/*
|
|
264
264
|
* Scoped styles for the embedded iframe element. These live in the Shadow DOM
|
|
265
265
|
* and are injected using constructable style sheets when supported.
|
|
266
266
|
*/
|
|
@@ -286,16 +286,16 @@ const Ro = `/*
|
|
|
286
286
|
background: rgba(0, 0, 0, 0.3);
|
|
287
287
|
}
|
|
288
288
|
`;
|
|
289
|
-
var Qe, U, sn, Er, Wt = 0, Oi = [], j = E, Pr = j.__b,
|
|
289
|
+
var Qe, U, sn, Er, Wt = 0, Oi = [], j = E, Pr = j.__b, $r = j.__r, Rr = j.diffed, Fr = j.__c, qr = j.unmount, Nr = j.__;
|
|
290
290
|
function en(e, t) {
|
|
291
291
|
j.__h && j.__h(U, e, Wt || t), Wt = 0;
|
|
292
292
|
var n = U.__H || (U.__H = { __: [], __h: [] });
|
|
293
293
|
return e >= n.__.length && n.__.push({}), n.__[e];
|
|
294
294
|
}
|
|
295
295
|
function Ut(e) {
|
|
296
|
-
return Wt = 1,
|
|
296
|
+
return Wt = 1, Ro(Di, e);
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function Ro(e, t, n) {
|
|
299
299
|
var r = en(Qe++, 2);
|
|
300
300
|
if (r.t = e, !r.__c && (r.__ = [n ? n(t) : Di(void 0, t), function(a) {
|
|
301
301
|
var l = r.__N ? r.__N[0] : r.__[0], c = r.t(l, a);
|
|
@@ -329,7 +329,7 @@ function $o(e, t, n) {
|
|
|
329
329
|
}
|
|
330
330
|
return r.__N || r.__;
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function $e(e, t) {
|
|
333
333
|
var n = en(Qe++, 3);
|
|
334
334
|
!j.__s && Qn(n.__H, t) && (n.__ = e, n.u = t, U.__H.__h.push(n));
|
|
335
335
|
}
|
|
@@ -358,13 +358,13 @@ j.__b = function(e) {
|
|
|
358
358
|
}, j.__ = function(e, t) {
|
|
359
359
|
e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Nr && Nr(e, t);
|
|
360
360
|
}, j.__r = function(e) {
|
|
361
|
-
|
|
361
|
+
$r && $r(e), Qe = 0;
|
|
362
362
|
var t = (U = e.__c).__H;
|
|
363
363
|
t && (sn === U ? (t.__h = [], U.__h = [], t.__.forEach(function(n) {
|
|
364
364
|
n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
|
|
365
365
|
})) : (t.__h.forEach(Lt), t.__h.forEach(xn), t.__h = [], Qe = 0)), sn = U;
|
|
366
366
|
}, j.diffed = function(e) {
|
|
367
|
-
|
|
367
|
+
Rr && Rr(e);
|
|
368
368
|
var t = e.__c;
|
|
369
369
|
t && t.__H && (t.__H.__h.length && (Oi.push(t) !== 1 && Er === j.requestAnimationFrame || ((Er = j.requestAnimationFrame) || No)(qo)), t.__H.__.forEach(function(n) {
|
|
370
370
|
n.u && (n.__H = n.u), n.u = void 0;
|
|
@@ -425,7 +425,7 @@ function Io({
|
|
|
425
425
|
onClose: o,
|
|
426
426
|
onFrameLoaded: a
|
|
427
427
|
}) {
|
|
428
|
-
|
|
428
|
+
$e(() => {
|
|
429
429
|
e && i();
|
|
430
430
|
}, [e, i]);
|
|
431
431
|
const l = r;
|
|
@@ -474,7 +474,7 @@ function Io({
|
|
|
474
474
|
)
|
|
475
475
|
] });
|
|
476
476
|
}
|
|
477
|
-
const kn = "squelette-widget", on = typeof globalThis != "undefined" ? globalThis : {}, Lo = "https://squelette.app", Sn = typeof on.SQUELETTE_WIDGET_BASE_URL == "string" && on.SQUELETTE_WIDGET_BASE_URL.length > 0 ? on.SQUELETTE_WIDGET_BASE_URL : Lo, Oo = "https://cdn.squelette.app/widget.js", Ot = "Feedback";
|
|
477
|
+
const kn = "squelette-widget", on = typeof globalThis != "undefined" ? globalThis : {}, Lo = "https://www.squelette.app", Sn = typeof on.SQUELETTE_WIDGET_BASE_URL == "string" && on.SQUELETTE_WIDGET_BASE_URL.length > 0 ? on.SQUELETTE_WIDGET_BASE_URL : Lo, Oo = "https://cdn.squelette.app/widget.js", Ot = "Feedback";
|
|
478
478
|
class Do {
|
|
479
479
|
constructor() {
|
|
480
480
|
ut(this, "listeners", /* @__PURE__ */ new Map());
|
|
@@ -746,14 +746,14 @@ class Ko extends HTMLElement {
|
|
|
746
746
|
*/
|
|
747
747
|
ut(this, "ensureFrameModule", async () => {
|
|
748
748
|
var n, r, i;
|
|
749
|
-
if (!(
|
|
749
|
+
if (!(g(this, Ye) || g(this, He))) {
|
|
750
750
|
L(this, He, !0), this.render();
|
|
751
751
|
try {
|
|
752
|
-
(n =
|
|
753
|
-
const s = await
|
|
752
|
+
(n = g(this, kt)) != null || L(this, kt, import("./app-BOiUBwAx.js"));
|
|
753
|
+
const s = await g(this, kt), o = (r = s.WidgetFrame) != null ? r : s.default;
|
|
754
754
|
if (!o)
|
|
755
755
|
throw new Error("[SqueletteWidget] Widget app missing export");
|
|
756
|
-
L(this, Ye, o), tn(
|
|
756
|
+
L(this, Ye, o), tn(g(this, Pe), (i = s.stylesText) != null ? i : $o);
|
|
757
757
|
} catch (s) {
|
|
758
758
|
console.error("[SqueletteWidget] Failed to load widget app", s);
|
|
759
759
|
} finally {
|
|
@@ -766,9 +766,9 @@ class Ko extends HTMLElement {
|
|
|
766
766
|
* @private
|
|
767
767
|
*/
|
|
768
768
|
ut(this, "handleFrameLoaded", () => {
|
|
769
|
-
L(this, ue, !0), L(this, ke,
|
|
769
|
+
L(this, ue, !0), L(this, ke, g(this, Pe).querySelector("iframe")), this.postIdentityToFrame(), this.render(), this.dispatchEvent(new CustomEvent("squelette:frame-loaded"));
|
|
770
770
|
});
|
|
771
|
-
L(this, Pe, this.attachShadow({ mode: "open" })), L(this, Le, document.createElement("div")), Wo(
|
|
771
|
+
L(this, Pe, this.attachShadow({ mode: "open" })), L(this, Le, document.createElement("div")), Wo(g(this, Pe)), g(this, Pe).appendChild(g(this, Le)), this.render();
|
|
772
772
|
}
|
|
773
773
|
/**
|
|
774
774
|
* Attributes that trigger attributeChangedCallback when modified.
|
|
@@ -793,12 +793,12 @@ class Ko extends HTMLElement {
|
|
|
793
793
|
*/
|
|
794
794
|
connectedCallback() {
|
|
795
795
|
var r, i, s;
|
|
796
|
-
|
|
796
|
+
g(this, q).project = this.getAttribute("project"), g(this, q).board = this.getAttribute("board"), g(this, q).theme = Dr(this.getAttribute("theme")), g(this, q).locale = Or(this.getAttribute("locale")), g(this, q).token = (r = this.getAttribute("token")) != null ? r : void 0, g(this, q).signature = (i = this.getAttribute("signature")) != null ? i : void 0, g(this, q).label = (s = this.getAttribute("label")) != null ? s : Ot, g(this, q).view = jt(this.getAttribute("view"));
|
|
797
797
|
const n = this.getAttribute("api-base");
|
|
798
|
-
|
|
799
|
-
if (!
|
|
798
|
+
g(this, q).apiBase = n && n.length > 0 ? n : g(this, q).apiBase, this.applyTheme(g(this, q).theme), an(this, g(this, q).view), this.hasAttribute("open") && this.setOpen(!0, "attribute"), L(this, me, (o) => {
|
|
799
|
+
if (!g(this, q).project || !o.data || typeof o.data != "object") return;
|
|
800
800
|
try {
|
|
801
|
-
const c = new URL(
|
|
801
|
+
const c = new URL(g(this, q).apiBase).origin;
|
|
802
802
|
if (o.origin !== c) return;
|
|
803
803
|
} catch {
|
|
804
804
|
return;
|
|
@@ -806,13 +806,13 @@ class Ko extends HTMLElement {
|
|
|
806
806
|
const a = o.data;
|
|
807
807
|
if (a.type !== "squelette:submit") return;
|
|
808
808
|
const l = a.payload;
|
|
809
|
-
l &&
|
|
810
|
-
}), window.addEventListener("message",
|
|
809
|
+
l && g(this, Xe).emit("submit", { source: "app", payload: l });
|
|
810
|
+
}), window.addEventListener("message", g(this, me)), L(this, pe, (o) => {
|
|
811
811
|
var l;
|
|
812
812
|
L(this, St, (l = o.detail) != null ? l : null), this.postIdentityToFrame();
|
|
813
813
|
}), window.addEventListener(
|
|
814
814
|
"squelette:identity",
|
|
815
|
-
|
|
815
|
+
g(this, pe)
|
|
816
816
|
), this.render();
|
|
817
817
|
}
|
|
818
818
|
/**
|
|
@@ -820,10 +820,10 @@ class Ko extends HTMLElement {
|
|
|
820
820
|
* Cleans up all event listeners and restores page state.
|
|
821
821
|
*/
|
|
822
822
|
disconnectedCallback() {
|
|
823
|
-
|
|
823
|
+
g(this, me) && (window.removeEventListener("message", g(this, me)), L(this, me, null)), g(this, oe) && (g(this, oe).call(this), L(this, oe, null)), g(this, pe) && (window.removeEventListener(
|
|
824
824
|
"squelette:identity",
|
|
825
|
-
|
|
826
|
-
), L(this, pe, null)),
|
|
825
|
+
g(this, pe)
|
|
826
|
+
), L(this, pe, null)), g(this, ie) && (g(this, ie).call(this), L(this, ie, null));
|
|
827
827
|
}
|
|
828
828
|
/**
|
|
829
829
|
* Called when observed attributes change.
|
|
@@ -831,37 +831,37 @@ class Ko extends HTMLElement {
|
|
|
831
831
|
*/
|
|
832
832
|
attributeChangedCallback(n, r, i) {
|
|
833
833
|
if (n === "open") {
|
|
834
|
-
if (
|
|
834
|
+
if (g(this, Ee) === (i !== null)) return;
|
|
835
835
|
this.setOpen(i !== null, "attribute");
|
|
836
836
|
return;
|
|
837
837
|
}
|
|
838
838
|
switch (n) {
|
|
839
839
|
case "project":
|
|
840
|
-
|
|
840
|
+
g(this, q).project = i, L(this, ue, !1);
|
|
841
841
|
break;
|
|
842
842
|
case "board":
|
|
843
|
-
|
|
843
|
+
g(this, q).board = i, L(this, ue, !1);
|
|
844
844
|
break;
|
|
845
845
|
case "locale":
|
|
846
|
-
|
|
846
|
+
g(this, q).locale = Or(i), L(this, ue, !1);
|
|
847
847
|
break;
|
|
848
848
|
case "theme":
|
|
849
|
-
|
|
849
|
+
g(this, q).theme = Dr(i), this.applyTheme(g(this, q).theme);
|
|
850
850
|
break;
|
|
851
851
|
case "token":
|
|
852
|
-
|
|
852
|
+
g(this, q).token = i != null ? i : void 0, L(this, ue, !1);
|
|
853
853
|
break;
|
|
854
854
|
case "signature":
|
|
855
|
-
|
|
855
|
+
g(this, q).signature = i != null ? i : void 0, L(this, ue, !1);
|
|
856
856
|
break;
|
|
857
857
|
case "label":
|
|
858
|
-
|
|
858
|
+
g(this, q).label = i != null ? i : Ot;
|
|
859
859
|
break;
|
|
860
860
|
case "view":
|
|
861
|
-
|
|
861
|
+
g(this, q).view = jt(i), L(this, ue, !1), an(this, g(this, q).view);
|
|
862
862
|
break;
|
|
863
863
|
case "api-base":
|
|
864
|
-
|
|
864
|
+
g(this, q).apiBase = i && i.length > 0 ? i : Sn, L(this, ue, !1);
|
|
865
865
|
break;
|
|
866
866
|
}
|
|
867
867
|
n !== "open" && this.render();
|
|
@@ -885,7 +885,7 @@ class Ko extends HTMLElement {
|
|
|
885
885
|
* @public
|
|
886
886
|
*/
|
|
887
887
|
async toggle() {
|
|
888
|
-
await this.setOpen(!
|
|
888
|
+
await this.setOpen(!g(this, Ee), "api");
|
|
889
889
|
}
|
|
890
890
|
/**
|
|
891
891
|
* Registers an event listener for widget events.
|
|
@@ -893,9 +893,9 @@ class Ko extends HTMLElement {
|
|
|
893
893
|
* @returns Cleanup function to remove the listener
|
|
894
894
|
*/
|
|
895
895
|
on(n, r) {
|
|
896
|
-
return n === "submit" && !
|
|
896
|
+
return n === "submit" && !g(this, q).project && console.warn(
|
|
897
897
|
"[SqueletteWidget] Cannot listen for submit before project is set."
|
|
898
|
-
),
|
|
898
|
+
), g(this, Xe).on(n, r);
|
|
899
899
|
}
|
|
900
900
|
/**
|
|
901
901
|
* Destroys the widget and removes it from the DOM.
|
|
@@ -903,32 +903,32 @@ class Ko extends HTMLElement {
|
|
|
903
903
|
* @public
|
|
904
904
|
*/
|
|
905
905
|
async destroy() {
|
|
906
|
-
Je(null,
|
|
906
|
+
Je(null, g(this, Le)), g(this, me) && (window.removeEventListener("message", g(this, me)), L(this, me, null)), g(this, oe) && (g(this, oe).call(this), L(this, oe, null)), g(this, pe) && (window.removeEventListener(
|
|
907
907
|
"squelette:identity",
|
|
908
|
-
|
|
909
|
-
), L(this, pe, null)), this.parentNode && this.parentNode.removeChild(this),
|
|
908
|
+
g(this, pe)
|
|
909
|
+
), L(this, pe, null)), this.parentNode && this.parentNode.removeChild(this), g(this, ie) && (g(this, ie).call(this), L(this, ie, null));
|
|
910
910
|
}
|
|
911
911
|
/**
|
|
912
912
|
* Renders the widget UI using Preact.
|
|
913
913
|
* @private
|
|
914
914
|
*/
|
|
915
915
|
render() {
|
|
916
|
-
const n = zr(
|
|
916
|
+
const n = zr(g(this, q));
|
|
917
917
|
Je(
|
|
918
918
|
/* @__PURE__ */ F(
|
|
919
919
|
Io,
|
|
920
920
|
{
|
|
921
|
-
open:
|
|
922
|
-
label:
|
|
921
|
+
open: g(this, Ee),
|
|
922
|
+
label: g(this, q).label,
|
|
923
923
|
iframeSrc: n,
|
|
924
|
-
FrameComponent:
|
|
924
|
+
FrameComponent: g(this, Ye),
|
|
925
925
|
ensureFrame: this.ensureFrameModule,
|
|
926
926
|
onOpen: () => void this.setOpen(!0, "api"),
|
|
927
927
|
onClose: () => void this.setOpen(!1, "api"),
|
|
928
928
|
onFrameLoaded: this.handleFrameLoaded
|
|
929
929
|
}
|
|
930
930
|
),
|
|
931
|
-
|
|
931
|
+
g(this, Le)
|
|
932
932
|
);
|
|
933
933
|
}
|
|
934
934
|
/**
|
|
@@ -936,19 +936,19 @@ class Ko extends HTMLElement {
|
|
|
936
936
|
* @private
|
|
937
937
|
*/
|
|
938
938
|
async setOpen(n, r) {
|
|
939
|
-
if (n && !
|
|
939
|
+
if (n && !g(this, q).project) {
|
|
940
940
|
console.warn("[SqueletteWidget] Missing `project` attribute or option.");
|
|
941
941
|
return;
|
|
942
942
|
}
|
|
943
|
-
if (
|
|
943
|
+
if (g(this, Ee) !== n) {
|
|
944
944
|
if (L(this, Ee, n), Uo(this, "open", n), n)
|
|
945
|
-
|
|
945
|
+
g(this, ie) || L(this, ie, Go()), an(this, g(this, q).view);
|
|
946
946
|
else {
|
|
947
|
-
|
|
948
|
-
const i = zr(
|
|
949
|
-
i &&
|
|
947
|
+
g(this, ie) && (g(this, ie).call(this), L(this, ie, null)), L(this, ue, !1);
|
|
948
|
+
const i = zr(g(this, q));
|
|
949
|
+
i && g(this, ke) && (g(this, ke).src = i);
|
|
950
950
|
}
|
|
951
|
-
this.render(),
|
|
951
|
+
this.render(), g(this, Xe).emit(n ? "open" : "close", { source: r });
|
|
952
952
|
}
|
|
953
953
|
}
|
|
954
954
|
/**
|
|
@@ -956,20 +956,20 @@ class Ko extends HTMLElement {
|
|
|
956
956
|
* @private
|
|
957
957
|
*/
|
|
958
958
|
applyTheme(n) {
|
|
959
|
-
|
|
959
|
+
g(this, oe) && (g(this, oe).call(this), L(this, oe, null)), L(this, oe, jo(this, n));
|
|
960
960
|
}
|
|
961
961
|
/**
|
|
962
962
|
* Posts identity payload to iframe via postMessage.
|
|
963
963
|
* @private
|
|
964
964
|
*/
|
|
965
965
|
postIdentityToFrame() {
|
|
966
|
-
if (!(!
|
|
966
|
+
if (!(!g(this, ke) || !g(this, ke).contentWindow))
|
|
967
967
|
try {
|
|
968
|
-
const n = new URL(
|
|
969
|
-
|
|
968
|
+
const n = new URL(g(this, q).apiBase).origin;
|
|
969
|
+
g(this, ke).contentWindow.postMessage(
|
|
970
970
|
{
|
|
971
971
|
type: "squelette-identify",
|
|
972
|
-
payload:
|
|
972
|
+
payload: g(this, St)
|
|
973
973
|
},
|
|
974
974
|
n
|
|
975
975
|
);
|
|
@@ -1017,16 +1017,16 @@ function Xo(e, t) {
|
|
|
1017
1017
|
}, p = () => {
|
|
1018
1018
|
var fe;
|
|
1019
1019
|
if (!c || !l) return;
|
|
1020
|
-
const f = l.getBoundingClientRect(), T = window.innerWidth,
|
|
1020
|
+
const f = l.getBoundingClientRect(), T = window.innerWidth, $ = window.innerHeight, P = jt(e.getAttribute("view")), z = (fe = Tn[P]) != null ? fe : An, X = Math.min(z.width, T - s * 2), le = Math.min(
|
|
1021
1021
|
z.height,
|
|
1022
|
-
|
|
1022
|
+
$ - s * 2
|
|
1023
1023
|
), ce = Math.max(
|
|
1024
1024
|
s,
|
|
1025
1025
|
T - X - s
|
|
1026
1026
|
), Z = Math.max(
|
|
1027
1027
|
s,
|
|
1028
|
-
|
|
1029
|
-
), G = f.top - s,
|
|
1028
|
+
$ - le - s
|
|
1029
|
+
), G = f.top - s, w = $ - f.bottom - s;
|
|
1030
1030
|
let te = f.bottom + s, J = f.left + f.width / 2 - X / 2, re = "top";
|
|
1031
1031
|
if (r === "left" || r === "right") {
|
|
1032
1032
|
let I = r === "right";
|
|
@@ -1036,24 +1036,24 @@ function Xo(e, t) {
|
|
|
1036
1036
|
te = ln(be, s, Z);
|
|
1037
1037
|
} else {
|
|
1038
1038
|
let I = r === "bottom";
|
|
1039
|
-
r !== "top" && r !== "bottom" && (I =
|
|
1040
|
-
const B = f.bottom + s, Q = f.top - le - s, se = B + le <=
|
|
1039
|
+
r !== "top" && r !== "bottom" && (I = w >= G);
|
|
1040
|
+
const B = f.bottom + s, Q = f.top - le - s, se = B + le <= $ - s, D = Q >= s;
|
|
1041
1041
|
I && !se && D ? I = !1 : !I && !D && se && (I = !0), I ? (te = B, re = "top") : (te = Q, re = "bottom"), J = f.left + f.width / 2 - X / 2;
|
|
1042
1042
|
}
|
|
1043
1043
|
te = ln(te, s, Z), J = ln(J, s, ce), e.dataset.anchor = "button", e.dataset.anchorOrigin = re, e.style.setProperty("--sq-offset-top", `${Math.round(te)}px`), e.style.setProperty("--sq-offset-left", `${Math.round(J)}px`), e.style.setProperty("--sq-offset-bottom", "auto"), e.style.setProperty("--sq-offset-right", "auto");
|
|
1044
|
-
},
|
|
1044
|
+
}, b = () => {
|
|
1045
1045
|
c && requestAnimationFrame(p);
|
|
1046
1046
|
}, _ = () => {
|
|
1047
|
-
d || (window.addEventListener("resize",
|
|
1048
|
-
},
|
|
1049
|
-
d && (window.removeEventListener("resize",
|
|
1047
|
+
d || (window.addEventListener("resize", b), window.addEventListener("scroll", b, !0), d = !0);
|
|
1048
|
+
}, v = () => {
|
|
1049
|
+
d && (window.removeEventListener("resize", b), window.removeEventListener("scroll", b, !0), d = !1);
|
|
1050
1050
|
}, m = () => {
|
|
1051
1051
|
!l || o || (c = !0, e.dataset.anchor = "button", e.style.setProperty("--sq-offset-bottom", "auto"), e.style.setProperty("--sq-offset-right", "auto"), _(), p(), requestAnimationFrame(p));
|
|
1052
|
-
},
|
|
1053
|
-
c = !1,
|
|
1052
|
+
}, y = () => {
|
|
1053
|
+
c = !1, v();
|
|
1054
1054
|
};
|
|
1055
1055
|
n.push(() => {
|
|
1056
|
-
|
|
1056
|
+
y(), h();
|
|
1057
1057
|
}), i || (e.dataset.overlayBlur = "off", n.push(() => {
|
|
1058
1058
|
delete e.dataset.overlayBlur;
|
|
1059
1059
|
}));
|
|
@@ -1067,20 +1067,20 @@ function Xo(e, t) {
|
|
|
1067
1067
|
);
|
|
1068
1068
|
return;
|
|
1069
1069
|
}
|
|
1070
|
-
const [, T,
|
|
1071
|
-
let
|
|
1070
|
+
const [, T, $] = f, P = 24, z = jt(e.getAttribute("view")), X = (I = Tn[z]) != null ? I : An, le = window.innerWidth, ce = window.innerHeight, Z = Math.min(X.width, le - P * 2), G = Math.min(X.height, ce - P * 2);
|
|
1071
|
+
let w = "auto", te = "auto", J = "auto", re = "auto";
|
|
1072
1072
|
switch (T) {
|
|
1073
1073
|
case "top":
|
|
1074
|
-
|
|
1074
|
+
w = `${P}px`;
|
|
1075
1075
|
break;
|
|
1076
1076
|
case "bottom":
|
|
1077
1077
|
te = `${P}px`;
|
|
1078
1078
|
break;
|
|
1079
1079
|
case "center":
|
|
1080
|
-
|
|
1080
|
+
w = `${Math.max(P, Math.round((ce - G) / 2))}px`;
|
|
1081
1081
|
break;
|
|
1082
1082
|
}
|
|
1083
|
-
switch (
|
|
1083
|
+
switch ($) {
|
|
1084
1084
|
case "left":
|
|
1085
1085
|
J = `${P}px`;
|
|
1086
1086
|
break;
|
|
@@ -1092,8 +1092,8 @@ function Xo(e, t) {
|
|
|
1092
1092
|
break;
|
|
1093
1093
|
}
|
|
1094
1094
|
e.dataset.anchor = "fixed";
|
|
1095
|
-
const fe = T === "center" ?
|
|
1096
|
-
e.dataset.anchorOrigin = fe, e.dataset.fixedVertical = T, e.dataset.fixedHorizontal =
|
|
1095
|
+
const fe = T === "center" ? $ === "center" ? "bottom" : $ : T;
|
|
1096
|
+
e.dataset.anchorOrigin = fe, e.dataset.fixedVertical = T, e.dataset.fixedHorizontal = $, e.style.setProperty("--sq-offset-top", w), e.style.setProperty("--sq-offset-bottom", te), e.style.setProperty("--sq-offset-left", J), e.style.setProperty("--sq-offset-right", re);
|
|
1097
1097
|
};
|
|
1098
1098
|
if (o && A(), t.buttonSelector)
|
|
1099
1099
|
if (l = document.querySelector(t.buttonSelector), l) {
|
|
@@ -1107,16 +1107,16 @@ function Xo(e, t) {
|
|
|
1107
1107
|
f.addEventListener("click", T, !1), n.push(
|
|
1108
1108
|
() => f.removeEventListener("click", T, !1)
|
|
1109
1109
|
);
|
|
1110
|
-
const
|
|
1110
|
+
const $ = () => {
|
|
1111
1111
|
o ? A() : requestAnimationFrame(p);
|
|
1112
1112
|
};
|
|
1113
1113
|
e.addEventListener(
|
|
1114
1114
|
"squelette:frame-loaded",
|
|
1115
|
-
|
|
1115
|
+
$
|
|
1116
1116
|
), n.push(
|
|
1117
1117
|
() => e.removeEventListener(
|
|
1118
1118
|
"squelette:frame-loaded",
|
|
1119
|
-
|
|
1119
|
+
$
|
|
1120
1120
|
)
|
|
1121
1121
|
), u = (P) => {
|
|
1122
1122
|
if (!e.hasAttribute("open")) return;
|
|
@@ -1131,16 +1131,16 @@ function Xo(e, t) {
|
|
|
1131
1131
|
);
|
|
1132
1132
|
const M = e.on("open", () => {
|
|
1133
1133
|
o ? A() : l && m();
|
|
1134
|
-
}),
|
|
1135
|
-
|
|
1134
|
+
}), x = e.on("close", () => {
|
|
1135
|
+
y();
|
|
1136
1136
|
});
|
|
1137
|
-
if (n.push(M,
|
|
1137
|
+
if (n.push(M, x), t.onOpenChange) {
|
|
1138
1138
|
const f = e.on("open", () => {
|
|
1139
|
-
var
|
|
1140
|
-
return (
|
|
1139
|
+
var $;
|
|
1140
|
+
return ($ = t.onOpenChange) == null ? void 0 : $.call(t, !0);
|
|
1141
1141
|
}), T = e.on("close", () => {
|
|
1142
|
-
var
|
|
1143
|
-
return (
|
|
1142
|
+
var $;
|
|
1143
|
+
return ($ = t.onOpenChange) == null ? void 0 : $.call(t, !1);
|
|
1144
1144
|
});
|
|
1145
1145
|
n.push(f, T);
|
|
1146
1146
|
}
|
|
@@ -1164,11 +1164,11 @@ function Xo(e, t) {
|
|
|
1164
1164
|
}
|
|
1165
1165
|
return n;
|
|
1166
1166
|
}
|
|
1167
|
-
const Ui = '*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.\\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}.
|
|
1167
|
+
const Ui = '*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.\\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:0}.mx-4{margin-left:1rem;margin-right:1rem}.box-border{box-sizing:border-box}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.size-4{width:1rem;height:1rem}.h-6{height:1.5rem}.h-\\[64px\\]{height:64px}.h-full{height:100%}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-\\[400px\\]{max-width:400px}.max-w-lg{max-width:32rem}.shrink-0{flex-shrink:0}.origin-center{transform-origin:center}.translate-y-0\\.5{--tw-translate-y: .125rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.resize{resize:both}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.whitespace-nowrap{white-space:nowrap}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-0{border-width:0px}.border-none{border-style:none}.border-red-400{--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-opacity, 1))}.bg-black\\/60{background-color:#0009}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-0{padding:0}.p-1{padding:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.align-baseline{vertical-align:baseline}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-xl{--tw-drop-shadow: drop-shadow(0 20px 13px rgb(0 0 0 / .03)) drop-shadow(0 8px 5px rgb(0 0 0 / .08));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-filter{backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.will-change-transform{will-change:transform}:host{display:block;width:100%;contain:content;--squelette-banner-bg: #ffffff;--squelette-banner-border: #e5e7eb;--squelette-banner-text: #111827;--squelette-banner-badge-bg: #7f3cec;--squelette-banner-badge-text: #ffffff;--squelette-banner-button-hover: .7}';
|
|
1168
1168
|
var Zo = Symbol.for("preact-signals");
|
|
1169
1169
|
function nn() {
|
|
1170
|
-
if (
|
|
1171
|
-
|
|
1170
|
+
if (Re > 1)
|
|
1171
|
+
Re--;
|
|
1172
1172
|
else {
|
|
1173
1173
|
for (var e, t = !1; ht !== void 0; ) {
|
|
1174
1174
|
var n = ht;
|
|
@@ -1182,12 +1182,12 @@ function nn() {
|
|
|
1182
1182
|
n = r;
|
|
1183
1183
|
}
|
|
1184
1184
|
}
|
|
1185
|
-
if (Mn = 0,
|
|
1185
|
+
if (Mn = 0, Re--, t) throw e;
|
|
1186
1186
|
}
|
|
1187
1187
|
}
|
|
1188
1188
|
function ji(e) {
|
|
1189
|
-
if (
|
|
1190
|
-
|
|
1189
|
+
if (Re > 0) return e();
|
|
1190
|
+
Re++;
|
|
1191
1191
|
try {
|
|
1192
1192
|
return e();
|
|
1193
1193
|
} finally {
|
|
@@ -1204,7 +1204,7 @@ function Gi(e) {
|
|
|
1204
1204
|
O = t;
|
|
1205
1205
|
}
|
|
1206
1206
|
}
|
|
1207
|
-
var ht = void 0,
|
|
1207
|
+
var ht = void 0, Re = 0, Mn = 0, Kt = 0;
|
|
1208
1208
|
function Ki(e) {
|
|
1209
1209
|
if (O !== void 0) {
|
|
1210
1210
|
var t = e.n;
|
|
@@ -1274,7 +1274,7 @@ Object.defineProperty(Y.prototype, "value", { get: function() {
|
|
|
1274
1274
|
}, set: function(e) {
|
|
1275
1275
|
if (e !== this.v) {
|
|
1276
1276
|
if (Mn > 100) throw new Error("Cycle detected");
|
|
1277
|
-
this.v = e, this.i++, Kt++,
|
|
1277
|
+
this.v = e, this.i++, Kt++, Re++;
|
|
1278
1278
|
try {
|
|
1279
1279
|
for (var t = this.t; t !== void 0; t = t.x) t.t.N();
|
|
1280
1280
|
} finally {
|
|
@@ -1355,7 +1355,7 @@ function Br(e, t) {
|
|
|
1355
1355
|
function Zi(e) {
|
|
1356
1356
|
var t = e.u;
|
|
1357
1357
|
if (e.u = void 0, typeof t == "function") {
|
|
1358
|
-
|
|
1358
|
+
Re++;
|
|
1359
1359
|
var n = O;
|
|
1360
1360
|
O = void 0;
|
|
1361
1361
|
try {
|
|
@@ -1390,7 +1390,7 @@ et.prototype.c = function() {
|
|
|
1390
1390
|
};
|
|
1391
1391
|
et.prototype.S = function() {
|
|
1392
1392
|
if (1 & this.f) throw new Error("Cycle detected");
|
|
1393
|
-
this.f |= 1, this.f &= -9, Zi(this), Yi(this),
|
|
1393
|
+
this.f |= 1, this.f &= -9, Zi(this), Yi(this), Re++;
|
|
1394
1394
|
var e = O;
|
|
1395
1395
|
return O = this, Jo.bind(this, e);
|
|
1396
1396
|
};
|
|
@@ -1580,7 +1580,7 @@ function ts() {
|
|
|
1580
1580
|
}
|
|
1581
1581
|
function oa(e, t) {
|
|
1582
1582
|
var n = ae(e);
|
|
1583
|
-
n.current = e,
|
|
1583
|
+
n.current = e, $e(function() {
|
|
1584
1584
|
return tt(function() {
|
|
1585
1585
|
return this.N = ia, n.current();
|
|
1586
1586
|
}, t);
|
|
@@ -1680,7 +1680,7 @@ const bs = (e) => Array.isArray(e) && typeof e[0] == "number", ba = {
|
|
|
1680
1680
|
} else if (ya(e))
|
|
1681
1681
|
return ba[e];
|
|
1682
1682
|
return e;
|
|
1683
|
-
},
|
|
1683
|
+
}, $t = [
|
|
1684
1684
|
"setup",
|
|
1685
1685
|
// Compute
|
|
1686
1686
|
"read",
|
|
@@ -1714,8 +1714,8 @@ function _a(e, t) {
|
|
|
1714
1714
|
* Schedule a process to run on the next frame.
|
|
1715
1715
|
*/
|
|
1716
1716
|
schedule: (d, u = !1, h = !1) => {
|
|
1717
|
-
const
|
|
1718
|
-
return u && o.add(d),
|
|
1717
|
+
const b = h && i ? n : r;
|
|
1718
|
+
return u && o.add(d), b.has(d) || b.add(d), d;
|
|
1719
1719
|
},
|
|
1720
1720
|
/**
|
|
1721
1721
|
* Cancel the provided callback from running on the next frame.
|
|
@@ -1743,18 +1743,18 @@ function ys(e, t) {
|
|
|
1743
1743
|
delta: 0,
|
|
1744
1744
|
timestamp: 0,
|
|
1745
1745
|
isProcessing: !1
|
|
1746
|
-
}, s = () => n = !0, o =
|
|
1746
|
+
}, s = () => n = !0, o = $t.reduce((A, M) => (A[M] = _a(s), A), {}), { setup: a, read: l, resolveKeyframes: c, preUpdate: d, update: u, preRender: h, render: p, postRender: b } = o, _ = () => {
|
|
1747
1747
|
const A = Ae.useManualTiming ? i.timestamp : performance.now();
|
|
1748
|
-
n = !1, Ae.useManualTiming || (i.delta = r ? 1e3 / 60 : Math.max(Math.min(A - i.timestamp, va), 1)), i.timestamp = A, i.isProcessing = !0, a.process(i), l.process(i), c.process(i), d.process(i), u.process(i), h.process(i), p.process(i),
|
|
1749
|
-
},
|
|
1748
|
+
n = !1, Ae.useManualTiming || (i.delta = r ? 1e3 / 60 : Math.max(Math.min(A - i.timestamp, va), 1)), i.timestamp = A, i.isProcessing = !0, a.process(i), l.process(i), c.process(i), d.process(i), u.process(i), h.process(i), p.process(i), b.process(i), i.isProcessing = !1, n && t && (r = !1, e(_));
|
|
1749
|
+
}, v = () => {
|
|
1750
1750
|
n = !0, r = !0, i.isProcessing || e(_);
|
|
1751
1751
|
};
|
|
1752
|
-
return { schedule:
|
|
1753
|
-
const
|
|
1754
|
-
return A[M] = (C, N = !1, f = !1) => (n ||
|
|
1752
|
+
return { schedule: $t.reduce((A, M) => {
|
|
1753
|
+
const x = o[M];
|
|
1754
|
+
return A[M] = (C, N = !1, f = !1) => (n || v(), x.schedule(C, N, f)), A;
|
|
1755
1755
|
}, {}), cancel: (A) => {
|
|
1756
|
-
for (let M = 0; M <
|
|
1757
|
-
o[
|
|
1756
|
+
for (let M = 0; M < $t.length; M++)
|
|
1757
|
+
o[$t[M]].cancel(A);
|
|
1758
1758
|
}, state: i, steps: o };
|
|
1759
1759
|
}
|
|
1760
1760
|
const { schedule: Me, cancel: Cn, state: Yt } = /* @__PURE__ */ ys(typeof requestAnimationFrame != "undefined" ? requestAnimationFrame : rt, !0);
|
|
@@ -1774,7 +1774,7 @@ const de = {
|
|
|
1774
1774
|
}, yt = {
|
|
1775
1775
|
...it,
|
|
1776
1776
|
transform: (e) => ze(0, 1, e)
|
|
1777
|
-
},
|
|
1777
|
+
}, Rt = {
|
|
1778
1778
|
...it,
|
|
1779
1779
|
default: 1
|
|
1780
1780
|
}, pt = (e) => Math.round(e * 1e5) / 1e5, cr = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
|
|
@@ -1837,7 +1837,7 @@ function Pa(e) {
|
|
|
1837
1837
|
var t, n;
|
|
1838
1838
|
return isNaN(e) && typeof e == "string" && (((t = e.match(cr)) == null ? void 0 : t.length) || 0) + (((n = e.match(Ea)) == null ? void 0 : n.length) || 0) > 0;
|
|
1839
1839
|
}
|
|
1840
|
-
const xs = "number", ks = "color",
|
|
1840
|
+
const xs = "number", ks = "color", $a = "var", Ra = "var(", jr = "${}", Fa = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
|
|
1841
1841
|
function _t(e) {
|
|
1842
1842
|
const t = e.toString(), n = [], r = {
|
|
1843
1843
|
color: [],
|
|
@@ -1845,7 +1845,7 @@ function _t(e) {
|
|
|
1845
1845
|
var: []
|
|
1846
1846
|
}, i = [];
|
|
1847
1847
|
let s = 0;
|
|
1848
|
-
const a = t.replace(Fa, (l) => (K.test(l) ? (r.color.push(s), i.push(ks), n.push(K.parse(l))) : l.startsWith(
|
|
1848
|
+
const a = t.replace(Fa, (l) => (K.test(l) ? (r.color.push(s), i.push(ks), n.push(K.parse(l))) : l.startsWith(Ra) ? (r.var.push(s), i.push($a), n.push(l)) : (r.number.push(s), i.push(xs), n.push(parseFloat(l))), ++s, jr)).split(jr);
|
|
1849
1849
|
return { values: n, split: a, indexes: r, types: i };
|
|
1850
1850
|
}
|
|
1851
1851
|
function Ss(e) {
|
|
@@ -2028,11 +2028,11 @@ const W = {
|
|
|
2028
2028
|
function Ka({ duration: e = W.duration, bounce: t = W.bounce, velocity: n = W.velocity, mass: r = W.mass }) {
|
|
2029
2029
|
let i, s, o = 1 - t;
|
|
2030
2030
|
o = ze(W.minDamping, W.maxDamping, o), e = ze(W.minDuration, W.maxDuration, /* @__PURE__ */ ge(e)), o < 1 ? (i = (c) => {
|
|
2031
|
-
const d = c * o, u = d * e, h = d - n, p = Pn(c, o),
|
|
2032
|
-
return hn - h / p *
|
|
2031
|
+
const d = c * o, u = d * e, h = d - n, p = Pn(c, o), b = Math.exp(-u);
|
|
2032
|
+
return hn - h / p * b;
|
|
2033
2033
|
}, s = (c) => {
|
|
2034
|
-
const u = c * o * e, h = u * n + n, p = Math.pow(o, 2) * Math.pow(c, 2) * e,
|
|
2035
|
-
return (-i(c) + hn > 0 ? -1 : 1) * ((h - p) *
|
|
2034
|
+
const u = c * o * e, h = u * n + n, p = Math.pow(o, 2) * Math.pow(c, 2) * e, b = Math.exp(-u), _ = Pn(Math.pow(c, 2), o);
|
|
2035
|
+
return (-i(c) + hn > 0 ? -1 : 1) * ((h - p) * b) / _;
|
|
2036
2036
|
}) : (i = (c) => {
|
|
2037
2037
|
const d = Math.exp(-c * e), u = (c - n) * e + 1;
|
|
2038
2038
|
return -hn + d * u;
|
|
@@ -2108,41 +2108,41 @@ function vt(e = W.visualDuration, t = W.bounce) {
|
|
|
2108
2108
|
const s = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: s }, { stiffness: l, damping: c, mass: d, duration: u, velocity: h, isResolvedFromDuration: p } = Ja({
|
|
2109
2109
|
...n,
|
|
2110
2110
|
velocity: -/* @__PURE__ */ ge(n.velocity || 0)
|
|
2111
|
-
}),
|
|
2112
|
-
r || (r =
|
|
2111
|
+
}), b = h || 0, _ = c / (2 * Math.sqrt(l * d)), v = o - s, m = /* @__PURE__ */ ge(Math.sqrt(l / d)), y = Math.abs(v) < 5;
|
|
2112
|
+
r || (r = y ? W.restSpeed.granular : W.restSpeed.default), i || (i = y ? W.restDelta.granular : W.restDelta.default);
|
|
2113
2113
|
let A;
|
|
2114
2114
|
if (_ < 1) {
|
|
2115
|
-
const
|
|
2115
|
+
const x = Pn(m, _);
|
|
2116
2116
|
A = (C) => {
|
|
2117
2117
|
const N = Math.exp(-_ * m * C);
|
|
2118
|
-
return o - N * ((
|
|
2118
|
+
return o - N * ((b + _ * m * v) / x * Math.sin(x * C) + v * Math.cos(x * C));
|
|
2119
2119
|
};
|
|
2120
2120
|
} else if (_ === 1)
|
|
2121
|
-
A = (
|
|
2121
|
+
A = (x) => o - Math.exp(-m * x) * (v + (b + m * v) * x);
|
|
2122
2122
|
else {
|
|
2123
|
-
const
|
|
2123
|
+
const x = m * Math.sqrt(_ * _ - 1);
|
|
2124
2124
|
A = (C) => {
|
|
2125
|
-
const N = Math.exp(-_ * m * C), f = Math.min(
|
|
2126
|
-
return o - N * ((
|
|
2125
|
+
const N = Math.exp(-_ * m * C), f = Math.min(x * C, 300);
|
|
2126
|
+
return o - N * ((b + _ * m * v) * Math.sinh(f) + x * v * Math.cosh(f)) / x;
|
|
2127
2127
|
};
|
|
2128
2128
|
}
|
|
2129
2129
|
const M = {
|
|
2130
2130
|
calculatedDuration: p && u || null,
|
|
2131
|
-
next: (
|
|
2132
|
-
const C = A(
|
|
2131
|
+
next: (x) => {
|
|
2132
|
+
const C = A(x);
|
|
2133
2133
|
if (p)
|
|
2134
|
-
a.done =
|
|
2134
|
+
a.done = x >= u;
|
|
2135
2135
|
else {
|
|
2136
|
-
let N =
|
|
2137
|
-
_ < 1 && (N =
|
|
2136
|
+
let N = x === 0 ? b : 0;
|
|
2137
|
+
_ < 1 && (N = x === 0 ? /* @__PURE__ */ we(b) : Es(A, x, C));
|
|
2138
2138
|
const f = Math.abs(N) <= r, T = Math.abs(o - C) <= i;
|
|
2139
2139
|
a.done = f && T;
|
|
2140
2140
|
}
|
|
2141
2141
|
return a.value = a.done ? o : C, a;
|
|
2142
2142
|
},
|
|
2143
2143
|
toString: () => {
|
|
2144
|
-
const
|
|
2145
|
-
return
|
|
2144
|
+
const x = Math.min(fr(M), Zt), C = Cs((N) => M.next(x * N).value, x, 30);
|
|
2145
|
+
return x + "ms " + C;
|
|
2146
2146
|
},
|
|
2147
2147
|
toTransition: () => {
|
|
2148
2148
|
}
|
|
@@ -2153,22 +2153,22 @@ vt.applyToOptions = (e) => {
|
|
|
2153
2153
|
const t = Vs(e, 100, vt);
|
|
2154
2154
|
return e.ease = t.ease, e.duration = /* @__PURE__ */ we(t.duration), e.type = "keyframes", e;
|
|
2155
2155
|
};
|
|
2156
|
-
function
|
|
2156
|
+
function $n({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: s = 500, modifyTarget: o, min: a, max: l, restDelta: c = 0.5, restSpeed: d }) {
|
|
2157
2157
|
const u = e[0], h = {
|
|
2158
2158
|
done: !1,
|
|
2159
2159
|
value: u
|
|
2160
|
-
}, p = (f) => a !== void 0 && f < a || l !== void 0 && f > l,
|
|
2160
|
+
}, p = (f) => a !== void 0 && f < a || l !== void 0 && f > l, b = (f) => a === void 0 ? l : l === void 0 || Math.abs(a - f) < Math.abs(l - f) ? a : l;
|
|
2161
2161
|
let _ = n * t;
|
|
2162
|
-
const
|
|
2163
|
-
m !==
|
|
2164
|
-
const
|
|
2165
|
-
const T =
|
|
2166
|
-
h.done = Math.abs(T) <= c, h.value = h.done ? m :
|
|
2162
|
+
const v = u + _, m = o === void 0 ? v : o(v);
|
|
2163
|
+
m !== v && (_ = m - u);
|
|
2164
|
+
const y = (f) => -_ * Math.exp(-f / r), A = (f) => m + y(f), M = (f) => {
|
|
2165
|
+
const T = y(f), $ = A(f);
|
|
2166
|
+
h.done = Math.abs(T) <= c, h.value = h.done ? m : $;
|
|
2167
2167
|
};
|
|
2168
|
-
let
|
|
2168
|
+
let x, C;
|
|
2169
2169
|
const N = (f) => {
|
|
2170
|
-
p(h.value) && (
|
|
2171
|
-
keyframes: [h.value,
|
|
2170
|
+
p(h.value) && (x = f, C = vt({
|
|
2171
|
+
keyframes: [h.value, b(h.value)],
|
|
2172
2172
|
velocity: Es(A, f, h.value),
|
|
2173
2173
|
// TODO: This should be passing * 1000
|
|
2174
2174
|
damping: i,
|
|
@@ -2181,7 +2181,7 @@ function Rn({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
|
|
|
2181
2181
|
calculatedDuration: null,
|
|
2182
2182
|
next: (f) => {
|
|
2183
2183
|
let T = !1;
|
|
2184
|
-
return !C &&
|
|
2184
|
+
return !C && x === void 0 && (T = !0, M(f), N(f)), x !== void 0 && f >= x ? C.next(f - x) : (!T && M(f), h);
|
|
2185
2185
|
}
|
|
2186
2186
|
};
|
|
2187
2187
|
}
|
|
@@ -2224,7 +2224,7 @@ function Ps(e, t) {
|
|
|
2224
2224
|
e.push(Ct(n, 1, i));
|
|
2225
2225
|
}
|
|
2226
2226
|
}
|
|
2227
|
-
function
|
|
2227
|
+
function $s(e) {
|
|
2228
2228
|
const t = [0];
|
|
2229
2229
|
return Ps(t, e.length - 1), t;
|
|
2230
2230
|
}
|
|
@@ -2241,7 +2241,7 @@ function mt({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }
|
|
|
2241
2241
|
}, o = tl(
|
|
2242
2242
|
// Only use the provided offsets if they're the correct length
|
|
2243
2243
|
// TODO Maybe we should warn here if there's a length mismatch
|
|
2244
|
-
n && n.length === t.length ? n :
|
|
2244
|
+
n && n.length === t.length ? n : $s(t),
|
|
2245
2245
|
e
|
|
2246
2246
|
), a = el(o, t, {
|
|
2247
2247
|
ease: Array.isArray(i) ? i : nl(t, i)
|
|
@@ -2257,13 +2257,13 @@ function hr(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
|
|
|
2257
2257
|
return !a || r === void 0 ? s[a] : r;
|
|
2258
2258
|
}
|
|
2259
2259
|
const il = {
|
|
2260
|
-
decay:
|
|
2261
|
-
inertia:
|
|
2260
|
+
decay: $n,
|
|
2261
|
+
inertia: $n,
|
|
2262
2262
|
tween: mt,
|
|
2263
2263
|
keyframes: mt,
|
|
2264
2264
|
spring: vt
|
|
2265
2265
|
};
|
|
2266
|
-
function
|
|
2266
|
+
function Rs(e) {
|
|
2267
2267
|
typeof e.type == "string" && (e.type = il[e.type]);
|
|
2268
2268
|
}
|
|
2269
2269
|
class pr {
|
|
@@ -2301,7 +2301,7 @@ class mr extends pr {
|
|
|
2301
2301
|
}
|
|
2302
2302
|
initAnimation() {
|
|
2303
2303
|
const { options: t } = this;
|
|
2304
|
-
|
|
2304
|
+
Rs(t);
|
|
2305
2305
|
const { type: n = mt, repeat: r = 0, repeatDelay: i = 0, repeatType: s, velocity: o = 0 } = t;
|
|
2306
2306
|
let { keyframes: a } = t;
|
|
2307
2307
|
const l = n || mt;
|
|
@@ -2323,22 +2323,22 @@ class mr extends pr {
|
|
|
2323
2323
|
const { generator: r, totalDuration: i, mixKeyframes: s, mirroredGenerator: o, resolvedDuration: a, calculatedDuration: l } = this;
|
|
2324
2324
|
if (this.startTime === null)
|
|
2325
2325
|
return r.next(0);
|
|
2326
|
-
const { delay: c = 0, keyframes: d, repeat: u, repeatType: h, repeatDelay: p, type:
|
|
2326
|
+
const { delay: c = 0, keyframes: d, repeat: u, repeatType: h, repeatDelay: p, type: b, onUpdate: _, finalKeyframe: v } = this.options;
|
|
2327
2327
|
this.speed > 0 ? this.startTime = Math.min(this.startTime, t) : this.speed < 0 && (this.startTime = Math.min(t - i / this.speed, this.startTime)), n ? this.currentTime = t : this.updateTime(t);
|
|
2328
|
-
const m = this.currentTime - c * (this.playbackSpeed >= 0 ? 1 : -1),
|
|
2328
|
+
const m = this.currentTime - c * (this.playbackSpeed >= 0 ? 1 : -1), y = this.playbackSpeed >= 0 ? m < 0 : m > i;
|
|
2329
2329
|
this.currentTime = Math.max(m, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = i);
|
|
2330
2330
|
let A = this.currentTime, M = r;
|
|
2331
2331
|
if (u) {
|
|
2332
2332
|
const f = Math.min(this.currentTime, i) / a;
|
|
2333
|
-
let T = Math.floor(f),
|
|
2334
|
-
|
|
2333
|
+
let T = Math.floor(f), $ = f % 1;
|
|
2334
|
+
!$ && f >= 1 && ($ = 1), $ === 1 && T--, T = Math.min(T, u + 1), !!(T % 2) && (h === "reverse" ? ($ = 1 - $, p && ($ -= p / a)) : h === "mirror" && (M = o)), A = ze(0, 1, $) * a;
|
|
2335
2335
|
}
|
|
2336
|
-
const
|
|
2337
|
-
s && (
|
|
2338
|
-
let { done: C } =
|
|
2339
|
-
!
|
|
2336
|
+
const x = y ? { done: !1, value: d[0] } : M.next(A);
|
|
2337
|
+
s && (x.value = s(x.value));
|
|
2338
|
+
let { done: C } = x;
|
|
2339
|
+
!y && l !== null && (C = this.playbackSpeed >= 0 ? this.currentTime >= i : this.currentTime <= 0);
|
|
2340
2340
|
const N = this.holdTime === null && (this.state === "finished" || this.state === "running" && C);
|
|
2341
|
-
return N &&
|
|
2341
|
+
return N && b !== $n && (x.value = hr(d, this.options, v, this.speed)), _ && _(x.value), N && this.finish(), x;
|
|
2342
2342
|
}
|
|
2343
2343
|
/**
|
|
2344
2344
|
* Allows the returned animation to be awaited or promise-chained. Currently
|
|
@@ -2412,7 +2412,7 @@ function ol(e) {
|
|
|
2412
2412
|
for (let n = 1; n < e.length; n++)
|
|
2413
2413
|
(t = e[n]) != null || (e[n] = e[n - 1]);
|
|
2414
2414
|
}
|
|
2415
|
-
const Ie = (e) => e * 180 / Math.PI,
|
|
2415
|
+
const Ie = (e) => e * 180 / Math.PI, Rn = (e) => {
|
|
2416
2416
|
const t = Ie(Math.atan2(e[1], e[0]));
|
|
2417
2417
|
return Fn(t);
|
|
2418
2418
|
}, al = {
|
|
@@ -2423,12 +2423,12 @@ const Ie = (e) => e * 180 / Math.PI, $n = (e) => {
|
|
|
2423
2423
|
scaleX: 0,
|
|
2424
2424
|
scaleY: 3,
|
|
2425
2425
|
scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
|
|
2426
|
-
rotate:
|
|
2427
|
-
rotateZ:
|
|
2426
|
+
rotate: Rn,
|
|
2427
|
+
rotateZ: Rn,
|
|
2428
2428
|
skewX: (e) => Ie(Math.atan(e[1])),
|
|
2429
2429
|
skewY: (e) => Ie(Math.atan(e[2])),
|
|
2430
2430
|
skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
|
|
2431
|
-
}, Fn = (e) => (e = e % 360, e < 0 && (e += 360), e), Yr =
|
|
2431
|
+
}, Fn = (e) => (e = e % 360, e < 0 && (e += 360), e), Yr = Rn, Xr = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), Zr = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), ll = {
|
|
2432
2432
|
x: 12,
|
|
2433
2433
|
y: 13,
|
|
2434
2434
|
z: 14,
|
|
@@ -2748,7 +2748,7 @@ function Sl(e) {
|
|
|
2748
2748
|
const ei = 10;
|
|
2749
2749
|
class Tl extends xl {
|
|
2750
2750
|
constructor(t) {
|
|
2751
|
-
Sl(t),
|
|
2751
|
+
Sl(t), Rs(t), super(t), t.startTime && (this.startTime = t.startTime), this.options = t;
|
|
2752
2752
|
}
|
|
2753
2753
|
/**
|
|
2754
2754
|
* WAAPI doesn't natively have any interruption capabilities.
|
|
@@ -2818,12 +2818,12 @@ function El(e) {
|
|
|
2818
2818
|
!l && !r && i !== "mirror" && s !== 0 && o !== "inertia";
|
|
2819
2819
|
}
|
|
2820
2820
|
const Pl = 40;
|
|
2821
|
-
class
|
|
2821
|
+
class $l extends pr {
|
|
2822
2822
|
constructor({ autoplay: t = !0, delay: n = 0, type: r = "keyframes", repeat: i = 0, repeatDelay: s = 0, repeatType: o = "loop", keyframes: a, name: l, motionValue: c, element: d, ...u }) {
|
|
2823
|
-
var
|
|
2823
|
+
var b;
|
|
2824
2824
|
super(), this.stop = () => {
|
|
2825
|
-
var _,
|
|
2826
|
-
this._animation && (this._animation.stop(), (_ = this.stopTimeline) == null || _.call(this)), (
|
|
2825
|
+
var _, v;
|
|
2826
|
+
this._animation && (this._animation.stop(), (_ = this.stopTimeline) == null || _.call(this)), (v = this.keyframeResolver) == null || v.cancel();
|
|
2827
2827
|
}, this.createdAt = de.now();
|
|
2828
2828
|
const h = {
|
|
2829
2829
|
autoplay: t,
|
|
@@ -2837,7 +2837,7 @@ class Rl extends pr {
|
|
|
2837
2837
|
element: d,
|
|
2838
2838
|
...u
|
|
2839
2839
|
}, p = (d == null ? void 0 : d.KeyframeResolver) || gr;
|
|
2840
|
-
this.keyframeResolver = new p(a, (_,
|
|
2840
|
+
this.keyframeResolver = new p(a, (_, v, m) => this.onKeyframesResolved(_, v, h, !m), l, c, d), (b = this.keyframeResolver) == null || b.scheduleResolve();
|
|
2841
2841
|
}
|
|
2842
2842
|
onKeyframesResolved(t, n, r, i) {
|
|
2843
2843
|
this.keyframeResolver = void 0;
|
|
@@ -2906,7 +2906,7 @@ class Rl extends pr {
|
|
|
2906
2906
|
this._animation && this.animation.cancel(), (t = this.keyframeResolver) == null || t.cancel();
|
|
2907
2907
|
}
|
|
2908
2908
|
}
|
|
2909
|
-
class
|
|
2909
|
+
class Rl {
|
|
2910
2910
|
constructor(t) {
|
|
2911
2911
|
this.stop = () => this.runAll("stop"), this.animations = t.filter(Boolean);
|
|
2912
2912
|
}
|
|
@@ -2979,7 +2979,7 @@ function ni(e, t) {
|
|
|
2979
2979
|
}
|
|
2980
2980
|
return n;
|
|
2981
2981
|
}
|
|
2982
|
-
class Fl extends
|
|
2982
|
+
class Fl extends Rl {
|
|
2983
2983
|
then(t, n) {
|
|
2984
2984
|
return this.finished.finally(t).then(() => {
|
|
2985
2985
|
});
|
|
@@ -3052,10 +3052,10 @@ const zl = /\b([a-z-]*)\(.*?\)/gu, zn = {
|
|
|
3052
3052
|
rotateX: Ve,
|
|
3053
3053
|
rotateY: Ve,
|
|
3054
3054
|
rotateZ: Ve,
|
|
3055
|
-
scale:
|
|
3056
|
-
scaleX:
|
|
3057
|
-
scaleY:
|
|
3058
|
-
scaleZ:
|
|
3055
|
+
scale: Rt,
|
|
3056
|
+
scaleX: Rt,
|
|
3057
|
+
scaleY: Rt,
|
|
3058
|
+
scaleZ: Rt,
|
|
3059
3059
|
skew: Ve,
|
|
3060
3060
|
skewX: Ve,
|
|
3061
3061
|
skewY: Ve,
|
|
@@ -3465,21 +3465,21 @@ function oc(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
|
|
|
3465
3465
|
const s = t.duration || 0.3, o = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), l = {}, c = /* @__PURE__ */ new Map();
|
|
3466
3466
|
let d = 0, u = 0, h = 0;
|
|
3467
3467
|
for (let p = 0; p < e.length; p++) {
|
|
3468
|
-
const
|
|
3469
|
-
if (typeof
|
|
3470
|
-
c.set(
|
|
3468
|
+
const b = e[p];
|
|
3469
|
+
if (typeof b == "string") {
|
|
3470
|
+
c.set(b, u);
|
|
3471
3471
|
continue;
|
|
3472
|
-
} else if (!Array.isArray(
|
|
3473
|
-
c.set(
|
|
3472
|
+
} else if (!Array.isArray(b)) {
|
|
3473
|
+
c.set(b.name, oi(u, b.at, d, c));
|
|
3474
3474
|
continue;
|
|
3475
3475
|
}
|
|
3476
|
-
let [_,
|
|
3476
|
+
let [_, v, m = {}] = b;
|
|
3477
3477
|
m.at !== void 0 && (u = oi(u, m.at, d, c));
|
|
3478
|
-
let
|
|
3479
|
-
const A = (M,
|
|
3480
|
-
const T = ac(M), { delay:
|
|
3481
|
-
let { ease: G = t.ease || "easeOut", duration:
|
|
3482
|
-
const te = typeof
|
|
3478
|
+
let y = 0;
|
|
3479
|
+
const A = (M, x, C, N = 0, f = 0) => {
|
|
3480
|
+
const T = ac(M), { delay: $ = 0, times: P = $s(T), type: z = "keyframes", repeat: X, repeatType: le, repeatDelay: ce = 0, ...Z } = x;
|
|
3481
|
+
let { ease: G = t.ease || "easeOut", duration: w } = x;
|
|
3482
|
+
const te = typeof $ == "function" ? $(N, f) : $, J = T.length, re = br(z) ? z : i == null ? void 0 : i[z || "keyframes"];
|
|
3483
3483
|
if (J <= 2 && re) {
|
|
3484
3484
|
let Q = 100;
|
|
3485
3485
|
if (J === 2 && uc(T)) {
|
|
@@ -3487,16 +3487,16 @@ function oc(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
|
|
|
3487
3487
|
Q = Math.abs(be);
|
|
3488
3488
|
}
|
|
3489
3489
|
const se = { ...Z };
|
|
3490
|
-
|
|
3490
|
+
w !== void 0 && (se.duration = /* @__PURE__ */ we(w));
|
|
3491
3491
|
const D = Vs(se, Q, re);
|
|
3492
|
-
G = D.ease,
|
|
3492
|
+
G = D.ease, w = D.duration;
|
|
3493
3493
|
}
|
|
3494
|
-
|
|
3494
|
+
w != null || (w = s);
|
|
3495
3495
|
const fe = u + te;
|
|
3496
3496
|
P.length === 1 && P[0] === 0 && (P[1] = 1);
|
|
3497
3497
|
const I = P.length - T.length;
|
|
3498
3498
|
if (I > 0 && Ps(P, I), T.length === 1 && T.unshift(null), X) {
|
|
3499
|
-
|
|
3499
|
+
w = ec(w, X);
|
|
3500
3500
|
const Q = [...T], se = [...P];
|
|
3501
3501
|
G = Array.isArray(G) ? [...G] : [G];
|
|
3502
3502
|
const D = [...G];
|
|
@@ -3507,42 +3507,42 @@ function oc(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
|
|
|
3507
3507
|
}
|
|
3508
3508
|
rc(P, X);
|
|
3509
3509
|
}
|
|
3510
|
-
const B = fe +
|
|
3511
|
-
nc(C, T, G, P, fe, B),
|
|
3510
|
+
const B = fe + w;
|
|
3511
|
+
nc(C, T, G, P, fe, B), y = Math.max(te + w, y), h = Math.max(B, h);
|
|
3512
3512
|
};
|
|
3513
3513
|
if (ne(_)) {
|
|
3514
3514
|
const M = ai(_, a);
|
|
3515
|
-
A(
|
|
3515
|
+
A(v, m, li("default", M));
|
|
3516
3516
|
} else {
|
|
3517
|
-
const M = Hs(_,
|
|
3518
|
-
for (let C = 0; C <
|
|
3519
|
-
|
|
3517
|
+
const M = Hs(_, v, r, l), x = M.length;
|
|
3518
|
+
for (let C = 0; C < x; C++) {
|
|
3519
|
+
v = v, m = m;
|
|
3520
3520
|
const N = M[C], f = ai(N, a);
|
|
3521
|
-
for (const T in
|
|
3522
|
-
A(
|
|
3521
|
+
for (const T in v)
|
|
3522
|
+
A(v[T], lc(m, T), li(T, f), C, x);
|
|
3523
3523
|
}
|
|
3524
3524
|
}
|
|
3525
|
-
d = u, u +=
|
|
3525
|
+
d = u, u += y;
|
|
3526
3526
|
}
|
|
3527
|
-
return a.forEach((p,
|
|
3527
|
+
return a.forEach((p, b) => {
|
|
3528
3528
|
for (const _ in p) {
|
|
3529
|
-
const
|
|
3530
|
-
|
|
3531
|
-
const m = [],
|
|
3532
|
-
for (let
|
|
3533
|
-
const { at: C, value: N, easing: f } =
|
|
3534
|
-
m.push(N),
|
|
3529
|
+
const v = p[_];
|
|
3530
|
+
v.sort(ic);
|
|
3531
|
+
const m = [], y = [], A = [];
|
|
3532
|
+
for (let x = 0; x < v.length; x++) {
|
|
3533
|
+
const { at: C, value: N, easing: f } = v[x];
|
|
3534
|
+
m.push(N), y.push(/* @__PURE__ */ sr(0, h, C)), A.push(f || "easeOut");
|
|
3535
3535
|
}
|
|
3536
|
-
|
|
3536
|
+
y[0] !== 0 && (y.unshift(0), m.unshift(m[0]), A.unshift(sc)), y[y.length - 1] !== 1 && (y.push(1), m.push(null)), o.has(b) || o.set(b, {
|
|
3537
3537
|
keyframes: {},
|
|
3538
3538
|
transition: {}
|
|
3539
3539
|
});
|
|
3540
|
-
const M = o.get(
|
|
3540
|
+
const M = o.get(b);
|
|
3541
3541
|
M.keyframes[_] = m, M.transition[_] = {
|
|
3542
3542
|
...t,
|
|
3543
3543
|
duration: h,
|
|
3544
3544
|
ease: A,
|
|
3545
|
-
times:
|
|
3545
|
+
times: y,
|
|
3546
3546
|
...n
|
|
3547
3547
|
};
|
|
3548
3548
|
}
|
|
@@ -3673,7 +3673,7 @@ const Xs = (e, t, n, r = {}, i, s) => (o) => {
|
|
|
3673
3673
|
return;
|
|
3674
3674
|
}
|
|
3675
3675
|
}
|
|
3676
|
-
return a.isSync ? new mr(d) : new
|
|
3676
|
+
return a.isSync ? new mr(d) : new $l(d);
|
|
3677
3677
|
};
|
|
3678
3678
|
function Vc({ protectedKeys: e, needsAnimating: t }, n) {
|
|
3679
3679
|
const r = e.hasOwnProperty(n) && t[n] !== !0;
|
|
@@ -3688,21 +3688,21 @@ function Ec(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
|
|
|
3688
3688
|
const h = e.getValue(u, (d = e.latestValues[u]) != null ? d : null), p = a[u];
|
|
3689
3689
|
if (p === void 0 || c && Vc(c, u))
|
|
3690
3690
|
continue;
|
|
3691
|
-
const
|
|
3691
|
+
const b = {
|
|
3692
3692
|
delay: n,
|
|
3693
3693
|
...Ds(s || {}, u)
|
|
3694
3694
|
}, _ = h.get();
|
|
3695
|
-
if (_ !== void 0 && !h.isAnimating && !Array.isArray(p) && p === _ && !
|
|
3695
|
+
if (_ !== void 0 && !h.isAnimating && !Array.isArray(p) && p === _ && !b.velocity)
|
|
3696
3696
|
continue;
|
|
3697
|
-
let
|
|
3697
|
+
let v = !1;
|
|
3698
3698
|
if (window.MotionHandoffAnimation) {
|
|
3699
|
-
const
|
|
3700
|
-
if (
|
|
3701
|
-
const A = window.MotionHandoffAnimation(
|
|
3702
|
-
A !== null && (
|
|
3699
|
+
const y = vc(e);
|
|
3700
|
+
if (y) {
|
|
3701
|
+
const A = window.MotionHandoffAnimation(y, u, Me);
|
|
3702
|
+
A !== null && (b.startTime = A, v = !0);
|
|
3703
3703
|
}
|
|
3704
3704
|
}
|
|
3705
|
-
bc(e, u), h.start(Xs(u, h, p, e.shouldReduceMotion && zs.has(u) ? { type: !1 } :
|
|
3705
|
+
bc(e, u), h.start(Xs(u, h, p, e.shouldReduceMotion && zs.has(u) ? { type: !1 } : b, e, v));
|
|
3706
3706
|
const m = h.animation;
|
|
3707
3707
|
m && l.push(m);
|
|
3708
3708
|
}
|
|
@@ -3718,7 +3718,7 @@ function Pc({ top: e, left: t, right: n, bottom: r }) {
|
|
|
3718
3718
|
y: { min: e, max: r }
|
|
3719
3719
|
};
|
|
3720
3720
|
}
|
|
3721
|
-
function
|
|
3721
|
+
function $c(e, t) {
|
|
3722
3722
|
if (!t)
|
|
3723
3723
|
return e;
|
|
3724
3724
|
const n = t({ x: e.left, y: e.top }), r = t({ x: e.right, y: e.bottom });
|
|
@@ -3729,8 +3729,8 @@ function Rc(e, t) {
|
|
|
3729
3729
|
right: r.x
|
|
3730
3730
|
};
|
|
3731
3731
|
}
|
|
3732
|
-
function
|
|
3733
|
-
return Pc(
|
|
3732
|
+
function Rc(e, t) {
|
|
3733
|
+
return Pc($c(e.getBoundingClientRect(), t));
|
|
3734
3734
|
}
|
|
3735
3735
|
const ui = {
|
|
3736
3736
|
animation: [
|
|
@@ -4129,7 +4129,7 @@ class Hc extends eo {
|
|
|
4129
4129
|
}
|
|
4130
4130
|
}
|
|
4131
4131
|
measureInstanceViewportBox(t, { transformPagePoint: n }) {
|
|
4132
|
-
return
|
|
4132
|
+
return Rc(t, n);
|
|
4133
4133
|
}
|
|
4134
4134
|
build(t, n, r) {
|
|
4135
4135
|
to(t, n, r.transformTemplate);
|
|
@@ -4194,14 +4194,14 @@ function eu(e, {
|
|
|
4194
4194
|
// This is object creation, which we try to avoid per-frame.
|
|
4195
4195
|
...a
|
|
4196
4196
|
}, l, c, d) {
|
|
4197
|
-
var p,
|
|
4197
|
+
var p, b;
|
|
4198
4198
|
if (to(e, a, c), l) {
|
|
4199
4199
|
e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
|
|
4200
4200
|
return;
|
|
4201
4201
|
}
|
|
4202
4202
|
e.attrs = e.style, e.style = {};
|
|
4203
4203
|
const { attrs: u, style: h } = e;
|
|
4204
|
-
u.transform && (h.transform = u.transform, delete u.transform), (h.transform || u.transformOrigin) && (h.transformOrigin = (p = u.transformOrigin) != null ? p : "50% 50%", delete u.transformOrigin), h.transform && (h.transformBox = (
|
|
4204
|
+
u.transform && (h.transform = u.transform, delete u.transform), (h.transform || u.transformOrigin) && (h.transformOrigin = (p = u.transformOrigin) != null ? p : "50% 50%", delete u.transformOrigin), h.transform && (h.transformBox = (b = d == null ? void 0 : d.transformBox) != null ? b : "fill-box", delete u.transformBox), t !== void 0 && (u.x = t), n !== void 0 && (u.y = n), r !== void 0 && (u.scale = r), i !== void 0 && Qc(u, i, s, o, !1);
|
|
4205
4205
|
}
|
|
4206
4206
|
const io = /* @__PURE__ */ new Set([
|
|
4207
4207
|
"baseFrequency",
|
|
@@ -4465,15 +4465,15 @@ const xr = "-", hu = (e) => {
|
|
|
4465
4465
|
let r = (i) => {
|
|
4466
4466
|
const s = [];
|
|
4467
4467
|
let o = 0, a = 0, l = 0, c;
|
|
4468
|
-
for (let
|
|
4469
|
-
let _ = i[
|
|
4468
|
+
for (let b = 0; b < i.length; b++) {
|
|
4469
|
+
let _ = i[b];
|
|
4470
4470
|
if (o === 0 && a === 0) {
|
|
4471
4471
|
if (_ === Gn) {
|
|
4472
|
-
s.push(i.slice(l,
|
|
4472
|
+
s.push(i.slice(l, b)), l = b + yu;
|
|
4473
4473
|
continue;
|
|
4474
4474
|
}
|
|
4475
4475
|
if (_ === "/") {
|
|
4476
|
-
c =
|
|
4476
|
+
c = b;
|
|
4477
4477
|
continue;
|
|
4478
4478
|
}
|
|
4479
4479
|
}
|
|
@@ -4534,32 +4534,32 @@ const xr = "-", hu = (e) => {
|
|
|
4534
4534
|
isExternal: u,
|
|
4535
4535
|
modifiers: h,
|
|
4536
4536
|
hasImportantModifier: p,
|
|
4537
|
-
baseClassName:
|
|
4537
|
+
baseClassName: b,
|
|
4538
4538
|
maybePostfixModifierPosition: _
|
|
4539
4539
|
} = n(d);
|
|
4540
4540
|
if (u) {
|
|
4541
4541
|
l = d + (l.length > 0 ? " " + l : l);
|
|
4542
4542
|
continue;
|
|
4543
4543
|
}
|
|
4544
|
-
let
|
|
4544
|
+
let v = !!_, m = r(v ? b.substring(0, _) : b);
|
|
4545
4545
|
if (!m) {
|
|
4546
|
-
if (!
|
|
4546
|
+
if (!v) {
|
|
4547
4547
|
l = d + (l.length > 0 ? " " + l : l);
|
|
4548
4548
|
continue;
|
|
4549
4549
|
}
|
|
4550
|
-
if (m = r(
|
|
4550
|
+
if (m = r(b), !m) {
|
|
4551
4551
|
l = d + (l.length > 0 ? " " + l : l);
|
|
4552
4552
|
continue;
|
|
4553
4553
|
}
|
|
4554
|
-
|
|
4554
|
+
v = !1;
|
|
4555
4555
|
}
|
|
4556
|
-
const
|
|
4556
|
+
const y = s(h).join(":"), A = p ? y + jn : y, M = A + m;
|
|
4557
4557
|
if (o.includes(M))
|
|
4558
4558
|
continue;
|
|
4559
4559
|
o.push(M);
|
|
4560
|
-
const
|
|
4561
|
-
for (let C = 0; C <
|
|
4562
|
-
const N =
|
|
4560
|
+
const x = i(m, v);
|
|
4561
|
+
for (let C = 0; C < x.length; ++C) {
|
|
4562
|
+
const N = x[C];
|
|
4563
4563
|
o.push(A + N);
|
|
4564
4564
|
}
|
|
4565
4565
|
l = d + (l.length > 0 ? " " + l : l);
|
|
@@ -4600,19 +4600,19 @@ function Au(e, ...t) {
|
|
|
4600
4600
|
const H = (e) => {
|
|
4601
4601
|
const t = (n) => n[e] || [];
|
|
4602
4602
|
return t.isThemeGetter = !0, t;
|
|
4603
|
-
}, co = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, uo = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Mu = /^\d+\/\d+$/, Cu = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Vu = /\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$/, Eu = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Pu = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,
|
|
4603
|
+
}, co = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, uo = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Mu = /^\d+\/\d+$/, Cu = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Vu = /\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$/, Eu = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Pu = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, $u = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ue = (e) => Mu.test(e), R = (e) => !!e && !Number.isNaN(Number(e)), Ce = (e) => !!e && Number.isInteger(Number(e)), pn = (e) => e.endsWith("%") && R(e.slice(0, -1)), xe = (e) => Cu.test(e), Ru = () => !0, Fu = (e) => (
|
|
4604
4604
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
4605
4605
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
4606
4606
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
4607
4607
|
Vu.test(e) && !Eu.test(e)
|
|
4608
|
-
), fo = () => !1, qu = (e) => Pu.test(e), Nu = (e) =>
|
|
4608
|
+
), fo = () => !1, qu = (e) => Pu.test(e), Nu = (e) => $u.test(e), Iu = (e) => !k(e) && !S(e), Lu = (e) => lt(e, mo, fo), k = (e) => co.test(e), Fe = (e) => lt(e, go, Fu), mn = (e) => lt(e, Wu, R), mi = (e) => lt(e, ho, fo), Ou = (e) => lt(e, po, Nu), Ft = (e) => lt(e, bo, qu), S = (e) => uo.test(e), dt = (e) => ct(e, go), Du = (e) => ct(e, Uu), gi = (e) => ct(e, ho), zu = (e) => ct(e, mo), Bu = (e) => ct(e, po), qt = (e) => ct(e, bo, !0), lt = (e, t, n) => {
|
|
4609
4609
|
const r = co.exec(e);
|
|
4610
4610
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
4611
4611
|
}, ct = (e, t, n = !1) => {
|
|
4612
4612
|
const r = uo.exec(e);
|
|
4613
4613
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
4614
4614
|
}, ho = (e) => e === "position" || e === "percentage", po = (e) => e === "image" || e === "url", mo = (e) => e === "length" || e === "size" || e === "bg-size", go = (e) => e === "length", Wu = (e) => e === "number", Uu = (e) => e === "family-name", bo = (e) => e === "shadow", ju = () => {
|
|
4615
|
-
const e = H("color"), t = H("font"), n = H("text"), r = H("font-weight"), i = H("tracking"), s = H("leading"), o = H("breakpoint"), a = H("container"), l = H("spacing"), c = H("radius"), d = H("shadow"), u = H("inset-shadow"), h = H("text-shadow"), p = H("drop-shadow"),
|
|
4615
|
+
const e = H("color"), t = H("font"), n = H("text"), r = H("font-weight"), i = H("tracking"), s = H("leading"), o = H("breakpoint"), a = H("container"), l = H("spacing"), c = H("radius"), d = H("shadow"), u = H("inset-shadow"), h = H("text-shadow"), p = H("drop-shadow"), b = H("blur"), _ = H("perspective"), v = H("aspect"), m = H("ease"), y = H("animate"), A = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], M = () => [
|
|
4616
4616
|
"center",
|
|
4617
4617
|
"top",
|
|
4618
4618
|
"bottom",
|
|
@@ -4630,30 +4630,30 @@ const H = (e) => {
|
|
|
4630
4630
|
"bottom-left",
|
|
4631
4631
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
4632
4632
|
"left-bottom"
|
|
4633
|
-
],
|
|
4634
|
-
span: ["full", Ce,
|
|
4635
|
-
}, Ce,
|
|
4636
|
-
position: [
|
|
4633
|
+
], x = () => [...M(), S, k], C = () => ["auto", "hidden", "clip", "visible", "scroll"], N = () => ["auto", "contain", "none"], f = () => [S, k, l], T = () => [Ue, "full", "auto", ...f()], $ = () => [Ce, "none", "subgrid", S, k], P = () => ["auto", {
|
|
4634
|
+
span: ["full", Ce, S, k]
|
|
4635
|
+
}, Ce, S, k], z = () => [Ce, "auto", S, k], X = () => ["auto", "min", "max", "fr", S, k], le = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], ce = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], Z = () => ["auto", ...f()], G = () => [Ue, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...f()], w = () => [e, S, k], te = () => [...M(), gi, mi, {
|
|
4636
|
+
position: [S, k]
|
|
4637
4637
|
}], J = () => ["no-repeat", {
|
|
4638
4638
|
repeat: ["", "x", "y", "space", "round"]
|
|
4639
4639
|
}], re = () => ["auto", "cover", "contain", zu, Lu, {
|
|
4640
|
-
size: [
|
|
4640
|
+
size: [S, k]
|
|
4641
4641
|
}], fe = () => [pn, dt, Fe], I = () => [
|
|
4642
4642
|
// Deprecated since Tailwind CSS v4.0.0
|
|
4643
4643
|
"",
|
|
4644
4644
|
"none",
|
|
4645
4645
|
"full",
|
|
4646
4646
|
c,
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
], B = () => ["",
|
|
4647
|
+
S,
|
|
4648
|
+
k
|
|
4649
|
+
], B = () => ["", R, dt, Fe], Q = () => ["solid", "dashed", "dotted", "double"], se = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], D = () => [R, pn, gi, mi], be = () => [
|
|
4650
4650
|
// Deprecated since Tailwind CSS v4.0.0
|
|
4651
4651
|
"",
|
|
4652
4652
|
"none",
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
], ye = () => ["none",
|
|
4653
|
+
b,
|
|
4654
|
+
S,
|
|
4655
|
+
k
|
|
4656
|
+
], ye = () => ["none", R, S, k], Vt = () => ["none", R, S, k], rn = () => [R, S, k], Et = () => [Ue, "full", ...f()];
|
|
4657
4657
|
return {
|
|
4658
4658
|
cacheSize: 500,
|
|
4659
4659
|
theme: {
|
|
@@ -4661,7 +4661,7 @@ const H = (e) => {
|
|
|
4661
4661
|
aspect: ["video"],
|
|
4662
4662
|
blur: [xe],
|
|
4663
4663
|
breakpoint: [xe],
|
|
4664
|
-
color: [
|
|
4664
|
+
color: [Ru],
|
|
4665
4665
|
container: [xe],
|
|
4666
4666
|
"drop-shadow": [xe],
|
|
4667
4667
|
ease: ["in", "out", "in-out"],
|
|
@@ -4672,7 +4672,7 @@ const H = (e) => {
|
|
|
4672
4672
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
4673
4673
|
radius: [xe],
|
|
4674
4674
|
shadow: [xe],
|
|
4675
|
-
spacing: ["px",
|
|
4675
|
+
spacing: ["px", R],
|
|
4676
4676
|
text: [xe],
|
|
4677
4677
|
"text-shadow": [xe],
|
|
4678
4678
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
@@ -4686,7 +4686,7 @@ const H = (e) => {
|
|
|
4686
4686
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
4687
4687
|
*/
|
|
4688
4688
|
aspect: [{
|
|
4689
|
-
aspect: ["auto", "square", Ue,
|
|
4689
|
+
aspect: ["auto", "square", Ue, k, S, v]
|
|
4690
4690
|
}],
|
|
4691
4691
|
/**
|
|
4692
4692
|
* Container
|
|
@@ -4699,7 +4699,7 @@ const H = (e) => {
|
|
|
4699
4699
|
* @see https://tailwindcss.com/docs/columns
|
|
4700
4700
|
*/
|
|
4701
4701
|
columns: [{
|
|
4702
|
-
columns: [
|
|
4702
|
+
columns: [R, k, S, a]
|
|
4703
4703
|
}],
|
|
4704
4704
|
/**
|
|
4705
4705
|
* Break After
|
|
@@ -4777,7 +4777,7 @@ const H = (e) => {
|
|
|
4777
4777
|
* @see https://tailwindcss.com/docs/object-position
|
|
4778
4778
|
*/
|
|
4779
4779
|
"object-position": [{
|
|
4780
|
-
object:
|
|
4780
|
+
object: x()
|
|
4781
4781
|
}],
|
|
4782
4782
|
/**
|
|
4783
4783
|
* Overflow
|
|
@@ -4899,7 +4899,7 @@ const H = (e) => {
|
|
|
4899
4899
|
* @see https://tailwindcss.com/docs/z-index
|
|
4900
4900
|
*/
|
|
4901
4901
|
z: [{
|
|
4902
|
-
z: [Ce, "auto",
|
|
4902
|
+
z: [Ce, "auto", S, k]
|
|
4903
4903
|
}],
|
|
4904
4904
|
// ------------------------
|
|
4905
4905
|
// --- Flexbox and Grid ---
|
|
@@ -4930,35 +4930,35 @@ const H = (e) => {
|
|
|
4930
4930
|
* @see https://tailwindcss.com/docs/flex
|
|
4931
4931
|
*/
|
|
4932
4932
|
flex: [{
|
|
4933
|
-
flex: [
|
|
4933
|
+
flex: [R, Ue, "auto", "initial", "none", k]
|
|
4934
4934
|
}],
|
|
4935
4935
|
/**
|
|
4936
4936
|
* Flex Grow
|
|
4937
4937
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
4938
4938
|
*/
|
|
4939
4939
|
grow: [{
|
|
4940
|
-
grow: ["",
|
|
4940
|
+
grow: ["", R, S, k]
|
|
4941
4941
|
}],
|
|
4942
4942
|
/**
|
|
4943
4943
|
* Flex Shrink
|
|
4944
4944
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
4945
4945
|
*/
|
|
4946
4946
|
shrink: [{
|
|
4947
|
-
shrink: ["",
|
|
4947
|
+
shrink: ["", R, S, k]
|
|
4948
4948
|
}],
|
|
4949
4949
|
/**
|
|
4950
4950
|
* Order
|
|
4951
4951
|
* @see https://tailwindcss.com/docs/order
|
|
4952
4952
|
*/
|
|
4953
4953
|
order: [{
|
|
4954
|
-
order: [Ce, "first", "last", "none",
|
|
4954
|
+
order: [Ce, "first", "last", "none", S, k]
|
|
4955
4955
|
}],
|
|
4956
4956
|
/**
|
|
4957
4957
|
* Grid Template Columns
|
|
4958
4958
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
4959
4959
|
*/
|
|
4960
4960
|
"grid-cols": [{
|
|
4961
|
-
"grid-cols":
|
|
4961
|
+
"grid-cols": $()
|
|
4962
4962
|
}],
|
|
4963
4963
|
/**
|
|
4964
4964
|
* Grid Column Start / End
|
|
@@ -4986,7 +4986,7 @@ const H = (e) => {
|
|
|
4986
4986
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
4987
4987
|
*/
|
|
4988
4988
|
"grid-rows": [{
|
|
4989
|
-
"grid-rows":
|
|
4989
|
+
"grid-rows": $()
|
|
4990
4990
|
}],
|
|
4991
4991
|
/**
|
|
4992
4992
|
* Grid Row Start / End
|
|
@@ -5363,21 +5363,21 @@ const H = (e) => {
|
|
|
5363
5363
|
* @see https://tailwindcss.com/docs/font-weight
|
|
5364
5364
|
*/
|
|
5365
5365
|
"font-weight": [{
|
|
5366
|
-
font: [r,
|
|
5366
|
+
font: [r, S, mn]
|
|
5367
5367
|
}],
|
|
5368
5368
|
/**
|
|
5369
5369
|
* Font Stretch
|
|
5370
5370
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
5371
5371
|
*/
|
|
5372
5372
|
"font-stretch": [{
|
|
5373
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", pn,
|
|
5373
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", pn, k]
|
|
5374
5374
|
}],
|
|
5375
5375
|
/**
|
|
5376
5376
|
* Font Family
|
|
5377
5377
|
* @see https://tailwindcss.com/docs/font-family
|
|
5378
5378
|
*/
|
|
5379
5379
|
"font-family": [{
|
|
5380
|
-
font: [Du,
|
|
5380
|
+
font: [Du, k, t]
|
|
5381
5381
|
}],
|
|
5382
5382
|
/**
|
|
5383
5383
|
* Font Variant Numeric
|
|
@@ -5414,14 +5414,14 @@ const H = (e) => {
|
|
|
5414
5414
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
5415
5415
|
*/
|
|
5416
5416
|
tracking: [{
|
|
5417
|
-
tracking: [i,
|
|
5417
|
+
tracking: [i, S, k]
|
|
5418
5418
|
}],
|
|
5419
5419
|
/**
|
|
5420
5420
|
* Line Clamp
|
|
5421
5421
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
5422
5422
|
*/
|
|
5423
5423
|
"line-clamp": [{
|
|
5424
|
-
"line-clamp": [
|
|
5424
|
+
"line-clamp": [R, "none", S, mn]
|
|
5425
5425
|
}],
|
|
5426
5426
|
/**
|
|
5427
5427
|
* Line Height
|
|
@@ -5439,7 +5439,7 @@ const H = (e) => {
|
|
|
5439
5439
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
5440
5440
|
*/
|
|
5441
5441
|
"list-image": [{
|
|
5442
|
-
"list-image": ["none",
|
|
5442
|
+
"list-image": ["none", S, k]
|
|
5443
5443
|
}],
|
|
5444
5444
|
/**
|
|
5445
5445
|
* List Style Position
|
|
@@ -5453,7 +5453,7 @@ const H = (e) => {
|
|
|
5453
5453
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
5454
5454
|
*/
|
|
5455
5455
|
"list-style-type": [{
|
|
5456
|
-
list: ["disc", "decimal", "none",
|
|
5456
|
+
list: ["disc", "decimal", "none", S, k]
|
|
5457
5457
|
}],
|
|
5458
5458
|
/**
|
|
5459
5459
|
* Text Alignment
|
|
@@ -5468,14 +5468,14 @@ const H = (e) => {
|
|
|
5468
5468
|
* @see https://v3.tailwindcss.com/docs/placeholder-color
|
|
5469
5469
|
*/
|
|
5470
5470
|
"placeholder-color": [{
|
|
5471
|
-
placeholder:
|
|
5471
|
+
placeholder: w()
|
|
5472
5472
|
}],
|
|
5473
5473
|
/**
|
|
5474
5474
|
* Text Color
|
|
5475
5475
|
* @see https://tailwindcss.com/docs/text-color
|
|
5476
5476
|
*/
|
|
5477
5477
|
"text-color": [{
|
|
5478
|
-
text:
|
|
5478
|
+
text: w()
|
|
5479
5479
|
}],
|
|
5480
5480
|
/**
|
|
5481
5481
|
* Text Decoration
|
|
@@ -5494,21 +5494,21 @@ const H = (e) => {
|
|
|
5494
5494
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
5495
5495
|
*/
|
|
5496
5496
|
"text-decoration-thickness": [{
|
|
5497
|
-
decoration: [
|
|
5497
|
+
decoration: [R, "from-font", "auto", S, Fe]
|
|
5498
5498
|
}],
|
|
5499
5499
|
/**
|
|
5500
5500
|
* Text Decoration Color
|
|
5501
5501
|
* @see https://tailwindcss.com/docs/text-decoration-color
|
|
5502
5502
|
*/
|
|
5503
5503
|
"text-decoration-color": [{
|
|
5504
|
-
decoration:
|
|
5504
|
+
decoration: w()
|
|
5505
5505
|
}],
|
|
5506
5506
|
/**
|
|
5507
5507
|
* Text Underline Offset
|
|
5508
5508
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
5509
5509
|
*/
|
|
5510
5510
|
"underline-offset": [{
|
|
5511
|
-
"underline-offset": [
|
|
5511
|
+
"underline-offset": [R, "auto", S, k]
|
|
5512
5512
|
}],
|
|
5513
5513
|
/**
|
|
5514
5514
|
* Text Transform
|
|
@@ -5539,7 +5539,7 @@ const H = (e) => {
|
|
|
5539
5539
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
5540
5540
|
*/
|
|
5541
5541
|
"vertical-align": [{
|
|
5542
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
5542
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", S, k]
|
|
5543
5543
|
}],
|
|
5544
5544
|
/**
|
|
5545
5545
|
* Whitespace
|
|
@@ -5574,7 +5574,7 @@ const H = (e) => {
|
|
|
5574
5574
|
* @see https://tailwindcss.com/docs/content
|
|
5575
5575
|
*/
|
|
5576
5576
|
content: [{
|
|
5577
|
-
content: ["none",
|
|
5577
|
+
content: ["none", S, k]
|
|
5578
5578
|
}],
|
|
5579
5579
|
// -------------------
|
|
5580
5580
|
// --- Backgrounds ---
|
|
@@ -5629,9 +5629,9 @@ const H = (e) => {
|
|
|
5629
5629
|
bg: ["none", {
|
|
5630
5630
|
linear: [{
|
|
5631
5631
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
5632
|
-
}, Ce,
|
|
5633
|
-
radial: ["",
|
|
5634
|
-
conic: [Ce,
|
|
5632
|
+
}, Ce, S, k],
|
|
5633
|
+
radial: ["", S, k],
|
|
5634
|
+
conic: [Ce, S, k]
|
|
5635
5635
|
}, Bu, Ou]
|
|
5636
5636
|
}],
|
|
5637
5637
|
/**
|
|
@@ -5639,7 +5639,7 @@ const H = (e) => {
|
|
|
5639
5639
|
* @see https://tailwindcss.com/docs/background-color
|
|
5640
5640
|
*/
|
|
5641
5641
|
"bg-color": [{
|
|
5642
|
-
bg:
|
|
5642
|
+
bg: w()
|
|
5643
5643
|
}],
|
|
5644
5644
|
/**
|
|
5645
5645
|
* Gradient Color Stops From Position
|
|
@@ -5667,21 +5667,21 @@ const H = (e) => {
|
|
|
5667
5667
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
5668
5668
|
*/
|
|
5669
5669
|
"gradient-from": [{
|
|
5670
|
-
from:
|
|
5670
|
+
from: w()
|
|
5671
5671
|
}],
|
|
5672
5672
|
/**
|
|
5673
5673
|
* Gradient Color Stops Via
|
|
5674
5674
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
5675
5675
|
*/
|
|
5676
5676
|
"gradient-via": [{
|
|
5677
|
-
via:
|
|
5677
|
+
via: w()
|
|
5678
5678
|
}],
|
|
5679
5679
|
/**
|
|
5680
5680
|
* Gradient Color Stops To
|
|
5681
5681
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
5682
5682
|
*/
|
|
5683
5683
|
"gradient-to": [{
|
|
5684
|
-
to:
|
|
5684
|
+
to: w()
|
|
5685
5685
|
}],
|
|
5686
5686
|
// ---------------
|
|
5687
5687
|
// --- Borders ---
|
|
@@ -5897,70 +5897,70 @@ const H = (e) => {
|
|
|
5897
5897
|
* @see https://tailwindcss.com/docs/border-color
|
|
5898
5898
|
*/
|
|
5899
5899
|
"border-color": [{
|
|
5900
|
-
border:
|
|
5900
|
+
border: w()
|
|
5901
5901
|
}],
|
|
5902
5902
|
/**
|
|
5903
5903
|
* Border Color X
|
|
5904
5904
|
* @see https://tailwindcss.com/docs/border-color
|
|
5905
5905
|
*/
|
|
5906
5906
|
"border-color-x": [{
|
|
5907
|
-
"border-x":
|
|
5907
|
+
"border-x": w()
|
|
5908
5908
|
}],
|
|
5909
5909
|
/**
|
|
5910
5910
|
* Border Color Y
|
|
5911
5911
|
* @see https://tailwindcss.com/docs/border-color
|
|
5912
5912
|
*/
|
|
5913
5913
|
"border-color-y": [{
|
|
5914
|
-
"border-y":
|
|
5914
|
+
"border-y": w()
|
|
5915
5915
|
}],
|
|
5916
5916
|
/**
|
|
5917
5917
|
* Border Color S
|
|
5918
5918
|
* @see https://tailwindcss.com/docs/border-color
|
|
5919
5919
|
*/
|
|
5920
5920
|
"border-color-s": [{
|
|
5921
|
-
"border-s":
|
|
5921
|
+
"border-s": w()
|
|
5922
5922
|
}],
|
|
5923
5923
|
/**
|
|
5924
5924
|
* Border Color E
|
|
5925
5925
|
* @see https://tailwindcss.com/docs/border-color
|
|
5926
5926
|
*/
|
|
5927
5927
|
"border-color-e": [{
|
|
5928
|
-
"border-e":
|
|
5928
|
+
"border-e": w()
|
|
5929
5929
|
}],
|
|
5930
5930
|
/**
|
|
5931
5931
|
* Border Color Top
|
|
5932
5932
|
* @see https://tailwindcss.com/docs/border-color
|
|
5933
5933
|
*/
|
|
5934
5934
|
"border-color-t": [{
|
|
5935
|
-
"border-t":
|
|
5935
|
+
"border-t": w()
|
|
5936
5936
|
}],
|
|
5937
5937
|
/**
|
|
5938
5938
|
* Border Color Right
|
|
5939
5939
|
* @see https://tailwindcss.com/docs/border-color
|
|
5940
5940
|
*/
|
|
5941
5941
|
"border-color-r": [{
|
|
5942
|
-
"border-r":
|
|
5942
|
+
"border-r": w()
|
|
5943
5943
|
}],
|
|
5944
5944
|
/**
|
|
5945
5945
|
* Border Color Bottom
|
|
5946
5946
|
* @see https://tailwindcss.com/docs/border-color
|
|
5947
5947
|
*/
|
|
5948
5948
|
"border-color-b": [{
|
|
5949
|
-
"border-b":
|
|
5949
|
+
"border-b": w()
|
|
5950
5950
|
}],
|
|
5951
5951
|
/**
|
|
5952
5952
|
* Border Color Left
|
|
5953
5953
|
* @see https://tailwindcss.com/docs/border-color
|
|
5954
5954
|
*/
|
|
5955
5955
|
"border-color-l": [{
|
|
5956
|
-
"border-l":
|
|
5956
|
+
"border-l": w()
|
|
5957
5957
|
}],
|
|
5958
5958
|
/**
|
|
5959
5959
|
* Divide Color
|
|
5960
5960
|
* @see https://tailwindcss.com/docs/divide-color
|
|
5961
5961
|
*/
|
|
5962
5962
|
"divide-color": [{
|
|
5963
|
-
divide:
|
|
5963
|
+
divide: w()
|
|
5964
5964
|
}],
|
|
5965
5965
|
/**
|
|
5966
5966
|
* Outline Style
|
|
@@ -5974,21 +5974,21 @@ const H = (e) => {
|
|
|
5974
5974
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
5975
5975
|
*/
|
|
5976
5976
|
"outline-offset": [{
|
|
5977
|
-
"outline-offset": [
|
|
5977
|
+
"outline-offset": [R, S, k]
|
|
5978
5978
|
}],
|
|
5979
5979
|
/**
|
|
5980
5980
|
* Outline Width
|
|
5981
5981
|
* @see https://tailwindcss.com/docs/outline-width
|
|
5982
5982
|
*/
|
|
5983
5983
|
"outline-w": [{
|
|
5984
|
-
outline: ["",
|
|
5984
|
+
outline: ["", R, dt, Fe]
|
|
5985
5985
|
}],
|
|
5986
5986
|
/**
|
|
5987
5987
|
* Outline Color
|
|
5988
5988
|
* @see https://tailwindcss.com/docs/outline-color
|
|
5989
5989
|
*/
|
|
5990
5990
|
"outline-color": [{
|
|
5991
|
-
outline:
|
|
5991
|
+
outline: w()
|
|
5992
5992
|
}],
|
|
5993
5993
|
// ---------------
|
|
5994
5994
|
// --- Effects ---
|
|
@@ -6012,7 +6012,7 @@ const H = (e) => {
|
|
|
6012
6012
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
|
|
6013
6013
|
*/
|
|
6014
6014
|
"shadow-color": [{
|
|
6015
|
-
shadow:
|
|
6015
|
+
shadow: w()
|
|
6016
6016
|
}],
|
|
6017
6017
|
/**
|
|
6018
6018
|
* Inset Box Shadow
|
|
@@ -6026,7 +6026,7 @@ const H = (e) => {
|
|
|
6026
6026
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
|
|
6027
6027
|
*/
|
|
6028
6028
|
"inset-shadow-color": [{
|
|
6029
|
-
"inset-shadow":
|
|
6029
|
+
"inset-shadow": w()
|
|
6030
6030
|
}],
|
|
6031
6031
|
/**
|
|
6032
6032
|
* Ring Width
|
|
@@ -6047,7 +6047,7 @@ const H = (e) => {
|
|
|
6047
6047
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
|
|
6048
6048
|
*/
|
|
6049
6049
|
"ring-color": [{
|
|
6050
|
-
ring:
|
|
6050
|
+
ring: w()
|
|
6051
6051
|
}],
|
|
6052
6052
|
/**
|
|
6053
6053
|
* Ring Offset Width
|
|
@@ -6056,7 +6056,7 @@ const H = (e) => {
|
|
|
6056
6056
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
6057
6057
|
*/
|
|
6058
6058
|
"ring-offset-w": [{
|
|
6059
|
-
"ring-offset": [
|
|
6059
|
+
"ring-offset": [R, Fe]
|
|
6060
6060
|
}],
|
|
6061
6061
|
/**
|
|
6062
6062
|
* Ring Offset Color
|
|
@@ -6065,7 +6065,7 @@ const H = (e) => {
|
|
|
6065
6065
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
6066
6066
|
*/
|
|
6067
6067
|
"ring-offset-color": [{
|
|
6068
|
-
"ring-offset":
|
|
6068
|
+
"ring-offset": w()
|
|
6069
6069
|
}],
|
|
6070
6070
|
/**
|
|
6071
6071
|
* Inset Ring Width
|
|
@@ -6079,7 +6079,7 @@ const H = (e) => {
|
|
|
6079
6079
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
|
|
6080
6080
|
*/
|
|
6081
6081
|
"inset-ring-color": [{
|
|
6082
|
-
"inset-ring":
|
|
6082
|
+
"inset-ring": w()
|
|
6083
6083
|
}],
|
|
6084
6084
|
/**
|
|
6085
6085
|
* Text Shadow
|
|
@@ -6093,14 +6093,14 @@ const H = (e) => {
|
|
|
6093
6093
|
* @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
|
|
6094
6094
|
*/
|
|
6095
6095
|
"text-shadow-color": [{
|
|
6096
|
-
"text-shadow":
|
|
6096
|
+
"text-shadow": w()
|
|
6097
6097
|
}],
|
|
6098
6098
|
/**
|
|
6099
6099
|
* Opacity
|
|
6100
6100
|
* @see https://tailwindcss.com/docs/opacity
|
|
6101
6101
|
*/
|
|
6102
6102
|
opacity: [{
|
|
6103
|
-
opacity: [
|
|
6103
|
+
opacity: [R, S, k]
|
|
6104
6104
|
}],
|
|
6105
6105
|
/**
|
|
6106
6106
|
* Mix Blend Mode
|
|
@@ -6135,7 +6135,7 @@ const H = (e) => {
|
|
|
6135
6135
|
* @see https://tailwindcss.com/docs/mask-image
|
|
6136
6136
|
*/
|
|
6137
6137
|
"mask-image-linear-pos": [{
|
|
6138
|
-
"mask-linear": [
|
|
6138
|
+
"mask-linear": [R]
|
|
6139
6139
|
}],
|
|
6140
6140
|
"mask-image-linear-from-pos": [{
|
|
6141
6141
|
"mask-linear-from": D()
|
|
@@ -6144,10 +6144,10 @@ const H = (e) => {
|
|
|
6144
6144
|
"mask-linear-to": D()
|
|
6145
6145
|
}],
|
|
6146
6146
|
"mask-image-linear-from-color": [{
|
|
6147
|
-
"mask-linear-from":
|
|
6147
|
+
"mask-linear-from": w()
|
|
6148
6148
|
}],
|
|
6149
6149
|
"mask-image-linear-to-color": [{
|
|
6150
|
-
"mask-linear-to":
|
|
6150
|
+
"mask-linear-to": w()
|
|
6151
6151
|
}],
|
|
6152
6152
|
"mask-image-t-from-pos": [{
|
|
6153
6153
|
"mask-t-from": D()
|
|
@@ -6156,10 +6156,10 @@ const H = (e) => {
|
|
|
6156
6156
|
"mask-t-to": D()
|
|
6157
6157
|
}],
|
|
6158
6158
|
"mask-image-t-from-color": [{
|
|
6159
|
-
"mask-t-from":
|
|
6159
|
+
"mask-t-from": w()
|
|
6160
6160
|
}],
|
|
6161
6161
|
"mask-image-t-to-color": [{
|
|
6162
|
-
"mask-t-to":
|
|
6162
|
+
"mask-t-to": w()
|
|
6163
6163
|
}],
|
|
6164
6164
|
"mask-image-r-from-pos": [{
|
|
6165
6165
|
"mask-r-from": D()
|
|
@@ -6168,10 +6168,10 @@ const H = (e) => {
|
|
|
6168
6168
|
"mask-r-to": D()
|
|
6169
6169
|
}],
|
|
6170
6170
|
"mask-image-r-from-color": [{
|
|
6171
|
-
"mask-r-from":
|
|
6171
|
+
"mask-r-from": w()
|
|
6172
6172
|
}],
|
|
6173
6173
|
"mask-image-r-to-color": [{
|
|
6174
|
-
"mask-r-to":
|
|
6174
|
+
"mask-r-to": w()
|
|
6175
6175
|
}],
|
|
6176
6176
|
"mask-image-b-from-pos": [{
|
|
6177
6177
|
"mask-b-from": D()
|
|
@@ -6180,10 +6180,10 @@ const H = (e) => {
|
|
|
6180
6180
|
"mask-b-to": D()
|
|
6181
6181
|
}],
|
|
6182
6182
|
"mask-image-b-from-color": [{
|
|
6183
|
-
"mask-b-from":
|
|
6183
|
+
"mask-b-from": w()
|
|
6184
6184
|
}],
|
|
6185
6185
|
"mask-image-b-to-color": [{
|
|
6186
|
-
"mask-b-to":
|
|
6186
|
+
"mask-b-to": w()
|
|
6187
6187
|
}],
|
|
6188
6188
|
"mask-image-l-from-pos": [{
|
|
6189
6189
|
"mask-l-from": D()
|
|
@@ -6192,10 +6192,10 @@ const H = (e) => {
|
|
|
6192
6192
|
"mask-l-to": D()
|
|
6193
6193
|
}],
|
|
6194
6194
|
"mask-image-l-from-color": [{
|
|
6195
|
-
"mask-l-from":
|
|
6195
|
+
"mask-l-from": w()
|
|
6196
6196
|
}],
|
|
6197
6197
|
"mask-image-l-to-color": [{
|
|
6198
|
-
"mask-l-to":
|
|
6198
|
+
"mask-l-to": w()
|
|
6199
6199
|
}],
|
|
6200
6200
|
"mask-image-x-from-pos": [{
|
|
6201
6201
|
"mask-x-from": D()
|
|
@@ -6204,10 +6204,10 @@ const H = (e) => {
|
|
|
6204
6204
|
"mask-x-to": D()
|
|
6205
6205
|
}],
|
|
6206
6206
|
"mask-image-x-from-color": [{
|
|
6207
|
-
"mask-x-from":
|
|
6207
|
+
"mask-x-from": w()
|
|
6208
6208
|
}],
|
|
6209
6209
|
"mask-image-x-to-color": [{
|
|
6210
|
-
"mask-x-to":
|
|
6210
|
+
"mask-x-to": w()
|
|
6211
6211
|
}],
|
|
6212
6212
|
"mask-image-y-from-pos": [{
|
|
6213
6213
|
"mask-y-from": D()
|
|
@@ -6216,13 +6216,13 @@ const H = (e) => {
|
|
|
6216
6216
|
"mask-y-to": D()
|
|
6217
6217
|
}],
|
|
6218
6218
|
"mask-image-y-from-color": [{
|
|
6219
|
-
"mask-y-from":
|
|
6219
|
+
"mask-y-from": w()
|
|
6220
6220
|
}],
|
|
6221
6221
|
"mask-image-y-to-color": [{
|
|
6222
|
-
"mask-y-to":
|
|
6222
|
+
"mask-y-to": w()
|
|
6223
6223
|
}],
|
|
6224
6224
|
"mask-image-radial": [{
|
|
6225
|
-
"mask-radial": [
|
|
6225
|
+
"mask-radial": [S, k]
|
|
6226
6226
|
}],
|
|
6227
6227
|
"mask-image-radial-from-pos": [{
|
|
6228
6228
|
"mask-radial-from": D()
|
|
@@ -6231,10 +6231,10 @@ const H = (e) => {
|
|
|
6231
6231
|
"mask-radial-to": D()
|
|
6232
6232
|
}],
|
|
6233
6233
|
"mask-image-radial-from-color": [{
|
|
6234
|
-
"mask-radial-from":
|
|
6234
|
+
"mask-radial-from": w()
|
|
6235
6235
|
}],
|
|
6236
6236
|
"mask-image-radial-to-color": [{
|
|
6237
|
-
"mask-radial-to":
|
|
6237
|
+
"mask-radial-to": w()
|
|
6238
6238
|
}],
|
|
6239
6239
|
"mask-image-radial-shape": [{
|
|
6240
6240
|
"mask-radial": ["circle", "ellipse"]
|
|
@@ -6249,7 +6249,7 @@ const H = (e) => {
|
|
|
6249
6249
|
"mask-radial-at": M()
|
|
6250
6250
|
}],
|
|
6251
6251
|
"mask-image-conic-pos": [{
|
|
6252
|
-
"mask-conic": [
|
|
6252
|
+
"mask-conic": [R]
|
|
6253
6253
|
}],
|
|
6254
6254
|
"mask-image-conic-from-pos": [{
|
|
6255
6255
|
"mask-conic-from": D()
|
|
@@ -6258,10 +6258,10 @@ const H = (e) => {
|
|
|
6258
6258
|
"mask-conic-to": D()
|
|
6259
6259
|
}],
|
|
6260
6260
|
"mask-image-conic-from-color": [{
|
|
6261
|
-
"mask-conic-from":
|
|
6261
|
+
"mask-conic-from": w()
|
|
6262
6262
|
}],
|
|
6263
6263
|
"mask-image-conic-to-color": [{
|
|
6264
|
-
"mask-conic-to":
|
|
6264
|
+
"mask-conic-to": w()
|
|
6265
6265
|
}],
|
|
6266
6266
|
/**
|
|
6267
6267
|
* Mask Mode
|
|
@@ -6310,7 +6310,7 @@ const H = (e) => {
|
|
|
6310
6310
|
* @see https://tailwindcss.com/docs/mask-image
|
|
6311
6311
|
*/
|
|
6312
6312
|
"mask-image": [{
|
|
6313
|
-
mask: ["none",
|
|
6313
|
+
mask: ["none", S, k]
|
|
6314
6314
|
}],
|
|
6315
6315
|
// ---------------
|
|
6316
6316
|
// --- Filters ---
|
|
@@ -6324,8 +6324,8 @@ const H = (e) => {
|
|
|
6324
6324
|
// Deprecated since Tailwind CSS v3.0.0
|
|
6325
6325
|
"",
|
|
6326
6326
|
"none",
|
|
6327
|
-
|
|
6328
|
-
|
|
6327
|
+
S,
|
|
6328
|
+
k
|
|
6329
6329
|
]
|
|
6330
6330
|
}],
|
|
6331
6331
|
/**
|
|
@@ -6340,14 +6340,14 @@ const H = (e) => {
|
|
|
6340
6340
|
* @see https://tailwindcss.com/docs/brightness
|
|
6341
6341
|
*/
|
|
6342
6342
|
brightness: [{
|
|
6343
|
-
brightness: [
|
|
6343
|
+
brightness: [R, S, k]
|
|
6344
6344
|
}],
|
|
6345
6345
|
/**
|
|
6346
6346
|
* Contrast
|
|
6347
6347
|
* @see https://tailwindcss.com/docs/contrast
|
|
6348
6348
|
*/
|
|
6349
6349
|
contrast: [{
|
|
6350
|
-
contrast: [
|
|
6350
|
+
contrast: [R, S, k]
|
|
6351
6351
|
}],
|
|
6352
6352
|
/**
|
|
6353
6353
|
* Drop Shadow
|
|
@@ -6368,42 +6368,42 @@ const H = (e) => {
|
|
|
6368
6368
|
* @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
|
|
6369
6369
|
*/
|
|
6370
6370
|
"drop-shadow-color": [{
|
|
6371
|
-
"drop-shadow":
|
|
6371
|
+
"drop-shadow": w()
|
|
6372
6372
|
}],
|
|
6373
6373
|
/**
|
|
6374
6374
|
* Grayscale
|
|
6375
6375
|
* @see https://tailwindcss.com/docs/grayscale
|
|
6376
6376
|
*/
|
|
6377
6377
|
grayscale: [{
|
|
6378
|
-
grayscale: ["",
|
|
6378
|
+
grayscale: ["", R, S, k]
|
|
6379
6379
|
}],
|
|
6380
6380
|
/**
|
|
6381
6381
|
* Hue Rotate
|
|
6382
6382
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
6383
6383
|
*/
|
|
6384
6384
|
"hue-rotate": [{
|
|
6385
|
-
"hue-rotate": [
|
|
6385
|
+
"hue-rotate": [R, S, k]
|
|
6386
6386
|
}],
|
|
6387
6387
|
/**
|
|
6388
6388
|
* Invert
|
|
6389
6389
|
* @see https://tailwindcss.com/docs/invert
|
|
6390
6390
|
*/
|
|
6391
6391
|
invert: [{
|
|
6392
|
-
invert: ["",
|
|
6392
|
+
invert: ["", R, S, k]
|
|
6393
6393
|
}],
|
|
6394
6394
|
/**
|
|
6395
6395
|
* Saturate
|
|
6396
6396
|
* @see https://tailwindcss.com/docs/saturate
|
|
6397
6397
|
*/
|
|
6398
6398
|
saturate: [{
|
|
6399
|
-
saturate: [
|
|
6399
|
+
saturate: [R, S, k]
|
|
6400
6400
|
}],
|
|
6401
6401
|
/**
|
|
6402
6402
|
* Sepia
|
|
6403
6403
|
* @see https://tailwindcss.com/docs/sepia
|
|
6404
6404
|
*/
|
|
6405
6405
|
sepia: [{
|
|
6406
|
-
sepia: ["",
|
|
6406
|
+
sepia: ["", R, S, k]
|
|
6407
6407
|
}],
|
|
6408
6408
|
/**
|
|
6409
6409
|
* Backdrop Filter
|
|
@@ -6414,8 +6414,8 @@ const H = (e) => {
|
|
|
6414
6414
|
// Deprecated since Tailwind CSS v3.0.0
|
|
6415
6415
|
"",
|
|
6416
6416
|
"none",
|
|
6417
|
-
|
|
6418
|
-
|
|
6417
|
+
S,
|
|
6418
|
+
k
|
|
6419
6419
|
]
|
|
6420
6420
|
}],
|
|
6421
6421
|
/**
|
|
@@ -6430,56 +6430,56 @@ const H = (e) => {
|
|
|
6430
6430
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
6431
6431
|
*/
|
|
6432
6432
|
"backdrop-brightness": [{
|
|
6433
|
-
"backdrop-brightness": [
|
|
6433
|
+
"backdrop-brightness": [R, S, k]
|
|
6434
6434
|
}],
|
|
6435
6435
|
/**
|
|
6436
6436
|
* Backdrop Contrast
|
|
6437
6437
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
6438
6438
|
*/
|
|
6439
6439
|
"backdrop-contrast": [{
|
|
6440
|
-
"backdrop-contrast": [
|
|
6440
|
+
"backdrop-contrast": [R, S, k]
|
|
6441
6441
|
}],
|
|
6442
6442
|
/**
|
|
6443
6443
|
* Backdrop Grayscale
|
|
6444
6444
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
6445
6445
|
*/
|
|
6446
6446
|
"backdrop-grayscale": [{
|
|
6447
|
-
"backdrop-grayscale": ["",
|
|
6447
|
+
"backdrop-grayscale": ["", R, S, k]
|
|
6448
6448
|
}],
|
|
6449
6449
|
/**
|
|
6450
6450
|
* Backdrop Hue Rotate
|
|
6451
6451
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
6452
6452
|
*/
|
|
6453
6453
|
"backdrop-hue-rotate": [{
|
|
6454
|
-
"backdrop-hue-rotate": [
|
|
6454
|
+
"backdrop-hue-rotate": [R, S, k]
|
|
6455
6455
|
}],
|
|
6456
6456
|
/**
|
|
6457
6457
|
* Backdrop Invert
|
|
6458
6458
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
6459
6459
|
*/
|
|
6460
6460
|
"backdrop-invert": [{
|
|
6461
|
-
"backdrop-invert": ["",
|
|
6461
|
+
"backdrop-invert": ["", R, S, k]
|
|
6462
6462
|
}],
|
|
6463
6463
|
/**
|
|
6464
6464
|
* Backdrop Opacity
|
|
6465
6465
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
6466
6466
|
*/
|
|
6467
6467
|
"backdrop-opacity": [{
|
|
6468
|
-
"backdrop-opacity": [
|
|
6468
|
+
"backdrop-opacity": [R, S, k]
|
|
6469
6469
|
}],
|
|
6470
6470
|
/**
|
|
6471
6471
|
* Backdrop Saturate
|
|
6472
6472
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
6473
6473
|
*/
|
|
6474
6474
|
"backdrop-saturate": [{
|
|
6475
|
-
"backdrop-saturate": [
|
|
6475
|
+
"backdrop-saturate": [R, S, k]
|
|
6476
6476
|
}],
|
|
6477
6477
|
/**
|
|
6478
6478
|
* Backdrop Sepia
|
|
6479
6479
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
6480
6480
|
*/
|
|
6481
6481
|
"backdrop-sepia": [{
|
|
6482
|
-
"backdrop-sepia": ["",
|
|
6482
|
+
"backdrop-sepia": ["", R, S, k]
|
|
6483
6483
|
}],
|
|
6484
6484
|
// --------------
|
|
6485
6485
|
// --- Tables ---
|
|
@@ -6534,7 +6534,7 @@ const H = (e) => {
|
|
|
6534
6534
|
* @see https://tailwindcss.com/docs/transition-property
|
|
6535
6535
|
*/
|
|
6536
6536
|
transition: [{
|
|
6537
|
-
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none",
|
|
6537
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", S, k]
|
|
6538
6538
|
}],
|
|
6539
6539
|
/**
|
|
6540
6540
|
* Transition Behavior
|
|
@@ -6548,28 +6548,28 @@ const H = (e) => {
|
|
|
6548
6548
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
6549
6549
|
*/
|
|
6550
6550
|
duration: [{
|
|
6551
|
-
duration: [
|
|
6551
|
+
duration: [R, "initial", S, k]
|
|
6552
6552
|
}],
|
|
6553
6553
|
/**
|
|
6554
6554
|
* Transition Timing Function
|
|
6555
6555
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
6556
6556
|
*/
|
|
6557
6557
|
ease: [{
|
|
6558
|
-
ease: ["linear", "initial", m,
|
|
6558
|
+
ease: ["linear", "initial", m, S, k]
|
|
6559
6559
|
}],
|
|
6560
6560
|
/**
|
|
6561
6561
|
* Transition Delay
|
|
6562
6562
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
6563
6563
|
*/
|
|
6564
6564
|
delay: [{
|
|
6565
|
-
delay: [
|
|
6565
|
+
delay: [R, S, k]
|
|
6566
6566
|
}],
|
|
6567
6567
|
/**
|
|
6568
6568
|
* Animation
|
|
6569
6569
|
* @see https://tailwindcss.com/docs/animation
|
|
6570
6570
|
*/
|
|
6571
6571
|
animate: [{
|
|
6572
|
-
animate: ["none",
|
|
6572
|
+
animate: ["none", y, S, k]
|
|
6573
6573
|
}],
|
|
6574
6574
|
// ------------------
|
|
6575
6575
|
// --- Transforms ---
|
|
@@ -6586,14 +6586,14 @@ const H = (e) => {
|
|
|
6586
6586
|
* @see https://tailwindcss.com/docs/perspective
|
|
6587
6587
|
*/
|
|
6588
6588
|
perspective: [{
|
|
6589
|
-
perspective: [_,
|
|
6589
|
+
perspective: [_, S, k]
|
|
6590
6590
|
}],
|
|
6591
6591
|
/**
|
|
6592
6592
|
* Perspective Origin
|
|
6593
6593
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
6594
6594
|
*/
|
|
6595
6595
|
"perspective-origin": [{
|
|
6596
|
-
"perspective-origin":
|
|
6596
|
+
"perspective-origin": x()
|
|
6597
6597
|
}],
|
|
6598
6598
|
/**
|
|
6599
6599
|
* Rotate
|
|
@@ -6682,14 +6682,14 @@ const H = (e) => {
|
|
|
6682
6682
|
* @see https://tailwindcss.com/docs/transform
|
|
6683
6683
|
*/
|
|
6684
6684
|
transform: [{
|
|
6685
|
-
transform: [
|
|
6685
|
+
transform: [S, k, "", "none", "gpu", "cpu"]
|
|
6686
6686
|
}],
|
|
6687
6687
|
/**
|
|
6688
6688
|
* Transform Origin
|
|
6689
6689
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
6690
6690
|
*/
|
|
6691
6691
|
"transform-origin": [{
|
|
6692
|
-
origin:
|
|
6692
|
+
origin: x()
|
|
6693
6693
|
}],
|
|
6694
6694
|
/**
|
|
6695
6695
|
* Transform Style
|
|
@@ -6739,7 +6739,7 @@ const H = (e) => {
|
|
|
6739
6739
|
* @see https://tailwindcss.com/docs/accent-color
|
|
6740
6740
|
*/
|
|
6741
6741
|
accent: [{
|
|
6742
|
-
accent:
|
|
6742
|
+
accent: w()
|
|
6743
6743
|
}],
|
|
6744
6744
|
/**
|
|
6745
6745
|
* Appearance
|
|
@@ -6753,7 +6753,7 @@ const H = (e) => {
|
|
|
6753
6753
|
* @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
|
|
6754
6754
|
*/
|
|
6755
6755
|
"caret-color": [{
|
|
6756
|
-
caret:
|
|
6756
|
+
caret: w()
|
|
6757
6757
|
}],
|
|
6758
6758
|
/**
|
|
6759
6759
|
* Color Scheme
|
|
@@ -6767,7 +6767,7 @@ const H = (e) => {
|
|
|
6767
6767
|
* @see https://tailwindcss.com/docs/cursor
|
|
6768
6768
|
*/
|
|
6769
6769
|
cursor: [{
|
|
6770
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
6770
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", S, k]
|
|
6771
6771
|
}],
|
|
6772
6772
|
/**
|
|
6773
6773
|
* Field Sizing
|
|
@@ -6989,7 +6989,7 @@ const H = (e) => {
|
|
|
6989
6989
|
* @see https://tailwindcss.com/docs/will-change
|
|
6990
6990
|
*/
|
|
6991
6991
|
"will-change": [{
|
|
6992
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
6992
|
+
"will-change": ["auto", "scroll", "contents", "transform", S, k]
|
|
6993
6993
|
}],
|
|
6994
6994
|
// -----------
|
|
6995
6995
|
// --- SVG ---
|
|
@@ -6999,21 +6999,21 @@ const H = (e) => {
|
|
|
6999
6999
|
* @see https://tailwindcss.com/docs/fill
|
|
7000
7000
|
*/
|
|
7001
7001
|
fill: [{
|
|
7002
|
-
fill: ["none", ...
|
|
7002
|
+
fill: ["none", ...w()]
|
|
7003
7003
|
}],
|
|
7004
7004
|
/**
|
|
7005
7005
|
* Stroke Width
|
|
7006
7006
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
7007
7007
|
*/
|
|
7008
7008
|
"stroke-w": [{
|
|
7009
|
-
stroke: [
|
|
7009
|
+
stroke: [R, dt, Fe, mn]
|
|
7010
7010
|
}],
|
|
7011
7011
|
/**
|
|
7012
7012
|
* Stroke
|
|
7013
7013
|
* @see https://tailwindcss.com/docs/stroke
|
|
7014
7014
|
*/
|
|
7015
7015
|
stroke: [{
|
|
7016
|
-
stroke: ["none", ...
|
|
7016
|
+
stroke: ["none", ...w()]
|
|
7017
7017
|
}],
|
|
7018
7018
|
// ---------------------
|
|
7019
7019
|
// --- Accessibility ---
|
|
@@ -7275,112 +7275,113 @@ E.diffed = function(e) {
|
|
|
7275
7275
|
const je = Be(!1), ld = Be(null);
|
|
7276
7276
|
function cd({
|
|
7277
7277
|
workspaceSlug: e,
|
|
7278
|
-
theme: t
|
|
7278
|
+
theme: t,
|
|
7279
|
+
base: n = "https://www.squelette.app"
|
|
7279
7280
|
}) {
|
|
7280
|
-
const
|
|
7281
|
-
|
|
7282
|
-
const
|
|
7283
|
-
|
|
7284
|
-
const
|
|
7285
|
-
return tn(
|
|
7286
|
-
|
|
7281
|
+
const r = ae(null), i = ae(null), s = ae(null), o = ae(null), [a, l] = Ut(null), c = ae(null), d = ae(!1);
|
|
7282
|
+
$e(() => {
|
|
7283
|
+
const m = document.createElement("div");
|
|
7284
|
+
m.id = "squelette-banner-modal-portal", m.style.position = "fixed", m.style.inset = "0", m.style.zIndex = "999999", m.style.pointerEvents = "none";
|
|
7285
|
+
const y = m.attachShadow({ mode: "open" });
|
|
7286
|
+
return tn(y, Ui), document.body.appendChild(m), s.current = m, l(y), () => {
|
|
7287
|
+
s.current && (document.body.removeChild(s.current), s.current = null, l(null));
|
|
7287
7288
|
};
|
|
7288
7289
|
}, []);
|
|
7289
|
-
const
|
|
7290
|
-
var
|
|
7291
|
-
if (!(!((
|
|
7290
|
+
const u = () => {
|
|
7291
|
+
var m;
|
|
7292
|
+
if (!(!((m = o.current) != null && m.contentWindow) || !c.current))
|
|
7292
7293
|
try {
|
|
7293
|
-
const
|
|
7294
|
-
|
|
7294
|
+
const y = new URL(Sn).origin;
|
|
7295
|
+
o.current.contentWindow.postMessage(
|
|
7295
7296
|
{
|
|
7296
7297
|
type: "squelette-identify",
|
|
7297
|
-
payload:
|
|
7298
|
+
payload: c.current
|
|
7298
7299
|
},
|
|
7299
|
-
|
|
7300
|
+
y
|
|
7300
7301
|
);
|
|
7301
|
-
} catch (
|
|
7302
|
-
console.warn("[BannerModal] Failed to send identity to iframe:",
|
|
7302
|
+
} catch (y) {
|
|
7303
|
+
console.warn("[BannerModal] Failed to send identity to iframe:", y);
|
|
7303
7304
|
}
|
|
7304
7305
|
};
|
|
7305
|
-
|
|
7306
|
-
const
|
|
7307
|
-
|
|
7308
|
-
const
|
|
7309
|
-
var
|
|
7310
|
-
const
|
|
7311
|
-
|
|
7306
|
+
$e(() => {
|
|
7307
|
+
const m = Wi();
|
|
7308
|
+
m && (c.current = m);
|
|
7309
|
+
const y = (M) => {
|
|
7310
|
+
var C;
|
|
7311
|
+
const x = M;
|
|
7312
|
+
c.current = (C = x.detail) != null ? C : null, d.current ? u() : console.info(
|
|
7312
7313
|
"[BannerModal] Iframe not ready yet, identity will be sent when ready"
|
|
7313
7314
|
);
|
|
7314
|
-
},
|
|
7315
|
-
var
|
|
7316
|
-
((
|
|
7315
|
+
}, A = (M) => {
|
|
7316
|
+
var x;
|
|
7317
|
+
((x = M.data) == null ? void 0 : x.type) === "squelette-iframe-ready" && (d.current = !0, c.current ? u() : console.log("[BannerModal] Iframe ready but no identity yet"));
|
|
7317
7318
|
};
|
|
7318
|
-
return window.addEventListener("squelette:identity",
|
|
7319
|
-
window.removeEventListener("squelette:identity",
|
|
7319
|
+
return window.addEventListener("squelette:identity", y), window.addEventListener("message", A), () => {
|
|
7320
|
+
window.removeEventListener("squelette:identity", y), window.removeEventListener("message", A);
|
|
7320
7321
|
};
|
|
7321
7322
|
}, []);
|
|
7322
|
-
const
|
|
7323
|
+
const h = () => {
|
|
7323
7324
|
console.log("[BannerModal] Iframe onLoad event fired");
|
|
7324
7325
|
};
|
|
7325
|
-
|
|
7326
|
-
if (!(!
|
|
7327
|
-
const
|
|
7328
|
-
_e(
|
|
7329
|
-
|
|
7326
|
+
$e(() => {
|
|
7327
|
+
if (!(!r.current || !i.current || !a) && je.value) {
|
|
7328
|
+
const m = r.current, y = i.current;
|
|
7329
|
+
_e(m, { opacity: 1 }, { duration: 0.5 }), _e(
|
|
7330
|
+
y,
|
|
7330
7331
|
{ y: 0 },
|
|
7331
7332
|
{ type: "spring", mass: 0.2, damping: 20, stiffness: 75 }
|
|
7332
|
-
), _e(
|
|
7333
|
+
), _e(y, { opacity: 1 }, { duration: 0.2 });
|
|
7333
7334
|
}
|
|
7334
|
-
}, [je.value,
|
|
7335
|
-
const
|
|
7336
|
-
if (!
|
|
7335
|
+
}, [je.value, a]);
|
|
7336
|
+
const p = async () => {
|
|
7337
|
+
if (!r.current || !i.current) {
|
|
7337
7338
|
je.value = !1;
|
|
7338
7339
|
return;
|
|
7339
7340
|
}
|
|
7340
|
-
const
|
|
7341
|
+
const m = r.current, y = i.current;
|
|
7341
7342
|
await Promise.all([
|
|
7342
|
-
_e(
|
|
7343
|
+
_e(m, { opacity: 0 }, { duration: 0.2 }).finished,
|
|
7343
7344
|
_e(
|
|
7344
|
-
|
|
7345
|
+
y,
|
|
7345
7346
|
{ opacity: 0, y: -70 },
|
|
7346
7347
|
{ duration: 0.2, ease: [0.16, 1, 0.3, 1] }
|
|
7347
7348
|
).finished
|
|
7348
7349
|
]), je.value = !1;
|
|
7349
|
-
},
|
|
7350
|
-
|
|
7350
|
+
}, b = (m) => {
|
|
7351
|
+
m.target === r.current && p();
|
|
7351
7352
|
};
|
|
7352
|
-
if (!
|
|
7353
|
+
if (!a)
|
|
7353
7354
|
return null;
|
|
7354
|
-
const
|
|
7355
|
+
const _ = Jn(
|
|
7355
7356
|
() => /* @__PURE__ */ F(
|
|
7356
7357
|
"iframe",
|
|
7357
7358
|
{
|
|
7358
|
-
ref:
|
|
7359
|
+
ref: o,
|
|
7359
7360
|
className: "w-full h-full border-none outline-none border border-red-400",
|
|
7360
|
-
src:
|
|
7361
|
-
onLoad:
|
|
7361
|
+
src: `${n}/widget/${e}/changelog/last?theme=${t}`,
|
|
7362
|
+
onLoad: h
|
|
7362
7363
|
}
|
|
7363
7364
|
),
|
|
7364
7365
|
[]
|
|
7365
|
-
),
|
|
7366
|
+
), v = /* @__PURE__ */ F(
|
|
7366
7367
|
"div",
|
|
7367
7368
|
{
|
|
7368
|
-
ref:
|
|
7369
|
+
ref: r,
|
|
7369
7370
|
className: "fixed inset-0 bg-black/60 backdrop-blur-sm flex items-center justify-center",
|
|
7370
7371
|
style: { pointerEvents: je.value ? "auto" : "none", opacity: 0 },
|
|
7371
|
-
onClick:
|
|
7372
|
+
onClick: b,
|
|
7372
7373
|
children: /* @__PURE__ */ F(
|
|
7373
7374
|
"div",
|
|
7374
7375
|
{
|
|
7375
|
-
ref:
|
|
7376
|
+
ref: i,
|
|
7376
7377
|
className: "bg-white rounded-3xl drop-shadow-xl max-w-lg w-full mx-4 p-0 border-none outline-none relative overflow-hidden",
|
|
7377
7378
|
style: { opacity: 0, transform: "translateY(-70px)", height: 600 },
|
|
7378
|
-
children:
|
|
7379
|
+
children: _
|
|
7379
7380
|
}
|
|
7380
7381
|
)
|
|
7381
7382
|
}
|
|
7382
7383
|
);
|
|
7383
|
-
return Zu(
|
|
7384
|
+
return Zu(v, a);
|
|
7384
7385
|
}
|
|
7385
7386
|
const wo = () => {
|
|
7386
7387
|
try {
|
|
@@ -7391,20 +7392,21 @@ const wo = () => {
|
|
|
7391
7392
|
}, ud = 5 * 60 * 1e3, Ai = "squelette_banner_last_ticket", he = Be(null), Jt = Be(!1), bn = Be(!0);
|
|
7392
7393
|
function dd({
|
|
7393
7394
|
workspaceSlug: e = "squelette",
|
|
7394
|
-
theme: t
|
|
7395
|
+
theme: t,
|
|
7396
|
+
base: n = "https://www.squelette.app"
|
|
7395
7397
|
}) {
|
|
7396
|
-
const
|
|
7397
|
-
|
|
7398
|
-
gd(e).then((
|
|
7399
|
-
if (!
|
|
7400
|
-
const
|
|
7401
|
-
(!wo() || !
|
|
7398
|
+
const r = ae(null), i = ae(null);
|
|
7399
|
+
$e(() => {
|
|
7400
|
+
gd(n, e).then((a) => {
|
|
7401
|
+
if (!a) return;
|
|
7402
|
+
const l = localStorage.getItem(Ai);
|
|
7403
|
+
(!wo() || !l || new Date(a.created_at) > new Date(l)) && (he.value = a, bn.value = !0);
|
|
7402
7404
|
});
|
|
7403
|
-
}, [e]),
|
|
7404
|
-
if (!
|
|
7405
|
-
const
|
|
7406
|
-
|
|
7407
|
-
|
|
7405
|
+
}, [e]), $e(() => {
|
|
7406
|
+
if (!r.current || !he.value) return;
|
|
7407
|
+
const a = setTimeout(() => {
|
|
7408
|
+
r.current && _e(
|
|
7409
|
+
r.current,
|
|
7408
7410
|
{ y: 0, opacity: 1 },
|
|
7409
7411
|
{
|
|
7410
7412
|
ease: pd,
|
|
@@ -7415,14 +7417,14 @@ function dd({
|
|
|
7415
7417
|
}
|
|
7416
7418
|
);
|
|
7417
7419
|
}, 500);
|
|
7418
|
-
return () => clearTimeout(
|
|
7419
|
-
}, [he.value]),
|
|
7420
|
-
if (!
|
|
7421
|
-
let
|
|
7422
|
-
const
|
|
7423
|
-
if (!
|
|
7424
|
-
|
|
7425
|
-
|
|
7420
|
+
return () => clearTimeout(a);
|
|
7421
|
+
}, [he.value]), $e(() => {
|
|
7422
|
+
if (!r.current || !i.current) return;
|
|
7423
|
+
let a = null;
|
|
7424
|
+
const l = r.current, c = i.current, d = () => {
|
|
7425
|
+
if (!c) return null;
|
|
7426
|
+
a = _e(
|
|
7427
|
+
c,
|
|
7426
7428
|
{ rotate: [0, -15, 15, -15, 15, 0] },
|
|
7427
7429
|
{
|
|
7428
7430
|
duration: 0.6,
|
|
@@ -7430,21 +7432,21 @@ function dd({
|
|
|
7430
7432
|
repeatType: "reverse"
|
|
7431
7433
|
}
|
|
7432
7434
|
);
|
|
7433
|
-
},
|
|
7434
|
-
|
|
7435
|
+
}, u = () => {
|
|
7436
|
+
a == null || a.stop();
|
|
7435
7437
|
};
|
|
7436
|
-
return
|
|
7437
|
-
|
|
7438
|
+
return l.addEventListener("mouseenter", d), l.addEventListener("mouseleave", u), () => {
|
|
7439
|
+
l.removeEventListener("mouseleave", u), l.removeEventListener("mouseenter", d);
|
|
7438
7440
|
};
|
|
7439
7441
|
}, [he.value]);
|
|
7440
|
-
const
|
|
7441
|
-
!he.value || !
|
|
7442
|
-
|
|
7442
|
+
const s = async () => {
|
|
7443
|
+
!he.value || !r.current || (Jt.value = !1, await new Promise((a) => setTimeout(a, 400)), await _e(
|
|
7444
|
+
r.current,
|
|
7443
7445
|
{ y: "-100%", opacity: 0 },
|
|
7444
7446
|
{ duration: 0.5, ease: [0.16, 1, 0.3, 1] }
|
|
7445
7447
|
).finished, localStorage.setItem(Ai, he.value.created_at), bn.value = !1);
|
|
7446
|
-
},
|
|
7447
|
-
he.value && (ld.value = he.value, je.value = !0,
|
|
7448
|
+
}, o = () => {
|
|
7449
|
+
he.value && (ld.value = he.value, je.value = !0, s());
|
|
7448
7450
|
};
|
|
7449
7451
|
return he.value ? /* @__PURE__ */ F(Te, { children: [
|
|
7450
7452
|
bn.value && /* @__PURE__ */ F("div", { className: "flex items-center justify-center w-full h-[64px] overflow-visible", children: /* @__PURE__ */ F(
|
|
@@ -7457,8 +7459,8 @@ function dd({
|
|
|
7457
7459
|
backgroundColor: "var(--squelette-banner-bg)",
|
|
7458
7460
|
borderColor: "var(--squelette-banner-border)"
|
|
7459
7461
|
},
|
|
7460
|
-
ref:
|
|
7461
|
-
onClick:
|
|
7462
|
+
ref: r,
|
|
7463
|
+
onClick: o,
|
|
7462
7464
|
children: [
|
|
7463
7465
|
/* @__PURE__ */ F(
|
|
7464
7466
|
"div",
|
|
@@ -7470,15 +7472,15 @@ function dd({
|
|
|
7470
7472
|
},
|
|
7471
7473
|
children: [
|
|
7472
7474
|
/* @__PURE__ */ F("span", { children: "Nouveau" }),
|
|
7473
|
-
/* @__PURE__ */ F("div", { ref:
|
|
7475
|
+
/* @__PURE__ */ F("div", { ref: i, className: "inline", children: /* @__PURE__ */ F(hd, { className: "size-4" }) })
|
|
7474
7476
|
]
|
|
7475
7477
|
}
|
|
7476
7478
|
),
|
|
7477
|
-
/* @__PURE__ */ F(fd, { onClose:
|
|
7479
|
+
/* @__PURE__ */ F(fd, { onClose: s })
|
|
7478
7480
|
]
|
|
7479
7481
|
}
|
|
7480
7482
|
) }),
|
|
7481
|
-
/* @__PURE__ */ F(cd, { workspaceSlug: e, theme: t })
|
|
7483
|
+
/* @__PURE__ */ F(cd, { base: n, workspaceSlug: e, theme: t })
|
|
7482
7484
|
] }) : null;
|
|
7483
7485
|
}
|
|
7484
7486
|
function fd({ onClose: e }) {
|
|
@@ -7603,39 +7605,37 @@ function md({ className: e }) {
|
|
|
7603
7605
|
}
|
|
7604
7606
|
);
|
|
7605
7607
|
}
|
|
7606
|
-
async function gd(e) {
|
|
7607
|
-
var
|
|
7608
|
+
async function gd(e, t) {
|
|
7609
|
+
var n;
|
|
7608
7610
|
try {
|
|
7609
|
-
const
|
|
7610
|
-
if (
|
|
7611
|
-
const
|
|
7612
|
-
if (
|
|
7613
|
-
const { ticket:
|
|
7614
|
-
if (!(Date.now() -
|
|
7615
|
-
return
|
|
7611
|
+
const r = wo();
|
|
7612
|
+
if (r) {
|
|
7613
|
+
const a = `squelette_banner_cache_${t}`, l = localStorage.getItem(a);
|
|
7614
|
+
if (l) {
|
|
7615
|
+
const { ticket: c, timestamp: d } = JSON.parse(l);
|
|
7616
|
+
if (!(Date.now() - d > ud))
|
|
7617
|
+
return c;
|
|
7616
7618
|
}
|
|
7617
7619
|
}
|
|
7618
|
-
const
|
|
7619
|
-
|
|
7620
|
-
|
|
7621
|
-
|
|
7622
|
-
const o = `squelette_banner_cache_${e}`, a = {
|
|
7623
|
-
ticket: s,
|
|
7620
|
+
const s = await (await fetch(`${e}/api/public/w/${t}/changelog/last`)).json(), o = (n = s == null ? void 0 : s.ticket) != null ? n : null;
|
|
7621
|
+
if (r && o) {
|
|
7622
|
+
const a = `squelette_banner_cache_${t}`, l = {
|
|
7623
|
+
ticket: o,
|
|
7624
7624
|
timestamp: Date.now()
|
|
7625
7625
|
};
|
|
7626
|
-
localStorage.setItem(
|
|
7626
|
+
localStorage.setItem(a, JSON.stringify(l));
|
|
7627
7627
|
}
|
|
7628
|
-
return
|
|
7629
|
-
} catch (
|
|
7630
|
-
return console.error("Error fetching changelog ticket:",
|
|
7628
|
+
return o;
|
|
7629
|
+
} catch (r) {
|
|
7630
|
+
return console.error("Error fetching changelog ticket:", r), null;
|
|
7631
7631
|
}
|
|
7632
7632
|
}
|
|
7633
7633
|
function bd({
|
|
7634
7634
|
children: e,
|
|
7635
|
-
duration: t =
|
|
7635
|
+
duration: t = 50,
|
|
7636
7636
|
gap: n = 8,
|
|
7637
7637
|
className: r,
|
|
7638
|
-
delay: i = 0.
|
|
7638
|
+
delay: i = 0.8
|
|
7639
7639
|
}) {
|
|
7640
7640
|
const s = ae(null), o = ae(null), [a, l] = Ut(0), [c, d] = Ut(0);
|
|
7641
7641
|
Fo(() => {
|
|
@@ -7643,12 +7643,12 @@ function bd({
|
|
|
7643
7643
|
o.current && l(Math.ceil(o.current.offsetWidth)), s.current && d(Math.ceil(s.current.offsetWidth));
|
|
7644
7644
|
};
|
|
7645
7645
|
_();
|
|
7646
|
-
const
|
|
7647
|
-
return o.current &&
|
|
7648
|
-
|
|
7646
|
+
const v = new ResizeObserver(_), m = new ResizeObserver(_);
|
|
7647
|
+
return o.current && v.observe(o.current), s.current && m.observe(s.current), () => {
|
|
7648
|
+
v.disconnect(), m.disconnect();
|
|
7649
7649
|
};
|
|
7650
7650
|
}, [e, n]);
|
|
7651
|
-
const u = a + n, h = u > 0 ? Math.max(2, Math.ceil((c + u) / u) + 1) : 2,
|
|
7651
|
+
const u = a + n, h = u > 0 ? Math.max(2, Math.ceil((c + u) / u) + 1) : 2, b = u > 0 ? u / 50 : t;
|
|
7652
7652
|
return /* @__PURE__ */ F(Te, { children: [
|
|
7653
7653
|
/* @__PURE__ */ F("style", { children: `
|
|
7654
7654
|
@keyframes marquee-banner {
|
|
@@ -7674,16 +7674,16 @@ function bd({
|
|
|
7674
7674
|
className: "inline-flex items-baseline will-change-transform",
|
|
7675
7675
|
style: {
|
|
7676
7676
|
gap: `${n}px`,
|
|
7677
|
-
animation: Jt.value && u > 0 ? `marquee-banner ${
|
|
7677
|
+
animation: Jt.value && u > 0 ? `marquee-banner ${b}s linear ${i}s infinite` : "none"
|
|
7678
7678
|
},
|
|
7679
|
-
children: Array.from({ length: h }).map((_,
|
|
7679
|
+
children: Array.from({ length: h }).map((_, v) => /* @__PURE__ */ F(
|
|
7680
7680
|
"span",
|
|
7681
7681
|
{
|
|
7682
|
-
ref:
|
|
7682
|
+
ref: v === 0 ? o : null,
|
|
7683
7683
|
className: "whitespace-nowrap shrink-0",
|
|
7684
7684
|
children: e
|
|
7685
7685
|
},
|
|
7686
|
-
|
|
7686
|
+
v
|
|
7687
7687
|
))
|
|
7688
7688
|
}
|
|
7689
7689
|
)
|
|
@@ -7698,9 +7698,12 @@ class Kn extends HTMLElement {
|
|
|
7698
7698
|
this.shadow = this.attachShadow({ mode: "open" }), tn(this.shadow, Ui), this.style.position = "fixed", this.style.top = "0", this.style.left = "0", this.style.right = "0", this.style.zIndex = "9999";
|
|
7699
7699
|
}
|
|
7700
7700
|
connectedCallback() {
|
|
7701
|
-
var
|
|
7702
|
-
const n = (
|
|
7703
|
-
Je(
|
|
7701
|
+
var s;
|
|
7702
|
+
const n = (s = this.getAttribute("workspace-slug")) != null ? s : "squelette", r = this.getAttribute("theme") || "light", i = this.getAttribute("base") || "https://www.squelette.app";
|
|
7703
|
+
Je(
|
|
7704
|
+
/* @__PURE__ */ F(dd, { workspaceSlug: n, theme: r, base: i }),
|
|
7705
|
+
this.shadow
|
|
7706
|
+
);
|
|
7704
7707
|
}
|
|
7705
7708
|
disconnectedCallback() {
|
|
7706
7709
|
Je(null, this.shadow);
|
|
@@ -7711,15 +7714,16 @@ const yd = {
|
|
|
7711
7714
|
init({
|
|
7712
7715
|
slug: e,
|
|
7713
7716
|
theme: t,
|
|
7714
|
-
contentTheme: n
|
|
7717
|
+
contentTheme: n,
|
|
7718
|
+
base: r
|
|
7715
7719
|
}) {
|
|
7716
7720
|
if (typeof document == "undefined") return null;
|
|
7717
7721
|
customElements.get("squelette-banner") || customElements.define("squelette-banner", Kn);
|
|
7718
|
-
const
|
|
7719
|
-
if (
|
|
7720
|
-
return t && this.setTheme(t),
|
|
7721
|
-
const
|
|
7722
|
-
return
|
|
7722
|
+
const i = document.querySelector("squelette-banner");
|
|
7723
|
+
if (i)
|
|
7724
|
+
return t && this.setTheme(t), i;
|
|
7725
|
+
const s = new Kn();
|
|
7726
|
+
return s.setAttribute("workspace-slug", e), s.setAttribute("theme", n != null ? n : "light"), r && s.setAttribute("base", r), document.body.appendChild(s), t && this.setTheme(t), s;
|
|
7723
7727
|
},
|
|
7724
7728
|
setTheme(e) {
|
|
7725
7729
|
if (typeof document == "undefined") return;
|
|
@@ -7797,7 +7801,7 @@ function ko() {
|
|
|
7797
7801
|
identify: Ho,
|
|
7798
7802
|
clearIdentity: Yo,
|
|
7799
7803
|
banner: yd,
|
|
7800
|
-
version: "0.3.
|
|
7804
|
+
version: "0.3.5",
|
|
7801
7805
|
cdn: Oo
|
|
7802
7806
|
});
|
|
7803
7807
|
}
|
|
@@ -7829,7 +7833,7 @@ export {
|
|
|
7829
7833
|
yd as h,
|
|
7830
7834
|
Ho as i,
|
|
7831
7835
|
zi as r,
|
|
7832
|
-
|
|
7836
|
+
$o as s,
|
|
7833
7837
|
F as u,
|
|
7834
|
-
|
|
7838
|
+
$e as y
|
|
7835
7839
|
};
|