@fileverse-dev/ddoc 2.1.9-list-fix-patch-1 → 2.1.9-patch-2
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.
@@ -2,7 +2,7 @@ var Ene = Object.defineProperty;
|
|
2
2
|
var jne = (t, e, n) => e in t ? Ene(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
3
3
|
var aa = (t, e, n) => jne(t, typeof e != "symbol" ? e + "" : e, n);
|
4
4
|
import * as j from "react";
|
5
|
-
import Ce, { createContext as wn, useContext as gt, forwardRef as Yt, useRef as Ve, useState as Ne, useDebugValue as xk, useEffect as Ie, useLayoutEffect as oo, createElement as Ee, useCallback as ht, memo as vO, Children as Ps, isValidElement as x1, cloneElement as cd, useMemo as
|
5
|
+
import Ce, { createContext as wn, useContext as gt, forwardRef as Yt, useRef as Ve, useState as Ne, useDebugValue as xk, useEffect as Ie, useLayoutEffect as oo, createElement as Ee, useCallback as ht, memo as vO, Children as Ps, isValidElement as x1, cloneElement as cd, useMemo as qt, useId as ud, Fragment as es, useInsertionEffect as J3, useReducer as Nne, createRef as Ml, Suspense as Dne, Component as Mk, useImperativeHandle as bO } from "react";
|
6
6
|
import * as dd from "react-dom";
|
7
7
|
import $3, { flushSync as Ck, createPortal as wO } from "react-dom";
|
8
8
|
var Dr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
@@ -135,14 +135,14 @@ function zne() {
|
|
135
135
|
}
|
136
136
|
return null;
|
137
137
|
}
|
138
|
-
var _ = Object.assign,
|
138
|
+
var _ = Object.assign, U = 0, Z, q, J, G, ae, ne, oe;
|
139
139
|
function ue() {
|
140
140
|
}
|
141
141
|
ue.__reactDisabledLog = !0;
|
142
142
|
function pe() {
|
143
143
|
{
|
144
|
-
if (
|
145
|
-
Z = console.log,
|
144
|
+
if (U === 0) {
|
145
|
+
Z = console.log, q = console.info, J = console.warn, G = console.error, ae = console.group, ne = console.groupCollapsed, oe = console.groupEnd;
|
146
146
|
var R = {
|
147
147
|
configurable: !0,
|
148
148
|
enumerable: !0,
|
@@ -159,12 +159,12 @@ function zne() {
|
|
159
159
|
groupEnd: R
|
160
160
|
});
|
161
161
|
}
|
162
|
-
|
162
|
+
U++;
|
163
163
|
}
|
164
164
|
}
|
165
165
|
function se() {
|
166
166
|
{
|
167
|
-
if (
|
167
|
+
if (U--, U === 0) {
|
168
168
|
var R = {
|
169
169
|
configurable: !0,
|
170
170
|
enumerable: !0,
|
@@ -175,7 +175,7 @@ function zne() {
|
|
175
175
|
value: Z
|
176
176
|
}),
|
177
177
|
info: _({}, R, {
|
178
|
-
value:
|
178
|
+
value: q
|
179
179
|
}),
|
180
180
|
warn: _({}, R, {
|
181
181
|
value: J
|
@@ -194,7 +194,7 @@ function zne() {
|
|
194
194
|
})
|
195
195
|
});
|
196
196
|
}
|
197
|
-
|
197
|
+
U < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
198
198
|
}
|
199
199
|
}
|
200
200
|
var K = v.ReactCurrentDispatcher, xe;
|
@@ -13420,8 +13420,8 @@ function Ch(t, e) {
|
|
13420
13420
|
if (f === Zd && P) {
|
13421
13421
|
var B = P[i];
|
13422
13422
|
Object.keys(D).forEach(function(V) {
|
13423
|
-
var _ = [Sa, Aa].indexOf(V) >= 0 ? 1 : -1,
|
13424
|
-
D[V] += B[
|
13423
|
+
var _ = [Sa, Aa].indexOf(V) >= 0 ? 1 : -1, U = [Li, Aa].indexOf(V) >= 0 ? "y" : "x";
|
13424
|
+
D[V] += B[U] * _;
|
13425
13425
|
});
|
13426
13426
|
}
|
13427
13427
|
return D;
|
@@ -13465,16 +13465,16 @@ function rle(t) {
|
|
13465
13465
|
allowedAutoPlacements: m
|
13466
13466
|
}) : se);
|
13467
13467
|
}, []), x = e.rects.reference, M = e.rects.popper, A = /* @__PURE__ */ new Map(), S = !0, N = w[0], D = 0; D < w.length; D++) {
|
13468
|
-
var P = w[D], B = Ro(P), V = D1(P) === E1, _ = [Li, Aa].indexOf(B) >= 0,
|
13468
|
+
var P = w[D], B = Ro(P), V = D1(P) === E1, _ = [Li, Aa].indexOf(B) >= 0, U = _ ? "width" : "height", Z = Ch(e, {
|
13469
13469
|
placement: P,
|
13470
13470
|
boundary: u,
|
13471
13471
|
rootBoundary: d,
|
13472
13472
|
altBoundary: f,
|
13473
13473
|
padding: c
|
13474
|
-
}),
|
13475
|
-
x[
|
13476
|
-
var J = S4(
|
13477
|
-
if (a && G.push(Z[B] <= 0), s && G.push(Z[
|
13474
|
+
}), q = _ ? V ? Sa : Ti : V ? Aa : Li;
|
13475
|
+
x[U] > M[U] && (q = S4(q));
|
13476
|
+
var J = S4(q), G = [];
|
13477
|
+
if (a && G.push(Z[B] <= 0), s && G.push(Z[q] <= 0, Z[J] <= 0), G.every(function(pe) {
|
13478
13478
|
return pe;
|
13479
13479
|
})) {
|
13480
13480
|
N = P, S = !1;
|
@@ -13612,11 +13612,11 @@ function hle(t) {
|
|
13612
13612
|
};
|
13613
13613
|
if (M) {
|
13614
13614
|
if (a) {
|
13615
|
-
var V, _ = w === "y" ? Li : Ti,
|
13615
|
+
var V, _ = w === "y" ? Li : Ti, U = w === "y" ? Aa : Sa, Z = w === "y" ? "height" : "width", q = M[w], J = q + g[_], G = q - g[U], ae = h ? -S[Z] / 2 : 0, ne = k === E1 ? A[Z] : S[Z], oe = k === E1 ? -S[Z] : -A[Z], ue = e.elements.arrow, pe = h && ue ? ex(ue) : {
|
13616
13616
|
width: 0,
|
13617
13617
|
height: 0
|
13618
|
-
}, se = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : yH(), K = se[_], xe = se[
|
13619
|
-
M[w] = $, B[w] = $ -
|
13618
|
+
}, se = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : yH(), K = se[_], xe = se[U], de = Bf(0, A[Z], pe[Z]), Le = b ? A[Z] / 2 - ae - de - K - D.mainAxis : ne - de - K - D.mainAxis, ge = b ? -A[Z] / 2 + ae + de + xe + D.mainAxis : oe + de + xe + D.mainAxis, me = e.elements.arrow && K2(e.elements.arrow), Me = me ? w === "y" ? me.clientTop || 0 : me.clientLeft || 0 : 0, ve = (V = P == null ? void 0 : P[w]) != null ? V : 0, ee = q + Le - ve - Me, Y = q + ge - ve, $ = Bf(h ? fy(J, ee) : J, q, h ? Au(G, Y) : G);
|
13619
|
+
M[w] = $, B[w] = $ - q;
|
13620
13620
|
}
|
13621
13621
|
if (s) {
|
13622
13622
|
var ie, ye = w === "x" ? Li : Ti, F = w === "x" ? Aa : Sa, C = M[x], I = x === "y" ? "height" : "width", O = C + g[ye], Q = C - g[F], le = [Li, Ti].indexOf(v) !== -1, ce = (ie = P == null ? void 0 : P[x]) != null ? ie : 0, je = le ? O : C - A[I] - S[I] - ce + D.altAxis, Be = le ? C + A[I] + S[I] - ce - D.altAxis : Q, $e = h && le ? Ose(je, C, Be) : Bf(h ? je : O, C, h ? Be : Q);
|
@@ -14226,7 +14226,7 @@ function Xle(t, e) {
|
|
14226
14226
|
var S = k.map(function(Ae) {
|
14227
14227
|
return Ae.fn(w);
|
14228
14228
|
}), N = t.hasAttribute("aria-expanded");
|
14229
|
-
return me(), ae(),
|
14229
|
+
return me(), ae(), q(), J("onCreate", [w]), n.showOnCreate && O(), M.addEventListener("mouseenter", function() {
|
14230
14230
|
w.props.interactive && w.state.isVisible && w.clearDelayTimeouts();
|
14231
14231
|
}), M.addEventListener("mouseleave", function() {
|
14232
14232
|
w.props.interactive && w.props.trigger.indexOf("mouseenter") >= 0 && _().addEventListener("mousemove", p);
|
@@ -14249,13 +14249,13 @@ function Xle(t, e) {
|
|
14249
14249
|
var Ae = V().parentNode;
|
14250
14250
|
return Ae ? Ole(Ae) : document;
|
14251
14251
|
}
|
14252
|
-
function
|
14252
|
+
function U() {
|
14253
14253
|
return s7(M);
|
14254
14254
|
}
|
14255
14255
|
function Z(Ae) {
|
14256
14256
|
return w.state.isMounted && !w.state.isVisible || Co.isTouch || u && u.type === "focus" ? 0 : I5(w.props.delay, Ae ? 0 : 1, Ui.delay);
|
14257
14257
|
}
|
14258
|
-
function
|
14258
|
+
function q(Ae) {
|
14259
14259
|
Ae === void 0 && (Ae = !1), M.style.pointerEvents = w.props.interactive && !Ae ? "" : "none", M.style.zIndex = "" + w.props.zIndex;
|
14260
14260
|
}
|
14261
14261
|
function J(Ae, ke, Pe) {
|
@@ -14334,7 +14334,7 @@ function Xle(t, e) {
|
|
14334
14334
|
Le(Ae, ke);
|
14335
14335
|
}
|
14336
14336
|
function Le(Ae, ke) {
|
14337
|
-
var Pe =
|
14337
|
+
var Pe = U().box;
|
14338
14338
|
function et(lt) {
|
14339
14339
|
lt.target === Pe && (P5(Pe, "remove", et), ke());
|
14340
14340
|
}
|
@@ -14432,7 +14432,7 @@ function Xle(t, e) {
|
|
14432
14432
|
fn: function(Ct) {
|
14433
14433
|
var ft = Ct.state;
|
14434
14434
|
if (B()) {
|
14435
|
-
var hn =
|
14435
|
+
var hn = U(), _n = hn.box;
|
14436
14436
|
["placement", "reference-hidden", "escaped"].forEach(function(An) {
|
14437
14437
|
An === "placement" ? _n.setAttribute("data-placement", ft.placement) : ft.attributes.popper["data-popper-" + An] ? _n.setAttribute("data-" + An, "") : _n.removeAttribute("data-" + An);
|
14438
14438
|
}), ft.attributes.popper = {};
|
@@ -14530,7 +14530,7 @@ function Xle(t, e) {
|
|
14530
14530
|
}));
|
14531
14531
|
w.props = Pe, me(), ke.interactiveDebounce !== Pe.interactiveDebounce && (ne(), p = RT(ee, Pe.interactiveDebounce)), ke.triggerTarget && !Pe.triggerTarget ? _0(ke.triggerTarget).forEach(function(et) {
|
14532
14532
|
et.removeAttribute("aria-expanded");
|
14533
|
-
}) : Pe.triggerTarget && t.removeAttribute("aria-expanded"), ae(),
|
14533
|
+
}) : Pe.triggerTarget && t.removeAttribute("aria-expanded"), ae(), q(), A && A(ke, Pe), w.popperInstance && (ye(), I().forEach(function(et) {
|
14534
14534
|
requestAnimationFrame(et._tippy.popperInstance.forceUpdate);
|
14535
14535
|
})), J("onAfterUpdate", [w, Ae]);
|
14536
14536
|
}
|
@@ -14544,15 +14544,15 @@ function Xle(t, e) {
|
|
14544
14544
|
process.env.NODE_ENV !== "production" && Cs(w.state.isDestroyed, A0("show"));
|
14545
14545
|
var Ae = w.state.isVisible, ke = w.state.isDestroyed, Pe = !w.state.isEnabled, et = Co.isTouch && !w.props.touch, lt = I5(w.props.duration, 0, Ui.duration);
|
14546
14546
|
if (!(Ae || ke || Pe || et) && !V().hasAttribute("disabled") && (J("onShow", [w], !1), w.props.onShow(w) !== !1)) {
|
14547
|
-
if (w.state.isVisible = !0, B() && (M.style.visibility = "visible"),
|
14548
|
-
var _e =
|
14547
|
+
if (w.state.isVisible = !0, B() && (M.style.visibility = "visible"), q(), se(), w.state.isMounted || (M.style.transition = "none"), B()) {
|
14548
|
+
var _e = U(), nt = _e.box, dt = _e.content;
|
14549
14549
|
z5([nt, dt], 0);
|
14550
14550
|
}
|
14551
14551
|
f = function() {
|
14552
14552
|
var Nt;
|
14553
14553
|
if (!(!w.state.isVisible || c)) {
|
14554
14554
|
if (c = !0, M.offsetHeight, M.style.transition = w.props.moveTransition, B() && w.props.animation) {
|
14555
|
-
var on =
|
14555
|
+
var on = U(), Ct = on.box, ft = on.content;
|
14556
14556
|
z5([Ct, ft], lt), HT([Ct, ft], "visible");
|
14557
14557
|
}
|
14558
14558
|
G(), ae(), OT(R5, w), (Nt = w.popperInstance) == null || Nt.forceUpdate(), J("onMount", [w]), w.props.animation && B() && de(lt, function() {
|
@@ -14566,8 +14566,8 @@ function Xle(t, e) {
|
|
14566
14566
|
process.env.NODE_ENV !== "production" && Cs(w.state.isDestroyed, A0("hide"));
|
14567
14567
|
var Ae = !w.state.isVisible, ke = w.state.isDestroyed, Pe = !w.state.isEnabled, et = I5(w.props.duration, 1, Ui.duration);
|
14568
14568
|
if (!(Ae || ke || Pe) && (J("onHide", [w], !1), w.props.onHide(w) !== !1)) {
|
14569
|
-
if (w.state.isVisible = !1, w.state.isShown = !1, c = !1, o = !1, B() && (M.style.visibility = "hidden"), ne(), K(),
|
14570
|
-
var lt =
|
14569
|
+
if (w.state.isVisible = !1, w.state.isShown = !1, c = !1, o = !1, B() && (M.style.visibility = "hidden"), ne(), K(), q(!0), B()) {
|
14570
|
+
var lt = U(), _e = lt.box, nt = lt.content;
|
14571
14571
|
w.props.animation && (z5([_e, nt], et), HT([_e, nt], "hidden"));
|
14572
14572
|
}
|
14573
14573
|
G(), ae(), w.props.animation ? B() && xe(et, w.unmount) : w.unmount();
|
@@ -15145,11 +15145,11 @@ function hce() {
|
|
15145
15145
|
}
|
15146
15146
|
return A = V, V;
|
15147
15147
|
}
|
15148
|
-
var
|
15149
|
-
if (r(
|
15148
|
+
var U = M, Z = A;
|
15149
|
+
if (r(U, B))
|
15150
15150
|
return Z;
|
15151
|
-
var
|
15152
|
-
return p !== void 0 && p(Z,
|
15151
|
+
var q = h(B);
|
15152
|
+
return p !== void 0 && p(Z, q) ? Z : (M = B, A = q, q);
|
15153
15153
|
}, N = f === void 0 ? null : f, D = function() {
|
15154
15154
|
return S(d());
|
15155
15155
|
}, P = N === null ? void 0 : function() {
|
@@ -15763,14 +15763,14 @@ function Sce() {
|
|
15763
15763
|
}
|
15764
15764
|
return null;
|
15765
15765
|
}
|
15766
|
-
var _ = Object.assign,
|
15766
|
+
var _ = Object.assign, U = 0, Z, q, J, G, ae, ne, oe;
|
15767
15767
|
function ue() {
|
15768
15768
|
}
|
15769
15769
|
ue.__reactDisabledLog = !0;
|
15770
15770
|
function pe() {
|
15771
15771
|
{
|
15772
|
-
if (
|
15773
|
-
Z = console.log,
|
15772
|
+
if (U === 0) {
|
15773
|
+
Z = console.log, q = console.info, J = console.warn, G = console.error, ae = console.group, ne = console.groupCollapsed, oe = console.groupEnd;
|
15774
15774
|
var R = {
|
15775
15775
|
configurable: !0,
|
15776
15776
|
enumerable: !0,
|
@@ -15787,12 +15787,12 @@ function Sce() {
|
|
15787
15787
|
groupEnd: R
|
15788
15788
|
});
|
15789
15789
|
}
|
15790
|
-
|
15790
|
+
U++;
|
15791
15791
|
}
|
15792
15792
|
}
|
15793
15793
|
function se() {
|
15794
15794
|
{
|
15795
|
-
if (
|
15795
|
+
if (U--, U === 0) {
|
15796
15796
|
var R = {
|
15797
15797
|
configurable: !0,
|
15798
15798
|
enumerable: !0,
|
@@ -15803,7 +15803,7 @@ function Sce() {
|
|
15803
15803
|
value: Z
|
15804
15804
|
}),
|
15805
15805
|
info: _({}, R, {
|
15806
|
-
value:
|
15806
|
+
value: q
|
15807
15807
|
}),
|
15808
15808
|
warn: _({}, R, {
|
15809
15809
|
value: J
|
@@ -15822,7 +15822,7 @@ function Sce() {
|
|
15822
15822
|
})
|
15823
15823
|
});
|
15824
15824
|
}
|
15825
|
-
|
15825
|
+
U < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
15826
15826
|
}
|
15827
15827
|
}
|
15828
15828
|
var K = v.ReactCurrentDispatcher, xe;
|
@@ -16590,7 +16590,7 @@ function nue(t) {
|
|
16590
16590
|
return Zce.test(t);
|
16591
16591
|
}
|
16592
16592
|
function rue() {
|
16593
|
-
const t = kn("colors"), e = kn("spacing"), n = kn("blur"), r = kn("brightness"), i = kn("borderColor"), a = kn("borderRadius"), o = kn("borderSpacing"), s = kn("borderWidth"), l = kn("contrast"), c = kn("grayscale"), u = kn("hueRotate"), d = kn("invert"), f = kn("gap"), h = kn("gradientColorStops"), p = kn("gradientColorStopPositions"), m = kn("inset"), g = kn("margin"), v = kn("opacity"), k = kn("padding"), b = kn("saturate"), w = kn("scale"), x = kn("sepia"), M = kn("skew"), A = kn("space"), S = kn("translate"), N = () => ["auto", "contain", "none"], D = () => ["auto", "hidden", "clip", "visible", "scroll"], P = () => ["auto", Ot, e], B = () => [Ot, e], V = () => ["", ps, Cl], _ = () => ["auto", pu, Ot],
|
16593
|
+
const t = kn("colors"), e = kn("spacing"), n = kn("blur"), r = kn("brightness"), i = kn("borderColor"), a = kn("borderRadius"), o = kn("borderSpacing"), s = kn("borderWidth"), l = kn("contrast"), c = kn("grayscale"), u = kn("hueRotate"), d = kn("invert"), f = kn("gap"), h = kn("gradientColorStops"), p = kn("gradientColorStopPositions"), m = kn("inset"), g = kn("margin"), v = kn("opacity"), k = kn("padding"), b = kn("saturate"), w = kn("scale"), x = kn("sepia"), M = kn("skew"), A = kn("space"), S = kn("translate"), N = () => ["auto", "contain", "none"], D = () => ["auto", "hidden", "clip", "visible", "scroll"], P = () => ["auto", Ot, e], B = () => [Ot, e], V = () => ["", ps, Cl], _ = () => ["auto", pu, Ot], U = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], Z = () => ["solid", "dashed", "dotted", "double", "none"], q = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], J = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], G = () => ["", "0", Ot], ae = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], ne = () => [pu, cm], oe = () => [pu, Ot];
|
16594
16594
|
return {
|
16595
16595
|
cacheSize: 500,
|
16596
16596
|
separator: ":",
|
@@ -16713,7 +16713,7 @@ function rue() {
|
|
16713
16713
|
* @see https://tailwindcss.com/docs/object-position
|
16714
16714
|
*/
|
16715
16715
|
"object-position": [{
|
16716
|
-
object: [...
|
16716
|
+
object: [...U(), Ot]
|
16717
16717
|
}],
|
16718
16718
|
/**
|
16719
16719
|
* Overflow
|
@@ -17522,7 +17522,7 @@ function rue() {
|
|
17522
17522
|
* @see https://tailwindcss.com/docs/background-position
|
17523
17523
|
*/
|
17524
17524
|
"bg-position": [{
|
17525
|
-
bg: [...
|
17525
|
+
bg: [...U(), Jce]
|
17526
17526
|
}],
|
17527
17527
|
/**
|
17528
17528
|
* Background Repeat
|
@@ -17970,14 +17970,14 @@ function rue() {
|
|
17970
17970
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
17971
17971
|
*/
|
17972
17972
|
"mix-blend": [{
|
17973
|
-
"mix-blend": [...
|
17973
|
+
"mix-blend": [...q(), "plus-lighter", "plus-darker"]
|
17974
17974
|
}],
|
17975
17975
|
/**
|
17976
17976
|
* Background Blend Mode
|
17977
17977
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
17978
17978
|
*/
|
17979
17979
|
"bg-blend": [{
|
17980
|
-
"bg-blend":
|
17980
|
+
"bg-blend": q()
|
17981
17981
|
}],
|
17982
17982
|
// Filters
|
17983
17983
|
/**
|
@@ -43422,7 +43422,7 @@ const Urt = Da(
|
|
43422
43422
|
size: "md"
|
43423
43423
|
}
|
43424
43424
|
}
|
43425
|
-
),
|
43425
|
+
), Ut = j.forwardRef(
|
43426
43426
|
({
|
43427
43427
|
className: t,
|
43428
43428
|
variant: e,
|
@@ -43482,7 +43482,7 @@ const Urt = Da(
|
|
43482
43482
|
}
|
43483
43483
|
)
|
43484
43484
|
);
|
43485
|
-
|
43485
|
+
Ut.displayName = "Button";
|
43486
43486
|
const dx = ({ children: t, className: e }) => {
|
43487
43487
|
const n = be("flex space-x-2", e);
|
43488
43488
|
return /* @__PURE__ */ T.jsx("div", { className: n, children: t });
|
@@ -43498,7 +43498,7 @@ const dx = ({ children: t, className: e }) => {
|
|
43498
43498
|
fill: s,
|
43499
43499
|
...l
|
43500
43500
|
}, c) => /* @__PURE__ */ T.jsx(
|
43501
|
-
|
43501
|
+
Ut,
|
43502
43502
|
{
|
43503
43503
|
ref: c,
|
43504
43504
|
variant: e,
|
@@ -43546,7 +43546,7 @@ function Wrt(t, e) {
|
|
43546
43546
|
function JH(...t) {
|
43547
43547
|
return (e) => t.forEach((n) => Wrt(n, e));
|
43548
43548
|
}
|
43549
|
-
function
|
43549
|
+
function Zt(...t) {
|
43550
43550
|
return j.useCallback(JH(...t), t);
|
43551
43551
|
}
|
43552
43552
|
var Go = j.forwardRef((t, e) => {
|
@@ -43658,7 +43658,7 @@ const Lh = j.forwardRef(
|
|
43658
43658
|
rightIcon: l,
|
43659
43659
|
...c
|
43660
43660
|
}, u) => {
|
43661
|
-
const d = j.useRef(null), f =
|
43661
|
+
const d = j.useRef(null), f = Zt(u, d), h = j.useCallback(() => {
|
43662
43662
|
var g;
|
43663
43663
|
(g = d.current) == null || g.focus();
|
43664
43664
|
}, []), p = j.useMemo(() => {
|
@@ -43785,7 +43785,7 @@ const Js = j.forwardRef(
|
|
43785
43785
|
rightIcon: l,
|
43786
43786
|
...c
|
43787
43787
|
}, u) => {
|
43788
|
-
const d = j.useRef(null), f =
|
43788
|
+
const d = j.useRef(null), f = Zt(u, d), h = j.useCallback(() => {
|
43789
43789
|
var g;
|
43790
43790
|
(g = d.current) == null || g.focus();
|
43791
43791
|
}, []), p = j.useMemo(() => {
|
@@ -44007,7 +44007,7 @@ var mx = "Switch", [nit, WUt] = Qr(mx), [rit, iit] = nit(mx), eF = j.forwardRef(
|
|
44007
44007
|
value: l = "on",
|
44008
44008
|
onCheckedChange: c,
|
44009
44009
|
...u
|
44010
|
-
} = t, [d, f] = j.useState(null), h =
|
44010
|
+
} = t, [d, f] = j.useState(null), h = Zt(e, (k) => f(k)), p = j.useRef(!1), m = d ? !!d.closest("form") : !0, [g = !1, v] = so({
|
44011
44011
|
prop: i,
|
44012
44012
|
defaultProp: a,
|
44013
44013
|
onChange: c
|
@@ -44153,7 +44153,7 @@ var cit = "DismissableLayer", y7 = "dismissableLayer.update", uit = "dismissable
|
|
44153
44153
|
onInteractOutside: o,
|
44154
44154
|
onDismiss: s,
|
44155
44155
|
...l
|
44156
|
-
} = t, c = j.useContext(oF), [u, d] = j.useState(null), f = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, h] = j.useState({}), p =
|
44156
|
+
} = t, c = j.useContext(oF), [u, d] = j.useState(null), f = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, h] = j.useState({}), p = Zt(e, (A) => d(A)), m = Array.from(c.layers), [g] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), v = m.indexOf(g), k = u ? m.indexOf(u) : -1, b = c.layersWithOutsidePointerEventsDisabled.size > 0, w = k >= v, x = hit((A) => {
|
44157
44157
|
const S = A.target, N = [...c.branches].some((D) => D.contains(S));
|
44158
44158
|
!w || N || (i == null || i(A), o == null || o(A), A.defaultPrevented || s == null || s());
|
44159
44159
|
}, f), M = pit((A) => {
|
@@ -44193,7 +44193,7 @@ var cit = "DismissableLayer", y7 = "dismissableLayer.update", uit = "dismissable
|
|
44193
44193
|
);
|
44194
44194
|
Dc.displayName = cit;
|
44195
44195
|
var fit = "DismissableLayerBranch", sF = j.forwardRef((t, e) => {
|
44196
|
-
const n = j.useContext(oF), r = j.useRef(null), i =
|
44196
|
+
const n = j.useContext(oF), r = j.useRef(null), i = Zt(e, r);
|
44197
44197
|
return j.useEffect(() => {
|
44198
44198
|
const a = r.current;
|
44199
44199
|
if (a)
|
@@ -44546,14 +44546,14 @@ const Tit = (t) => ({
|
|
44546
44546
|
}, h = vx(i), p = gx(h), m = await o.getDimensions(c), g = h === "y", v = g ? "top" : "left", k = g ? "bottom" : "right", b = g ? "clientHeight" : "clientWidth", w = a.reference[p] + a.reference[h] - f[h] - a.floating[p], x = f[h] - a.reference[h], M = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(c));
|
44547
44547
|
let A = M ? M[b] : 0;
|
44548
44548
|
(!A || !await (o.isElement == null ? void 0 : o.isElement(M))) && (A = s.floating[b] || a.floating[p]);
|
44549
|
-
const S = w / 2 - x / 2, N = A / 2 - m[p] / 2 - 1, D = jo(d[v], N), P = jo(d[k], N), B = D, V = A - m[p] - P, _ = A / 2 - m[p] / 2 + S,
|
44549
|
+
const S = w / 2 - x / 2, N = A / 2 - m[p] / 2 - 1, D = jo(d[v], N), P = jo(d[k], N), B = D, V = A - m[p] - P, _ = A / 2 - m[p] / 2 + S, U = g7(B, _, V), Z = !l.arrow && md(i) != null && _ !== U && a.reference[p] / 2 - (_ < B ? D : P) - m[p] / 2 < 0, q = Z ? _ < B ? _ - B : _ - V : 0;
|
44550
44550
|
return {
|
44551
|
-
[h]: f[h] +
|
44551
|
+
[h]: f[h] + q,
|
44552
44552
|
data: {
|
44553
|
-
[h]:
|
44554
|
-
centerOffset: _ -
|
44553
|
+
[h]: U,
|
44554
|
+
centerOffset: _ - U - q,
|
44555
44555
|
...Z && {
|
44556
|
-
alignmentOffset:
|
44556
|
+
alignmentOffset: q
|
44557
44557
|
}
|
44558
44558
|
},
|
44559
44559
|
reset: Z
|
@@ -44596,23 +44596,23 @@ const Tit = (t) => ({
|
|
44596
44596
|
overflows: N
|
44597
44597
|
}], !N.every((_) => _ <= 0)) {
|
44598
44598
|
var P, B;
|
44599
|
-
const _ = (((P = a.flip) == null ? void 0 : P.index) || 0) + 1,
|
44600
|
-
if (
|
44599
|
+
const _ = (((P = a.flip) == null ? void 0 : P.index) || 0) + 1, U = A[_];
|
44600
|
+
if (U)
|
44601
44601
|
return {
|
44602
44602
|
data: {
|
44603
44603
|
index: _,
|
44604
44604
|
overflows: D
|
44605
44605
|
},
|
44606
44606
|
reset: {
|
44607
|
-
placement:
|
44607
|
+
placement: U
|
44608
44608
|
}
|
44609
44609
|
};
|
44610
|
-
let Z = (B = D.filter((
|
44610
|
+
let Z = (B = D.filter((q) => q.overflows[0] <= 0).sort((q, J) => q.overflows[1] - J.overflows[1])[0]) == null ? void 0 : B.placement;
|
44611
44611
|
if (!Z)
|
44612
44612
|
switch (h) {
|
44613
44613
|
case "bestFit": {
|
44614
44614
|
var V;
|
44615
|
-
const
|
44615
|
+
const q = (V = D.filter((J) => {
|
44616
44616
|
if (M) {
|
44617
44617
|
const G = uc(J.placement);
|
44618
44618
|
return G === k || // Create a bias to the `y` side axis due to horizontal
|
@@ -44621,7 +44621,7 @@ const Tit = (t) => ({
|
|
44621
44621
|
}
|
44622
44622
|
return !0;
|
44623
44623
|
}).map((J) => [J.placement, J.overflows.filter((G) => G > 0).reduce((G, ae) => G + ae, 0)]).sort((J, G) => J[1] - G[1])[0]) == null ? void 0 : V[0];
|
44624
|
-
|
44624
|
+
q && (Z = q);
|
44625
44625
|
break;
|
44626
44626
|
}
|
44627
44627
|
case "initialPlacement":
|
@@ -45399,19 +45399,19 @@ function sat(t) {
|
|
45399
45399
|
isPositioned: !1
|
45400
45400
|
}), [f, h] = j.useState(r);
|
45401
45401
|
gy(f, r) || h(r);
|
45402
|
-
const [p, m] = j.useState(null), [g, v] = j.useState(null), k = j.useCallback((
|
45403
|
-
|
45404
|
-
}, []), b = j.useCallback((
|
45405
|
-
|
45402
|
+
const [p, m] = j.useState(null), [g, v] = j.useState(null), k = j.useCallback((q) => {
|
45403
|
+
q !== M.current && (M.current = q, m(q));
|
45404
|
+
}, []), b = j.useCallback((q) => {
|
45405
|
+
q !== A.current && (A.current = q, v(q));
|
45406
45406
|
}, []), w = a || p, x = o || g, M = j.useRef(null), A = j.useRef(null), S = j.useRef(u), N = l != null, D = mE(l), P = mE(i), B = j.useCallback(() => {
|
45407
45407
|
if (!M.current || !A.current)
|
45408
45408
|
return;
|
45409
|
-
const
|
45409
|
+
const q = {
|
45410
45410
|
placement: e,
|
45411
45411
|
strategy: n,
|
45412
45412
|
middleware: f
|
45413
45413
|
};
|
45414
|
-
P.current && (
|
45414
|
+
P.current && (q.platform = P.current), oat(M.current, A.current, q).then((J) => {
|
45415
45415
|
const G = {
|
45416
45416
|
...J,
|
45417
45417
|
isPositioned: !0
|
@@ -45422,8 +45422,8 @@ function sat(t) {
|
|
45422
45422
|
});
|
45423
45423
|
}, [f, e, n, P]);
|
45424
45424
|
L4(() => {
|
45425
|
-
c === !1 && S.current.isPositioned && (S.current.isPositioned = !1, d((
|
45426
|
-
...
|
45425
|
+
c === !1 && S.current.isPositioned && (S.current.isPositioned = !1, d((q) => ({
|
45426
|
+
...q,
|
45427
45427
|
isPositioned: !1
|
45428
45428
|
})));
|
45429
45429
|
}, [c]);
|
@@ -45442,22 +45442,22 @@ function sat(t) {
|
|
45442
45442
|
floating: A,
|
45443
45443
|
setReference: k,
|
45444
45444
|
setFloating: b
|
45445
|
-
}), [k, b]),
|
45445
|
+
}), [k, b]), U = j.useMemo(() => ({
|
45446
45446
|
reference: w,
|
45447
45447
|
floating: x
|
45448
45448
|
}), [w, x]), Z = j.useMemo(() => {
|
45449
|
-
const
|
45449
|
+
const q = {
|
45450
45450
|
position: n,
|
45451
45451
|
left: 0,
|
45452
45452
|
top: 0
|
45453
45453
|
};
|
45454
|
-
if (!
|
45455
|
-
return
|
45456
|
-
const J = pE(
|
45454
|
+
if (!U.floating)
|
45455
|
+
return q;
|
45456
|
+
const J = pE(U.floating, u.x), G = pE(U.floating, u.y);
|
45457
45457
|
return s ? {
|
45458
|
-
...
|
45458
|
+
...q,
|
45459
45459
|
transform: "translate(" + J + "px, " + G + "px)",
|
45460
|
-
...gF(
|
45460
|
+
...gF(U.floating) >= 1.5 && {
|
45461
45461
|
willChange: "transform"
|
45462
45462
|
}
|
45463
45463
|
} : {
|
@@ -45465,14 +45465,14 @@ function sat(t) {
|
|
45465
45465
|
left: J,
|
45466
45466
|
top: G
|
45467
45467
|
};
|
45468
|
-
}, [n, s,
|
45468
|
+
}, [n, s, U.floating, u.x, u.y]);
|
45469
45469
|
return j.useMemo(() => ({
|
45470
45470
|
...u,
|
45471
45471
|
update: B,
|
45472
45472
|
refs: _,
|
45473
|
-
elements:
|
45473
|
+
elements: U,
|
45474
45474
|
floatingStyles: Z
|
45475
|
-
}), [u, B, _,
|
45475
|
+
}), [u, B, _, U, Z]);
|
45476
45476
|
}
|
45477
45477
|
const lat = (t) => {
|
45478
45478
|
function e(n) {
|
@@ -45540,7 +45540,7 @@ var gat = vF, xx = "Popper", [bF, ts] = Qr(xx), [vat, wF] = bF(xx), kF = (t) =>
|
|
45540
45540
|
kF.displayName = xx;
|
45541
45541
|
var xF = "PopperAnchor", MF = j.forwardRef(
|
45542
45542
|
(t, e) => {
|
45543
|
-
const { __scopePopper: n, virtualRef: r, ...i } = t, a = wF(xF, n), o = j.useRef(null), s =
|
45543
|
+
const { __scopePopper: n, virtualRef: r, ...i } = t, a = wF(xF, n), o = j.useRef(null), s = Zt(e, o);
|
45544
45544
|
return j.useEffect(() => {
|
45545
45545
|
a.onAnchorChange((r == null ? void 0 : r.current) || o.current);
|
45546
45546
|
}), r ? null : /* @__PURE__ */ T.jsx(wt.div, { ...i, ref: s });
|
@@ -45565,15 +45565,15 @@ var Mx = "PopperContent", [bat, wat] = bF(Mx), CF = j.forwardRef(
|
|
45565
45565
|
updatePositionStrategy: b = "optimized",
|
45566
45566
|
onPlaced: w,
|
45567
45567
|
...x
|
45568
|
-
} = t, M = wF(Mx, l), [A, S] = j.useState(null), N =
|
45568
|
+
} = t, M = wF(Mx, l), [A, S] = j.useState(null), N = Zt(e, (ve) => S(ve)), [D, P] = j.useState(null), B = px(D), V = (B == null ? void 0 : B.width) ?? 0, _ = (B == null ? void 0 : B.height) ?? 0, U = c + (d !== "center" ? "-" + d : ""), Z = typeof g == "number" ? g : { top: 0, right: 0, bottom: 0, left: 0, ...g }, q = Array.isArray(m) ? m : [m], J = q.length > 0, G = {
|
45569
45569
|
padding: Z,
|
45570
|
-
boundary:
|
45570
|
+
boundary: q.filter(xat),
|
45571
45571
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
45572
45572
|
altBoundary: J
|
45573
45573
|
}, { refs: ae, floatingStyles: ne, placement: oe, isPositioned: ue, middlewareData: pe } = sat({
|
45574
45574
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
45575
45575
|
strategy: "fixed",
|
45576
|
-
placement:
|
45576
|
+
placement: U,
|
45577
45577
|
whileElementsMounted: (...ve) => Xit(...ve, {
|
45578
45578
|
animationFrame: b === "always"
|
45579
45579
|
}),
|
@@ -45742,7 +45742,7 @@ function Aat(t, e) {
|
|
45742
45742
|
return j.useReducer((n, r) => e[n][r] ?? n, t);
|
45743
45743
|
}
|
45744
45744
|
var Ii = (t) => {
|
45745
|
-
const { present: e, children: n } = t, r = Sat(e), i = typeof n == "function" ? n({ present: r.isPresent }) : j.Children.only(n), a =
|
45745
|
+
const { present: e, children: n } = t, r = Sat(e), i = typeof n == "function" ? n({ present: r.isPresent }) : j.Children.only(n), a = Zt(r.ref, Lat(i));
|
45746
45746
|
return typeof n == "function" || r.isPresent ? j.cloneElement(i, { ref: a }) : null;
|
45747
45747
|
};
|
45748
45748
|
Ii.displayName = "Presence";
|
@@ -45908,7 +45908,7 @@ var wg = "Tooltip", [Nat, tp] = vg(wg), DF = (t) => {
|
|
45908
45908
|
DF.displayName = wg;
|
45909
45909
|
var w7 = "TooltipTrigger", IF = j.forwardRef(
|
45910
45910
|
(t, e) => {
|
45911
|
-
const { __scopeTooltip: n, ...r } = t, i = tp(w7, n), a = Cx(w7, n), o = bg(n), s = j.useRef(null), l =
|
45911
|
+
const { __scopeTooltip: n, ...r } = t, i = tp(w7, n), a = Cx(w7, n), o = bg(n), s = j.useRef(null), l = Zt(e, s, i.onTriggerChange), c = j.useRef(!1), u = j.useRef(!1), d = j.useCallback(() => c.current = !1, []);
|
45912
45912
|
return j.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ T.jsx(gd, { asChild: !0, ...o, children: /* @__PURE__ */ T.jsx(
|
45913
45913
|
wt.button,
|
45914
45914
|
{
|
@@ -45948,7 +45948,7 @@ var z1 = "TooltipContent", PF = j.forwardRef(
|
|
45948
45948
|
return /* @__PURE__ */ T.jsx(Ii, { present: r || o.open, children: o.disableHoverableContent ? /* @__PURE__ */ T.jsx(RF, { side: i, ...a, ref: e }) : /* @__PURE__ */ T.jsx(zat, { side: i, ...a, ref: e }) });
|
45949
45949
|
}
|
45950
45950
|
), zat = j.forwardRef((t, e) => {
|
45951
|
-
const n = tp(z1, t.__scopeTooltip), r = Cx(z1, t.__scopeTooltip), i = j.useRef(null), a =
|
45951
|
+
const n = tp(z1, t.__scopeTooltip), r = Cx(z1, t.__scopeTooltip), i = j.useRef(null), a = Zt(e, i), [o, s] = j.useState(null), { trigger: l, onClose: c } = n, u = i.current, { onPointerInTransitChange: d } = r, f = j.useCallback(() => {
|
45952
45952
|
s(null), d(!1);
|
45953
45953
|
}, [d]), h = j.useCallback(
|
45954
45954
|
(p, m) => {
|
@@ -46308,7 +46308,7 @@ function rot(t, e) {
|
|
46308
46308
|
}
|
46309
46309
|
function iot(t) {
|
46310
46310
|
const { initial: e, animate: n } = rot(t, gt(kg));
|
46311
|
-
return
|
46311
|
+
return qt(() => ({ initial: e, animate: n }), [gE(e), gE(n)]);
|
46312
46312
|
}
|
46313
46313
|
function gE(t) {
|
46314
46314
|
return Array.isArray(t) ? t.join(" ") : t;
|
@@ -46626,7 +46626,7 @@ function KF(t, e, n) {
|
|
46626
46626
|
!Zr(e[r]) && !WF(r, n) && (t[r] = e[r]);
|
46627
46627
|
}
|
46628
46628
|
function Aot({ transformTemplate: t }, e) {
|
46629
|
-
return
|
46629
|
+
return qt(() => {
|
46630
46630
|
const n = Ox();
|
46631
46631
|
return Rx(n, e, t), Object.assign({}, n.vars, n.style);
|
46632
46632
|
}, [e]);
|
@@ -46735,7 +46735,7 @@ const $F = () => ({
|
|
46735
46735
|
attrs: {}
|
46736
46736
|
}), Hx = (t) => typeof t == "string" && t.toLowerCase() === "svg";
|
46737
46737
|
function Pot(t, e, n, r) {
|
46738
|
-
const i =
|
46738
|
+
const i = qt(() => {
|
46739
46739
|
const a = $F();
|
46740
46740
|
return Bx(a, e, Hx(r), t.transformTemplate), {
|
46741
46741
|
...a.attrs,
|
@@ -46750,7 +46750,7 @@ function Pot(t, e, n, r) {
|
|
46750
46750
|
}
|
46751
46751
|
function Rot(t = !1) {
|
46752
46752
|
return (e, n, r, { latestValues: i }, a) => {
|
46753
|
-
const o = (Ix(e) ? Pot : Lot)(n, i, a, e), s = jot(n, typeof e == "string", t), l = e !== es ? { ...s, ...o, ref: r } : {}, { children: c } = n, u =
|
46753
|
+
const o = (Ix(e) ? Pot : Lot)(n, i, a, e), s = jot(n, typeof e == "string", t), l = e !== es ? { ...s, ...o, ref: r } : {}, { children: c } = n, u = qt(() => Zr(c) ? c.get() : c, [c]);
|
46754
46754
|
return Ee(e, {
|
46755
46755
|
...l,
|
46756
46756
|
children: u
|
@@ -48827,15 +48827,15 @@ function Vlt(t) {
|
|
48827
48827
|
...D
|
48828
48828
|
}, V = (_) => {
|
48829
48829
|
A = !0, f.has(_) && (S = !0, f.delete(_)), k.needsAnimating[_] = !0;
|
48830
|
-
const
|
48831
|
-
|
48830
|
+
const U = t.getValue(_);
|
48831
|
+
U && (U.liveStyle = !1);
|
48832
48832
|
};
|
48833
48833
|
for (const _ in B) {
|
48834
|
-
const
|
48834
|
+
const U = D[_], Z = P[_];
|
48835
48835
|
if (h.hasOwnProperty(_))
|
48836
48836
|
continue;
|
48837
|
-
let
|
48838
|
-
k7(
|
48837
|
+
let q = !1;
|
48838
|
+
k7(U) && k7(Z) ? q = !d_(U, Z) : q = U !== Z, q ? U != null ? V(_) : f.add(_) : U !== void 0 && f.has(_) ? V(_) : k.protectedKeys[_] = !0;
|
48839
48839
|
}
|
48840
48840
|
k.prevProp = b, k.prevResolvedValues = D, k.isActive && (h = { ...h, ...D }), r && t.blockInitialAnimation && (A = !1), A && (!M || S) && d.push(...N.map((_) => ({
|
48841
48841
|
animation: _,
|
@@ -50746,7 +50746,7 @@ function gut({ children: t, isPresent: e }) {
|
|
50746
50746
|
}, [e]), T.jsx(yut, { isPresent: e, childRef: r, sizeRef: i, children: j.cloneElement(t, { ref: r }) });
|
50747
50747
|
}
|
50748
50748
|
const e8 = ({ children: t, initial: e, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o }) => {
|
50749
|
-
const s = n_(vut), l = ud(), c =
|
50749
|
+
const s = n_(vut), l = ud(), c = qt(
|
50750
50750
|
() => ({
|
50751
50751
|
id: l,
|
50752
50752
|
initial: e,
|
@@ -50768,7 +50768,7 @@ const e8 = ({ children: t, initial: e, isPresent: n, onExitComplete: r, custom:
|
|
50768
50768
|
*/
|
50769
50769
|
a ? [Math.random()] : [n]
|
50770
50770
|
);
|
50771
|
-
return
|
50771
|
+
return qt(() => {
|
50772
50772
|
s.forEach((u, d) => s.set(d, !1));
|
50773
50773
|
}, [n]), j.useEffect(() => {
|
50774
50774
|
!n && !s.size && r && r();
|
@@ -51012,7 +51012,7 @@ const fV = ({
|
|
51012
51012
|
);
|
51013
51013
|
return r ? null : /* @__PURE__ */ T.jsx("div", { ref: l, children: /* @__PURE__ */ T.jsxs(Kg, { open: o, onOpenChange: s, children: [
|
51014
51014
|
/* @__PURE__ */ T.jsx(Jg, { asChild: !0, children: /* @__PURE__ */ T.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ T.jsxs(
|
51015
|
-
|
51015
|
+
Ut,
|
51016
51016
|
{
|
51017
51017
|
onClick: d,
|
51018
51018
|
size: "md",
|
@@ -52373,14 +52373,14 @@ function jg(t) {
|
|
52373
52373
|
o.displayName = e;
|
52374
52374
|
const s = t + "CollectionSlot", l = Ce.forwardRef(
|
52375
52375
|
(h, p) => {
|
52376
|
-
const { scope: m, children: g } = h, v = a(s, m), k =
|
52376
|
+
const { scope: m, children: g } = h, v = a(s, m), k = Zt(p, v.collectionRef);
|
52377
52377
|
return /* @__PURE__ */ T.jsx(Go, { ref: k, children: g });
|
52378
52378
|
}
|
52379
52379
|
);
|
52380
52380
|
l.displayName = s;
|
52381
52381
|
const c = t + "CollectionItemSlot", u = "data-radix-collection-item", d = Ce.forwardRef(
|
52382
52382
|
(h, p) => {
|
52383
|
-
const { scope: m, children: g, ...v } = h, k = Ce.useRef(null), b =
|
52383
|
+
const { scope: m, children: g, ...v } = h, k = Ce.useRef(null), b = Zt(p, k), w = a(c, m);
|
52384
52384
|
return Ce.useEffect(() => (w.itemMap.set(k, { ref: k, ...v }), () => void w.itemMap.delete(k))), /* @__PURE__ */ T.jsx(Go, { [u]: "", ref: b, children: g });
|
52385
52385
|
}
|
52386
52386
|
);
|
@@ -52429,7 +52429,7 @@ var Fut = j.forwardRef((t, e) => {
|
|
52429
52429
|
onEntryFocus: c,
|
52430
52430
|
preventScrollOnEntryFocus: u = !1,
|
52431
52431
|
...d
|
52432
|
-
} = t, f = j.useRef(null), h =
|
52432
|
+
} = t, f = j.useRef(null), h = Zt(e, f), p = Ng(a), [m = null, g] = so({
|
52433
52433
|
prop: o,
|
52434
52434
|
defaultProp: s,
|
52435
52435
|
onChange: l
|
@@ -52475,9 +52475,9 @@ var Fut = j.forwardRef((t, e) => {
|
|
52475
52475
|
if (S.target === S.currentTarget && N && !v) {
|
52476
52476
|
const D = new CustomEvent(n8, Put);
|
52477
52477
|
if (S.currentTarget.dispatchEvent(D), !D.defaultPrevented) {
|
52478
|
-
const P = w().filter((
|
52478
|
+
const P = w().filter((U) => U.focusable), B = P.find((U) => U.active), V = P.find((U) => U.id === m), _ = [B, V, ...P].filter(
|
52479
52479
|
Boolean
|
52480
|
-
).map((
|
52480
|
+
).map((U) => U.ref.current);
|
52481
52481
|
vV(_, u);
|
52482
52482
|
}
|
52483
52483
|
}
|
@@ -52867,7 +52867,7 @@ var r8 = "focusScope.autoFocusOnMount", i8 = "focusScope.autoFocusOnUnmount", Ij
|
|
52867
52867
|
onMountAutoFocus: i,
|
52868
52868
|
onUnmountAutoFocus: a,
|
52869
52869
|
...o
|
52870
|
-
} = t, [s, l] = j.useState(null), c = ji(i), u = ji(a), d = j.useRef(null), f =
|
52870
|
+
} = t, [s, l] = j.useState(null), c = ji(i), u = ji(a), d = j.useRef(null), f = Zt(e, (m) => l(m)), h = j.useRef({
|
52871
52871
|
paused: !1,
|
52872
52872
|
pause() {
|
52873
52873
|
this.paused = !0;
|
@@ -53537,7 +53537,7 @@ var H0t = function(t) {
|
|
53537
53537
|
JV.displayName = aM;
|
53538
53538
|
var $V = "DialogTrigger", QV = j.forwardRef(
|
53539
53539
|
(t, e) => {
|
53540
|
-
const { __scopeDialog: n, ...r } = t, i = lo($V, n), a =
|
53540
|
+
const { __scopeDialog: n, ...r } = t, i = lo($V, n), a = Zt(e, i.triggerRef);
|
53541
53541
|
return /* @__PURE__ */ T.jsx(
|
53542
53542
|
wt.button,
|
53543
53543
|
{
|
@@ -53594,7 +53594,7 @@ var U0t = j.forwardRef(
|
|
53594
53594
|
nq.displayName = qu;
|
53595
53595
|
var W0t = j.forwardRef(
|
53596
53596
|
(t, e) => {
|
53597
|
-
const n = lo(qu, t.__scopeDialog), r = j.useRef(null), i =
|
53597
|
+
const n = lo(qu, t.__scopeDialog), r = j.useRef(null), i = Zt(e, n.contentRef, r);
|
53598
53598
|
return j.useEffect(() => {
|
53599
53599
|
const a = r.current;
|
53600
53600
|
if (a) return Og(a);
|
@@ -53645,7 +53645,7 @@ var W0t = j.forwardRef(
|
|
53645
53645
|
}
|
53646
53646
|
), rq = j.forwardRef(
|
53647
53647
|
(t, e) => {
|
53648
|
-
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, ...o } = t, s = lo(qu, n), l = j.useRef(null), c =
|
53648
|
+
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, ...o } = t, s = lo(qu, n), l = j.useRef(null), c = Zt(e, l);
|
53649
53649
|
return nM(), /* @__PURE__ */ T.jsxs(T.Fragment, { children: [
|
53650
53650
|
/* @__PURE__ */ T.jsx(
|
53651
53651
|
kd,
|
@@ -53863,7 +53863,7 @@ var [Hg, JUt] = Qr("Tooltip", [
|
|
53863
53863
|
vq.displayName = yq;
|
53864
53864
|
var bq = "Tooltip", [$Ut, Fg] = Hg(bq), B7 = "TooltipTrigger", i1t = j.forwardRef(
|
53865
53865
|
(t, e) => {
|
53866
|
-
const { __scopeTooltip: n, ...r } = t, i = Fg(B7, n), a = gq(B7, n), o = fM(n), s = j.useRef(null), l =
|
53866
|
+
const { __scopeTooltip: n, ...r } = t, i = Fg(B7, n), a = gq(B7, n), o = fM(n), s = j.useRef(null), l = Zt(e, s, i.onTriggerChange), c = j.useRef(!1), u = j.useRef(!1), d = j.useCallback(() => c.current = !1, []);
|
53867
53867
|
return j.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ T.jsx(gd, { asChild: !0, ...o, children: /* @__PURE__ */ T.jsx(
|
53868
53868
|
wt.button,
|
53869
53869
|
{
|
@@ -53898,7 +53898,7 @@ var a1t = "TooltipPortal", [QUt, o1t] = Hg(a1t, {
|
|
53898
53898
|
return /* @__PURE__ */ T.jsx(Ii, { present: r || o.open, children: o.disableHoverableContent ? /* @__PURE__ */ T.jsx(wq, { side: i, ...a, ref: e }) : /* @__PURE__ */ T.jsx(l1t, { side: i, ...a, ref: e }) });
|
53899
53899
|
}
|
53900
53900
|
), l1t = j.forwardRef((t, e) => {
|
53901
|
-
const n = Fg(O1, t.__scopeTooltip), r = gq(O1, t.__scopeTooltip), i = j.useRef(null), a =
|
53901
|
+
const n = Fg(O1, t.__scopeTooltip), r = gq(O1, t.__scopeTooltip), i = j.useRef(null), a = Zt(e, i), [o, s] = j.useState(null), { trigger: l, onClose: c } = n, u = i.current, { onPointerInTransitChange: d } = r, f = j.useCallback(() => {
|
53902
53902
|
s(null), d(!1);
|
53903
53903
|
}, [d]), h = j.useCallback(
|
53904
53904
|
(p, m) => {
|
@@ -54205,7 +54205,7 @@ var _1t = j.forwardRef((t, e) => {
|
|
54205
54205
|
onFocusOutside: a,
|
54206
54206
|
onInteractOutside: o,
|
54207
54207
|
...s
|
54208
|
-
} = t, l = yM(Ay, n), c = mM(n), u = j.useRef(null), d =
|
54208
|
+
} = t, l = yM(Ay, n), c = mM(n), u = j.useRef(null), d = Zt(e, u), [f, h] = j.useState(!1);
|
54209
54209
|
return j.useEffect(() => {
|
54210
54210
|
if (f) {
|
54211
54211
|
const p = document.body;
|
@@ -54322,7 +54322,7 @@ var Dq = "PopoverAnchor", Z1t = j.forwardRef(
|
|
54322
54322
|
Z1t.displayName = Dq;
|
54323
54323
|
var Iq = "PopoverTrigger", zq = j.forwardRef(
|
54324
54324
|
(t, e) => {
|
54325
|
-
const { __scopePopover: n, ...r } = t, i = Pc(Iq, n), a = up(n), o =
|
54325
|
+
const { __scopePopover: n, ...r } = t, i = Pc(Iq, n), a = up(n), o = Zt(e, i.triggerRef), s = /* @__PURE__ */ T.jsx(
|
54326
54326
|
wt.button,
|
54327
54327
|
{
|
54328
54328
|
type: "button",
|
@@ -54355,7 +54355,7 @@ var B1 = "PopoverContent", Rq = j.forwardRef(
|
|
54355
54355
|
Rq.displayName = B1;
|
54356
54356
|
var K1t = j.forwardRef(
|
54357
54357
|
(t, e) => {
|
54358
|
-
const n = Pc(B1, t.__scopePopover), r = j.useRef(null), i =
|
54358
|
+
const n = Pc(B1, t.__scopePopover), r = j.useRef(null), i = Zt(e, r), a = j.useRef(!1);
|
54359
54359
|
return j.useEffect(() => {
|
54360
54360
|
const o = r.current;
|
54361
54361
|
if (o) return Og(o);
|
@@ -54501,7 +54501,7 @@ var X1t = Nq, edt = zq, tdt = Pq, _q = Rq, ndt = Hq, bM = "Radio", [rdt, Vq] = Q
|
|
54501
54501
|
value: s = "on",
|
54502
54502
|
onCheck: l,
|
54503
54503
|
...c
|
54504
|
-
} = t, [u, d] = j.useState(null), f =
|
54504
|
+
} = t, [u, d] = j.useState(null), f = Zt(e, (m) => d(m)), h = j.useRef(!1), p = u ? !!u.closest("form") : !0;
|
54505
54505
|
return /* @__PURE__ */ T.jsxs(idt, { scope: n, checked: i, disabled: o, children: [
|
54506
54506
|
/* @__PURE__ */ T.jsx(
|
54507
54507
|
wt.button,
|
@@ -54643,7 +54643,7 @@ var sdt = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], wM = "RadioGroup"
|
|
54643
54643
|
Kq.displayName = wM;
|
54644
54644
|
var Jq = "RadioGroupItem", $q = j.forwardRef(
|
54645
54645
|
(t, e) => {
|
54646
|
-
const { __scopeRadioGroup: n, disabled: r, ...i } = t, a = udt(Jq, n), o = a.disabled || r, s = Gq(n), l = Yq(n), c = j.useRef(null), u =
|
54646
|
+
const { __scopeRadioGroup: n, disabled: r, ...i } = t, a = udt(Jq, n), o = a.disabled || r, s = Gq(n), l = Yq(n), c = j.useRef(null), u = Zt(e, c), d = a.value === i.value, f = j.useRef(!1);
|
54647
54647
|
return j.useEffect(() => {
|
54648
54648
|
const h = (m) => {
|
54649
54649
|
sdt.includes(m.key) && (f.current = !0);
|
@@ -54695,7 +54695,7 @@ var Xq = Kq, eU = $q, fdt = Qq, hdt = [" ", "Enter", "ArrowUp", "ArrowDown"], pd
|
|
54695
54695
|
ts
|
54696
54696
|
]), xM = ts(), [aWt, Rc] = xd(_g), [oWt, ydt] = xd(_g), tU = "SelectTrigger", nU = j.forwardRef(
|
54697
54697
|
(t, e) => {
|
54698
|
-
const { __scopeSelect: n, disabled: r = !1, ...i } = t, a = xM(n), o = Rc(tU, n), s = o.disabled || r, l =
|
54698
|
+
const { __scopeSelect: n, disabled: r = !1, ...i } = t, a = xM(n), o = Rc(tU, n), s = o.disabled || r, l = Zt(e, o.onTriggerChange), c = Vg(n), [u, d, f] = CU((p) => {
|
54699
54699
|
const m = c().filter((k) => !k.disabled), g = m.find((k) => k.value === o.value), v = AU(m, p, g);
|
54700
54700
|
v !== void 0 && o.onValueChange(v.value);
|
54701
54701
|
}), h = () => {
|
@@ -54738,7 +54738,7 @@ var Xq = Kq, eU = $q, fdt = Qq, hdt = [" ", "Enter", "ArrowUp", "ArrowDown"], pd
|
|
54738
54738
|
nU.displayName = tU;
|
54739
54739
|
var rU = "SelectValue", gdt = j.forwardRef(
|
54740
54740
|
(t, e) => {
|
54741
|
-
const { __scopeSelect: n, className: r, style: i, children: a, placeholder: o = "", ...s } = t, l = Rc(rU, n), { onValueNodeHasChildrenChange: c } = l, u = a !== void 0, d =
|
54741
|
+
const { __scopeSelect: n, className: r, style: i, children: a, placeholder: o = "", ...s } = t, l = Rc(rU, n), { onValueNodeHasChildrenChange: c } = l, u = a !== void 0, d = Zt(e, l.onValueNodeChange);
|
54742
54742
|
return Br(() => {
|
54743
54743
|
c(u);
|
54744
54744
|
}, [c, u]), /* @__PURE__ */ T.jsx(
|
@@ -54800,9 +54800,9 @@ var As = 10, [sU, Oc] = xd(Uu), wdt = "SelectContentImpl", lU = j.forwardRef(
|
|
54800
54800
|
avoidCollisions: g,
|
54801
54801
|
//
|
54802
54802
|
...v
|
54803
|
-
} = t, k = Rc(Uu, n), [b, w] = j.useState(null), [x, M] = j.useState(null), A =
|
54803
|
+
} = t, k = Rc(Uu, n), [b, w] = j.useState(null), [x, M] = j.useState(null), A = Zt(e, (xe) => w(xe)), [S, N] = j.useState(null), [D, P] = j.useState(
|
54804
54804
|
null
|
54805
|
-
), B = Vg(n), [V, _] = j.useState(!1),
|
54805
|
+
), B = Vg(n), [V, _] = j.useState(!1), U = j.useRef(!1);
|
54806
54806
|
j.useEffect(() => {
|
54807
54807
|
if (b) return Og(b);
|
54808
54808
|
}, [b]), nM();
|
@@ -54813,13 +54813,13 @@ var As = 10, [sU, Oc] = xd(Uu), wdt = "SelectContentImpl", lU = j.forwardRef(
|
|
54813
54813
|
if (Me === me || (Me == null || Me.scrollIntoView({ block: "nearest" }), Me === de && x && (x.scrollTop = 0), Me === ge && x && (x.scrollTop = x.scrollHeight), Me == null || Me.focus(), document.activeElement !== me)) return;
|
54814
54814
|
},
|
54815
54815
|
[B, x]
|
54816
|
-
),
|
54816
|
+
), q = j.useCallback(
|
54817
54817
|
() => Z([S, b]),
|
54818
54818
|
[Z, S, b]
|
54819
54819
|
);
|
54820
54820
|
j.useEffect(() => {
|
54821
|
-
V &&
|
54822
|
-
}, [V,
|
54821
|
+
V && q();
|
54822
|
+
}, [V, q]);
|
54823
54823
|
const { onOpenChange: J, triggerPointerDownPosRef: G } = k;
|
54824
54824
|
j.useEffect(() => {
|
54825
54825
|
if (b) {
|
@@ -54848,13 +54848,13 @@ var As = 10, [sU, Oc] = xd(Uu), wdt = "SelectContentImpl", lU = j.forwardRef(
|
|
54848
54848
|
ge && setTimeout(() => ge.ref.current.focus());
|
54849
54849
|
}), oe = j.useCallback(
|
54850
54850
|
(xe, de, Le) => {
|
54851
|
-
const ge = !
|
54852
|
-
(k.value !== void 0 && k.value === de || ge) && (N(xe), ge && (
|
54851
|
+
const ge = !U.current && !Le;
|
54852
|
+
(k.value !== void 0 && k.value === de || ge) && (N(xe), ge && (U.current = !0));
|
54853
54853
|
},
|
54854
54854
|
[k.value]
|
54855
54855
|
), ue = j.useCallback(() => b == null ? void 0 : b.focus(), [b]), pe = j.useCallback(
|
54856
54856
|
(xe, de, Le) => {
|
54857
|
-
const ge = !
|
54857
|
+
const ge = !U.current && !Le;
|
54858
54858
|
(k.value !== void 0 && k.value === de || ge) && P(xe);
|
54859
54859
|
},
|
54860
54860
|
[k.value]
|
@@ -54881,7 +54881,7 @@ var As = 10, [sU, Oc] = xd(Uu), wdt = "SelectContentImpl", lU = j.forwardRef(
|
|
54881
54881
|
selectedItem: S,
|
54882
54882
|
onItemLeave: ue,
|
54883
54883
|
itemTextRefCallback: pe,
|
54884
|
-
focusSelectedItem:
|
54884
|
+
focusSelectedItem: q,
|
54885
54885
|
selectedItemText: D,
|
54886
54886
|
position: r,
|
54887
54887
|
isPositioned: V,
|
@@ -54950,7 +54950,7 @@ var As = 10, [sU, Oc] = xd(Uu), wdt = "SelectContentImpl", lU = j.forwardRef(
|
|
54950
54950
|
);
|
54951
54951
|
lU.displayName = wdt;
|
54952
54952
|
var kdt = "SelectItemAlignedPosition", cU = j.forwardRef((t, e) => {
|
54953
|
-
const { __scopeSelect: n, onPlaced: r, ...i } = t, a = Rc(Uu, n), o = Oc(Uu, n), [s, l] = j.useState(null), [c, u] = j.useState(null), d =
|
54953
|
+
const { __scopeSelect: n, onPlaced: r, ...i } = t, a = Rc(Uu, n), o = Oc(Uu, n), [s, l] = j.useState(null), [c, u] = j.useState(null), d = Zt(e, (A) => u(A)), f = Vg(n), h = j.useRef(!1), p = j.useRef(!0), { viewport: m, selectedItem: g, selectedItemText: v, focusSelectedItem: k } = o, b = j.useCallback(() => {
|
54954
54954
|
if (a.trigger && a.valueNode && s && c && m && g && v) {
|
54955
54955
|
const A = a.trigger.getBoundingClientRect(), S = c.getBoundingClientRect(), N = a.valueNode.getBoundingClientRect(), D = v.getBoundingClientRect();
|
54956
54956
|
if (a.dir !== "rtl") {
|
@@ -54960,14 +54960,14 @@ var kdt = "SelectItemAlignedPosition", cU = j.forwardRef((t, e) => {
|
|
54960
54960
|
const ge = S.right - D.right, me = window.innerWidth - N.right - ge, Me = window.innerWidth - A.right - me, ve = A.width + Me, ee = Math.max(ve, S.width), Y = window.innerWidth - As, $ = Zj(me, [As, Y - ee]);
|
54961
54961
|
s.style.minWidth = ve + "px", s.style.right = $ + "px";
|
54962
54962
|
}
|
54963
|
-
const P = f(), B = window.innerHeight - As * 2, V = m.scrollHeight, _ = window.getComputedStyle(c),
|
54963
|
+
const P = f(), B = window.innerHeight - As * 2, V = m.scrollHeight, _ = window.getComputedStyle(c), U = parseInt(_.borderTopWidth, 10), Z = parseInt(_.paddingTop, 10), q = parseInt(_.borderBottomWidth, 10), J = parseInt(_.paddingBottom, 10), G = U + Z + V + J + q, ae = Math.min(g.offsetHeight * 5, G), ne = window.getComputedStyle(m), oe = parseInt(ne.paddingTop, 10), ue = parseInt(ne.paddingBottom, 10), pe = A.top + A.height / 2 - As, se = B - pe, K = g.offsetHeight / 2, xe = g.offsetTop + K, de = U + Z + xe, Le = G - de;
|
54964
54964
|
if (de <= pe) {
|
54965
54965
|
const ge = g === P[P.length - 1].ref.current;
|
54966
54966
|
s.style.bottom = "0px";
|
54967
54967
|
const me = c.clientHeight - m.offsetTop - m.offsetHeight, Me = Math.max(
|
54968
54968
|
se,
|
54969
54969
|
K + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
54970
|
-
(ge ? ue : 0) + me +
|
54970
|
+
(ge ? ue : 0) + me + q
|
54971
54971
|
), ve = de + Me;
|
54972
54972
|
s.style.height = ve + "px";
|
54973
54973
|
} else {
|
@@ -54975,7 +54975,7 @@ var kdt = "SelectItemAlignedPosition", cU = j.forwardRef((t, e) => {
|
|
54975
54975
|
s.style.top = "0px";
|
54976
54976
|
const me = Math.max(
|
54977
54977
|
pe,
|
54978
|
-
|
54978
|
+
U + m.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
54979
54979
|
(ge ? oe : 0) + K
|
54980
54980
|
) + Le;
|
54981
54981
|
s.style.height = me + "px", m.scrollTop = de - pe + m.offsetTop;
|
@@ -55074,7 +55074,7 @@ var xdt = "SelectPopperPosition", F7 = j.forwardRef((t, e) => {
|
|
55074
55074
|
F7.displayName = xdt;
|
55075
55075
|
var [Mdt, MM] = xd(Uu, {}), _7 = "SelectViewport", uU = j.forwardRef(
|
55076
55076
|
(t, e) => {
|
55077
|
-
const { __scopeSelect: n, nonce: r, ...i } = t, a = Oc(_7, n), o = MM(_7, n), s =
|
55077
|
+
const { __scopeSelect: n, nonce: r, ...i } = t, a = Oc(_7, n), o = MM(_7, n), s = Zt(e, a.onViewportChange), l = j.useRef(0);
|
55078
55078
|
return /* @__PURE__ */ T.jsxs(T.Fragment, { children: [
|
55079
55079
|
/* @__PURE__ */ T.jsx(
|
55080
55080
|
"style",
|
@@ -55143,7 +55143,7 @@ var Ly = "SelectItem", [Ldt, pU] = xd(Ly), mU = j.forwardRef(
|
|
55143
55143
|
disabled: i = !1,
|
55144
55144
|
textValue: a,
|
55145
55145
|
...o
|
55146
|
-
} = t, s = Rc(Ly, n), l = Oc(Ly, n), c = s.value === r, [u, d] = j.useState(a ?? ""), [f, h] = j.useState(!1), p =
|
55146
|
+
} = t, s = Rc(Ly, n), l = Oc(Ly, n), c = s.value === r, [u, d] = j.useState(a ?? ""), [f, h] = j.useState(!1), p = Zt(
|
55147
55147
|
e,
|
55148
55148
|
(v) => {
|
55149
55149
|
var k;
|
@@ -55213,7 +55213,7 @@ var Ly = "SelectItem", [Ldt, pU] = xd(Ly), mU = j.forwardRef(
|
|
55213
55213
|
mU.displayName = Ly;
|
55214
55214
|
var Af = "SelectItemText", yU = j.forwardRef(
|
55215
55215
|
(t, e) => {
|
55216
|
-
const { __scopeSelect: n, className: r, style: i, ...a } = t, o = Rc(Af, n), s = Oc(Af, n), l = pU(Af, n), c = ydt(Af, n), [u, d] = j.useState(null), f =
|
55216
|
+
const { __scopeSelect: n, className: r, style: i, ...a } = t, o = Rc(Af, n), s = Oc(Af, n), l = pU(Af, n), c = ydt(Af, n), [u, d] = j.useState(null), f = Zt(
|
55217
55217
|
e,
|
55218
55218
|
(v) => d(v),
|
55219
55219
|
l.onItemTextChange,
|
@@ -55240,7 +55240,7 @@ var gU = "SelectItemIndicator", vU = j.forwardRef(
|
|
55240
55240
|
);
|
55241
55241
|
vU.displayName = gU;
|
55242
55242
|
var V7 = "SelectScrollUpButton", bU = j.forwardRef((t, e) => {
|
55243
|
-
const n = Oc(V7, t.__scopeSelect), r = MM(V7, t.__scopeSelect), [i, a] = j.useState(!1), o =
|
55243
|
+
const n = Oc(V7, t.__scopeSelect), r = MM(V7, t.__scopeSelect), [i, a] = j.useState(!1), o = Zt(e, r.onScrollButtonChange);
|
55244
55244
|
return Br(() => {
|
55245
55245
|
if (n.viewport && n.isPositioned) {
|
55246
55246
|
let s = function() {
|
@@ -55264,7 +55264,7 @@ var V7 = "SelectScrollUpButton", bU = j.forwardRef((t, e) => {
|
|
55264
55264
|
});
|
55265
55265
|
bU.displayName = V7;
|
55266
55266
|
var q7 = "SelectScrollDownButton", wU = j.forwardRef((t, e) => {
|
55267
|
-
const n = Oc(q7, t.__scopeSelect), r = MM(q7, t.__scopeSelect), [i, a] = j.useState(!1), o =
|
55267
|
+
const n = Oc(q7, t.__scopeSelect), r = MM(q7, t.__scopeSelect), [i, a] = j.useState(!1), o = Zt(e, r.onScrollButtonChange);
|
55268
55268
|
return Br(() => {
|
55269
55269
|
if (n.viewport && n.isPositioned) {
|
55270
55270
|
let s = function() {
|
@@ -55333,7 +55333,7 @@ function MU(t) {
|
|
55333
55333
|
}
|
55334
55334
|
var jdt = j.forwardRef(
|
55335
55335
|
(t, e) => {
|
55336
|
-
const { value: n, ...r } = t, i = j.useRef(null), a =
|
55336
|
+
const { value: n, ...r } = t, i = j.useRef(null), a = Zt(e, i), o = hx(n);
|
55337
55337
|
return j.useEffect(() => {
|
55338
55338
|
const s = i.current, l = window.HTMLSelectElement.prototype, c = Object.getOwnPropertyDescriptor(
|
55339
55339
|
l,
|
@@ -56227,18 +56227,18 @@ function yft({ activeSnapPointProp: t, setActiveSnapPointProp: e, snapPoints: n,
|
|
56227
56227
|
b(v[n.length - 1]);
|
56228
56228
|
return;
|
56229
56229
|
}
|
56230
|
-
const
|
56230
|
+
const U = v == null ? void 0 : v.reduce((q, J) => typeof q != "number" || typeof J != "number" ? q : Math.abs(J - P) < Math.abs(q - P) ? J : q), Z = rr(s) ? window.innerHeight : window.innerWidth;
|
56231
56231
|
if (N > BU && Math.abs(A) < Z * 0.4) {
|
56232
|
-
const
|
56233
|
-
if (
|
56232
|
+
const q = _ ? 1 : -1;
|
56233
|
+
if (q > 0 && p && n) {
|
56234
56234
|
b(v[n.length - 1]);
|
56235
56235
|
return;
|
56236
56236
|
}
|
56237
|
-
if (V &&
|
56238
|
-
b(v[m +
|
56237
|
+
if (V && q < 0 && D && S(), m === null) return;
|
56238
|
+
b(v[m + q]);
|
56239
56239
|
return;
|
56240
56240
|
}
|
56241
|
-
b(
|
56241
|
+
b(U);
|
56242
56242
|
}
|
56243
56243
|
function x({ draggedDistance: A }) {
|
56244
56244
|
if (k === null) return;
|
@@ -56272,7 +56272,7 @@ function yft({ activeSnapPointProp: t, setActiveSnapPointProp: e, snapPoints: n,
|
|
56272
56272
|
const gft = () => () => {
|
56273
56273
|
};
|
56274
56274
|
function vft() {
|
56275
|
-
const { direction: t, isOpen: e, shouldScaleBackground: n, setBackgroundColorOnScale: r, noBodyStyles: i } = dp(), a = Ce.useRef(null), o =
|
56275
|
+
const { direction: t, isOpen: e, shouldScaleBackground: n, setBackgroundColorOnScale: r, noBodyStyles: i } = dp(), a = Ce.useRef(null), o = qt(() => document.body.style.backgroundColor, []);
|
56276
56276
|
function s() {
|
56277
56277
|
return (window.innerWidth - Z7) / window.innerWidth;
|
56278
56278
|
}
|
@@ -56381,7 +56381,7 @@ function bft({ isOpen: t, modal: e, nested: n, hasBeenOpened: r, preventScrollRe
|
|
56381
56381
|
}
|
56382
56382
|
function wft({ open: t, onOpenChange: e, children: n, onDrag: r, onRelease: i, snapPoints: a, shouldScaleBackground: o = !1, setBackgroundColorOnScale: s = !0, closeThreshold: l = hft, scrollLockTimeout: c = pft, dismissible: u = !0, handleOnly: d = !1, fadeFromIndex: f = a && a.length - 1, activeSnapPoint: h, setActiveSnapPoint: p, fixed: m, modal: g = !0, onClose: v, nested: k, noBodyStyles: b = !1, direction: w = "bottom", defaultOpen: x = !1, disablePreventScroll: M = !0, snapToSequentialPoint: A = !1, preventScrollRestoration: S = !1, repositionInputs: N = !0, onAnimationEnd: D, container: P, autoFocus: B = !1 }) {
|
56383
56383
|
var V, _;
|
56384
|
-
const [
|
56384
|
+
const [U = !1, Z] = _U({
|
56385
56385
|
defaultProp: x,
|
56386
56386
|
prop: t,
|
56387
56387
|
onChange: (_e) => {
|
@@ -56391,7 +56391,7 @@ function wft({ open: t, onOpenChange: e, children: n, onDrag: r, onRelease: i, s
|
|
56391
56391
|
document.body.style.pointerEvents = "auto";
|
56392
56392
|
}), _e || (document.body.style.pointerEvents = "auto");
|
56393
56393
|
}
|
56394
|
-
}), [
|
56394
|
+
}), [q, J] = Ce.useState(!1), [G, ae] = Ce.useState(!1), [ne, oe] = Ce.useState(!1), ue = Ce.useRef(null), pe = Ce.useRef(null), se = Ce.useRef(null), K = Ce.useRef(null), xe = Ce.useRef(null), de = Ce.useRef(!1), Le = Ce.useRef(null), ge = Ce.useRef(0), me = Ce.useRef(!1), Me = Ce.useRef(!x), ve = Ce.useRef(0), ee = Ce.useRef(null), Y = Ce.useRef(((V = ee.current) == null ? void 0 : V.getBoundingClientRect().height) || 0), $ = Ce.useRef(((_ = ee.current) == null ? void 0 : _.getBoundingClientRect().width) || 0), ie = Ce.useRef(0), ye = Ce.useCallback((_e) => {
|
56395
56395
|
a && _e === Q.length - 1 && (pe.current = /* @__PURE__ */ new Date());
|
56396
56396
|
}, []), { activeSnapPoint: F, activeSnapPointIndex: C, setActiveSnapPoint: I, onRelease: O, snapPointsOffset: Q, onDrag: le, shouldFade: ce, getPercentageDragged: je } = yft({
|
56397
56397
|
snapPoints: a,
|
@@ -56406,13 +56406,13 @@ function wft({ open: t, onOpenChange: e, children: n, onDrag: r, onRelease: i, s
|
|
56406
56406
|
snapToSequentialPoint: A
|
56407
56407
|
});
|
56408
56408
|
aft({
|
56409
|
-
isDisabled: !
|
56409
|
+
isDisabled: !U || G || !g || ne || !q || !N || !M
|
56410
56410
|
});
|
56411
56411
|
const { restorePositionSetting: Be } = bft({
|
56412
|
-
isOpen:
|
56412
|
+
isOpen: U,
|
56413
56413
|
modal: g,
|
56414
56414
|
nested: k ?? !1,
|
56415
|
-
hasBeenOpened:
|
56415
|
+
hasBeenOpened: q,
|
56416
56416
|
preventScrollRestoration: S,
|
56417
56417
|
noBodyStyles: b
|
56418
56418
|
});
|
@@ -56544,7 +56544,7 @@ function wft({ open: t, onOpenChange: e, children: n, onDrag: r, onRelease: i, s
|
|
56544
56544
|
}), cr(ue.current, {
|
56545
56545
|
transition: `opacity ${Nn.DURATION}s cubic-bezier(${Nn.EASE.join(",")})`,
|
56546
56546
|
opacity: "1"
|
56547
|
-
}), o && nt && nt > 0 &&
|
56547
|
+
}), o && nt && nt > 0 && U && cr(_e, {
|
56548
56548
|
borderRadius: `${HU}px`,
|
56549
56549
|
overflow: "hidden",
|
56550
56550
|
...rr(w) ? {
|
@@ -56597,12 +56597,12 @@ function wft({ open: t, onOpenChange: e, children: n, onDrag: r, onRelease: i, s
|
|
56597
56597
|
}
|
56598
56598
|
i == null || i(_e, !0), Xt();
|
56599
56599
|
}
|
56600
|
-
Ce.useEffect(() => (
|
56600
|
+
Ce.useEffect(() => (U && (cr(document.documentElement, {
|
56601
56601
|
scrollBehavior: "auto"
|
56602
56602
|
}), pe.current = /* @__PURE__ */ new Date()), () => {
|
56603
56603
|
uft(document.documentElement, "scrollBehavior");
|
56604
56604
|
}), [
|
56605
|
-
|
56605
|
+
U
|
56606
56606
|
]);
|
56607
56607
|
function Pe(_e) {
|
56608
56608
|
const nt = _e ? (window.innerWidth - xm) / window.innerWidth : 1, dt = _e ? -16 : 0;
|
@@ -56643,7 +56643,7 @@ function wft({ open: t, onOpenChange: e, children: n, onDrag: r, onRelease: i, s
|
|
56643
56643
|
onOpenChange: (_e) => {
|
56644
56644
|
!u && !_e || (_e ? J(!0) : tn(!0), Z(_e));
|
56645
56645
|
},
|
56646
|
-
open:
|
56646
|
+
open: U
|
56647
56647
|
}, /* @__PURE__ */ Ce.createElement(IU.Provider, {
|
56648
56648
|
value: {
|
56649
56649
|
activeSnapPoint: F,
|
@@ -56658,7 +56658,7 @@ function wft({ open: t, onOpenChange: e, children: n, onDrag: r, onRelease: i, s
|
|
56658
56658
|
dismissible: u,
|
56659
56659
|
shouldAnimate: Me,
|
56660
56660
|
handleOnly: d,
|
56661
|
-
isOpen:
|
56661
|
+
isOpen: U,
|
56662
56662
|
isDragging: G,
|
56663
56663
|
shouldFade: ce,
|
56664
56664
|
closeDrawer: tn,
|
@@ -56699,16 +56699,16 @@ VU.displayName = "Drawer.Overlay";
|
|
56699
56699
|
const qU = /* @__PURE__ */ Ce.forwardRef(function({ onPointerDownOutside: t, style: e, onOpenAutoFocus: n, ...r }, i) {
|
56700
56700
|
const { drawerRef: a, onPress: o, onRelease: s, onDrag: l, keyboardIsOpen: c, snapPointsOffset: u, activeSnapPointIndex: d, modal: f, isOpen: h, direction: p, snapPoints: m, container: g, handleOnly: v, shouldAnimate: k, autoFocus: b } = dp(), [w, x] = Ce.useState(!1), M = RU(i, a), A = Ce.useRef(null), S = Ce.useRef(null), N = Ce.useRef(!1), D = m && m.length > 0;
|
56701
56701
|
vft();
|
56702
|
-
const P = (V, _,
|
56702
|
+
const P = (V, _, U = 0) => {
|
56703
56703
|
if (N.current) return !0;
|
56704
|
-
const Z = Math.abs(V.y),
|
56704
|
+
const Z = Math.abs(V.y), q = Math.abs(V.x), J = q > Z, G = [
|
56705
56705
|
"bottom",
|
56706
56706
|
"right"
|
56707
56707
|
].includes(_) ? 1 : -1;
|
56708
56708
|
if (_ === "left" || _ === "right") {
|
56709
|
-
if (!(V.x * G < 0) &&
|
56709
|
+
if (!(V.x * G < 0) && q >= 0 && q <= U)
|
56710
56710
|
return J;
|
56711
|
-
} else if (!(V.y * G < 0) && Z >= 0 && Z <=
|
56711
|
+
} else if (!(V.y * G < 0) && Z >= 0 && Z <= U)
|
56712
56712
|
return !J;
|
56713
56713
|
return N.current = !0, !0;
|
56714
56714
|
};
|
@@ -56757,11 +56757,11 @@ const qU = /* @__PURE__ */ Ce.forwardRef(function({ onPointerDownOutside: t, sty
|
|
56757
56757
|
},
|
56758
56758
|
onPointerMove: (V) => {
|
56759
56759
|
if (S.current = V, v || (r.onPointerMove == null || r.onPointerMove.call(r, V), !A.current)) return;
|
56760
|
-
const _ = V.pageY - A.current.y,
|
56760
|
+
const _ = V.pageY - A.current.y, U = V.pageX - A.current.x, Z = V.pointerType === "touch" ? 10 : 2;
|
56761
56761
|
P({
|
56762
|
-
x:
|
56762
|
+
x: U,
|
56763
56763
|
y: _
|
56764
|
-
}, p, Z) ? l(V) : (Math.abs(
|
56764
|
+
}, p, Z) ? l(V) : (Math.abs(U) > Z || Math.abs(_) > Z) && (A.current = null);
|
56765
56765
|
},
|
56766
56766
|
onPointerUp: (V) => {
|
56767
56767
|
r.onPointerUp == null || r.onPointerUp.call(r, V), A.current = null, N.current = !1, s(V);
|
@@ -57070,7 +57070,7 @@ const QU = ({
|
|
57070
57070
|
),
|
57071
57071
|
(o || a) && /* @__PURE__ */ T.jsxs(AM, { className: "px-6 gap-2 w-full", children: [
|
57072
57072
|
o && /* @__PURE__ */ T.jsx(qg, { asChild: !0, children: /* @__PURE__ */ T.jsx(
|
57073
|
-
|
57073
|
+
Ut,
|
57074
57074
|
{
|
57075
57075
|
disabled: o == null ? void 0 : o.isLoading,
|
57076
57076
|
isLoading: o == null ? void 0 : o.isLoading,
|
@@ -57081,7 +57081,7 @@ const QU = ({
|
|
57081
57081
|
}
|
57082
57082
|
) }),
|
57083
57083
|
a && /* @__PURE__ */ T.jsx(
|
57084
|
-
|
57084
|
+
Ut,
|
57085
57085
|
{
|
57086
57086
|
disabled: a == null ? void 0 : a.isLoading,
|
57087
57087
|
isLoading: a == null ? void 0 : a.isLoading,
|
@@ -57124,7 +57124,7 @@ const QU = ({
|
|
57124
57124
|
),
|
57125
57125
|
(o || a) && /* @__PURE__ */ T.jsxs(YU, { className: "px-4 gap-2", children: [
|
57126
57126
|
o && /* @__PURE__ */ T.jsx(UU, { asChild: !0, children: /* @__PURE__ */ T.jsx(
|
57127
|
-
|
57127
|
+
Ut,
|
57128
57128
|
{
|
57129
57129
|
disabled: o == null ? void 0 : o.isLoading,
|
57130
57130
|
isLoading: o == null ? void 0 : o.isLoading,
|
@@ -57135,7 +57135,7 @@ const QU = ({
|
|
57135
57135
|
}
|
57136
57136
|
) }),
|
57137
57137
|
a && /* @__PURE__ */ T.jsx(
|
57138
|
-
|
57138
|
+
Ut,
|
57139
57139
|
{
|
57140
57140
|
disabled: a == null ? void 0 : a.isLoading,
|
57141
57141
|
isLoading: a == null ? void 0 : a.isLoading,
|
@@ -57213,7 +57213,7 @@ var EM = "CollapsibleContent", rW = j.forwardRef(
|
|
57213
57213
|
);
|
57214
57214
|
rW.displayName = EM;
|
57215
57215
|
var Pft = j.forwardRef((t, e) => {
|
57216
|
-
const { __scopeCollapsible: n, present: r, children: i, ...a } = t, o = TM(EM, n), [s, l] = j.useState(r), c = j.useRef(null), u =
|
57216
|
+
const { __scopeCollapsible: n, present: r, children: i, ...a } = t, o = TM(EM, n), [s, l] = j.useState(r), c = j.useRef(null), u = Zt(e, c), d = j.useRef(0), f = d.current, h = j.useRef(0), p = h.current, m = o.open || s, g = j.useRef(m), v = j.useRef();
|
57217
57217
|
return j.useEffect(() => {
|
57218
57218
|
const k = requestAnimationFrame(() => g.current = !1);
|
57219
57219
|
return () => cancelAnimationFrame(k);
|
@@ -57316,7 +57316,7 @@ var [aW, Vft] = Gg(ml), [oW, qft] = Gg(
|
|
57316
57316
|
);
|
57317
57317
|
}), [Zft, Yg] = Gg(ml), sW = Ce.forwardRef(
|
57318
57318
|
(t, e) => {
|
57319
|
-
const { __scopeAccordion: n, disabled: r, dir: i, orientation: a = "vertical", ...o } = t, s = Ce.useRef(null), l =
|
57319
|
+
const { __scopeAccordion: n, disabled: r, dir: i, orientation: a = "vertical", ...o } = t, s = Ce.useRef(null), l = Zt(s, e), c = Fft(n), u = Ng(i) === "ltr", d = rt(t.onKeyDown, (f) => {
|
57320
57320
|
var h;
|
57321
57321
|
if (!Hft.includes(f.key)) return;
|
57322
57322
|
const p = f.target, m = c().filter((S) => {
|
@@ -58535,10 +58535,10 @@ function Dht(t, e) {
|
|
58535
58535
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
58536
58536
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
58537
58537
|
}
|
58538
|
-
var
|
58538
|
+
var Wt;
|
58539
58539
|
(function(t) {
|
58540
58540
|
t.hiddenOnSearch = "epr-hidden-on-search", t.searchActive = "epr-search-active", t.hidden = "epr-hidden", t.visible = "epr-visible", t.active = "epr-active", t.emoji = "epr-emoji", t.category = "epr-emoji-category", t.label = "epr-emoji-category-label", t.categoryContent = "epr-emoji-category-content", t.emojiHasVariations = "epr-emoji-has-variations", t.scrollBody = "epr-body", t.emojiList = "epr-emoji-list", t.external = "__EmojiPicker__", t.emojiPicker = "EmojiPickerReact", t.open = "epr-open", t.vertical = "epr-vertical", t.horizontal = "epr-horizontal", t.variationPicker = "epr-emoji-variation-picker", t.darkTheme = "epr-dark-theme", t.autoTheme = "epr-auto-theme";
|
58541
|
-
})(
|
58541
|
+
})(Wt || (Wt = {}));
|
58542
58542
|
function Kr() {
|
58543
58543
|
for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
|
58544
58544
|
e[n] = arguments[n];
|
@@ -58554,7 +58554,7 @@ var Tn = /* @__PURE__ */ Lht("epr", null), D4 = {
|
|
58554
58554
|
overflow: "hidden"
|
58555
58555
|
}, RM = /* @__PURE__ */ Tn.create({
|
58556
58556
|
hidden: /* @__PURE__ */ Hn({
|
58557
|
-
".":
|
58557
|
+
".": Wt.hidden
|
58558
58558
|
}, D4)
|
58559
58559
|
}), Iht = /* @__PURE__ */ vO(function() {
|
58560
58560
|
return Ee("style", {
|
@@ -58573,7 +58573,7 @@ var Tn = /* @__PURE__ */ Lht("epr", null), D4 = {
|
|
58573
58573
|
}
|
58574
58574
|
},
|
58575
58575
|
hiddenOnSearch: /* @__PURE__ */ Hn({
|
58576
|
-
".":
|
58576
|
+
".": Wt.hiddenOnSearch
|
58577
58577
|
}, D4)
|
58578
58578
|
},
|
58579
58579
|
":has(input(:placeholder-shown))": {
|
@@ -75353,7 +75353,7 @@ function D2t() {
|
|
75353
75353
|
}
|
75354
75354
|
function XW() {
|
75355
75355
|
var t = Ve({}), e = T2t();
|
75356
|
-
return
|
75356
|
+
return qt(function() {
|
75357
75357
|
var n = parseFloat("" + e);
|
75358
75358
|
return !e || Number.isNaN(n) ? t.current : Xg.reduce(function(r, i) {
|
75359
75359
|
return z2t(i, n) && (r[si(i)] = !0), r;
|
@@ -75584,7 +75584,7 @@ function q2t() {
|
|
75584
75584
|
}, [t]);
|
75585
75585
|
}
|
75586
75586
|
function i6(t) {
|
75587
|
-
if (!(!t || !Ipt(t)) && !t.closest(Kr(
|
75587
|
+
if (!(!t || !Ipt(t)) && !t.closest(Kr(Wt.variationPicker))) {
|
75588
75588
|
var e = CZ(t), n = MZ(t);
|
75589
75589
|
V2t(e, -(KM(Fc(t)) - n));
|
75590
75590
|
}
|
@@ -75838,7 +75838,7 @@ function upt() {
|
|
75838
75838
|
dpt(), fpt(), hpt(), ppt(), mpt();
|
75839
75839
|
}
|
75840
75840
|
function dpt() {
|
75841
|
-
var t = gp(), e = fZ(), n = q2t(), r = Hc(), i = m0(), a = lZ(), o = Q2t(), s = p0(), l =
|
75841
|
+
var t = gp(), e = fZ(), n = q2t(), r = Hc(), i = m0(), a = lZ(), o = Q2t(), s = p0(), l = qt(function() {
|
75842
75842
|
return function(c) {
|
75843
75843
|
var u = c.key;
|
75844
75844
|
switch (o(), u) {
|
@@ -75861,7 +75861,7 @@ function dpt() {
|
|
75861
75861
|
}, [t, r, n, l]);
|
75862
75862
|
}
|
75863
75863
|
function fpt() {
|
75864
|
-
var t = ept(), e = gp(), n = za(), r = Hc(), i = yp(), a = i[1], o = mZ(), s = WM(), l =
|
75864
|
+
var t = ept(), e = gp(), n = za(), r = Hc(), i = yp(), a = i[1], o = mZ(), s = WM(), l = qt(function() {
|
75865
75865
|
return function(c) {
|
75866
75866
|
var u = c.key;
|
75867
75867
|
switch (u) {
|
@@ -75888,7 +75888,7 @@ function fpt() {
|
|
75888
75888
|
}, [e, r, l]);
|
75889
75889
|
}
|
75890
75890
|
function hpt() {
|
75891
|
-
var t = VM(), e = m0(), n = Hc(), r = mZ(), i = yp(), a = i[0], o = i[1], s = pZ(), l = WM(), c = ZM(), u =
|
75891
|
+
var t = VM(), e = m0(), n = Hc(), r = mZ(), i = yp(), a = i[0], o = i[1], s = pZ(), l = WM(), c = ZM(), u = qt(function() {
|
75892
75892
|
return (
|
75893
75893
|
// eslint-disable-next-line complexity
|
75894
75894
|
function(d) {
|
@@ -75940,7 +75940,7 @@ function hpt() {
|
|
75940
75940
|
}, [t, n, a, u]);
|
75941
75941
|
}
|
75942
75942
|
function ppt() {
|
75943
|
-
var t = m0(), e = qM(), n = za(), r = ZM(), i =
|
75943
|
+
var t = m0(), e = qM(), n = za(), r = ZM(), i = qt(function() {
|
75944
75944
|
return function(a) {
|
75945
75945
|
var o = a.key;
|
75946
75946
|
switch (o) {
|
@@ -75971,7 +75971,7 @@ function ppt() {
|
|
75971
75971
|
}, [e, n, i]);
|
75972
75972
|
}
|
75973
75973
|
function mpt() {
|
75974
|
-
var t = za(), e = ypt(), n = hZ(), r = lZ(), i = p0(), a = ZM(), o =
|
75974
|
+
var t = za(), e = ypt(), n = hZ(), r = lZ(), i = p0(), a = ZM(), o = qt(function() {
|
75975
75975
|
return (
|
75976
75976
|
// eslint-disable-next-line complexity
|
75977
75977
|
function(s) {
|
@@ -76088,7 +76088,7 @@ function Mpt(t) {
|
|
76088
76088
|
upt(), wpt();
|
76089
76089
|
var u = c || {}, d = u.width, f = u.height, h = PW(u, kpt);
|
76090
76090
|
return Ee("aside", {
|
76091
|
-
className: Jt(ef.main, ef.baseVariables, a === Oh.DARK && ef.darkTheme, a === Oh.AUTO && ef.autoThemeDark, (e = {}, e[
|
76091
|
+
className: Jt(ef.main, ef.baseVariables, a === Oh.DARK && ef.darkTheme, a === Oh.AUTO && ef.autoThemeDark, (e = {}, e[Wt.searchActive] = o, e), i && ef.reactionsMenu, l),
|
76092
76092
|
ref: s,
|
76093
76093
|
style: Hn({}, h, !i && {
|
76094
76094
|
height: f,
|
@@ -76114,7 +76114,7 @@ var sN = {
|
|
76114
76114
|
"--epr-skin-tone-picker-menu-color": "var(--epr-dark-skin-tone-picker-menu-color)"
|
76115
76115
|
}, ef = /* @__PURE__ */ Tn.create({
|
76116
76116
|
main: {
|
76117
|
-
".": ["epr-main",
|
76117
|
+
".": ["epr-main", Wt.emojiPicker],
|
76118
76118
|
position: "relative",
|
76119
76119
|
display: "flex",
|
76120
76120
|
flexDirection: "column",
|
@@ -76210,13 +76210,13 @@ var sN = {
|
|
76210
76210
|
}
|
76211
76211
|
},
|
76212
76212
|
autoThemeDark: {
|
76213
|
-
".":
|
76213
|
+
".": Wt.autoTheme,
|
76214
76214
|
"@media (prefers-color-scheme: dark)": {
|
76215
76215
|
"--": sN
|
76216
76216
|
}
|
76217
76217
|
},
|
76218
76218
|
darkTheme: {
|
76219
|
-
".":
|
76219
|
+
".": Wt.darkTheme,
|
76220
76220
|
"--": sN
|
76221
76221
|
},
|
76222
76222
|
reactionsMenu: {
|
@@ -76291,14 +76291,14 @@ function Ept(t) {
|
|
76291
76291
|
return !!t.nextElementSibling;
|
76292
76292
|
}
|
76293
76293
|
function jpt(t) {
|
76294
|
-
for (var e = Array.from(t.querySelectorAll(Kr(
|
76294
|
+
for (var e = Array.from(t.querySelectorAll(Kr(Wt.label))), n = 0, r = e; n < r.length; n++) {
|
76295
76295
|
var i = r[n], a = i.getBoundingClientRect().height;
|
76296
76296
|
if (a > 0)
|
76297
76297
|
return a;
|
76298
76298
|
}
|
76299
76299
|
return yZ;
|
76300
76300
|
}
|
76301
|
-
var Dy = "button" + /* @__PURE__ */ Kr(
|
76301
|
+
var Dy = "button" + /* @__PURE__ */ Kr(Wt.emoji), Npt = /* @__PURE__ */ [Dy, Kr(Wt.visible), ":not(" + Kr(Wt.hidden) + ")"].join("");
|
76302
76302
|
function Za(t) {
|
76303
76303
|
var e;
|
76304
76304
|
return (e = t == null ? void 0 : t.closest(Dy)) != null ? e : null;
|
@@ -76328,14 +76328,14 @@ function KM(t) {
|
|
76328
76328
|
var e, n;
|
76329
76329
|
if (!t)
|
76330
76330
|
return 0;
|
76331
|
-
var r = t.querySelector(Kr(
|
76331
|
+
var r = t.querySelector(Kr(Wt.categoryContent));
|
76332
76332
|
return ((e = t == null ? void 0 : t.clientHeight) != null ? e : 0) - ((n = r == null ? void 0 : r.clientHeight) != null ? n : 0);
|
76333
76333
|
}
|
76334
76334
|
function Ipt(t) {
|
76335
76335
|
return t ? MZ(t) < KM(Fc(t)) : !1;
|
76336
76336
|
}
|
76337
76337
|
function xZ(t) {
|
76338
|
-
return t ? t.matches(Kr(
|
76338
|
+
return t ? t.matches(Kr(Wt.scrollBody)) ? t : t.querySelector(Kr(Wt.scrollBody)) : null;
|
76339
76339
|
}
|
76340
76340
|
function MZ(t) {
|
76341
76341
|
var e, n;
|
@@ -76343,7 +76343,7 @@ function MZ(t) {
|
|
76343
76343
|
}
|
76344
76344
|
function CZ(t) {
|
76345
76345
|
var e;
|
76346
|
-
return t && (e = t.closest(Kr(
|
76346
|
+
return t && (e = t.closest(Kr(Wt.scrollBody))) != null ? e : null;
|
76347
76347
|
}
|
76348
76348
|
function zpt(t) {
|
76349
76349
|
var e = Za(t), n = Fc(e);
|
@@ -76383,10 +76383,10 @@ function Rpt(t) {
|
|
76383
76383
|
return (e = t == null ? void 0 : t.dataset) != null ? e : {};
|
76384
76384
|
}
|
76385
76385
|
function $M(t) {
|
76386
|
-
return t.classList.contains(
|
76386
|
+
return t.classList.contains(Wt.visible);
|
76387
76387
|
}
|
76388
76388
|
function LZ(t) {
|
76389
|
-
return t ? t.classList.contains(
|
76389
|
+
return t ? t.classList.contains(Wt.hidden) : !0;
|
76390
76390
|
}
|
76391
76391
|
function _1(t) {
|
76392
76392
|
return t ? Array.from(t.querySelectorAll(Npt)) : [];
|
@@ -76425,10 +76425,10 @@ function s6(t) {
|
|
76425
76425
|
return n ? LZ(n) ? s6(n) : n : null;
|
76426
76426
|
}
|
76427
76427
|
function Fc(t) {
|
76428
|
-
return t ? t.closest(Kr(
|
76428
|
+
return t ? t.closest(Kr(Wt.category)) : null;
|
76429
76429
|
}
|
76430
76430
|
function jZ(t) {
|
76431
|
-
return t ? t.closest(Kr(
|
76431
|
+
return t ? t.closest(Kr(Wt.categoryContent)) : null;
|
76432
76432
|
}
|
76433
76433
|
function NZ(t) {
|
76434
76434
|
return t.split("-").map(function(e) {
|
@@ -76564,7 +76564,7 @@ var Fpt = /* @__PURE__ */ Tn.create({
|
|
76564
76564
|
function _pt(t) {
|
76565
76565
|
var e, n = t.emojiNames, r = t.unified, i = t.hidden, a = t.hiddenOnSearch, o = t.showVariations, s = o === void 0 ? !0 : o, l = t.hasVariations, c = t.children, u = t.className, d = t.noBackground, f = d === void 0 ? !1 : d;
|
76566
76566
|
return Ee(vp, {
|
76567
|
-
className: Jt(v8.emoji, i && RM.hidden, a && f0.hiddenOnSearch, (e = {}, e[
|
76567
|
+
className: Jt(v8.emoji, i && RM.hidden, a && f0.hiddenOnSearch, (e = {}, e[Wt.visible] = !i && !a, e), !!(l && s) && v8.hasVariations, f && v8.noBackground, u),
|
76568
76568
|
"data-unified": r,
|
76569
76569
|
"aria-label": Vpt(n),
|
76570
76570
|
"data-full-name": n
|
@@ -76576,7 +76576,7 @@ function Vpt(t) {
|
|
76576
76576
|
}
|
76577
76577
|
var v8 = /* @__PURE__ */ Tn.create({
|
76578
76578
|
emoji: {
|
76579
|
-
".":
|
76579
|
+
".": Wt.emoji,
|
76580
76580
|
position: "relative",
|
76581
76581
|
width: "var(--epr-emoji-fullsize)",
|
76582
76582
|
height: "var(--epr-emoji-fullsize)",
|
@@ -76608,7 +76608,7 @@ var v8 = /* @__PURE__ */ Tn.create({
|
|
76608
76608
|
}
|
76609
76609
|
},
|
76610
76610
|
hasVariations: {
|
76611
|
-
".":
|
76611
|
+
".": Wt.emojiHasVariations,
|
76612
76612
|
":after": {
|
76613
76613
|
content: "",
|
76614
76614
|
display: "block",
|
@@ -76629,7 +76629,7 @@ var v8 = /* @__PURE__ */ Tn.create({
|
|
76629
76629
|
}
|
76630
76630
|
}), Iy = /* @__PURE__ */ Tn.create({
|
76631
76631
|
external: {
|
76632
|
-
".":
|
76632
|
+
".": Wt.external,
|
76633
76633
|
fontSize: "0"
|
76634
76634
|
},
|
76635
76635
|
common: {
|
@@ -76881,13 +76881,13 @@ function RZ(t) {
|
|
76881
76881
|
}
|
76882
76882
|
var b8 = /* @__PURE__ */ Tn.create({
|
76883
76883
|
category: {
|
76884
|
-
".":
|
76884
|
+
".": Wt.category,
|
76885
76885
|
":not(:has(.epr-visible))": {
|
76886
76886
|
display: "none"
|
76887
76887
|
}
|
76888
76888
|
},
|
76889
76889
|
categoryContent: {
|
76890
|
-
".":
|
76890
|
+
".": Wt.categoryContent,
|
76891
76891
|
display: "grid",
|
76892
76892
|
gridGap: "0",
|
76893
76893
|
gridTemplateColumns: "repeat(auto-fill, var(--epr-emoji-fullsize))",
|
@@ -76896,7 +76896,7 @@ var b8 = /* @__PURE__ */ Tn.create({
|
|
76896
76896
|
position: "relative"
|
76897
76897
|
},
|
76898
76898
|
label: {
|
76899
|
-
".":
|
76899
|
+
".": Wt.label,
|
76900
76900
|
alignItems: "center",
|
76901
76901
|
// @ts-ignore - backdropFilter is not recognized.
|
76902
76902
|
backdropFilter: "blur(3px)",
|
@@ -76922,7 +76922,7 @@ function Qpt() {
|
|
76922
76922
|
}, []), e || w8;
|
76923
76923
|
}
|
76924
76924
|
function Xpt(t) {
|
76925
|
-
var e = t.categoryConfig, n = tZ(), r = n[0], i = Qpt(), a = M2t(), o = Cd(), s =
|
76925
|
+
var e = t.categoryConfig, n = tZ(), r = n[0], i = Qpt(), a = M2t(), o = Cd(), s = qt(
|
76926
76926
|
function() {
|
76927
76927
|
var c;
|
76928
76928
|
return (c = IZ(a)) != null ? c : [];
|
@@ -76990,7 +76990,7 @@ function tmt(t) {
|
|
76990
76990
|
}
|
76991
76991
|
var nmt = /* @__PURE__ */ Tn.create({
|
76992
76992
|
emojiList: {
|
76993
|
-
".":
|
76993
|
+
".": Wt.emojiList,
|
76994
76994
|
listStyle: "none",
|
76995
76995
|
margin: "0",
|
76996
76996
|
padding: "0"
|
@@ -77000,7 +77000,7 @@ var nmt = /* @__PURE__ */ Tn.create({
|
|
77000
77000
|
t[t.Up = 0] = "Up", t[t.Down = 1] = "Down";
|
77001
77001
|
})(u1 || (u1 = {}));
|
77002
77002
|
function imt() {
|
77003
|
-
var t = r6(), e = _2t(), n = Ad(), r = n[0], i = h0(), a = omt(e), o = a.getTop, s = a.getMenuDirection, l = oZ(), c = amt(e), u = Cd(), d = Za(t.current), f = !!(r && d && Md(r) && d.classList.contains(
|
77003
|
+
var t = r6(), e = _2t(), n = Ad(), r = n[0], i = h0(), a = omt(e), o = a.getTop, s = a.getMenuDirection, l = oZ(), c = amt(e), u = Cd(), d = Za(t.current), f = !!(r && d && Md(r) && d.classList.contains(Wt.emojiHasVariations));
|
77004
77004
|
Ie(function() {
|
77005
77005
|
f && a6(e.current);
|
77006
77006
|
}, [e, f, t]);
|
@@ -77066,7 +77066,7 @@ function omt(t) {
|
|
77066
77066
|
}
|
77067
77067
|
var Am = /* @__PURE__ */ Tn.create(/* @__PURE__ */ Hn({
|
77068
77068
|
variationPicker: {
|
77069
|
-
".":
|
77069
|
+
".": Wt.variationPicker,
|
77070
77070
|
position: "absolute",
|
77071
77071
|
right: "15px",
|
77072
77072
|
left: "15px",
|
@@ -77129,7 +77129,7 @@ function smt() {
|
|
77129
77129
|
}
|
77130
77130
|
var lmt = /* @__PURE__ */ Tn.create({
|
77131
77131
|
body: {
|
77132
|
-
".":
|
77132
|
+
".": Wt.scrollBody,
|
77133
77133
|
flex: "1",
|
77134
77134
|
overflowY: "scroll",
|
77135
77135
|
overflowX: "hidden",
|
@@ -77482,7 +77482,7 @@ function bmt(t) {
|
|
77482
77482
|
}, {
|
77483
77483
|
threshold: [0, 1]
|
77484
77484
|
});
|
77485
|
-
r == null || r.querySelectorAll(Kr(
|
77485
|
+
r == null || r.querySelectorAll(Kr(Wt.category)).forEach(function(a) {
|
77486
77486
|
i.observe(a);
|
77487
77487
|
});
|
77488
77488
|
}, [e, t]);
|
@@ -77509,7 +77509,7 @@ function Mmt(t) {
|
|
77509
77509
|
var e, n = t.isActiveCategory, r = t.category, i = t.allowNavigation, a = t.categoryConfig, o = t.onClick;
|
77510
77510
|
return Ee(vp, {
|
77511
77511
|
tabIndex: i ? 0 : -1,
|
77512
|
-
className: Jt(Amt.catBtn, f0.categoryBtn, "epr-icn-" + r, (e = {}, e[
|
77512
|
+
className: Jt(Amt.catBtn, f0.categoryBtn, "epr-icn-" + r, (e = {}, e[Wt.active] = n, e)),
|
77513
77513
|
onClick: o,
|
77514
77514
|
"aria-label": HW(a),
|
77515
77515
|
"aria-selected": n,
|
@@ -77690,7 +77690,7 @@ var Emt = {
|
|
77690
77690
|
}
|
77691
77691
|
}, /* @__PURE__ */ pc("icnClearnSearch", {
|
77692
77692
|
backgroundPositionY: "-40px"
|
77693
|
-
}), /* @__PURE__ */ pc("btnClearSearch", Emt))), x8 = /* @__PURE__ */ Kr(
|
77693
|
+
}), /* @__PURE__ */ pc("btnClearSearch", Emt))), x8 = /* @__PURE__ */ Kr(Wt.emojiPicker) + " " + /* @__PURE__ */ Kr(Wt.emojiList), FZ = /* @__PURE__ */ ["button", Kr(Wt.emoji)].join(""), jmt = /* @__PURE__ */ Kr(Wt.category);
|
77694
77694
|
function Nmt(t) {
|
77695
77695
|
var e = t.value;
|
77696
77696
|
if (!e)
|
@@ -77940,7 +77940,7 @@ Yt(
|
|
77940
77940
|
)
|
77941
77941
|
] }),
|
77942
77942
|
/* @__PURE__ */ T.jsx(
|
77943
|
-
|
77943
|
+
Ut,
|
77944
77944
|
{
|
77945
77945
|
variant: "ghost",
|
77946
77946
|
className: "min-w-fit bg-transparent hidden lg:block color-text-default",
|
@@ -77962,7 +77962,7 @@ Yt(
|
|
77962
77962
|
}
|
77963
77963
|
) }) : /* @__PURE__ */ T.jsxs("div", { className: "w-full h-full mt-4 space-y-3", children: [
|
77964
77964
|
/* @__PURE__ */ T.jsx(
|
77965
|
-
|
77965
|
+
Ut,
|
77966
77966
|
{
|
77967
77967
|
size: "lg",
|
77968
77968
|
variant: "secondary",
|
@@ -78030,7 +78030,7 @@ const Wmt = ({
|
|
78030
78030
|
),
|
78031
78031
|
/* @__PURE__ */ T.jsxs(AM, { className: be("px-5 pb-5 gap-2 w-full", d), children: [
|
78032
78032
|
o && /* @__PURE__ */ T.jsx(qg, { asChild: !0, children: /* @__PURE__ */ T.jsx(
|
78033
|
-
|
78033
|
+
Ut,
|
78034
78034
|
{
|
78035
78035
|
disabled: o == null ? void 0 : o.isLoading,
|
78036
78036
|
isLoading: o == null ? void 0 : o.isLoading,
|
@@ -78041,7 +78041,7 @@ const Wmt = ({
|
|
78041
78041
|
}
|
78042
78042
|
) }),
|
78043
78043
|
a && /* @__PURE__ */ T.jsx(
|
78044
|
-
|
78044
|
+
Ut,
|
78045
78045
|
{
|
78046
78046
|
disabled: a == null ? void 0 : a.isLoading,
|
78047
78047
|
isLoading: a == null ? void 0 : a.isLoading,
|
@@ -78103,7 +78103,7 @@ function n4t(t, e = []) {
|
|
78103
78103
|
o
|
78104
78104
|
];
|
78105
78105
|
function c(d) {
|
78106
|
-
const { scope: f, children: h, ...p } = d, m = (f == null ? void 0 : f[t][l]) || s, g =
|
78106
|
+
const { scope: f, children: h, ...p } = d, m = (f == null ? void 0 : f[t][l]) || s, g = qt(
|
78107
78107
|
() => p,
|
78108
78108
|
Object.values(p)
|
78109
78109
|
);
|
@@ -78126,7 +78126,7 @@ function n4t(t, e = []) {
|
|
78126
78126
|
const a = n.map((o) => /* @__PURE__ */ wn(o));
|
78127
78127
|
return function(o) {
|
78128
78128
|
const s = (o == null ? void 0 : o[t]) || a;
|
78129
|
-
return
|
78129
|
+
return qt(
|
78130
78130
|
() => ({
|
78131
78131
|
[`__scope${t}`]: {
|
78132
78132
|
...o,
|
@@ -78163,7 +78163,7 @@ function r4t(...t) {
|
|
78163
78163
|
...c
|
78164
78164
|
};
|
78165
78165
|
}, {});
|
78166
|
-
return
|
78166
|
+
return qt(
|
78167
78167
|
() => ({
|
78168
78168
|
[`__scope${e.scopeName}`]: a
|
78169
78169
|
}),
|
@@ -78193,7 +78193,7 @@ function Wu(t) {
|
|
78193
78193
|
const e = Ve(t);
|
78194
78194
|
return Ie(() => {
|
78195
78195
|
e.current = t;
|
78196
|
-
}),
|
78196
|
+
}), qt(
|
78197
78197
|
() => (...n) => {
|
78198
78198
|
var r;
|
78199
78199
|
return (r = e.current) === null || r === void 0 ? void 0 : r.call(e, ...n);
|
@@ -79113,7 +79113,7 @@ var nf = '[cmdk-group=""]', j8 = '[cmdk-group-items=""]', nyt = '[cmdk-group-hea
|
|
79113
79113
|
}), ue.push([se, xe]);
|
79114
79114
|
});
|
79115
79115
|
let pe = x.current;
|
79116
|
-
|
79116
|
+
U().sort((se, K) => {
|
79117
79117
|
var xe, de;
|
79118
79118
|
let Le = se.getAttribute("id"), ge = K.getAttribute("id");
|
79119
79119
|
return ((xe = oe.get(ge)) != null ? xe : 0) - ((de = oe.get(Le)) != null ? de : 0);
|
@@ -79126,7 +79126,7 @@ var nf = '[cmdk-group=""]', j8 = '[cmdk-group-items=""]', nyt = '[cmdk-group-hea
|
|
79126
79126
|
});
|
79127
79127
|
}
|
79128
79128
|
function P() {
|
79129
|
-
let oe =
|
79129
|
+
let oe = U().find((pe) => pe.getAttribute("aria-disabled") !== "true"), ue = oe == null ? void 0 : oe.getAttribute(lu);
|
79130
79130
|
A.setState("value", ue || void 0);
|
79131
79131
|
}
|
79132
79132
|
function B() {
|
@@ -79156,28 +79156,28 @@ var nf = '[cmdk-group=""]', j8 = '[cmdk-group-items=""]', nyt = '[cmdk-group-hea
|
|
79156
79156
|
var oe;
|
79157
79157
|
return (oe = x.current) == null ? void 0 : oe.querySelector(`${tC}[aria-selected="true"]`);
|
79158
79158
|
}
|
79159
|
-
function
|
79159
|
+
function U() {
|
79160
79160
|
var oe;
|
79161
79161
|
return Array.from((oe = x.current) == null ? void 0 : oe.querySelectorAll(jN));
|
79162
79162
|
}
|
79163
79163
|
function Z(oe) {
|
79164
|
-
let ue =
|
79164
|
+
let ue = U()[oe];
|
79165
79165
|
ue && A.setState("value", ue.getAttribute(lu));
|
79166
79166
|
}
|
79167
|
-
function
|
79167
|
+
function q(oe) {
|
79168
79168
|
var ue;
|
79169
|
-
let pe = _(), se =
|
79169
|
+
let pe = _(), se = U(), K = se.findIndex((de) => de === pe), xe = se[K + oe];
|
79170
79170
|
(ue = s.current) != null && ue.loop && (xe = K + oe < 0 ? se[se.length - 1] : K + oe === se.length ? se[0] : se[K + oe]), xe && A.setState("value", xe.getAttribute(lu));
|
79171
79171
|
}
|
79172
79172
|
function J(oe) {
|
79173
79173
|
let ue = _(), pe = ue == null ? void 0 : ue.closest(nf), se;
|
79174
79174
|
for (; pe && !se; ) pe = oe > 0 ? fyt(pe, nf) : hyt(pe, nf), se = pe == null ? void 0 : pe.querySelector(jN);
|
79175
|
-
se ? A.setState("value", se.getAttribute(lu)) :
|
79175
|
+
se ? A.setState("value", se.getAttribute(lu)) : q(oe);
|
79176
79176
|
}
|
79177
|
-
let G = () => Z(
|
79178
|
-
oe.preventDefault(), oe.metaKey ? G() : oe.altKey ? J(1) :
|
79177
|
+
let G = () => Z(U().length - 1), ae = (oe) => {
|
79178
|
+
oe.preventDefault(), oe.metaKey ? G() : oe.altKey ? J(1) : q(1);
|
79179
79179
|
}, ne = (oe) => {
|
79180
|
-
oe.preventDefault(), oe.metaKey ? Z(0) : oe.altKey ? J(-1) :
|
79180
|
+
oe.preventDefault(), oe.metaKey ? Z(0) : oe.altKey ? J(-1) : q(-1);
|
79181
79181
|
};
|
79182
79182
|
return j.createElement(Pa.div, { ref: e, tabIndex: -1, ...v, "cmdk-root": "", onKeyDown: (oe) => {
|
79183
79183
|
var ue;
|
@@ -79476,7 +79476,7 @@ var byt = "ToastProvider", [pG, wyt, kyt] = jg("Toast"), [mG, cWt] = Qr("Toast",
|
|
79476
79476
|
hotkey: r = xyt,
|
79477
79477
|
label: i = "Notifications ({hotkey})",
|
79478
79478
|
...a
|
79479
|
-
} = t, o = h6(yG, n), s = wyt(n), l = j.useRef(null), c = j.useRef(null), u = j.useRef(null), d = j.useRef(null), f =
|
79479
|
+
} = t, o = h6(yG, n), s = wyt(n), l = j.useRef(null), c = j.useRef(null), u = j.useRef(null), d = j.useRef(null), f = Zt(e, d, o.onViewportChange), h = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), p = o.toastCount > 0;
|
79480
79480
|
j.useEffect(() => {
|
79481
79481
|
const g = (v) => {
|
79482
79482
|
var k;
|
@@ -79649,7 +79649,7 @@ var [Lyt, Tyt] = mG(p6, {
|
|
79649
79649
|
onSwipeCancel: f,
|
79650
79650
|
onSwipeEnd: h,
|
79651
79651
|
...p
|
79652
|
-
} = t, m = h6(p6, n), [g, v] = j.useState(null), k =
|
79652
|
+
} = t, m = h6(p6, n), [g, v] = j.useState(null), k = Zt(e, (_) => v(_)), b = j.useRef(null), w = j.useRef(null), x = i || m.duration, M = j.useRef(0), A = j.useRef(x), S = j.useRef(0), { onToastAdd: N, onToastRemove: D } = m, P = ji(() => {
|
79653
79653
|
var _;
|
79654
79654
|
g != null && g.contains(document.activeElement) && ((_ = m.viewport) == null || _.focus()), o();
|
79655
79655
|
}), B = j.useCallback(
|
@@ -79661,14 +79661,14 @@ var [Lyt, Tyt] = mG(p6, {
|
|
79661
79661
|
j.useEffect(() => {
|
79662
79662
|
const _ = m.viewport;
|
79663
79663
|
if (_) {
|
79664
|
-
const
|
79664
|
+
const U = () => {
|
79665
79665
|
B(A.current), c == null || c();
|
79666
79666
|
}, Z = () => {
|
79667
|
-
const
|
79668
|
-
A.current = A.current -
|
79667
|
+
const q = (/* @__PURE__ */ new Date()).getTime() - M.current;
|
79668
|
+
A.current = A.current - q, window.clearTimeout(S.current), l == null || l();
|
79669
79669
|
};
|
79670
|
-
return _.addEventListener(l9, Z), _.addEventListener(c9,
|
79671
|
-
_.removeEventListener(l9, Z), _.removeEventListener(c9,
|
79670
|
+
return _.addEventListener(l9, Z), _.addEventListener(c9, U), () => {
|
79671
|
+
_.removeEventListener(l9, Z), _.removeEventListener(c9, U);
|
79672
79672
|
};
|
79673
79673
|
}
|
79674
79674
|
}, [m.viewport, x, l, c, B]), j.useEffect(() => {
|
@@ -79714,18 +79714,18 @@ var [Lyt, Tyt] = mG(p6, {
|
|
79714
79714
|
}),
|
79715
79715
|
onPointerMove: rt(t.onPointerMove, (_) => {
|
79716
79716
|
if (!b.current) return;
|
79717
|
-
const
|
79718
|
-
|
79717
|
+
const U = _.clientX - b.current.x, Z = _.clientY - b.current.y, q = !!w.current, J = ["left", "right"].includes(m.swipeDirection), G = ["left", "up"].includes(m.swipeDirection) ? Math.min : Math.max, ae = J ? G(0, U) : 0, ne = J ? 0 : G(0, Z), oe = _.pointerType === "touch" ? 10 : 2, ue = { x: ae, y: ne }, pe = { originalEvent: _, delta: ue };
|
79718
|
+
q ? (w.current = ue, jm(Cyt, d, pe, {
|
79719
79719
|
discrete: !1
|
79720
79720
|
})) : DN(ue, m.swipeDirection, oe) ? (w.current = ue, jm(Myt, u, pe, {
|
79721
79721
|
discrete: !1
|
79722
|
-
}), _.target.setPointerCapture(_.pointerId)) : (Math.abs(
|
79722
|
+
}), _.target.setPointerCapture(_.pointerId)) : (Math.abs(U) > oe || Math.abs(Z) > oe) && (b.current = null);
|
79723
79723
|
}),
|
79724
79724
|
onPointerUp: rt(t.onPointerUp, (_) => {
|
79725
|
-
const
|
79726
|
-
if (Z.hasPointerCapture(_.pointerId) && Z.releasePointerCapture(_.pointerId), w.current = null, b.current = null,
|
79727
|
-
const
|
79728
|
-
DN(
|
79725
|
+
const U = w.current, Z = _.target;
|
79726
|
+
if (Z.hasPointerCapture(_.pointerId) && Z.releasePointerCapture(_.pointerId), w.current = null, b.current = null, U) {
|
79727
|
+
const q = _.currentTarget, J = { originalEvent: _, delta: U };
|
79728
|
+
DN(U, m.swipeDirection, m.swipeThreshold) ? jm(Syt, h, J, {
|
79729
79729
|
discrete: !0
|
79730
79730
|
}) : jm(
|
79731
79731
|
Ayt,
|
@@ -79734,7 +79734,7 @@ var [Lyt, Tyt] = mG(p6, {
|
|
79734
79734
|
{
|
79735
79735
|
discrete: !0
|
79736
79736
|
}
|
79737
|
-
),
|
79737
|
+
), q.addEventListener("click", (G) => G.preventDefault(), {
|
79738
79738
|
once: !0
|
79739
79739
|
});
|
79740
79740
|
}
|
@@ -80686,7 +80686,7 @@ function k3t(t, e, n, r, i, a, o, s, l, c, u, d, f, h, p, m, g, v, k) {
|
|
80686
80686
|
mouse: 500,
|
80687
80687
|
touch: 600
|
80688
80688
|
}, B = p ? 43 : 25;
|
80689
|
-
let V = !1, _ = 0,
|
80689
|
+
let V = !1, _ = 0, U = 0, Z = !1, q = !1, J = !1, G = !1;
|
80690
80690
|
function ae(Me) {
|
80691
80691
|
if (!k) return;
|
80692
80692
|
function ve(Y) {
|
@@ -80717,19 +80717,19 @@ function k3t(t, e, n, r, i, a, o, s, l, c, u, d, f, h, p, m, g, v, k) {
|
|
80717
80717
|
}
|
80718
80718
|
function K(Me) {
|
80719
80719
|
const ve = p9(Me, r);
|
80720
|
-
G = ve, J = p && ve && !Me.buttons && V, V = Jf(i.get(), o.get()) >= 2, !(ve && Me.button !== 0) && (ue(Me.target) || (Z = !0, a.pointerDown(Me), c.useFriction(0).useDuration(0), i.set(o), oe(), _ = a.readPoint(Me),
|
80720
|
+
G = ve, J = p && ve && !Me.buttons && V, V = Jf(i.get(), o.get()) >= 2, !(ve && Me.button !== 0) && (ue(Me.target) || (Z = !0, a.pointerDown(Me), c.useFriction(0).useDuration(0), i.set(o), oe(), _ = a.readPoint(Me), U = a.readPoint(Me, b), f.emit("pointerDown")));
|
80721
80721
|
}
|
80722
80722
|
function xe(Me) {
|
80723
80723
|
if (!p9(Me, r) && Me.touches.length >= 2) return de(Me);
|
80724
|
-
const ee = a.readPoint(Me), Y = a.readPoint(Me, b), $ = Jf(ee, _), ie = Jf(Y,
|
80725
|
-
if (!
|
80724
|
+
const ee = a.readPoint(Me), Y = a.readPoint(Me, b), $ = Jf(ee, _), ie = Jf(Y, U);
|
80725
|
+
if (!q && !G && (!Me.cancelable || (q = $ > ie, !q)))
|
80726
80726
|
return de(Me);
|
80727
80727
|
const ye = a.pointerMove(Me);
|
80728
80728
|
$ > m && (J = !0), c.useFriction(0.3).useDuration(0.75), s.start(), i.add(w(ye)), Me.preventDefault();
|
80729
80729
|
}
|
80730
80730
|
function de(Me) {
|
80731
80731
|
const ee = u.byDistance(0, !1).index !== d.get(), Y = a.pointerUp(Me) * pe(), $ = se(w(Y), ee), ie = y3t(Y, $), ye = B - 10 * ie, F = v + ie / 50;
|
80732
|
-
|
80732
|
+
q = !1, Z = !1, S.clear(), c.useDuration(ye).useFriction(F), l.distance($, !p), G = !1, f.emit("pointerUp");
|
80733
80733
|
}
|
80734
80734
|
function Le(Me) {
|
80735
80735
|
J && (Me.stopPropagation(), Me.preventDefault(), J = !1);
|
@@ -81181,13 +81181,13 @@ function O3t(t, e, n, r, i, a, o, s, l) {
|
|
81181
81181
|
function g(A, S, N) {
|
81182
81182
|
const D = m(S);
|
81183
81183
|
return A.map((P) => {
|
81184
|
-
const B = N ? 0 : -n, V = N ? n : 0, _ = N ? "end" : "start",
|
81184
|
+
const B = N ? 0 : -n, V = N ? n : 0, _ = N ? "end" : "start", U = D[P][_];
|
81185
81185
|
return {
|
81186
81186
|
index: P,
|
81187
|
-
loopPoint:
|
81187
|
+
loopPoint: U,
|
81188
81188
|
slideLocation: Lf(-1),
|
81189
81189
|
translate: BG(t, l[P]),
|
81190
|
-
target: () => s.get() >
|
81190
|
+
target: () => s.get() > U ? B : V
|
81191
81191
|
};
|
81192
81192
|
});
|
81193
81193
|
}
|
@@ -81361,8 +81361,8 @@ function V3t(t, e, n, r, i, a, o) {
|
|
81361
81361
|
watchSlides: w,
|
81362
81362
|
watchDrag: x,
|
81363
81363
|
watchFocus: M
|
81364
|
-
} = a, A = 2, S = M3t(), N = S.measure(e), D = n.map(S.measure), P = w3t(l, c), B = P.measureSize(N), V = C3t(B), _ = v3t(s, B),
|
81365
|
-
slideSizes:
|
81364
|
+
} = a, A = 2, S = M3t(), N = S.measure(e), D = n.map(S.measure), P = w3t(l, c), B = P.measureSize(N), V = C3t(B), _ = v3t(s, B), U = !d && !!k, Z = d || !!k, {
|
81365
|
+
slideSizes: q,
|
81366
81366
|
slideSizesWithGaps: J,
|
81367
81367
|
startGap: G,
|
81368
81368
|
endGap: ae
|
@@ -81372,7 +81372,7 @@ function V3t(t, e, n, r, i, a, o) {
|
|
81372
81372
|
} = D3t(P, _, N, D, ne), pe = -Ga(oe) + Ga(J), {
|
81373
81373
|
snapsContained: se,
|
81374
81374
|
scrollContainLimit: K
|
81375
|
-
} = T3t(B, pe, ue, k, A), xe =
|
81375
|
+
} = T3t(B, pe, ue, k, A), xe = U ? se : ue, {
|
81376
81376
|
limit: de
|
81377
81377
|
} = E3t(pe, xe, d), Le = OG(kp(xe), u, d), ge = Le.clone(), me = Zh(n), Me = ({
|
81378
81378
|
dragHandler: st,
|
@@ -81405,7 +81405,7 @@ function V3t(t, e, n, r, i, a, o) {
|
|
81405
81405
|
Xt.set(ft), dt && (ke.loop(st.direction()), Pe.loop()), Kt.to(Xt.get());
|
81406
81406
|
}, ee = b3t(r, i, () => Me(tt), (st) => ve(tt, st)), Y = 0.68, $ = xe[Le.get()], ie = Lf($), ye = Lf($), F = Lf($), C = Lf($), I = S3t(ie, F, ye, C, f, Y), O = z3t(d, xe, pe, de, C), Q = P3t(ee, Le, ge, I, O, C, o), le = N3t(de), ce = Yh(), je = H3t(e, n, o, m), {
|
81407
81407
|
slideRegistry: Be
|
81408
|
-
} = I3t(
|
81408
|
+
} = I3t(U, k, xe, K, ne, me), $e = R3t(t, n, Be, Q, I, ce, o, M), tt = {
|
81409
81409
|
ownerDocument: r,
|
81410
81410
|
ownerWindow: i,
|
81411
81411
|
eventHandler: o,
|
@@ -81432,7 +81432,7 @@ function V3t(t, e, n, r, i, a, o) {
|
|
81432
81432
|
scrollSnaps: xe,
|
81433
81433
|
scrollTarget: O,
|
81434
81434
|
scrollTo: Q,
|
81435
|
-
slideLooper: O3t(P, B, pe,
|
81435
|
+
slideLooper: O3t(P, B, pe, q, J, oe, xe, F, n),
|
81436
81436
|
slideFocus: $e,
|
81437
81437
|
slidesHandler: B3t(e, o, w),
|
81438
81438
|
slidesInView: je,
|
@@ -81579,7 +81579,7 @@ function zy(t, e, n) {
|
|
81579
81579
|
function _(me, Me, ve) {
|
81580
81580
|
!b.active || g || (v.scrollBody.useBaseFriction().useDuration(Me === !0 ? 0 : b.duration), v.scrollTo.index(me, ve || 0));
|
81581
81581
|
}
|
81582
|
-
function
|
81582
|
+
function U(me) {
|
81583
81583
|
const Me = v.index.add(1).get();
|
81584
81584
|
_(Me, me, -1);
|
81585
81585
|
}
|
@@ -81587,7 +81587,7 @@ function zy(t, e, n) {
|
|
81587
81587
|
const Me = v.index.add(-1).get();
|
81588
81588
|
_(Me, me, 1);
|
81589
81589
|
}
|
81590
|
-
function
|
81590
|
+
function q() {
|
81591
81591
|
return v.index.add(1).get() !== ne();
|
81592
81592
|
}
|
81593
81593
|
function J() {
|
@@ -81627,7 +81627,7 @@ function zy(t, e, n) {
|
|
81627
81627
|
return A;
|
81628
81628
|
}
|
81629
81629
|
const ge = {
|
81630
|
-
canScrollNext:
|
81630
|
+
canScrollNext: q,
|
81631
81631
|
canScrollPrev: J,
|
81632
81632
|
containerNode: de,
|
81633
81633
|
internalEngine: K,
|
@@ -81639,7 +81639,7 @@ function zy(t, e, n) {
|
|
81639
81639
|
previousScrollSnap: oe,
|
81640
81640
|
reInit: m,
|
81641
81641
|
rootNode: xe,
|
81642
|
-
scrollNext:
|
81642
|
+
scrollNext: U,
|
81643
81643
|
scrollPrev: Z,
|
81644
81644
|
scrollProgress: ae,
|
81645
81645
|
scrollSnapList: G,
|
@@ -86357,10 +86357,10 @@ async function TC(t, e) {
|
|
86357
86357
|
const { account: n = t.account } = e, r = n ? fo(n) : void 0;
|
86358
86358
|
try {
|
86359
86359
|
let _ = function(Z) {
|
86360
|
-
const { block:
|
86360
|
+
const { block: q, request: J, rpcStateOverride: G } = Z;
|
86361
86361
|
return t.request({
|
86362
86362
|
method: "eth_estimateGas",
|
86363
|
-
params: G ? [J,
|
86363
|
+
params: G ? [J, q ?? "latest", G] : q ? [J, q] : [J]
|
86364
86364
|
});
|
86365
86365
|
};
|
86366
86366
|
const { accessList: s, authorizationList: l, blobs: c, blobVersionedHashes: u, blockNumber: d, blockTag: f, data: h, gas: p, gasPrice: m, maxFeePerBlobGas: g, maxFeePerGas: v, maxPriorityFeePerGas: k, nonce: b, value: w, stateOverride: x, ...M } = await QY(t, {
|
@@ -86399,9 +86399,9 @@ async function TC(t, e) {
|
|
86399
86399
|
to: D,
|
86400
86400
|
value: w
|
86401
86401
|
});
|
86402
|
-
let
|
86402
|
+
let U = BigInt(await _({ block: S, request: V, rpcStateOverride: N }));
|
86403
86403
|
if (l) {
|
86404
|
-
const Z = await XY(t, { address: V.from }),
|
86404
|
+
const Z = await XY(t, { address: V.from }), q = await Promise.all(l.map(async (J) => {
|
86405
86405
|
const { address: G } = J, ae = await _({
|
86406
86406
|
block: S,
|
86407
86407
|
request: {
|
@@ -86415,9 +86415,9 @@ async function TC(t, e) {
|
|
86415
86415
|
}).catch(() => 100000n);
|
86416
86416
|
return 2n * BigInt(ae);
|
86417
86417
|
}));
|
86418
|
-
|
86418
|
+
U += q.reduce((J, G) => J + G, 0n);
|
86419
86419
|
}
|
86420
|
-
return
|
86420
|
+
return U;
|
86421
86421
|
} catch (s) {
|
86422
86422
|
throw R5t(s, {
|
86423
86423
|
...e,
|
@@ -86985,7 +86985,7 @@ async function L6(t, e) {
|
|
86985
86985
|
}) : c;
|
86986
86986
|
try {
|
86987
86987
|
Tp(e);
|
86988
|
-
const Z = (i ? Tt(i) : void 0) || a,
|
86988
|
+
const Z = (i ? Tt(i) : void 0) || a, q = CC(w), J = (_ = (V = (B = t.chain) == null ? void 0 : B.formatters) == null ? void 0 : V.transactionRequest) == null ? void 0 : _.format, ae = (J || S6)({
|
86989
86989
|
// Pick out extra data that might exist on the chain's transaction request type.
|
86990
86990
|
...MC(x, { format: J }),
|
86991
86991
|
from: M == null ? void 0 : M.address,
|
@@ -87001,7 +87001,7 @@ async function L6(t, e) {
|
|
87001
87001
|
to: N ? void 0 : k,
|
87002
87002
|
value: b
|
87003
87003
|
});
|
87004
|
-
if (r && p8t({ request: ae }) && !
|
87004
|
+
if (r && p8t({ request: ae }) && !q)
|
87005
87005
|
try {
|
87006
87006
|
return await m8t(t, {
|
87007
87007
|
...ae,
|
@@ -87014,18 +87014,18 @@ async function L6(t, e) {
|
|
87014
87014
|
}
|
87015
87015
|
const ne = await t.request({
|
87016
87016
|
method: "eth_call",
|
87017
|
-
params:
|
87017
|
+
params: q ? [
|
87018
87018
|
ae,
|
87019
87019
|
Z,
|
87020
|
-
|
87020
|
+
q
|
87021
87021
|
] : [ae, Z]
|
87022
87022
|
});
|
87023
87023
|
return ne === "0x" ? { data: void 0 } : { data: ne };
|
87024
|
-
} catch (
|
87025
|
-
const Z = v8t(
|
87024
|
+
} catch (U) {
|
87025
|
+
const Z = v8t(U), { offchainLookup: q, offchainLookupSignature: J } = await import("./ccip-DN6hVxlE.mjs");
|
87026
87026
|
if (t.ccipRead !== !1 && (Z == null ? void 0 : Z.slice(0, 10)) === J && k)
|
87027
|
-
return { data: await
|
87028
|
-
throw N && (Z == null ? void 0 : Z.slice(0, 10)) === "0x101bb98d" ? new C5t({ factory: u }) : aK(
|
87027
|
+
return { data: await q(t, { data: Z, to: k }) };
|
87028
|
+
throw N && (Z == null ? void 0 : Z.slice(0, 10)) === "0x101bb98d" ? new C5t({ factory: u }) : aK(U, {
|
87029
87029
|
...e,
|
87030
87030
|
account: M,
|
87031
87031
|
chain: t.chain
|
@@ -87393,7 +87393,7 @@ function S8t(t, e) {
|
|
87393
87393
|
if (P instanceof Jh || P instanceof g6) {
|
87394
87394
|
if (f)
|
87395
87395
|
return;
|
87396
|
-
B = P.abiItem.name, V = (D = P.abiItem.inputs) == null ? void 0 : D.some((
|
87396
|
+
B = P.abiItem.name, V = (D = P.abiItem.inputs) == null ? void 0 : D.some((U) => !("name" in U && U.name));
|
87397
87397
|
}
|
87398
87398
|
const _ = al(N, {
|
87399
87399
|
args: V ? [] : {},
|
@@ -90059,12 +90059,12 @@ async function n7t(t, e) {
|
|
90059
90059
|
],
|
90060
90060
|
traceTransfers: s,
|
90061
90061
|
validation: l
|
90062
|
-
}), p = o ? h[2] : h[0], [m, g, , v, k, b, w, x] = o ? h : [], { calls: M, ...A } = p, S = M.slice(0, -1) ?? [], N = (m == null ? void 0 : m.calls) ?? [], D = (g == null ? void 0 : g.calls) ?? [], P = [...N, ...D].map((G) => G.status === "success" ? Jo(G.data) : null), B = (v == null ? void 0 : v.calls) ?? [], V = (k == null ? void 0 : k.calls) ?? [], _ = [...B, ...V].map((G) => G.status === "success" ? Jo(G.data) : null),
|
90062
|
+
}), p = o ? h[2] : h[0], [m, g, , v, k, b, w, x] = o ? h : [], { calls: M, ...A } = p, S = M.slice(0, -1) ?? [], N = (m == null ? void 0 : m.calls) ?? [], D = (g == null ? void 0 : g.calls) ?? [], P = [...N, ...D].map((G) => G.status === "success" ? Jo(G.data) : null), B = (v == null ? void 0 : v.calls) ?? [], V = (k == null ? void 0 : k.calls) ?? [], _ = [...B, ...V].map((G) => G.status === "success" ? Jo(G.data) : null), U = ((b == null ? void 0 : b.calls) ?? []).map((G) => G.status === "success" ? G.result : null), Z = ((x == null ? void 0 : x.calls) ?? []).map((G) => G.status === "success" ? G.result : null), q = ((w == null ? void 0 : w.calls) ?? []).map((G) => G.status === "success" ? G.result : null), J = [];
|
90063
90063
|
for (const [G, ae] of _.entries()) {
|
90064
90064
|
const ne = P[G];
|
90065
90065
|
if (typeof ae != "bigint" || typeof ne != "bigint")
|
90066
90066
|
continue;
|
90067
|
-
const oe =
|
90067
|
+
const oe = U[G - 1], ue = Z[G - 1], pe = q[G - 1], se = G === 0 ? {
|
90068
90068
|
address: e7t,
|
90069
90069
|
decimals: 18,
|
90070
90070
|
symbol: "ETH"
|
@@ -91026,10 +91026,10 @@ function j7t(t) {
|
|
91026
91026
|
const { px: v, py: k, pz: b } = this, { px: w, py: x, pz: M } = g;
|
91027
91027
|
let A = n.ZERO, S = n.ZERO, N = n.ZERO;
|
91028
91028
|
const D = e.a, P = n.mul(e.b, zD);
|
91029
|
-
let B = n.mul(v, w), V = n.mul(k, x), _ = n.mul(b, M),
|
91030
|
-
|
91031
|
-
let
|
91032
|
-
return Z = n.mul(Z,
|
91029
|
+
let B = n.mul(v, w), V = n.mul(k, x), _ = n.mul(b, M), U = n.add(v, k), Z = n.add(w, x);
|
91030
|
+
U = n.mul(U, Z), Z = n.add(B, V), U = n.sub(U, Z), Z = n.add(v, b);
|
91031
|
+
let q = n.add(w, M);
|
91032
|
+
return Z = n.mul(Z, q), q = n.add(B, _), Z = n.sub(Z, q), q = n.add(k, b), A = n.add(x, M), q = n.mul(q, A), A = n.add(V, _), q = n.sub(q, A), N = n.mul(D, Z), A = n.mul(P, _), N = n.add(A, N), A = n.sub(V, N), N = n.add(V, N), S = n.mul(A, N), V = n.add(B, B), V = n.add(V, B), _ = n.mul(D, _), Z = n.mul(P, Z), V = n.add(V, _), _ = n.sub(B, _), _ = n.mul(D, _), Z = n.add(Z, _), B = n.mul(V, Z), S = n.add(S, B), B = n.mul(q, Z), A = n.mul(U, A), A = n.sub(A, B), B = n.mul(U, V), N = n.mul(q, N), N = n.add(N, B), new f(A, S, N);
|
91033
91033
|
}
|
91034
91034
|
subtract(g) {
|
91035
91035
|
return this.add(g.negate());
|
@@ -91150,14 +91150,14 @@ function D7t(t) {
|
|
91150
91150
|
}
|
91151
91151
|
const { ProjectivePoint: l, normPrivateKeyToScalar: c, weierstrassEquation: u, isWithinCurveOrder: d } = j7t({
|
91152
91152
|
...e,
|
91153
|
-
toBytes(_,
|
91154
|
-
const
|
91155
|
-
return W1("isCompressed", Z), Z ? G(Uint8Array.from([
|
91153
|
+
toBytes(_, U, Z) {
|
91154
|
+
const q = U.toAffine(), J = n.toBytes(q.x), G = f2;
|
91155
|
+
return W1("isCompressed", Z), Z ? G(Uint8Array.from([U.hasEvenY() ? 2 : 3]), J) : G(Uint8Array.from([4]), J, n.toBytes(q.y));
|
91156
91156
|
},
|
91157
91157
|
fromBytes(_) {
|
91158
|
-
const
|
91159
|
-
if (
|
91160
|
-
const J = ju(
|
91158
|
+
const U = _.length, Z = _[0], q = _.subarray(1);
|
91159
|
+
if (U === i && (Z === 2 || Z === 3)) {
|
91160
|
+
const J = ju(q);
|
91161
91161
|
if (!z6(J, mr, n.ORDER))
|
91162
91162
|
throw new Error("Point is not on curve");
|
91163
91163
|
const G = u(J);
|
@@ -91170,52 +91170,52 @@ function D7t(t) {
|
|
91170
91170
|
}
|
91171
91171
|
const ne = (ae & mr) === mr;
|
91172
91172
|
return (Z & 1) === 1 !== ne && (ae = n.neg(ae)), { x: J, y: ae };
|
91173
|
-
} else if (
|
91174
|
-
const J = n.fromBytes(
|
91173
|
+
} else if (U === a && Z === 4) {
|
91174
|
+
const J = n.fromBytes(q.subarray(0, n.BYTES)), G = n.fromBytes(q.subarray(n.BYTES, 2 * n.BYTES));
|
91175
91175
|
return { x: J, y: G };
|
91176
91176
|
} else {
|
91177
91177
|
const J = i, G = a;
|
91178
|
-
throw new Error("invalid Point, expected length of " + J + ", or uncompressed " + G + ", got " +
|
91178
|
+
throw new Error("invalid Point, expected length of " + J + ", or uncompressed " + G + ", got " + U);
|
91179
91179
|
}
|
91180
91180
|
}
|
91181
91181
|
}), f = (_) => Z1(Y1(_, e.nByteLength));
|
91182
91182
|
function h(_) {
|
91183
|
-
const
|
91184
|
-
return _ >
|
91183
|
+
const U = r >> mr;
|
91184
|
+
return _ > U;
|
91185
91185
|
}
|
91186
91186
|
function p(_) {
|
91187
91187
|
return h(_) ? o(-_) : _;
|
91188
91188
|
}
|
91189
|
-
const m = (_,
|
91189
|
+
const m = (_, U, Z) => ju(_.slice(U, Z));
|
91190
91190
|
class g {
|
91191
|
-
constructor(
|
91192
|
-
this.r =
|
91191
|
+
constructor(U, Z, q) {
|
91192
|
+
this.r = U, this.s = Z, this.recovery = q, this.assertValidity();
|
91193
91193
|
}
|
91194
91194
|
// pair (bytes of r, bytes of s)
|
91195
|
-
static fromCompact(
|
91195
|
+
static fromCompact(U) {
|
91196
91196
|
const Z = e.nByteLength;
|
91197
|
-
return
|
91197
|
+
return U = Ba("compactSignature", U, Z * 2), new g(m(U, 0, Z), m(U, Z, 2 * Z));
|
91198
91198
|
}
|
91199
91199
|
// DER encoded ECDSA signature
|
91200
91200
|
// https://bitcoin.stackexchange.com/questions/57644/what-are-the-parts-of-a-bitcoin-transaction-input-script
|
91201
|
-
static fromDER(
|
91202
|
-
const { r: Z, s:
|
91203
|
-
return new g(Z,
|
91201
|
+
static fromDER(U) {
|
91202
|
+
const { r: Z, s: q } = Ss.toSig(Ba("DER", U));
|
91203
|
+
return new g(Z, q);
|
91204
91204
|
}
|
91205
91205
|
assertValidity() {
|
91206
91206
|
Nu("r", this.r, mr, r), Nu("s", this.s, mr, r);
|
91207
91207
|
}
|
91208
|
-
addRecoveryBit(
|
91209
|
-
return new g(this.r, this.s,
|
91208
|
+
addRecoveryBit(U) {
|
91209
|
+
return new g(this.r, this.s, U);
|
91210
91210
|
}
|
91211
|
-
recoverPublicKey(
|
91212
|
-
const { r: Z, s:
|
91211
|
+
recoverPublicKey(U) {
|
91212
|
+
const { r: Z, s: q, recovery: J } = this, G = M(Ba("msgHash", U));
|
91213
91213
|
if (J == null || ![0, 1, 2, 3].includes(J))
|
91214
91214
|
throw new Error("recovery id invalid");
|
91215
91215
|
const ae = J === 2 || J === 3 ? Z + e.n : Z;
|
91216
91216
|
if (ae >= n.ORDER)
|
91217
91217
|
throw new Error("recovery id 2 or 3 invalid");
|
91218
|
-
const ne = J & 1 ? "03" : "02", oe = l.fromHex(ne + f(ae)), ue = s(ae), pe = o(-G * ue), se = o(
|
91218
|
+
const ne = J & 1 ? "03" : "02", oe = l.fromHex(ne + f(ae)), ue = s(ae), pe = o(-G * ue), se = o(q * ue), K = l.BASE.multiplyAndAddUnsafe(oe, pe, se);
|
91219
91219
|
if (!K)
|
91220
91220
|
throw new Error("point at infinify");
|
91221
91221
|
return K.assertValidity(), K;
|
@@ -91267,42 +91267,42 @@ function D7t(t) {
|
|
91267
91267
|
* const fast = utils.precompute(8, ProjectivePoint.fromHex(someonesPubKey));
|
91268
91268
|
* fast.multiply(privKey); // much faster ECDH now
|
91269
91269
|
*/
|
91270
|
-
precompute(_ = 8,
|
91271
|
-
return
|
91270
|
+
precompute(_ = 8, U = l.BASE) {
|
91271
|
+
return U._setWindowSize(_), U.multiply(BigInt(3)), U;
|
91272
91272
|
}
|
91273
91273
|
};
|
91274
|
-
function k(_,
|
91275
|
-
return l.fromPrivateKey(_).toRawBytes(
|
91274
|
+
function k(_, U = !0) {
|
91275
|
+
return l.fromPrivateKey(_).toRawBytes(U);
|
91276
91276
|
}
|
91277
91277
|
function b(_) {
|
91278
|
-
const
|
91279
|
-
return
|
91278
|
+
const U = t0(_), Z = typeof _ == "string", q = (U || Z) && _.length;
|
91279
|
+
return U ? q === i || q === a : Z ? q === 2 * i || q === 2 * a : _ instanceof l;
|
91280
91280
|
}
|
91281
|
-
function w(_,
|
91281
|
+
function w(_, U, Z = !0) {
|
91282
91282
|
if (b(_))
|
91283
91283
|
throw new Error("first arg must be private key");
|
91284
|
-
if (!b(
|
91284
|
+
if (!b(U))
|
91285
91285
|
throw new Error("second arg must be public key");
|
91286
|
-
return l.fromHex(
|
91286
|
+
return l.fromHex(U).multiply(c(_)).toRawBytes(Z);
|
91287
91287
|
}
|
91288
91288
|
const x = e.bits2int || function(_) {
|
91289
91289
|
if (_.length > 8192)
|
91290
91290
|
throw new Error("input is too large");
|
91291
|
-
const
|
91292
|
-
return Z > 0 ?
|
91291
|
+
const U = ju(_), Z = _.length * 8 - e.nBitLength;
|
91292
|
+
return Z > 0 ? U >> BigInt(Z) : U;
|
91293
91293
|
}, M = e.bits2int_modN || function(_) {
|
91294
91294
|
return o(x(_));
|
91295
91295
|
}, A = YC(e.nBitLength);
|
91296
91296
|
function S(_) {
|
91297
91297
|
return Nu("num < 2^" + e.nBitLength, _, Ts, A), Y1(_, e.nByteLength);
|
91298
91298
|
}
|
91299
|
-
function N(_,
|
91299
|
+
function N(_, U, Z = D) {
|
91300
91300
|
if (["recovered", "canonical"].some((de) => de in Z))
|
91301
91301
|
throw new Error("sign() legacy options not supported");
|
91302
|
-
const { hash:
|
91302
|
+
const { hash: q, randomBytes: J } = e;
|
91303
91303
|
let { lowS: G, prehash: ae, extraEntropy: ne } = Z;
|
91304
|
-
G == null && (G = !0), _ = Ba("msgHash", _), ID(Z), ae && (_ = Ba("prehashed msgHash",
|
91305
|
-
const oe = M(_), ue = c(
|
91304
|
+
G == null && (G = !0), _ = Ba("msgHash", _), ID(Z), ae && (_ = Ba("prehashed msgHash", q(_)));
|
91305
|
+
const oe = M(_), ue = c(U), pe = [S(ue), S(oe)];
|
91306
91306
|
if (ne != null && ne !== !1) {
|
91307
91307
|
const de = ne === !0 ? J(n.BYTES) : ne;
|
91308
91308
|
pe.push(Ba("extraEntropy", de));
|
@@ -91324,17 +91324,17 @@ function D7t(t) {
|
|
91324
91324
|
return { seed: se, k2sig: xe };
|
91325
91325
|
}
|
91326
91326
|
const D = { lowS: e.lowS, prehash: !1 }, P = { lowS: e.lowS, prehash: !1 };
|
91327
|
-
function B(_,
|
91328
|
-
const { seed:
|
91329
|
-
return UK(G.hash.outputLen, G.nByteLength, G.hmac)(
|
91327
|
+
function B(_, U, Z = D) {
|
91328
|
+
const { seed: q, k2sig: J } = N(_, U, Z), G = e;
|
91329
|
+
return UK(G.hash.outputLen, G.nByteLength, G.hmac)(q, J);
|
91330
91330
|
}
|
91331
91331
|
l.BASE._setWindowSize(8);
|
91332
|
-
function V(_,
|
91332
|
+
function V(_, U, Z, q = P) {
|
91333
91333
|
var ee;
|
91334
91334
|
const J = _;
|
91335
|
-
|
91336
|
-
const { lowS: G, prehash: ae, format: ne } =
|
91337
|
-
if (ID(
|
91335
|
+
U = Ba("msgHash", U), Z = Ba("publicKey", Z);
|
91336
|
+
const { lowS: G, prehash: ae, format: ne } = q;
|
91337
|
+
if (ID(q), "strict" in q)
|
91338
91338
|
throw new Error("options.strict was renamed to lowS");
|
91339
91339
|
if (ne !== void 0 && ne !== "compact" && ne !== "der")
|
91340
91340
|
throw new Error("format must be compact or der");
|
@@ -91358,8 +91358,8 @@ function D7t(t) {
|
|
91358
91358
|
}
|
91359
91359
|
if (!pe || G && pe.hasHighS())
|
91360
91360
|
return !1;
|
91361
|
-
ae && (
|
91362
|
-
const { r: K, s: xe } = pe, de = M(
|
91361
|
+
ae && (U = e.hash(U));
|
91362
|
+
const { r: K, s: xe } = pe, de = M(U), Le = s(xe), ge = o(de * Le), me = o(K * Le), Me = (ee = l.BASE.multiplyAndAddUnsafe(se, ge, me)) == null ? void 0 : ee.toAffine();
|
91363
91363
|
return Me ? o(Me.x) === K : !1;
|
91364
91364
|
}
|
91365
91365
|
return {
|
@@ -92117,7 +92117,7 @@ const nJ = wn(void 0), t9t = ({
|
|
92117
92117
|
onComment: x,
|
92118
92118
|
setCommentDrawerOpen: M
|
92119
92119
|
}) => {
|
92120
|
-
const [A, S] = Ne(!0), [N, D] = Ne(""), [P, B] = Ne(""), [V, _] = Ne(null),
|
92120
|
+
const [A, S] = Ne(!0), [N, D] = Ne(""), [P, B] = Ne(""), [V, _] = Ne(null), U = Ve(null), Z = Ve(null), [q, J] = Ne(""), [G, ae] = Ne(!1), ne = Ve(null), oe = Ve(null), ue = Ve(null), pe = e.isActive("comment"), se = e.getAttributes("comment").resolved, [K, xe] = Ne({
|
92121
92121
|
inlineCommentText: "",
|
92122
92122
|
handleClick: !1
|
92123
92123
|
}), de = localStorage.getItem("ensCache"), [Le, ge] = Ne(
|
@@ -92255,7 +92255,7 @@ const nJ = wn(void 0), t9t = ({
|
|
92255
92255
|
createdAt: /* @__PURE__ */ new Date()
|
92256
92256
|
};
|
92257
92257
|
c == null || c(ke), s(ke.id), B(""), x == null || x(), requestAnimationFrame(() => {
|
92258
|
-
|
92258
|
+
U.current && U.current.scrollTo({
|
92259
92259
|
top: 0,
|
92260
92260
|
behavior: "smooth"
|
92261
92261
|
});
|
@@ -92325,7 +92325,7 @@ const nJ = wn(void 0), t9t = ({
|
|
92325
92325
|
setOpenReplyId: _,
|
92326
92326
|
handleReplyKeyDown: je,
|
92327
92327
|
openReplyId: V,
|
92328
|
-
commentsSectionRef:
|
92328
|
+
commentsSectionRef: U,
|
92329
92329
|
addComment: $,
|
92330
92330
|
handleCommentSubmit: ce,
|
92331
92331
|
comment: P,
|
@@ -92336,7 +92336,7 @@ const nJ = wn(void 0), t9t = ({
|
|
92336
92336
|
onNextComment: tn,
|
92337
92337
|
activeCommentIndex: Xt,
|
92338
92338
|
activeComment: Ae,
|
92339
|
-
selectedText:
|
92339
|
+
selectedText: q,
|
92340
92340
|
isCommentOpen: G,
|
92341
92341
|
handleInlineComment: ee,
|
92342
92342
|
portalRef: ne,
|
@@ -92894,7 +92894,7 @@ const nJ = wn(void 0), t9t = ({
|
|
92894
92894
|
r.color
|
92895
92895
|
)),
|
92896
92896
|
/* @__PURE__ */ L.jsxs(
|
92897
|
-
|
92897
|
+
Ut,
|
92898
92898
|
{
|
92899
92899
|
variant: "ghost",
|
92900
92900
|
onClick: () => {
|
@@ -93025,9 +93025,9 @@ const nJ = wn(void 0), t9t = ({
|
|
93025
93025
|
}
|
93026
93026
|
),
|
93027
93027
|
/* @__PURE__ */ L.jsxs("div", { className: "h-full flex items-center gap-2", children: [
|
93028
|
-
/* @__PURE__ */ L.jsx(
|
93028
|
+
/* @__PURE__ */ L.jsx(Ut, { onClick: () => l(), className: "min-w-fit h-[36px]", children: "Apply" }),
|
93029
93029
|
/* @__PURE__ */ L.jsx(
|
93030
|
-
|
93030
|
+
Ut,
|
93031
93031
|
{
|
93032
93032
|
variant: "secondary",
|
93033
93033
|
onClick: () => e.chain().focus().unsetLink().run(),
|
@@ -93064,7 +93064,7 @@ const nJ = wn(void 0), t9t = ({
|
|
93064
93064
|
}
|
93065
93065
|
];
|
93066
93066
|
return /* @__PURE__ */ L.jsx("div", { ref: t, className: "z-50 w-48 color-bg-default rounded p-1", children: /* @__PURE__ */ L.jsx("div", { className: "flex flex-col gap-1 justify-center w-fit sm:w-full transition-all", children: n.map((r) => /* @__PURE__ */ L.jsxs(
|
93067
|
-
|
93067
|
+
Ut,
|
93068
93068
|
{
|
93069
93069
|
variant: "ghost",
|
93070
93070
|
onClick: () => {
|
@@ -93120,7 +93120,7 @@ const nJ = wn(void 0), t9t = ({
|
|
93120
93120
|
r.color
|
93121
93121
|
)),
|
93122
93122
|
/* @__PURE__ */ L.jsxs(
|
93123
|
-
|
93123
|
+
Ut,
|
93124
93124
|
{
|
93125
93125
|
variant: "ghost",
|
93126
93126
|
onClick: () => {
|
@@ -94616,29 +94616,29 @@ const sJ = (t) => t && (t.length > 20 ? t.slice(0, 5) + "..." + t.slice(t.length
|
|
94616
94616
|
});
|
94617
94617
|
}, [c, u, d, i]);
|
94618
94618
|
const P = () => {
|
94619
|
-
var
|
94620
|
-
if (a == null || a(d), (
|
94619
|
+
var U;
|
94620
|
+
if (a == null || a(d), (U = g.current) != null && U.parentElement) {
|
94621
94621
|
const Z = g.current.closest('[role="dialog"]');
|
94622
94622
|
Z && Z.remove();
|
94623
94623
|
}
|
94624
94624
|
}, B = () => {
|
94625
|
-
var
|
94626
|
-
if (o == null || o(d), (
|
94625
|
+
var U;
|
94626
|
+
if (o == null || o(d), (U = g.current) != null && U.parentElement) {
|
94627
94627
|
const Z = g.current.closest('[role="dialog"]');
|
94628
94628
|
Z && Z.remove();
|
94629
94629
|
}
|
94630
94630
|
}, V = () => {
|
94631
|
-
var
|
94632
|
-
if (s == null || s(d), (
|
94631
|
+
var U;
|
94632
|
+
if (s == null || s(d), (U = g.current) != null && U.parentElement) {
|
94633
94633
|
const Z = g.current.closest('[role="dialog"]');
|
94634
94634
|
Z && Z.remove();
|
94635
94635
|
}
|
94636
94636
|
}, _ = ht(() => {
|
94637
94637
|
if (!(i != null && i.length)) return null;
|
94638
|
-
let
|
94639
|
-
(Z,
|
94638
|
+
let U = i.sort(
|
94639
|
+
(Z, q) => new Date(Z.createdAt || /* @__PURE__ */ new Date()).getTime() - new Date(q.createdAt || /* @__PURE__ */ new Date()).getTime()
|
94640
94640
|
);
|
94641
|
-
return !b && i.length > 3 && (
|
94641
|
+
return !b && i.length > 3 && (U = i.slice(-2)), /* @__PURE__ */ L.jsxs("div", { className: "flex flex-col gap-0 ml-3 relative", children: [
|
94642
94642
|
i.length > 3 && !b && /* @__PURE__ */ L.jsxs(
|
94643
94643
|
"div",
|
94644
94644
|
{
|
@@ -94673,13 +94673,13 @@ const sJ = (t) => t && (t.length > 20 ? t.slice(0, 5) + "..." + t.slice(t.length
|
|
94673
94673
|
]
|
94674
94674
|
}
|
94675
94675
|
),
|
94676
|
-
|
94676
|
+
U.map((Z, q) => /* @__PURE__ */ L.jsx(
|
94677
94677
|
iwt,
|
94678
94678
|
{
|
94679
94679
|
reply: Z.content || "",
|
94680
94680
|
username: Z.username || "",
|
94681
94681
|
createdAt: Z.createdAt || /* @__PURE__ */ new Date(),
|
94682
|
-
isLast:
|
94682
|
+
isLast: q === U.length - 1
|
94683
94683
|
},
|
94684
94684
|
Z.id
|
94685
94685
|
))
|
@@ -94886,9 +94886,9 @@ const sJ = (t) => t && (t.length > 20 ? t.slice(0, 5) + "..." + t.slice(t.length
|
|
94886
94886
|
onCommentReply: B,
|
94887
94887
|
resolveComment: V,
|
94888
94888
|
unresolveComment: _,
|
94889
|
-
deleteComment:
|
94889
|
+
deleteComment: U,
|
94890
94890
|
isDDocOwner: Z,
|
94891
|
-
onComment:
|
94891
|
+
onComment: q,
|
94892
94892
|
isConnected: J,
|
94893
94893
|
setCommentDrawerOpen: G,
|
94894
94894
|
isLoading: ae,
|
@@ -94911,7 +94911,7 @@ const sJ = (t) => t && (t.length > 20 ? t.slice(0, 5) + "..." + t.slice(t.length
|
|
94911
94911
|
})), g(!0);
|
94912
94912
|
return;
|
94913
94913
|
}
|
94914
|
-
o.trim() && (b(o, M), h(!0),
|
94914
|
+
o.trim() && (b(o, M), h(!0), q == null || q(), s(""), g(!0));
|
94915
94915
|
}, de = () => {
|
94916
94916
|
if (!J) {
|
94917
94917
|
G(!0);
|
@@ -94931,7 +94931,7 @@ const sJ = (t) => t && (t.length > 20 ? t.slice(0, 5) + "..." + t.slice(t.length
|
|
94931
94931
|
}, ge = () => {
|
94932
94932
|
d(($) => !$);
|
94933
94933
|
}, me = () => {
|
94934
|
-
|
94934
|
+
U(t);
|
94935
94935
|
};
|
94936
94936
|
Ie(() => {
|
94937
94937
|
t && (A ? s(A.content || "") : h(!1));
|
@@ -94945,7 +94945,7 @@ const sJ = (t) => t && (t.length > 20 ? t.slice(0, 5) + "..." + t.slice(t.length
|
|
94945
94945
|
...$,
|
94946
94946
|
inlineCommentText: "",
|
94947
94947
|
handleClick: !1
|
94948
|
-
})), m || (b(v.inlineCommentText, M), h(!0),
|
94948
|
+
})), m || (b(v.inlineCommentText, M), h(!0), q == null || q()), s(""), g(!0));
|
94949
94949
|
}, [
|
94950
94950
|
J,
|
94951
94951
|
M,
|
@@ -94970,7 +94970,7 @@ const sJ = (t) => t && (t.length > 20 ? t.slice(0, 5) + "..." + t.slice(t.length
|
|
94970
94970
|
}
|
94971
94971
|
),
|
94972
94972
|
/* @__PURE__ */ L.jsx(
|
94973
|
-
|
94973
|
+
Ut,
|
94974
94974
|
{
|
94975
94975
|
onClick: () => ne == null ? void 0 : ne(M),
|
94976
94976
|
disabled: !M || ae,
|
@@ -95002,7 +95002,7 @@ const sJ = (t) => t && (t.length > 20 ? t.slice(0, 5) + "..." + t.slice(t.length
|
|
95002
95002
|
)
|
95003
95003
|
] }),
|
95004
95004
|
/* @__PURE__ */ L.jsx("div", { className: "text-center", children: /* @__PURE__ */ L.jsxs(
|
95005
|
-
|
95005
|
+
Ut,
|
95006
95006
|
{
|
95007
95007
|
onClick: !J && (() => {
|
95008
95008
|
oe(), k(($) => ({
|
@@ -95034,7 +95034,7 @@ const sJ = (t) => t && (t.length > 20 ? t.slice(0, 5) + "..." + t.slice(t.length
|
|
95034
95034
|
}
|
95035
95035
|
),
|
95036
95036
|
/* @__PURE__ */ L.jsx("div", { className: "h-full flex items-center justify-end", children: /* @__PURE__ */ L.jsx(
|
95037
|
-
|
95037
|
+
Ut,
|
95038
95038
|
{
|
95039
95039
|
onClick: xe,
|
95040
95040
|
className: "px-4 py-2 w-20 min-w-20 h-9 font-medium text-sm",
|
@@ -95149,7 +95149,7 @@ const sJ = (t) => t && (t.length > 20 ? t.slice(0, 5) + "..." + t.slice(t.length
|
|
95149
95149
|
}
|
95150
95150
|
),
|
95151
95151
|
/* @__PURE__ */ L.jsx("div", { className: "h-full flex justify-end pt-2", children: /* @__PURE__ */ L.jsx(
|
95152
|
-
|
95152
|
+
Ut,
|
95153
95153
|
{
|
95154
95154
|
onClick: de,
|
95155
95155
|
className: "px-4 py-2 w-20 min-w-20 h-9",
|
@@ -95245,7 +95245,7 @@ Vy.exports;
|
|
95245
95245
|
D && (N = S, S = null);
|
95246
95246
|
var P = N.navigator || {}, B = P.userAgent || "";
|
95247
95247
|
S || (S = B);
|
95248
|
-
var V = D ? !!P.likeChrome : /\bChrome\b/.test(S) && !/internal|\n/i.test(d.toString()), _ = "Object",
|
95248
|
+
var V = D ? !!P.likeChrome : /\bChrome\b/.test(S) && !/internal|\n/i.test(d.toString()), _ = "Object", U = D ? _ : "ScriptBridgingProxyObject", Z = D ? _ : "Environment", q = D && N.java ? "JavaPackage" : v(N.java), J = D ? _ : "RuntimeObject", G = /\bJava/.test(q) && N.java, ae = G && v(N.environment) == Z, ne = G ? "a" : "α", oe = G ? "b" : "β", ue = N.document || {}, pe = N.operamini || N.opera, se = l.test(se = D && pe ? pe["[[Class]]"] : v(pe)) ? se : pe = null, K, xe = S, de = [], Le = null, ge = S == B, me = ge && pe && typeof pe.version == "function" && pe.version(), Me, ve = ye([
|
95249
95249
|
{ label: "EdgeHTML", pattern: "Edge" },
|
95250
95250
|
"Trident",
|
95251
95251
|
{ label: "WebKit", pattern: "AppleWebKit" },
|
@@ -95443,7 +95443,7 @@ Vy.exports;
|
|
95443
95443
|
}
|
95444
95444
|
ee || (ee = "Rhino");
|
95445
95445
|
} else typeof N.process == "object" && !N.process.browser && (K = N.process) && (typeof K.versions == "object" && (typeof K.versions.electron == "string" ? (de.push("Node " + K.versions.node), ee = "Electron", me = K.versions.electron) : typeof K.versions.nw == "string" && (de.push("Chromium " + me, "Node " + K.versions.node), ee = "NW.js", me = K.versions.nw)), ee || (ee = "Node.js", xe = K.arch, ie = K.platform, me = /[\d.]+/.exec(K.version), me = me ? me[0] : null));
|
95446
|
-
else v(K = N.runtime) ==
|
95446
|
+
else v(K = N.runtime) == U ? (ee = "Adobe AIR", ie = K.flash.system.Capabilities.os) : v(K = N.phantom) == J ? (ee = "PhantomJS", me = (K = K.version || null) && K.major + "." + K.minor + "." + K.patch) : typeof ue.documentMode == "number" && (K = /\bTrident\/(\d+)/i.exec(S)) ? (me = [me, ue.documentMode], (K = +K[1] + 4) != me[1] && (de.push("IE " + me[1] + " mode"), ve && (ve[1] = ""), me[1] = K), me = ee == "IE" ? String(me[1].toFixed(1)) : me[0]) : typeof ue.documentMode == "number" && /^(?:Chrome|Firefox)\b/.test(ee) && (de.push("masking as " + ee + " " + me), ee = "IE", me = "11.0", ve = ["Trident"], ie = "Windows");
|
95447
95447
|
ie = ie && m(ie);
|
95448
95448
|
}
|
95449
95449
|
if (me && (K = /(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(me) || /(?:alpha|beta)(?: ?\d)?/i.exec(S + ";" + (ge && P.appMinorVersion)) || /\bMinefield\b/i.test(S) && "a") && (Le = /b/i.test(K) ? "beta" : "alpha", me = me.replace(RegExp(K + "\\+?$"), "") + (Le == "beta" ? oe : ne) + (/\d+\+?/.exec(K) || "")), ee == "Fennec" || ee == "Firefox" && /\b(?:Android|Firefox OS|KaiOS)\b/.test(ie))
|
@@ -96217,11 +96217,22 @@ const mwt = {
|
|
96217
96217
|
}, yJ = wn({
|
96218
96218
|
isPreviewMode: !1,
|
96219
96219
|
isPresentationMode: !1
|
96220
|
-
}), zp = () =>
|
96220
|
+
}), zp = () => {
|
96221
|
+
const t = gt(yJ);
|
96222
|
+
if (!t)
|
96223
|
+
throw new Error("useEditingContext must be used within an EditingProvider");
|
96224
|
+
return t;
|
96225
|
+
}, nA = ({
|
96221
96226
|
children: t,
|
96222
96227
|
isPreviewMode: e,
|
96223
96228
|
isPresentationMode: n
|
96224
|
-
}) =>
|
96229
|
+
}) => {
|
96230
|
+
const r = qt(
|
96231
|
+
() => ({ isPreviewMode: e, isPresentationMode: n }),
|
96232
|
+
[e, n]
|
96233
|
+
);
|
96234
|
+
return /* @__PURE__ */ L.jsx(yJ.Provider, { value: r, children: t });
|
96235
|
+
}, gwt = ({
|
96225
96236
|
editor: t,
|
96226
96237
|
onError: e,
|
96227
96238
|
zoomLevel: n,
|
@@ -96233,7 +96244,7 @@ const mwt = {
|
|
96233
96244
|
onMarkdownImport: l,
|
96234
96245
|
onPdfExport: c
|
96235
96246
|
}) => {
|
96236
|
-
var B, V, _,
|
96247
|
+
var B, V, _, U, Z;
|
96237
96248
|
const {
|
96238
96249
|
toolRef: u,
|
96239
96250
|
setToolVisibility: d,
|
@@ -96261,15 +96272,15 @@ const mwt = {
|
|
96261
96272
|
{ title: "200%", value: "2" }
|
96262
96273
|
], [S, N] = Ne(!1), D = () => {
|
96263
96274
|
if (t) {
|
96264
|
-
const
|
96265
|
-
if (
|
96266
|
-
const J =
|
96275
|
+
const q = t.commands.exportMarkdownFile();
|
96276
|
+
if (q) {
|
96277
|
+
const J = q, G = document.createElement("a");
|
96267
96278
|
G.href = J, G.download = x, document.body.appendChild(G), G.click(), document.body.removeChild(G), URL.revokeObjectURL(J);
|
96268
96279
|
}
|
96269
96280
|
}
|
96270
96281
|
v(!1);
|
96271
|
-
}, P = (
|
96272
|
-
switch (
|
96282
|
+
}, P = (q) => {
|
96283
|
+
switch (q.title) {
|
96273
96284
|
case "Highlight":
|
96274
96285
|
return /* @__PURE__ */ L.jsx(
|
96275
96286
|
rJ,
|
@@ -96332,7 +96343,7 @@ const mwt = {
|
|
96332
96343
|
k && "dark:text-[#363B3F]"
|
96333
96344
|
),
|
96334
96345
|
onClick: () => {
|
96335
|
-
b((
|
96346
|
+
b((q) => !q), N(!1);
|
96336
96347
|
}
|
96337
96348
|
}
|
96338
96349
|
) }),
|
@@ -96343,8 +96354,8 @@ const mwt = {
|
|
96343
96354
|
"button",
|
96344
96355
|
{
|
96345
96356
|
onClick: () => {
|
96346
|
-
var
|
96347
|
-
(
|
96357
|
+
var q;
|
96358
|
+
(q = m[0]) == null || q.onClick(), b(!1);
|
96348
96359
|
},
|
96349
96360
|
className: "hover:color-bg-default-hover h-8 rounded p-2 w-full text-left flex items-center justify-start space-x-2 transition",
|
96350
96361
|
children: [
|
@@ -96363,22 +96374,22 @@ const mwt = {
|
|
96363
96374
|
] }),
|
96364
96375
|
/* @__PURE__ */ L.jsxs("div", { children: [
|
96365
96376
|
/* @__PURE__ */ L.jsx("span", { className: "text-[12px] px-2 font-normal color-text-secondary py-1", children: "Markdown" }),
|
96366
|
-
p.map((
|
96377
|
+
p.map((q, J) => /* @__PURE__ */ L.jsxs(
|
96367
96378
|
"button",
|
96368
96379
|
{
|
96369
96380
|
onClick: () => {
|
96370
|
-
b(!1),
|
96381
|
+
b(!1), q == null || q.onClick();
|
96371
96382
|
},
|
96372
96383
|
className: "hover:color-bg-default-hover h-8 rounded p-2 w-full text-left flex items-center justify-start space-x-2 transition",
|
96373
96384
|
children: [
|
96374
96385
|
/* @__PURE__ */ L.jsx(
|
96375
96386
|
Ze,
|
96376
96387
|
{
|
96377
|
-
name:
|
96388
|
+
name: q == null ? void 0 : q.icon,
|
96378
96389
|
className: "w-5 h-5"
|
96379
96390
|
}
|
96380
96391
|
),
|
96381
|
-
/* @__PURE__ */ L.jsx("span", { className: "text-sm", children:
|
96392
|
+
/* @__PURE__ */ L.jsx("span", { className: "text-sm", children: q == null ? void 0 : q.title })
|
96382
96393
|
]
|
96383
96394
|
},
|
96384
96395
|
J
|
@@ -96389,17 +96400,17 @@ const mwt = {
|
|
96389
96400
|
"Markdown"
|
96390
96401
|
),
|
96391
96402
|
/* @__PURE__ */ L.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-1" }),
|
96392
|
-
/* @__PURE__ */ L.jsx("div", { className: "flex gap-1 justify-center items-center", children: h.map((
|
96403
|
+
/* @__PURE__ */ L.jsx("div", { className: "flex gap-1 justify-center items-center", children: h.map((q, J) => q ? /* @__PURE__ */ L.jsx(Mn, { text: q.title, children: /* @__PURE__ */ L.jsx(
|
96393
96404
|
pn,
|
96394
96405
|
{
|
96395
96406
|
className: "disabled:bg-transparent",
|
96396
96407
|
variant: "ghost",
|
96397
|
-
icon:
|
96398
|
-
onClick: () =>
|
96408
|
+
icon: q.icon,
|
96409
|
+
onClick: () => q.onClick(),
|
96399
96410
|
size: "md",
|
96400
|
-
disabled: !
|
96411
|
+
disabled: !q.isActive
|
96401
96412
|
}
|
96402
|
-
) },
|
96413
|
+
) }, q.title) : /* @__PURE__ */ L.jsx(
|
96403
96414
|
"div",
|
96404
96415
|
{
|
96405
96416
|
className: "w-[1px] h-4 vertical-divider mx-1"
|
@@ -96418,24 +96429,24 @@ const mwt = {
|
|
96418
96429
|
{
|
96419
96430
|
className: "bg-transparent hover:!color-bg-default-hover rounded p-2 flex items-center justify-center gap-2 w-20",
|
96420
96431
|
onClick: () => {
|
96421
|
-
N((
|
96432
|
+
N((q) => !q), b(!1);
|
96422
96433
|
},
|
96423
96434
|
children: [
|
96424
|
-
/* @__PURE__ */ L.jsx("span", { className: "text-body-sm line-clamp-1 w-fit", children: ((_ = A.find((
|
96435
|
+
/* @__PURE__ */ L.jsx("span", { className: "text-body-sm line-clamp-1 w-fit", children: ((_ = A.find((q) => q.value === n)) == null ? void 0 : _.title) || "100%" }),
|
96425
96436
|
/* @__PURE__ */ L.jsx(Ze, { name: "ChevronDown", size: "sm" })
|
96426
96437
|
]
|
96427
96438
|
}
|
96428
96439
|
),
|
96429
|
-
content: /* @__PURE__ */ L.jsx("div", { className: "zoom-level-options w-[110px] text-body-sm scroll-smooth color-bg-default px-1 py-2 shadow-elevation-3 transition-all rounded", children: A.map((
|
96440
|
+
content: /* @__PURE__ */ L.jsx("div", { className: "zoom-level-options w-[110px] text-body-sm scroll-smooth color-bg-default px-1 py-2 shadow-elevation-3 transition-all rounded", children: A.map((q) => /* @__PURE__ */ L.jsx(
|
96430
96441
|
"button",
|
96431
96442
|
{
|
96432
96443
|
className: "hover:color-bg-default-hover h-8 rounded py-1 px-2 w-full text-left flex items-center space-x-2 text-sm color-text-default transition",
|
96433
96444
|
onClick: () => {
|
96434
|
-
r(
|
96445
|
+
r(q.value), N(!1);
|
96435
96446
|
},
|
96436
|
-
children:
|
96447
|
+
children: q.title
|
96437
96448
|
},
|
96438
|
-
|
96449
|
+
q.title
|
96439
96450
|
)) })
|
96440
96451
|
},
|
96441
96452
|
"zoom-levels"
|
@@ -96455,12 +96466,12 @@ const mwt = {
|
|
96455
96466
|
{
|
96456
96467
|
className: "text-body-sm line-clamp-1",
|
96457
96468
|
style: {
|
96458
|
-
fontFamily: (
|
96459
|
-
(
|
96460
|
-
)) == null ? void 0 :
|
96469
|
+
fontFamily: (U = J9.find(
|
96470
|
+
(q) => t == null ? void 0 : t.isActive("textStyle", { fontFamily: q.value })
|
96471
|
+
)) == null ? void 0 : U.value
|
96461
96472
|
},
|
96462
96473
|
children: ((Z = J9.find(
|
96463
|
-
(
|
96474
|
+
(q) => t == null ? void 0 : t.isActive("textStyle", { fontFamily: q.value })
|
96464
96475
|
)) == null ? void 0 : Z.title) || "Font"
|
96465
96476
|
}
|
96466
96477
|
),
|
@@ -96507,15 +96518,15 @@ const mwt = {
|
|
96507
96518
|
),
|
96508
96519
|
/* @__PURE__ */ L.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-1" }),
|
96509
96520
|
/* @__PURE__ */ L.jsxs("div", { className: "flex gap-2 justify-center items-center", children: [
|
96510
|
-
f.map((
|
96521
|
+
f.map((q, J) => q ? q.title === "Highlight" || q.title === "Text Color" || q.title === "Alignment" || q.title === "Link" ? /* @__PURE__ */ L.jsx(
|
96511
96522
|
ki,
|
96512
96523
|
{
|
96513
|
-
align:
|
96514
|
-
anchorTrigger: /* @__PURE__ */ L.jsx(Mn, { text:
|
96515
|
-
content: P(
|
96524
|
+
align: q.title === "Link" ? "end" : "center",
|
96525
|
+
anchorTrigger: /* @__PURE__ */ L.jsx(Mn, { text: q.title, children: /* @__PURE__ */ L.jsx(pn, { icon: q.icon, variant: "ghost", size: "md" }) }),
|
96526
|
+
content: P(q)
|
96516
96527
|
},
|
96517
|
-
|
96518
|
-
) :
|
96528
|
+
q.title
|
96529
|
+
) : q.group === "More" && w ? f.findIndex((ae) => (ae == null ? void 0 : ae.group) === "More") === J ? /* @__PURE__ */ L.jsx(
|
96519
96530
|
ki,
|
96520
96531
|
{
|
96521
96532
|
align: "end",
|
@@ -96532,14 +96543,14 @@ const mwt = {
|
|
96532
96543
|
)) })
|
96533
96544
|
},
|
96534
96545
|
"more-dropdown"
|
96535
|
-
) : null : /* @__PURE__ */ L.jsx(Mn, { text:
|
96546
|
+
) : null : /* @__PURE__ */ L.jsx(Mn, { text: q.title, children: /* @__PURE__ */ L.jsx(
|
96536
96547
|
vr,
|
96537
96548
|
{
|
96538
|
-
icon:
|
96539
|
-
onClick:
|
96540
|
-
isActive:
|
96549
|
+
icon: q.icon,
|
96550
|
+
onClick: q.onClick,
|
96551
|
+
isActive: q.isActive
|
96541
96552
|
}
|
96542
|
-
) },
|
96553
|
+
) }, q.title) : /* @__PURE__ */ L.jsx(
|
96543
96554
|
"div",
|
96544
96555
|
{
|
96545
96556
|
className: "w-[1px] h-4 vertical-divider mx-1"
|
@@ -96557,7 +96568,7 @@ const mwt = {
|
|
96557
96568
|
{
|
96558
96569
|
label: "Filename",
|
96559
96570
|
value: x,
|
96560
|
-
onChange: (
|
96571
|
+
onChange: (q) => M(q.target.value),
|
96561
96572
|
placeholder: "Enter filename"
|
96562
96573
|
}
|
96563
96574
|
),
|
@@ -96583,7 +96594,7 @@ const mwt = {
|
|
96583
96594
|
size: "md",
|
96584
96595
|
variant: "ghost",
|
96585
96596
|
icon: i ? "ChevronUp" : "ChevronDown",
|
96586
|
-
onClick: () => a((
|
96597
|
+
onClick: () => a((q) => !q)
|
96587
96598
|
}
|
96588
96599
|
)
|
96589
96600
|
] })
|
@@ -102923,7 +102934,7 @@ var L$ = { exports: {} };
|
|
102923
102934
|
return ne(this, I, O);
|
102924
102935
|
case "utf8":
|
102925
102936
|
case "utf-8":
|
102926
|
-
return
|
102937
|
+
return q(this, I, O);
|
102927
102938
|
case "ascii":
|
102928
102939
|
return G(this, I, O);
|
102929
102940
|
case "latin1":
|
@@ -103003,13 +103014,13 @@ var L$ = { exports: {} };
|
|
103003
103014
|
function _(C, I, O, Q) {
|
103004
103015
|
return ee(ve(I), C, O, Q);
|
103005
103016
|
}
|
103006
|
-
function
|
103017
|
+
function U(C, I, O, Q) {
|
103007
103018
|
return ee(Me(I, C.length - O), C, O, Q);
|
103008
103019
|
}
|
103009
103020
|
function Z(C, I, O) {
|
103010
103021
|
return I === 0 && O === C.length ? ie.fromByteArray(C) : ie.fromByteArray(C.slice(I, O));
|
103011
103022
|
}
|
103012
|
-
function
|
103023
|
+
function q(C, I, O) {
|
103013
103024
|
O = c(C.length, O);
|
103014
103025
|
for (var Q = [], le = I; le < O; ) {
|
103015
103026
|
var ce = C[le], je = null, Be = 239 < ce ? 4 : 223 < ce ? 3 : 191 < ce ? 2 : 1;
|
@@ -103214,7 +103225,7 @@ var L$ = { exports: {} };
|
|
103214
103225
|
return this;
|
103215
103226
|
}, d.prototype.toString = function() {
|
103216
103227
|
var C = this.length;
|
103217
|
-
return C === 0 ? "" : arguments.length === 0 ?
|
103228
|
+
return C === 0 ? "" : arguments.length === 0 ? q(this, 0, C) : M.apply(this, arguments);
|
103218
103229
|
}, d.prototype.toLocaleString = d.prototype.toString, d.prototype.equals = function(C) {
|
103219
103230
|
if (!d.isBuffer(C)) throw new TypeError("Argument must be a Buffer");
|
103220
103231
|
return this === C || d.compare(this, C) === 0;
|
@@ -103264,7 +103275,7 @@ var L$ = { exports: {} };
|
|
103264
103275
|
case "ucs-2":
|
103265
103276
|
case "utf16le":
|
103266
103277
|
case "utf-16le":
|
103267
|
-
return
|
103278
|
+
return U(this, C, I, O);
|
103268
103279
|
default:
|
103269
103280
|
if (ce) throw new TypeError("Unknown encoding: " + Q);
|
103270
103281
|
Q = ("" + Q).toLowerCase(), ce = !0;
|
@@ -103556,12 +103567,12 @@ var L$ = { exports: {} };
|
|
103556
103567
|
return D._maxListeners === void 0 ? l.defaultMaxListeners : D._maxListeners;
|
103557
103568
|
}
|
103558
103569
|
function d(D, P, B, V) {
|
103559
|
-
var _,
|
103560
|
-
if (c(B),
|
103561
|
-
else if (typeof Z == "function" ? Z =
|
103570
|
+
var _, U, Z;
|
103571
|
+
if (c(B), U = D._events, U === void 0 ? (U = D._events = /* @__PURE__ */ Object.create(null), D._eventsCount = 0) : (U.newListener !== void 0 && (D.emit("newListener", P, B.listener ? B.listener : B), U = D._events), Z = U[P]), Z === void 0) Z = U[P] = B, ++D._eventsCount;
|
103572
|
+
else if (typeof Z == "function" ? Z = U[P] = V ? [B, Z] : [Z, B] : V ? Z.unshift(B) : Z.push(B), _ = u(D), 0 < _ && Z.length > _ && !Z.warned) {
|
103562
103573
|
Z.warned = !0;
|
103563
|
-
var
|
103564
|
-
|
103574
|
+
var q = new Error("Possible EventEmitter memory leak detected. " + Z.length + " " + (P + " listeners added. Use emitter.setMaxListeners() to increase limit"));
|
103575
|
+
q.name = "MaxListenersExceededWarning", q.emitter = D, q.type = P, q.count = Z.length, s(q);
|
103565
103576
|
}
|
103566
103577
|
return D;
|
103567
103578
|
}
|
@@ -103604,8 +103615,8 @@ var L$ = { exports: {} };
|
|
103604
103615
|
}
|
103605
103616
|
function w(D, P, B, V) {
|
103606
103617
|
if (typeof D.on == "function") V.once ? D.once(P, B) : D.on(P, B);
|
103607
|
-
else if (typeof D.addEventListener == "function") D.addEventListener(P, function _(
|
103608
|
-
V.once && D.removeEventListener(P, _), B(
|
103618
|
+
else if (typeof D.addEventListener == "function") D.addEventListener(P, function _(U) {
|
103619
|
+
V.once && D.removeEventListener(P, _), B(U);
|
103609
103620
|
});
|
103610
103621
|
else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof D);
|
103611
103622
|
}
|
@@ -103623,12 +103634,12 @@ var L$ = { exports: {} };
|
|
103623
103634
|
o.exports = l, o.exports.once = function(D, P) {
|
103624
103635
|
return new Promise(function(B, V) {
|
103625
103636
|
function _(Z) {
|
103626
|
-
D.removeListener(P,
|
103637
|
+
D.removeListener(P, U), V(Z);
|
103627
103638
|
}
|
103628
|
-
function
|
103639
|
+
function U() {
|
103629
103640
|
typeof D.removeListener == "function" && D.removeListener("error", _), B([].slice.call(arguments));
|
103630
103641
|
}
|
103631
|
-
w(D, P,
|
103642
|
+
w(D, P, U, { once: !0 }), P !== "error" && b(D, _, { once: !0 });
|
103632
103643
|
});
|
103633
103644
|
}, l.EventEmitter = l, l.prototype._events = void 0, l.prototype._eventsCount = 0, l.prototype._maxListeners = void 0;
|
103634
103645
|
var N = 10;
|
@@ -103650,15 +103661,15 @@ var L$ = { exports: {} };
|
|
103650
103661
|
if (_ !== void 0) V = V && _.error === void 0;
|
103651
103662
|
else if (!V) return !1;
|
103652
103663
|
if (V) {
|
103653
|
-
var
|
103654
|
-
if (0 < P.length && (
|
103655
|
-
var Z = new Error("Unhandled error." + (
|
103656
|
-
throw Z.context =
|
103664
|
+
var U;
|
103665
|
+
if (0 < P.length && (U = P[0]), U instanceof Error) throw U;
|
103666
|
+
var Z = new Error("Unhandled error." + (U ? " (" + U.message + ")" : ""));
|
103667
|
+
throw Z.context = U, Z;
|
103657
103668
|
}
|
103658
|
-
var
|
103659
|
-
if (
|
103660
|
-
if (typeof
|
103661
|
-
else for (var J =
|
103669
|
+
var q = _[D];
|
103670
|
+
if (q === void 0) return !1;
|
103671
|
+
if (typeof q == "function") A(q, this, P);
|
103672
|
+
else for (var J = q.length, G = g(q, J), B = 0; B < J; ++B) A(G[B], this, P);
|
103662
103673
|
return !0;
|
103663
103674
|
}, l.prototype.addListener = function(D, P) {
|
103664
103675
|
return d(this, D, P, !1);
|
@@ -103669,13 +103680,13 @@ var L$ = { exports: {} };
|
|
103669
103680
|
}, l.prototype.prependOnceListener = function(D, P) {
|
103670
103681
|
return c(P), this.prependListener(D, h(this, D, P)), this;
|
103671
103682
|
}, l.prototype.removeListener = function(D, P) {
|
103672
|
-
var B, V, _,
|
103683
|
+
var B, V, _, U, Z;
|
103673
103684
|
if (c(P), V = this._events, V === void 0) return this;
|
103674
103685
|
if (B = V[D], B === void 0) return this;
|
103675
103686
|
if (B === P || B.listener === P) --this._eventsCount == 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete V[D], V.removeListener && this.emit("removeListener", D, B.listener || P));
|
103676
103687
|
else if (typeof B != "function") {
|
103677
|
-
for (_ = -1,
|
103678
|
-
Z = B[
|
103688
|
+
for (_ = -1, U = B.length - 1; 0 <= U; U--) if (B[U] === P || B[U].listener === P) {
|
103689
|
+
Z = B[U].listener, _ = U;
|
103679
103690
|
break;
|
103680
103691
|
}
|
103681
103692
|
if (0 > _) return this;
|
@@ -103687,8 +103698,8 @@ var L$ = { exports: {} };
|
|
103687
103698
|
if (B = this._events, B === void 0) return this;
|
103688
103699
|
if (B.removeListener === void 0) return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : B[D] !== void 0 && (--this._eventsCount == 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete B[D]), this;
|
103689
103700
|
if (arguments.length === 0) {
|
103690
|
-
var _,
|
103691
|
-
for (V = 0; V <
|
103701
|
+
var _, U = Object.keys(B);
|
103702
|
+
for (V = 0; V < U.length; ++V) _ = U[V], _ !== "removeListener" && this.removeAllListeners(_);
|
103692
103703
|
return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
|
103693
103704
|
}
|
103694
103705
|
if (P = B[D], typeof P == "function") this.removeListener(D, P);
|
@@ -104081,7 +104092,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
104081
104092
|
var I;
|
104082
104093
|
return C.objectMode ? I = C.buffer.shift() : !F || F >= C.length ? (I = C.decoder ? C.buffer.join("") : C.buffer.length === 1 ? C.buffer.first() : C.buffer.concat(C.length), C.buffer.clear()) : I = C.buffer.consume(F, C.decoder), I;
|
104083
104094
|
}
|
104084
|
-
function
|
104095
|
+
function U(F) {
|
104085
104096
|
var C = F._readableState;
|
104086
104097
|
G("endReadable", C.endEmitted), C.endEmitted || (C.ended = !0, s.nextTick(Z, C, F));
|
104087
104098
|
}
|
@@ -104091,7 +104102,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
104091
104102
|
(!I || I.autoDestroy && I.finished) && C.destroy();
|
104092
104103
|
}
|
104093
104104
|
}
|
104094
|
-
function
|
104105
|
+
function q(F, C) {
|
104095
104106
|
for (var I = 0, O = F.length; I < O; I++) if (F[I] === C) return I;
|
104096
104107
|
return -1;
|
104097
104108
|
}
|
@@ -104131,12 +104142,12 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
104131
104142
|
}, h.prototype.read = function(F) {
|
104132
104143
|
G("read", F), F = parseInt(F, 10);
|
104133
104144
|
var C = this._readableState, I = F;
|
104134
|
-
if (F !== 0 && (C.emittedReadable = !1), F === 0 && C.needReadable && ((C.highWaterMark === 0 ? 0 < C.length : C.length >= C.highWaterMark) || C.ended)) return G("read: emitReadable", C.length, C.ended), C.length === 0 && C.ended ?
|
104135
|
-
if (F = k(F, C), F === 0 && C.ended) return C.length === 0 &&
|
104145
|
+
if (F !== 0 && (C.emittedReadable = !1), F === 0 && C.needReadable && ((C.highWaterMark === 0 ? 0 < C.length : C.length >= C.highWaterMark) || C.ended)) return G("read: emitReadable", C.length, C.ended), C.length === 0 && C.ended ? U(this) : w(this), null;
|
104146
|
+
if (F = k(F, C), F === 0 && C.ended) return C.length === 0 && U(this), null;
|
104136
104147
|
var O = C.needReadable;
|
104137
104148
|
G("need readable", O), (C.length === 0 || C.length - F < C.highWaterMark) && (O = !0, G("length less than watermark", O)), C.ended || C.reading ? (O = !1, G("reading or ended", O)) : O && (G("do read"), C.reading = !0, C.sync = !0, C.length === 0 && (C.needReadable = !0), this._read(C.highWaterMark), C.sync = !1, !C.reading && (F = k(I, C)));
|
104138
104149
|
var Q;
|
104139
|
-
return Q = 0 < F ? _(F, C) : null, Q === null ? (C.needReadable = C.length <= C.highWaterMark, F = 0) : (C.length -= F, C.awaitDrain = 0), C.length === 0 && (!C.ended && (C.needReadable = !0), I !== F && C.ended &&
|
104150
|
+
return Q = 0 < F ? _(F, C) : null, Q === null ? (C.needReadable = C.length <= C.highWaterMark, F = 0) : (C.length -= F, C.awaitDrain = 0), C.length === 0 && (!C.ended && (C.needReadable = !0), I !== F && C.ended && U(this)), Q !== null && this.emit("data", Q), Q;
|
104140
104151
|
}, h.prototype._read = function() {
|
104141
104152
|
ie(this, new Y("_read()"));
|
104142
104153
|
}, h.prototype.pipe = function(F, C) {
|
@@ -104152,7 +104163,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
104152
104163
|
function le(ke) {
|
104153
104164
|
G("ondata");
|
104154
104165
|
var Pe = F.write(ke);
|
104155
|
-
G("dest.write", Pe), Pe === !1 && ((st.pipesCount === 1 && st.pipes === F || 1 < st.pipesCount &&
|
104166
|
+
G("dest.write", Pe), Pe === !1 && ((st.pipesCount === 1 && st.pipes === F || 1 < st.pipesCount && q(st.pipes, F) !== -1) && !Ae && (G("false write response, pause", st.awaitDrain), st.awaitDrain++), tt.pause());
|
104156
104167
|
}
|
104157
104168
|
function ce(ke) {
|
104158
104169
|
G("onerror", ke), $e(), F.removeListener("error", ce), ae(F, "error") === 0 && ie(F, ke);
|
@@ -104194,7 +104205,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
104194
104205
|
for (var le = 0; le < Q; le++) O[le].emit("unpipe", this, { hasUnpiped: !1 });
|
104195
104206
|
return this;
|
104196
104207
|
}
|
104197
|
-
var ce =
|
104208
|
+
var ce = q(C.pipes, F);
|
104198
104209
|
return ce === -1 ? this : (C.pipes.splice(ce, 1), C.pipesCount -= 1, C.pipesCount === 1 && (C.pipes = C.pipes[0]), F.emit("unpipe", this, I), this);
|
104199
104210
|
}, h.prototype.on = function(F, C) {
|
104200
104211
|
var I = ne.prototype.on.call(this, F, C), O = this._readableState;
|
@@ -104300,7 +104311,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
104300
104311
|
function c(Y) {
|
104301
104312
|
var $ = this;
|
104302
104313
|
this.next = null, this.entry = null, this.finish = function() {
|
104303
|
-
|
104314
|
+
U($, Y);
|
104304
104315
|
};
|
104305
104316
|
}
|
104306
104317
|
function u(Y) {
|
@@ -104411,7 +104422,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
104411
104422
|
function _(Y, $, ie) {
|
104412
104423
|
$.ending = !0, V(Y, $), ie && ($.finished ? s.nextTick(ie) : Y.once("finish", ie)), $.ended = !0, Y.writable = !1;
|
104413
104424
|
}
|
104414
|
-
function
|
104425
|
+
function U(Y, $, ie) {
|
104415
104426
|
var ye = Y.entry;
|
104416
104427
|
for (Y.entry = null; ye; ) {
|
104417
104428
|
var F = ye.callback;
|
@@ -104422,14 +104433,14 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
104422
104433
|
o.exports = p;
|
104423
104434
|
var Z;
|
104424
104435
|
p.WritableState = h;
|
104425
|
-
var
|
104436
|
+
var q = { deprecate: a("util-deprecate") }, J = a("./internal/streams/stream"), G = a("buffer").Buffer, ae = l.Uint8Array || function() {
|
104426
104437
|
}, ne = a("./internal/streams/destroy"), oe = a("./internal/streams/state"), ue = oe.getHighWaterMark, pe = a("../errors").codes, se = pe.ERR_INVALID_ARG_TYPE, K = pe.ERR_METHOD_NOT_IMPLEMENTED, xe = pe.ERR_MULTIPLE_CALLBACK, de = pe.ERR_STREAM_CANNOT_PIPE, Le = pe.ERR_STREAM_DESTROYED, ge = pe.ERR_STREAM_NULL_VALUES, me = pe.ERR_STREAM_WRITE_AFTER_END, Me = pe.ERR_UNKNOWN_ENCODING, ve = ne.errorOrDestroy;
|
104427
104438
|
a("inherits")(p, J), h.prototype.getBuffer = function() {
|
104428
104439
|
for (var Y = this.bufferedRequest, $ = []; Y; ) $.push(Y), Y = Y.next;
|
104429
104440
|
return $;
|
104430
104441
|
}, function() {
|
104431
104442
|
try {
|
104432
|
-
Object.defineProperty(h.prototype, "buffer", { get:
|
104443
|
+
Object.defineProperty(h.prototype, "buffer", { get: q.deprecate(function() {
|
104433
104444
|
return this.getBuffer();
|
104434
104445
|
}, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") });
|
104435
104446
|
} catch {
|
@@ -109029,12 +109040,12 @@ function lAt({
|
|
109029
109040
|
// <>
|
109030
109041
|
];
|
109031
109042
|
for (let B = 0; B < P.length; B++) {
|
109032
|
-
const [V, _] = P[B],
|
109033
|
-
qe(M, V,
|
109043
|
+
const [V, _] = P[B], U = qe(x, V);
|
109044
|
+
qe(M, V, U), qe(U, _, x);
|
109034
109045
|
const Z = ca(Gm);
|
109035
|
-
Ht(
|
109036
|
-
const
|
109037
|
-
Ht(
|
109046
|
+
Ht(U, e, Z);
|
109047
|
+
const q = ca();
|
109048
|
+
Ht(U, n), Ht(Z, e, Z), Ht(Z, n, q), Ht(q, e, Z), Ht(q, n, q), qe(Z, _, x), qe(q, _, x);
|
109038
109049
|
}
|
109039
109050
|
return qe(i, T2, k), qe(i, OA, sAt), {
|
109040
109051
|
start: i,
|
@@ -109876,11 +109887,11 @@ const lQ = ({
|
|
109876
109887
|
setTimeout(() => {
|
109877
109888
|
P(oe, Math.abs(ne)), P0 = ae;
|
109878
109889
|
});
|
109879
|
-
}, [V, _] = Ne(), [
|
109890
|
+
}, [V, _] = Ne(), [U, Z] = Ne();
|
109880
109891
|
Ie(() => {
|
109881
109892
|
a(t.attrs["media-type"]), w(), _(t.attrs.dataFloat), Z(t.attrs.dataAlign);
|
109882
109893
|
}, [t.attrs]);
|
109883
|
-
const
|
109894
|
+
const q = (ae) => {
|
109884
109895
|
ae.stopPropagation(), b.current = {
|
109885
109896
|
x: ae.touches[0].clientX,
|
109886
109897
|
y: ae.touches[0].clientY
|
@@ -109907,7 +109918,7 @@ const lQ = ({
|
|
109907
109918
|
className: Lt(
|
109908
109919
|
"media-node-view not-prose transition-all ease-in-out w-full",
|
109909
109920
|
V && `f-${t.attrs.dataFloat}`,
|
109910
|
-
|
109921
|
+
U && `justify-${t.attrs.dataAlign}`
|
109911
109922
|
),
|
109912
109923
|
children: /* @__PURE__ */ L.jsxs(
|
109913
109924
|
"div",
|
@@ -109918,7 +109929,7 @@ const lQ = ({
|
|
109918
109929
|
"w-fit flex flex-col relative group transition-all ease-in-out",
|
109919
109930
|
m && "opacity-50"
|
109920
109931
|
),
|
109921
|
-
onTouchStart:
|
109932
|
+
onTouchStart: q,
|
109922
109933
|
onTouchMove: J,
|
109923
109934
|
onTouchEnd: G,
|
109924
109935
|
onTouchCancel: G,
|
@@ -110981,7 +110992,7 @@ const CSt = (t) => ({
|
|
110981
110992
|
});
|
110982
110993
|
}, mQ = ({ tweet: t, components: e }) => {
|
110983
110994
|
var n;
|
110984
|
-
const r =
|
110995
|
+
const r = qt(() => CSt(t), [
|
110985
110996
|
t
|
110986
110997
|
]);
|
110987
110998
|
return /* @__PURE__ */ L.jsxs(ZA, {
|
@@ -111512,7 +111523,7 @@ const Ev = Ce.use || // This extra generic is to avoid TypeScript mixing up the
|
|
111512
111523
|
}), jv = {
|
111513
111524
|
dedupe: !0
|
111514
111525
|
}, yTt = (t, e, n) => {
|
111515
|
-
const { cache: r, compare: i, suspense: a, fallbackData: o, revalidateOnMount: s, revalidateIfStale: l, refreshInterval: c, refreshWhenHidden: u, refreshWhenOffline: d, keepPreviousData: f } = n, [h, p, m, g] = Es.get(r), [v, k] = YA(t), b = Ve(!1), w = Ve(!1), x = Ve(v), M = Ve(e), A = Ve(n), S = () => A.current, N = () => S().isVisible() && S().isOnline(), [D, P, B, V] = wQ(r, v), _ = Ve({}).current,
|
111526
|
+
const { cache: r, compare: i, suspense: a, fallbackData: o, revalidateOnMount: s, revalidateIfStale: l, refreshInterval: c, refreshWhenHidden: u, refreshWhenOffline: d, keepPreviousData: f } = n, [h, p, m, g] = Es.get(r), [v, k] = YA(t), b = Ve(!1), w = Ve(!1), x = Ve(v), M = Ve(e), A = Ve(n), S = () => A.current, N = () => S().isVisible() && S().isOnline(), [D, P, B, V] = wQ(r, v), _ = Ve({}).current, U = nn(o) ? nn(n.fallback) ? ii : n.fallback[v] : o, Z = (ve, ee) => {
|
111516
111527
|
for (const Y in _) {
|
111517
111528
|
const $ = Y;
|
111518
111529
|
if ($ === "data") {
|
@@ -111522,7 +111533,7 @@ const Ev = Ce.use || // This extra generic is to avoid TypeScript mixing up the
|
|
111522
111533
|
return !1;
|
111523
111534
|
}
|
111524
111535
|
return !0;
|
111525
|
-
},
|
111536
|
+
}, q = qt(() => {
|
111526
111537
|
const ve = !v || !e ? !1 : nn(s) ? S().isPaused() || a ? !1 : l !== !1 : s, ee = (C) => {
|
111527
111538
|
const I = bc(C);
|
111528
111539
|
return delete I._k, ve ? {
|
@@ -111551,7 +111562,7 @@ const Ev = Ce.use || // This extra generic is to avoid TypeScript mixing up the
|
|
111551
111562
|
r,
|
111552
111563
|
v
|
111553
111564
|
]
|
111554
|
-
),
|
111565
|
+
), q[0], q[1]), G = !b.current, ae = h[v] && h[v].length > 0, ne = J.data, oe = nn(ne) ? U && bQ(U) ? Ev(U) : U : ne, ue = J.error, pe = Ve(oe), se = f ? nn(ne) ? nn(pe.current) ? oe : pe.current : ne : oe, K = ae && !nn(ue) ? !1 : G && !nn(s) ? s : S().isPaused() ? !1 : a ? nn(oe) ? !1 : l : nn(oe) || l, xe = !!(v && e && G && K), de = nn(J.isValidating) ? xe : J.isValidating, Le = nn(J.isLoading) ? xe : J.isLoading, ge = ht(
|
111555
111566
|
async (ve) => {
|
111556
111567
|
const ee = M.current;
|
111557
111568
|
if (!v || !ee || w.current || S().isPaused())
|
@@ -113305,7 +113316,7 @@ const Ao = (t) => {
|
|
113305
113316
|
}
|
113306
113317
|
], iz = (t, e, n, r, i) => /* @__PURE__ */ L.jsxs(dx, { className: "template-buttons space-x-0 gap-2 absolute top-8 left-0 md:!left-[unset] md:-translate-y-1 md:!right-0 md:!top-0 z-40", children: [
|
113307
113318
|
t.map((a, o) => /* @__PURE__ */ L.jsxs(
|
113308
|
-
|
113319
|
+
Ut,
|
113309
113320
|
{
|
113310
113321
|
onClick: a.onClick,
|
113311
113322
|
variant: "ghost",
|
@@ -113323,7 +113334,7 @@ const Ao = (t) => {
|
|
113323
113334
|
align: "end",
|
113324
113335
|
sideOffset: 10,
|
113325
113336
|
anchorTrigger: /* @__PURE__ */ L.jsx(
|
113326
|
-
|
113337
|
+
Ut,
|
113327
113338
|
{
|
113328
113339
|
variant: "ghost",
|
113329
113340
|
className: "gap-2 color-bg-default-hover text-body-sm color-text-default rounded-lg hover:brightness-95 transition-all w-full min-w-0 !p-[10px]",
|
@@ -113332,7 +113343,7 @@ const Ao = (t) => {
|
|
113332
113343
|
),
|
113333
113344
|
content: /* @__PURE__ */ L.jsxs("div", { className: "flex flex-col gap-1 p-2 w-[12rem]", children: [
|
113334
113345
|
/* @__PURE__ */ L.jsx("div", { className: "max-h-44 overflow-auto gap-1 flex flex-col", children: e.slice(0, n).map((a, o) => /* @__PURE__ */ L.jsxs(
|
113335
|
-
|
113346
|
+
Ut,
|
113336
113347
|
{
|
113337
113348
|
onClick: a.onClick,
|
113338
113349
|
variant: "ghost",
|
@@ -113346,7 +113357,7 @@ const Ao = (t) => {
|
|
113346
113357
|
)) }),
|
113347
113358
|
/* @__PURE__ */ L.jsx(Yu, { className: "w-full !border-t-[1px]" }),
|
113348
113359
|
/* @__PURE__ */ L.jsxs(
|
113349
|
-
|
113360
|
+
Ut,
|
113350
113361
|
{
|
113351
113362
|
variant: "ghost",
|
113352
113363
|
className: "justify-between gap-2 text-body-sm color-text-default min-w-fit px-2 rounded-lg",
|
@@ -113378,7 +113389,7 @@ const Ao = (t) => {
|
|
113378
113389
|
}) => {
|
113379
113390
|
const [e, n] = Ne(
|
113380
113391
|
/* @__PURE__ */ new Set()
|
113381
|
-
), r =
|
113392
|
+
), r = qt(
|
113382
113393
|
() => ({
|
113383
113394
|
collapsedHeadings: e,
|
113384
113395
|
setCollapsedHeadings: n
|
@@ -113393,18 +113404,18 @@ const Ao = (t) => {
|
|
113393
113404
|
collapsedHeadings: r,
|
113394
113405
|
setCollapsedHeadings: i
|
113395
113406
|
}) => {
|
113396
|
-
const a = Ve(!1), o =
|
113407
|
+
const a = Ve(!1), o = qt(() => {
|
113397
113408
|
var h, p;
|
113398
113409
|
const { content: f } = t.content;
|
113399
113410
|
return ((p = (h = f == null ? void 0 : f[0]) == null ? void 0 : h.type) == null ? void 0 : p.name) === "heading";
|
113400
|
-
}, [t.content]), s =
|
113411
|
+
}, [t.content]), s = qt(() => {
|
113401
113412
|
var p;
|
113402
113413
|
if (!o) return null;
|
113403
113414
|
const { content: f } = t.content, h = f == null ? void 0 : f[0];
|
113404
113415
|
return ((p = h == null ? void 0 : h.attrs) == null ? void 0 : p.id) || `heading-${e()}`;
|
113405
|
-
}, [o, t.content, e]), l =
|
113406
|
-
var x, M, A, S, N, D, P, B, V, _,
|
113407
|
-
const f = e(), { doc: h } = n.state, p = ((A = (M = (x = t.content) == null ? void 0 : x.content) == null ? void 0 : M[0]) == null ? void 0 : A.type.name) === "paragraph" && (!((B = (P = (D = (N = (S = t.content) == null ? void 0 : S.content) == null ? void 0 : N[0]) == null ? void 0 : D.content) == null ? void 0 : P.content) != null && B.length) || ((
|
113416
|
+
}, [o, t.content, e]), l = qt(() => s ? r.has(s) : !1, [s, r]), c = qt(() => {
|
113417
|
+
var x, M, A, S, N, D, P, B, V, _, U, Z, q, J, G, ae, ne, oe, ue, pe, se, K, xe, de, Le;
|
113418
|
+
const f = e(), { doc: h } = n.state, p = ((A = (M = (x = t.content) == null ? void 0 : x.content) == null ? void 0 : M[0]) == null ? void 0 : A.type.name) === "paragraph" && (!((B = (P = (D = (N = (S = t.content) == null ? void 0 : S.content) == null ? void 0 : N[0]) == null ? void 0 : D.content) == null ? void 0 : P.content) != null && B.length) || ((q = (Z = (U = (_ = (V = t.content) == null ? void 0 : V.content) == null ? void 0 : _[0]) == null ? void 0 : U.content) == null ? void 0 : Z.content) == null ? void 0 : q.length) === 1 && !((ue = (oe = (ne = (ae = (G = (J = t.content) == null ? void 0 : J.content) == null ? void 0 : G[0]) == null ? void 0 : ae.content) == null ? void 0 : ne.content) == null ? void 0 : oe[0]) != null && ue.text));
|
113408
113419
|
let m = null, g = f;
|
113409
113420
|
for (; g > 0; ) {
|
113410
113421
|
g--;
|
@@ -113556,7 +113567,7 @@ const Ao = (t) => {
|
|
113556
113567
|
e,
|
113557
113568
|
n.state
|
113558
113569
|
]), d = ht(() => {
|
113559
|
-
var S, N, D, P, B, V, _,
|
113570
|
+
var S, N, D, P, B, V, _, U;
|
113560
113571
|
const { doc: f, selection: h } = n.state, p = e(), m = f.nodeAt(p), g = p + ((m == null ? void 0 : m.nodeSize) || 0) >= f.content.size, v = (m == null ? void 0 : m.type.name) === "dBlock" && ((S = m == null ? void 0 : m.content.firstChild) == null ? void 0 : S.type.name) === "paragraph", k = h.$anchor.pos >= p && h.$anchor.pos <= p + ((m == null ? void 0 : m.nodeSize) || 0);
|
113561
113572
|
let b = null, w = p;
|
113562
113573
|
for (; w > 0; ) {
|
@@ -113567,7 +113578,7 @@ const Ao = (t) => {
|
|
113567
113578
|
break;
|
113568
113579
|
}
|
113569
113580
|
}
|
113570
|
-
const x = (_ = (V = b == null ? void 0 : b.content) == null ? void 0 : V.content) == null ? void 0 : _[0], M = ((
|
113581
|
+
const x = (_ = (V = b == null ? void 0 : b.content) == null ? void 0 : V.content) == null ? void 0 : _[0], M = ((U = x == null ? void 0 : x.attrs) == null ? void 0 : U.id) || `heading-${w}`, A = r.has(M);
|
113571
113582
|
if (g && v && k && A) {
|
113572
113583
|
const Z = n.view.nodeDOM(p);
|
113573
113584
|
Z == null || Z.classList.add("hidden");
|
@@ -113590,18 +113601,18 @@ const Ao = (t) => {
|
|
113590
113601
|
editor: n,
|
113591
113602
|
collapsedHeadings: u,
|
113592
113603
|
setCollapsedHeadings: d
|
113593
|
-
}), g =
|
113604
|
+
}), g = qt(() => {
|
113594
113605
|
const { content: de } = t.content;
|
113595
113606
|
return de[0].type.name === "table";
|
113596
|
-
}, [t.content]), v =
|
113607
|
+
}, [t.content]), v = qt(() => {
|
113597
113608
|
var Le;
|
113598
113609
|
const { content: de } = t.content;
|
113599
113610
|
return (Le = de[0].content.content[0]) == null ? void 0 : Le.text;
|
113600
|
-
}, [t.content]), k =
|
113611
|
+
}, [t.content]), k = qt(() => {
|
113601
113612
|
var Le;
|
113602
113613
|
const { content: de } = t.content;
|
113603
113614
|
return (Le = de[0].content.content[1]) == null ? void 0 : Le.text;
|
113604
|
-
}, [t.content]), b =
|
113615
|
+
}, [t.content]), b = qt(() => {
|
113605
113616
|
const { content: de } = t.content;
|
113606
113617
|
return de[0].content.content.find(
|
113607
113618
|
(Le) => {
|
@@ -113697,7 +113708,7 @@ const Ao = (t) => {
|
|
113697
113708
|
Ie(() => {
|
113698
113709
|
v && Z();
|
113699
113710
|
}, [v]);
|
113700
|
-
const
|
113711
|
+
const q = qt(() => {
|
113701
113712
|
var ee, Y, $, ie;
|
113702
113713
|
const { doc: de, selection: Le } = n.state, ge = e(), me = de.nodeAt(ge) === de.firstChild, Me = ((ee = de.nodeAt(ge)) == null ? void 0 : ee.type.name) === "dBlock" && (($ = (Y = de.nodeAt(ge)) == null ? void 0 : Y.content.firstChild) == null ? void 0 : $.type.name) === "paragraph", ve = Le.$anchor.pos >= ge && Le.$anchor.pos <= ge + (((ie = de.nodeAt(ge)) == null ? void 0 : ie.nodeSize) || 0);
|
113703
113714
|
return de.textContent === "" && me && Me && ve;
|
@@ -113722,7 +113733,7 @@ const Ao = (t) => {
|
|
113722
113733
|
"invalid-content": (K = t.attrs) == null ? void 0 : K.isCorrupted,
|
113723
113734
|
"pointer-events-none": l
|
113724
113735
|
}),
|
113725
|
-
children:
|
113736
|
+
children: q && !l && iz(
|
113726
113737
|
G,
|
113727
113738
|
ae,
|
113728
113739
|
ue,
|
@@ -113839,7 +113850,7 @@ const Ao = (t) => {
|
|
113839
113850
|
className: "z-10 shadow-elevation-3",
|
113840
113851
|
children: /* @__PURE__ */ L.jsxs(tA, { className: "p-2 flex flex-col min-w-[16rem]", children: [
|
113841
113852
|
/* @__PURE__ */ L.jsx(Mm, { asChild: !0, children: /* @__PURE__ */ L.jsxs(
|
113842
|
-
|
113853
|
+
Ut,
|
113843
113854
|
{
|
113844
113855
|
variant: "ghost",
|
113845
113856
|
onClick: s.resetTextFormatting,
|
@@ -113851,7 +113862,7 @@ const Ao = (t) => {
|
|
113851
113862
|
}
|
113852
113863
|
) }),
|
113853
113864
|
/* @__PURE__ */ L.jsx(Mm, { asChild: !0, children: /* @__PURE__ */ L.jsxs(
|
113854
|
-
|
113865
|
+
Ut,
|
113855
113866
|
{
|
113856
113867
|
variant: "ghost",
|
113857
113868
|
onClick: s.copyNodeToClipboard,
|
@@ -113863,7 +113874,7 @@ const Ao = (t) => {
|
|
113863
113874
|
}
|
113864
113875
|
) }),
|
113865
113876
|
/* @__PURE__ */ L.jsx(Mm, { asChild: !0, children: /* @__PURE__ */ L.jsxs(
|
113866
|
-
|
113877
|
+
Ut,
|
113867
113878
|
{
|
113868
113879
|
variant: "ghost",
|
113869
113880
|
onClick: s.duplicateNode,
|
@@ -113875,7 +113886,7 @@ const Ao = (t) => {
|
|
113875
113886
|
}
|
113876
113887
|
) }),
|
113877
113888
|
/* @__PURE__ */ L.jsx(Mm, { asChild: !0, children: /* @__PURE__ */ L.jsxs(
|
113878
|
-
|
113889
|
+
Ut,
|
113879
113890
|
{
|
113880
113891
|
variant: "ghost",
|
113881
113892
|
onClick: s.deleteNode,
|
@@ -113930,7 +113941,7 @@ const Ao = (t) => {
|
|
113930
113941
|
"invalid-content": (xe = t.attrs) == null ? void 0 : xe.isCorrupted,
|
113931
113942
|
"pointer-events-none": l
|
113932
113943
|
}),
|
113933
|
-
children:
|
113944
|
+
children: q && !l && iz(
|
113934
113945
|
G,
|
113935
113946
|
ae,
|
113936
113947
|
ue,
|
@@ -114051,7 +114062,7 @@ const Ao = (t) => {
|
|
114051
114062
|
}
|
114052
114063
|
},
|
114053
114064
|
Backspace: ({ editor: t }) => {
|
114054
|
-
var
|
114065
|
+
var h;
|
114055
114066
|
const {
|
114056
114067
|
selection: { $head: e, from: n, to: r },
|
114057
114068
|
doc: i
|
@@ -114061,72 +114072,72 @@ const Ao = (t) => {
|
|
114061
114072
|
const a = e.node(e.depth - 1), o = e.node(e.depth), l = e.start() === n;
|
114062
114073
|
if (n === 2 && n === r)
|
114063
114074
|
return t.chain().deleteNode(this.name).focus().run();
|
114064
|
-
const u = (a == null ? void 0 : a.type.name) === "listItem" || (a == null ? void 0 : a.type.name) === "taskItem", d = (o == null ? void 0 : o.textContent) === "";
|
114075
|
+
const u = (a == null ? void 0 : a.type.name) === "listItem" || (a == null ? void 0 : a.type.name) === "taskItem", d = (a == null ? void 0 : a.type.name) === "taskItem", f = (o == null ? void 0 : o.textContent) === "";
|
114065
114076
|
if ((a == null ? void 0 : a.type.name) !== "dBlock") {
|
114066
|
-
let
|
114067
|
-
if (i.descendants((
|
114068
|
-
if (
|
114069
|
-
|
114070
|
-
}),
|
114077
|
+
let p = !1, m = -1;
|
114078
|
+
if (i.descendants((g, v) => {
|
114079
|
+
if (m !== -1) return !1;
|
114080
|
+
g.type.name === "pageBreak" && v < n && (p = !0, m = v);
|
114081
|
+
}), p && f && n === m + 2)
|
114071
114082
|
return !0;
|
114072
114083
|
if (l && u) {
|
114073
|
-
const
|
114074
|
-
(
|
114075
|
-
),
|
114076
|
-
var
|
114077
|
-
const
|
114078
|
-
if (
|
114079
|
-
const
|
114080
|
-
if (
|
114081
|
-
const
|
114082
|
-
(
|
114083
|
-
|
114084
|
+
const g = n > 4 ? ((h = i.nodeAt(n - 4)) == null ? void 0 : h.type.name) === "dBlock" : !1, v = e.node(e.depth - 2), k = e.index(e.depth - 2) === 0, b = v.childCount === 1, w = o.content.content.some(
|
114085
|
+
(S) => S.type.name === "bulletList" || S.type.name === "orderedList" || S.type.name === "taskList"
|
114086
|
+
), x = n <= 4, M = k && x, A = () => {
|
114087
|
+
var P;
|
114088
|
+
const S = e.node(e.depth - 2), N = e.before(e.depth - 2), D = N + S.nodeSize;
|
114089
|
+
if (S.content && S.content.size > 0) {
|
114090
|
+
const B = S.content.firstChild, V = [];
|
114091
|
+
if (B) {
|
114092
|
+
const _ = ((P = B.content) == null ? void 0 : P.toJSON()) || [], U = _.filter(
|
114093
|
+
(q) => !["bulletList", "orderedList", "taskList"].includes(
|
114094
|
+
q.type
|
114084
114095
|
)
|
114085
114096
|
);
|
114086
|
-
|
114097
|
+
V.push({
|
114087
114098
|
type: "dBlock",
|
114088
|
-
content:
|
114099
|
+
content: U.length > 0 ? U : [
|
114089
114100
|
{
|
114090
114101
|
type: "paragraph"
|
114091
114102
|
}
|
114092
114103
|
]
|
114093
114104
|
});
|
114094
|
-
const
|
114095
|
-
(
|
114096
|
-
|
114105
|
+
const Z = _.filter(
|
114106
|
+
(q) => ["bulletList", "orderedList", "taskList"].includes(
|
114107
|
+
q.type
|
114097
114108
|
)
|
114098
114109
|
);
|
114099
|
-
if (
|
114100
|
-
|
114110
|
+
if (Z && Z.length > 0 && Z.forEach((q) => {
|
114111
|
+
V.push({
|
114101
114112
|
type: "dBlock",
|
114102
|
-
content: [
|
114113
|
+
content: [q]
|
114103
114114
|
});
|
114104
|
-
}),
|
114105
|
-
const
|
114106
|
-
|
114115
|
+
}), S.content.size > 1) {
|
114116
|
+
const q = S.content.toJSON().slice(1);
|
114117
|
+
q.length > 0 && V.push({
|
114107
114118
|
type: "dBlock",
|
114108
114119
|
content: [
|
114109
114120
|
{
|
114110
|
-
type:
|
114111
|
-
content:
|
114121
|
+
type: S.type.name,
|
114122
|
+
content: q
|
114112
114123
|
}
|
114113
114124
|
]
|
114114
114125
|
});
|
114115
114126
|
}
|
114116
114127
|
}
|
114117
|
-
return t.chain().command(({ tr:
|
114118
|
-
if (
|
114119
|
-
|
114120
|
-
S,
|
114128
|
+
return t.chain().command(({ tr: _, dispatch: U }) => {
|
114129
|
+
if (U) {
|
114130
|
+
_.replaceWith(
|
114121
114131
|
N,
|
114132
|
+
D,
|
114122
114133
|
t.schema.nodeFromJSON({
|
114123
114134
|
type: "doc",
|
114124
|
-
content:
|
114135
|
+
content: V
|
114125
114136
|
})
|
114126
114137
|
);
|
114127
|
-
const
|
114128
|
-
|
114129
|
-
pt.create(
|
114138
|
+
const Z = N + 4;
|
114139
|
+
_.setSelection(
|
114140
|
+
pt.create(_.doc, Z)
|
114130
114141
|
);
|
114131
114142
|
}
|
114132
114143
|
return !1;
|
@@ -114134,14 +114145,14 @@ const Ao = (t) => {
|
|
114134
114145
|
}
|
114135
114146
|
return !1;
|
114136
114147
|
};
|
114137
|
-
if (
|
114138
|
-
return
|
114139
|
-
if (
|
114140
|
-
return
|
114141
|
-
if (
|
114142
|
-
return
|
114148
|
+
if (M && n === 4 || f && w)
|
114149
|
+
return A();
|
114150
|
+
if (f && k && !w)
|
114151
|
+
return b ? g ? A() : t.chain().liftListItem(d ? "taskItem" : "listItem").focus().run() : t.chain().deleteNode(d ? "taskItem" : "listItem").focus().run();
|
114152
|
+
if (f && !k)
|
114153
|
+
return w ? A() : t.chain().liftListItem(d ? "taskItem" : "listItem").focus().run();
|
114143
114154
|
if (l)
|
114144
|
-
return
|
114155
|
+
return k && g ? A() : !1;
|
114145
114156
|
}
|
114146
114157
|
}
|
114147
114158
|
return !1;
|
@@ -115866,10 +115877,10 @@ function $Et(t) {
|
|
115866
115877
|
plugins: m && o.data != null ? [].concat(B, [{
|
115867
115878
|
fn: function() {
|
115868
115879
|
return {
|
115869
|
-
onTrigger: function(Z,
|
115880
|
+
onTrigger: function(Z, q) {
|
115870
115881
|
var J = o.data.children.find(function(G) {
|
115871
115882
|
var ae = G.instance;
|
115872
|
-
return ae.reference ===
|
115883
|
+
return ae.reference === q.currentTarget;
|
115873
115884
|
});
|
115874
115885
|
Z.state.$$activeSingletonInstance = J.instance, S(J.content);
|
115875
115886
|
}
|
@@ -115886,16 +115897,16 @@ function $Et(t) {
|
|
115886
115897
|
return zv(function() {
|
115887
115898
|
var _ = l;
|
115888
115899
|
l && l.hasOwnProperty("current") && (_ = l.current);
|
115889
|
-
var
|
115900
|
+
var U = t(_ || N.ref || vz(), Object.assign({}, P, {
|
115890
115901
|
plugins: [JEt].concat(D.plugins || [])
|
115891
115902
|
}));
|
115892
|
-
return N.instance =
|
115893
|
-
instance:
|
115903
|
+
return N.instance = U, u && U.disable(), a && U.show(), m && o.hook({
|
115904
|
+
instance: U,
|
115894
115905
|
content: i,
|
115895
115906
|
props: P,
|
115896
115907
|
setSingletonContent: S
|
115897
115908
|
}), k(!0), function() {
|
115898
|
-
|
115909
|
+
U.destroy(), o == null || o.cleanup(U);
|
115899
115910
|
};
|
115900
115911
|
}, V), zv(function() {
|
115901
115912
|
var _;
|
@@ -115903,9 +115914,9 @@ function $Et(t) {
|
|
115903
115914
|
N.renders++;
|
115904
115915
|
return;
|
115905
115916
|
}
|
115906
|
-
var
|
115907
|
-
|
115908
|
-
instance:
|
115917
|
+
var U = N.instance;
|
115918
|
+
U.setProps(YEt(U.props, P)), (_ = U.popperInstance) == null || _.forceUpdate(), u ? U.disable() : U.enable(), p && (a ? U.show() : U.hide()), m && o.hook({
|
115919
|
+
instance: U,
|
115909
115920
|
content: i,
|
115910
115921
|
props: P,
|
115911
115922
|
setSingletonContent: S
|
@@ -115913,19 +115924,19 @@ function $Et(t) {
|
|
115913
115924
|
}), zv(function() {
|
115914
115925
|
var _;
|
115915
115926
|
if (s) {
|
115916
|
-
var
|
115917
|
-
|
115918
|
-
popperOptions: Object.assign({},
|
115919
|
-
modifiers: [].concat((((_ =
|
115920
|
-
var
|
115921
|
-
return
|
115927
|
+
var U = N.instance;
|
115928
|
+
U.setProps({
|
115929
|
+
popperOptions: Object.assign({}, U.props.popperOptions, {
|
115930
|
+
modifiers: [].concat((((_ = U.props.popperOptions) == null ? void 0 : _.modifiers) || []).filter(function(Z) {
|
115931
|
+
var q = Z.name;
|
115932
|
+
return q !== "$$tippyReact";
|
115922
115933
|
}), [{
|
115923
115934
|
name: "$$tippyReact",
|
115924
115935
|
enabled: !0,
|
115925
115936
|
phase: "beforeWrite",
|
115926
115937
|
requires: ["computeStyles"],
|
115927
|
-
fn: function(
|
115928
|
-
var J, G =
|
115938
|
+
fn: function(q) {
|
115939
|
+
var J, G = q.state, ae = (J = G.modifiersData) == null ? void 0 : J.hide;
|
115929
115940
|
(w.placement !== G.placement || w.referenceHidden !== (ae == null ? void 0 : ae.isReferenceHidden) || w.escaped !== (ae == null ? void 0 : ae.hasPopperEscaped)) && x({
|
115930
115941
|
placement: G.placement,
|
115931
115942
|
referenceHidden: ae == null ? void 0 : ae.isReferenceHidden,
|
@@ -115937,8 +115948,8 @@ function $Et(t) {
|
|
115937
115948
|
});
|
115938
115949
|
}
|
115939
115950
|
}, [w.placement, w.referenceHidden, w.escaped].concat(V)), /* @__PURE__ */ Ce.createElement(Ce.Fragment, null, r ? /* @__PURE__ */ cd(r, {
|
115940
|
-
ref: function(
|
115941
|
-
N.ref =
|
115951
|
+
ref: function(U) {
|
115952
|
+
N.ref = U, Fw(r.ref, U);
|
115942
115953
|
}
|
115943
115954
|
}) : null, v && /* @__PURE__ */ wO(s ? s(ZEt(w), A, N.instance) : i, N.container));
|
115944
115955
|
}
|
@@ -116109,7 +116120,7 @@ const ejt = [
|
|
116109
116120
|
className: "static z-50 top-8 right-1/2 translate-x-1/2 lg:-translate-x-full p-2 shadow-elevation-3 color-bg-default rounded-lg w-56 border color-border-default",
|
116110
116121
|
style: c(),
|
116111
116122
|
children: ejt.map((u) => /* @__PURE__ */ L.jsx("div", { children: /* @__PURE__ */ L.jsx(
|
116112
|
-
|
116123
|
+
Ut,
|
116113
116124
|
{
|
116114
116125
|
variant: "ghost",
|
116115
116126
|
className: "!items-center w-full !justify-start !font-[400]",
|
@@ -118196,10 +118207,10 @@ function LNt(t, e, n, r) {
|
|
118196
118207
|
const w = t.sCount[l] + h - (t.bMarks[l] + t.tShift[l]);
|
118197
118208
|
let x = w;
|
118198
118209
|
for (; a < i; ) {
|
118199
|
-
const
|
118200
|
-
if (
|
118210
|
+
const U = t.src.charCodeAt(a);
|
118211
|
+
if (U === 9)
|
118201
118212
|
x += 4 - (x + t.bsCount[l]) % 4;
|
118202
|
-
else if (
|
118213
|
+
else if (U === 32)
|
118203
118214
|
x++;
|
118204
118215
|
else
|
118205
118216
|
break;
|
@@ -118216,8 +118227,8 @@ function LNt(t, e, n, r) {
|
|
118216
118227
|
if (t.listIndent = t.blkIndent, t.blkIndent = S, t.tight = !0, t.tShift[l] = M - t.bMarks[l], t.sCount[l] = x, M >= i && t.isEmpty(l + 1) ? t.line = Math.min(t.line + 2, n) : t.md.block.tokenize(t, l, n, !0), (!t.tight || v) && (c = !1), v = t.line - l > 1 && t.isEmpty(t.line - 1), t.blkIndent = t.listIndent, t.listIndent = V, t.tShift[l] = P, t.sCount[l] = B, t.tight = D, s = t.push("list_item_close", "li", -1), s.markup = String.fromCharCode(p), l = t.line, N[1] = l, l >= n || t.sCount[l] < t.blkIndent || t.sCount[l] - t.blkIndent >= 4)
|
118217
118228
|
break;
|
118218
118229
|
let _ = !1;
|
118219
|
-
for (let
|
118220
|
-
if (k[
|
118230
|
+
for (let U = 0, Z = k.length; U < Z; U++)
|
118231
|
+
if (k[U](t, l, n, !0)) {
|
118221
118232
|
_ = !0;
|
118222
118233
|
break;
|
118223
118234
|
}
|
@@ -121351,7 +121362,7 @@ function Gzt(t) {
|
|
121351
121362
|
return Zw(t, n);
|
121352
121363
|
};
|
121353
121364
|
}
|
121354
|
-
function
|
121365
|
+
function Gt(t, e) {
|
121355
121366
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Z4;
|
121356
121367
|
Gz && Gz(t, null);
|
121357
121368
|
let r = e.length;
|
@@ -121491,18 +121502,18 @@ function TX() {
|
|
121491
121502
|
MUSTACHE_EXPR: B,
|
121492
121503
|
ERB_EXPR: V,
|
121493
121504
|
TMPLIT_EXPR: _,
|
121494
|
-
DATA_ATTR:
|
121505
|
+
DATA_ATTR: U,
|
121495
121506
|
ARIA_ATTR: Z,
|
121496
|
-
IS_SCRIPT_OR_DATA:
|
121507
|
+
IS_SCRIPT_OR_DATA: q,
|
121497
121508
|
ATTR_WHITESPACE: J,
|
121498
121509
|
CUSTOM_ELEMENT: G
|
121499
121510
|
} = eP;
|
121500
121511
|
let {
|
121501
121512
|
IS_ALLOWED_URI: ae
|
121502
121513
|
} = eP, ne = null;
|
121503
|
-
const oe =
|
121514
|
+
const oe = Gt({}, [...Jz, ...Gv, ...Yv, ...Kv, ...$z]);
|
121504
121515
|
let ue = null;
|
121505
|
-
const pe =
|
121516
|
+
const pe = Gt({}, [...Qz, ...Jv, ...Xz, ...i4]);
|
121506
121517
|
let se = Object.seal(AX(null, {
|
121507
121518
|
tagNameCheck: {
|
121508
121519
|
writable: !0,
|
@@ -121525,15 +121536,15 @@ function TX() {
|
|
121525
121536
|
})), K = null, xe = null, de = !0, Le = !0, ge = !1, me = !0, Me = !1, ve = !0, ee = !1, Y = !1, $ = !1, ie = !1, ye = !1, F = !1, C = !0, I = !1;
|
121526
121537
|
const O = "user-content-";
|
121527
121538
|
let Q = !0, le = !1, ce = {}, je = null;
|
121528
|
-
const Be =
|
121539
|
+
const Be = Gt({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
121529
121540
|
let $e = null;
|
121530
|
-
const tt =
|
121541
|
+
const tt = Gt({}, ["audio", "video", "img", "source", "image", "track"]);
|
121531
121542
|
let st = null;
|
121532
|
-
const Kt =
|
121543
|
+
const Kt = Gt({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), tn = "http://www.w3.org/1998/Math/MathML", Xt = "http://www.w3.org/2000/svg", Ae = "http://www.w3.org/1999/xhtml";
|
121533
121544
|
let ke = Ae, Pe = !1, et = null;
|
121534
|
-
const lt =
|
121535
|
-
let _e =
|
121536
|
-
const dt =
|
121545
|
+
const lt = Gt({}, [tn, Xt, Ae], Zv);
|
121546
|
+
let _e = Gt({}, ["mi", "mo", "mn", "ms", "mtext"]), nt = Gt({}, ["annotation-xml"]);
|
121547
|
+
const dt = Gt({}, ["title", "style", "font", "a", "script"]);
|
121537
121548
|
let ct = null;
|
121538
121549
|
const Nt = ["application/xhtml+xml", "text/html"], on = "text/html";
|
121539
121550
|
let Ct = null, ft = null;
|
@@ -121543,7 +121554,7 @@ function TX() {
|
|
121543
121554
|
let te = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
121544
121555
|
if (!(ft && ft === te)) {
|
121545
121556
|
if ((!te || typeof te != "object") && (te = {}), te = ru(te), ct = // eslint-disable-next-line unicorn/prefer-includes
|
121546
|
-
Nt.indexOf(te.PARSER_MEDIA_TYPE) === -1 ? on : te.PARSER_MEDIA_TYPE, Ct = ct === "application/xhtml+xml" ? Zv : Z4, ne = Ra(te, "ALLOWED_TAGS") ?
|
121557
|
+
Nt.indexOf(te.PARSER_MEDIA_TYPE) === -1 ? on : te.PARSER_MEDIA_TYPE, Ct = ct === "application/xhtml+xml" ? Zv : Z4, ne = Ra(te, "ALLOWED_TAGS") ? Gt({}, te.ALLOWED_TAGS, Ct) : oe, ue = Ra(te, "ALLOWED_ATTR") ? Gt({}, te.ALLOWED_ATTR, Ct) : pe, et = Ra(te, "ALLOWED_NAMESPACES") ? Gt({}, te.ALLOWED_NAMESPACES, Zv) : lt, st = Ra(te, "ADD_URI_SAFE_ATTR") ? Gt(ru(Kt), te.ADD_URI_SAFE_ATTR, Ct) : Kt, $e = Ra(te, "ADD_DATA_URI_TAGS") ? Gt(ru(tt), te.ADD_DATA_URI_TAGS, Ct) : tt, je = Ra(te, "FORBID_CONTENTS") ? Gt({}, te.FORBID_CONTENTS, Ct) : Be, K = Ra(te, "FORBID_TAGS") ? Gt({}, te.FORBID_TAGS, Ct) : {}, xe = Ra(te, "FORBID_ATTR") ? Gt({}, te.FORBID_ATTR, Ct) : {}, ce = Ra(te, "USE_PROFILES") ? te.USE_PROFILES : !1, de = te.ALLOW_ARIA_ATTR !== !1, Le = te.ALLOW_DATA_ATTR !== !1, ge = te.ALLOW_UNKNOWN_PROTOCOLS || !1, me = te.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Me = te.SAFE_FOR_TEMPLATES || !1, ve = te.SAFE_FOR_XML !== !1, ee = te.WHOLE_DOCUMENT || !1, ie = te.RETURN_DOM || !1, ye = te.RETURN_DOM_FRAGMENT || !1, F = te.RETURN_TRUSTED_TYPE || !1, $ = te.FORCE_BODY || !1, C = te.SANITIZE_DOM !== !1, I = te.SANITIZE_NAMED_PROPS || !1, Q = te.KEEP_CONTENT !== !1, le = te.IN_PLACE || !1, ae = te.ALLOWED_URI_REGEXP || SX, ke = te.NAMESPACE || Ae, _e = te.MATHML_TEXT_INTEGRATION_POINTS || _e, nt = te.HTML_INTEGRATION_POINTS || nt, se = te.CUSTOM_ELEMENT_HANDLING || {}, te.CUSTOM_ELEMENT_HANDLING && _n(te.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (se.tagNameCheck = te.CUSTOM_ELEMENT_HANDLING.tagNameCheck), te.CUSTOM_ELEMENT_HANDLING && _n(te.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (se.attributeNameCheck = te.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), te.CUSTOM_ELEMENT_HANDLING && typeof te.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (se.allowCustomizedBuiltInElements = te.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Me && (Le = !1), ye && (ie = !0), ce && (ne = Gt({}, $z), ue = [], ce.html === !0 && (Gt(ne, Jz), Gt(ue, Qz)), ce.svg === !0 && (Gt(ne, Gv), Gt(ue, Jv), Gt(ue, i4)), ce.svgFilters === !0 && (Gt(ne, Yv), Gt(ue, Jv), Gt(ue, i4)), ce.mathMl === !0 && (Gt(ne, Kv), Gt(ue, Xz), Gt(ue, i4))), te.ADD_TAGS && (ne === oe && (ne = ru(ne)), Gt(ne, te.ADD_TAGS, Ct)), te.ADD_ATTR && (ue === pe && (ue = ru(ue)), Gt(ue, te.ADD_ATTR, Ct)), te.ADD_URI_SAFE_ATTR && Gt(st, te.ADD_URI_SAFE_ATTR, Ct), te.FORBID_CONTENTS && (je === Be && (je = ru(je)), Gt(je, te.FORBID_CONTENTS, Ct)), Q && (ne["#text"] = !0), ee && Gt(ne, ["html", "head", "body"]), ne.table && (Gt(ne, ["tbody"]), delete K.tbody), te.TRUSTED_TYPES_POLICY) {
|
121547
121558
|
if (typeof te.TRUSTED_TYPES_POLICY.createHTML != "function")
|
121548
121559
|
throw yf('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
121549
121560
|
if (typeof te.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
@@ -121553,7 +121564,7 @@ function TX() {
|
|
121553
121564
|
w === void 0 && (w = oPt(h, i)), w !== null && typeof x == "string" && (x = w.createHTML(""));
|
121554
121565
|
hi && hi(te), ft = te;
|
121555
121566
|
}
|
121556
|
-
}, lr =
|
121567
|
+
}, lr = Gt({}, [...Gv, ...Yv, ...Kzt]), hr = Gt({}, [...Kv, ...Jzt]), ia = function(te) {
|
121557
121568
|
let Te = b(te);
|
121558
121569
|
(!Te || !Te.tagName) && (Te = {
|
121559
121570
|
namespaceURI: ke,
|
@@ -121668,7 +121679,7 @@ function TX() {
|
|
121668
121679
|
}, ze = function(te, Te, Ye) {
|
121669
121680
|
if (C && (Te === "id" || Te === "name") && (Ye in n || Ye in hn))
|
121670
121681
|
return !1;
|
121671
|
-
if (!(Le && !xe[Te] && ti(
|
121682
|
+
if (!(Le && !xe[Te] && ti(U, Te))) {
|
121672
121683
|
if (!(de && ti(Z, Te))) {
|
121673
121684
|
if (!ue[Te] || xe[Te]) {
|
121674
121685
|
if (
|
@@ -121682,7 +121693,7 @@ function TX() {
|
|
121682
121693
|
} else if (!st[Te]) {
|
121683
121694
|
if (!ti(ae, mf(Ye, J, ""))) {
|
121684
121695
|
if (!((Te === "src" || Te === "xlink:href" || Te === "href") && te !== "script" && Wzt(Ye, "data:") === 0 && $e[te])) {
|
121685
|
-
if (!(ge && !ti(
|
121696
|
+
if (!(ge && !ti(q, mf(Ye, J, "")))) {
|
121686
121697
|
if (Ye)
|
121687
121698
|
return !1;
|
121688
121699
|
}
|
@@ -129219,12 +129230,12 @@ var Ef = function(e, n, r) {
|
|
129219
129230
|
r && (D *= i.sizeMultiplier);
|
129220
129231
|
var P = N / 2 - D, B = [];
|
129221
129232
|
if (d.length > 0) {
|
129222
|
-
var V = N - m - b, _ = Math.round(N * 1e3),
|
129223
|
-
width:
|
129233
|
+
var V = N - m - b, _ = Math.round(N * 1e3), U = vRt(d, Math.round(V * 1e3)), Z = new xc(d, U), q = (f / 1e3).toFixed(3) + "em", J = (_ / 1e3).toFixed(3) + "em", G = new ul([Z], {
|
129234
|
+
width: q,
|
129224
129235
|
height: J,
|
129225
129236
|
viewBox: "0 0 " + f + " " + _
|
129226
129237
|
}), ae = we.makeSvgSpan([], [G], i);
|
129227
|
-
ae.height = _ / 1e3, ae.style.width =
|
129238
|
+
ae.height = _ / 1e3, ae.style.width = q, ae.style.height = J, B.push({
|
129228
129239
|
type: "elem",
|
129229
129240
|
elem: ae
|
129230
129241
|
});
|
@@ -129955,11 +129966,11 @@ var us = function(e, n) {
|
|
129955
129966
|
var D = e.rowGaps[r], P = 0;
|
129956
129967
|
D && (P = Pn(D, n), P > 0 && (P += k, A < P && (A = P), P = 0)), e.addJot && (A += m), S.height = M, S.depth = A, b += M, S.pos = b, b += A + P, l[r] = S, w(o[r + 1]);
|
129957
129968
|
}
|
129958
|
-
var B = b / 2 + n.fontMetrics().axisHeight, V = e.cols || [], _ = [],
|
129969
|
+
var B = b / 2 + n.fontMetrics().axisHeight, V = e.cols || [], _ = [], U, Z, q = [];
|
129959
129970
|
if (e.tags && e.tags.some((ye) => ye))
|
129960
129971
|
for (r = 0; r < a; ++r) {
|
129961
129972
|
var J = l[r], G = J.pos - B, ae = e.tags[r], ne = void 0;
|
129962
|
-
ae === !0 ? ne = we.makeSpan(["eqn-num"], [], n) : ae === !1 ? ne = we.makeSpan([], [], n) : ne = we.makeSpan([], fr(ae, n, !0), n), ne.depth = J.depth, ne.height = J.height,
|
129973
|
+
ae === !0 ? ne = we.makeSpan(["eqn-num"], [], n) : ae === !1 ? ne = we.makeSpan([], [], n) : ne = we.makeSpan([], fr(ae, n, !0), n), ne.depth = J.depth, ne.height = J.height, q.push({
|
129963
129974
|
type: "elem",
|
129964
129975
|
elem: ne,
|
129965
129976
|
shift: G
|
@@ -129973,7 +129984,7 @@ var us = function(e, n) {
|
|
129973
129984
|
++i, ++Z
|
129974
129985
|
) {
|
129975
129986
|
for (var oe = V[Z] || {}, ue = !0; oe.type === "separator"; ) {
|
129976
|
-
if (ue || (
|
129987
|
+
if (ue || (U = we.makeSpan(["arraycolsep"], []), U.style.width = Qe(n.fontMetrics().doubleRuleSep), _.push(U)), oe.separator === "|" || oe.separator === ":") {
|
129977
129988
|
var pe = oe.separator === "|" ? "solid" : "dashed", se = we.makeSpan(["vertical-separator"], [], n);
|
129978
129989
|
se.style.height = Qe(b), se.style.borderRightWidth = Qe(u), se.style.borderRightStyle = pe, se.style.margin = "0 " + Qe(-u / 2);
|
129979
129990
|
var K = b - B;
|
@@ -129984,7 +129995,7 @@ var us = function(e, n) {
|
|
129984
129995
|
}
|
129985
129996
|
if (!(i >= s)) {
|
129986
129997
|
var xe = void 0;
|
129987
|
-
(i > 0 || e.hskipBeforeAndAfter) && (xe = vt.deflt(oe.pregap, f), xe !== 0 && (
|
129998
|
+
(i > 0 || e.hskipBeforeAndAfter) && (xe = vt.deflt(oe.pregap, f), xe !== 0 && (U = we.makeSpan(["arraycolsep"], []), U.style.width = Qe(xe), _.push(U)));
|
129988
129999
|
var de = [];
|
129989
130000
|
for (r = 0; r < a; ++r) {
|
129990
130001
|
var Le = l[r], ge = Le[i];
|
@@ -130000,7 +130011,7 @@ var us = function(e, n) {
|
|
130000
130011
|
de = we.makeVList({
|
130001
130012
|
positionType: "individualShift",
|
130002
130013
|
children: de
|
130003
|
-
}, n), de = we.makeSpan(["col-align-" + (oe.align || "c")], [de]), _.push(de), (i < s - 1 || e.hskipBeforeAndAfter) && (xe = vt.deflt(oe.postgap, f), xe !== 0 && (
|
130014
|
+
}, n), de = we.makeSpan(["col-align-" + (oe.align || "c")], [de]), _.push(de), (i < s - 1 || e.hskipBeforeAndAfter) && (xe = vt.deflt(oe.postgap, f), xe !== 0 && (U = we.makeSpan(["arraycolsep"], []), U.style.width = Qe(xe), _.push(U)));
|
130004
130015
|
}
|
130005
130016
|
}
|
130006
130017
|
if (l = we.makeSpan(["mtable"], _), c.length > 0) {
|
@@ -130025,11 +130036,11 @@ var us = function(e, n) {
|
|
130025
130036
|
children: ee
|
130026
130037
|
}, n);
|
130027
130038
|
}
|
130028
|
-
if (
|
130039
|
+
if (q.length === 0)
|
130029
130040
|
return we.makeSpan(["mord"], [l], n);
|
130030
130041
|
var ie = we.makeVList({
|
130031
130042
|
positionType: "individualShift",
|
130032
|
-
children:
|
130043
|
+
children: q
|
130033
130044
|
}, n);
|
130034
130045
|
return ie = we.makeSpan(["tag"], [ie], n), we.makeFragment([l, ie]);
|
130035
130046
|
}, MOt = {
|
@@ -136622,8 +136633,8 @@ function lHt({ pluginKey: t = sHt, editor: e, char: n = "@", allowSpaces: r = !1
|
|
136622
136633
|
return {
|
136623
136634
|
update: async (v, k) => {
|
136624
136635
|
var b, w, x, M, A, S, N;
|
136625
|
-
const D = (b = this.key) === null || b === void 0 ? void 0 : b.getState(k), P = (w = this.key) === null || w === void 0 ? void 0 : w.getState(v.state), B = D.active && P.active && D.range.from !== P.range.from, V = !D.active && P.active, _ = D.active && !P.active,
|
136626
|
-
if (!Z && !
|
136636
|
+
const D = (b = this.key) === null || b === void 0 ? void 0 : b.getState(k), P = (w = this.key) === null || w === void 0 ? void 0 : w.getState(v.state), B = D.active && P.active && D.range.from !== P.range.from, V = !D.active && P.active, _ = D.active && !P.active, U = !V && !_ && D.query !== P.query, Z = V || B && U, q = U || B, J = _ || B && U;
|
136637
|
+
if (!Z && !q && !J)
|
136627
136638
|
return;
|
136628
136639
|
const G = J && !Z ? D : P, ae = v.dom.querySelector(`[data-decoration-id="${G.decorationId}"]`);
|
136629
136640
|
p = {
|
@@ -136645,10 +136656,10 @@ function lHt({ pluginKey: t = sHt, editor: e, char: n = "@", allowSpaces: r = !1
|
|
136645
136656
|
const { decorationId: oe } = (ne = this.key) === null || ne === void 0 ? void 0 : ne.getState(e.state), ue = v.dom.querySelector(`[data-decoration-id="${oe}"]`);
|
136646
136657
|
return (ue == null ? void 0 : ue.getBoundingClientRect()) || null;
|
136647
136658
|
} : null
|
136648
|
-
}, Z && ((x = m == null ? void 0 : m.onBeforeStart) === null || x === void 0 || x.call(m, p)),
|
136659
|
+
}, Z && ((x = m == null ? void 0 : m.onBeforeStart) === null || x === void 0 || x.call(m, p)), q && ((M = m == null ? void 0 : m.onBeforeUpdate) === null || M === void 0 || M.call(m, p)), (q || Z) && (p.items = await u({
|
136649
136660
|
editor: e,
|
136650
136661
|
query: G.query
|
136651
|
-
})), J && ((A = m == null ? void 0 : m.onExit) === null || A === void 0 || A.call(m, p)),
|
136662
|
+
})), J && ((A = m == null ? void 0 : m.onExit) === null || A === void 0 || A.call(m, p)), q && ((S = m == null ? void 0 : m.onUpdate) === null || S === void 0 || S.call(m, p)), Z && ((N = m == null ? void 0 : m.onStart) === null || N === void 0 || N.call(m, p));
|
136652
136663
|
},
|
136653
136664
|
destroy: () => {
|
136654
136665
|
var v;
|
@@ -137668,7 +137679,7 @@ const bb = ak.getInstance(), BHt = (t) => ({
|
|
137668
137679
|
Ie(() => {
|
137669
137680
|
N && B(N);
|
137670
137681
|
}, [N]);
|
137671
|
-
const [V, _] = Ne([]), [
|
137682
|
+
const [V, _] = Ne([]), [U, Z] = Ne([
|
137672
137683
|
...Vee(
|
137673
137684
|
(ye) => u == null ? void 0 : u(ye),
|
137674
137685
|
h,
|
@@ -137697,7 +137708,7 @@ const bb = ak.getInstance(), BHt = (t) => ({
|
|
137697
137708
|
})
|
137698
137709
|
]);
|
137699
137710
|
}, [t]);
|
137700
|
-
const
|
137711
|
+
const q = Ve(!1), [J, G] = Ne(!0), [ae, ne] = Ne([]), oe = (ye, F, C) => {
|
137701
137712
|
let I = !1;
|
137702
137713
|
return ye.doc.nodesBetween(F, C, (O) => {
|
137703
137714
|
O.marks && O.marks.some(
|
@@ -137729,7 +137740,7 @@ const bb = ak.getInstance(), BHt = (t) => ({
|
|
137729
137740
|
}
|
137730
137741
|
}, se = IH(
|
137731
137742
|
{
|
137732
|
-
extensions:
|
137743
|
+
extensions: U,
|
137733
137744
|
editorProps: {
|
137734
137745
|
...CMt,
|
137735
137746
|
handleDOMEvents: {
|
@@ -137750,11 +137761,11 @@ const bb = ak.getInstance(), BHt = (t) => ({
|
|
137750
137761
|
shouldRerenderOnTransaction: !0,
|
137751
137762
|
immediatelyRender: !1
|
137752
137763
|
},
|
137753
|
-
[
|
137764
|
+
[U, x]
|
137754
137765
|
);
|
137755
137766
|
Ie(() => {
|
137756
|
-
M != null && M.TableOfContents && !
|
137757
|
-
...
|
137767
|
+
M != null && M.TableOfContents && !U.some((ye) => ye.name === "tableOfContents") && Z([
|
137768
|
+
...U.filter((ye) => ye.name !== "tableOfContents"),
|
137758
137769
|
M.TableOfContents.configure({
|
137759
137770
|
getIndex: M.getHierarchicalIndexes,
|
137760
137771
|
onUpdate(ye) {
|
@@ -137781,7 +137792,7 @@ const bb = ak.getInstance(), BHt = (t) => ({
|
|
137781
137792
|
]
|
137782
137793
|
});
|
137783
137794
|
return Z([
|
137784
|
-
...
|
137795
|
+
...U.filter((I) => I.name !== "history"),
|
137785
137796
|
QMt.configure({
|
137786
137797
|
provider: C,
|
137787
137798
|
user: {
|
@@ -137816,7 +137827,7 @@ const bb = ak.getInstance(), BHt = (t) => ({
|
|
137816
137827
|
window.removeEventListener("keydown", ye);
|
137817
137828
|
};
|
137818
137829
|
}, [se, x]), Ie(() => {
|
137819
|
-
!ve(e) && se && !
|
137830
|
+
!ve(e) && se && !q.current && S && (G(!0), queueMicrotask(() => {
|
137820
137831
|
e !== "" && (Me(e) ? Array.isArray(e) ? me(e) : a0(
|
137821
137832
|
S,
|
137822
137833
|
k1(e),
|
@@ -137832,7 +137843,7 @@ const bb = ak.getInstance(), BHt = (t) => ({
|
|
137832
137843
|
}).catch((F) => {
|
137833
137844
|
console.log(F);
|
137834
137845
|
});
|
137835
|
-
}),
|
137846
|
+
}), q.current = !0);
|
137836
137847
|
const ye = setTimeout(() => {
|
137837
137848
|
if (de.current && p && se) {
|
137838
137849
|
const F = se.view.coordsAtPos(p), C = de.current;
|
@@ -137841,7 +137852,7 @@ const bb = ak.getInstance(), BHt = (t) => ({
|
|
137841
137852
|
behavior: "smooth"
|
137842
137853
|
});
|
137843
137854
|
}
|
137844
|
-
|
137855
|
+
q.current = !1, se && e === void 0 && G(!1);
|
137845
137856
|
});
|
137846
137857
|
return () => {
|
137847
137858
|
clearTimeout(ye);
|
@@ -138006,7 +138017,7 @@ const qHt = ({ children: t, initial: e, isPresent: n, onExitComplete: r, custom:
|
|
138006
138017
|
if (!f)
|
138007
138018
|
return;
|
138008
138019
|
r && r();
|
138009
|
-
}, [s, r]), u =
|
138020
|
+
}, [s, r]), u = qt(
|
138010
138021
|
() => ({
|
138011
138022
|
id: l,
|
138012
138023
|
initial: e,
|
@@ -138022,7 +138033,7 @@ const qHt = ({ children: t, initial: e, isPresent: n, onExitComplete: r, custom:
|
|
138022
138033
|
*/
|
138023
138034
|
a ? [Math.random(), c] : [n, c]
|
138024
138035
|
);
|
138025
|
-
return
|
138036
|
+
return qt(() => {
|
138026
138037
|
s.forEach((d, f) => s.set(f, !1));
|
138027
138038
|
}, [n]), j.useEffect(() => {
|
138028
138039
|
!n && !s.size && r && r();
|
@@ -138050,7 +138061,7 @@ function KP(t) {
|
|
138050
138061
|
}), e;
|
138051
138062
|
}
|
138052
138063
|
const OS = typeof window < "u", tte = OS ? oo : Ie, BS = ({ children: t, custom: e, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: o = !1 }) => {
|
138053
|
-
const [s, l] = ete(o), c =
|
138064
|
+
const [s, l] = ete(o), c = qt(() => KP(t), [t]), u = o && !s ? [] : c.map(v4), d = Ve(!0), f = Ve(c), h = PS(() => /* @__PURE__ */ new Map()), [p, m] = Ne(c), [g, v] = Ne(c);
|
138054
138065
|
tte(() => {
|
138055
138066
|
d.current = !1, f.current = c;
|
138056
138067
|
for (let w = 0; w < g.length; w++) {
|
@@ -138306,7 +138317,7 @@ function XHt(t, e) {
|
|
138306
138317
|
}
|
138307
138318
|
function eFt(t) {
|
138308
138319
|
const { initial: e, animate: n } = XHt(t, gt(u5));
|
138309
|
-
return
|
138320
|
+
return qt(() => ({ initial: e, animate: n }), [QP(e), QP(n)]);
|
138310
138321
|
}
|
138311
138322
|
function QP(t) {
|
138312
138323
|
return Array.isArray(t) ? t.join(" ") : t;
|
@@ -138849,7 +138860,7 @@ function bte(t, e, n) {
|
|
138849
138860
|
!Gr(e[r]) && !gte(r, n) && (t[r] = e[r]);
|
138850
138861
|
}
|
138851
138862
|
function DFt({ transformTemplate: t }, e) {
|
138852
|
-
return
|
138863
|
+
return qt(() => {
|
138853
138864
|
const n = JS();
|
138854
138865
|
return YS(n, e, t), Object.assign({}, n.vars, n.style);
|
138855
138866
|
}, [e]);
|
@@ -138863,7 +138874,7 @@ function zFt(t, e) {
|
|
138863
138874
|
return t.drag && t.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = t.drag === !0 ? "none" : `pan-${t.drag === "x" ? "y" : "x"}`), t.tabIndex === void 0 && (t.onTap || t.onTapStart || t.whileTap) && (n.tabIndex = 0), n.style = r, n;
|
138864
138875
|
}
|
138865
138876
|
function PFt(t, e, n, r) {
|
138866
|
-
const i =
|
138877
|
+
const i = qt(() => {
|
138867
138878
|
const a = hte();
|
138868
138879
|
return KS(a, e, $S(r), t.transformTemplate), {
|
138869
138880
|
...a.attrs,
|
@@ -138878,7 +138889,7 @@ function PFt(t, e, n, r) {
|
|
138878
138889
|
}
|
138879
138890
|
function RFt(t = !1) {
|
138880
138891
|
return (n, r, i, { latestValues: a }, o) => {
|
138881
|
-
const l = (US(n) ? PFt : zFt)(r, a, o, n), c = $Ht(r, typeof n == "string", t), u = n !== es ? { ...c, ...l, ref: i } : {}, { children: d } = r, f =
|
138892
|
+
const l = (US(n) ? PFt : zFt)(r, a, o, n), c = $Ht(r, typeof n == "string", t), u = n !== es ? { ...c, ...l, ref: i } : {}, { children: d } = r, f = qt(() => Gr(d) ? d.get() : d, [d]);
|
138882
138893
|
return Ee(n, {
|
138883
138894
|
...u,
|
138884
138895
|
children: f
|
@@ -140765,20 +140776,20 @@ function jVt(t) {
|
|
140765
140776
|
const { prevResolvedValues: B = {} } = k, V = {
|
140766
140777
|
...B,
|
140767
140778
|
...P
|
140768
|
-
}, _ = (
|
140769
|
-
S = !0, f.has(
|
140770
|
-
const J = t.getValue(
|
140779
|
+
}, _ = (q) => {
|
140780
|
+
S = !0, f.has(q) && (N = !0, f.delete(q)), k.needsAnimating[q] = !0;
|
140781
|
+
const J = t.getValue(q);
|
140771
140782
|
J && (J.liveStyle = !1);
|
140772
140783
|
};
|
140773
|
-
for (const
|
140774
|
-
const J = P[
|
140775
|
-
if (h.hasOwnProperty(
|
140784
|
+
for (const q in V) {
|
140785
|
+
const J = P[q], G = B[q];
|
140786
|
+
if (h.hasOwnProperty(q))
|
140776
140787
|
continue;
|
140777
140788
|
let ae = !1;
|
140778
|
-
ok(J) && ok(G) ? ae = !wte(J, G) : ae = J !== G, ae ? J != null ? _(
|
140789
|
+
ok(J) && ok(G) ? ae = !wte(J, G) : ae = J !== G, ae ? J != null ? _(q) : f.add(q) : J !== void 0 && f.has(q) ? _(q) : k.protectedKeys[q] = !0;
|
140779
140790
|
}
|
140780
|
-
k.prevProp = b, k.prevResolvedValues = P, k.isActive && (h = { ...h, ...P }), r && t.blockInitialAnimation && (S = !1), S && (!(M && A) || N) && d.push(...D.map((
|
140781
|
-
animation:
|
140791
|
+
k.prevProp = b, k.prevResolvedValues = P, k.isActive && (h = { ...h, ...P }), r && t.blockInitialAnimation && (S = !1), S && (!(M && A) || N) && d.push(...D.map((q) => ({
|
140792
|
+
animation: q,
|
140782
140793
|
options: { type: v }
|
140783
140794
|
})));
|
140784
140795
|
}
|
@@ -143410,9 +143421,9 @@ function LUt(t, e = {}) {
|
|
143410
143421
|
const S = l.length > 0 && l[0].type === "h2" && l.length > 1, D = l.reduce((P, B) => {
|
143411
143422
|
if (B.type === "content") {
|
143412
143423
|
const _ = B.content.split(`
|
143413
|
-
`).filter((
|
143414
|
-
const
|
143415
|
-
return
|
143424
|
+
`).filter((U) => U.trim().length > 0).reduce((U, Z) => {
|
143425
|
+
const q = Z.replace(/<[^>]+>/g, ""), J = Math.ceil(q.length / 200);
|
143426
|
+
return U + Math.max(1, J);
|
143416
143427
|
}, 0);
|
143417
143428
|
return P + _;
|
143418
143429
|
}
|
@@ -143576,13 +143587,13 @@ const TUt = ({
|
|
143576
143587
|
}, [b]);
|
143577
143588
|
const _ = (J) => {
|
143578
143589
|
A(null), x(J.targetTouches[0].clientX);
|
143579
|
-
},
|
143590
|
+
}, U = (J) => {
|
143580
143591
|
A(J.targetTouches[0].clientX);
|
143581
143592
|
}, Z = ht(() => {
|
143582
143593
|
if (!w || !M) return;
|
143583
143594
|
const J = w - M, G = J > S, ae = J < -50;
|
143584
143595
|
G && (D("forward"), g((ne) => Math.min(ne + 1, u.length - 1))), ae && (D("backward"), g((ne) => Math.max(ne - 1, 0)));
|
143585
|
-
}, [w, M, u.length, S]),
|
143596
|
+
}, [w, M, u.length, S]), q = () => {
|
143586
143597
|
if (o) {
|
143587
143598
|
MUt(o), p(!0), c == null || c();
|
143588
143599
|
const J = setTimeout(() => {
|
@@ -143670,7 +143681,7 @@ const TUt = ({
|
|
143670
143681
|
disabled: !o,
|
143671
143682
|
className: "disabled:!bg-transparent disabled:pointer-events-none",
|
143672
143683
|
size: "md",
|
143673
|
-
onClick:
|
143684
|
+
onClick: q
|
143674
143685
|
}
|
143675
143686
|
),
|
143676
143687
|
h && /* @__PURE__ */ L.jsx(
|
@@ -143737,7 +143748,7 @@ const TUt = ({
|
|
143737
143748
|
),
|
143738
143749
|
dangerouslySetInnerHTML: { __html: u[m] },
|
143739
143750
|
onTouchStart: _,
|
143740
|
-
onTouchMove:
|
143751
|
+
onTouchMove: U,
|
143741
143752
|
onTouchEnd: Z
|
143742
143753
|
}
|
143743
143754
|
)
|
@@ -143749,7 +143760,7 @@ const TUt = ({
|
|
143749
143760
|
content: u[m],
|
143750
143761
|
editor: P,
|
143751
143762
|
onTouchStart: _,
|
143752
|
-
onTouchMove:
|
143763
|
+
onTouchMove: U,
|
143753
143764
|
onTouchEnd: Z,
|
143754
143765
|
isFullscreen: n
|
143755
143766
|
}
|
@@ -143829,7 +143840,7 @@ const TUt = ({
|
|
143829
143840
|
}
|
143830
143841
|
),
|
143831
143842
|
/* @__PURE__ */ L.jsx(
|
143832
|
-
|
143843
|
+
Ut,
|
143833
143844
|
{
|
143834
143845
|
onClick: () => i == null ? void 0 : i(t),
|
143835
143846
|
disabled: !t || o,
|
@@ -143861,7 +143872,7 @@ const TUt = ({
|
|
143861
143872
|
)
|
143862
143873
|
] }),
|
143863
143874
|
/* @__PURE__ */ L.jsx("div", { className: "text-center", children: /* @__PURE__ */ L.jsxs(
|
143864
|
-
|
143875
|
+
Ut,
|
143865
143876
|
{
|
143866
143877
|
onClick: r ? () => null : a,
|
143867
143878
|
disabled: o,
|
@@ -143946,7 +143957,7 @@ const TUt = ({
|
|
143946
143957
|
isDDocOwner: B,
|
143947
143958
|
getEnsStatus: V,
|
143948
143959
|
ensCache: _
|
143949
|
-
} = sl(), { isNativeMobile:
|
143960
|
+
} = sl(), { isNativeMobile: U } = v0(), q = r.filter((ne) => !ne.deleted).filter((ne) => p ? !0 : !ne.resolved).sort(
|
143950
143961
|
(ne, oe) => new Date(oe.createdAt).getTime() - new Date(ne.createdAt).getTime()
|
143951
143962
|
), J = (ne) => {
|
143952
143963
|
o(ne), h && h !== ne && d(null);
|
@@ -143977,12 +143988,12 @@ const TUt = ({
|
|
143977
143988
|
n && "xl:!h-[86vh]"
|
143978
143989
|
),
|
143979
143990
|
children: [
|
143980
|
-
|
143991
|
+
q.length === 0 ? /* @__PURE__ */ L.jsx(IUt, {}) : /* @__PURE__ */ L.jsx(
|
143981
143992
|
"div",
|
143982
143993
|
{
|
143983
143994
|
ref: m,
|
143984
143995
|
className: "flex flex-col overflow-y-auto no-scrollbar flex-1",
|
143985
|
-
children:
|
143996
|
+
children: q.map((ne) => {
|
143986
143997
|
var oe, ue;
|
143987
143998
|
return /* @__PURE__ */ L.jsxs(
|
143988
143999
|
"div",
|
@@ -144025,7 +144036,7 @@ const TUt = ({
|
|
144025
144036
|
ne.resolved && "hidden"
|
144026
144037
|
),
|
144027
144038
|
children: h !== ne.id ? /* @__PURE__ */ L.jsxs(
|
144028
|
-
|
144039
|
+
Ut,
|
144029
144040
|
{
|
144030
144041
|
onClick: (pe) => {
|
144031
144042
|
pe.stopPropagation(), d(ne.id);
|
@@ -144060,13 +144071,13 @@ const TUt = ({
|
|
144060
144071
|
id: ne.id,
|
144061
144072
|
onChange: s,
|
144062
144073
|
onKeyDown: f,
|
144063
|
-
autoFocus:
|
144074
|
+
autoFocus: U,
|
144064
144075
|
onInput: (pe) => w(pe, k)
|
144065
144076
|
}
|
144066
144077
|
),
|
144067
144078
|
ne.id === t && /* @__PURE__ */ L.jsxs(dx, { className: "w-full justify-end", children: [
|
144068
144079
|
/* @__PURE__ */ L.jsx(
|
144069
|
-
|
144080
|
+
Ut,
|
144070
144081
|
{
|
144071
144082
|
variant: "ghost",
|
144072
144083
|
className: "px-4 py-2 w-20 min-w-20 h-9",
|
@@ -144077,7 +144088,7 @@ const TUt = ({
|
|
144077
144088
|
}
|
144078
144089
|
),
|
144079
144090
|
/* @__PURE__ */ L.jsx(
|
144080
|
-
|
144091
|
+
Ut,
|
144081
144092
|
{
|
144082
144093
|
className: "px-4 py-2 w-20 min-w-20 h-9",
|
144083
144094
|
disabled: !k.trim(),
|
@@ -144125,7 +144136,7 @@ const TUt = ({
|
|
144125
144136
|
}
|
144126
144137
|
),
|
144127
144138
|
/* @__PURE__ */ L.jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ L.jsx(
|
144128
|
-
|
144139
|
+
Ut,
|
144129
144140
|
{
|
144130
144141
|
onClick: b,
|
144131
144142
|
className: "px-4 py-2 w-20 min-w-20 h-9",
|
@@ -144531,9 +144542,9 @@ const TUt = ({
|
|
144531
144542
|
ddocId: B,
|
144532
144543
|
zoomLevel: V,
|
144533
144544
|
setZoomLevel: _,
|
144534
|
-
isPresentationMode:
|
144545
|
+
isPresentationMode: U,
|
144535
144546
|
setIsPresentationMode: Z,
|
144536
|
-
isNavbarVisible:
|
144547
|
+
isNavbarVisible: q,
|
144537
144548
|
setIsNavbarVisible: J,
|
144538
144549
|
onComment: G,
|
144539
144550
|
onInlineComment: ae,
|
@@ -144607,7 +144618,7 @@ const TUt = ({
|
|
144607
144618
|
zoomLevel: V,
|
144608
144619
|
onInvalidContentError: xe,
|
144609
144620
|
ignoreCorruptedData: de,
|
144610
|
-
isPresentationMode:
|
144621
|
+
isPresentationMode: U,
|
144611
144622
|
proExtensions: I,
|
144612
144623
|
metadataProxyUrl: st
|
144613
144624
|
});
|
@@ -144700,7 +144711,7 @@ const TUt = ({
|
|
144700
144711
|
"overflow-x-hidden": V !== "2",
|
144701
144712
|
"overflow-x-auto scroll-container": V === "2"
|
144702
144713
|
},
|
144703
|
-
|
144714
|
+
U ? "color-bg-default" : "color-bg-secondary",
|
144704
144715
|
pe
|
144705
144716
|
),
|
144706
144717
|
children: [
|
@@ -144711,8 +144722,8 @@ const TUt = ({
|
|
144711
144722
|
className: Lt(
|
144712
144723
|
"h-14 color-bg-default py-2 px-4 flex gap-2 items-center justify-between w-screen fixed left-0 top-0 border-b color-border-default z-50 transition-transform duration-300",
|
144713
144724
|
{
|
144714
|
-
"translate-y-0":
|
144715
|
-
"translate-y-[-100%]": !
|
144725
|
+
"translate-y-0": q,
|
144726
|
+
"translate-y-[-100%]": !q || U
|
144716
144727
|
}
|
144717
144728
|
),
|
144718
144729
|
children: o == null ? void 0 : o({ editor: ft.getJSON() })
|
@@ -144751,8 +144762,8 @@ const TUt = ({
|
|
144751
144762
|
className: Lt(
|
144752
144763
|
"z-50 hidden xl:flex items-center justify-center w-full h-[52px] fixed left-0 color-bg-default border-b color-border-default transition-transform duration-300 top-[3.5rem]",
|
144753
144764
|
{
|
144754
|
-
"translate-y-0":
|
144755
|
-
"translate-y-[-108%]": !
|
144765
|
+
"translate-y-0": q,
|
144766
|
+
"translate-y-[-108%]": !q
|
144756
144767
|
}
|
144757
144768
|
),
|
144758
144769
|
children: /* @__PURE__ */ L.jsx("div", { className: "justify-center items-center grow relative color-text-default", children: /* @__PURE__ */ L.jsx(
|
@@ -144762,7 +144773,7 @@ const TUt = ({
|
|
144762
144773
|
editor: ft,
|
144763
144774
|
zoomLevel: V,
|
144764
144775
|
setZoomLevel: _,
|
144765
|
-
isNavbarVisible:
|
144776
|
+
isNavbarVisible: q,
|
144766
144777
|
setIsNavbarVisible: J,
|
144767
144778
|
secureImageUploadUrl: m,
|
144768
144779
|
onMarkdownExport: ne,
|
@@ -144772,7 +144783,7 @@ const TUt = ({
|
|
144772
144783
|
) })
|
144773
144784
|
}
|
144774
144785
|
),
|
144775
|
-
|
144786
|
+
U && /* @__PURE__ */ L.jsx(
|
144776
144787
|
EUt,
|
144777
144788
|
{
|
144778
144789
|
editor: ft,
|
@@ -144799,7 +144810,7 @@ const TUt = ({
|
|
144799
144810
|
setItems: R,
|
144800
144811
|
showTOC: F,
|
144801
144812
|
setShowTOC: C,
|
144802
|
-
isPreviewMode: t || !
|
144813
|
+
isPreviewMode: t || !q
|
144803
144814
|
}
|
144804
144815
|
),
|
144805
144816
|
/* @__PURE__ */ L.jsxs(
|
@@ -144809,8 +144820,8 @@ const TUt = ({
|
|
144809
144820
|
"color-bg-default w-full mx-auto rounded",
|
144810
144821
|
{ "mt-4 md:!mt-16 !py-20": t && !_e },
|
144811
144822
|
{ "md:!mt-16": !t },
|
144812
|
-
{ "pt-20 md:!mt-[7.5rem]":
|
144813
|
-
{ "pt-6 md:!mt-16": !
|
144823
|
+
{ "pt-20 md:!mt-[7.5rem]": q && !t },
|
144824
|
+
{ "pt-6 md:!mt-16": !q && !t },
|
144814
144825
|
{ "mt-4 md:!mt-16 py-6": t && _e },
|
144815
144826
|
{
|
144816
144827
|
"max-[1080px]:!mx-auto min-[1081px]:!ml-[18%] min-[1700px]:!mx-auto": A && !_e && V !== "0.5" && V !== "0.75" && V !== "1.4" && V !== "1.5" && V !== "2"
|
@@ -144898,7 +144909,7 @@ const TUt = ({
|
|
144898
144909
|
Je
|
144899
144910
|
)),
|
144900
144911
|
Ct > 0 && !dt && /* @__PURE__ */ L.jsxs(
|
144901
|
-
|
144912
|
+
Ut,
|
144902
144913
|
{
|
144903
144914
|
variant: "ghost",
|
144904
144915
|
className: "!h-6 rounded min-w-fit !px-2 color-bg-secondary text-helper-text-sm",
|
@@ -144955,7 +144966,7 @@ const TUt = ({
|
|
144955
144966
|
}
|
144956
144967
|
),
|
144957
144968
|
h && !_e && /* @__PURE__ */ L.jsx(
|
144958
|
-
|
144969
|
+
Ut,
|
144959
144970
|
{
|
144960
144971
|
ref: Pe,
|
144961
144972
|
onClick: () => {
|
@@ -144977,7 +144988,7 @@ const TUt = ({
|
|
144977
144988
|
className: Lt(
|
144978
144989
|
"flex xl:hidden items-center w-full h-[52px] absolute left-0 z-10 px-4 color-bg-default transition-all duration-300 ease-in-out border-b border-color-default",
|
144979
144990
|
tn && "hidden",
|
144980
|
-
{ "top-14":
|
144991
|
+
{ "top-14": q, "top-0": !q }
|
144981
144992
|
),
|
144982
144993
|
children: /* @__PURE__ */ L.jsx(
|
144983
144994
|
hUt,
|
@@ -144985,7 +144996,7 @@ const TUt = ({
|
|
144985
144996
|
onError: v,
|
144986
144997
|
editor: ft,
|
144987
144998
|
isKeyboardVisible: tn,
|
144988
|
-
isNavbarVisible:
|
144999
|
+
isNavbarVisible: q,
|
144989
145000
|
setIsNavbarVisible: J,
|
144990
145001
|
secureImageUploadUrl: m
|
144991
145002
|
}
|
@@ -144997,8 +145008,8 @@ const TUt = ({
|
|
144997
145008
|
{
|
144998
145009
|
isOpen: Le,
|
144999
145010
|
onClose: () => ge == null ? void 0 : ge(!1),
|
145000
|
-
isNavbarVisible:
|
145001
|
-
isPresentationMode:
|
145011
|
+
isNavbarVisible: q,
|
145012
|
+
isPresentationMode: U,
|
145002
145013
|
activeCommentId: hr,
|
145003
145014
|
isPreviewMode: t
|
145004
145015
|
}
|
@@ -145077,9 +145088,9 @@ const TUt = ({
|
|
145077
145088
|
getYdoc: () => V,
|
145078
145089
|
exportContentAsMarkDown: (Z) => {
|
145079
145090
|
if (D) {
|
145080
|
-
const
|
145081
|
-
if (
|
145082
|
-
const J =
|
145091
|
+
const q = D.commands.exportMarkdownFile();
|
145092
|
+
if (q) {
|
145093
|
+
const J = q, G = document.createElement("a");
|
145083
145094
|
G.href = J, G.download = Z, document.body.appendChild(G), G.click(), document.body.removeChild(G), URL.revokeObjectURL(J);
|
145084
145095
|
}
|
145085
145096
|
}
|
@@ -145088,7 +145099,7 @@ const TUt = ({
|
|
145088
145099
|
[D, V]
|
145089
145100
|
);
|
145090
145101
|
const _ = (Z) => {
|
145091
|
-
const
|
145102
|
+
const q = Z.name.split(",").map((J) => {
|
145092
145103
|
const G = J.trim();
|
145093
145104
|
return (m == null ? void 0 : m.find(
|
145094
145105
|
(ne) => ne.name.toLowerCase() === G.toLowerCase()
|
@@ -145096,15 +145107,15 @@ const TUt = ({
|
|
145096
145107
|
});
|
145097
145108
|
v == null || v((J) => {
|
145098
145109
|
const G = [...J];
|
145099
|
-
return
|
145110
|
+
return q.forEach((ae) => {
|
145100
145111
|
G.some(
|
145101
145112
|
(ne) => ne.name.toLowerCase() === ae.name.toLowerCase()
|
145102
145113
|
) || G.push(ae);
|
145103
145114
|
}), G;
|
145104
145115
|
});
|
145105
|
-
},
|
145116
|
+
}, U = (Z) => {
|
145106
145117
|
v == null || v(
|
145107
|
-
(
|
145118
|
+
(q) => q.filter((J) => J.name !== Z)
|
145108
145119
|
);
|
145109
145120
|
};
|
145110
145121
|
return !D || B ? /* @__PURE__ */ L.jsxs("div", { className: "w-auto h-auto flex flex-col gap-4 justify-center items-center", children: [
|
@@ -145117,19 +145128,19 @@ const TUt = ({
|
|
145117
145128
|
ref: A,
|
145118
145129
|
className: "flex flex-wrap px-4 md:px-[80px] lg:!px-[124px] items-center gap-1 mb-4 mt-4 lg:!mt-0",
|
145119
145130
|
children: [
|
145120
|
-
S.map((Z,
|
145131
|
+
S.map((Z, q) => /* @__PURE__ */ L.jsx(
|
145121
145132
|
Ph,
|
145122
145133
|
{
|
145123
145134
|
style: { backgroundColor: Z == null ? void 0 : Z.color },
|
145124
|
-
onRemove: () =>
|
145135
|
+
onRemove: () => U(Z == null ? void 0 : Z.name),
|
145125
145136
|
isRemovable: !t,
|
145126
145137
|
className: "!h-6 rounded",
|
145127
145138
|
children: Z == null ? void 0 : Z.name
|
145128
145139
|
},
|
145129
|
-
|
145140
|
+
q
|
145130
145141
|
)),
|
145131
145142
|
N > 0 && !x && /* @__PURE__ */ L.jsxs(
|
145132
|
-
|
145143
|
+
Ut,
|
145133
145144
|
{
|
145134
145145
|
variant: "ghost",
|
145135
145146
|
className: "!h-6 rounded min-w-fit !px-2 color-bg-secondary text-helper-text-sm",
|
@@ -145148,16 +145159,16 @@ const TUt = ({
|
|
145148
145159
|
exit: { opacity: 0, height: 0 },
|
145149
145160
|
transition: { duration: 0.3 },
|
145150
145161
|
className: "flex flex-wrap items-center gap-1",
|
145151
|
-
children: g == null ? void 0 : g.slice(4).map((Z,
|
145162
|
+
children: g == null ? void 0 : g.slice(4).map((Z, q) => /* @__PURE__ */ L.jsx(
|
145152
145163
|
Ph,
|
145153
145164
|
{
|
145154
145165
|
style: { backgroundColor: Z == null ? void 0 : Z.color },
|
145155
|
-
onRemove: () =>
|
145166
|
+
onRemove: () => U(Z == null ? void 0 : Z.name),
|
145156
145167
|
isRemovable: !t,
|
145157
145168
|
className: "!h-6 rounded",
|
145158
145169
|
children: Z == null ? void 0 : Z.name
|
145159
145170
|
},
|
145160
|
-
|
145171
|
+
q + 4
|
145161
145172
|
))
|
145162
145173
|
}
|
145163
145174
|
) }),
|