@fileverse-dev/ddoc 2.1.3-patch-11 → 2.1.3-patch-13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +751 -755
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -102,7 +102,7 @@ function Loe() {
|
|
102
102
|
function H(O) {
|
103
103
|
return O.displayName || "Context";
|
104
104
|
}
|
105
|
-
function
|
105
|
+
function q(O) {
|
106
106
|
if (O == null)
|
107
107
|
return null;
|
108
108
|
if (typeof O.tag == "number" && k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof O == "function")
|
@@ -135,11 +135,11 @@ function Loe() {
|
|
135
135
|
return R(O, O.render, "ForwardRef");
|
136
136
|
case f:
|
137
137
|
var Ve = O.displayName || null;
|
138
|
-
return Ve !== null ? Ve :
|
138
|
+
return Ve !== null ? Ve : q(O.type) || "Memo";
|
139
139
|
case d: {
|
140
140
|
var ct = O, yt = ct._payload, at = ct._init;
|
141
141
|
try {
|
142
|
-
return
|
142
|
+
return q(at(yt));
|
143
143
|
} catch {
|
144
144
|
return null;
|
145
145
|
}
|
@@ -147,14 +147,14 @@ function Loe() {
|
|
147
147
|
}
|
148
148
|
return null;
|
149
149
|
}
|
150
|
-
var Z = Object.assign,
|
150
|
+
var Z = Object.assign, U = 0, V, Y, ae, G, re, de, ie;
|
151
151
|
function pe() {
|
152
152
|
}
|
153
153
|
pe.__reactDisabledLog = !0;
|
154
154
|
function oe() {
|
155
155
|
{
|
156
|
-
if (
|
157
|
-
V = console.log, Y = console.info, ae = console.warn, G = console.error,
|
156
|
+
if (U === 0) {
|
157
|
+
V = console.log, Y = console.info, ae = console.warn, G = console.error, re = console.group, de = console.groupCollapsed, ie = console.groupEnd;
|
158
158
|
var O = {
|
159
159
|
configurable: !0,
|
160
160
|
enumerable: !0,
|
@@ -171,12 +171,12 @@ function Loe() {
|
|
171
171
|
groupEnd: O
|
172
172
|
});
|
173
173
|
}
|
174
|
-
|
174
|
+
U++;
|
175
175
|
}
|
176
176
|
}
|
177
177
|
function ge() {
|
178
178
|
{
|
179
|
-
if (
|
179
|
+
if (U--, U === 0) {
|
180
180
|
var O = {
|
181
181
|
configurable: !0,
|
182
182
|
enumerable: !0,
|
@@ -196,17 +196,17 @@ function Loe() {
|
|
196
196
|
value: G
|
197
197
|
}),
|
198
198
|
group: Z({}, O, {
|
199
|
-
value:
|
199
|
+
value: re
|
200
200
|
}),
|
201
201
|
groupCollapsed: Z({}, O, {
|
202
202
|
value: de
|
203
203
|
}),
|
204
204
|
groupEnd: Z({}, O, {
|
205
|
-
value:
|
205
|
+
value: ie
|
206
206
|
})
|
207
207
|
});
|
208
208
|
}
|
209
|
-
|
209
|
+
U < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
210
210
|
}
|
211
211
|
}
|
212
212
|
var J = b.ReactCurrentDispatcher, be;
|
@@ -496,7 +496,7 @@ function Loe() {
|
|
496
496
|
function Ut() {
|
497
497
|
{
|
498
498
|
if (Dt.current) {
|
499
|
-
var O =
|
499
|
+
var O = q(Dt.current.type);
|
500
500
|
if (O)
|
501
501
|
return `
|
502
502
|
|
@@ -531,7 +531,7 @@ Check the top-level render call using <` + we + ">.");
|
|
531
531
|
return;
|
532
532
|
Rt[we] = !0;
|
533
533
|
var Ve = "";
|
534
|
-
O && O._owner && O._owner !== Dt.current && (Ve = " It was passed a child from " +
|
534
|
+
O && O._owner && O._owner !== Dt.current && (Ve = " It was passed a child from " + q(O._owner.type) + "."), ft(O), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', we, Ve), ft(null);
|
535
535
|
}
|
536
536
|
}
|
537
537
|
function rr(O, le) {
|
@@ -568,11 +568,11 @@ Check the top-level render call using <` + we + ">.");
|
|
568
568
|
else
|
569
569
|
return;
|
570
570
|
if (we) {
|
571
|
-
var Ve =
|
571
|
+
var Ve = q(le);
|
572
572
|
C(we, O.props, "prop", Ve, O);
|
573
573
|
} else if (le.PropTypes !== void 0 && !rt) {
|
574
574
|
rt = !0;
|
575
|
-
var ct =
|
575
|
+
var ct = q(le);
|
576
576
|
k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", ct || "Unknown");
|
577
577
|
}
|
578
578
|
typeof le.getDefaultProps == "function" && !le.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
@@ -600,7 +600,7 @@ Check the top-level render call using <` + we + ">.");
|
|
600
600
|
var Qe = vn();
|
601
601
|
Qe ? it += Qe : it += Ut();
|
602
602
|
var se;
|
603
|
-
O === null ? se = "null" : B(O) ? se = "array" : O !== void 0 && O.$$typeof === e ? (se = "<" + (
|
603
|
+
O === null ? se = "null" : B(O) ? se = "array" : O !== void 0 && O.$$typeof === e ? (se = "<" + (q(O.type) || "Unknown") + " />", it = " Did you accidentally export a JSX literal instead of a component?") : se = typeof O, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", se, it);
|
604
604
|
}
|
605
605
|
var Ne = Bt(O, le, we, ct, yt);
|
606
606
|
if (Ne == null)
|
@@ -619,7 +619,7 @@ Check the top-level render call using <` + we + ">.");
|
|
619
619
|
rr(Je, O);
|
620
620
|
}
|
621
621
|
if (Q.call(le, "key")) {
|
622
|
-
var yn =
|
622
|
+
var yn = q(O), Ft = Object.keys(le).filter(function(kl) {
|
623
623
|
return kl !== "key";
|
624
624
|
}), sr = Ft.length > 0 ? "{key: someKey, " + Ft.join(": ..., ") + ": ...}" : "{key: someKey}";
|
625
625
|
if (!Li[yn + sr]) {
|
@@ -13162,8 +13162,8 @@ function QD(t) {
|
|
13162
13162
|
y: m
|
13163
13163
|
};
|
13164
13164
|
if (h = H.x, m = H.y, l) {
|
13165
|
-
var
|
13166
|
-
return Object.assign({}, R, (
|
13165
|
+
var q;
|
13166
|
+
return Object.assign({}, R, (q = {}, q[w] = k ? "0" : "", q[v] = b ? "0" : "", q.transform = (x.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + m + "px)" : "translate3d(" + h + "px, " + m + "px, 0)", q));
|
13167
13167
|
}
|
13168
13168
|
return Object.assign({}, R, (e = {}, e[w] = k ? m + "px" : "", e[v] = b ? h + "px" : "", e.transform = "", e));
|
13169
13169
|
}
|
@@ -13378,9 +13378,9 @@ function t4(t, e) {
|
|
13378
13378
|
}, R = t.modifiersData.offset;
|
13379
13379
|
if (d === vp && R) {
|
13380
13380
|
var H = R[i];
|
13381
|
-
Object.keys(j).forEach(function(
|
13382
|
-
var Z = [Sa, Aa].indexOf(
|
13383
|
-
j[
|
13381
|
+
Object.keys(j).forEach(function(q) {
|
13382
|
+
var Z = [Sa, Aa].indexOf(q) >= 0 ? 1 : -1, U = [us, Aa].indexOf(q) >= 0 ? "y" : "x";
|
13383
|
+
j[q] += H[U] * Z;
|
13384
13384
|
});
|
13385
13385
|
}
|
13386
13386
|
return j;
|
@@ -13424,14 +13424,14 @@ function rfe(t) {
|
|
13424
13424
|
allowedAutoPlacements: m
|
13425
13425
|
}) : ge);
|
13426
13426
|
}, []), x = e.rects.reference, M = e.rects.popper, L = /* @__PURE__ */ new Map(), S = !0, D = w[0], j = 0; j < w.length; j++) {
|
13427
|
-
var R = w[j], H = Zo(R),
|
13427
|
+
var R = w[j], H = Zo(R), q = Jh(R) === Zh, Z = [us, Aa].indexOf(H) >= 0, U = Z ? "width" : "height", V = t4(e, {
|
13428
13428
|
placement: R,
|
13429
13429
|
boundary: u,
|
13430
13430
|
rootBoundary: f,
|
13431
13431
|
altBoundary: d,
|
13432
13432
|
padding: c
|
13433
|
-
}), Y = Z ?
|
13434
|
-
x[
|
13433
|
+
}), Y = Z ? q ? Sa : fs : q ? Aa : us;
|
13434
|
+
x[U] > M[U] && (Y = u6(Y));
|
13435
13435
|
var ae = u6(Y), G = [];
|
13436
13436
|
if (s && G.push(V[H] <= 0), o && G.push(V[Y] <= 0, V[ae] <= 0), G.every(function(oe) {
|
13437
13437
|
return oe;
|
@@ -13442,7 +13442,7 @@ function rfe(t) {
|
|
13442
13442
|
L.set(R, G);
|
13443
13443
|
}
|
13444
13444
|
if (S)
|
13445
|
-
for (var
|
13445
|
+
for (var re = p ? 3 : 1, de = function(ge) {
|
13446
13446
|
var J = w.find(function(be) {
|
13447
13447
|
var ke = L.get(be);
|
13448
13448
|
if (ke)
|
@@ -13452,8 +13452,8 @@ function rfe(t) {
|
|
13452
13452
|
});
|
13453
13453
|
if (J)
|
13454
13454
|
return D = J, "break";
|
13455
|
-
},
|
13456
|
-
var pe = de(
|
13455
|
+
}, ie = re; ie > 0; ie--) {
|
13456
|
+
var pe = de(ie);
|
13457
13457
|
if (pe === "break") break;
|
13458
13458
|
}
|
13459
13459
|
e.placement !== D && (e.modifiersData[r]._skip = !0, e.placement = D, e.reset = !0);
|
@@ -13572,10 +13572,10 @@ function hfe(t) {
|
|
13572
13572
|
};
|
13573
13573
|
if (M) {
|
13574
13574
|
if (s) {
|
13575
|
-
var
|
13575
|
+
var q, Z = w === "y" ? us : fs, U = w === "y" ? Aa : Sa, V = w === "y" ? "height" : "width", Y = M[w], ae = Y + g[Z], G = Y - g[U], re = h ? -S[V] / 2 : 0, de = k === Zh ? L[V] : S[V], ie = k === Zh ? -S[V] : -L[V], pe = e.elements.arrow, oe = h && pe ? wS(pe) : {
|
13576
13576
|
width: 0,
|
13577
13577
|
height: 0
|
13578
|
-
}, ge = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : $q(), J = ge[Z], be = ge[
|
13578
|
+
}, ge = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : $q(), J = ge[Z], be = ge[U], ke = hm(0, L[V], oe[V]), Re = v ? L[V] / 2 - re - ke - J - j.mainAxis : de - ke - J - j.mainAxis, Pe = v ? -L[V] / 2 + re + ke + be + j.mainAxis : ie + ke + be + j.mainAxis, Ae = e.elements.arrow && Iy(e.elements.arrow), Le = Ae ? w === "y" ? Ae.clientTop || 0 : Ae.clientLeft || 0 : 0, Te = (q = R == null ? void 0 : R[w]) != null ? q : 0, ce = Y + Re - Te - Le, X = Y + Pe - Te, Q = hm(h ? c5(ae, ce) : ae, Y, h ? W0(G, X) : G);
|
13579
13579
|
M[w] = Q, H[w] = Q - Y;
|
13580
13580
|
}
|
13581
13581
|
if (o) {
|
@@ -14186,7 +14186,7 @@ function $fe(t, e) {
|
|
14186
14186
|
var S = k.map(function(xe) {
|
14187
14187
|
return xe.fn(w);
|
14188
14188
|
}), D = t.hasAttribute("aria-expanded");
|
14189
|
-
return Ae(),
|
14189
|
+
return Ae(), re(), Y(), ae("onCreate", [w]), n.showOnCreate && B(), M.addEventListener("mouseenter", function() {
|
14190
14190
|
w.props.interactive && w.state.isVisible && w.clearDelayTimeouts();
|
14191
14191
|
}), M.addEventListener("mouseleave", function() {
|
14192
14192
|
w.props.interactive && w.props.trigger.indexOf("mouseenter") >= 0 && Z().addEventListener("mousemove", p);
|
@@ -14202,14 +14202,14 @@ function $fe(t, e) {
|
|
14202
14202
|
var xe;
|
14203
14203
|
return !!((xe = w.props.render) != null && xe.$$tippy);
|
14204
14204
|
}
|
14205
|
-
function
|
14205
|
+
function q() {
|
14206
14206
|
return m || t;
|
14207
14207
|
}
|
14208
14208
|
function Z() {
|
14209
|
-
var xe =
|
14209
|
+
var xe = q().parentNode;
|
14210
14210
|
return xe ? zfe(xe) : document;
|
14211
14211
|
}
|
14212
|
-
function
|
14212
|
+
function U() {
|
14213
14213
|
return Ix(M);
|
14214
14214
|
}
|
14215
14215
|
function V(xe) {
|
@@ -14241,11 +14241,11 @@ function $fe(t, e) {
|
|
14241
14241
|
});
|
14242
14242
|
}
|
14243
14243
|
}
|
14244
|
-
function
|
14244
|
+
function re() {
|
14245
14245
|
if (!(D || !w.props.aria.expanded)) {
|
14246
14246
|
var xe = cd(w.props.triggerTarget || t);
|
14247
14247
|
xe.forEach(function(Ue) {
|
14248
|
-
w.props.interactive ? Ue.setAttribute("aria-expanded", w.state.isVisible && Ue ===
|
14248
|
+
w.props.interactive ? Ue.setAttribute("aria-expanded", w.state.isVisible && Ue === q() ? "true" : "false") : Ue.removeAttribute("aria-expanded");
|
14249
14249
|
});
|
14250
14250
|
}
|
14251
14251
|
}
|
@@ -14254,7 +14254,7 @@ function $fe(t, e) {
|
|
14254
14254
|
return xe !== p;
|
14255
14255
|
});
|
14256
14256
|
}
|
14257
|
-
function
|
14257
|
+
function ie(xe) {
|
14258
14258
|
if (!(Ro.isTouch && (l || xe.type === "mousedown"))) {
|
14259
14259
|
var Ue = xe.composedPath && xe.composedPath()[0] || xe.target;
|
14260
14260
|
if (!(w.props.interactive && lI(M, Ue))) {
|
@@ -14279,11 +14279,11 @@ function $fe(t, e) {
|
|
14279
14279
|
}
|
14280
14280
|
function ge() {
|
14281
14281
|
var xe = Z();
|
14282
|
-
xe.addEventListener("mousedown",
|
14282
|
+
xe.addEventListener("mousedown", ie, !0), xe.addEventListener("touchend", ie, _1), xe.addEventListener("touchstart", oe, _1), xe.addEventListener("touchmove", pe, _1);
|
14283
14283
|
}
|
14284
14284
|
function J() {
|
14285
14285
|
var xe = Z();
|
14286
|
-
xe.removeEventListener("mousedown",
|
14286
|
+
xe.removeEventListener("mousedown", ie, !0), xe.removeEventListener("touchend", ie, _1), xe.removeEventListener("touchstart", oe, _1), xe.removeEventListener("touchmove", pe, _1);
|
14287
14287
|
}
|
14288
14288
|
function be(xe, Ue) {
|
14289
14289
|
Re(xe, function() {
|
@@ -14294,7 +14294,7 @@ function $fe(t, e) {
|
|
14294
14294
|
Re(xe, Ue);
|
14295
14295
|
}
|
14296
14296
|
function Re(xe, Ue) {
|
14297
|
-
var lt =
|
14297
|
+
var lt = U().box;
|
14298
14298
|
function Bt(Dt) {
|
14299
14299
|
Dt.target === lt && (iw(lt, "remove", Bt), Ue());
|
14300
14300
|
}
|
@@ -14344,13 +14344,13 @@ function $fe(t, e) {
|
|
14344
14344
|
var Ue, lt = !1;
|
14345
14345
|
if (!(!w.state.isEnabled || ee(xe) || o)) {
|
14346
14346
|
var Bt = ((Ue = u) == null ? void 0 : Ue.type) === "focus";
|
14347
|
-
u = xe, m = xe.currentTarget,
|
14347
|
+
u = xe, m = xe.currentTarget, re(), !w.state.isVisible && Pfe(xe) && Pg.forEach(function(Dt) {
|
14348
14348
|
return Dt(xe);
|
14349
14349
|
}), xe.type === "click" && (w.props.trigger.indexOf("mouseenter") < 0 || a) && w.props.hideOnClick !== !1 && w.state.isVisible ? lt = !0 : B(xe), xe.type === "click" && (a = !lt), lt && !Bt && te(xe);
|
14350
14350
|
}
|
14351
14351
|
}
|
14352
14352
|
function ce(xe) {
|
14353
|
-
var Ue = xe.target, lt =
|
14353
|
+
var Ue = xe.target, lt = q().contains(Ue) || M.contains(Ue);
|
14354
14354
|
if (!(xe.type === "mousemove" && lt)) {
|
14355
14355
|
var Bt = P().concat(M).map(function(Dt) {
|
14356
14356
|
var nt, ft = Dt._tippy, rt = (nt = ft.popperInstance) == null ? void 0 : nt.state;
|
@@ -14374,7 +14374,7 @@ function $fe(t, e) {
|
|
14374
14374
|
}
|
14375
14375
|
}
|
14376
14376
|
function Q(xe) {
|
14377
|
-
w.props.trigger.indexOf("focusin") < 0 && xe.target !==
|
14377
|
+
w.props.trigger.indexOf("focusin") < 0 && xe.target !== q() || w.props.interactive && xe.relatedTarget && M.contains(xe.relatedTarget) || te(xe);
|
14378
14378
|
}
|
14379
14379
|
function ee(xe) {
|
14380
14380
|
return Ro.isTouch ? R() !== xe.type.indexOf("touch") >= 0 : !1;
|
@@ -14383,7 +14383,7 @@ function $fe(t, e) {
|
|
14383
14383
|
W();
|
14384
14384
|
var xe = w.props, Ue = xe.popperOptions, lt = xe.placement, Bt = xe.offset, Dt = xe.getReferenceClientRect, nt = xe.moveTransition, ft = H() ? Ix(M).arrow : null, rt = Dt ? {
|
14385
14385
|
getBoundingClientRect: Dt,
|
14386
|
-
contextElement: Dt.contextElement ||
|
14386
|
+
contextElement: Dt.contextElement || q()
|
14387
14387
|
} : t, gt = {
|
14388
14388
|
name: "$$tippy",
|
14389
14389
|
enabled: !0,
|
@@ -14392,7 +14392,7 @@ function $fe(t, e) {
|
|
14392
14392
|
fn: function(Rt) {
|
14393
14393
|
var dn = Rt.state;
|
14394
14394
|
if (H()) {
|
14395
|
-
var qn =
|
14395
|
+
var qn = U(), rr = qn.box;
|
14396
14396
|
["placement", "reference-hidden", "escaped"].forEach(function(ir) {
|
14397
14397
|
ir === "placement" ? rr.setAttribute("data-placement", dn.placement) : dn.attributes.popper["data-popper-" + ir] ? rr.setAttribute("data-" + ir, "") : rr.removeAttribute("data-" + ir);
|
14398
14398
|
}), dn.attributes.popper = {};
|
@@ -14440,7 +14440,7 @@ function $fe(t, e) {
|
|
14440
14440
|
w.popperInstance && (w.popperInstance.destroy(), w.popperInstance = null);
|
14441
14441
|
}
|
14442
14442
|
function C() {
|
14443
|
-
var xe = w.props.appendTo, Ue, lt =
|
14443
|
+
var xe = w.props.appendTo, Ue, lt = q();
|
14444
14444
|
w.props.interactive && xe === oU || xe === "parent" ? Ue = lt.parentNode : Ue = lU(xe, [lt]), Ue.contains(M) || Ue.appendChild(M), w.state.isMounted = !0, De(), process.env.NODE_ENV !== "production" && Nl(w.props.interactive && xe === Ps.appendTo && lt.nextElementSibling !== M, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
|
14445
14445
|
|
14446
14446
|
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
@@ -14490,7 +14490,7 @@ function $fe(t, e) {
|
|
14490
14490
|
}));
|
14491
14491
|
w.props = lt, Ae(), Ue.interactiveDebounce !== lt.interactiveDebounce && (de(), p = iI(ce, lt.interactiveDebounce)), Ue.triggerTarget && !lt.triggerTarget ? cd(Ue.triggerTarget).forEach(function(Bt) {
|
14492
14492
|
Bt.removeAttribute("aria-expanded");
|
14493
|
-
}) : lt.triggerTarget && t.removeAttribute("aria-expanded"),
|
14493
|
+
}) : lt.triggerTarget && t.removeAttribute("aria-expanded"), re(), Y(), L && L(Ue, lt), w.popperInstance && (De(), P().forEach(function(Bt) {
|
14494
14494
|
requestAnimationFrame(Bt._tippy.popperInstance.forceUpdate);
|
14495
14495
|
})), ae("onAfterUpdate", [w, xe]);
|
14496
14496
|
}
|
@@ -14503,19 +14503,19 @@ function $fe(t, e) {
|
|
14503
14503
|
function _e() {
|
14504
14504
|
process.env.NODE_ENV !== "production" && Nl(w.state.isDestroyed, Uf("show"));
|
14505
14505
|
var xe = w.state.isVisible, Ue = w.state.isDestroyed, lt = !w.state.isEnabled, Bt = Ro.isTouch && !w.props.touch, Dt = nw(w.props.duration, 0, Ps.duration);
|
14506
|
-
if (!(xe || Ue || lt || Bt) && !
|
14506
|
+
if (!(xe || Ue || lt || Bt) && !q().hasAttribute("disabled") && (ae("onShow", [w], !1), w.props.onShow(w) !== !1)) {
|
14507
14507
|
if (w.state.isVisible = !0, H() && (M.style.visibility = "visible"), Y(), ge(), w.state.isMounted || (M.style.transition = "none"), H()) {
|
14508
|
-
var nt =
|
14508
|
+
var nt = U(), ft = nt.box, rt = nt.content;
|
14509
14509
|
rw([ft, rt], 0);
|
14510
14510
|
}
|
14511
14511
|
d = function() {
|
14512
14512
|
var Ut;
|
14513
14513
|
if (!(!w.state.isVisible || c)) {
|
14514
14514
|
if (c = !0, M.offsetHeight, M.style.transition = w.props.moveTransition, H() && w.props.animation) {
|
14515
|
-
var vn =
|
14515
|
+
var vn = U(), Rt = vn.box, dn = vn.content;
|
14516
14516
|
rw([Rt, dn], Dt), oI([Rt, dn], "visible");
|
14517
14517
|
}
|
14518
|
-
G(),
|
14518
|
+
G(), re(), sI(sw, w), (Ut = w.popperInstance) == null || Ut.forceUpdate(), ae("onMount", [w]), w.props.animation && H() && ke(Dt, function() {
|
14519
14519
|
w.state.isShown = !0, ae("onShown", [w]);
|
14520
14520
|
});
|
14521
14521
|
}
|
@@ -14527,10 +14527,10 @@ function $fe(t, e) {
|
|
14527
14527
|
var xe = !w.state.isVisible, Ue = w.state.isDestroyed, lt = !w.state.isEnabled, Bt = nw(w.props.duration, 1, Ps.duration);
|
14528
14528
|
if (!(xe || Ue || lt) && (ae("onHide", [w], !1), w.props.onHide(w) !== !1)) {
|
14529
14529
|
if (w.state.isVisible = !1, w.state.isShown = !1, c = !1, a = !1, H() && (M.style.visibility = "hidden"), de(), J(), Y(!0), H()) {
|
14530
|
-
var Dt =
|
14530
|
+
var Dt = U(), nt = Dt.box, ft = Dt.content;
|
14531
14531
|
w.props.animation && (rw([nt, ft], Bt), oI([nt, ft], "hidden"));
|
14532
14532
|
}
|
14533
|
-
G(),
|
14533
|
+
G(), re(), w.props.animation ? H() && be(Bt, w.unmount) : w.unmount();
|
14534
14534
|
}
|
14535
14535
|
}
|
14536
14536
|
function zt(xe) {
|
@@ -15097,16 +15097,16 @@ function hde() {
|
|
15097
15097
|
var x = !1, M, L, S = function(H) {
|
15098
15098
|
if (!x) {
|
15099
15099
|
x = !0, M = H;
|
15100
|
-
var
|
15100
|
+
var q = h(H);
|
15101
15101
|
if (p !== void 0 && g.hasValue) {
|
15102
15102
|
var Z = g.value;
|
15103
|
-
if (p(Z,
|
15103
|
+
if (p(Z, q))
|
15104
15104
|
return L = Z, Z;
|
15105
15105
|
}
|
15106
|
-
return L =
|
15106
|
+
return L = q, q;
|
15107
15107
|
}
|
15108
|
-
var
|
15109
|
-
if (r(
|
15108
|
+
var U = M, V = L;
|
15109
|
+
if (r(U, H))
|
15110
15110
|
return V;
|
15111
15111
|
var Y = h(H);
|
15112
15112
|
return p !== void 0 && p(V, Y) ? V : (M = H, L = Y, Y);
|
@@ -15678,7 +15678,7 @@ function Sde() {
|
|
15678
15678
|
function H(O) {
|
15679
15679
|
return O.displayName || "Context";
|
15680
15680
|
}
|
15681
|
-
function
|
15681
|
+
function q(O) {
|
15682
15682
|
if (O == null)
|
15683
15683
|
return null;
|
15684
15684
|
if (typeof O.tag == "number" && k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof O == "function")
|
@@ -15711,11 +15711,11 @@ function Sde() {
|
|
15711
15711
|
return R(O, O.render, "ForwardRef");
|
15712
15712
|
case f:
|
15713
15713
|
var Ve = O.displayName || null;
|
15714
|
-
return Ve !== null ? Ve :
|
15714
|
+
return Ve !== null ? Ve : q(O.type) || "Memo";
|
15715
15715
|
case d: {
|
15716
15716
|
var ct = O, yt = ct._payload, at = ct._init;
|
15717
15717
|
try {
|
15718
|
-
return
|
15718
|
+
return q(at(yt));
|
15719
15719
|
} catch {
|
15720
15720
|
return null;
|
15721
15721
|
}
|
@@ -15723,14 +15723,14 @@ function Sde() {
|
|
15723
15723
|
}
|
15724
15724
|
return null;
|
15725
15725
|
}
|
15726
|
-
var Z = Object.assign,
|
15726
|
+
var Z = Object.assign, U = 0, V, Y, ae, G, re, de, ie;
|
15727
15727
|
function pe() {
|
15728
15728
|
}
|
15729
15729
|
pe.__reactDisabledLog = !0;
|
15730
15730
|
function oe() {
|
15731
15731
|
{
|
15732
|
-
if (
|
15733
|
-
V = console.log, Y = console.info, ae = console.warn, G = console.error,
|
15732
|
+
if (U === 0) {
|
15733
|
+
V = console.log, Y = console.info, ae = console.warn, G = console.error, re = console.group, de = console.groupCollapsed, ie = console.groupEnd;
|
15734
15734
|
var O = {
|
15735
15735
|
configurable: !0,
|
15736
15736
|
enumerable: !0,
|
@@ -15747,12 +15747,12 @@ function Sde() {
|
|
15747
15747
|
groupEnd: O
|
15748
15748
|
});
|
15749
15749
|
}
|
15750
|
-
|
15750
|
+
U++;
|
15751
15751
|
}
|
15752
15752
|
}
|
15753
15753
|
function ge() {
|
15754
15754
|
{
|
15755
|
-
if (
|
15755
|
+
if (U--, U === 0) {
|
15756
15756
|
var O = {
|
15757
15757
|
configurable: !0,
|
15758
15758
|
enumerable: !0,
|
@@ -15772,17 +15772,17 @@ function Sde() {
|
|
15772
15772
|
value: G
|
15773
15773
|
}),
|
15774
15774
|
group: Z({}, O, {
|
15775
|
-
value:
|
15775
|
+
value: re
|
15776
15776
|
}),
|
15777
15777
|
groupCollapsed: Z({}, O, {
|
15778
15778
|
value: de
|
15779
15779
|
}),
|
15780
15780
|
groupEnd: Z({}, O, {
|
15781
|
-
value:
|
15781
|
+
value: ie
|
15782
15782
|
})
|
15783
15783
|
});
|
15784
15784
|
}
|
15785
|
-
|
15785
|
+
U < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
15786
15786
|
}
|
15787
15787
|
}
|
15788
15788
|
var J = b.ReactCurrentDispatcher, be;
|
@@ -16072,7 +16072,7 @@ function Sde() {
|
|
16072
16072
|
function Ut() {
|
16073
16073
|
{
|
16074
16074
|
if (Dt.current) {
|
16075
|
-
var O =
|
16075
|
+
var O = q(Dt.current.type);
|
16076
16076
|
if (O)
|
16077
16077
|
return `
|
16078
16078
|
|
@@ -16107,7 +16107,7 @@ Check the top-level render call using <` + we + ">.");
|
|
16107
16107
|
return;
|
16108
16108
|
Rt[we] = !0;
|
16109
16109
|
var Ve = "";
|
16110
|
-
O && O._owner && O._owner !== Dt.current && (Ve = " It was passed a child from " +
|
16110
|
+
O && O._owner && O._owner !== Dt.current && (Ve = " It was passed a child from " + q(O._owner.type) + "."), ft(O), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', we, Ve), ft(null);
|
16111
16111
|
}
|
16112
16112
|
}
|
16113
16113
|
function rr(O, le) {
|
@@ -16144,11 +16144,11 @@ Check the top-level render call using <` + we + ">.");
|
|
16144
16144
|
else
|
16145
16145
|
return;
|
16146
16146
|
if (we) {
|
16147
|
-
var Ve =
|
16147
|
+
var Ve = q(le);
|
16148
16148
|
C(we, O.props, "prop", Ve, O);
|
16149
16149
|
} else if (le.PropTypes !== void 0 && !rt) {
|
16150
16150
|
rt = !0;
|
16151
|
-
var ct =
|
16151
|
+
var ct = q(le);
|
16152
16152
|
k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", ct || "Unknown");
|
16153
16153
|
}
|
16154
16154
|
typeof le.getDefaultProps == "function" && !le.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
@@ -16176,7 +16176,7 @@ Check the top-level render call using <` + we + ">.");
|
|
16176
16176
|
var Qe = vn();
|
16177
16177
|
Qe ? it += Qe : it += Ut();
|
16178
16178
|
var se;
|
16179
|
-
O === null ? se = "null" : B(O) ? se = "array" : O !== void 0 && O.$$typeof === e ? (se = "<" + (
|
16179
|
+
O === null ? se = "null" : B(O) ? se = "array" : O !== void 0 && O.$$typeof === e ? (se = "<" + (q(O.type) || "Unknown") + " />", it = " Did you accidentally export a JSX literal instead of a component?") : se = typeof O, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", se, it);
|
16180
16180
|
}
|
16181
16181
|
var Ne = Bt(O, le, we, ct, yt);
|
16182
16182
|
if (Ne == null)
|
@@ -16195,7 +16195,7 @@ Check the top-level render call using <` + we + ">.");
|
|
16195
16195
|
rr(Je, O);
|
16196
16196
|
}
|
16197
16197
|
if (Q.call(le, "key")) {
|
16198
|
-
var yn =
|
16198
|
+
var yn = q(O), Ft = Object.keys(le).filter(function(kl) {
|
16199
16199
|
return kl !== "key";
|
16200
16200
|
}), sr = Ft.length > 0 ? "{key: someKey, " + Ft.join(": ..., ") + ": ...}" : "{key: someKey}";
|
16201
16201
|
if (!Li[yn + sr]) {
|
@@ -16550,7 +16550,7 @@ function nhe(t) {
|
|
16550
16550
|
return Gde.test(t);
|
16551
16551
|
}
|
16552
16552
|
function rhe() {
|
16553
|
-
const t = Rn("colors"), e = Rn("spacing"), n = Rn("blur"), r = Rn("brightness"), i = Rn("borderColor"), s = Rn("borderRadius"), a = Rn("borderSpacing"), o = Rn("borderWidth"), l = Rn("contrast"), c = Rn("grayscale"), u = Rn("hueRotate"), f = Rn("invert"), d = Rn("gap"), h = Rn("gradientColorStops"), p = Rn("gradientColorStopPositions"), m = Rn("inset"), g = Rn("margin"), b = Rn("opacity"), k = Rn("padding"), v = Rn("saturate"), w = Rn("scale"), x = Rn("sepia"), M = Rn("skew"), L = Rn("space"), S = Rn("translate"), D = () => ["auto", "contain", "none"], j = () => ["auto", "hidden", "clip", "visible", "scroll"], R = () => ["auto", Zt, e], H = () => [Zt, e],
|
16553
|
+
const t = Rn("colors"), e = Rn("spacing"), n = Rn("blur"), r = Rn("brightness"), i = Rn("borderColor"), s = Rn("borderRadius"), a = Rn("borderSpacing"), o = Rn("borderWidth"), l = Rn("contrast"), c = Rn("grayscale"), u = Rn("hueRotate"), f = Rn("invert"), d = Rn("gap"), h = Rn("gradientColorStops"), p = Rn("gradientColorStopPositions"), m = Rn("inset"), g = Rn("margin"), b = Rn("opacity"), k = Rn("padding"), v = Rn("saturate"), w = Rn("scale"), x = Rn("sepia"), M = Rn("skew"), L = Rn("space"), S = Rn("translate"), D = () => ["auto", "contain", "none"], j = () => ["auto", "hidden", "clip", "visible", "scroll"], R = () => ["auto", Zt, e], H = () => [Zt, e], q = () => ["", Ml, Fc], Z = () => ["auto", l0, Zt], U = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], V = () => ["solid", "dashed", "dotted", "double", "none"], Y = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], ae = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], G = () => ["", "0", Zt], re = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], de = () => [l0, zg], ie = () => [l0, Zt];
|
16554
16554
|
return {
|
16555
16555
|
cacheSize: 500,
|
16556
16556
|
separator: ":",
|
@@ -16562,10 +16562,10 @@ function rhe() {
|
|
16562
16562
|
borderColor: [t],
|
16563
16563
|
borderRadius: ["none", "", "full", Hc, Zt],
|
16564
16564
|
borderSpacing: H(),
|
16565
|
-
borderWidth:
|
16565
|
+
borderWidth: q(),
|
16566
16566
|
contrast: de(),
|
16567
16567
|
grayscale: G(),
|
16568
|
-
hueRotate:
|
16568
|
+
hueRotate: ie(),
|
16569
16569
|
invert: G(),
|
16570
16570
|
gap: H(),
|
16571
16571
|
gradientColorStops: [t],
|
@@ -16577,7 +16577,7 @@ function rhe() {
|
|
16577
16577
|
saturate: de(),
|
16578
16578
|
scale: de(),
|
16579
16579
|
sepia: G(),
|
16580
|
-
skew:
|
16580
|
+
skew: ie(),
|
16581
16581
|
space: H(),
|
16582
16582
|
translate: H()
|
16583
16583
|
},
|
@@ -16607,14 +16607,14 @@ function rhe() {
|
|
16607
16607
|
* @see https://tailwindcss.com/docs/break-after
|
16608
16608
|
*/
|
16609
16609
|
"break-after": [{
|
16610
|
-
"break-after":
|
16610
|
+
"break-after": re()
|
16611
16611
|
}],
|
16612
16612
|
/**
|
16613
16613
|
* Break Before
|
16614
16614
|
* @see https://tailwindcss.com/docs/break-before
|
16615
16615
|
*/
|
16616
16616
|
"break-before": [{
|
16617
|
-
"break-before":
|
16617
|
+
"break-before": re()
|
16618
16618
|
}],
|
16619
16619
|
/**
|
16620
16620
|
* Break Inside
|
@@ -16673,7 +16673,7 @@ function rhe() {
|
|
16673
16673
|
* @see https://tailwindcss.com/docs/object-position
|
16674
16674
|
*/
|
16675
16675
|
"object-position": [{
|
16676
|
-
object: [...
|
16676
|
+
object: [...U(), Zt]
|
16677
16677
|
}],
|
16678
16678
|
/**
|
16679
16679
|
* Overflow
|
@@ -17482,7 +17482,7 @@ function rhe() {
|
|
17482
17482
|
* @see https://tailwindcss.com/docs/background-position
|
17483
17483
|
*/
|
17484
17484
|
"bg-position": [{
|
17485
|
-
bg: [...
|
17485
|
+
bg: [...U(), Jde]
|
17486
17486
|
}],
|
17487
17487
|
/**
|
17488
17488
|
* Background Repeat
|
@@ -17868,7 +17868,7 @@ function rhe() {
|
|
17868
17868
|
* @see https://tailwindcss.com/docs/ring-width
|
17869
17869
|
*/
|
17870
17870
|
"ring-w": [{
|
17871
|
-
ring:
|
17871
|
+
ring: q()
|
17872
17872
|
}],
|
17873
17873
|
/**
|
17874
17874
|
* Ring Width Inset
|
@@ -18138,7 +18138,7 @@ function rhe() {
|
|
18138
18138
|
* @see https://tailwindcss.com/docs/transition-duration
|
18139
18139
|
*/
|
18140
18140
|
duration: [{
|
18141
|
-
duration:
|
18141
|
+
duration: ie()
|
18142
18142
|
}],
|
18143
18143
|
/**
|
18144
18144
|
* Transition Timing Function
|
@@ -18152,7 +18152,7 @@ function rhe() {
|
|
18152
18152
|
* @see https://tailwindcss.com/docs/transition-delay
|
18153
18153
|
*/
|
18154
18154
|
delay: [{
|
18155
|
-
delay:
|
18155
|
+
delay: ie()
|
18156
18156
|
}],
|
18157
18157
|
/**
|
18158
18158
|
* Animation
|
@@ -42186,12 +42186,12 @@ const ODe = (t) => ({
|
|
42186
42186
|
}, h = zS(i), p = OS(h), m = await a.getDimensions(c), g = h === "y", b = g ? "top" : "left", k = g ? "bottom" : "right", v = g ? "clientHeight" : "clientWidth", w = s.reference[p] + s.reference[h] - d[h] - s.floating[p], x = d[h] - s.reference[h], M = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(c));
|
42187
42187
|
let L = M ? M[v] : 0;
|
42188
42188
|
(!L || !await (a.isElement == null ? void 0 : a.isElement(M))) && (L = o.floating[v] || s.floating[p]);
|
42189
|
-
const S = w / 2 - x / 2, D = L / 2 - m[p] / 2 - 1, j = _o(f[b], D), R = _o(f[k], D), H = j,
|
42189
|
+
const S = w / 2 - x / 2, D = L / 2 - m[p] / 2 - 1, j = _o(f[b], D), R = _o(f[k], D), H = j, q = L - m[p] - R, Z = L / 2 - m[p] / 2 + S, U = _x(H, Z, q), V = !l.arrow && V2(i) != null && Z !== U && s.reference[p] / 2 - (Z < H ? j : R) - m[p] / 2 < 0, Y = V ? Z < H ? Z - H : Z - q : 0;
|
42190
42190
|
return {
|
42191
42191
|
[h]: d[h] + Y,
|
42192
42192
|
data: {
|
42193
|
-
[h]:
|
42194
|
-
centerOffset: Z -
|
42193
|
+
[h]: U,
|
42194
|
+
centerOffset: Z - U - Y,
|
42195
42195
|
...V && {
|
42196
42196
|
alignmentOffset: Y
|
42197
42197
|
}
|
@@ -42236,23 +42236,23 @@ const ODe = (t) => ({
|
|
42236
42236
|
overflows: D
|
42237
42237
|
}], !D.every((Z) => Z <= 0)) {
|
42238
42238
|
var R, H;
|
42239
|
-
const Z = (((R = s.flip) == null ? void 0 : R.index) || 0) + 1,
|
42240
|
-
if (
|
42239
|
+
const Z = (((R = s.flip) == null ? void 0 : R.index) || 0) + 1, U = L[Z];
|
42240
|
+
if (U)
|
42241
42241
|
return {
|
42242
42242
|
data: {
|
42243
42243
|
index: Z,
|
42244
42244
|
overflows: j
|
42245
42245
|
},
|
42246
42246
|
reset: {
|
42247
|
-
placement:
|
42247
|
+
placement: U
|
42248
42248
|
}
|
42249
42249
|
};
|
42250
42250
|
let V = (H = j.filter((Y) => Y.overflows[0] <= 0).sort((Y, ae) => Y.overflows[1] - ae.overflows[1])[0]) == null ? void 0 : H.placement;
|
42251
42251
|
if (!V)
|
42252
42252
|
switch (h) {
|
42253
42253
|
case "bestFit": {
|
42254
|
-
var
|
42255
|
-
const Y = (
|
42254
|
+
var q;
|
42255
|
+
const Y = (q = j.filter((ae) => {
|
42256
42256
|
if (M) {
|
42257
42257
|
const G = Yu(ae.placement);
|
42258
42258
|
return G === k || // Create a bias to the `y` side axis due to horizontal
|
@@ -42260,7 +42260,7 @@ const ODe = (t) => ({
|
|
42260
42260
|
G === "y";
|
42261
42261
|
}
|
42262
42262
|
return !0;
|
42263
|
-
}).map((ae) => [ae.placement, ae.overflows.filter((G) => G > 0).reduce((G,
|
42263
|
+
}).map((ae) => [ae.placement, ae.overflows.filter((G) => G > 0).reduce((G, re) => G + re, 0)]).sort((ae, G) => ae[1] - G[1])[0]) == null ? void 0 : q[0];
|
42264
42264
|
Y && (V = Y);
|
42265
42265
|
break;
|
42266
42266
|
}
|
@@ -43056,7 +43056,7 @@ function mIe(t) {
|
|
43056
43056
|
...ae,
|
43057
43057
|
isPositioned: !0
|
43058
43058
|
};
|
43059
|
-
|
43059
|
+
q.current && !p5(S.current, G) && (S.current = G, p1.flushSync(() => {
|
43060
43060
|
f(G);
|
43061
43061
|
}));
|
43062
43062
|
});
|
@@ -43067,9 +43067,9 @@ function mIe(t) {
|
|
43067
43067
|
isPositioned: !1
|
43068
43068
|
})));
|
43069
43069
|
}, [c]);
|
43070
|
-
const
|
43071
|
-
f6(() => (
|
43072
|
-
|
43070
|
+
const q = E.useRef(!1);
|
43071
|
+
f6(() => (q.current = !0, () => {
|
43072
|
+
q.current = !1;
|
43073
43073
|
}), []), f6(() => {
|
43074
43074
|
if (w && (M.current = w), x && (L.current = x), w && x) {
|
43075
43075
|
if (j.current)
|
@@ -43082,7 +43082,7 @@ function mIe(t) {
|
|
43082
43082
|
floating: L,
|
43083
43083
|
setReference: k,
|
43084
43084
|
setFloating: v
|
43085
|
-
}), [k, v]),
|
43085
|
+
}), [k, v]), U = E.useMemo(() => ({
|
43086
43086
|
reference: w,
|
43087
43087
|
floating: x
|
43088
43088
|
}), [w, x]), V = E.useMemo(() => {
|
@@ -43091,13 +43091,13 @@ function mIe(t) {
|
|
43091
43091
|
left: 0,
|
43092
43092
|
top: 0
|
43093
43093
|
};
|
43094
|
-
if (!
|
43094
|
+
if (!U.floating)
|
43095
43095
|
return Y;
|
43096
|
-
const ae = OI(
|
43096
|
+
const ae = OI(U.floating, u.x), G = OI(U.floating, u.y);
|
43097
43097
|
return o ? {
|
43098
43098
|
...Y,
|
43099
43099
|
transform: "translate(" + ae + "px, " + G + "px)",
|
43100
|
-
...eW(
|
43100
|
+
...eW(U.floating) >= 1.5 && {
|
43101
43101
|
willChange: "transform"
|
43102
43102
|
}
|
43103
43103
|
} : {
|
@@ -43105,14 +43105,14 @@ function mIe(t) {
|
|
43105
43105
|
left: ae,
|
43106
43106
|
top: G
|
43107
43107
|
};
|
43108
|
-
}, [n, o,
|
43108
|
+
}, [n, o, U.floating, u.x, u.y]);
|
43109
43109
|
return E.useMemo(() => ({
|
43110
43110
|
...u,
|
43111
43111
|
update: H,
|
43112
43112
|
refs: Z,
|
43113
|
-
elements:
|
43113
|
+
elements: U,
|
43114
43114
|
floatingStyles: V
|
43115
|
-
}), [u, H, Z,
|
43115
|
+
}), [u, H, Z, U, V]);
|
43116
43116
|
}
|
43117
43117
|
const yIe = (t) => {
|
43118
43118
|
function e(n) {
|
@@ -43205,15 +43205,15 @@ var _S = "PopperContent", [EIe, LIe] = nW(_S), oW = E.forwardRef(
|
|
43205
43205
|
updatePositionStrategy: v = "optimized",
|
43206
43206
|
onPlaced: w,
|
43207
43207
|
...x
|
43208
|
-
} = t, M = rW(_S, l), [L, S] = E.useState(null), D = nn(e, (Te) => S(Te)), [j, R] = E.useState(null), H = IS(j),
|
43208
|
+
} = t, M = rW(_S, l), [L, S] = E.useState(null), D = nn(e, (Te) => S(Te)), [j, R] = E.useState(null), H = IS(j), q = (H == null ? void 0 : H.width) ?? 0, Z = (H == null ? void 0 : H.height) ?? 0, U = c + (f !== "center" ? "-" + f : ""), V = typeof g == "number" ? g : { top: 0, right: 0, bottom: 0, left: 0, ...g }, Y = Array.isArray(m) ? m : [m], ae = Y.length > 0, G = {
|
43209
43209
|
padding: V,
|
43210
43210
|
boundary: Y.filter(NIe),
|
43211
43211
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
43212
43212
|
altBoundary: ae
|
43213
|
-
}, { refs:
|
43213
|
+
}, { refs: re, floatingStyles: de, placement: ie, isPositioned: pe, middlewareData: oe } = mIe({
|
43214
43214
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
43215
43215
|
strategy: "fixed",
|
43216
|
-
placement:
|
43216
|
+
placement: U,
|
43217
43217
|
whileElementsMounted: (...Te) => oIe(...Te, {
|
43218
43218
|
animationFrame: v === "always"
|
43219
43219
|
}),
|
@@ -43237,10 +43237,10 @@ var _S = "PopperContent", [EIe, LIe] = nW(_S), oW = E.forwardRef(
|
|
43237
43237
|
}
|
43238
43238
|
}),
|
43239
43239
|
j && MIe({ element: j, padding: h }),
|
43240
|
-
jIe({ arrowWidth:
|
43240
|
+
jIe({ arrowWidth: q, arrowHeight: Z }),
|
43241
43241
|
k && xIe({ strategy: "referenceHidden", ...G })
|
43242
43242
|
]
|
43243
|
-
}), [ge, J] = uW(
|
43243
|
+
}), [ge, J] = uW(ie), be = hs(w);
|
43244
43244
|
oi(() => {
|
43245
43245
|
pe && (be == null || be());
|
43246
43246
|
}, [pe, be]);
|
@@ -43250,7 +43250,7 @@ var _S = "PopperContent", [EIe, LIe] = nW(_S), oW = E.forwardRef(
|
|
43250
43250
|
}, [L]), /* @__PURE__ */ A.jsx(
|
43251
43251
|
"div",
|
43252
43252
|
{
|
43253
|
-
ref:
|
43253
|
+
ref: re.setFloating,
|
43254
43254
|
"data-radix-popper-content-wrapper": "",
|
43255
43255
|
style: {
|
43256
43256
|
...de,
|
@@ -46466,17 +46466,17 @@ function JOe(t) {
|
|
46466
46466
|
const { prevResolvedValues: R = {} } = k, H = {
|
46467
46467
|
...R,
|
46468
46468
|
...j
|
46469
|
-
},
|
46469
|
+
}, q = (Z) => {
|
46470
46470
|
L = !0, d.has(Z) && (S = !0, d.delete(Z)), k.needsAnimating[Z] = !0;
|
46471
|
-
const
|
46472
|
-
|
46471
|
+
const U = t.getValue(Z);
|
46472
|
+
U && (U.liveStyle = !1);
|
46473
46473
|
};
|
46474
46474
|
for (const Z in H) {
|
46475
|
-
const
|
46475
|
+
const U = j[Z], V = R[Z];
|
46476
46476
|
if (h.hasOwnProperty(Z))
|
46477
46477
|
continue;
|
46478
46478
|
let Y = !1;
|
46479
|
-
Gx(
|
46479
|
+
Gx(U) && Gx(V) ? Y = !YW(U, V) : Y = U !== V, Y ? U != null ? q(Z) : d.add(Z) : U !== void 0 && d.has(Z) ? q(Z) : k.protectedKeys[Z] = !0;
|
46480
46480
|
}
|
46481
46481
|
k.prevProp = v, k.prevResolvedValues = j, k.isActive && (h = { ...h, ...j }), r && t.blockInitialAnimation && (L = !1), L && (!M || S) && f.push(...D.map((Z) => ({
|
46482
46482
|
animation: Z,
|
@@ -50116,9 +50116,9 @@ var ZBe = E.forwardRef((t, e) => {
|
|
50116
50116
|
if (S.target === S.currentTarget && D && !b) {
|
50117
50117
|
const j = new CustomEvent(Aw, _Be);
|
50118
50118
|
if (S.currentTarget.dispatchEvent(j), !j.defaultPrevented) {
|
50119
|
-
const R = w().filter((
|
50119
|
+
const R = w().filter((U) => U.focusable), H = R.find((U) => U.active), q = R.find((U) => U.id === m), Z = [H, q, ...R].filter(
|
50120
50120
|
Boolean
|
50121
|
-
).map((
|
50121
|
+
).map((U) => U.ref.current);
|
50122
50122
|
tZ(Z, u);
|
50123
50123
|
}
|
50124
50124
|
}
|
@@ -52442,7 +52442,7 @@ var jl = 10, [_Y, A1] = Y2(lf), IVe = "SelectContentImpl", qY = E.forwardRef(
|
|
52442
52442
|
...b
|
52443
52443
|
} = t, k = C1(lf, n), [v, w] = E.useState(null), [x, M] = E.useState(null), L = nn(e, (be) => w(be)), [S, D] = E.useState(null), [j, R] = E.useState(
|
52444
52444
|
null
|
52445
|
-
), H = lv(n), [
|
52445
|
+
), H = lv(n), [q, Z] = E.useState(!1), U = E.useRef(!1);
|
52446
52446
|
E.useEffect(() => {
|
52447
52447
|
if (v) return rv(v);
|
52448
52448
|
}, [v]), kE();
|
@@ -52458,8 +52458,8 @@ var jl = 10, [_Y, A1] = Y2(lf), IVe = "SelectContentImpl", qY = E.forwardRef(
|
|
52458
52458
|
[V, S, v]
|
52459
52459
|
);
|
52460
52460
|
E.useEffect(() => {
|
52461
|
-
|
52462
|
-
}, [
|
52461
|
+
q && Y();
|
52462
|
+
}, [q, Y]);
|
52463
52463
|
const { onOpenChange: ae, triggerPointerDownPosRef: G } = k;
|
52464
52464
|
E.useEffect(() => {
|
52465
52465
|
if (v) {
|
@@ -52483,18 +52483,18 @@ var jl = 10, [_Y, A1] = Y2(lf), IVe = "SelectContentImpl", qY = E.forwardRef(
|
|
52483
52483
|
window.removeEventListener("blur", be), window.removeEventListener("resize", be);
|
52484
52484
|
};
|
52485
52485
|
}, [ae]);
|
52486
|
-
const [
|
52486
|
+
const [re, de] = sK((be) => {
|
52487
52487
|
const ke = H().filter((Ae) => !Ae.disabled), Re = ke.find((Ae) => Ae.ref.current === document.activeElement), Pe = aK(ke, be, Re);
|
52488
52488
|
Pe && setTimeout(() => Pe.ref.current.focus());
|
52489
|
-
}),
|
52489
|
+
}), ie = E.useCallback(
|
52490
52490
|
(be, ke, Re) => {
|
52491
|
-
const Pe = !
|
52492
|
-
(k.value !== void 0 && k.value === ke || Pe) && (D(be), Pe && (
|
52491
|
+
const Pe = !U.current && !Re;
|
52492
|
+
(k.value !== void 0 && k.value === ke || Pe) && (D(be), Pe && (U.current = !0));
|
52493
52493
|
},
|
52494
52494
|
[k.value]
|
52495
52495
|
), pe = E.useCallback(() => v == null ? void 0 : v.focus(), [v]), oe = E.useCallback(
|
52496
52496
|
(be, ke, Re) => {
|
52497
|
-
const Pe = !
|
52497
|
+
const Pe = !U.current && !Re;
|
52498
52498
|
(k.value !== void 0 && k.value === ke || Pe) && R(be);
|
52499
52499
|
},
|
52500
52500
|
[k.value]
|
@@ -52517,15 +52517,15 @@ var jl = 10, [_Y, A1] = Y2(lf), IVe = "SelectContentImpl", qY = E.forwardRef(
|
|
52517
52517
|
content: v,
|
52518
52518
|
viewport: x,
|
52519
52519
|
onViewportChange: M,
|
52520
|
-
itemRefCallback:
|
52520
|
+
itemRefCallback: ie,
|
52521
52521
|
selectedItem: S,
|
52522
52522
|
onItemLeave: pe,
|
52523
52523
|
itemTextRefCallback: oe,
|
52524
52524
|
focusSelectedItem: Y,
|
52525
52525
|
selectedItemText: j,
|
52526
52526
|
position: r,
|
52527
|
-
isPositioned:
|
52528
|
-
searchRef:
|
52527
|
+
isPositioned: q,
|
52528
|
+
searchRef: re,
|
52529
52529
|
children: /* @__PURE__ */ A.jsx(nv, { as: al, allowPinchZoom: !0, children: /* @__PURE__ */ A.jsx(
|
52530
52530
|
Z2,
|
52531
52531
|
{
|
@@ -52600,7 +52600,7 @@ var PVe = "SelectItemAlignedPosition", UY = E.forwardRef((t, e) => {
|
|
52600
52600
|
const Pe = S.right - j.right, Ae = window.innerWidth - D.right - Pe, Le = window.innerWidth - L.right - Ae, Te = L.width + Le, ce = Math.max(Te, S.width), X = window.innerWidth - jl, Q = pR(Ae, [jl, X - ce]);
|
52601
52601
|
o.style.minWidth = Te + "px", o.style.right = Q + "px";
|
52602
52602
|
}
|
52603
|
-
const R = d(), H = window.innerHeight - jl * 2,
|
52603
|
+
const R = d(), H = window.innerHeight - jl * 2, q = m.scrollHeight, Z = window.getComputedStyle(c), U = parseInt(Z.borderTopWidth, 10), V = parseInt(Z.paddingTop, 10), Y = parseInt(Z.borderBottomWidth, 10), ae = parseInt(Z.paddingBottom, 10), G = U + V + q + ae + Y, re = Math.min(g.offsetHeight * 5, G), de = window.getComputedStyle(m), ie = parseInt(de.paddingTop, 10), pe = parseInt(de.paddingBottom, 10), oe = L.top + L.height / 2 - jl, ge = H - oe, J = g.offsetHeight / 2, be = g.offsetTop + J, ke = U + V + be, Re = G - ke;
|
52604
52604
|
if (ke <= oe) {
|
52605
52605
|
const Pe = g === R[R.length - 1].ref.current;
|
52606
52606
|
o.style.bottom = "0px";
|
@@ -52615,12 +52615,12 @@ var PVe = "SelectItemAlignedPosition", UY = E.forwardRef((t, e) => {
|
|
52615
52615
|
o.style.top = "0px";
|
52616
52616
|
const Ae = Math.max(
|
52617
52617
|
oe,
|
52618
|
-
|
52619
|
-
(Pe ?
|
52618
|
+
U + m.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
52619
|
+
(Pe ? ie : 0) + J
|
52620
52620
|
) + Re;
|
52621
52621
|
o.style.height = Ae + "px", m.scrollTop = ke - oe + m.offsetTop;
|
52622
52622
|
}
|
52623
|
-
o.style.margin = `${jl}px 0`, o.style.minHeight =
|
52623
|
+
o.style.margin = `${jl}px 0`, o.style.minHeight = re + "px", o.style.maxHeight = H + "px", r == null || r(), requestAnimationFrame(() => h.current = !0);
|
52624
52624
|
}
|
52625
52625
|
}, [
|
52626
52626
|
d,
|
@@ -53780,8 +53780,8 @@ function T_e({ activeSnapPointProp: t, setActiveSnapPointProp: e, snapPoints: n,
|
|
53780
53780
|
const j = typeof D == "string";
|
53781
53781
|
let R = 0;
|
53782
53782
|
if (j && (R = parseInt(D, 10)), Cr(o)) {
|
53783
|
-
const
|
53784
|
-
return d ? o === "bottom" ? L.height -
|
53783
|
+
const q = j ? R : d ? D * L.height : 0;
|
53784
|
+
return d ? o === "bottom" ? L.height - q : -L.height + q : q;
|
53785
53785
|
}
|
53786
53786
|
const H = j ? R : d ? D * L.width : 0;
|
53787
53787
|
return d ? o === "right" ? L.width - H : -L.width + H : H;
|
@@ -53829,7 +53829,7 @@ function T_e({ activeSnapPointProp: t, setActiveSnapPointProp: e, snapPoints: n,
|
|
53829
53829
|
]);
|
53830
53830
|
function w({ draggedDistance: L, closeDrawer: S, velocity: D, dismissible: j }) {
|
53831
53831
|
if (s === void 0) return;
|
53832
|
-
const R = o === "bottom" || o === "right" ? (k ?? 0) - L : (k ?? 0) + L, H = m === s - 1,
|
53832
|
+
const R = o === "bottom" || o === "right" ? (k ?? 0) - L : (k ?? 0) + L, H = m === s - 1, q = m === 0, Z = L > 0;
|
53833
53833
|
if (H && jr(i.current, {
|
53834
53834
|
transition: `opacity ${Wn.DURATION}s cubic-bezier(${Wn.EASE.join(",")})`
|
53835
53835
|
}), !c && D > 2 && !Z) {
|
@@ -53840,18 +53840,18 @@ function T_e({ activeSnapPointProp: t, setActiveSnapPointProp: e, snapPoints: n,
|
|
53840
53840
|
v(b[n.length - 1]);
|
53841
53841
|
return;
|
53842
53842
|
}
|
53843
|
-
const
|
53843
|
+
const U = b == null ? void 0 : b.reduce((Y, ae) => typeof Y != "number" || typeof ae != "number" ? Y : Math.abs(ae - R) < Math.abs(Y - R) ? ae : Y), V = Cr(o) ? window.innerHeight : window.innerWidth;
|
53844
53844
|
if (D > vK && Math.abs(L) < V * 0.4) {
|
53845
53845
|
const Y = Z ? 1 : -1;
|
53846
53846
|
if (Y > 0 && p && n) {
|
53847
53847
|
v(b[n.length - 1]);
|
53848
53848
|
return;
|
53849
53849
|
}
|
53850
|
-
if (
|
53850
|
+
if (q && Y < 0 && j && S(), m === null) return;
|
53851
53851
|
v(b[m + Y]);
|
53852
53852
|
return;
|
53853
53853
|
}
|
53854
|
-
v(
|
53854
|
+
v(U);
|
53855
53855
|
}
|
53856
53856
|
function x({ draggedDistance: L }) {
|
53857
53857
|
if (k === null) return;
|
@@ -53993,8 +53993,8 @@ function D_e({ isOpen: t, modal: e, nested: n, hasBeenOpened: r, preventScrollRe
|
|
53993
53993
|
};
|
53994
53994
|
}
|
53995
53995
|
function MK({ open: t, onOpenChange: e, children: n, onDrag: r, onRelease: i, snapPoints: s, shouldScaleBackground: a = !1, setBackgroundColorOnScale: o = !0, closeThreshold: l = S_e, scrollLockTimeout: c = E_e, dismissible: u = !0, handleOnly: f = !1, fadeFromIndex: d = s && s.length - 1, activeSnapPoint: h, setActiveSnapPoint: p, fixed: m, modal: g = !0, onClose: b, nested: k, noBodyStyles: v = !1, direction: w = "bottom", defaultOpen: x = !1, disablePreventScroll: M = !0, snapToSequentialPoint: L = !1, preventScrollRestoration: S = !1, repositionInputs: D = !0, onAnimationEnd: j, container: R, autoFocus: H = !1 }) {
|
53996
|
-
var
|
53997
|
-
const [
|
53996
|
+
var q, Z;
|
53997
|
+
const [U = !1, V] = xK({
|
53998
53998
|
defaultProp: x,
|
53999
53999
|
prop: t,
|
54000
54000
|
onChange: (nt) => {
|
@@ -54004,7 +54004,7 @@ function MK({ open: t, onOpenChange: e, children: n, onDrag: r, onRelease: i, sn
|
|
54004
54004
|
document.body.style.pointerEvents = "auto";
|
54005
54005
|
}), nt || (document.body.style.pointerEvents = "auto");
|
54006
54006
|
}
|
54007
|
-
}), [Y, ae] = Me.useState(!1), [G,
|
54007
|
+
}), [Y, ae] = Me.useState(!1), [G, re] = Me.useState(!1), [de, ie] = Me.useState(!1), pe = Me.useRef(null), oe = Me.useRef(null), ge = Me.useRef(null), J = Me.useRef(null), be = Me.useRef(null), ke = Me.useRef(!1), Re = Me.useRef(null), Pe = Me.useRef(0), Ae = Me.useRef(!1), Le = Me.useRef(!x), Te = Me.useRef(0), ce = Me.useRef(null), X = Me.useRef(((q = ce.current) == null ? void 0 : q.getBoundingClientRect().height) || 0), Q = Me.useRef(((Z = ce.current) == null ? void 0 : Z.getBoundingClientRect().width) || 0), ee = Me.useRef(0), De = Me.useCallback((nt) => {
|
54008
54008
|
s && nt === te.length - 1 && (oe.current = /* @__PURE__ */ new Date());
|
54009
54009
|
}, []), { activeSnapPoint: W, activeSnapPointIndex: C, setActiveSnapPoint: P, onRelease: B, snapPointsOffset: te, onDrag: ue, shouldFade: me, getPercentageDragged: ze } = T_e({
|
54010
54010
|
snapPoints: s,
|
@@ -54019,10 +54019,10 @@ function MK({ open: t, onOpenChange: e, children: n, onDrag: r, onRelease: i, sn
|
|
54019
54019
|
snapToSequentialPoint: L
|
54020
54020
|
});
|
54021
54021
|
b_e({
|
54022
|
-
isDisabled: !
|
54022
|
+
isDisabled: !U || G || !g || de || !Y || !D || !M
|
54023
54023
|
});
|
54024
54024
|
const { restorePositionSetting: Ze } = D_e({
|
54025
|
-
isOpen:
|
54025
|
+
isOpen: U,
|
54026
54026
|
modal: g,
|
54027
54027
|
nested: k ?? !1,
|
54028
54028
|
hasBeenOpened: Y,
|
@@ -54034,7 +54034,7 @@ function MK({ open: t, onOpenChange: e, children: n, onDrag: r, onRelease: i, sn
|
|
54034
54034
|
}
|
54035
54035
|
function _e(nt) {
|
54036
54036
|
var ft, rt;
|
54037
|
-
!u && !s || ce.current && !ce.current.contains(nt.target) || (X.current = ((ft = ce.current) == null ? void 0 : ft.getBoundingClientRect().height) || 0, Q.current = ((rt = ce.current) == null ? void 0 : rt.getBoundingClientRect().width) || 0,
|
54037
|
+
!u && !s || ce.current && !ce.current.contains(nt.target) || (X.current = ((ft = ce.current) == null ? void 0 : ft.getBoundingClientRect().height) || 0, Q.current = ((rt = ce.current) == null ? void 0 : rt.getBoundingClientRect().width) || 0, re(!0), ge.current = /* @__PURE__ */ new Date(), mK() && window.addEventListener("touchend", () => ke.current = !1, {
|
54038
54038
|
once: !0
|
54039
54039
|
}), nt.target.setPointerCapture(nt.pointerId), Pe.current = Cr(w) ? nt.pageY : nt.pageX);
|
54040
54040
|
}
|
@@ -54157,7 +54157,7 @@ function MK({ open: t, onOpenChange: e, children: n, onDrag: r, onRelease: i, sn
|
|
54157
54157
|
}), jr(pe.current, {
|
54158
54158
|
transition: `opacity ${Wn.DURATION}s cubic-bezier(${Wn.EASE.join(",")})`,
|
54159
54159
|
opacity: "1"
|
54160
|
-
}), a && ft && ft > 0 &&
|
54160
|
+
}), a && ft && ft > 0 && U && jr(nt, {
|
54161
54161
|
borderRadius: `${wK}px`,
|
54162
54162
|
overflow: "hidden",
|
54163
54163
|
...Cr(w) ? {
|
@@ -54173,16 +54173,16 @@ function MK({ open: t, onOpenChange: e, children: n, onDrag: r, onRelease: i, sn
|
|
54173
54173
|
}, !0);
|
54174
54174
|
}
|
54175
54175
|
function xe() {
|
54176
|
-
!G || !ce.current || (ce.current.classList.remove(Hw), ke.current = !1,
|
54176
|
+
!G || !ce.current || (ce.current.classList.remove(Hw), ke.current = !1, re(!1), J.current = /* @__PURE__ */ new Date());
|
54177
54177
|
}
|
54178
54178
|
function Ue(nt) {
|
54179
54179
|
if (!G || !ce.current) return;
|
54180
|
-
ce.current.classList.remove(Hw), ke.current = !1,
|
54180
|
+
ce.current.classList.remove(Hw), ke.current = !1, re(!1), J.current = /* @__PURE__ */ new Date();
|
54181
54181
|
const ft = Kg(ce.current, w);
|
54182
54182
|
if (!nt || !Ke(nt.target, !1) || !ft || Number.isNaN(ft) || ge.current === null) return;
|
54183
54183
|
const rt = J.current.getTime() - ge.current.getTime(), gt = Pe.current - (Cr(w) ? nt.pageY : nt.pageX), Ut = Math.abs(gt) / rt;
|
54184
|
-
if (Ut > 0.05 && (
|
54185
|
-
|
54184
|
+
if (Ut > 0.05 && (ie(!0), setTimeout(() => {
|
54185
|
+
ie(!1);
|
54186
54186
|
}, 200)), s) {
|
54187
54187
|
B({
|
54188
54188
|
draggedDistance: gt * (w === "bottom" || w === "right" ? 1 : -1),
|
@@ -54210,12 +54210,12 @@ function MK({ open: t, onOpenChange: e, children: n, onDrag: r, onRelease: i, sn
|
|
54210
54210
|
}
|
54211
54211
|
i == null || i(nt, !0), cn();
|
54212
54212
|
}
|
54213
|
-
Me.useEffect(() => (
|
54213
|
+
Me.useEffect(() => (U && (jr(document.documentElement, {
|
54214
54214
|
scrollBehavior: "auto"
|
54215
54215
|
}), oe.current = /* @__PURE__ */ new Date()), () => {
|
54216
54216
|
M_e(document.documentElement, "scrollBehavior");
|
54217
54217
|
}), [
|
54218
|
-
|
54218
|
+
U
|
54219
54219
|
]);
|
54220
54220
|
function lt(nt) {
|
54221
54221
|
const ft = nt ? (window.innerWidth - Jg) / window.innerWidth : 1, rt = nt ? -16 : 0;
|
@@ -54256,7 +54256,7 @@ function MK({ open: t, onOpenChange: e, children: n, onDrag: r, onRelease: i, sn
|
|
54256
54256
|
onOpenChange: (nt) => {
|
54257
54257
|
!u && !nt || (nt ? ae(!0) : ln(!0), V(nt));
|
54258
54258
|
},
|
54259
|
-
open:
|
54259
|
+
open: U
|
54260
54260
|
}, /* @__PURE__ */ Me.createElement(pK.Provider, {
|
54261
54261
|
value: {
|
54262
54262
|
activeSnapPoint: W,
|
@@ -54271,7 +54271,7 @@ function MK({ open: t, onOpenChange: e, children: n, onDrag: r, onRelease: i, sn
|
|
54271
54271
|
dismissible: u,
|
54272
54272
|
shouldAnimate: Le,
|
54273
54273
|
handleOnly: f,
|
54274
|
-
isOpen:
|
54274
|
+
isOpen: U,
|
54275
54275
|
isDragging: G,
|
54276
54276
|
shouldFade: me,
|
54277
54277
|
closeDrawer: ln,
|
@@ -54312,16 +54312,16 @@ CK.displayName = "Drawer.Overlay";
|
|
54312
54312
|
const AK = /* @__PURE__ */ Me.forwardRef(function({ onPointerDownOutside: t, style: e, onOpenAutoFocus: n, ...r }, i) {
|
54313
54313
|
const { drawerRef: s, onPress: a, onRelease: o, onDrag: l, keyboardIsOpen: c, snapPointsOffset: u, activeSnapPointIndex: f, modal: d, isOpen: h, direction: p, snapPoints: m, container: g, handleOnly: b, shouldAnimate: k, autoFocus: v } = K2(), [w, x] = Me.useState(!1), M = gK(i, s), L = Me.useRef(null), S = Me.useRef(null), D = Me.useRef(!1), j = m && m.length > 0;
|
54314
54314
|
j_e();
|
54315
|
-
const R = (
|
54315
|
+
const R = (q, Z, U = 0) => {
|
54316
54316
|
if (D.current) return !0;
|
54317
|
-
const V = Math.abs(
|
54317
|
+
const V = Math.abs(q.y), Y = Math.abs(q.x), ae = Y > V, G = [
|
54318
54318
|
"bottom",
|
54319
54319
|
"right"
|
54320
54320
|
].includes(Z) ? 1 : -1;
|
54321
54321
|
if (Z === "left" || Z === "right") {
|
54322
|
-
if (!(
|
54322
|
+
if (!(q.x * G < 0) && Y >= 0 && Y <= U)
|
54323
54323
|
return ae;
|
54324
|
-
} else if (!(
|
54324
|
+
} else if (!(q.y * G < 0) && V >= 0 && V <= U)
|
54325
54325
|
return !ae;
|
54326
54326
|
return D.current = !0, !0;
|
54327
54327
|
};
|
@@ -54330,8 +54330,8 @@ const AK = /* @__PURE__ */ Me.forwardRef(function({ onPointerDownOutside: t, sty
|
|
54330
54330
|
x(!0);
|
54331
54331
|
});
|
54332
54332
|
}, []);
|
54333
|
-
function H(
|
54334
|
-
L.current = null, D.current = !1, o(
|
54333
|
+
function H(q) {
|
54334
|
+
L.current = null, D.current = !1, o(q);
|
54335
54335
|
}
|
54336
54336
|
return /* @__PURE__ */ Me.createElement(Uy, {
|
54337
54337
|
"data-vaul-drawer-direction": p,
|
@@ -54346,44 +54346,44 @@ const AK = /* @__PURE__ */ Me.forwardRef(function({ onPointerDownOutside: t, sty
|
|
54346
54346
|
"--snap-point-height": `${u[f ?? 0]}px`,
|
54347
54347
|
...e
|
54348
54348
|
} : e,
|
54349
|
-
onPointerDown: (
|
54350
|
-
b || (r.onPointerDown == null || r.onPointerDown.call(r,
|
54351
|
-
x:
|
54352
|
-
y:
|
54353
|
-
}, a(
|
54349
|
+
onPointerDown: (q) => {
|
54350
|
+
b || (r.onPointerDown == null || r.onPointerDown.call(r, q), L.current = {
|
54351
|
+
x: q.pageX,
|
54352
|
+
y: q.pageY
|
54353
|
+
}, a(q));
|
54354
54354
|
},
|
54355
|
-
onOpenAutoFocus: (
|
54356
|
-
n == null || n(
|
54355
|
+
onOpenAutoFocus: (q) => {
|
54356
|
+
n == null || n(q), v || q.preventDefault();
|
54357
54357
|
},
|
54358
|
-
onPointerDownOutside: (
|
54359
|
-
if (t == null || t(
|
54360
|
-
|
54358
|
+
onPointerDownOutside: (q) => {
|
54359
|
+
if (t == null || t(q), !d || q.defaultPrevented) {
|
54360
|
+
q.preventDefault();
|
54361
54361
|
return;
|
54362
54362
|
}
|
54363
54363
|
c.current && (c.current = !1);
|
54364
54364
|
},
|
54365
|
-
onFocusOutside: (
|
54365
|
+
onFocusOutside: (q) => {
|
54366
54366
|
if (!d) {
|
54367
|
-
|
54367
|
+
q.preventDefault();
|
54368
54368
|
return;
|
54369
54369
|
}
|
54370
54370
|
},
|
54371
|
-
onPointerMove: (
|
54372
|
-
if (S.current =
|
54373
|
-
const Z =
|
54371
|
+
onPointerMove: (q) => {
|
54372
|
+
if (S.current = q, b || (r.onPointerMove == null || r.onPointerMove.call(r, q), !L.current)) return;
|
54373
|
+
const Z = q.pageY - L.current.y, U = q.pageX - L.current.x, V = q.pointerType === "touch" ? 10 : 2;
|
54374
54374
|
R({
|
54375
|
-
x:
|
54375
|
+
x: U,
|
54376
54376
|
y: Z
|
54377
|
-
}, p, V) ? l(
|
54377
|
+
}, p, V) ? l(q) : (Math.abs(U) > V || Math.abs(Z) > V) && (L.current = null);
|
54378
54378
|
},
|
54379
|
-
onPointerUp: (
|
54380
|
-
r.onPointerUp == null || r.onPointerUp.call(r,
|
54379
|
+
onPointerUp: (q) => {
|
54380
|
+
r.onPointerUp == null || r.onPointerUp.call(r, q), L.current = null, D.current = !1, o(q);
|
54381
54381
|
},
|
54382
|
-
onPointerOut: (
|
54383
|
-
r.onPointerOut == null || r.onPointerOut.call(r,
|
54382
|
+
onPointerOut: (q) => {
|
54383
|
+
r.onPointerOut == null || r.onPointerOut.call(r, q), H(S.current);
|
54384
54384
|
},
|
54385
|
-
onContextMenu: (
|
54386
|
-
r.onContextMenu == null || r.onContextMenu.call(r,
|
54385
|
+
onContextMenu: (q) => {
|
54386
|
+
r.onContextMenu == null || r.onContextMenu.call(r, q), S.current && H(S.current);
|
54387
54387
|
}
|
54388
54388
|
});
|
54389
54389
|
});
|
@@ -76687,22 +76687,22 @@ function BQ(t) {
|
|
76687
76687
|
const uYe = nYe, fYe = iYe, dYe = sYe, hYe = oYe;
|
76688
76688
|
var Tp = '[cmdk-group=""]', $w = '[cmdk-group-items=""]', pYe = '[cmdk-group-heading=""]', ML = '[cmdk-item=""]', XR = `${ML}:not([aria-disabled="true"])`, DM = "cmdk-item-select", $1 = "data-value", mYe = (t, e, n) => dZe(t, e, n), FQ = E.createContext(void 0), tg = () => E.useContext(FQ), HQ = E.createContext(void 0), CL = () => E.useContext(HQ), VQ = E.createContext(void 0), _Q = E.forwardRef((t, e) => {
|
76689
76689
|
let n = ud(() => {
|
76690
|
-
var
|
76691
|
-
return { search: "", value: (pe = (
|
76690
|
+
var ie, pe;
|
76691
|
+
return { search: "", value: (pe = (ie = t.value) != null ? ie : t.defaultValue) != null ? pe : "", filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
|
76692
76692
|
}), r = ud(() => /* @__PURE__ */ new Set()), i = ud(() => /* @__PURE__ */ new Map()), s = ud(() => /* @__PURE__ */ new Map()), a = ud(() => /* @__PURE__ */ new Set()), o = qQ(t), { label: l, children: c, value: u, onValueChange: f, filter: d, shouldFilter: h, loop: p, disablePointerSelection: m = !1, vimBindings: g = !0, ...b } = t, k = E.useId(), v = E.useId(), w = E.useId(), x = E.useRef(null), M = SYe();
|
76693
76693
|
uf(() => {
|
76694
76694
|
if (u !== void 0) {
|
76695
|
-
let
|
76696
|
-
n.current.value =
|
76695
|
+
let ie = u.trim();
|
76696
|
+
n.current.value = ie, L.emit();
|
76697
76697
|
}
|
76698
76698
|
}, [u]), uf(() => {
|
76699
|
-
M(6,
|
76699
|
+
M(6, q);
|
76700
76700
|
}, []);
|
76701
|
-
let L = E.useMemo(() => ({ subscribe: (
|
76701
|
+
let L = E.useMemo(() => ({ subscribe: (ie) => (a.current.add(ie), () => a.current.delete(ie)), snapshot: () => n.current, setState: (ie, pe, oe) => {
|
76702
76702
|
var ge, J, be;
|
76703
|
-
if (!Object.is(n.current[
|
76704
|
-
if (n.current[
|
76705
|
-
else if (
|
76703
|
+
if (!Object.is(n.current[ie], pe)) {
|
76704
|
+
if (n.current[ie] = pe, ie === "search") H(), j(), M(1, R);
|
76705
|
+
else if (ie === "value" && (oe || M(5, q), ((ge = o.current) == null ? void 0 : ge.value) !== void 0)) {
|
76706
76706
|
let ke = pe ?? "";
|
76707
76707
|
(be = (J = o.current).onValueChange) == null || be.call(J, ke);
|
76708
76708
|
return;
|
@@ -76710,43 +76710,43 @@ var Tp = '[cmdk-group=""]', $w = '[cmdk-group-items=""]', pYe = '[cmdk-group-hea
|
|
76710
76710
|
L.emit();
|
76711
76711
|
}
|
76712
76712
|
}, emit: () => {
|
76713
|
-
a.current.forEach((
|
76714
|
-
} }), []), S = E.useMemo(() => ({ value: (
|
76713
|
+
a.current.forEach((ie) => ie());
|
76714
|
+
} }), []), S = E.useMemo(() => ({ value: (ie, pe, oe) => {
|
76715
76715
|
var ge;
|
76716
|
-
pe !== ((ge = s.current.get(
|
76716
|
+
pe !== ((ge = s.current.get(ie)) == null ? void 0 : ge.value) && (s.current.set(ie, { value: pe, keywords: oe }), n.current.filtered.items.set(ie, D(pe, oe)), M(2, () => {
|
76717
76717
|
j(), L.emit();
|
76718
76718
|
}));
|
76719
|
-
}, item: (
|
76719
|
+
}, item: (ie, pe) => (r.current.add(ie), pe && (i.current.has(pe) ? i.current.get(pe).add(ie) : i.current.set(pe, /* @__PURE__ */ new Set([ie]))), M(3, () => {
|
76720
76720
|
H(), j(), n.current.value || R(), L.emit();
|
76721
76721
|
}), () => {
|
76722
|
-
s.current.delete(
|
76722
|
+
s.current.delete(ie), r.current.delete(ie), n.current.filtered.items.delete(ie);
|
76723
76723
|
let oe = Z();
|
76724
76724
|
M(4, () => {
|
76725
|
-
H(), (oe == null ? void 0 : oe.getAttribute("id")) ===
|
76725
|
+
H(), (oe == null ? void 0 : oe.getAttribute("id")) === ie && R(), L.emit();
|
76726
76726
|
});
|
76727
|
-
}), group: (
|
76728
|
-
s.current.delete(
|
76727
|
+
}), group: (ie) => (i.current.has(ie) || i.current.set(ie, /* @__PURE__ */ new Set()), () => {
|
76728
|
+
s.current.delete(ie), i.current.delete(ie);
|
76729
76729
|
}), filter: () => o.current.shouldFilter, label: l || t["aria-label"], disablePointerSelection: m, listId: k, inputId: w, labelId: v, listInnerRef: x }), []);
|
76730
|
-
function D(
|
76730
|
+
function D(ie, pe) {
|
76731
76731
|
var oe, ge;
|
76732
76732
|
let J = (ge = (oe = o.current) == null ? void 0 : oe.filter) != null ? ge : mYe;
|
76733
|
-
return
|
76733
|
+
return ie ? J(ie, n.current.search, pe) : 0;
|
76734
76734
|
}
|
76735
76735
|
function j() {
|
76736
76736
|
if (!n.current.search || o.current.shouldFilter === !1) return;
|
76737
|
-
let
|
76737
|
+
let ie = n.current.filtered.items, pe = [];
|
76738
76738
|
n.current.filtered.groups.forEach((ge) => {
|
76739
76739
|
let J = i.current.get(ge), be = 0;
|
76740
76740
|
J.forEach((ke) => {
|
76741
|
-
let Re =
|
76741
|
+
let Re = ie.get(ke);
|
76742
76742
|
be = Math.max(Re, be);
|
76743
76743
|
}), pe.push([ge, be]);
|
76744
76744
|
});
|
76745
76745
|
let oe = x.current;
|
76746
|
-
|
76746
|
+
U().sort((ge, J) => {
|
76747
76747
|
var be, ke;
|
76748
76748
|
let Re = ge.getAttribute("id"), Pe = J.getAttribute("id");
|
76749
|
-
return ((be =
|
76749
|
+
return ((be = ie.get(Pe)) != null ? be : 0) - ((ke = ie.get(Re)) != null ? ke : 0);
|
76750
76750
|
}).forEach((ge) => {
|
76751
76751
|
let J = ge.closest($w);
|
76752
76752
|
J ? J.appendChild(ge.parentElement === J ? ge : ge.closest(`${$w} > *`)) : oe.appendChild(ge.parentElement === oe ? ge : ge.closest(`${$w} > *`));
|
@@ -76756,11 +76756,11 @@ var Tp = '[cmdk-group=""]', $w = '[cmdk-group-items=""]', pYe = '[cmdk-group-hea
|
|
76756
76756
|
});
|
76757
76757
|
}
|
76758
76758
|
function R() {
|
76759
|
-
let
|
76759
|
+
let ie = U().find((oe) => oe.getAttribute("aria-disabled") !== "true"), pe = ie == null ? void 0 : ie.getAttribute($1);
|
76760
76760
|
L.setState("value", pe || void 0);
|
76761
76761
|
}
|
76762
76762
|
function H() {
|
76763
|
-
var
|
76763
|
+
var ie, pe, oe, ge;
|
76764
76764
|
if (!n.current.search || o.current.shouldFilter === !1) {
|
76765
76765
|
n.current.filtered.count = r.current.size;
|
76766
76766
|
return;
|
@@ -76768,7 +76768,7 @@ var Tp = '[cmdk-group=""]', $w = '[cmdk-group-items=""]', pYe = '[cmdk-group-hea
|
|
76768
76768
|
n.current.filtered.groups = /* @__PURE__ */ new Set();
|
76769
76769
|
let J = 0;
|
76770
76770
|
for (let be of r.current) {
|
76771
|
-
let ke = (pe = (
|
76771
|
+
let ke = (pe = (ie = s.current.get(be)) == null ? void 0 : ie.value) != null ? pe : "", Re = (ge = (oe = s.current.get(be)) == null ? void 0 : oe.keywords) != null ? ge : [], Pe = D(ke, Re);
|
76772
76772
|
n.current.filtered.items.set(be, Pe), Pe > 0 && J++;
|
76773
76773
|
}
|
76774
76774
|
for (let [be, ke] of i.current) for (let Re of ke) if (n.current.filtered.items.get(Re) > 0) {
|
@@ -76777,70 +76777,70 @@ var Tp = '[cmdk-group=""]', $w = '[cmdk-group-items=""]', pYe = '[cmdk-group-hea
|
|
76777
76777
|
}
|
76778
76778
|
n.current.filtered.count = J;
|
76779
76779
|
}
|
76780
|
-
function
|
76781
|
-
var
|
76780
|
+
function q() {
|
76781
|
+
var ie, pe, oe;
|
76782
76782
|
let ge = Z();
|
76783
|
-
ge && (((
|
76783
|
+
ge && (((ie = ge.parentElement) == null ? void 0 : ie.firstChild) === ge && ((oe = (pe = ge.closest(Tp)) == null ? void 0 : pe.querySelector(pYe)) == null || oe.scrollIntoView({ block: "nearest" })), ge.scrollIntoView({ block: "nearest" }));
|
76784
76784
|
}
|
76785
76785
|
function Z() {
|
76786
|
-
var
|
76787
|
-
return (
|
76786
|
+
var ie;
|
76787
|
+
return (ie = x.current) == null ? void 0 : ie.querySelector(`${ML}[aria-selected="true"]`);
|
76788
76788
|
}
|
76789
|
-
function
|
76790
|
-
var
|
76791
|
-
return Array.from((
|
76789
|
+
function U() {
|
76790
|
+
var ie;
|
76791
|
+
return Array.from((ie = x.current) == null ? void 0 : ie.querySelectorAll(XR));
|
76792
76792
|
}
|
76793
|
-
function V(
|
76794
|
-
let pe =
|
76793
|
+
function V(ie) {
|
76794
|
+
let pe = U()[ie];
|
76795
76795
|
pe && L.setState("value", pe.getAttribute($1));
|
76796
76796
|
}
|
76797
|
-
function Y(
|
76797
|
+
function Y(ie) {
|
76798
76798
|
var pe;
|
76799
|
-
let oe = Z(), ge =
|
76800
|
-
(pe = o.current) != null && pe.loop && (be = J +
|
76799
|
+
let oe = Z(), ge = U(), J = ge.findIndex((ke) => ke === oe), be = ge[J + ie];
|
76800
|
+
(pe = o.current) != null && pe.loop && (be = J + ie < 0 ? ge[ge.length - 1] : J + ie === ge.length ? ge[0] : ge[J + ie]), be && L.setState("value", be.getAttribute($1));
|
76801
76801
|
}
|
76802
|
-
function ae(
|
76802
|
+
function ae(ie) {
|
76803
76803
|
let pe = Z(), oe = pe == null ? void 0 : pe.closest(Tp), ge;
|
76804
|
-
for (; oe && !ge; ) oe =
|
76805
|
-
ge ? L.setState("value", ge.getAttribute($1)) : Y(
|
76804
|
+
for (; oe && !ge; ) oe = ie > 0 ? CYe(oe, Tp) : AYe(oe, Tp), ge = oe == null ? void 0 : oe.querySelector(XR);
|
76805
|
+
ge ? L.setState("value", ge.getAttribute($1)) : Y(ie);
|
76806
76806
|
}
|
76807
|
-
let G = () => V(
|
76808
|
-
|
76809
|
-
}, de = (
|
76810
|
-
|
76807
|
+
let G = () => V(U().length - 1), re = (ie) => {
|
76808
|
+
ie.preventDefault(), ie.metaKey ? G() : ie.altKey ? ae(1) : Y(1);
|
76809
|
+
}, de = (ie) => {
|
76810
|
+
ie.preventDefault(), ie.metaKey ? V(0) : ie.altKey ? ae(-1) : Y(-1);
|
76811
76811
|
};
|
76812
|
-
return E.createElement(Ia.div, { ref: e, tabIndex: -1, ...b, "cmdk-root": "", onKeyDown: (
|
76812
|
+
return E.createElement(Ia.div, { ref: e, tabIndex: -1, ...b, "cmdk-root": "", onKeyDown: (ie) => {
|
76813
76813
|
var pe;
|
76814
|
-
if ((pe = b.onKeyDown) == null || pe.call(b,
|
76814
|
+
if ((pe = b.onKeyDown) == null || pe.call(b, ie), !ie.defaultPrevented) switch (ie.key) {
|
76815
76815
|
case "n":
|
76816
76816
|
case "j": {
|
76817
|
-
g &&
|
76817
|
+
g && ie.ctrlKey && re(ie);
|
76818
76818
|
break;
|
76819
76819
|
}
|
76820
76820
|
case "ArrowDown": {
|
76821
|
-
ie
|
76821
|
+
re(ie);
|
76822
76822
|
break;
|
76823
76823
|
}
|
76824
76824
|
case "p":
|
76825
76825
|
case "k": {
|
76826
|
-
g &&
|
76826
|
+
g && ie.ctrlKey && de(ie);
|
76827
76827
|
break;
|
76828
76828
|
}
|
76829
76829
|
case "ArrowUp": {
|
76830
|
-
de(
|
76830
|
+
de(ie);
|
76831
76831
|
break;
|
76832
76832
|
}
|
76833
76833
|
case "Home": {
|
76834
|
-
|
76834
|
+
ie.preventDefault(), V(0);
|
76835
76835
|
break;
|
76836
76836
|
}
|
76837
76837
|
case "End": {
|
76838
|
-
|
76838
|
+
ie.preventDefault(), G();
|
76839
76839
|
break;
|
76840
76840
|
}
|
76841
76841
|
case "Enter":
|
76842
|
-
if (!
|
76843
|
-
|
76842
|
+
if (!ie.nativeEvent.isComposing && ie.keyCode !== 229) {
|
76843
|
+
ie.preventDefault();
|
76844
76844
|
let oe = Z();
|
76845
76845
|
if (oe) {
|
76846
76846
|
let ge = new Event(DM);
|
@@ -76848,7 +76848,7 @@ var Tp = '[cmdk-group=""]', $w = '[cmdk-group-items=""]', pYe = '[cmdk-group-hea
|
|
76848
76848
|
}
|
76849
76849
|
}
|
76850
76850
|
}
|
76851
|
-
} }, E.createElement("label", { "cmdk-label": "", htmlFor: S.inputId, id: S.labelId, style: LYe }, l), jv(t, (
|
76851
|
+
} }, E.createElement("label", { "cmdk-label": "", htmlFor: S.inputId, id: S.labelId, style: LYe }, l), jv(t, (ie) => E.createElement(HQ.Provider, { value: L }, E.createElement(FQ.Provider, { value: S }, ie))));
|
76852
76852
|
}), yYe = E.forwardRef((t, e) => {
|
76853
76853
|
var n, r;
|
76854
76854
|
let i = E.useId(), s = E.useRef(null), a = E.useContext(VQ), o = tg(), l = qQ(t), c = (r = (n = l.current) == null ? void 0 : n.forceMount) != null ? r : a == null ? void 0 : a.forceMount;
|
@@ -77291,29 +77291,29 @@ var [FYe, HYe] = XQ(Iv, {
|
|
77291
77291
|
E.useEffect(() => {
|
77292
77292
|
const Z = m.viewport;
|
77293
77293
|
if (Z) {
|
77294
|
-
const
|
77294
|
+
const U = () => {
|
77295
77295
|
H(L.current), c == null || c();
|
77296
77296
|
}, V = () => {
|
77297
77297
|
const Y = (/* @__PURE__ */ new Date()).getTime() - M.current;
|
77298
77298
|
L.current = L.current - Y, window.clearTimeout(S.current), l == null || l();
|
77299
77299
|
};
|
77300
|
-
return Z.addEventListener(IM, V), Z.addEventListener(PM,
|
77301
|
-
Z.removeEventListener(IM, V), Z.removeEventListener(PM,
|
77300
|
+
return Z.addEventListener(IM, V), Z.addEventListener(PM, U), () => {
|
77301
|
+
Z.removeEventListener(IM, V), Z.removeEventListener(PM, U);
|
77302
77302
|
};
|
77303
77303
|
}
|
77304
77304
|
}, [m.viewport, x, l, c, H]), E.useEffect(() => {
|
77305
77305
|
s && !m.isClosePausedRef.current && H(x);
|
77306
77306
|
}, [s, x, m.isClosePausedRef, H]), E.useEffect(() => (D(), () => j()), [D, j]);
|
77307
|
-
const
|
77307
|
+
const q = E.useMemo(() => g ? cX(g) : null, [g]);
|
77308
77308
|
return m.viewport ? /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
|
77309
|
-
|
77309
|
+
q && /* @__PURE__ */ A.jsx(
|
77310
77310
|
_Ye,
|
77311
77311
|
{
|
77312
77312
|
__scopeToast: n,
|
77313
77313
|
role: "status",
|
77314
77314
|
"aria-live": r === "foreground" ? "assertive" : "polite",
|
77315
77315
|
"aria-atomic": !0,
|
77316
|
-
children:
|
77316
|
+
children: q
|
77317
77317
|
}
|
77318
77318
|
),
|
77319
77319
|
/* @__PURE__ */ A.jsx(FYe, { scope: n, onClose: R, children: p1.createPortal(
|
@@ -77344,18 +77344,18 @@ var [FYe, HYe] = XQ(Iv, {
|
|
77344
77344
|
}),
|
77345
77345
|
onPointerMove: st(t.onPointerMove, (Z) => {
|
77346
77346
|
if (!v.current) return;
|
77347
|
-
const
|
77347
|
+
const U = Z.clientX - v.current.x, V = Z.clientY - v.current.y, Y = !!w.current, ae = ["left", "right"].includes(m.swipeDirection), G = ["left", "up"].includes(m.swipeDirection) ? Math.min : Math.max, re = ae ? G(0, U) : 0, de = ae ? 0 : G(0, V), ie = Z.pointerType === "touch" ? 10 : 2, pe = { x: re, y: de }, oe = { originalEvent: Z, delta: pe };
|
77348
77348
|
Y ? (w.current = pe, r3(OYe, f, oe, {
|
77349
77349
|
discrete: !1
|
77350
|
-
})) : eO(pe, m.swipeDirection,
|
77350
|
+
})) : eO(pe, m.swipeDirection, ie) ? (w.current = pe, r3(RYe, u, oe, {
|
77351
77351
|
discrete: !1
|
77352
|
-
}), Z.target.setPointerCapture(Z.pointerId)) : (Math.abs(
|
77352
|
+
}), Z.target.setPointerCapture(Z.pointerId)) : (Math.abs(U) > ie || Math.abs(V) > ie) && (v.current = null);
|
77353
77353
|
}),
|
77354
77354
|
onPointerUp: st(t.onPointerUp, (Z) => {
|
77355
|
-
const
|
77356
|
-
if (V.hasPointerCapture(Z.pointerId) && V.releasePointerCapture(Z.pointerId), w.current = null, v.current = null,
|
77357
|
-
const Y = Z.currentTarget, ae = { originalEvent: Z, delta:
|
77358
|
-
eO(
|
77355
|
+
const U = w.current, V = Z.target;
|
77356
|
+
if (V.hasPointerCapture(Z.pointerId) && V.releasePointerCapture(Z.pointerId), w.current = null, v.current = null, U) {
|
77357
|
+
const Y = Z.currentTarget, ae = { originalEvent: Z, delta: U };
|
77358
|
+
eO(U, m.swipeDirection, m.swipeThreshold) ? r3(BYe, h, ae, {
|
77359
77359
|
discrete: !0
|
77360
77360
|
}) : r3(
|
77361
77361
|
zYe,
|
@@ -78411,8 +78411,8 @@ function RKe(t, e, n, r, i, s, a, o, l, c, u, f, d, h, p, m, g, b, k) {
|
|
78411
78411
|
mouse: 500,
|
78412
78412
|
touch: 600
|
78413
78413
|
}, H = p ? 43 : 25;
|
78414
|
-
let
|
78415
|
-
function
|
78414
|
+
let q = !1, Z = 0, U = 0, V = !1, Y = !1, ae = !1, G = !1;
|
78415
|
+
function re(Le) {
|
78416
78416
|
if (!k) return;
|
78417
78417
|
function Te(X) {
|
78418
78418
|
(Pv(k) || k(Le, X)) && J(X);
|
@@ -78425,7 +78425,7 @@ function RKe(t, e, n, r, i, s, a, o, l, c, u, f, d, h, p, m, g, b, k) {
|
|
78425
78425
|
function de() {
|
78426
78426
|
L.clear(), S.clear();
|
78427
78427
|
}
|
78428
|
-
function
|
78428
|
+
function ie() {
|
78429
78429
|
const Le = G ? n : e;
|
78430
78430
|
S.add(Le, "touchmove", be, M).add(Le, "touchend", ke).add(Le, "mousemove", be, M).add(Le, "mouseup", ke);
|
78431
78431
|
}
|
@@ -78442,11 +78442,11 @@ function RKe(t, e, n, r, i, s, a, o, l, c, u, f, d, h, p, m, g, b, k) {
|
|
78442
78442
|
}
|
78443
78443
|
function J(Le) {
|
78444
78444
|
const Te = FM(Le, r);
|
78445
|
-
G = Te, ae = p && Te && !Le.buttons &&
|
78445
|
+
G = Te, ae = p && Te && !Le.buttons && q, q = Am(i.get(), a.get()) >= 2, !(Te && Le.button !== 0) && (pe(Le.target) || (V = !0, s.pointerDown(Le), c.useFriction(0).useDuration(0), i.set(a), ie(), Z = s.readPoint(Le), U = s.readPoint(Le, v), d.emit("pointerDown")));
|
78446
78446
|
}
|
78447
78447
|
function be(Le) {
|
78448
78448
|
if (!FM(Le, r) && Le.touches.length >= 2) return ke(Le);
|
78449
|
-
const ce = s.readPoint(Le), X = s.readPoint(Le, v), Q = Am(ce, Z), ee = Am(X,
|
78449
|
+
const ce = s.readPoint(Le), X = s.readPoint(Le, v), Q = Am(ce, Z), ee = Am(X, U);
|
78450
78450
|
if (!Y && !G && (!Le.cancelable || (Y = Q > ee, !Y)))
|
78451
78451
|
return ke(Le);
|
78452
78452
|
const De = s.pointerMove(Le);
|
@@ -78463,7 +78463,7 @@ function RKe(t, e, n, r, i, s, a, o, l, c, u, f, d, h, p, m, g, b, k) {
|
|
78463
78463
|
return V;
|
78464
78464
|
}
|
78465
78465
|
return {
|
78466
|
-
init:
|
78466
|
+
init: re,
|
78467
78467
|
destroy: de,
|
78468
78468
|
pointerDown: Pe
|
78469
78469
|
};
|
@@ -78906,13 +78906,13 @@ function QKe(t, e, n, r, i, s, a, o, l) {
|
|
78906
78906
|
function g(L, S, D) {
|
78907
78907
|
const j = m(S);
|
78908
78908
|
return L.map((R) => {
|
78909
|
-
const H = D ? 0 : -n,
|
78909
|
+
const H = D ? 0 : -n, q = D ? n : 0, Z = D ? "end" : "start", U = j[R][Z];
|
78910
78910
|
return {
|
78911
78911
|
index: R,
|
78912
|
-
loopPoint:
|
78912
|
+
loopPoint: U,
|
78913
78913
|
slideLocation: Kp(-1),
|
78914
78914
|
translate: kX(t, l[R]),
|
78915
|
-
target: () => o.get() >
|
78915
|
+
target: () => o.get() > U ? H : q
|
78916
78916
|
};
|
78917
78917
|
});
|
78918
78918
|
}
|
@@ -79086,18 +79086,18 @@ function nJe(t, e, n, r, i, s, a) {
|
|
79086
79086
|
watchSlides: w,
|
79087
79087
|
watchDrag: x,
|
79088
79088
|
watchFocus: M
|
79089
|
-
} = s, L = 2, S = zKe(), D = S.measure(e), j = n.map(S.measure), R = PKe(l, c), H = R.measureSize(D),
|
79089
|
+
} = s, L = 2, S = zKe(), D = S.measure(e), j = n.map(S.measure), R = PKe(l, c), H = R.measureSize(D), q = BKe(H), Z = DKe(o, H), U = !f && !!k, V = f || !!k, {
|
79090
79090
|
slideSizes: Y,
|
79091
79091
|
slideSizesWithGaps: ae,
|
79092
79092
|
startGap: G,
|
79093
|
-
endGap:
|
79094
|
-
} = eJe(R, D, j, n, V, i), de = tJe(R, H, g, f, D, j, G,
|
79095
|
-
snaps:
|
79093
|
+
endGap: re
|
79094
|
+
} = eJe(R, D, j, n, V, i), de = tJe(R, H, g, f, D, j, G, re, L), {
|
79095
|
+
snaps: ie,
|
79096
79096
|
snapsAligned: pe
|
79097
|
-
} = GKe(R, Z, D, j, de), oe = -Ja(
|
79097
|
+
} = GKe(R, Z, D, j, de), oe = -Ja(ie) + Ja(ae), {
|
79098
79098
|
snapsContained: ge,
|
79099
79099
|
scrollContainLimit: J
|
79100
|
-
} = _Ke(H, oe, pe, k, L), be =
|
79100
|
+
} = _Ke(H, oe, pe, k, L), be = U ? ge : pe, {
|
79101
79101
|
limit: ke
|
79102
79102
|
} = qKe(oe, be, f), Re = wX(ng(be), u, f), Pe = Re.clone(), Ae = M4(n), Le = ({
|
79103
79103
|
dragHandler: Ke,
|
@@ -79130,7 +79130,7 @@ function nJe(t, e, n, r, i, s, a) {
|
|
79130
79130
|
cn.set(dn), rt && (Ue.loop(Ke.direction()), lt.loop()), zt.to(cn.get());
|
79131
79131
|
}, ce = IKe(r, i, () => Le(_e), (Ke) => Te(_e, Ke)), X = 0.68, Q = be[Re.get()], ee = Kp(Q), De = Kp(Q), W = Kp(Q), C = Kp(Q), P = HKe(ee, W, De, C, d, X), B = YKe(f, be, oe, ke, C), te = KKe(ce, Re, Pe, P, B, C, a), ue = WKe(ke), me = A4(), ze = $Ke(e, n, a, m), {
|
79132
79132
|
slideRegistry: Ze
|
79133
|
-
} = ZKe(
|
79133
|
+
} = ZKe(U, k, be, J, de, Ae), Ee = JKe(t, n, Ze, te, P, me, a, M), _e = {
|
79134
79134
|
ownerDocument: r,
|
79135
79135
|
ownerWindow: i,
|
79136
79136
|
eventHandler: a,
|
@@ -79138,9 +79138,9 @@ function nJe(t, e, n, r, i, s, a) {
|
|
79138
79138
|
slideRects: j,
|
79139
79139
|
animation: ce,
|
79140
79140
|
axis: R,
|
79141
|
-
dragHandler: RKe(R, t, r, i, C, OKe(R, i), ee, ce, te, P, B, Re, a,
|
79141
|
+
dragHandler: RKe(R, t, r, i, C, OKe(R, i), ee, ce, te, P, B, Re, a, q, h, p, b, X, x),
|
79142
79142
|
eventStore: me,
|
79143
|
-
percentOfView:
|
79143
|
+
percentOfView: q,
|
79144
79144
|
index: Re,
|
79145
79145
|
indexPrevious: Pe,
|
79146
79146
|
limit: ke,
|
@@ -79150,14 +79150,14 @@ function nJe(t, e, n, r, i, s, a) {
|
|
79150
79150
|
options: s,
|
79151
79151
|
resizeHandler: FKe(e, a, i, n, R, v, S),
|
79152
79152
|
scrollBody: P,
|
79153
|
-
scrollBounds: VKe(ke, W, C, P,
|
79153
|
+
scrollBounds: VKe(ke, W, C, P, q),
|
79154
79154
|
scrollLooper: UKe(oe, ke, W, [ee, W, De, C]),
|
79155
79155
|
scrollProgress: ue,
|
79156
79156
|
scrollSnapList: be.map(ue.get),
|
79157
79157
|
scrollSnaps: be,
|
79158
79158
|
scrollTarget: B,
|
79159
79159
|
scrollTo: te,
|
79160
|
-
slideLooper: QKe(R, H, oe, Y, ae,
|
79160
|
+
slideLooper: QKe(R, H, oe, Y, ae, ie, be, W, n),
|
79161
79161
|
slideFocus: Ee,
|
79162
79162
|
slidesHandler: XKe(e, a, w),
|
79163
79163
|
slidesInView: ze,
|
@@ -79298,13 +79298,13 @@ function j5(t, e, n) {
|
|
79298
79298
|
function H() {
|
79299
79299
|
b.dragHandler.destroy(), b.eventStore.clear(), b.translate.clear(), b.slideLooper.clear(), b.resizeHandler.destroy(), b.slidesHandler.destroy(), b.slidesInView.destroy(), b.animation.destroy(), a.destroy(), o.clear();
|
79300
79300
|
}
|
79301
|
-
function
|
79301
|
+
function q() {
|
79302
79302
|
g || (g = !0, o.clear(), H(), l.emit("destroy"), l.clear());
|
79303
79303
|
}
|
79304
79304
|
function Z(Ae, Le, Te) {
|
79305
79305
|
!v.active || g || (b.scrollBody.useBaseFriction().useDuration(Le === !0 ? 0 : v.duration), b.scrollTo.index(Ae, Te || 0));
|
79306
79306
|
}
|
79307
|
-
function
|
79307
|
+
function U(Ae) {
|
79308
79308
|
const Le = b.index.add(1).get();
|
79309
79309
|
Z(Le, Ae, -1);
|
79310
79310
|
}
|
@@ -79321,13 +79321,13 @@ function j5(t, e, n) {
|
|
79321
79321
|
function G() {
|
79322
79322
|
return b.scrollSnapList;
|
79323
79323
|
}
|
79324
|
-
function
|
79324
|
+
function re() {
|
79325
79325
|
return b.scrollProgress.get(b.location.get());
|
79326
79326
|
}
|
79327
79327
|
function de() {
|
79328
79328
|
return b.index.get();
|
79329
79329
|
}
|
79330
|
-
function
|
79330
|
+
function ie() {
|
79331
79331
|
return b.indexPrevious.get();
|
79332
79332
|
}
|
79333
79333
|
function pe() {
|
@@ -79356,17 +79356,17 @@ function j5(t, e, n) {
|
|
79356
79356
|
canScrollPrev: ae,
|
79357
79357
|
containerNode: ke,
|
79358
79358
|
internalEngine: J,
|
79359
|
-
destroy:
|
79359
|
+
destroy: q,
|
79360
79360
|
off: h,
|
79361
79361
|
on: d,
|
79362
79362
|
emit: p,
|
79363
79363
|
plugins: ge,
|
79364
|
-
previousScrollSnap:
|
79364
|
+
previousScrollSnap: ie,
|
79365
79365
|
reInit: m,
|
79366
79366
|
rootNode: be,
|
79367
|
-
scrollNext:
|
79367
|
+
scrollNext: U,
|
79368
79368
|
scrollPrev: V,
|
79369
|
-
scrollProgress:
|
79369
|
+
scrollProgress: re,
|
79370
79370
|
scrollSnapList: G,
|
79371
79371
|
scrollTo: Z,
|
79372
79372
|
selectedScrollSnap: de,
|
@@ -83299,15 +83299,15 @@ class gQe extends XX {
|
|
83299
83299
|
for (let v = 0; v < 16; v++, n += 4)
|
83300
83300
|
qc[v] = e.getUint32(n), Uc[v] = e.getUint32(n += 4);
|
83301
83301
|
for (let v = 16; v < 80; v++) {
|
83302
|
-
const w = qc[v - 15] | 0, x = Uc[v - 15] | 0, M = Jt.rotrSH(w, x, 1) ^ Jt.rotrSH(w, x, 8) ^ Jt.shrSH(w, x, 7), L = Jt.rotrSL(w, x, 1) ^ Jt.rotrSL(w, x, 8) ^ Jt.shrSL(w, x, 7), S = qc[v - 2] | 0, D = Uc[v - 2] | 0, j = Jt.rotrSH(S, D, 19) ^ Jt.rotrBH(S, D, 61) ^ Jt.shrSH(S, D, 6), R = Jt.rotrSL(S, D, 19) ^ Jt.rotrBL(S, D, 61) ^ Jt.shrSL(S, D, 6), H = Jt.add4L(L, R, Uc[v - 7], Uc[v - 16]),
|
83303
|
-
qc[v] =
|
83302
|
+
const w = qc[v - 15] | 0, x = Uc[v - 15] | 0, M = Jt.rotrSH(w, x, 1) ^ Jt.rotrSH(w, x, 8) ^ Jt.shrSH(w, x, 7), L = Jt.rotrSL(w, x, 1) ^ Jt.rotrSL(w, x, 8) ^ Jt.shrSL(w, x, 7), S = qc[v - 2] | 0, D = Uc[v - 2] | 0, j = Jt.rotrSH(S, D, 19) ^ Jt.rotrBH(S, D, 61) ^ Jt.shrSH(S, D, 6), R = Jt.rotrSL(S, D, 19) ^ Jt.rotrBL(S, D, 61) ^ Jt.shrSL(S, D, 6), H = Jt.add4L(L, R, Uc[v - 7], Uc[v - 16]), q = Jt.add4H(H, M, j, qc[v - 7], qc[v - 16]);
|
83303
|
+
qc[v] = q | 0, Uc[v] = H | 0;
|
83304
83304
|
}
|
83305
83305
|
let { Ah: r, Al: i, Bh: s, Bl: a, Ch: o, Cl: l, Dh: c, Dl: u, Eh: f, El: d, Fh: h, Fl: p, Gh: m, Gl: g, Hh: b, Hl: k } = this;
|
83306
83306
|
for (let v = 0; v < 80; v++) {
|
83307
|
-
const w = Jt.rotrSH(f, d, 14) ^ Jt.rotrSH(f, d, 18) ^ Jt.rotrBH(f, d, 41), x = Jt.rotrSL(f, d, 14) ^ Jt.rotrSL(f, d, 18) ^ Jt.rotrBL(f, d, 41), M = f & h ^ ~f & m, L = d & p ^ ~d & g, S = Jt.add5L(k, x, L, yQe[v], Uc[v]), D = Jt.add5H(S, b, w, M, mQe[v], qc[v]), j = S | 0, R = Jt.rotrSH(r, i, 28) ^ Jt.rotrBH(r, i, 34) ^ Jt.rotrBH(r, i, 39), H = Jt.rotrSL(r, i, 28) ^ Jt.rotrBL(r, i, 34) ^ Jt.rotrBL(r, i, 39),
|
83307
|
+
const w = Jt.rotrSH(f, d, 14) ^ Jt.rotrSH(f, d, 18) ^ Jt.rotrBH(f, d, 41), x = Jt.rotrSL(f, d, 14) ^ Jt.rotrSL(f, d, 18) ^ Jt.rotrBL(f, d, 41), M = f & h ^ ~f & m, L = d & p ^ ~d & g, S = Jt.add5L(k, x, L, yQe[v], Uc[v]), D = Jt.add5H(S, b, w, M, mQe[v], qc[v]), j = S | 0, R = Jt.rotrSH(r, i, 28) ^ Jt.rotrBH(r, i, 34) ^ Jt.rotrBH(r, i, 39), H = Jt.rotrSL(r, i, 28) ^ Jt.rotrBL(r, i, 34) ^ Jt.rotrBL(r, i, 39), q = r & s ^ r & o ^ s & o, Z = i & a ^ i & l ^ a & l;
|
83308
83308
|
b = m | 0, k = g | 0, m = h | 0, g = p | 0, h = f | 0, p = d | 0, { h: f, l: d } = Jt.add(c | 0, u | 0, D | 0, j | 0), c = o | 0, u = l | 0, o = s | 0, l = a | 0, s = r | 0, a = i | 0;
|
83309
|
-
const
|
83310
|
-
r = Jt.add3H(
|
83309
|
+
const U = Jt.add3L(j, H, Z);
|
83310
|
+
r = Jt.add3H(U, D, R, q), i = U | 0;
|
83311
83311
|
}
|
83312
83312
|
({ h: r, l: i } = Jt.add(this.Ah | 0, this.Al | 0, r | 0, i | 0)), { h: s, l: a } = Jt.add(this.Bh | 0, this.Bl | 0, s | 0, a | 0), { h: o, l } = Jt.add(this.Ch | 0, this.Cl | 0, o | 0, l | 0), { h: c, l: u } = Jt.add(this.Dh | 0, this.Dl | 0, c | 0, u | 0), { h: f, l: d } = Jt.add(this.Eh | 0, this.El | 0, f | 0, d | 0), { h, l: p } = Jt.add(this.Fh | 0, this.Fl | 0, h | 0, p | 0), { h: m, l: g } = Jt.add(this.Gh | 0, this.Gl | 0, m | 0, g | 0), { h: b, l: k } = Jt.add(this.Hh | 0, this.Hl | 0, b | 0, k | 0), this.set(r, i, s, a, o, l, c, u, f, d, h, p, m, g, b, k);
|
83313
83313
|
}
|
@@ -84158,10 +84158,10 @@ function nXe(t) {
|
|
84158
84158
|
const { px: g, py: b, pz: k } = this, { px: v, py: w, pz: x } = m;
|
84159
84159
|
let M = n.ZERO, L = n.ZERO, S = n.ZERO;
|
84160
84160
|
const D = e.a, j = n.mul(e.b, AO);
|
84161
|
-
let R = n.mul(g, v), H = n.mul(b, w),
|
84162
|
-
Z = n.mul(Z,
|
84161
|
+
let R = n.mul(g, v), H = n.mul(b, w), q = n.mul(k, x), Z = n.add(g, b), U = n.add(v, w);
|
84162
|
+
Z = n.mul(Z, U), U = n.add(R, H), Z = n.sub(Z, U), U = n.add(g, k);
|
84163
84163
|
let V = n.add(v, x);
|
84164
|
-
return
|
84164
|
+
return U = n.mul(U, V), V = n.add(R, q), U = n.sub(U, V), V = n.add(b, k), M = n.add(w, x), V = n.mul(V, M), M = n.add(H, q), V = n.sub(V, M), S = n.mul(D, U), M = n.mul(j, q), S = n.add(M, S), M = n.sub(H, S), S = n.add(H, S), L = n.mul(M, S), H = n.add(R, R), H = n.add(H, R), q = n.mul(D, q), U = n.mul(j, U), H = n.add(H, q), q = n.sub(R, q), q = n.mul(D, q), U = n.add(U, q), R = n.mul(H, U), L = n.add(L, R), R = n.mul(V, U), M = n.mul(Z, M), M = n.sub(M, R), R = n.mul(Z, H), S = n.mul(V, S), S = n.add(S, R), new f(M, L, S);
|
84165
84165
|
}
|
84166
84166
|
subtract(m) {
|
84167
84167
|
return this.add(m.negate());
|
@@ -84283,46 +84283,46 @@ function rXe(t) {
|
|
84283
84283
|
}
|
84284
84284
|
function iXe(t) {
|
84285
84285
|
const e = rXe(t), { Fp: n, n: r } = e, i = n.BYTES + 1, s = 2 * n.BYTES + 1;
|
84286
|
-
function a(
|
84287
|
-
return Kl <
|
84286
|
+
function a(U) {
|
84287
|
+
return Kl < U && U < n.ORDER;
|
84288
84288
|
}
|
84289
|
-
function o(
|
84290
|
-
return ns(
|
84289
|
+
function o(U) {
|
84290
|
+
return ns(U, r);
|
84291
84291
|
}
|
84292
|
-
function l(
|
84293
|
-
return JM(
|
84292
|
+
function l(U) {
|
84293
|
+
return JM(U, r);
|
84294
84294
|
}
|
84295
84295
|
const { ProjectivePoint: c, normPrivateKeyToScalar: u, weierstrassEquation: f, isWithinCurveOrder: d } = nXe({
|
84296
84296
|
...e,
|
84297
|
-
toBytes(
|
84298
|
-
const ae = V.toAffine(), G = n.toBytes(ae.x),
|
84299
|
-
return Y ?
|
84297
|
+
toBytes(U, V, Y) {
|
84298
|
+
const ae = V.toAffine(), G = n.toBytes(ae.x), re = E4;
|
84299
|
+
return Y ? re(Uint8Array.from([V.hasEvenY() ? 2 : 3]), G) : re(Uint8Array.from([4]), G, n.toBytes(ae.y));
|
84300
84300
|
},
|
84301
|
-
fromBytes(
|
84302
|
-
const V =
|
84301
|
+
fromBytes(U) {
|
84302
|
+
const V = U.length, Y = U[0], ae = U.subarray(1);
|
84303
84303
|
if (V === i && (Y === 2 || Y === 3)) {
|
84304
84304
|
const G = Y0(ae);
|
84305
84305
|
if (!a(G))
|
84306
84306
|
throw new Error("Point is not on curve");
|
84307
|
-
const
|
84308
|
-
let de = n.sqrt(
|
84309
|
-
const
|
84310
|
-
return (Y & 1) === 1 !==
|
84307
|
+
const re = f(G);
|
84308
|
+
let de = n.sqrt(re);
|
84309
|
+
const ie = (de & fa) === fa;
|
84310
|
+
return (Y & 1) === 1 !== ie && (de = n.neg(de)), { x: G, y: de };
|
84311
84311
|
} else if (V === s && Y === 4) {
|
84312
|
-
const G = n.fromBytes(ae.subarray(0, n.BYTES)),
|
84313
|
-
return { x: G, y:
|
84312
|
+
const G = n.fromBytes(ae.subarray(0, n.BYTES)), re = n.fromBytes(ae.subarray(n.BYTES, 2 * n.BYTES));
|
84313
|
+
return { x: G, y: re };
|
84314
84314
|
} else
|
84315
84315
|
throw new Error(`Point of length ${V} was invalid. Expected ${i} compressed bytes or ${s} uncompressed bytes`);
|
84316
84316
|
}
|
84317
|
-
}), h = (
|
84318
|
-
function p(
|
84317
|
+
}), h = (U) => f2(h2(U, e.nByteLength));
|
84318
|
+
function p(U) {
|
84319
84319
|
const V = r >> fa;
|
84320
|
-
return
|
84320
|
+
return U > V;
|
84321
84321
|
}
|
84322
|
-
function m(
|
84323
|
-
return p(
|
84322
|
+
function m(U) {
|
84323
|
+
return p(U) ? o(-U) : U;
|
84324
84324
|
}
|
84325
|
-
const g = (
|
84325
|
+
const g = (U, V, Y) => Y0(U.slice(V, Y));
|
84326
84326
|
class b {
|
84327
84327
|
constructor(V, Y, ae) {
|
84328
84328
|
this.r = V, this.s = Y, this.recovery = ae, this.assertValidity();
|
@@ -84348,13 +84348,13 @@ function iXe(t) {
|
|
84348
84348
|
return new b(this.r, this.s, V);
|
84349
84349
|
}
|
84350
84350
|
recoverPublicKey(V) {
|
84351
|
-
const { r: Y, s: ae, recovery: G } = this,
|
84351
|
+
const { r: Y, s: ae, recovery: G } = this, re = L(Ba("msgHash", V));
|
84352
84352
|
if (G == null || ![0, 1, 2, 3].includes(G))
|
84353
84353
|
throw new Error("recovery id invalid");
|
84354
84354
|
const de = G === 2 || G === 3 ? Y + e.n : Y;
|
84355
84355
|
if (de >= n.ORDER)
|
84356
84356
|
throw new Error("recovery id 2 or 3 invalid");
|
84357
|
-
const
|
84357
|
+
const ie = G & 1 ? "03" : "02", pe = c.fromHex(ie + h(de)), oe = l(de), ge = o(-re * oe), J = o(ae * oe), be = c.BASE.multiplyAndAddUnsafe(pe, ge, J);
|
84358
84358
|
if (!be)
|
84359
84359
|
throw new Error("point at infinify");
|
84360
84360
|
return be.assertValidity(), be;
|
@@ -84382,9 +84382,9 @@ function iXe(t) {
|
|
84382
84382
|
}
|
84383
84383
|
}
|
84384
84384
|
const k = {
|
84385
|
-
isValidPrivateKey(
|
84385
|
+
isValidPrivateKey(U) {
|
84386
84386
|
try {
|
84387
|
-
return u(
|
84387
|
+
return u(U), !0;
|
84388
84388
|
} catch {
|
84389
84389
|
return !1;
|
84390
84390
|
}
|
@@ -84395,8 +84395,8 @@ function iXe(t) {
|
|
84395
84395
|
* (groupLen + ceil(groupLen / 2)) with modulo bias being negligible.
|
84396
84396
|
*/
|
84397
84397
|
randomPrivateKey: () => {
|
84398
|
-
const
|
84399
|
-
return JQe(e.randomBytes(
|
84398
|
+
const U = w$(e.n);
|
84399
|
+
return JQe(e.randomBytes(U), e.n);
|
84400
84400
|
},
|
84401
84401
|
/**
|
84402
84402
|
* Creates precompute table for an arbitrary EC point. Makes point "cached".
|
@@ -84406,46 +84406,46 @@ function iXe(t) {
|
|
84406
84406
|
* const fast = utils.precompute(8, ProjectivePoint.fromHex(someonesPubKey));
|
84407
84407
|
* fast.multiply(privKey); // much faster ECDH now
|
84408
84408
|
*/
|
84409
|
-
precompute(
|
84410
|
-
return V._setWindowSize(
|
84409
|
+
precompute(U = 8, V = c.BASE) {
|
84410
|
+
return V._setWindowSize(U), V.multiply(BigInt(3)), V;
|
84411
84411
|
}
|
84412
84412
|
};
|
84413
|
-
function v(
|
84414
|
-
return c.fromPrivateKey(
|
84413
|
+
function v(U, V = !0) {
|
84414
|
+
return c.fromPrivateKey(U).toRawBytes(V);
|
84415
84415
|
}
|
84416
|
-
function w(
|
84417
|
-
const V =
|
84418
|
-
return V ? ae === i || ae === s : Y ? ae === 2 * i || ae === 2 * s :
|
84416
|
+
function w(U) {
|
84417
|
+
const V = U instanceof Uint8Array, Y = typeof U == "string", ae = (V || Y) && U.length;
|
84418
|
+
return V ? ae === i || ae === s : Y ? ae === 2 * i || ae === 2 * s : U instanceof c;
|
84419
84419
|
}
|
84420
|
-
function x(
|
84421
|
-
if (w(
|
84420
|
+
function x(U, V, Y = !0) {
|
84421
|
+
if (w(U))
|
84422
84422
|
throw new Error("first arg must be private key");
|
84423
84423
|
if (!w(V))
|
84424
84424
|
throw new Error("second arg must be public key");
|
84425
|
-
return c.fromHex(V).multiply(u(
|
84425
|
+
return c.fromHex(V).multiply(u(U)).toRawBytes(Y);
|
84426
84426
|
}
|
84427
|
-
const M = e.bits2int || function(
|
84428
|
-
const V = Y0(
|
84427
|
+
const M = e.bits2int || function(U) {
|
84428
|
+
const V = Y0(U), Y = U.length * 8 - e.nBitLength;
|
84429
84429
|
return Y > 0 ? V >> BigInt(Y) : V;
|
84430
|
-
}, L = e.bits2int_modN || function(
|
84431
|
-
return o(M(
|
84430
|
+
}, L = e.bits2int_modN || function(U) {
|
84431
|
+
return o(M(U));
|
84432
84432
|
}, S = WL(e.nBitLength);
|
84433
|
-
function D(
|
84434
|
-
if (typeof
|
84433
|
+
function D(U) {
|
84434
|
+
if (typeof U != "bigint")
|
84435
84435
|
throw new Error("bigint expected");
|
84436
|
-
if (!(Kl <=
|
84436
|
+
if (!(Kl <= U && U < S))
|
84437
84437
|
throw new Error(`bigint expected < 2^${e.nBitLength}`);
|
84438
|
-
return h2(
|
84438
|
+
return h2(U, e.nByteLength);
|
84439
84439
|
}
|
84440
|
-
function j(
|
84440
|
+
function j(U, V, Y = R) {
|
84441
84441
|
if (["recovered", "canonical"].some((Re) => Re in Y))
|
84442
84442
|
throw new Error("sign() legacy options not supported");
|
84443
84443
|
const { hash: ae, randomBytes: G } = e;
|
84444
|
-
let { lowS:
|
84445
|
-
|
84446
|
-
const pe = L(
|
84447
|
-
if (
|
84448
|
-
const Re =
|
84444
|
+
let { lowS: re, prehash: de, extraEntropy: ie } = Y;
|
84445
|
+
re == null && (re = !0), U = Ba("msgHash", U), de && (U = Ba("prehashed msgHash", ae(U)));
|
84446
|
+
const pe = L(U), oe = u(V), ge = [D(oe), D(pe)];
|
84447
|
+
if (ie != null) {
|
84448
|
+
const Re = ie === !0 ? G(n.BYTES) : ie;
|
84449
84449
|
ge.push(Ba("extraEntropy", Re));
|
84450
84450
|
}
|
84451
84451
|
const J = E4(...ge), be = pe;
|
@@ -84460,35 +84460,35 @@ function iXe(t) {
|
|
84460
84460
|
if (ce === Kl)
|
84461
84461
|
return;
|
84462
84462
|
let X = (Le.x === Te ? 0 : 2) | Number(Le.y & fa), Q = ce;
|
84463
|
-
return
|
84463
|
+
return re && p(ce) && (Q = m(ce), X ^= 1), new b(Te, Q, X);
|
84464
84464
|
}
|
84465
84465
|
return { seed: J, k2sig: ke };
|
84466
84466
|
}
|
84467
84467
|
const R = { lowS: e.lowS, prehash: !1 }, H = { lowS: e.lowS, prehash: !1 };
|
84468
|
-
function U
|
84469
|
-
const { seed: ae, k2sig: G } = j(
|
84470
|
-
return g$(
|
84468
|
+
function q(U, V, Y = R) {
|
84469
|
+
const { seed: ae, k2sig: G } = j(U, V, Y), re = e;
|
84470
|
+
return g$(re.hash.outputLen, re.nByteLength, re.hmac)(ae, G);
|
84471
84471
|
}
|
84472
84472
|
c.BASE._setWindowSize(8);
|
84473
|
-
function Z(
|
84473
|
+
function Z(U, V, Y, ae = H) {
|
84474
84474
|
var Le;
|
84475
|
-
const G =
|
84475
|
+
const G = U;
|
84476
84476
|
if (V = Ba("msgHash", V), Y = Ba("publicKey", Y), "strict" in ae)
|
84477
84477
|
throw new Error("options.strict was renamed to lowS");
|
84478
|
-
const { lowS:
|
84479
|
-
let
|
84478
|
+
const { lowS: re, prehash: de } = ae;
|
84479
|
+
let ie, pe;
|
84480
84480
|
try {
|
84481
84481
|
if (typeof G == "string" || G instanceof Uint8Array)
|
84482
84482
|
try {
|
84483
|
-
|
84483
|
+
ie = b.fromDER(G);
|
84484
84484
|
} catch (Te) {
|
84485
84485
|
if (!(Te instanceof d0.Err))
|
84486
84486
|
throw Te;
|
84487
|
-
|
84487
|
+
ie = b.fromCompact(G);
|
84488
84488
|
}
|
84489
84489
|
else if (typeof G == "object" && typeof G.r == "bigint" && typeof G.s == "bigint") {
|
84490
84490
|
const { r: Te, s: ce } = G;
|
84491
|
-
|
84491
|
+
ie = new b(Te, ce);
|
84492
84492
|
} else
|
84493
84493
|
throw new Error("PARSE");
|
84494
84494
|
pe = c.fromHex(Y);
|
@@ -84497,17 +84497,17 @@ function iXe(t) {
|
|
84497
84497
|
throw new Error("signature must be Signature instance, Uint8Array or hex string");
|
84498
84498
|
return !1;
|
84499
84499
|
}
|
84500
|
-
if (
|
84500
|
+
if (re && ie.hasHighS())
|
84501
84501
|
return !1;
|
84502
84502
|
de && (V = e.hash(V));
|
84503
|
-
const { r: oe, s: ge } =
|
84503
|
+
const { r: oe, s: ge } = ie, J = L(V), be = l(ge), ke = o(J * be), Re = o(oe * be), Pe = (Le = c.BASE.multiplyAndAddUnsafe(pe, ke, Re)) == null ? void 0 : Le.toAffine();
|
84504
84504
|
return Pe ? o(Pe.x) === oe : !1;
|
84505
84505
|
}
|
84506
84506
|
return {
|
84507
84507
|
CURVE: e,
|
84508
84508
|
getPublicKey: v,
|
84509
84509
|
getSharedSecret: x,
|
84510
|
-
sign:
|
84510
|
+
sign: q,
|
84511
84511
|
verify: Z,
|
84512
84512
|
ProjectivePoint: c,
|
84513
84513
|
Signature: b,
|
@@ -95865,13 +95865,13 @@ const Tee = async (t, e) => {
|
|
95865
95865
|
onComment: x,
|
95866
95866
|
setCommentDrawerOpen: M
|
95867
95867
|
}) => {
|
95868
|
-
const [L, S] = Oe(!0), [D, j] = Oe(""), [R, H] = Oe(""), [
|
95869
|
-
IL([de,
|
95870
|
-
G &&
|
95868
|
+
const [L, S] = Oe(!0), [D, j] = Oe(""), [R, H] = Oe(""), [q, Z] = Oe(null), U = Xe(null), V = Xe(null), [Y, ae] = Oe(""), [G, re] = Oe(!1), de = Xe(null), ie = Xe(null), pe = Xe(null), oe = e.isActive("comment"), ge = e.getAttributes("comment").resolved;
|
95869
|
+
IL([de, ie, pe], () => {
|
95870
|
+
G && re(!1);
|
95871
95871
|
});
|
95872
95872
|
const J = () => {
|
95873
95873
|
const { state: Ee } = e, { from: _e, to: Ke } = Ee.selection, zt = Ee.doc.textBetween(_e, Ke, " ");
|
95874
|
-
oe ? Ze && ae(Ze.selectedContent || "") : ae(zt),
|
95874
|
+
oe ? Ze && ae(Ze.selectedContent || "") : ae(zt), re(!0), w == null || w();
|
95875
95875
|
}, be = (Ee) => {
|
95876
95876
|
Ee.stopPropagation(), m ? J() : M == null || M(!0);
|
95877
95877
|
}, ke = (Ee, _e = "") => ({
|
@@ -96018,8 +96018,8 @@ const Tee = async (t, e) => {
|
|
96018
96018
|
toggleResolved: P,
|
96019
96019
|
setOpenReplyId: Z,
|
96020
96020
|
handleReplyKeyDown: W,
|
96021
|
-
openReplyId:
|
96022
|
-
commentsSectionRef:
|
96021
|
+
openReplyId: q,
|
96022
|
+
commentsSectionRef: U,
|
96023
96023
|
addComment: Re,
|
96024
96024
|
handleCommentSubmit: De,
|
96025
96025
|
comment: R,
|
@@ -96035,7 +96035,7 @@ const Tee = async (t, e) => {
|
|
96035
96035
|
onInlineCommentClick: be,
|
96036
96036
|
handleInlineComment: J,
|
96037
96037
|
portalRef: de,
|
96038
|
-
buttonRef:
|
96038
|
+
buttonRef: ie,
|
96039
96039
|
replySectionRef: V,
|
96040
96040
|
dropdownRef: pe,
|
96041
96041
|
activeComments: te,
|
@@ -96697,7 +96697,7 @@ const jee = (t) => t && (t.length > 20 ? t.slice(0, 5) + "..." + t.slice(t.lengt
|
|
96697
96697
|
/* @__PURE__ */ T.jsx(
|
96698
96698
|
I8,
|
96699
96699
|
{
|
96700
|
-
src: t.isEns ? oT :
|
96700
|
+
src: t.isEns ? oT : void 0,
|
96701
96701
|
size: "sm",
|
96702
96702
|
className: "min-w-6"
|
96703
96703
|
}
|
@@ -96759,7 +96759,9 @@ const jee = (t) => t && (t.length > 20 ? t.slice(0, 5) + "..." + t.slice(t.lengt
|
|
96759
96759
|
}
|
96760
96760
|
}, j = xt(() => {
|
96761
96761
|
if (!(i != null && i.length)) return null;
|
96762
|
-
let R = i
|
96762
|
+
let R = i.sort(
|
96763
|
+
(H, q) => (H.commentIndex || 0) - (q.commentIndex || 0)
|
96764
|
+
);
|
96763
96765
|
return !k && i.length > 3 && (R = i.slice(-2)), /* @__PURE__ */ T.jsxs("div", { className: "flex flex-col gap-3", children: [
|
96764
96766
|
i.length > 3 && !k && /* @__PURE__ */ T.jsxs(
|
96765
96767
|
"button",
|
@@ -96967,15 +96969,15 @@ const jee = (t) => t && (t.length > 20 ? t.slice(0, 5) + "..." + t.slice(t.lengt
|
|
96967
96969
|
unresolveComment: j,
|
96968
96970
|
deleteComment: R,
|
96969
96971
|
isDDocOwner: H,
|
96970
|
-
onComment:
|
96972
|
+
onComment: q
|
96971
96973
|
} = Rf(), Z = (oe) => {
|
96972
96974
|
const ge = oe.target.value;
|
96973
96975
|
o(ge), ge || (oe.target.style.height = "40px");
|
96974
|
-
},
|
96976
|
+
}, U = (oe) => {
|
96975
96977
|
const ge = oe.target.value;
|
96976
96978
|
c(ge);
|
96977
96979
|
}, V = () => {
|
96978
|
-
a.trim() && (m(a), h(!0),
|
96980
|
+
a.trim() && (m(a), h(!0), q == null || q());
|
96979
96981
|
}, Y = () => {
|
96980
96982
|
const oe = {
|
96981
96983
|
id: `reply-${Sm()}`,
|
@@ -96990,7 +96992,7 @@ const jee = (t) => t && (t.length > 20 ? t.slice(0, 5) + "..." + t.slice(t.lengt
|
|
96990
96992
|
oe.key === "Enter" && !oe.shiftKey && (oe.preventDefault(), !d && n ? Y() : V());
|
96991
96993
|
}, G = () => {
|
96992
96994
|
f((oe) => !oe);
|
96993
|
-
},
|
96995
|
+
}, re = () => {
|
96994
96996
|
R(t);
|
96995
96997
|
};
|
96996
96998
|
Be(() => {
|
@@ -97022,7 +97024,7 @@ const jee = (t) => t && (t.length > 20 ? t.slice(0, 5) + "..." + t.slice(t.lengt
|
|
97022
97024
|
children: "Send"
|
97023
97025
|
}
|
97024
97026
|
) })
|
97025
|
-
] }),
|
97027
|
+
] }), ie = () => /* @__PURE__ */ T.jsxs(T.Fragment, { children: [
|
97026
97028
|
/* @__PURE__ */ T.jsxs("div", { className: "flex justify-between items-center px-3 py-2 border-b border-[#E8EBEC]", children: [
|
97027
97029
|
/* @__PURE__ */ T.jsxs("p", { className: "text-sm font-medium color-text-default", children: [
|
97028
97030
|
"Highlighted Comments (",
|
@@ -97057,8 +97059,8 @@ const jee = (t) => t && (t.length > 20 ? t.slice(0, 5) + "..." + t.slice(t.lengt
|
|
97057
97059
|
"button",
|
97058
97060
|
{
|
97059
97061
|
className: "flex items-center text-[#FB3449] text-sm font-medium gap-2 rounded p-2 transition-all hover:bg-[#FFF1F2] w-full",
|
97060
|
-
onClick:
|
97061
|
-
onTouchEnd:
|
97062
|
+
onClick: re,
|
97063
|
+
onTouchEnd: re,
|
97062
97064
|
children: [
|
97063
97065
|
/* @__PURE__ */ T.jsx(Ye, { name: "Trash2", size: "sm", stroke: "#FB3449" }),
|
97064
97066
|
"Delete thread"
|
@@ -97118,7 +97120,7 @@ const jee = (t) => t && (t.length > 20 ? t.slice(0, 5) + "..." + t.slice(t.lengt
|
|
97118
97120
|
Qh,
|
97119
97121
|
{
|
97120
97122
|
value: l,
|
97121
|
-
onChange:
|
97123
|
+
onChange: U,
|
97122
97124
|
onKeyDown: ae,
|
97123
97125
|
className: "bg-white text-body-sm color-text-default min-h-[40px] max-h-[96px] overflow-y-auto no-scrollbar px-3 py-2 whitespace-pre-wrap",
|
97124
97126
|
placeholder: i ? "Available in a moment" : "Reply",
|
@@ -97145,7 +97147,7 @@ const jee = (t) => t && (t.length > 20 ? t.slice(0, 5) + "..." + t.slice(t.lengt
|
|
97145
97147
|
children: oe
|
97146
97148
|
}
|
97147
97149
|
);
|
97148
|
-
return n ? L ? pe(
|
97150
|
+
return n ? L ? pe(ie()) : null : L ? null : pe(de());
|
97149
97151
|
};
|
97150
97152
|
var K5 = { exports: {} };
|
97151
97153
|
/*!
|
@@ -97224,7 +97226,7 @@ K5.exports;
|
|
97224
97226
|
j && (D = S, S = null);
|
97225
97227
|
var R = D.navigator || {}, H = R.userAgent || "";
|
97226
97228
|
S || (S = H);
|
97227
|
-
var
|
97229
|
+
var q = j ? !!R.likeChrome : /\bChrome\b/.test(S) && !/internal|\n/i.test(f.toString()), Z = "Object", U = j ? Z : "ScriptBridgingProxyObject", V = j ? Z : "Environment", Y = j && D.java ? "JavaPackage" : b(D.java), ae = j ? Z : "RuntimeObject", G = /\bJava/.test(Y) && D.java, re = G && b(D.environment) == V, de = G ? "a" : "α", ie = G ? "b" : "β", pe = D.document || {}, oe = D.operamini || D.opera, ge = l.test(ge = j && oe ? oe["[[Class]]"] : b(oe)) ? ge : oe = null, J, be = S, ke = [], Re = null, Pe = S == H, Ae = Pe && oe && typeof oe.version == "function" && oe.version(), Le, Te = De([
|
97228
97230
|
{ label: "EdgeHTML", pattern: "Edge" },
|
97229
97231
|
"Trident",
|
97230
97232
|
{ label: "WebKit", pattern: "AppleWebKit" },
|
@@ -97414,7 +97416,7 @@ K5.exports;
|
|
97414
97416
|
"(?:Firefox|Minefield|NetFront)"
|
97415
97417
|
])), (J = Te == "iCab" && parseFloat(Ae) > 3 && "WebKit" || /\bOpera\b/.test(ce) && (/\bOPR\b/.test(S) ? "Blink" : "Presto") || /\b(?:Midori|Nook|Safari)\b/i.test(S) && !/^(?:Trident|EdgeHTML)$/.test(Te) && "WebKit" || !Te && /\bMSIE\b/i.test(S) && (ee == "Mac OS" ? "Tasman" : "Trident") || Te == "WebKit" && /\bPlayStation\b(?! Vita\b)/i.test(ce) && "NetFront") && (Te = [J]), ce == "IE" && (J = (/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(S) || 0)[1]) ? (ce += " Mobile", ee = "Windows Phone " + (/\+$/.test(J) ? J : J + ".x"), ke.unshift("desktop mode")) : /\bWPDesktop\b/i.test(S) ? (ce = "IE Mobile", ee = "Windows Phone 8.x", ke.unshift("desktop mode"), Ae || (Ae = (/\brv:([\d.]+)/.exec(S) || 0)[1])) : ce != "IE" && Te == "Trident" && (J = /\brv:([\d.]+)/.exec(S)) && (ce && ke.push("identifying as " + ce + (Ae ? " " + Ae : "")), ce = "IE", Ae = J[1]), Pe) {
|
97416
97418
|
if (k(D, "global"))
|
97417
|
-
if (G && (J = G.lang.System, be = J.getProperty("os.arch"), ee = ee || J.getProperty("os.name") + " " + J.getProperty("os.version")),
|
97419
|
+
if (G && (J = G.lang.System, be = J.getProperty("os.arch"), ee = ee || J.getProperty("os.name") + " " + J.getProperty("os.version")), re) {
|
97418
97420
|
try {
|
97419
97421
|
Ae = D.require("ringo/engine").version.join("."), ce = "RingoJS";
|
97420
97422
|
} catch {
|
@@ -97422,10 +97424,10 @@ K5.exports;
|
|
97422
97424
|
}
|
97423
97425
|
ce || (ce = "Rhino");
|
97424
97426
|
} else typeof D.process == "object" && !D.process.browser && (J = D.process) && (typeof J.versions == "object" && (typeof J.versions.electron == "string" ? (ke.push("Node " + J.versions.node), ce = "Electron", Ae = J.versions.electron) : typeof J.versions.nw == "string" && (ke.push("Chromium " + Ae, "Node " + J.versions.node), ce = "NW.js", Ae = J.versions.nw)), ce || (ce = "Node.js", be = J.arch, ee = J.platform, Ae = /[\d.]+/.exec(J.version), Ae = Ae ? Ae[0] : null));
|
97425
|
-
else b(J = D.runtime) ==
|
97427
|
+
else b(J = D.runtime) == U ? (ce = "Adobe AIR", ee = J.flash.system.Capabilities.os) : b(J = D.phantom) == ae ? (ce = "PhantomJS", Ae = (J = J.version || null) && J.major + "." + J.minor + "." + J.patch) : typeof pe.documentMode == "number" && (J = /\bTrident\/(\d+)/i.exec(S)) ? (Ae = [Ae, pe.documentMode], (J = +J[1] + 4) != Ae[1] && (ke.push("IE " + Ae[1] + " mode"), Te && (Te[1] = ""), Ae[1] = J), Ae = ce == "IE" ? String(Ae[1].toFixed(1)) : Ae[0]) : typeof pe.documentMode == "number" && /^(?:Chrome|Firefox)\b/.test(ce) && (ke.push("masking as " + ce + " " + Ae), ce = "IE", Ae = "11.0", Te = ["Trident"], ee = "Windows");
|
97426
97428
|
ee = ee && m(ee);
|
97427
97429
|
}
|
97428
|
-
if (Ae && (J = /(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Ae) || /(?:alpha|beta)(?: ?\d)?/i.exec(S + ";" + (Pe && R.appMinorVersion)) || /\bMinefield\b/i.test(S) && "a") && (Re = /b/i.test(J) ? "beta" : "alpha", Ae = Ae.replace(RegExp(J + "\\+?$"), "") + (Re == "beta" ?
|
97430
|
+
if (Ae && (J = /(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Ae) || /(?:alpha|beta)(?: ?\d)?/i.exec(S + ";" + (Pe && R.appMinorVersion)) || /\bMinefield\b/i.test(S) && "a") && (Re = /b/i.test(J) ? "beta" : "alpha", Ae = Ae.replace(RegExp(J + "\\+?$"), "") + (Re == "beta" ? ie : de) + (/\d+\+?/.exec(J) || "")), ce == "Fennec" || ce == "Firefox" && /\b(?:Android|Firefox OS|KaiOS)\b/.test(ee))
|
97429
97431
|
ce = "Firefox Mobile";
|
97430
97432
|
else if (ce == "Maxthon" && Ae)
|
97431
97433
|
Ae = Ae.replace(/\.[\d.]+/, ".x");
|
@@ -97440,7 +97442,7 @@ K5.exports;
|
|
97440
97442
|
ke.unshift("embedded");
|
97441
97443
|
}
|
97442
97444
|
else (/\bBlackBerry\b/.test(X) || /\bBB10\b/.test(S)) && (J = (RegExp(X.replace(/ +/g, " *") + "/([.\\d]+)", "i").exec(S) || 0)[1] || Ae) ? (J = [J, /BB10/.test(S)], ee = (J[1] ? (X = null, Q = "BlackBerry") : "Device Software") + " " + J[0], Ae = null) : this != g && X != "Wii" && (Pe && oe || /Opera/.test(ce) && /\b(?:MSIE|Firefox)\b/i.test(S) || ce == "Firefox" && /\bOS X (?:\d+\.){2,}/.test(ee) || ce == "IE" && (ee && !/^Win/.test(ee) && Ae > 5.5 || /\bWindows XP\b/.test(ee) && Ae > 8 || Ae == 8 && !/\bTrident\b/.test(S))) && !l.test(J = M.call(g, S.replace(l, "") + ";")) && J.name && (J = "ing as " + J.name + ((J = J.version) ? " " + J : ""), l.test(ce) ? (/\bIE\b/.test(J) && ee == "Mac OS" && (ee = null), J = "identify" + J) : (J = "mask" + J, ge ? ce = m(ge.replace(/([a-z])([A-Z])/g, "$1 $2")) : ce = "Opera", /\bIE\b/.test(J) && (ee = null), Pe || (Ae = null)), Te = ["Presto"], ke.push(J));
|
97443
|
-
(J = (/\bAppleWebKit\/([\d.]+\+?)/i.exec(S) || 0)[1]) && (J = [parseFloat(J.replace(/\.(\d)$/, ".0$1")), J], ce == "Safari" && J[1].slice(-1) == "+" ? (ce = "WebKit Nightly", Re = "alpha", Ae = J[1].slice(0, -1)) : (Ae == J[1] || Ae == (J[2] = (/\bSafari\/([\d.]+\+?)/i.exec(S) || 0)[1])) && (Ae = null), J[1] = (/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(S) || 0)[1], J[0] == 537.36 && J[2] == 537.36 && parseFloat(J[1]) >= 28 && Te == "WebKit" && (Te = ["Blink"]), !Pe || !
|
97445
|
+
(J = (/\bAppleWebKit\/([\d.]+\+?)/i.exec(S) || 0)[1]) && (J = [parseFloat(J.replace(/\.(\d)$/, ".0$1")), J], ce == "Safari" && J[1].slice(-1) == "+" ? (ce = "WebKit Nightly", Re = "alpha", Ae = J[1].slice(0, -1)) : (Ae == J[1] || Ae == (J[2] = (/\bSafari\/([\d.]+\+?)/i.exec(S) || 0)[1])) && (Ae = null), J[1] = (/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(S) || 0)[1], J[0] == 537.36 && J[2] == 537.36 && parseFloat(J[1]) >= 28 && Te == "WebKit" && (Te = ["Blink"]), !Pe || !q && !J[1] ? (Te && (Te[1] = "like Safari"), J = (J = J[0], J < 400 ? 1 : J < 500 ? 2 : J < 526 ? 3 : J < 533 ? 4 : J < 534 ? "4+" : J < 535 ? 5 : J < 537 ? 6 : J < 538 ? 7 : J < 601 ? 8 : J < 602 ? 9 : J < 604 ? 10 : J < 606 ? 11 : J < 608 ? 12 : "12")) : (Te && (Te[1] = "like Chrome"), J = J[1] || (J = J[0], J < 530 ? 1 : J < 532 ? 2 : J < 532.05 ? 3 : J < 533 ? 4 : J < 534.03 ? 5 : J < 534.07 ? 6 : J < 534.1 ? 7 : J < 534.13 ? 8 : J < 534.16 ? 9 : J < 534.24 ? 10 : J < 534.3 ? 11 : J < 535.01 ? 12 : J < 535.02 ? "13+" : J < 535.07 ? 15 : J < 535.11 ? 16 : J < 535.19 ? 17 : J < 536.05 ? 18 : J < 536.1 ? 19 : J < 537.01 ? 20 : J < 537.11 ? "21+" : J < 537.13 ? 23 : J < 537.18 ? 24 : J < 537.24 ? 25 : J < 537.36 ? 26 : Te != "Blink" ? "27" : "28")), Te && (Te[1] += " " + (J += typeof J == "number" ? ".x" : /[.+]/.test(J) ? "" : "+")), ce == "Safari" && (!Ae || parseInt(Ae) > 45) ? Ae = J : ce == "Chrome" && /\bHeadlessChrome/i.test(S) && ke.unshift("headless")), ce == "Opera" && (J = /\bzbov|zvav$/.exec(ee)) ? (ce += " ", ke.unshift("desktop mode"), J == "zvav" ? (ce += "Mini", Ae = null) : ce += "Mobile", ee = ee.replace(RegExp(" *" + J + "$"), "")) : ce == "Safari" && /\bChrome\b/.exec(Te && Te[1]) ? (ke.unshift("desktop mode"), ce = "Chrome Mobile", Ae = null, /\bOS X\b/.test(ee) ? (Q = "Apple", ee = "iOS 4.3+") : ee = null) : /\bSRWare Iron\b/.test(ce) && !Ae && (Ae = te("Chrome")), Ae && Ae.indexOf(J = /[\d.]+$/.exec(ee)) == 0 && S.indexOf("/" + J + "-") > -1 && (ee = x(ee.replace(J, ""))), ee && ee.indexOf(ce) != -1 && !RegExp(ce + " OS").test(ee) && (ee = ee.replace(RegExp(" *" + v(ce) + " *"), "")), Te && !/\b(?:Avant|Nook)\b/.test(ce) && (/Browser|Lunascape|Maxthon/.test(ce) || ce != "Safari" && /^iOS/.test(ee) && /\bSafari\b/.test(Te[1]) || /^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(ce) && Te[1]) && (J = Te[Te.length - 1]) && ke.push(J), ke.length && (ke = ["(" + ke.join("; ") + ")"]), Q && X && X.indexOf(Q) < 0 && ke.push("on " + Q), X && ke.push((/^on /.test(ke[ke.length - 1]) ? "" : "on ") + X), ee && (J = / ([\d.+]+)$/.exec(ee), Le = J && ee.charAt(ee.length - J[0].length - 1) == "/", ee = {
|
97444
97446
|
architecture: 32,
|
97445
97447
|
family: J && !Le ? ee.replace(J[0], "") : ee,
|
97446
97448
|
version: J ? J[1] : null,
|
@@ -97640,7 +97642,7 @@ const Ree = /* @__PURE__ */ z2(Cnt), b3 = () => {
|
|
97640
97642
|
},
|
97641
97643
|
icon: "MessageSquarePlus"
|
97642
97644
|
}
|
97643
|
-
],
|
97645
|
+
], q = () => {
|
97644
97646
|
if (!(c || l)) {
|
97645
97647
|
s(!0);
|
97646
97648
|
return;
|
@@ -97648,8 +97650,8 @@ const Ree = /* @__PURE__ */ z2(Cnt), b3 = () => {
|
|
97648
97650
|
const { state: V } = e;
|
97649
97651
|
if (!V) return;
|
97650
97652
|
const { from: Y, to: ae } = V.selection, G = V.doc.textBetween(Y, ae, " ");
|
97651
|
-
G && (o((
|
97652
|
-
...
|
97653
|
+
G && (o((re) => ({
|
97654
|
+
...re,
|
97653
97655
|
highlightedTextContent: G
|
97654
97656
|
})), setTimeout(() => {
|
97655
97657
|
e.chain().setHighlight({ color: "#DDFBDF" }).run();
|
@@ -97704,7 +97706,7 @@ const Ree = /* @__PURE__ */ z2(Cnt), b3 = () => {
|
|
97704
97706
|
default:
|
97705
97707
|
return null;
|
97706
97708
|
}
|
97707
|
-
},
|
97709
|
+
}, U = /* @__PURE__ */ T.jsxs(Me.Fragment, { children: [
|
97708
97710
|
/* @__PURE__ */ T.jsx(
|
97709
97711
|
Hr,
|
97710
97712
|
{
|
@@ -97756,7 +97758,7 @@ const Ree = /* @__PURE__ */ z2(Cnt), b3 = () => {
|
|
97756
97758
|
"relative",
|
97757
97759
|
h ? "left-1/2 translate-x-1/2" : ""
|
97758
97760
|
),
|
97759
|
-
children:
|
97761
|
+
children: U
|
97760
97762
|
}
|
97761
97763
|
) : /* @__PURE__ */ T.jsx(Me.Fragment, { children: i ? /* @__PURE__ */ T.jsx(
|
97762
97764
|
rs,
|
@@ -97875,7 +97877,7 @@ const Ree = /* @__PURE__ */ z2(Cnt), b3 = () => {
|
|
97875
97877
|
icon: V.icon,
|
97876
97878
|
variant: "ghost",
|
97877
97879
|
size: "sm",
|
97878
|
-
onClick: () => V.name === "InlineComment" ?
|
97880
|
+
onClick: () => V.name === "InlineComment" ? q() : null
|
97879
97881
|
}
|
97880
97882
|
),
|
97881
97883
|
content: Z(V)
|
@@ -98256,7 +98258,7 @@ const Vee = {
|
|
98256
98258
|
onMarkdownExport: o,
|
98257
98259
|
onMarkdownImport: l
|
98258
98260
|
}) => {
|
98259
|
-
var R, H,
|
98261
|
+
var R, H, q, Z, U;
|
98260
98262
|
const {
|
98261
98263
|
toolRef: c,
|
98262
98264
|
setToolVisibility: u,
|
@@ -98447,7 +98449,7 @@ const Vee = {
|
|
98447
98449
|
S((V) => !V), k(!1);
|
98448
98450
|
},
|
98449
98451
|
children: [
|
98450
|
-
/* @__PURE__ */ T.jsx("span", { className: "text-body-sm line-clamp-1 w-fit", children: ((
|
98452
|
+
/* @__PURE__ */ T.jsx("span", { className: "text-body-sm line-clamp-1 w-fit", children: ((q = M.find((V) => V.value === n)) == null ? void 0 : q.title) || "100%" }),
|
98451
98453
|
/* @__PURE__ */ T.jsx(Ye, { name: "ChevronDown", size: "sm" })
|
98452
98454
|
]
|
98453
98455
|
}
|
@@ -98485,9 +98487,9 @@ const Vee = {
|
|
98485
98487
|
(V) => t == null ? void 0 : t.isActive("textStyle", { fontFamily: V.value })
|
98486
98488
|
)) == null ? void 0 : Z.value
|
98487
98489
|
},
|
98488
|
-
children: ((
|
98490
|
+
children: ((U = VM.find(
|
98489
98491
|
(V) => t == null ? void 0 : t.isActive("textStyle", { fontFamily: V.value })
|
98490
|
-
)) == null ? void 0 :
|
98492
|
+
)) == null ? void 0 : U.title) || "Font"
|
98491
98493
|
}
|
98492
98494
|
),
|
98493
98495
|
/* @__PURE__ */ T.jsx(Ye, { name: "ChevronDown", size: "sm", className: "min-w-fit" })
|
@@ -104929,14 +104931,14 @@ var ene = { exports: {} };
|
|
104929
104931
|
return G(this, P, B);
|
104930
104932
|
case "latin1":
|
104931
104933
|
case "binary":
|
104932
|
-
return
|
104934
|
+
return re(this, P, B);
|
104933
104935
|
case "base64":
|
104934
104936
|
return V(this, P, B);
|
104935
104937
|
case "ucs2":
|
104936
104938
|
case "ucs-2":
|
104937
104939
|
case "utf16le":
|
104938
104940
|
case "utf-16le":
|
104939
|
-
return
|
104941
|
+
return ie(this, P, B);
|
104940
104942
|
default:
|
104941
104943
|
if (te) throw new TypeError("Unknown encoding: " + C);
|
104942
104944
|
C = (C + "").toLowerCase(), te = !0;
|
@@ -104998,13 +105000,13 @@ var ene = { exports: {} };
|
|
104998
105000
|
function H(C, P, B, te) {
|
104999
105001
|
return ce(Ae(P), C, B, te);
|
105000
105002
|
}
|
105001
|
-
function
|
105003
|
+
function q(C, P, B, te) {
|
105002
105004
|
return H(C, P, B, te);
|
105003
105005
|
}
|
105004
105006
|
function Z(C, P, B, te) {
|
105005
105007
|
return ce(Te(P), C, B, te);
|
105006
105008
|
}
|
105007
|
-
function
|
105009
|
+
function U(C, P, B, te) {
|
105008
105010
|
return ce(Le(P, C.length - B), C, B, te);
|
105009
105011
|
}
|
105010
105012
|
function V(C, P, B) {
|
@@ -105034,7 +105036,7 @@ var ene = { exports: {} };
|
|
105034
105036
|
for (var ue = P; ue < B; ++ue) te += l(127 & C[ue]);
|
105035
105037
|
return te;
|
105036
105038
|
}
|
105037
|
-
function
|
105039
|
+
function re(C, P, B) {
|
105038
105040
|
var te = "";
|
105039
105041
|
B = c(C.length, B);
|
105040
105042
|
for (var ue = P; ue < B; ++ue) te += l(C[ue]);
|
@@ -105046,7 +105048,7 @@ var ene = { exports: {} };
|
|
105046
105048
|
for (var ue = "", me = P; me < B; ++me) ue += Re(C[me]);
|
105047
105049
|
return ue;
|
105048
105050
|
}
|
105049
|
-
function
|
105051
|
+
function ie(C, P, B) {
|
105050
105052
|
for (var te = C.slice(P, B), ue = "", me = 0; me < te.length; me += 2) ue += l(te[me] + 256 * te[me + 1]);
|
105051
105053
|
return ue;
|
105052
105054
|
}
|
@@ -105258,14 +105260,14 @@ var ene = { exports: {} };
|
|
105258
105260
|
return H(this, C, P, B);
|
105259
105261
|
case "latin1":
|
105260
105262
|
case "binary":
|
105261
|
-
return
|
105263
|
+
return q(this, C, P, B);
|
105262
105264
|
case "base64":
|
105263
105265
|
return Z(this, C, P, B);
|
105264
105266
|
case "ucs2":
|
105265
105267
|
case "ucs-2":
|
105266
105268
|
case "utf16le":
|
105267
105269
|
case "utf-16le":
|
105268
|
-
return
|
105270
|
+
return U(this, C, P, B);
|
105269
105271
|
default:
|
105270
105272
|
if (me) throw new TypeError("Unknown encoding: " + te);
|
105271
105273
|
te = ("" + te).toLowerCase(), me = !0;
|
@@ -105556,10 +105558,10 @@ var ene = { exports: {} };
|
|
105556
105558
|
function u(j) {
|
105557
105559
|
return j._maxListeners === void 0 ? l.defaultMaxListeners : j._maxListeners;
|
105558
105560
|
}
|
105559
|
-
function f(j, R, H,
|
105560
|
-
var Z,
|
105561
|
-
if (c(H),
|
105562
|
-
else if (typeof V == "function" ? V =
|
105561
|
+
function f(j, R, H, q) {
|
105562
|
+
var Z, U, V;
|
105563
|
+
if (c(H), U = j._events, U === void 0 ? (U = j._events = /* @__PURE__ */ Object.create(null), j._eventsCount = 0) : (U.newListener !== void 0 && (j.emit("newListener", R, H.listener ? H.listener : H), U = j._events), V = U[R]), V === void 0) V = U[R] = H, ++j._eventsCount;
|
105564
|
+
else if (typeof V == "function" ? V = U[R] = q ? [H, V] : [V, H] : q ? V.unshift(H) : V.push(H), Z = u(j), 0 < Z && V.length > Z && !V.warned) {
|
105563
105565
|
V.warned = !0;
|
105564
105566
|
var Y = new Error("Possible EventEmitter memory leak detected. " + V.length + " " + (R + " listeners added. Use emitter.setMaxListeners() to increase limit"));
|
105565
105567
|
Y.name = "MaxListenersExceededWarning", Y.emitter = j, Y.type = R, Y.count = V.length, o(Y);
|
@@ -105570,13 +105572,13 @@ var ene = { exports: {} };
|
|
105570
105572
|
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);
|
105571
105573
|
}
|
105572
105574
|
function h(j, R, H) {
|
105573
|
-
var
|
105574
|
-
return Z.listener = H,
|
105575
|
+
var q = { fired: !1, wrapFn: void 0, target: j, type: R, listener: H }, Z = d.bind(q);
|
105576
|
+
return Z.listener = H, q.wrapFn = Z, Z;
|
105575
105577
|
}
|
105576
105578
|
function p(j, R, H) {
|
105577
|
-
var
|
105578
|
-
if (
|
105579
|
-
var Z =
|
105579
|
+
var q = j._events;
|
105580
|
+
if (q === void 0) return [];
|
105581
|
+
var Z = q[R];
|
105580
105582
|
return Z === void 0 ? [] : typeof Z == "function" ? H ? [Z.listener || Z] : [Z] : H ? k(Z) : g(Z, Z.length);
|
105581
105583
|
}
|
105582
105584
|
function m(j) {
|
@@ -105589,7 +105591,7 @@ var ene = { exports: {} };
|
|
105589
105591
|
return 0;
|
105590
105592
|
}
|
105591
105593
|
function g(j, R) {
|
105592
|
-
for (var H = Array(R),
|
105594
|
+
for (var H = Array(R), q = 0; q < R; ++q) H[q] = j[q];
|
105593
105595
|
return H;
|
105594
105596
|
}
|
105595
105597
|
function b(j, R) {
|
@@ -105603,10 +105605,10 @@ var ene = { exports: {} };
|
|
105603
105605
|
function v(j, R, H) {
|
105604
105606
|
typeof j.on == "function" && w(j, "error", R, H);
|
105605
105607
|
}
|
105606
|
-
function w(j, R, H,
|
105607
|
-
if (typeof j.on == "function")
|
105608
|
-
else if (typeof j.addEventListener == "function") j.addEventListener(R, function Z(
|
105609
|
-
|
105608
|
+
function w(j, R, H, q) {
|
105609
|
+
if (typeof j.on == "function") q.once ? j.once(R, H) : j.on(R, H);
|
105610
|
+
else if (typeof j.addEventListener == "function") j.addEventListener(R, function Z(U) {
|
105611
|
+
q.once && j.removeEventListener(R, Z), H(U);
|
105610
105612
|
});
|
105611
105613
|
else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof j);
|
105612
105614
|
}
|
@@ -105622,14 +105624,14 @@ var ene = { exports: {} };
|
|
105622
105624
|
return j !== j;
|
105623
105625
|
};
|
105624
105626
|
a.exports = l, a.exports.once = function(j, R) {
|
105625
|
-
return new Promise(function(H,
|
105627
|
+
return new Promise(function(H, q) {
|
105626
105628
|
function Z(V) {
|
105627
|
-
j.removeListener(R,
|
105629
|
+
j.removeListener(R, U), q(V);
|
105628
105630
|
}
|
105629
|
-
function
|
105631
|
+
function U() {
|
105630
105632
|
typeof j.removeListener == "function" && j.removeListener("error", Z), H([].slice.call(arguments));
|
105631
105633
|
}
|
105632
|
-
w(j, R,
|
105634
|
+
w(j, R, U, { once: !0 }), R !== "error" && v(j, Z, { once: !0 });
|
105633
105635
|
});
|
105634
105636
|
}, l.EventEmitter = l, l.prototype._events = void 0, l.prototype._eventsCount = 0, l.prototype._maxListeners = void 0;
|
105635
105637
|
var D = 10;
|
@@ -105647,14 +105649,14 @@ var ene = { exports: {} };
|
|
105647
105649
|
return u(this);
|
105648
105650
|
}, l.prototype.emit = function(j) {
|
105649
105651
|
for (var R = [], H = 1; H < arguments.length; H++) R.push(arguments[H]);
|
105650
|
-
var
|
105651
|
-
if (Z !== void 0)
|
105652
|
-
else if (!
|
105653
|
-
if (
|
105654
|
-
var
|
105655
|
-
if (0 < R.length && (
|
105656
|
-
var V = new Error("Unhandled error." + (
|
105657
|
-
throw V.context =
|
105652
|
+
var q = j === "error", Z = this._events;
|
105653
|
+
if (Z !== void 0) q = q && Z.error === void 0;
|
105654
|
+
else if (!q) return !1;
|
105655
|
+
if (q) {
|
105656
|
+
var U;
|
105657
|
+
if (0 < R.length && (U = R[0]), U instanceof Error) throw U;
|
105658
|
+
var V = new Error("Unhandled error." + (U ? " (" + U.message + ")" : ""));
|
105659
|
+
throw V.context = U, V;
|
105658
105660
|
}
|
105659
105661
|
var Y = Z[j];
|
105660
105662
|
if (Y === void 0) return !1;
|
@@ -105670,30 +105672,30 @@ var ene = { exports: {} };
|
|
105670
105672
|
}, l.prototype.prependOnceListener = function(j, R) {
|
105671
105673
|
return c(R), this.prependListener(j, h(this, j, R)), this;
|
105672
105674
|
}, l.prototype.removeListener = function(j, R) {
|
105673
|
-
var H,
|
105674
|
-
if (c(R),
|
105675
|
-
if (H =
|
105676
|
-
if (H === R || H.listener === R) --this._eventsCount == 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete
|
105675
|
+
var H, q, Z, U, V;
|
105676
|
+
if (c(R), q = this._events, q === void 0) return this;
|
105677
|
+
if (H = q[j], H === void 0) return this;
|
105678
|
+
if (H === R || H.listener === R) --this._eventsCount == 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete q[j], q.removeListener && this.emit("removeListener", j, H.listener || R));
|
105677
105679
|
else if (typeof H != "function") {
|
105678
|
-
for (Z = -1,
|
105679
|
-
V = H[
|
105680
|
+
for (Z = -1, U = H.length - 1; 0 <= U; U--) if (H[U] === R || H[U].listener === R) {
|
105681
|
+
V = H[U].listener, Z = U;
|
105680
105682
|
break;
|
105681
105683
|
}
|
105682
105684
|
if (0 > Z) return this;
|
105683
|
-
Z === 0 ? H.shift() : b(H, Z), H.length === 1 && (
|
105685
|
+
Z === 0 ? H.shift() : b(H, Z), H.length === 1 && (q[j] = H[0]), q.removeListener !== void 0 && this.emit("removeListener", j, V || R);
|
105684
105686
|
}
|
105685
105687
|
return this;
|
105686
105688
|
}, l.prototype.off = l.prototype.removeListener, l.prototype.removeAllListeners = function(j) {
|
105687
|
-
var R, H,
|
105689
|
+
var R, H, q;
|
105688
105690
|
if (H = this._events, H === void 0) return this;
|
105689
105691
|
if (H.removeListener === void 0) return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : H[j] !== void 0 && (--this._eventsCount == 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete H[j]), this;
|
105690
105692
|
if (arguments.length === 0) {
|
105691
|
-
var Z,
|
105692
|
-
for (
|
105693
|
+
var Z, U = Object.keys(H);
|
105694
|
+
for (q = 0; q < U.length; ++q) Z = U[q], Z !== "removeListener" && this.removeAllListeners(Z);
|
105693
105695
|
return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
|
105694
105696
|
}
|
105695
105697
|
if (R = H[j], typeof R == "function") this.removeListener(j, R);
|
105696
|
-
else if (R !== void 0) for (
|
105698
|
+
else if (R !== void 0) for (q = R.length - 1; 0 <= q; q--) this.removeListener(j, R[q]);
|
105697
105699
|
return this;
|
105698
105700
|
}, l.prototype.listeners = function(j) {
|
105699
105701
|
return p(this, j, !0);
|
@@ -105981,10 +105983,10 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
105981
105983
|
(function(o, l) {
|
105982
105984
|
(function() {
|
105983
105985
|
function c(W) {
|
105984
|
-
return
|
105986
|
+
return ie.from(W);
|
105985
105987
|
}
|
105986
105988
|
function u(W) {
|
105987
|
-
return
|
105989
|
+
return ie.isBuffer(W) || W instanceof pe;
|
105988
105990
|
}
|
105989
105991
|
function f(W, C, P) {
|
105990
105992
|
return typeof W.prependListener == "function" ? W.prependListener(C, P) : void (W._events && W._events[C] ? Array.isArray(W._events[C]) ? W._events[C].unshift(P) : W._events[C] = [P, W._events[C]] : W.on(C, P));
|
@@ -106005,7 +106007,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
106005
106007
|
var me;
|
106006
106008
|
if (te || (me = g(ue, C)), me) ee(W, me);
|
106007
106009
|
else if (!(ue.objectMode || C && 0 < C.length)) B || (ue.reading = !1, M(W, ue));
|
106008
|
-
else if (typeof C == "string" || ue.objectMode || Object.getPrototypeOf(C) ===
|
106010
|
+
else if (typeof C == "string" || ue.objectMode || Object.getPrototypeOf(C) === ie.prototype || (C = c(C)), B) ue.endEmitted ? ee(W, new Q()) : m(W, ue, C, !0);
|
106009
106011
|
else if (ue.ended) ee(W, new ce());
|
106010
106012
|
else {
|
106011
106013
|
if (ue.destroyed) return !1;
|
@@ -106042,7 +106044,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
106042
106044
|
}
|
106043
106045
|
function x(W) {
|
106044
106046
|
var C = W._readableState;
|
106045
|
-
G("emitReadable_", C.destroyed, C.length, C.ended), !C.destroyed && (C.length || C.ended) && (W.emit("readable"), C.emittedReadable = !1), C.needReadable = !C.flowing && !C.ended && C.length <= C.highWaterMark,
|
106047
|
+
G("emitReadable_", C.destroyed, C.length, C.ended), !C.destroyed && (C.length || C.ended) && (W.emit("readable"), C.emittedReadable = !1), C.needReadable = !C.flowing && !C.ended && C.length <= C.highWaterMark, q(W);
|
106046
106048
|
}
|
106047
106049
|
function M(W, C) {
|
106048
106050
|
C.readingMore || (C.readingMore = !0, o.nextTick(L, W, C));
|
@@ -106057,7 +106059,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
106057
106059
|
function S(W) {
|
106058
106060
|
return function() {
|
106059
106061
|
var C = W._readableState;
|
106060
|
-
G("pipeOnDrain", C.awaitDrain), C.awaitDrain && C.awaitDrain--, C.awaitDrain === 0 &&
|
106062
|
+
G("pipeOnDrain", C.awaitDrain), C.awaitDrain && C.awaitDrain--, C.awaitDrain === 0 && re(W, "data") && (C.flowing = !0, q(W));
|
106061
106063
|
};
|
106062
106064
|
}
|
106063
106065
|
function D(W) {
|
@@ -106071,9 +106073,9 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
106071
106073
|
C.resumeScheduled || (C.resumeScheduled = !0, o.nextTick(H, W, C));
|
106072
106074
|
}
|
106073
106075
|
function H(W, C) {
|
106074
|
-
G("resume", C.reading), C.reading || W.read(0), C.resumeScheduled = !1, W.emit("resume"),
|
106076
|
+
G("resume", C.reading), C.reading || W.read(0), C.resumeScheduled = !1, W.emit("resume"), q(W), C.flowing && !C.reading && W.read(0);
|
106075
106077
|
}
|
106076
|
-
function
|
106078
|
+
function q(W) {
|
106077
106079
|
var C = W._readableState;
|
106078
106080
|
for (G("flow", C.flowing); C.flowing && W.read() !== null; ) ;
|
106079
106081
|
}
|
@@ -106082,7 +106084,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
106082
106084
|
var P;
|
106083
106085
|
return C.objectMode ? P = C.buffer.shift() : !W || W >= C.length ? (P = C.decoder ? C.buffer.join("") : C.buffer.length === 1 ? C.buffer.first() : C.buffer.concat(C.length), C.buffer.clear()) : P = C.buffer.consume(W, C.decoder), P;
|
106084
106086
|
}
|
106085
|
-
function
|
106087
|
+
function U(W) {
|
106086
106088
|
var C = W._readableState;
|
106087
106089
|
G("endReadable", C.endEmitted), C.endEmitted || (C.ended = !0, o.nextTick(V, C, W));
|
106088
106090
|
}
|
@@ -106101,9 +106103,9 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
106101
106103
|
h.ReadableState = d;
|
106102
106104
|
var G;
|
106103
106105
|
s("events").EventEmitter;
|
106104
|
-
var
|
106106
|
+
var re = function(W, C) {
|
106105
106107
|
return W.listeners(C).length;
|
106106
|
-
}, de = s("./internal/streams/stream"),
|
106108
|
+
}, de = s("./internal/streams/stream"), ie = s("buffer").Buffer, pe = l.Uint8Array || function() {
|
106107
106109
|
}, oe = s("util");
|
106108
106110
|
G = oe && oe.debuglog ? oe.debuglog("stream") : function() {
|
106109
106111
|
};
|
@@ -106118,7 +106120,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
106118
106120
|
C(W);
|
106119
106121
|
}, h.prototype.push = function(W, C) {
|
106120
106122
|
var P, B = this._readableState;
|
106121
|
-
return B.objectMode ? P = !0 : typeof W == "string" && (C = C || B.defaultEncoding, C !== B.encoding && (W =
|
106123
|
+
return B.objectMode ? P = !0 : typeof W == "string" && (C = C || B.defaultEncoding, C !== B.encoding && (W = ie.from(W, C), C = ""), P = !0), p(this, W, C, !1, P);
|
106122
106124
|
}, h.prototype.unshift = function(W) {
|
106123
106125
|
return p(this, W, null, !0, !1);
|
106124
106126
|
}, h.prototype.isPaused = function() {
|
@@ -106132,12 +106134,12 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
106132
106134
|
}, h.prototype.read = function(W) {
|
106133
106135
|
G("read", W), W = parseInt(W, 10);
|
106134
106136
|
var C = this._readableState, P = W;
|
106135
|
-
if (W !== 0 && (C.emittedReadable = !1), W === 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 ?
|
106136
|
-
if (W = k(W, C), W === 0 && C.ended) return C.length === 0 &&
|
106137
|
+
if (W !== 0 && (C.emittedReadable = !1), W === 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;
|
106138
|
+
if (W = k(W, C), W === 0 && C.ended) return C.length === 0 && U(this), null;
|
106137
106139
|
var B = C.needReadable;
|
106138
106140
|
G("need readable", B), (C.length === 0 || C.length - W < C.highWaterMark) && (B = !0, G("length less than watermark", B)), C.ended || C.reading ? (B = !1, G("reading or ended", B)) : B && (G("do read"), C.reading = !0, C.sync = !0, C.length === 0 && (C.needReadable = !0), this._read(C.highWaterMark), C.sync = !1, !C.reading && (W = k(P, C)));
|
106139
106141
|
var te;
|
106140
|
-
return te = 0 < W ? Z(W, C) : null, te === null ? (C.needReadable = C.length <= C.highWaterMark, W = 0) : (C.length -= W, C.awaitDrain = 0), C.length === 0 && (!C.ended && (C.needReadable = !0), P !== W && C.ended &&
|
106142
|
+
return te = 0 < W ? Z(W, C) : null, te === null ? (C.needReadable = C.length <= C.highWaterMark, W = 0) : (C.length -= W, C.awaitDrain = 0), C.length === 0 && (!C.ended && (C.needReadable = !0), P !== W && C.ended && U(this)), te !== null && this.emit("data", te), te;
|
106141
106143
|
}, h.prototype._read = function() {
|
106142
106144
|
ee(this, new X("_read()"));
|
106143
106145
|
}, h.prototype.pipe = function(W, C) {
|
@@ -106156,7 +106158,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
106156
106158
|
G("dest.write", lt), lt === !1 && ((Ke.pipesCount === 1 && Ke.pipes === W || 1 < Ke.pipesCount && Y(Ke.pipes, W) !== -1) && !xe && (G("false write response, pause", Ke.awaitDrain), Ke.awaitDrain++), _e.pause());
|
106157
106159
|
}
|
106158
106160
|
function me(Ue) {
|
106159
|
-
G("onerror", Ue), Ee(), W.removeListener("error", me),
|
106161
|
+
G("onerror", Ue), Ee(), W.removeListener("error", me), re(W, "error") === 0 && ee(W, Ue);
|
106160
106162
|
}
|
106161
106163
|
function ze() {
|
106162
106164
|
W.removeListener("finish", Ze), Ee();
|
@@ -106301,14 +106303,14 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
106301
106303
|
function c(X) {
|
106302
106304
|
var Q = this;
|
106303
106305
|
this.next = null, this.entry = null, this.finish = function() {
|
106304
|
-
|
106306
|
+
U(Q, X);
|
106305
106307
|
};
|
106306
106308
|
}
|
106307
106309
|
function u(X) {
|
106308
106310
|
return G.from(X);
|
106309
106311
|
}
|
106310
106312
|
function f(X) {
|
106311
|
-
return G.isBuffer(X) || X instanceof
|
106313
|
+
return G.isBuffer(X) || X instanceof re;
|
106312
106314
|
}
|
106313
106315
|
function d() {
|
106314
106316
|
}
|
@@ -106353,7 +106355,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
106353
106355
|
Q.writelen = De, Q.writecb = P, Q.writing = !0, Q.sync = !0, Q.destroyed ? Q.onwrite(new Re("write")) : ee ? X._writev(W, Q.onwrite) : X._write(W, C, Q.onwrite), Q.sync = !1;
|
106354
106356
|
}
|
106355
106357
|
function w(X, Q, ee, De, W) {
|
106356
|
-
--Q.pendingcb, ee ? (o.nextTick(W, De), o.nextTick(
|
106358
|
+
--Q.pendingcb, ee ? (o.nextTick(W, De), o.nextTick(q, X, Q), X._writableState.errorEmitted = !0, Te(X, De)) : (W(De), X._writableState.errorEmitted = !0, Te(X, De), q(X, Q));
|
106357
106359
|
}
|
106358
106360
|
function x(X) {
|
106359
106361
|
X.writing = !1, X.writecb = null, X.length -= X.writelen, X.writelen = 0;
|
@@ -106368,7 +106370,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
106368
106370
|
}
|
106369
106371
|
}
|
106370
106372
|
function L(X, Q, ee, De) {
|
106371
|
-
ee || S(X, Q), Q.pendingcb--, De(),
|
106373
|
+
ee || S(X, Q), Q.pendingcb--, De(), q(X, Q);
|
106372
106374
|
}
|
106373
106375
|
function S(X, Q) {
|
106374
106376
|
Q.length === 0 && Q.needDrain && (Q.needDrain = !1, X.emit("drain"));
|
@@ -106395,13 +106397,13 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
106395
106397
|
}
|
106396
106398
|
function R(X, Q) {
|
106397
106399
|
X._final(function(ee) {
|
106398
|
-
Q.pendingcb--, ee && Te(X, ee), Q.prefinished = !0, X.emit("prefinish"),
|
106400
|
+
Q.pendingcb--, ee && Te(X, ee), Q.prefinished = !0, X.emit("prefinish"), q(X, Q);
|
106399
106401
|
});
|
106400
106402
|
}
|
106401
106403
|
function H(X, Q) {
|
106402
106404
|
Q.prefinished || Q.finalCalled || (typeof X._final != "function" || Q.destroyed ? (Q.prefinished = !0, X.emit("prefinish")) : (Q.pendingcb++, Q.finalCalled = !0, o.nextTick(R, X, Q)));
|
106403
106405
|
}
|
106404
|
-
function
|
106406
|
+
function q(X, Q) {
|
106405
106407
|
var ee = j(Q);
|
106406
106408
|
if (ee && (H(X, Q), Q.pendingcb === 0 && (Q.finished = !0, X.emit("finish"), Q.autoDestroy))) {
|
106407
106409
|
var De = X._readableState;
|
@@ -106410,9 +106412,9 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
106410
106412
|
return ee;
|
106411
106413
|
}
|
106412
106414
|
function Z(X, Q, ee) {
|
106413
|
-
Q.ending = !0,
|
106415
|
+
Q.ending = !0, q(X, Q), ee && (Q.finished ? o.nextTick(ee) : X.once("finish", ee)), Q.ended = !0, X.writable = !1;
|
106414
106416
|
}
|
106415
|
-
function
|
106417
|
+
function U(X, Q, ee) {
|
106416
106418
|
var De = X.entry;
|
106417
106419
|
for (X.entry = null; De; ) {
|
106418
106420
|
var W = De.callback;
|
@@ -106423,8 +106425,8 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
106423
106425
|
a.exports = p;
|
106424
106426
|
var V;
|
106425
106427
|
p.WritableState = h;
|
106426
|
-
var Y = { deprecate: s("util-deprecate") }, ae = s("./internal/streams/stream"), G = s("buffer").Buffer,
|
106427
|
-
}, de = s("./internal/streams/destroy"),
|
106428
|
+
var Y = { deprecate: s("util-deprecate") }, ae = s("./internal/streams/stream"), G = s("buffer").Buffer, re = l.Uint8Array || function() {
|
106429
|
+
}, de = s("./internal/streams/destroy"), ie = s("./internal/streams/state"), pe = ie.getHighWaterMark, oe = s("../errors").codes, ge = oe.ERR_INVALID_ARG_TYPE, J = oe.ERR_METHOD_NOT_IMPLEMENTED, be = oe.ERR_MULTIPLE_CALLBACK, ke = oe.ERR_STREAM_CANNOT_PIPE, Re = oe.ERR_STREAM_DESTROYED, Pe = oe.ERR_STREAM_NULL_VALUES, Ae = oe.ERR_STREAM_WRITE_AFTER_END, Le = oe.ERR_UNKNOWN_ENCODING, Te = de.errorOrDestroy;
|
106428
106430
|
s("inherits")(p, ae), h.prototype.getBuffer = function() {
|
106429
106431
|
for (var X = this.bufferedRequest, Q = []; X; ) Q.push(X), X = X.next;
|
106430
106432
|
return Q;
|
@@ -106507,9 +106509,9 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
106507
106509
|
var S = this, D = this[b];
|
106508
106510
|
if (D !== null) return Promise.reject(D);
|
106509
106511
|
if (this[k]) return Promise.resolve(c(void 0, !0));
|
106510
|
-
if (this[x].destroyed) return new Promise(function(
|
106512
|
+
if (this[x].destroyed) return new Promise(function(q, Z) {
|
106511
106513
|
o.nextTick(function() {
|
106512
|
-
S[b] ? Z(S[b]) :
|
106514
|
+
S[b] ? Z(S[b]) : q(c(void 0, !0));
|
106513
106515
|
});
|
106514
106516
|
});
|
106515
106517
|
var j, R = this[v];
|
@@ -106532,16 +106534,16 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
106532
106534
|
}), h), M);
|
106533
106535
|
a.exports = function(S) {
|
106534
106536
|
var D, j = Object.create(L, (D = {}, l(D, x, { value: S, writable: !0 }), l(D, m, { value: null, writable: !0 }), l(D, g, { value: null, writable: !0 }), l(D, b, { value: null, writable: !0 }), l(D, k, { value: S._readableState.endEmitted, writable: !0 }), l(D, w, { value: function(R, H) {
|
106535
|
-
var
|
106536
|
-
|
106537
|
+
var q = j[x].read();
|
106538
|
+
q ? (j[v] = null, j[m] = null, j[g] = null, R(c(q, !1))) : (j[m] = R, j[g] = H);
|
106537
106539
|
}, writable: !0 }), D));
|
106538
106540
|
return j[v] = null, p(S, function(R) {
|
106539
106541
|
if (R && R.code !== "ERR_STREAM_PREMATURE_CLOSE") {
|
106540
106542
|
var H = j[g];
|
106541
106543
|
return H !== null && (j[v] = null, j[m] = null, j[g] = null, H(R)), void (j[b] = R);
|
106542
106544
|
}
|
106543
|
-
var
|
106544
|
-
|
106545
|
+
var q = j[m];
|
106546
|
+
q !== null && (j[v] = null, j[m] = null, j[g] = null, q(c(void 0, !0))), j[k] = !0;
|
106545
106547
|
}), S.on("readable", f.bind(null, j)), j;
|
106546
106548
|
};
|
106547
106549
|
}).call(this);
|
@@ -107263,8 +107265,8 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
107263
107265
|
D = !0;
|
107264
107266
|
let H = L[R.localCandidateId];
|
107265
107267
|
H && (H.ip || H.address) ? (this.localAddress = H.ip || H.address, this.localPort = +H.port) : H && H.ipAddress ? (this.localAddress = H.ipAddress, this.localPort = +H.portNumber) : typeof R.googLocalAddress == "string" && (H = R.googLocalAddress.split(":"), this.localAddress = H[0], this.localPort = +H[1]), this.localAddress && (this.localFamily = this.localAddress.includes(":") ? "IPv6" : "IPv4");
|
107266
|
-
let
|
107267
|
-
|
107268
|
+
let q = M[R.remoteCandidateId];
|
107269
|
+
q && (q.ip || q.address) ? (this.remoteAddress = q.ip || q.address, this.remotePort = +q.port) : q && q.ipAddress ? (this.remoteAddress = q.ipAddress, this.remotePort = +q.portNumber) : typeof R.googRemoteAddress == "string" && (q = R.googRemoteAddress.split(":"), this.remoteAddress = q[0], this.remotePort = +q[1]), this.remoteAddress && (this.remoteFamily = this.remoteAddress.includes(":") ? "IPv6" : "IPv4"), this._debug("connect local: %s:%s remote: %s:%s", this.localAddress, this.localPort, this.remoteAddress, this.remotePort);
|
107268
107270
|
};
|
107269
107271
|
if (x.forEach((R) => {
|
107270
107272
|
R.type === "transport" && R.selectedCandidatePairId && j(S[R.selectedCandidatePairId]), (R.type === "googCandidatePair" && R.googActiveConnection === "true" || (R.type === "candidatepair" || R.type === "candidate-pair") && R.selected) && j(R);
|
@@ -111026,12 +111028,12 @@ function Cot({
|
|
111026
111028
|
// <>
|
111027
111029
|
];
|
111028
111030
|
for (let H = 0; H < R.length; H++) {
|
111029
|
-
const [
|
111030
|
-
We(M,
|
111031
|
+
const [q, Z] = R[H], U = We(x, q);
|
111032
|
+
We(M, q, U), We(U, Z, x);
|
111031
111033
|
const V = $s(E3);
|
111032
|
-
Kt(
|
111034
|
+
Kt(U, e, V);
|
111033
111035
|
const Y = $s();
|
111034
|
-
Kt(
|
111036
|
+
Kt(U, n), Kt(V, e, V), Kt(V, n, Y), Kt(Y, e, V), Kt(Y, n, Y), We(V, Z, x), We(Y, Z, x);
|
111035
111037
|
}
|
111036
111038
|
return We(i, X4, k), We(i, ZT, Mot), {
|
111037
111039
|
start: i,
|
@@ -111796,13 +111798,13 @@ const Pne = ({
|
|
111796
111798
|
deleteNode: n
|
111797
111799
|
}) => {
|
111798
111800
|
const r = Xv(), [i, s] = Oe(), [a, o] = Oe(0), [l, c] = Oe(0), [u, f] = Oe({}), d = Xe(null), [h, p] = Oe(!1), [m, g] = Oe(!1), [b, k] = Oe(null), v = Xe(null), w = () => {
|
111799
|
-
const
|
111800
|
-
MB.forEach(({ tooltip: de, isActive:
|
111801
|
-
|
111802
|
-
}), f(
|
111801
|
+
const re = {};
|
111802
|
+
MB.forEach(({ tooltip: de, isActive: ie }) => {
|
111803
|
+
re[de] = !!(ie != null && ie(t.attrs));
|
111804
|
+
}), f(re);
|
111803
111805
|
}, x = () => {
|
111804
|
-
const
|
111805
|
-
if (
|
111806
|
+
const re = document.querySelector(".ProseMirror");
|
111807
|
+
if (re && c(re == null ? void 0 : re.clientWidth), !!d.current) {
|
111806
111808
|
if (i === "video") {
|
111807
111809
|
const de = d.current;
|
111808
111810
|
de.addEventListener("loadeddata", function() {
|
@@ -111821,22 +111823,22 @@ const Pne = ({
|
|
111821
111823
|
};
|
111822
111824
|
setTimeout(() => w(), 200);
|
111823
111825
|
}
|
111824
|
-
}, M = (
|
111825
|
-
td =
|
111826
|
+
}, M = (re) => {
|
111827
|
+
td = re;
|
111826
111828
|
};
|
111827
111829
|
Be(() => {
|
111828
111830
|
x();
|
111829
111831
|
}, []);
|
111830
|
-
const L = ({ width:
|
111831
|
-
const de = "touches" in
|
111832
|
+
const L = ({ width: re, height: de }) => re < 200 || de < 200, S = (re) => {
|
111833
|
+
const de = "touches" in re ? re.touches[0].clientX : re.clientX;
|
111832
111834
|
setTimeout(() => H(de));
|
111833
|
-
}, D = (
|
111834
|
-
|
111835
|
+
}, D = (re) => {
|
111836
|
+
re.stopPropagation(), td = "touches" in re ? re.touches[0].clientX : re.clientX, setTimeout(() => {
|
111835
111837
|
document.addEventListener("mousemove", S), document.addEventListener("mouseup", j), document.addEventListener("touchmove", S), document.addEventListener("touchend", j);
|
111836
111838
|
}), p(!0);
|
111837
111839
|
}, j = () => {
|
111838
111840
|
td = -1, document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", j), p(!1);
|
111839
|
-
}, R = (
|
111841
|
+
}, R = (re, de) => {
|
111840
111842
|
var ge, J;
|
111841
111843
|
if (!d.current) {
|
111842
111844
|
console.error("Media ref is undefined|null", {
|
@@ -111844,48 +111846,48 @@ const Pne = ({
|
|
111844
111846
|
});
|
111845
111847
|
return;
|
111846
111848
|
}
|
111847
|
-
const
|
111849
|
+
const ie = {
|
111848
111850
|
width: (ge = d.current) == null ? void 0 : ge.width,
|
111849
111851
|
height: (J = d.current) == null ? void 0 : J.height
|
111850
111852
|
}, pe = {
|
111851
111853
|
width: -1,
|
111852
111854
|
height: -1
|
111853
111855
|
};
|
111854
|
-
let oe = parseFloat(
|
111855
|
-
if (isNaN(oe) && (oe = 0),
|
111856
|
+
let oe = parseFloat(ie.width.toString());
|
111857
|
+
if (isNaN(oe) && (oe = 0), re === "left" ? pe.width = oe - Math.abs(de) : pe.width = oe + Math.abs(de), pe.width > l && (pe.width = l), i === "iframe")
|
111856
111858
|
pe.height = pe.width / (16 / 9);
|
111857
111859
|
else {
|
111858
111860
|
const be = isNaN(a) ? 1 : a;
|
111859
111861
|
pe.height = pe.width / be;
|
111860
111862
|
}
|
111861
111863
|
pe.width = isNaN(pe.width) ? 0 : pe.width, pe.height = isNaN(pe.height) ? 0 : pe.height, !L(pe) && e(pe);
|
111862
|
-
}, H = (
|
111864
|
+
}, H = (re) => {
|
111863
111865
|
if (td === -1) return;
|
111864
|
-
const de = td -
|
111866
|
+
const de = td - re;
|
111865
111867
|
if (de === 0) return;
|
111866
|
-
const
|
111868
|
+
const ie = de > 0 ? "left" : "right";
|
111867
111869
|
setTimeout(() => {
|
111868
|
-
R(
|
111870
|
+
R(ie, Math.abs(de)), td = re;
|
111869
111871
|
});
|
111870
|
-
}, [
|
111872
|
+
}, [q, Z] = Oe(), [U, V] = Oe();
|
111871
111873
|
Be(() => {
|
111872
111874
|
s(t.attrs["media-type"]), w(), Z(t.attrs.dataFloat), V(t.attrs.dataAlign);
|
111873
111875
|
}, [t.attrs]);
|
111874
|
-
const Y = (
|
111875
|
-
|
111876
|
-
x:
|
111877
|
-
y:
|
111876
|
+
const Y = (re) => {
|
111877
|
+
re.stopPropagation(), v.current = {
|
111878
|
+
x: re.touches[0].clientX,
|
111879
|
+
y: re.touches[0].clientY
|
111878
111880
|
};
|
111879
111881
|
const de = setTimeout(() => {
|
111880
111882
|
g(!0);
|
111881
111883
|
}, 500);
|
111882
111884
|
k(de);
|
111883
|
-
}, ae = (
|
111885
|
+
}, ae = (re) => {
|
111884
111886
|
if (!m) {
|
111885
111887
|
b && (clearTimeout(b), k(null));
|
111886
111888
|
return;
|
111887
111889
|
}
|
111888
|
-
|
111890
|
+
re.preventDefault(), re.stopPropagation();
|
111889
111891
|
}, G = () => {
|
111890
111892
|
b && (clearTimeout(b), k(null)), g(!1), v.current = null;
|
111891
111893
|
};
|
@@ -111897,8 +111899,8 @@ const Pne = ({
|
|
111897
111899
|
as: "article",
|
111898
111900
|
className: Nt(
|
111899
111901
|
"media-node-view not-prose transition-all ease-in-out w-full",
|
111900
|
-
|
111901
|
-
|
111902
|
+
q && `f-${t.attrs.dataFloat}`,
|
111903
|
+
U && `justify-${t.attrs.dataAlign}`
|
111902
111904
|
),
|
111903
111905
|
children: /* @__PURE__ */ T.jsxs(
|
111904
111906
|
"div",
|
@@ -111969,23 +111971,23 @@ const Pne = ({
|
|
111969
111971
|
{
|
111970
111972
|
className: "horizontal-resize-handle group-hover:bg-black group-hover:border-2 group-hover:border-white/80",
|
111971
111973
|
title: "Resize",
|
111972
|
-
onClick: ({ clientX:
|
111973
|
-
onMouseDown: (
|
111974
|
+
onClick: ({ clientX: re }) => M(re),
|
111975
|
+
onMouseDown: (re) => D(re),
|
111974
111976
|
onMouseUp: j,
|
111975
|
-
onTouchStart: (
|
111977
|
+
onTouchStart: (re) => D(re),
|
111976
111978
|
onTouchEnd: j
|
111977
111979
|
}
|
111978
111980
|
),
|
111979
|
-
/* @__PURE__ */ T.jsx("span", { className: "media-control-buttons opacity-0 group-hover:opacity-100 transition-opacity duration-200 flex gap-1 p-1", children: MB.map((
|
111981
|
+
/* @__PURE__ */ T.jsx("span", { className: "media-control-buttons opacity-0 group-hover:opacity-100 transition-opacity duration-200 flex gap-1 p-1", children: MB.map((re, de) => /* @__PURE__ */ T.jsx(
|
111980
111982
|
Hr,
|
111981
111983
|
{
|
111982
|
-
tooltip:
|
111983
|
-
isActive: u[
|
111984
|
+
tooltip: re.tooltip,
|
111985
|
+
isActive: u[re.tooltip],
|
111984
111986
|
onClick: () => {
|
111985
|
-
var
|
111986
|
-
return
|
111987
|
+
var ie;
|
111988
|
+
return re.tooltip === "Delete" ? n() : (ie = re.action) == null ? void 0 : ie.call(re, e);
|
111987
111989
|
},
|
111988
|
-
icon:
|
111990
|
+
icon: re.icon,
|
111989
111991
|
classNames: "min-w-6 aspect-square"
|
111990
111992
|
},
|
111991
111993
|
de
|
@@ -112901,12 +112903,12 @@ const Rlt = (t) => ({
|
|
112901
112903
|
}, h = sN(i), p = iN(h), m = await a.getDimensions(c), g = h === "y", b = g ? "top" : "left", k = g ? "bottom" : "right", v = g ? "clientHeight" : "clientWidth", w = s.reference[p] + s.reference[h] - d[h] - s.floating[p], x = d[h] - s.reference[h], M = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(c));
|
112902
112904
|
let L = M ? M[v] : 0;
|
112903
112905
|
(!L || !await (a.isElement == null ? void 0 : a.isElement(M))) && (L = o.floating[v] || s.floating[p]);
|
112904
|
-
const S = w / 2 - x / 2, D = L / 2 - m[p] / 2 - 1, j = r1(f[b], D), R = r1(f[k], D), H = j,
|
112906
|
+
const S = w / 2 - x / 2, D = L / 2 - m[p] / 2 - 1, j = r1(f[b], D), R = r1(f[k], D), H = j, q = L - m[p] - R, Z = L / 2 - m[p] / 2 + S, U = eA(H, Z, q), V = !l.arrow && ap(i) != null && Z !== U && s.reference[p] / 2 - (Z < H ? j : R) - m[p] / 2 < 0, Y = V ? Z < H ? Z - H : Z - q : 0;
|
112905
112907
|
return {
|
112906
112908
|
[h]: d[h] + Y,
|
112907
112909
|
data: {
|
112908
|
-
[h]:
|
112909
|
-
centerOffset: Z -
|
112910
|
+
[h]: U,
|
112911
|
+
centerOffset: Z - U - Y,
|
112910
112912
|
...V && {
|
112911
112913
|
alignmentOffset: Y
|
112912
112914
|
}
|
@@ -112951,23 +112953,23 @@ const Rlt = (t) => ({
|
|
112951
112953
|
overflows: D
|
112952
112954
|
}], !D.every((Z) => Z <= 0)) {
|
112953
112955
|
var R, H;
|
112954
|
-
const Z = (((R = s.flip) == null ? void 0 : R.index) || 0) + 1,
|
112955
|
-
if (
|
112956
|
+
const Z = (((R = s.flip) == null ? void 0 : R.index) || 0) + 1, U = L[Z];
|
112957
|
+
if (U)
|
112956
112958
|
return {
|
112957
112959
|
data: {
|
112958
112960
|
index: Z,
|
112959
112961
|
overflows: j
|
112960
112962
|
},
|
112961
112963
|
reset: {
|
112962
|
-
placement:
|
112964
|
+
placement: U
|
112963
112965
|
}
|
112964
112966
|
};
|
112965
112967
|
let V = (H = j.filter((Y) => Y.overflows[0] <= 0).sort((Y, ae) => Y.overflows[1] - ae.overflows[1])[0]) == null ? void 0 : H.placement;
|
112966
112968
|
if (!V)
|
112967
112969
|
switch (h) {
|
112968
112970
|
case "bestFit": {
|
112969
|
-
var
|
112970
|
-
const Y = (
|
112971
|
+
var q;
|
112972
|
+
const Y = (q = j.filter((ae) => {
|
112971
112973
|
if (M) {
|
112972
112974
|
const G = i1(ae.placement);
|
112973
112975
|
return G === k || // Create a bias to the `y` side axis due to horizontal
|
@@ -112975,7 +112977,7 @@ const Rlt = (t) => ({
|
|
112975
112977
|
G === "y";
|
112976
112978
|
}
|
112977
112979
|
return !0;
|
112978
|
-
}).map((ae) => [ae.placement, ae.overflows.filter((G) => G > 0).reduce((G,
|
112980
|
+
}).map((ae) => [ae.placement, ae.overflows.filter((G) => G > 0).reduce((G, re) => G + re, 0)]).sort((ae, G) => ae[1] - G[1])[0]) == null ? void 0 : q[0];
|
112979
112981
|
Y && (V = Y);
|
112980
112982
|
break;
|
112981
112983
|
}
|
@@ -113218,8 +113220,8 @@ const Flt = function(t) {
|
|
113218
113220
|
const k = m - u.top - u.bottom, v = p - u.left - u.right, w = r1(m - u[g], k), x = r1(p - u[b], v), M = !e.middlewareData.shift;
|
113219
113221
|
let L = w, S = x;
|
113220
113222
|
if ((n = e.middlewareData.shift) != null && n.enabled.x && (S = v), (r = e.middlewareData.shift) != null && r.enabled.y && (L = k), M && !d) {
|
113221
|
-
const j = Ds(u.left, 0), R = Ds(u.right, 0), H = Ds(u.top, 0),
|
113222
|
-
h ? S = p - 2 * (j !== 0 || R !== 0 ? j + R : Ds(u.left, u.right)) : L = m - 2 * (H !== 0 ||
|
113223
|
+
const j = Ds(u.left, 0), R = Ds(u.right, 0), H = Ds(u.top, 0), q = Ds(u.bottom, 0);
|
113224
|
+
h ? S = p - 2 * (j !== 0 || R !== 0 ? j + R : Ds(u.left, u.right)) : L = m - 2 * (H !== 0 || q !== 0 ? H + q : Ds(u.top, u.bottom));
|
113223
113225
|
}
|
113224
113226
|
await l({
|
113225
113227
|
...e,
|
@@ -113794,7 +113796,7 @@ function pct(t) {
|
|
113794
113796
|
ae !== M.current && (M.current = ae, m(ae));
|
113795
113797
|
}, []), v = E.useCallback((ae) => {
|
113796
113798
|
ae !== L.current && (L.current = ae, b(ae));
|
113797
|
-
}, []), w = s || p, x = a || g, M = E.useRef(null), L = E.useRef(null), S = E.useRef(u), D = l != null, j = $9(l), R = $9(i), H = $9(c),
|
113799
|
+
}, []), w = s || p, x = a || g, M = E.useRef(null), L = E.useRef(null), S = E.useRef(u), D = l != null, j = $9(l), R = $9(i), H = $9(c), q = E.useCallback(() => {
|
113798
113800
|
if (!M.current || !L.current)
|
113799
113801
|
return;
|
113800
113802
|
const ae = {
|
@@ -113803,7 +113805,7 @@ function pct(t) {
|
|
113803
113805
|
middleware: d
|
113804
113806
|
};
|
113805
113807
|
R.current && (ae.platform = R.current), hct(M.current, L.current, ae).then((G) => {
|
113806
|
-
const
|
113808
|
+
const re = {
|
113807
113809
|
...G,
|
113808
113810
|
// The floating element's position may be recomputed while it's closed
|
113809
113811
|
// but still mounted (such as when transitioning out). To ensure
|
@@ -113811,8 +113813,8 @@ function pct(t) {
|
|
113811
113813
|
// setting it to `true` when `open === false` (must be specified).
|
113812
113814
|
isPositioned: H.current !== !1
|
113813
113815
|
};
|
113814
|
-
Z.current && !Vb(S.current,
|
113815
|
-
f(
|
113816
|
+
Z.current && !Vb(S.current, re) && (S.current = re, p1.flushSync(() => {
|
113817
|
+
f(re);
|
113816
113818
|
}));
|
113817
113819
|
});
|
113818
113820
|
}, [d, e, n, R, H]);
|
@@ -113828,11 +113830,11 @@ function pct(t) {
|
|
113828
113830
|
}), []), F6(() => {
|
113829
113831
|
if (w && (M.current = w), x && (L.current = x), w && x) {
|
113830
113832
|
if (j.current)
|
113831
|
-
return j.current(w, x,
|
113832
|
-
|
113833
|
+
return j.current(w, x, q);
|
113834
|
+
q();
|
113833
113835
|
}
|
113834
|
-
}, [w, x,
|
113835
|
-
const
|
113836
|
+
}, [w, x, q, j, D]);
|
113837
|
+
const U = E.useMemo(() => ({
|
113836
113838
|
reference: M,
|
113837
113839
|
floating: L,
|
113838
113840
|
setReference: k,
|
@@ -113848,26 +113850,26 @@ function pct(t) {
|
|
113848
113850
|
};
|
113849
113851
|
if (!V.floating)
|
113850
113852
|
return ae;
|
113851
|
-
const G = FB(V.floating, u.x),
|
113853
|
+
const G = FB(V.floating, u.x), re = FB(V.floating, u.y);
|
113852
113854
|
return o ? {
|
113853
113855
|
...ae,
|
113854
|
-
transform: "translate(" + G + "px, " +
|
113856
|
+
transform: "translate(" + G + "px, " + re + "px)",
|
113855
113857
|
...Qne(V.floating) >= 1.5 && {
|
113856
113858
|
willChange: "transform"
|
113857
113859
|
}
|
113858
113860
|
} : {
|
113859
113861
|
position: n,
|
113860
113862
|
left: G,
|
113861
|
-
top:
|
113863
|
+
top: re
|
113862
113864
|
};
|
113863
113865
|
}, [n, o, V.floating, u.x, u.y]);
|
113864
113866
|
return E.useMemo(() => ({
|
113865
113867
|
...u,
|
113866
|
-
update:
|
113867
|
-
refs:
|
113868
|
+
update: q,
|
113869
|
+
refs: U,
|
113868
113870
|
elements: V,
|
113869
113871
|
floatingStyles: Y
|
113870
|
-
}), [u,
|
113872
|
+
}), [u, q, U, V, Y]);
|
113871
113873
|
}
|
113872
113874
|
const mct = (t) => {
|
113873
113875
|
function e(n) {
|
@@ -113983,12 +113985,12 @@ var fN = "PopperContent", [Ect, Lct] = $ne(fN), sre = E.forwardRef(
|
|
113983
113985
|
updatePositionStrategy: h = "optimized",
|
113984
113986
|
onPlaced: p,
|
113985
113987
|
...m
|
113986
|
-
} = t, g = tre(fN, n), [b, k] = E.useState(null), v = j1(e, (Te) => k(Te)), [w, x] = E.useState(null), M = Act(w), L = (M == null ? void 0 : M.width) ?? 0, S = (M == null ? void 0 : M.height) ?? 0, D = r + (s !== "center" ? "-" + s : ""), j = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, R = Array.isArray(c) ? c : [c], H = R.length > 0,
|
113988
|
+
} = t, g = tre(fN, n), [b, k] = E.useState(null), v = j1(e, (Te) => k(Te)), [w, x] = E.useState(null), M = Act(w), L = (M == null ? void 0 : M.width) ?? 0, S = (M == null ? void 0 : M.height) ?? 0, D = r + (s !== "center" ? "-" + s : ""), j = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, R = Array.isArray(c) ? c : [c], H = R.length > 0, q = {
|
113987
113989
|
padding: j,
|
113988
113990
|
boundary: R.filter(Nct),
|
113989
113991
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
113990
113992
|
altBoundary: H
|
113991
|
-
}, { refs: Z, floatingStyles:
|
113993
|
+
}, { refs: Z, floatingStyles: U, placement: V, isPositioned: Y, middlewareData: ae } = pct({
|
113992
113994
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
113993
113995
|
strategy: "fixed",
|
113994
113996
|
placement: D,
|
@@ -114004,11 +114006,11 @@ var fN = "PopperContent", [Ect, Lct] = $ne(fN), sre = E.forwardRef(
|
|
114004
114006
|
mainAxis: !0,
|
114005
114007
|
crossAxis: !1,
|
114006
114008
|
limiter: f === "partial" ? bct() : void 0,
|
114007
|
-
...
|
114009
|
+
...q
|
114008
114010
|
}),
|
114009
|
-
l && vct({ ...
|
114011
|
+
l && vct({ ...q }),
|
114010
114012
|
wct({
|
114011
|
-
...
|
114013
|
+
...q,
|
114012
114014
|
apply: ({ elements: Te, rects: ce, availableWidth: X, availableHeight: Q }) => {
|
114013
114015
|
const { width: ee, height: De } = ce.reference, W = Te.floating.style;
|
114014
114016
|
W.setProperty("--radix-popper-available-width", `${X}px`), W.setProperty("--radix-popper-available-height", `${Q}px`), W.setProperty("--radix-popper-anchor-width", `${ee}px`), W.setProperty("--radix-popper-anchor-height", `${De}px`);
|
@@ -114016,13 +114018,13 @@ var fN = "PopperContent", [Ect, Lct] = $ne(fN), sre = E.forwardRef(
|
|
114016
114018
|
}),
|
114017
114019
|
w && xct({ element: w, padding: o }),
|
114018
114020
|
jct({ arrowWidth: L, arrowHeight: S }),
|
114019
|
-
d && kct({ strategy: "referenceHidden", ...
|
114021
|
+
d && kct({ strategy: "referenceHidden", ...q })
|
114020
114022
|
]
|
114021
|
-
}), [G,
|
114023
|
+
}), [G, re] = lre(V), de = n1(p);
|
114022
114024
|
A2(() => {
|
114023
114025
|
Y && (de == null || de());
|
114024
114026
|
}, [Y, de]);
|
114025
|
-
const
|
114027
|
+
const ie = (be = ae.arrow) == null ? void 0 : be.x, pe = (ke = ae.arrow) == null ? void 0 : ke.y, oe = ((Re = ae.arrow) == null ? void 0 : Re.centerOffset) !== 0, [ge, J] = E.useState();
|
114026
114028
|
return A2(() => {
|
114027
114029
|
b && J(window.getComputedStyle(b).zIndex);
|
114028
114030
|
}, [b]), /* @__PURE__ */ T.jsx(
|
@@ -114031,8 +114033,8 @@ var fN = "PopperContent", [Ect, Lct] = $ne(fN), sre = E.forwardRef(
|
|
114031
114033
|
ref: Z.setFloating,
|
114032
114034
|
"data-radix-popper-content-wrapper": "",
|
114033
114035
|
style: {
|
114034
|
-
...
|
114035
|
-
transform: Y ?
|
114036
|
+
...U,
|
114037
|
+
transform: Y ? U.transform : "translate(0, -200%)",
|
114036
114038
|
// keep off the page when measuring
|
114037
114039
|
minWidth: "max-content",
|
114038
114040
|
zIndex: ge,
|
@@ -114055,14 +114057,14 @@ var fN = "PopperContent", [Ect, Lct] = $ne(fN), sre = E.forwardRef(
|
|
114055
114057
|
scope: n,
|
114056
114058
|
placedSide: G,
|
114057
114059
|
onArrowChange: x,
|
114058
|
-
arrowX:
|
114060
|
+
arrowX: ie,
|
114059
114061
|
arrowY: pe,
|
114060
114062
|
shouldHideArrow: oe,
|
114061
114063
|
children: /* @__PURE__ */ T.jsx(
|
114062
114064
|
D1.div,
|
114063
114065
|
{
|
114064
114066
|
"data-side": G,
|
114065
|
-
"data-align":
|
114067
|
+
"data-align": re,
|
114066
114068
|
...m,
|
114067
114069
|
ref: v,
|
114068
114070
|
style: {
|
@@ -116462,29 +116464,29 @@ const R3 = ({
|
|
116462
116464
|
] }), _ut = ({ node: t, getPos: e, editor: n, deleteNode: r, secureImageUploadUrl: i }) => {
|
116463
116465
|
var G;
|
116464
116466
|
const [s, a] = Oe(!1), o = zut(n, t, e()), l = Xv(), c = xn(() => {
|
116465
|
-
const { content:
|
116466
|
-
return
|
116467
|
+
const { content: re } = t.content;
|
116468
|
+
return re[0].type.name === "table";
|
116467
116469
|
}, [t.content]), u = xn(() => {
|
116468
116470
|
var de;
|
116469
|
-
const { content:
|
116470
|
-
return (de =
|
116471
|
+
const { content: re } = t.content;
|
116472
|
+
return (de = re[0].content.content[0]) == null ? void 0 : de.text;
|
116471
116473
|
}, [t.content]), f = xn(() => {
|
116472
116474
|
var de;
|
116473
|
-
const { content:
|
116474
|
-
return (de =
|
116475
|
+
const { content: re } = t.content;
|
116476
|
+
return (de = re[0].content.content[1]) == null ? void 0 : de.text;
|
116475
116477
|
}, [t.content]), d = xn(() => {
|
116476
|
-
const { content:
|
116477
|
-
return
|
116478
|
+
const { content: re } = t.content;
|
116479
|
+
return re[0].content.content.find(
|
116478
116480
|
(de) => {
|
116479
|
-
var
|
116480
|
-
return (
|
116481
|
+
var ie;
|
116482
|
+
return (ie = de == null ? void 0 : de.text) == null ? void 0 : ie.match(/\/status\/([0-9]*)/);
|
116481
116483
|
}
|
116482
116484
|
);
|
116483
116485
|
}, [t.content]), h = () => {
|
116484
|
-
var
|
116486
|
+
var re, de, ie, pe, oe;
|
116485
116487
|
if (u)
|
116486
116488
|
try {
|
116487
|
-
const { content: ge } = t.content, J = (oe = (pe = (
|
116489
|
+
const { content: ge } = t.content, J = (oe = (pe = (ie = (de = (re = ge[0]) == null ? void 0 : re.content) == null ? void 0 : de.content[0]) == null ? void 0 : ie.marks[0]) == null ? void 0 : pe.attrs) == null ? void 0 : oe.href;
|
116488
116490
|
if (!J)
|
116489
116491
|
return;
|
116490
116492
|
if (J && /\.(jpeg|jpg|gif|png)$/i.test(J)) {
|
@@ -116515,26 +116517,26 @@ const R3 = ({
|
|
116515
116517
|
} catch (ge) {
|
116516
116518
|
console.error("Error in mediaRender:", ge);
|
116517
116519
|
}
|
116518
|
-
}, p = (
|
116519
|
-
const
|
116520
|
-
|
116521
|
-
}, m = (
|
116522
|
-
const de =
|
116520
|
+
}, p = (re, de) => {
|
116521
|
+
const ie = e(), pe = ie + t.nodeSize;
|
116522
|
+
re === "img" ? n == null || n.chain().focus(ie).deleteRange({ from: ie === 0 ? ie : ie + 1, to: pe }).setMedia({ src: de, "media-type": "img" }).run() : re === "secure-img" ? console.log("secureImageUploadUrl", i) : n == null || n.chain().focus(ie).deleteRange({ from: ie === 0 ? ie : ie + 1, to: pe }).setIframe({ src: de, width: 640, height: 360 }).run();
|
116523
|
+
}, m = (re) => {
|
116524
|
+
const de = re.match(
|
116523
116525
|
/(?:https?:\/\/)?(?:www\.)?(?:twitter\.com|x\.com)\/(?:#!\/)?(\w+)\/status\/(\d+)/
|
116524
116526
|
);
|
116525
116527
|
return de && de[2] ? de[2] : null;
|
116526
116528
|
}, g = () => {
|
116527
116529
|
if (!u)
|
116528
116530
|
return;
|
116529
|
-
let
|
116531
|
+
let re = null;
|
116530
116532
|
const de = m(u);
|
116531
|
-
if (de ?
|
116532
|
-
const
|
116533
|
-
n == null || n.chain().focus(
|
116533
|
+
if (de ? re = de : d && (re = m(d.text)), re) {
|
116534
|
+
const ie = e(), pe = ie + t.nodeSize;
|
116535
|
+
n == null || n.chain().focus(ie).deleteRange({ from: ie === 2 ? ie : ie + 1, to: pe }).setTweetEmbed({ tweetId: re }).run();
|
116534
116536
|
}
|
116535
116537
|
}, b = () => {
|
116536
|
-
const
|
116537
|
-
n.commands.insertContentAt(
|
116538
|
+
const re = e() + t.nodeSize;
|
116539
|
+
n.commands.insertContentAt(re, {
|
116538
116540
|
type: "dBlock",
|
116539
116541
|
content: [
|
116540
116542
|
{
|
@@ -116543,8 +116545,8 @@ const R3 = ({
|
|
116543
116545
|
]
|
116544
116546
|
});
|
116545
116547
|
}, k = () => {
|
116546
|
-
const
|
116547
|
-
n.commands.insertContentAt(
|
116548
|
+
const re = e();
|
116549
|
+
n.commands.insertContentAt(re, {
|
116548
116550
|
type: "dBlock",
|
116549
116551
|
content: [
|
116550
116552
|
{
|
@@ -116554,14 +116556,14 @@ const R3 = ({
|
|
116554
116556
|
});
|
116555
116557
|
}, v = () => {
|
116556
116558
|
r();
|
116557
|
-
}, w = (
|
116558
|
-
|
116559
|
+
}, w = (re) => {
|
116560
|
+
re.altKey ? M() : x();
|
116559
116561
|
}, x = () => {
|
116560
116562
|
b();
|
116561
116563
|
}, M = () => {
|
116562
116564
|
k();
|
116563
|
-
}, L = (
|
116564
|
-
|
116565
|
+
}, L = (re) => {
|
116566
|
+
re.altKey && v();
|
116565
116567
|
}, D = Rne(() => {
|
116566
116568
|
m(u) || d && m(d.text) ? g() : h();
|
116567
116569
|
}, 1e3);
|
@@ -116570,13 +116572,13 @@ const R3 = ({
|
|
116570
116572
|
}, [u]);
|
116571
116573
|
const j = xn(() => {
|
116572
116574
|
var J, be, ke, Re;
|
116573
|
-
const { doc:
|
116574
|
-
return
|
116575
|
-
}, [e, n.state]), R = (
|
116575
|
+
const { doc: re, selection: de } = n.state, ie = e(), pe = re.nodeAt(ie) === re.firstChild, oe = ((J = re.nodeAt(ie)) == null ? void 0 : J.type.name) === "dBlock" && ((ke = (be = re.nodeAt(ie)) == null ? void 0 : be.content.firstChild) == null ? void 0 : ke.type.name) === "paragraph", ge = de.$anchor.pos >= ie && de.$anchor.pos <= ie + (((Re = re.nodeAt(ie)) == null ? void 0 : Re.nodeSize) || 0);
|
116576
|
+
return re.textContent === "" && pe && oe && ge;
|
116577
|
+
}, [e, n.state]), R = (re) => {
|
116576
116578
|
const de = e() + t.nodeSize;
|
116577
|
-
n.commands.insertContentAt(de - 4,
|
116578
|
-
}, H = Fut(R),
|
116579
|
-
|
116579
|
+
n.commands.insertContentAt(de - 4, re);
|
116580
|
+
}, H = Fut(R), q = Hut(R), [Z, U] = Oe(!1), [V, Y] = Oe(2), ae = () => {
|
116581
|
+
U(!Z), Y(Z ? 2 : q.length);
|
116580
116582
|
};
|
116581
116583
|
return /* @__PURE__ */ T.jsxs(
|
116582
116584
|
F2,
|
@@ -116616,7 +116618,7 @@ const R3 = ({
|
|
116616
116618
|
/* @__PURE__ */ T.jsx(
|
116617
116619
|
nN,
|
116618
116620
|
{
|
116619
|
-
onMountAutoFocus: (
|
116621
|
+
onMountAutoFocus: (re) => re.preventDefault(),
|
116620
116622
|
trapped: !1,
|
116621
116623
|
children: /* @__PURE__ */ T.jsxs(Put, { open: s, onOpenChange: a, children: [
|
116622
116624
|
/* @__PURE__ */ T.jsx(Rut, { asChild: !0, children: /* @__PURE__ */ T.jsx(
|
@@ -116680,7 +116682,7 @@ const R3 = ({
|
|
116680
116682
|
}),
|
116681
116683
|
children: j && !l && Vut(
|
116682
116684
|
H,
|
116683
|
-
|
116685
|
+
q,
|
116684
116686
|
V,
|
116685
116687
|
ae,
|
116686
116688
|
Z
|
@@ -118545,8 +118547,8 @@ function K1t(t) {
|
|
118545
118547
|
return {
|
118546
118548
|
onTrigger: function(V, Y) {
|
118547
118549
|
var ae = a.data.children.find(function(G) {
|
118548
|
-
var
|
118549
|
-
return
|
118550
|
+
var re = G.instance;
|
118551
|
+
return re.reference === Y.currentTarget;
|
118550
118552
|
});
|
118551
118553
|
V.state.$$activeSingletonInstance = ae.instance, S(ae.content);
|
118552
118554
|
}
|
@@ -118559,30 +118561,30 @@ function K1t(t) {
|
|
118559
118561
|
};
|
118560
118562
|
}
|
118561
118563
|
}));
|
118562
|
-
var
|
118564
|
+
var q = [l].concat(r ? [r.type] : []);
|
118563
118565
|
return sk(function() {
|
118564
118566
|
var Z = l;
|
118565
118567
|
l && l.hasOwnProperty("current") && (Z = l.current);
|
118566
|
-
var
|
118568
|
+
var U = t(Z || D.ref || sF(), Object.assign({}, R, {
|
118567
118569
|
plugins: [Y1t].concat(j.plugins || [])
|
118568
118570
|
}));
|
118569
|
-
return D.instance =
|
118570
|
-
instance:
|
118571
|
+
return D.instance = U, u && U.disable(), s && U.show(), m && a.hook({
|
118572
|
+
instance: U,
|
118571
118573
|
content: i,
|
118572
118574
|
props: R,
|
118573
118575
|
setSingletonContent: S
|
118574
118576
|
}), k(!0), function() {
|
118575
|
-
|
118577
|
+
U.destroy(), a == null || a.cleanup(U);
|
118576
118578
|
};
|
118577
|
-
},
|
118579
|
+
}, q), sk(function() {
|
118578
118580
|
var Z;
|
118579
118581
|
if (D.renders === 1) {
|
118580
118582
|
D.renders++;
|
118581
118583
|
return;
|
118582
118584
|
}
|
118583
|
-
var
|
118584
|
-
|
118585
|
-
instance:
|
118585
|
+
var U = D.instance;
|
118586
|
+
U.setProps(G1t(U.props, R)), (Z = U.popperInstance) == null || Z.forceUpdate(), u ? U.disable() : U.enable(), p && (s ? U.show() : U.hide()), m && a.hook({
|
118587
|
+
instance: U,
|
118586
118588
|
content: i,
|
118587
118589
|
props: R,
|
118588
118590
|
setSingletonContent: S
|
@@ -118590,10 +118592,10 @@ function K1t(t) {
|
|
118590
118592
|
}), sk(function() {
|
118591
118593
|
var Z;
|
118592
118594
|
if (o) {
|
118593
|
-
var
|
118594
|
-
|
118595
|
-
popperOptions: Object.assign({},
|
118596
|
-
modifiers: [].concat((((Z =
|
118595
|
+
var U = D.instance;
|
118596
|
+
U.setProps({
|
118597
|
+
popperOptions: Object.assign({}, U.props.popperOptions, {
|
118598
|
+
modifiers: [].concat((((Z = U.props.popperOptions) == null ? void 0 : Z.modifiers) || []).filter(function(V) {
|
118597
118599
|
var Y = V.name;
|
118598
118600
|
return Y !== "$$tippyReact";
|
118599
118601
|
}), [{
|
@@ -118602,20 +118604,20 @@ function K1t(t) {
|
|
118602
118604
|
phase: "beforeWrite",
|
118603
118605
|
requires: ["computeStyles"],
|
118604
118606
|
fn: function(Y) {
|
118605
|
-
var ae, G = Y.state,
|
118606
|
-
(w.placement !== G.placement || w.referenceHidden !== (
|
118607
|
+
var ae, G = Y.state, re = (ae = G.modifiersData) == null ? void 0 : ae.hide;
|
118608
|
+
(w.placement !== G.placement || w.referenceHidden !== (re == null ? void 0 : re.isReferenceHidden) || w.escaped !== (re == null ? void 0 : re.hasPopperEscaped)) && x({
|
118607
118609
|
placement: G.placement,
|
118608
|
-
referenceHidden:
|
118609
|
-
escaped:
|
118610
|
+
referenceHidden: re == null ? void 0 : re.isReferenceHidden,
|
118611
|
+
escaped: re == null ? void 0 : re.hasPopperEscaped
|
118610
118612
|
}), G.attributes.popper = {};
|
118611
118613
|
}
|
118612
118614
|
}])
|
118613
118615
|
})
|
118614
118616
|
});
|
118615
118617
|
}
|
118616
|
-
}, [w.placement, w.referenceHidden, w.escaped].concat(
|
118617
|
-
ref: function(
|
118618
|
-
D.ref =
|
118618
|
+
}, [w.placement, w.referenceHidden, w.escaped].concat(q)), /* @__PURE__ */ Me.createElement(Me.Fragment, null, r ? /* @__PURE__ */ R2(r, {
|
118619
|
+
ref: function(U) {
|
118620
|
+
D.ref = U, cA(r.ref, U);
|
118619
118621
|
}
|
118620
118622
|
}) : null, b && /* @__PURE__ */ l_(o ? o(U1t(w), L, D.instance) : i, D.container));
|
118621
118623
|
}
|
@@ -120857,10 +120859,10 @@ function Aft(t, e, n, r) {
|
|
120857
120859
|
const w = t.sCount[l] + h - (t.bMarks[l] + t.tShift[l]);
|
120858
120860
|
let x = w;
|
120859
120861
|
for (; s < i; ) {
|
120860
|
-
const
|
120861
|
-
if (
|
120862
|
+
const U = t.src.charCodeAt(s);
|
120863
|
+
if (U === 9)
|
120862
120864
|
x += 4 - (x + t.bsCount[l]) % 4;
|
120863
|
-
else if (
|
120865
|
+
else if (U === 32)
|
120864
120866
|
x++;
|
120865
120867
|
else
|
120866
120868
|
break;
|
@@ -120873,12 +120875,12 @@ function Aft(t, e, n, r) {
|
|
120873
120875
|
o = t.push("list_item_open", "li", 1), o.markup = String.fromCharCode(p);
|
120874
120876
|
const D = [l, 0];
|
120875
120877
|
o.map = D, f && (o.info = t.src.slice(a, h - 1));
|
120876
|
-
const j = t.tight, R = t.tShift[l], H = t.sCount[l],
|
120877
|
-
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 || b) && (c = !1), b = t.line - l > 1 && t.isEmpty(t.line - 1), t.blkIndent = t.listIndent, t.listIndent =
|
120878
|
+
const j = t.tight, R = t.tShift[l], H = t.sCount[l], q = t.listIndent;
|
120879
|
+
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 || b) && (c = !1), b = t.line - l > 1 && t.isEmpty(t.line - 1), t.blkIndent = t.listIndent, t.listIndent = q, t.tShift[l] = R, t.sCount[l] = H, t.tight = j, o = t.push("list_item_close", "li", -1), o.markup = String.fromCharCode(p), l = t.line, D[1] = l, l >= n || t.sCount[l] < t.blkIndent || t.sCount[l] - t.blkIndent >= 4)
|
120878
120880
|
break;
|
120879
120881
|
let Z = !1;
|
120880
|
-
for (let
|
120881
|
-
if (k[
|
120882
|
+
for (let U = 0, V = k.length; U < V; U++)
|
120883
|
+
if (k[U](t, l, n, !0)) {
|
120882
120884
|
Z = !0;
|
120883
120885
|
break;
|
120884
120886
|
}
|
@@ -124158,18 +124160,18 @@ function Eie() {
|
|
124158
124160
|
e.isSupported = typeof Mie == "function" && typeof v == "function" && M && M.createHTMLDocument !== void 0;
|
124159
124161
|
const {
|
124160
124162
|
MUSTACHE_EXPR: H,
|
124161
|
-
ERB_EXPR:
|
124163
|
+
ERB_EXPR: q,
|
124162
124164
|
TMPLIT_EXPR: Z,
|
124163
|
-
DATA_ATTR:
|
124165
|
+
DATA_ATTR: U,
|
124164
124166
|
ARIA_ATTR: V,
|
124165
124167
|
IS_SCRIPT_OR_DATA: Y,
|
124166
124168
|
ATTR_WHITESPACE: ae,
|
124167
124169
|
CUSTOM_ELEMENT: G
|
124168
124170
|
} = VF;
|
124169
124171
|
let {
|
124170
|
-
IS_ALLOWED_URI:
|
124172
|
+
IS_ALLOWED_URI: re
|
124171
124173
|
} = VF, de = null;
|
124172
|
-
const
|
124174
|
+
const ie = rn({}, [...zF, ...bk, ...vk, ...wk, ...BF]);
|
124173
124175
|
let pe = null;
|
124174
124176
|
const oe = rn({}, [...FF, ...kk, ...HF, ...q3]);
|
124175
124177
|
let ge = Object.seal(Cie(null, {
|
@@ -124212,7 +124214,7 @@ function Eie() {
|
|
124212
124214
|
let se = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
124213
124215
|
if (!(dn && dn === se)) {
|
124214
124216
|
if ((!se || typeof se != "object") && (se = {}), se = Y1(se), gt = // eslint-disable-next-line unicorn/prefer-includes
|
124215
|
-
Ut.indexOf(se.PARSER_MEDIA_TYPE) === -1 ? vn : se.PARSER_MEDIA_TYPE, Rt = gt === "application/xhtml+xml" ? gk : q6, de = Ra(se, "ALLOWED_TAGS") ? rn({}, se.ALLOWED_TAGS, Rt) :
|
124217
|
+
Ut.indexOf(se.PARSER_MEDIA_TYPE) === -1 ? vn : se.PARSER_MEDIA_TYPE, Rt = gt === "application/xhtml+xml" ? gk : q6, de = Ra(se, "ALLOWED_TAGS") ? rn({}, se.ALLOWED_TAGS, Rt) : ie, pe = Ra(se, "ALLOWED_ATTR") ? rn({}, se.ALLOWED_ATTR, Rt) : oe, Bt = Ra(se, "ALLOWED_NAMESPACES") ? rn({}, se.ALLOWED_NAMESPACES, gk) : Dt, Ke = Ra(se, "ADD_URI_SAFE_ATTR") ? rn(Y1(zt), se.ADD_URI_SAFE_ATTR, Rt) : zt, Ee = Ra(se, "ADD_DATA_URI_TAGS") ? rn(Y1(_e), se.ADD_DATA_URI_TAGS, Rt) : _e, ze = Ra(se, "FORBID_CONTENTS") ? rn({}, se.FORBID_CONTENTS, Rt) : Ze, J = Ra(se, "FORBID_TAGS") ? rn({}, se.FORBID_TAGS, Rt) : {}, be = Ra(se, "FORBID_ATTR") ? rn({}, se.FORBID_ATTR, Rt) : {}, me = Ra(se, "USE_PROFILES") ? se.USE_PROFILES : !1, ke = se.ALLOW_ARIA_ATTR !== !1, Re = se.ALLOW_DATA_ATTR !== !1, Pe = se.ALLOW_UNKNOWN_PROTOCOLS || !1, Ae = se.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Le = se.SAFE_FOR_TEMPLATES || !1, Te = se.SAFE_FOR_XML !== !1, ce = se.WHOLE_DOCUMENT || !1, ee = se.RETURN_DOM || !1, De = se.RETURN_DOM_FRAGMENT || !1, W = se.RETURN_TRUSTED_TYPE || !1, Q = se.FORCE_BODY || !1, C = se.SANITIZE_DOM !== !1, P = se.SANITIZE_NAMED_PROPS || !1, te = se.KEEP_CONTENT !== !1, ue = se.IN_PLACE || !1, re = se.ALLOWED_URI_REGEXP || Aie, Ue = se.NAMESPACE || xe, nt = se.MATHML_TEXT_INTEGRATION_POINTS || nt, ft = se.HTML_INTEGRATION_POINTS || ft, ge = se.CUSTOM_ELEMENT_HANDLING || {}, se.CUSTOM_ELEMENT_HANDLING && rr(se.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (ge.tagNameCheck = se.CUSTOM_ELEMENT_HANDLING.tagNameCheck), se.CUSTOM_ELEMENT_HANDLING && rr(se.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (ge.attributeNameCheck = se.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), se.CUSTOM_ELEMENT_HANDLING && typeof se.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (ge.allowCustomizedBuiltInElements = se.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Le && (Re = !1), De && (ee = !0), me && (de = rn({}, BF), pe = [], me.html === !0 && (rn(de, zF), rn(pe, FF)), me.svg === !0 && (rn(de, bk), rn(pe, kk), rn(pe, q3)), me.svgFilters === !0 && (rn(de, vk), rn(pe, kk), rn(pe, q3)), me.mathMl === !0 && (rn(de, wk), rn(pe, HF), rn(pe, q3))), se.ADD_TAGS && (de === ie && (de = Y1(de)), rn(de, se.ADD_TAGS, Rt)), se.ADD_ATTR && (pe === oe && (pe = Y1(pe)), rn(pe, se.ADD_ATTR, Rt)), se.ADD_URI_SAFE_ATTR && rn(Ke, se.ADD_URI_SAFE_ATTR, Rt), se.FORBID_CONTENTS && (ze === Ze && (ze = Y1(ze)), rn(ze, se.FORBID_CONTENTS, Rt)), te && (de["#text"] = !0), ce && rn(de, ["html", "head", "body"]), de.table && (rn(de, ["tbody"]), delete J.tbody), se.TRUSTED_TYPES_POLICY) {
|
124216
124218
|
if (typeof se.TRUSTED_TYPES_POLICY.createHTML != "function")
|
124217
124219
|
throw Bp('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
124218
124220
|
if (typeof se.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
@@ -124329,7 +124331,7 @@ function Eie() {
|
|
124329
124331
|
}
|
124330
124332
|
return ci(se), !0;
|
124331
124333
|
}
|
124332
|
-
return se instanceof l && !Ks(se) || (Je === "noscript" || Je === "noembed" || Je === "noframes") && Ni(/<\/no(script|embed|frames)/i, se.innerHTML) ? (ci(se), !0) : (Le && se.nodeType === Hp.text && (Ne = se.textContent, _3([H,
|
124334
|
+
return se instanceof l && !Ks(se) || (Je === "noscript" || Je === "noembed" || Je === "noframes") && Ni(/<\/no(script|embed|frames)/i, se.innerHTML) ? (ci(se), !0) : (Le && se.nodeType === Hp.text && (Ne = se.textContent, _3([H, q, Z], (Xt) => {
|
124333
124335
|
Ne = zp(Ne, Xt, " ");
|
124334
124336
|
}), se.textContent !== Ne && (Op(e.removed, {
|
124335
124337
|
element: se.cloneNode()
|
@@ -124337,7 +124339,7 @@ function Eie() {
|
|
124337
124339
|
}, ct = function(se, Ne, Je) {
|
124338
124340
|
if (C && (Ne === "id" || Ne === "name") && (Je in n || Je in qn))
|
124339
124341
|
return !1;
|
124340
|
-
if (!(Re && !be[Ne] && Ni(
|
124342
|
+
if (!(Re && !be[Ne] && Ni(U, Ne))) {
|
124341
124343
|
if (!(ke && Ni(V, Ne))) {
|
124342
124344
|
if (!pe[Ne] || be[Ne]) {
|
124343
124345
|
if (
|
@@ -124349,7 +124351,7 @@ function Eie() {
|
|
124349
124351
|
Ne === "is" && ge.allowCustomizedBuiltInElements && (ge.tagNameCheck instanceof RegExp && Ni(ge.tagNameCheck, Je) || ge.tagNameCheck instanceof Function && ge.tagNameCheck(Je)))
|
124350
124352
|
) return !1;
|
124351
124353
|
} else if (!Ke[Ne]) {
|
124352
|
-
if (!Ni(
|
124354
|
+
if (!Ni(re, zp(Je, ae, ""))) {
|
124353
124355
|
if (!((Ne === "src" || Ne === "xlink:href" || Ne === "href") && se !== "script" && V2t(Je, "data:") === 0 && Ee[se])) {
|
124354
124356
|
if (!(Pe && !Ni(Y, zp(Je, ae, "")))) {
|
124355
124357
|
if (Je)
|
@@ -124395,7 +124397,7 @@ function Eie() {
|
|
124395
124397
|
Pa(Ft, se);
|
124396
124398
|
continue;
|
124397
124399
|
}
|
124398
|
-
Le && _3([H,
|
124400
|
+
Le && _3([H, q, Z], (Bj) => {
|
124399
124401
|
Ti = zp(Ti, Bj, " ");
|
124400
124402
|
});
|
124401
124403
|
const zj = Rt(se.nodeName);
|
@@ -124466,7 +124468,7 @@ function Eie() {
|
|
124466
124468
|
}
|
124467
124469
|
let sr = ce ? Ne.outerHTML : Ne.innerHTML;
|
124468
124470
|
return ce && de["!doctype"] && Ne.ownerDocument && Ne.ownerDocument.doctype && Ne.ownerDocument.doctype.name && Ni(Sie, Ne.ownerDocument.doctype.name) && (sr = "<!DOCTYPE " + Ne.ownerDocument.doctype.name + `>
|
124469
|
-
` + sr), Le && _3([H,
|
124471
|
+
` + sr), Le && _3([H, q, Z], (Ji) => {
|
124470
124472
|
sr = zp(sr, Ji, " ");
|
124471
124473
|
}), w && W ? w.createHTML(sr) : sr;
|
124472
124474
|
}, e.setConfig = function() {
|
@@ -125587,8 +125589,8 @@ function WF(t, e) {
|
|
125587
125589
|
const j = L[D], H = (j.textContent || "").match(/^\[([ x])\]\s*(.*)/i);
|
125588
125590
|
if (H) {
|
125589
125591
|
S = !0;
|
125590
|
-
const
|
125591
|
-
j.setAttribute("data-type", "taskItem"), j.setAttribute("data-checked",
|
125592
|
+
const q = H[1].toLowerCase() === "x", Z = H[2];
|
125593
|
+
j.setAttribute("data-type", "taskItem"), j.setAttribute("data-checked", q.toString()), j.textContent = Z;
|
125592
125594
|
}
|
125593
125595
|
}
|
125594
125596
|
S && M.setAttribute("data-type", "taskList");
|
@@ -130944,12 +130946,12 @@ var Xie = function(e) {
|
|
130944
130946
|
throw new Error(`Correct katexImagesData or update code here to support
|
130945
130947
|
` + L + " children.");
|
130946
130948
|
for (var R = 0; R < L; R++) {
|
130947
|
-
var H = new l1(v[R]),
|
130949
|
+
var H = new l1(v[R]), q = new Sc([H], {
|
130948
130950
|
width: "400em",
|
130949
130951
|
height: et(M),
|
130950
130952
|
viewBox: "0 0 " + o + " " + x,
|
130951
130953
|
preserveAspectRatio: D[R] + " slice"
|
130952
|
-
}), Z = ve.makeSvgSpan([S[R]], [
|
130954
|
+
}), Z = ve.makeSvgSpan([S[R]], [q], n);
|
130953
130955
|
if (L === 1)
|
130954
130956
|
return {
|
130955
130957
|
span: Z,
|
@@ -131884,22 +131886,22 @@ var im = function(e, n, r) {
|
|
131884
131886
|
r && (j *= i.sizeMultiplier);
|
131885
131887
|
var R = D / 2 - j, H = [];
|
131886
131888
|
if (f.length > 0) {
|
131887
|
-
var
|
131889
|
+
var q = D - m - v, Z = Math.round(D * 1e3), U = pmt(f, Math.round(q * 1e3)), V = new l1(f, U), Y = (d / 1e3).toFixed(3) + "em", ae = (Z / 1e3).toFixed(3) + "em", G = new Sc([V], {
|
131888
131890
|
width: Y,
|
131889
131891
|
height: ae,
|
131890
131892
|
viewBox: "0 0 " + d + " " + Z
|
131891
|
-
}),
|
131892
|
-
|
131893
|
+
}), re = ve.makeSvgSpan([], [G], i);
|
131894
|
+
re.height = Z / 1e3, re.style.width = Y, re.style.height = ae, H.push({
|
131893
131895
|
type: "elem",
|
131894
|
-
elem:
|
131896
|
+
elem: re
|
131895
131897
|
});
|
131896
131898
|
} else {
|
131897
131899
|
if (H.push(jk(u, h, s)), H.push(Q3), l === null) {
|
131898
131900
|
var de = D - m - v + 2 * CA;
|
131899
131901
|
H.push(Dk(c, de, i));
|
131900
131902
|
} else {
|
131901
|
-
var
|
131902
|
-
H.push(Dk(c,
|
131903
|
+
var ie = (D - m - v - w) / 2 + 2 * CA;
|
131904
|
+
H.push(Dk(c, ie, i)), H.push(Q3), H.push(jk(l, h, s)), H.push(Q3), H.push(Dk(c, ie, i));
|
131903
131905
|
}
|
131904
131906
|
H.push(Q3), H.push(jk(o, h, s));
|
131905
131907
|
}
|
@@ -132620,11 +132622,11 @@ var vl = function(e, n) {
|
|
132620
132622
|
var j = e.rowGaps[r], R = 0;
|
132621
132623
|
j && (R = Jn(j, n), R > 0 && (R += k, L < R && (L = R), R = 0)), e.addJot && (L += m), S.height = M, S.depth = L, v += M, S.pos = v, v += L + R, l[r] = S, w(a[r + 1]);
|
132622
132624
|
}
|
132623
|
-
var H = v / 2 + n.fontMetrics().axisHeight,
|
132625
|
+
var H = v / 2 + n.fontMetrics().axisHeight, q = e.cols || [], Z = [], U, V, Y = [];
|
132624
132626
|
if (e.tags && e.tags.some((De) => De))
|
132625
132627
|
for (r = 0; r < s; ++r) {
|
132626
|
-
var ae = l[r], G = ae.pos - H,
|
132627
|
-
|
132628
|
+
var ae = l[r], G = ae.pos - H, re = e.tags[r], de = void 0;
|
132629
|
+
re === !0 ? de = ve.makeSpan(["eqn-num"], [], n) : re === !1 ? de = ve.makeSpan([], [], n) : de = ve.makeSpan([], Rr(re, n, !0), n), de.depth = ae.depth, de.height = ae.height, Y.push({
|
132628
132630
|
type: "elem",
|
132629
132631
|
elem: de,
|
132630
132632
|
shift: G
|
@@ -132634,22 +132636,22 @@ var vl = function(e, n) {
|
|
132634
132636
|
i = 0, V = 0;
|
132635
132637
|
// Continue while either there are more columns or more column
|
132636
132638
|
// descriptions, so trailing separators don't get lost.
|
132637
|
-
i < o || V <
|
132639
|
+
i < o || V < q.length;
|
132638
132640
|
++i, ++V
|
132639
132641
|
) {
|
132640
|
-
for (var
|
132641
|
-
if (pe || (
|
132642
|
-
var oe =
|
132642
|
+
for (var ie = q[V] || {}, pe = !0; ie.type === "separator"; ) {
|
132643
|
+
if (pe || (U = ve.makeSpan(["arraycolsep"], []), U.style.width = et(n.fontMetrics().doubleRuleSep), Z.push(U)), ie.separator === "|" || ie.separator === ":") {
|
132644
|
+
var oe = ie.separator === "|" ? "solid" : "dashed", ge = ve.makeSpan(["vertical-separator"], [], n);
|
132643
132645
|
ge.style.height = et(v), ge.style.borderRightWidth = et(u), ge.style.borderRightStyle = oe, ge.style.margin = "0 " + et(-u / 2);
|
132644
132646
|
var J = v - H;
|
132645
132647
|
J && (ge.style.verticalAlign = et(-J)), Z.push(ge);
|
132646
132648
|
} else
|
132647
|
-
throw new Ge("Invalid separator type: " +
|
132648
|
-
V++,
|
132649
|
+
throw new Ge("Invalid separator type: " + ie.separator);
|
132650
|
+
V++, ie = q[V] || {}, pe = !1;
|
132649
132651
|
}
|
132650
132652
|
if (!(i >= o)) {
|
132651
132653
|
var be = void 0;
|
132652
|
-
(i > 0 || e.hskipBeforeAndAfter) && (be = Mt.deflt(
|
132654
|
+
(i > 0 || e.hskipBeforeAndAfter) && (be = Mt.deflt(ie.pregap, d), be !== 0 && (U = ve.makeSpan(["arraycolsep"], []), U.style.width = et(be), Z.push(U)));
|
132653
132655
|
var ke = [];
|
132654
132656
|
for (r = 0; r < s; ++r) {
|
132655
132657
|
var Re = l[r], Pe = Re[i];
|
@@ -132665,7 +132667,7 @@ var vl = function(e, n) {
|
|
132665
132667
|
ke = ve.makeVList({
|
132666
132668
|
positionType: "individualShift",
|
132667
132669
|
children: ke
|
132668
|
-
}, n), ke = ve.makeSpan(["col-align-" + (
|
132670
|
+
}, n), ke = ve.makeSpan(["col-align-" + (ie.align || "c")], [ke]), Z.push(ke), (i < o - 1 || e.hskipBeforeAndAfter) && (be = Mt.deflt(ie.postgap, d), be !== 0 && (U = ve.makeSpan(["arraycolsep"], []), U.style.width = et(be), Z.push(U)));
|
132669
132671
|
}
|
132670
132672
|
}
|
132671
132673
|
if (l = ve.makeSpan(["mtable"], Z), c.length > 0) {
|
@@ -139128,10 +139130,10 @@ function rgt({ pluginKey: t = ngt, editor: e, char: n = "@", allowSpaces: r = !1
|
|
139128
139130
|
return {
|
139129
139131
|
update: async (b, k) => {
|
139130
139132
|
var v, w, x, M, L, S, D;
|
139131
|
-
const j = (v = this.key) === null || v === void 0 ? void 0 : v.getState(k), R = (w = this.key) === null || w === void 0 ? void 0 : w.getState(b.state), H = j.active && R.active && j.range.from !== R.range.from,
|
139133
|
+
const j = (v = this.key) === null || v === void 0 ? void 0 : v.getState(k), R = (w = this.key) === null || w === void 0 ? void 0 : w.getState(b.state), H = j.active && R.active && j.range.from !== R.range.from, q = !j.active && R.active, Z = j.active && !R.active, U = !q && !Z && j.query !== R.query, V = q || H && U, Y = U || H, ae = Z || H && U;
|
139132
139134
|
if (!V && !Y && !ae)
|
139133
139135
|
return;
|
139134
|
-
const G = ae && !V ? j : R,
|
139136
|
+
const G = ae && !V ? j : R, re = b.dom.querySelector(`[data-decoration-id="${G.decorationId}"]`);
|
139135
139137
|
p = {
|
139136
139138
|
editor: e,
|
139137
139139
|
range: G.range,
|
@@ -139143,12 +139145,12 @@ function rgt({ pluginKey: t = ngt, editor: e, char: n = "@", allowSpaces: r = !1
|
|
139143
139145
|
range: G.range,
|
139144
139146
|
props: de
|
139145
139147
|
}),
|
139146
|
-
decorationNode:
|
139148
|
+
decorationNode: re,
|
139147
139149
|
// virtual node for popper.js or tippy.js
|
139148
139150
|
// this can be used for building popups without a DOM node
|
139149
|
-
clientRect:
|
139151
|
+
clientRect: re ? () => {
|
139150
139152
|
var de;
|
139151
|
-
const { decorationId:
|
139153
|
+
const { decorationId: ie } = (de = this.key) === null || de === void 0 ? void 0 : de.getState(e.state), pe = b.dom.querySelector(`[data-decoration-id="${ie}"]`);
|
139152
139154
|
return (pe == null ? void 0 : pe.getBoundingClientRect()) || null;
|
139153
139155
|
} : null
|
139154
139156
|
}, V && ((x = m == null ? void 0 : m.onBeforeStart) === null || x === void 0 || x.call(m, p)), Y && ((M = m == null ? void 0 : m.onBeforeUpdate) === null || M === void 0 || M.call(m, p)), (Y || V) && (p.items = await u({
|
@@ -140146,7 +140148,7 @@ const Uk = TA.getInstance(), Ogt = (t) => ({
|
|
140146
140148
|
Be(() => {
|
140147
140149
|
S && R(S);
|
140148
140150
|
}, [S]);
|
140149
|
-
const [H,
|
140151
|
+
const [H, q] = Oe([]), [Z, U] = Oe([
|
140150
140152
|
...Yyt(
|
140151
140153
|
(Q) => u == null ? void 0 : u(Q),
|
140152
140154
|
h
|
@@ -140167,21 +140169,21 @@ const Uk = TA.getInstance(), Ogt = (t) => ({
|
|
140167
140169
|
})
|
140168
140170
|
]);
|
140169
140171
|
Be(() => {
|
140170
|
-
|
140172
|
+
U((Q) => [
|
140171
140173
|
...Q.filter((ee) => ee.name !== "table"),
|
140172
140174
|
Bre.configure({
|
140173
140175
|
resizable: !t
|
140174
140176
|
})
|
140175
140177
|
]);
|
140176
140178
|
}, [t]);
|
140177
|
-
const V = Xe(!1), [Y, ae] = Oe(!0), [G,
|
140179
|
+
const V = Xe(!1), [Y, ae] = Oe(!0), [G, re] = Oe([]), de = (Q, ee, De) => {
|
140178
140180
|
let W = !1;
|
140179
140181
|
return Q.doc.nodesBetween(ee, De, (C) => {
|
140180
140182
|
C.marks && C.marks.some(
|
140181
140183
|
(P) => P.type.name === "highlight" && P.attrs.color === "yellow"
|
140182
140184
|
) && (W = !0);
|
140183
140185
|
}), W;
|
140184
|
-
},
|
140186
|
+
}, ie = (Q, ee) => {
|
140185
140187
|
var W;
|
140186
140188
|
const De = ee.target;
|
140187
140189
|
if (De && De.nodeName === "MARK" && De.dataset.color && ((W = De == null ? void 0 : De.dataset) == null ? void 0 : W.color) === "yellow") {
|
@@ -140210,7 +140212,7 @@ const Uk = TA.getInstance(), Ogt = (t) => ({
|
|
140210
140212
|
editorProps: {
|
140211
140213
|
...Fst,
|
140212
140214
|
handleDOMEvents: {
|
140213
|
-
mouseover:
|
140215
|
+
mouseover: ie,
|
140214
140216
|
keydown: (Q, ee) => {
|
140215
140217
|
if (["ArrowUp", "ArrowDown", "Enter"].includes(ee.key) && document.querySelector("#slash-command"))
|
140216
140218
|
return !0;
|
@@ -140220,7 +140222,7 @@ const Uk = TA.getInstance(), Ogt = (t) => ({
|
|
140220
140222
|
}
|
140221
140223
|
},
|
140222
140224
|
handleClick: (Q, ee, De) => {
|
140223
|
-
|
140225
|
+
ie(Q, De);
|
140224
140226
|
}
|
140225
140227
|
},
|
140226
140228
|
autofocus: b ? !1 : "start",
|
@@ -140230,12 +140232,12 @@ const Uk = TA.getInstance(), Ogt = (t) => ({
|
|
140230
140232
|
[Z, x]
|
140231
140233
|
);
|
140232
140234
|
Be(() => {
|
140233
|
-
M != null && M.TableOfContents && !Z.some((Q) => Q.name === "tableOfContents") &&
|
140235
|
+
M != null && M.TableOfContents && !Z.some((Q) => Q.name === "tableOfContents") && U([
|
140234
140236
|
...Z.filter((Q) => Q.name !== "tableOfContents"),
|
140235
140237
|
M.TableOfContents.configure({
|
140236
140238
|
getIndex: M.getHierarchicalIndexes,
|
140237
140239
|
onUpdate(Q) {
|
140238
|
-
|
140240
|
+
q(Q);
|
140239
140241
|
}
|
140240
140242
|
})
|
140241
140243
|
]);
|
@@ -140257,7 +140259,7 @@ const Uk = TA.getInstance(), Ogt = (t) => ({
|
|
140257
140259
|
"wss://fileverse-signaling-server-0529292ff51c.herokuapp.com/"
|
140258
140260
|
]
|
140259
140261
|
});
|
140260
|
-
return
|
140262
|
+
return U([
|
140261
140263
|
...Z.filter((W) => W.name !== "history"),
|
140262
140264
|
pat.configure({
|
140263
140265
|
provider: De,
|
@@ -140366,9 +140368,9 @@ const Uk = TA.getInstance(), Ogt = (t) => ({
|
|
140366
140368
|
setActiveCommentId: D,
|
140367
140369
|
focusCommentWithActiveId: R,
|
140368
140370
|
slides: G,
|
140369
|
-
setSlides:
|
140371
|
+
setSlides: re,
|
140370
140372
|
tocItems: H,
|
140371
|
-
setTocItems:
|
140373
|
+
setTocItems: q
|
140372
140374
|
};
|
140373
140375
|
}, XN = nr({});
|
140374
140376
|
function $N(t) {
|
@@ -143188,7 +143190,7 @@ function T5t(t) {
|
|
143188
143190
|
const j = Array.isArray(v) ? v : [v];
|
143189
143191
|
let R = j.reduce(i(b), {});
|
143190
143192
|
x === !1 && (R = {});
|
143191
|
-
const { prevResolvedValues: H = {} } = k,
|
143193
|
+
const { prevResolvedValues: H = {} } = k, q = {
|
143192
143194
|
...H,
|
143193
143195
|
...R
|
143194
143196
|
}, Z = (Y) => {
|
@@ -143196,12 +143198,12 @@ function T5t(t) {
|
|
143196
143198
|
const ae = t.getValue(Y);
|
143197
143199
|
ae && (ae.liveStyle = !1);
|
143198
143200
|
};
|
143199
|
-
for (const Y in
|
143201
|
+
for (const Y in q) {
|
143200
143202
|
const ae = R[Y], G = H[Y];
|
143201
143203
|
if (h.hasOwnProperty(Y))
|
143202
143204
|
continue;
|
143203
|
-
let
|
143204
|
-
NA(ae) && NA(G) ?
|
143205
|
+
let re = !1;
|
143206
|
+
NA(ae) && NA(G) ? re = !pae(ae, G) : re = ae !== G, re ? ae != null ? Z(Y) : d.add(Y) : ae !== void 0 && d.has(Y) ? Z(Y) : k.protectedKeys[Y] = !0;
|
143205
143207
|
}
|
143206
143208
|
k.prevProp = v, k.prevResolvedValues = R, k.isActive && (h = { ...h, ...R }), r && t.blockInitialAnimation && (S = !1), S && (!(M && L) || D) && f.push(...j.map((Y) => ({
|
143207
143209
|
animation: Y,
|
@@ -145738,13 +145740,13 @@ function S8t(t, e = {}) {
|
|
145738
145740
|
(R, H) => R + f(H),
|
145739
145741
|
0
|
145740
145742
|
);
|
145741
|
-
D.length > 10 ? e_(L).forEach((H,
|
145742
|
-
(
|
145743
|
+
D.length > 10 ? e_(L).forEach((H, q) => {
|
145744
|
+
(q > 0 || d(H, l)) && p(), l.push({
|
145743
145745
|
type: "content",
|
145744
145746
|
content: Qi.render(H)
|
145745
145747
|
});
|
145746
|
-
}) : D.length < 10 && j > 50 ? e_(L, 6).forEach((H,
|
145747
|
-
(
|
145748
|
+
}) : D.length < 10 && j > 50 ? e_(L, 6).forEach((H, q) => {
|
145749
|
+
(q > 0 || d(H, l)) && p(), l.push({
|
145748
145750
|
type: "content",
|
145749
145751
|
content: Qi.render(H)
|
145750
145752
|
});
|
@@ -145838,9 +145840,9 @@ function S8t(t, e = {}) {
|
|
145838
145840
|
const S = l.length > 0 && l[0].type === "h2" && l.length > 1, j = l.reduce((R, H) => {
|
145839
145841
|
if (H.type === "content") {
|
145840
145842
|
const Z = H.content.split(`
|
145841
|
-
`).filter((
|
145843
|
+
`).filter((U) => U.trim().length > 0).reduce((U, V) => {
|
145842
145844
|
const Y = V.replace(/<[^>]+>/g, ""), ae = Math.ceil(Y.length / 200);
|
145843
|
-
return
|
145845
|
+
return U + Math.max(1, ae);
|
145844
145846
|
}, 0);
|
145845
145847
|
return R + Z;
|
145846
145848
|
}
|
@@ -145951,14 +145953,14 @@ const t_ = ({
|
|
145951
145953
|
return;
|
145952
145954
|
}
|
145953
145955
|
v(!0);
|
145954
|
-
const de = p8t(t),
|
145956
|
+
const de = p8t(t), ie = S8t(de, {
|
145955
145957
|
preserveNewlines: !0,
|
145956
145958
|
sanitize: !0,
|
145957
145959
|
maxCharsPerSlide: 1e3,
|
145958
145960
|
maxWordsPerSlide: 250,
|
145959
145961
|
maxLinesPerSlide: 7
|
145960
145962
|
}), pe = document.createElement("div");
|
145961
|
-
pe.innerHTML =
|
145963
|
+
pe.innerHTML = ie;
|
145962
145964
|
const oe = [];
|
145963
145965
|
let ge = [];
|
145964
145966
|
if (pe.childNodes.forEach((be) => {
|
@@ -145984,20 +145986,20 @@ const t_ = ({
|
|
145984
145986
|
return () => clearTimeout(J);
|
145985
145987
|
}, [t]), Be(() => {
|
145986
145988
|
const G = {};
|
145987
|
-
return u.forEach((
|
145989
|
+
return u.forEach((re, de) => {
|
145988
145990
|
G[de] = new Zq({
|
145989
145991
|
extensions: t.extensionManager.extensions.filter(
|
145990
|
-
(
|
145992
|
+
(ie) => ie.name !== "collaboration"
|
145991
145993
|
),
|
145992
145994
|
editable: !1
|
145993
145995
|
}), setTimeout(() => {
|
145994
145996
|
G[de].commands.setContent(u[de]);
|
145995
145997
|
});
|
145996
145998
|
}), b(G), () => {
|
145997
|
-
Object.values(G).forEach((
|
145999
|
+
Object.values(G).forEach((re) => re.destroy());
|
145998
146000
|
};
|
145999
146001
|
}, [u]);
|
146000
|
-
const
|
146002
|
+
const q = xt(() => {
|
146001
146003
|
w ? r((G) => !G) : document.fullscreenElement ? document.exitFullscreen ? document.exitFullscreen().then(() => r(!1)).catch(() => {
|
146002
146004
|
r(!1);
|
146003
146005
|
}) : r(!1) : document.documentElement.requestFullscreen ? document.documentElement.requestFullscreen().then(() => r(!0)).catch(() => {
|
@@ -146005,9 +146007,9 @@ const t_ = ({
|
|
146005
146007
|
}) : r(!0);
|
146006
146008
|
}, [w]), Z = xt(
|
146007
146009
|
(G) => {
|
146008
|
-
G.key === "ArrowRight" || G.key === "ArrowDown" || G.code === "Space" ? (G.preventDefault(), G.stopPropagation(), R("forward"), m((
|
146010
|
+
G.key === "ArrowRight" || G.key === "ArrowDown" || G.code === "Space" ? (G.preventDefault(), G.stopPropagation(), R("forward"), m((re) => Math.min(re + 1, u.length - 1))) : G.key === "ArrowLeft" || G.key === "ArrowUp" ? (R("backward"), m((re) => Math.max(re - 1, 0))) : G.key === "Escape" ? !o && e() : (G.key === "f" || G.key === "F") && q();
|
146009
146011
|
},
|
146010
|
-
[u.length, e,
|
146012
|
+
[u.length, e, q]
|
146011
146013
|
);
|
146012
146014
|
Be(() => (window.addEventListener("keydown", Z), () => window.removeEventListener("keydown", Z)), [u.length, p]), Be(() => () => {
|
146013
146015
|
H && H.destroy();
|
@@ -146019,14 +146021,14 @@ const t_ = ({
|
|
146019
146021
|
document.removeEventListener("fullscreenchange", G);
|
146020
146022
|
};
|
146021
146023
|
}, [w]);
|
146022
|
-
const
|
146024
|
+
const U = (G) => {
|
146023
146025
|
S(null), M(G.targetTouches[0].clientX);
|
146024
146026
|
}, V = (G) => {
|
146025
146027
|
S(G.targetTouches[0].clientX);
|
146026
146028
|
}, Y = xt(() => {
|
146027
146029
|
if (!x || !L) return;
|
146028
|
-
const G = x - L,
|
146029
|
-
|
146030
|
+
const G = x - L, re = G > D, de = G < -50;
|
146031
|
+
re && (R("forward"), m((ie) => Math.min(ie + 1, u.length - 1))), de && (R("backward"), m((ie) => Math.max(ie - 1, 0)));
|
146030
146032
|
}, [x, L, u.length, D]), ae = () => {
|
146031
146033
|
if (a) {
|
146032
146034
|
x8t(a), h(!0), c == null || c();
|
@@ -146137,7 +146139,7 @@ const t_ = ({
|
|
146137
146139
|
Nn,
|
146138
146140
|
{
|
146139
146141
|
variant: "ghost",
|
146140
|
-
onClick:
|
146142
|
+
onClick: q,
|
146141
146143
|
icon: n ? "Minimize2" : "Play",
|
146142
146144
|
size: "md"
|
146143
146145
|
}
|
@@ -146179,7 +146181,7 @@ const t_ = ({
|
|
146179
146181
|
{
|
146180
146182
|
content: u[p],
|
146181
146183
|
editor: H,
|
146182
|
-
onTouchStart:
|
146184
|
+
onTouchStart: U,
|
146183
146185
|
onTouchMove: V,
|
146184
146186
|
onTouchEnd: Y,
|
146185
146187
|
isFullscreen: n
|
@@ -146192,7 +146194,7 @@ const t_ = ({
|
|
146192
146194
|
{
|
146193
146195
|
content: u[p],
|
146194
146196
|
editor: H,
|
146195
|
-
onTouchStart:
|
146197
|
+
onTouchStart: U,
|
146196
146198
|
onTouchMove: V,
|
146197
146199
|
onTouchEnd: Y,
|
146198
146200
|
isFullscreen: n
|
@@ -146212,7 +146214,7 @@ const t_ = ({
|
|
146212
146214
|
Nn,
|
146213
146215
|
{
|
146214
146216
|
variant: "ghost",
|
146215
|
-
onClick:
|
146217
|
+
onClick: q,
|
146216
146218
|
icon: "X",
|
146217
146219
|
size: "md"
|
146218
146220
|
}
|
@@ -146360,30 +146362,23 @@ const t_ = ({
|
|
146360
146362
|
connectViaWallet: j,
|
146361
146363
|
isLoading: R,
|
146362
146364
|
connectViaUsername: H,
|
146363
|
-
isDDocOwner:
|
146364
|
-
} = Rf(), { isNativeMobile: Z } = tp(), V = i.filter((G) => !G.deleted).filter((G) => m ? !0 : !G.resolved).sort(
|
146365
|
-
(G, ie) => new Date(G.createdAt).getTime() - new Date(ie.createdAt).getTime()
|
146366
|
-
), Y = (G) => {
|
146365
|
+
isDDocOwner: q
|
146366
|
+
} = Rf(), { isNativeMobile: Z } = tp(), V = i.filter((G) => !G.deleted).filter((G) => m ? !0 : !G.resolved).sort((G, re) => (re == null ? void 0 : re.commentIndex) - (G == null ? void 0 : G.commentIndex)), Y = (G) => {
|
146367
146367
|
o(G);
|
146368
146368
|
}, ae = aT(s);
|
146369
146369
|
return Be(() => {
|
146370
|
-
if (g.current && r)
|
146371
|
-
|
146372
|
-
|
146373
|
-
|
146374
|
-
|
146375
|
-
G
|
146376
|
-
|
146377
|
-
|
146378
|
-
block: "center"
|
146379
|
-
});
|
146380
|
-
});
|
146381
|
-
} else
|
146382
|
-
g.current.scrollTo({
|
146383
|
-
top: g.current.scrollHeight,
|
146384
|
-
behavior: "smooth"
|
146370
|
+
if (g.current && r && t) {
|
146371
|
+
const G = g.current.querySelector(
|
146372
|
+
`[data-comment-id="${t}"]`
|
146373
|
+
);
|
146374
|
+
G && setTimeout(() => {
|
146375
|
+
G.scrollIntoView({
|
146376
|
+
behavior: "smooth",
|
146377
|
+
block: "center"
|
146385
146378
|
});
|
146386
|
-
|
146379
|
+
});
|
146380
|
+
}
|
146381
|
+
}, [t, g, r]), D ? /* @__PURE__ */ T.jsxs(
|
146387
146382
|
"div",
|
146388
146383
|
{
|
146389
146384
|
className: Se(
|
@@ -146398,7 +146393,7 @@ const t_ = ({
|
|
146398
146393
|
ref: g,
|
146399
146394
|
className: "flex flex-col overflow-y-auto no-scrollbar flex-1",
|
146400
146395
|
children: V.map((G) => {
|
146401
|
-
var
|
146396
|
+
var re;
|
146402
146397
|
return /* @__PURE__ */ T.jsxs(
|
146403
146398
|
"div",
|
146404
146399
|
{
|
@@ -146424,7 +146419,7 @@ const t_ = ({
|
|
146424
146419
|
onDelete: S,
|
146425
146420
|
isResolved: G.resolved,
|
146426
146421
|
isDisabled: G && !Object.hasOwn(G, "commentIndex"),
|
146427
|
-
isCommentOwner: G.username === s ||
|
146422
|
+
isCommentOwner: G.username === s || q,
|
146428
146423
|
version: G.version
|
146429
146424
|
}
|
146430
146425
|
),
|
@@ -146445,7 +146440,7 @@ const t_ = ({
|
|
146445
146440
|
},
|
146446
146441
|
className: Se(
|
146447
146442
|
"w-full h-9 rounded-full color-bg-secondary flex items-center justify-center gap-2 mt-3",
|
146448
|
-
((
|
146443
|
+
((re = G.replies) == null ? void 0 : re.length) === 0 && "hidden"
|
146449
146444
|
),
|
146450
146445
|
variant: "ghost",
|
146451
146446
|
children: [
|
@@ -146514,7 +146509,7 @@ const t_ = ({
|
|
146514
146509
|
/* @__PURE__ */ T.jsx(
|
146515
146510
|
I8,
|
146516
146511
|
{
|
146517
|
-
src: ae.isEns ? oT :
|
146512
|
+
src: ae.isEns ? oT : void 0,
|
146518
146513
|
size: "sm",
|
146519
146514
|
className: "min-w-6"
|
146520
146515
|
}
|
@@ -146681,14 +146676,14 @@ const t_ = ({
|
|
146681
146676
|
(l) => l.id === e
|
146682
146677
|
), o = {
|
146683
146678
|
shouldShow: ({ editor: l }) => {
|
146684
|
-
var
|
146685
|
-
const c = (
|
146686
|
-
if (
|
146687
|
-
const
|
146688
|
-
l.commands.setCommentActive(
|
146679
|
+
var d, h;
|
146680
|
+
const c = (d = l.getAttributes("comment")) == null ? void 0 : d.resolved, u = l.view.hasFocus(), f = l.isActive("comment") && !c && u;
|
146681
|
+
if (f) {
|
146682
|
+
const p = (h = l.getAttributes("comment")) == null ? void 0 : h.commentId;
|
146683
|
+
l.commands.setCommentActive(p);
|
146689
146684
|
} else
|
146690
146685
|
l.commands.unsetCommentActive();
|
146691
|
-
return
|
146686
|
+
return f;
|
146692
146687
|
},
|
146693
146688
|
onHide: ({ editor: l }) => {
|
146694
146689
|
l.commands.unsetCommentActive();
|
@@ -146704,7 +146699,8 @@ const t_ = ({
|
|
146704
146699
|
followCursor: "vertical",
|
146705
146700
|
interactive: !0,
|
146706
146701
|
inertia: !0,
|
146707
|
-
trigger: "
|
146702
|
+
trigger: "manual",
|
146703
|
+
hideOnClick: !0,
|
146708
146704
|
inlinePositioning: !0,
|
146709
146705
|
popperOptions: {
|
146710
146706
|
strategy: "fixed",
|
@@ -146918,16 +146914,16 @@ const t_ = ({
|
|
146918
146914
|
inlineCommentData: j,
|
146919
146915
|
enableIndexeddbSync: R,
|
146920
146916
|
ddocId: H,
|
146921
|
-
zoomLevel:
|
146917
|
+
zoomLevel: q,
|
146922
146918
|
setZoomLevel: Z,
|
146923
|
-
isPresentationMode:
|
146919
|
+
isPresentationMode: U,
|
146924
146920
|
setIsPresentationMode: V,
|
146925
146921
|
isNavbarVisible: Y,
|
146926
146922
|
setIsNavbarVisible: ae,
|
146927
146923
|
onComment: G,
|
146928
|
-
onInlineComment:
|
146924
|
+
onInlineComment: re,
|
146929
146925
|
onMarkdownExport: de,
|
146930
|
-
onMarkdownImport:
|
146926
|
+
onMarkdownImport: ie,
|
146931
146927
|
editorCanvasClassNames: pe,
|
146932
146928
|
sharedSlidesLink: oe,
|
146933
146929
|
documentName: ge,
|
@@ -146993,13 +146989,13 @@ const t_ = ({
|
|
146993
146989
|
setIsCommentSectionOpen: S,
|
146994
146990
|
setInlineCommentData: D,
|
146995
146991
|
inlineCommentData: j,
|
146996
|
-
zoomLevel:
|
146992
|
+
zoomLevel: q,
|
146997
146993
|
setZoomLevel: Z,
|
146998
146994
|
isNavbarVisible: Y,
|
146999
146995
|
setIsNavbarVisible: ae,
|
147000
146996
|
onInvalidContentError: J,
|
147001
146997
|
ignoreCorruptedData: be,
|
147002
|
-
isPresentationMode:
|
146998
|
+
isPresentationMode: U,
|
147003
146999
|
proExtensions: C
|
147004
147000
|
});
|
147005
147001
|
o_(
|
@@ -147079,10 +147075,10 @@ const t_ = ({
|
|
147079
147075
|
className: Nt(
|
147080
147076
|
"h-[100vh] bg-[#f8f9fa] w-full overflow-y-auto",
|
147081
147077
|
{
|
147082
|
-
"overflow-x-hidden no-scrollbar":
|
147083
|
-
"overflow-x-auto scroll-container":
|
147078
|
+
"overflow-x-hidden no-scrollbar": q !== "2",
|
147079
|
+
"overflow-x-auto scroll-container": q === "2"
|
147084
147080
|
},
|
147085
|
-
|
147081
|
+
U ? "bg-[#ffffff]" : "bg-[#f8f9fa]",
|
147086
147082
|
pe
|
147087
147083
|
),
|
147088
147084
|
children: [
|
@@ -147094,7 +147090,7 @@ const t_ = ({
|
|
147094
147090
|
"h-14 bg-[#ffffff] py-2 px-4 flex gap-[40px] items-center justify-between w-screen fixed left-0 top-0 border-b color-border-default z-50 transition-transform duration-300",
|
147095
147091
|
{
|
147096
147092
|
"translate-y-0": Y,
|
147097
|
-
"translate-y-[-100%]": !Y ||
|
147093
|
+
"translate-y-[-100%]": !Y || U
|
147098
147094
|
}
|
147099
147095
|
),
|
147100
147096
|
children: a == null ? void 0 : a({ editor: rt.getJSON() })
|
@@ -147122,7 +147118,7 @@ const t_ = ({
|
|
147122
147118
|
isLoading: te,
|
147123
147119
|
connectViaUsername: ue,
|
147124
147120
|
isDDocOwner: me,
|
147125
|
-
onInlineComment:
|
147121
|
+
onInlineComment: re,
|
147126
147122
|
onComment: G,
|
147127
147123
|
setCommentDrawerOpen: Re,
|
147128
147124
|
children: [
|
@@ -147142,18 +147138,18 @@ const t_ = ({
|
|
147142
147138
|
{
|
147143
147139
|
onError: b,
|
147144
147140
|
editor: rt,
|
147145
|
-
zoomLevel:
|
147141
|
+
zoomLevel: q,
|
147146
147142
|
setZoomLevel: Z,
|
147147
147143
|
isNavbarVisible: Y,
|
147148
147144
|
setIsNavbarVisible: ae,
|
147149
147145
|
secureImageUploadUrl: m,
|
147150
147146
|
onMarkdownExport: de,
|
147151
|
-
onMarkdownImport:
|
147147
|
+
onMarkdownImport: ie
|
147152
147148
|
}
|
147153
147149
|
) })
|
147154
147150
|
}
|
147155
147151
|
),
|
147156
|
-
|
147152
|
+
U && /* @__PURE__ */ T.jsx(
|
147157
147153
|
E8t,
|
147158
147154
|
{
|
147159
147155
|
editor: rt,
|
@@ -147192,26 +147188,26 @@ const t_ = ({
|
|
147192
147188
|
{ "pt-20 md:!mt-[7.5rem]": Y && !t },
|
147193
147189
|
{ "pt-6 md:!mt-16": !Y && !t },
|
147194
147190
|
{
|
147195
|
-
"max-[1080px]:!mx-auto min-[1081px]:!ml-[18%] min-[1700px]:!mx-auto": L && !xe &&
|
147191
|
+
"max-[1080px]:!mx-auto min-[1081px]:!ml-[18%] min-[1700px]:!mx-auto": L && !xe && q !== "0.5" && q !== "0.75" && q !== "1.4" && q !== "1.5" && q !== "2"
|
147196
147192
|
},
|
147197
147193
|
{
|
147198
|
-
"!mx-auto": !L ||
|
147194
|
+
"!mx-auto": !L || q === "0.5" || q === "0.75" || q === "1.4" || q === "1.5"
|
147199
147195
|
},
|
147200
|
-
{ "!ml-0":
|
147196
|
+
{ "!ml-0": q === "2" && ln && !cn },
|
147201
147197
|
{ "min-h-[83vh]": Y },
|
147202
147198
|
{ "min-h-[90vh]": !Y },
|
147203
|
-
{ "w-[700px] md:max-w-[700px] h-[150%]":
|
147204
|
-
{ "w-[800px] md:max-w-[800px] h-[200%]":
|
147205
|
-
{ "w-[850px] md:max-w-[850px] h-[100%]":
|
147206
|
-
{ "w-[70%] md:max-w-[70%] h-[200%]":
|
147199
|
+
{ "w-[700px] md:max-w-[700px] h-[150%]": q === "0.5" },
|
147200
|
+
{ "w-[800px] md:max-w-[800px] h-[200%]": q === "0.75" },
|
147201
|
+
{ "w-[850px] md:max-w-[850px] h-[100%]": q === "1" },
|
147202
|
+
{ "w-[70%] md:max-w-[70%] h-[200%]": q === "1.4" },
|
147207
147203
|
{
|
147208
|
-
"w-[1062.5px] md:max-w-[1062.5px] h-[100%]":
|
147204
|
+
"w-[1062.5px] md:max-w-[1062.5px] h-[100%]": q === "1.5"
|
147209
147205
|
},
|
147210
|
-
{ "w-[1548px] md:max-w-[1548px]":
|
147206
|
+
{ "w-[1548px] md:max-w-[1548px]": q === "2" }
|
147211
147207
|
),
|
147212
147208
|
style: {
|
147213
|
-
transformOrigin:
|
147214
|
-
transform: `scaleX(${
|
147209
|
+
transformOrigin: q === "2" && !cn ? "left center" : "top center",
|
147210
|
+
transform: `scaleX(${q})`
|
147215
147211
|
},
|
147216
147212
|
children: [
|
147217
147213
|
/* @__PURE__ */ T.jsxs(
|
@@ -147221,11 +147217,11 @@ const t_ = ({
|
|
147221
147217
|
className: Nt(
|
147222
147218
|
"w-full h-full pt-8 md:pt-0",
|
147223
147219
|
{ "custom-ios-padding": Ue },
|
147224
|
-
{ "bg-white":
|
147220
|
+
{ "bg-white": q === "1.4" || "1.5" }
|
147225
147221
|
),
|
147226
147222
|
style: {
|
147227
147223
|
transformOrigin: "top center",
|
147228
|
-
transform: `scaleY(${
|
147224
|
+
transform: `scaleY(${q})`
|
147229
147225
|
},
|
147230
147226
|
children: [
|
147231
147227
|
/* @__PURE__ */ T.jsxs("div", { children: [
|
@@ -147234,14 +147230,14 @@ const t_ = ({
|
|
147234
147230
|
{
|
147235
147231
|
editor: rt,
|
147236
147232
|
onError: b,
|
147237
|
-
zoomLevel:
|
147233
|
+
zoomLevel: q,
|
147238
147234
|
setIsCommentSectionOpen: S,
|
147239
147235
|
inlineCommentData: j,
|
147240
147236
|
setInlineCommentData: D,
|
147241
147237
|
isPreviewMode: t,
|
147242
147238
|
username: i,
|
147243
147239
|
walletAddress: o,
|
147244
|
-
onInlineComment:
|
147240
|
+
onInlineComment: re,
|
147245
147241
|
activeCommentId: dn
|
147246
147242
|
}
|
147247
147243
|
),
|
@@ -147369,7 +147365,7 @@ const t_ = ({
|
|
147369
147365
|
isOpen: ke,
|
147370
147366
|
onClose: () => Re == null ? void 0 : Re(!1),
|
147371
147367
|
isNavbarVisible: Y,
|
147372
|
-
isPresentationMode:
|
147368
|
+
isPresentationMode: U,
|
147373
147369
|
activeCommentId: dn,
|
147374
147370
|
isPreviewMode: t
|
147375
147371
|
}
|
@@ -147422,7 +147418,7 @@ const t_ = ({
|
|
147422
147418
|
editor: j,
|
147423
147419
|
ref: R,
|
147424
147420
|
isContentLoading: H,
|
147425
|
-
ydoc:
|
147421
|
+
ydoc: q
|
147426
147422
|
} = Zse({
|
147427
147423
|
isPreviewMode: t,
|
147428
147424
|
initialContent: e,
|
@@ -147445,9 +147441,9 @@ const t_ = ({
|
|
147445
147441
|
w,
|
147446
147442
|
() => ({
|
147447
147443
|
getEditor: () => j,
|
147448
|
-
getYdoc: () =>
|
147444
|
+
getYdoc: () => q
|
147449
147445
|
}),
|
147450
|
-
[j,
|
147446
|
+
[j, q]
|
147451
147447
|
);
|
147452
147448
|
const Z = (V) => {
|
147453
147449
|
const Y = V.name.split(",").map((ae) => {
|
@@ -147458,13 +147454,13 @@ const t_ = ({
|
|
147458
147454
|
});
|
147459
147455
|
b == null || b((ae) => {
|
147460
147456
|
const G = [...ae];
|
147461
|
-
return Y.forEach((
|
147457
|
+
return Y.forEach((re) => {
|
147462
147458
|
G.some(
|
147463
|
-
(de) => de.name.toLowerCase() ===
|
147464
|
-
) || G.push(
|
147459
|
+
(de) => de.name.toLowerCase() === re.name.toLowerCase()
|
147460
|
+
) || G.push(re);
|
147465
147461
|
}), G;
|
147466
147462
|
});
|
147467
|
-
},
|
147463
|
+
}, U = (V) => {
|
147468
147464
|
b == null || b(
|
147469
147465
|
(Y) => Y.filter((ae) => ae.name !== V)
|
147470
147466
|
);
|
@@ -147483,7 +147479,7 @@ const t_ = ({
|
|
147483
147479
|
f4,
|
147484
147480
|
{
|
147485
147481
|
style: { backgroundColor: V == null ? void 0 : V.color },
|
147486
|
-
onRemove: () =>
|
147482
|
+
onRemove: () => U(V == null ? void 0 : V.name),
|
147487
147483
|
isRemovable: !t,
|
147488
147484
|
className: "!h-6 rounded",
|
147489
147485
|
children: V == null ? void 0 : V.name
|
@@ -147514,7 +147510,7 @@ const t_ = ({
|
|
147514
147510
|
f4,
|
147515
147511
|
{
|
147516
147512
|
style: { backgroundColor: V == null ? void 0 : V.color },
|
147517
|
-
onRemove: () =>
|
147513
|
+
onRemove: () => U(V == null ? void 0 : V.name),
|
147518
147514
|
isRemovable: !t,
|
147519
147515
|
className: "!h-6 rounded",
|
147520
147516
|
children: V == null ? void 0 : V.name
|