etudes 19.4.0 → 19.5.0
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/build/etudes.js +60 -59
- package/build/etudes.umd.cjs +8 -8
- package/package.json +1 -1
package/build/etudes.js
CHANGED
|
@@ -451,7 +451,7 @@ function js(e, r) {
|
|
|
451
451
|
return console.error(i), !1;
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
|
-
var
|
|
454
|
+
var Ie;
|
|
455
455
|
((e) => {
|
|
456
456
|
e.zero = r();
|
|
457
457
|
function r(w = 0, j = 0) {
|
|
@@ -540,7 +540,7 @@ var Me;
|
|
|
540
540
|
return w.width === 0 && w.height === 0;
|
|
541
541
|
}
|
|
542
542
|
e.isZero = M;
|
|
543
|
-
})(
|
|
543
|
+
})(Ie || (Ie = {}));
|
|
544
544
|
var xe;
|
|
545
545
|
((e) => {
|
|
546
546
|
e.zero = r();
|
|
@@ -555,7 +555,7 @@ var xe;
|
|
|
555
555
|
width: N,
|
|
556
556
|
height: A
|
|
557
557
|
};
|
|
558
|
-
} else if (Se.isPoint(E) &&
|
|
558
|
+
} else if (Se.isPoint(E) && Ie.isSize(k)) {
|
|
559
559
|
const B = E, U = k;
|
|
560
560
|
return {
|
|
561
561
|
top: B.y,
|
|
@@ -587,7 +587,7 @@ var xe;
|
|
|
587
587
|
}
|
|
588
588
|
e.center = i;
|
|
589
589
|
function a(E) {
|
|
590
|
-
return
|
|
590
|
+
return Ie.make({
|
|
591
591
|
width: E.width,
|
|
592
592
|
height: E.height
|
|
593
593
|
});
|
|
@@ -1541,7 +1541,7 @@ function qs(e, {
|
|
|
1541
1541
|
return Ne(() => (r && e > 0 && m(), g), [r, e, m, g, ...l]), { start: m, stop: g };
|
|
1542
1542
|
}
|
|
1543
1543
|
function Ws() {
|
|
1544
|
-
return typeof window > "u"
|
|
1544
|
+
return typeof window > "u" ? !1 : !!(typeof window.navigator < "u" && (window.navigator.maxTouchPoints > 0 || "msMaxTouchPoints" in window.navigator && window.navigator.msMaxTouchPoints > 0) || window.matchMedia("(pointer: coarse)").matches || window.matchMedia("(hover: none)").matches || "ontouchstart" in window || "ontouchstart" in window.document.documentElement);
|
|
1545
1545
|
}
|
|
1546
1546
|
function Ks() {
|
|
1547
1547
|
return fr(() => Ws(), []);
|
|
@@ -1837,7 +1837,7 @@ const na = /* @__PURE__ */ Pe(({
|
|
|
1837
1837
|
};
|
|
1838
1838
|
process.env.NODE_ENV === "development" && (na.displayName = "Counter", Hn.displayName = "CounterAddButton", Bn.displayName = "CounterSubtractButton", Vn.displayName = "CounterTextField");
|
|
1839
1839
|
function ra() {
|
|
1840
|
-
const [e, r] = _e(
|
|
1840
|
+
const [e, r] = _e(Ie.zero);
|
|
1841
1841
|
return ze(() => {
|
|
1842
1842
|
const i = () => {
|
|
1843
1843
|
const a = xe.size(xe.fromViewport());
|
|
@@ -1858,7 +1858,7 @@ function nt(e) {
|
|
|
1858
1858
|
}), ze(() => {
|
|
1859
1859
|
const l = e.current, u = xe.from(l);
|
|
1860
1860
|
u && i(u);
|
|
1861
|
-
}, [
|
|
1861
|
+
}, [Ie.toString(a)]), r;
|
|
1862
1862
|
}
|
|
1863
1863
|
var on;
|
|
1864
1864
|
((e) => {
|
|
@@ -1955,7 +1955,7 @@ function Vo({
|
|
|
1955
1955
|
}
|
|
1956
1956
|
function ia(e) {
|
|
1957
1957
|
if (e && typeof e.width == "number" && typeof e.height == "number")
|
|
1958
|
-
return
|
|
1958
|
+
return Ie.make(e.width, e.height);
|
|
1959
1959
|
}
|
|
1960
1960
|
const Ho = /* @__PURE__ */ Pe(({
|
|
1961
1961
|
alt: e,
|
|
@@ -2043,7 +2043,7 @@ const aa = /* @__PURE__ */ Pe(({
|
|
|
2043
2043
|
}, P) => {
|
|
2044
2044
|
const C = (k) => {
|
|
2045
2045
|
j(k ? k.width / k.height : NaN);
|
|
2046
|
-
}, $ = Ee(null), M = P ?? $, [w, j] = _e(NaN), K = isNaN(i) ? w : i, J = nt(M), Y = J.width / J.height, q =
|
|
2046
|
+
}, $ = Ee(null), M = P ?? $, [w, j] = _e(NaN), K = isNaN(i) ? w : i, J = nt(M), Y = J.width / J.height, q = Ie.make(
|
|
2047
2047
|
Y > 1 ? Math.max(J.width, J.height * K) : Math.max(J.width, Math.max(J.height, J.width / K) * K),
|
|
2048
2048
|
Y > 1 ? Math.max(J.height, Math.max(J.width, J.height * K) / K) : Math.max(J.height, J.width / K)
|
|
2049
2049
|
), E = Le(e, {
|
|
@@ -2110,7 +2110,7 @@ function ca(e, {
|
|
|
2110
2110
|
const l = Te(r), u = Te(i), p = Te(a);
|
|
2111
2111
|
ze(() => {
|
|
2112
2112
|
if (!e) return;
|
|
2113
|
-
const g = document.createElement("video"), m = () => u.current?.(g), S = () => p.current?.(g);
|
|
2113
|
+
const g = window.document.createElement("video"), m = () => u.current?.(g), S = () => p.current?.(g);
|
|
2114
2114
|
return g.addEventListener("loadedmetadata", m), g.addEventListener("error", S), g.src = e, l.current?.(g), () => {
|
|
2115
2115
|
g.removeEventListener("loadedmetadata", m), g.removeEventListener("error", S), g.src = "";
|
|
2116
2116
|
};
|
|
@@ -2137,7 +2137,7 @@ function la(e, {
|
|
|
2137
2137
|
}
|
|
2138
2138
|
function ua(e) {
|
|
2139
2139
|
if (e && typeof e.videoWidth == "number" && typeof e.videoHeight == "number")
|
|
2140
|
-
return
|
|
2140
|
+
return Ie.make(e.videoWidth, e.videoHeight);
|
|
2141
2141
|
}
|
|
2142
2142
|
const Uo = /* @__PURE__ */ Pe(({
|
|
2143
2143
|
autoLoop: e = !0,
|
|
@@ -2168,14 +2168,14 @@ const Uo = /* @__PURE__ */ Pe(({
|
|
|
2168
2168
|
Ne(() => {
|
|
2169
2169
|
if (!E.current) return;
|
|
2170
2170
|
if (p.toLowerCase().endsWith(".m3u8")) {
|
|
2171
|
-
const Z = !!E.current.canPlayType("application/x-mpegURL"), te = typeof window
|
|
2171
|
+
const Z = !!E.current.canPlayType("application/x-mpegURL"), te = typeof window.Hls < "u" ? window.Hls : void 0;
|
|
2172
2172
|
if (!Z && te?.isSupported()) {
|
|
2173
2173
|
const ae = new te();
|
|
2174
2174
|
ae.loadSource(p), ae.attachMedia(E.current);
|
|
2175
2175
|
}
|
|
2176
2176
|
}
|
|
2177
2177
|
const R = (Z) => {
|
|
2178
|
-
const te = document.fullScreen || document.mozFullScreen || document.webkitIsFullScreen;
|
|
2178
|
+
const te = window.document.fullScreen || window.document.mozFullScreen || window.document.webkitIsFullScreen;
|
|
2179
2179
|
te !== void 0 && _?.(te);
|
|
2180
2180
|
};
|
|
2181
2181
|
return E.current.muted = a, E.current.load(), E.current.addEventListener("webkitfullscreenchange", R), E.current.addEventListener("mozfullscreenchange", R), E.current.addEventListener("fullscreenchange", R), () => {
|
|
@@ -2255,7 +2255,7 @@ const da = /* @__PURE__ */ Pe(({
|
|
|
2255
2255
|
}, E) => {
|
|
2256
2256
|
const k = (R) => {
|
|
2257
2257
|
U(R ? R.width / R.height : NaN), Y?.(R);
|
|
2258
|
-
}, N = E ?? Ee(null), A = nt(N), [B, U] = _e(NaN), oe = isNaN(a) ? B : a, W = A.width / A.height, X =
|
|
2258
|
+
}, N = E ?? Ee(null), A = nt(N), [B, U] = _e(NaN), oe = isNaN(a) ? B : a, W = A.width / A.height, X = Ie.make(
|
|
2259
2259
|
W > 1 ? Math.max(A.width, A.height * oe) : Math.max(A.width, Math.max(A.height, A.width / oe) * oe),
|
|
2260
2260
|
W > 1 ? Math.max(A.height, Math.max(A.width, A.height * oe) / oe) : Math.max(A.height, A.width / oe)
|
|
2261
2261
|
), L = Le(r, {
|
|
@@ -2683,11 +2683,11 @@ function Pa(e, r) {
|
|
|
2683
2683
|
m += e[u];
|
|
2684
2684
|
if (m = m.trim(), m[m.length - 1] === "/" && (m = m.substring(0, m.length - 1), u--), !Ma(m)) {
|
|
2685
2685
|
let P;
|
|
2686
|
-
return m.trim().length === 0 ? P = "Invalid space after '<'." : P = "Tag '" + m + "' is an invalid name.", Ce("InvalidTag", P,
|
|
2686
|
+
return m.trim().length === 0 ? P = "Invalid space after '<'." : P = "Tag '" + m + "' is an invalid name.", Ce("InvalidTag", P, Me(e, u));
|
|
2687
2687
|
}
|
|
2688
2688
|
const S = Ca(e, u);
|
|
2689
2689
|
if (S === !1)
|
|
2690
|
-
return Ce("InvalidAttr", "Attributes for '" + m + "' have open quote.",
|
|
2690
|
+
return Ce("InvalidAttr", "Attributes for '" + m + "' have open quote.", Me(e, u));
|
|
2691
2691
|
let _ = S.value;
|
|
2692
2692
|
if (u = S.index, _[_.length - 1] === "/") {
|
|
2693
2693
|
const P = u - _.length;
|
|
@@ -2696,32 +2696,32 @@ function Pa(e, r) {
|
|
|
2696
2696
|
if (C === !0)
|
|
2697
2697
|
a = !0;
|
|
2698
2698
|
else
|
|
2699
|
-
return Ce(C.err.code, C.err.msg,
|
|
2699
|
+
return Ce(C.err.code, C.err.msg, Me(e, P + C.err.line));
|
|
2700
2700
|
} else if (g)
|
|
2701
2701
|
if (S.tagClosed) {
|
|
2702
2702
|
if (_.trim().length > 0)
|
|
2703
|
-
return Ce("InvalidTag", "Closing tag '" + m + "' can't have attributes or invalid starting.",
|
|
2703
|
+
return Ce("InvalidTag", "Closing tag '" + m + "' can't have attributes or invalid starting.", Me(e, p));
|
|
2704
2704
|
if (i.length === 0)
|
|
2705
|
-
return Ce("InvalidTag", "Closing tag '" + m + "' has not been opened.",
|
|
2705
|
+
return Ce("InvalidTag", "Closing tag '" + m + "' has not been opened.", Me(e, p));
|
|
2706
2706
|
{
|
|
2707
2707
|
const P = i.pop();
|
|
2708
2708
|
if (m !== P.tagName) {
|
|
2709
|
-
let C =
|
|
2709
|
+
let C = Me(e, P.tagStartPos);
|
|
2710
2710
|
return Ce(
|
|
2711
2711
|
"InvalidTag",
|
|
2712
2712
|
"Expected closing tag '" + P.tagName + "' (opened in line " + C.line + ", col " + C.col + ") instead of closing tag '" + m + "'.",
|
|
2713
|
-
|
|
2713
|
+
Me(e, p)
|
|
2714
2714
|
);
|
|
2715
2715
|
}
|
|
2716
2716
|
i.length == 0 && (l = !0);
|
|
2717
2717
|
}
|
|
2718
|
-
} else return Ce("InvalidTag", "Closing tag '" + m + "' doesn't have proper closing.",
|
|
2718
|
+
} else return Ce("InvalidTag", "Closing tag '" + m + "' doesn't have proper closing.", Me(e, u));
|
|
2719
2719
|
else {
|
|
2720
2720
|
const P = wo(_, r);
|
|
2721
2721
|
if (P !== !0)
|
|
2722
|
-
return Ce(P.err.code, P.err.msg,
|
|
2722
|
+
return Ce(P.err.code, P.err.msg, Me(e, u - _.length + P.err.line));
|
|
2723
2723
|
if (l === !0)
|
|
2724
|
-
return Ce("InvalidXml", "Multiple possible root nodes found.",
|
|
2724
|
+
return Ce("InvalidXml", "Multiple possible root nodes found.", Me(e, u));
|
|
2725
2725
|
r.unpairedTags.indexOf(m) !== -1 || i.push({ tagName: m, tagStartPos: p }), a = !0;
|
|
2726
2726
|
}
|
|
2727
2727
|
for (u++; u < e.length; u++)
|
|
@@ -2736,20 +2736,20 @@ function Pa(e, r) {
|
|
|
2736
2736
|
else if (e[u] === "&") {
|
|
2737
2737
|
const P = $a(e, u);
|
|
2738
2738
|
if (P == -1)
|
|
2739
|
-
return Ce("InvalidChar", "char '&' is not expected.",
|
|
2739
|
+
return Ce("InvalidChar", "char '&' is not expected.", Me(e, u));
|
|
2740
2740
|
u = P;
|
|
2741
2741
|
} else if (l === !0 && !yo(e[u]))
|
|
2742
|
-
return Ce("InvalidXml", "Extra text at the end",
|
|
2742
|
+
return Ce("InvalidXml", "Extra text at the end", Me(e, u));
|
|
2743
2743
|
e[u] === "<" && u--;
|
|
2744
2744
|
}
|
|
2745
2745
|
} else {
|
|
2746
2746
|
if (yo(e[u]))
|
|
2747
2747
|
continue;
|
|
2748
|
-
return Ce("InvalidChar", "char '" + e[u] + "' is not expected.",
|
|
2748
|
+
return Ce("InvalidChar", "char '" + e[u] + "' is not expected.", Me(e, u));
|
|
2749
2749
|
}
|
|
2750
2750
|
if (a) {
|
|
2751
2751
|
if (i.length == 1)
|
|
2752
|
-
return Ce("InvalidTag", "Unclosed tag '" + i[0].tagName + "'.",
|
|
2752
|
+
return Ce("InvalidTag", "Unclosed tag '" + i[0].tagName + "'.", Me(e, i[0].tagStartPos));
|
|
2753
2753
|
if (i.length > 0)
|
|
2754
2754
|
return Ce("InvalidXml", "Invalid '" + JSON.stringify(i.map((u) => u.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 });
|
|
2755
2755
|
} else return Ce("InvalidXml", "Start tag expected.", 1);
|
|
@@ -2765,7 +2765,7 @@ function xo(e, r) {
|
|
|
2765
2765
|
if (e[r] == "?" || e[r] == " ") {
|
|
2766
2766
|
const a = e.substr(i, r - i);
|
|
2767
2767
|
if (r > 5 && a === "xml")
|
|
2768
|
-
return Ce("InvalidXml", "XML declaration allowed only at the start of the document.",
|
|
2768
|
+
return Ce("InvalidXml", "XML declaration allowed only at the start of the document.", Me(e, r));
|
|
2769
2769
|
if (e[r] == "?" && e[r + 1] == ">") {
|
|
2770
2770
|
r++;
|
|
2771
2771
|
break;
|
|
@@ -2875,7 +2875,7 @@ function Aa(e) {
|
|
|
2875
2875
|
function Ma(e) {
|
|
2876
2876
|
return mr(e);
|
|
2877
2877
|
}
|
|
2878
|
-
function
|
|
2878
|
+
function Me(e, r) {
|
|
2879
2879
|
const i = e.substring(0, r).split(/\r?\n/);
|
|
2880
2880
|
return {
|
|
2881
2881
|
line: i.length,
|
|
@@ -4403,8 +4403,8 @@ function kc() {
|
|
|
4403
4403
|
for (var ie, re, ce, ve = [], we = 0; we < H.length; we++) {
|
|
4404
4404
|
var fe = H[we], ye = H[ie];
|
|
4405
4405
|
if (fe && we !== ie) if (ye) {
|
|
4406
|
-
var
|
|
4407
|
-
if (
|
|
4406
|
+
var Ae = V(fe), Oe = V(ye);
|
|
4407
|
+
if (Ae !== fe.ownerDocument) if (Oe !== fe.ownerDocument) if (Ae !== Oe) {
|
|
4408
4408
|
ve = ve.length ? ve : ne(ye);
|
|
4409
4409
|
var Fe = void 0;
|
|
4410
4410
|
if (ye instanceof L.HTMLElement && fe instanceof L.SVGElement && !(fe instanceof L.SVGSVGElement)) {
|
|
@@ -4469,8 +4469,8 @@ function kc() {
|
|
|
4469
4469
|
if (ve === "pointer") {
|
|
4470
4470
|
var we = Be(z, H, "drag"), fe = Nr(I);
|
|
4471
4471
|
fe.x += we.x, fe.y += we.y;
|
|
4472
|
-
var ye = fe.x > re.left && fe.x < re.right,
|
|
4473
|
-
ce = ye &&
|
|
4472
|
+
var ye = fe.x > re.left && fe.x < re.right, Ae = fe.y > re.top && fe.y < re.bottom;
|
|
4473
|
+
ce = ye && Ae;
|
|
4474
4474
|
}
|
|
4475
4475
|
var Oe = z.getRect(H);
|
|
4476
4476
|
if (Oe && ve === "center") {
|
|
@@ -5436,8 +5436,8 @@ function kc() {
|
|
|
5436
5436
|
}
|
|
5437
5437
|
function h(y, O, I, D) {
|
|
5438
5438
|
if (y.addEventListener && y.removeEventListener) {
|
|
5439
|
-
var z = gt(o, function(
|
|
5440
|
-
return
|
|
5439
|
+
var z = gt(o, function(Ae) {
|
|
5440
|
+
return Ae.eventTarget === y;
|
|
5441
5441
|
}), H = o[z];
|
|
5442
5442
|
if (H && H.events) if (O !== "all") {
|
|
5443
5443
|
var ie = !1, re = H.events[O];
|
|
@@ -5469,8 +5469,8 @@ function kc() {
|
|
|
5469
5469
|
var fe = ce.listeners;
|
|
5470
5470
|
D.currentTarget = ie;
|
|
5471
5471
|
for (var ye = 0; ye < fe.length; ye++) {
|
|
5472
|
-
var
|
|
5473
|
-
Dt(
|
|
5472
|
+
var Ae = fe[ye];
|
|
5473
|
+
Dt(Ae.options, I) && Ae.func(D);
|
|
5474
5474
|
}
|
|
5475
5475
|
}
|
|
5476
5476
|
}
|
|
@@ -5862,7 +5862,7 @@ function kc() {
|
|
|
5862
5862
|
function no(n) {
|
|
5863
5863
|
return n && n.replace(/\/.*$/, "");
|
|
5864
5864
|
}
|
|
5865
|
-
var ro = new Gi(),
|
|
5865
|
+
var ro = new Gi(), $e = ro.interactStatic, qi = typeof globalThis < "u" ? globalThis : window;
|
|
5866
5866
|
ro.init(qi);
|
|
5867
5867
|
var Wi = Object.freeze({ __proto__: null, edgeTarget: function() {
|
|
5868
5868
|
}, elements: function() {
|
|
@@ -5991,8 +5991,8 @@ function kc() {
|
|
|
5991
5991
|
(re = N.func(ie) ? ie(I, D, t._proxy, O, z) : ie) && v.push({ x: (N.number(re.x) ? re.x : I) + O.x, y: (N.number(re.y) ? re.y : D) + O.y, range: N.number(re.range) ? re.range : c.range, source: ie, index: z, offset: O });
|
|
5992
5992
|
}
|
|
5993
5993
|
for (var ce = { target: null, inRange: !1, distance: 0, range: 0, delta: { x: 0, y: 0 } }, ve = 0; ve < v.length; ve++) {
|
|
5994
|
-
var we = v[ve], fe = we.range, ye = we.x - h.x,
|
|
5995
|
-
fe === 1 / 0 && ce.inRange && ce.range !== 1 / 0 && (Fe = !1), ce.target && !(Fe ? ce.inRange && fe !== 1 / 0 ? Oe / fe < ce.distance / ce.range : fe === 1 / 0 && ce.range !== 1 / 0 || Oe < ce.distance : !ce.inRange && Oe < ce.distance) || (ce.target = we, ce.distance = Oe, ce.range = fe, ce.inRange = Fe, ce.delta.x = ye, ce.delta.y =
|
|
5994
|
+
var we = v[ve], fe = we.range, ye = we.x - h.x, Ae = we.y - h.y, Oe = pt(ye, Ae), Fe = Oe <= fe;
|
|
5995
|
+
fe === 1 / 0 && ce.inRange && ce.range !== 1 / 0 && (Fe = !1), ce.target && !(Fe ? ce.inRange && fe !== 1 / 0 ? Oe / fe < ce.distance / ce.range : fe === 1 / 0 && ce.range !== 1 / 0 || Oe < ce.distance : !ce.inRange && Oe < ce.distance) || (ce.target = we, ce.distance = Oe, ce.range = fe, ce.inRange = Fe, ce.delta.x = ye, ce.delta.y = Ae);
|
|
5996
5996
|
}
|
|
5997
5997
|
return ce.inRange && (o.x = ce.target.x, o.y = ce.target.y), s.closest = ce, ce;
|
|
5998
5998
|
}, defaults: { range: 1 / 0, targets: null, offset: null, offsetWithOrigin: !0, origin: null, relativePoints: null, endOnly: !1, enabled: !1 } }, ls = Je(kn, "snap"), Bt = { start: function(n) {
|
|
@@ -6205,12 +6205,12 @@ function kc() {
|
|
|
6205
6205
|
} };
|
|
6206
6206
|
}({ page: { x: H.x, y: H.y }, client: { x: H.x, y: H.y }, timeStamp: f.now() });
|
|
6207
6207
|
D = function(re, ce, ve, we, fe) {
|
|
6208
|
-
var ye = re.interactions.new({ pointerType: "reflow" }),
|
|
6209
|
-
ye.interactable = ce, ye.element = ve, ye.prevEvent = fe, ye.updatePointer(fe, fe, ve, !0), wr(ye.coords.delta), xn(ye.prepared, we), ye._doPhase(
|
|
6208
|
+
var ye = re.interactions.new({ pointerType: "reflow" }), Ae = { interaction: ye, event: fe, pointer: fe, eventTarget: ve, phase: "reflow" };
|
|
6209
|
+
ye.interactable = ce, ye.element = ve, ye.prevEvent = fe, ye.updatePointer(fe, fe, ve, !0), wr(ye.coords.delta), xn(ye.prepared, we), ye._doPhase(Ae);
|
|
6210
6210
|
var Oe = re.window, Fe = Oe.Promise, Ve = Fe ? new Fe(function(Ge) {
|
|
6211
6211
|
ye._reflowResolve = Ge;
|
|
6212
6212
|
}) : void 0;
|
|
6213
|
-
return ye._reflowPromise = Ve, ye.start(we, ce, ve), ye._interacting ? (ye.move(
|
|
6213
|
+
return ye._reflowPromise = Ve, ye.start(we, ce, ve), ye._interacting ? (ye.move(Ae), ye.end(fe)) : (ye.stop(), ye._reflowResolve()), ye.removePointer(fe, fe), Ve;
|
|
6214
6214
|
}(f, s, O, c, ie);
|
|
6215
6215
|
}
|
|
6216
6216
|
v && v.push(D);
|
|
@@ -6226,11 +6226,11 @@ function kc() {
|
|
|
6226
6226
|
s.splice(s.indexOf(c), 1);
|
|
6227
6227
|
}(t.interactions.list, o));
|
|
6228
6228
|
} } }, Es = ws;
|
|
6229
|
-
if (
|
|
6230
|
-
e.exports =
|
|
6229
|
+
if ($e.use(Hr), $e.use(qr), $e.use(bs), $e.use(Fi), $e.use(ds), $e.use(Pi), $e.use(mi), $e.use(yi), $e.use(Es), $e.default = $e, l(e) === "object" && e) try {
|
|
6230
|
+
e.exports = $e;
|
|
6231
6231
|
} catch {
|
|
6232
6232
|
}
|
|
6233
|
-
return
|
|
6233
|
+
return $e.default = $e, $e;
|
|
6234
6234
|
});
|
|
6235
6235
|
}(Wt)), Wt.exports;
|
|
6236
6236
|
}
|
|
@@ -6370,9 +6370,9 @@ function $c({ src: e = "", displacement: r = NaN }) {
|
|
|
6370
6370
|
}
|
|
6371
6371
|
function oi(e, r) {
|
|
6372
6372
|
const { width: i, height: a } = e, { height: l } = r;
|
|
6373
|
-
if (a <= 0) return
|
|
6373
|
+
if (a <= 0) return Ie.zero;
|
|
6374
6374
|
const p = l / a * i;
|
|
6375
|
-
return
|
|
6375
|
+
return Ie.make(p, l);
|
|
6376
6376
|
}
|
|
6377
6377
|
function Ac(e, r, i, a) {
|
|
6378
6378
|
const { width: l } = oi(r, i), { width: u } = i, p = u * a;
|
|
@@ -7429,7 +7429,7 @@ function ol({ isOn: e = !1 }) {
|
|
|
7429
7429
|
track: se({ active: e })
|
|
7430
7430
|
};
|
|
7431
7431
|
}
|
|
7432
|
-
function il({ isOn: e = !1, isInverted: r = !1, knobSize: i =
|
|
7432
|
+
function il({ isOn: e = !1, isInverted: r = !1, knobSize: i = Ie.zero, orientation: a = "horizontal" }) {
|
|
7433
7433
|
return {
|
|
7434
7434
|
root: {
|
|
7435
7435
|
alignItems: "center",
|
|
@@ -7511,11 +7511,11 @@ function sl({
|
|
|
7511
7511
|
threshold: S = 100
|
|
7512
7512
|
}) {
|
|
7513
7513
|
const _ = Ee(null), P = Ee(void 0), C = nt(_), $ = he(() => {
|
|
7514
|
-
const j = document.createElement("span");
|
|
7514
|
+
const j = window.document.createElement("span");
|
|
7515
7515
|
j.className = se(r), j.innerHTML = g, j.role = "tooltip";
|
|
7516
|
-
const K = a ?? (_.current ? cl(_.current, S) : "tl"), J = al(j), Y = fl({ alignment: K, arrowSize:
|
|
7516
|
+
const K = a ?? (_.current ? cl(_.current, S) : "tl"), J = al(j), Y = fl({ alignment: K, arrowSize: Ie.make(u, l), gap: p, maxDialogWidth: m, fullDialogWidth: J.width, targetWidth: C.width }), q = le(i, Y.dialog);
|
|
7517
7517
|
Object.keys(q).forEach((k) => j.style[k] = q[k]);
|
|
7518
|
-
const E = document.createElement("span");
|
|
7518
|
+
const E = window.document.createElement("span");
|
|
7519
7519
|
return Object.keys(Y.arrow).forEach((k) => E.style[k] = Y.arrow[k]), j.appendChild(E), j;
|
|
7520
7520
|
}, [r, a, g, m, We(i), C.width, S, l, u, p]), M = he(() => {
|
|
7521
7521
|
P.current && (P.current.style.opacity = "1", P.current.ariaHidden = "false");
|
|
@@ -7538,10 +7538,11 @@ function sl({
|
|
|
7538
7538
|
);
|
|
7539
7539
|
}
|
|
7540
7540
|
function al(e) {
|
|
7541
|
+
if (typeof window > "u") return Ie.zero;
|
|
7541
7542
|
const r = e.cloneNode(!1);
|
|
7542
|
-
r.innerHTML = e.innerHTML, r.style.visibility = "hidden", r.style.whiteSpace = "pre", document.body.appendChild(r);
|
|
7543
|
+
r.innerHTML = e.innerHTML, r.style.visibility = "hidden", r.style.whiteSpace = "pre", window.document.body.appendChild(r);
|
|
7543
7544
|
const i = r.getBoundingClientRect();
|
|
7544
|
-
return document.body.removeChild(r),
|
|
7545
|
+
return window.document.body.removeChild(r), Ie.make(i.width, i.height);
|
|
7545
7546
|
}
|
|
7546
7547
|
function cl(e, r) {
|
|
7547
7548
|
const i = xe.fromViewport(), a = xe.intersecting(e);
|
|
@@ -7740,14 +7741,14 @@ function kl(e, r) {
|
|
|
7740
7741
|
}, []);
|
|
7741
7742
|
}
|
|
7742
7743
|
function dl(e) {
|
|
7743
|
-
return
|
|
7744
|
+
return window.getComputedStyle(window.document.documentElement).getPropertyValue(e) || void 0;
|
|
7744
7745
|
}
|
|
7745
7746
|
function Cl(e, r) {
|
|
7746
7747
|
return dl(`--color-${e}`) ?? r;
|
|
7747
7748
|
}
|
|
7748
7749
|
function jl(e, { isEnabled: r = !0 } = {}) {
|
|
7749
7750
|
ze(() => {
|
|
7750
|
-
if (
|
|
7751
|
+
if (r)
|
|
7751
7752
|
return window.document.documentElement.classList.add(e), () => {
|
|
7752
7753
|
window.document.documentElement.classList.remove(e);
|
|
7753
7754
|
};
|
|
@@ -7755,7 +7756,7 @@ function jl(e, { isEnabled: r = !0 } = {}) {
|
|
|
7755
7756
|
}
|
|
7756
7757
|
function Il(e, { isEnabled: r = !0 } = {}) {
|
|
7757
7758
|
ze(() => {
|
|
7758
|
-
if (
|
|
7759
|
+
if (r)
|
|
7759
7760
|
return window.document.documentElement.style = e, () => {
|
|
7760
7761
|
window.document.documentElement.style = "";
|
|
7761
7762
|
};
|
|
@@ -7976,7 +7977,7 @@ function Hl({ children: e }) {
|
|
|
7976
7977
|
return l || (window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light");
|
|
7977
7978
|
}, [i, a] = _e(r());
|
|
7978
7979
|
return Ne(() => {
|
|
7979
|
-
|
|
7980
|
+
window.localStorage.setItem("color-scheme", i), window.document.documentElement.classList.toggle("dark", i === "dark");
|
|
7980
7981
|
}, [i]), /* @__PURE__ */ x.jsx(jt.Provider, { value: { colorScheme: i, setColorScheme: a }, children: e });
|
|
7981
7982
|
}
|
|
7982
7983
|
const jt = Ts(void 0);
|