@fileverse-dev/ddoc 2.2.8-reminder-1 → 2.2.8-reminder-3
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/{ccip-DQ7Ldw3z.mjs → ccip-DniSnj94.mjs} +1 -1
- package/dist/{index-eX8HPdZm.mjs → index-DL5D2N0D.mjs} +417 -330
- package/dist/index.es.js +1 -1
- package/dist/package/extensions/slash-command/slash-command-utils.d.ts +11 -2
- package/dist/package/extensions/slash-command/types.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
@@ -3751,7 +3751,7 @@ class lo {
|
|
3751
3751
|
return O5[t] = n, n.prototype.jsonID = t, n;
|
3752
3752
|
}
|
3753
3753
|
}
|
3754
|
-
class
|
3754
|
+
class xr {
|
3755
3755
|
/**
|
3756
3756
|
@internal
|
3757
3757
|
*/
|
@@ -3762,13 +3762,13 @@ class br {
|
|
3762
3762
|
Create a successful step result.
|
3763
3763
|
*/
|
3764
3764
|
static ok(t) {
|
3765
|
-
return new
|
3765
|
+
return new xr(t, null);
|
3766
3766
|
}
|
3767
3767
|
/**
|
3768
3768
|
Create a failed step result.
|
3769
3769
|
*/
|
3770
3770
|
static fail(t) {
|
3771
|
-
return new
|
3771
|
+
return new xr(null, t);
|
3772
3772
|
}
|
3773
3773
|
/**
|
3774
3774
|
Call [`Node.replace`](https://prosemirror.net/docs/ref/#model.Node.replace) with the given
|
@@ -3777,10 +3777,10 @@ class br {
|
|
3777
3777
|
*/
|
3778
3778
|
static fromReplace(t, n, r, o) {
|
3779
3779
|
try {
|
3780
|
-
return
|
3780
|
+
return xr.ok(t.replace(n, r, o));
|
3781
3781
|
} catch (i) {
|
3782
3782
|
if (i instanceof oy)
|
3783
|
-
return
|
3783
|
+
return xr.fail(i.message);
|
3784
3784
|
throw i;
|
3785
3785
|
}
|
3786
3786
|
}
|
@@ -3802,7 +3802,7 @@ class mu extends lo {
|
|
3802
3802
|
}
|
3803
3803
|
apply(t) {
|
3804
3804
|
let n = t.slice(this.from, this.to), r = t.resolve(this.from), o = r.node(r.sharedDepth(this.to)), i = new tt(oF(n.content, (a, s) => !a.isAtom || !s.type.allowsMarkType(this.mark.type) ? a : a.mark(this.mark.addToSet(a.marks)), o), n.openStart, n.openEnd);
|
3805
|
-
return
|
3805
|
+
return xr.fromReplace(t, this.from, this.to, i);
|
3806
3806
|
}
|
3807
3807
|
invert() {
|
3808
3808
|
return new $a(this.from, this.to, this.mark);
|
@@ -3841,7 +3841,7 @@ class $a extends lo {
|
|
3841
3841
|
}
|
3842
3842
|
apply(t) {
|
3843
3843
|
let n = t.slice(this.from, this.to), r = new tt(oF(n.content, (o) => o.mark(this.mark.removeFromSet(o.marks)), t), n.openStart, n.openEnd);
|
3844
|
-
return
|
3844
|
+
return xr.fromReplace(t, this.from, this.to, r);
|
3845
3845
|
}
|
3846
3846
|
invert() {
|
3847
3847
|
return new mu(this.from, this.to, this.mark);
|
@@ -3881,9 +3881,9 @@ class gu extends lo {
|
|
3881
3881
|
apply(t) {
|
3882
3882
|
let n = t.nodeAt(this.pos);
|
3883
3883
|
if (!n)
|
3884
|
-
return
|
3884
|
+
return xr.fail("No node at mark step's position");
|
3885
3885
|
let r = n.type.create(n.attrs, null, this.mark.addToSet(n.marks));
|
3886
|
-
return
|
3886
|
+
return xr.fromReplace(t, this.pos, this.pos + 1, new tt(Re.from(r), 0, n.isLeaf ? 0 : 1));
|
3887
3887
|
}
|
3888
3888
|
invert(t) {
|
3889
3889
|
let n = t.nodeAt(this.pos);
|
@@ -3925,9 +3925,9 @@ class u1 extends lo {
|
|
3925
3925
|
apply(t) {
|
3926
3926
|
let n = t.nodeAt(this.pos);
|
3927
3927
|
if (!n)
|
3928
|
-
return
|
3928
|
+
return xr.fail("No node at mark step's position");
|
3929
3929
|
let r = n.type.create(n.attrs, null, this.mark.removeFromSet(n.marks));
|
3930
|
-
return
|
3930
|
+
return xr.fromReplace(t, this.pos, this.pos + 1, new tt(Re.from(r), 0, n.isLeaf ? 0 : 1));
|
3931
3931
|
}
|
3932
3932
|
invert(t) {
|
3933
3933
|
let n = t.nodeAt(this.pos);
|
@@ -3964,7 +3964,7 @@ class Tr extends lo {
|
|
3964
3964
|
super(), this.from = t, this.to = n, this.slice = r, this.structure = o;
|
3965
3965
|
}
|
3966
3966
|
apply(t) {
|
3967
|
-
return this.structure && p9(t, this.from, this.to) ?
|
3967
|
+
return this.structure && p9(t, this.from, this.to) ? xr.fail("Structure replace would overwrite content") : xr.fromReplace(t, this.from, this.to, this.slice);
|
3968
3968
|
}
|
3969
3969
|
getMap() {
|
3970
3970
|
return new ui([this.from, this.to - this.from, this.slice.size]);
|
@@ -4014,12 +4014,12 @@ class Ir extends lo {
|
|
4014
4014
|
}
|
4015
4015
|
apply(t) {
|
4016
4016
|
if (this.structure && (p9(t, this.from, this.gapFrom) || p9(t, this.gapTo, this.to)))
|
4017
|
-
return
|
4017
|
+
return xr.fail("Structure gap-replace would overwrite content");
|
4018
4018
|
let n = t.slice(this.gapFrom, this.gapTo);
|
4019
4019
|
if (n.openStart || n.openEnd)
|
4020
|
-
return
|
4020
|
+
return xr.fail("Gap is not a flat range");
|
4021
4021
|
let r = this.slice.insertAt(this.insert, n.content);
|
4022
|
-
return r ?
|
4022
|
+
return r ? xr.fromReplace(t, this.from, this.to, r) : xr.fail("Content does not fit in gap");
|
4023
4023
|
}
|
4024
4024
|
getMap() {
|
4025
4025
|
return new ui([
|
@@ -4655,13 +4655,13 @@ class Vd extends lo {
|
|
4655
4655
|
apply(t) {
|
4656
4656
|
let n = t.nodeAt(this.pos);
|
4657
4657
|
if (!n)
|
4658
|
-
return
|
4658
|
+
return xr.fail("No node at attribute step's position");
|
4659
4659
|
let r = /* @__PURE__ */ Object.create(null);
|
4660
4660
|
for (let i in n.attrs)
|
4661
4661
|
r[i] = n.attrs[i];
|
4662
4662
|
r[this.attr] = this.value;
|
4663
4663
|
let o = n.type.create(r, null, n.marks);
|
4664
|
-
return
|
4664
|
+
return xr.fromReplace(t, this.pos, this.pos + 1, new tt(Re.from(o), 0, n.isLeaf ? 0 : 1));
|
4665
4665
|
}
|
4666
4666
|
getMap() {
|
4667
4667
|
return ui.empty;
|
@@ -4696,7 +4696,7 @@ class tp extends lo {
|
|
4696
4696
|
n[o] = t.attrs[o];
|
4697
4697
|
n[this.attr] = this.value;
|
4698
4698
|
let r = t.type.create(n, t.content, t.marks);
|
4699
|
-
return
|
4699
|
+
return xr.ok(r);
|
4700
4700
|
}
|
4701
4701
|
getMap() {
|
4702
4702
|
return ui.empty;
|
@@ -8229,7 +8229,7 @@ class cy {
|
|
8229
8229
|
}
|
8230
8230
|
map(t, n, r, o) {
|
8231
8231
|
let { pos: i, deleted: a } = t.mapResult(n.from + o, this.side < 0 ? -1 : 1);
|
8232
|
-
return a ? null : new
|
8232
|
+
return a ? null : new cr(i - r, i - r, this);
|
8233
8233
|
}
|
8234
8234
|
valid() {
|
8235
8235
|
return !0;
|
@@ -8247,7 +8247,7 @@ class Eu {
|
|
8247
8247
|
}
|
8248
8248
|
map(t, n, r, o) {
|
8249
8249
|
let i = t.map(n.from + o, this.spec.inclusiveStart ? -1 : 1) - r, a = t.map(n.to + o, this.spec.inclusiveEnd ? 1 : -1) - r;
|
8250
|
-
return i >= a ? null : new
|
8250
|
+
return i >= a ? null : new cr(i, a, this);
|
8251
8251
|
}
|
8252
8252
|
valid(t, n) {
|
8253
8253
|
return n.from < n.to;
|
@@ -8270,7 +8270,7 @@ class yF {
|
|
8270
8270
|
if (i.deleted)
|
8271
8271
|
return null;
|
8272
8272
|
let a = t.mapResult(n.to + o, -1);
|
8273
|
-
return a.deleted || a.pos <= i.pos ? null : new
|
8273
|
+
return a.deleted || a.pos <= i.pos ? null : new cr(i.pos - r, a.pos - r, this);
|
8274
8274
|
}
|
8275
8275
|
valid(t, n) {
|
8276
8276
|
let { index: r, offset: o } = t.content.findIndex(n.from), i;
|
@@ -8282,7 +8282,7 @@ class yF {
|
|
8282
8282
|
destroy() {
|
8283
8283
|
}
|
8284
8284
|
}
|
8285
|
-
class
|
8285
|
+
class cr {
|
8286
8286
|
/**
|
8287
8287
|
@internal
|
8288
8288
|
*/
|
@@ -8293,7 +8293,7 @@ class ur {
|
|
8293
8293
|
@internal
|
8294
8294
|
*/
|
8295
8295
|
copy(t, n) {
|
8296
|
-
return new
|
8296
|
+
return new cr(t, n, this.type);
|
8297
8297
|
}
|
8298
8298
|
/**
|
8299
8299
|
@internal
|
@@ -8316,14 +8316,14 @@ class ur {
|
|
8316
8316
|
widget's current document position.
|
8317
8317
|
*/
|
8318
8318
|
static widget(t, n, r) {
|
8319
|
-
return new
|
8319
|
+
return new cr(t, t, new cy(n, r));
|
8320
8320
|
}
|
8321
8321
|
/**
|
8322
8322
|
Creates an inline decoration, which adds the given attributes to
|
8323
8323
|
each inline node between `from` and `to`.
|
8324
8324
|
*/
|
8325
8325
|
static inline(t, n, r, o) {
|
8326
|
-
return new
|
8326
|
+
return new cr(t, n, new Eu(r, o));
|
8327
8327
|
}
|
8328
8328
|
/**
|
8329
8329
|
Creates a node decoration. `from` and `to` should point precisely
|
@@ -8331,7 +8331,7 @@ class ur {
|
|
8331
8331
|
node, will receive the given attributes.
|
8332
8332
|
*/
|
8333
8333
|
static node(t, n, r, o) {
|
8334
|
-
return new
|
8334
|
+
return new cr(t, n, new yF(r, o));
|
8335
8335
|
}
|
8336
8336
|
/**
|
8337
8337
|
The spec provided when creating this decoration. Can be useful
|
@@ -8641,7 +8641,7 @@ function tH(e, t) {
|
|
8641
8641
|
let n = [];
|
8642
8642
|
for (let r = 0; r < e.length; r++) {
|
8643
8643
|
let o = e[r];
|
8644
|
-
n.push(new
|
8644
|
+
n.push(new cr(o.from + t, o.to + t, o.type));
|
8645
8645
|
}
|
8646
8646
|
return n;
|
8647
8647
|
}
|
@@ -9455,12 +9455,12 @@ function cS(e) {
|
|
9455
9455
|
if (typeof n == "function" && (n = n(e.state)), n)
|
9456
9456
|
for (let r in n)
|
9457
9457
|
r == "class" ? t.class += " " + n[r] : r == "style" ? t.style = (t.style ? t.style + ";" : "") + n[r] : !t[r] && r != "contenteditable" && r != "nodeName" && (t[r] = String(n[r]));
|
9458
|
-
}), t.translate || (t.translate = "no"), [
|
9458
|
+
}), t.translate || (t.translate = "no"), [cr.node(0, e.state.doc.content.size, t)];
|
9459
9459
|
}
|
9460
9460
|
function dS(e) {
|
9461
9461
|
if (e.markCursor) {
|
9462
9462
|
let t = document.createElement("img");
|
9463
|
-
t.className = "ProseMirror-separator", t.setAttribute("mark-placeholder", "true"), t.setAttribute("alt", ""), e.cursorWrapper = { dom: t, deco:
|
9463
|
+
t.className = "ProseMirror-separator", t.setAttribute("mark-placeholder", "true"), t.setAttribute("alt", ""), e.cursorWrapper = { dom: t, deco: cr.widget(e.state.selection.from, t, { raw: !0, marks: e.markCursor }) };
|
9464
9464
|
} else
|
9465
9465
|
e.cursorWrapper = null;
|
9466
9466
|
}
|
@@ -10564,7 +10564,7 @@ function Mb(e, t) {
|
|
10564
10564
|
ng(t[r]) && ng(e[r]) ? n[r] = Mb(e[r], t[r]) : n[r] = t[r];
|
10565
10565
|
}), n;
|
10566
10566
|
}
|
10567
|
-
class
|
10567
|
+
class pr {
|
10568
10568
|
constructor(t = {}) {
|
10569
10569
|
this.type = "mark", this.name = "mark", this.parent = null, this.child = null, this.config = {
|
10570
10570
|
name: this.name,
|
@@ -10580,7 +10580,7 @@ class hr {
|
|
10580
10580
|
})) || {};
|
10581
10581
|
}
|
10582
10582
|
static create(t = {}) {
|
10583
|
-
return new
|
10583
|
+
return new pr(t);
|
10584
10584
|
}
|
10585
10585
|
configure(t = {}) {
|
10586
10586
|
const n = this.extend({
|
@@ -10590,7 +10590,7 @@ class hr {
|
|
10590
10590
|
return n.name = this.name, n.parent = this.parent, n;
|
10591
10591
|
}
|
10592
10592
|
extend(t = {}) {
|
10593
|
-
const n = new
|
10593
|
+
const n = new pr(t);
|
10594
10594
|
return n.parent = this, this.child = n, n.name = t.name ? t.name : n.parent.name, t.defaultOptions && Object.keys(t.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`), n.options = Kt(pt(n, "addOptions", {
|
10595
10595
|
name: n.name
|
10596
10596
|
})), n.storage = Kt(pt(n, "addStorage", {
|
@@ -10808,7 +10808,7 @@ class Dd {
|
|
10808
10808
|
type: Y5(a.name, this.schema)
|
10809
10809
|
}, l = [], u = pt(a, "addKeyboardShortcuts", s);
|
10810
10810
|
let c = {};
|
10811
|
-
if (a.type === "mark" && pt(a, "exitable", s) && (c.ArrowRight = () =>
|
10811
|
+
if (a.type === "mark" && pt(a, "exitable", s) && (c.ArrowRight = () => pr.handleExit({ editor: t, mark: a })), u) {
|
10812
10812
|
const m = Object.fromEntries(Object.entries(u()).map(([g, b]) => [g, () => b({ editor: t })]));
|
10813
10813
|
c = { ...c, ...m };
|
10814
10814
|
}
|
@@ -56654,7 +56654,7 @@ function PZ(...e) {
|
|
56654
56654
|
return L.useCallback(Dmt(...e), e);
|
56655
56655
|
}
|
56656
56656
|
const HZ = /* @__PURE__ */ new WeakMap();
|
56657
|
-
function
|
56657
|
+
function wr(e, t, n = !1) {
|
56658
56658
|
if (!e || !(e instanceof HTMLElement)) return;
|
56659
56659
|
let r = {};
|
56660
56660
|
Object.entries(t).forEach(([o, i]) => {
|
@@ -56670,7 +56670,7 @@ function Smt(e, t) {
|
|
56670
56670
|
let n = HZ.get(e);
|
56671
56671
|
n && (e.style[t] = n[t]);
|
56672
56672
|
}
|
56673
|
-
const
|
56673
|
+
const gr = (e) => {
|
56674
56674
|
switch (e) {
|
56675
56675
|
case "top":
|
56676
56676
|
case "bottom":
|
@@ -56690,7 +56690,7 @@ function kg(e, t) {
|
|
56690
56690
|
n.transform || n.webkitTransform || n.mozTransform
|
56691
56691
|
);
|
56692
56692
|
let o = r.match(/^matrix3d\((.+)\)$/);
|
56693
|
-
return o ? parseFloat(o[1].split(", ")[
|
56693
|
+
return o ? parseFloat(o[1].split(", ")[gr(t) ? 13 : 12]) : (o = r.match(/^matrix\((.+)\)$/), o ? parseFloat(o[1].split(", ")[gr(t) ? 5 : 4]) : null);
|
56694
56694
|
}
|
56695
56695
|
function Tmt(e) {
|
56696
56696
|
return 8 * (Math.log(e + 1) - 2);
|
@@ -56798,7 +56798,7 @@ function Rmt({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
56798
56798
|
return (j = n == null ? void 0 : n.map((D) => {
|
56799
56799
|
const T = typeof D == "string";
|
56800
56800
|
let I = 0;
|
56801
|
-
if (T && (I = parseInt(D, 10)),
|
56801
|
+
if (T && (I = parseInt(D, 10)), gr(s)) {
|
56802
56802
|
const W = T ? I : f ? D * E.height : 0;
|
56803
56803
|
return f ? s === "bottom" ? E.height - W : -E.height + W : W;
|
56804
56804
|
}
|
@@ -56815,13 +56815,13 @@ function Rmt({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
56815
56815
|
]), v = ke.useCallback((E) => {
|
56816
56816
|
var j;
|
56817
56817
|
const D = (j = b == null ? void 0 : b.findIndex((T) => T === E)) != null ? j : null;
|
56818
|
-
a(D),
|
56818
|
+
a(D), wr(r.current, {
|
56819
56819
|
transition: `transform ${Vn.DURATION}s cubic-bezier(${Vn.EASE.join(",")})`,
|
56820
|
-
transform:
|
56821
|
-
}), b && D !== b.length - 1 && i !== void 0 && D !== i && D < i ?
|
56820
|
+
transform: gr(s) ? `translate3d(0, ${E}px, 0)` : `translate3d(${E}px, 0, 0)`
|
56821
|
+
}), b && D !== b.length - 1 && i !== void 0 && D !== i && D < i ? wr(o.current, {
|
56822
56822
|
transition: `opacity ${Vn.DURATION}s cubic-bezier(${Vn.EASE.join(",")})`,
|
56823
56823
|
opacity: "0"
|
56824
|
-
}) :
|
56824
|
+
}) : wr(o.current, {
|
56825
56825
|
transition: `opacity ${Vn.DURATION}s cubic-bezier(${Vn.EASE.join(",")})`,
|
56826
56826
|
opacity: "1"
|
56827
56827
|
}), d(n == null ? void 0 : n[Math.max(D, 0)]);
|
@@ -56849,7 +56849,7 @@ function Rmt({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
56849
56849
|
function x({ draggedDistance: E, closeDrawer: j, velocity: D, dismissible: T }) {
|
56850
56850
|
if (i === void 0) return;
|
56851
56851
|
const I = s === "bottom" || s === "right" ? (k ?? 0) - E : (k ?? 0) + E, B = m === i - 1, W = m === 0, q = E > 0;
|
56852
|
-
if (B &&
|
56852
|
+
if (B && wr(o.current, {
|
56853
56853
|
transition: `opacity ${Vn.DURATION}s cubic-bezier(${Vn.EASE.join(",")})`
|
56854
56854
|
}), !u && D > 2 && !q) {
|
56855
56855
|
T ? j() : v(b[0]);
|
@@ -56859,7 +56859,7 @@ function Rmt({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
56859
56859
|
v(b[n.length - 1]);
|
56860
56860
|
return;
|
56861
56861
|
}
|
56862
|
-
const G = b == null ? void 0 : b.reduce((R, H) => typeof R != "number" || typeof H != "number" ? R : Math.abs(H - I) < Math.abs(R - I) ? H : R), P =
|
56862
|
+
const G = b == null ? void 0 : b.reduce((R, H) => typeof R != "number" || typeof H != "number" ? R : Math.abs(H - I) < Math.abs(R - I) ? H : R), P = gr(s) ? window.innerHeight : window.innerWidth;
|
56863
56863
|
if (D > qZ && Math.abs(E) < P * 0.4) {
|
56864
56864
|
const R = q ? 1 : -1;
|
56865
56865
|
if (R > 0 && p && n) {
|
@@ -56875,8 +56875,8 @@ function Rmt({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
56875
56875
|
function w({ draggedDistance: E }) {
|
56876
56876
|
if (k === null) return;
|
56877
56877
|
const j = s === "bottom" || s === "right" ? k - E : k + E;
|
56878
|
-
(s === "bottom" || s === "right") && j < b[b.length - 1] || (s === "top" || s === "left") && j > b[b.length - 1] ||
|
56879
|
-
transform:
|
56878
|
+
(s === "bottom" || s === "right") && j < b[b.length - 1] || (s === "top" || s === "left") && j > b[b.length - 1] || wr(r.current, {
|
56879
|
+
transform: gr(s) ? `translate3d(0, ${j}px, 0)` : `translate3d(${j}px, 0, 0)`
|
56880
56880
|
});
|
56881
56881
|
}
|
56882
56882
|
function M(E, j) {
|
@@ -56916,7 +56916,7 @@ function zmt() {
|
|
56916
56916
|
Lmt(r && !o ? Rx(document.body, {
|
56917
56917
|
background: "black"
|
56918
56918
|
}) : Bmt, Rx(l, {
|
56919
|
-
transformOrigin:
|
56919
|
+
transformOrigin: gr(e) ? "top" : "left",
|
56920
56920
|
transitionProperty: "transform, border-radius",
|
56921
56921
|
transitionDuration: `${Vn.DURATION}s`,
|
56922
56922
|
transitionTimingFunction: `cubic-bezier(${Vn.EASE.join(",")})`
|
@@ -56924,7 +56924,7 @@ function zmt() {
|
|
56924
56924
|
const u = Rx(l, {
|
56925
56925
|
borderRadius: `${VZ}px`,
|
56926
56926
|
overflow: "hidden",
|
56927
|
-
...
|
56927
|
+
...gr(e) ? {
|
56928
56928
|
transform: `scale(${s()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`
|
56929
56929
|
} : {
|
56930
56930
|
transform: `scale(${s()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`
|
@@ -57055,7 +57055,7 @@ function Pmt({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
|
|
57055
57055
|
var nt, bt;
|
57056
57056
|
!c && !i || ee.current && !ee.current.contains(Be.target) || (J.current = ((nt = ee.current) == null ? void 0 : nt.getBoundingClientRect().height) || 0, $.current = ((bt = ee.current) == null ? void 0 : bt.getBoundingClientRect().width) || 0, Q(!0), fe.current = /* @__PURE__ */ new Date(), zZ() && window.addEventListener("touchend", () => we.current = !1, {
|
57057
57057
|
once: !0
|
57058
|
-
}), Be.target.setPointerCapture(Be.pointerId), Ne.current =
|
57058
|
+
}), Be.target.setPointerCapture(Be.pointerId), Ne.current = gr(x) ? Be.pageY : Be.pageX);
|
57059
57059
|
}
|
57060
57060
|
function Me(Be, nt) {
|
57061
57061
|
var bt;
|
@@ -57086,41 +57086,41 @@ function Pmt({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
|
|
57086
57086
|
}
|
57087
57087
|
function _e(Be) {
|
57088
57088
|
if (ee.current && Z) {
|
57089
|
-
const nt = x === "bottom" || x === "right" ? 1 : -1, bt = (Ne.current - (
|
57089
|
+
const nt = x === "bottom" || x === "right" ? 1 : -1, bt = (Ne.current - (gr(x) ? Be.pageY : Be.pageX)) * nt, lt = bt > 0, Bt = i && !c && !lt;
|
57090
57090
|
if (Bt && A === 0) return;
|
57091
57091
|
const Gt = Math.abs(bt), wt = document.querySelector("[data-vaul-drawer-wrapper]"), on = x === "bottom" || x === "top" ? J.current : $.current;
|
57092
57092
|
let Sn = Gt / on;
|
57093
57093
|
const Pn = me(Gt, lt);
|
57094
57094
|
if (Pn !== null && (Sn = Pn), Bt && Sn >= 1 || !we.current && !Me(Be.target, lt)) return;
|
57095
|
-
if (ee.current.classList.add(Bx), we.current = !0,
|
57095
|
+
if (ee.current.classList.add(Bx), we.current = !0, wr(ee.current, {
|
57096
57096
|
transition: "none"
|
57097
|
-
}),
|
57097
|
+
}), wr(le.current, {
|
57098
57098
|
transition: "none"
|
57099
57099
|
}), i && de({
|
57100
57100
|
draggedDistance: bt
|
57101
57101
|
}), lt && !i) {
|
57102
57102
|
const Hn = Tmt(bt), Er = Math.min(Hn * -1, 0) * nt;
|
57103
|
-
|
57104
|
-
transform:
|
57103
|
+
wr(ee.current, {
|
57104
|
+
transform: gr(x) ? `translate3d(0, ${Er}px, 0)` : `translate3d(${Er}px, 0, 0)`
|
57105
57105
|
});
|
57106
57106
|
return;
|
57107
57107
|
}
|
57108
57108
|
const ft = 1 - Sn;
|
57109
|
-
if ((he || f && A === f - 1) && (r == null || r(Be, Sn),
|
57109
|
+
if ((he || f && A === f - 1) && (r == null || r(Be, Sn), wr(le.current, {
|
57110
57110
|
opacity: `${ft}`,
|
57111
57111
|
transition: "none"
|
57112
57112
|
}, !0)), wt && le.current && a) {
|
57113
57113
|
const Hn = Math.min(be() + Sn * (1 - be()), 1), Er = 8 - Sn * 8, So = Math.max(0, 14 - Sn * 14);
|
57114
|
-
|
57114
|
+
wr(wt, {
|
57115
57115
|
borderRadius: `${Er}px`,
|
57116
|
-
transform:
|
57116
|
+
transform: gr(x) ? `scale(${Hn}) translate3d(0, ${So}px, 0)` : `scale(${Hn}) translate3d(${So}px, 0, 0)`,
|
57117
57117
|
transition: "none"
|
57118
57118
|
}, !0);
|
57119
57119
|
}
|
57120
57120
|
if (!i) {
|
57121
57121
|
const Hn = Gt * nt;
|
57122
|
-
|
57123
|
-
transform:
|
57122
|
+
wr(ee.current, {
|
57123
|
+
transform: gr(x) ? `translate3d(0, ${Hn}px, 0)` : `translate3d(${Hn}px, 0, 0)`
|
57124
57124
|
});
|
57125
57125
|
}
|
57126
57126
|
}
|
@@ -57170,16 +57170,16 @@ function Pmt({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
|
|
57170
57170
|
function jt() {
|
57171
57171
|
if (!ee.current) return;
|
57172
57172
|
const Be = document.querySelector("[data-vaul-drawer-wrapper]"), nt = kg(ee.current, x);
|
57173
|
-
|
57173
|
+
wr(ee.current, {
|
57174
57174
|
transform: "translate3d(0, 0, 0)",
|
57175
57175
|
transition: `transform ${Vn.DURATION}s cubic-bezier(${Vn.EASE.join(",")})`
|
57176
|
-
}),
|
57176
|
+
}), wr(le.current, {
|
57177
57177
|
transition: `opacity ${Vn.DURATION}s cubic-bezier(${Vn.EASE.join(",")})`,
|
57178
57178
|
opacity: "1"
|
57179
|
-
}), a && nt && nt > 0 && G &&
|
57179
|
+
}), a && nt && nt > 0 && G && wr(Be, {
|
57180
57180
|
borderRadius: `${VZ}px`,
|
57181
57181
|
overflow: "hidden",
|
57182
|
-
...
|
57182
|
+
...gr(x) ? {
|
57183
57183
|
transform: `scale(${be()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
|
57184
57184
|
transformOrigin: "top"
|
57185
57185
|
} : {
|
@@ -57199,7 +57199,7 @@ function Pmt({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
|
|
57199
57199
|
ee.current.classList.remove(Bx), we.current = !1, Q(!1), X.current = /* @__PURE__ */ new Date();
|
57200
57200
|
const nt = kg(ee.current, x);
|
57201
57201
|
if (!Be || !Me(Be.target, !1) || !nt || Number.isNaN(nt) || fe.current === null) return;
|
57202
|
-
const bt = X.current.getTime() - fe.current.getTime(), lt = Ne.current - (
|
57202
|
+
const bt = X.current.getTime() - fe.current.getTime(), lt = Ne.current - (gr(x) ? Be.pageY : Be.pageX), Bt = Math.abs(lt) / bt;
|
57203
57203
|
if (Bt > 0.05 && (te(!0), setTimeout(() => {
|
57204
57204
|
te(!1);
|
57205
57205
|
}, 200)), i) {
|
@@ -57229,7 +57229,7 @@ function Pmt({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
|
|
57229
57229
|
}
|
57230
57230
|
o == null || o(Be, !0), jt();
|
57231
57231
|
}
|
57232
|
-
ke.useEffect(() => (G && (
|
57232
|
+
ke.useEffect(() => (G && (wr(document.documentElement, {
|
57233
57233
|
scrollBehavior: "auto"
|
57234
57234
|
}), ue.current = /* @__PURE__ */ new Date()), () => {
|
57235
57235
|
Smt(document.documentElement, "scrollBehavior");
|
@@ -57238,30 +57238,30 @@ function Pmt({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
|
|
57238
57238
|
]);
|
57239
57239
|
function De(Be) {
|
57240
57240
|
const nt = Be ? (window.innerWidth - wg) / window.innerWidth : 1, bt = Be ? -16 : 0;
|
57241
|
-
xe.current && window.clearTimeout(xe.current),
|
57241
|
+
xe.current && window.clearTimeout(xe.current), wr(ee.current, {
|
57242
57242
|
transition: `transform ${Vn.DURATION}s cubic-bezier(${Vn.EASE.join(",")})`,
|
57243
|
-
transform:
|
57243
|
+
transform: gr(x) ? `scale(${nt}) translate3d(0, ${bt}px, 0)` : `scale(${nt}) translate3d(${bt}px, 0, 0)`
|
57244
57244
|
}), !Be && ee.current && (xe.current = setTimeout(() => {
|
57245
57245
|
const lt = kg(ee.current, x);
|
57246
|
-
|
57246
|
+
wr(ee.current, {
|
57247
57247
|
transition: "none",
|
57248
|
-
transform:
|
57248
|
+
transform: gr(x) ? `translate3d(0, ${lt}px, 0)` : `translate3d(${lt}px, 0, 0)`
|
57249
57249
|
});
|
57250
57250
|
}, 500));
|
57251
57251
|
}
|
57252
57252
|
function Qe(Be, nt) {
|
57253
57253
|
if (nt < 0) return;
|
57254
57254
|
const bt = (window.innerWidth - wg) / window.innerWidth, lt = bt + nt * (1 - bt), Bt = -16 + nt * wg;
|
57255
|
-
|
57256
|
-
transform:
|
57255
|
+
wr(ee.current, {
|
57256
|
+
transform: gr(x) ? `scale(${lt}) translate3d(0, ${Bt}px, 0)` : `scale(${lt}) translate3d(${Bt}px, 0, 0)`,
|
57257
57257
|
transition: "none"
|
57258
57258
|
});
|
57259
57259
|
}
|
57260
57260
|
function Ze(Be, nt) {
|
57261
|
-
const bt =
|
57262
|
-
nt &&
|
57261
|
+
const bt = gr(x) ? window.innerHeight : window.innerWidth, lt = nt ? (bt - wg) / bt : 1, Bt = nt ? -16 : 0;
|
57262
|
+
nt && wr(ee.current, {
|
57263
57263
|
transition: `transform ${Vn.DURATION}s cubic-bezier(${Vn.EASE.join(",")})`,
|
57264
|
-
transform:
|
57264
|
+
transform: gr(x) ? `scale(${lt}) translate3d(0, ${Bt}px, 0)` : `scale(${lt}) translate3d(${Bt}px, 0, 0)`
|
57265
57265
|
});
|
57266
57266
|
}
|
57267
57267
|
return ke.useEffect(() => {
|
@@ -58369,7 +58369,7 @@ const dgt = ({
|
|
58369
58369
|
) })
|
58370
58370
|
);
|
58371
58371
|
um.displayName = fG.displayName;
|
58372
|
-
const
|
58372
|
+
const lr = ({
|
58373
58373
|
content: e,
|
58374
58374
|
anchorTrigger: t,
|
58375
58375
|
className: n,
|
@@ -76156,10 +76156,10 @@ function nK() {
|
|
76156
76156
|
var e = PY();
|
76157
76157
|
return e === F0.PREVIEW;
|
76158
76158
|
}
|
76159
|
-
var
|
76159
|
+
var br;
|
76160
76160
|
(function(e) {
|
76161
76161
|
e.ArrowDown = "ArrowDown", e.ArrowUp = "ArrowUp", e.ArrowLeft = "ArrowLeft", e.ArrowRight = "ArrowRight", e.Escape = "Escape", e.Enter = "Enter", e.Space = " ";
|
76162
|
-
})(
|
76162
|
+
})(br || (br = {}));
|
76163
76163
|
function cyt() {
|
76164
76164
|
dyt(), fyt(), hyt(), pyt(), myt();
|
76165
76165
|
}
|
@@ -76168,7 +76168,7 @@ function dyt() {
|
|
76168
76168
|
return function(u) {
|
76169
76169
|
var c = u.key;
|
76170
76170
|
switch (a(), c) {
|
76171
|
-
case
|
76171
|
+
case br.Escape:
|
76172
76172
|
if (u.preventDefault(), i()) {
|
76173
76173
|
s();
|
76174
76174
|
return;
|
@@ -76191,15 +76191,15 @@ function fyt() {
|
|
76191
76191
|
return function(u) {
|
76192
76192
|
var c = u.key;
|
76193
76193
|
switch (c) {
|
76194
|
-
case
|
76194
|
+
case br.ArrowRight:
|
76195
76195
|
if (!s)
|
76196
76196
|
return;
|
76197
76197
|
u.preventDefault(), i(!0), e();
|
76198
76198
|
break;
|
76199
|
-
case
|
76199
|
+
case br.ArrowDown:
|
76200
76200
|
u.preventDefault(), a();
|
76201
76201
|
break;
|
76202
|
-
case
|
76202
|
+
case br.Enter:
|
76203
76203
|
u.preventDefault(), U4t(n.current);
|
76204
76204
|
break;
|
76205
76205
|
}
|
@@ -76221,17 +76221,17 @@ function hyt() {
|
|
76221
76221
|
var f = d.key;
|
76222
76222
|
if (l)
|
76223
76223
|
switch (f) {
|
76224
|
-
case
|
76224
|
+
case br.ArrowLeft:
|
76225
76225
|
if (d.preventDefault(), !i)
|
76226
76226
|
return t();
|
76227
76227
|
tN(t);
|
76228
76228
|
break;
|
76229
|
-
case
|
76229
|
+
case br.ArrowRight:
|
76230
76230
|
if (d.preventDefault(), !i)
|
76231
76231
|
return t();
|
76232
76232
|
nN();
|
76233
76233
|
break;
|
76234
|
-
case
|
76234
|
+
case br.ArrowDown:
|
76235
76235
|
d.preventDefault(), i && a(!1), r();
|
76236
76236
|
break;
|
76237
76237
|
default:
|
@@ -76240,12 +76240,12 @@ function hyt() {
|
|
76240
76240
|
}
|
76241
76241
|
if (s)
|
76242
76242
|
switch (f) {
|
76243
|
-
case
|
76243
|
+
case br.ArrowUp:
|
76244
76244
|
if (d.preventDefault(), !i)
|
76245
76245
|
return t();
|
76246
76246
|
tN(t);
|
76247
76247
|
break;
|
76248
|
-
case
|
76248
|
+
case br.ArrowDown:
|
76249
76249
|
if (d.preventDefault(), !i)
|
76250
76250
|
return t();
|
76251
76251
|
nN();
|
@@ -76270,16 +76270,16 @@ function pyt() {
|
|
76270
76270
|
return function(i) {
|
76271
76271
|
var a = i.key;
|
76272
76272
|
switch (a) {
|
76273
|
-
case
|
76273
|
+
case br.ArrowUp:
|
76274
76274
|
i.preventDefault(), e();
|
76275
76275
|
break;
|
76276
|
-
case
|
76276
|
+
case br.ArrowRight:
|
76277
76277
|
i.preventDefault(), WY(Mp());
|
76278
76278
|
break;
|
76279
|
-
case
|
76279
|
+
case br.ArrowLeft:
|
76280
76280
|
i.preventDefault(), UY(Mp());
|
76281
76281
|
break;
|
76282
|
-
case
|
76282
|
+
case br.ArrowDown:
|
76283
76283
|
i.preventDefault(), M6(n.current);
|
76284
76284
|
break;
|
76285
76285
|
default:
|
@@ -76303,27 +76303,27 @@ function myt() {
|
|
76303
76303
|
function(s) {
|
76304
76304
|
var l = s.key, u = pa(Mp());
|
76305
76305
|
switch (l) {
|
76306
|
-
case
|
76306
|
+
case br.ArrowRight:
|
76307
76307
|
s.preventDefault(), G4t(u);
|
76308
76308
|
break;
|
76309
|
-
case
|
76309
|
+
case br.ArrowLeft:
|
76310
76310
|
s.preventDefault(), Z4t(u);
|
76311
76311
|
break;
|
76312
|
-
case
|
76312
|
+
case br.ArrowDown:
|
76313
76313
|
if (s.preventDefault(), r()) {
|
76314
76314
|
o();
|
76315
76315
|
break;
|
76316
76316
|
}
|
76317
76317
|
K4t(u);
|
76318
76318
|
break;
|
76319
|
-
case
|
76319
|
+
case br.ArrowUp:
|
76320
76320
|
if (s.preventDefault(), r()) {
|
76321
76321
|
o();
|
76322
76322
|
break;
|
76323
76323
|
}
|
76324
76324
|
Y4t(u, t);
|
76325
76325
|
break;
|
76326
|
-
case
|
76326
|
+
case br.Space:
|
76327
76327
|
s.preventDefault(), n(s.target);
|
76328
76328
|
break;
|
76329
76329
|
default:
|
@@ -81860,7 +81860,7 @@ const m$ = (e) => KC(e).buffer, g$ = (e) => {
|
|
81860
81860
|
if (n && n.add) {
|
81861
81861
|
const { id: r, pos: o, content: i } = n.add, a = document.createElement("div");
|
81862
81862
|
a.setAttribute("class", "img-placeholder"), a.textContent = i;
|
81863
|
-
const s =
|
81863
|
+
const s = cr.widget(o + 1, a, {
|
81864
81864
|
id: r
|
81865
81865
|
});
|
81866
81866
|
t = t.add(e.doc, [s]);
|
@@ -84670,7 +84670,7 @@ function y8t(e, { includeName: t }) {
|
|
84670
84670
|
function ks(e, { strict: t = !0 } = {}) {
|
84671
84671
|
return !e || typeof e != "string" ? !1 : t ? /^0x[0-9a-fA-F]*$/.test(e) : e.startsWith("0x");
|
84672
84672
|
}
|
84673
|
-
function
|
84673
|
+
function dr(e) {
|
84674
84674
|
return ks(e, { strict: !1 }) ? Math.ceil((e.length - 2) / 2) : e.length;
|
84675
84675
|
}
|
84676
84676
|
const W$ = "2.28.0";
|
@@ -84801,7 +84801,7 @@ class x8t extends Ge {
|
|
84801
84801
|
}
|
84802
84802
|
class v8t extends Ge {
|
84803
84803
|
constructor({ expectedSize: t, value: n }) {
|
84804
|
-
super(`Size of bytes "${n}" (bytes${
|
84804
|
+
super(`Size of bytes "${n}" (bytes${dr(n)}) does not match expected size (bytes${t}).`, { name: "AbiEncodingBytesSizeMismatchError" });
|
84805
84805
|
}
|
84806
84806
|
}
|
84807
84807
|
class k8t extends Ge {
|
@@ -85112,9 +85112,9 @@ function Xc(e, { dir: t = "left" } = {}) {
|
|
85112
85112
|
return n = t === "left" ? n.slice(r) : n.slice(0, n.length - r), typeof e == "string" ? (n.length === 1 && t === "right" && (n = `${n}0`), `0x${n.length % 2 === 1 ? `0${n}` : n}`) : n;
|
85113
85113
|
}
|
85114
85114
|
function La(e, { size: t }) {
|
85115
|
-
if (
|
85115
|
+
if (dr(e) > t)
|
85116
85116
|
throw new I8t({
|
85117
|
-
givenSize:
|
85117
|
+
givenSize: dr(e),
|
85118
85118
|
maxSize: t
|
85119
85119
|
});
|
85120
85120
|
}
|
@@ -85540,19 +85540,19 @@ function D0(e, t, n, { strict: r } = {}) {
|
|
85540
85540
|
});
|
85541
85541
|
}
|
85542
85542
|
function uJ(e, t) {
|
85543
|
-
if (typeof t == "number" && t > 0 && t >
|
85543
|
+
if (typeof t == "number" && t > 0 && t > dr(e) - 1)
|
85544
85544
|
throw new Q$({
|
85545
85545
|
offset: t,
|
85546
85546
|
position: "start",
|
85547
|
-
size:
|
85547
|
+
size: dr(e)
|
85548
85548
|
});
|
85549
85549
|
}
|
85550
85550
|
function cJ(e, t, n) {
|
85551
|
-
if (typeof t == "number" && typeof n == "number" &&
|
85551
|
+
if (typeof t == "number" && typeof n == "number" && dr(e) !== n - t)
|
85552
85552
|
throw new Q$({
|
85553
85553
|
offset: n,
|
85554
85554
|
position: "end",
|
85555
|
-
size:
|
85555
|
+
size: dr(e)
|
85556
85556
|
});
|
85557
85557
|
}
|
85558
85558
|
function dJ(e, t, n, { strict: r } = {}) {
|
@@ -85617,13 +85617,13 @@ function lE(e) {
|
|
85617
85617
|
let t = 0;
|
85618
85618
|
for (let i = 0; i < e.length; i++) {
|
85619
85619
|
const { dynamic: a, encoded: s } = e[i];
|
85620
|
-
a ? t += 32 : t +=
|
85620
|
+
a ? t += 32 : t += dr(s);
|
85621
85621
|
}
|
85622
85622
|
const n = [], r = [];
|
85623
85623
|
let o = 0;
|
85624
85624
|
for (let i = 0; i < e.length; i++) {
|
85625
85625
|
const { dynamic: a, encoded: s } = e[i];
|
85626
|
-
a ? (n.push(Nt(t + o, { size: 32 })), r.push(s), o +=
|
85626
|
+
a ? (n.push(Nt(t + o, { size: 32 })), r.push(s), o += dr(s)) : n.push(s);
|
85627
85627
|
}
|
85628
85628
|
return Fl([...n, ...r]);
|
85629
85629
|
}
|
@@ -85666,7 +85666,7 @@ function x9t(e, { length: t, param: n }) {
|
|
85666
85666
|
};
|
85667
85667
|
}
|
85668
85668
|
function v9t(e, { param: t }) {
|
85669
|
-
const [, n] = t.type.split("bytes"), r =
|
85669
|
+
const [, n] = t.type.split("bytes"), r = dr(e);
|
85670
85670
|
if (!n) {
|
85671
85671
|
let o = e;
|
85672
85672
|
return r % 32 !== 0 && (o = Au(o, {
|
@@ -85710,7 +85710,7 @@ function w9t(e, { signed: t, size: n = 256 }) {
|
|
85710
85710
|
};
|
85711
85711
|
}
|
85712
85712
|
function F9t(e) {
|
85713
|
-
const t = Ip(e), n = Math.ceil(
|
85713
|
+
const t = Ip(e), n = Math.ceil(dr(t) / 32), r = [];
|
85714
85714
|
for (let o = 0; o < n; o++)
|
85715
85715
|
r.push(Au(D0(t, o * 32, (o + 1) * 32), {
|
85716
85716
|
dir: "right"
|
@@ -85718,7 +85718,7 @@ function F9t(e) {
|
|
85718
85718
|
return {
|
85719
85719
|
dynamic: !0,
|
85720
85720
|
encoded: Fl([
|
85721
|
-
Au(Nt(
|
85721
|
+
Au(Nt(dr(t), { size: 32 })),
|
85722
85722
|
...r
|
85723
85723
|
])
|
85724
85724
|
};
|
@@ -86100,13 +86100,13 @@ function T9t(e, t = {}) {
|
|
86100
86100
|
}
|
86101
86101
|
function Em(e, t) {
|
86102
86102
|
const n = typeof t == "string" ? Ma(t) : t, r = cE(n);
|
86103
|
-
if (
|
86103
|
+
if (dr(n) === 0 && e.length > 0)
|
86104
86104
|
throw new wm();
|
86105
|
-
if (
|
86105
|
+
if (dr(t) && dr(t) < 32)
|
86106
86106
|
throw new Z$({
|
86107
86107
|
data: typeof t == "string" ? t : Mr(t),
|
86108
86108
|
params: e,
|
86109
|
-
size:
|
86109
|
+
size: dr(t)
|
86110
86110
|
});
|
86111
86111
|
let o = 0;
|
86112
86112
|
const i = [];
|
@@ -87912,7 +87912,7 @@ class Dkt extends Ge {
|
|
87912
87912
|
}
|
87913
87913
|
}
|
87914
87914
|
function Skt(e) {
|
87915
|
-
const t = typeof e.data == "string" ? Ma(e.data) : e.data, n =
|
87915
|
+
const t = typeof e.data == "string" ? Ma(e.data) : e.data, n = dr(t);
|
87916
87916
|
if (!n)
|
87917
87917
|
throw new Dkt();
|
87918
87918
|
if (n > nI)
|
@@ -88208,7 +88208,7 @@ function kE(e) {
|
|
88208
88208
|
abiItem: l,
|
88209
88209
|
data: n,
|
88210
88210
|
params: p,
|
88211
|
-
size:
|
88211
|
+
size: dr(n)
|
88212
88212
|
}) : m;
|
88213
88213
|
}
|
88214
88214
|
else if (i)
|
@@ -88786,7 +88786,7 @@ async function V6(e, t) {
|
|
88786
88786
|
});
|
88787
88787
|
return Y === "0x" ? { data: void 0 } : { data: Y };
|
88788
88788
|
} catch (G) {
|
88789
|
-
const P = Wkt(G), { offchainLookup: R, offchainLookupSignature: H } = await import("./ccip-
|
88789
|
+
const P = Wkt(G), { offchainLookup: R, offchainLookupSignature: H } = await import("./ccip-DniSnj94.mjs");
|
88790
88790
|
if (e.ccipRead !== !1 && (P == null ? void 0 : P.slice(0, 10)) === H && k)
|
88791
88791
|
return { data: await R(e, { data: P, to: k }) };
|
88792
88792
|
throw D && (P == null ? void 0 : P.slice(0, 10)) === "0x101bb98d" ? new J9t({ factory: c }) : ZJ(G, {
|
@@ -90368,10 +90368,10 @@ function J7t(e) {
|
|
90368
90368
|
const h = c.match(g9t);
|
90369
90369
|
if (h) {
|
90370
90370
|
const [m, g] = h;
|
90371
|
-
if (g &&
|
90371
|
+
if (g && dr(d) !== Number.parseInt(g))
|
90372
90372
|
throw new E8t({
|
90373
90373
|
expectedSize: Number.parseInt(g),
|
90374
|
-
givenSize:
|
90374
|
+
givenSize: dr(d)
|
90375
90375
|
});
|
90376
90376
|
}
|
90377
90377
|
const p = o[c];
|
@@ -90411,7 +90411,7 @@ function X7t(e) {
|
|
90411
90411
|
const ewt = `Ethereum Signed Message:
|
90412
90412
|
`;
|
90413
90413
|
function twt(e) {
|
90414
|
-
const t = typeof e == "string" ? Ip(e) : typeof e.raw == "string" ? e.raw : Mr(e.raw), n = Ip(`${ewt}${
|
90414
|
+
const t = typeof e == "string" ? Ip(e) : typeof e.raw == "string" ? e.raw : Mr(e.raw), n = Ip(`${ewt}${dr(t)}`);
|
90415
90415
|
return Fl([n, t]);
|
90416
90416
|
}
|
90417
90417
|
function uQ(e, t) {
|
@@ -92017,7 +92017,7 @@ class SQ extends oE {
|
|
92017
92017
|
const TQ = (e, t, n) => new SQ(e, t).update(n).digest();
|
92018
92018
|
TQ.create = (e, t) => new SQ(e, t);
|
92019
92019
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
92020
|
-
const Nr = BigInt(0),
|
92020
|
+
const Nr = BigInt(0), ur = BigInt(1), Ic = /* @__PURE__ */ BigInt(2), pFt = /* @__PURE__ */ BigInt(3), w7 = /* @__PURE__ */ BigInt(4), kI = /* @__PURE__ */ BigInt(5), wI = /* @__PURE__ */ BigInt(8);
|
92021
92021
|
function Ro(e, t) {
|
92022
92022
|
const n = e % t;
|
92023
92023
|
return n >= Nr ? n : t + n;
|
@@ -92027,11 +92027,11 @@ function mFt(e, t, n) {
|
|
92027
92027
|
throw new Error("invalid exponent, negatives unsupported");
|
92028
92028
|
if (n <= Nr)
|
92029
92029
|
throw new Error("invalid modulus");
|
92030
|
-
if (n ===
|
92030
|
+
if (n === ur)
|
92031
92031
|
return Nr;
|
92032
|
-
let r =
|
92032
|
+
let r = ur;
|
92033
92033
|
for (; t > Nr; )
|
92034
|
-
t &
|
92034
|
+
t & ur && (r = r * e % n), e = e * e % n, t >>= ur;
|
92035
92035
|
return r;
|
92036
92036
|
}
|
92037
92037
|
function Si(e, t, n) {
|
@@ -92045,25 +92045,25 @@ function F7(e, t) {
|
|
92045
92045
|
throw new Error("invert: expected non-zero number");
|
92046
92046
|
if (t <= Nr)
|
92047
92047
|
throw new Error("invert: expected positive modulus, got " + t);
|
92048
|
-
let n = Ro(e, t), r = t, o = Nr, i =
|
92048
|
+
let n = Ro(e, t), r = t, o = Nr, i = ur;
|
92049
92049
|
for (; n !== Nr; ) {
|
92050
92050
|
const s = r / n, l = r % n, u = o - i * s;
|
92051
92051
|
r = n, n = l, o = i, i = u;
|
92052
92052
|
}
|
92053
|
-
if (r !==
|
92053
|
+
if (r !== ur)
|
92054
92054
|
throw new Error("invert: does not exist");
|
92055
92055
|
return Ro(o, t);
|
92056
92056
|
}
|
92057
92057
|
function gFt(e) {
|
92058
|
-
const t = (e -
|
92058
|
+
const t = (e - ur) / Ic;
|
92059
92059
|
let n, r, o;
|
92060
|
-
for (n = e -
|
92060
|
+
for (n = e - ur, r = 0; n % Ic === Nr; n /= Ic, r++)
|
92061
92061
|
;
|
92062
|
-
for (o = Ic; o < e && mFt(o, t, e) !== e -
|
92062
|
+
for (o = Ic; o < e && mFt(o, t, e) !== e - ur; o++)
|
92063
92063
|
if (o > 1e3)
|
92064
92064
|
throw new Error("Cannot find square root: likely non-prime P");
|
92065
92065
|
if (r === 1) {
|
92066
|
-
const a = (e +
|
92066
|
+
const a = (e + ur) / w7;
|
92067
92067
|
return function(l, u) {
|
92068
92068
|
const c = l.pow(u, a);
|
92069
92069
|
if (!l.eql(l.sqr(c), u))
|
@@ -92071,7 +92071,7 @@ function gFt(e) {
|
|
92071
92071
|
return c;
|
92072
92072
|
};
|
92073
92073
|
}
|
92074
|
-
const i = (n +
|
92074
|
+
const i = (n + ur) / Ic;
|
92075
92075
|
return function(s, l) {
|
92076
92076
|
if (s.pow(l, t) === s.neg(s.ONE))
|
92077
92077
|
throw new Error("Cannot find square root");
|
@@ -92082,7 +92082,7 @@ function gFt(e) {
|
|
92082
92082
|
let h = 1;
|
92083
92083
|
for (let m = s.sqr(f); h < u && !s.eql(m, s.ONE); h++)
|
92084
92084
|
m = s.sqr(m);
|
92085
|
-
const p = s.pow(c,
|
92085
|
+
const p = s.pow(c, ur << BigInt(u - h - 1));
|
92086
92086
|
c = s.sqr(p), d = s.mul(d, p), f = s.mul(f, c), u = h;
|
92087
92087
|
}
|
92088
92088
|
return d;
|
@@ -92090,7 +92090,7 @@ function gFt(e) {
|
|
92090
92090
|
}
|
92091
92091
|
function yFt(e) {
|
92092
92092
|
if (e % w7 === pFt) {
|
92093
|
-
const t = (e +
|
92093
|
+
const t = (e + ur) / w7;
|
92094
92094
|
return function(r, o) {
|
92095
92095
|
const i = r.pow(o, t);
|
92096
92096
|
if (!r.eql(r.sqr(i), o))
|
@@ -92142,11 +92142,11 @@ function vFt(e, t, n) {
|
|
92142
92142
|
throw new Error("invalid exponent, negatives unsupported");
|
92143
92143
|
if (n === Nr)
|
92144
92144
|
return e.ONE;
|
92145
|
-
if (n ===
|
92145
|
+
if (n === ur)
|
92146
92146
|
return t;
|
92147
92147
|
let r = e.ONE, o = t;
|
92148
92148
|
for (; n > Nr; )
|
92149
|
-
n &
|
92149
|
+
n & ur && (r = e.mul(r, o)), o = e.sqr(o), n >>= ur;
|
92150
92150
|
return r;
|
92151
92151
|
}
|
92152
92152
|
function kFt(e, t) {
|
@@ -92171,7 +92171,7 @@ function NQ(e, t, n = !1, r = {}) {
|
|
92171
92171
|
BYTES: i,
|
92172
92172
|
MASK: Z6(o),
|
92173
92173
|
ZERO: Nr,
|
92174
|
-
ONE:
|
92174
|
+
ONE: ur,
|
92175
92175
|
create: (l) => Ro(l, e),
|
92176
92176
|
isValid: (l) => {
|
92177
92177
|
if (typeof l != "bigint")
|
@@ -92179,7 +92179,7 @@ function NQ(e, t, n = !1, r = {}) {
|
|
92179
92179
|
return Nr <= l && l < e;
|
92180
92180
|
},
|
92181
92181
|
is0: (l) => l === Nr,
|
92182
|
-
isOdd: (l) => (l &
|
92182
|
+
isOdd: (l) => (l & ur) === ur,
|
92183
92183
|
neg: (l) => Ro(-l, e),
|
92184
92184
|
eql: (l, u) => l === u,
|
92185
92185
|
sqr: (l) => Ro(l * l, e),
|
@@ -92222,7 +92222,7 @@ function wFt(e, t, n = !1) {
|
|
92222
92222
|
const r = e.length, o = IQ(t), i = OQ(t);
|
92223
92223
|
if (r < 16 || r < i || r > 1024)
|
92224
92224
|
throw new Error("expected " + i + "-1024 bytes of input, got " + r);
|
92225
|
-
const a = n ? hQ(e) : t1(e), s = Ro(a, t -
|
92225
|
+
const a = n ? hQ(e) : t1(e), s = Ro(a, t - ur) + ur;
|
92226
92226
|
return n ? pQ(s, o) : o2(s, o);
|
92227
92227
|
}
|
92228
92228
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
@@ -98536,7 +98536,7 @@ const $E = new un("inline-ui"), Pjt = () => new nn({
|
|
98536
98536
|
if (n && n.add) {
|
98537
98537
|
const { id: r, pos: o, content: i } = n.add, a = document.createElement("div");
|
98538
98538
|
a.setAttribute("class", "img-placeholder"), a.textContent = i;
|
98539
|
-
const s =
|
98539
|
+
const s = cr.widget(o + 1, a, {
|
98540
98540
|
id: r
|
98541
98541
|
});
|
98542
98542
|
t = t.add(e.doc, [s]);
|
@@ -99129,6 +99129,13 @@ const I7 = [
|
|
99129
99129
|
e.chain().focus().setFontFamily("Georgia, serif").run();
|
99130
99130
|
}
|
99131
99131
|
},
|
99132
|
+
{
|
99133
|
+
title: "IBM Plex Mono",
|
99134
|
+
value: "IBM Plex Mono, monospace",
|
99135
|
+
command: (e) => {
|
99136
|
+
e.chain().focus().setFontFamily("IBM Plex Mono, monospace").run();
|
99137
|
+
}
|
99138
|
+
},
|
99132
99139
|
{
|
99133
99140
|
title: "Impact",
|
99134
99141
|
value: "Impact, Charcoal, sans-serif",
|
@@ -99143,6 +99150,13 @@ const I7 = [
|
|
99143
99150
|
e.chain().focus().setFontFamily("Inter, sans-serif").run();
|
99144
99151
|
}
|
99145
99152
|
},
|
99153
|
+
{
|
99154
|
+
title: "JetBrains Mono",
|
99155
|
+
value: "JetBrains Mono, monospace",
|
99156
|
+
command: (e) => {
|
99157
|
+
e.chain().focus().setFontFamily("JetBrains Mono, monospace").run();
|
99158
|
+
}
|
99159
|
+
},
|
99146
99160
|
{
|
99147
99161
|
title: "Lato",
|
99148
99162
|
value: "Lato, sans-serif",
|
@@ -100755,7 +100769,7 @@ const I7 = [
|
|
100755
100769
|
name: "Multiple"
|
100756
100770
|
};
|
100757
100771
|
return /* @__PURE__ */ F.jsx(
|
100758
|
-
|
100772
|
+
lr,
|
100759
100773
|
{
|
100760
100774
|
sideOffset: 15,
|
100761
100775
|
anchorTrigger: /* @__PURE__ */ F.jsxs("button", { className: "bg-transparent hover:!color-bg-default-hover color-text-default rounded p-1 flex items-center justify-between gap-2 w-fit max-w-36", children: [
|
@@ -100795,7 +100809,7 @@ const I7 = [
|
|
100795
100809
|
},
|
100796
100810
|
"NodeSelector"
|
100797
100811
|
);
|
100798
|
-
},
|
100812
|
+
}, yr = yn(({ icon: e, isActive: t, onClick: n, tooltip: r, classNames: o, disabled: i, size: a }, s) => r ? /* @__PURE__ */ F.jsx(pn, { text: r, children: /* @__PURE__ */ F.jsx(
|
100799
100813
|
cn,
|
100800
100814
|
{
|
100801
100815
|
ref: s,
|
@@ -100823,11 +100837,11 @@ const I7 = [
|
|
100823
100837
|
function Ms(e, t) {
|
100824
100838
|
return typeof e == "function" ? e(t) : e && typeof e == "object" && aO in e ? e[aO](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
100825
100839
|
}
|
100826
|
-
function
|
100840
|
+
function mr(e, t) {
|
100827
100841
|
return Ms(t || e, e);
|
100828
100842
|
}
|
100829
100843
|
function oAt(e, t, n) {
|
100830
|
-
const r =
|
100844
|
+
const r = mr(e, n == null ? void 0 : n.in);
|
100831
100845
|
return isNaN(t) ? Ms(e, NaN) : (r.setDate(r.getDate() + t), r);
|
100832
100846
|
}
|
100833
100847
|
let iAt = {};
|
@@ -100836,14 +100850,14 @@ function Im() {
|
|
100836
100850
|
}
|
100837
100851
|
function u2(e, t) {
|
100838
100852
|
var s, l, u, c;
|
100839
|
-
const n = Im(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((l = (s = t == null ? void 0 : t.locale) == null ? void 0 : s.options) == null ? void 0 : l.weekStartsOn) ?? n.weekStartsOn ?? ((c = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : c.weekStartsOn) ?? 0, o =
|
100853
|
+
const n = Im(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((l = (s = t == null ? void 0 : t.locale) == null ? void 0 : s.options) == null ? void 0 : l.weekStartsOn) ?? n.weekStartsOn ?? ((c = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : c.weekStartsOn) ?? 0, o = mr(e, t == null ? void 0 : t.in), i = o.getDay(), a = (i < r ? 7 : 0) + i - r;
|
100840
100854
|
return o.setDate(o.getDate() - a), o.setHours(0, 0, 0, 0), o;
|
100841
100855
|
}
|
100842
100856
|
function o3(e, t) {
|
100843
100857
|
return u2(e, { ...t, weekStartsOn: 1 });
|
100844
100858
|
}
|
100845
100859
|
function RX(e, t) {
|
100846
|
-
const n =
|
100860
|
+
const n = mr(e, t == null ? void 0 : t.in), r = n.getFullYear(), o = Ms(n, 0);
|
100847
100861
|
o.setFullYear(r + 1, 0, 4), o.setHours(0, 0, 0, 0);
|
100848
100862
|
const i = o3(o), a = Ms(n, 0);
|
100849
100863
|
a.setFullYear(r, 0, 4), a.setHours(0, 0, 0, 0);
|
@@ -100851,7 +100865,7 @@ function RX(e, t) {
|
|
100851
100865
|
return n.getTime() >= i.getTime() ? r + 1 : n.getTime() >= s.getTime() ? r : r - 1;
|
100852
100866
|
}
|
100853
100867
|
function i3(e) {
|
100854
|
-
const t =
|
100868
|
+
const t = mr(e), n = new Date(
|
100855
100869
|
Date.UTC(
|
100856
100870
|
t.getFullYear(),
|
100857
100871
|
t.getMonth(),
|
@@ -100872,7 +100886,7 @@ function e5(e, ...t) {
|
|
100872
100886
|
return t.map(n);
|
100873
100887
|
}
|
100874
100888
|
function sO(e, t) {
|
100875
|
-
const n =
|
100889
|
+
const n = mr(e, t == null ? void 0 : t.in);
|
100876
100890
|
return n.setHours(0, 0, 0, 0), n;
|
100877
100891
|
}
|
100878
100892
|
function aAt(e, t, n) {
|
@@ -100888,7 +100902,7 @@ function sAt(e, t) {
|
|
100888
100902
|
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), o3(r);
|
100889
100903
|
}
|
100890
100904
|
function q4(e, t) {
|
100891
|
-
const n = +
|
100905
|
+
const n = +mr(e) - +mr(t);
|
100892
100906
|
return n < 0 ? -1 : n > 0 ? 1 : n;
|
100893
100907
|
}
|
100894
100908
|
function lAt(e) {
|
@@ -100898,7 +100912,7 @@ function uAt(e) {
|
|
100898
100912
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
100899
100913
|
}
|
100900
100914
|
function cAt(e) {
|
100901
|
-
return !(!uAt(e) && typeof e != "number" || isNaN(+
|
100915
|
+
return !(!uAt(e) && typeof e != "number" || isNaN(+mr(e)));
|
100902
100916
|
}
|
100903
100917
|
function dAt(e, t, n) {
|
100904
100918
|
const [r, o] = e5(
|
@@ -100915,18 +100929,18 @@ function fAt(e) {
|
|
100915
100929
|
};
|
100916
100930
|
}
|
100917
100931
|
function hAt(e, t) {
|
100918
|
-
return +
|
100932
|
+
return +mr(e) - +mr(t);
|
100919
100933
|
}
|
100920
100934
|
function pAt(e, t) {
|
100921
|
-
const n =
|
100935
|
+
const n = mr(e, t == null ? void 0 : t.in);
|
100922
100936
|
return n.setHours(23, 59, 59, 999), n;
|
100923
100937
|
}
|
100924
100938
|
function mAt(e, t) {
|
100925
|
-
const n =
|
100939
|
+
const n = mr(e, t == null ? void 0 : t.in), r = n.getMonth();
|
100926
100940
|
return n.setFullYear(n.getFullYear(), r + 1, 0), n.setHours(23, 59, 59, 999), n;
|
100927
100941
|
}
|
100928
100942
|
function gAt(e, t) {
|
100929
|
-
const n =
|
100943
|
+
const n = mr(e, t == null ? void 0 : t.in);
|
100930
100944
|
return +pAt(n, t) == +mAt(n, t);
|
100931
100945
|
}
|
100932
100946
|
function yAt(e, t, n) {
|
@@ -100950,7 +100964,7 @@ function bAt(e, t, n) {
|
|
100950
100964
|
return fAt(n == null ? void 0 : n.roundingMethod)(r);
|
100951
100965
|
}
|
100952
100966
|
function xAt(e, t) {
|
100953
|
-
const n =
|
100967
|
+
const n = mr(e, t == null ? void 0 : t.in);
|
100954
100968
|
return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
100955
100969
|
}
|
100956
100970
|
const vAt = {
|
@@ -101385,16 +101399,16 @@ const _At = /^(\d+)(th|st|nd|rd)?/i, PAt = /\d+/i, HAt = {
|
|
101385
101399
|
}
|
101386
101400
|
};
|
101387
101401
|
function QAt(e, t) {
|
101388
|
-
const n =
|
101402
|
+
const n = mr(e, t == null ? void 0 : t.in);
|
101389
101403
|
return aAt(n, xAt(n)) + 1;
|
101390
101404
|
}
|
101391
101405
|
function XAt(e, t) {
|
101392
|
-
const n =
|
101406
|
+
const n = mr(e, t == null ? void 0 : t.in), r = +o3(n) - +sAt(n);
|
101393
101407
|
return Math.round(r / OX) + 1;
|
101394
101408
|
}
|
101395
101409
|
function zX(e, t) {
|
101396
101410
|
var c, d, f, h;
|
101397
|
-
const n =
|
101411
|
+
const n = mr(e, t == null ? void 0 : t.in), r = n.getFullYear(), o = Im(), i = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (c = t == null ? void 0 : t.locale) == null ? void 0 : c.options) == null ? void 0 : d.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((h = (f = o.locale) == null ? void 0 : f.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, a = Ms((t == null ? void 0 : t.in) || e, 0);
|
101398
101412
|
a.setFullYear(r + 1, 0, i), a.setHours(0, 0, 0, 0);
|
101399
101413
|
const s = u2(a, t), l = Ms((t == null ? void 0 : t.in) || e, 0);
|
101400
101414
|
l.setFullYear(r, 0, i), l.setHours(0, 0, 0, 0);
|
@@ -101407,7 +101421,7 @@ function eDt(e, t) {
|
|
101407
101421
|
return i.setFullYear(o, 0, r), i.setHours(0, 0, 0, 0), u2(i, t);
|
101408
101422
|
}
|
101409
101423
|
function tDt(e, t) {
|
101410
|
-
const n =
|
101424
|
+
const n = mr(e, t == null ? void 0 : t.in), r = +u2(n, t) - +eDt(n, t);
|
101411
101425
|
return Math.round(r / OX) + 1;
|
101412
101426
|
}
|
101413
101427
|
function xn(e, t) {
|
@@ -102039,7 +102053,7 @@ function cDt(e, t, n) {
|
|
102039
102053
|
const dDt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, fDt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, hDt = /^'([^]*?)'?$/, pDt = /''/g, mDt = /[a-zA-Z]/;
|
102040
102054
|
function Rv(e, t, n) {
|
102041
102055
|
var c, d, f, h;
|
102042
|
-
const r = Im(), o = r.locale ?? BX, i = r.firstWeekContainsDate ?? ((d = (c = r.locale) == null ? void 0 : c.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, a = r.weekStartsOn ?? ((h = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : h.weekStartsOn) ?? 0, s =
|
102056
|
+
const r = Im(), o = r.locale ?? BX, i = r.firstWeekContainsDate ?? ((d = (c = r.locale) == null ? void 0 : c.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, a = r.weekStartsOn ?? ((h = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : h.weekStartsOn) ?? 0, s = mr(e, n == null ? void 0 : n.in);
|
102043
102057
|
if (!cAt(s))
|
102044
102058
|
throw new RangeError("Invalid time value");
|
102045
102059
|
let l = t.match(fDt).map((p) => {
|
@@ -102122,7 +102136,7 @@ function bDt(e, t) {
|
|
102122
102136
|
return yDt(e, lAt(e), t);
|
102123
102137
|
}
|
102124
102138
|
function xDt(e, t) {
|
102125
|
-
return +
|
102139
|
+
return +mr(e) > +mr(t);
|
102126
102140
|
}
|
102127
102141
|
function vDt(e, t, n) {
|
102128
102142
|
return oAt(e, -1, n);
|
@@ -102382,7 +102396,7 @@ const PX = (e) => e && (e.length > 20 ? e.slice(0, 5) + "..." + e.slice(e.length
|
|
102382
102396
|
}
|
102383
102397
|
),
|
102384
102398
|
!u && h && /* @__PURE__ */ F.jsx(
|
102385
|
-
|
102399
|
+
lr,
|
102386
102400
|
{
|
102387
102401
|
align: "end",
|
102388
102402
|
sideOffset: 4,
|
@@ -102679,7 +102693,7 @@ const PX = (e) => e && (e.length > 20 ? e.slice(0, 5) + "..." + e.slice(e.length
|
|
102679
102693
|
position: "top",
|
102680
102694
|
children: [
|
102681
102695
|
/* @__PURE__ */ F.jsx(
|
102682
|
-
|
102696
|
+
lr,
|
102683
102697
|
{
|
102684
102698
|
align: "end",
|
102685
102699
|
sideOffset: 4,
|
@@ -103222,7 +103236,9 @@ const CDt = /* @__PURE__ */ I1(MDt), Rg = () => {
|
|
103222
103236
|
initialReminderTitle: r,
|
103223
103237
|
setInitialReminderTitle: o
|
103224
103238
|
}, i) => {
|
103225
|
-
const [a, s] = Ie(r || ""), [l, u] = Ie(
|
103239
|
+
const [a, s] = Ie(r || ""), [l, u] = Ie(
|
103240
|
+
new Date(Date.now() + 6 * 60 * 1e3)
|
103241
|
+
), [c, d] = Ie(""), f = Ho("(max-width: 768px)"), [h, p] = Ie(!0);
|
103226
103242
|
ze(() => {
|
103227
103243
|
r && s(r);
|
103228
103244
|
}, [r]);
|
@@ -103263,6 +103279,7 @@ const CDt = /* @__PURE__ */ I1(MDt), Rg = () => {
|
|
103263
103279
|
);
|
103264
103280
|
return;
|
103265
103281
|
}
|
103282
|
+
l.setSeconds(0, 0);
|
103266
103283
|
const x = {
|
103267
103284
|
id: ju(),
|
103268
103285
|
title: a,
|
@@ -103329,7 +103346,7 @@ const CDt = /* @__PURE__ */ I1(MDt), Rg = () => {
|
|
103329
103346
|
/* @__PURE__ */ F.jsx("h3", { className: "text-heading-xsm", children: "Custom" }),
|
103330
103347
|
/* @__PURE__ */ F.jsxs("div", { className: "flex gap-2", children: [
|
103331
103348
|
/* @__PURE__ */ F.jsx(
|
103332
|
-
|
103349
|
+
lr,
|
103333
103350
|
{
|
103334
103351
|
anchorTrigger: /* @__PURE__ */ F.jsx(
|
103335
103352
|
pi,
|
@@ -103345,7 +103362,7 @@ const CDt = /* @__PURE__ */ I1(MDt), Rg = () => {
|
|
103345
103362
|
),
|
103346
103363
|
/* @__PURE__ */ F.jsxs("div", { className: "flex items-center", children: [
|
103347
103364
|
/* @__PURE__ */ F.jsx(
|
103348
|
-
|
103365
|
+
lr,
|
103349
103366
|
{
|
103350
103367
|
anchorTrigger: /* @__PURE__ */ F.jsx(
|
103351
103368
|
pi,
|
@@ -103616,7 +103633,7 @@ const CDt = /* @__PURE__ */ I1(MDt), Rg = () => {
|
|
103616
103633
|
}
|
103617
103634
|
}, P = /* @__PURE__ */ F.jsxs(ke.Fragment, { children: [
|
103618
103635
|
/* @__PURE__ */ F.jsx(
|
103619
|
-
|
103636
|
+
yr,
|
103620
103637
|
{
|
103621
103638
|
ref: I,
|
103622
103639
|
icon: "MessageSquarePlus",
|
@@ -103659,17 +103676,44 @@ const CDt = /* @__PURE__ */ I1(MDt), Rg = () => {
|
|
103659
103676
|
transform: `scale(${1 / parseFloat(n)})`,
|
103660
103677
|
transformOrigin: "center"
|
103661
103678
|
},
|
103662
|
-
children: p ? /* @__PURE__ */ F.
|
103679
|
+
children: p ? /* @__PURE__ */ F.jsxs(
|
103663
103680
|
"div",
|
103664
103681
|
{
|
103665
103682
|
className: ye(
|
103666
103683
|
"relative",
|
103667
103684
|
j ? "left-1/2 translate-x-1/2" : ""
|
103668
103685
|
),
|
103669
|
-
children:
|
103686
|
+
children: [
|
103687
|
+
P,
|
103688
|
+
c && /* @__PURE__ */ F.jsx(
|
103689
|
+
lr,
|
103690
|
+
{
|
103691
|
+
side: "bottom",
|
103692
|
+
sideOffset: 15,
|
103693
|
+
anchorTrigger: /* @__PURE__ */ F.jsx(
|
103694
|
+
yr,
|
103695
|
+
{
|
103696
|
+
icon: "AlarmClock",
|
103697
|
+
variant: "ghost",
|
103698
|
+
size: "sm",
|
103699
|
+
onClick: () => {
|
103700
|
+
var H;
|
103701
|
+
const R = ((H = t.state.selection.content().content.firstChild) == null ? void 0 : H.textContent) || "";
|
103702
|
+
M && M(R);
|
103703
|
+
}
|
103704
|
+
}
|
103705
|
+
),
|
103706
|
+
className: "!max-w-[300px] border-none shadow-none",
|
103707
|
+
content: G({
|
103708
|
+
name: "Reminder"
|
103709
|
+
})
|
103710
|
+
},
|
103711
|
+
"Reminder"
|
103712
|
+
)
|
103713
|
+
]
|
103670
103714
|
}
|
103671
103715
|
) : /* @__PURE__ */ F.jsx(ke.Fragment, { children: o ? /* @__PURE__ */ F.jsx(
|
103672
|
-
|
103716
|
+
lr,
|
103673
103717
|
{
|
103674
103718
|
side: "bottom",
|
103675
103719
|
sideOffset: 15,
|
@@ -103677,7 +103721,7 @@ const CDt = /* @__PURE__ */ I1(MDt), Rg = () => {
|
|
103677
103721
|
align: "end",
|
103678
103722
|
className: "!z-[50] shadow-elevation-3",
|
103679
103723
|
anchorTrigger: /* @__PURE__ */ F.jsx(
|
103680
|
-
|
103724
|
+
yr,
|
103681
103725
|
{
|
103682
103726
|
icon: "MessageSquarePlus",
|
103683
103727
|
variant: "ghost",
|
@@ -103699,7 +103743,7 @@ const CDt = /* @__PURE__ */ I1(MDt), Rg = () => {
|
|
103699
103743
|
/* @__PURE__ */ F.jsx(nAt, { editor: t, elementRef: m }),
|
103700
103744
|
/* @__PURE__ */ F.jsx("div", { className: "w-[1px] h-4 vertical-divider" }),
|
103701
103745
|
/* @__PURE__ */ F.jsx(
|
103702
|
-
|
103746
|
+
lr,
|
103703
103747
|
{
|
103704
103748
|
sideOffset: 8,
|
103705
103749
|
anchorTrigger: /* @__PURE__ */ F.jsxs(
|
@@ -103729,7 +103773,7 @@ const CDt = /* @__PURE__ */ I1(MDt), Rg = () => {
|
|
103729
103773
|
/* @__PURE__ */ F.jsx("div", { className: "w-[1px] h-4 vertical-divider" }),
|
103730
103774
|
q.map((R, H) => R.name === "Bold" || R.name === "Italic" || R.name === "Underline" || R.name === "Strikethrough" || R.name === "Code" ? /* @__PURE__ */ F.jsxs("div", { className: "flex items-center", children: [
|
103731
103775
|
/* @__PURE__ */ F.jsx(
|
103732
|
-
|
103776
|
+
yr,
|
103733
103777
|
{
|
103734
103778
|
icon: R.icon,
|
103735
103779
|
size: "sm",
|
@@ -103740,11 +103784,11 @@ const CDt = /* @__PURE__ */ I1(MDt), Rg = () => {
|
|
103740
103784
|
H === 3 && /* @__PURE__ */ F.jsx("div", { className: "w-[1px] h-4 vertical-divider ml-2" })
|
103741
103785
|
] }, H) : R.name === "Alignment" ? /* @__PURE__ */ F.jsxs(ke.Fragment, { children: [
|
103742
103786
|
/* @__PURE__ */ F.jsx(
|
103743
|
-
|
103787
|
+
lr,
|
103744
103788
|
{
|
103745
103789
|
sideOffset: 15,
|
103746
103790
|
anchorTrigger: /* @__PURE__ */ F.jsx(
|
103747
|
-
|
103791
|
+
yr,
|
103748
103792
|
{
|
103749
103793
|
icon: "Baseline",
|
103750
103794
|
size: "sm",
|
@@ -103763,11 +103807,11 @@ const CDt = /* @__PURE__ */ I1(MDt), Rg = () => {
|
|
103763
103807
|
rt.TEXT_COLOR
|
103764
103808
|
),
|
103765
103809
|
/* @__PURE__ */ F.jsx(
|
103766
|
-
|
103810
|
+
lr,
|
103767
103811
|
{
|
103768
103812
|
sideOffset: 15,
|
103769
103813
|
anchorTrigger: /* @__PURE__ */ F.jsx(
|
103770
|
-
|
103814
|
+
yr,
|
103771
103815
|
{
|
103772
103816
|
icon: "Highlighter",
|
103773
103817
|
size: "sm",
|
@@ -103787,11 +103831,11 @@ const CDt = /* @__PURE__ */ I1(MDt), Rg = () => {
|
|
103787
103831
|
),
|
103788
103832
|
/* @__PURE__ */ F.jsx("div", { className: "w-[1px] h-4 vertical-divider" }),
|
103789
103833
|
/* @__PURE__ */ F.jsx(
|
103790
|
-
|
103834
|
+
lr,
|
103791
103835
|
{
|
103792
103836
|
sideOffset: 15,
|
103793
103837
|
anchorTrigger: /* @__PURE__ */ F.jsx(
|
103794
|
-
|
103838
|
+
yr,
|
103795
103839
|
{
|
103796
103840
|
icon: R.icon,
|
103797
103841
|
variant: "ghost",
|
@@ -103805,11 +103849,11 @@ const CDt = /* @__PURE__ */ I1(MDt), Rg = () => {
|
|
103805
103849
|
R.name
|
103806
103850
|
)
|
103807
103851
|
] }, H) : R.name === "Link" || R.name === "Scripts" ? /* @__PURE__ */ F.jsx(ke.Fragment, { children: /* @__PURE__ */ F.jsx(
|
103808
|
-
|
103852
|
+
lr,
|
103809
103853
|
{
|
103810
103854
|
sideOffset: 15,
|
103811
103855
|
anchorTrigger: /* @__PURE__ */ F.jsx(
|
103812
|
-
|
103856
|
+
yr,
|
103813
103857
|
{
|
103814
103858
|
icon: R.icon,
|
103815
103859
|
variant: "ghost",
|
@@ -103821,7 +103865,7 @@ const CDt = /* @__PURE__ */ I1(MDt), Rg = () => {
|
|
103821
103865
|
content: G(R)
|
103822
103866
|
}
|
103823
103867
|
) }, R.name) : R.name === "Comment" ? /* @__PURE__ */ F.jsx(
|
103824
|
-
|
103868
|
+
lr,
|
103825
103869
|
{
|
103826
103870
|
side: "bottom",
|
103827
103871
|
sideOffset: 15,
|
@@ -103829,7 +103873,7 @@ const CDt = /* @__PURE__ */ I1(MDt), Rg = () => {
|
|
103829
103873
|
align: "end",
|
103830
103874
|
className: "!z-[50] shadow-elevation-3",
|
103831
103875
|
anchorTrigger: /* @__PURE__ */ F.jsx(
|
103832
|
-
|
103876
|
+
yr,
|
103833
103877
|
{
|
103834
103878
|
ref: I,
|
103835
103879
|
icon: "MessageSquarePlus",
|
@@ -103848,16 +103892,17 @@ const CDt = /* @__PURE__ */ I1(MDt), Rg = () => {
|
|
103848
103892
|
})
|
103849
103893
|
},
|
103850
103894
|
"Comment"
|
103851
|
-
) : R.name === "Reminder"
|
103852
|
-
|
103895
|
+
) : R.name === "Reminder" ? /* @__PURE__ */ F.jsx(
|
103896
|
+
lr,
|
103853
103897
|
{
|
103854
103898
|
side: "bottom",
|
103855
103899
|
sideOffset: 15,
|
103856
103900
|
anchorTrigger: /* @__PURE__ */ F.jsx(
|
103857
|
-
|
103901
|
+
yr,
|
103858
103902
|
{
|
103859
103903
|
icon: R.icon,
|
103860
103904
|
variant: "ghost",
|
103905
|
+
disabled: !c,
|
103861
103906
|
size: "sm",
|
103862
103907
|
onClick: R.command
|
103863
103908
|
}
|
@@ -104149,7 +104194,7 @@ const BDt = {
|
|
104149
104194
|
},
|
104150
104195
|
children: /* @__PURE__ */ F.jsxs(BDt.Wrapper, { className: "border color-border-default shadow-elevation-3", children: [
|
104151
104196
|
/* @__PURE__ */ F.jsx(
|
104152
|
-
|
104197
|
+
yr,
|
104153
104198
|
{
|
104154
104199
|
icon: "PanelLeft",
|
104155
104200
|
tooltip: "Align left",
|
@@ -104161,7 +104206,7 @@ const BDt = {
|
|
104161
104206
|
}
|
104162
104207
|
),
|
104163
104208
|
/* @__PURE__ */ F.jsx(
|
104164
|
-
|
104209
|
+
yr,
|
104165
104210
|
{
|
104166
104211
|
icon: "Columns2",
|
104167
104212
|
tooltip: "Align center",
|
@@ -104173,7 +104218,7 @@ const BDt = {
|
|
104173
104218
|
}
|
104174
104219
|
),
|
104175
104220
|
/* @__PURE__ */ F.jsx(
|
104176
|
-
|
104221
|
+
yr,
|
104177
104222
|
{
|
104178
104223
|
icon: "PanelRight",
|
104179
104224
|
tooltip: "Align right",
|
@@ -104185,7 +104230,7 @@ const BDt = {
|
|
104185
104230
|
}
|
104186
104231
|
),
|
104187
104232
|
/* @__PURE__ */ F.jsx(
|
104188
|
-
|
104233
|
+
yr,
|
104189
104234
|
{
|
104190
104235
|
icon: "Trash2",
|
104191
104236
|
tooltip: "Remove column",
|
@@ -109312,7 +109357,7 @@ const uIt = (e, t) => dj(e) ? new lIt(t) : new sIt(t, {
|
|
109312
109357
|
"font-family-skeleton"
|
109313
109358
|
) : No(
|
109314
109359
|
/* @__PURE__ */ F.jsx(
|
109315
|
-
|
109360
|
+
lr,
|
109316
109361
|
{
|
109317
109362
|
sideOffset: 8,
|
109318
109363
|
anchorTrigger: /* @__PURE__ */ F.jsxs(
|
@@ -109369,7 +109414,7 @@ const uIt = (e, t) => dj(e) ? new lIt(t) : new sIt(t, {
|
|
109369
109414
|
"heading-skeleton"
|
109370
109415
|
) : No(
|
109371
109416
|
/* @__PURE__ */ F.jsx(
|
109372
|
-
|
109417
|
+
lr,
|
109373
109418
|
{
|
109374
109419
|
sideOffset: 8,
|
109375
109420
|
anchorTrigger: /* @__PURE__ */ F.jsxs(
|
@@ -109402,7 +109447,7 @@ const uIt = (e, t) => dj(e) ? new lIt(t) : new sIt(t, {
|
|
109402
109447
|
"font-size-skeleton"
|
109403
109448
|
) : No(
|
109404
109449
|
/* @__PURE__ */ F.jsx(
|
109405
|
-
|
109450
|
+
lr,
|
109406
109451
|
{
|
109407
109452
|
sideOffset: 8,
|
109408
109453
|
anchorTrigger: /* @__PURE__ */ F.jsxs(
|
@@ -109438,7 +109483,7 @@ const uIt = (e, t) => dj(e) ? new lIt(t) : new sIt(t, {
|
|
109438
109483
|
Y.title + "skeleton"
|
109439
109484
|
) : No(
|
109440
109485
|
/* @__PURE__ */ F.jsx(
|
109441
|
-
|
109486
|
+
lr,
|
109442
109487
|
{
|
109443
109488
|
align: Y.title === "Link" ? "end" : "center",
|
109444
109489
|
sideOffset: 8,
|
@@ -109460,7 +109505,7 @@ const uIt = (e, t) => dj(e) ? new lIt(t) : new sIt(t, {
|
|
109460
109505
|
Y.title + "loader"
|
109461
109506
|
) : No(
|
109462
109507
|
/* @__PURE__ */ F.jsx(
|
109463
|
-
|
109508
|
+
lr,
|
109464
109509
|
{
|
109465
109510
|
align: "end",
|
109466
109511
|
sideOffset: 8,
|
@@ -109473,7 +109518,7 @@ const uIt = (e, t) => dj(e) ? new lIt(t) : new sIt(t, {
|
|
109473
109518
|
}
|
109474
109519
|
) }),
|
109475
109520
|
content: /* @__PURE__ */ F.jsx("div", { className: "flex p-1 gap-1", children: h.filter((ue) => (ue == null ? void 0 : ue.group) === "More").map((ue) => /* @__PURE__ */ F.jsx(
|
109476
|
-
|
109521
|
+
yr,
|
109477
109522
|
{
|
109478
109523
|
icon: ue == null ? void 0 : ue.icon,
|
109479
109524
|
onClick: (ue == null ? void 0 : ue.onClick) || (() => {
|
@@ -109491,7 +109536,7 @@ const uIt = (e, t) => dj(e) ? new lIt(t) : new sIt(t, {
|
|
109491
109536
|
Y.title + "skeleton"
|
109492
109537
|
) : No(
|
109493
109538
|
/* @__PURE__ */ F.jsx(pn, { text: Y.title, children: /* @__PURE__ */ F.jsx(
|
109494
|
-
|
109539
|
+
yr,
|
109495
109540
|
{
|
109496
109541
|
icon: Y.icon,
|
109497
109542
|
onClick: Y.onClick,
|
@@ -110538,7 +110583,7 @@ const Zu = (e, t, n) => t.clients.forEach((r, o) => {
|
|
110538
110583
|
const r = new xf(), o = Ht(e.restDecoder);
|
110539
110584
|
for (let i = 0; i < o; i++) {
|
110540
110585
|
e.resetDsCurVal();
|
110541
|
-
const a = Ht(e.restDecoder), s = Ht(e.restDecoder), l = n.clients.get(a) || [], u =
|
110586
|
+
const a = Ht(e.restDecoder), s = Ht(e.restDecoder), l = n.clients.get(a) || [], u = fr(n, a);
|
110542
110587
|
for (let c = 0; c < s; c++) {
|
110543
110588
|
const d = e.readDsClock(), f = d + e.readDsLen();
|
110544
110589
|
if (d < u) {
|
@@ -111217,7 +111262,7 @@ const WOt = (e, t, n, r) => {
|
|
111217
111262
|
}, eA = (e, t, n) => {
|
111218
111263
|
const r = /* @__PURE__ */ new Map();
|
111219
111264
|
n.forEach((o, i) => {
|
111220
|
-
|
111265
|
+
fr(t, i) > o && r.set(i, o);
|
111221
111266
|
}), Wm(t).forEach((o, i) => {
|
111222
111267
|
n.has(i) || r.set(i, 0);
|
111223
111268
|
}), Mt(e.restEncoder, r.size), Dl(r.entries()).sort((o, i) => i[0] - o[0]).forEach(([o, i]) => {
|
@@ -111315,7 +111360,7 @@ const WOt = (e, t, n, r) => {
|
|
111315
111360
|
};
|
111316
111361
|
for (; ; ) {
|
111317
111362
|
if (c.constructor !== Pi) {
|
111318
|
-
const p = jo(d, c.id.client, () =>
|
111363
|
+
const p = jo(d, c.id.client, () => fr(t, c.id.client)) - c.id.clock;
|
111319
111364
|
if (p < 0)
|
111320
111365
|
r.push(c), u(c.id.client, c.id.clock - 1), f();
|
111321
111366
|
else {
|
@@ -111330,7 +111375,7 @@ const WOt = (e, t, n, r) => {
|
|
111330
111375
|
u(
|
111331
111376
|
/** @type {number} */
|
111332
111377
|
m,
|
111333
|
-
|
111378
|
+
fr(t, m)
|
111334
111379
|
), f();
|
111335
111380
|
else {
|
111336
111381
|
c = g.refs[g.i++];
|
@@ -111363,7 +111408,7 @@ const WOt = (e, t, n, r) => {
|
|
111363
111408
|
const a = o.doc, s = a.store, l = GOt(r, a), u = ZOt(o, s, l), c = s.pendingStructs;
|
111364
111409
|
if (c) {
|
111365
111410
|
for (const [f, h] of c.missing)
|
111366
|
-
if (h <
|
111411
|
+
if (h < fr(s, f)) {
|
111367
111412
|
i = !0;
|
111368
111413
|
break;
|
111369
111414
|
}
|
@@ -111502,7 +111547,7 @@ const oRt = (e, t, n = 0) => new rRt(e, t, n), Hg = (e, t, n) => {
|
|
111502
111547
|
const r = t.store, o = e.item, i = e.type, a = e.tname, s = e.assoc;
|
111503
111548
|
let l = null, u = 0;
|
111504
111549
|
if (o !== null) {
|
111505
|
-
if (
|
111550
|
+
if (fr(r, o.client) <= o.clock)
|
111506
111551
|
return null;
|
111507
111552
|
const c = n ? uw(r, o) : iRt(r, o), d = c.item;
|
111508
111553
|
if (!(d instanceof En))
|
@@ -111518,7 +111563,7 @@ const oRt = (e, t, n = 0) => new rRt(e, t, n), Hg = (e, t, n) => {
|
|
111518
111563
|
if (a !== null)
|
111519
111564
|
l = t.get(a);
|
111520
111565
|
else if (i !== null) {
|
111521
|
-
if (
|
111566
|
+
if (fr(r, i.client) <= i.clock)
|
111522
111567
|
return null;
|
111523
111568
|
const { item: c } = n ? uw(r, i) : { item: t0(r, i) };
|
111524
111569
|
if (c instanceof En && c.content instanceof Oa)
|
@@ -111543,7 +111588,7 @@ class tA {
|
|
111543
111588
|
const cne = (e, t) => new tA(e, t), r8 = (e) => cne(tne(e.store), Wm(e.store)), Oc = (e, t) => t === void 0 ? !e.deleted : t.sv.has(e.id.client) && (t.sv.get(e.id.client) || 0) > e.id.clock && !vf(t.ds, e.id), aw = (e, t) => {
|
111544
111589
|
const n = jo(e.meta, aw, Al), r = e.doc.store;
|
111545
111590
|
n.has(t) || (t.sv.forEach((o, i) => {
|
111546
|
-
o <
|
111591
|
+
o < fr(r, i) && zo(e, qt(i, o));
|
111547
111592
|
}), Zu(e, t.ds, (o) => {
|
111548
111593
|
}), n.add(t));
|
111549
111594
|
};
|
@@ -111558,7 +111603,7 @@ const Wm = (e) => {
|
|
111558
111603
|
const o = n[n.length - 1];
|
111559
111604
|
t.set(r, o.id.clock + o.length);
|
111560
111605
|
}), t;
|
111561
|
-
},
|
111606
|
+
}, fr = (e, t) => {
|
111562
111607
|
const n = e.clients.get(t);
|
111563
111608
|
if (n === void 0)
|
111564
111609
|
return 0;
|
@@ -112571,7 +112616,7 @@ const xne = (e, t, n) => {
|
|
112571
112616
|
const i = e.doc, a = i.clientID, s = i.store, l = n === null ? t._start : n.right;
|
112572
112617
|
let u = [];
|
112573
112618
|
const c = () => {
|
112574
|
-
u.length > 0 && (o = new En(qt(a,
|
112619
|
+
u.length > 0 && (o = new En(qt(a, fr(s, a)), o, o && o.lastId, l, l && l.id, t, null, new L1(u)), o.integrate(e, 0), u = []);
|
112575
112620
|
};
|
112576
112621
|
r.forEach((d) => {
|
112577
112622
|
if (d === null)
|
@@ -112589,20 +112634,20 @@ const xne = (e, t, n) => {
|
|
112589
112634
|
switch (c(), d.constructor) {
|
112590
112635
|
case Uint8Array:
|
112591
112636
|
case ArrayBuffer:
|
112592
|
-
o = new En(qt(a,
|
112637
|
+
o = new En(qt(a, fr(s, a)), o, o && o.lastId, l, l && l.id, t, null, new Gm(new Uint8Array(
|
112593
112638
|
/** @type {Uint8Array} */
|
112594
112639
|
d
|
112595
112640
|
))), o.integrate(e, 0);
|
112596
112641
|
break;
|
112597
112642
|
case zl:
|
112598
|
-
o = new En(qt(a,
|
112643
|
+
o = new En(qt(a, fr(s, a)), o, o && o.lastId, l, l && l.id, t, null, new Zm(
|
112599
112644
|
/** @type {Doc} */
|
112600
112645
|
d
|
112601
112646
|
)), o.integrate(e, 0);
|
112602
112647
|
break;
|
112603
112648
|
default:
|
112604
112649
|
if (d instanceof Rr)
|
112605
|
-
o = new En(qt(a,
|
112650
|
+
o = new En(qt(a, fr(s, a)), o, o && o.lastId, l, l && l.id, t, null, new Oa(d)), o.integrate(e, 0);
|
112606
112651
|
else
|
112607
112652
|
throw new Error("Unexpected content type in insert operation");
|
112608
112653
|
}
|
@@ -112682,7 +112727,7 @@ const xne = (e, t, n) => {
|
|
112682
112727
|
else
|
112683
112728
|
throw new Error("Unexpected content type");
|
112684
112729
|
}
|
112685
|
-
new En(qt(a,
|
112730
|
+
new En(qt(a, fr(i.store, a)), o, o && o.lastId, null, null, t, n, s).integrate(e, 0);
|
112686
112731
|
}, sA = (e, t) => {
|
112687
112732
|
e.doc ?? io();
|
112688
112733
|
const n = e._map.get(t);
|
@@ -113140,7 +113185,7 @@ class lw {
|
|
113140
113185
|
*/
|
113141
113186
|
forward() {
|
113142
113187
|
switch (this.right === null && Jo(), this.right.content.constructor) {
|
113143
|
-
case
|
113188
|
+
case vr:
|
113144
113189
|
this.right.deleted || wf(
|
113145
113190
|
this.currentAttributes,
|
113146
113191
|
/** @type {ContentFormat} */
|
@@ -113157,7 +113202,7 @@ class lw {
|
|
113157
113202
|
const rB = (e, t, n) => {
|
113158
113203
|
for (; t.right !== null && n > 0; ) {
|
113159
113204
|
switch (t.right.content.constructor) {
|
113160
|
-
case
|
113205
|
+
case vr:
|
113161
113206
|
t.right.deleted || wf(
|
113162
113207
|
t.currentAttributes,
|
113163
113208
|
/** @type {ContentFormat} */
|
@@ -113181,7 +113226,7 @@ const rB = (e, t, n) => {
|
|
113181
113226
|
return rB(e, a, n);
|
113182
113227
|
}
|
113183
113228
|
}, Dne = (e, t, n, r) => {
|
113184
|
-
for (; n.right !== null && (n.right.deleted === !0 || n.right.content.constructor ===
|
113229
|
+
for (; n.right !== null && (n.right.deleted === !0 || n.right.content.constructor === vr && xu(
|
113185
113230
|
r.get(
|
113186
113231
|
/** @type {ContentFormat} */
|
113187
113232
|
n.right.content.key
|
@@ -113195,7 +113240,7 @@ const rB = (e, t, n) => {
|
|
113195
113240
|
), n.forward();
|
113196
113241
|
const o = e.doc, i = o.clientID;
|
113197
113242
|
r.forEach((a, s) => {
|
113198
|
-
const l = n.left, u = n.right, c = new En(qt(i,
|
113243
|
+
const l = n.left, u = n.right, c = new En(qt(i, fr(o.store, i)), l, l && l.lastId, u, u && u.id, t, null, new vr(s, a));
|
113199
113244
|
c.integrate(e, 0), n.right = c, n.forward();
|
113200
113245
|
});
|
113201
113246
|
}, wf = (e, t) => {
|
@@ -113203,7 +113248,7 @@ const rB = (e, t, n) => {
|
|
113203
113248
|
r === null ? e.delete(n) : e.set(n, r);
|
113204
113249
|
}, Sne = (e, t) => {
|
113205
113250
|
for (; e.right !== null; ) {
|
113206
|
-
if (!(e.right.deleted || e.right.content.constructor ===
|
113251
|
+
if (!(e.right.deleted || e.right.content.constructor === vr && xu(
|
113207
113252
|
t[
|
113208
113253
|
/** @type {ContentFormat} */
|
113209
113254
|
e.right.content.key
|
@@ -113220,7 +113265,7 @@ const rB = (e, t, n) => {
|
|
113220
113265
|
if (!xu(u, l)) {
|
113221
113266
|
a.set(s, u);
|
113222
113267
|
const { left: c, right: d } = n;
|
113223
|
-
n.right = new En(qt(i,
|
113268
|
+
n.right = new En(qt(i, fr(o.store, i)), c, c && c.lastId, d, d && d.id, t, null, new vr(s, l)), n.right.integrate(e, 0), n.forward();
|
113224
113269
|
}
|
113225
113270
|
}
|
113226
113271
|
return a;
|
@@ -113235,15 +113280,15 @@ const rB = (e, t, n) => {
|
|
113235
113280
|
r
|
113236
113281
|
) : r instanceof Rr ? new Oa(r) : new K1(r);
|
113237
113282
|
let { left: u, right: c, index: d } = n;
|
113238
|
-
t._searchMarker && M2(t._searchMarker, n.index, l.getLength()), c = new En(qt(a,
|
113283
|
+
t._searchMarker && M2(t._searchMarker, n.index, l.getLength()), c = new En(qt(a, fr(i.store, a)), u, u && u.lastId, c, c && c.id, t, null, l), c.integrate(e, 0), n.right = c, n.index = d, n.forward(), Dne(e, t, n, s);
|
113239
113284
|
}, oB = (e, t, n, r, o) => {
|
113240
113285
|
const i = e.doc, a = i.clientID;
|
113241
113286
|
Sne(n, o);
|
113242
113287
|
const s = Tne(e, t, n, o);
|
113243
|
-
e: for (; n.right !== null && (r > 0 || s.size > 0 && (n.right.deleted || n.right.content.constructor ===
|
113288
|
+
e: for (; n.right !== null && (r > 0 || s.size > 0 && (n.right.deleted || n.right.content.constructor === vr)); ) {
|
113244
113289
|
if (!n.right.deleted)
|
113245
113290
|
switch (n.right.content.constructor) {
|
113246
|
-
case
|
113291
|
+
case vr: {
|
113247
113292
|
const { key: l, value: u } = (
|
113248
113293
|
/** @type {ContentFormat} */
|
113249
113294
|
n.right.content
|
@@ -113272,14 +113317,14 @@ const rB = (e, t, n) => {
|
|
113272
113317
|
for (; r > 0; r--)
|
113273
113318
|
l += `
|
113274
113319
|
`;
|
113275
|
-
n.right = new En(qt(a,
|
113320
|
+
n.right = new En(qt(a, fr(i.store, a)), n.left, n.left && n.left.lastId, n.right, n.right && n.right.id, t, null, new Da(l)), n.right.integrate(e, 0), n.forward();
|
113276
113321
|
}
|
113277
113322
|
Dne(e, t, n, s);
|
113278
113323
|
}, Lne = (e, t, n, r, o) => {
|
113279
113324
|
let i = t;
|
113280
113325
|
const a = vo();
|
113281
113326
|
for (; i && (!i.countable || i.deleted); ) {
|
113282
|
-
if (!i.deleted && i.content.constructor ===
|
113327
|
+
if (!i.deleted && i.content.constructor === vr) {
|
113283
113328
|
const u = (
|
113284
113329
|
/** @type {ContentFormat} */
|
113285
113330
|
i.content
|
@@ -113293,7 +113338,7 @@ const rB = (e, t, n) => {
|
|
113293
113338
|
if (n === t && (l = !0), !t.deleted) {
|
113294
113339
|
const u = t.content;
|
113295
113340
|
switch (u.constructor) {
|
113296
|
-
case
|
113341
|
+
case vr: {
|
113297
113342
|
const { key: c, value: d } = (
|
113298
113343
|
/** @type {ContentFormat} */
|
113299
113344
|
u
|
@@ -113316,7 +113361,7 @@ const rB = (e, t, n) => {
|
|
113316
113361
|
t = t.right;
|
113317
113362
|
const n = /* @__PURE__ */ new Set();
|
113318
113363
|
for (; t && (t.deleted || !t.countable); ) {
|
113319
|
-
if (!t.deleted && t.content.constructor ===
|
113364
|
+
if (!t.deleted && t.content.constructor === vr) {
|
113320
113365
|
const r = (
|
113321
113366
|
/** @type {ContentFormat} */
|
113322
113367
|
t.content.key
|
@@ -113339,7 +113384,7 @@ const rB = (e, t, n) => {
|
|
113339
113384
|
for (; o; ) {
|
113340
113385
|
if (o.deleted === !1)
|
113341
113386
|
switch (o.content.constructor) {
|
113342
|
-
case
|
113387
|
+
case vr:
|
113343
113388
|
wf(
|
113344
113389
|
a,
|
113345
113390
|
/** @type {ContentFormat} */
|
@@ -113366,7 +113411,7 @@ const rB = (e, t, n) => {
|
|
113366
113411
|
o,
|
113367
113412
|
(a) => {
|
113368
113413
|
!a.deleted && /** @type {Item} */
|
113369
|
-
a.content.constructor ===
|
113414
|
+
a.content.constructor === vr && a.constructor !== _i && t.add(
|
113370
113415
|
/** @type {any} */
|
113371
113416
|
a.parent
|
113372
113417
|
);
|
@@ -113385,7 +113430,7 @@ const rB = (e, t, n) => {
|
|
113385
113430
|
/** @type {YText} */
|
113386
113431
|
o.parent
|
113387
113432
|
);
|
113388
|
-
o.content.constructor ===
|
113433
|
+
o.content.constructor === vr ? t.add(i) : DRt(r, o);
|
113389
113434
|
});
|
113390
113435
|
for (const o of t)
|
113391
113436
|
SRt(o);
|
@@ -113488,7 +113533,7 @@ class LRt extends p5 {
|
|
113488
113533
|
this.adds(a) ? this.deletes(a) || (s !== "insert" && (f(), s = "insert"), u += /** @type {ContentString} */
|
113489
113534
|
a.content.str) : this.deletes(a) ? (s !== "delete" && (f(), s = "delete"), d += a.length) : a.deleted || (s !== "retain" && (f(), s = "retain"), c += a.length);
|
113490
113535
|
break;
|
113491
|
-
case
|
113536
|
+
case vr: {
|
113492
113537
|
const { key: h, value: p } = (
|
113493
113538
|
/** @type {ContentFormat} */
|
113494
113539
|
a.content
|
@@ -113686,7 +113731,7 @@ class Yu extends Rr {
|
|
113686
113731
|
o.push(d);
|
113687
113732
|
break;
|
113688
113733
|
}
|
113689
|
-
case
|
113734
|
+
case vr:
|
113690
113735
|
Oc(l, t) && (u(), wf(
|
113691
113736
|
i,
|
113692
113737
|
/** @type {ContentFormat} */
|
@@ -114898,7 +114943,7 @@ class K1 {
|
|
114898
114943
|
}
|
114899
114944
|
}
|
114900
114945
|
const VRt = (e) => new K1(e.readJSON());
|
114901
|
-
class
|
114946
|
+
class vr {
|
114902
114947
|
/**
|
114903
114948
|
* @param {string} key
|
114904
114949
|
* @param {Object} value
|
@@ -114928,7 +114973,7 @@ class xr {
|
|
114928
114973
|
* @return {ContentFormat}
|
114929
114974
|
*/
|
114930
114975
|
copy() {
|
114931
|
-
return new
|
114976
|
+
return new vr(this.key, this.value);
|
114932
114977
|
}
|
114933
114978
|
/**
|
114934
114979
|
* @param {number} _offset
|
@@ -114979,7 +115024,7 @@ class xr {
|
|
114979
115024
|
return 6;
|
114980
115025
|
}
|
114981
115026
|
}
|
114982
|
-
const URt = (e) => new
|
115027
|
+
const URt = (e) => new vr(e.readKey(), e.readJSON());
|
114983
115028
|
class w3 {
|
114984
115029
|
/**
|
114985
115030
|
* @param {Array<any>} arr
|
@@ -115417,7 +115462,7 @@ const rBt = (e) => new Oa(KRt[e.readTypeRef()](e)), uw = (e, t) => {
|
|
115417
115462
|
return null;
|
115418
115463
|
} else
|
115419
115464
|
d = h._map.get(t.parentSub) || null;
|
115420
|
-
const p =
|
115465
|
+
const p = fr(s, l), m = qt(l, p), g = new En(
|
115421
115466
|
m,
|
115422
115467
|
d,
|
115423
115468
|
d && d.lastId,
|
@@ -115487,11 +115532,11 @@ let En = class cw extends lA {
|
|
115487
115532
|
* @return {null | number}
|
115488
115533
|
*/
|
115489
115534
|
getMissing(t, n) {
|
115490
|
-
if (this.origin && this.origin.client !== this.id.client && this.origin.clock >=
|
115535
|
+
if (this.origin && this.origin.client !== this.id.client && this.origin.clock >= fr(n, this.origin.client))
|
115491
115536
|
return this.origin.client;
|
115492
|
-
if (this.rightOrigin && this.rightOrigin.client !== this.id.client && this.rightOrigin.clock >=
|
115537
|
+
if (this.rightOrigin && this.rightOrigin.client !== this.id.client && this.rightOrigin.clock >= fr(n, this.rightOrigin.client))
|
115493
115538
|
return this.rightOrigin.client;
|
115494
|
-
if (this.parent && this.parent.constructor === e0 && this.id.client !== this.parent.client && this.parent.clock >=
|
115539
|
+
if (this.parent && this.parent.constructor === e0 && this.id.client !== this.parent.client && this.parent.clock >= fr(n, this.parent.client))
|
115495
115540
|
return this.parent.client;
|
115496
115541
|
if (this.origin && (this.left = JR(t, n, this.origin), this.origin = this.left.lastId), this.rightOrigin && (this.right = zo(t, this.rightOrigin), this.rightOrigin = this.right.id), this.left && this.left.constructor === _i || this.right && this.right.constructor === _i)
|
115497
115542
|
this.parent = null;
|
@@ -119474,7 +119519,7 @@ const Kne = (e, t, n, r, o, i) => {
|
|
119474
119519
|
let t = "", n = e._start;
|
119475
119520
|
const r = {};
|
119476
119521
|
for (; n !== null; )
|
119477
|
-
n.deleted || (n.countable && n.content instanceof Da ? t += n.content.str : n.content instanceof
|
119522
|
+
n.deleted || (n.countable && n.content instanceof Da ? t += n.content.str : n.content instanceof vr && (r[n.content.key] = null)), n = n.right;
|
119478
119523
|
return {
|
119479
119524
|
str: t,
|
119480
119525
|
nAttrs: r
|
@@ -119778,14 +119823,14 @@ const ezt = (e, t, n) => e !== t, tzt = (e) => {
|
|
119778
119823
|
if (d !== null && f !== null) {
|
119779
119824
|
const h = Ea(e.doc.content.size - 1, 0);
|
119780
119825
|
d = fs(d, h), f = fs(f, h), s.push(
|
119781
|
-
|
119826
|
+
cr.widget(f, () => r(c, u), {
|
119782
119827
|
key: u + "",
|
119783
119828
|
side: 10
|
119784
119829
|
})
|
119785
119830
|
);
|
119786
119831
|
const p = fs(d, f), m = Ea(d, f);
|
119787
119832
|
s.push(
|
119788
|
-
|
119833
|
+
cr.inline(p, m, o(c, u), {
|
119789
119834
|
inclusiveEnd: !0,
|
119790
119835
|
inclusiveStart: !1
|
119791
119836
|
})
|
@@ -120083,7 +120128,7 @@ const ezt = (e, t, n) => e !== t, tzt = (e) => {
|
|
120083
120128
|
})
|
120084
120129
|
];
|
120085
120130
|
}
|
120086
|
-
}), fzt = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, hzt = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, pzt = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, mzt = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, gzt =
|
120131
|
+
}), fzt = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, hzt = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, pzt = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, mzt = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, gzt = pr.create({
|
120087
120132
|
name: "bold",
|
120088
120133
|
addOptions() {
|
120089
120134
|
return {
|
@@ -120197,7 +120242,7 @@ const ezt = (e, t, n) => e !== t, tzt = (e) => {
|
|
120197
120242
|
e
|
120198
120243
|
];
|
120199
120244
|
}
|
120200
|
-
}), bzt = /(^|[^`])`([^`]+)`(?!`)/, xzt = /(^|[^`])`([^`]+)`(?!`)/g, vzt =
|
120245
|
+
}), bzt = /(^|[^`])`([^`]+)`(?!`)/, xzt = /(^|[^`])`([^`]+)`(?!`)/g, vzt = pr.create({
|
120201
120246
|
name: "code",
|
120202
120247
|
addOptions() {
|
120203
120248
|
return {
|
@@ -120662,7 +120707,7 @@ function Tzt(e) {
|
|
120662
120707
|
if (!(e.selection instanceof rr))
|
120663
120708
|
return null;
|
120664
120709
|
let t = document.createElement("div");
|
120665
|
-
return t.className = "ProseMirror-gapcursor", wn.create(e.doc, [
|
120710
|
+
return t.className = "ProseMirror-gapcursor", wn.create(e.doc, [cr.widget(e.selection.head, t, { key: "gapcursor" })]);
|
120666
120711
|
}
|
120667
120712
|
const ore = en.create({
|
120668
120713
|
name: "gapCursor",
|
@@ -121197,7 +121242,7 @@ const sre = are(!1, !0), lre = are(!0, !0), Vzt = en.create({
|
|
121197
121242
|
})
|
121198
121243
|
];
|
121199
121244
|
}
|
121200
|
-
}), Uzt = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, Wzt = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, Gzt = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, Zzt = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, Yzt =
|
121245
|
+
}), Uzt = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, Wzt = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, Gzt = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, Zzt = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, Yzt = pr.create({
|
121201
121246
|
name: "italic",
|
121202
121247
|
addOptions() {
|
121203
121248
|
return {
|
@@ -121384,7 +121429,7 @@ const sre = are(!1, !0), lre = are(!0, !0), Vzt = en.create({
|
|
121384
121429
|
"Mod-Alt-0": () => this.editor.commands.setParagraph()
|
121385
121430
|
};
|
121386
121431
|
}
|
121387
|
-
}), Qzt = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, Xzt = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, e_t =
|
121432
|
+
}), Qzt = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, Xzt = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, e_t = pr.create({
|
121388
121433
|
name: "strike",
|
121389
121434
|
addOptions() {
|
121390
121435
|
return {
|
@@ -121450,7 +121495,7 @@ const sre = are(!1, !0), lre = are(!0, !0), Vzt = en.create({
|
|
121450
121495
|
const k = [];
|
121451
121496
|
return this.options.bold !== !1 && k.push(gzt.configure((e = this.options) === null || e === void 0 ? void 0 : e.bold)), this.options.blockquote !== !1 && k.push(dzt.configure((t = this.options) === null || t === void 0 ? void 0 : t.blockquote)), this.options.bulletList !== !1 && k.push(ere.configure((n = this.options) === null || n === void 0 ? void 0 : n.bulletList)), this.options.code !== !1 && k.push(vzt.configure((r = this.options) === null || r === void 0 ? void 0 : r.code)), this.options.codeBlock !== !1 && k.push(tre.configure((o = this.options) === null || o === void 0 ? void 0 : o.codeBlock)), this.options.document !== !1 && k.push(nre.configure((i = this.options) === null || i === void 0 ? void 0 : i.document)), this.options.dropcursor !== !1 && k.push(rre.configure((a = this.options) === null || a === void 0 ? void 0 : a.dropcursor)), this.options.gapcursor !== !1 && k.push(ore.configure((s = this.options) === null || s === void 0 ? void 0 : s.gapcursor)), this.options.hardBreak !== !1 && k.push(Lzt.configure((l = this.options) === null || l === void 0 ? void 0 : l.hardBreak)), this.options.heading !== !1 && k.push(Nzt.configure((u = this.options) === null || u === void 0 ? void 0 : u.heading)), this.options.history !== !1 && k.push(Vzt.configure((c = this.options) === null || c === void 0 ? void 0 : c.history)), this.options.horizontalRule !== !1 && k.push(ure.configure((d = this.options) === null || d === void 0 ? void 0 : d.horizontalRule)), this.options.italic !== !1 && k.push(Yzt.configure((f = this.options) === null || f === void 0 ? void 0 : f.italic)), this.options.listItem !== !1 && k.push(cre.configure((h = this.options) === null || h === void 0 ? void 0 : h.listItem)), this.options.orderedList !== !1 && k.push($zt.configure((p = this.options) === null || p === void 0 ? void 0 : p.orderedList)), this.options.paragraph !== !1 && k.push(Jzt.configure((m = this.options) === null || m === void 0 ? void 0 : m.paragraph)), this.options.strike !== !1 && k.push(e_t.configure((g = this.options) === null || g === void 0 ? void 0 : g.strike)), this.options.text !== !1 && k.push(t_t.configure((b = this.options) === null || b === void 0 ? void 0 : b.text)), k;
|
121452
121497
|
}
|
121453
|
-
}), r_t =
|
121498
|
+
}), r_t = pr.create({
|
121454
121499
|
name: "textStyle",
|
121455
121500
|
priority: 101,
|
121456
121501
|
addOptions() {
|
@@ -122335,7 +122380,7 @@ function jB(e, t) {
|
|
122335
122380
|
o && n.push(o);
|
122336
122381
|
}), !e || e.replace(j_t, "").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))`, "i"));
|
122337
122382
|
}
|
122338
|
-
const A_t =
|
122383
|
+
const A_t = pr.create({
|
122339
122384
|
name: "link",
|
122340
122385
|
priority: 1e3,
|
122341
122386
|
keepOnSplit: !1,
|
@@ -122476,7 +122521,7 @@ const A_t = hr.create({
|
|
122476
122521
|
if ((l || !this.options.showOnlyCurrent) && u) {
|
122477
122522
|
const c = [this.options.emptyNodeClass];
|
122478
122523
|
i && c.push(this.options.emptyEditorClass);
|
122479
|
-
const d =
|
122524
|
+
const d = cr.node(s, s + a.nodeSize, {
|
122480
122525
|
class: c.join(" "),
|
122481
122526
|
"data-placeholder": typeof this.options.placeholder == "function" ? this.options.placeholder({
|
122482
122527
|
editor: this.editor,
|
@@ -122494,7 +122539,7 @@ const A_t = hr.create({
|
|
122494
122539
|
})
|
122495
122540
|
];
|
122496
122541
|
}
|
122497
|
-
}), S_t = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, T_t = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g, L_t =
|
122542
|
+
}), S_t = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, T_t = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g, L_t = pr.create({
|
122498
122543
|
name: "highlight",
|
122499
122544
|
addOptions() {
|
122500
122545
|
return {
|
@@ -122692,7 +122737,7 @@ const A_t = hr.create({
|
|
122692
122737
|
})
|
122693
122738
|
];
|
122694
122739
|
}
|
122695
|
-
}), R_t =
|
122740
|
+
}), R_t = pr.create({
|
122696
122741
|
name: "underline",
|
122697
122742
|
addOptions() {
|
122698
122743
|
return {
|
@@ -123125,7 +123170,7 @@ const vre = ({
|
|
123125
123170
|
) }),
|
123126
123171
|
e.attrs.caption && !e.attrs.showCaptionInput && /* @__PURE__ */ F.jsx("div", { className: "caption", children: e.attrs.caption }),
|
123127
123172
|
!r && /* @__PURE__ */ F.jsx("span", { className: "absolute top-2 right-2 transition-all rounded-md overflow-hidden box-border border color-border-default color-bg-default shadow-elevation-3 opacity-0 group-hover:opacity-100 flex gap-1 p-1", children: AB.map((Q, Y) => /* @__PURE__ */ F.jsx(
|
123128
|
-
|
123173
|
+
yr,
|
123129
123174
|
{
|
123130
123175
|
tooltip: Q.tooltip,
|
123131
123176
|
isActive: c[Q.tooltip],
|
@@ -128045,7 +128090,7 @@ const Bqt = (e) => {
|
|
128045
128090
|
a
|
128046
128091
|
)),
|
128047
128092
|
/* @__PURE__ */ F.jsx(
|
128048
|
-
|
128093
|
+
lr,
|
128049
128094
|
{
|
128050
128095
|
align: "end",
|
128051
128096
|
sideOffset: 10,
|
@@ -129455,7 +129500,7 @@ function vVt(e) {
|
|
129455
129500
|
if (!(e.selection instanceof rn)) return null;
|
129456
129501
|
let t = [];
|
129457
129502
|
return e.selection.forEachCell((n, r) => {
|
129458
|
-
t.push(
|
129503
|
+
t.push(cr.node(r, r + n.nodeSize, {
|
129459
129504
|
class: "selectedCell"
|
129460
129505
|
}));
|
129461
129506
|
}), wn.create(e.doc, t);
|
@@ -130389,7 +130434,7 @@ function aUt(e, t) {
|
|
130389
130434
|
let u = s + l * i.width - 1;
|
130390
130435
|
if ((s == i.width || i.map[u] != i.map[u + 1]) && (l == 0 || i.map[u - 1] != i.map[u - 1 - i.width])) {
|
130391
130436
|
let c = i.map[u], d = a + c + o.nodeAt(c).nodeSize - 1, f = document.createElement("div");
|
130392
|
-
f.className = "column-resize-handle", n.push(
|
130437
|
+
f.className = "column-resize-handle", n.push(cr.widget(d, f));
|
130393
130438
|
}
|
130394
130439
|
}
|
130395
130440
|
return wn.create(e.doc, n);
|
@@ -131257,9 +131302,21 @@ const jUt = en.create({
|
|
131257
131302
|
new nn({
|
131258
131303
|
key: e,
|
131259
131304
|
appendTransaction: (n, r, o) => {
|
131260
|
-
const { doc: i, tr: a, schema: s } = o
|
131261
|
-
if (
|
131262
|
-
|
131305
|
+
const { doc: i, tr: a, schema: s } = o;
|
131306
|
+
if (!e.getState(o)) return;
|
131307
|
+
const u = i.content.size, c = s.nodes[this.options.node], d = {
|
131308
|
+
class: "trailing-node"
|
131309
|
+
};
|
131310
|
+
let f = s.text(" ");
|
131311
|
+
const h = this.editor.getAttributes("textStyle");
|
131312
|
+
if (s.marks.textStyle) {
|
131313
|
+
const m = s.marks.textStyle.create({
|
131314
|
+
...h
|
131315
|
+
});
|
131316
|
+
f = s.text(" ", [m]);
|
131317
|
+
}
|
131318
|
+
const p = c.create(d, f);
|
131319
|
+
return a.insert(u, p);
|
131263
131320
|
},
|
131264
131321
|
state: {
|
131265
131322
|
init: (n, r) => {
|
@@ -132337,7 +132394,7 @@ class rWt extends aoe {
|
|
132337
132394
|
};
|
132338
132395
|
}
|
132339
132396
|
}
|
132340
|
-
const doe =
|
132397
|
+
const doe = pr.create({
|
132341
132398
|
name: "markdownHTMLMark",
|
132342
132399
|
/**
|
132343
132400
|
* @return {{markdown: MarkdownMarkSpec}}
|
@@ -132715,7 +132772,7 @@ const TWt = _t.create({
|
|
132715
132772
|
}
|
132716
132773
|
};
|
132717
132774
|
}
|
132718
|
-
}), BWt =
|
132775
|
+
}), BWt = pr.create({
|
132719
132776
|
name: "bold"
|
132720
132777
|
}), zWt = BWt.extend({
|
132721
132778
|
/**
|
@@ -132731,7 +132788,7 @@ const TWt = _t.create({
|
|
132731
132788
|
}
|
132732
132789
|
};
|
132733
132790
|
}
|
132734
|
-
}), _Wt =
|
132791
|
+
}), _Wt = pr.create({
|
132735
132792
|
name: "code"
|
132736
132793
|
}), PWt = _Wt.extend({
|
132737
132794
|
/**
|
@@ -132747,7 +132804,7 @@ const TWt = _t.create({
|
|
132747
132804
|
}
|
132748
132805
|
};
|
132749
132806
|
}
|
132750
|
-
}), HWt =
|
132807
|
+
}), HWt = pr.create({
|
132751
132808
|
name: "italic"
|
132752
132809
|
}), qWt = HWt.extend({
|
132753
132810
|
/**
|
@@ -132763,7 +132820,7 @@ const TWt = _t.create({
|
|
132763
132820
|
}
|
132764
132821
|
};
|
132765
132822
|
}
|
132766
|
-
}), VWt =
|
132823
|
+
}), VWt = pr.create({
|
132767
132824
|
name: "link"
|
132768
132825
|
}), UWt = VWt.extend({
|
132769
132826
|
/**
|
@@ -132779,7 +132836,7 @@ const TWt = _t.create({
|
|
132779
132836
|
}
|
132780
132837
|
};
|
132781
132838
|
}
|
132782
|
-
}), WWt =
|
132839
|
+
}), WWt = pr.create({
|
132783
132840
|
name: "strike"
|
132784
132841
|
}), GWt = WWt.extend({
|
132785
132842
|
/**
|
@@ -136753,7 +136810,7 @@ function S(e, t, n, r, o, i) {
|
|
136753
136810
|
replace: r
|
136754
136811
|
}, i && r && (An[e][r] = An[e][o]);
|
136755
136812
|
}
|
136756
|
-
var O = "math", qe = "text", V = "main", ie = "ams", _n = "accent-token", ct = "bin", Do = "close", Mf = "inner", At = "mathord",
|
136813
|
+
var O = "math", qe = "text", V = "main", ie = "ams", _n = "accent-token", ct = "bin", Do = "close", Mf = "inner", At = "mathord", kr = "op-token", Ei = "open", w5 = "punct", ae = "rel", _l = "spacing", pe = "textord";
|
136757
136814
|
S(O, V, ae, "≡", "\\equiv", !0);
|
136758
136815
|
S(O, V, ae, "≺", "\\prec", !0);
|
136759
136816
|
S(O, V, ae, "≻", "\\succ", !0);
|
@@ -137260,26 +137317,26 @@ S(O, V, ae, "↓", "\\downarrow", !0);
|
|
137260
137317
|
S(O, V, ae, "⇓", "\\Downarrow", !0);
|
137261
137318
|
S(O, V, ae, "↕", "\\updownarrow", !0);
|
137262
137319
|
S(O, V, ae, "⇕", "\\Updownarrow", !0);
|
137263
|
-
S(O, V,
|
137264
|
-
S(O, V,
|
137265
|
-
S(O, V,
|
137266
|
-
S(O, V,
|
137267
|
-
S(O, V,
|
137268
|
-
S(O, V,
|
137269
|
-
S(O, V,
|
137270
|
-
S(O, V,
|
137271
|
-
S(O, V,
|
137272
|
-
S(O, V,
|
137273
|
-
S(O, V,
|
137274
|
-
S(O, V,
|
137275
|
-
S(O, V,
|
137276
|
-
S(O, V,
|
137277
|
-
S(O, V,
|
137278
|
-
S(O, V,
|
137279
|
-
S(O, V,
|
137280
|
-
S(O, V,
|
137281
|
-
S(O, V,
|
137282
|
-
S(O, V,
|
137320
|
+
S(O, V, kr, "∐", "\\coprod");
|
137321
|
+
S(O, V, kr, "⋁", "\\bigvee");
|
137322
|
+
S(O, V, kr, "⋀", "\\bigwedge");
|
137323
|
+
S(O, V, kr, "⨄", "\\biguplus");
|
137324
|
+
S(O, V, kr, "⋂", "\\bigcap");
|
137325
|
+
S(O, V, kr, "⋃", "\\bigcup");
|
137326
|
+
S(O, V, kr, "∫", "\\int");
|
137327
|
+
S(O, V, kr, "∫", "\\intop");
|
137328
|
+
S(O, V, kr, "∬", "\\iint");
|
137329
|
+
S(O, V, kr, "∭", "\\iiint");
|
137330
|
+
S(O, V, kr, "∏", "\\prod");
|
137331
|
+
S(O, V, kr, "∑", "\\sum");
|
137332
|
+
S(O, V, kr, "⨂", "\\bigotimes");
|
137333
|
+
S(O, V, kr, "⨁", "\\bigoplus");
|
137334
|
+
S(O, V, kr, "⨀", "\\bigodot");
|
137335
|
+
S(O, V, kr, "∮", "\\oint");
|
137336
|
+
S(O, V, kr, "∯", "\\oiint");
|
137337
|
+
S(O, V, kr, "∰", "\\oiiint");
|
137338
|
+
S(O, V, kr, "⨆", "\\bigsqcup");
|
137339
|
+
S(O, V, kr, "∫", "\\smallint");
|
137283
137340
|
S(qe, V, Mf, "…", "\\textellipsis");
|
137284
137341
|
S(O, V, Mf, "…", "\\mathellipsis");
|
137285
137342
|
S(qe, V, Mf, "…", "\\ldots", !0);
|
@@ -137895,7 +137952,7 @@ function $1(e) {
|
|
137895
137952
|
}
|
137896
137953
|
var lb = function(t) {
|
137897
137954
|
return t.type === "ordgroup" && t.body.length === 1 ? t.body[0] : t;
|
137898
|
-
},
|
137955
|
+
}, hr = function(t) {
|
137899
137956
|
return t.type === "ordgroup" ? t.body : [t];
|
137900
137957
|
}, Tl = Ae.makeSpan, kZt = ["leftmost", "mbin", "mopen", "mrel", "mop", "mpunct"], wZt = ["rightmost", "mrel", "mclose", "mpunct"], FZt = {
|
137901
137958
|
display: Dt.DISPLAY,
|
@@ -138756,7 +138813,7 @@ st({
|
|
138756
138813
|
mode: n.mode,
|
138757
138814
|
mclass: "m" + r.slice(5),
|
138758
138815
|
// TODO(kevinb): don't prefix with 'm'
|
138759
|
-
body:
|
138816
|
+
body: hr(o),
|
138760
138817
|
isCharacterBox: Ct.isCharacterBox(o)
|
138761
138818
|
};
|
138762
138819
|
},
|
@@ -138781,7 +138838,7 @@ st({
|
|
138781
138838
|
type: "mclass",
|
138782
138839
|
mode: n.mode,
|
138783
138840
|
mclass: C5(t[0]),
|
138784
|
-
body:
|
138841
|
+
body: hr(t[1]),
|
138785
138842
|
isCharacterBox: Ct.isCharacterBox(t[1])
|
138786
138843
|
};
|
138787
138844
|
}
|
@@ -138806,7 +138863,7 @@ st({
|
|
138806
138863
|
parentIsSupSub: !1,
|
138807
138864
|
symbol: !1,
|
138808
138865
|
suppressBaseShift: r !== "\\stackrel",
|
138809
|
-
body:
|
138866
|
+
body: hr(o)
|
138810
138867
|
}, l = {
|
138811
138868
|
type: "supsub",
|
138812
138869
|
mode: i.mode,
|
@@ -138840,7 +138897,7 @@ st({
|
|
138840
138897
|
type: "pmb",
|
138841
138898
|
mode: n.mode,
|
138842
138899
|
mclass: C5(t[0]),
|
138843
|
-
body:
|
138900
|
+
body: hr(t[0])
|
138844
138901
|
};
|
138845
138902
|
},
|
138846
138903
|
htmlBuilder(e, t) {
|
@@ -139080,7 +139137,7 @@ st({
|
|
139080
139137
|
type: "color",
|
139081
139138
|
mode: n.mode,
|
139082
139139
|
color: r,
|
139083
|
-
body:
|
139140
|
+
body: hr(o)
|
139084
139141
|
};
|
139085
139142
|
},
|
139086
139143
|
htmlBuilder: Ioe,
|
@@ -141056,7 +141113,7 @@ st({
|
|
141056
141113
|
type: "href",
|
141057
141114
|
mode: n.mode,
|
141058
141115
|
href: o,
|
141059
|
-
body:
|
141116
|
+
body: hr(r)
|
141060
141117
|
} : n.formatUnsupportedCmd("\\href");
|
141061
141118
|
},
|
141062
141119
|
htmlBuilder: (e, t) => {
|
@@ -141103,7 +141160,7 @@ st({
|
|
141103
141160
|
type: "href",
|
141104
141161
|
mode: n.mode,
|
141105
141162
|
href: r,
|
141106
|
-
body:
|
141163
|
+
body: hr(s)
|
141107
141164
|
};
|
141108
141165
|
}
|
141109
141166
|
});
|
@@ -141123,7 +141180,7 @@ st({
|
|
141123
141180
|
return {
|
141124
141181
|
type: "hbox",
|
141125
141182
|
mode: n.mode,
|
141126
|
-
body:
|
141183
|
+
body: hr(t[0])
|
141127
141184
|
};
|
141128
141185
|
},
|
141129
141186
|
htmlBuilder(e, t) {
|
@@ -141189,7 +141246,7 @@ st({
|
|
141189
141246
|
type: "html",
|
141190
141247
|
mode: n.mode,
|
141191
141248
|
attributes: l,
|
141192
|
-
body:
|
141249
|
+
body: hr(a)
|
141193
141250
|
} : n.formatUnsupportedCmd(r);
|
141194
141251
|
},
|
141195
141252
|
htmlBuilder: (e, t) => {
|
@@ -141216,8 +141273,8 @@ st({
|
|
141216
141273
|
return {
|
141217
141274
|
type: "htmlmathml",
|
141218
141275
|
mode: n.mode,
|
141219
|
-
html:
|
141220
|
-
mathml:
|
141276
|
+
html: hr(t[0]),
|
141277
|
+
mathml: hr(t[1])
|
141221
141278
|
};
|
141222
141279
|
},
|
141223
141280
|
htmlBuilder: (e, t) => {
|
@@ -141456,10 +141513,10 @@ st({
|
|
141456
141513
|
return {
|
141457
141514
|
type: "mathchoice",
|
141458
141515
|
mode: n.mode,
|
141459
|
-
display:
|
141460
|
-
text:
|
141461
|
-
script:
|
141462
|
-
scriptscript:
|
141516
|
+
display: hr(t[0]),
|
141517
|
+
text: hr(t[1]),
|
141518
|
+
script: hr(t[2]),
|
141519
|
+
scriptscript: hr(t[3])
|
141463
141520
|
};
|
141464
141521
|
},
|
141465
141522
|
htmlBuilder: (e, t) => {
|
@@ -141666,7 +141723,7 @@ st({
|
|
141666
141723
|
limits: !1,
|
141667
141724
|
parentIsSupSub: !1,
|
141668
141725
|
symbol: !1,
|
141669
|
-
body:
|
141726
|
+
body: hr(r)
|
141670
141727
|
};
|
141671
141728
|
},
|
141672
141729
|
htmlBuilder: Cf,
|
@@ -141814,7 +141871,7 @@ st({
|
|
141814
141871
|
return {
|
141815
141872
|
type: "operatorname",
|
141816
141873
|
mode: n.mode,
|
141817
|
-
body:
|
141874
|
+
body: hr(o),
|
141818
141875
|
alwaysHandleSupSub: r === "\\operatornamewithlimits",
|
141819
141876
|
limits: !1,
|
141820
141877
|
parentIsSupSub: !1
|
@@ -141889,7 +141946,7 @@ st({
|
|
141889
141946
|
return {
|
141890
141947
|
type: "phantom",
|
141891
141948
|
mode: n.mode,
|
141892
|
-
body:
|
141949
|
+
body: hr(r)
|
141893
141950
|
};
|
141894
141951
|
},
|
141895
141952
|
htmlBuilder: (e, t) => {
|
@@ -141932,7 +141989,7 @@ st({
|
|
141932
141989
|
}, t), Ae.makeSpan(["mord"], [n], t);
|
141933
141990
|
},
|
141934
141991
|
mathmlBuilder: (e, t) => {
|
141935
|
-
var n = ei(
|
141992
|
+
var n = ei(hr(e.body), t), r = new Ye.MathNode("mphantom", n), o = new Ye.MathNode("mpadded", [r]);
|
141936
141993
|
return o.setAttribute("height", "0px"), o.setAttribute("depth", "0px"), o;
|
141937
141994
|
}
|
141938
141995
|
});
|
@@ -141958,7 +142015,7 @@ st({
|
|
141958
142015
|
return Ae.makeSpan(["mord", "rlap"], [n, r], t);
|
141959
142016
|
},
|
141960
142017
|
mathmlBuilder: (e, t) => {
|
141961
|
-
var n = ei(
|
142018
|
+
var n = ei(hr(e.body), t), r = new Ye.MathNode("mphantom", n), o = new Ye.MathNode("mpadded", [r]);
|
141962
142019
|
return o.setAttribute("width", "0px"), o;
|
141963
142020
|
}
|
141964
142021
|
});
|
@@ -142526,7 +142583,7 @@ st({
|
|
142526
142583
|
return {
|
142527
142584
|
type: "text",
|
142528
142585
|
mode: n.mode,
|
142529
|
-
body:
|
142586
|
+
body: hr(o),
|
142530
142587
|
font: r
|
142531
142588
|
};
|
142532
142589
|
},
|
@@ -145877,7 +145934,7 @@ _t.create({
|
|
145877
145934
|
return ["footnote-ref", Pt(e)];
|
145878
145935
|
}
|
145879
145936
|
});
|
145880
|
-
const FKt =
|
145937
|
+
const FKt = pr.create({
|
145881
145938
|
name: "superscript",
|
145882
145939
|
addOptions() {
|
145883
145940
|
return {
|
@@ -145912,7 +145969,7 @@ const FKt = hr.create({
|
|
145912
145969
|
"Mod-.": () => this.editor.commands.toggleSuperscript()
|
145913
145970
|
};
|
145914
145971
|
}
|
145915
|
-
}), MKt =
|
145972
|
+
}), MKt = pr.create({
|
145916
145973
|
name: "subscript",
|
145917
145974
|
addOptions() {
|
145918
145975
|
return {
|
@@ -147536,7 +147593,7 @@ function y_({ doc: e, name: t, lowlight: n, defaultLanguage: r }) {
|
|
147536
147593
|
Tie(c).forEach((d) => {
|
147537
147594
|
const f = s + d.text.length;
|
147538
147595
|
if (d.classes.length) {
|
147539
|
-
const h =
|
147596
|
+
const h = cr.inline(s, f, {
|
147540
147597
|
class: d.classes.join(" ")
|
147541
147598
|
});
|
147542
147599
|
o.push(h);
|
@@ -161970,7 +162027,7 @@ function sae({ pluginKey: e = nXt, editor: t, char: n = "@", allowSpaces: r = !1
|
|
161970
162027
|
decorations(g) {
|
161971
162028
|
const { active: b, range: k, decorationId: v } = m.getState(g);
|
161972
162029
|
return b ? wn.create(g.doc, [
|
161973
|
-
|
162030
|
+
cr.inline(k.from, k.to, {
|
161974
162031
|
nodeName: a,
|
161975
162032
|
class: s,
|
161976
162033
|
"data-decoration-id": v
|
@@ -222123,7 +222180,7 @@ const aXt = 200, sXt = new un("emoji"), lXt = _t.create({
|
|
222123
222180
|
delimiters: "dollar",
|
222124
222181
|
katexOptions: {
|
222125
222182
|
throwOnError: !1,
|
222126
|
-
strict: !
|
222183
|
+
strict: !1
|
222127
222184
|
}
|
222128
222185
|
}),
|
222129
222186
|
wKt,
|
@@ -222304,11 +222361,22 @@ const mXt = ({
|
|
222304
222361
|
},
|
222305
222362
|
{
|
222306
222363
|
title: "Reminder",
|
222307
|
-
description: "We'll send you a push notification, so you don't forget about important.",
|
222364
|
+
description: r ? "We'll send you a push notification, so you don't forget about something important." : "You need to be logged-in to create reminders",
|
222308
222365
|
searchTerms: ["reminder", "alert", "notification"],
|
222309
|
-
icon: /* @__PURE__ */ F.jsx(
|
222366
|
+
icon: /* @__PURE__ */ F.jsx(
|
222367
|
+
Pe,
|
222368
|
+
{
|
222369
|
+
name: "AlarmClock",
|
222370
|
+
size: "md",
|
222371
|
+
stroke: !r && "#a1aab1" || void 0
|
222372
|
+
}
|
222373
|
+
),
|
222310
222374
|
image: "",
|
222311
|
-
|
222375
|
+
isDisabled: !r,
|
222376
|
+
command: ({ editor: o, range: i }) => {
|
222377
|
+
if (r)
|
222378
|
+
return pXt(o, i), !0;
|
222379
|
+
}
|
222312
222380
|
},
|
222313
222381
|
{
|
222314
222382
|
title: "Callout",
|
@@ -222317,6 +222385,7 @@ const mXt = ({
|
|
222317
222385
|
icon: /* @__PURE__ */ F.jsx(Pe, { name: "Callout", size: "md" }),
|
222318
222386
|
image: "",
|
222319
222387
|
command: ({ editor: o, range: i }) => {
|
222388
|
+
const a = o.getAttributes("textStyle");
|
222320
222389
|
o.chain().focus().deleteRange(i).insertContent({
|
222321
222390
|
type: "callout",
|
222322
222391
|
content: [
|
@@ -222325,7 +222394,7 @@ const mXt = ({
|
|
222325
222394
|
content: []
|
222326
222395
|
}
|
222327
222396
|
]
|
222328
|
-
}).run();
|
222397
|
+
}).run(), a && o.chain().focus().setMark("textStyle", a).run();
|
222329
222398
|
}
|
222330
222399
|
},
|
222331
222400
|
{
|
@@ -222439,8 +222508,6 @@ const mXt = ({
|
|
222439
222508
|
}
|
222440
222509
|
}
|
222441
222510
|
].filter((o) => {
|
222442
|
-
if (!r && o.title === "Reminder")
|
222443
|
-
return !1;
|
222444
222511
|
if (typeof e == "string" && e.length > 0) {
|
222445
222512
|
const i = e.toLowerCase();
|
222446
222513
|
return o.title.toLowerCase().includes(i) || o.description.toLowerCase().includes(i) || o.searchTerms && o.searchTerms.some((a) => a.includes(i));
|
@@ -222553,14 +222620,30 @@ const mXt = ({
|
|
222553
222620
|
{
|
222554
222621
|
className: ye(
|
222555
222622
|
"flex w-full items-center space-x-2 rounded-md px-2 py-1 text-left text-sm hover:color-bg-default-hover border border-transparent transition-all",
|
222556
|
-
p === r && "color-bg-default-hover"
|
222623
|
+
p === r && h.isDisabled && "color-bg-default-hover"
|
222557
222624
|
),
|
222558
222625
|
onClick: () => d(p),
|
222559
222626
|
children: [
|
222560
222627
|
/* @__PURE__ */ F.jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-md border color-border-default color-bg-default", children: h.icon }),
|
222561
222628
|
/* @__PURE__ */ F.jsxs("div", { className: "flex-1 min-w-0", children: [
|
222562
|
-
/* @__PURE__ */ F.jsx(
|
222563
|
-
|
222629
|
+
/* @__PURE__ */ F.jsx(
|
222630
|
+
"p",
|
222631
|
+
{
|
222632
|
+
className: ye(
|
222633
|
+
h.isDisabled ? "color-text-disabled font-medium" : "font-medium"
|
222634
|
+
),
|
222635
|
+
children: h.title
|
222636
|
+
}
|
222637
|
+
),
|
222638
|
+
/* @__PURE__ */ F.jsx(
|
222639
|
+
"p",
|
222640
|
+
{
|
222641
|
+
className: ye(
|
222642
|
+
h.isDisabled ? "color-text-disabled text-xs" : "text-xs text-neutral-500"
|
222643
|
+
),
|
222644
|
+
children: h.description
|
222645
|
+
}
|
222646
|
+
)
|
222564
222647
|
] })
|
222565
222648
|
]
|
222566
222649
|
},
|
@@ -223211,7 +223294,7 @@ const i9 = Xw.getInstance(), WXt = (e) => ({
|
|
223211
223294
|
if (!e) return { type: "paragraph", content: [] };
|
223212
223295
|
const r = { ...e };
|
223213
223296
|
return r.content = (o = e.content) == null ? void 0 : o.map((i) => GXt(i) ? (console.error("corrupted data:", i), n == null || n("Invalid content: " + typeof i), t ? null : WXt(i)) : i).filter((i) => i !== null), r;
|
223214
|
-
}, ZXt =
|
223297
|
+
}, ZXt = pr.create({
|
223215
223298
|
name: "comment",
|
223216
223299
|
addOptions() {
|
223217
223300
|
return {
|
@@ -223538,7 +223621,10 @@ const i9 = Xw.getInstance(), WXt = (e) => ({
|
|
223538
223621
|
xe == null || xe.commands.unsetCommentActive();
|
223539
223622
|
}
|
223540
223623
|
},
|
223541
|
-
handleClick: X
|
223624
|
+
handleClick: X,
|
223625
|
+
attributes: {
|
223626
|
+
spellCheck: "true"
|
223627
|
+
}
|
223542
223628
|
},
|
223543
223629
|
autofocus: g ? !1 : "start",
|
223544
223630
|
immediatelyRender: !1,
|
@@ -223848,7 +223934,7 @@ const i9 = Xw.getInstance(), WXt = (e) => ({
|
|
223848
223934
|
"mobile" + x.title + "skeleton"
|
223849
223935
|
) : No(
|
223850
223936
|
/* @__PURE__ */ F.jsx(
|
223851
|
-
|
223937
|
+
yr,
|
223852
223938
|
{
|
223853
223939
|
onClick: x.onClick,
|
223854
223940
|
isActive: x.isActive,
|
@@ -223866,7 +223952,7 @@ const i9 = Xw.getInstance(), WXt = (e) => ({
|
|
223866
223952
|
"mobile" + x.title
|
223867
223953
|
) : No(
|
223868
223954
|
/* @__PURE__ */ F.jsx(
|
223869
|
-
|
223955
|
+
yr,
|
223870
223956
|
{
|
223871
223957
|
onClick: x.onClick,
|
223872
223958
|
icon: x.icon,
|
@@ -223879,7 +223965,7 @@ const i9 = Xw.getInstance(), WXt = (e) => ({
|
|
223879
223965
|
"skeleton" + x.title
|
223880
223966
|
) : No(
|
223881
223967
|
/* @__PURE__ */ F.jsx(
|
223882
|
-
|
223968
|
+
yr,
|
223883
223969
|
{
|
223884
223970
|
onClick: x.onClick,
|
223885
223971
|
icon: x.icon,
|
@@ -226440,13 +226526,15 @@ const P_ = ke.memo(Mae), yen = ({
|
|
226440
226526
|
);
|
226441
226527
|
ze(() => {
|
226442
226528
|
if (!o) {
|
226443
|
-
const c = ()
|
226444
|
-
|
226445
|
-
|
226446
|
-
|
226447
|
-
|
226448
|
-
const
|
226449
|
-
|
226529
|
+
const c = Date.now(), f = new Date(r.timestamp).getTime() - c;
|
226530
|
+
if (f <= 0) {
|
226531
|
+
i(!0);
|
226532
|
+
return;
|
226533
|
+
}
|
226534
|
+
const h = setTimeout(() => {
|
226535
|
+
i(!0);
|
226536
|
+
}, f);
|
226537
|
+
return () => clearTimeout(h);
|
226450
226538
|
}
|
226451
226539
|
}, [o, r.timestamp]);
|
226452
226540
|
const u = We(() => {
|
@@ -226466,7 +226554,7 @@ const P_ = ke.memo(Mae), yen = ({
|
|
226466
226554
|
),
|
226467
226555
|
contentEditable: !1,
|
226468
226556
|
children: /* @__PURE__ */ F.jsx(
|
226469
|
-
|
226557
|
+
lr,
|
226470
226558
|
{
|
226471
226559
|
sideOffset: 10,
|
226472
226560
|
align: "start",
|
@@ -226621,8 +226709,7 @@ const P_ = ke.memo(Mae), yen = ({
|
|
226621
226709
|
renderHTML({ HTMLAttributes: e }) {
|
226622
226710
|
return [
|
226623
226711
|
"span",
|
226624
|
-
Pt(e, { "data-type": "reminder-block" })
|
226625
|
-
0
|
226712
|
+
Pt(e, { "data-type": "reminder-block" })
|
226626
226713
|
];
|
226627
226714
|
},
|
226628
226715
|
addNodeView() {
|