@ahzoo/sus 1.6.2 → 1.6.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/index.js +127 -119
- package/index.umd.cjs +19 -19
- package/package.json +1 -1
- package/style.css +1 -1
package/index.js
CHANGED
|
@@ -9568,7 +9568,7 @@ function Ji(o, e) {
|
|
|
9568
9568
|
function Gm(o) {
|
|
9569
9569
|
return typeof o == "function";
|
|
9570
9570
|
}
|
|
9571
|
-
function
|
|
9571
|
+
function oe(o, e = void 0, ...t) {
|
|
9572
9572
|
return Gm(o) ? e ? o.bind(e)(...t) : o(...t) : o;
|
|
9573
9573
|
}
|
|
9574
9574
|
function Mh(o = {}) {
|
|
@@ -9617,23 +9617,23 @@ function Oh(o, e) {
|
|
|
9617
9617
|
};
|
|
9618
9618
|
}, {}), u = dp({
|
|
9619
9619
|
...d,
|
|
9620
|
-
content:
|
|
9621
|
-
marks:
|
|
9622
|
-
group:
|
|
9623
|
-
inline:
|
|
9624
|
-
atom:
|
|
9625
|
-
selectable:
|
|
9626
|
-
draggable:
|
|
9627
|
-
code:
|
|
9628
|
-
whitespace:
|
|
9629
|
-
linebreakReplacement:
|
|
9630
|
-
defining:
|
|
9631
|
-
isolating:
|
|
9620
|
+
content: oe(B(p, "content", m)),
|
|
9621
|
+
marks: oe(B(p, "marks", m)),
|
|
9622
|
+
group: oe(B(p, "group", m)),
|
|
9623
|
+
inline: oe(B(p, "inline", m)),
|
|
9624
|
+
atom: oe(B(p, "atom", m)),
|
|
9625
|
+
selectable: oe(B(p, "selectable", m)),
|
|
9626
|
+
draggable: oe(B(p, "draggable", m)),
|
|
9627
|
+
code: oe(B(p, "code", m)),
|
|
9628
|
+
whitespace: oe(B(p, "whitespace", m)),
|
|
9629
|
+
linebreakReplacement: oe(B(p, "linebreakReplacement", m)),
|
|
9630
|
+
defining: oe(B(p, "defining", m)),
|
|
9631
|
+
isolating: oe(B(p, "isolating", m)),
|
|
9632
9632
|
attrs: Object.fromEntries(c.map((j) => {
|
|
9633
9633
|
var w;
|
|
9634
9634
|
return [j.name, { default: (w = j == null ? void 0 : j.attribute) === null || w === void 0 ? void 0 : w.default }];
|
|
9635
9635
|
}))
|
|
9636
|
-
}), g =
|
|
9636
|
+
}), g = oe(B(p, "parseHTML", m));
|
|
9637
9637
|
g && (u.parseDOM = g.map((j) => mp(j, c)));
|
|
9638
9638
|
const f = B(p, "renderHTML", m);
|
|
9639
9639
|
f && (u.toDOM = (j) => f({
|
|
@@ -9656,16 +9656,16 @@ function Oh(o, e) {
|
|
|
9656
9656
|
};
|
|
9657
9657
|
}, {}), u = dp({
|
|
9658
9658
|
...d,
|
|
9659
|
-
inclusive:
|
|
9660
|
-
excludes:
|
|
9661
|
-
group:
|
|
9662
|
-
spanning:
|
|
9663
|
-
code:
|
|
9659
|
+
inclusive: oe(B(p, "inclusive", m)),
|
|
9660
|
+
excludes: oe(B(p, "excludes", m)),
|
|
9661
|
+
group: oe(B(p, "group", m)),
|
|
9662
|
+
spanning: oe(B(p, "spanning", m)),
|
|
9663
|
+
code: oe(B(p, "code", m)),
|
|
9664
9664
|
attrs: Object.fromEntries(c.map((h) => {
|
|
9665
9665
|
var j;
|
|
9666
9666
|
return [h.name, { default: (j = h == null ? void 0 : h.attribute) === null || j === void 0 ? void 0 : j.default }];
|
|
9667
9667
|
}))
|
|
9668
|
-
}), g =
|
|
9668
|
+
}), g = oe(B(p, "parseHTML", m));
|
|
9669
9669
|
g && (u.parseDOM = g.map((h) => mp(h, c)));
|
|
9670
9670
|
const f = B(p, "renderHTML", m);
|
|
9671
9671
|
return f && (u.toDOM = (h) => f({
|
|
@@ -9856,9 +9856,9 @@ class Nt {
|
|
|
9856
9856
|
}, this.config = {
|
|
9857
9857
|
...this.config,
|
|
9858
9858
|
...e
|
|
9859
|
-
}, this.name = this.config.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options =
|
|
9859
|
+
}, this.name = this.config.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = oe(B(this, "addOptions", {
|
|
9860
9860
|
name: this.name
|
|
9861
|
-
}))), this.storage =
|
|
9861
|
+
}))), this.storage = oe(B(this, "addStorage", {
|
|
9862
9862
|
name: this.name,
|
|
9863
9863
|
options: this.options
|
|
9864
9864
|
})) || {};
|
|
@@ -9875,9 +9875,9 @@ class Nt {
|
|
|
9875
9875
|
}
|
|
9876
9876
|
extend(e = {}) {
|
|
9877
9877
|
const t = new Nt(e);
|
|
9878
|
-
return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options =
|
|
9878
|
+
return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = oe(B(t, "addOptions", {
|
|
9879
9879
|
name: t.name
|
|
9880
|
-
})), t.storage =
|
|
9880
|
+
})), t.storage = oe(B(t, "addStorage", {
|
|
9881
9881
|
name: t.name,
|
|
9882
9882
|
options: t.options
|
|
9883
9883
|
})), t;
|
|
@@ -10190,7 +10190,7 @@ class on {
|
|
|
10190
10190
|
editor: this.editor,
|
|
10191
10191
|
type: bi(e.name, this.schema)
|
|
10192
10192
|
};
|
|
10193
|
-
e.type === "mark" && (!((t =
|
|
10193
|
+
e.type === "mark" && (!((t = oe(B(e, "keepOnSplit", n))) !== null && t !== void 0) || t) && this.splittableMarks.push(e.name);
|
|
10194
10194
|
const a = B(e, "onBeforeCreate", n), s = B(e, "onCreate", n), i = B(e, "onUpdate", n), r = B(e, "onSelectionUpdate", n), l = B(e, "onTransaction", n), p = B(e, "onFocus", n), c = B(e, "onBlur", n), m = B(e, "onDestroy", n);
|
|
10195
10195
|
a && this.editor.on("beforeCreate", a), s && this.editor.on("create", s), i && this.editor.on("update", i), r && this.editor.on("selectionUpdate", r), l && this.editor.on("transaction", l), p && this.editor.on("focus", p), c && this.editor.on("blur", c), m && this.editor.on("destroy", m);
|
|
10196
10196
|
});
|
|
@@ -10204,9 +10204,9 @@ class Se {
|
|
|
10204
10204
|
}, this.config = {
|
|
10205
10205
|
...this.config,
|
|
10206
10206
|
...e
|
|
10207
|
-
}, this.name = this.config.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options =
|
|
10207
|
+
}, this.name = this.config.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = oe(B(this, "addOptions", {
|
|
10208
10208
|
name: this.name
|
|
10209
|
-
}))), this.storage =
|
|
10209
|
+
}))), this.storage = oe(B(this, "addStorage", {
|
|
10210
10210
|
name: this.name,
|
|
10211
10211
|
options: this.options
|
|
10212
10212
|
})) || {};
|
|
@@ -10223,9 +10223,9 @@ class Se {
|
|
|
10223
10223
|
}
|
|
10224
10224
|
extend(e = {}) {
|
|
10225
10225
|
const t = new Se({ ...this.config, ...e });
|
|
10226
|
-
return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options =
|
|
10226
|
+
return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = oe(B(t, "addOptions", {
|
|
10227
10227
|
name: t.name
|
|
10228
|
-
})), t.storage =
|
|
10228
|
+
})), t.storage = oe(B(t, "addStorage", {
|
|
10229
10229
|
name: t.name,
|
|
10230
10230
|
options: t.options
|
|
10231
10231
|
})), t;
|
|
@@ -10851,7 +10851,7 @@ function hp(o, e) {
|
|
|
10851
10851
|
name: n.name,
|
|
10852
10852
|
options: n.options,
|
|
10853
10853
|
storage: n.storage
|
|
10854
|
-
}, s =
|
|
10854
|
+
}, s = oe(B(n, "group", a));
|
|
10855
10855
|
return typeof s != "string" ? !1 : s.split(" ").includes("list");
|
|
10856
10856
|
}
|
|
10857
10857
|
function Gs(o, { checkChildren: e = !0, ignoreWhitespace: t = !1 } = {}) {
|
|
@@ -11953,7 +11953,7 @@ function mn(o) {
|
|
|
11953
11953
|
return new ra({
|
|
11954
11954
|
find: o.find,
|
|
11955
11955
|
handler: ({ state: e, range: t, match: n }) => {
|
|
11956
|
-
const a =
|
|
11956
|
+
const a = oe(o.getAttributes, void 0, n);
|
|
11957
11957
|
if (a === !1 || a === null)
|
|
11958
11958
|
return null;
|
|
11959
11959
|
const { tr: s } = e, i = n[n.length - 1], r = n[0];
|
|
@@ -11972,7 +11972,7 @@ function Rr(o) {
|
|
|
11972
11972
|
return new ra({
|
|
11973
11973
|
find: o.find,
|
|
11974
11974
|
handler: ({ state: e, range: t, match: n }) => {
|
|
11975
|
-
const a =
|
|
11975
|
+
const a = oe(o.getAttributes, void 0, n) || {}, { tr: s } = e, i = t.from;
|
|
11976
11976
|
let r = t.to;
|
|
11977
11977
|
const l = o.type.create(a);
|
|
11978
11978
|
if (n[1]) {
|
|
@@ -11993,7 +11993,7 @@ function Qi(o) {
|
|
|
11993
11993
|
return new ra({
|
|
11994
11994
|
find: o.find,
|
|
11995
11995
|
handler: ({ state: e, range: t, match: n }) => {
|
|
11996
|
-
const a = e.doc.resolve(t.from), s =
|
|
11996
|
+
const a = e.doc.resolve(t.from), s = oe(o.getAttributes, void 0, n) || {};
|
|
11997
11997
|
if (!a.node(-1).canReplaceWith(a.index(-1), a.indexAfter(-1), o.type))
|
|
11998
11998
|
return null;
|
|
11999
11999
|
e.tr.delete(t.from, t.to).setBlockType(t.from, t.from, o.type, s);
|
|
@@ -12004,7 +12004,7 @@ function Un(o) {
|
|
|
12004
12004
|
return new ra({
|
|
12005
12005
|
find: o.find,
|
|
12006
12006
|
handler: ({ state: e, range: t, match: n, chain: a }) => {
|
|
12007
|
-
const s =
|
|
12007
|
+
const s = oe(o.getAttributes, void 0, n) || {}, i = e.tr.delete(t.from, t.to), l = i.doc.resolve(t.from).blockRange(), p = l && gr(l, o.type, s);
|
|
12008
12008
|
if (!p)
|
|
12009
12009
|
return null;
|
|
12010
12010
|
if (i.wrap(l, p), o.keepMarks && o.editor) {
|
|
@@ -12031,9 +12031,9 @@ class Be {
|
|
|
12031
12031
|
}, this.config = {
|
|
12032
12032
|
...this.config,
|
|
12033
12033
|
...e
|
|
12034
|
-
}, this.name = this.config.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options =
|
|
12034
|
+
}, this.name = this.config.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = oe(B(this, "addOptions", {
|
|
12035
12035
|
name: this.name
|
|
12036
|
-
}))), this.storage =
|
|
12036
|
+
}))), this.storage = oe(B(this, "addStorage", {
|
|
12037
12037
|
name: this.name,
|
|
12038
12038
|
options: this.options
|
|
12039
12039
|
})) || {};
|
|
@@ -12050,9 +12050,9 @@ class Be {
|
|
|
12050
12050
|
}
|
|
12051
12051
|
extend(e = {}) {
|
|
12052
12052
|
const t = new Be(e);
|
|
12053
|
-
return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options =
|
|
12053
|
+
return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = oe(B(t, "addOptions", {
|
|
12054
12054
|
name: t.name
|
|
12055
|
-
})), t.storage =
|
|
12055
|
+
})), t.storage = oe(B(t, "addStorage", {
|
|
12056
12056
|
name: t.name,
|
|
12057
12057
|
options: t.options
|
|
12058
12058
|
})), t;
|
|
@@ -12062,7 +12062,7 @@ function Ro(o) {
|
|
|
12062
12062
|
return new Jm({
|
|
12063
12063
|
find: o.find,
|
|
12064
12064
|
handler: ({ state: e, range: t, match: n, pasteEvent: a }) => {
|
|
12065
|
-
const s =
|
|
12065
|
+
const s = oe(o.getAttributes, void 0, n, a);
|
|
12066
12066
|
if (s === !1 || s === null)
|
|
12067
12067
|
return null;
|
|
12068
12068
|
const { tr: i } = e, r = n[n.length - 1], l = n[0];
|
|
@@ -12575,8 +12575,8 @@ function Gn(o, e) {
|
|
|
12575
12575
|
if (d === wn && X) {
|
|
12576
12576
|
var P = X[a];
|
|
12577
12577
|
Object.keys(q).forEach(function(V) {
|
|
12578
|
-
var
|
|
12579
|
-
q[V] += P[ae] *
|
|
12578
|
+
var Q = [vt, bt].indexOf(V) >= 0 ? 1 : -1, ae = [Xe, bt].indexOf(V) >= 0 ? "y" : "x";
|
|
12579
|
+
q[V] += P[ae] * Q;
|
|
12580
12580
|
});
|
|
12581
12581
|
}
|
|
12582
12582
|
return q;
|
|
@@ -12610,23 +12610,23 @@ function Xv(o) {
|
|
|
12610
12610
|
function Zv(o) {
|
|
12611
12611
|
var e = o.state, t = o.options, n = o.name;
|
|
12612
12612
|
if (!e.modifiersData[n]._skip) {
|
|
12613
|
-
for (var a = t.mainAxis, s = a === void 0 ? !0 : a, i = t.altAxis, r = i === void 0 ? !0 : i, l = t.fallbackPlacements, p = t.padding, c = t.boundary, m = t.rootBoundary, d = t.altBoundary, u = t.flipVariations, g = u === void 0 ? !0 : u, f = t.allowedAutoPlacements, h = e.options.placement, j = Ot(h), w = j === h, x = l || (w || !g ? [Fa(h)] : Xv(h)), b = [h].concat(x).reduce(function(we,
|
|
12614
|
-
return we.concat(Ot(
|
|
12615
|
-
placement:
|
|
12613
|
+
for (var a = t.mainAxis, s = a === void 0 ? !0 : a, i = t.altAxis, r = i === void 0 ? !0 : i, l = t.fallbackPlacements, p = t.padding, c = t.boundary, m = t.rootBoundary, d = t.altBoundary, u = t.flipVariations, g = u === void 0 ? !0 : u, f = t.allowedAutoPlacements, h = e.options.placement, j = Ot(h), w = j === h, x = l || (w || !g ? [Fa(h)] : Xv(h)), b = [h].concat(x).reduce(function(we, te) {
|
|
12614
|
+
return we.concat(Ot(te) === Pr ? Yv(e, {
|
|
12615
|
+
placement: te,
|
|
12616
12616
|
boundary: c,
|
|
12617
12617
|
rootBoundary: m,
|
|
12618
12618
|
padding: p,
|
|
12619
12619
|
flipVariations: g,
|
|
12620
12620
|
allowedAutoPlacements: f
|
|
12621
|
-
}) :
|
|
12621
|
+
}) : te);
|
|
12622
12622
|
}, []), A = e.rects.reference, _ = e.rects.popper, R = /* @__PURE__ */ new Map(), U = !0, E = b[0], q = 0; q < b.length; q++) {
|
|
12623
|
-
var X = b[q], P = Ot(X), V = fn(X) === dn,
|
|
12623
|
+
var X = b[q], P = Ot(X), V = fn(X) === dn, Q = [Xe, bt].indexOf(P) >= 0, ae = Q ? "width" : "height", le = Gn(e, {
|
|
12624
12624
|
placement: X,
|
|
12625
12625
|
boundary: c,
|
|
12626
12626
|
rootBoundary: m,
|
|
12627
12627
|
altBoundary: d,
|
|
12628
12628
|
padding: p
|
|
12629
|
-
}), v =
|
|
12629
|
+
}), v = Q ? V ? vt : Ze : V ? bt : Xe;
|
|
12630
12630
|
A[ae] > _[ae] && (v = Fa(v));
|
|
12631
12631
|
var y = Fa(v), M = [];
|
|
12632
12632
|
if (s && M.push(le[P] <= 0), r && M.push(le[v] <= 0, le[y] <= 0), M.every(function(we) {
|
|
@@ -12638,11 +12638,11 @@ function Zv(o) {
|
|
|
12638
12638
|
R.set(X, M);
|
|
12639
12639
|
}
|
|
12640
12640
|
if (U)
|
|
12641
|
-
for (var N = g ? 3 : 1, K = function(
|
|
12641
|
+
for (var N = g ? 3 : 1, K = function(te) {
|
|
12642
12642
|
var pe = b.find(function(ot) {
|
|
12643
12643
|
var Pe = R.get(ot);
|
|
12644
12644
|
if (Pe)
|
|
12645
|
-
return Pe.slice(0,
|
|
12645
|
+
return Pe.slice(0, te).every(function(nt) {
|
|
12646
12646
|
return nt;
|
|
12647
12647
|
});
|
|
12648
12648
|
});
|
|
@@ -12767,10 +12767,10 @@ function lj(o) {
|
|
|
12767
12767
|
};
|
|
12768
12768
|
if (_) {
|
|
12769
12769
|
if (s) {
|
|
12770
|
-
var V,
|
|
12770
|
+
var V, Q = b === "y" ? Xe : Ze, ae = b === "y" ? bt : vt, le = b === "y" ? "height" : "width", v = _[b], y = v + h[Q], M = v - h[ae], N = u ? -U[le] / 2 : 0, K = w === dn ? R[le] : U[le], ne = w === dn ? -U[le] : -R[le], ge = e.elements.arrow, we = u && ge ? zr(ge) : {
|
|
12771
12771
|
width: 0,
|
|
12772
12772
|
height: 0
|
|
12773
|
-
},
|
|
12773
|
+
}, te = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ud(), pe = te[Q], ot = te[ae], Pe = On(0, R[le], we[le]), nt = x ? R[le] / 2 - N - Pe - pe - q.mainAxis : K - Pe - pe - q.mainAxis, at = x ? -R[le] / 2 + N + Pe + ot + q.mainAxis : ne + Pe + ot + q.mainAxis, wt = e.elements.arrow && pa(e.elements.arrow), Jt = wt ? b === "y" ? wt.clientTop || 0 : wt.clientLeft || 0 : 0, Rt = (V = X == null ? void 0 : X[b]) != null ? V : 0, Ue = v + nt - Rt - Jt, It = v + at - Rt, de = On(u ? Xa(y, Ue) : y, v, u ? Mo(M, It) : M);
|
|
12774
12774
|
_[b] = de, P[b] = de - v;
|
|
12775
12775
|
}
|
|
12776
12776
|
if (r) {
|
|
@@ -13384,7 +13384,7 @@ function Gj(o, e) {
|
|
|
13384
13384
|
return wt(), N(), v(), y("onCreate", [b]), t.showOnCreate && $(), _.addEventListener("mouseenter", function() {
|
|
13385
13385
|
b.props.interactive && b.state.isVisible && b.clearDelayTimeouts();
|
|
13386
13386
|
}), _.addEventListener("mouseleave", function() {
|
|
13387
|
-
b.props.interactive && b.props.trigger.indexOf("mouseenter") >= 0 &&
|
|
13387
|
+
b.props.interactive && b.props.trigger.indexOf("mouseenter") >= 0 && Q().addEventListener("mousemove", g);
|
|
13388
13388
|
}), b;
|
|
13389
13389
|
function q() {
|
|
13390
13390
|
var D = b.props.touch;
|
|
@@ -13400,7 +13400,7 @@ function Gj(o, e) {
|
|
|
13400
13400
|
function V() {
|
|
13401
13401
|
return f || o;
|
|
13402
13402
|
}
|
|
13403
|
-
function
|
|
13403
|
+
function Q() {
|
|
13404
13404
|
var D = V().parentNode;
|
|
13405
13405
|
return D ? Oj(D) : document;
|
|
13406
13406
|
}
|
|
@@ -13445,7 +13445,7 @@ function Gj(o, e) {
|
|
|
13445
13445
|
}
|
|
13446
13446
|
}
|
|
13447
13447
|
function K() {
|
|
13448
|
-
|
|
13448
|
+
Q().removeEventListener("mousemove", g), va = va.filter(function(D) {
|
|
13449
13449
|
return D !== g;
|
|
13450
13450
|
});
|
|
13451
13451
|
}
|
|
@@ -13472,12 +13472,12 @@ function Gj(o, e) {
|
|
|
13472
13472
|
function we() {
|
|
13473
13473
|
l = !1;
|
|
13474
13474
|
}
|
|
13475
|
-
function
|
|
13476
|
-
var D =
|
|
13475
|
+
function te() {
|
|
13476
|
+
var D = Q();
|
|
13477
13477
|
D.addEventListener("mousedown", ne, !0), D.addEventListener("touchend", ne, ko), D.addEventListener("touchstart", we, ko), D.addEventListener("touchmove", ge, ko);
|
|
13478
13478
|
}
|
|
13479
13479
|
function pe() {
|
|
13480
|
-
var D =
|
|
13480
|
+
var D = Q();
|
|
13481
13481
|
D.removeEventListener("mousedown", ne, !0), D.removeEventListener("touchend", ne, ko), D.removeEventListener("touchstart", we, ko), D.removeEventListener("touchmove", ge, ko);
|
|
13482
13482
|
}
|
|
13483
13483
|
function ot(D, z) {
|
|
@@ -13648,7 +13648,7 @@ function Gj(o, e) {
|
|
|
13648
13648
|
return Za(_.querySelectorAll("[data-tippy-root]"));
|
|
13649
13649
|
}
|
|
13650
13650
|
function $(D) {
|
|
13651
|
-
b.clearDelayTimeouts(), D && y("onTrigger", [b, D]),
|
|
13651
|
+
b.clearDelayTimeouts(), D && y("onTrigger", [b, D]), te();
|
|
13652
13652
|
var z = le(!0), G = q(), me = G[0], ie = G[1];
|
|
13653
13653
|
Mt.isTouch && me === "hold" && ie && (z = ie), z ? n = setTimeout(function() {
|
|
13654
13654
|
b.show();
|
|
@@ -13699,7 +13699,7 @@ function Gj(o, e) {
|
|
|
13699
13699
|
process.env.NODE_ENV !== "production" && Vt(b.state.isDestroyed, Uo("show"));
|
|
13700
13700
|
var D = b.state.isVisible, z = b.state.isDestroyed, G = !b.state.isEnabled, me = Mt.isTouch && !b.props.touch, ie = ki(b.props.duration, 0, et.duration);
|
|
13701
13701
|
if (!(D || z || G || me) && !V().hasAttribute("disabled") && (y("onShow", [b], !1), b.props.onShow(b) !== !1)) {
|
|
13702
|
-
if (b.state.isVisible = !0, P() && (_.style.visibility = "visible"), v(),
|
|
13702
|
+
if (b.state.isVisible = !0, P() && (_.style.visibility = "visible"), v(), te(), b.state.isMounted || (_.style.transition = "none"), P()) {
|
|
13703
13703
|
var ze = ae(), lt = ze.box, Ho = ze.content;
|
|
13704
13704
|
yi([lt, Ho], 0);
|
|
13705
13705
|
}
|
|
@@ -13729,7 +13729,7 @@ function Gj(o, e) {
|
|
|
13729
13729
|
}
|
|
13730
13730
|
}
|
|
13731
13731
|
function se(D) {
|
|
13732
|
-
process.env.NODE_ENV !== "production" && Vt(b.state.isDestroyed, Uo("hideWithInteractivity")),
|
|
13732
|
+
process.env.NODE_ENV !== "production" && Vt(b.state.isDestroyed, Uo("hideWithInteractivity")), Q().addEventListener("mousemove", g), xp(va, g), g(D);
|
|
13733
13733
|
}
|
|
13734
13734
|
function ke() {
|
|
13735
13735
|
process.env.NODE_ENV !== "production" && Vt(b.state.isDestroyed, Uo("unmount")), b.state.isVisible && b.hide(), b.state.isMounted && (S(), Y().forEach(function(D) {
|
|
@@ -14951,7 +14951,7 @@ const S1 = Se.create({
|
|
|
14951
14951
|
storage: o.storage
|
|
14952
14952
|
};
|
|
14953
14953
|
return {
|
|
14954
|
-
allowGapCursor: (e =
|
|
14954
|
+
allowGapCursor: (e = oe(B(o, "allowGapCursor", t))) !== null && e !== void 0 ? e : null
|
|
14955
14955
|
};
|
|
14956
14956
|
}
|
|
14957
14957
|
}), M1 = Be.create({
|
|
@@ -15825,7 +15825,7 @@ function ik({ pluginKey: o = sk, editor: e, char: t = "@", allowSpaces: n = !1,
|
|
|
15825
15825
|
return {
|
|
15826
15826
|
update: async (h, j) => {
|
|
15827
15827
|
var w, x, b, A, _, R, U;
|
|
15828
|
-
const E = (w = this.key) === null || w === void 0 ? void 0 : w.getState(j), q = (x = this.key) === null || x === void 0 ? void 0 : x.getState(h.state), X = E.active && q.active && E.range.from !== q.range.from, P = !E.active && q.active, V = E.active && !q.active,
|
|
15828
|
+
const E = (w = this.key) === null || w === void 0 ? void 0 : w.getState(j), q = (x = this.key) === null || x === void 0 ? void 0 : x.getState(h.state), X = E.active && q.active && E.range.from !== q.range.from, P = !E.active && q.active, V = E.active && !q.active, Q = !P && !V && E.query !== q.query, ae = P || X && Q, le = Q || X, v = V || X && Q;
|
|
15829
15829
|
if (!ae && !le && !v)
|
|
15830
15830
|
return;
|
|
15831
15831
|
const y = v && !ae ? E : q, M = h.dom.querySelector(`[data-decoration-id="${y.decorationId}"]`);
|
|
@@ -16836,7 +16836,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), K = v, N = y), M ===
|
|
|
16836
16836
|
k = u($, S.subLanguage.length ? S.subLanguage : null);
|
|
16837
16837
|
S.relevance > 0 && (Me += k.relevance), Y.__addSublanguage(k._emitter, k.language);
|
|
16838
16838
|
}
|
|
16839
|
-
function
|
|
16839
|
+
function te() {
|
|
16840
16840
|
S.subLanguage != null ? we() : ge(), $ = "";
|
|
16841
16841
|
}
|
|
16842
16842
|
function pe(k, I) {
|
|
@@ -16881,14 +16881,14 @@ https://github.com/highlightjs/highlight.js/issues/2277`), K = v, N = y), M ===
|
|
|
16881
16881
|
for (const ke of se)
|
|
16882
16882
|
if (ke && (ke(k, L), L.isMatchIgnored))
|
|
16883
16883
|
return at(I);
|
|
16884
|
-
return F.skip ? $ += I : (F.excludeBegin && ($ += I),
|
|
16884
|
+
return F.skip ? $ += I : (F.excludeBegin && ($ += I), te(), !F.returnBegin && !F.excludeBegin && ($ = I)), Pe(F, k), F.returnBegin ? 0 : I.length;
|
|
16885
16885
|
}
|
|
16886
16886
|
function Jt(k) {
|
|
16887
16887
|
const I = k[0], F = y.substring(k.index), L = nt(S, k, F);
|
|
16888
16888
|
if (!L)
|
|
16889
16889
|
return Gp;
|
|
16890
16890
|
const se = S;
|
|
16891
|
-
S.endScope && S.endScope._wrap ? (
|
|
16891
|
+
S.endScope && S.endScope._wrap ? (te(), pe(I, S.endScope._wrap)) : S.endScope && S.endScope._multi ? (te(), ot(S.endScope, k)) : se.skip ? $ += I : (se.returnEnd || se.excludeEnd || ($ += I), te(), se.excludeEnd && ($ = I));
|
|
16892
16892
|
do
|
|
16893
16893
|
S.scope && Y.closeNode(), !S.skip && !S.subLanguage && (Me += S.relevance), S = S.parent;
|
|
16894
16894
|
while (S !== L.parent);
|
|
@@ -16904,7 +16904,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), K = v, N = y), M ===
|
|
|
16904
16904
|
function It(k, I) {
|
|
16905
16905
|
const F = I && I[0];
|
|
16906
16906
|
if ($ += k, F == null)
|
|
16907
|
-
return
|
|
16907
|
+
return te(), 0;
|
|
16908
16908
|
if (Ue.type === "begin" && I.type === "end" && Ue.index === I.index && F === "") {
|
|
16909
16909
|
if ($ += y.slice(I.index, I.index + 1), !a) {
|
|
16910
16910
|
const L = new Error(`0 width match regex (${v})`);
|
|
@@ -16999,15 +16999,15 @@ https://github.com/highlightjs/highlight.js/issues/2277`), K = v, N = y), M ===
|
|
|
16999
16999
|
function u(v, y) {
|
|
17000
17000
|
y = y || r.languages || Object.keys(e);
|
|
17001
17001
|
const M = d(v), N = y.filter(E).filter(X).map(
|
|
17002
|
-
(
|
|
17002
|
+
(te) => m(te, v, !1)
|
|
17003
17003
|
);
|
|
17004
17004
|
N.unshift(M);
|
|
17005
|
-
const K = N.sort((
|
|
17006
|
-
if (
|
|
17007
|
-
if (
|
|
17008
|
-
if (E(
|
|
17005
|
+
const K = N.sort((te, pe) => {
|
|
17006
|
+
if (te.relevance !== pe.relevance) return pe.relevance - te.relevance;
|
|
17007
|
+
if (te.language && pe.language) {
|
|
17008
|
+
if (E(te.language).supersetOf === pe.language)
|
|
17009
17009
|
return 1;
|
|
17010
|
-
if (E(pe.language).supersetOf ===
|
|
17010
|
+
if (E(pe.language).supersetOf === te.language)
|
|
17011
17011
|
return -1;
|
|
17012
17012
|
}
|
|
17013
17013
|
return 0;
|
|
@@ -17114,7 +17114,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), K = v, N = y), M ===
|
|
|
17114
17114
|
function V(v) {
|
|
17115
17115
|
P(v), n.push(v);
|
|
17116
17116
|
}
|
|
17117
|
-
function
|
|
17117
|
+
function Q(v) {
|
|
17118
17118
|
const y = n.indexOf(v);
|
|
17119
17119
|
y !== -1 && n.splice(y, 1);
|
|
17120
17120
|
}
|
|
@@ -17145,7 +17145,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), K = v, N = y), M ===
|
|
|
17145
17145
|
autoDetection: X,
|
|
17146
17146
|
inherit: Kp,
|
|
17147
17147
|
addPlugin: V,
|
|
17148
|
-
removePlugin:
|
|
17148
|
+
removePlugin: Q
|
|
17149
17149
|
}), o.debugMode = function() {
|
|
17150
17150
|
a = !1;
|
|
17151
17151
|
}, o.safeMode = function() {
|
|
@@ -17995,7 +17995,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), K = v, N = y), M ===
|
|
|
17995
17995
|
k = u($, S.subLanguage.length ? S.subLanguage : null);
|
|
17996
17996
|
S.relevance > 0 && (Me += k.relevance), Y.__addSublanguage(k._emitter, k.language);
|
|
17997
17997
|
}
|
|
17998
|
-
function
|
|
17998
|
+
function te() {
|
|
17999
17999
|
S.subLanguage != null ? we() : ge(), $ = "";
|
|
18000
18000
|
}
|
|
18001
18001
|
function pe(k, I) {
|
|
@@ -18040,14 +18040,14 @@ https://github.com/highlightjs/highlight.js/issues/2277`), K = v, N = y), M ===
|
|
|
18040
18040
|
for (const ke of se)
|
|
18041
18041
|
if (ke && (ke(k, L), L.isMatchIgnored))
|
|
18042
18042
|
return at(I);
|
|
18043
|
-
return F.skip ? $ += I : (F.excludeBegin && ($ += I),
|
|
18043
|
+
return F.skip ? $ += I : (F.excludeBegin && ($ += I), te(), !F.returnBegin && !F.excludeBegin && ($ = I)), Pe(F, k), F.returnBegin ? 0 : I.length;
|
|
18044
18044
|
}
|
|
18045
18045
|
function Jt(k) {
|
|
18046
18046
|
const I = k[0], F = y.substring(k.index), L = nt(S, k, F);
|
|
18047
18047
|
if (!L)
|
|
18048
18048
|
return nc;
|
|
18049
18049
|
const se = S;
|
|
18050
|
-
S.endScope && S.endScope._wrap ? (
|
|
18050
|
+
S.endScope && S.endScope._wrap ? (te(), pe(I, S.endScope._wrap)) : S.endScope && S.endScope._multi ? (te(), ot(S.endScope, k)) : se.skip ? $ += I : (se.returnEnd || se.excludeEnd || ($ += I), te(), se.excludeEnd && ($ = I));
|
|
18051
18051
|
do
|
|
18052
18052
|
S.scope && Y.closeNode(), !S.skip && !S.subLanguage && (Me += S.relevance), S = S.parent;
|
|
18053
18053
|
while (S !== L.parent);
|
|
@@ -18063,7 +18063,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), K = v, N = y), M ===
|
|
|
18063
18063
|
function It(k, I) {
|
|
18064
18064
|
const F = I && I[0];
|
|
18065
18065
|
if ($ += k, F == null)
|
|
18066
|
-
return
|
|
18066
|
+
return te(), 0;
|
|
18067
18067
|
if (Ue.type === "begin" && I.type === "end" && Ue.index === I.index && F === "") {
|
|
18068
18068
|
if ($ += y.slice(I.index, I.index + 1), !a) {
|
|
18069
18069
|
const L = new Error(`0 width match regex (${v})`);
|
|
@@ -18158,15 +18158,15 @@ https://github.com/highlightjs/highlight.js/issues/2277`), K = v, N = y), M ===
|
|
|
18158
18158
|
function u(v, y) {
|
|
18159
18159
|
y = y || r.languages || Object.keys(e);
|
|
18160
18160
|
const M = d(v), N = y.filter(E).filter(X).map(
|
|
18161
|
-
(
|
|
18161
|
+
(te) => m(te, v, !1)
|
|
18162
18162
|
);
|
|
18163
18163
|
N.unshift(M);
|
|
18164
|
-
const K = N.sort((
|
|
18165
|
-
if (
|
|
18166
|
-
if (
|
|
18167
|
-
if (E(
|
|
18164
|
+
const K = N.sort((te, pe) => {
|
|
18165
|
+
if (te.relevance !== pe.relevance) return pe.relevance - te.relevance;
|
|
18166
|
+
if (te.language && pe.language) {
|
|
18167
|
+
if (E(te.language).supersetOf === pe.language)
|
|
18168
18168
|
return 1;
|
|
18169
|
-
if (E(pe.language).supersetOf ===
|
|
18169
|
+
if (E(pe.language).supersetOf === te.language)
|
|
18170
18170
|
return -1;
|
|
18171
18171
|
}
|
|
18172
18172
|
return 0;
|
|
@@ -18273,7 +18273,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), K = v, N = y), M ===
|
|
|
18273
18273
|
function V(v) {
|
|
18274
18274
|
P(v), n.push(v);
|
|
18275
18275
|
}
|
|
18276
|
-
function
|
|
18276
|
+
function Q(v) {
|
|
18277
18277
|
const y = n.indexOf(v);
|
|
18278
18278
|
y !== -1 && n.splice(y, 1);
|
|
18279
18279
|
}
|
|
@@ -18304,7 +18304,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), K = v, N = y), M ===
|
|
|
18304
18304
|
autoDetection: X,
|
|
18305
18305
|
inherit: oc,
|
|
18306
18306
|
addPlugin: V,
|
|
18307
|
-
removePlugin:
|
|
18307
|
+
removePlugin: Q
|
|
18308
18308
|
}), o.debugMode = function() {
|
|
18309
18309
|
a = !1;
|
|
18310
18310
|
}, o.safeMode = function() {
|
|
@@ -18669,7 +18669,7 @@ Ge.prototype = {
|
|
|
18669
18669
|
return a.j[o] = i, i;
|
|
18670
18670
|
}
|
|
18671
18671
|
};
|
|
18672
|
-
const
|
|
18672
|
+
const ee = (o, e, t, n, a) => o.ta(e, t, n, a), pt = (o, e, t, n, a) => o.tr(e, t, n, a), ic = (o, e, t, n, a) => o.ts(e, t, n, a), O = (o, e, t, n, a) => o.tt(e, t, n, a), zt = "WORD", pr = "UWORD", ta = "LOCALHOST", cr = "TLD", mr = "UTLD", Ta = "SCHEME", Qo = "SLASH_SCHEME", ol = "NUM", pu = "WS", nl = "NL", Nn = "OPENBRACE", Bn = "CLOSEBRACE", as = "OPENBRACKET", ss = "CLOSEBRACKET", is = "OPENPAREN", rs = "CLOSEPAREN", ls = "OPENANGLEBRACKET", ps = "CLOSEANGLEBRACKET", cs = "FULLWIDTHLEFTPAREN", ms = "FULLWIDTHRIGHTPAREN", ds = "LEFTCORNERBRACKET", us = "RIGHTCORNERBRACKET", gs = "LEFTWHITECORNERBRACKET", fs = "RIGHTWHITECORNERBRACKET", hs = "FULLWIDTHLESSTHAN", bs = "FULLWIDTHGREATERTHAN", vs = "AMPERSAND", js = "APOSTROPHE", ks = "ASTERISK", eo = "AT", ys = "BACKSLASH", _s = "BACKTICK", Ds = "CARET", oo = "COLON", al = "COMMA", ws = "DOLLAR", Ct = "DOT", Is = "EQUALS", sl = "EXCLAMATION", xt = "HYPHEN", Es = "PERCENT", Cs = "PIPE", xs = "PLUS", Ss = "POUND", Ms = "QUERY", il = "QUOTE", rl = "SEMI", St = "SLASH", Rn = "TILDE", Fs = "UNDERSCORE", cu = "EMOJI", Os = "SYM";
|
|
18673
18673
|
var mu = /* @__PURE__ */ Object.freeze({
|
|
18674
18674
|
__proto__: null,
|
|
18675
18675
|
WORD: zt,
|
|
@@ -19086,33 +19086,33 @@ function A0(o) {
|
|
|
19086
19086
|
groups: e
|
|
19087
19087
|
} = o;
|
|
19088
19088
|
const t = e.domain.concat([vs, ks, eo, ys, _s, Ds, ws, Is, xt, ol, Es, Cs, xs, Ss, St, Os, Rn, Fs]), n = [js, oo, al, Ct, sl, Ms, il, rl, ls, ps, Nn, Bn, ss, as, is, rs, cs, ms, ds, us, gs, fs, hs, bs], a = [vs, js, ks, ys, _s, Ds, ws, Is, xt, Nn, Bn, Es, Cs, xs, Ss, Ms, St, Os, Rn, Fs], s = ct(), i = O(s, Rn);
|
|
19089
|
-
|
|
19089
|
+
ee(i, a, i), ee(i, e.domain, i);
|
|
19090
19090
|
const r = ct(), l = ct(), p = ct();
|
|
19091
|
-
|
|
19091
|
+
ee(s, e.domain, r), ee(s, e.scheme, l), ee(s, e.slashscheme, p), ee(r, a, i), ee(r, e.domain, r);
|
|
19092
19092
|
const c = O(r, eo);
|
|
19093
19093
|
O(i, eo, c), O(l, eo, c), O(p, eo, c);
|
|
19094
19094
|
const m = O(i, Ct);
|
|
19095
|
-
|
|
19095
|
+
ee(m, a, i), ee(m, e.domain, i);
|
|
19096
19096
|
const d = ct();
|
|
19097
|
-
|
|
19097
|
+
ee(c, e.domain, d), ee(d, e.domain, d);
|
|
19098
19098
|
const u = O(d, Ct);
|
|
19099
|
-
|
|
19099
|
+
ee(u, e.domain, d);
|
|
19100
19100
|
const g = ct(mc);
|
|
19101
|
-
|
|
19101
|
+
ee(u, e.tld, g), ee(u, e.utld, g), O(c, ta, g);
|
|
19102
19102
|
const f = O(d, xt);
|
|
19103
|
-
|
|
19103
|
+
ee(f, e.domain, d), ee(g, e.domain, d), O(g, Ct, u), O(g, xt, f);
|
|
19104
19104
|
const h = O(g, oo);
|
|
19105
|
-
|
|
19105
|
+
ee(h, e.numeric, mc);
|
|
19106
19106
|
const j = O(r, xt), w = O(r, Ct);
|
|
19107
|
-
|
|
19107
|
+
ee(j, e.domain, r), ee(w, a, i), ee(w, e.domain, r);
|
|
19108
19108
|
const x = ct(Ia);
|
|
19109
|
-
|
|
19109
|
+
ee(w, e.tld, x), ee(w, e.utld, x), ee(x, e.domain, r), ee(x, a, i), O(x, Ct, w), O(x, xt, j), O(x, eo, c);
|
|
19110
19110
|
const b = O(x, oo), A = ct(Ia);
|
|
19111
|
-
|
|
19111
|
+
ee(b, e.numeric, A);
|
|
19112
19112
|
const _ = ct(Ia), R = ct();
|
|
19113
|
-
|
|
19113
|
+
ee(_, t, _), ee(_, n, R), ee(R, t, _), ee(R, n, R), O(x, St, _), O(A, St, _);
|
|
19114
19114
|
const U = O(l, oo), E = O(p, oo), q = O(E, St), X = O(q, St);
|
|
19115
|
-
|
|
19115
|
+
ee(l, e.domain, r), O(l, Ct, w), O(l, xt, j), ee(p, e.domain, r), O(p, Ct, w), O(p, xt, j), ee(U, e.domain, _), O(U, St, _), ee(X, e.domain, _), ee(X, t, _), O(X, St, _);
|
|
19116
19116
|
const P = [
|
|
19117
19117
|
[Nn, Bn],
|
|
19118
19118
|
// {}
|
|
@@ -19132,12 +19132,12 @@ function A0(o) {
|
|
|
19132
19132
|
// <>
|
|
19133
19133
|
];
|
|
19134
19134
|
for (let V = 0; V < P.length; V++) {
|
|
19135
|
-
const [
|
|
19136
|
-
O(R,
|
|
19135
|
+
const [Q, ae] = P[V], le = O(_, Q);
|
|
19136
|
+
O(R, Q, le), O(le, ae, _);
|
|
19137
19137
|
const v = ct(Ia);
|
|
19138
|
-
|
|
19138
|
+
ee(le, t, v);
|
|
19139
19139
|
const y = ct();
|
|
19140
|
-
|
|
19140
|
+
ee(le, n), ee(v, t, v), ee(v, n, y), ee(y, t, v), ee(y, n, y), O(v, ae, _), O(y, ae, _);
|
|
19141
19141
|
}
|
|
19142
19142
|
return O(s, ta, x), O(s, nl, O0), {
|
|
19143
19143
|
start: s,
|
|
@@ -19480,18 +19480,18 @@ function U0(o, e, t) {
|
|
|
19480
19480
|
theme: "light-border"
|
|
19481
19481
|
})[0], fc.show();
|
|
19482
19482
|
}
|
|
19483
|
-
const fu = (o) => (jc("data-v-
|
|
19483
|
+
const fu = (o) => (jc("data-v-0ff46a3f"), o = o(), kc(), o), K0 = { class: "sus-comment relative flex flex-row w-full" }, G0 = { class: "sus-comment-avatar" }, J0 = ["src"], Y0 = { class: "sus-comment__main" }, X0 = { class: "sus-comment__info my-1" }, Z0 = { class: "sus-comment__info-input" }, Q0 = {
|
|
19484
19484
|
class: "sus-comment__info-input",
|
|
19485
19485
|
"data-tippy-content": "点击昵称时可跳转"
|
|
19486
19486
|
}, e6 = ["data-tippy-content"], t6 = { class: "relative" }, o6 = { class: "sus-comment__footer flex justify-between" }, n6 = { class: "flex flex-row items-center" }, a6 = {
|
|
19487
19487
|
key: 0,
|
|
19488
19488
|
class: "p-1"
|
|
19489
|
-
}, s6 = /* @__PURE__ */ dr('<g fill="none" data-v-
|
|
19489
|
+
}, s6 = /* @__PURE__ */ dr('<g fill="none" data-v-0ff46a3f><path stroke="currentColor" stroke-linecap="round" stroke-width="1.5" d="M9 16c.85.63 1.885 1 3 1s2.15-.37 3-1" data-v-0ff46a3f></path><path fill="currentColor" d="M16 10.5c0 .828-.448 1.5-1 1.5s-1-.672-1-1.5s.448-1.5 1-1.5s1 .672 1 1.5" data-v-0ff46a3f></path><ellipse cx="9" cy="10.5" fill="currentColor" rx="1" ry="1.5" data-v-0ff46a3f></ellipse><path stroke="currentColor" stroke-linecap="round" stroke-width="1.5" d="M7 3.338A9.95 9.95 0 0 1 12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12c0-1.821.487-3.53 1.338-5" data-v-0ff46a3f></path></g>', 1), i6 = [
|
|
19490
19490
|
s6
|
|
19491
19491
|
], r6 = {
|
|
19492
19492
|
key: 1,
|
|
19493
19493
|
class: "sus-upload p-1"
|
|
19494
|
-
}, l6 = /* @__PURE__ */ dr('<label for="upload-input" data-v-
|
|
19494
|
+
}, l6 = /* @__PURE__ */ dr('<label for="upload-input" data-v-0ff46a3f><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" data-v-0ff46a3f><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="1.5" data-v-0ff46a3f><path d="m2 12.5l1.752-1.533a2.3 2.3 0 0 1 3.14.105l4.29 4.29a2 2 0 0 0 2.564.222l.299-.21a3 3 0 0 1 3.731.225L21 18.5m-6-13h3.5m0 0H22m-3.5 0V9m0-3.5V2" data-v-0ff46a3f></path><path d="M22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12c0-1.128 0-2.122.02-3M12 2C7.286 2 4.929 2 3.464 3.464c-.424.425-.726.925-.94 1.536" data-v-0ff46a3f></path></g></svg></label>', 1), p6 = {
|
|
19495
19495
|
"data-tippy-content": "收到回复后通知",
|
|
19496
19496
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19497
19497
|
viewBox: "0 0 24 24"
|
|
@@ -19520,7 +19520,7 @@ const fu = (o) => (jc("data-v-0c09e774"), o = o(), kc(), o), K0 = { class: "sus-
|
|
|
19520
19520
|
/* @__PURE__ */ H("path", { d: "M7.5 19c.655 1.748 2.422 3 4.5 3q.367 0 .72-.05M16.5 19a4.5 4.5 0 0 1-1.302 1.84M9.107 2.674A6.5 6.5 0 0 1 12 2c3.727 0 6.75 3.136 6.75 7.005v.705a4.4 4.4 0 0 0 .692 2.375l1.108 1.724c1.011 1.575.239 3.716-1.52 4.214a25.8 25.8 0 0 1-14.06 0c-1.759-.498-2.531-2.639-1.52-4.213l1.108-1.725A4.4 4.4 0 0 0 5.25 9.71v-.705c0-1.074.233-2.092.65-3.002" })
|
|
19521
19521
|
], -1)), g6 = [
|
|
19522
19522
|
u6
|
|
19523
|
-
], f6 = { class: "sus-comment__extend flex" }, h6 = ["src"], b6 = ["onClick"], v6 = /* @__PURE__ */ dr('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" data-v-
|
|
19523
|
+
], f6 = { class: "sus-comment__extend flex" }, h6 = ["src"], b6 = ["onClick"], v6 = /* @__PURE__ */ dr('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" data-v-0ff46a3f><g fill="none" stroke="currentColor" stroke-width="1.5" data-v-0ff46a3f><path stroke-linecap="round" d="M20.5 6h-17m6 5l.5 5m4.5-5l-.5 5" data-v-0ff46a3f></path><path d="M6.5 6h.11a2 2 0 0 0 1.83-1.32l.034-.103l.097-.291c.083-.249.125-.373.18-.479a1.5 1.5 0 0 1 1.094-.788C9.962 3 10.093 3 10.355 3h3.29c.262 0 .393 0 .51.019a1.5 1.5 0 0 1 1.094.788c.055.106.097.23.18.479l.097.291A2 2 0 0 0 17.5 6" data-v-0ff46a3f></path><path stroke-linecap="round" d="M18.374 15.4c-.177 2.654-.266 3.981-1.131 4.79s-2.195.81-4.856.81h-.774c-2.66 0-3.99 0-4.856-.81c-.865-.809-.953-2.136-1.13-4.79l-.46-6.9m13.666 0l-.2 3" data-v-0ff46a3f></path></g></svg>', 1), j6 = [
|
|
19524
19524
|
v6
|
|
19525
19525
|
], k6 = /* @__PURE__ */ jt({
|
|
19526
19526
|
__name: "index",
|
|
@@ -19618,15 +19618,23 @@ const fu = (o) => (jc("data-v-0c09e774"), o = o(), kc(), o), K0 = { class: "sus-
|
|
|
19618
19618
|
}
|
|
19619
19619
|
function q(P) {
|
|
19620
19620
|
var V;
|
|
19621
|
-
|
|
19621
|
+
try {
|
|
19622
|
+
if (!f.value || !f.value.length || f.value.length <= 1) {
|
|
19623
|
+
f.value = [], g.value = [];
|
|
19624
|
+
return;
|
|
19625
|
+
}
|
|
19626
|
+
(V = f.value) == null || V.splice(P, 1), g.value.splice(P, 1);
|
|
19627
|
+
} catch (Q) {
|
|
19628
|
+
console.log(Q), f.value = [], g.value = [];
|
|
19629
|
+
}
|
|
19622
19630
|
}
|
|
19623
19631
|
return na(() => {
|
|
19624
19632
|
if (!h || !h.value)
|
|
19625
19633
|
return;
|
|
19626
19634
|
const P = localStorage.getItem("user"), V = localStorage.getItem("comment-content");
|
|
19627
19635
|
if (V && h.value.commands.setContent(V), P) {
|
|
19628
|
-
const
|
|
19629
|
-
p.userName =
|
|
19636
|
+
const Q = JSON.parse(P);
|
|
19637
|
+
p.userName = Q.userName, p.userEmail = Q.userEmail, p.userWebsite = Q.userWebsite, R();
|
|
19630
19638
|
}
|
|
19631
19639
|
p.notify = 1, Gt("[data-tippy-content]");
|
|
19632
19640
|
}), (P, V) => (re(), ce("div", K0, [
|
|
@@ -19651,7 +19659,7 @@ const fu = (o) => (jc("data-v-0c09e774"), o = o(), kc(), o), K0 = { class: "sus-
|
|
|
19651
19659
|
mt(H("input", {
|
|
19652
19660
|
class: "sus-input sus-username",
|
|
19653
19661
|
placeholder: "昵称(必填)",
|
|
19654
|
-
"onUpdate:modelValue": V[0] || (V[0] = (
|
|
19662
|
+
"onUpdate:modelValue": V[0] || (V[0] = (Q) => p.userName = Q),
|
|
19655
19663
|
maxlength: "23"
|
|
19656
19664
|
}, null, 512), [
|
|
19657
19665
|
[ti, p.userName]
|
|
@@ -19661,7 +19669,7 @@ const fu = (o) => (jc("data-v-0c09e774"), o = o(), kc(), o), K0 = { class: "sus-
|
|
|
19661
19669
|
mt(H("input", {
|
|
19662
19670
|
class: "sus-input sus-web",
|
|
19663
19671
|
placeholder: "网址(https://)",
|
|
19664
|
-
"onUpdate:modelValue": V[1] || (V[1] = (
|
|
19672
|
+
"onUpdate:modelValue": V[1] || (V[1] = (Q) => p.userWebsite = Q),
|
|
19665
19673
|
maxlength: "35"
|
|
19666
19674
|
}, null, 512), [
|
|
19667
19675
|
[ti, p.userWebsite]
|
|
@@ -19675,7 +19683,7 @@ const fu = (o) => (jc("data-v-0c09e774"), o = o(), kc(), o), K0 = { class: "sus-
|
|
|
19675
19683
|
onBlur: R,
|
|
19676
19684
|
class: "sus-input sus-email",
|
|
19677
19685
|
placeholder: "邮箱(不会公开,仅用于通知回复)",
|
|
19678
|
-
"onUpdate:modelValue": V[2] || (V[2] = (
|
|
19686
|
+
"onUpdate:modelValue": V[2] || (V[2] = (Q) => p.userEmail = Q),
|
|
19679
19687
|
maxlength: "35"
|
|
19680
19688
|
}, null, 544), [
|
|
19681
19689
|
[ti, p.userEmail]
|
|
@@ -19701,7 +19709,7 @@ const fu = (o) => (jc("data-v-0c09e774"), o = o(), kc(), o), K0 = { class: "sus-
|
|
|
19701
19709
|
H("div", n6, [
|
|
19702
19710
|
en(i).length >= 0 ? (re(), ce("div", a6, [
|
|
19703
19711
|
(re(), ce("svg", {
|
|
19704
|
-
onClick: V[3] || (V[3] = (
|
|
19712
|
+
onClick: V[3] || (V[3] = (Q) => d.value = !d.value),
|
|
19705
19713
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19706
19714
|
viewBox: "0 0 24 24"
|
|
19707
19715
|
}, i6))
|
|
@@ -19743,13 +19751,13 @@ const fu = (o) => (jc("data-v-0c09e774"), o = o(), kc(), o), K0 = { class: "sus-
|
|
|
19743
19751
|
])
|
|
19744
19752
|
]),
|
|
19745
19753
|
H("div", f6, [
|
|
19746
|
-
(re(!0), ce(Pn, null, Ts(g.value, (
|
|
19754
|
+
(re(!0), ce(Pn, null, Ts(g.value, (Q, ae) => (re(), ce("div", {
|
|
19747
19755
|
class: "sus-comment__extend-img relative",
|
|
19748
|
-
key:
|
|
19756
|
+
key: Q
|
|
19749
19757
|
}, [
|
|
19750
19758
|
H("img", {
|
|
19751
19759
|
class: "img-item",
|
|
19752
|
-
src:
|
|
19760
|
+
src: Q,
|
|
19753
19761
|
alt: ""
|
|
19754
19762
|
}, null, 8, h6),
|
|
19755
19763
|
H("div", {
|
|
@@ -19761,7 +19769,7 @@ const fu = (o) => (jc("data-v-0c09e774"), o = o(), kc(), o), K0 = { class: "sus-
|
|
|
19761
19769
|
])
|
|
19762
19770
|
]));
|
|
19763
19771
|
}
|
|
19764
|
-
}), y6 = /* @__PURE__ */ yn(k6, [["__scopeId", "data-v-
|
|
19772
|
+
}), y6 = /* @__PURE__ */ yn(k6, [["__scopeId", "data-v-0ff46a3f"]]);
|
|
19765
19773
|
function _6(o) {
|
|
19766
19774
|
const e = new Date(o), t = e.getFullYear(), n = e.getMonth() + 1, a = e.getDate(), s = /* @__PURE__ */ new Date(), i = s.getFullYear(), r = s.getMonth() + 1, l = s.getDate();
|
|
19767
19775
|
if (i === t && r == n) {
|