@fileverse-dev/ddoc 1.5.5 → 1.5.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.es.js +285 -283
- package/dist/index.umd.js +10 -10
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -147,14 +147,14 @@ function $F() {
|
|
147
147
|
}
|
148
148
|
return null;
|
149
149
|
}
|
150
|
-
var
|
150
|
+
var U = Object.assign, L = 0, V, Q, te, X, he, Ce, Se;
|
151
151
|
function ve() {
|
152
152
|
}
|
153
153
|
ve.__reactDisabledLog = !0;
|
154
154
|
function xe() {
|
155
155
|
{
|
156
156
|
if (L === 0) {
|
157
|
-
|
157
|
+
V = console.log, Q = console.info, te = console.warn, X = console.error, he = console.group, Ce = console.groupCollapsed, Se = console.groupEnd;
|
158
158
|
var j = {
|
159
159
|
configurable: !0,
|
160
160
|
enumerable: !0,
|
@@ -183,25 +183,25 @@ function $F() {
|
|
183
183
|
writable: !0
|
184
184
|
};
|
185
185
|
Object.defineProperties(console, {
|
186
|
-
log:
|
187
|
-
value:
|
186
|
+
log: U({}, j, {
|
187
|
+
value: V
|
188
188
|
}),
|
189
|
-
info:
|
189
|
+
info: U({}, j, {
|
190
190
|
value: Q
|
191
191
|
}),
|
192
|
-
warn:
|
192
|
+
warn: U({}, j, {
|
193
193
|
value: te
|
194
194
|
}),
|
195
|
-
error:
|
195
|
+
error: U({}, j, {
|
196
196
|
value: X
|
197
197
|
}),
|
198
|
-
group:
|
198
|
+
group: U({}, j, {
|
199
199
|
value: he
|
200
200
|
}),
|
201
|
-
groupCollapsed:
|
201
|
+
groupCollapsed: U({}, j, {
|
202
202
|
value: Ce
|
203
203
|
}),
|
204
|
-
groupEnd:
|
204
|
+
groupEnd: U({}, j, {
|
205
205
|
value: Se
|
206
206
|
})
|
207
207
|
});
|
@@ -12965,8 +12965,8 @@ function Dd(n, e) {
|
|
12965
12965
|
if (d === jf && P) {
|
12966
12966
|
var B = P[s];
|
12967
12967
|
Object.keys(M).forEach(function(_) {
|
12968
|
-
var
|
12969
|
-
M[_] += B[L] *
|
12968
|
+
var U = [as, is].indexOf(_) >= 0 ? 1 : -1, L = [hr, is].indexOf(_) >= 0 ? "y" : "x";
|
12969
|
+
M[_] += B[L] * U;
|
12970
12970
|
});
|
12971
12971
|
}
|
12972
12972
|
return M;
|
@@ -13010,16 +13010,16 @@ function RH(n) {
|
|
13010
13010
|
allowedAutoPlacements: m
|
13011
13011
|
}) : Fe);
|
13012
13012
|
}, []), x = e.rects.reference, C = e.rects.popper, S = /* @__PURE__ */ new Map(), N = !0, R = w[0], M = 0; M < w.length; M++) {
|
13013
|
-
var P = w[M], B = ri(P), _ = Yu(P) === Qu,
|
13013
|
+
var P = w[M], B = ri(P), _ = Yu(P) === Qu, U = [hr, is].indexOf(B) >= 0, L = U ? "width" : "height", V = Dd(e, {
|
13014
13014
|
placement: P,
|
13015
13015
|
boundary: u,
|
13016
13016
|
rootBoundary: f,
|
13017
13017
|
altBoundary: d,
|
13018
13018
|
padding: c
|
13019
|
-
}), Q =
|
13019
|
+
}), Q = U ? _ ? as : pr : _ ? is : hr;
|
13020
13020
|
x[L] > C[L] && (Q = rm(Q));
|
13021
13021
|
var te = rm(Q), X = [];
|
13022
|
-
if (i && X.push(
|
13022
|
+
if (i && X.push(V[B] <= 0), a && X.push(V[Q] <= 0, V[te] <= 0), X.every(function(xe) {
|
13023
13023
|
return xe;
|
13024
13024
|
})) {
|
13025
13025
|
R = P, N = !1;
|
@@ -13158,10 +13158,10 @@ function FH(n) {
|
|
13158
13158
|
};
|
13159
13159
|
if (C) {
|
13160
13160
|
if (i) {
|
13161
|
-
var _,
|
13161
|
+
var _, U = w === "y" ? hr : pr, L = w === "y" ? is : as, V = w === "y" ? "height" : "width", Q = C[w], te = Q + y[U], X = Q - y[L], he = h ? -N[V] / 2 : 0, Ce = v === Qu ? S[V] : N[V], Se = v === Qu ? -N[V] : -S[V], ve = e.elements.arrow, xe = h && ve ? u1(ve) : {
|
13162
13162
|
width: 0,
|
13163
13163
|
height: 0
|
13164
|
-
}, Fe = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : O2(), Ue = Fe[
|
13164
|
+
}, Fe = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : O2(), Ue = Fe[U], ze = Fe[L], Ie = od(0, S[V], xe[V]), tt = A ? S[V] / 2 - he - Ie - Ue - M.mainAxis : Ce - Ie - Ue - M.mainAxis, le = A ? -S[V] / 2 + he + Ie + ze + M.mainAxis : Se + Ie + ze + M.mainAxis, $e = e.elements.arrow && _h(e.elements.arrow), ae = $e ? w === "y" ? $e.clientTop || 0 : $e.clientLeft || 0 : 0, be = (_ = P == null ? void 0 : P[w]) != null ? _ : 0, Le = Q + tt - be - ae, z = Q + le - be, K = od(h ? Km(te, Le) : te, Q, h ? Cl(X, z) : X);
|
13165
13165
|
C[w] = K, B[w] = K - Q;
|
13166
13166
|
}
|
13167
13167
|
if (a) {
|
@@ -13775,7 +13775,7 @@ function C8(n, e) {
|
|
13775
13775
|
return $e(), he(), Q(), te("onCreate", [w]), t.showOnCreate && O(), C.addEventListener("mouseenter", function() {
|
13776
13776
|
w.props.interactive && w.state.isVisible && w.clearDelayTimeouts();
|
13777
13777
|
}), C.addEventListener("mouseleave", function() {
|
13778
|
-
w.props.interactive && w.props.trigger.indexOf("mouseenter") >= 0 &&
|
13778
|
+
w.props.interactive && w.props.trigger.indexOf("mouseenter") >= 0 && U().addEventListener("mousemove", p);
|
13779
13779
|
}), w;
|
13780
13780
|
function M() {
|
13781
13781
|
var Y = w.props.touch;
|
@@ -13791,14 +13791,14 @@ function C8(n, e) {
|
|
13791
13791
|
function _() {
|
13792
13792
|
return m || n;
|
13793
13793
|
}
|
13794
|
-
function
|
13794
|
+
function U() {
|
13795
13795
|
var Y = _().parentNode;
|
13796
13796
|
return Y ? l8(Y) : document;
|
13797
13797
|
}
|
13798
13798
|
function L() {
|
13799
13799
|
return Ww(C);
|
13800
13800
|
}
|
13801
|
-
function
|
13801
|
+
function V(Y) {
|
13802
13802
|
return w.state.isMounted && !w.state.isVisible || Js.isTouch || u && u.type === "focus" ? 0 : Z0(w.props.delay, Y ? 0 : 1, Or.delay);
|
13803
13803
|
}
|
13804
13804
|
function Q(Y) {
|
@@ -13836,7 +13836,7 @@ function C8(n, e) {
|
|
13836
13836
|
}
|
13837
13837
|
}
|
13838
13838
|
function Ce() {
|
13839
|
-
|
13839
|
+
U().removeEventListener("mousemove", p), hp = hp.filter(function(Y) {
|
13840
13840
|
return Y !== p;
|
13841
13841
|
});
|
13842
13842
|
}
|
@@ -13864,11 +13864,11 @@ function C8(n, e) {
|
|
13864
13864
|
l = !1;
|
13865
13865
|
}
|
13866
13866
|
function Fe() {
|
13867
|
-
var Y =
|
13867
|
+
var Y = U();
|
13868
13868
|
Y.addEventListener("mousedown", Se, !0), Y.addEventListener("touchend", Se, Oa), Y.addEventListener("touchstart", xe, Oa), Y.addEventListener("touchmove", ve, Oa);
|
13869
13869
|
}
|
13870
13870
|
function Ue() {
|
13871
|
-
var Y =
|
13871
|
+
var Y = U();
|
13872
13872
|
Y.removeEventListener("mousedown", Se, !0), Y.removeEventListener("touchend", Se, Oa), Y.removeEventListener("touchstart", xe, Oa), Y.removeEventListener("touchmove", ve, Oa);
|
13873
13873
|
}
|
13874
13874
|
function ze(Y, ee) {
|
@@ -14040,7 +14040,7 @@ function C8(n, e) {
|
|
14040
14040
|
}
|
14041
14041
|
function O(Y) {
|
14042
14042
|
w.clearDelayTimeouts(), Y && te("onTrigger", [w, Y]), Fe();
|
14043
|
-
var ee =
|
14043
|
+
var ee = V(!0), se = M(), Re = se[0], pe = se[1];
|
14044
14044
|
Js.isTouch && Re === "hold" && pe && (ee = pe), ee ? r = setTimeout(function() {
|
14045
14045
|
w.show();
|
14046
14046
|
}, ee) : w.show();
|
@@ -14051,7 +14051,7 @@ function C8(n, e) {
|
|
14051
14051
|
return;
|
14052
14052
|
}
|
14053
14053
|
if (!(w.props.trigger.indexOf("mouseenter") >= 0 && w.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(Y.type) >= 0 && o)) {
|
14054
|
-
var ee =
|
14054
|
+
var ee = V(!1);
|
14055
14055
|
ee ? s = setTimeout(function() {
|
14056
14056
|
w.state.isVisible && w.hide();
|
14057
14057
|
}, ee) : i = requestAnimationFrame(function() {
|
@@ -14120,7 +14120,7 @@ function C8(n, e) {
|
|
14120
14120
|
}
|
14121
14121
|
}
|
14122
14122
|
function ft(Y) {
|
14123
|
-
process.env.NODE_ENV !== "production" && xi(w.state.isDestroyed, dc("hideWithInteractivity")),
|
14123
|
+
process.env.NODE_ENV !== "production" && xi(w.state.isDestroyed, dc("hideWithInteractivity")), U().addEventListener("mousemove", p), dk(hp, p), p(Y);
|
14124
14124
|
}
|
14125
14125
|
function Fn() {
|
14126
14126
|
process.env.NODE_ENV !== "production" && xi(w.state.isDestroyed, dc("unmount")), w.state.isVisible && w.hide(), w.state.isMounted && (D(), E().forEach(function(Y) {
|
@@ -17198,7 +17198,7 @@ function Y6({ activeSnapPointProp: n, setActiveSnapPointProp: e, snapPoints: t,
|
|
17198
17198
|
m(h[t.length - 1]);
|
17199
17199
|
return;
|
17200
17200
|
}
|
17201
|
-
const P = h == null ? void 0 : h.reduce((_,
|
17201
|
+
const P = h == null ? void 0 : h.reduce((_, U) => typeof _ != "number" || typeof U != "number" ? _ : Math.abs(U - S) < Math.abs(_ - S) ? U : _), B = Xt(a) ? window.innerHeight : window.innerWidth;
|
17202
17202
|
if (x > QM && Math.abs(A) < B * 0.4) {
|
17203
17203
|
const _ = M ? 1 : -1;
|
17204
17204
|
if (_ > 0 && u) {
|
@@ -17243,7 +17243,7 @@ function Y6({ activeSnapPointProp: n, setActiveSnapPointProp: e, snapPoints: t,
|
|
17243
17243
|
const X6 = 0.25, Z6 = 100, Fk = 8, Ta = 16, jk = 26, db = "vaul-dragging";
|
17244
17244
|
function qM({ open: n, onOpenChange: e, children: t, shouldScaleBackground: r, onDrag: s, onRelease: i, snapPoints: o, nested: a = !1, setBackgroundColorOnScale: l = !0, closeThreshold: c = X6, scrollLockTimeout: u = Z6, dismissible: f = !0, handleOnly: d = !1, fadeFromIndex: h = o && o.length - 1, activeSnapPoint: p, setActiveSnapPoint: m, fixed: y, modal: b = !0, onClose: v, noBodyStyles: A, direction: w = "bottom", preventScrollRestoration: x = !0, disablePreventScroll: C = !1 }) {
|
17245
17245
|
var S;
|
17246
|
-
const [N = !1, R] = re.useState(!1), [M, P] = re.useState(!1), [B, _] = re.useState(!1), [
|
17246
|
+
const [N = !1, R] = re.useState(!1), [M, P] = re.useState(!1), [B, _] = re.useState(!1), [U, L] = re.useState(!1), [V, Q] = re.useState(!1), [te, X] = re.useState(!1), he = re.useRef(null), Ce = re.useRef(null), Se = re.useRef(null), ve = re.useRef(null), xe = re.useRef(null), Fe = re.useRef(!1), Ue = re.useRef(null), ze = re.useRef(0), Ie = re.useRef(!1), tt = re.useRef(0), le = re.useRef(null), $e = re.useRef(((S = le.current) == null ? void 0 : S.getBoundingClientRect().height) || 0), ae = re.useRef(0), be = re.useCallback((ee) => {
|
17247
17247
|
o && ee === ce.length - 1 && (Ce.current = /* @__PURE__ */ new Date());
|
17248
17248
|
}, []), { activeSnapPoint: Le, activeSnapPointIndex: z, setActiveSnapPoint: K, onRelease: ne, snapPointsOffset: ce, onDrag: D, shouldFade: g, getPercentageDragged: E } = Y6({
|
17249
17249
|
snapPoints: o,
|
@@ -17256,7 +17256,7 @@ function qM({ open: n, onOpenChange: e, children: t, shouldScaleBackground: r, o
|
|
17256
17256
|
direction: w
|
17257
17257
|
});
|
17258
17258
|
H6({
|
17259
|
-
isDisabled: !N ||
|
17259
|
+
isDisabled: !N || V || !b || te || !M || C
|
17260
17260
|
});
|
17261
17261
|
const { restorePositionSetting: O } = K6({
|
17262
17262
|
isOpen: N,
|
@@ -17303,7 +17303,7 @@ function qM({ open: n, onOpenChange: e, children: t, shouldScaleBackground: r, o
|
|
17303
17303
|
return !0;
|
17304
17304
|
}
|
17305
17305
|
function ye(ee) {
|
17306
|
-
if (le.current &&
|
17306
|
+
if (le.current && V) {
|
17307
17307
|
const se = w === "bottom" || w === "right" ? 1 : -1, Re = (ze.current - (Xt(w) ? ee.clientY : ee.clientX)) * se, pe = Re > 0, We = o && !f && !pe;
|
17308
17308
|
if (We && z === 0) return;
|
17309
17309
|
const nt = Math.abs(Re), gt = document.querySelector("[vaul-drawer-wrapper]");
|
@@ -17407,7 +17407,7 @@ function qM({ open: n, onOpenChange: e, children: t, shouldScaleBackground: r, o
|
|
17407
17407
|
}, [
|
17408
17408
|
n
|
17409
17409
|
]), re.useEffect(() => {
|
17410
|
-
|
17410
|
+
U && (e == null || e(N));
|
17411
17411
|
}, [
|
17412
17412
|
N
|
17413
17413
|
]), re.useEffect(() => {
|
@@ -17438,10 +17438,10 @@ function qM({ open: n, onOpenChange: e, children: t, shouldScaleBackground: r, o
|
|
17438
17438
|
}, !0);
|
17439
17439
|
}
|
17440
17440
|
function Ve() {
|
17441
|
-
!
|
17441
|
+
!V || !le.current || (le.current.classList.remove(db), Fe.current = !1, Q(!1), ve.current = /* @__PURE__ */ new Date());
|
17442
17442
|
}
|
17443
17443
|
function je(ee) {
|
17444
|
-
if (!
|
17444
|
+
if (!V || !le.current) return;
|
17445
17445
|
le.current.classList.remove(db), Fe.current = !1, Q(!1), ve.current = /* @__PURE__ */ new Date();
|
17446
17446
|
const se = vp(le.current, w);
|
17447
17447
|
if (!q(ee.target, !1) || !se || Number.isNaN(se) || Se.current === null) return;
|
@@ -17571,7 +17571,7 @@ function qM({ open: n, onOpenChange: e, children: t, shouldScaleBackground: r, o
|
|
17571
17571
|
dismissible: f,
|
17572
17572
|
handleOnly: d,
|
17573
17573
|
isOpen: N,
|
17574
|
-
isDragging:
|
17574
|
+
isDragging: V,
|
17575
17575
|
shouldFade: g,
|
17576
17576
|
closeDrawer: Te,
|
17577
17577
|
onNestedDrag: er,
|
@@ -17662,15 +17662,15 @@ XM.displayName = "Drawer.Overlay";
|
|
17662
17662
|
const ZM = /* @__PURE__ */ re.forwardRef(function({ onOpenAutoFocus: n, onPointerDownOutside: e, onAnimationEnd: t, style: r, ...s }, i) {
|
17663
17663
|
const { drawerRef: o, onPress: a, onRelease: l, onDrag: c, dismissible: u, keyboardIsOpen: f, snapPointsOffset: d, visible: h, closeDrawer: p, modal: m, openProp: y, onOpenChange: b, setVisible: v, handleOnly: A, direction: w } = Qy(), x = WM(i, o), C = re.useRef(null), S = re.useRef(!1), N = (R, M, P = 0) => {
|
17664
17664
|
if (S.current) return !0;
|
17665
|
-
const B = Math.abs(R.y), _ = Math.abs(R.x),
|
17665
|
+
const B = Math.abs(R.y), _ = Math.abs(R.x), U = _ > B, L = [
|
17666
17666
|
"bottom",
|
17667
17667
|
"right"
|
17668
17668
|
].includes(M) ? 1 : -1;
|
17669
17669
|
if (M === "left" || M === "right") {
|
17670
17670
|
if (!(R.x * L < 0) && _ >= 0 && _ <= P)
|
17671
|
-
return
|
17671
|
+
return U;
|
17672
17672
|
} else if (!(R.y * L < 0) && B >= 0 && B <= P)
|
17673
|
-
return !
|
17673
|
+
return !U;
|
17674
17674
|
return S.current = !0, !0;
|
17675
17675
|
};
|
17676
17676
|
return re.useEffect(() => {
|
@@ -18194,7 +18194,7 @@ function bz(n, e, t, r, s, i, o, a, l, c, u, f, d, h, p, m, y, b, v) {
|
|
18194
18194
|
mouse: 500,
|
18195
18195
|
touch: 600
|
18196
18196
|
}, B = p ? 43 : 25;
|
18197
|
-
let _ = !1,
|
18197
|
+
let _ = !1, U = 0, L = 0, V = !1, Q = !1, te = !1, X = !1;
|
18198
18198
|
function he(ae) {
|
18199
18199
|
if (!v) return;
|
18200
18200
|
function be(z) {
|
@@ -18225,11 +18225,11 @@ function bz(n, e, t, r, s, i, o, a, l, c, u, f, d, h, p, m, y, b, v) {
|
|
18225
18225
|
}
|
18226
18226
|
function Ue(ae) {
|
18227
18227
|
const be = nA(ae, r);
|
18228
|
-
X = be, te = p && be && !ae.buttons && _, _ = cd(s.get(), o.get()) >= 2, !(be && ae.button !== 0) && (ve(ae.target) || (
|
18228
|
+
X = be, te = p && be && !ae.buttons && _, _ = cd(s.get(), o.get()) >= 2, !(be && ae.button !== 0) && (ve(ae.target) || (V = !0, i.pointerDown(ae), c.useFriction(0).useDuration(0), s.set(o), Se(), U = i.readPoint(ae), L = i.readPoint(ae, A), d.emit("pointerDown")));
|
18229
18229
|
}
|
18230
18230
|
function ze(ae) {
|
18231
18231
|
if (!nA(ae, r) && ae.touches.length >= 2) return Ie(ae);
|
18232
|
-
const Le = i.readPoint(ae), z = i.readPoint(ae, A), K = cd(Le,
|
18232
|
+
const Le = i.readPoint(ae), z = i.readPoint(ae, A), K = cd(Le, U), ne = cd(z, L);
|
18233
18233
|
if (!Q && !X && (!ae.cancelable || (Q = K > ne, !Q)))
|
18234
18234
|
return Ie(ae);
|
18235
18235
|
const ce = i.pointerMove(ae);
|
@@ -18237,13 +18237,13 @@ function bz(n, e, t, r, s, i, o, a, l, c, u, f, d, h, p, m, y, b, v) {
|
|
18237
18237
|
}
|
18238
18238
|
function Ie(ae) {
|
18239
18239
|
const Le = u.byDistance(0, !1).index !== f.get(), z = i.pointerUp(ae) * xe(), K = Fe(w(z), Le), ne = pz(z, K), ce = B - 10 * ne, D = b + ne / 50;
|
18240
|
-
Q = !1,
|
18240
|
+
Q = !1, V = !1, N.clear(), c.useDuration(ce).useFriction(D), l.distance(K, !p), X = !1, d.emit("pointerUp");
|
18241
18241
|
}
|
18242
18242
|
function tt(ae) {
|
18243
18243
|
te && (ae.stopPropagation(), ae.preventDefault(), te = !1);
|
18244
18244
|
}
|
18245
18245
|
function le() {
|
18246
|
-
return
|
18246
|
+
return V;
|
18247
18247
|
}
|
18248
18248
|
return {
|
18249
18249
|
init: he,
|
@@ -18682,7 +18682,7 @@ function Iz(n, e, t, r, s, i, o, a, l) {
|
|
18682
18682
|
function y(S, N, R) {
|
18683
18683
|
const M = m(N);
|
18684
18684
|
return S.map((P) => {
|
18685
|
-
const B = R ? 0 : -t, _ = R ? t : 0,
|
18685
|
+
const B = R ? 0 : -t, _ = R ? t : 0, U = R ? "end" : "start", L = M[P][U];
|
18686
18686
|
return {
|
18687
18687
|
index: P,
|
18688
18688
|
loopPoint: L,
|
@@ -18861,8 +18861,8 @@ function jz(n, e, t, r, s, i, o) {
|
|
18861
18861
|
watchResize: A,
|
18862
18862
|
watchSlides: w,
|
18863
18863
|
watchDrag: x
|
18864
|
-
} = i, C = 2, S = Az(), N = S.measure(e), R = t.map(S.measure), M = yz(l, c), P = M.measureSize(N), B = vz(P), _ = mz(a, P),
|
18865
|
-
slideSizes:
|
18864
|
+
} = i, C = 2, S = Az(), N = S.measure(e), R = t.map(S.measure), M = yz(l, c), P = M.measureSize(N), B = vz(P), _ = mz(a, P), U = !f && !!v, L = f || !!v, {
|
18865
|
+
slideSizes: V,
|
18866
18866
|
slideSizesWithGaps: Q,
|
18867
18867
|
startGap: te,
|
18868
18868
|
endGap: X
|
@@ -18872,7 +18872,7 @@ function jz(n, e, t, r, s, i, o) {
|
|
18872
18872
|
} = Oz(M, _, N, R, he), ve = -vs(Ce) + vs(Q), {
|
18873
18873
|
snapsContained: xe,
|
18874
18874
|
scrollContainLimit: Fe
|
18875
|
-
} = kz(P, ve, Se, v, C), Ue =
|
18875
|
+
} = kz(P, ve, Se, v, C), Ue = U ? xe : Se, {
|
18876
18876
|
limit: ze
|
18877
18877
|
} = Sz(ve, Ue, f), Ie = fP($h(Ue), u, f), tt = Ie.clone(), le = Bd(t), $e = ({
|
18878
18878
|
dragHandler: Je,
|
@@ -18902,7 +18902,7 @@ function jz(n, e, t, r, s, i, o) {
|
|
18902
18902
|
Pt && !Y.pointerDown() && (ee.stop(), se.emit("settle")), Pt || se.emit("scroll"), ft.set(je.get() - nt + nt * We), pe && (Fn.loop(Je.direction()), er.loop()), Ve.to(ft.get());
|
18903
18903
|
}, be = gz(r, s, () => $e(Te), (Je) => ae(Te, Je)), Le = 0.68, z = Ue[Ie.get()], K = am(z), ne = am(z), ce = am(z), D = Ez(K, ne, ce, d, Le), g = Mz(f, Ue, ve, ze, ce), E = Pz(be, Ie, tt, D, g, ce, o), O = Rz(ze), F = Fd(), W = Bz(e, t, o, m), {
|
18904
18904
|
slideRegistry: q
|
18905
|
-
} = Nz(
|
18905
|
+
} = Nz(U, v, Ue, Fe, he, le), ye = Dz(n, t, q, E, D, F, o), Te = {
|
18906
18906
|
ownerDocument: r,
|
18907
18907
|
ownerWindow: s,
|
18908
18908
|
eventHandler: o,
|
@@ -18928,7 +18928,7 @@ function jz(n, e, t, r, s, i, o) {
|
|
18928
18928
|
scrollSnaps: Ue,
|
18929
18929
|
scrollTarget: g,
|
18930
18930
|
scrollTo: E,
|
18931
|
-
slideLooper: Iz(M, P, ve,
|
18931
|
+
slideLooper: Iz(M, P, ve, V, Q, Ce, Ue, ne, t),
|
18932
18932
|
slideFocus: ye,
|
18933
18933
|
slidesHandler: Lz(e, o, w),
|
18934
18934
|
slidesInView: W,
|
@@ -19071,16 +19071,16 @@ function Xm(n, e, t) {
|
|
19071
19071
|
function _() {
|
19072
19072
|
y || (y = !0, a.clear(), B(), l.emit("destroy"), l.clear());
|
19073
19073
|
}
|
19074
|
-
function
|
19074
|
+
function U($e, ae, be) {
|
19075
19075
|
!A.active || y || (b.scrollBody.useBaseFriction().useDuration(ae === !0 ? 0 : A.duration), b.scrollTo.index($e, be || 0));
|
19076
19076
|
}
|
19077
19077
|
function L($e) {
|
19078
19078
|
const ae = b.index.add(1).get();
|
19079
|
-
|
19079
|
+
U(ae, $e, -1);
|
19080
19080
|
}
|
19081
|
-
function
|
19081
|
+
function V($e) {
|
19082
19082
|
const ae = b.index.add(-1).get();
|
19083
|
-
|
19083
|
+
U(ae, $e, 1);
|
19084
19084
|
}
|
19085
19085
|
function Q() {
|
19086
19086
|
return b.index.add(1).get() !== Ce();
|
@@ -19135,10 +19135,10 @@ function Xm(n, e, t) {
|
|
19135
19135
|
reInit: m,
|
19136
19136
|
rootNode: ze,
|
19137
19137
|
scrollNext: L,
|
19138
|
-
scrollPrev:
|
19138
|
+
scrollPrev: V,
|
19139
19139
|
scrollProgress: he,
|
19140
19140
|
scrollSnapList: X,
|
19141
|
-
scrollTo:
|
19141
|
+
scrollTo: U,
|
19142
19142
|
selectedScrollSnap: Ce,
|
19143
19143
|
slideNodes: tt,
|
19144
19144
|
slidesInView: ve,
|
@@ -27509,7 +27509,7 @@ var FD = { exports: {} };
|
|
27509
27509
|
case "binary":
|
27510
27510
|
return he(this, E, O);
|
27511
27511
|
case "base64":
|
27512
|
-
return
|
27512
|
+
return V(this, E, O);
|
27513
27513
|
case "ucs2":
|
27514
27514
|
case "ucs-2":
|
27515
27515
|
case "utf16le":
|
@@ -27579,13 +27579,13 @@ var FD = { exports: {} };
|
|
27579
27579
|
function _(g, E, O, F) {
|
27580
27580
|
return B(g, E, O, F);
|
27581
27581
|
}
|
27582
|
-
function
|
27582
|
+
function U(g, E, O, F) {
|
27583
27583
|
return Le(be(E), g, O, F);
|
27584
27584
|
}
|
27585
27585
|
function L(g, E, O, F) {
|
27586
27586
|
return Le(ae(E, g.length - O), g, O, F);
|
27587
27587
|
}
|
27588
|
-
function
|
27588
|
+
function V(g, E, O) {
|
27589
27589
|
return E === 0 && O === g.length ? ne.fromByteArray(g) : ne.fromByteArray(g.slice(E, O));
|
27590
27590
|
}
|
27591
27591
|
function Q(g, E, O) {
|
@@ -27838,7 +27838,7 @@ var FD = { exports: {} };
|
|
27838
27838
|
case "binary":
|
27839
27839
|
return _(this, g, E, O);
|
27840
27840
|
case "base64":
|
27841
|
-
return
|
27841
|
+
return U(this, g, E, O);
|
27842
27842
|
case "ucs2":
|
27843
27843
|
case "ucs-2":
|
27844
27844
|
case "utf16le":
|
@@ -28135,12 +28135,12 @@ var FD = { exports: {} };
|
|
28135
28135
|
return M._maxListeners === void 0 ? l.defaultMaxListeners : M._maxListeners;
|
28136
28136
|
}
|
28137
28137
|
function f(M, P, B, _) {
|
28138
|
-
var
|
28139
|
-
if (c(B), L = M._events, L === void 0 ? (L = M._events = /* @__PURE__ */ Object.create(null), M._eventsCount = 0) : (L.newListener !== void 0 && (M.emit("newListener", P, B.listener ? B.listener : B), L = M._events),
|
28140
|
-
else if (typeof
|
28141
|
-
|
28142
|
-
var Q = new Error("Possible EventEmitter memory leak detected. " +
|
28143
|
-
Q.name = "MaxListenersExceededWarning", Q.emitter = M, Q.type = P, Q.count =
|
28138
|
+
var U, L, V;
|
28139
|
+
if (c(B), L = M._events, L === void 0 ? (L = M._events = /* @__PURE__ */ Object.create(null), M._eventsCount = 0) : (L.newListener !== void 0 && (M.emit("newListener", P, B.listener ? B.listener : B), L = M._events), V = L[P]), V === void 0) V = L[P] = B, ++M._eventsCount;
|
28140
|
+
else if (typeof V == "function" ? V = L[P] = _ ? [B, V] : [V, B] : _ ? V.unshift(B) : V.push(B), U = u(M), 0 < U && V.length > U && !V.warned) {
|
28141
|
+
V.warned = !0;
|
28142
|
+
var Q = new Error("Possible EventEmitter memory leak detected. " + V.length + " " + (P + " listeners added. Use emitter.setMaxListeners() to increase limit"));
|
28143
|
+
Q.name = "MaxListenersExceededWarning", Q.emitter = M, Q.type = P, Q.count = V.length, a(Q);
|
28144
28144
|
}
|
28145
28145
|
return M;
|
28146
28146
|
}
|
@@ -28148,14 +28148,14 @@ var FD = { exports: {} };
|
|
28148
28148
|
if (!this.fired) return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
|
28149
28149
|
}
|
28150
28150
|
function h(M, P, B) {
|
28151
|
-
var _ = { fired: !1, wrapFn: void 0, target: M, type: P, listener: B },
|
28152
|
-
return
|
28151
|
+
var _ = { fired: !1, wrapFn: void 0, target: M, type: P, listener: B }, U = d.bind(_);
|
28152
|
+
return U.listener = B, _.wrapFn = U, U;
|
28153
28153
|
}
|
28154
28154
|
function p(M, P, B) {
|
28155
28155
|
var _ = M._events;
|
28156
28156
|
if (_ === void 0) return [];
|
28157
|
-
var
|
28158
|
-
return
|
28157
|
+
var U = _[P];
|
28158
|
+
return U === void 0 ? [] : typeof U == "function" ? B ? [U.listener || U] : [U] : B ? v(U) : y(U, U.length);
|
28159
28159
|
}
|
28160
28160
|
function m(M) {
|
28161
28161
|
var P = this._events;
|
@@ -28183,8 +28183,8 @@ var FD = { exports: {} };
|
|
28183
28183
|
}
|
28184
28184
|
function w(M, P, B, _) {
|
28185
28185
|
if (typeof M.on == "function") _.once ? M.once(P, B) : M.on(P, B);
|
28186
|
-
else if (typeof M.addEventListener == "function") M.addEventListener(P, function
|
28187
|
-
_.once && M.removeEventListener(P,
|
28186
|
+
else if (typeof M.addEventListener == "function") M.addEventListener(P, function U(L) {
|
28187
|
+
_.once && M.removeEventListener(P, U), B(L);
|
28188
28188
|
});
|
28189
28189
|
else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof M);
|
28190
28190
|
}
|
@@ -28201,13 +28201,13 @@ var FD = { exports: {} };
|
|
28201
28201
|
};
|
28202
28202
|
o.exports = l, o.exports.once = function(M, P) {
|
28203
28203
|
return new Promise(function(B, _) {
|
28204
|
-
function V
|
28205
|
-
M.removeListener(P, L), _(
|
28204
|
+
function U(V) {
|
28205
|
+
M.removeListener(P, L), _(V);
|
28206
28206
|
}
|
28207
28207
|
function L() {
|
28208
|
-
typeof M.removeListener == "function" && M.removeListener("error",
|
28208
|
+
typeof M.removeListener == "function" && M.removeListener("error", U), B([].slice.call(arguments));
|
28209
28209
|
}
|
28210
|
-
w(M, P, L, { once: !0 }), P !== "error" && A(M,
|
28210
|
+
w(M, P, L, { once: !0 }), P !== "error" && A(M, U, { once: !0 });
|
28211
28211
|
});
|
28212
28212
|
}, l.EventEmitter = l, l.prototype._events = void 0, l.prototype._eventsCount = 0, l.prototype._maxListeners = void 0;
|
28213
28213
|
var R = 10;
|
@@ -28225,16 +28225,16 @@ var FD = { exports: {} };
|
|
28225
28225
|
return u(this);
|
28226
28226
|
}, l.prototype.emit = function(M) {
|
28227
28227
|
for (var P = [], B = 1; B < arguments.length; B++) P.push(arguments[B]);
|
28228
|
-
var _ = M === "error",
|
28229
|
-
if (
|
28228
|
+
var _ = M === "error", U = this._events;
|
28229
|
+
if (U !== void 0) _ = _ && U.error === void 0;
|
28230
28230
|
else if (!_) return !1;
|
28231
28231
|
if (_) {
|
28232
28232
|
var L;
|
28233
28233
|
if (0 < P.length && (L = P[0]), L instanceof Error) throw L;
|
28234
|
-
var
|
28235
|
-
throw
|
28234
|
+
var V = new Error("Unhandled error." + (L ? " (" + L.message + ")" : ""));
|
28235
|
+
throw V.context = L, V;
|
28236
28236
|
}
|
28237
|
-
var Q =
|
28237
|
+
var Q = U[M];
|
28238
28238
|
if (Q === void 0) return !1;
|
28239
28239
|
if (typeof Q == "function") S(Q, this, P);
|
28240
28240
|
else for (var te = Q.length, X = y(Q, te), B = 0; B < te; ++B) S(X[B], this, P);
|
@@ -28248,17 +28248,17 @@ var FD = { exports: {} };
|
|
28248
28248
|
}, l.prototype.prependOnceListener = function(M, P) {
|
28249
28249
|
return c(P), this.prependListener(M, h(this, M, P)), this;
|
28250
28250
|
}, l.prototype.removeListener = function(M, P) {
|
28251
|
-
var B, _,
|
28251
|
+
var B, _, U, L, V;
|
28252
28252
|
if (c(P), _ = this._events, _ === void 0) return this;
|
28253
28253
|
if (B = _[M], B === void 0) return this;
|
28254
28254
|
if (B === P || B.listener === P) --this._eventsCount == 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete _[M], _.removeListener && this.emit("removeListener", M, B.listener || P));
|
28255
28255
|
else if (typeof B != "function") {
|
28256
|
-
for (
|
28257
|
-
|
28256
|
+
for (U = -1, L = B.length - 1; 0 <= L; L--) if (B[L] === P || B[L].listener === P) {
|
28257
|
+
V = B[L].listener, U = L;
|
28258
28258
|
break;
|
28259
28259
|
}
|
28260
|
-
if (0 >
|
28261
|
-
|
28260
|
+
if (0 > U) return this;
|
28261
|
+
U === 0 ? B.shift() : b(B, U), B.length === 1 && (_[M] = B[0]), _.removeListener !== void 0 && this.emit("removeListener", M, V || P);
|
28262
28262
|
}
|
28263
28263
|
return this;
|
28264
28264
|
}, l.prototype.off = l.prototype.removeListener, l.prototype.removeAllListeners = function(M) {
|
@@ -28266,8 +28266,8 @@ var FD = { exports: {} };
|
|
28266
28266
|
if (B = this._events, B === void 0) return this;
|
28267
28267
|
if (B.removeListener === void 0) return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : B[M] !== void 0 && (--this._eventsCount == 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete B[M]), this;
|
28268
28268
|
if (arguments.length === 0) {
|
28269
|
-
var
|
28270
|
-
for (_ = 0; _ < L.length; ++_)
|
28269
|
+
var U, L = Object.keys(B);
|
28270
|
+
for (_ = 0; _ < L.length; ++_) U = L[_], U !== "removeListener" && this.removeAllListeners(U);
|
28271
28271
|
return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
|
28272
28272
|
}
|
28273
28273
|
if (P = B[M], typeof P == "function") this.removeListener(M, P);
|
@@ -28655,16 +28655,16 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
28655
28655
|
var g = D._readableState;
|
28656
28656
|
for (X("flow", g.flowing); g.flowing && D.read() !== null; ) ;
|
28657
28657
|
}
|
28658
|
-
function
|
28658
|
+
function U(D, g) {
|
28659
28659
|
if (g.length === 0) return null;
|
28660
28660
|
var E;
|
28661
28661
|
return g.objectMode ? E = g.buffer.shift() : !D || D >= g.length ? (E = g.decoder ? g.buffer.join("") : g.buffer.length === 1 ? g.buffer.first() : g.buffer.concat(g.length), g.buffer.clear()) : E = g.buffer.consume(D, g.decoder), E;
|
28662
28662
|
}
|
28663
28663
|
function L(D) {
|
28664
28664
|
var g = D._readableState;
|
28665
|
-
X("endReadable", g.endEmitted), g.endEmitted || (g.ended = !0, a.nextTick(
|
28665
|
+
X("endReadable", g.endEmitted), g.endEmitted || (g.ended = !0, a.nextTick(V, g, D));
|
28666
28666
|
}
|
28667
|
-
function
|
28667
|
+
function V(D, g) {
|
28668
28668
|
if (X("endReadableNT", D.endEmitted, D.length), !D.endEmitted && D.length === 0 && (D.endEmitted = !0, g.readable = !1, g.emit("end"), D.autoDestroy)) {
|
28669
28669
|
var E = g._writableState;
|
28670
28670
|
(!E || E.autoDestroy && E.finished) && g.destroy();
|
@@ -28715,7 +28715,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
28715
28715
|
var O = g.needReadable;
|
28716
28716
|
X("need readable", O), (g.length === 0 || g.length - D < g.highWaterMark) && (O = !0, X("length less than watermark", O)), g.ended || g.reading ? (O = !1, X("reading or ended", O)) : O && (X("do read"), g.reading = !0, g.sync = !0, g.length === 0 && (g.needReadable = !0), this._read(g.highWaterMark), g.sync = !1, !g.reading && (D = v(E, g)));
|
28717
28717
|
var F;
|
28718
|
-
return F = 0 < D ?
|
28718
|
+
return F = 0 < D ? U(D, g) : null, F === null ? (g.needReadable = g.length <= g.highWaterMark, D = 0) : (g.length -= D, g.awaitDrain = 0), g.length === 0 && (!g.ended && (g.needReadable = !0), E !== D && g.ended && L(this)), F !== null && this.emit("data", F), F;
|
28719
28719
|
}, h.prototype._read = function() {
|
28720
28720
|
ne(this, new z("_read()"));
|
28721
28721
|
}, h.prototype.pipe = function(D, g) {
|
@@ -28821,7 +28821,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
28821
28821
|
return this._readableState.flowing;
|
28822
28822
|
}, set: function(D) {
|
28823
28823
|
this._readableState && (this._readableState.flowing = D);
|
28824
|
-
} }), h._fromList =
|
28824
|
+
} }), h._fromList = U, Object.defineProperty(h.prototype, "readableLength", { enumerable: !1, get: function() {
|
28825
28825
|
return this._readableState.length;
|
28826
28826
|
} }), typeof Symbol == "function" && (h.from = function(D, g) {
|
28827
28827
|
return ze === void 0 && (ze = i("./internal/streams/from")), ze(h, D, g);
|
@@ -28891,15 +28891,15 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
28891
28891
|
function d() {
|
28892
28892
|
}
|
28893
28893
|
function h(z, K, ne) {
|
28894
|
-
|
28894
|
+
V = V || i("./_stream_duplex"), z = z || {}, typeof ne != "boolean" && (ne = K instanceof V), this.objectMode = !!z.objectMode, ne && (this.objectMode = this.objectMode || !!z.writableObjectMode), this.highWaterMark = ve(this, z, "writableHighWaterMark", ne), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
|
28895
28895
|
var ce = z.decodeStrings === !1;
|
28896
28896
|
this.decodeStrings = !ce, this.defaultEncoding = z.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(D) {
|
28897
28897
|
C(K, D);
|
28898
28898
|
}, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = z.emitClose !== !1, this.autoDestroy = !!z.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new c(this);
|
28899
28899
|
}
|
28900
28900
|
function p(z) {
|
28901
|
-
|
28902
|
-
var K = this instanceof
|
28901
|
+
V = V || i("./_stream_duplex");
|
28902
|
+
var K = this instanceof V;
|
28903
28903
|
return K || Le.call(p, this) ? (this._writableState = new h(z, this, K), this.writable = !0, z && (typeof z.write == "function" && (this._write = z.write), typeof z.writev == "function" && (this._writev = z.writev), typeof z.destroy == "function" && (this._destroy = z.destroy), typeof z.final == "function" && (this._final = z.final)), void te.call(this)) : new p(z);
|
28904
28904
|
}
|
28905
28905
|
function m(z, K) {
|
@@ -28987,7 +28987,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
28987
28987
|
}
|
28988
28988
|
return ne;
|
28989
28989
|
}
|
28990
|
-
function
|
28990
|
+
function U(z, K, ne) {
|
28991
28991
|
K.ending = !0, _(z, K), ne && (K.finished ? a.nextTick(ne) : z.once("finish", ne)), K.ended = !0, z.writable = !1;
|
28992
28992
|
}
|
28993
28993
|
function L(z, K, ne) {
|
@@ -28999,7 +28999,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
28999
28999
|
K.corkedRequestsFree.next = z;
|
29000
29000
|
}
|
29001
29001
|
o.exports = p;
|
29002
|
-
var
|
29002
|
+
var V;
|
29003
29003
|
p.WritableState = h;
|
29004
29004
|
var Q = { deprecate: i("util-deprecate") }, te = i("./internal/streams/stream"), X = i("buffer").Buffer, he = l.Uint8Array || function() {
|
29005
29005
|
}, Ce = i("./internal/streams/destroy"), Se = i("./internal/streams/state"), ve = Se.getHighWaterMark, xe = i("../errors").codes, Fe = xe.ERR_INVALID_ARG_TYPE, Ue = xe.ERR_METHOD_NOT_IMPLEMENTED, ze = xe.ERR_MULTIPLE_CALLBACK, Ie = xe.ERR_STREAM_CANNOT_PIPE, tt = xe.ERR_STREAM_DESTROYED, le = xe.ERR_STREAM_NULL_VALUES, $e = xe.ERR_STREAM_WRITE_AFTER_END, ae = xe.ERR_UNKNOWN_ENCODING, be = Ce.errorOrDestroy;
|
@@ -29040,7 +29040,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
29040
29040
|
ne(new Ue("_write()"));
|
29041
29041
|
}, p.prototype._writev = null, p.prototype.end = function(z, K, ne) {
|
29042
29042
|
var ce = this._writableState;
|
29043
|
-
return typeof z == "function" ? (ne = z, z = null, K = null) : typeof K == "function" && (ne = K, K = null), z != null && this.write(z, K), ce.corked && (ce.corked = 1, this.uncork()), ce.ending ||
|
29043
|
+
return typeof z == "function" ? (ne = z, z = null, K = null) : typeof K == "function" && (ne = K, K = null), z != null && this.write(z, K), ce.corked && (ce.corked = 1, this.uncork()), ce.ending || U(this, ce, ne), this;
|
29044
29044
|
}, Object.defineProperty(p.prototype, "writableLength", { enumerable: !1, get: function() {
|
29045
29045
|
return this._writableState.length;
|
29046
29046
|
} }), Object.defineProperty(p.prototype, "destroyed", { enumerable: !1, get: function() {
|
@@ -29085,9 +29085,9 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
29085
29085
|
var N = this, R = this[b];
|
29086
29086
|
if (R !== null) return Promise.reject(R);
|
29087
29087
|
if (this[v]) return Promise.resolve(c(void 0, !0));
|
29088
|
-
if (this[x].destroyed) return new Promise(function(_,
|
29088
|
+
if (this[x].destroyed) return new Promise(function(_, U) {
|
29089
29089
|
a.nextTick(function() {
|
29090
|
-
N[b] ?
|
29090
|
+
N[b] ? U(N[b]) : _(c(void 0, !0));
|
29091
29091
|
});
|
29092
29092
|
});
|
29093
29093
|
var M, P = this[A];
|
@@ -33592,12 +33592,12 @@ function qK(n) {
|
|
33592
33592
|
// <>
|
33593
33593
|
];
|
33594
33594
|
for (let _ = 0; _ < B.length; _++) {
|
33595
|
-
const [
|
33596
|
-
de(S,
|
33595
|
+
const [U, L] = B[_], V = de(C, U);
|
33596
|
+
de(S, U, V), de(V, L, C);
|
33597
33597
|
const Q = Ur(Mp);
|
33598
|
-
Xe(
|
33598
|
+
Xe(V, t, Q);
|
33599
33599
|
const te = Ur();
|
33600
|
-
Xe(
|
33600
|
+
Xe(V, r), Xe(Q, t, Q), Xe(Q, r, te), Xe(te, t, Q), Xe(te, r, te), de(Q, L, C), de(te, L, C);
|
33601
33601
|
}
|
33602
33602
|
return de(i, Xd, A), de(i, kx, JK), {
|
33603
33603
|
start: i,
|
@@ -34164,8 +34164,8 @@ function y7({ pluginKey: n = g7, editor: e, char: t = "@", allowSpaces: r = !1,
|
|
34164
34164
|
return {
|
34165
34165
|
update: async (y, b) => {
|
34166
34166
|
var v, A, w, x, C, S, N;
|
34167
|
-
const R = (v = this.key) === null || v === void 0 ? void 0 : v.getState(b), M = (A = this.key) === null || A === void 0 ? void 0 : A.getState(y.state), P = R.active && M.active && R.range.from !== M.range.from, B = !R.active && M.active, _ = R.active && !M.active,
|
34168
|
-
if (!L && !
|
34167
|
+
const R = (v = this.key) === null || v === void 0 ? void 0 : v.getState(b), M = (A = this.key) === null || A === void 0 ? void 0 : A.getState(y.state), P = R.active && M.active && R.range.from !== M.range.from, B = !R.active && M.active, _ = R.active && !M.active, U = !B && !_ && R.query !== M.query, L = B || P, V = U && !P, Q = _ || P;
|
34168
|
+
if (!L && !V && !Q)
|
34169
34169
|
return;
|
34170
34170
|
const te = Q && !L ? R : M, X = y.dom.querySelector(`[data-decoration-id="${te.decorationId}"]`);
|
34171
34171
|
h = {
|
@@ -34187,10 +34187,10 @@ function y7({ pluginKey: n = g7, editor: e, char: t = "@", allowSpaces: r = !1,
|
|
34187
34187
|
const { decorationId: Ce } = (he = this.key) === null || he === void 0 ? void 0 : he.getState(e.state), Se = y.dom.querySelector(`[data-decoration-id="${Ce}"]`);
|
34188
34188
|
return (Se == null ? void 0 : Se.getBoundingClientRect()) || null;
|
34189
34189
|
} : null
|
34190
|
-
}, L && ((w = p == null ? void 0 : p.onBeforeStart) === null || w === void 0 || w.call(p, h)),
|
34190
|
+
}, L && ((w = p == null ? void 0 : p.onBeforeStart) === null || w === void 0 || w.call(p, h)), V && ((x = p == null ? void 0 : p.onBeforeUpdate) === null || x === void 0 || x.call(p, h)), (V || L) && (h.items = await c({
|
34191
34191
|
editor: e,
|
34192
34192
|
query: te.query
|
34193
|
-
})), Q && ((C = p == null ? void 0 : p.onExit) === null || C === void 0 || C.call(p, h)),
|
34193
|
+
})), Q && ((C = p == null ? void 0 : p.onExit) === null || C === void 0 || C.call(p, h)), V && ((S = p == null ? void 0 : p.onUpdate) === null || S === void 0 || S.call(p, h)), L && ((N = p == null ? void 0 : p.onStart) === null || N === void 0 || N.call(p, h));
|
34194
34194
|
},
|
34195
34195
|
destroy: () => {
|
34196
34196
|
var y;
|
@@ -34696,21 +34696,21 @@ const wI = ({
|
|
34696
34696
|
}) => {
|
34697
34697
|
const r = qy(), [s, i] = et(), [o, a] = et(0), [l, c] = et(0), [u, f] = et({}), d = ut(null), [h, p] = et(!1), m = () => {
|
34698
34698
|
const _ = {};
|
34699
|
-
KS.forEach(({ tooltip:
|
34700
|
-
_[
|
34699
|
+
KS.forEach(({ tooltip: U, isActive: L }) => {
|
34700
|
+
_[U] = !!(L != null && L(n.attrs));
|
34701
34701
|
}), f(_);
|
34702
34702
|
}, y = () => {
|
34703
34703
|
const _ = document.querySelector(".ProseMirror");
|
34704
34704
|
if (_ && c(_ == null ? void 0 : _.clientWidth), !!d.current) {
|
34705
34705
|
if (s === "video") {
|
34706
|
-
const
|
34707
|
-
|
34708
|
-
a(
|
34706
|
+
const U = d.current;
|
34707
|
+
U.addEventListener("loadeddata", function() {
|
34708
|
+
a(U.videoWidth / U.videoHeight), C("left", 0);
|
34709
34709
|
});
|
34710
34710
|
} else if (s === "iframe") {
|
34711
|
-
const
|
34712
|
-
|
34713
|
-
a(
|
34711
|
+
const U = d.current;
|
34712
|
+
U.onload = () => {
|
34713
|
+
a(U.offsetWidth / U.offsetHeight), C("left", 0);
|
34714
34714
|
};
|
34715
34715
|
} else
|
34716
34716
|
d.current.onload = () => {
|
@@ -34726,7 +34726,7 @@ const wI = ({
|
|
34726
34726
|
rt(() => {
|
34727
34727
|
y();
|
34728
34728
|
}, []);
|
34729
|
-
const v = ({ width: _, height:
|
34729
|
+
const v = ({ width: _, height: U }) => _ < 200 || U < 200, A = (_) => {
|
34730
34730
|
setTimeout(() => S(_));
|
34731
34731
|
}, w = (_) => {
|
34732
34732
|
yc = _.clientX, setTimeout(() => {
|
@@ -34734,7 +34734,7 @@ const wI = ({
|
|
34734
34734
|
}), p(!0);
|
34735
34735
|
}, x = () => {
|
34736
34736
|
yc = -1, document.removeEventListener("mousemove", A), document.removeEventListener("mouseup", x), p(!1);
|
34737
|
-
}, C = (_,
|
34737
|
+
}, C = (_, U) => {
|
34738
34738
|
var Q, te;
|
34739
34739
|
if (!d.current) {
|
34740
34740
|
console.error("Media ref is undefined|null", {
|
@@ -34745,18 +34745,18 @@ const wI = ({
|
|
34745
34745
|
const L = {
|
34746
34746
|
width: (Q = d.current) == null ? void 0 : Q.width,
|
34747
34747
|
height: (te = d.current) == null ? void 0 : te.height
|
34748
|
-
},
|
34748
|
+
}, V = {
|
34749
34749
|
width: -1,
|
34750
34750
|
height: -1
|
34751
34751
|
};
|
34752
|
-
_ === "left" ?
|
34752
|
+
_ === "left" ? V.width = L.width - Math.abs(U) : (typeof L.width == "string" && (L.width = Number(L.width)), V.width = L.width + Math.abs(U)), V.width > l && (V.width = l), s === "iframe" ? V.height = V.width / (16 / 9) : V.height = V.width / o, !v(V) && e(V);
|
34753
34753
|
}, S = (_) => {
|
34754
34754
|
if (yc === -1) return;
|
34755
|
-
const { clientX:
|
34755
|
+
const { clientX: U } = _, L = yc - U;
|
34756
34756
|
if (L === 0) return;
|
34757
|
-
const
|
34757
|
+
const V = L > 0 ? "left" : "right";
|
34758
34758
|
setTimeout(() => {
|
34759
|
-
C(
|
34759
|
+
C(V, Math.abs(L)), yc = U;
|
34760
34760
|
});
|
34761
34761
|
}, [N, R] = et(), [M, P] = et();
|
34762
34762
|
rt(() => {
|
@@ -34832,7 +34832,7 @@ const wI = ({
|
|
34832
34832
|
onMouseUp: x
|
34833
34833
|
}
|
34834
34834
|
),
|
34835
|
-
/* @__PURE__ */ k.jsx("section", { className: "media-control-buttons opacity-0 group-hover:opacity-100 transition-opacity duration-200 flex", children: KS.map((_,
|
34835
|
+
/* @__PURE__ */ k.jsx("section", { className: "media-control-buttons opacity-0 group-hover:opacity-100 transition-opacity duration-200 flex", children: KS.map((_, U) => /* @__PURE__ */ k.jsx("div", { className: "tooltip", "data-tip": _.tooltip, children: /* @__PURE__ */ k.jsx(
|
34836
34836
|
"button",
|
34837
34837
|
{
|
34838
34838
|
type: "button",
|
@@ -34846,7 +34846,7 @@ const wI = ({
|
|
34846
34846
|
},
|
34847
34847
|
children: _.icon && B(_.icon)
|
34848
34848
|
}
|
34849
|
-
) },
|
34849
|
+
) }, U)) })
|
34850
34850
|
] })
|
34851
34851
|
] })
|
34852
34852
|
}
|
@@ -35507,17 +35507,17 @@ const Y7 = (n) => ({
|
|
35507
35507
|
}, h = Ix(s), p = Dx(h), m = await o.getDimensions(c), y = h === "y", b = y ? "top" : "left", v = y ? "bottom" : "right", A = y ? "clientHeight" : "clientWidth", w = i.reference[p] + i.reference[h] - d[h] - i.floating[p], x = d[h] - i.reference[h], C = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(c));
|
35508
35508
|
let S = C ? C[A] : 0;
|
35509
35509
|
(!S || !await (o.isElement == null ? void 0 : o.isElement(C))) && (S = a.floating[A] || i.floating[p]);
|
35510
|
-
const N = w / 2 - x / 2, R = S / 2 - m[p] / 2 - 1, M = ni(f[b], R), P = ni(f[v], R), B = M, _ = S - m[p] - P,
|
35510
|
+
const N = w / 2 - x / 2, R = S / 2 - m[p] / 2 - 1, M = ni(f[b], R), P = ni(f[v], R), B = M, _ = S - m[p] - P, U = S / 2 - m[p] / 2 + N, L = MA(B, U, _), V = !l.arrow && Tf(s) != null && U !== L && i.reference[p] / 2 - (U < B ? M : P) - m[p] / 2 < 0, Q = V ? U < B ? U - B : U - _ : 0;
|
35511
35511
|
return {
|
35512
35512
|
[h]: d[h] + Q,
|
35513
35513
|
data: {
|
35514
35514
|
[h]: L,
|
35515
|
-
centerOffset:
|
35516
|
-
...
|
35515
|
+
centerOffset: U - L - Q,
|
35516
|
+
...V && {
|
35517
35517
|
alignmentOffset: Q
|
35518
35518
|
}
|
35519
35519
|
},
|
35520
|
-
reset:
|
35520
|
+
reset: V
|
35521
35521
|
};
|
35522
35522
|
}
|
35523
35523
|
}), X7 = function(n) {
|
@@ -35568,23 +35568,23 @@ const Y7 = (n) => ({
|
|
35568
35568
|
placement: _
|
35569
35569
|
}
|
35570
35570
|
};
|
35571
|
-
let
|
35572
|
-
if (!
|
35571
|
+
let U = (M = N.filter((L) => L.overflows[0] <= 0).sort((L, V) => L.overflows[1] - V.overflows[1])[0]) == null ? void 0 : M.placement;
|
35572
|
+
if (!U)
|
35573
35573
|
switch (h) {
|
35574
35574
|
case "bestFit": {
|
35575
35575
|
var P;
|
35576
|
-
const L = (P = N.map((
|
35577
|
-
L && (
|
35576
|
+
const L = (P = N.map((V) => [V.placement, V.overflows.filter((Q) => Q > 0).reduce((Q, te) => Q + te, 0)]).sort((V, Q) => V[1] - Q[1])[0]) == null ? void 0 : P[0];
|
35577
|
+
L && (U = L);
|
35578
35578
|
break;
|
35579
35579
|
}
|
35580
35580
|
case "initialPlacement":
|
35581
|
-
|
35581
|
+
U = a;
|
35582
35582
|
break;
|
35583
35583
|
}
|
35584
|
-
if (s !==
|
35584
|
+
if (s !== U)
|
35585
35585
|
return {
|
35586
35586
|
reset: {
|
35587
|
-
placement:
|
35587
|
+
placement: U
|
35588
35588
|
}
|
35589
35589
|
};
|
35590
35590
|
}
|
@@ -36389,7 +36389,7 @@ function MQ(n) {
|
|
36389
36389
|
B();
|
36390
36390
|
}
|
36391
36391
|
}, [w, x, B, M, R]);
|
36392
|
-
const
|
36392
|
+
const U = H.useMemo(() => ({
|
36393
36393
|
reference: C,
|
36394
36394
|
floating: S,
|
36395
36395
|
setReference: v,
|
@@ -36397,7 +36397,7 @@ function MQ(n) {
|
|
36397
36397
|
}), [v, A]), L = H.useMemo(() => ({
|
36398
36398
|
reference: w,
|
36399
36399
|
floating: x
|
36400
|
-
}), [w, x]),
|
36400
|
+
}), [w, x]), V = H.useMemo(() => {
|
36401
36401
|
const Q = {
|
36402
36402
|
position: t,
|
36403
36403
|
left: 0,
|
@@ -36421,10 +36421,10 @@ function MQ(n) {
|
|
36421
36421
|
return H.useMemo(() => ({
|
36422
36422
|
...u,
|
36423
36423
|
update: B,
|
36424
|
-
refs:
|
36424
|
+
refs: U,
|
36425
36425
|
elements: L,
|
36426
|
-
floatingStyles:
|
36427
|
-
}), [u, B,
|
36426
|
+
floatingStyles: V
|
36427
|
+
}), [u, B, U, L, V]);
|
36428
36428
|
}
|
36429
36429
|
const PQ = (n) => {
|
36430
36430
|
function e(t) {
|
@@ -36545,7 +36545,7 @@ var Ux = "PopperContent", [$Q, GQ] = NI(Ux), BI = H.forwardRef(
|
|
36545
36545
|
boundary: P.filter(KQ),
|
36546
36546
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
36547
36547
|
altBoundary: B
|
36548
|
-
}, { refs:
|
36548
|
+
}, { refs: U, floatingStyles: L, placement: V, isPositioned: Q, middlewareData: te } = MQ({
|
36549
36549
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
36550
36550
|
strategy: "fixed",
|
36551
36551
|
placement: R,
|
@@ -36575,7 +36575,7 @@ var Ux = "PopperContent", [$Q, GQ] = NI(Ux), BI = H.forwardRef(
|
|
36575
36575
|
QQ({ arrowWidth: S, arrowHeight: N }),
|
36576
36576
|
d && FQ({ strategy: "referenceHidden", ..._ })
|
36577
36577
|
]
|
36578
|
-
}), [X, he] = jI(
|
36578
|
+
}), [X, he] = jI(V), Ce = ua(p);
|
36579
36579
|
Bl(() => {
|
36580
36580
|
Q && (Ce == null || Ce());
|
36581
36581
|
}, [Q, Ce]);
|
@@ -36585,7 +36585,7 @@ var Ux = "PopperContent", [$Q, GQ] = NI(Ux), BI = H.forwardRef(
|
|
36585
36585
|
}, [b]), /* @__PURE__ */ k.jsx(
|
36586
36586
|
"div",
|
36587
36587
|
{
|
36588
|
-
ref:
|
36588
|
+
ref: U.setFloating,
|
36589
36589
|
"data-radix-popper-content-wrapper": "",
|
36590
36590
|
style: {
|
36591
36591
|
...L,
|
@@ -36985,15 +36985,15 @@ const Ip = ({
|
|
36985
36985
|
case /youtu\.?be(?:\.com)?\/(?:.*v(?:\/|=)|(?:.*\/)?)([a-zA-Z0-9-_]+)/.test(
|
36986
36986
|
u
|
36987
36987
|
): {
|
36988
|
-
const
|
36988
|
+
const U = u.match(
|
36989
36989
|
/youtu\.?be(?:\.com)?\/(?:.*v(?:\/|=)|(?:.*\/)?)([a-zA-Z0-9-_]+)/
|
36990
36990
|
);
|
36991
|
-
|
36991
|
+
U && U.length > 0 && (R = `https://www.youtube.com/embed/${U[1]}`);
|
36992
36992
|
break;
|
36993
36993
|
}
|
36994
36994
|
case /vimeo\.com\/([a-zA-Z0-9-_]+)/.test(u): {
|
36995
|
-
const
|
36996
|
-
|
36995
|
+
const U = u.match(/vimeo\.com\/([a-zA-Z0-9-_]+)/);
|
36996
|
+
U && U.length > 0 && (R = `https://player.vimeo.com/video/${U[1]}`);
|
36997
36997
|
break;
|
36998
36998
|
}
|
36999
36999
|
default:
|
@@ -37008,7 +37008,7 @@ const Ip = ({
|
|
37008
37008
|
if (!u)
|
37009
37009
|
return;
|
37010
37010
|
let R = u;
|
37011
|
-
const M = l.some((
|
37011
|
+
const M = l.some((U) => u.includes(U)), P = p(u);
|
37012
37012
|
M && P ? R = P : d && (R = p(d.text));
|
37013
37013
|
const B = e(), _ = B + n.nodeSize;
|
37014
37014
|
R && (t == null || t.chain().focus(B).deleteRange({ from: B === 2 ? B : B + 1, to: _ }).setTweetEmbed({ tweetId: R }).run());
|
@@ -38972,20 +38972,20 @@ function bq(n) {
|
|
38972
38972
|
}, h, {
|
38973
38973
|
content: R.container
|
38974
38974
|
});
|
38975
|
-
p && (process.env.NODE_ENV !== "production" && ["trigger", "hideOnClick", "showOnCreate"].forEach(function(
|
38976
|
-
M[
|
38975
|
+
p && (process.env.NODE_ENV !== "production" && ["trigger", "hideOnClick", "showOnCreate"].forEach(function(U) {
|
38976
|
+
M[U] !== void 0 && console.warn(["@tippyjs/react: Cannot specify `" + U + "` prop in", "controlled mode (`visible` prop)"].join(" "));
|
38977
38977
|
}), M.trigger = "manual", M.hideOnClick = !1), m && (u = !0);
|
38978
38978
|
var P = M, B = M.plugins || [];
|
38979
38979
|
a && (P = Object.assign({}, M, {
|
38980
38980
|
plugins: m && o.data != null ? [].concat(B, [{
|
38981
38981
|
fn: function() {
|
38982
38982
|
return {
|
38983
|
-
onTrigger: function(
|
38983
|
+
onTrigger: function(V, Q) {
|
38984
38984
|
var te = o.data.children.find(function(X) {
|
38985
38985
|
var he = X.instance;
|
38986
38986
|
return he.reference === Q.currentTarget;
|
38987
38987
|
});
|
38988
|
-
|
38988
|
+
V.state.$$activeSingletonInstance = te.instance, N(te.content);
|
38989
38989
|
}
|
38990
38990
|
};
|
38991
38991
|
}
|
@@ -38998,9 +38998,9 @@ function bq(n) {
|
|
38998
38998
|
}));
|
38999
38999
|
var _ = [l].concat(r ? [r.type] : []);
|
39000
39000
|
return Bb(function() {
|
39001
|
-
var
|
39002
|
-
l && l.hasOwnProperty("current") && (
|
39003
|
-
var L = n(
|
39001
|
+
var U = l;
|
39002
|
+
l && l.hasOwnProperty("current") && (U = l.current);
|
39003
|
+
var L = n(U || R.ref || gT(), Object.assign({}, P, {
|
39004
39004
|
plugins: [yq].concat(M.plugins || [])
|
39005
39005
|
}));
|
39006
39006
|
return R.instance = L, u && L.disable(), i && L.show(), m && o.hook({
|
@@ -39012,26 +39012,26 @@ function bq(n) {
|
|
39012
39012
|
L.destroy(), o == null || o.cleanup(L);
|
39013
39013
|
};
|
39014
39014
|
}, _), Bb(function() {
|
39015
|
-
var
|
39015
|
+
var U;
|
39016
39016
|
if (R.renders === 1) {
|
39017
39017
|
R.renders++;
|
39018
39018
|
return;
|
39019
39019
|
}
|
39020
39020
|
var L = R.instance;
|
39021
|
-
L.setProps(mq(L.props, P)), (
|
39021
|
+
L.setProps(mq(L.props, P)), (U = L.popperInstance) == null || U.forceUpdate(), u ? L.disable() : L.enable(), p && (i ? L.show() : L.hide()), m && o.hook({
|
39022
39022
|
instance: L,
|
39023
39023
|
content: s,
|
39024
39024
|
props: P,
|
39025
39025
|
setSingletonContent: N
|
39026
39026
|
});
|
39027
39027
|
}), Bb(function() {
|
39028
|
-
var
|
39028
|
+
var U;
|
39029
39029
|
if (a) {
|
39030
39030
|
var L = R.instance;
|
39031
39031
|
L.setProps({
|
39032
39032
|
popperOptions: Object.assign({}, L.props.popperOptions, {
|
39033
|
-
modifiers: [].concat((((
|
39034
|
-
var Q =
|
39033
|
+
modifiers: [].concat((((U = L.props.popperOptions) == null ? void 0 : U.modifiers) || []).filter(function(V) {
|
39034
|
+
var Q = V.name;
|
39035
39035
|
return Q !== "$$tippyReact";
|
39036
39036
|
}), [{
|
39037
39037
|
name: "$$tippyReact",
|
@@ -41761,9 +41761,9 @@ class IY extends RL {
|
|
41761
41761
|
}
|
41762
41762
|
let { Ah: r, Al: s, Bh: i, Bl: o, Ch: a, Cl: l, Dh: c, Dl: u, Eh: f, El: d, Fh: h, Fl: p, Gh: m, Gl: y, Hh: b, Hl: v } = this;
|
41763
41763
|
for (let A = 0; A < 80; A++) {
|
41764
|
-
const w = Ze.rotrSH(f, d, 14) ^ Ze.rotrSH(f, d, 18) ^ Ze.rotrBH(f, d, 41), x = Ze.rotrSL(f, d, 14) ^ Ze.rotrSL(f, d, 18) ^ Ze.rotrBL(f, d, 41), C = f & h ^ ~f & m, S = d & p ^ ~d & y, N = Ze.add5L(v, x, S, DY[A], bo[A]), R = Ze.add5H(N, b, w, C, PY[A], yo[A]), M = N | 0, P = Ze.rotrSH(r, s, 28) ^ Ze.rotrBH(r, s, 34) ^ Ze.rotrBH(r, s, 39), B = Ze.rotrSL(r, s, 28) ^ Ze.rotrBL(r, s, 34) ^ Ze.rotrBL(r, s, 39), _ = r & i ^ r & a ^ i & a,
|
41764
|
+
const w = Ze.rotrSH(f, d, 14) ^ Ze.rotrSH(f, d, 18) ^ Ze.rotrBH(f, d, 41), x = Ze.rotrSL(f, d, 14) ^ Ze.rotrSL(f, d, 18) ^ Ze.rotrBL(f, d, 41), C = f & h ^ ~f & m, S = d & p ^ ~d & y, N = Ze.add5L(v, x, S, DY[A], bo[A]), R = Ze.add5H(N, b, w, C, PY[A], yo[A]), M = N | 0, P = Ze.rotrSH(r, s, 28) ^ Ze.rotrBH(r, s, 34) ^ Ze.rotrBH(r, s, 39), B = Ze.rotrSL(r, s, 28) ^ Ze.rotrBL(r, s, 34) ^ Ze.rotrBL(r, s, 39), _ = r & i ^ r & a ^ i & a, U = s & o ^ s & l ^ o & l;
|
41765
41765
|
b = m | 0, v = y | 0, m = h | 0, y = p | 0, h = f | 0, p = d | 0, { h: f, l: d } = Ze.add(c | 0, u | 0, R | 0, M | 0), c = a | 0, u = l | 0, a = i | 0, l = o | 0, i = r | 0, o = s | 0;
|
41766
|
-
const L = Ze.add3L(M, B,
|
41766
|
+
const L = Ze.add3L(M, B, U);
|
41767
41767
|
r = Ze.add3H(L, R, P, _), s = L | 0;
|
41768
41768
|
}
|
41769
41769
|
({ h: r, l: s } = Ze.add(this.Ah | 0, this.Al | 0, r | 0, s | 0)), { h: i, l: o } = Ze.add(this.Bh | 0, this.Bl | 0, i | 0, o | 0), { h: a, l } = Ze.add(this.Ch | 0, this.Cl | 0, a | 0, l | 0), { h: c, l: u } = Ze.add(this.Dh | 0, this.Dl | 0, c | 0, u | 0), { h: f, l: d } = Ze.add(this.Eh | 0, this.El | 0, f | 0, d | 0), { h, l: p } = Ze.add(this.Fh | 0, this.Fl | 0, h | 0, p | 0), { h: m, l: y } = Ze.add(this.Gh | 0, this.Gl | 0, m | 0, y | 0), { h: b, l: v } = Ze.add(this.Hh | 0, this.Hl | 0, b | 0, v | 0), this.set(r, s, i, o, a, l, c, u, f, d, h, p, m, y, b, v);
|
@@ -42615,10 +42615,10 @@ function wX(n) {
|
|
42615
42615
|
const { px: y, py: b, pz: v } = this, { px: A, py: w, pz: x } = m;
|
42616
42616
|
let C = t.ZERO, S = t.ZERO, N = t.ZERO;
|
42617
42617
|
const R = e.a, M = t.mul(e.b, FT);
|
42618
|
-
let P = t.mul(y, A), B = t.mul(b, w), _ = t.mul(v, x),
|
42619
|
-
|
42620
|
-
let
|
42621
|
-
return L = t.mul(L,
|
42618
|
+
let P = t.mul(y, A), B = t.mul(b, w), _ = t.mul(v, x), U = t.add(y, b), L = t.add(A, w);
|
42619
|
+
U = t.mul(U, L), L = t.add(P, B), U = t.sub(U, L), L = t.add(y, v);
|
42620
|
+
let V = t.add(A, x);
|
42621
|
+
return L = t.mul(L, V), V = t.add(P, _), L = t.sub(L, V), V = t.add(b, v), C = t.add(w, x), V = t.mul(V, C), C = t.add(B, _), V = t.sub(V, C), N = t.mul(R, L), C = t.mul(M, _), N = t.add(C, N), C = t.sub(B, N), N = t.add(B, N), S = t.mul(C, N), B = t.add(P, P), B = t.add(B, P), _ = t.mul(R, _), L = t.mul(M, L), B = t.add(B, _), _ = t.sub(P, _), _ = t.mul(R, _), L = t.add(L, _), P = t.mul(B, L), S = t.add(S, P), P = t.mul(V, L), C = t.mul(U, C), C = t.sub(C, P), P = t.mul(U, B), N = t.mul(V, N), N = t.add(N, P), new f(C, S, N);
|
42622
42622
|
}
|
42623
42623
|
subtract(m) {
|
42624
42624
|
return this.add(m.negate());
|
@@ -42751,13 +42751,13 @@ function vX(n) {
|
|
42751
42751
|
}
|
42752
42752
|
const { ProjectivePoint: c, normPrivateKeyToScalar: u, weierstrassEquation: f, isWithinCurveOrder: d } = wX({
|
42753
42753
|
...e,
|
42754
|
-
toBytes(L,
|
42755
|
-
const te =
|
42756
|
-
return Q ? he(Uint8Array.from([
|
42754
|
+
toBytes(L, V, Q) {
|
42755
|
+
const te = V.toAffine(), X = t.toBytes(te.x), he = rh;
|
42756
|
+
return Q ? he(Uint8Array.from([V.hasEvenY() ? 2 : 3]), X) : he(Uint8Array.from([4]), X, t.toBytes(te.y));
|
42757
42757
|
},
|
42758
42758
|
fromBytes(L) {
|
42759
|
-
const
|
42760
|
-
if (
|
42759
|
+
const V = L.length, Q = L[0], te = L.subarray(1);
|
42760
|
+
if (V === s && (Q === 2 || Q === 3)) {
|
42761
42761
|
const X = Rl(te);
|
42762
42762
|
if (!o(X))
|
42763
42763
|
throw new Error("Point is not on curve");
|
@@ -42765,34 +42765,34 @@ function vX(n) {
|
|
42765
42765
|
let Ce = t.sqrt(he);
|
42766
42766
|
const Se = (Ce & qr) === qr;
|
42767
42767
|
return (Q & 1) === 1 !== Se && (Ce = t.neg(Ce)), { x: X, y: Ce };
|
42768
|
-
} else if (
|
42768
|
+
} else if (V === i && Q === 4) {
|
42769
42769
|
const X = t.fromBytes(te.subarray(0, t.BYTES)), he = t.fromBytes(te.subarray(t.BYTES, 2 * t.BYTES));
|
42770
42770
|
return { x: X, y: he };
|
42771
42771
|
} else
|
42772
|
-
throw new Error(`Point of length ${
|
42772
|
+
throw new Error(`Point of length ${V} was invalid. Expected ${s} compressed bytes or ${i} uncompressed bytes`);
|
42773
42773
|
}
|
42774
42774
|
}), h = (L) => df(pf(L, e.nByteLength));
|
42775
42775
|
function p(L) {
|
42776
|
-
const
|
42777
|
-
return L >
|
42776
|
+
const V = r >> qr;
|
42777
|
+
return L > V;
|
42778
42778
|
}
|
42779
42779
|
function m(L) {
|
42780
42780
|
return p(L) ? a(-L) : L;
|
42781
42781
|
}
|
42782
|
-
const y = (L,
|
42782
|
+
const y = (L, V, Q) => Rl(L.slice(V, Q));
|
42783
42783
|
class b {
|
42784
|
-
constructor(
|
42785
|
-
this.r =
|
42784
|
+
constructor(V, Q, te) {
|
42785
|
+
this.r = V, this.s = Q, this.recovery = te, this.assertValidity();
|
42786
42786
|
}
|
42787
42787
|
// pair (bytes of r, bytes of s)
|
42788
|
-
static fromCompact(
|
42788
|
+
static fromCompact(V) {
|
42789
42789
|
const Q = e.nByteLength;
|
42790
|
-
return
|
42790
|
+
return V = fs("compactSignature", V, Q * 2), new b(y(V, 0, Q), y(V, Q, 2 * Q));
|
42791
42791
|
}
|
42792
42792
|
// DER encoded ECDSA signature
|
42793
42793
|
// https://bitcoin.stackexchange.com/questions/57644/what-are-the-parts-of-a-bitcoin-transaction-input-script
|
42794
|
-
static fromDER(
|
42795
|
-
const { r: Q, s: te } = Wa.toSig(fs("DER",
|
42794
|
+
static fromDER(V) {
|
42795
|
+
const { r: Q, s: te } = Wa.toSig(fs("DER", V));
|
42796
42796
|
return new b(Q, te);
|
42797
42797
|
}
|
42798
42798
|
assertValidity() {
|
@@ -42801,11 +42801,11 @@ function vX(n) {
|
|
42801
42801
|
if (!d(this.s))
|
42802
42802
|
throw new Error("s must be 0 < s < CURVE.n");
|
42803
42803
|
}
|
42804
|
-
addRecoveryBit(
|
42805
|
-
return new b(this.r, this.s,
|
42804
|
+
addRecoveryBit(V) {
|
42805
|
+
return new b(this.r, this.s, V);
|
42806
42806
|
}
|
42807
|
-
recoverPublicKey(
|
42808
|
-
const { r: Q, s: te, recovery: X } = this, he = S(fs("msgHash",
|
42807
|
+
recoverPublicKey(V) {
|
42808
|
+
const { r: Q, s: te, recovery: X } = this, he = S(fs("msgHash", V));
|
42809
42809
|
if (X == null || ![0, 1, 2, 3].includes(X))
|
42810
42810
|
throw new Error("recovery id invalid");
|
42811
42811
|
const Ce = X === 2 || X === 3 ? Q + e.n : Q;
|
@@ -42863,27 +42863,27 @@ function vX(n) {
|
|
42863
42863
|
* const fast = utils.precompute(8, ProjectivePoint.fromHex(someonesPubKey));
|
42864
42864
|
* fast.multiply(privKey); // much faster ECDH now
|
42865
42865
|
*/
|
42866
|
-
precompute(L = 8,
|
42867
|
-
return
|
42866
|
+
precompute(L = 8, V = c.BASE) {
|
42867
|
+
return V._setWindowSize(L), V.multiply(BigInt(3)), V;
|
42868
42868
|
}
|
42869
42869
|
};
|
42870
|
-
function A(L,
|
42871
|
-
return c.fromPrivateKey(L).toRawBytes(
|
42870
|
+
function A(L, V = !0) {
|
42871
|
+
return c.fromPrivateKey(L).toRawBytes(V);
|
42872
42872
|
}
|
42873
42873
|
function w(L) {
|
42874
|
-
const
|
42875
|
-
return
|
42874
|
+
const V = L instanceof Uint8Array, Q = typeof L == "string", te = (V || Q) && L.length;
|
42875
|
+
return V ? te === s || te === i : Q ? te === 2 * s || te === 2 * i : L instanceof c;
|
42876
42876
|
}
|
42877
|
-
function x(L,
|
42877
|
+
function x(L, V, Q = !0) {
|
42878
42878
|
if (w(L))
|
42879
42879
|
throw new Error("first arg must be private key");
|
42880
|
-
if (!w(
|
42880
|
+
if (!w(V))
|
42881
42881
|
throw new Error("second arg must be public key");
|
42882
|
-
return c.fromHex(
|
42882
|
+
return c.fromHex(V).multiply(u(L)).toRawBytes(Q);
|
42883
42883
|
}
|
42884
42884
|
const C = e.bits2int || function(L) {
|
42885
|
-
const
|
42886
|
-
return Q > 0 ?
|
42885
|
+
const V = Rl(L), Q = L.length * 8 - e.nBitLength;
|
42886
|
+
return Q > 0 ? V >> BigInt(Q) : V;
|
42887
42887
|
}, S = e.bits2int_modN || function(L) {
|
42888
42888
|
return a(C(L));
|
42889
42889
|
}, N = eE(e.nBitLength);
|
@@ -42894,13 +42894,13 @@ function vX(n) {
|
|
42894
42894
|
throw new Error(`bigint expected < 2^${e.nBitLength}`);
|
42895
42895
|
return pf(L, e.nByteLength);
|
42896
42896
|
}
|
42897
|
-
function M(L,
|
42897
|
+
function M(L, V, Q = P) {
|
42898
42898
|
if (["recovered", "canonical"].some((tt) => tt in Q))
|
42899
42899
|
throw new Error("sign() legacy options not supported");
|
42900
42900
|
const { hash: te, randomBytes: X } = e;
|
42901
42901
|
let { lowS: he, prehash: Ce, extraEntropy: Se } = Q;
|
42902
42902
|
he == null && (he = !0), L = fs("msgHash", L), Ce && (L = fs("prehashed msgHash", te(L)));
|
42903
|
-
const ve = S(L), xe = u(
|
42903
|
+
const ve = S(L), xe = u(V), Fe = [R(xe), R(ve)];
|
42904
42904
|
if (Se != null) {
|
42905
42905
|
const tt = Se === !0 ? X(t.BYTES) : Se;
|
42906
42906
|
Fe.push(fs("extraEntropy", tt));
|
@@ -42922,15 +42922,15 @@ function vX(n) {
|
|
42922
42922
|
return { seed: Ue, k2sig: Ie };
|
42923
42923
|
}
|
42924
42924
|
const P = { lowS: e.lowS, prehash: !1 }, B = { lowS: e.lowS, prehash: !1 };
|
42925
|
-
function _(L,
|
42926
|
-
const { seed: te, k2sig: X } = M(L,
|
42925
|
+
function _(L, V, Q = P) {
|
42926
|
+
const { seed: te, k2sig: X } = M(L, V, Q), he = e;
|
42927
42927
|
return KL(he.hash.outputLen, he.nByteLength, he.hmac)(te, X);
|
42928
42928
|
}
|
42929
42929
|
c.BASE._setWindowSize(8);
|
42930
|
-
function
|
42930
|
+
function U(L, V, Q, te = B) {
|
42931
42931
|
var ae;
|
42932
42932
|
const X = L;
|
42933
|
-
if (
|
42933
|
+
if (V = fs("msgHash", V), Q = fs("publicKey", Q), "strict" in te)
|
42934
42934
|
throw new Error("options.strict was renamed to lowS");
|
42935
42935
|
const { lowS: he, prehash: Ce } = te;
|
42936
42936
|
let Se, ve;
|
@@ -42956,8 +42956,8 @@ function vX(n) {
|
|
42956
42956
|
}
|
42957
42957
|
if (he && Se.hasHighS())
|
42958
42958
|
return !1;
|
42959
|
-
Ce && (
|
42960
|
-
const { r: xe, s: Fe } = Se, Ue = S(
|
42959
|
+
Ce && (V = e.hash(V));
|
42960
|
+
const { r: xe, s: Fe } = Se, Ue = S(V), ze = l(Fe), Ie = a(Ue * ze), tt = a(xe * ze), le = (ae = c.BASE.multiplyAndAddUnsafe(ve, Ie, tt)) == null ? void 0 : ae.toAffine();
|
42961
42961
|
return le ? a(le.x) === xe : !1;
|
42962
42962
|
}
|
42963
42963
|
return {
|
@@ -42965,7 +42965,7 @@ function vX(n) {
|
|
42965
42965
|
getPublicKey: A,
|
42966
42966
|
getSharedSecret: x,
|
42967
42967
|
sign: _,
|
42968
|
-
verify:
|
42968
|
+
verify: U,
|
42969
42969
|
ProjectivePoint: c,
|
42970
42970
|
Signature: b,
|
42971
42971
|
utils: v
|
@@ -54320,13 +54320,13 @@ const Fte = async (n, e) => {
|
|
54320
54320
|
var B, _;
|
54321
54321
|
const [d] = et(new rc()), [h, p] = et(!1), [m, y] = et([
|
54322
54322
|
...Mq
|
54323
|
-
]), b = ut(!1), v = (
|
54323
|
+
]), b = ut(!1), v = (U, L) => {
|
54324
54324
|
var Q;
|
54325
|
-
const
|
54326
|
-
if (
|
54327
|
-
const te =
|
54325
|
+
const V = L.target;
|
54326
|
+
if (V && V.nodeName === "MARK" && V.dataset.color && ((Q = V == null ? void 0 : V.dataset) == null ? void 0 : Q.color) === "yellow") {
|
54327
|
+
const te = V.textContent, X = U.posAtCoords({ left: L.clientX, top: L.clientY });
|
54328
54328
|
if (X) {
|
54329
|
-
const { state: he } =
|
54329
|
+
const { state: he } = U;
|
54330
54330
|
let Ce = X.pos, Se = X.pos;
|
54331
54331
|
if (he.doc.nodesBetween(Ce, Se, (ve, xe) => {
|
54332
54332
|
ve.marks && ve.marks.length && ve.marks.forEach((Fe) => {
|
@@ -54338,8 +54338,8 @@ const Fte = async (n, e) => {
|
|
54338
54338
|
}
|
54339
54339
|
}
|
54340
54340
|
}
|
54341
|
-
}, A = (
|
54342
|
-
v(
|
54341
|
+
}, A = (U, L, V) => {
|
54342
|
+
v(U, V);
|
54343
54343
|
}, w = xk(
|
54344
54344
|
{
|
54345
54345
|
extensions: m,
|
@@ -54351,8 +54351,8 @@ const Fte = async (n, e) => {
|
|
54351
54351
|
handleClick: A
|
54352
54352
|
},
|
54353
54353
|
autofocus: "start",
|
54354
|
-
onUpdate: (
|
54355
|
-
R != null && R.isEmpty || a == null || a(
|
54354
|
+
onUpdate: (U) => {
|
54355
|
+
R != null && R.isEmpty || a == null || a(U.editor.getJSON());
|
54356
54356
|
}
|
54357
54357
|
},
|
54358
54358
|
[m]
|
@@ -54366,15 +54366,15 @@ const Fte = async (n, e) => {
|
|
54366
54366
|
handleClick: A
|
54367
54367
|
},
|
54368
54368
|
autofocus: "start",
|
54369
|
-
onUpdate: (
|
54370
|
-
R != null && R.isEmpty || a == null || a(
|
54369
|
+
onUpdate: (U) => {
|
54370
|
+
R != null && R.isEmpty || a == null || a(U.editor.getJSON());
|
54371
54371
|
}
|
54372
54372
|
}), C = ut(() => {
|
54373
|
-
}), S = (
|
54373
|
+
}), S = (U, L = !1) => {
|
54374
54374
|
if (!t || !r)
|
54375
54375
|
throw new Error("docId or username is not provided");
|
54376
54376
|
p(!0);
|
54377
|
-
const
|
54377
|
+
const V = new hW(r, d, {
|
54378
54378
|
signaling: [
|
54379
54379
|
"wss://fileverse-signaling-server-0529292ff51c.herokuapp.com/"
|
54380
54380
|
]
|
@@ -54385,9 +54385,9 @@ const Fte = async (n, e) => {
|
|
54385
54385
|
document: d
|
54386
54386
|
}),
|
54387
54387
|
VW.configure({
|
54388
|
-
provider:
|
54388
|
+
provider: V,
|
54389
54389
|
user: {
|
54390
|
-
name:
|
54390
|
+
name: U && U.length > 20 ? Vte(U, 7, 15) : U,
|
54391
54391
|
color: BR[Math.floor(Math.random() * BR.length)],
|
54392
54392
|
isEns: L
|
54393
54393
|
},
|
@@ -54398,7 +54398,7 @@ const Fte = async (n, e) => {
|
|
54398
54398
|
p(!1);
|
54399
54399
|
}, 100);
|
54400
54400
|
return C.current = () => {
|
54401
|
-
clearTimeout(Q),
|
54401
|
+
clearTimeout(Q), V.destroy(), d.destroy(), p(!1);
|
54402
54402
|
}, C.current;
|
54403
54403
|
}, N = ut(null), R = ts(() => t && r && w && !h ? w : x, [w, x, h]);
|
54404
54404
|
rt(() => {
|
@@ -54410,57 +54410,57 @@ const Fte = async (n, e) => {
|
|
54410
54410
|
}, [e, R]), rt(() => {
|
54411
54411
|
if (!R)
|
54412
54412
|
return;
|
54413
|
-
const
|
54414
|
-
const { state: L } = R, { from:
|
54415
|
-
if (
|
54416
|
-
const te = L.doc.textBetween(
|
54413
|
+
const U = () => {
|
54414
|
+
const { state: L } = R, { from: V, to: Q } = L.selection;
|
54415
|
+
if (V !== Q) {
|
54416
|
+
const te = L.doc.textBetween(V, Q, " ");
|
54417
54417
|
u == null || u({
|
54418
54418
|
text: te,
|
54419
|
-
from:
|
54419
|
+
from: V,
|
54420
54420
|
to: Q
|
54421
54421
|
});
|
54422
54422
|
}
|
54423
54423
|
};
|
54424
|
-
return R.on("selectionUpdate",
|
54425
|
-
R.off("selectionUpdate",
|
54424
|
+
return R.on("selectionUpdate", U), () => {
|
54425
|
+
R.off("selectionUpdate", U);
|
54426
54426
|
};
|
54427
54427
|
}, [R]);
|
54428
54428
|
const M = async () => {
|
54429
|
-
let
|
54429
|
+
let U = i, L = !1;
|
54430
54430
|
if (s && f) {
|
54431
|
-
const { name:
|
54431
|
+
const { name: V, isEns: Q } = await Fte(
|
54432
54432
|
s,
|
54433
54433
|
f
|
54434
54434
|
);
|
54435
|
-
|
54435
|
+
U = V, L = Q;
|
54436
54436
|
}
|
54437
|
-
if (!
|
54437
|
+
if (!U)
|
54438
54438
|
throw new Error("Cannot start collaboration without a username");
|
54439
|
-
S(
|
54439
|
+
S(U, L);
|
54440
54440
|
};
|
54441
54441
|
rt(() => {
|
54442
54442
|
t ? M() : C.current();
|
54443
54443
|
}, [t]);
|
54444
54444
|
const P = ts(
|
54445
|
-
() => Mx((
|
54445
|
+
() => Mx((U, L) => {
|
54446
54446
|
L({
|
54447
|
-
editorJSONData:
|
54447
|
+
editorJSONData: U.getJSON()
|
54448
54448
|
});
|
54449
54449
|
}, 1e3),
|
54450
54450
|
[o]
|
54451
54451
|
);
|
54452
54452
|
return rt(() => {
|
54453
54453
|
if (R && o) {
|
54454
|
-
const
|
54454
|
+
const U = () => {
|
54455
54455
|
P(R, o);
|
54456
54456
|
};
|
54457
|
-
return R.on("update",
|
54458
|
-
R.off("update",
|
54457
|
+
return R.on("update", U), () => {
|
54458
|
+
R.off("update", U);
|
54459
54459
|
};
|
54460
54460
|
}
|
54461
54461
|
}, [R, o, P]), rt(() => {
|
54462
|
-
var
|
54463
|
-
l == null || l((L = (
|
54462
|
+
var U, L;
|
54463
|
+
l == null || l((L = (U = R == null ? void 0 : R.storage) == null ? void 0 : U.collaborationCursor) == null ? void 0 : L.users);
|
54464
54464
|
}, [(_ = (B = R == null ? void 0 : R.storage) == null ? void 0 : B.collaborationCursor) == null ? void 0 : _.users]), {
|
54465
54465
|
editor: R,
|
54466
54466
|
// focusEditor,
|
@@ -57295,17 +57295,17 @@ function Bse(n) {
|
|
57295
57295
|
const { prevResolvedValues: B = {} } = v, _ = {
|
57296
57296
|
...B,
|
57297
57297
|
...P
|
57298
|
-
},
|
57298
|
+
}, U = (L) => {
|
57299
57299
|
N = !0, d.has(L) && (R = !0, d.delete(L)), v.needsAnimating[L] = !0;
|
57300
|
-
const
|
57301
|
-
|
57300
|
+
const V = n.getValue(L);
|
57301
|
+
V && (V.liveStyle = !1);
|
57302
57302
|
};
|
57303
57303
|
for (const L in _) {
|
57304
|
-
const
|
57304
|
+
const V = P[L], Q = B[L];
|
57305
57305
|
if (h.hasOwnProperty(L))
|
57306
57306
|
continue;
|
57307
57307
|
let te = !1;
|
57308
|
-
vv(
|
57308
|
+
vv(V) && vv(Q) ? te = !O_(V, Q) : te = V !== Q, te ? V != null ? U(L) : d.add(L) : V !== void 0 && d.has(L) ? U(L) : v.protectedKeys[L] = !0;
|
57309
57309
|
}
|
57310
57310
|
v.prevProp = A, v.prevResolvedValues = P, v.isActive && (h = { ...h, ...P }), r && n.blockInitialAnimation && (N = !1), N && (!C || R) && f.push(...M.map((L) => ({
|
57311
57311
|
animation: L,
|
@@ -59317,13 +59317,14 @@ const hoe = ({ children: n, custom: e, initial: t = !0, onExitComplete: r, exitB
|
|
59317
59317
|
onCommentInteraction: h,
|
59318
59318
|
handleCommentButtonClick: p,
|
59319
59319
|
showCommentButton: m,
|
59320
|
-
handleCommentButtonOutsideClick: y
|
59321
|
-
|
59322
|
-
|
59323
|
-
|
59324
|
-
|
59325
|
-
|
59326
|
-
|
59320
|
+
handleCommentButtonOutsideClick: y,
|
59321
|
+
ensResolutionUrl: b
|
59322
|
+
}, v) => {
|
59323
|
+
const [A, w] = et(!1), x = ut(null), C = ut(null), {
|
59324
|
+
editor: S,
|
59325
|
+
ref: N,
|
59326
|
+
loading: R,
|
59327
|
+
ydoc: M
|
59327
59328
|
} = Hte({
|
59328
59329
|
isPreviewMode: n,
|
59329
59330
|
initialContent: e,
|
@@ -59335,31 +59336,32 @@ const hoe = ({ children: n, custom: e, initial: t = !0, onExitComplete: r, exitB
|
|
59335
59336
|
onChange: c,
|
59336
59337
|
onCollaboratorChange: f,
|
59337
59338
|
onCommentInteraction: h,
|
59338
|
-
onTextSelection: d
|
59339
|
+
onTextSelection: d,
|
59340
|
+
ensResolutionUrl: b
|
59339
59341
|
});
|
59340
59342
|
return UF(
|
59341
|
-
|
59343
|
+
v,
|
59342
59344
|
() => ({
|
59343
|
-
getEditor: () =>
|
59344
|
-
getYdoc: () =>
|
59345
|
+
getEditor: () => S,
|
59346
|
+
getYdoc: () => M
|
59345
59347
|
}),
|
59346
|
-
[
|
59347
|
-
), x7(
|
59348
|
-
y == null || y(
|
59348
|
+
[S, M]
|
59349
|
+
), x7(C, () => {
|
59350
|
+
y == null || y(S);
|
59349
59351
|
}), rt(() => {
|
59350
|
-
if (!
|
59351
|
-
const
|
59352
|
-
const { key:
|
59353
|
-
return
|
59354
|
-
},
|
59355
|
-
|
59356
|
-
|
59352
|
+
if (!S) return;
|
59353
|
+
const P = (U) => {
|
59354
|
+
const { key: L } = U;
|
59355
|
+
return L.length === 1;
|
59356
|
+
}, B = (U) => {
|
59357
|
+
P(U) && (x.current && clearTimeout(x.current), w(!0), x.current = setTimeout(() => {
|
59358
|
+
w(!1);
|
59357
59359
|
}, 500));
|
59358
|
-
},
|
59359
|
-
return
|
59360
|
-
|
59360
|
+
}, _ = S.view.dom;
|
59361
|
+
return _.addEventListener("keydown", B), () => {
|
59362
|
+
_.removeEventListener("keydown", B), x.current && clearTimeout(x.current);
|
59361
59363
|
};
|
59362
|
-
}, [
|
59364
|
+
}, [S]), !S || R ? /* @__PURE__ */ k.jsxs("div", { className: "w-screen h-screen flex flex-col gap-4 justify-center items-center", children: [
|
59363
59365
|
/* @__PURE__ */ k.jsx(OP, {}),
|
59364
59366
|
/* @__PURE__ */ k.jsx("p", { children: "Loading Editor..." })
|
59365
59367
|
] }) : /* @__PURE__ */ k.jsx(
|
@@ -59369,15 +59371,15 @@ const hoe = ({ children: n, custom: e, initial: t = !0, onExitComplete: r, exitB
|
|
59369
59371
|
className: "bg-[#f8f9fa] h-full w-full overflow-hidden no-scrollbar",
|
59370
59372
|
children: /* @__PURE__ */ k.jsxs("div", { className: "flex flex-col justify-between items-center", children: [
|
59371
59373
|
/* @__PURE__ */ k.jsx("div", { className: "flex items-center w-full h-16 fixed z-10 px-4 bg-[#f8f9fa]", children: /* @__PURE__ */ k.jsxs("div", { className: "flex items-center justify-between gap-2 w-full", children: [
|
59372
|
-
/* @__PURE__ */ k.jsx("div", { className: "grow", children: a == null ? void 0 : a({ editor:
|
59374
|
+
/* @__PURE__ */ k.jsx("div", { className: "grow", children: a == null ? void 0 : a({ editor: S.getJSON() }) }),
|
59373
59375
|
!n && /* @__PURE__ */ k.jsx("div", { className: "grow relative hidden xl:block", children: /* @__PURE__ */ k.jsx(
|
59374
59376
|
o$,
|
59375
59377
|
{
|
59376
59378
|
uploadToIpfs: u,
|
59377
|
-
editor:
|
59379
|
+
editor: S
|
59378
59380
|
}
|
59379
59381
|
) }),
|
59380
|
-
o == null ? void 0 : o({ editor:
|
59382
|
+
o == null ? void 0 : o({ editor: S.getJSON() })
|
59381
59383
|
] }) }),
|
59382
59384
|
/* @__PURE__ */ k.jsx("main", { className: "rounded-[8px] flex flex-col justify-start items-center gap-2 min-h-full h-[calc(100vh-8rem)] lg:h-screen overflow-auto no-scrollbar", children: /* @__PURE__ */ k.jsx(
|
59383
59385
|
"div",
|
@@ -59387,23 +59389,23 @@ const hoe = ({ children: n, custom: e, initial: t = !0, onExitComplete: r, exitB
|
|
59387
59389
|
/* @__PURE__ */ k.jsxs(
|
59388
59390
|
"div",
|
59389
59391
|
{
|
59390
|
-
ref:
|
59392
|
+
ref: N,
|
59391
59393
|
className: "w-full h-full overflow-y-scroll overflow-x-hidden no-scrollbar",
|
59392
59394
|
children: [
|
59393
59395
|
!n && /* @__PURE__ */ k.jsxs("div", { children: [
|
59394
|
-
/* @__PURE__ */ k.jsx(Yz, { editor:
|
59396
|
+
/* @__PURE__ */ k.jsx(Yz, { editor: S }),
|
59395
59397
|
/* @__PURE__ */ k.jsx(
|
59396
59398
|
s$,
|
59397
59399
|
{
|
59398
|
-
editor:
|
59399
|
-
appendTo:
|
59400
|
+
editor: S,
|
59401
|
+
appendTo: N
|
59400
59402
|
}
|
59401
59403
|
)
|
59402
59404
|
] }),
|
59403
59405
|
/* @__PURE__ */ k.jsx(i$, { isPreviewMode: n, children: /* @__PURE__ */ k.jsx(
|
59404
59406
|
M8,
|
59405
59407
|
{
|
59406
|
-
editor:
|
59408
|
+
editor: S,
|
59407
59409
|
className: "py-4 relative"
|
59408
59410
|
}
|
59409
59411
|
) })
|
@@ -59413,9 +59415,9 @@ const hoe = ({ children: n, custom: e, initial: t = !0, onExitComplete: r, exitB
|
|
59413
59415
|
m && /* @__PURE__ */ k.jsx(
|
59414
59416
|
jl,
|
59415
59417
|
{
|
59416
|
-
ref:
|
59418
|
+
ref: C,
|
59417
59419
|
onClick: () => {
|
59418
|
-
|
59420
|
+
S.chain().setHighlight({ color: "yellow" }).run(), p == null || p(S);
|
59419
59421
|
},
|
59420
59422
|
variant: "ghost",
|
59421
59423
|
className: "absolute w-12 h-12 bg-white right-[-23px] top-[70px] rounded-full shadow-xl",
|
@@ -59425,7 +59427,7 @@ const hoe = ({ children: n, custom: e, initial: t = !0, onExitComplete: r, exitB
|
|
59425
59427
|
] })
|
59426
59428
|
}
|
59427
59429
|
) }),
|
59428
|
-
!n && /* @__PURE__ */ k.jsx(hoe, { children: !
|
59430
|
+
!n && /* @__PURE__ */ k.jsx(hoe, { children: !A && /* @__PURE__ */ k.jsx(
|
59429
59431
|
ioe.div,
|
59430
59432
|
{
|
59431
59433
|
initial: { y: 50, opacity: 0 },
|
@@ -59443,7 +59445,7 @@ const hoe = ({ children: n, custom: e, initial: t = !0, onExitComplete: r, exitB
|
|
59443
59445
|
$te,
|
59444
59446
|
{
|
59445
59447
|
uploadToIpfs: u,
|
59446
|
-
editor:
|
59448
|
+
editor: S
|
59447
59449
|
}
|
59448
59450
|
)
|
59449
59451
|
}
|