rayo-editor 0.0.4 → 0.0.6
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/components/project/blog-writer/shared/BlogEditor.d.ts.map +1 -1
- package/dist/components/tiptap-templates/simple/blog-simple-editor.d.ts.map +1 -1
- package/dist/index.mjs +812 -785
- package/dist/index.umd.js +66 -62
- package/dist/style.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as E, Fragment as dr, jsxs as fe } from "react/jsx-runtime";
|
|
2
2
|
import * as R from "react";
|
|
3
|
-
import
|
|
3
|
+
import Gt, { forwardRef as o0, createContext as Ss, useRef as Jt, useState as Kt, useDebugValue as vx, useEffect as un, useContext as Kn, createRef as u5, memo as bx, createElement as Od, useLayoutEffect as Yf, version as Ay, useId as s0, useInsertionEffect as Zf, useMemo as vi, useCallback as ar, Children as d5, isValidElement as f5, Fragment as wx, Component as h5 } from "react";
|
|
4
4
|
import * as Ic from "react-dom";
|
|
5
5
|
import xx, { flushSync as p5 } from "react-dom";
|
|
6
6
|
function gr(t) {
|
|
@@ -9601,10 +9601,10 @@ class S4 {
|
|
|
9601
9601
|
this.callbacks = {};
|
|
9602
9602
|
}
|
|
9603
9603
|
}
|
|
9604
|
-
function
|
|
9605
|
-
return t.config[e] === void 0 && t.parent ?
|
|
9604
|
+
function kt(t, e, n) {
|
|
9605
|
+
return t.config[e] === void 0 && t.parent ? kt(t.parent, e, n) : typeof t.config[e] == "function" ? t.config[e].bind({
|
|
9606
9606
|
...n,
|
|
9607
|
-
parent: t.parent ?
|
|
9607
|
+
parent: t.parent ? kt(t.parent, e, n) : null
|
|
9608
9608
|
}) : t.config[e];
|
|
9609
9609
|
}
|
|
9610
9610
|
function ah(t) {
|
|
@@ -9630,7 +9630,7 @@ function $C(t) {
|
|
|
9630
9630
|
options: s.options,
|
|
9631
9631
|
storage: s.storage,
|
|
9632
9632
|
extensions: i
|
|
9633
|
-
}, l =
|
|
9633
|
+
}, l = kt(s, "addGlobalAttributes", a);
|
|
9634
9634
|
if (!l)
|
|
9635
9635
|
return;
|
|
9636
9636
|
l().forEach((u) => {
|
|
@@ -9652,7 +9652,7 @@ function $C(t) {
|
|
|
9652
9652
|
name: s.name,
|
|
9653
9653
|
options: s.options,
|
|
9654
9654
|
storage: s.storage
|
|
9655
|
-
}, l =
|
|
9655
|
+
}, l = kt(s, "addAttributes", a);
|
|
9656
9656
|
if (!l)
|
|
9657
9657
|
return;
|
|
9658
9658
|
const c = l();
|
|
@@ -9710,7 +9710,7 @@ function $d(t, e) {
|
|
|
9710
9710
|
function WC(t) {
|
|
9711
9711
|
return typeof t == "function";
|
|
9712
9712
|
}
|
|
9713
|
-
function
|
|
9713
|
+
function $t(t, e = void 0, ...n) {
|
|
9714
9714
|
return WC(t) ? e ? t.bind(e)(...n) : t(...n) : t;
|
|
9715
9715
|
}
|
|
9716
9716
|
function A4(t = {}) {
|
|
@@ -9745,44 +9745,44 @@ function Tv(t) {
|
|
|
9745
9745
|
}
|
|
9746
9746
|
function R4(t, e) {
|
|
9747
9747
|
var n;
|
|
9748
|
-
const r = $C(t), { nodeExtensions: i, markExtensions: o } = ah(t), s = (n = i.find((c) =>
|
|
9748
|
+
const r = $C(t), { nodeExtensions: i, markExtensions: o } = ah(t), s = (n = i.find((c) => kt(c, "topNode"))) === null || n === void 0 ? void 0 : n.name, a = Object.fromEntries(i.map((c) => {
|
|
9749
9749
|
const u = r.filter((w) => w.type === c.name), d = {
|
|
9750
9750
|
name: c.name,
|
|
9751
9751
|
options: c.options,
|
|
9752
9752
|
storage: c.storage,
|
|
9753
9753
|
editor: e
|
|
9754
9754
|
}, f = t.reduce((w, k) => {
|
|
9755
|
-
const A =
|
|
9755
|
+
const A = kt(k, "extendNodeSchema", d);
|
|
9756
9756
|
return {
|
|
9757
9757
|
...w,
|
|
9758
9758
|
...A ? A(c) : {}
|
|
9759
9759
|
};
|
|
9760
9760
|
}, {}), h = Tv({
|
|
9761
9761
|
...f,
|
|
9762
|
-
content:
|
|
9763
|
-
marks:
|
|
9764
|
-
group:
|
|
9765
|
-
inline:
|
|
9766
|
-
atom:
|
|
9767
|
-
selectable:
|
|
9768
|
-
draggable:
|
|
9769
|
-
code:
|
|
9770
|
-
whitespace:
|
|
9771
|
-
linebreakReplacement:
|
|
9772
|
-
defining:
|
|
9773
|
-
isolating:
|
|
9762
|
+
content: $t(kt(c, "content", d)),
|
|
9763
|
+
marks: $t(kt(c, "marks", d)),
|
|
9764
|
+
group: $t(kt(c, "group", d)),
|
|
9765
|
+
inline: $t(kt(c, "inline", d)),
|
|
9766
|
+
atom: $t(kt(c, "atom", d)),
|
|
9767
|
+
selectable: $t(kt(c, "selectable", d)),
|
|
9768
|
+
draggable: $t(kt(c, "draggable", d)),
|
|
9769
|
+
code: $t(kt(c, "code", d)),
|
|
9770
|
+
whitespace: $t(kt(c, "whitespace", d)),
|
|
9771
|
+
linebreakReplacement: $t(kt(c, "linebreakReplacement", d)),
|
|
9772
|
+
defining: $t(kt(c, "defining", d)),
|
|
9773
|
+
isolating: $t(kt(c, "isolating", d)),
|
|
9774
9774
|
attrs: Object.fromEntries(u.map((w) => {
|
|
9775
9775
|
var k;
|
|
9776
9776
|
return [w.name, { default: (k = w == null ? void 0 : w.attribute) === null || k === void 0 ? void 0 : k.default }];
|
|
9777
9777
|
}))
|
|
9778
|
-
}), m =
|
|
9778
|
+
}), m = $t(kt(c, "parseHTML", d));
|
|
9779
9779
|
m && (h.parseDOM = m.map((w) => Av(w, u)));
|
|
9780
|
-
const p =
|
|
9780
|
+
const p = kt(c, "renderHTML", d);
|
|
9781
9781
|
p && (h.toDOM = (w) => p({
|
|
9782
9782
|
node: w,
|
|
9783
9783
|
HTMLAttributes: $d(w, u)
|
|
9784
9784
|
}));
|
|
9785
|
-
const y =
|
|
9785
|
+
const y = kt(c, "renderText", d);
|
|
9786
9786
|
return y && (h.toText = y), [c.name, h];
|
|
9787
9787
|
})), l = Object.fromEntries(o.map((c) => {
|
|
9788
9788
|
const u = r.filter((y) => y.type === c.name), d = {
|
|
@@ -9791,25 +9791,25 @@ function R4(t, e) {
|
|
|
9791
9791
|
storage: c.storage,
|
|
9792
9792
|
editor: e
|
|
9793
9793
|
}, f = t.reduce((y, w) => {
|
|
9794
|
-
const k =
|
|
9794
|
+
const k = kt(w, "extendMarkSchema", d);
|
|
9795
9795
|
return {
|
|
9796
9796
|
...y,
|
|
9797
9797
|
...k ? k(c) : {}
|
|
9798
9798
|
};
|
|
9799
9799
|
}, {}), h = Tv({
|
|
9800
9800
|
...f,
|
|
9801
|
-
inclusive:
|
|
9802
|
-
excludes:
|
|
9803
|
-
group:
|
|
9804
|
-
spanning:
|
|
9805
|
-
code:
|
|
9801
|
+
inclusive: $t(kt(c, "inclusive", d)),
|
|
9802
|
+
excludes: $t(kt(c, "excludes", d)),
|
|
9803
|
+
group: $t(kt(c, "group", d)),
|
|
9804
|
+
spanning: $t(kt(c, "spanning", d)),
|
|
9805
|
+
code: $t(kt(c, "code", d)),
|
|
9806
9806
|
attrs: Object.fromEntries(u.map((y) => {
|
|
9807
9807
|
var w;
|
|
9808
9808
|
return [y.name, { default: (w = y == null ? void 0 : y.attribute) === null || w === void 0 ? void 0 : w.default }];
|
|
9809
9809
|
}))
|
|
9810
|
-
}), m =
|
|
9810
|
+
}), m = $t(kt(c, "parseHTML", d));
|
|
9811
9811
|
m && (h.parseDOM = m.map((y) => Av(y, u)));
|
|
9812
|
-
const p =
|
|
9812
|
+
const p = kt(c, "renderHTML", d);
|
|
9813
9813
|
return p && (h.toDOM = (y) => p({
|
|
9814
9814
|
mark: y,
|
|
9815
9815
|
HTMLAttributes: $d(y, u)
|
|
@@ -9998,9 +9998,9 @@ class Ir {
|
|
|
9998
9998
|
}, this.config = {
|
|
9999
9999
|
...this.config,
|
|
10000
10000
|
...e
|
|
10001
|
-
}, 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 =
|
|
10001
|
+
}, 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 = $t(kt(this, "addOptions", {
|
|
10002
10002
|
name: this.name
|
|
10003
|
-
}))), this.storage =
|
|
10003
|
+
}))), this.storage = $t(kt(this, "addStorage", {
|
|
10004
10004
|
name: this.name,
|
|
10005
10005
|
options: this.options
|
|
10006
10006
|
})) || {};
|
|
@@ -10017,9 +10017,9 @@ class Ir {
|
|
|
10017
10017
|
}
|
|
10018
10018
|
extend(e = {}) {
|
|
10019
10019
|
const n = new Ir(e);
|
|
10020
|
-
return n.parent = this, this.child = n, n.name = e.name ? e.name : n.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: "${n.name}".`), n.options =
|
|
10020
|
+
return n.parent = this, this.child = n, n.name = e.name ? e.name : n.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: "${n.name}".`), n.options = $t(kt(n, "addOptions", {
|
|
10021
10021
|
name: n.name
|
|
10022
|
-
})), n.storage =
|
|
10022
|
+
})), n.storage = $t(kt(n, "addStorage", {
|
|
10023
10023
|
name: n.name,
|
|
10024
10024
|
options: n.options
|
|
10025
10025
|
})), n;
|
|
@@ -10211,7 +10211,7 @@ class qa {
|
|
|
10211
10211
|
name: n.name,
|
|
10212
10212
|
options: n.options,
|
|
10213
10213
|
storage: n.storage
|
|
10214
|
-
}, i =
|
|
10214
|
+
}, i = kt(n, "addExtensions", r);
|
|
10215
10215
|
return i ? [n, ...this.flatten(i())] : n;
|
|
10216
10216
|
}).flat(10);
|
|
10217
10217
|
}
|
|
@@ -10222,7 +10222,7 @@ class qa {
|
|
|
10222
10222
|
*/
|
|
10223
10223
|
static sort(e) {
|
|
10224
10224
|
return e.sort((r, i) => {
|
|
10225
|
-
const o =
|
|
10225
|
+
const o = kt(r, "priority") || 100, s = kt(i, "priority") || 100;
|
|
10226
10226
|
return o > s ? -1 : o < s ? 1 : 0;
|
|
10227
10227
|
});
|
|
10228
10228
|
}
|
|
@@ -10238,7 +10238,7 @@ class qa {
|
|
|
10238
10238
|
storage: n.storage,
|
|
10239
10239
|
editor: this.editor,
|
|
10240
10240
|
type: up(n.name, this.schema)
|
|
10241
|
-
}, i =
|
|
10241
|
+
}, i = kt(n, "addCommands", r);
|
|
10242
10242
|
return i ? {
|
|
10243
10243
|
...e,
|
|
10244
10244
|
...i()
|
|
@@ -10257,19 +10257,19 @@ class qa {
|
|
|
10257
10257
|
storage: s.storage,
|
|
10258
10258
|
editor: e,
|
|
10259
10259
|
type: up(s.name, this.schema)
|
|
10260
|
-
}, l = [], c =
|
|
10260
|
+
}, l = [], c = kt(s, "addKeyboardShortcuts", a);
|
|
10261
10261
|
let u = {};
|
|
10262
|
-
if (s.type === "mark" &&
|
|
10262
|
+
if (s.type === "mark" && kt(s, "exitable", a) && (u.ArrowRight = () => Ir.handleExit({ editor: e, mark: s })), c) {
|
|
10263
10263
|
const p = Object.fromEntries(Object.entries(c()).map(([y, w]) => [y, () => w({ editor: e })]));
|
|
10264
10264
|
u = { ...u, ...p };
|
|
10265
10265
|
}
|
|
10266
10266
|
const d = JM(u);
|
|
10267
10267
|
l.push(d);
|
|
10268
|
-
const f =
|
|
10268
|
+
const f = kt(s, "addInputRules", a);
|
|
10269
10269
|
Rv(s, e.options.enableInputRules) && f && r.push(...f());
|
|
10270
|
-
const h =
|
|
10270
|
+
const h = kt(s, "addPasteRules", a);
|
|
10271
10271
|
Rv(s, e.options.enablePasteRules) && h && i.push(...h());
|
|
10272
|
-
const m =
|
|
10272
|
+
const m = kt(s, "addProseMirrorPlugins", a);
|
|
10273
10273
|
if (m) {
|
|
10274
10274
|
const p = m();
|
|
10275
10275
|
l.push(...p);
|
|
@@ -10301,14 +10301,14 @@ class qa {
|
|
|
10301
10301
|
*/
|
|
10302
10302
|
get nodeViews() {
|
|
10303
10303
|
const { editor: e } = this, { nodeExtensions: n } = ah(this.extensions);
|
|
10304
|
-
return Object.fromEntries(n.filter((r) => !!
|
|
10304
|
+
return Object.fromEntries(n.filter((r) => !!kt(r, "addNodeView")).map((r) => {
|
|
10305
10305
|
const i = this.attributes.filter((l) => l.type === r.name), o = {
|
|
10306
10306
|
name: r.name,
|
|
10307
10307
|
options: r.options,
|
|
10308
10308
|
storage: r.storage,
|
|
10309
10309
|
editor: e,
|
|
10310
10310
|
type: fr(r.name, this.schema)
|
|
10311
|
-
}, s =
|
|
10311
|
+
}, s = kt(r, "addNodeView", o);
|
|
10312
10312
|
if (!s)
|
|
10313
10313
|
return [];
|
|
10314
10314
|
const a = (l, c, u, d, f) => {
|
|
@@ -10344,8 +10344,8 @@ class qa {
|
|
|
10344
10344
|
editor: this.editor,
|
|
10345
10345
|
type: up(e.name, this.schema)
|
|
10346
10346
|
};
|
|
10347
|
-
e.type === "mark" && (!((n =
|
|
10348
|
-
const i =
|
|
10347
|
+
e.type === "mark" && (!((n = $t(kt(e, "keepOnSplit", r))) !== null && n !== void 0) || n) && this.splittableMarks.push(e.name);
|
|
10348
|
+
const i = kt(e, "onBeforeCreate", r), o = kt(e, "onCreate", r), s = kt(e, "onUpdate", r), a = kt(e, "onSelectionUpdate", r), l = kt(e, "onTransaction", r), c = kt(e, "onFocus", r), u = kt(e, "onBlur", r), d = kt(e, "onDestroy", r);
|
|
10349
10349
|
i && this.editor.on("beforeCreate", i), o && this.editor.on("create", o), s && this.editor.on("update", s), a && this.editor.on("selectionUpdate", a), l && this.editor.on("transaction", l), c && this.editor.on("focus", c), u && this.editor.on("blur", u), d && this.editor.on("destroy", d);
|
|
10350
10350
|
});
|
|
10351
10351
|
}
|
|
@@ -10358,9 +10358,9 @@ class Fn {
|
|
|
10358
10358
|
}, this.config = {
|
|
10359
10359
|
...this.config,
|
|
10360
10360
|
...e
|
|
10361
|
-
}, 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 =
|
|
10361
|
+
}, 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 = $t(kt(this, "addOptions", {
|
|
10362
10362
|
name: this.name
|
|
10363
|
-
}))), this.storage =
|
|
10363
|
+
}))), this.storage = $t(kt(this, "addStorage", {
|
|
10364
10364
|
name: this.name,
|
|
10365
10365
|
options: this.options
|
|
10366
10366
|
})) || {};
|
|
@@ -10377,9 +10377,9 @@ class Fn {
|
|
|
10377
10377
|
}
|
|
10378
10378
|
extend(e = {}) {
|
|
10379
10379
|
const n = new Fn({ ...this.config, ...e });
|
|
10380
|
-
return n.parent = this, this.child = n, n.name = e.name ? e.name : n.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: "${n.name}".`), n.options =
|
|
10380
|
+
return n.parent = this, this.child = n, n.name = e.name ? e.name : n.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: "${n.name}".`), n.options = $t(kt(n, "addOptions", {
|
|
10381
10381
|
name: n.name
|
|
10382
|
-
})), n.storage =
|
|
10382
|
+
})), n.storage = $t(kt(n, "addStorage", {
|
|
10383
10383
|
name: n.name,
|
|
10384
10384
|
options: n.options
|
|
10385
10385
|
})), n;
|
|
@@ -11018,7 +11018,7 @@ function Ov(t, e) {
|
|
|
11018
11018
|
name: r.name,
|
|
11019
11019
|
options: r.options,
|
|
11020
11020
|
storage: r.storage
|
|
11021
|
-
}, o =
|
|
11021
|
+
}, o = $t(kt(r, "group", i));
|
|
11022
11022
|
return typeof o != "string" ? !1 : o.split(" ").includes("list");
|
|
11023
11023
|
}
|
|
11024
11024
|
function I0(t, { checkChildren: e = !0, ignoreWhitespace: n = !1 } = {}) {
|
|
@@ -12126,7 +12126,7 @@ function ya(t) {
|
|
|
12126
12126
|
return new lu({
|
|
12127
12127
|
find: t.find,
|
|
12128
12128
|
handler: ({ state: e, range: n, match: r }) => {
|
|
12129
|
-
const i =
|
|
12129
|
+
const i = $t(t.getAttributes, void 0, r);
|
|
12130
12130
|
if (i === !1 || i === null)
|
|
12131
12131
|
return null;
|
|
12132
12132
|
const { tr: o } = e, s = r[r.length - 1], a = r[0];
|
|
@@ -12145,7 +12145,7 @@ function tk(t) {
|
|
|
12145
12145
|
return new lu({
|
|
12146
12146
|
find: t.find,
|
|
12147
12147
|
handler: ({ state: e, range: n, match: r }) => {
|
|
12148
|
-
const i =
|
|
12148
|
+
const i = $t(t.getAttributes, void 0, r) || {}, { tr: o } = e, s = n.from;
|
|
12149
12149
|
let a = n.to;
|
|
12150
12150
|
const l = t.type.create(i);
|
|
12151
12151
|
if (r[1]) {
|
|
@@ -12166,7 +12166,7 @@ function $m(t) {
|
|
|
12166
12166
|
return new lu({
|
|
12167
12167
|
find: t.find,
|
|
12168
12168
|
handler: ({ state: e, range: n, match: r }) => {
|
|
12169
|
-
const i = e.doc.resolve(n.from), o =
|
|
12169
|
+
const i = e.doc.resolve(n.from), o = $t(t.getAttributes, void 0, r) || {};
|
|
12170
12170
|
if (!i.node(-1).canReplaceWith(i.index(-1), i.indexAfter(-1), t.type))
|
|
12171
12171
|
return null;
|
|
12172
12172
|
e.tr.delete(n.from, n.to).setBlockType(n.from, n.from, t.type, o);
|
|
@@ -12193,7 +12193,7 @@ function yl(t) {
|
|
|
12193
12193
|
return new lu({
|
|
12194
12194
|
find: t.find,
|
|
12195
12195
|
handler: ({ state: e, range: n, match: r, chain: i }) => {
|
|
12196
|
-
const o =
|
|
12196
|
+
const o = $t(t.getAttributes, void 0, r) || {}, s = e.tr.delete(n.from, n.to), l = s.doc.resolve(n.from).blockRange(), c = l && c0(l, t.type, o);
|
|
12197
12197
|
if (!c)
|
|
12198
12198
|
return null;
|
|
12199
12199
|
if (s.wrap(l, c), t.keepMarks && t.editor) {
|
|
@@ -12220,9 +12220,9 @@ let jn = class Wm {
|
|
|
12220
12220
|
}, this.config = {
|
|
12221
12221
|
...this.config,
|
|
12222
12222
|
...e
|
|
12223
|
-
}, 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 =
|
|
12223
|
+
}, 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 = $t(kt(this, "addOptions", {
|
|
12224
12224
|
name: this.name
|
|
12225
|
-
}))), this.storage =
|
|
12225
|
+
}))), this.storage = $t(kt(this, "addStorage", {
|
|
12226
12226
|
name: this.name,
|
|
12227
12227
|
options: this.options
|
|
12228
12228
|
})) || {};
|
|
@@ -12239,9 +12239,9 @@ let jn = class Wm {
|
|
|
12239
12239
|
}
|
|
12240
12240
|
extend(e = {}) {
|
|
12241
12241
|
const n = new Wm(e);
|
|
12242
|
-
return n.parent = this, this.child = n, n.name = e.name ? e.name : n.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: "${n.name}".`), n.options =
|
|
12242
|
+
return n.parent = this, this.child = n, n.name = e.name ? e.name : n.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: "${n.name}".`), n.options = $t(kt(n, "addOptions", {
|
|
12243
12243
|
name: n.name
|
|
12244
|
-
})), n.storage =
|
|
12244
|
+
})), n.storage = $t(kt(n, "addStorage", {
|
|
12245
12245
|
name: n.name,
|
|
12246
12246
|
options: n.options
|
|
12247
12247
|
})), n;
|
|
@@ -12346,7 +12346,7 @@ function Cs(t) {
|
|
|
12346
12346
|
return new UC({
|
|
12347
12347
|
find: t.find,
|
|
12348
12348
|
handler: ({ state: e, range: n, match: r, pasteEvent: i }) => {
|
|
12349
|
-
const o =
|
|
12349
|
+
const o = $t(t.getAttributes, void 0, r, i);
|
|
12350
12350
|
if (o === !1 || o === null)
|
|
12351
12351
|
return null;
|
|
12352
12352
|
const { tr: s } = e, a = r[r.length - 1], l = r[0];
|
|
@@ -12379,7 +12379,7 @@ function bI(t) {
|
|
|
12379
12379
|
return new UC({
|
|
12380
12380
|
find: t.find,
|
|
12381
12381
|
handler({ match: e, chain: n, range: r, pasteEvent: i }) {
|
|
12382
|
-
const o =
|
|
12382
|
+
const o = $t(t.getAttributes, void 0, e, i), s = $t(t.getContent, void 0, o);
|
|
12383
12383
|
if (o === !1 || o === null)
|
|
12384
12384
|
return null;
|
|
12385
12385
|
const a = { type: t.type.name, attrs: o };
|
|
@@ -13737,11 +13737,11 @@ function J7(t, e) {
|
|
|
13737
13737
|
if (pe.content) {
|
|
13738
13738
|
var Ne = "aria-" + pe.content, Ae = L.id, Ze = $a(C.props.triggerTarget || t);
|
|
13739
13739
|
Ze.forEach(function(dt) {
|
|
13740
|
-
var
|
|
13740
|
+
var Yt = dt.getAttribute(Ne);
|
|
13741
13741
|
if (C.state.isVisible)
|
|
13742
|
-
dt.setAttribute(Ne,
|
|
13742
|
+
dt.setAttribute(Ne, Yt ? Yt + " " + Ae : Ae);
|
|
13743
13743
|
else {
|
|
13744
|
-
var Lt =
|
|
13744
|
+
var Lt = Yt && Yt.replace(Ae, "").trim();
|
|
13745
13745
|
Lt ? dt.setAttribute(Ne, Lt) : dt.removeAttribute(Ne);
|
|
13746
13746
|
}
|
|
13747
13747
|
});
|
|
@@ -13859,7 +13859,7 @@ function J7(t, e) {
|
|
|
13859
13859
|
var Ne = pe.target, Ae = P().contains(Ne) || L.contains(Ne);
|
|
13860
13860
|
if (!(pe.type === "mousemove" && Ae)) {
|
|
13861
13861
|
var Ze = xe().concat(L).map(function(dt) {
|
|
13862
|
-
var
|
|
13862
|
+
var Yt, Lt = dt._tippy, te = (Yt = Lt.popperInstance) == null ? void 0 : Yt.state;
|
|
13863
13863
|
return te ? {
|
|
13864
13864
|
popperRect: dt.getBoundingClientRect(),
|
|
13865
13865
|
popperState: te,
|
|
@@ -13887,7 +13887,7 @@ function J7(t, e) {
|
|
|
13887
13887
|
}
|
|
13888
13888
|
function W() {
|
|
13889
13889
|
$();
|
|
13890
|
-
var pe = C.props, Ne = pe.popperOptions, Ae = pe.placement, Ze = pe.offset, dt = pe.getReferenceClientRect,
|
|
13890
|
+
var pe = C.props, Ne = pe.popperOptions, Ae = pe.placement, Ze = pe.offset, dt = pe.getReferenceClientRect, Yt = pe.moveTransition, Lt = _() ? Xm(L).arrow : null, te = dt ? {
|
|
13891
13891
|
getBoundingClientRect: dt,
|
|
13892
13892
|
contextElement: dt.contextElement || P()
|
|
13893
13893
|
} : t, je = {
|
|
@@ -13898,7 +13898,7 @@ function J7(t, e) {
|
|
|
13898
13898
|
fn: function(lt) {
|
|
13899
13899
|
var St = lt.state;
|
|
13900
13900
|
if (_()) {
|
|
13901
|
-
var
|
|
13901
|
+
var wt = M(), Je = wt.box;
|
|
13902
13902
|
["placement", "reference-hidden", "escaped"].forEach(function(ct) {
|
|
13903
13903
|
ct === "placement" ? Je.setAttribute("data-placement", St.placement) : St.attributes.popper["data-popper-" + ct] ? Je.setAttribute("data-" + ct, "") : Je.removeAttribute("data-" + ct);
|
|
13904
13904
|
}), St.attributes.popper = {};
|
|
@@ -13927,7 +13927,7 @@ function J7(t, e) {
|
|
|
13927
13927
|
}, {
|
|
13928
13928
|
name: "computeStyles",
|
|
13929
13929
|
options: {
|
|
13930
|
-
adaptive: !
|
|
13930
|
+
adaptive: !Yt
|
|
13931
13931
|
}
|
|
13932
13932
|
}, je];
|
|
13933
13933
|
_() && Lt && tt.push({
|
|
@@ -14011,7 +14011,7 @@ function J7(t, e) {
|
|
|
14011
14011
|
var pe = C.state.isVisible, Ne = C.state.isDestroyed, Ae = !C.state.isEnabled, Ze = Ji.isTouch && !C.props.touch, dt = hp(C.props.duration, 0, ii.duration);
|
|
14012
14012
|
if (!(pe || Ne || Ae || Ze) && !P().hasAttribute("disabled") && (B("onShow", [C], !1), C.props.onShow(C) !== !1)) {
|
|
14013
14013
|
if (C.state.isVisible = !0, _() && (L.style.visibility = "visible"), V(), re(), C.state.isMounted || (L.style.transition = "none"), _()) {
|
|
14014
|
-
var
|
|
14014
|
+
var Yt = M(), Lt = Yt.box, te = Yt.content;
|
|
14015
14015
|
pp([Lt, te], 0);
|
|
14016
14016
|
}
|
|
14017
14017
|
f = function() {
|
|
@@ -14033,8 +14033,8 @@ function J7(t, e) {
|
|
|
14033
14033
|
var pe = !C.state.isVisible, Ne = C.state.isDestroyed, Ae = !C.state.isEnabled, Ze = hp(C.props.duration, 1, ii.duration);
|
|
14034
14034
|
if (!(pe || Ne || Ae) && (B("onHide", [C], !1), C.props.onHide(C) !== !1)) {
|
|
14035
14035
|
if (C.state.isVisible = !1, C.state.isShown = !1, c = !1, s = !1, _() && (L.style.visibility = "hidden"), z(), Ce(), V(!0), _()) {
|
|
14036
|
-
var dt = M(),
|
|
14037
|
-
C.props.animation && (pp([
|
|
14036
|
+
var dt = M(), Yt = dt.box, Lt = dt.content;
|
|
14037
|
+
C.props.animation && (pp([Yt, Lt], Ze), Uv([Yt, Lt], "hidden"));
|
|
14038
14038
|
}
|
|
14039
14039
|
H(), Z(), C.props.animation ? _() && Xe(Ze, C.unmount) : C.unmount();
|
|
14040
14040
|
}
|
|
@@ -14238,7 +14238,7 @@ function tO() {
|
|
|
14238
14238
|
if (Jv)
|
|
14239
14239
|
return yp;
|
|
14240
14240
|
Jv = 1;
|
|
14241
|
-
var t =
|
|
14241
|
+
var t = Gt;
|
|
14242
14242
|
function e(d, f) {
|
|
14243
14243
|
return d === f && (d !== 0 || 1 / d === 1 / f) || d !== d && f !== f;
|
|
14244
14244
|
}
|
|
@@ -14283,7 +14283,7 @@ var Qv;
|
|
|
14283
14283
|
function nO() {
|
|
14284
14284
|
return Qv || (Qv = 1, process.env.NODE_ENV !== "production" && function() {
|
|
14285
14285
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
14286
|
-
var t =
|
|
14286
|
+
var t = Gt, e = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
14287
14287
|
function n(A) {
|
|
14288
14288
|
{
|
|
14289
14289
|
for (var C = arguments.length, O = new Array(C > 1 ? C - 1 : 0), L = 1; L < C; L++)
|
|
@@ -14358,7 +14358,7 @@ const rO = (...t) => (e) => {
|
|
|
14358
14358
|
});
|
|
14359
14359
|
}, iO = ({ contentComponent: t }) => {
|
|
14360
14360
|
const e = dh.useSyncExternalStore(t.subscribe, t.getSnapshot, t.getServerSnapshot);
|
|
14361
|
-
return
|
|
14361
|
+
return Gt.createElement(Gt.Fragment, null, Object.values(e));
|
|
14362
14362
|
};
|
|
14363
14363
|
function oO() {
|
|
14364
14364
|
const t = /* @__PURE__ */ new Set();
|
|
@@ -14396,10 +14396,10 @@ function oO() {
|
|
|
14396
14396
|
}
|
|
14397
14397
|
};
|
|
14398
14398
|
}
|
|
14399
|
-
class sO extends
|
|
14399
|
+
class sO extends Gt.Component {
|
|
14400
14400
|
constructor(e) {
|
|
14401
14401
|
var n;
|
|
14402
|
-
super(e), this.editorContentRef =
|
|
14402
|
+
super(e), this.editorContentRef = Gt.createRef(), this.initialized = !1, this.state = {
|
|
14403
14403
|
hasContentComponentInitialized: !!(!((n = e.editor) === null || n === void 0) && n.contentComponent)
|
|
14404
14404
|
};
|
|
14405
14405
|
}
|
|
@@ -14437,22 +14437,22 @@ class sO extends Wt.Component {
|
|
|
14437
14437
|
}
|
|
14438
14438
|
render() {
|
|
14439
14439
|
const { editor: e, innerRef: n, ...r } = this.props;
|
|
14440
|
-
return
|
|
14441
|
-
|
|
14440
|
+
return Gt.createElement(
|
|
14441
|
+
Gt.Fragment,
|
|
14442
14442
|
null,
|
|
14443
|
-
|
|
14444
|
-
(e == null ? void 0 : e.contentComponent) &&
|
|
14443
|
+
Gt.createElement("div", { ref: rO(n, this.editorContentRef), ...r }),
|
|
14444
|
+
(e == null ? void 0 : e.contentComponent) && Gt.createElement(iO, { contentComponent: e.contentComponent })
|
|
14445
14445
|
);
|
|
14446
14446
|
}
|
|
14447
14447
|
}
|
|
14448
14448
|
const aO = o0((t, e) => {
|
|
14449
|
-
const n =
|
|
14450
|
-
return
|
|
14449
|
+
const n = Gt.useMemo(() => Math.floor(Math.random() * 4294967295).toString(), [t.editor]);
|
|
14450
|
+
return Gt.createElement(sO, {
|
|
14451
14451
|
key: n,
|
|
14452
14452
|
innerRef: e,
|
|
14453
14453
|
...t
|
|
14454
14454
|
});
|
|
14455
|
-
}), lO =
|
|
14455
|
+
}), lO = Gt.memo(aO);
|
|
14456
14456
|
var cO = function t(e, n) {
|
|
14457
14457
|
if (e === n)
|
|
14458
14458
|
return !0;
|
|
@@ -14529,7 +14529,7 @@ function dO() {
|
|
|
14529
14529
|
if (eb)
|
|
14530
14530
|
return bp;
|
|
14531
14531
|
eb = 1;
|
|
14532
|
-
var t =
|
|
14532
|
+
var t = Gt, e = dh;
|
|
14533
14533
|
function n(c, u) {
|
|
14534
14534
|
return c === u && (c !== 0 || 1 / c === 1 / u) || c !== c && u !== u;
|
|
14535
14535
|
}
|
|
@@ -14583,7 +14583,7 @@ var tb;
|
|
|
14583
14583
|
function fO() {
|
|
14584
14584
|
return tb || (tb = 1, process.env.NODE_ENV !== "production" && function() {
|
|
14585
14585
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
14586
|
-
var t =
|
|
14586
|
+
var t = Gt, e = dh;
|
|
14587
14587
|
function n(u, d) {
|
|
14588
14588
|
return u === d && (u !== 0 || 1 / u === 1 / d) || u !== u && d !== d;
|
|
14589
14589
|
}
|
|
@@ -14668,7 +14668,7 @@ class mO {
|
|
|
14668
14668
|
}
|
|
14669
14669
|
function gO(t) {
|
|
14670
14670
|
var e;
|
|
14671
|
-
const [n] =
|
|
14671
|
+
const [n] = Kt(() => new mO(t.editor)), r = hO.useSyncExternalStoreWithSelector(n.subscribe, n.getSnapshot, n.getServerSnapshot, t.selector, (e = t.equalityFn) !== null && e !== void 0 ? e : uO);
|
|
14672
14672
|
return pO(() => n.watch(t.editor), [t.editor, n]), vx(r), r;
|
|
14673
14673
|
}
|
|
14674
14674
|
const nb = process.env.NODE_ENV !== "production", Jm = typeof window > "u", yO = Jm || !!(typeof window < "u" && window.next);
|
|
@@ -14810,9 +14810,9 @@ class V0 {
|
|
|
14810
14810
|
}
|
|
14811
14811
|
}
|
|
14812
14812
|
function vO(t = {}, e = []) {
|
|
14813
|
-
const n =
|
|
14813
|
+
const n = Jt(t);
|
|
14814
14814
|
n.current = t;
|
|
14815
|
-
const [r] =
|
|
14815
|
+
const [r] = Kt(() => new V0(n)), i = dh.useSyncExternalStore(r.subscribe, r.getEditor, r.getServerSnapshot);
|
|
14816
14816
|
return vx(i), un(r.onRender(e)), gO({
|
|
14817
14817
|
editor: i,
|
|
14818
14818
|
selector: ({ transactionNumber: o }) => t.shouldRerenderOnTransaction === !1 ? null : t.immediatelyRender && o === 0 ? 0 : o + 1
|
|
@@ -14823,7 +14823,7 @@ const z0 = Ss({
|
|
|
14823
14823
|
});
|
|
14824
14824
|
z0.Consumer;
|
|
14825
14825
|
const Ek = () => Kn(z0), Qm = (t) => {
|
|
14826
|
-
const [e, n] =
|
|
14826
|
+
const [e, n] = Kt(null), { editor: r } = Ek();
|
|
14827
14827
|
return un(() => {
|
|
14828
14828
|
var i;
|
|
14829
14829
|
if (!e || !((i = t.editor) === null || i === void 0) && i.isDestroyed || r != null && r.isDestroyed)
|
|
@@ -14844,14 +14844,14 @@ const Ek = () => Kn(z0), Qm = (t) => {
|
|
|
14844
14844
|
return u.registerPlugin(d), () => {
|
|
14845
14845
|
u.unregisterPlugin(o);
|
|
14846
14846
|
};
|
|
14847
|
-
}, [t.editor, r, e]),
|
|
14847
|
+
}, [t.editor, r, e]), Gt.createElement("div", { ref: n, className: t.className, style: { visibility: "hidden" } }, t.children);
|
|
14848
14848
|
}, Sk = Ss({
|
|
14849
14849
|
onDragStart: void 0
|
|
14850
|
-
}), bO = () => Kn(Sk), Cl =
|
|
14850
|
+
}), bO = () => Kn(Sk), Cl = Gt.forwardRef((t, e) => {
|
|
14851
14851
|
const { onDragStart: n } = bO(), r = t.as || "div";
|
|
14852
14852
|
return (
|
|
14853
14853
|
// @ts-ignore
|
|
14854
|
-
|
|
14854
|
+
Gt.createElement(r, { ...t, ref: e, "data-node-view-wrapper": "", onDragStart: n, style: {
|
|
14855
14855
|
whiteSpace: "normal",
|
|
14856
14856
|
...t.style
|
|
14857
14857
|
} })
|
|
@@ -14903,7 +14903,7 @@ class kO {
|
|
|
14903
14903
|
const n = this.component, r = this.props, i = this.editor, o = CO(), s = xO(n), a = { ...r };
|
|
14904
14904
|
a.ref && !(o || s) && delete a.ref, !a.ref && (o || s) && (a.ref = (l) => {
|
|
14905
14905
|
this.ref = l;
|
|
14906
|
-
}), this.reactElement =
|
|
14906
|
+
}), this.reactElement = Gt.createElement(n, { ...a }), (e = i == null ? void 0 : i.contentComponent) === null || e === void 0 || e.setRenderer(this.id, this);
|
|
14907
14907
|
}
|
|
14908
14908
|
/**
|
|
14909
14909
|
* Re-renders the React component with new props.
|
|
@@ -14966,7 +14966,7 @@ class EO extends yI {
|
|
|
14966
14966
|
}
|
|
14967
14967
|
const i = { onDragStart: this.onDragStart.bind(this), nodeViewContentRef: (c) => {
|
|
14968
14968
|
c && this.contentDOMElement && c.firstChild !== this.contentDOMElement && (c.hasAttribute("data-node-view-wrapper") && c.removeAttribute("data-node-view-wrapper"), c.appendChild(this.contentDOMElement));
|
|
14969
|
-
} }, o = this.component, s = bx((c) =>
|
|
14969
|
+
} }, o = this.component, s = bx((c) => Gt.createElement(Sk.Provider, { value: i }, Od(o, c)));
|
|
14970
14970
|
s.displayName = "ReactNodeView";
|
|
14971
14971
|
let a = this.node.isInline ? "span" : "div";
|
|
14972
14972
|
this.options.as && (a = this.options.as);
|
|
@@ -15081,7 +15081,7 @@ function fh(t, e) {
|
|
|
15081
15081
|
}
|
|
15082
15082
|
const H0 = Ss({});
|
|
15083
15083
|
function ks(t) {
|
|
15084
|
-
const e =
|
|
15084
|
+
const e = Jt(null);
|
|
15085
15085
|
return e.current === null && (e.current = t()), e.current;
|
|
15086
15086
|
}
|
|
15087
15087
|
const SO = typeof window < "u", hh = SO ? Yf : un, ph = /* @__PURE__ */ Ss(null);
|
|
@@ -15332,7 +15332,7 @@ const tg = {
|
|
|
15332
15332
|
test: (e) => typeof e == "string" && e.endsWith(t) && e.split(" ").length === 1,
|
|
15333
15333
|
parse: parseFloat,
|
|
15334
15334
|
transform: (e) => `${e}${t}`
|
|
15335
|
-
}), Jo = /* @__PURE__ */ pu("deg"), io = /* @__PURE__ */ pu("%"),
|
|
15335
|
+
}), Jo = /* @__PURE__ */ pu("deg"), io = /* @__PURE__ */ pu("%"), Ct = /* @__PURE__ */ pu("px"), $O = /* @__PURE__ */ pu("vh"), WO = /* @__PURE__ */ pu("vw"), ub = /* @__PURE__ */ (() => ({
|
|
15336
15336
|
...io,
|
|
15337
15337
|
parse: (t) => io.parse(t) / 100,
|
|
15338
15338
|
transform: (t) => io.transform(t * 100)
|
|
@@ -16031,7 +16031,7 @@ const Ml = [
|
|
|
16031
16031
|
"skew",
|
|
16032
16032
|
"skewX",
|
|
16033
16033
|
"skewY"
|
|
16034
|
-
], Il = /* @__PURE__ */ (() => new Set(Ml))(), vb = (t) => t === Rl || t ===
|
|
16034
|
+
], Il = /* @__PURE__ */ (() => new Set(Ml))(), vb = (t) => t === Rl || t === Ct, O_ = /* @__PURE__ */ new Set(["x", "y", "z"]), __ = Ml.filter((t) => !O_.has(t));
|
|
16035
16035
|
function D_(t) {
|
|
16036
16036
|
const e = [];
|
|
16037
16037
|
return __.forEach((n) => {
|
|
@@ -16911,7 +16911,7 @@ function gE(t, e, n = {}) {
|
|
|
16911
16911
|
const m6 = {
|
|
16912
16912
|
test: (t) => t === "auto",
|
|
16913
16913
|
parse: (t) => t
|
|
16914
|
-
}, yE = (t) => (e) => e.test(t), vE = [Rl,
|
|
16914
|
+
}, yE = (t) => (e) => e.test(t), vE = [Rl, Ct, io, Jo, WO, $O, m6], kb = (t) => vE.find(yE(t));
|
|
16915
16915
|
function g6(t) {
|
|
16916
16916
|
return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || Rk(t) : !0;
|
|
16917
16917
|
}
|
|
@@ -16954,75 +16954,75 @@ const b6 = /\b([a-z-]*)\(.*?\)/gu, gg = {
|
|
|
16954
16954
|
skew: Jo,
|
|
16955
16955
|
skewX: Jo,
|
|
16956
16956
|
skewY: Jo,
|
|
16957
|
-
distance:
|
|
16958
|
-
translateX:
|
|
16959
|
-
translateY:
|
|
16960
|
-
translateZ:
|
|
16961
|
-
x:
|
|
16962
|
-
y:
|
|
16963
|
-
z:
|
|
16964
|
-
perspective:
|
|
16965
|
-
transformPerspective:
|
|
16957
|
+
distance: Ct,
|
|
16958
|
+
translateX: Ct,
|
|
16959
|
+
translateY: Ct,
|
|
16960
|
+
translateZ: Ct,
|
|
16961
|
+
x: Ct,
|
|
16962
|
+
y: Ct,
|
|
16963
|
+
z: Ct,
|
|
16964
|
+
perspective: Ct,
|
|
16965
|
+
transformPerspective: Ct,
|
|
16966
16966
|
opacity: Gc,
|
|
16967
16967
|
originX: ub,
|
|
16968
16968
|
originY: ub,
|
|
16969
|
-
originZ:
|
|
16969
|
+
originZ: Ct
|
|
16970
16970
|
}, s1 = {
|
|
16971
16971
|
// Border props
|
|
16972
|
-
borderWidth:
|
|
16973
|
-
borderTopWidth:
|
|
16974
|
-
borderRightWidth:
|
|
16975
|
-
borderBottomWidth:
|
|
16976
|
-
borderLeftWidth:
|
|
16977
|
-
borderRadius:
|
|
16978
|
-
borderTopLeftRadius:
|
|
16979
|
-
borderTopRightRadius:
|
|
16980
|
-
borderBottomRightRadius:
|
|
16981
|
-
borderBottomLeftRadius:
|
|
16972
|
+
borderWidth: Ct,
|
|
16973
|
+
borderTopWidth: Ct,
|
|
16974
|
+
borderRightWidth: Ct,
|
|
16975
|
+
borderBottomWidth: Ct,
|
|
16976
|
+
borderLeftWidth: Ct,
|
|
16977
|
+
borderRadius: Ct,
|
|
16978
|
+
borderTopLeftRadius: Ct,
|
|
16979
|
+
borderTopRightRadius: Ct,
|
|
16980
|
+
borderBottomRightRadius: Ct,
|
|
16981
|
+
borderBottomLeftRadius: Ct,
|
|
16982
16982
|
// Positioning props
|
|
16983
|
-
width:
|
|
16984
|
-
maxWidth:
|
|
16985
|
-
height:
|
|
16986
|
-
maxHeight:
|
|
16987
|
-
top:
|
|
16988
|
-
right:
|
|
16989
|
-
bottom:
|
|
16990
|
-
left:
|
|
16991
|
-
inset:
|
|
16992
|
-
insetBlock:
|
|
16993
|
-
insetBlockStart:
|
|
16994
|
-
insetBlockEnd:
|
|
16995
|
-
insetInline:
|
|
16996
|
-
insetInlineStart:
|
|
16997
|
-
insetInlineEnd:
|
|
16983
|
+
width: Ct,
|
|
16984
|
+
maxWidth: Ct,
|
|
16985
|
+
height: Ct,
|
|
16986
|
+
maxHeight: Ct,
|
|
16987
|
+
top: Ct,
|
|
16988
|
+
right: Ct,
|
|
16989
|
+
bottom: Ct,
|
|
16990
|
+
left: Ct,
|
|
16991
|
+
inset: Ct,
|
|
16992
|
+
insetBlock: Ct,
|
|
16993
|
+
insetBlockStart: Ct,
|
|
16994
|
+
insetBlockEnd: Ct,
|
|
16995
|
+
insetInline: Ct,
|
|
16996
|
+
insetInlineStart: Ct,
|
|
16997
|
+
insetInlineEnd: Ct,
|
|
16998
16998
|
// Spacing props
|
|
16999
|
-
padding:
|
|
17000
|
-
paddingTop:
|
|
17001
|
-
paddingRight:
|
|
17002
|
-
paddingBottom:
|
|
17003
|
-
paddingLeft:
|
|
17004
|
-
paddingBlock:
|
|
17005
|
-
paddingBlockStart:
|
|
17006
|
-
paddingBlockEnd:
|
|
17007
|
-
paddingInline:
|
|
17008
|
-
paddingInlineStart:
|
|
17009
|
-
paddingInlineEnd:
|
|
17010
|
-
margin:
|
|
17011
|
-
marginTop:
|
|
17012
|
-
marginRight:
|
|
17013
|
-
marginBottom:
|
|
17014
|
-
marginLeft:
|
|
17015
|
-
marginBlock:
|
|
17016
|
-
marginBlockStart:
|
|
17017
|
-
marginBlockEnd:
|
|
17018
|
-
marginInline:
|
|
17019
|
-
marginInlineStart:
|
|
17020
|
-
marginInlineEnd:
|
|
16999
|
+
padding: Ct,
|
|
17000
|
+
paddingTop: Ct,
|
|
17001
|
+
paddingRight: Ct,
|
|
17002
|
+
paddingBottom: Ct,
|
|
17003
|
+
paddingLeft: Ct,
|
|
17004
|
+
paddingBlock: Ct,
|
|
17005
|
+
paddingBlockStart: Ct,
|
|
17006
|
+
paddingBlockEnd: Ct,
|
|
17007
|
+
paddingInline: Ct,
|
|
17008
|
+
paddingInlineStart: Ct,
|
|
17009
|
+
paddingInlineEnd: Ct,
|
|
17010
|
+
margin: Ct,
|
|
17011
|
+
marginTop: Ct,
|
|
17012
|
+
marginRight: Ct,
|
|
17013
|
+
marginBottom: Ct,
|
|
17014
|
+
marginLeft: Ct,
|
|
17015
|
+
marginBlock: Ct,
|
|
17016
|
+
marginBlockStart: Ct,
|
|
17017
|
+
marginBlockEnd: Ct,
|
|
17018
|
+
marginInline: Ct,
|
|
17019
|
+
marginInlineStart: Ct,
|
|
17020
|
+
marginInlineEnd: Ct,
|
|
17021
17021
|
// Typography
|
|
17022
|
-
fontSize:
|
|
17022
|
+
fontSize: Ct,
|
|
17023
17023
|
// Misc
|
|
17024
|
-
backgroundPositionX:
|
|
17025
|
-
backgroundPositionY:
|
|
17024
|
+
backgroundPositionX: Ct,
|
|
17025
|
+
backgroundPositionY: Ct,
|
|
17026
17026
|
...w6,
|
|
17027
17027
|
zIndex: Eb,
|
|
17028
17028
|
// SVG
|
|
@@ -17864,7 +17864,7 @@ const Gl = {
|
|
|
17864
17864
|
if (!e.target)
|
|
17865
17865
|
return t;
|
|
17866
17866
|
if (typeof t == "string")
|
|
17867
|
-
if (
|
|
17867
|
+
if (Ct.test(t))
|
|
17868
17868
|
t = parseFloat(t);
|
|
17869
17869
|
else
|
|
17870
17870
|
return t;
|
|
@@ -18288,7 +18288,7 @@ function DD(t, e, n) {
|
|
|
18288
18288
|
const a = t.x.scale * e.x, l = t.y.scale * e.y;
|
|
18289
18289
|
return (a !== 1 || l !== 1) && (r += `scale(${a}, ${l})`), r || "none";
|
|
18290
18290
|
}
|
|
18291
|
-
const KE = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], ND = KE.length, Qb = (t) => typeof t == "string" ? parseFloat(t) : t, ew = (t) => typeof t == "number" ||
|
|
18291
|
+
const KE = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], ND = KE.length, Qb = (t) => typeof t == "string" ? parseFloat(t) : t, ew = (t) => typeof t == "number" || Ct.test(t);
|
|
18292
18292
|
function LD(t, e, n, r, i, o) {
|
|
18293
18293
|
i ? (t.opacity = zn(0, n.opacity ?? 1, PD(r)), t.opacityExit = zn(e.opacity ?? 1, 0, BD(r))) : o && (t.opacity = zn(e.opacity ?? 1, n.opacity ?? 1, r));
|
|
18294
18294
|
for (let s = 0; s < ND; s++) {
|
|
@@ -19073,7 +19073,7 @@ class c8 extends R.Component {
|
|
|
19073
19073
|
}
|
|
19074
19074
|
function u8({ children: t, isPresent: e, anchorX: n, anchorY: r, root: i, pop: o }) {
|
|
19075
19075
|
var f;
|
|
19076
|
-
const s = s0(), a =
|
|
19076
|
+
const s = s0(), a = Jt(null), l = Jt({
|
|
19077
19077
|
width: 0,
|
|
19078
19078
|
height: 0,
|
|
19079
19079
|
top: 0,
|
|
@@ -19149,7 +19149,7 @@ function dw(t) {
|
|
|
19149
19149
|
}), e;
|
|
19150
19150
|
}
|
|
19151
19151
|
const ef = ({ children: t, custom: e, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: o = "sync", propagate: s = !1, anchorX: a = "left", anchorY: l = "top", root: c }) => {
|
|
19152
|
-
const [u, d] = QE(s), f = vi(() => dw(t), [t]), h = s && !u ? [] : f.map(Hu), m =
|
|
19152
|
+
const [u, d] = QE(s), f = vi(() => dw(t), [t]), h = s && !u ? [] : f.map(Hu), m = Jt(!0), p = Jt(f), y = ks(() => /* @__PURE__ */ new Map()), w = Jt(/* @__PURE__ */ new Set()), [k, A] = Kt(f), [C, O] = Kt(f);
|
|
19153
19153
|
hh(() => {
|
|
19154
19154
|
m.current = !1, p.current = f;
|
|
19155
19155
|
for (let J = 0; J < C.length; J++) {
|
|
@@ -19440,11 +19440,11 @@ const oS = (t) => (e, n) => {
|
|
|
19440
19440
|
createRenderState: iS
|
|
19441
19441
|
}), I8 = Symbol.for("motionComponentSymbol");
|
|
19442
19442
|
function O8(t, e, n) {
|
|
19443
|
-
const r =
|
|
19443
|
+
const r = Jt(n);
|
|
19444
19444
|
Zf(() => {
|
|
19445
19445
|
r.current = n;
|
|
19446
19446
|
});
|
|
19447
|
-
const i =
|
|
19447
|
+
const i = Jt(null);
|
|
19448
19448
|
return ar((o) => {
|
|
19449
19449
|
var a;
|
|
19450
19450
|
o && ((a = t.onMount) == null || a.call(t, o));
|
|
@@ -19466,7 +19466,7 @@ function Wa(t) {
|
|
|
19466
19466
|
}
|
|
19467
19467
|
function _8(t, e, n, r, i, o) {
|
|
19468
19468
|
var A, C;
|
|
19469
|
-
const { visualElement: s } = Kn(vh), a = Kn(eS), l = Kn(ph), c = Kn(mu), u = c.reducedMotion, d = c.skipAnimations, f =
|
|
19469
|
+
const { visualElement: s } = Kn(vh), a = Kn(eS), l = Kn(ph), c = Kn(mu), u = c.reducedMotion, d = c.skipAnimations, f = Jt(null), h = Jt(!1);
|
|
19470
19470
|
r = r || a.renderer, !f.current && r && (f.current = r(t, {
|
|
19471
19471
|
visualState: e,
|
|
19472
19472
|
parent: s,
|
|
@@ -19479,11 +19479,11 @@ function _8(t, e, n, r, i, o) {
|
|
|
19479
19479
|
}), h.current && f.current && (f.current.manuallyAnimateOnMount = !0));
|
|
19480
19480
|
const m = f.current, p = Kn(sS);
|
|
19481
19481
|
m && !m.projection && i && (m.type === "html" || m.type === "svg") && D8(f.current, n, i, p);
|
|
19482
|
-
const y =
|
|
19482
|
+
const y = Jt(!1);
|
|
19483
19483
|
Zf(() => {
|
|
19484
19484
|
m && y.current && m.update(n, l);
|
|
19485
19485
|
});
|
|
19486
|
-
const w = n[hE], k =
|
|
19486
|
+
const w = n[hE], k = Jt(!!w && typeof window < "u" && !((A = window.MotionHandoffIsComplete) != null && A.call(window, w)) && ((C = window.MotionHasOptimisedAnimation) == null ? void 0 : C.call(window, w)));
|
|
19487
19487
|
return hh(() => {
|
|
19488
19488
|
h.current = !0, m && (y.current = !0, window.MotionIsMounted = !0, m.updateFeatures(), m.scheduleRenderMicrotask(), k.current && m.animationState && m.animationState.animateChanges());
|
|
19489
19489
|
}), un(() => {
|
|
@@ -20351,7 +20351,7 @@ const yN = {
|
|
|
20351
20351
|
function Xc(t) {
|
|
20352
20352
|
const e = ks(() => ba(t)), { isStatic: n } = Kn(mu);
|
|
20353
20353
|
if (n) {
|
|
20354
|
-
const [, r] =
|
|
20354
|
+
const [, r] = Kt(t);
|
|
20355
20355
|
un(() => e.on("change", r), []);
|
|
20356
20356
|
}
|
|
20357
20357
|
return e;
|
|
@@ -21103,7 +21103,7 @@ const QN = Fn.create({
|
|
|
21103
21103
|
storage: t.storage
|
|
21104
21104
|
};
|
|
21105
21105
|
return {
|
|
21106
|
-
allowGapCursor: (e =
|
|
21106
|
+
allowGapCursor: (e = $t(kt(t, "allowGapCursor", n))) !== null && e !== void 0 ? e : null
|
|
21107
21107
|
};
|
|
21108
21108
|
}
|
|
21109
21109
|
}), eL = jn.create({
|
|
@@ -24231,7 +24231,7 @@ const qu = ({ editor: t }) => {
|
|
|
24231
24231
|
storage: t.storage
|
|
24232
24232
|
};
|
|
24233
24233
|
return {
|
|
24234
|
-
tableRole:
|
|
24234
|
+
tableRole: $t(kt(t, "tableRole", e))
|
|
24235
24235
|
};
|
|
24236
24236
|
}
|
|
24237
24237
|
}), m9 = p9.extend({
|
|
@@ -24401,7 +24401,7 @@ $r.prototype = {
|
|
|
24401
24401
|
return i.j[t] = s, s;
|
|
24402
24402
|
}
|
|
24403
24403
|
};
|
|
24404
|
-
const
|
|
24404
|
+
const Xt = (t, e, n, r, i) => t.ta(e, n, r, i), $n = (t, e, n, r, i) => t.tr(e, n, r, i), Gw = (t, e, n, r, i) => t.ts(e, n, r, i), qe = (t, e, n, r, i) => t.tt(e, n, r, i), Ao = "WORD", Pg = "UWORD", IS = "ASCIINUMERICAL", OS = "ALPHANUMERICAL", Jc = "LOCALHOST", Bg = "TLD", Fg = "UTLD", Sd = "SCHEME", Ua = "SLASH_SCHEME", v1 = "NUM", Vg = "WS", b1 = "NL", wc = "OPENBRACE", xc = "CLOSEBRACE", rf = "OPENBRACKET", of = "CLOSEBRACKET", sf = "OPENPAREN", af = "CLOSEPAREN", lf = "OPENANGLEBRACKET", cf = "CLOSEANGLEBRACKET", uf = "FULLWIDTHLEFTPAREN", df = "FULLWIDTHRIGHTPAREN", ff = "LEFTCORNERBRACKET", hf = "RIGHTCORNERBRACKET", pf = "LEFTWHITECORNERBRACKET", mf = "RIGHTWHITECORNERBRACKET", gf = "FULLWIDTHLESSTHAN", yf = "FULLWIDTHGREATERTHAN", vf = "AMPERSAND", bf = "APOSTROPHE", wf = "ASTERISK", rs = "AT", xf = "BACKSLASH", Cf = "BACKTICK", kf = "CARET", as = "COLON", w1 = "COMMA", Ef = "DOLLAR", Yi = "DOT", Sf = "EQUALS", x1 = "EXCLAMATION", gi = "HYPHEN", Cc = "PERCENT", Af = "PIPE", Tf = "PLUS", Rf = "POUND", kc = "QUERY", C1 = "QUOTE", _S = "FULLWIDTHMIDDLEDOT", k1 = "SEMI", Zi = "SLASH", Ec = "TILDE", Mf = "UNDERSCORE", DS = "EMOJI", If = "SYM";
|
|
24405
24405
|
var NS = /* @__PURE__ */ Object.freeze({
|
|
24406
24406
|
__proto__: null,
|
|
24407
24407
|
ALPHANUMERICAL: OS,
|
|
@@ -24824,33 +24824,33 @@ function T9({
|
|
|
24824
24824
|
groups: t
|
|
24825
24825
|
}) {
|
|
24826
24826
|
const e = t.domain.concat([vf, wf, rs, xf, Cf, kf, Ef, Sf, gi, v1, Cc, Af, Tf, Rf, Zi, If, Ec, Mf]), n = [bf, as, w1, Yi, x1, Cc, kc, C1, k1, lf, cf, wc, xc, of, rf, sf, af, uf, df, ff, hf, pf, mf, gf, yf], r = [vf, bf, wf, xf, Cf, kf, Ef, Sf, gi, wc, xc, Cc, Af, Tf, Rf, kc, Zi, If, Ec, Mf], i = mi(), o = qe(i, Ec);
|
|
24827
|
-
|
|
24827
|
+
Xt(o, r, o), Xt(o, t.domain, o);
|
|
24828
24828
|
const s = mi(), a = mi(), l = mi();
|
|
24829
|
-
|
|
24829
|
+
Xt(i, t.domain, s), Xt(i, t.scheme, a), Xt(i, t.slashscheme, l), Xt(s, r, o), Xt(s, t.domain, s);
|
|
24830
24830
|
const c = qe(s, rs);
|
|
24831
24831
|
qe(o, rs, c), qe(a, rs, c), qe(l, rs, c);
|
|
24832
24832
|
const u = qe(o, Yi);
|
|
24833
|
-
|
|
24833
|
+
Xt(u, r, o), Xt(u, t.domain, o);
|
|
24834
24834
|
const d = mi();
|
|
24835
|
-
|
|
24835
|
+
Xt(c, t.domain, d), Xt(d, t.domain, d);
|
|
24836
24836
|
const f = qe(d, Yi);
|
|
24837
|
-
|
|
24837
|
+
Xt(f, t.domain, d);
|
|
24838
24838
|
const h = mi(Yw);
|
|
24839
|
-
|
|
24839
|
+
Xt(f, t.tld, h), Xt(f, t.utld, h), qe(c, Jc, h);
|
|
24840
24840
|
const m = qe(d, gi);
|
|
24841
|
-
qe(m, gi, m),
|
|
24841
|
+
qe(m, gi, m), Xt(m, t.domain, d), Xt(h, t.domain, d), qe(h, Yi, f), qe(h, gi, m);
|
|
24842
24842
|
const p = qe(h, as);
|
|
24843
|
-
|
|
24843
|
+
Xt(p, t.numeric, Yw);
|
|
24844
24844
|
const y = qe(s, gi), w = qe(s, Yi);
|
|
24845
|
-
qe(y, gi, y),
|
|
24845
|
+
qe(y, gi, y), Xt(y, t.domain, s), Xt(w, r, o), Xt(w, t.domain, s);
|
|
24846
24846
|
const k = mi(Zu);
|
|
24847
|
-
|
|
24847
|
+
Xt(w, t.tld, k), Xt(w, t.utld, k), Xt(k, t.domain, s), Xt(k, r, o), qe(k, Yi, w), qe(k, gi, y), qe(k, rs, c);
|
|
24848
24848
|
const A = qe(k, as), C = mi(Zu);
|
|
24849
|
-
|
|
24849
|
+
Xt(A, t.numeric, C);
|
|
24850
24850
|
const O = mi(Zu), L = mi();
|
|
24851
|
-
|
|
24851
|
+
Xt(O, e, O), Xt(O, n, L), Xt(L, e, O), Xt(L, n, L), qe(k, Zi, O), qe(C, Zi, O);
|
|
24852
24852
|
const F = qe(a, as), J = qe(l, as), G = qe(J, Zi), Y = qe(G, Zi);
|
|
24853
|
-
|
|
24853
|
+
Xt(a, t.domain, s), qe(a, Yi, w), qe(a, gi, y), Xt(l, t.domain, s), qe(l, Yi, w), qe(l, gi, y), Xt(F, t.domain, O), qe(F, Zi, O), qe(F, kc, O), Xt(Y, t.domain, O), Xt(Y, e, O), qe(Y, Zi, O);
|
|
24854
24854
|
const U = [
|
|
24855
24855
|
[wc, xc],
|
|
24856
24856
|
// {}
|
|
@@ -24873,9 +24873,9 @@ function T9({
|
|
|
24873
24873
|
const [P, x] = U[_], M = qe(O, P);
|
|
24874
24874
|
qe(L, P, M), qe(M, x, O);
|
|
24875
24875
|
const j = mi(Zu);
|
|
24876
|
-
|
|
24876
|
+
Xt(M, e, j);
|
|
24877
24877
|
const V = mi();
|
|
24878
|
-
|
|
24878
|
+
Xt(M, n), Xt(j, e, j), Xt(j, n, V), Xt(V, e, j), Xt(V, n, V), qe(j, x, O), qe(V, x, O);
|
|
24879
24879
|
}
|
|
24880
24880
|
return qe(i, Jc, k), qe(i, b1, A9), {
|
|
24881
24881
|
start: i,
|
|
@@ -25403,8 +25403,8 @@ const G9 = () => new Promise((t, e) => {
|
|
|
25403
25403
|
return n ? n[1] : null;
|
|
25404
25404
|
};
|
|
25405
25405
|
function q9({ node: t, selected: e }) {
|
|
25406
|
-
const { src: n, postId: r, width: i = 400 } = t.attrs, o = r || K9(n), [s, a] =
|
|
25407
|
-
|
|
25406
|
+
const { src: n, postId: r, width: i = 400 } = t.attrs, o = r || K9(n), [s, a] = Kt(!0), [l, c] = Kt(!1), u = Jt(null);
|
|
25407
|
+
Jt(null);
|
|
25408
25408
|
const d = o ? `https://www.instagram.com/p/${o}/` : "";
|
|
25409
25409
|
return un(() => {
|
|
25410
25410
|
if (!o) {
|
|
@@ -25598,7 +25598,7 @@ const X9 = () => new Promise((t, e) => {
|
|
|
25598
25598
|
return n ? n[1] : null;
|
|
25599
25599
|
};
|
|
25600
25600
|
function J9({ node: t, selected: e }) {
|
|
25601
|
-
const { tweetId: n, username: r, width: i = 550, src: o } = t.attrs, s = n || Y9(o), a = r || Z9(o) || "user", [l, c] =
|
|
25601
|
+
const { tweetId: n, username: r, width: i = 550, src: o } = t.attrs, s = n || Y9(o), a = r || Z9(o) || "user", [l, c] = Kt(!0), [u, d] = Kt(!1), f = Jt(null), h = s ? `https://twitter.com/${a}/status/${s}` : "";
|
|
25602
25602
|
return un(() => {
|
|
25603
25603
|
if (!s) {
|
|
25604
25604
|
d(!0), c(!1);
|
|
@@ -27377,7 +27377,7 @@ const GB = (t, e, n) => Math.min(Math.max(t, e), n), KB = (t) => typeof t == "nu
|
|
|
27377
27377
|
BOTTOM_RIGHT: "br"
|
|
27378
27378
|
}, YB = bx(
|
|
27379
27379
|
({ src: t, alt: e, style: n, onClick: r, onLoad: i }) => {
|
|
27380
|
-
const o =
|
|
27380
|
+
const o = Jt(null);
|
|
27381
27381
|
return un(() => {
|
|
27382
27382
|
o.current && Object.assign(o.current.style, n);
|
|
27383
27383
|
}, [n]), /* @__PURE__ */ E(
|
|
@@ -27400,18 +27400,18 @@ const GB = (t, e, n) => Math.min(Math.max(t, e), n), KB = (t) => typeof t == "nu
|
|
|
27400
27400
|
}
|
|
27401
27401
|
), ZB = (t) => {
|
|
27402
27402
|
var X, W;
|
|
27403
|
-
const { node: e, updateAttributes: n, deleteNode: r, selected: i, editor: o, getPos: s } = t, [a, l] =
|
|
27403
|
+
const { node: e, updateAttributes: n, deleteNode: r, selected: i, editor: o, getPos: s } = t, [a, l] = Kt({
|
|
27404
27404
|
width: o2,
|
|
27405
27405
|
height: o2
|
|
27406
|
-
}), [c, u] =
|
|
27406
|
+
}), [c, u] = Kt({
|
|
27407
27407
|
width: 0,
|
|
27408
27408
|
height: 0
|
|
27409
|
-
}), [d] =
|
|
27409
|
+
}), [d] = Kt([
|
|
27410
27410
|
Qu.TOP_LEFT,
|
|
27411
27411
|
Qu.TOP_RIGHT,
|
|
27412
27412
|
Qu.BOTTOM_LEFT,
|
|
27413
27413
|
Qu.BOTTOM_RIGHT
|
|
27414
|
-
]), [f, h] =
|
|
27414
|
+
]), [f, h] = Kt(!1), [m, p] = Kt({
|
|
27415
27415
|
x: 0,
|
|
27416
27416
|
y: 0,
|
|
27417
27417
|
w: 0,
|
|
@@ -27419,9 +27419,9 @@ const GB = (t, e, n) => Math.min(Math.max(t, e), n), KB = (t) => typeof t == "nu
|
|
|
27419
27419
|
dir: ""
|
|
27420
27420
|
}), { src: y, alt: w, width: k, height: A, dataAlign: C, pendingDelete: O, pendingInsert: L, caption: F } = e.attrs;
|
|
27421
27421
|
(L || O) && console.log("🖼️ [ResizableImageNode] Pending image:", { pendingInsert: L, pendingDelete: O, dataAlign: C, align: C || "center", width: k });
|
|
27422
|
-
const J =
|
|
27422
|
+
const J = Jt(y || "");
|
|
27423
27423
|
y && y !== J.current && (J.current = y);
|
|
27424
|
-
const [G, Y] =
|
|
27424
|
+
const [G, Y] = Kt(!1), [U, _] = Kt(F || ""), P = Jt(null);
|
|
27425
27425
|
un(() => {
|
|
27426
27426
|
G || _(F || "");
|
|
27427
27427
|
}, [F, G]);
|
|
@@ -31392,7 +31392,7 @@ function sz(t, e) {
|
|
|
31392
31392
|
});
|
|
31393
31393
|
if (b || S) {
|
|
31394
31394
|
var Se, pe;
|
|
31395
|
-
const
|
|
31395
|
+
const Yt = ((Se = Ze.context) == null ? void 0 : Se.elements.domReference) === be.currentTarget, Lt = S && !Yt ? (pe = Ze.context) == null ? void 0 : pe.elements.domReference : b ? s.current.find((te) => (te == null ? void 0 : te.id) === Me) : null;
|
|
31396
31396
|
Lt && (br(be), Lt.dispatchEvent(dt), Le(void 0));
|
|
31397
31397
|
}
|
|
31398
31398
|
if ((le || _e) && Ze.context && Ze.context.open && Ze.parentId && be.currentTarget !== Ze.context.elements.domReference) {
|
|
@@ -31702,7 +31702,7 @@ const hz = {
|
|
|
31702
31702
|
n > 0 && /* @__PURE__ */ E("kbd", { children: "+" }),
|
|
31703
31703
|
/* @__PURE__ */ E("kbd", { children: e })
|
|
31704
31704
|
] }, n)) });
|
|
31705
|
-
function
|
|
31705
|
+
function Vt({
|
|
31706
31706
|
className: t = "",
|
|
31707
31707
|
children: e,
|
|
31708
31708
|
tooltip: n,
|
|
@@ -33228,7 +33228,7 @@ function Gz({
|
|
|
33228
33228
|
hideWhenUnavailable: r,
|
|
33229
33229
|
headingInSchema: d
|
|
33230
33230
|
}), [u, e, r, d]) || !u || !u.isEditable ? null : /* @__PURE__ */ E(
|
|
33231
|
-
|
|
33231
|
+
Vt,
|
|
33232
33232
|
{
|
|
33233
33233
|
type: "button",
|
|
33234
33234
|
className: i.trim(),
|
|
@@ -33281,7 +33281,7 @@ function Kz({
|
|
|
33281
33281
|
) : !1, [l, e]), h = !f(), m = (l == null ? void 0 : l.isActive("heading")) ?? !1, p = (l == null ? void 0 : l.isActive("paragraph")) ?? !1, y = m || r && p;
|
|
33282
33282
|
return !R.useMemo(() => !(!c || !l || n && (fo(l.state.selection) || !f())), [c, l, n, f]) || !l || !l.isEditable ? null : /* @__PURE__ */ fe(Fo, { open: s, onOpenChange: u, children: [
|
|
33283
33283
|
/* @__PURE__ */ E(Vo, { asChild: !0, children: /* @__PURE__ */ fe(
|
|
33284
|
-
|
|
33284
|
+
Vt,
|
|
33285
33285
|
{
|
|
33286
33286
|
type: "button",
|
|
33287
33287
|
disabled: h,
|
|
@@ -33302,7 +33302,7 @@ function Kz({
|
|
|
33302
33302
|
) }),
|
|
33303
33303
|
/* @__PURE__ */ E(zo, { children: /* @__PURE__ */ fe(Sa, { children: [
|
|
33304
33304
|
r && /* @__PURE__ */ E(ni, { asChild: !0, children: /* @__PURE__ */ fe(
|
|
33305
|
-
|
|
33305
|
+
Vt,
|
|
33306
33306
|
{
|
|
33307
33307
|
type: "button",
|
|
33308
33308
|
"data-style": "ghost",
|
|
@@ -33968,7 +33968,7 @@ function hm(t, e) {
|
|
|
33968
33968
|
return typeof t == "function" ? t(e) : t && (t.current = e), t;
|
|
33969
33969
|
}
|
|
33970
33970
|
function NH(t, e) {
|
|
33971
|
-
var n =
|
|
33971
|
+
var n = Kt(function() {
|
|
33972
33972
|
return {
|
|
33973
33973
|
// value
|
|
33974
33974
|
value: t,
|
|
@@ -34978,7 +34978,7 @@ function Qj(t, ...e) {
|
|
|
34978
34978
|
const Pn = (t) => {
|
|
34979
34979
|
const e = (n) => n[t] || [];
|
|
34980
34980
|
return e.isThemeGetter = !0, e;
|
|
34981
|
-
}, wT = /^\[(?:([a-z-]+):)?(.+)\]$/i, e$ = /^\d+\/\d+$/, t$ = /* @__PURE__ */ new Set(["px", "full", "screen"]), n$ = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, r$ = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, i$ = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, o$ = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, s$ = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ko = (t) => ul(t) || t$.has(t) || e$.test(t), Xo = (t) => Ol(t, "length", p$), ul = (t) => !!t && !Number.isNaN(Number(t)), ym = (t) => Ol(t, "number", ul), ql = (t) => !!t && Number.isInteger(Number(t)), a$ = (t) => t.endsWith("%") && ul(t.slice(0, -1)),
|
|
34981
|
+
}, wT = /^\[(?:([a-z-]+):)?(.+)\]$/i, e$ = /^\d+\/\d+$/, t$ = /* @__PURE__ */ new Set(["px", "full", "screen"]), n$ = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, r$ = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, i$ = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, o$ = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, s$ = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ko = (t) => ul(t) || t$.has(t) || e$.test(t), Xo = (t) => Ol(t, "length", p$), ul = (t) => !!t && !Number.isNaN(Number(t)), ym = (t) => Ol(t, "number", ul), ql = (t) => !!t && Number.isInteger(Number(t)), a$ = (t) => t.endsWith("%") && ul(t.slice(0, -1)), Ut = (t) => wT.test(t), Yo = (t) => n$.test(t), l$ = /* @__PURE__ */ new Set(["length", "size", "percentage"]), c$ = (t) => Ol(t, l$, xT), u$ = (t) => Ol(t, "position", xT), d$ = /* @__PURE__ */ new Set(["image", "url"]), f$ = (t) => Ol(t, d$, g$), h$ = (t) => Ol(t, "", m$), Xl = () => !0, Ol = (t, e, n) => {
|
|
34982
34982
|
const r = wT.exec(t);
|
|
34983
34983
|
return r ? r[1] ? typeof e == "string" ? r[1] === e : e.has(r[1]) : n(r[2]) : !1;
|
|
34984
34984
|
}, p$ = (t) => (
|
|
@@ -34987,17 +34987,17 @@ const Pn = (t) => {
|
|
|
34987
34987
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
34988
34988
|
r$.test(t) && !i$.test(t)
|
|
34989
34989
|
), xT = () => !1, m$ = (t) => o$.test(t), g$ = (t) => s$.test(t), y$ = () => {
|
|
34990
|
-
const t = Pn("colors"), e = Pn("spacing"), n = Pn("blur"), r = Pn("brightness"), i = Pn("borderColor"), o = Pn("borderRadius"), s = Pn("borderSpacing"), a = Pn("borderWidth"), l = Pn("contrast"), c = Pn("grayscale"), u = Pn("hueRotate"), d = Pn("invert"), f = Pn("gap"), h = Pn("gradientColorStops"), m = Pn("gradientColorStopPositions"), p = Pn("inset"), y = Pn("margin"), w = Pn("opacity"), k = Pn("padding"), A = Pn("saturate"), C = Pn("scale"), O = Pn("sepia"), L = Pn("skew"), F = Pn("space"), J = Pn("translate"), G = () => ["auto", "contain", "none"], Y = () => ["auto", "hidden", "clip", "visible", "scroll"], U = () => ["auto",
|
|
34990
|
+
const t = Pn("colors"), e = Pn("spacing"), n = Pn("blur"), r = Pn("brightness"), i = Pn("borderColor"), o = Pn("borderRadius"), s = Pn("borderSpacing"), a = Pn("borderWidth"), l = Pn("contrast"), c = Pn("grayscale"), u = Pn("hueRotate"), d = Pn("invert"), f = Pn("gap"), h = Pn("gradientColorStops"), m = Pn("gradientColorStopPositions"), p = Pn("inset"), y = Pn("margin"), w = Pn("opacity"), k = Pn("padding"), A = Pn("saturate"), C = Pn("scale"), O = Pn("sepia"), L = Pn("skew"), F = Pn("space"), J = Pn("translate"), G = () => ["auto", "contain", "none"], Y = () => ["auto", "hidden", "clip", "visible", "scroll"], U = () => ["auto", Ut, e], _ = () => [Ut, e], P = () => ["", ko, Xo], x = () => ["auto", ul, Ut], M = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], j = () => ["solid", "dashed", "dotted", "double", "none"], V = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], B = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], H = () => ["", "0", Ut], Z = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], z = () => [ul, Ut];
|
|
34991
34991
|
return {
|
|
34992
34992
|
cacheSize: 500,
|
|
34993
34993
|
separator: ":",
|
|
34994
34994
|
theme: {
|
|
34995
34995
|
colors: [Xl],
|
|
34996
34996
|
spacing: [ko, Xo],
|
|
34997
|
-
blur: ["none", "", Yo,
|
|
34997
|
+
blur: ["none", "", Yo, Ut],
|
|
34998
34998
|
brightness: z(),
|
|
34999
34999
|
borderColor: [t],
|
|
35000
|
-
borderRadius: ["none", "", "full", Yo,
|
|
35000
|
+
borderRadius: ["none", "", "full", Yo, Ut],
|
|
35001
35001
|
borderSpacing: _(),
|
|
35002
35002
|
borderWidth: P(),
|
|
35003
35003
|
contrast: z(),
|
|
@@ -35025,7 +35025,7 @@ const Pn = (t) => {
|
|
|
35025
35025
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
35026
35026
|
*/
|
|
35027
35027
|
aspect: [{
|
|
35028
|
-
aspect: ["auto", "square", "video",
|
|
35028
|
+
aspect: ["auto", "square", "video", Ut]
|
|
35029
35029
|
}],
|
|
35030
35030
|
/**
|
|
35031
35031
|
* Container
|
|
@@ -35110,7 +35110,7 @@ const Pn = (t) => {
|
|
|
35110
35110
|
* @see https://tailwindcss.com/docs/object-position
|
|
35111
35111
|
*/
|
|
35112
35112
|
"object-position": [{
|
|
35113
|
-
object: [...M(),
|
|
35113
|
+
object: [...M(), Ut]
|
|
35114
35114
|
}],
|
|
35115
35115
|
/**
|
|
35116
35116
|
* Overflow
|
|
@@ -35232,7 +35232,7 @@ const Pn = (t) => {
|
|
|
35232
35232
|
* @see https://tailwindcss.com/docs/z-index
|
|
35233
35233
|
*/
|
|
35234
35234
|
z: [{
|
|
35235
|
-
z: ["auto", ql,
|
|
35235
|
+
z: ["auto", ql, Ut]
|
|
35236
35236
|
}],
|
|
35237
35237
|
// Flexbox and Grid
|
|
35238
35238
|
/**
|
|
@@ -35261,7 +35261,7 @@ const Pn = (t) => {
|
|
|
35261
35261
|
* @see https://tailwindcss.com/docs/flex
|
|
35262
35262
|
*/
|
|
35263
35263
|
flex: [{
|
|
35264
|
-
flex: ["1", "auto", "initial", "none",
|
|
35264
|
+
flex: ["1", "auto", "initial", "none", Ut]
|
|
35265
35265
|
}],
|
|
35266
35266
|
/**
|
|
35267
35267
|
* Flex Grow
|
|
@@ -35282,7 +35282,7 @@ const Pn = (t) => {
|
|
|
35282
35282
|
* @see https://tailwindcss.com/docs/order
|
|
35283
35283
|
*/
|
|
35284
35284
|
order: [{
|
|
35285
|
-
order: ["first", "last", "none", ql,
|
|
35285
|
+
order: ["first", "last", "none", ql, Ut]
|
|
35286
35286
|
}],
|
|
35287
35287
|
/**
|
|
35288
35288
|
* Grid Template Columns
|
|
@@ -35297,8 +35297,8 @@ const Pn = (t) => {
|
|
|
35297
35297
|
*/
|
|
35298
35298
|
"col-start-end": [{
|
|
35299
35299
|
col: ["auto", {
|
|
35300
|
-
span: ["full", ql,
|
|
35301
|
-
},
|
|
35300
|
+
span: ["full", ql, Ut]
|
|
35301
|
+
}, Ut]
|
|
35302
35302
|
}],
|
|
35303
35303
|
/**
|
|
35304
35304
|
* Grid Column Start
|
|
@@ -35327,8 +35327,8 @@ const Pn = (t) => {
|
|
|
35327
35327
|
*/
|
|
35328
35328
|
"row-start-end": [{
|
|
35329
35329
|
row: ["auto", {
|
|
35330
|
-
span: [ql,
|
|
35331
|
-
},
|
|
35330
|
+
span: [ql, Ut]
|
|
35331
|
+
}, Ut]
|
|
35332
35332
|
}],
|
|
35333
35333
|
/**
|
|
35334
35334
|
* Grid Row Start
|
|
@@ -35356,14 +35356,14 @@ const Pn = (t) => {
|
|
|
35356
35356
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
35357
35357
|
*/
|
|
35358
35358
|
"auto-cols": [{
|
|
35359
|
-
"auto-cols": ["auto", "min", "max", "fr",
|
|
35359
|
+
"auto-cols": ["auto", "min", "max", "fr", Ut]
|
|
35360
35360
|
}],
|
|
35361
35361
|
/**
|
|
35362
35362
|
* Grid Auto Rows
|
|
35363
35363
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
35364
35364
|
*/
|
|
35365
35365
|
"auto-rows": [{
|
|
35366
|
-
"auto-rows": ["auto", "min", "max", "fr",
|
|
35366
|
+
"auto-rows": ["auto", "min", "max", "fr", Ut]
|
|
35367
35367
|
}],
|
|
35368
35368
|
/**
|
|
35369
35369
|
* Gap
|
|
@@ -35606,21 +35606,21 @@ const Pn = (t) => {
|
|
|
35606
35606
|
* @see https://tailwindcss.com/docs/width
|
|
35607
35607
|
*/
|
|
35608
35608
|
w: [{
|
|
35609
|
-
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw",
|
|
35609
|
+
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", Ut, e]
|
|
35610
35610
|
}],
|
|
35611
35611
|
/**
|
|
35612
35612
|
* Min-Width
|
|
35613
35613
|
* @see https://tailwindcss.com/docs/min-width
|
|
35614
35614
|
*/
|
|
35615
35615
|
"min-w": [{
|
|
35616
|
-
"min-w": [
|
|
35616
|
+
"min-w": [Ut, e, "min", "max", "fit"]
|
|
35617
35617
|
}],
|
|
35618
35618
|
/**
|
|
35619
35619
|
* Max-Width
|
|
35620
35620
|
* @see https://tailwindcss.com/docs/max-width
|
|
35621
35621
|
*/
|
|
35622
35622
|
"max-w": [{
|
|
35623
|
-
"max-w": [
|
|
35623
|
+
"max-w": [Ut, e, "none", "full", "min", "max", "fit", "prose", {
|
|
35624
35624
|
screen: [Yo]
|
|
35625
35625
|
}, Yo]
|
|
35626
35626
|
}],
|
|
@@ -35629,28 +35629,28 @@ const Pn = (t) => {
|
|
|
35629
35629
|
* @see https://tailwindcss.com/docs/height
|
|
35630
35630
|
*/
|
|
35631
35631
|
h: [{
|
|
35632
|
-
h: [
|
|
35632
|
+
h: [Ut, e, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
35633
35633
|
}],
|
|
35634
35634
|
/**
|
|
35635
35635
|
* Min-Height
|
|
35636
35636
|
* @see https://tailwindcss.com/docs/min-height
|
|
35637
35637
|
*/
|
|
35638
35638
|
"min-h": [{
|
|
35639
|
-
"min-h": [
|
|
35639
|
+
"min-h": [Ut, e, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
35640
35640
|
}],
|
|
35641
35641
|
/**
|
|
35642
35642
|
* Max-Height
|
|
35643
35643
|
* @see https://tailwindcss.com/docs/max-height
|
|
35644
35644
|
*/
|
|
35645
35645
|
"max-h": [{
|
|
35646
|
-
"max-h": [
|
|
35646
|
+
"max-h": [Ut, e, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
35647
35647
|
}],
|
|
35648
35648
|
/**
|
|
35649
35649
|
* Size
|
|
35650
35650
|
* @see https://tailwindcss.com/docs/size
|
|
35651
35651
|
*/
|
|
35652
35652
|
size: [{
|
|
35653
|
-
size: [
|
|
35653
|
+
size: [Ut, e, "auto", "min", "max", "fit"]
|
|
35654
35654
|
}],
|
|
35655
35655
|
// Typography
|
|
35656
35656
|
/**
|
|
@@ -35719,7 +35719,7 @@ const Pn = (t) => {
|
|
|
35719
35719
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
35720
35720
|
*/
|
|
35721
35721
|
tracking: [{
|
|
35722
|
-
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest",
|
|
35722
|
+
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", Ut]
|
|
35723
35723
|
}],
|
|
35724
35724
|
/**
|
|
35725
35725
|
* Line Clamp
|
|
@@ -35733,21 +35733,21 @@ const Pn = (t) => {
|
|
|
35733
35733
|
* @see https://tailwindcss.com/docs/line-height
|
|
35734
35734
|
*/
|
|
35735
35735
|
leading: [{
|
|
35736
|
-
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", ko,
|
|
35736
|
+
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", ko, Ut]
|
|
35737
35737
|
}],
|
|
35738
35738
|
/**
|
|
35739
35739
|
* List Style Image
|
|
35740
35740
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
35741
35741
|
*/
|
|
35742
35742
|
"list-image": [{
|
|
35743
|
-
"list-image": ["none",
|
|
35743
|
+
"list-image": ["none", Ut]
|
|
35744
35744
|
}],
|
|
35745
35745
|
/**
|
|
35746
35746
|
* List Style Type
|
|
35747
35747
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
35748
35748
|
*/
|
|
35749
35749
|
"list-style-type": [{
|
|
35750
|
-
list: ["none", "disc", "decimal",
|
|
35750
|
+
list: ["none", "disc", "decimal", Ut]
|
|
35751
35751
|
}],
|
|
35752
35752
|
/**
|
|
35753
35753
|
* List Style Position
|
|
@@ -35816,7 +35816,7 @@ const Pn = (t) => {
|
|
|
35816
35816
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
35817
35817
|
*/
|
|
35818
35818
|
"underline-offset": [{
|
|
35819
|
-
"underline-offset": ["auto", ko,
|
|
35819
|
+
"underline-offset": ["auto", ko, Ut]
|
|
35820
35820
|
}],
|
|
35821
35821
|
/**
|
|
35822
35822
|
* Text Decoration Color
|
|
@@ -35854,7 +35854,7 @@ const Pn = (t) => {
|
|
|
35854
35854
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
35855
35855
|
*/
|
|
35856
35856
|
"vertical-align": [{
|
|
35857
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
35857
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", Ut]
|
|
35858
35858
|
}],
|
|
35859
35859
|
/**
|
|
35860
35860
|
* Whitespace
|
|
@@ -35882,7 +35882,7 @@ const Pn = (t) => {
|
|
|
35882
35882
|
* @see https://tailwindcss.com/docs/content
|
|
35883
35883
|
*/
|
|
35884
35884
|
content: [{
|
|
35885
|
-
content: ["none",
|
|
35885
|
+
content: ["none", Ut]
|
|
35886
35886
|
}],
|
|
35887
35887
|
// Backgrounds
|
|
35888
35888
|
/**
|
|
@@ -36298,7 +36298,7 @@ const Pn = (t) => {
|
|
|
36298
36298
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
36299
36299
|
*/
|
|
36300
36300
|
"outline-offset": [{
|
|
36301
|
-
"outline-offset": [ko,
|
|
36301
|
+
"outline-offset": [ko, Ut]
|
|
36302
36302
|
}],
|
|
36303
36303
|
/**
|
|
36304
36304
|
* Outline Width
|
|
@@ -36425,7 +36425,7 @@ const Pn = (t) => {
|
|
|
36425
36425
|
* @see https://tailwindcss.com/docs/drop-shadow
|
|
36426
36426
|
*/
|
|
36427
36427
|
"drop-shadow": [{
|
|
36428
|
-
"drop-shadow": ["", "none", Yo,
|
|
36428
|
+
"drop-shadow": ["", "none", Yo, Ut]
|
|
36429
36429
|
}],
|
|
36430
36430
|
/**
|
|
36431
36431
|
* Grayscale
|
|
@@ -36582,7 +36582,7 @@ const Pn = (t) => {
|
|
|
36582
36582
|
* @see https://tailwindcss.com/docs/transition-property
|
|
36583
36583
|
*/
|
|
36584
36584
|
transition: [{
|
|
36585
|
-
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform",
|
|
36585
|
+
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", Ut]
|
|
36586
36586
|
}],
|
|
36587
36587
|
/**
|
|
36588
36588
|
* Transition Duration
|
|
@@ -36596,7 +36596,7 @@ const Pn = (t) => {
|
|
|
36596
36596
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
36597
36597
|
*/
|
|
36598
36598
|
ease: [{
|
|
36599
|
-
ease: ["linear", "in", "out", "in-out",
|
|
36599
|
+
ease: ["linear", "in", "out", "in-out", Ut]
|
|
36600
36600
|
}],
|
|
36601
36601
|
/**
|
|
36602
36602
|
* Transition Delay
|
|
@@ -36610,7 +36610,7 @@ const Pn = (t) => {
|
|
|
36610
36610
|
* @see https://tailwindcss.com/docs/animation
|
|
36611
36611
|
*/
|
|
36612
36612
|
animate: [{
|
|
36613
|
-
animate: ["none", "spin", "ping", "pulse", "bounce",
|
|
36613
|
+
animate: ["none", "spin", "ping", "pulse", "bounce", Ut]
|
|
36614
36614
|
}],
|
|
36615
36615
|
// Transforms
|
|
36616
36616
|
/**
|
|
@@ -36646,7 +36646,7 @@ const Pn = (t) => {
|
|
|
36646
36646
|
* @see https://tailwindcss.com/docs/rotate
|
|
36647
36647
|
*/
|
|
36648
36648
|
rotate: [{
|
|
36649
|
-
rotate: [ql,
|
|
36649
|
+
rotate: [ql, Ut]
|
|
36650
36650
|
}],
|
|
36651
36651
|
/**
|
|
36652
36652
|
* Translate X
|
|
@@ -36681,7 +36681,7 @@ const Pn = (t) => {
|
|
|
36681
36681
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
36682
36682
|
*/
|
|
36683
36683
|
"transform-origin": [{
|
|
36684
|
-
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left",
|
|
36684
|
+
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", Ut]
|
|
36685
36685
|
}],
|
|
36686
36686
|
// Interactivity
|
|
36687
36687
|
/**
|
|
@@ -36703,7 +36703,7 @@ const Pn = (t) => {
|
|
|
36703
36703
|
* @see https://tailwindcss.com/docs/cursor
|
|
36704
36704
|
*/
|
|
36705
36705
|
cursor: [{
|
|
36706
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
36706
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", Ut]
|
|
36707
36707
|
}],
|
|
36708
36708
|
/**
|
|
36709
36709
|
* Caret Color
|
|
@@ -36925,7 +36925,7 @@ const Pn = (t) => {
|
|
|
36925
36925
|
* @see https://tailwindcss.com/docs/will-change
|
|
36926
36926
|
*/
|
|
36927
36927
|
"will-change": [{
|
|
36928
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
36928
|
+
"will-change": ["auto", "scroll", "contents", "transform", Ut]
|
|
36929
36929
|
}],
|
|
36930
36930
|
// SVG
|
|
36931
36931
|
/**
|
|
@@ -37217,14 +37217,14 @@ function _$({
|
|
|
37217
37217
|
onUpload: o,
|
|
37218
37218
|
editor: s
|
|
37219
37219
|
}) {
|
|
37220
|
-
const [a, l] =
|
|
37220
|
+
const [a, l] = Kt(null), [c, u] = Kt(r);
|
|
37221
37221
|
un(() => {
|
|
37222
37222
|
u(r);
|
|
37223
37223
|
}, [r]);
|
|
37224
|
-
const [d, f] =
|
|
37224
|
+
const [d, f] = Kt(""), [h, m] = Kt("gallery"), [p, y] = Kt(!1), [w, k] = Kt(!1), [A, C] = Kt(!1), [O, L] = Kt(null), [F, J] = Kt({
|
|
37225
37225
|
file: null,
|
|
37226
37226
|
url: ""
|
|
37227
|
-
}), [G, Y] =
|
|
37227
|
+
}), [G, Y] = Kt({
|
|
37228
37228
|
width: "auto",
|
|
37229
37229
|
height: "auto",
|
|
37230
37230
|
alignment: "center",
|
|
@@ -37554,7 +37554,7 @@ function P$({
|
|
|
37554
37554
|
}, [f]);
|
|
37555
37555
|
return !f || !f.isEditable ? null : /* @__PURE__ */ fe(dr, { children: [
|
|
37556
37556
|
/* @__PURE__ */ E(
|
|
37557
|
-
|
|
37557
|
+
Vt,
|
|
37558
37558
|
{
|
|
37559
37559
|
ref: u,
|
|
37560
37560
|
type: "button",
|
|
@@ -37897,7 +37897,7 @@ function j$({
|
|
|
37897
37897
|
hideWhenUnavailable: n,
|
|
37898
37898
|
listInSchema: u
|
|
37899
37899
|
}), [c, e, n, u]) || !c || !c.isEditable ? null : /* @__PURE__ */ E(
|
|
37900
|
-
|
|
37900
|
+
Vt,
|
|
37901
37901
|
{
|
|
37902
37902
|
type: "button",
|
|
37903
37903
|
className: r.trim(),
|
|
@@ -37990,7 +37990,7 @@ function X$({
|
|
|
37990
37990
|
);
|
|
37991
37991
|
return !h || !o || !o.isEditable ? null : /* @__PURE__ */ fe(Fo, { open: s, onOpenChange: m, children: [
|
|
37992
37992
|
/* @__PURE__ */ E(Vo, { asChild: !0, children: /* @__PURE__ */ fe(
|
|
37993
|
-
|
|
37993
|
+
Vt,
|
|
37994
37994
|
{
|
|
37995
37995
|
type: "button",
|
|
37996
37996
|
"data-style": "ghost",
|
|
@@ -38139,7 +38139,7 @@ function nW({
|
|
|
38139
38139
|
[o, u, h]
|
|
38140
38140
|
);
|
|
38141
38141
|
return !f || !c || !c.isEditable ? null : /* @__PURE__ */ E(
|
|
38142
|
-
|
|
38142
|
+
Vt,
|
|
38143
38143
|
{
|
|
38144
38144
|
type: "button",
|
|
38145
38145
|
className: r.trim(),
|
|
@@ -38275,7 +38275,7 @@ function cW({
|
|
|
38275
38275
|
[o, u, h]
|
|
38276
38276
|
);
|
|
38277
38277
|
return !f || !c || !c.isEditable ? null : /* @__PURE__ */ E(
|
|
38278
|
-
|
|
38278
|
+
Vt,
|
|
38279
38279
|
{
|
|
38280
38280
|
type: "button",
|
|
38281
38281
|
className: r.trim(),
|
|
@@ -38610,7 +38610,7 @@ function dl({
|
|
|
38610
38610
|
hideWhenUnavailable: r,
|
|
38611
38611
|
markInSchema: d
|
|
38612
38612
|
}), [u, e, r, d]) || !u || !u.isEditable ? null : /* @__PURE__ */ E(
|
|
38613
|
-
|
|
38613
|
+
Vt,
|
|
38614
38614
|
{
|
|
38615
38615
|
type: "button",
|
|
38616
38616
|
className: i.trim(),
|
|
@@ -38685,7 +38685,7 @@ function yW({
|
|
|
38685
38685
|
}, d = !R.useCallback(() => s ? s.can().setFontFamily("Arial") : !1, [s])(), f = l(), h = f.value !== "";
|
|
38686
38686
|
return !s || !s.isEditable ? null : /* @__PURE__ */ fe(Fo, { open: i, onOpenChange: a, children: [
|
|
38687
38687
|
/* @__PURE__ */ E(Vo, { asChild: !0, children: /* @__PURE__ */ fe(
|
|
38688
|
-
|
|
38688
|
+
Vt,
|
|
38689
38689
|
{
|
|
38690
38690
|
type: "button",
|
|
38691
38691
|
disabled: d,
|
|
@@ -38713,7 +38713,7 @@ function yW({
|
|
|
38713
38713
|
}
|
|
38714
38714
|
) }),
|
|
38715
38715
|
/* @__PURE__ */ E(zo, { className: "font-family-dropdown-content", children: /* @__PURE__ */ E(Sa, { children: cd.map((m) => /* @__PURE__ */ E(ni, { asChild: !0, children: /* @__PURE__ */ E(
|
|
38716
|
-
|
|
38716
|
+
Vt,
|
|
38717
38717
|
{
|
|
38718
38718
|
type: "button",
|
|
38719
38719
|
"data-style": "ghost",
|
|
@@ -38814,7 +38814,7 @@ function CW({
|
|
|
38814
38814
|
const A = i.isActive("table");
|
|
38815
38815
|
return /* @__PURE__ */ fe(Fo, { open: o, onOpenChange: p, children: [
|
|
38816
38816
|
/* @__PURE__ */ E(Vo, { asChild: !0, children: /* @__PURE__ */ fe(
|
|
38817
|
-
|
|
38817
|
+
Vt,
|
|
38818
38818
|
{
|
|
38819
38819
|
type: "button",
|
|
38820
38820
|
"data-style": "ghost",
|
|
@@ -39142,7 +39142,7 @@ function OW({
|
|
|
39142
39142
|
[s, o, h]
|
|
39143
39143
|
);
|
|
39144
39144
|
return !m || !u || !u.isEditable ? null : /* @__PURE__ */ E(
|
|
39145
|
-
|
|
39145
|
+
Vt,
|
|
39146
39146
|
{
|
|
39147
39147
|
type: "button",
|
|
39148
39148
|
className: i.trim(),
|
|
@@ -39263,7 +39263,7 @@ function VW({
|
|
|
39263
39263
|
);
|
|
39264
39264
|
return !h || !o || !o.isEditable ? null : /* @__PURE__ */ fe(Fo, { open: s, onOpenChange: m, children: [
|
|
39265
39265
|
/* @__PURE__ */ E(Vo, { asChild: !0, children: /* @__PURE__ */ fe(
|
|
39266
|
-
|
|
39266
|
+
Vt,
|
|
39267
39267
|
{
|
|
39268
39268
|
type: "button",
|
|
39269
39269
|
"data-style": "ghost",
|
|
@@ -39389,7 +39389,7 @@ function KW({
|
|
|
39389
39389
|
);
|
|
39390
39390
|
return !h || !o || !o.isEditable ? null : /* @__PURE__ */ fe(Fo, { open: s, onOpenChange: m, children: [
|
|
39391
39391
|
/* @__PURE__ */ E(Vo, { asChild: !0, children: /* @__PURE__ */ fe(
|
|
39392
|
-
|
|
39392
|
+
Vt,
|
|
39393
39393
|
{
|
|
39394
39394
|
type: "button",
|
|
39395
39395
|
"data-style": "ghost",
|
|
@@ -39614,7 +39614,7 @@ function tU({
|
|
|
39614
39614
|
};
|
|
39615
39615
|
}, [C, s]), !i || !i.isEditable ? null : /* @__PURE__ */ fe(Fo, { open: s, onOpenChange: C, children: [
|
|
39616
39616
|
/* @__PURE__ */ E(Vo, { asChild: !0, children: /* @__PURE__ */ E(
|
|
39617
|
-
|
|
39617
|
+
Vt,
|
|
39618
39618
|
{
|
|
39619
39619
|
type: "button",
|
|
39620
39620
|
"data-style": "ghost",
|
|
@@ -39736,7 +39736,7 @@ function tU({
|
|
|
39736
39736
|
] }),
|
|
39737
39737
|
/* @__PURE__ */ fe("div", { className: "flex items-center gap-2", children: [
|
|
39738
39738
|
/* @__PURE__ */ E(
|
|
39739
|
-
|
|
39739
|
+
Vt,
|
|
39740
39740
|
{
|
|
39741
39741
|
className: "flex-1 h-8 text-sm",
|
|
39742
39742
|
"data-size": "sm",
|
|
@@ -39746,7 +39746,7 @@ function tU({
|
|
|
39746
39746
|
}
|
|
39747
39747
|
),
|
|
39748
39748
|
/* @__PURE__ */ E(
|
|
39749
|
-
|
|
39749
|
+
Vt,
|
|
39750
39750
|
{
|
|
39751
39751
|
className: "flex-1 h-8 text-sm",
|
|
39752
39752
|
"data-size": "sm",
|
|
@@ -42956,11 +42956,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
42956
42956
|
for (ie = _e; de = W.heap[1], W.heap[1] = W.heap[W.heap_len--], He(W, ye, 1), xe = W.heap[1], W.heap[--W.heap_max] = de, W.heap[--W.heap_max] = xe, ye[2 * ie] = ye[2 * de] + ye[2 * xe], W.depth[ie] = (W.depth[de] >= W.depth[xe] ? W.depth[de] : W.depth[xe]) + 1, ye[2 * de + 1] = ye[2 * xe + 1] = ie, W.heap[1] = ie++, He(W, ye, 1), 2 <= W.heap_len; )
|
|
42957
42957
|
;
|
|
42958
42958
|
W.heap[--W.heap_max] = W.heap[1], function(b, S) {
|
|
42959
|
-
var q, le, we, Se, pe, Ne, Ae = S.dyn_tree, Ze = S.max_code, dt = S.stat_desc.static_tree,
|
|
42959
|
+
var q, le, we, Se, pe, Ne, Ae = S.dyn_tree, Ze = S.max_code, dt = S.stat_desc.static_tree, Yt = S.stat_desc.has_stree, Lt = S.stat_desc.extra_bits, te = S.stat_desc.extra_base, je = S.stat_desc.max_length, tt = 0;
|
|
42960
42960
|
for (Se = 0; Se <= y; Se++)
|
|
42961
42961
|
b.bl_count[Se] = 0;
|
|
42962
42962
|
for (Ae[2 * b.heap[b.heap_max] + 1] = 0, q = b.heap_max + 1; q < p; q++)
|
|
42963
|
-
je < (Se = Ae[2 * Ae[2 * (le = b.heap[q]) + 1] + 1] + 1) && (Se = je, tt++), Ae[2 * le + 1] = Se, Ze < le || (b.bl_count[Se]++, pe = 0, te <= le && (pe = Lt[le - te]), Ne = Ae[2 * le], b.opt_len += Ne * (Se + pe),
|
|
42963
|
+
je < (Se = Ae[2 * Ae[2 * (le = b.heap[q]) + 1] + 1] + 1) && (Se = je, tt++), Ae[2 * le + 1] = Se, Ze < le || (b.bl_count[Se]++, pe = 0, te <= le && (pe = Lt[le - te]), Ne = Ae[2 * le], b.opt_len += Ne * (Se + pe), Yt && (b.static_len += Ne * (dt[2 * le + 1] + pe)));
|
|
42964
42964
|
if (tt !== 0) {
|
|
42965
42965
|
do {
|
|
42966
42966
|
for (Se = je - 1; b.bl_count[Se] === 0; )
|
|
@@ -43175,7 +43175,7 @@ function $U({ editor: t }) {
|
|
|
43175
43175
|
return console.log("[TableBubble] Showing bubble menu (no pending attributes)"), /* @__PURE__ */ fe(RA, { variant: "floating", children: [
|
|
43176
43176
|
/* @__PURE__ */ fe(na, { children: [
|
|
43177
43177
|
/* @__PURE__ */ E(
|
|
43178
|
-
|
|
43178
|
+
Vt,
|
|
43179
43179
|
{
|
|
43180
43180
|
"data-style": "ghost",
|
|
43181
43181
|
"data-size": "sm",
|
|
@@ -43186,7 +43186,7 @@ function $U({ editor: t }) {
|
|
|
43186
43186
|
}
|
|
43187
43187
|
),
|
|
43188
43188
|
/* @__PURE__ */ E(
|
|
43189
|
-
|
|
43189
|
+
Vt,
|
|
43190
43190
|
{
|
|
43191
43191
|
"data-style": "ghost",
|
|
43192
43192
|
"data-size": "sm",
|
|
@@ -43197,7 +43197,7 @@ function $U({ editor: t }) {
|
|
|
43197
43197
|
}
|
|
43198
43198
|
),
|
|
43199
43199
|
/* @__PURE__ */ E(
|
|
43200
|
-
|
|
43200
|
+
Vt,
|
|
43201
43201
|
{
|
|
43202
43202
|
"data-style": "ghost",
|
|
43203
43203
|
"data-size": "sm",
|
|
@@ -43217,7 +43217,7 @@ function $U({ editor: t }) {
|
|
|
43217
43217
|
/* @__PURE__ */ E(Tc, {}),
|
|
43218
43218
|
/* @__PURE__ */ fe(na, { children: [
|
|
43219
43219
|
/* @__PURE__ */ E(
|
|
43220
|
-
|
|
43220
|
+
Vt,
|
|
43221
43221
|
{
|
|
43222
43222
|
"data-style": "ghost",
|
|
43223
43223
|
"data-size": "sm",
|
|
@@ -43228,7 +43228,7 @@ function $U({ editor: t }) {
|
|
|
43228
43228
|
}
|
|
43229
43229
|
),
|
|
43230
43230
|
/* @__PURE__ */ E(
|
|
43231
|
-
|
|
43231
|
+
Vt,
|
|
43232
43232
|
{
|
|
43233
43233
|
"data-style": "ghost",
|
|
43234
43234
|
"data-size": "sm",
|
|
@@ -43239,7 +43239,7 @@ function $U({ editor: t }) {
|
|
|
43239
43239
|
}
|
|
43240
43240
|
),
|
|
43241
43241
|
/* @__PURE__ */ E(
|
|
43242
|
-
|
|
43242
|
+
Vt,
|
|
43243
43243
|
{
|
|
43244
43244
|
"data-style": "ghost",
|
|
43245
43245
|
"data-size": "sm",
|
|
@@ -43259,7 +43259,7 @@ function $U({ editor: t }) {
|
|
|
43259
43259
|
/* @__PURE__ */ E(Tc, {}),
|
|
43260
43260
|
/* @__PURE__ */ fe(na, { children: [
|
|
43261
43261
|
/* @__PURE__ */ E(
|
|
43262
|
-
|
|
43262
|
+
Vt,
|
|
43263
43263
|
{
|
|
43264
43264
|
"data-style": "ghost",
|
|
43265
43265
|
"data-size": "sm",
|
|
@@ -43274,7 +43274,7 @@ function $U({ editor: t }) {
|
|
|
43274
43274
|
}
|
|
43275
43275
|
),
|
|
43276
43276
|
/* @__PURE__ */ E(
|
|
43277
|
-
|
|
43277
|
+
Vt,
|
|
43278
43278
|
{
|
|
43279
43279
|
"data-style": "ghost",
|
|
43280
43280
|
"data-size": "sm",
|
|
@@ -43292,7 +43292,7 @@ function $U({ editor: t }) {
|
|
|
43292
43292
|
] }),
|
|
43293
43293
|
/* @__PURE__ */ E(Tc, {}),
|
|
43294
43294
|
/* @__PURE__ */ E(na, { children: /* @__PURE__ */ E(
|
|
43295
|
-
|
|
43295
|
+
Vt,
|
|
43296
43296
|
{
|
|
43297
43297
|
"data-style": "ghost",
|
|
43298
43298
|
"data-size": "sm",
|
|
@@ -43632,9 +43632,9 @@ Hh`
|
|
|
43632
43632
|
pointer-events: auto;
|
|
43633
43633
|
}
|
|
43634
43634
|
`;
|
|
43635
|
-
const e5 =
|
|
43635
|
+
const e5 = Gt.createContext({}), AG = () => typeof window < "u" && window.__rayoGetToken ? window.__rayoGetToken() : null;
|
|
43636
43636
|
function TG(t = {}) {
|
|
43637
|
-
const [e, n] =
|
|
43637
|
+
const [e, n] = Kt(""), [r, i] = Kt(!1), [o, s] = Kt(!1), [a, l] = Kt(null), { onAIRequest: c } = Kn(e5), u = () => {
|
|
43638
43638
|
n(""), i(!1), s(!1), l(null);
|
|
43639
43639
|
}, d = () => {
|
|
43640
43640
|
s(!1), i(!1), n(""), l(null);
|
|
@@ -43824,7 +43824,7 @@ var t5 = {
|
|
|
43824
43824
|
className: void 0,
|
|
43825
43825
|
style: void 0,
|
|
43826
43826
|
attr: void 0
|
|
43827
|
-
}, mx =
|
|
43827
|
+
}, mx = Gt.createContext && /* @__PURE__ */ Gt.createContext(t5), RG = ["attr", "size", "title"];
|
|
43828
43828
|
function MG(t, e) {
|
|
43829
43829
|
if (t == null)
|
|
43830
43830
|
return {};
|
|
@@ -43899,12 +43899,12 @@ function DG(t, e) {
|
|
|
43899
43899
|
return (e === "string" ? String : Number)(t);
|
|
43900
43900
|
}
|
|
43901
43901
|
function n5(t) {
|
|
43902
|
-
return t && t.map((e, n) => /* @__PURE__ */
|
|
43902
|
+
return t && t.map((e, n) => /* @__PURE__ */ Gt.createElement(e.tag, Xf({
|
|
43903
43903
|
key: n
|
|
43904
43904
|
}, e.attr), n5(e.child)));
|
|
43905
43905
|
}
|
|
43906
43906
|
function r5(t) {
|
|
43907
|
-
return (e) => /* @__PURE__ */
|
|
43907
|
+
return (e) => /* @__PURE__ */ Gt.createElement(NG, qf({
|
|
43908
43908
|
attr: Xf({}, t.attr)
|
|
43909
43909
|
}, e), n5(t.child));
|
|
43910
43910
|
}
|
|
@@ -43915,7 +43915,7 @@ function NG(t) {
|
|
|
43915
43915
|
size: i,
|
|
43916
43916
|
title: o
|
|
43917
43917
|
} = t, s = MG(t, RG), a = i || n.size || "1em", l;
|
|
43918
|
-
return n.className && (l = n.className), t.className && (l = (l ? l + " " : "") + t.className), /* @__PURE__ */
|
|
43918
|
+
return n.className && (l = n.className), t.className && (l = (l ? l + " " : "") + t.className), /* @__PURE__ */ Gt.createElement("svg", qf({
|
|
43919
43919
|
stroke: "currentColor",
|
|
43920
43920
|
fill: "currentColor",
|
|
43921
43921
|
strokeWidth: "0"
|
|
@@ -43927,9 +43927,9 @@ function NG(t) {
|
|
|
43927
43927
|
height: a,
|
|
43928
43928
|
width: a,
|
|
43929
43929
|
xmlns: "http://www.w3.org/2000/svg"
|
|
43930
|
-
}), o && /* @__PURE__ */
|
|
43930
|
+
}), o && /* @__PURE__ */ Gt.createElement("title", null, o), t.children);
|
|
43931
43931
|
};
|
|
43932
|
-
return mx !== void 0 ? /* @__PURE__ */
|
|
43932
|
+
return mx !== void 0 ? /* @__PURE__ */ Gt.createElement(mx.Consumer, null, (n) => e(n)) : e(t5);
|
|
43933
43933
|
}
|
|
43934
43934
|
function LG(t) {
|
|
43935
43935
|
return r5({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { fill: "none", strokeMiterlimit: "10", strokeWidth: "32", d: "M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192z" }, child: [] }, { tag: "path", attr: { d: "M310.4 336H201.6a25.62 25.62 0 0 1-25.6-25.6V201.6a25.62 25.62 0 0 1 25.6-25.6h108.8a25.62 25.62 0 0 1 25.6 25.6v108.8a25.62 25.62 0 0 1-25.6 25.6z" }, child: [] }] })(t);
|
|
@@ -43951,8 +43951,8 @@ const PG = [
|
|
|
43951
43951
|
icon: VB
|
|
43952
43952
|
}
|
|
43953
43953
|
], BG = ({ editor: t, onOpenChange: e }) => {
|
|
43954
|
-
const { completion: n, complete: r, isLoading: i, isStreaming: o, hasCompletion: s, resetCompletion: a, forceReset: l } = TG(), [c, u] =
|
|
43955
|
-
|
|
43954
|
+
const { completion: n, complete: r, isLoading: i, isStreaming: o, hasCompletion: s, resetCompletion: a, forceReset: l } = TG(), [c, u] = Gt.useState(!0), [d, f] = Gt.useState(null), [h, m] = Gt.useState(""), p = Gt.useRef(null), [y, w] = Gt.useState(!1), k = TN(), A = Gt.useRef(0);
|
|
43955
|
+
Gt.useEffect(() => {
|
|
43956
43956
|
if (n)
|
|
43957
43957
|
try {
|
|
43958
43958
|
let _ = n;
|
|
@@ -43967,7 +43967,7 @@ const PG = [
|
|
|
43967
43967
|
}
|
|
43968
43968
|
else
|
|
43969
43969
|
m("");
|
|
43970
|
-
}, [n, o, y]),
|
|
43970
|
+
}, [n, o, y]), Gt.useEffect(() => {
|
|
43971
43971
|
if (o && h) {
|
|
43972
43972
|
const _ = () => {
|
|
43973
43973
|
const P = p.current;
|
|
@@ -43983,7 +43983,7 @@ const PG = [
|
|
|
43983
43983
|
};
|
|
43984
43984
|
_(), setTimeout(_, 0), setTimeout(_, 16), setTimeout(_, 50);
|
|
43985
43985
|
}
|
|
43986
|
-
}, [h, o, y]),
|
|
43986
|
+
}, [h, o, y]), Gt.useEffect(() => {
|
|
43987
43987
|
const _ = p.current;
|
|
43988
43988
|
if (!_)
|
|
43989
43989
|
return;
|
|
@@ -43997,7 +43997,7 @@ const PG = [
|
|
|
43997
43997
|
return _.addEventListener("scroll", x, { passive: !0 }), () => {
|
|
43998
43998
|
_.removeEventListener("scroll", x), P && clearTimeout(P);
|
|
43999
43999
|
};
|
|
44000
|
-
}, []),
|
|
44000
|
+
}, []), Gt.useEffect(() => {
|
|
44001
44001
|
if (o) {
|
|
44002
44002
|
w(!1), A.current = 0;
|
|
44003
44003
|
const _ = () => {
|
|
@@ -44006,9 +44006,9 @@ const PG = [
|
|
|
44006
44006
|
};
|
|
44007
44007
|
_(), setTimeout(_, 10), setTimeout(_, 50), setTimeout(_, 100);
|
|
44008
44008
|
}
|
|
44009
|
-
}, [o]),
|
|
44009
|
+
}, [o]), Gt.useEffect(() => {
|
|
44010
44010
|
!i && !o && (a(), u(!0));
|
|
44011
|
-
}, []),
|
|
44011
|
+
}, []), Gt.useEffect(() => {
|
|
44012
44012
|
const _ = () => {
|
|
44013
44013
|
l(), u(!0);
|
|
44014
44014
|
};
|
|
@@ -44754,7 +44754,7 @@ const $G = ({ editor: t }) => {
|
|
|
44754
44754
|
),
|
|
44755
44755
|
/* @__PURE__ */ fe("div", { className: "link-buttons", children: [
|
|
44756
44756
|
/* @__PURE__ */ E(
|
|
44757
|
-
|
|
44757
|
+
Vt,
|
|
44758
44758
|
{
|
|
44759
44759
|
"data-style": "primary",
|
|
44760
44760
|
"data-size": "sm",
|
|
@@ -44765,7 +44765,7 @@ const $G = ({ editor: t }) => {
|
|
|
44765
44765
|
}
|
|
44766
44766
|
),
|
|
44767
44767
|
/* @__PURE__ */ E(
|
|
44768
|
-
|
|
44768
|
+
Vt,
|
|
44769
44769
|
{
|
|
44770
44770
|
"data-style": "ghost",
|
|
44771
44771
|
"data-size": "sm",
|
|
@@ -44809,7 +44809,7 @@ const $G = ({ editor: t }) => {
|
|
|
44809
44809
|
] }),
|
|
44810
44810
|
/* @__PURE__ */ fe("div", { className: "link-actions", children: [
|
|
44811
44811
|
/* @__PURE__ */ E(
|
|
44812
|
-
|
|
44812
|
+
Vt,
|
|
44813
44813
|
{
|
|
44814
44814
|
"data-style": "ghost",
|
|
44815
44815
|
"data-size": "sm",
|
|
@@ -44819,7 +44819,7 @@ const $G = ({ editor: t }) => {
|
|
|
44819
44819
|
}
|
|
44820
44820
|
),
|
|
44821
44821
|
/* @__PURE__ */ E(
|
|
44822
|
-
|
|
44822
|
+
Vt,
|
|
44823
44823
|
{
|
|
44824
44824
|
"data-style": "ghost",
|
|
44825
44825
|
"data-size": "sm",
|
|
@@ -45249,7 +45249,7 @@ const $G = ({ editor: t }) => {
|
|
|
45249
45249
|
},
|
|
45250
45250
|
children: [
|
|
45251
45251
|
/* @__PURE__ */ E("div", { ref: L, className: "link-button-wrapper", children: /* @__PURE__ */ E(
|
|
45252
|
-
|
|
45252
|
+
Vt,
|
|
45253
45253
|
{
|
|
45254
45254
|
type: "button",
|
|
45255
45255
|
"data-style": "ghost",
|
|
@@ -45263,7 +45263,7 @@ const $G = ({ editor: t }) => {
|
|
|
45263
45263
|
/* @__PURE__ */ E(P$, { text: "Add", editor: s, images: c, isLoadingImages: u, onUpload: d }),
|
|
45264
45264
|
/* @__PURE__ */ E("div", { ref: H, style: { display: "inline-flex" }, children: /* @__PURE__ */ fe(Fo, { open: F, onOpenChange: J, children: [
|
|
45265
45265
|
/* @__PURE__ */ E(Vo, { asChild: !0, children: /* @__PURE__ */ fe(
|
|
45266
|
-
|
|
45266
|
+
Vt,
|
|
45267
45267
|
{
|
|
45268
45268
|
type: "button",
|
|
45269
45269
|
"data-style": "ghost",
|
|
@@ -45287,7 +45287,7 @@ const $G = ({ editor: t }) => {
|
|
|
45287
45287
|
) }),
|
|
45288
45288
|
/* @__PURE__ */ E(zo, { children: /* @__PURE__ */ fe(Sa, { children: [
|
|
45289
45289
|
/* @__PURE__ */ E(ni, { asChild: !0, children: /* @__PURE__ */ fe(
|
|
45290
|
-
|
|
45290
|
+
Vt,
|
|
45291
45291
|
{
|
|
45292
45292
|
type: "button",
|
|
45293
45293
|
"data-style": "ghost",
|
|
@@ -45300,7 +45300,7 @@ const $G = ({ editor: t }) => {
|
|
|
45300
45300
|
}
|
|
45301
45301
|
) }),
|
|
45302
45302
|
/* @__PURE__ */ E(ni, { asChild: !0, children: /* @__PURE__ */ fe(
|
|
45303
|
-
|
|
45303
|
+
Vt,
|
|
45304
45304
|
{
|
|
45305
45305
|
type: "button",
|
|
45306
45306
|
"data-style": "ghost",
|
|
@@ -45313,7 +45313,7 @@ const $G = ({ editor: t }) => {
|
|
|
45313
45313
|
}
|
|
45314
45314
|
) }),
|
|
45315
45315
|
/* @__PURE__ */ E(ni, { asChild: !0, children: /* @__PURE__ */ fe(
|
|
45316
|
-
|
|
45316
|
+
Vt,
|
|
45317
45317
|
{
|
|
45318
45318
|
type: "button",
|
|
45319
45319
|
"data-style": "ghost",
|
|
@@ -45329,7 +45329,7 @@ const $G = ({ editor: t }) => {
|
|
|
45329
45329
|
] }) }),
|
|
45330
45330
|
/* @__PURE__ */ fe(Fo, { open: Z, onOpenChange: z, children: [
|
|
45331
45331
|
/* @__PURE__ */ E(Vo, { asChild: !0, children: /* @__PURE__ */ fe(
|
|
45332
|
-
|
|
45332
|
+
Vt,
|
|
45333
45333
|
{
|
|
45334
45334
|
type: "button",
|
|
45335
45335
|
"data-style": "ghost",
|
|
@@ -45348,7 +45348,7 @@ const $G = ({ editor: t }) => {
|
|
|
45348
45348
|
) }),
|
|
45349
45349
|
/* @__PURE__ */ E(zo, { children: /* @__PURE__ */ fe(Sa, { children: [
|
|
45350
45350
|
/* @__PURE__ */ E(ni, { asChild: !0, children: /* @__PURE__ */ E(
|
|
45351
|
-
|
|
45351
|
+
Vt,
|
|
45352
45352
|
{
|
|
45353
45353
|
type: "button",
|
|
45354
45354
|
"data-style": "ghost",
|
|
@@ -45358,7 +45358,7 @@ const $G = ({ editor: t }) => {
|
|
|
45358
45358
|
}
|
|
45359
45359
|
) }),
|
|
45360
45360
|
/* @__PURE__ */ E(ni, { asChild: !0, children: /* @__PURE__ */ E(
|
|
45361
|
-
|
|
45361
|
+
Vt,
|
|
45362
45362
|
{
|
|
45363
45363
|
type: "button",
|
|
45364
45364
|
"data-style": "ghost",
|
|
@@ -45368,7 +45368,7 @@ const $G = ({ editor: t }) => {
|
|
|
45368
45368
|
}
|
|
45369
45369
|
) }),
|
|
45370
45370
|
/* @__PURE__ */ E(ni, { asChild: !0, children: /* @__PURE__ */ E(
|
|
45371
|
-
|
|
45371
|
+
Vt,
|
|
45372
45372
|
{
|
|
45373
45373
|
type: "button",
|
|
45374
45374
|
"data-style": "ghost",
|
|
@@ -45378,7 +45378,7 @@ const $G = ({ editor: t }) => {
|
|
|
45378
45378
|
}
|
|
45379
45379
|
) }),
|
|
45380
45380
|
/* @__PURE__ */ E(ni, { asChild: !0, children: /* @__PURE__ */ E(
|
|
45381
|
-
|
|
45381
|
+
Vt,
|
|
45382
45382
|
{
|
|
45383
45383
|
type: "button",
|
|
45384
45384
|
"data-style": "ghost",
|
|
@@ -45422,7 +45422,7 @@ const $G = ({ editor: t }) => {
|
|
|
45422
45422
|
),
|
|
45423
45423
|
/* @__PURE__ */ fe("div", { className: "link-popup-actions", children: [
|
|
45424
45424
|
/* @__PURE__ */ E(
|
|
45425
|
-
|
|
45425
|
+
Vt,
|
|
45426
45426
|
{
|
|
45427
45427
|
type: "button",
|
|
45428
45428
|
"data-style": "ghost",
|
|
@@ -45434,7 +45434,7 @@ const $G = ({ editor: t }) => {
|
|
|
45434
45434
|
}
|
|
45435
45435
|
),
|
|
45436
45436
|
/* @__PURE__ */ E(
|
|
45437
|
-
|
|
45437
|
+
Vt,
|
|
45438
45438
|
{
|
|
45439
45439
|
type: "button",
|
|
45440
45440
|
"data-style": "ghost",
|
|
@@ -45479,7 +45479,7 @@ const $G = ({ editor: t }) => {
|
|
|
45479
45479
|
),
|
|
45480
45480
|
/* @__PURE__ */ fe("div", { className: "link-popup-actions", children: [
|
|
45481
45481
|
/* @__PURE__ */ E(
|
|
45482
|
-
|
|
45482
|
+
Vt,
|
|
45483
45483
|
{
|
|
45484
45484
|
type: "button",
|
|
45485
45485
|
"data-style": "ghost",
|
|
@@ -45491,7 +45491,7 @@ const $G = ({ editor: t }) => {
|
|
|
45491
45491
|
}
|
|
45492
45492
|
),
|
|
45493
45493
|
/* @__PURE__ */ E(
|
|
45494
|
-
|
|
45494
|
+
Vt,
|
|
45495
45495
|
{
|
|
45496
45496
|
type: "button",
|
|
45497
45497
|
"data-style": "ghost",
|
|
@@ -45974,7 +45974,18 @@ function UG({
|
|
|
45974
45974
|
tippyOptions: {
|
|
45975
45975
|
duration: 100,
|
|
45976
45976
|
placement: "top",
|
|
45977
|
-
maxWidth: "none"
|
|
45977
|
+
maxWidth: "none",
|
|
45978
|
+
popperOptions: {
|
|
45979
|
+
modifiers: [
|
|
45980
|
+
{
|
|
45981
|
+
name: "preventOverflow",
|
|
45982
|
+
options: {
|
|
45983
|
+
boundary: "viewport",
|
|
45984
|
+
padding: 8
|
|
45985
|
+
}
|
|
45986
|
+
}
|
|
45987
|
+
]
|
|
45988
|
+
}
|
|
45978
45989
|
},
|
|
45979
45990
|
shouldShow: ({ editor: oe }) => {
|
|
45980
45991
|
if (i || !oe.isActive("table"))
|
|
@@ -46205,7 +46216,7 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
46205
46216
|
const J = "createConicGradient createImageData createLinearGradient createPattern createRadialGradient getContextAttributes getImageData getLineDash getTransform isContextLost isPointInPath isPointInStroke measureText".split(" "), G = new function() {
|
|
46206
46217
|
function g() {
|
|
46207
46218
|
if (!v) {
|
|
46208
|
-
let
|
|
46219
|
+
let qt = function(sn, mt, xn) {
|
|
46209
46220
|
if (mt = ze.createShader(mt), ze.shaderSource(mt, xn), ze.compileShader(mt), xn = ze.getShaderInfoLog(mt), 0 < (xn || "").length)
|
|
46210
46221
|
throw xn;
|
|
46211
46222
|
ze.attachShader(sn, mt);
|
|
@@ -46235,7 +46246,7 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
46235
46246
|
Te || (console.error("Cannot render the mesh because the GL Context was lost. Tried to set property " + mt), Te = !0);
|
|
46236
46247
|
else
|
|
46237
46248
|
return sn[mt] = xn, !0;
|
|
46238
|
-
} }), N = Math.min(ze.getParameter(ze.MAX_RENDERBUFFER_SIZE), ze.getParameter(ze.MAX_TEXTURE_SIZE)), ve = ze.createProgram(),
|
|
46249
|
+
} }), N = Math.min(ze.getParameter(ze.MAX_RENDERBUFFER_SIZE), ze.getParameter(ze.MAX_TEXTURE_SIZE)), ve = ze.createProgram(), qt(ve, ze.VERTEX_SHADER, `attribute vec2 vertex;
|
|
46239
46250
|
attribute vec2 uv;
|
|
46240
46251
|
uniform vec4 mat;
|
|
46241
46252
|
uniform vec2 translate;
|
|
@@ -46243,7 +46254,7 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
46243
46254
|
void main() {
|
|
46244
46255
|
st = uv;
|
|
46245
46256
|
gl_Position = vec4(mat2(mat) * vertex + translate, 0, 1);
|
|
46246
|
-
}`),
|
|
46257
|
+
}`), qt(ve, ze.FRAGMENT_SHADER, `precision highp float;
|
|
46247
46258
|
uniform sampler2D image;
|
|
46248
46259
|
varying vec2 st;
|
|
46249
46260
|
void main() {
|
|
@@ -46265,27 +46276,27 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
46265
46276
|
const ot = v.createTexture();
|
|
46266
46277
|
return ot ? (v.bindTexture(v.TEXTURE_2D, ot), v.texImage2D(v.TEXTURE_2D, 0, v.RGBA, v.RGBA, v.UNSIGNED_BYTE, ve), v.texParameteri(v.TEXTURE_2D, v.TEXTURE_WRAP_S, v.CLAMP_TO_EDGE), v.texParameteri(v.TEXTURE_2D, v.TEXTURE_WRAP_T, v.CLAMP_TO_EDGE), v.texParameteri(v.TEXTURE_2D, v.TEXTURE_MAG_FILTER, v.LINEAR), T == 2 ? (v.texParameteri(v.TEXTURE_2D, v.TEXTURE_MIN_FILTER, v.LINEAR_MIPMAP_LINEAR), v.generateMipmap(v.TEXTURE_2D)) : v.texParameteri(v.TEXTURE_2D, v.TEXTURE_MIN_FILTER, v.LINEAR), ot) : null;
|
|
46267
46278
|
};
|
|
46268
|
-
const Ee = new L(8), We = new L(8), gt = new L(10),
|
|
46269
|
-
this.Nb = function(ve, ot, ze,
|
|
46279
|
+
const Ee = new L(8), We = new L(8), gt = new L(10), Et = new L(10);
|
|
46280
|
+
this.Nb = function(ve, ot, ze, qt, sn) {
|
|
46270
46281
|
if (g()) {
|
|
46271
46282
|
var mt = Ee.push(ve), xn = We.push(ot);
|
|
46272
46283
|
if (v.canvas) {
|
|
46273
|
-
(v.canvas.width != mt || v.canvas.height != xn) && (v.canvas.width = mt, v.canvas.height = xn), v.viewport(0, xn - ot, ve, ot), v.disable(v.SCISSOR_TEST), v.clearColor(0, 0, 0, 0), v.clear(v.COLOR_BUFFER_BIT), v.enable(v.SCISSOR_TEST), ze.sort((cn, Gi) => Gi.vb - cn.vb), mt = gt.push(
|
|
46284
|
+
(v.canvas.width != mt || v.canvas.height != xn) && (v.canvas.width = mt, v.canvas.height = xn), v.viewport(0, xn - ot, ve, ot), v.disable(v.SCISSOR_TEST), v.clearColor(0, 0, 0, 0), v.clear(v.COLOR_BUFFER_BIT), v.enable(v.SCISSOR_TEST), ze.sort((cn, Gi) => Gi.vb - cn.vb), mt = gt.push(qt), he != mt && (v.bufferData(v.ARRAY_BUFFER, 8 * mt, v.DYNAMIC_DRAW), he = mt), mt = 0;
|
|
46274
46285
|
for (var sr of ze)
|
|
46275
46286
|
v.bufferSubData(v.ARRAY_BUFFER, mt, sr.Ta), mt += 4 * sr.Ta.length;
|
|
46276
|
-
console.assert(mt == 4 *
|
|
46287
|
+
console.assert(mt == 4 * qt);
|
|
46277
46288
|
for (var ei of ze)
|
|
46278
46289
|
v.bufferSubData(v.ARRAY_BUFFER, mt, ei.Bb), mt += 4 * ei.Bb.length;
|
|
46279
|
-
console.assert(mt == 8 *
|
|
46290
|
+
console.assert(mt == 8 * qt), mt = Et.push(sn), ge != mt && (v.bufferData(v.ELEMENT_ARRAY_BUFFER, 2 * mt, v.DYNAMIC_DRAW), ge = mt), sr = 0;
|
|
46280
46291
|
for (var Vs of ze)
|
|
46281
46292
|
v.bufferSubData(v.ELEMENT_ARRAY_BUFFER, sr, Vs.indices), sr += 2 * Vs.indices.length;
|
|
46282
46293
|
console.assert(sr == 2 * sn), Vs = 0, ei = !0, mt = sr = 0;
|
|
46283
46294
|
for (const cn of ze) {
|
|
46284
46295
|
cn.image.Ja != Vs && (v.bindTexture(v.TEXTURE_2D, cn.image.Ia || null), Vs = cn.image.Ja), cn.hc ? (v.scissor(cn.Za, xn - cn.$a - cn.jb, cn.uc, cn.jb), ei = !0) : ei && (v.scissor(0, xn - ot, ve, ot), ei = !1), ze = 2 / ve;
|
|
46285
46296
|
const Gi = -2 / ot;
|
|
46286
|
-
v.uniform4f(K, cn.ha[0] * ze * cn.Aa, cn.ha[1] * Gi * cn.Ba, cn.ha[2] * ze * cn.Aa, cn.ha[3] * Gi * cn.Ba), v.uniform2f(ee, cn.ha[4] * ze * cn.Aa + ze * (cn.Za - cn.cc * cn.Aa) - 1, cn.ha[5] * Gi * cn.Ba + Gi * (cn.$a - cn.dc * cn.Ba) + 1), v.vertexAttribPointer(0, 2, v.FLOAT, !1, 0, mt), v.vertexAttribPointer(1, 2, v.FLOAT, !1, 0, mt + 4 *
|
|
46297
|
+
v.uniform4f(K, cn.ha[0] * ze * cn.Aa, cn.ha[1] * Gi * cn.Ba, cn.ha[2] * ze * cn.Aa, cn.ha[3] * Gi * cn.Ba), v.uniform2f(ee, cn.ha[4] * ze * cn.Aa + ze * (cn.Za - cn.cc * cn.Aa) - 1, cn.ha[5] * Gi * cn.Ba + Gi * (cn.$a - cn.dc * cn.Ba) + 1), v.vertexAttribPointer(0, 2, v.FLOAT, !1, 0, mt), v.vertexAttribPointer(1, 2, v.FLOAT, !1, 0, mt + 4 * qt), v.drawElements(v.TRIANGLES, cn.indices.length, v.UNSIGNED_SHORT, sr), mt += 4 * cn.Ta.length, sr += 2 * cn.indices.length;
|
|
46287
46298
|
}
|
|
46288
|
-
console.assert(mt == 4 *
|
|
46299
|
+
console.assert(mt == 4 * qt), console.assert(sr == 2 * sn);
|
|
46289
46300
|
}
|
|
46290
46301
|
}
|
|
46291
46302
|
}, this.canvas = function() {
|
|
@@ -46343,7 +46354,7 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
46343
46354
|
}
|
|
46344
46355
|
Y && Y();
|
|
46345
46356
|
var N = p.RenderPaintStyle;
|
|
46346
|
-
const K = p.RenderPath, ee = p.RenderPaint, he = p.Renderer, ge = p.StrokeCap, Te = p.StrokeJoin, Ee = p.BlendMode, We = N.fill, gt = N.stroke,
|
|
46357
|
+
const K = p.RenderPath, ee = p.RenderPaint, he = p.Renderer, ge = p.StrokeCap, Te = p.StrokeJoin, Ee = p.BlendMode, We = N.fill, gt = N.stroke, Et = p.FillRule.evenOdd;
|
|
46347
46358
|
let ve = 1;
|
|
46348
46359
|
var ot = p.RenderImage.extend("CanvasRenderImage", { __construct: function({ la: Fe, wa: ut } = {}) {
|
|
46349
46360
|
this.__parent.__construct.call(this), this.Ja = ve, ve = ve + 1 & 2147483647 || 1, this.la = Fe, this.wa = ut;
|
|
@@ -46375,7 +46386,7 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
46375
46386
|
this.U.bezierCurveTo(Fe, ut, an, tn, gn, ln);
|
|
46376
46387
|
}, close: function() {
|
|
46377
46388
|
this.U.closePath();
|
|
46378
|
-
} }),
|
|
46389
|
+
} }), qt = ee.extend("CanvasRenderPaint", { color: function(Fe) {
|
|
46379
46390
|
this.Xa = v(Fe);
|
|
46380
46391
|
}, thickness: function(Fe) {
|
|
46381
46392
|
this.Gb = Fe;
|
|
@@ -46456,7 +46467,7 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
46456
46467
|
}, modulateOpacity: function(Fe) {
|
|
46457
46468
|
this.G[this.G.length - 1] *= Fe;
|
|
46458
46469
|
}, _drawPath: function(Fe, ut) {
|
|
46459
|
-
this.I.push(ut.draw.bind(ut, this.B, Fe.U, Fe.Va ===
|
|
46470
|
+
this.I.push(ut.draw.bind(ut, this.B, Fe.U, Fe.Va === Et ? "evenodd" : "nonzero", Math.max(0, this.G[this.G.length - 1])));
|
|
46460
46471
|
}, _drawRiveImage: function(Fe, ut, an, tn) {
|
|
46461
46472
|
var gn = Fe.Db;
|
|
46462
46473
|
if (gn) {
|
|
@@ -46489,7 +46500,7 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
46489
46500
|
});
|
|
46490
46501
|
}
|
|
46491
46502
|
}, _clipPath: function(Fe) {
|
|
46492
|
-
this.I.push(this.B.clip.bind(this.B, Fe.U, Fe.Va ===
|
|
46503
|
+
this.I.push(this.B.clip.bind(this.B, Fe.U, Fe.Va === Et ? "evenodd" : "nonzero"));
|
|
46493
46504
|
}, clear: function() {
|
|
46494
46505
|
sn.add(this), this.I.push(this.B.clearRect.bind(this.B, 0, 0, this.Ua.width, this.Ua.height));
|
|
46495
46506
|
}, flush: function() {
|
|
@@ -46520,7 +46531,7 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
46520
46531
|
}, p.decodeImage = function(Fe, ut) {
|
|
46521
46532
|
new ot({ la: ut }).decode(Fe);
|
|
46522
46533
|
}, p.renderFactory = { makeRenderPaint: function() {
|
|
46523
|
-
return new
|
|
46534
|
+
return new qt();
|
|
46524
46535
|
}, makeRenderPath: function() {
|
|
46525
46536
|
return new ze();
|
|
46526
46537
|
}, makeRenderImage: function() {
|
|
@@ -46668,14 +46679,14 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
46668
46679
|
return g == window.h.J.xa && T != 0 && (ge.sampleRate = T), he.L = new (window.AudioContext || window.webkitAudioContext)(ge), he.L.suspend(), he.state = window.h.ga.stopped, T = 0, g != window.h.J.xa && (T = v), he.Z = he.L.createScriptProcessor(N, T, v), he.Z.onaudioprocess = function(Te) {
|
|
46669
46680
|
if ((he.ra == null || he.ra.length == 0) && (he.ra = new Float32Array(Xe.buffer, K, N * v)), g == window.h.J.capture || g == window.h.J.Ka) {
|
|
46670
46681
|
for (var Ee = 0; Ee < v; Ee += 1)
|
|
46671
|
-
for (var We = Te.inputBuffer.getChannelData(Ee), gt = he.ra,
|
|
46672
|
-
gt[
|
|
46682
|
+
for (var We = Te.inputBuffer.getChannelData(Ee), gt = he.ra, Et = 0; Et < N; Et += 1)
|
|
46683
|
+
gt[Et * v + Ee] = We[Et];
|
|
46673
46684
|
yy(ee, N, K);
|
|
46674
46685
|
}
|
|
46675
46686
|
if (g == window.h.J.xa || g == window.h.J.Ka)
|
|
46676
46687
|
for (vy(ee, N, K), Ee = 0; Ee < Te.outputBuffer.numberOfChannels; ++Ee)
|
|
46677
|
-
for (We = Te.outputBuffer.getChannelData(Ee), gt = he.ra,
|
|
46678
|
-
We[
|
|
46688
|
+
for (We = Te.outputBuffer.getChannelData(Ee), gt = he.ra, Et = 0; Et < N; Et += 1)
|
|
46689
|
+
We[Et] = gt[Et * v + Ee];
|
|
46679
46690
|
else
|
|
46680
46691
|
for (Ee = 0; Ee < Te.outputBuffer.numberOfChannels; ++Ee)
|
|
46681
46692
|
Te.outputBuffer.getChannelData(Ee).fill(0);
|
|
@@ -46755,7 +46766,7 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
46755
46766
|
N += String.fromCharCode(K);
|
|
46756
46767
|
}
|
|
46757
46768
|
return N;
|
|
46758
|
-
}, dt = [],
|
|
46769
|
+
}, dt = [], Yt = (g) => {
|
|
46759
46770
|
for (var v = 0, T = 0; T < g.length; ++T) {
|
|
46760
46771
|
var N = g.charCodeAt(T);
|
|
46761
46772
|
127 >= N ? v++ : 2047 >= N ? v += 2 : 55296 <= N && 57343 >= N ? (v += 4, ++T) : v += 3;
|
|
@@ -46799,12 +46810,12 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
46799
46810
|
return v[T] = 0, T - K;
|
|
46800
46811
|
};
|
|
46801
46812
|
function te(g, v) {
|
|
46802
|
-
var T = Array(
|
|
46813
|
+
var T = Array(Yt(g) + 1);
|
|
46803
46814
|
return g = Lt(g, T, 0, T.length), v && (T.length = g), T;
|
|
46804
46815
|
}
|
|
46805
46816
|
var je = [];
|
|
46806
46817
|
function tt(g, v) {
|
|
46807
|
-
je[g] = { input: [], H: [], W: v },
|
|
46818
|
+
je[g] = { input: [], H: [], W: v }, Qt(g, ft);
|
|
46808
46819
|
}
|
|
46809
46820
|
var ft = { open(g) {
|
|
46810
46821
|
var v = je[g.node.ya];
|
|
@@ -46870,7 +46881,7 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
46870
46881
|
}, pa(g) {
|
|
46871
46882
|
g.H && 0 < g.H.length && (V(Ze(g.H, 0)), g.H = []);
|
|
46872
46883
|
} };
|
|
46873
|
-
function
|
|
46884
|
+
function wt(g, v) {
|
|
46874
46885
|
var T = g.l ? g.l.length : 0;
|
|
46875
46886
|
T >= v || (v = Math.max(v, T * (1048576 > T ? 2 : 1.125) >>> 0), T != 0 && (v = Math.max(v, 256)), T = g.l, g.l = new Uint8Array(v), 0 < g.v && g.l.set(T.subarray(0, g.v), 0));
|
|
46876
46887
|
}
|
|
@@ -46947,7 +46958,7 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
46947
46958
|
if (K + N <= g.v)
|
|
46948
46959
|
return g.l.set(v.subarray(T, T + N), K), N;
|
|
46949
46960
|
}
|
|
46950
|
-
if (
|
|
46961
|
+
if (wt(g, K + N), g.l.subarray && v.subarray)
|
|
46951
46962
|
g.l.set(v.subarray(T, T + N), K);
|
|
46952
46963
|
else
|
|
46953
46964
|
for (ee = 0; ee < N; ee++)
|
|
@@ -46958,7 +46969,7 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
46958
46969
|
throw new Ie(28);
|
|
46959
46970
|
return v;
|
|
46960
46971
|
}, Ya(g, v, T) {
|
|
46961
|
-
|
|
46972
|
+
wt(g.node, v + T), g.node.v = Math.max(g.node.v, v + T);
|
|
46962
46973
|
}, lb(g, v, T, N, K) {
|
|
46963
46974
|
if ((g.node.mode & 61440) !== 32768)
|
|
46964
46975
|
throw new Ie(43);
|
|
@@ -46974,7 +46985,7 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
46974
46985
|
} } }, ct = (g, v) => {
|
|
46975
46986
|
var T = 0;
|
|
46976
46987
|
return g && (T |= 365), v && (T |= 146), T;
|
|
46977
|
-
}, Ge = null, At = {},
|
|
46988
|
+
}, Ge = null, At = {}, Ht = [], en = 1, xt = null, bn = !0, Ie = class {
|
|
46978
46989
|
constructor(g) {
|
|
46979
46990
|
this.name = "ErrnoError", this.aa = g;
|
|
46980
46991
|
}
|
|
@@ -46996,7 +47007,7 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
46996
47007
|
}
|
|
46997
47008
|
}, on = class {
|
|
46998
47009
|
constructor(g, v, T, N) {
|
|
46999
|
-
g || (g = this), this.parent = g, this.V = g.V, this.va = null, this.id =
|
|
47010
|
+
g || (g = this), this.parent = g, this.V = g.V, this.va = null, this.id = en++, this.name = v, this.mode = T, this.j = {}, this.m = {}, this.ya = N;
|
|
47000
47011
|
}
|
|
47001
47012
|
get read() {
|
|
47002
47013
|
return (this.mode & 365) === 365;
|
|
@@ -47039,13 +47050,13 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
47039
47050
|
function ai(g, v) {
|
|
47040
47051
|
for (var T = 0, N = 0; N < v.length; N++)
|
|
47041
47052
|
T = (T << 5) - T + v.charCodeAt(N) | 0;
|
|
47042
|
-
return (g + T >>> 0) %
|
|
47053
|
+
return (g + T >>> 0) % xt.length;
|
|
47043
47054
|
}
|
|
47044
47055
|
function li(g, v) {
|
|
47045
47056
|
var T = (g.mode & 61440) === 16384 ? (T = dn(g, "x")) ? T : g.j.ka ? 0 : 2 : 54;
|
|
47046
47057
|
if (T)
|
|
47047
47058
|
throw new Ie(T);
|
|
47048
|
-
for (T =
|
|
47059
|
+
for (T = xt[ai(g.id, v)]; T; T = T.fc) {
|
|
47049
47060
|
var N = T.name;
|
|
47050
47061
|
if (T.parent.id === g.id && N === v)
|
|
47051
47062
|
return T;
|
|
@@ -47053,7 +47064,7 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
47053
47064
|
return g.j.ka(g, v);
|
|
47054
47065
|
}
|
|
47055
47066
|
function $i(g, v, T, N) {
|
|
47056
|
-
return g = new on(g, v, T, N), v = ai(g.parent.id, g.name), g.fc =
|
|
47067
|
+
return g = new on(g, v, T, N), v = ai(g.parent.id, g.name), g.fc = xt[v], xt[v] = g;
|
|
47057
47068
|
}
|
|
47058
47069
|
function st(g) {
|
|
47059
47070
|
var v = ["r", "w", "rw"][g & 3];
|
|
@@ -47069,15 +47080,15 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
47069
47080
|
return 2;
|
|
47070
47081
|
return 0;
|
|
47071
47082
|
}
|
|
47072
|
-
function
|
|
47083
|
+
function bt(g, v) {
|
|
47073
47084
|
try {
|
|
47074
47085
|
return li(g, v), 20;
|
|
47075
47086
|
} catch {
|
|
47076
47087
|
}
|
|
47077
47088
|
return dn(g, "wx");
|
|
47078
47089
|
}
|
|
47079
|
-
function
|
|
47080
|
-
if (g =
|
|
47090
|
+
function jt(g) {
|
|
47091
|
+
if (g = Ht[g], !g)
|
|
47081
47092
|
throw new Ie(8);
|
|
47082
47093
|
return g;
|
|
47083
47094
|
}
|
|
@@ -47085,11 +47096,11 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
47085
47096
|
if (g = Object.assign(new pn(), g), v == -1)
|
|
47086
47097
|
e: {
|
|
47087
47098
|
for (v = 0; 4096 >= v; v++)
|
|
47088
|
-
if (!
|
|
47099
|
+
if (!Ht[v])
|
|
47089
47100
|
break e;
|
|
47090
47101
|
throw new Ie(33);
|
|
47091
47102
|
}
|
|
47092
|
-
return g.X = v,
|
|
47103
|
+
return g.X = v, Ht[v] = g;
|
|
47093
47104
|
}
|
|
47094
47105
|
function Qe(g, v = -1) {
|
|
47095
47106
|
var T, N;
|
|
@@ -47101,7 +47112,7 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
47101
47112
|
}, ba() {
|
|
47102
47113
|
throw new Ie(70);
|
|
47103
47114
|
} };
|
|
47104
|
-
function
|
|
47115
|
+
function Qt(g, v) {
|
|
47105
47116
|
At[g] = { m: v };
|
|
47106
47117
|
}
|
|
47107
47118
|
function kn(g, v) {
|
|
@@ -47121,7 +47132,7 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
47121
47132
|
var N = Mt(g, { parent: !0 }).node;
|
|
47122
47133
|
if (g = we(g), !g || g === "." || g === "..")
|
|
47123
47134
|
throw new Ie(28);
|
|
47124
|
-
var K =
|
|
47135
|
+
var K = bt(N, g);
|
|
47125
47136
|
if (K)
|
|
47126
47137
|
throw new Ie(K);
|
|
47127
47138
|
if (!N.j.ua)
|
|
@@ -47141,7 +47152,7 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
47141
47152
|
if (!T)
|
|
47142
47153
|
throw new Ie(44);
|
|
47143
47154
|
v = we(v);
|
|
47144
|
-
var N =
|
|
47155
|
+
var N = bt(T, v);
|
|
47145
47156
|
if (N)
|
|
47146
47157
|
throw new Ie(N);
|
|
47147
47158
|
if (!T.j.Da)
|
|
@@ -47213,7 +47224,7 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
47213
47224
|
var N = ct(!!v, !!T);
|
|
47214
47225
|
Wo || (Wo = 64);
|
|
47215
47226
|
var K = Wo++ << 8 | 0;
|
|
47216
|
-
|
|
47227
|
+
Qt(K, { open(ee) {
|
|
47217
47228
|
ee.seekable = !1;
|
|
47218
47229
|
}, close() {
|
|
47219
47230
|
var ee;
|
|
@@ -47260,7 +47271,7 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
47260
47271
|
const v = go.pop() || Dr.length;
|
|
47261
47272
|
return Dr[v] = g, Dr[v + 1] = 1, v;
|
|
47262
47273
|
}
|
|
47263
|
-
},
|
|
47274
|
+
}, Wt = (g) => {
|
|
47264
47275
|
var v = Error, T = fi(g, function(N) {
|
|
47265
47276
|
this.name = g, this.message = N, N = Error(N).stack, N !== void 0 && (this.stack = this.toString() + `
|
|
47266
47277
|
` + N.replace(/^Error(:[^\n]*)?\n/, ""));
|
|
@@ -47268,13 +47279,13 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
47268
47279
|
return T.prototype = Object.create(v.prototype), T.prototype.constructor = T, T.prototype.toString = function() {
|
|
47269
47280
|
return this.message === void 0 ? this.name : `${this.name}: ${this.message}`;
|
|
47270
47281
|
}, T;
|
|
47271
|
-
}, Pt,
|
|
47282
|
+
}, Pt, Bt, yt = (g) => {
|
|
47272
47283
|
for (var v = ""; Q[g]; )
|
|
47273
|
-
v +=
|
|
47284
|
+
v += Bt[Q[g++]];
|
|
47274
47285
|
return v;
|
|
47275
|
-
},
|
|
47276
|
-
for (;
|
|
47277
|
-
var g =
|
|
47286
|
+
}, zt = [], Dt = () => {
|
|
47287
|
+
for (; zt.length; ) {
|
|
47288
|
+
var g = zt.pop();
|
|
47278
47289
|
g.g.fa = !1, g.delete();
|
|
47279
47290
|
}
|
|
47280
47291
|
}, En, mn = {}, Dn = (g, v) => {
|
|
@@ -47285,7 +47296,7 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
47285
47296
|
return v;
|
|
47286
47297
|
}, Yn = {}, Jr = (g) => {
|
|
47287
47298
|
g = my(g);
|
|
47288
|
-
var v =
|
|
47299
|
+
var v = yt(g);
|
|
47289
47300
|
return bo(g), v;
|
|
47290
47301
|
}, Nr = (g, v) => {
|
|
47291
47302
|
var T = Yn[g];
|
|
@@ -47293,7 +47304,7 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
47293
47304
|
throw g = `${v} has unknown type ${Jr(g)}`, new _t(g);
|
|
47294
47305
|
return T;
|
|
47295
47306
|
}, hi = () => {
|
|
47296
|
-
}, Di = !1, Ni = (g, v, T) => v === T ? g : T.C === void 0 ? null : (g = Ni(g, v, T.C), g === null ? null : T.Mb(g)), nt = {},
|
|
47307
|
+
}, Di = !1, Ni = (g, v, T) => v === T ? g : T.C === void 0 ? null : (g = Ni(g, v, T.C), g === null ? null : T.Mb(g)), nt = {}, vt = (g, v) => (v = Dn(g, v), mn[v]), Tn, Ft = (g, v) => {
|
|
47297
47308
|
if (!v.u || !v.o)
|
|
47298
47309
|
throw new Tn("makeClassHandle requires ptr and ptrType");
|
|
47299
47310
|
if (!!v.K != !!v.F)
|
|
@@ -47469,7 +47480,7 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
47469
47480
|
var v = Uo[g];
|
|
47470
47481
|
return v || (g >= Uo.length && (Uo.length = g + 1), Uo[g] = v = Wh.get(g)), v;
|
|
47471
47482
|
}, Uh = (g, v, T = []) => (g.includes("j") ? (g = g.replace(/p/g, "i"), v = (0, p["dynCall_" + g])(v, ...T)) : v = Bl(v)(...T), v), ly = (g, v) => (...T) => Uh(g, v, T), nr = (g, v) => {
|
|
47472
|
-
g =
|
|
47483
|
+
g = yt(g);
|
|
47473
47484
|
var T = g.includes("j") ? ly(g, v) : Bl(v);
|
|
47474
47485
|
if (typeof T != "function")
|
|
47475
47486
|
throw new _t(`unknown function pointer with signature ${g}: ${v}`);
|
|
@@ -47491,22 +47502,22 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
47491
47502
|
var ee = v.length;
|
|
47492
47503
|
if (2 > ee)
|
|
47493
47504
|
throw new _t("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
47494
|
-
var he = v[1] !== null && T !== null, ge = Fl(v), Te = v[0].name !== "void", Ee = ee - 2, We = Array(Ee), gt = [],
|
|
47505
|
+
var he = v[1] !== null && T !== null, ge = Fl(v), Te = v[0].name !== "void", Ee = ee - 2, We = Array(Ee), gt = [], Et = [];
|
|
47495
47506
|
return fi(g, function(...ve) {
|
|
47496
47507
|
if (ve.length !== Ee)
|
|
47497
47508
|
throw new _t(`function ${g} called with ${ve.length} arguments, expected ${Ee}`);
|
|
47498
|
-
if (
|
|
47499
|
-
var ot = v[1].toWireType(
|
|
47509
|
+
if (Et.length = 0, gt.length = he ? 2 : 1, gt[0] = K, he) {
|
|
47510
|
+
var ot = v[1].toWireType(Et, this);
|
|
47500
47511
|
gt[1] = ot;
|
|
47501
47512
|
}
|
|
47502
47513
|
for (var ze = 0; ze < Ee; ++ze)
|
|
47503
|
-
We[ze] = v[ze + 2].toWireType(
|
|
47514
|
+
We[ze] = v[ze + 2].toWireType(Et, ve[ze]), gt.push(We[ze]);
|
|
47504
47515
|
if (ve = N(...gt), ge)
|
|
47505
|
-
yo(
|
|
47516
|
+
yo(Et);
|
|
47506
47517
|
else
|
|
47507
47518
|
for (ze = he ? 1 : 2; ze < v.length; ze++) {
|
|
47508
|
-
var
|
|
47509
|
-
v[ze].M !== null && v[ze].M(
|
|
47519
|
+
var qt = ze === 1 ? ot : We[ze - 2];
|
|
47520
|
+
v[ze].M !== null && v[ze].M(qt);
|
|
47510
47521
|
}
|
|
47511
47522
|
return ot = Te ? v[0].fromWireType(ve) : void 0, ot;
|
|
47512
47523
|
});
|
|
@@ -47639,7 +47650,7 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
47639
47650
|
return g = g.toWireType(N, T), N.length && (Ce[v >> 2] = It(N)), g;
|
|
47640
47651
|
}, wn = {}, it = (g) => {
|
|
47641
47652
|
var v = wn[g];
|
|
47642
|
-
return v === void 0 ?
|
|
47653
|
+
return v === void 0 ? yt(g) : v;
|
|
47643
47654
|
}, pt = [], rt = (g) => {
|
|
47644
47655
|
var v = pt.length;
|
|
47645
47656
|
return pt.push(g), v;
|
|
@@ -47647,7 +47658,7 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
47647
47658
|
for (var T = Array(g), N = 0; N < g; ++N)
|
|
47648
47659
|
T[N] = Nr(Ce[v + 4 * N >> 2], "parameter " + N);
|
|
47649
47660
|
return T;
|
|
47650
|
-
},
|
|
47661
|
+
}, Zt = Reflect.construct, fn = (g) => g % 4 === 0 && (g % 100 !== 0 || g % 400 === 0), Nn = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335], Qr = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334], Go = [], Hl = {}, cy = () => {
|
|
47651
47662
|
if (!Kh) {
|
|
47652
47663
|
var g = { USER: "web_user", LOGNAME: "web_user", PATH: "/", PWD: "/", HOME: "/home/web_user", LANG: (typeof navigator == "object" && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", _: _ || "./this.program" }, v;
|
|
47653
47664
|
for (v in Hl)
|
|
@@ -47671,8 +47682,8 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
47671
47682
|
function ze(sn) {
|
|
47672
47683
|
return 0 > sn ? -1 : 0 < sn ? 1 : 0;
|
|
47673
47684
|
}
|
|
47674
|
-
var
|
|
47675
|
-
return (
|
|
47685
|
+
var qt;
|
|
47686
|
+
return (qt = ze(ve.getFullYear() - ot.getFullYear())) === 0 && (qt = ze(ve.getMonth() - ot.getMonth())) === 0 && (qt = ze(ve.getDate() - ot.getDate())), qt;
|
|
47676
47687
|
}
|
|
47677
47688
|
function ge(ve) {
|
|
47678
47689
|
switch (ve.getDay()) {
|
|
@@ -47695,9 +47706,9 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
47695
47706
|
function Te(ve) {
|
|
47696
47707
|
var ot = ve.ca;
|
|
47697
47708
|
for (ve = new Date(new Date(ve.da + 1900, 0, 1).getTime()); 0 < ot; ) {
|
|
47698
|
-
var ze = ve.getMonth(),
|
|
47699
|
-
if (ot >
|
|
47700
|
-
ot -=
|
|
47709
|
+
var ze = ve.getMonth(), qt = (fn(ve.getFullYear()) ? uy : dy)[ze];
|
|
47710
|
+
if (ot > qt - ve.getDate())
|
|
47711
|
+
ot -= qt - ve.getDate() + 1, ve.setDate(1), 11 > ze ? ve.setMonth(ze + 1) : (ve.setMonth(0), ve.setFullYear(ve.getFullYear() + 1));
|
|
47701
47712
|
else {
|
|
47702
47713
|
ve.setDate(ve.getDate() + ot);
|
|
47703
47714
|
break;
|
|
@@ -47709,8 +47720,8 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
47709
47720
|
N = { qc: re[N >> 2], pc: re[N + 4 >> 2], Ea: re[N + 8 >> 2], Ra: re[N + 12 >> 2], Fa: re[N + 16 >> 2], da: re[N + 20 >> 2], S: re[N + 24 >> 2], ca: re[N + 28 >> 2], Oc: re[N + 32 >> 2], oc: re[N + 36 >> 2], rc: Ee && Ee ? Ze(Q, Ee) : "" }, T = T ? Ze(Q, T) : "", Ee = { "%c": "%a %b %d %H:%M:%S %Y", "%D": "%m/%d/%y", "%F": "%Y-%m-%d", "%h": "%b", "%r": "%I:%M:%S %p", "%R": "%H:%M", "%T": "%H:%M:%S", "%x": "%m/%d/%y", "%X": "%H:%M:%S", "%Ec": "%c", "%EC": "%C", "%Ex": "%m/%d/%y", "%EX": "%H:%M:%S", "%Ey": "%y", "%EY": "%Y", "%Od": "%d", "%Oe": "%e", "%OH": "%H", "%OI": "%I", "%Om": "%m", "%OM": "%M", "%OS": "%S", "%Ou": "%u", "%OU": "%U", "%OV": "%V", "%Ow": "%w", "%OW": "%W", "%Oy": "%y" };
|
|
47710
47721
|
for (var We in Ee)
|
|
47711
47722
|
T = T.replace(new RegExp(We, "g"), Ee[We]);
|
|
47712
|
-
var gt = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
|
|
47713
|
-
Ee = { "%a": (ve) => gt[ve.S].substring(0, 3), "%A": (ve) => gt[ve.S], "%b": (ve) =>
|
|
47723
|
+
var gt = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), Et = "January February March April May June July August September October November December".split(" ");
|
|
47724
|
+
Ee = { "%a": (ve) => gt[ve.S].substring(0, 3), "%A": (ve) => gt[ve.S], "%b": (ve) => Et[ve.Fa].substring(0, 3), "%B": (ve) => Et[ve.Fa], "%C": (ve) => ee((ve.da + 1900) / 100 | 0, 2), "%d": (ve) => ee(ve.Ra, 2), "%e": (ve) => K(ve.Ra, 2, " "), "%g": (ve) => Te(ve).toString().substring(2), "%G": Te, "%H": (ve) => ee(ve.Ea, 2), "%I": (ve) => (ve = ve.Ea, ve == 0 ? ve = 12 : 12 < ve && (ve -= 12), ee(ve, 2)), "%j": (ve) => {
|
|
47714
47725
|
for (var ot = 0, ze = 0; ze <= ve.Fa - 1; ot += (fn(ve.da + 1900) ? uy : dy)[ze++])
|
|
47715
47726
|
;
|
|
47716
47727
|
return ee(ve.Ra + ot, 3);
|
|
@@ -47736,8 +47747,8 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
47736
47747
|
};
|
|
47737
47748
|
[44].forEach((g) => {
|
|
47738
47749
|
hn[g] = new Ie(g), hn[g].stack = "<generic error, no stack>";
|
|
47739
|
-
}),
|
|
47740
|
-
hr("/dev"),
|
|
47750
|
+
}), xt = Array(4096), kn(Je, "/"), hr("/tmp"), hr("/home"), hr("/home/web_user"), function() {
|
|
47751
|
+
hr("/dev"), Qt(259, { read: () => 0, write: (N, K, ee, he) => he }), ci("/dev/null", 259), tt(1280, lt), tt(1536, St), ci("/dev/tty", 1280), ci("/dev/tty1", 1536);
|
|
47741
47752
|
var g = new Uint8Array(1024), v = 0, T = () => (v === 0 && (v = pe(g).byteLength), g[--v]);
|
|
47742
47753
|
Oi("random", T), Oi("urandom", T), hr("/dev/shm"), hr("/dev/shm/tmp");
|
|
47743
47754
|
}(), function() {
|
|
@@ -47746,7 +47757,7 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
47746
47757
|
hr("/proc/self/fd"), kn({ V() {
|
|
47747
47758
|
var v = $i(g, "fd", 16895, 73);
|
|
47748
47759
|
return v.j = { ka(T, N) {
|
|
47749
|
-
var K =
|
|
47760
|
+
var K = jt(+N);
|
|
47750
47761
|
return T = { parent: null, V: { mb: "fake" }, j: { ma: () => K.path } }, T.parent = T;
|
|
47751
47762
|
} }, v;
|
|
47752
47763
|
} }, "/proc/self/fd");
|
|
@@ -47754,16 +47765,16 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
47754
47765
|
constructor(g) {
|
|
47755
47766
|
super(g), this.name = "BindingError";
|
|
47756
47767
|
}
|
|
47757
|
-
}, Dr.push(0, 1, void 0, 1, null, 1, !0, 1, !1, 1), p.count_emval_handles = () => Dr.length / 2 - 5 - go.length, Pt = p.PureVirtualError =
|
|
47768
|
+
}, Dr.push(0, 1, void 0, 1, null, 1, !0, 1, !1, 1), p.count_emval_handles = () => Dr.length / 2 - 5 - go.length, Pt = p.PureVirtualError = Wt("PureVirtualError");
|
|
47758
47769
|
for (var hy = Array(256), Tu = 0; 256 > Tu; ++Tu)
|
|
47759
47770
|
hy[Tu] = String.fromCharCode(Tu);
|
|
47760
|
-
|
|
47771
|
+
Bt = hy, p.getInheritedInstanceCount = () => Object.keys(mn).length, p.getLiveInheritedInstances = () => {
|
|
47761
47772
|
var g = [], v;
|
|
47762
47773
|
for (v in mn)
|
|
47763
47774
|
mn.hasOwnProperty(v) && g.push(mn[v]);
|
|
47764
47775
|
return g;
|
|
47765
47776
|
}, p.flushPendingDeletes = Dt, p.setDelayFunction = (g) => {
|
|
47766
|
-
En = g,
|
|
47777
|
+
En = g, zt.length && En && En(Dt);
|
|
47767
47778
|
}, Tn = p.InternalError = class extends Error {
|
|
47768
47779
|
constructor(g) {
|
|
47769
47780
|
super(g), this.name = "InternalError";
|
|
@@ -47795,7 +47806,7 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
47795
47806
|
}, deleteLater: function() {
|
|
47796
47807
|
if (this.g.o || Bs(this), this.g.fa && !this.g.ia)
|
|
47797
47808
|
throw new _t("Object already scheduled for deletion");
|
|
47798
|
-
return
|
|
47809
|
+
return zt.push(this), zt.length === 1 && En && En(Dt), this.g.fa = !0, this;
|
|
47799
47810
|
} }), Object.assign(Pl.prototype, { Sb(g) {
|
|
47800
47811
|
return this.rb && (g = this.rb(g)), g;
|
|
47801
47812
|
}, bb(g) {
|
|
@@ -47803,30 +47814,30 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
47803
47814
|
(v = this.P) == null || v.call(this, g);
|
|
47804
47815
|
}, argPackAdvance: 8, readValueFromPointer: Wi, fromWireType: function(g) {
|
|
47805
47816
|
function v() {
|
|
47806
|
-
return this.ta ?
|
|
47817
|
+
return this.ta ? Ft(this.i.N, { u: this.ic, o: T, K: this, F: g }) : Ft(this.i.N, { u: this, o: g });
|
|
47807
47818
|
}
|
|
47808
47819
|
var T = this.Sb(g);
|
|
47809
47820
|
if (!T)
|
|
47810
47821
|
return this.bb(g), null;
|
|
47811
|
-
var N =
|
|
47822
|
+
var N = vt(this.i, T);
|
|
47812
47823
|
if (N !== void 0)
|
|
47813
47824
|
return N.g.count.value === 0 ? (N.g.o = T, N.g.F = g, N.clone()) : (N = N.clone(), this.bb(g), N);
|
|
47814
47825
|
if (N = this.i.Rb(T), N = nt[N], !N)
|
|
47815
47826
|
return v.call(this);
|
|
47816
47827
|
N = this.sa ? N.Ib : N.pointerType;
|
|
47817
47828
|
var K = Ni(T, this.i, N.i);
|
|
47818
|
-
return K === null ? v.call(this) : this.ta ?
|
|
47819
|
-
} }), Gh = p.UnboundTypeError =
|
|
47829
|
+
return K === null ? v.call(this) : this.ta ? Ft(N.i.N, { u: N, o: K, K: this, F: g }) : Ft(N.i.N, { u: N, o: K });
|
|
47830
|
+
} }), Gh = p.UnboundTypeError = Wt("UnboundTypeError");
|
|
47820
47831
|
var py = { __syscall_fcntl64: function(g, v, T) {
|
|
47821
47832
|
_i = T;
|
|
47822
47833
|
try {
|
|
47823
|
-
var N =
|
|
47834
|
+
var N = jt(g);
|
|
47824
47835
|
switch (v) {
|
|
47825
47836
|
case 0:
|
|
47826
47837
|
var K = b();
|
|
47827
47838
|
if (0 > K)
|
|
47828
47839
|
break;
|
|
47829
|
-
for (;
|
|
47840
|
+
for (; Ht[K]; )
|
|
47830
47841
|
K++;
|
|
47831
47842
|
return Qe(N, K).X;
|
|
47832
47843
|
case 1:
|
|
@@ -47851,7 +47862,7 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
47851
47862
|
}, __syscall_ioctl: function(g, v, T) {
|
|
47852
47863
|
_i = T;
|
|
47853
47864
|
try {
|
|
47854
|
-
var N =
|
|
47865
|
+
var N = jt(g);
|
|
47855
47866
|
switch (v) {
|
|
47856
47867
|
case 21509:
|
|
47857
47868
|
return N.s ? 0 : -59;
|
|
@@ -47909,7 +47920,7 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
47909
47920
|
if (K.charAt(0) === "/")
|
|
47910
47921
|
v = K;
|
|
47911
47922
|
else {
|
|
47912
|
-
var ee = g === -100 ? "/" :
|
|
47923
|
+
var ee = g === -100 ? "/" : jt(g).path;
|
|
47913
47924
|
if (K.length == 0)
|
|
47914
47925
|
throw new Ie(44);
|
|
47915
47926
|
v = q(ee + "/" + K);
|
|
@@ -47924,7 +47935,7 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
47924
47935
|
}, _abort_js: () => {
|
|
47925
47936
|
se("");
|
|
47926
47937
|
}, _embind_create_inheriting_constructor: (g, v, T) => {
|
|
47927
|
-
g =
|
|
47938
|
+
g = yt(g), v = Nr(v, "wrapper"), T = Ar(T);
|
|
47928
47939
|
var N = v.i, K = N.N, ee = N.C.N, he = N.C.constructor;
|
|
47929
47940
|
return g = fi(g, function(...ge) {
|
|
47930
47941
|
N.C.qb.forEach((function(Te) {
|
|
@@ -47956,10 +47967,10 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
47956
47967
|
Rn([g], ee, (he) => {
|
|
47957
47968
|
var ge = {};
|
|
47958
47969
|
return K.forEach((Te, Ee) => {
|
|
47959
|
-
var We = he[Ee], gt = Te.Tb,
|
|
47960
|
-
ge[Te.Pb] = { read: (
|
|
47970
|
+
var We = he[Ee], gt = Te.Tb, Et = Te.Ub, ve = he[Ee + K.length], ot = Te.kc, ze = Te.mc;
|
|
47971
|
+
ge[Te.Pb] = { read: (qt) => We.fromWireType(gt(Et, qt)), write: (qt, sn) => {
|
|
47961
47972
|
var mt = [];
|
|
47962
|
-
ot(ze,
|
|
47973
|
+
ot(ze, qt, ve.toWireType(mt, sn)), yo(mt);
|
|
47963
47974
|
} };
|
|
47964
47975
|
}), [{ name: v.name, fromWireType: (Te) => {
|
|
47965
47976
|
var Ee = {}, We;
|
|
@@ -47978,23 +47989,23 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
47978
47989
|
});
|
|
47979
47990
|
}, _embind_register_bigint: () => {
|
|
47980
47991
|
}, _embind_register_bool: (g, v, T, N) => {
|
|
47981
|
-
v =
|
|
47992
|
+
v = yt(v), Hr(g, { name: v, fromWireType: function(K) {
|
|
47982
47993
|
return !!K;
|
|
47983
47994
|
}, toWireType: function(K, ee) {
|
|
47984
47995
|
return ee ? T : N;
|
|
47985
47996
|
}, argPackAdvance: 8, readValueFromPointer: function(K) {
|
|
47986
47997
|
return this.fromWireType(Q[K]);
|
|
47987
47998
|
}, M: null });
|
|
47988
|
-
}, _embind_register_class: (g, v, T, N, K, ee, he, ge, Te, Ee, We, gt,
|
|
47989
|
-
We =
|
|
47999
|
+
}, _embind_register_class: (g, v, T, N, K, ee, he, ge, Te, Ee, We, gt, Et) => {
|
|
48000
|
+
We = yt(We), ee = nr(K, ee), ge && (ge = nr(he, ge)), Ee && (Ee = nr(Te, Ee)), Et = nr(gt, Et);
|
|
47990
48001
|
var ve = jh(We);
|
|
47991
48002
|
Dl(ve, function() {
|
|
47992
48003
|
Ui(`Cannot construct ${We} due to unbound types`, [N]);
|
|
47993
48004
|
}), Rn([g, v, T], N ? [N] : [], (ot) => {
|
|
47994
48005
|
if (ot = ot[0], N)
|
|
47995
|
-
var ze = ot.i,
|
|
48006
|
+
var ze = ot.i, qt = ze.N;
|
|
47996
48007
|
else
|
|
47997
|
-
|
|
48008
|
+
qt = pi.prototype;
|
|
47998
48009
|
ot = fi(We, function(...sr) {
|
|
47999
48010
|
if (Object.getPrototypeOf(this) !== sn)
|
|
48000
48011
|
throw new _t("Use 'new' to construct " + We);
|
|
@@ -48005,18 +48016,18 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
48005
48016
|
throw new _t(`Tried to invoke ctor of ${We} with invalid number of parameters (${sr.length}) - expected (${Object.keys(mt.$).toString()}) parameters instead!`);
|
|
48006
48017
|
return ei.apply(this, sr);
|
|
48007
48018
|
});
|
|
48008
|
-
var sn = Object.create(
|
|
48019
|
+
var sn = Object.create(qt, { constructor: { value: ot } });
|
|
48009
48020
|
ot.prototype = sn;
|
|
48010
|
-
var mt = new Nl(We, ot, sn,
|
|
48021
|
+
var mt = new Nl(We, ot, sn, Et, ze, ee, ge, Ee);
|
|
48011
48022
|
if (mt.C) {
|
|
48012
48023
|
var xn;
|
|
48013
48024
|
(xn = mt.C).oa ?? (xn.oa = []), mt.C.oa.push(mt);
|
|
48014
48025
|
}
|
|
48015
|
-
return ze = new Pl(We, mt, !0, !1, !1), xn = new Pl(We + "*", mt, !1, !1, !1),
|
|
48026
|
+
return ze = new Pl(We, mt, !0, !1, !1), xn = new Pl(We + "*", mt, !1, !1, !1), qt = new Pl(We + " const*", mt, !1, !0, !1), nt[g] = { pointerType: xn, Ib: qt }, Su(ve, ot), [ze, xn, qt];
|
|
48016
48027
|
});
|
|
48017
48028
|
}, _embind_register_class_class_function: (g, v, T, N, K, ee, he) => {
|
|
48018
48029
|
var ge = Fs(T, N);
|
|
48019
|
-
v =
|
|
48030
|
+
v = yt(v), v = Ra(v), ee = nr(K, ee), Rn([], [g], (Te) => {
|
|
48020
48031
|
function Ee() {
|
|
48021
48032
|
Ui(`Cannot call ${We} due to unbound types`, ge);
|
|
48022
48033
|
}
|
|
@@ -48024,15 +48035,15 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
48024
48035
|
var We = `${Te.name}.${v}`;
|
|
48025
48036
|
v.startsWith("@@") && (v = Symbol[v.substring(2)]);
|
|
48026
48037
|
var gt = Te.i.constructor;
|
|
48027
|
-
return gt[v] === void 0 ? (Ee.ea = T - 1, gt[v] = Ee) : (vo(gt, v, We), gt[v].A[T - 1] = Ee), Rn([], ge, (
|
|
48028
|
-
if (
|
|
48038
|
+
return gt[v] === void 0 ? (Ee.ea = T - 1, gt[v] = Ee) : (vo(gt, v, We), gt[v].A[T - 1] = Ee), Rn([], ge, (Et) => {
|
|
48039
|
+
if (Et = Vl(We, [Et[0], null].concat(Et.slice(1)), null, ee, he), gt[v].A === void 0 ? (Et.ea = T - 1, gt[v] = Et) : gt[v].A[T - 1] = Et, Te.i.oa)
|
|
48029
48040
|
for (const ve of Te.i.oa)
|
|
48030
|
-
ve.constructor.hasOwnProperty(v) || (ve.constructor[v] =
|
|
48041
|
+
ve.constructor.hasOwnProperty(v) || (ve.constructor[v] = Et);
|
|
48031
48042
|
return [];
|
|
48032
48043
|
}), [];
|
|
48033
48044
|
});
|
|
48034
48045
|
}, _embind_register_class_class_property: (g, v, T, N, K, ee, he, ge) => {
|
|
48035
|
-
v =
|
|
48046
|
+
v = yt(v), ee = nr(K, ee), Rn([], [g], (Te) => {
|
|
48036
48047
|
Te = Te[0];
|
|
48037
48048
|
var Ee = `${Te.name}.${v}`, We = { get() {
|
|
48038
48049
|
Ui(`Cannot access ${Ee} due to unbound types`, [T]);
|
|
@@ -48043,13 +48054,13 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
48043
48054
|
throw new _t(`${Ee} is a read-only property`);
|
|
48044
48055
|
}, Object.defineProperty(Te.i.constructor, v, We), Rn([], [T], (gt) => {
|
|
48045
48056
|
gt = gt[0];
|
|
48046
|
-
var
|
|
48057
|
+
var Et = { get() {
|
|
48047
48058
|
return gt.fromWireType(ee(N));
|
|
48048
48059
|
}, enumerable: !0 };
|
|
48049
|
-
return ge && (ge = nr(he, ge),
|
|
48060
|
+
return ge && (ge = nr(he, ge), Et.set = (ve) => {
|
|
48050
48061
|
var ot = [];
|
|
48051
48062
|
ge(N, gt.toWireType(ot, ve)), yo(ot);
|
|
48052
|
-
}), Object.defineProperty(Te.i.constructor, v,
|
|
48063
|
+
}), Object.defineProperty(Te.i.constructor, v, Et), [];
|
|
48053
48064
|
}), [];
|
|
48054
48065
|
});
|
|
48055
48066
|
}, _embind_register_class_constructor: (g, v, T, N, K, ee) => {
|
|
@@ -48065,35 +48076,35 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
48065
48076
|
});
|
|
48066
48077
|
}, _embind_register_class_function: (g, v, T, N, K, ee, he, ge) => {
|
|
48067
48078
|
var Te = Fs(T, N);
|
|
48068
|
-
v =
|
|
48079
|
+
v = yt(v), v = Ra(v), ee = nr(K, ee), Rn([], [g], (Ee) => {
|
|
48069
48080
|
function We() {
|
|
48070
48081
|
Ui(`Cannot call ${gt} due to unbound types`, Te);
|
|
48071
48082
|
}
|
|
48072
48083
|
Ee = Ee[0];
|
|
48073
48084
|
var gt = `${Ee.name}.${v}`;
|
|
48074
48085
|
v.startsWith("@@") && (v = Symbol[v.substring(2)]), ge && Ee.i.qb.push(v);
|
|
48075
|
-
var
|
|
48076
|
-
return ve === void 0 || ve.A === void 0 && ve.className !== Ee.name && ve.ea === T - 2 ? (We.ea = T - 2, We.className = Ee.name,
|
|
48086
|
+
var Et = Ee.i.N, ve = Et[v];
|
|
48087
|
+
return ve === void 0 || ve.A === void 0 && ve.className !== Ee.name && ve.ea === T - 2 ? (We.ea = T - 2, We.className = Ee.name, Et[v] = We) : (vo(Et, v, gt), Et[v].A[T - 2] = We), Rn([], Te, (ot) => (ot = Vl(gt, ot, Ee, ee, he), Et[v].A === void 0 ? (ot.ea = T - 2, Et[v] = ot) : Et[v].A[T - 2] = ot, [])), [];
|
|
48077
48088
|
});
|
|
48078
48089
|
}, _embind_register_class_property: (g, v, T, N, K, ee, he, ge, Te, Ee) => {
|
|
48079
|
-
v =
|
|
48090
|
+
v = yt(v), K = nr(N, K), Rn([], [g], (We) => {
|
|
48080
48091
|
We = We[0];
|
|
48081
|
-
var gt = `${We.name}.${v}`,
|
|
48092
|
+
var gt = `${We.name}.${v}`, Et = { get() {
|
|
48082
48093
|
Ui(`Cannot access ${gt} due to unbound types`, [T, he]);
|
|
48083
48094
|
}, enumerable: !0, configurable: !0 };
|
|
48084
|
-
return
|
|
48095
|
+
return Et.set = Te ? () => Ui(`Cannot access ${gt} due to unbound types`, [T, he]) : () => {
|
|
48085
48096
|
throw new _t(gt + " is a read-only property");
|
|
48086
|
-
}, Object.defineProperty(We.i.N, v,
|
|
48097
|
+
}, Object.defineProperty(We.i.N, v, Et), Rn([], Te ? [T, he] : [T], (ve) => {
|
|
48087
48098
|
var ot = ve[0], ze = { get() {
|
|
48088
48099
|
var sn = Ma(this, We, gt + " getter");
|
|
48089
48100
|
return ot.fromWireType(K(ee, sn));
|
|
48090
48101
|
}, enumerable: !0 };
|
|
48091
48102
|
if (Te) {
|
|
48092
48103
|
Te = nr(ge, Te);
|
|
48093
|
-
var
|
|
48104
|
+
var qt = ve[1];
|
|
48094
48105
|
ze.set = function(sn) {
|
|
48095
48106
|
var mt = Ma(this, We, gt + " setter"), xn = [];
|
|
48096
|
-
Te(Ee, mt,
|
|
48107
|
+
Te(Ee, mt, qt.toWireType(xn, sn)), yo(xn);
|
|
48097
48108
|
};
|
|
48098
48109
|
}
|
|
48099
48110
|
return Object.defineProperty(We.i.N, v, ze), [];
|
|
@@ -48102,22 +48113,22 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
48102
48113
|
}, _embind_register_emval: (g) => Hr(g, Ia), _embind_register_enum: (g, v, T, N) => {
|
|
48103
48114
|
function K() {
|
|
48104
48115
|
}
|
|
48105
|
-
v =
|
|
48116
|
+
v = yt(v), K.values = {}, Hr(g, { name: v, constructor: K, fromWireType: function(ee) {
|
|
48106
48117
|
return this.constructor.values[ee];
|
|
48107
48118
|
}, toWireType: (ee, he) => he.value, argPackAdvance: 8, readValueFromPointer: Au(v, T, N), M: null }), Dl(v, K);
|
|
48108
48119
|
}, _embind_register_enum_value: (g, v, T) => {
|
|
48109
48120
|
var N = Nr(g, "enum");
|
|
48110
|
-
v =
|
|
48121
|
+
v = yt(v), g = N.constructor, N = Object.create(N.constructor.prototype, { value: { value: T }, constructor: { value: fi(`${N.name}_${v}`, function() {
|
|
48111
48122
|
}) } }), g.values[T] = N, g[v] = N;
|
|
48112
48123
|
}, _embind_register_float: (g, v, T) => {
|
|
48113
|
-
v =
|
|
48124
|
+
v = yt(v), Hr(g, { name: v, fromWireType: (N) => N, toWireType: (N, K) => K, argPackAdvance: 8, readValueFromPointer: ue(v, T), M: null });
|
|
48114
48125
|
}, _embind_register_function: (g, v, T, N, K, ee) => {
|
|
48115
48126
|
var he = Fs(v, T);
|
|
48116
|
-
g =
|
|
48127
|
+
g = yt(g), g = Ra(g), K = nr(N, K), Dl(g, function() {
|
|
48117
48128
|
Ui(`Cannot call ${g} due to unbound types`, he);
|
|
48118
48129
|
}, v - 1), Rn([], he, (ge) => (Su(g, Vl(g, [ge[0], null].concat(ge.slice(1)), null, K, ee), v - 1), []));
|
|
48119
48130
|
}, _embind_register_integer: (g, v, T, N, K) => {
|
|
48120
|
-
if (v =
|
|
48131
|
+
if (v = yt(v), K === -1 && (K = 4294967295), K = (ge) => ge, N === 0) {
|
|
48121
48132
|
var ee = 32 - 8 * T;
|
|
48122
48133
|
K = (ge) => ge << ee >>> ee;
|
|
48123
48134
|
}
|
|
@@ -48132,9 +48143,9 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
48132
48143
|
return new K(z.buffer, Ce[ee + 4 >> 2], Ce[ee >> 2]);
|
|
48133
48144
|
}
|
|
48134
48145
|
var K = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array][v];
|
|
48135
|
-
T =
|
|
48146
|
+
T = yt(T), Hr(g, { name: T, fromWireType: N, argPackAdvance: 8, readValueFromPointer: N }, { Wb: !0 });
|
|
48136
48147
|
}, _embind_register_std_string: (g, v) => {
|
|
48137
|
-
v =
|
|
48148
|
+
v = yt(v);
|
|
48138
48149
|
var T = v === "std::string";
|
|
48139
48150
|
Hr(g, { name: v, fromWireType: function(N) {
|
|
48140
48151
|
var K = Ce[N >> 2], ee = N + 4;
|
|
@@ -48160,7 +48171,7 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
48160
48171
|
var ee = typeof K == "string";
|
|
48161
48172
|
if (!(ee || K instanceof Uint8Array || K instanceof Uint8ClampedArray || K instanceof Int8Array))
|
|
48162
48173
|
throw new _t("Cannot pass non-string to std::string");
|
|
48163
|
-
var he = T && ee ?
|
|
48174
|
+
var he = T && ee ? Yt(K) : K.length, ge = qh(4 + he + 1), Te = ge + 4;
|
|
48164
48175
|
if (Ce[ge >> 2] = he, T && ee)
|
|
48165
48176
|
Lt(K, Q, Te, he + 1);
|
|
48166
48177
|
else if (ee)
|
|
@@ -48178,14 +48189,14 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
48178
48189
|
bo(N);
|
|
48179
48190
|
} });
|
|
48180
48191
|
}, _embind_register_std_wstring: (g, v, T) => {
|
|
48181
|
-
if (T =
|
|
48192
|
+
if (T = yt(T), v === 2)
|
|
48182
48193
|
var N = Ke, K = Pe, ee = Ue, he = (ge) => oe[ge >> 1];
|
|
48183
48194
|
else
|
|
48184
48195
|
v === 4 && (N = Ve, K = et, ee = Ye, he = (ge) => Ce[ge >> 2]);
|
|
48185
48196
|
Hr(g, { name: T, fromWireType: (ge) => {
|
|
48186
48197
|
for (var Te = Ce[ge >> 2], Ee, We = ge + 4, gt = 0; gt <= Te; ++gt) {
|
|
48187
|
-
var
|
|
48188
|
-
(gt == Te || he(
|
|
48198
|
+
var Et = ge + 4 + gt * v;
|
|
48199
|
+
(gt == Te || he(Et) == 0) && (We = N(We, Et - We), Ee === void 0 ? Ee = We : (Ee += String.fromCharCode(0), Ee += We), We = Et + v);
|
|
48189
48200
|
}
|
|
48190
48201
|
return bo(ge), Ee;
|
|
48191
48202
|
}, toWireType: (ge, Te) => {
|
|
@@ -48197,11 +48208,11 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
48197
48208
|
bo(ge);
|
|
48198
48209
|
} });
|
|
48199
48210
|
}, _embind_register_value_object: (g, v, T, N, K, ee) => {
|
|
48200
|
-
Ps[g] = { name:
|
|
48211
|
+
Ps[g] = { name: yt(v), Oa: nr(T, N), P: nr(K, ee), fb: [] };
|
|
48201
48212
|
}, _embind_register_value_object_field: (g, v, T, N, K, ee, he, ge, Te, Ee) => {
|
|
48202
|
-
Ps[g].fb.push({ Pb:
|
|
48213
|
+
Ps[g].fb.push({ Pb: yt(v), Vb: T, Tb: nr(N, K), Ub: ee, lc: he, kc: nr(ge, Te), mc: Ee });
|
|
48203
48214
|
}, _embind_register_void: (g, v) => {
|
|
48204
|
-
v =
|
|
48215
|
+
v = yt(v), Hr(g, { Jc: !0, name: v, argPackAdvance: 0, fromWireType: () => {
|
|
48205
48216
|
}, toWireType: () => {
|
|
48206
48217
|
} });
|
|
48207
48218
|
}, _emscripten_get_now_is_monotonic: () => 1, _emscripten_memcpy_js: (g, v, T) => Q.copyWithin(g, v, v + T), _emscripten_throw_longjmp: () => {
|
|
@@ -48213,7 +48224,7 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
48213
48224
|
return v = `methodCaller<(${N.map((he) => he.name).join(", ")}) => ${K.name}>`, rt(fi(v, (he, ge, Te, Ee) => {
|
|
48214
48225
|
for (var We = 0, gt = 0; gt < g; ++gt)
|
|
48215
48226
|
ee[gt] = N[gt].readValueFromPointer(Ee + We), We += N[gt].argPackAdvance;
|
|
48216
|
-
return he = T === 1 ?
|
|
48227
|
+
return he = T === 1 ? Zt(ge, ee) : ge.apply(he, ee), Tt(K, Te, he);
|
|
48217
48228
|
}));
|
|
48218
48229
|
}, _emval_get_module_property: (g) => (g = it(g), It(p[g])), _emval_get_property: (g, v) => (g = Ar(g), v = Ar(v), It(g[v])), _emval_incref: (g) => {
|
|
48219
48230
|
9 < g && (Dr[g + 1] += 1);
|
|
@@ -48278,7 +48289,7 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
48278
48289
|
return T.forEach((K) => N += K.length + 1), Ce[v >> 2] = N, 0;
|
|
48279
48290
|
}, fd_close: function(g) {
|
|
48280
48291
|
try {
|
|
48281
|
-
var v =
|
|
48292
|
+
var v = jt(g);
|
|
48282
48293
|
if (v.X === null)
|
|
48283
48294
|
throw new Ie(8);
|
|
48284
48295
|
v.La && (v.La = null);
|
|
@@ -48287,7 +48298,7 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
48287
48298
|
} catch (T) {
|
|
48288
48299
|
throw T;
|
|
48289
48300
|
} finally {
|
|
48290
|
-
|
|
48301
|
+
Ht[v.X] = null;
|
|
48291
48302
|
}
|
|
48292
48303
|
return v.X = null, 0;
|
|
48293
48304
|
} catch (T) {
|
|
@@ -48298,7 +48309,7 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
48298
48309
|
}, fd_read: function(g, v, T, N) {
|
|
48299
48310
|
try {
|
|
48300
48311
|
e: {
|
|
48301
|
-
var K =
|
|
48312
|
+
var K = jt(g);
|
|
48302
48313
|
g = v;
|
|
48303
48314
|
for (var ee, he = v = 0; he < T; he++) {
|
|
48304
48315
|
var ge = Ce[g >> 2], Te = Ce[g + 4 >> 2];
|
|
@@ -48314,13 +48325,13 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
48314
48325
|
throw new Ie(31);
|
|
48315
48326
|
if (!Ee.m.read)
|
|
48316
48327
|
throw new Ie(28);
|
|
48317
|
-
var
|
|
48318
|
-
if (!
|
|
48328
|
+
var Et = typeof We < "u";
|
|
48329
|
+
if (!Et)
|
|
48319
48330
|
We = Ee.position;
|
|
48320
48331
|
else if (!Ee.seekable)
|
|
48321
48332
|
throw new Ie(70);
|
|
48322
48333
|
var ve = Ee.m.read(Ee, gt, ge, Te, We);
|
|
48323
|
-
|
|
48334
|
+
Et || (Ee.position += ve);
|
|
48324
48335
|
var ot = ve;
|
|
48325
48336
|
if (0 > ot) {
|
|
48326
48337
|
var ze = -1;
|
|
@@ -48333,17 +48344,17 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
48333
48344
|
ze = v;
|
|
48334
48345
|
}
|
|
48335
48346
|
return Ce[N >> 2] = ze, 0;
|
|
48336
|
-
} catch (
|
|
48337
|
-
if (typeof Zr > "u" ||
|
|
48338
|
-
throw
|
|
48339
|
-
return
|
|
48347
|
+
} catch (qt) {
|
|
48348
|
+
if (typeof Zr > "u" || qt.name !== "ErrnoError")
|
|
48349
|
+
throw qt;
|
|
48350
|
+
return qt.aa;
|
|
48340
48351
|
}
|
|
48341
48352
|
}, fd_seek: function(g, v, T, N, K) {
|
|
48342
48353
|
v = T + 2097152 >>> 0 < 4194305 - !!v ? (v >>> 0) + 4294967296 * T : NaN;
|
|
48343
48354
|
try {
|
|
48344
48355
|
if (isNaN(v))
|
|
48345
48356
|
return 61;
|
|
48346
|
-
var ee =
|
|
48357
|
+
var ee = jt(g);
|
|
48347
48358
|
return Ns(ee, v, N), ke = [ee.position >>> 0, (be = ee.position, 1 <= +Math.abs(be) ? 0 < be ? +Math.floor(be / 4294967296) >>> 0 : ~~+Math.ceil((be - +(~~be >>> 0)) / 4294967296) >>> 0 : 0)], re[K >> 2] = ke[0], re[K + 4 >> 2] = ke[1], ee.La && v === 0 && N === 0 && (ee.La = null), 0;
|
|
48348
48359
|
} catch (he) {
|
|
48349
48360
|
if (typeof Zr > "u" || he.name !== "ErrnoError")
|
|
@@ -48353,13 +48364,13 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
48353
48364
|
}, fd_write: function(g, v, T, N) {
|
|
48354
48365
|
try {
|
|
48355
48366
|
e: {
|
|
48356
|
-
var K =
|
|
48367
|
+
var K = jt(g);
|
|
48357
48368
|
g = v;
|
|
48358
48369
|
for (var ee, he = v = 0; he < T; he++) {
|
|
48359
48370
|
var ge = Ce[g >> 2], Te = Ce[g + 4 >> 2];
|
|
48360
48371
|
g += 8;
|
|
48361
|
-
var Ee = K, We = ge, gt = Te,
|
|
48362
|
-
if (0 > gt || 0 >
|
|
48372
|
+
var Ee = K, We = ge, gt = Te, Et = ee, ve = z;
|
|
48373
|
+
if (0 > gt || 0 > Et)
|
|
48363
48374
|
throw new Ie(28);
|
|
48364
48375
|
if (Ee.X === null)
|
|
48365
48376
|
throw new Ie(8);
|
|
@@ -48370,19 +48381,19 @@ var i5 = {}, o5 = { exports: {} };
|
|
|
48370
48381
|
if (!Ee.m.write)
|
|
48371
48382
|
throw new Ie(28);
|
|
48372
48383
|
Ee.seekable && Ee.flags & 1024 && Ns(Ee, 0, 2);
|
|
48373
|
-
var ot = typeof
|
|
48384
|
+
var ot = typeof Et < "u";
|
|
48374
48385
|
if (!ot)
|
|
48375
|
-
|
|
48386
|
+
Et = Ee.position;
|
|
48376
48387
|
else if (!Ee.seekable)
|
|
48377
48388
|
throw new Ie(70);
|
|
48378
|
-
var ze = Ee.m.write(Ee, ve, We, gt,
|
|
48389
|
+
var ze = Ee.m.write(Ee, ve, We, gt, Et, void 0);
|
|
48379
48390
|
ot || (Ee.position += ze);
|
|
48380
|
-
var
|
|
48381
|
-
if (0 >
|
|
48391
|
+
var qt = ze;
|
|
48392
|
+
if (0 > qt) {
|
|
48382
48393
|
var sn = -1;
|
|
48383
48394
|
break e;
|
|
48384
48395
|
}
|
|
48385
|
-
v +=
|
|
48396
|
+
v += qt, typeof ee < "u" && (ee += qt);
|
|
48386
48397
|
}
|
|
48387
48398
|
sn = v;
|
|
48388
48399
|
}
|
|
@@ -49657,8 +49668,8 @@ To resolve, you may need to:`,
|
|
|
49657
49668
|
} else {
|
|
49658
49669
|
var dt = this.artboard.stateMachineByName(b[Se]);
|
|
49659
49670
|
if (dt) {
|
|
49660
|
-
var
|
|
49661
|
-
this.stateMachines.push(
|
|
49671
|
+
var Yt = new _(dt, this.runtime, S, this.artboard);
|
|
49672
|
+
this.stateMachines.push(Yt);
|
|
49662
49673
|
}
|
|
49663
49674
|
}
|
|
49664
49675
|
}
|
|
@@ -50217,13 +50228,13 @@ To resolve, you may need to:`,
|
|
|
50217
50228
|
}, D.prototype.onSystemAudioChanged = function() {
|
|
50218
50229
|
this.volume = this._volume;
|
|
50219
50230
|
}, D.prototype.init = function(b) {
|
|
50220
|
-
var S = this, q = b.src, le = b.buffer, we = b.riveFile, Se = b.animations, pe = b.stateMachines, Ne = b.artboard, Ae = b.autoplay, Ze = Ae === void 0 ? !1 : Ae, dt = b.useOffscreenRenderer,
|
|
50231
|
+
var S = this, q = b.src, le = b.buffer, we = b.riveFile, Se = b.animations, pe = b.stateMachines, Ne = b.artboard, Ae = b.autoplay, Ze = Ae === void 0 ? !1 : Ae, dt = b.useOffscreenRenderer, Yt = dt === void 0 ? !1 : dt, Lt = b.autoBind, te = Lt === void 0 ? !1 : Lt;
|
|
50221
50232
|
if (!this.destroyed) {
|
|
50222
50233
|
if (this.src = q, this.buffer = le, this.riveFile = we, !this.src && !this.buffer && !this.riveFile)
|
|
50223
50234
|
throw new p(D.missingErrorMessage);
|
|
50224
50235
|
var je = ie(Se), tt = ie(pe);
|
|
50225
50236
|
this.loaded = !1, this.readyForPlaying = !1, O.awaitInstance().then(function(ft) {
|
|
50226
|
-
S.destroyed || (S.runtime = ft, S.removeRiveListeners(), S.deleteRiveRenderer(), S.renderer = S.runtime.makeRenderer(S.canvas,
|
|
50237
|
+
S.destroyed || (S.runtime = ft, S.removeRiveListeners(), S.deleteRiveRenderer(), S.renderer = S.runtime.makeRenderer(S.canvas, Yt), S.canvas.width || S.canvas.height || S.resizeDrawingSurfaceToCanvas(), S.initData(Ne, je, tt, Ze, te).then(function(lt) {
|
|
50227
50238
|
if (lt)
|
|
50228
50239
|
return S.setupRiveListeners();
|
|
50229
50240
|
}).catch(function(lt) {
|
|
@@ -50347,8 +50358,8 @@ To resolve, you may need to:`,
|
|
|
50347
50358
|
}
|
|
50348
50359
|
for (var Ze = this.animator.stateMachines.filter(function(At) {
|
|
50349
50360
|
return At.playing;
|
|
50350
|
-
}), dt = 0,
|
|
50351
|
-
var Lt =
|
|
50361
|
+
}), dt = 0, Yt = Ze; dt < Yt.length; dt++) {
|
|
50362
|
+
var Lt = Yt[dt], te = Lt.reportedEventCount();
|
|
50352
50363
|
if (te)
|
|
50353
50364
|
for (var je = 0; je < te; je++) {
|
|
50354
50365
|
var tt = Lt.reportedEventAt(je);
|
|
@@ -50358,8 +50369,8 @@ To resolve, you may need to:`,
|
|
|
50358
50369
|
type: x.RiveEvent,
|
|
50359
50370
|
data: tt
|
|
50360
50371
|
}), this.automaticallyHandleEvents) {
|
|
50361
|
-
var ft = document.createElement("a"), lt = tt, St = lt.url,
|
|
50362
|
-
St && ft.setAttribute("href", Je),
|
|
50372
|
+
var ft = document.createElement("a"), lt = tt, St = lt.url, wt = lt.target, Je = (0, c.sanitizeUrl)(St);
|
|
50373
|
+
St && ft.setAttribute("href", Je), wt && ft.setAttribute("target", wt), Je && Je !== c.BLANK_URL && ft.click();
|
|
50363
50374
|
}
|
|
50364
50375
|
} else
|
|
50365
50376
|
this.eventManager.fire({
|
|
@@ -50740,8 +50751,8 @@ To resolve, you may need to:`,
|
|
|
50740
50751
|
le.animations.push(Se.name);
|
|
50741
50752
|
}
|
|
50742
50753
|
for (var pe = 0; pe < q.stateMachineCount(); pe++) {
|
|
50743
|
-
for (var Ne = q.stateMachineByIndex(pe), Ae = Ne.name, Ze = new this.runtime.StateMachineInstance(Ne, q), dt = [],
|
|
50744
|
-
var Lt = Ze.input(
|
|
50754
|
+
for (var Ne = q.stateMachineByIndex(pe), Ae = Ne.name, Ze = new this.runtime.StateMachineInstance(Ne, q), dt = [], Yt = 0; Yt < Ze.inputCount(); Yt++) {
|
|
50755
|
+
var Lt = Ze.input(Yt);
|
|
50745
50756
|
dt.push({ name: Lt.name, type: Lt.type });
|
|
50746
50757
|
}
|
|
50747
50758
|
le.stateMachines.push({
|
|
@@ -51021,7 +51032,7 @@ To resolve, you may need to:`,
|
|
|
51021
51032
|
var q = this.internalViewModelInstance(b[S]);
|
|
51022
51033
|
return q !== null ? S == b.length - 1 ? q : q.viewModelFromPathSegments(b, S++) : null;
|
|
51023
51034
|
}, D.prototype.propertyFromPathSegments = function(b, S, q) {
|
|
51024
|
-
var le, we, Se, pe, Ne, Ae, Ze, dt,
|
|
51035
|
+
var le, we, Se, pe, Ne, Ae, Ze, dt, Yt, Lt, te, je, tt, ft, lt, St, wt, Je;
|
|
51025
51036
|
if (S < b.length - 1) {
|
|
51026
51037
|
var ct = this.internalViewModelInstance(b[S]);
|
|
51027
51038
|
return ct !== null ? ct.propertyFromPathSegments(b, S + 1, q) : null;
|
|
@@ -51045,7 +51056,7 @@ To resolve, you may need to:`,
|
|
|
51045
51056
|
return new W(Ge, this);
|
|
51046
51057
|
break;
|
|
51047
51058
|
case De.Trigger:
|
|
51048
|
-
if (Ge = (Lt = (
|
|
51059
|
+
if (Ge = (Lt = (Yt = this._runtimeInstance) === null || Yt === void 0 ? void 0 : Yt.trigger(b[S])) !== null && Lt !== void 0 ? Lt : null, Ge !== null)
|
|
51049
51060
|
return new ne(Ge, this);
|
|
51050
51061
|
break;
|
|
51051
51062
|
case De.Enum:
|
|
@@ -51061,7 +51072,7 @@ To resolve, you may need to:`,
|
|
|
51061
51072
|
return new $(Ge, this);
|
|
51062
51073
|
break;
|
|
51063
51074
|
case De.Artboard:
|
|
51064
|
-
if (Ge = (Je = (
|
|
51075
|
+
if (Ge = (Je = (wt = this._runtimeInstance) === null || wt === void 0 ? void 0 : wt.artboard(b[S])) !== null && Je !== void 0 ? Je : null, Ge !== null)
|
|
51065
51076
|
return new de(Ge, this);
|
|
51066
51077
|
break;
|
|
51067
51078
|
}
|
|
@@ -51470,7 +51481,7 @@ To resolve, you may need to:`,
|
|
|
51470
51481
|
var KG = o5.exports;
|
|
51471
51482
|
(function(t) {
|
|
51472
51483
|
Object.defineProperty(t, "__esModule", { value: !0 });
|
|
51473
|
-
var e =
|
|
51484
|
+
var e = Gt, n = KG;
|
|
51474
51485
|
function r(U) {
|
|
51475
51486
|
return U && typeof U == "object" && "default" in U ? U : { default: U };
|
|
51476
51487
|
}
|
|
@@ -52141,7 +52152,7 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
52141
52152
|
/* @__PURE__ */ E("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9 15.75V15.75C5.27175 15.75 2.25 12.7282 2.25 9V9C2.25 5.27175 5.27175 2.25 9 2.25V2.25C12.7282 2.25 15.75 5.27175 15.75 9V9C15.75 12.7282 12.7282 15.75 9 15.75Z", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
52142
52153
|
/* @__PURE__ */ E("path", { d: "M12 7.5L8.25 11.25L6 9", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
52143
52154
|
] }), JG = ({ title: t, onTitleChange: e, readOnly: n }) => {
|
|
52144
|
-
const r =
|
|
52155
|
+
const r = Jt(null), i = ar(() => {
|
|
52145
52156
|
const o = r.current;
|
|
52146
52157
|
o && (o.style.height = "auto", o.style.height = `${o.scrollHeight}px`);
|
|
52147
52158
|
}, []);
|
|
@@ -52205,11 +52216,11 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
52205
52216
|
onUpload: x,
|
|
52206
52217
|
onAIRequest: M
|
|
52207
52218
|
}) => {
|
|
52208
|
-
const [j, V] =
|
|
52219
|
+
const [j, V] = Kt(-1), [B, H] = Kt([]), [Z, z] = Kt([]), [Q, me] = Kt(-1), [oe, re] = Kt(-1), Ce = Jt(-1), [Xe, Oe] = Kt(0), De = Jt(-1), [Me, He] = Kt(null), Re = Jt(null), Le = Jt(!1), I = Jt(null), { RiveComponent: ne } = i5.useRive({
|
|
52209
52220
|
src: qG,
|
|
52210
52221
|
autoplay: !0,
|
|
52211
52222
|
stateMachines: "State Machine 1"
|
|
52212
|
-
}), [se, X] =
|
|
52223
|
+
}), [se, X] = Kt(!1), W = Jt(null), $ = Jt(!1), de = Jt(!1), xe = Jt(!1), ie = Jt(!1), ye = Jt(0), be = Jt(null), ke = Jt(""), _e = Jt(null), D = Jt(!1), b = Jt(!1), S = Jt(null);
|
|
52213
52224
|
un(() => {
|
|
52214
52225
|
if (S.current === e)
|
|
52215
52226
|
return;
|
|
@@ -52222,15 +52233,15 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
52222
52233
|
};
|
|
52223
52234
|
}, [e]);
|
|
52224
52235
|
const q = (m || se && A) && !s && !k, le = ar(() => {
|
|
52225
|
-
var je, tt, ft, lt, St,
|
|
52236
|
+
var je, tt, ft, lt, St, wt, Je, ct, Ge, At, Ht, en, xt, bn, Ie, hn, pn, on, Mt, Mi, ai, li, $i, st, dn, bt, jt, ht, Qe, _n, Qt, kn, Ii, hr, ci, ui, zr, di, Ns, Ls, Oi, Wo, Zr, mo, _i, fi, go, Dr, _t, Ar, It, Wt, Pt, Bt, yt, zt, Dt, En, mn, Dn, Yn, Jr, Nr, hi, Di;
|
|
52226
52237
|
if (!t.current || !W.current)
|
|
52227
52238
|
return;
|
|
52228
52239
|
const te = t.current.getEditor();
|
|
52229
52240
|
if (te && !ie.current) {
|
|
52230
52241
|
ie.current = !0;
|
|
52231
52242
|
try {
|
|
52232
|
-
const Ni = [], nt = [],
|
|
52233
|
-
let Tn = null,
|
|
52243
|
+
const Ni = [], nt = [], vt = W.current.getBoundingClientRect();
|
|
52244
|
+
let Tn = null, Ft = null, Li = !1;
|
|
52234
52245
|
const Ps = (ue) => {
|
|
52235
52246
|
if (ue.greenRanges.length > 0) {
|
|
52236
52247
|
const ae = ue.redRanges.length > 0 ? {
|
|
@@ -52246,13 +52257,13 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
52246
52257
|
if (wn === it) {
|
|
52247
52258
|
let pt = !1;
|
|
52248
52259
|
try {
|
|
52249
|
-
te.state.doc.nodesBetween(ce.from, ce.to, (
|
|
52260
|
+
te.state.doc.nodesBetween(ce.from, ce.to, (Zt) => (Zt.isText && Zt.marks.some((fn) => fn.type.name === "link") && (pt = !0), !pt));
|
|
52250
52261
|
} catch {
|
|
52251
52262
|
}
|
|
52252
52263
|
let rt = !1;
|
|
52253
52264
|
if (!pt)
|
|
52254
52265
|
try {
|
|
52255
|
-
te.state.doc.nodesBetween(ae.from, ae.to, (
|
|
52266
|
+
te.state.doc.nodesBetween(ae.from, ae.to, (Zt) => (Zt.isText && Zt.marks.some((fn) => fn.type.name === "link") && (rt = !0), !rt));
|
|
52256
52267
|
} catch {
|
|
52257
52268
|
}
|
|
52258
52269
|
const $e = pt || rt;
|
|
@@ -52268,11 +52279,11 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
52268
52279
|
try {
|
|
52269
52280
|
const et = te.view.coordsAtPos(Ke.to), Ye = te.view.coordsAtPos(Ke.from);
|
|
52270
52281
|
Pe = {
|
|
52271
|
-
top: Ye.top -
|
|
52272
|
-
left: Ye.left -
|
|
52282
|
+
top: Ye.top - vt.top,
|
|
52283
|
+
left: Ye.left - vt.left,
|
|
52273
52284
|
width: et.right - Ye.left,
|
|
52274
|
-
right: et.right -
|
|
52275
|
-
bottom: et.bottom -
|
|
52285
|
+
right: et.right - vt.left,
|
|
52286
|
+
bottom: et.bottom - vt.top
|
|
52276
52287
|
};
|
|
52277
52288
|
} catch {
|
|
52278
52289
|
}
|
|
@@ -52304,11 +52315,11 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
52304
52315
|
try {
|
|
52305
52316
|
const Ue = te.view.coordsAtPos(ce.to), Ve = te.view.coordsAtPos(ce.from);
|
|
52306
52317
|
Ke = {
|
|
52307
|
-
top: Ve.top -
|
|
52308
|
-
left: Ve.left -
|
|
52318
|
+
top: Ve.top - vt.top,
|
|
52319
|
+
left: Ve.left - vt.left,
|
|
52309
52320
|
width: Ue.right - Ve.left,
|
|
52310
|
-
right: Ue.right -
|
|
52311
|
-
bottom: Ue.bottom -
|
|
52321
|
+
right: Ue.right - vt.left,
|
|
52322
|
+
bottom: Ue.bottom - vt.top
|
|
52312
52323
|
};
|
|
52313
52324
|
} catch {
|
|
52314
52325
|
}
|
|
@@ -52343,21 +52354,21 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
52343
52354
|
}
|
|
52344
52355
|
const $e = rt.querySelector(".image-view__body"), fn = ($e || rt).getBoundingClientRect(), Nn = $e ? 13 : 0;
|
|
52345
52356
|
pt = {
|
|
52346
|
-
top: fn.top -
|
|
52347
|
-
left: fn.left -
|
|
52357
|
+
top: fn.top - vt.top - Nn,
|
|
52358
|
+
left: fn.left - vt.left - Nn,
|
|
52348
52359
|
width: fn.width + Nn * 2,
|
|
52349
|
-
right: fn.left -
|
|
52350
|
-
bottom: fn.bottom -
|
|
52360
|
+
right: fn.left - vt.left + fn.width + Nn,
|
|
52361
|
+
bottom: fn.bottom - vt.top + Nn
|
|
52351
52362
|
};
|
|
52352
52363
|
} else {
|
|
52353
52364
|
const rt = te.view.coordsAtPos(ae), $e = te.view.coordsAtPos(ae + ue.nodeSize);
|
|
52354
52365
|
pt = {
|
|
52355
|
-
top: rt.top -
|
|
52356
|
-
left: rt.left -
|
|
52366
|
+
top: rt.top - vt.top,
|
|
52367
|
+
left: rt.left - vt.left,
|
|
52357
52368
|
width: $e.right - rt.left,
|
|
52358
|
-
right: rt.left -
|
|
52369
|
+
right: rt.left - vt.left + ($e.right - rt.left),
|
|
52359
52370
|
// Use left + width for accurate right
|
|
52360
|
-
bottom: $e.bottom -
|
|
52371
|
+
bottom: $e.bottom - vt.top
|
|
52361
52372
|
};
|
|
52362
52373
|
}
|
|
52363
52374
|
yo.push({ pos: ae, nodeSize: ue.nodeSize, rect: pt });
|
|
@@ -52377,20 +52388,20 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
52377
52388
|
}
|
|
52378
52389
|
const $e = rt.querySelector(".image-view__body"), fn = ($e || rt).getBoundingClientRect(), Nn = $e ? 13 : 0;
|
|
52379
52390
|
pt = {
|
|
52380
|
-
top: fn.top -
|
|
52381
|
-
left: fn.left -
|
|
52391
|
+
top: fn.top - vt.top - Nn,
|
|
52392
|
+
left: fn.left - vt.left - Nn,
|
|
52382
52393
|
width: fn.width + Nn * 2,
|
|
52383
|
-
right: fn.left -
|
|
52384
|
-
bottom: fn.bottom -
|
|
52394
|
+
right: fn.left - vt.left + fn.width + Nn,
|
|
52395
|
+
bottom: fn.bottom - vt.top + Nn
|
|
52385
52396
|
};
|
|
52386
52397
|
} else {
|
|
52387
52398
|
const rt = te.view.coordsAtPos(ae), $e = te.view.coordsAtPos(ae + ue.nodeSize);
|
|
52388
52399
|
pt = {
|
|
52389
|
-
top: rt.top -
|
|
52390
|
-
left: rt.left -
|
|
52400
|
+
top: rt.top - vt.top,
|
|
52401
|
+
left: rt.left - vt.left,
|
|
52391
52402
|
width: $e.right - rt.left,
|
|
52392
|
-
right: $e.right -
|
|
52393
|
-
bottom: $e.bottom -
|
|
52403
|
+
right: $e.right - vt.left,
|
|
52404
|
+
bottom: $e.bottom - vt.top
|
|
52394
52405
|
};
|
|
52395
52406
|
}
|
|
52396
52407
|
Wi.push({ pos: ae, nodeSize: ue.nodeSize, rect: pt });
|
|
@@ -52403,20 +52414,20 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
52403
52414
|
if (it && it instanceof HTMLElement) {
|
|
52404
52415
|
const $e = (it.tagName === "PRE" ? it : it.querySelector("pre") || it).getBoundingClientRect();
|
|
52405
52416
|
pt = {
|
|
52406
|
-
top: $e.top -
|
|
52407
|
-
left: $e.left -
|
|
52417
|
+
top: $e.top - vt.top,
|
|
52418
|
+
left: $e.left - vt.left,
|
|
52408
52419
|
width: $e.width,
|
|
52409
|
-
right: $e.right -
|
|
52410
|
-
bottom: $e.bottom -
|
|
52420
|
+
right: $e.right - vt.left,
|
|
52421
|
+
bottom: $e.bottom - vt.top
|
|
52411
52422
|
};
|
|
52412
52423
|
} else {
|
|
52413
52424
|
const rt = te.view.coordsAtPos(ae), $e = te.view.coordsAtPos(ae + ue.nodeSize);
|
|
52414
52425
|
pt = {
|
|
52415
|
-
top: rt.top -
|
|
52416
|
-
left: rt.left -
|
|
52426
|
+
top: rt.top - vt.top,
|
|
52427
|
+
left: rt.left - vt.left,
|
|
52417
52428
|
width: $e.right - rt.left,
|
|
52418
|
-
right: $e.right -
|
|
52419
|
-
bottom: $e.bottom -
|
|
52429
|
+
right: $e.right - vt.left,
|
|
52430
|
+
bottom: $e.bottom - vt.top
|
|
52420
52431
|
};
|
|
52421
52432
|
}
|
|
52422
52433
|
pr.push({ pos: ae, nodeSize: ue.nodeSize, rect: pt });
|
|
@@ -52429,20 +52440,20 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
52429
52440
|
if (it && it instanceof HTMLElement) {
|
|
52430
52441
|
const $e = (it.tagName === "PRE" ? it : it.querySelector("pre") || it).getBoundingClientRect();
|
|
52431
52442
|
pt = {
|
|
52432
|
-
top: $e.top -
|
|
52433
|
-
left: $e.left -
|
|
52443
|
+
top: $e.top - vt.top,
|
|
52444
|
+
left: $e.left - vt.left,
|
|
52434
52445
|
width: $e.width,
|
|
52435
|
-
right: $e.right -
|
|
52436
|
-
bottom: $e.bottom -
|
|
52446
|
+
right: $e.right - vt.left,
|
|
52447
|
+
bottom: $e.bottom - vt.top
|
|
52437
52448
|
};
|
|
52438
52449
|
} else {
|
|
52439
52450
|
const rt = te.view.coordsAtPos(ae), $e = te.view.coordsAtPos(ae + ue.nodeSize);
|
|
52440
52451
|
pt = {
|
|
52441
|
-
top: rt.top -
|
|
52442
|
-
left: rt.left -
|
|
52452
|
+
top: rt.top - vt.top,
|
|
52453
|
+
left: rt.left - vt.left,
|
|
52443
52454
|
width: $e.right - rt.left,
|
|
52444
|
-
right: $e.right -
|
|
52445
|
-
bottom: $e.bottom -
|
|
52455
|
+
right: $e.right - vt.left,
|
|
52456
|
+
bottom: $e.bottom - vt.top
|
|
52446
52457
|
};
|
|
52447
52458
|
}
|
|
52448
52459
|
mr.push({ pos: ae, nodeSize: ue.nodeSize, rect: pt });
|
|
@@ -52455,20 +52466,20 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
52455
52466
|
if (it && it instanceof HTMLElement) {
|
|
52456
52467
|
const $e = (it.tagName === "TABLE" ? it : it.querySelector("table") || it).getBoundingClientRect();
|
|
52457
52468
|
pt = {
|
|
52458
|
-
top: $e.top -
|
|
52459
|
-
left: $e.left -
|
|
52469
|
+
top: $e.top - vt.top,
|
|
52470
|
+
left: $e.left - vt.left,
|
|
52460
52471
|
width: $e.width,
|
|
52461
|
-
right: $e.right -
|
|
52462
|
-
bottom: $e.bottom -
|
|
52472
|
+
right: $e.right - vt.left,
|
|
52473
|
+
bottom: $e.bottom - vt.top
|
|
52463
52474
|
};
|
|
52464
52475
|
} else {
|
|
52465
52476
|
const rt = te.view.coordsAtPos(ae), $e = te.view.coordsAtPos(ae + ue.nodeSize);
|
|
52466
52477
|
pt = {
|
|
52467
|
-
top: rt.top -
|
|
52468
|
-
left: rt.left -
|
|
52478
|
+
top: rt.top - vt.top,
|
|
52479
|
+
left: rt.left - vt.left,
|
|
52469
52480
|
width: $e.right - rt.left,
|
|
52470
|
-
right: $e.right -
|
|
52471
|
-
bottom: $e.bottom -
|
|
52481
|
+
right: $e.right - vt.left,
|
|
52482
|
+
bottom: $e.bottom - vt.top
|
|
52472
52483
|
};
|
|
52473
52484
|
}
|
|
52474
52485
|
Rn.push({ pos: ae, nodeSize: ue.nodeSize, rect: pt });
|
|
@@ -52481,39 +52492,39 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
52481
52492
|
if (it && it instanceof HTMLElement) {
|
|
52482
52493
|
const $e = (it.tagName === "TABLE" ? it : it.querySelector("table") || it).getBoundingClientRect();
|
|
52483
52494
|
pt = {
|
|
52484
|
-
top: $e.top -
|
|
52485
|
-
left: $e.left -
|
|
52495
|
+
top: $e.top - vt.top,
|
|
52496
|
+
left: $e.left - vt.left,
|
|
52486
52497
|
width: $e.width,
|
|
52487
|
-
right: $e.right -
|
|
52488
|
-
bottom: $e.bottom -
|
|
52498
|
+
right: $e.right - vt.left,
|
|
52499
|
+
bottom: $e.bottom - vt.top
|
|
52489
52500
|
};
|
|
52490
52501
|
} else {
|
|
52491
52502
|
const rt = te.view.coordsAtPos(ae), $e = te.view.coordsAtPos(ae + ue.nodeSize);
|
|
52492
52503
|
pt = {
|
|
52493
|
-
top: rt.top -
|
|
52494
|
-
left: rt.left -
|
|
52504
|
+
top: rt.top - vt.top,
|
|
52505
|
+
left: rt.left - vt.left,
|
|
52495
52506
|
width: $e.right - rt.left,
|
|
52496
|
-
right: $e.right -
|
|
52497
|
-
bottom: $e.bottom -
|
|
52507
|
+
right: $e.right - vt.left,
|
|
52508
|
+
bottom: $e.bottom - vt.top
|
|
52498
52509
|
};
|
|
52499
52510
|
}
|
|
52500
52511
|
Zn.push({ pos: ae, nodeSize: ue.nodeSize, rect: pt });
|
|
52501
52512
|
} catch {
|
|
52502
52513
|
}
|
|
52503
|
-
if ((ue.type.name === "heading" || ue.type.name === "paragraph" || ue.type.name === "bulletList" || ue.type.name === "orderedList") && ue.content.size > 0 &&
|
|
52514
|
+
if ((ue.type.name === "heading" || ue.type.name === "paragraph" || ue.type.name === "bulletList" || ue.type.name === "orderedList") && ue.content.size > 0 && Ft && Ft.redRanges.length > 0) {
|
|
52504
52515
|
let it = !1, pt = !1, rt = !1;
|
|
52505
52516
|
if (ue.descendants(($e) => {
|
|
52506
|
-
$e.isText && ($e.marks.some((
|
|
52517
|
+
$e.isText && ($e.marks.some((Zt) => Zt.type.name === "link") && (it = !0), $e.marks.some((Zt) => Zt.type.name === "highlight" && Zt.attrs.color === "#fecaca") && (pt = !0), $e.marks.some((Zt) => Zt.type.name === "highlight" && Zt.attrs.color === "#c7f0d6ff") && (rt = !0));
|
|
52507
52518
|
}), it && !pt && !rt)
|
|
52508
52519
|
try {
|
|
52509
|
-
const $e = ae + 1,
|
|
52510
|
-
top: fn.top -
|
|
52511
|
-
left: fn.left -
|
|
52520
|
+
const $e = ae + 1, Zt = ae + ue.nodeSize - 1, fn = te.view.coordsAtPos($e), Nn = te.view.coordsAtPos(Zt), Qr = {
|
|
52521
|
+
top: fn.top - vt.top,
|
|
52522
|
+
left: fn.left - vt.left,
|
|
52512
52523
|
width: Nn.right - fn.left,
|
|
52513
|
-
right: Nn.right -
|
|
52514
|
-
bottom: Nn.bottom -
|
|
52524
|
+
right: Nn.right - vt.left,
|
|
52525
|
+
bottom: Nn.bottom - vt.top
|
|
52515
52526
|
};
|
|
52516
|
-
|
|
52527
|
+
Ft.greenRanges.push({ from: $e, to: Zt }), Li = !0, Ft.rect.top = Math.min(Ft.rect.top, Qr.top), Ft.rect.left = Math.min(Ft.rect.left, Qr.left), Ft.rect.right = Math.max(Ft.rect.right, Qr.right), Ft.rect.bottom = Math.max(Ft.rect.bottom, Qr.bottom), Ft.rect.width = Ft.rect.right - Ft.rect.left;
|
|
52517
52528
|
} catch {
|
|
52518
52529
|
}
|
|
52519
52530
|
}
|
|
@@ -52521,19 +52532,19 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
52521
52532
|
if (et && (Ye || Tt))
|
|
52522
52533
|
try {
|
|
52523
52534
|
const it = te.view.coordsAtPos(ae), pt = te.view.coordsAtPos(ae + ue.nodeSize), rt = {
|
|
52524
|
-
top: it.top -
|
|
52525
|
-
left: it.left -
|
|
52535
|
+
top: it.top - vt.top,
|
|
52536
|
+
left: it.left - vt.left,
|
|
52526
52537
|
width: pt.right - it.left,
|
|
52527
|
-
right: pt.right -
|
|
52528
|
-
bottom: pt.bottom -
|
|
52538
|
+
right: pt.right - vt.left,
|
|
52539
|
+
bottom: pt.bottom - vt.top
|
|
52529
52540
|
};
|
|
52530
|
-
let $e = !
|
|
52531
|
-
if (!$e &&
|
|
52532
|
-
const
|
|
52533
|
-
if (ae -
|
|
52541
|
+
let $e = !Ft || Tt && Li;
|
|
52542
|
+
if (!$e && Ft && Tt && Ft.greenRanges.length === 0 && Ft.redRanges.length > 0) {
|
|
52543
|
+
const Zt = Ft.redRanges[Ft.redRanges.length - 1].to;
|
|
52544
|
+
if (ae - Zt > 2) {
|
|
52534
52545
|
let fn = !1;
|
|
52535
52546
|
try {
|
|
52536
|
-
te.state.doc.nodesBetween(
|
|
52547
|
+
te.state.doc.nodesBetween(Zt, ae, (Nn) => {
|
|
52537
52548
|
var Qr;
|
|
52538
52549
|
return Nn.isText && ((Qr = Nn.text) != null && Qr.trim()) && !Nn.marks.some((Hl) => Hl.type.name === "highlight") ? (fn = !0, !1) : !0;
|
|
52539
52550
|
});
|
|
@@ -52542,19 +52553,19 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
52542
52553
|
fn && ($e = !0);
|
|
52543
52554
|
}
|
|
52544
52555
|
}
|
|
52545
|
-
$e && (
|
|
52556
|
+
$e && (Ft && Ps(Ft), Ft = {
|
|
52546
52557
|
redRanges: [],
|
|
52547
52558
|
greenRanges: [],
|
|
52548
52559
|
rect: { ...rt }
|
|
52549
|
-
}),
|
|
52560
|
+
}), Ft && (Tt && (Ft.redRanges.push({ from: ae, to: ae + ue.nodeSize }), Li = !1), Ye && (Ft.greenRanges.push({ from: ae, to: ae + ue.nodeSize }), Li = !0), Ft.rect.top = Math.min(Ft.rect.top, rt.top), Ft.rect.left = Math.min(Ft.rect.left, rt.left), Ft.rect.right = Math.max(Ft.rect.right, rt.right), Ft.rect.bottom = Math.max(Ft.rect.bottom, rt.bottom), Ft.rect.width = Ft.rect.right - Ft.rect.left), Tn && ae <= Tn.to + 1 ? (Tn.to = ae + ue.nodeSize, Tn.rect.right = Math.max(Tn.rect.right, rt.right), Tn.rect.bottom = Math.max(Tn.rect.bottom, rt.bottom), Tn.rect.width = Tn.rect.right - Tn.rect.left) : (Tn && Ni.push(Tn), Tn = { from: ae, to: ae + ue.nodeSize, rect: rt });
|
|
52550
52561
|
} catch {
|
|
52551
52562
|
}
|
|
52552
52563
|
else
|
|
52553
52564
|
Tn && ue.isText && ((wn = ue.text) == null ? void 0 : wn.trim()) === "" ? Tn.to = ae + ue.nodeSize : Tn && (Ni.push(Tn), Tn = null);
|
|
52554
52565
|
return !0;
|
|
52555
|
-
}), Tn && Ni.push(Tn),
|
|
52556
|
-
const ue =
|
|
52557
|
-
Ps(
|
|
52566
|
+
}), Tn && Ni.push(Tn), Ft) {
|
|
52567
|
+
const ue = Ft;
|
|
52568
|
+
Ps(Ft);
|
|
52558
52569
|
}
|
|
52559
52570
|
const pi = nt.filter((ue) => ue.isTextOnly).length > 1, vo = (ue, ae) => {
|
|
52560
52571
|
var Ke, Pe, Ue, Ve;
|
|
@@ -52642,7 +52653,7 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
52642
52653
|
} : ae.redRange && (Pe.redRange = ae.redRange), Pe.isImageReplacedByText = !0, Pe.includesImageDeletion = !0, ae.rect && (ae.rect.bottom > (((ft = Pe.lastGreenRect) == null ? void 0 : ft.bottom) ?? 0) && (Pe.lastGreenRect = ae.rect), Pe.rect = {
|
|
52643
52654
|
top: Math.min(((lt = Pe.rect) == null ? void 0 : lt.top) ?? 1 / 0, ae.rect.top),
|
|
52644
52655
|
left: Math.min(((St = Pe.rect) == null ? void 0 : St.left) ?? 1 / 0, ae.rect.left),
|
|
52645
|
-
right: Math.max(((
|
|
52656
|
+
right: Math.max(((wt = Pe.rect) == null ? void 0 : wt.right) ?? 0, ae.rect.right),
|
|
52646
52657
|
bottom: Math.max(((Je = Pe.rect) == null ? void 0 : Je.bottom) ?? 0, ae.rect.bottom),
|
|
52647
52658
|
width: Math.max(((ct = Pe.rect) == null ? void 0 : ct.width) ?? 0, ae.rect.width ?? 0)
|
|
52648
52659
|
}), nt.splice(ue, 1));
|
|
@@ -52655,7 +52666,7 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
52655
52666
|
for (const ae of Uo) {
|
|
52656
52667
|
const ce = ((Ge = ae.greenRange) == null ? void 0 : Ge.from) ?? 0, Ke = ((At = ae.greenRange) == null ? void 0 : At.to) ?? ce, Pe = vo(ce, Ke);
|
|
52657
52668
|
if (Pe) {
|
|
52658
|
-
const Ue = ((
|
|
52669
|
+
const Ue = ((Ht = Pe.greenRange) == null ? void 0 : Ht.to) ?? 0;
|
|
52659
52670
|
Pe.greenRange && (Pe.greenRange = {
|
|
52660
52671
|
from: Math.min(Pe.greenRange.from, ce),
|
|
52661
52672
|
to: Math.max(Pe.greenRange.to, Ke)
|
|
@@ -52672,19 +52683,19 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
52672
52683
|
const ae = ue[0], ce = nt[ae];
|
|
52673
52684
|
if (ue.length > 1)
|
|
52674
52685
|
for (let rt = ue.length - 1; rt >= 1; rt--) {
|
|
52675
|
-
const $e = ue[rt],
|
|
52676
|
-
|
|
52677
|
-
from: Math.min(ce.greenRange.from,
|
|
52678
|
-
to: Math.max(ce.greenRange.to,
|
|
52679
|
-
} : ce.greenRange =
|
|
52680
|
-
from: Math.min(ce.redRange.from,
|
|
52681
|
-
to: Math.max(ce.redRange.to,
|
|
52682
|
-
} : ce.redRange =
|
|
52686
|
+
const $e = ue[rt], Zt = nt[$e];
|
|
52687
|
+
Zt.greenRange && (ce.greenRange ? ce.greenRange = {
|
|
52688
|
+
from: Math.min(ce.greenRange.from, Zt.greenRange.from),
|
|
52689
|
+
to: Math.max(ce.greenRange.to, Zt.greenRange.to)
|
|
52690
|
+
} : ce.greenRange = Zt.greenRange, Zt.greenRange.to > (((en = ce.greenRange) == null ? void 0 : en.to) || 0) && (ce.lastGreenRect = Zt.lastGreenRect)), Zt.redRange && (ce.redRange ? ce.redRange = {
|
|
52691
|
+
from: Math.min(ce.redRange.from, Zt.redRange.from),
|
|
52692
|
+
to: Math.max(ce.redRange.to, Zt.redRange.to)
|
|
52693
|
+
} : ce.redRange = Zt.redRange), nt.splice($e, 1);
|
|
52683
52694
|
}
|
|
52684
|
-
const Ke = ((
|
|
52695
|
+
const Ke = ((xt = ce.greenRange) == null ? void 0 : xt.to) ?? 0, Pe = Math.min(((bn = ce.redRange) == null ? void 0 : bn.from) ?? 1 / 0, ((Ie = ce.greenRange) == null ? void 0 : Ie.from) ?? 1 / 0), Ue = Math.max(((hn = ce.redRange) == null ? void 0 : hn.to) ?? 0, ((pn = ce.greenRange) == null ? void 0 : pn.to) ?? 0), Ve = Uo.filter((rt) => {
|
|
52685
52696
|
var fn, Nn;
|
|
52686
|
-
const $e = ((fn = rt.greenRange) == null ? void 0 : fn.from) ?? 0,
|
|
52687
|
-
return $e >= Pe - 10 &&
|
|
52697
|
+
const $e = ((fn = rt.greenRange) == null ? void 0 : fn.from) ?? 0, Zt = ((Nn = rt.greenRange) == null ? void 0 : Nn.to) ?? $e;
|
|
52698
|
+
return $e >= Pe - 10 && Zt <= Ue + 10;
|
|
52688
52699
|
});
|
|
52689
52700
|
let et = ((on = ce.greenRange) == null ? void 0 : on.from) ?? 1 / 0, Ye = ((Mt = ce.greenRange) == null ? void 0 : Mt.to) ?? 0;
|
|
52690
52701
|
for (const rt of Ve)
|
|
@@ -52709,7 +52720,7 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
52709
52720
|
if (Ye.redRange && Ye.greenRange)
|
|
52710
52721
|
continue;
|
|
52711
52722
|
if (pi) {
|
|
52712
|
-
const Tt = Math.min(((dn = Ye.redRange) == null ? void 0 : dn.from) ?? 1 / 0, ((
|
|
52723
|
+
const Tt = Math.min(((dn = Ye.redRange) == null ? void 0 : dn.from) ?? 1 / 0, ((bt = Ye.greenRange) == null ? void 0 : bt.from) ?? 1 / 0), wn = Math.max(((jt = Ye.redRange) == null ? void 0 : jt.to) ?? 0, ((ht = Ye.greenRange) == null ? void 0 : ht.to) ?? 0);
|
|
52713
52724
|
if (!(Tt >= Ke - 10 && wn <= Pe + 10 || Ke >= Tt - 10 && Pe <= wn + 10 || Math.abs(Tt - Pe) <= 10 || Math.abs(Ke - wn) <= 10))
|
|
52714
52725
|
continue;
|
|
52715
52726
|
}
|
|
@@ -52776,7 +52787,7 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
52776
52787
|
for (const ae of mr) {
|
|
52777
52788
|
const ce = vo(ae.pos, ae.pos + ae.nodeSize);
|
|
52778
52789
|
if (ce) {
|
|
52779
|
-
const Ke = ae.pos + ae.nodeSize, Pe = ((
|
|
52790
|
+
const Ke = ae.pos + ae.nodeSize, Pe = ((Qt = ce.greenRange) == null ? void 0 : Qt.to) ?? 0;
|
|
52780
52791
|
ce.greenRange ? ce.greenRange = {
|
|
52781
52792
|
from: Math.min(ce.greenRange.from, ae.pos),
|
|
52782
52793
|
to: Math.max(ce.greenRange.to, Ke)
|
|
@@ -52917,8 +52928,8 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
52917
52928
|
for (const pt of nt) {
|
|
52918
52929
|
if (!pt.isTextOnly)
|
|
52919
52930
|
continue;
|
|
52920
|
-
const rt = Math.min(((et = pt.redRange) == null ? void 0 : et.from) ?? 1 / 0, ((Ye = pt.greenRange) == null ? void 0 : Ye.from) ?? 1 / 0), $e = Math.max(((Tt = pt.redRange) == null ? void 0 : Tt.to) ?? 0, ((wn = pt.greenRange) == null ? void 0 : wn.to) ?? 0),
|
|
52921
|
-
|
|
52931
|
+
const rt = Math.min(((et = pt.redRange) == null ? void 0 : et.from) ?? 1 / 0, ((Ye = pt.greenRange) == null ? void 0 : Ye.from) ?? 1 / 0), $e = Math.max(((Tt = pt.redRange) == null ? void 0 : Tt.to) ?? 0, ((wn = pt.greenRange) == null ? void 0 : wn.to) ?? 0), Zt = Math.min(Math.abs(Ke - rt), Math.abs(Ke - $e));
|
|
52932
|
+
Zt < Ve && (Ve = Zt, Ue = pt);
|
|
52922
52933
|
}
|
|
52923
52934
|
if (Ue) {
|
|
52924
52935
|
const pt = ((it = Ue.greenRange) == null ? void 0 : it.to) || 0;
|
|
@@ -53002,7 +53013,7 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
53002
53013
|
const Pe = ce.redRange.from, Ue = ce.redRange.to;
|
|
53003
53014
|
let Ve = 1 / 0;
|
|
53004
53015
|
for (const et of Ia) {
|
|
53005
|
-
const Ye = Math.min(((_t = et.redRange) == null ? void 0 : _t.from) ?? 1 / 0, ((Ar = et.greenRange) == null ? void 0 : Ar.from) ?? 1 / 0), Tt = Math.max(((It = et.redRange) == null ? void 0 : It.to) ?? 0, ((
|
|
53016
|
+
const Ye = Math.min(((_t = et.redRange) == null ? void 0 : _t.from) ?? 1 / 0, ((Ar = et.greenRange) == null ? void 0 : Ar.from) ?? 1 / 0), Tt = Math.max(((It = et.redRange) == null ? void 0 : It.to) ?? 0, ((Wt = et.greenRange) == null ? void 0 : Wt.to) ?? 0), wn = Math.min(Math.abs(Pe - Ye), Math.abs(Pe - Tt), Math.abs(Ue - Ye), Math.abs(Ue - Tt));
|
|
53006
53017
|
wn < Ve && (Ve = wn, Ke = et);
|
|
53007
53018
|
}
|
|
53008
53019
|
}
|
|
@@ -53011,9 +53022,9 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
53011
53022
|
to: Math.max(Ke.redRange.to, ce.redRange.to)
|
|
53012
53023
|
}, ce.rect && (Ke.rect = {
|
|
53013
53024
|
top: Math.min(((Pt = Ke.rect) == null ? void 0 : Pt.top) ?? 1 / 0, ce.rect.top),
|
|
53014
|
-
left: Math.min(((
|
|
53015
|
-
right: Math.max(((
|
|
53016
|
-
bottom: Math.max(((
|
|
53025
|
+
left: Math.min(((Bt = Ke.rect) == null ? void 0 : Bt.left) ?? 1 / 0, ce.rect.left),
|
|
53026
|
+
right: Math.max(((yt = Ke.rect) == null ? void 0 : yt.right) ?? 0, ce.rect.right),
|
|
53027
|
+
bottom: Math.max(((zt = Ke.rect) == null ? void 0 : zt.bottom) ?? 0, ce.rect.bottom),
|
|
53017
53028
|
width: 0
|
|
53018
53029
|
}, Ke.rect.width = Ke.rect.right - Ke.rect.left, ce.rect.bottom > (((Dt = Ke.lastGreenRect) == null ? void 0 : Dt.bottom) ?? 0) && (Ke.lastGreenRect = {
|
|
53019
53030
|
top: ce.rect.top,
|
|
@@ -53106,13 +53117,13 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
53106
53117
|
if (lt == null)
|
|
53107
53118
|
return;
|
|
53108
53119
|
setTimeout(() => {
|
|
53109
|
-
var St,
|
|
53120
|
+
var St, wt, Je;
|
|
53110
53121
|
try {
|
|
53111
|
-
const ct = tt.view.coordsAtPos(lt), Ge = tt.view.dom.closest(".content-wrapper") || ((
|
|
53122
|
+
const ct = tt.view.coordsAtPos(lt), Ge = tt.view.dom.closest(".content-wrapper") || ((wt = (St = tt.view.dom.closest(".simple-editor-content")) == null ? void 0 : St.parentElement) == null ? void 0 : wt.parentElement) || ((Je = W.current) == null ? void 0 : Je.querySelector(".content-wrapper"));
|
|
53112
53123
|
if (Ge && ct) {
|
|
53113
|
-
const At = Ge.getBoundingClientRect(),
|
|
53124
|
+
const At = Ge.getBoundingClientRect(), en = Ge.scrollTop + (ct.top - At.top) - At.height / 3;
|
|
53114
53125
|
Ge.scrollTo({
|
|
53115
|
-
top: Math.max(0,
|
|
53126
|
+
top: Math.max(0, en),
|
|
53116
53127
|
behavior: "smooth"
|
|
53117
53128
|
});
|
|
53118
53129
|
}
|
|
@@ -53123,7 +53134,7 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
53123
53134
|
}, [Z, t]), un(() => {
|
|
53124
53135
|
F && F(Z);
|
|
53125
53136
|
}, [Z, F]);
|
|
53126
|
-
const we = B.length > 0 || Z.length > 0, [Se, pe] =
|
|
53137
|
+
const we = B.length > 0 || Z.length > 0, [Se, pe] = Kt(!1);
|
|
53127
53138
|
un(() => {
|
|
53128
53139
|
const te = !s && !k && !C && we;
|
|
53129
53140
|
return te ? (Le.current = !0, pe(!0), I.current && (clearTimeout(I.current), I.current = null)) : Le.current && !te ? I.current = setTimeout(() => {
|
|
@@ -53140,7 +53151,7 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
53140
53151
|
return;
|
|
53141
53152
|
let je = null;
|
|
53142
53153
|
const tt = () => {
|
|
53143
|
-
D.current || (Ae.current !== -1 || Ce.current !== -1) && (Ae.current = -1, Ne.current = -1, Ce.current = -1, re(-1), V(-1), He(null), Oe((
|
|
53154
|
+
D.current || (Ae.current !== -1 || Ce.current !== -1) && (Ae.current = -1, Ne.current = -1, Ce.current = -1, re(-1), V(-1), He(null), Oe((wt) => wt + 1)), je && cancelAnimationFrame(je), je = requestAnimationFrame(() => {
|
|
53144
53155
|
le(), je = null;
|
|
53145
53156
|
});
|
|
53146
53157
|
}, ft = te.view.dom.closest(".content-wrapper") || ((St = (lt = te.view.dom.closest(".simple-editor-content")) == null ? void 0 : lt.parentElement) == null ? void 0 : St.parentElement);
|
|
@@ -53166,37 +53177,37 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
53166
53177
|
le();
|
|
53167
53178
|
return;
|
|
53168
53179
|
}
|
|
53169
|
-
const
|
|
53180
|
+
const Ht = () => {
|
|
53170
53181
|
le();
|
|
53171
53182
|
};
|
|
53172
|
-
At.addEventListener("load",
|
|
53183
|
+
At.addEventListener("load", Ht, { once: !0 }), tt.set(At, Ht);
|
|
53173
53184
|
});
|
|
53174
|
-
},
|
|
53185
|
+
}, wt = () => {
|
|
53175
53186
|
ft.forEach((At) => {
|
|
53176
53187
|
At.el.removeEventListener("mouseenter", At.enter), At.el.removeEventListener("mouseleave", At.leave);
|
|
53177
53188
|
}), ft.length = 0, je.querySelectorAll(
|
|
53178
53189
|
".image-view--pending-insert, .image-view--pending-delete"
|
|
53179
53190
|
).forEach((At) => {
|
|
53180
|
-
const
|
|
53191
|
+
const Ht = () => {
|
|
53181
53192
|
lt && (clearTimeout(lt), lt = null), de.current = !0;
|
|
53182
53193
|
try {
|
|
53183
|
-
const
|
|
53194
|
+
const xt = te.view.posAtDOM(At, 0), bn = Z.findIndex((Ie) => !!(Ie.greenRange && xt >= Ie.greenRange.from && xt <= Ie.greenRange.to || Ie.redRange && xt >= Ie.redRange.from && xt <= Ie.redRange.to));
|
|
53184
53195
|
bn >= 0 && (Ae.current = bn, Ce.current = -1, re(bn));
|
|
53185
53196
|
} catch {
|
|
53186
53197
|
}
|
|
53187
|
-
},
|
|
53198
|
+
}, en = () => {
|
|
53188
53199
|
de.current = !1, lt = setTimeout(() => {
|
|
53189
|
-
$.current || (Ae.current = -1, Ce.current = -1, re(-1), V(-1), Oe((
|
|
53200
|
+
$.current || (Ae.current = -1, Ce.current = -1, re(-1), V(-1), Oe((xt) => xt + 1));
|
|
53190
53201
|
}, 300);
|
|
53191
53202
|
};
|
|
53192
|
-
At.addEventListener("mouseenter",
|
|
53203
|
+
At.addEventListener("mouseenter", Ht), At.addEventListener("mouseleave", en), ft.push({ el: At, enter: Ht, leave: en });
|
|
53193
53204
|
});
|
|
53194
53205
|
};
|
|
53195
|
-
St(),
|
|
53206
|
+
St(), wt();
|
|
53196
53207
|
let Je = null;
|
|
53197
53208
|
const ct = new MutationObserver(() => {
|
|
53198
53209
|
Je && cancelAnimationFrame(Je), Je = requestAnimationFrame(() => {
|
|
53199
|
-
St(),
|
|
53210
|
+
St(), wt(), Je = null;
|
|
53200
53211
|
});
|
|
53201
53212
|
});
|
|
53202
53213
|
return ct.observe(je, { childList: !0, subtree: !0 }), () => {
|
|
@@ -53207,7 +53218,7 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
53207
53218
|
}), lt && clearTimeout(lt);
|
|
53208
53219
|
};
|
|
53209
53220
|
}, [q, t, le, Z]);
|
|
53210
|
-
const Ne =
|
|
53221
|
+
const Ne = Jt(-1), Ae = Jt(-1);
|
|
53211
53222
|
un(() => {
|
|
53212
53223
|
if (!q || !t.current)
|
|
53213
53224
|
return;
|
|
@@ -53220,23 +53231,23 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
53220
53231
|
var ai, li, $i;
|
|
53221
53232
|
b.current = !1, Re.current = { clientX: ct.clientX, clientY: ct.clientY }, tt && (clearTimeout(tt), tt = null);
|
|
53222
53233
|
const Ge = te.view.posAtCoords({ left: ct.clientX, top: ct.clientY }), At = () => {
|
|
53223
|
-
var
|
|
53224
|
-
let st = ct.target, dn = null,
|
|
53234
|
+
var jt, ht;
|
|
53235
|
+
let st = ct.target, dn = null, bt = null;
|
|
53225
53236
|
for (; st && st !== te.view.dom; ) {
|
|
53226
53237
|
if (st.tagName === "MARK" && st.getAttribute("data-color")) {
|
|
53227
53238
|
dn = st;
|
|
53228
53239
|
break;
|
|
53229
53240
|
}
|
|
53230
53241
|
if (st.tagName === "TABLE" && (st.getAttribute("data-pending-delete") === "true" || st.getAttribute("data-pending-insert") === "true" || st.classList.contains("pending-delete-table") || st.classList.contains("pending-insert-table"))) {
|
|
53231
|
-
|
|
53242
|
+
bt = st;
|
|
53232
53243
|
break;
|
|
53233
53244
|
}
|
|
53234
53245
|
if (st.tagName === "PRE" && (st.getAttribute("data-pending-delete") === "true" || st.getAttribute("data-pending-insert") === "true")) {
|
|
53235
|
-
|
|
53246
|
+
bt = st;
|
|
53236
53247
|
break;
|
|
53237
53248
|
}
|
|
53238
|
-
if ((
|
|
53239
|
-
|
|
53249
|
+
if ((jt = st.classList) != null && jt.contains("image-view--pending-insert") || (ht = st.classList) != null && ht.contains("image-view--pending-delete")) {
|
|
53250
|
+
bt = st;
|
|
53240
53251
|
break;
|
|
53241
53252
|
}
|
|
53242
53253
|
if (st.tagName === "BLOCKQUOTE" && !dn) {
|
|
@@ -53248,141 +53259,141 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
53248
53259
|
}
|
|
53249
53260
|
st = st.parentElement;
|
|
53250
53261
|
}
|
|
53251
|
-
if (!dn && !
|
|
53262
|
+
if (!dn && !bt)
|
|
53252
53263
|
return -1;
|
|
53253
53264
|
try {
|
|
53254
53265
|
if (dn) {
|
|
53255
53266
|
const Qe = te.view.posAtDOM(dn, 0);
|
|
53256
|
-
let _n = Z.findIndex((
|
|
53267
|
+
let _n = Z.findIndex((Qt) => !!(Qt.redRange && Qe >= Qt.redRange.from && Qe <= Qt.redRange.to || Qt.greenRange && Qe >= Qt.greenRange.from && Qe <= Qt.greenRange.to));
|
|
53257
53268
|
if (_n === -1 && (_n = Z.findIndex((kn) => !!(kn.redRange && Qe >= kn.redRange.from - 5 && Qe <= kn.redRange.to + 5 || kn.greenRange && Qe >= kn.greenRange.from - 5 && Qe <= kn.greenRange.to + 5))), _n === -1 && Z.length > 0) {
|
|
53258
|
-
let
|
|
53269
|
+
let Qt = 1 / 0;
|
|
53259
53270
|
Z.forEach((kn, Ii) => {
|
|
53260
53271
|
const hr = kn.redRange ? Math.min(Math.abs(Qe - kn.redRange.from), Math.abs(Qe - kn.redRange.to)) : 1 / 0, ci = kn.greenRange ? Math.min(Math.abs(Qe - kn.greenRange.from), Math.abs(Qe - kn.greenRange.to)) : 1 / 0, ui = Math.min(hr, ci);
|
|
53261
|
-
ui <
|
|
53262
|
-
}),
|
|
53272
|
+
ui < Qt && (Qt = ui, _n = Ii);
|
|
53273
|
+
}), Qt > 50 && (_n = -1);
|
|
53263
53274
|
}
|
|
53264
53275
|
return _n;
|
|
53265
53276
|
}
|
|
53266
|
-
if (
|
|
53267
|
-
const Qe = te.view.posAtDOM(
|
|
53268
|
-
let _n = Z.findIndex((
|
|
53277
|
+
if (bt) {
|
|
53278
|
+
const Qe = te.view.posAtDOM(bt, 0);
|
|
53279
|
+
let _n = Z.findIndex((Qt) => !!(Qt.redRange && Qe >= Qt.redRange.from && Qe <= Qt.redRange.to || Qt.greenRange && Qe >= Qt.greenRange.from && Qe <= Qt.greenRange.to));
|
|
53269
53280
|
return _n === -1 && (_n = Z.findIndex((kn) => !!(kn.redRange && Qe >= kn.redRange.from - 10 && Qe <= kn.redRange.to + 10 || kn.greenRange && Qe >= kn.greenRange.from - 10 && Qe <= kn.greenRange.to + 10))), _n;
|
|
53270
53281
|
}
|
|
53271
53282
|
} catch {
|
|
53272
53283
|
}
|
|
53273
53284
|
return -1;
|
|
53274
|
-
},
|
|
53275
|
-
var
|
|
53276
|
-
const st = (
|
|
53285
|
+
}, Ht = () => {
|
|
53286
|
+
var jt;
|
|
53287
|
+
const st = (jt = W.current) == null ? void 0 : jt.getBoundingClientRect();
|
|
53277
53288
|
if (!st)
|
|
53278
53289
|
return -1;
|
|
53279
|
-
const dn = ct.clientX - st.left,
|
|
53280
|
-
return Z.findIndex((ht) => !!(ht.rect && dn >= ht.rect.left && dn <= ht.rect.right &&
|
|
53290
|
+
const dn = ct.clientX - st.left, bt = ct.clientY - st.top;
|
|
53291
|
+
return Z.findIndex((ht) => !!(ht.rect && dn >= ht.rect.left && dn <= ht.rect.right && bt >= ht.rect.top && bt <= ht.rect.bottom));
|
|
53281
53292
|
};
|
|
53282
53293
|
if (!Ge) {
|
|
53283
53294
|
const st = At();
|
|
53284
53295
|
if (st !== -1) {
|
|
53285
53296
|
if (st !== Ae.current) {
|
|
53286
53297
|
Ae.current = st;
|
|
53287
|
-
const
|
|
53288
|
-
(
|
|
53298
|
+
const bt = Z[st], jt = Z.some((Qe) => Qe.isImageDeletion || Qe.isImageReplacement || Qe.isImageInsertion);
|
|
53299
|
+
(bt == null ? void 0 : bt.includesTableDeletion) || (bt == null ? void 0 : bt.isTableReplacedByText) || (bt == null ? void 0 : bt.includesCodeBlockDeletion) || (bt == null ? void 0 : bt.isCodeBlockReplacedByText) || (bt == null ? void 0 : bt.isCodeBlockDeletion) || (bt == null ? void 0 : bt.isCodeBlockInsertion) || (bt == null ? void 0 : bt.isCodeBlockReplacement) || (bt == null ? void 0 : bt.isTableDeletion) || (bt == null ? void 0 : bt.isTableInsertion) || (bt == null ? void 0 : bt.isTableReplacement) || bt != null && bt.isTextOnly && jt ? (Ce.current = st, Oe((Qe) => Qe + 1)) : (Ce.current = -1, re(st));
|
|
53289
53300
|
}
|
|
53290
53301
|
return;
|
|
53291
53302
|
}
|
|
53292
|
-
const dn =
|
|
53303
|
+
const dn = Ht();
|
|
53293
53304
|
if (dn !== -1) {
|
|
53294
53305
|
dn !== Ae.current && (Ae.current = dn, re(dn));
|
|
53295
53306
|
return;
|
|
53296
53307
|
}
|
|
53297
53308
|
if (Z.length > 0) {
|
|
53298
|
-
const
|
|
53309
|
+
const bt = ct.clientY, jt = Z.findIndex((ht) => {
|
|
53299
53310
|
const Qe = ht.greenRange || ht.redRange;
|
|
53300
53311
|
if (!Qe)
|
|
53301
53312
|
return !1;
|
|
53302
53313
|
try {
|
|
53303
|
-
const _n = te.view.coordsAtPos(Qe.from),
|
|
53304
|
-
return
|
|
53314
|
+
const _n = te.view.coordsAtPos(Qe.from), Qt = te.view.coordsAtPos(Math.min(Qe.to, te.state.doc.content.size));
|
|
53315
|
+
return bt >= _n.top - 10 && bt <= Qt.bottom + 10;
|
|
53305
53316
|
} catch {
|
|
53306
53317
|
return !1;
|
|
53307
53318
|
}
|
|
53308
53319
|
});
|
|
53309
|
-
if (
|
|
53310
|
-
if (
|
|
53311
|
-
Ae.current =
|
|
53312
|
-
const ht = Z[
|
|
53313
|
-
(ht == null ? void 0 : ht.includesTableDeletion) || (ht == null ? void 0 : ht.isTableReplacedByText) || (ht == null ? void 0 : ht.includesCodeBlockDeletion) || (ht == null ? void 0 : ht.isCodeBlockReplacedByText) || (ht == null ? void 0 : ht.isCodeBlockDeletion) || (ht == null ? void 0 : ht.isCodeBlockInsertion) || (ht == null ? void 0 : ht.isCodeBlockReplacement) || (ht == null ? void 0 : ht.isTableDeletion) || (ht == null ? void 0 : ht.isTableInsertion) || (ht == null ? void 0 : ht.isTableReplacement) || ht != null && ht.isTextOnly && Qe ? (Ce.current =
|
|
53320
|
+
if (jt !== -1) {
|
|
53321
|
+
if (jt !== Ae.current) {
|
|
53322
|
+
Ae.current = jt;
|
|
53323
|
+
const ht = Z[jt], Qe = Z.some((Qt) => Qt.isImageDeletion || Qt.isImageReplacement || Qt.isImageInsertion);
|
|
53324
|
+
(ht == null ? void 0 : ht.includesTableDeletion) || (ht == null ? void 0 : ht.isTableReplacedByText) || (ht == null ? void 0 : ht.includesCodeBlockDeletion) || (ht == null ? void 0 : ht.isCodeBlockReplacedByText) || (ht == null ? void 0 : ht.isCodeBlockDeletion) || (ht == null ? void 0 : ht.isCodeBlockInsertion) || (ht == null ? void 0 : ht.isCodeBlockReplacement) || (ht == null ? void 0 : ht.isTableDeletion) || (ht == null ? void 0 : ht.isTableInsertion) || (ht == null ? void 0 : ht.isTableReplacement) || ht != null && ht.isTextOnly && Qe ? (Ce.current = jt, Oe((Qt) => Qt + 1)) : (Ce.current = -1, re(jt));
|
|
53314
53325
|
}
|
|
53315
53326
|
return;
|
|
53316
53327
|
}
|
|
53317
53328
|
}
|
|
53318
53329
|
tt = setTimeout(() => {
|
|
53319
|
-
!$.current && !de.current && (Ne.current !== -1 && (Ne.current = -1, V(-1)), Ae.current !== -1 && (Ae.current = -1, re(-1)), Ce.current !== -1 && (Ce.current = -1, Oe((
|
|
53330
|
+
!$.current && !de.current && (Ne.current !== -1 && (Ne.current = -1, V(-1)), Ae.current !== -1 && (Ae.current = -1, re(-1)), Ce.current !== -1 && (Ce.current = -1, Oe((bt) => bt + 1)));
|
|
53320
53331
|
}, 150);
|
|
53321
53332
|
return;
|
|
53322
53333
|
}
|
|
53323
|
-
const
|
|
53324
|
-
|
|
53325
|
-
let
|
|
53326
|
-
if (
|
|
53327
|
-
var
|
|
53328
|
-
const dn = st.redRange && Ge.pos >= st.redRange.from && Ge.pos <= st.redRange.to,
|
|
53334
|
+
const en = B.findIndex((st) => Ge.pos >= st.from && Ge.pos <= st.to);
|
|
53335
|
+
en !== Ne.current && (Ne.current = en, V(en));
|
|
53336
|
+
let xt = At();
|
|
53337
|
+
if (xt === -1 && (xt = Z.findIndex((st) => {
|
|
53338
|
+
var jt;
|
|
53339
|
+
const dn = st.redRange && Ge.pos >= st.redRange.from && Ge.pos <= st.redRange.to, bt = st.greenRange && Ge.pos >= st.greenRange.from && Ge.pos <= st.greenRange.to;
|
|
53329
53340
|
if (st.rect) {
|
|
53330
|
-
const ht = (
|
|
53341
|
+
const ht = (jt = W.current) == null ? void 0 : jt.getBoundingClientRect();
|
|
53331
53342
|
if (ht) {
|
|
53332
53343
|
const Qe = ct.clientX - ht.left, _n = ct.clientY - ht.top;
|
|
53333
53344
|
if (Qe >= st.rect.left && Qe <= st.rect.right && _n >= st.rect.top && _n <= st.rect.bottom)
|
|
53334
53345
|
return !0;
|
|
53335
53346
|
}
|
|
53336
53347
|
}
|
|
53337
|
-
return dn ||
|
|
53338
|
-
})),
|
|
53348
|
+
return dn || bt;
|
|
53349
|
+
})), xt === -1) {
|
|
53339
53350
|
const st = (ai = W.current) == null ? void 0 : ai.getBoundingClientRect();
|
|
53340
53351
|
if (st) {
|
|
53341
|
-
const dn = ct.clientX - st.left,
|
|
53342
|
-
|
|
53352
|
+
const dn = ct.clientX - st.left, bt = ct.clientY - st.top, jt = 8;
|
|
53353
|
+
xt = Z.findIndex((ht) => ht.rect ? dn >= ht.rect.left && dn <= ht.rect.right && bt >= ht.rect.top - jt && bt <= ht.rect.bottom + jt : !1);
|
|
53343
53354
|
}
|
|
53344
53355
|
}
|
|
53345
|
-
if (
|
|
53356
|
+
if (xt === -1 && Z.length > 0 && ((li = W.current) == null ? void 0 : li.getBoundingClientRect())) {
|
|
53346
53357
|
const dn = ct.clientY;
|
|
53347
|
-
|
|
53348
|
-
const
|
|
53349
|
-
if (!
|
|
53358
|
+
xt = Z.findIndex((bt) => {
|
|
53359
|
+
const jt = bt.greenRange || bt.redRange;
|
|
53360
|
+
if (!jt)
|
|
53350
53361
|
return !1;
|
|
53351
53362
|
try {
|
|
53352
|
-
const ht = te.view.coordsAtPos(
|
|
53363
|
+
const ht = te.view.coordsAtPos(jt.from), Qe = te.view.coordsAtPos(Math.min(jt.to, te.state.doc.content.size));
|
|
53353
53364
|
return dn >= ht.top - 10 && dn <= Qe.bottom + 10;
|
|
53354
53365
|
} catch {
|
|
53355
53366
|
return !1;
|
|
53356
53367
|
}
|
|
53357
53368
|
});
|
|
53358
53369
|
}
|
|
53359
|
-
(
|
|
53360
|
-
const bn = Z.some((st) => st.isImageDeletion || st.isImageReplacement || st.isImageInsertion), Ie =
|
|
53361
|
-
if (
|
|
53362
|
-
if (
|
|
53370
|
+
(xt >= 0 || Ge && Z.some((st) => st.greenRange && Ge.pos >= st.greenRange.from && Ge.pos <= st.greenRange.to || st.redRange && Ge.pos >= st.redRange.from && Ge.pos <= st.redRange.to)) && Ae.current;
|
|
53371
|
+
const bn = Z.some((st) => st.isImageDeletion || st.isImageReplacement || st.isImageInsertion), Ie = xt >= 0 ? Z[xt] : null, hn = (Ie == null ? void 0 : Ie.isTextOnly) === !0, pn = (Ie == null ? void 0 : Ie.includesTableDeletion) === !0 || (Ie == null ? void 0 : Ie.isTableReplacedByText) === !0, on = (Ie == null ? void 0 : Ie.includesCodeBlockDeletion) === !0 || (Ie == null ? void 0 : Ie.isCodeBlockReplacedByText) === !0, Mt = (Ie == null ? void 0 : Ie.isCodeBlockDeletion) === !0 || (Ie == null ? void 0 : Ie.isCodeBlockInsertion) === !0 || (Ie == null ? void 0 : Ie.isCodeBlockReplacement) === !0, Mi = (Ie == null ? void 0 : Ie.isTableDeletion) === !0 || (Ie == null ? void 0 : Ie.isTableInsertion) === !0 || (Ie == null ? void 0 : Ie.isTableReplacement) === !0;
|
|
53372
|
+
if (xt !== Ae.current) {
|
|
53373
|
+
if (xt === -1 && Ae.current >= 0) {
|
|
53363
53374
|
tt = setTimeout(() => {
|
|
53364
53375
|
!$.current && !de.current && (Ae.current = -1, Ne.current = -1, Ce.current = -1, re(-1), V(-1), Oe((st) => st + 1));
|
|
53365
53376
|
}, 150);
|
|
53366
53377
|
return;
|
|
53367
53378
|
}
|
|
53368
|
-
Ae.current =
|
|
53379
|
+
Ae.current = xt, pn || on || Mt || Mi ? (Ce.current = xt, oe >= 0 && re(-1), Oe((st) => st + 1)) : hn && bn ? (Ce.current = xt, oe >= 0 && !(($i = Z[oe]) != null && $i.isTextOnly) && re(-1), Oe((st) => st + 1)) : (Ce.current = -1, re(xt));
|
|
53369
53380
|
}
|
|
53370
53381
|
};
|
|
53371
53382
|
let lt = 0;
|
|
53372
53383
|
const St = 32;
|
|
53373
|
-
let
|
|
53384
|
+
let wt = null;
|
|
53374
53385
|
const Je = (ct) => {
|
|
53375
53386
|
const Ge = performance.now();
|
|
53376
53387
|
if (Ge - lt < St) {
|
|
53377
|
-
|
|
53378
|
-
lt = performance.now(), ft(ct),
|
|
53388
|
+
wt && cancelAnimationFrame(wt), wt = requestAnimationFrame(() => {
|
|
53389
|
+
lt = performance.now(), ft(ct), wt = null;
|
|
53379
53390
|
});
|
|
53380
53391
|
return;
|
|
53381
53392
|
}
|
|
53382
53393
|
lt = Ge, ft(ct);
|
|
53383
53394
|
};
|
|
53384
53395
|
return je.addEventListener("mousemove", Je), () => {
|
|
53385
|
-
je.removeEventListener("mousemove", Je), tt && clearTimeout(tt),
|
|
53396
|
+
je.removeEventListener("mousemove", Je), tt && clearTimeout(tt), wt && cancelAnimationFrame(wt);
|
|
53386
53397
|
};
|
|
53387
53398
|
}, [q, B, Z, t, oe, Oe]), un(() => {
|
|
53388
53399
|
if (!t.current || !q || oe === De.current && j === -1)
|
|
@@ -53397,20 +53408,20 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
53397
53408
|
const tt = (lt, St) => {
|
|
53398
53409
|
if (!(lt.type.name === "image" || lt.type.name === "resizableImage") && !(lt.type.name === "table" && (lt.attrs.pendingInsert || lt.attrs.pendingDelete)))
|
|
53399
53410
|
try {
|
|
53400
|
-
const
|
|
53401
|
-
if (
|
|
53402
|
-
if (
|
|
53411
|
+
const wt = te.view.nodeDOM(St);
|
|
53412
|
+
if (wt && wt instanceof HTMLElement) {
|
|
53413
|
+
if (wt.tagName === "IMG" || wt.classList.contains("resizable-image-node") || wt.tagName === "TABLE" && (wt.hasAttribute("data-pending-insert") || wt.hasAttribute("data-pending-delete")) || wt.closest("table[data-pending-insert], table[data-pending-delete]"))
|
|
53403
53414
|
return;
|
|
53404
|
-
|
|
53415
|
+
wt.setAttribute("data-active-review", "true");
|
|
53405
53416
|
}
|
|
53406
53417
|
} catch {
|
|
53407
53418
|
}
|
|
53408
53419
|
}, ft = te.state.doc.content.size;
|
|
53409
53420
|
if (j >= 0 && B[j]) {
|
|
53410
|
-
const lt = B[j], St = Math.max(0, Math.min(lt.from, ft)),
|
|
53411
|
-
if (St <
|
|
53421
|
+
const lt = B[j], St = Math.max(0, Math.min(lt.from, ft)), wt = Math.max(0, Math.min(lt.to, ft));
|
|
53422
|
+
if (St < wt)
|
|
53412
53423
|
try {
|
|
53413
|
-
te.state.doc.nodesBetween(St,
|
|
53424
|
+
te.state.doc.nodesBetween(St, wt, (Je, ct) => (tt(Je, ct), !0));
|
|
53414
53425
|
} catch (Je) {
|
|
53415
53426
|
console.warn("[BlogEditor] Error in nodesBetween for active range:", Je);
|
|
53416
53427
|
}
|
|
@@ -53418,19 +53429,19 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
53418
53429
|
if (oe >= 0 && Z[oe]) {
|
|
53419
53430
|
const lt = Z[oe];
|
|
53420
53431
|
if (lt.greenRange) {
|
|
53421
|
-
const St = Math.max(0, Math.min(lt.greenRange.from, ft)),
|
|
53422
|
-
if (St <
|
|
53432
|
+
const St = Math.max(0, Math.min(lt.greenRange.from, ft)), wt = Math.max(0, Math.min(lt.greenRange.to, ft));
|
|
53433
|
+
if (St < wt)
|
|
53423
53434
|
try {
|
|
53424
|
-
te.state.doc.nodesBetween(St,
|
|
53435
|
+
te.state.doc.nodesBetween(St, wt, (Je, ct) => (tt(Je, ct), !0));
|
|
53425
53436
|
} catch (Je) {
|
|
53426
53437
|
console.warn("[BlogEditor] Error in nodesBetween for green range:", Je);
|
|
53427
53438
|
}
|
|
53428
53439
|
}
|
|
53429
53440
|
if (lt.redRange) {
|
|
53430
|
-
const St = Math.max(0, Math.min(lt.redRange.from, ft)),
|
|
53431
|
-
if (St <
|
|
53441
|
+
const St = Math.max(0, Math.min(lt.redRange.from, ft)), wt = Math.max(0, Math.min(lt.redRange.to, ft));
|
|
53442
|
+
if (St < wt)
|
|
53432
53443
|
try {
|
|
53433
|
-
te.state.doc.nodesBetween(St,
|
|
53444
|
+
te.state.doc.nodesBetween(St, wt, (Je, ct) => (tt(Je, ct), !0));
|
|
53434
53445
|
} catch (Je) {
|
|
53435
53446
|
console.warn("[BlogEditor] Error in nodesBetween for red range:", Je);
|
|
53436
53447
|
}
|
|
@@ -53459,14 +53470,14 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
53459
53470
|
let tt = 1 / 0, ft = 0;
|
|
53460
53471
|
const lt = je.view.dom;
|
|
53461
53472
|
lt.querySelectorAll("mark[data-color]").forEach((ct) => {
|
|
53462
|
-
var
|
|
53463
|
-
const Ge = ((
|
|
53464
|
-
if (!(!At && !
|
|
53473
|
+
var en, xt, bn, Ie;
|
|
53474
|
+
const Ge = ((en = ct.getAttribute("data-color")) == null ? void 0 : en.toLowerCase()) || "", At = Ge.includes("c7f0d6") || Ge.includes("d5f6e7"), Ht = Ge.includes("fecaca");
|
|
53475
|
+
if (!(!At && !Ht))
|
|
53465
53476
|
try {
|
|
53466
53477
|
const hn = je.view.posAtDOM(ct, 0);
|
|
53467
53478
|
let pn = !1;
|
|
53468
|
-
if (At && te.greenRange && hn >= te.greenRange.from && hn <= te.greenRange.to && (pn = !0),
|
|
53469
|
-
const on = ct.getBoundingClientRect(), Mt = (
|
|
53479
|
+
if (At && te.greenRange && hn >= te.greenRange.from && hn <= te.greenRange.to && (pn = !0), Ht && te.redRange && hn >= te.redRange.from && hn <= te.redRange.to && (pn = !0), pn) {
|
|
53480
|
+
const on = ct.getBoundingClientRect(), Mt = (xt = W.current) == null ? void 0 : xt.getBoundingClientRect();
|
|
53470
53481
|
if (Mt) {
|
|
53471
53482
|
const Mi = on.top - Mt.top + (((bn = W.current) == null ? void 0 : bn.scrollTop) || 0), ai = on.bottom - Mt.top + (((Ie = W.current) == null ? void 0 : Ie.scrollTop) || 0);
|
|
53472
53483
|
tt = Math.min(tt, Mi), ft = Math.max(ft, ai);
|
|
@@ -53475,47 +53486,47 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
53475
53486
|
} catch {
|
|
53476
53487
|
}
|
|
53477
53488
|
}), (te.greenRange || te.redRange) && lt.querySelectorAll(".image-view--pending-insert, .image-view--pending-delete").forEach((Ge) => {
|
|
53478
|
-
var At,
|
|
53489
|
+
var At, Ht, en;
|
|
53479
53490
|
try {
|
|
53480
|
-
const
|
|
53491
|
+
const xt = je.view.posAtDOM(Ge, 0), bn = te.greenRange && xt >= te.greenRange.from && xt <= te.greenRange.to, Ie = te.redRange && xt >= te.redRange.from && xt <= te.redRange.to;
|
|
53481
53492
|
if (!bn && !Ie)
|
|
53482
53493
|
return;
|
|
53483
53494
|
const hn = Ge.getBoundingClientRect(), pn = (At = W.current) == null ? void 0 : At.getBoundingClientRect();
|
|
53484
53495
|
if (pn) {
|
|
53485
|
-
const on = hn.top - pn.top + (((
|
|
53496
|
+
const on = hn.top - pn.top + (((Ht = W.current) == null ? void 0 : Ht.scrollTop) || 0), Mt = hn.bottom - pn.top + (((en = W.current) == null ? void 0 : en.scrollTop) || 0);
|
|
53486
53497
|
tt = Math.min(tt, on), ft = Math.max(ft, Mt);
|
|
53487
53498
|
}
|
|
53488
53499
|
} catch {
|
|
53489
53500
|
}
|
|
53490
53501
|
}), (te.greenRange || te.redRange) && lt.querySelectorAll(".pending-insert-table, .pending-delete-table").forEach((Ge) => {
|
|
53491
|
-
var At,
|
|
53502
|
+
var At, Ht, en;
|
|
53492
53503
|
try {
|
|
53493
|
-
const
|
|
53504
|
+
const xt = je.view.posAtDOM(Ge, 0), bn = te.greenRange && xt >= te.greenRange.from && xt <= te.greenRange.to, Ie = te.redRange && xt >= te.redRange.from && xt <= te.redRange.to;
|
|
53494
53505
|
if (!bn && !Ie)
|
|
53495
53506
|
return;
|
|
53496
53507
|
const hn = Ge.getBoundingClientRect(), pn = (At = W.current) == null ? void 0 : At.getBoundingClientRect();
|
|
53497
53508
|
if (pn) {
|
|
53498
|
-
const on = hn.top - pn.top + (((
|
|
53509
|
+
const on = hn.top - pn.top + (((Ht = W.current) == null ? void 0 : Ht.scrollTop) || 0), Mt = hn.bottom - pn.top + (((en = W.current) == null ? void 0 : en.scrollTop) || 0);
|
|
53499
53510
|
tt = Math.min(tt, on), ft = Math.max(ft, Mt);
|
|
53500
53511
|
}
|
|
53501
53512
|
} catch {
|
|
53502
53513
|
}
|
|
53503
53514
|
}), (te.greenRange || te.redRange) && lt.querySelectorAll(".pending-insert-codeblock, .pending-delete-codeblock").forEach((Ge) => {
|
|
53504
|
-
var At,
|
|
53515
|
+
var At, Ht, en;
|
|
53505
53516
|
try {
|
|
53506
|
-
const
|
|
53517
|
+
const xt = je.view.posAtDOM(Ge, 0), bn = te.greenRange && xt >= te.greenRange.from && xt <= te.greenRange.to, Ie = te.redRange && xt >= te.redRange.from && xt <= te.redRange.to;
|
|
53507
53518
|
if (!bn && !Ie)
|
|
53508
53519
|
return;
|
|
53509
53520
|
const hn = Ge.getBoundingClientRect(), pn = (At = W.current) == null ? void 0 : At.getBoundingClientRect();
|
|
53510
53521
|
if (pn) {
|
|
53511
|
-
const on = hn.top - pn.top + (((
|
|
53522
|
+
const on = hn.top - pn.top + (((Ht = W.current) == null ? void 0 : Ht.scrollTop) || 0), Mt = hn.bottom - pn.top + (((en = W.current) == null ? void 0 : en.scrollTop) || 0);
|
|
53512
53523
|
tt = Math.min(tt, on), ft = Math.max(ft, Mt);
|
|
53513
53524
|
}
|
|
53514
53525
|
} catch {
|
|
53515
53526
|
}
|
|
53516
53527
|
});
|
|
53517
|
-
const
|
|
53518
|
-
te.rect && (tt = Math.min(tt, te.rect.top +
|
|
53528
|
+
const wt = ((Je = W.current) == null ? void 0 : Je.scrollTop) || 0;
|
|
53529
|
+
te.rect && (tt = Math.min(tt, te.rect.top + wt), ft = Math.max(ft, te.rect.bottom + wt)), te.lastGreenRect && (tt = Math.min(tt, te.lastGreenRect.top + wt), ft = Math.max(ft, te.lastGreenRect.bottom + wt)), He(tt !== 1 / 0 && ft !== 0 ? { top: tt - 1, bottom: ft + 1 } : null);
|
|
53519
53530
|
}, [oe, Z, q, t]), un(() => {
|
|
53520
53531
|
if (!t.current || !q)
|
|
53521
53532
|
return;
|
|
@@ -53523,13 +53534,13 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
53523
53534
|
if (!te)
|
|
53524
53535
|
return;
|
|
53525
53536
|
const je = () => {
|
|
53526
|
-
const { doc:
|
|
53527
|
-
|
|
53537
|
+
const { doc: Ht } = te.state;
|
|
53538
|
+
Ht.descendants((en, xt) => {
|
|
53528
53539
|
var bn, Ie;
|
|
53529
|
-
if (
|
|
53530
|
-
const { pendingDelete: hn, pendingInsert: pn } =
|
|
53540
|
+
if (en.type.name === "table") {
|
|
53541
|
+
const { pendingDelete: hn, pendingInsert: pn } = en.attrs;
|
|
53531
53542
|
try {
|
|
53532
|
-
const on = te.view.nodeDOM(
|
|
53543
|
+
const on = te.view.nodeDOM(xt);
|
|
53533
53544
|
if (on) {
|
|
53534
53545
|
const Mt = on instanceof HTMLTableElement ? on : ((bn = on.querySelector) == null ? void 0 : bn.call(on, "table")) || on;
|
|
53535
53546
|
Mt instanceof HTMLElement && (hn === !0 && !Mt.hasAttribute("data-pending-delete") ? (Mt.setAttribute("data-pending-delete", "true"), Mt.classList.add("pending-delete-table")) : hn !== !0 && Mt.hasAttribute("data-pending-delete") && (Mt.removeAttribute("data-pending-delete"), Mt.classList.remove("pending-delete-table")), pn === !0 && !Mt.hasAttribute("data-pending-insert") ? (Mt.setAttribute("data-pending-insert", "true"), Mt.classList.add("pending-insert-table")) : pn !== !0 && Mt.hasAttribute("data-pending-insert") && (Mt.removeAttribute("data-pending-insert"), Mt.classList.remove("pending-insert-table")));
|
|
@@ -53537,10 +53548,10 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
53537
53548
|
} catch {
|
|
53538
53549
|
}
|
|
53539
53550
|
}
|
|
53540
|
-
if (
|
|
53541
|
-
const { pendingDelete: hn, pendingInsert: pn } =
|
|
53551
|
+
if (en.type.name === "codeBlock") {
|
|
53552
|
+
const { pendingDelete: hn, pendingInsert: pn } = en.attrs;
|
|
53542
53553
|
try {
|
|
53543
|
-
const on = te.view.nodeDOM(
|
|
53554
|
+
const on = te.view.nodeDOM(xt);
|
|
53544
53555
|
if (on) {
|
|
53545
53556
|
const Mt = on instanceof HTMLPreElement ? on : ((Ie = on.querySelector) == null ? void 0 : Ie.call(on, "pre")) || on;
|
|
53546
53557
|
Mt instanceof HTMLElement && (hn === !0 && !Mt.hasAttribute("data-pending-delete") ? (Mt.setAttribute("data-pending-delete", "true"), Mt.classList.add("pending-delete-codeblock")) : hn !== !0 && Mt.hasAttribute("data-pending-delete") && (Mt.removeAttribute("data-pending-delete"), Mt.classList.remove("pending-delete-codeblock")), pn === !0 && !Mt.hasAttribute("data-pending-insert") ? (Mt.setAttribute("data-pending-insert", "true"), Mt.classList.add("pending-insert-codeblock")) : pn !== !0 && Mt.hasAttribute("data-pending-insert") && (Mt.removeAttribute("data-pending-insert"), Mt.classList.remove("pending-insert-codeblock")));
|
|
@@ -53557,17 +53568,17 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
53557
53568
|
tt && je();
|
|
53558
53569
|
}, 50);
|
|
53559
53570
|
}), lt = te.view.dom;
|
|
53560
|
-
let St = null,
|
|
53571
|
+
let St = null, wt = 0;
|
|
53561
53572
|
const Je = 500, ct = () => {
|
|
53562
|
-
Date.now() -
|
|
53563
|
-
tt && (
|
|
53573
|
+
Date.now() - wt < Je || (St && clearTimeout(St), St = setTimeout(() => {
|
|
53574
|
+
tt && (wt = Date.now(), je());
|
|
53564
53575
|
}, 100));
|
|
53565
|
-
}, Ge = new MutationObserver((
|
|
53566
|
-
var
|
|
53567
|
-
for (const bn of
|
|
53576
|
+
}, Ge = new MutationObserver((Ht) => {
|
|
53577
|
+
var en, xt;
|
|
53578
|
+
for (const bn of Ht)
|
|
53568
53579
|
if (bn.type === "childList") {
|
|
53569
53580
|
for (const Ie of bn.addedNodes)
|
|
53570
|
-
if (Ie instanceof HTMLElement && (Ie.tagName === "TABLE" || (
|
|
53581
|
+
if (Ie instanceof HTMLElement && (Ie.tagName === "TABLE" || (en = Ie.querySelector) != null && en.call(Ie, "table") || Ie.tagName === "PRE" || (xt = Ie.querySelector) != null && xt.call(Ie, "pre"))) {
|
|
53571
53582
|
ct();
|
|
53572
53583
|
return;
|
|
53573
53584
|
}
|
|
@@ -53578,8 +53589,8 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
53578
53589
|
subtree: !0,
|
|
53579
53590
|
attributes: !1
|
|
53580
53591
|
});
|
|
53581
|
-
const At = ({ transaction:
|
|
53582
|
-
|
|
53592
|
+
const At = ({ transaction: Ht }) => {
|
|
53593
|
+
Ht.docChanged && ct();
|
|
53583
53594
|
};
|
|
53584
53595
|
return te.on("transaction", At), () => {
|
|
53585
53596
|
tt = !1, cancelAnimationFrame(ft), St && clearTimeout(St), Ge.disconnect(), te.off("transaction", At);
|
|
@@ -53594,14 +53605,14 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
53594
53605
|
return;
|
|
53595
53606
|
const tt = Z[te], ft = ((lt = tt.greenRange) == null ? void 0 : lt.from) ?? ((St = tt.redRange) == null ? void 0 : St.from);
|
|
53596
53607
|
ft !== void 0 && (D.current = !0, requestAnimationFrame(() => {
|
|
53597
|
-
var
|
|
53608
|
+
var wt, Je, ct;
|
|
53598
53609
|
try {
|
|
53599
53610
|
je.commands.setTextSelection(ft);
|
|
53600
|
-
const Ge = je.view.coordsAtPos(ft), At = je.view.dom.closest(".content-wrapper") || ((Je = (
|
|
53611
|
+
const Ge = je.view.coordsAtPos(ft), At = je.view.dom.closest(".content-wrapper") || ((Je = (wt = je.view.dom.closest(".simple-editor-content")) == null ? void 0 : wt.parentElement) == null ? void 0 : Je.parentElement) || ((ct = W.current) == null ? void 0 : ct.querySelector(".content-wrapper"));
|
|
53601
53612
|
if (At && Ge) {
|
|
53602
|
-
const
|
|
53613
|
+
const Ht = At.getBoundingClientRect(), xt = At.scrollTop + (Ge.top - Ht.top) - Ht.height / 3;
|
|
53603
53614
|
At.scrollTo({
|
|
53604
|
-
top: Math.max(0,
|
|
53615
|
+
top: Math.max(0, xt),
|
|
53605
53616
|
behavior: "smooth"
|
|
53606
53617
|
});
|
|
53607
53618
|
}
|
|
@@ -53616,9 +53627,9 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
53616
53627
|
if (te < 0 || te >= Z.length)
|
|
53617
53628
|
return;
|
|
53618
53629
|
b.current = !0;
|
|
53619
|
-
const je = Z[te], tt = Z.some((ct) => ct.isImageDeletion || ct.isImageReplacement || ct.isImageInsertion || ct.isCodeBlockDeletion || ct.isCodeBlockInsertion || ct.isCodeBlockReplacement || ct.isTableDeletion || ct.isTableInsertion || ct.isTableReplacement), ft = je.includesTableDeletion || je.isTableReplacedByText, lt = je.includesCodeBlockDeletion || je.isCodeBlockReplacedByText, St = je.isCodeBlockDeletion || je.isCodeBlockInsertion || je.isCodeBlockReplacement,
|
|
53620
|
-
je.isTextOnly && tt && !je.includesCodeBlockInsertion || ft || lt || St ||
|
|
53621
|
-
}, [Z]),
|
|
53630
|
+
const je = Z[te], tt = Z.some((ct) => ct.isImageDeletion || ct.isImageReplacement || ct.isImageInsertion || ct.isCodeBlockDeletion || ct.isCodeBlockInsertion || ct.isCodeBlockReplacement || ct.isTableDeletion || ct.isTableInsertion || ct.isTableReplacement), ft = je.includesTableDeletion || je.isTableReplacedByText, lt = je.includesCodeBlockDeletion || je.isCodeBlockReplacedByText, St = je.isCodeBlockDeletion || je.isCodeBlockInsertion || je.isCodeBlockReplacement, wt = je.isTableDeletion || je.isTableInsertion || je.isTableReplacement;
|
|
53631
|
+
je.isTextOnly && tt && !je.includesCodeBlockInsertion || ft || lt || St || wt ? (Ce.current = te, re(-1), Oe((ct) => ct + 1)) : (Ce.current = -1, re(te));
|
|
53632
|
+
}, [Z]), Yt = () => {
|
|
53622
53633
|
if (Z.length > 0) {
|
|
53623
53634
|
const te = (Q + 1) % Z.length;
|
|
53624
53635
|
me(te), dt(te), Ze(te);
|
|
@@ -53663,7 +53674,7 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
53663
53674
|
text-decoration: line-through !important;
|
|
53664
53675
|
text-decoration-color: #EE877B !important;
|
|
53665
53676
|
color: #EE877B !important;
|
|
53666
|
-
font-weight:
|
|
53677
|
+
font-weight: inherit !important;
|
|
53667
53678
|
display: inline !important;
|
|
53668
53679
|
}
|
|
53669
53680
|
|
|
@@ -53678,7 +53689,8 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
53678
53689
|
text-decoration: none !important;
|
|
53679
53690
|
padding: 2px 0 !important;
|
|
53680
53691
|
color: #182234 !important;
|
|
53681
|
-
font-weight:
|
|
53692
|
+
font-weight: inherit !important;
|
|
53693
|
+
font-size: inherit !important;
|
|
53682
53694
|
display: inline !important;
|
|
53683
53695
|
box-decoration-break: clone !important;
|
|
53684
53696
|
-webkit-box-decoration-break: clone !important;
|
|
@@ -53728,8 +53740,8 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
53728
53740
|
text-decoration: line-through !important;
|
|
53729
53741
|
text-decoration-color: #EE877B !important;
|
|
53730
53742
|
color: #EE877B !important;
|
|
53731
|
-
font-family:
|
|
53732
|
-
font-weight:
|
|
53743
|
+
font-family: inherit !important;
|
|
53744
|
+
font-weight: inherit !important;
|
|
53733
53745
|
font-size: inherit !important;
|
|
53734
53746
|
line-height: 140% !important;
|
|
53735
53747
|
letter-spacing: -0.02em !important;
|
|
@@ -53763,7 +53775,7 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
53763
53775
|
text-decoration: none !important;
|
|
53764
53776
|
padding: 2px 0 !important;
|
|
53765
53777
|
color: #182234 !important;
|
|
53766
|
-
font-weight:
|
|
53778
|
+
font-weight: inherit !important;
|
|
53767
53779
|
display: inline !important;
|
|
53768
53780
|
box-decoration-break: clone !important;
|
|
53769
53781
|
-webkit-box-decoration-break: clone !important;
|
|
@@ -53779,8 +53791,8 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
53779
53791
|
text-decoration: line-through !important;
|
|
53780
53792
|
text-decoration-color: #EE877B !important;
|
|
53781
53793
|
color: #EE877B !important;
|
|
53782
|
-
font-family:
|
|
53783
|
-
font-weight:
|
|
53794
|
+
font-family: inherit !important;
|
|
53795
|
+
font-weight: inherit !important;
|
|
53784
53796
|
font-size: inherit !important;
|
|
53785
53797
|
line-height: 140% !important;
|
|
53786
53798
|
letter-spacing: -0.02em !important;
|
|
@@ -53793,7 +53805,7 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
53793
53805
|
.review-active-hover .simple-editor-content [style*="background-color: rgb(199, 240, 214)"] {
|
|
53794
53806
|
background-color: #D5F6E7 !important;
|
|
53795
53807
|
color: #182234 !important;
|
|
53796
|
-
font-weight:
|
|
53808
|
+
font-weight: inherit !important;
|
|
53797
53809
|
}
|
|
53798
53810
|
|
|
53799
53811
|
.review-active-hover .simple-editor-content mark[data-color="#fecaca"],
|
|
@@ -53804,6 +53816,9 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
53804
53816
|
text-decoration-color: #EE877B !important;
|
|
53805
53817
|
}
|
|
53806
53818
|
|
|
53819
|
+
/* Code badge diff styling handled via DOM classes (diff-code-red, diff-code-green)
|
|
53820
|
+
applied by syncCodeDiffStyles() — see code-block-node.scss for the CSS rules. */
|
|
53821
|
+
|
|
53807
53822
|
/* Elevate active/hovered diff marks above the dimming overlay */
|
|
53808
53823
|
/* EXCLUDE pending-insert and pending-delete tables - they have their own styling */
|
|
53809
53824
|
.review-pair-hover [data-active-review="true"]:not(table[data-pending-insert="true"]):not(table[data-pending-delete="true"]):not(table.pending-insert-table):not(table.pending-delete-table) {
|
|
@@ -53856,7 +53871,7 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
53856
53871
|
.review-active-hover .simple-editor-content [style*="background-color: rgb(199, 240, 214)"],
|
|
53857
53872
|
.review-active-hover .simple-editor-content [style*="background-color:#c7f0d6ff"] {
|
|
53858
53873
|
color: #182234 !important;
|
|
53859
|
-
font-weight:
|
|
53874
|
+
font-weight: inherit !important;
|
|
53860
53875
|
opacity: 1 !important;
|
|
53861
53876
|
filter: none !important;
|
|
53862
53877
|
visibility: visible !important;
|
|
@@ -53893,7 +53908,7 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
53893
53908
|
.review-active-hover [data-active-review="true"] [style*="background-color: rgb(199, 240, 214)"],
|
|
53894
53909
|
.review-active-hover [data-active-review="true"] [style*="background-color:#c7f0d6ff"] {
|
|
53895
53910
|
color: #182234 !important;
|
|
53896
|
-
font-weight:
|
|
53911
|
+
font-weight: inherit !important;
|
|
53897
53912
|
opacity: 1 !important;
|
|
53898
53913
|
filter: none !important;
|
|
53899
53914
|
visibility: visible !important;
|
|
@@ -54232,7 +54247,7 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
54232
54247
|
const tt = oe === je, ft = Ce.current === je;
|
|
54233
54248
|
if (!(tt || ft))
|
|
54234
54249
|
return null;
|
|
54235
|
-
const St = !te.greenRange && te.redRange,
|
|
54250
|
+
const St = !te.greenRange && te.redRange, wt = te.isImageDeletion === !0, Je = te.isImageReplacement === !0, ct = te.isImageInsertion === !0, Ge = wt || Je || ct, At = te.isCodeBlockDeletion === !0, Ht = te.isCodeBlockInsertion === !0, en = te.isCodeBlockReplacement === !0, xt = te.includesCodeBlockInsertion === !0, bn = te.codeBlockIsBeforeText === !0, Ie = At || Ht || en || xt && !bn, hn = te.includesCodeBlockDeletion === !0;
|
|
54236
54251
|
te.isCodeBlockReplacedByText;
|
|
54237
54252
|
const pn = te.isTableDeletion === !0, on = te.isTableInsertion === !0, Mt = te.isTableReplacement === !0, Mi = te.includesTableInsertion === !0, ai = te.includesTableDeletion === !0;
|
|
54238
54253
|
te.isTableReplacedByText;
|
|
@@ -54240,19 +54255,19 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
54240
54255
|
te.isImageReplacedByText;
|
|
54241
54256
|
const dn = te.includesImageInsertion === !0;
|
|
54242
54257
|
te.isTextReplacedByImage;
|
|
54243
|
-
const
|
|
54258
|
+
const bt = te.imageIsLastInPair === !0, jt = Ge || Ie || $i || dn && bt, ht = 140;
|
|
54244
54259
|
let Qe = te.lastGreenRect || te.rect;
|
|
54245
54260
|
if (Ge && t.current) {
|
|
54246
54261
|
const It = t.current.getEditor();
|
|
54247
54262
|
if (It)
|
|
54248
54263
|
try {
|
|
54249
|
-
const
|
|
54250
|
-
if (
|
|
54251
|
-
const Pt = It.view.nodeDOM(
|
|
54264
|
+
const Wt = te.greenRange || te.redRange;
|
|
54265
|
+
if (Wt) {
|
|
54266
|
+
const Pt = It.view.nodeDOM(Wt.from);
|
|
54252
54267
|
if (Pt && Pt instanceof HTMLElement) {
|
|
54253
|
-
let
|
|
54254
|
-
!Pt.classList.contains("image-view--pending-insert") && !Pt.classList.contains("image-view--pending-delete") && (
|
|
54255
|
-
const
|
|
54268
|
+
let Bt = Pt;
|
|
54269
|
+
!Pt.classList.contains("image-view--pending-insert") && !Pt.classList.contains("image-view--pending-delete") && (Bt = Pt.querySelector(".image-view--pending-insert, .image-view--pending-delete") || Pt.closest(".image-view") || Pt);
|
|
54270
|
+
const yt = Bt.querySelector(".image-view__body"), Dt = (yt || Bt).getBoundingClientRect(), En = (Oi = W.current) == null ? void 0 : Oi.getBoundingClientRect(), mn = yt ? 13 : 0;
|
|
54256
54271
|
if (En && Dt.height > 0) {
|
|
54257
54272
|
const Dn = ((Wo = W.current) == null ? void 0 : Wo.scrollTop) || 0;
|
|
54258
54273
|
Qe = {
|
|
@@ -54272,56 +54287,56 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
54272
54287
|
const It = t.current.getEditor();
|
|
54273
54288
|
if (It)
|
|
54274
54289
|
try {
|
|
54275
|
-
const
|
|
54276
|
-
if (
|
|
54290
|
+
const Wt = te.greenRange || te.redRange;
|
|
54291
|
+
if (Wt) {
|
|
54277
54292
|
const Pt = It.view.dom.querySelectorAll(
|
|
54278
54293
|
"table[data-pending-insert], table[data-pending-delete], .pending-insert-table, .pending-delete-table"
|
|
54279
54294
|
);
|
|
54280
|
-
let
|
|
54281
|
-
if (Pt.forEach((
|
|
54295
|
+
let Bt = null;
|
|
54296
|
+
if (Pt.forEach((yt) => {
|
|
54282
54297
|
try {
|
|
54283
|
-
const
|
|
54284
|
-
|
|
54298
|
+
const zt = It.view.posAtDOM(yt, 0);
|
|
54299
|
+
zt >= Wt.from - 5 && zt <= Wt.to + 5 && (Bt = yt);
|
|
54285
54300
|
} catch {
|
|
54286
54301
|
}
|
|
54287
|
-
}),
|
|
54288
|
-
const
|
|
54289
|
-
|
|
54290
|
-
top:
|
|
54291
|
-
left:
|
|
54292
|
-
width:
|
|
54293
|
-
right:
|
|
54294
|
-
bottom:
|
|
54302
|
+
}), Bt) {
|
|
54303
|
+
const yt = Bt.getBoundingClientRect(), zt = (Zr = W.current) == null ? void 0 : Zr.getBoundingClientRect();
|
|
54304
|
+
zt && yt.height > 0 && (Qe = {
|
|
54305
|
+
top: yt.top - zt.top,
|
|
54306
|
+
left: yt.left - zt.left,
|
|
54307
|
+
width: yt.width,
|
|
54308
|
+
right: yt.right - zt.left,
|
|
54309
|
+
bottom: yt.bottom - zt.top
|
|
54295
54310
|
});
|
|
54296
54311
|
}
|
|
54297
54312
|
}
|
|
54298
54313
|
} catch {
|
|
54299
54314
|
}
|
|
54300
54315
|
}
|
|
54301
|
-
if ((At ||
|
|
54316
|
+
if ((At || Ht || en) && !te.isTextOnly && t.current) {
|
|
54302
54317
|
const It = t.current.getEditor();
|
|
54303
54318
|
if (It)
|
|
54304
54319
|
try {
|
|
54305
|
-
const
|
|
54306
|
-
if (
|
|
54320
|
+
const Wt = te.greenRange || te.redRange;
|
|
54321
|
+
if (Wt) {
|
|
54307
54322
|
const Pt = It.view.dom.querySelectorAll(
|
|
54308
54323
|
"pre[data-pending-insert], pre[data-pending-delete]"
|
|
54309
54324
|
);
|
|
54310
|
-
let
|
|
54311
|
-
if (Pt.forEach((
|
|
54325
|
+
let Bt = null;
|
|
54326
|
+
if (Pt.forEach((yt) => {
|
|
54312
54327
|
try {
|
|
54313
|
-
const
|
|
54314
|
-
|
|
54328
|
+
const zt = It.view.posAtDOM(yt, 0);
|
|
54329
|
+
zt >= Wt.from - 5 && zt <= Wt.to + 5 && (Bt = yt);
|
|
54315
54330
|
} catch {
|
|
54316
54331
|
}
|
|
54317
|
-
}),
|
|
54318
|
-
const
|
|
54319
|
-
|
|
54320
|
-
top:
|
|
54321
|
-
left:
|
|
54322
|
-
width:
|
|
54323
|
-
right:
|
|
54324
|
-
bottom:
|
|
54332
|
+
}), Bt) {
|
|
54333
|
+
const yt = Bt.getBoundingClientRect(), zt = (mo = W.current) == null ? void 0 : mo.getBoundingClientRect();
|
|
54334
|
+
zt && yt.height > 0 && (Qe = {
|
|
54335
|
+
top: yt.top - zt.top,
|
|
54336
|
+
left: yt.left - zt.left,
|
|
54337
|
+
width: yt.width,
|
|
54338
|
+
right: yt.right - zt.left,
|
|
54339
|
+
bottom: yt.bottom - zt.top
|
|
54325
54340
|
});
|
|
54326
54341
|
}
|
|
54327
54342
|
}
|
|
@@ -54332,35 +54347,35 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
54332
54347
|
const It = t.current.getEditor();
|
|
54333
54348
|
if (It)
|
|
54334
54349
|
try {
|
|
54335
|
-
const
|
|
54336
|
-
if (
|
|
54350
|
+
const Wt = te.greenRange || te.redRange;
|
|
54351
|
+
if (Wt) {
|
|
54337
54352
|
const Pt = (_i = W.current) == null ? void 0 : _i.getBoundingClientRect();
|
|
54338
54353
|
if (Pt) {
|
|
54339
|
-
const
|
|
54354
|
+
const Bt = ((fi = W.current) == null ? void 0 : fi.scrollTop) || 0, yt = te.includesImageInsertion && !te.imageIsLastInPair, zt = te.greenRange ? "#c7f0d6ff" : "#fecaca";
|
|
54340
54355
|
let Dt = -1, En = -1;
|
|
54341
|
-
if (
|
|
54342
|
-
|
|
54343
|
-
Math.min(
|
|
54356
|
+
if (yt || It.state.doc.nodesBetween(
|
|
54357
|
+
Wt.from,
|
|
54358
|
+
Math.min(Wt.to, It.state.doc.content.size),
|
|
54344
54359
|
(mn, Dn) => {
|
|
54345
54360
|
if (!mn.isText)
|
|
54346
54361
|
return;
|
|
54347
54362
|
mn.marks.some(
|
|
54348
|
-
(Jr) => Jr.type.name === "highlight" && Jr.attrs.color ===
|
|
54363
|
+
(Jr) => Jr.type.name === "highlight" && Jr.attrs.color === zt
|
|
54349
54364
|
) && (En === -1 && (En = Dn), Dt = Dn + mn.nodeSize);
|
|
54350
54365
|
}
|
|
54351
54366
|
), Dt > 0) {
|
|
54352
|
-
const mn = It.view.coordsAtPos(Math.min(Dt, It.state.doc.content.size)), Dn = It.view.coordsAtPos(Math.min(En, It.state.doc.content.size)), Yn = mn.bottom - Pt.top +
|
|
54367
|
+
const mn = It.view.coordsAtPos(Math.min(Dt, It.state.doc.content.size)), Dn = It.view.coordsAtPos(Math.min(En, It.state.doc.content.size)), Yn = mn.bottom - Pt.top + Bt, Jr = Math.min(Yn, Pt.height - 36 + Bt);
|
|
54353
54368
|
Qe = {
|
|
54354
|
-
top: Dn.top - Pt.top +
|
|
54369
|
+
top: Dn.top - Pt.top + Bt,
|
|
54355
54370
|
left: Dn.left - Pt.left,
|
|
54356
54371
|
width: mn.right - Dn.left,
|
|
54357
54372
|
right: mn.right - Pt.left,
|
|
54358
54373
|
bottom: Jr
|
|
54359
54374
|
};
|
|
54360
54375
|
} else {
|
|
54361
|
-
const mn = te.firstGreenBlockEnd ? Math.min(te.firstGreenBlockEnd, It.state.doc.content.size) : Math.min(
|
|
54376
|
+
const mn = te.firstGreenBlockEnd ? Math.min(te.firstGreenBlockEnd, It.state.doc.content.size) : Math.min(Wt.to, It.state.doc.content.size), Dn = It.view.coordsAtPos(mn), Yn = It.view.coordsAtPos(Math.min(Wt.from, It.state.doc.content.size)), Jr = Dn.bottom - Pt.top + Bt, Nr = Math.min(Jr, Pt.height - 36 + Bt);
|
|
54362
54377
|
Qe = {
|
|
54363
|
-
top: Yn.top - Pt.top +
|
|
54378
|
+
top: Yn.top - Pt.top + Bt,
|
|
54364
54379
|
left: Yn.left - Pt.left,
|
|
54365
54380
|
width: Dn.right - Yn.left,
|
|
54366
54381
|
right: Dn.right - Pt.left,
|
|
@@ -54372,25 +54387,25 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
54372
54387
|
} catch {
|
|
54373
54388
|
}
|
|
54374
54389
|
}
|
|
54375
|
-
if (dn &&
|
|
54390
|
+
if (dn && bt && t.current) {
|
|
54376
54391
|
const It = t.current.getEditor();
|
|
54377
54392
|
if (It && te.greenRange) {
|
|
54378
|
-
const
|
|
54393
|
+
const Wt = It.view.dom.querySelectorAll(".image-view--pending-insert");
|
|
54379
54394
|
let Pt = null;
|
|
54380
|
-
if (
|
|
54395
|
+
if (Wt.forEach((Bt) => {
|
|
54381
54396
|
try {
|
|
54382
|
-
const
|
|
54383
|
-
|
|
54397
|
+
const yt = It.view.posAtDOM(Bt, 0);
|
|
54398
|
+
yt >= te.greenRange.from - 10 && yt <= te.greenRange.to + 10 && (Pt = Bt);
|
|
54384
54399
|
} catch {
|
|
54385
54400
|
}
|
|
54386
54401
|
}), Pt) {
|
|
54387
|
-
const
|
|
54402
|
+
const Bt = Pt.querySelector(".image-view__body"), zt = (Bt || Pt).getBoundingClientRect(), Dt = Bt ? 13 : 0, En = (go = W.current) == null ? void 0 : go.getBoundingClientRect();
|
|
54388
54403
|
En && (Qe = {
|
|
54389
|
-
top:
|
|
54390
|
-
bottom:
|
|
54391
|
-
left:
|
|
54392
|
-
right:
|
|
54393
|
-
width:
|
|
54404
|
+
top: zt.top - En.top + (((Dr = W.current) == null ? void 0 : Dr.scrollTop) || 0) - Dt,
|
|
54405
|
+
bottom: zt.bottom - En.top + (((_t = W.current) == null ? void 0 : _t.scrollTop) || 0) + Dt,
|
|
54406
|
+
left: zt.left - En.left - Dt,
|
|
54407
|
+
right: zt.right - En.left + Dt,
|
|
54408
|
+
width: zt.width + Dt * 2
|
|
54394
54409
|
});
|
|
54395
54410
|
}
|
|
54396
54411
|
}
|
|
@@ -54398,7 +54413,7 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
54398
54413
|
if ((st || ai || hn) && t.current) {
|
|
54399
54414
|
const It = t.current.getEditor();
|
|
54400
54415
|
if (It && te.redRange) {
|
|
54401
|
-
let
|
|
54416
|
+
let Wt = (Qe == null ? void 0 : Qe.bottom) || 0, Pt = (Qe == null ? void 0 : Qe.left) || 0, Bt = (Qe == null ? void 0 : Qe.right) || 0, yt = (Qe == null ? void 0 : Qe.width) || 0;
|
|
54402
54417
|
It.view.dom.querySelectorAll(
|
|
54403
54418
|
".image-view--pending-delete, .pending-delete-table, .pending-delete-codeblock"
|
|
54404
54419
|
).forEach((Dt) => {
|
|
@@ -54409,34 +54424,46 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
54409
54424
|
const Yn = Dt.querySelector(".image-view__body"), Nr = (Yn || Dt).getBoundingClientRect(), hi = Yn ? 13 : 0, Di = (En = W.current) == null ? void 0 : En.getBoundingClientRect();
|
|
54410
54425
|
if (Di) {
|
|
54411
54426
|
const Ni = Nr.bottom - Di.top + (((mn = W.current) == null ? void 0 : mn.scrollTop) || 0) + hi;
|
|
54412
|
-
Ni >
|
|
54427
|
+
Ni > Wt && (Wt = Ni, Pt = Nr.left - Di.left - hi, Bt = Nr.right - Di.left + hi, yt = Nr.width + hi * 2);
|
|
54413
54428
|
}
|
|
54414
54429
|
}
|
|
54415
54430
|
} catch {
|
|
54416
54431
|
}
|
|
54417
|
-
}),
|
|
54432
|
+
}), Wt > ((Qe == null ? void 0 : Qe.bottom) || 0) && (Qe = {
|
|
54418
54433
|
top: (Qe == null ? void 0 : Qe.top) || 0,
|
|
54419
54434
|
left: Pt,
|
|
54420
|
-
right:
|
|
54421
|
-
bottom:
|
|
54422
|
-
width:
|
|
54435
|
+
right: Bt,
|
|
54436
|
+
bottom: Wt,
|
|
54437
|
+
width: yt
|
|
54423
54438
|
});
|
|
54424
54439
|
}
|
|
54425
54440
|
}
|
|
54426
54441
|
if (!Qe || typeof Qe.right != "number" || isNaN(Qe.right))
|
|
54427
54442
|
return console.warn("[BlogEditor] Skipping button render - invalid buttonRect:", Qe, "pair:", te), null;
|
|
54428
|
-
const _n = (Ar = W.current) == null ? void 0 : Ar.getBoundingClientRect(),
|
|
54443
|
+
const _n = (Ar = W.current) == null ? void 0 : Ar.getBoundingClientRect(), Qt = (_n == null ? void 0 : _n.width) || 800, Ii = Math.min(770, Qt), hr = (Qt - Ii) / 2, ci = hr + 32, ui = hr + Ii - 32;
|
|
54429
54444
|
let zr, di = ht;
|
|
54430
|
-
|
|
54445
|
+
jt ? (zr = Qe.right - ht, zr < Qe.left && (zr = Qe.left, di = Qe.right - Qe.left)) : (zr = Qe.right - ht, zr + ht > ui && (zr = ui - ht), zr < ci && (zr = ci));
|
|
54431
54446
|
const Ns = (It) => {
|
|
54432
54447
|
if (It.stopPropagation(), _e.current = je, O) {
|
|
54433
|
-
const
|
|
54434
|
-
O(
|
|
54448
|
+
const Wt = te.greenRange ? { from: te.greenRange.from, to: te.greenRange.to } : { from: te.redRange.from, to: te.redRange.from }, Pt = te.redRange ? { from: te.redRange.from, to: te.redRange.to } : void 0;
|
|
54449
|
+
O(Wt, Pt), setTimeout(() => {
|
|
54450
|
+
var yt;
|
|
54451
|
+
const Bt = (yt = t.current) == null ? void 0 : yt.getEditor();
|
|
54452
|
+
!Bt || Bt.isDestroyed || Bt.view.dom.querySelectorAll("code.diff-code-red, code.diff-code-green").forEach((zt) => {
|
|
54453
|
+
zt.classList.remove("diff-code-red", "diff-code-green");
|
|
54454
|
+
});
|
|
54455
|
+
}, 100);
|
|
54435
54456
|
}
|
|
54436
54457
|
}, Ls = (It) => {
|
|
54437
54458
|
if (It.stopPropagation(), _e.current = je, L) {
|
|
54438
|
-
const
|
|
54439
|
-
L(
|
|
54459
|
+
const Wt = te.greenRange ? { from: te.greenRange.from, to: te.greenRange.to } : { from: te.redRange.from, to: te.redRange.from }, Pt = te.redRange ? { from: te.redRange.from, to: te.redRange.to } : void 0;
|
|
54460
|
+
L(Wt, Pt), setTimeout(() => {
|
|
54461
|
+
var yt;
|
|
54462
|
+
const Bt = (yt = t.current) == null ? void 0 : yt.getEditor();
|
|
54463
|
+
!Bt || Bt.isDestroyed || Bt.view.dom.querySelectorAll("code.diff-code-red, code.diff-code-green").forEach((zt) => {
|
|
54464
|
+
zt.classList.remove("diff-code-red", "diff-code-green");
|
|
54465
|
+
});
|
|
54466
|
+
}, 100);
|
|
54440
54467
|
}
|
|
54441
54468
|
};
|
|
54442
54469
|
return /* @__PURE__ */ fe(
|
|
@@ -54448,25 +54475,25 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
54448
54475
|
// Button's right edge aligns with image's right edge, button is below image
|
|
54449
54476
|
// For other block changes (code blocks, tables), position at bottom-right outside the frame
|
|
54450
54477
|
// For text changes, position at the end of the content
|
|
54451
|
-
left: Ge ? Qe.left + Qe.width - di - 1 :
|
|
54478
|
+
left: Ge ? Qe.left + Qe.width - di - 1 : jt ? Qe.right - di : zr,
|
|
54452
54479
|
top: Qe.bottom,
|
|
54453
54480
|
width: `${di}px`,
|
|
54454
54481
|
pointerEvents: "auto",
|
|
54455
|
-
marginTop:
|
|
54456
|
-
marginLeft:
|
|
54482
|
+
marginTop: jt ? "0px" : "-1px",
|
|
54483
|
+
marginLeft: jt ? "0px" : "-1px"
|
|
54457
54484
|
},
|
|
54458
54485
|
onMouseEnter: () => {
|
|
54459
54486
|
$.current = !0;
|
|
54460
|
-
const It = Z.some((Dt) => Dt.isImageDeletion || Dt.isImageReplacement || Dt.isImageInsertion || Dt.isCodeBlockDeletion || Dt.isCodeBlockInsertion || Dt.isCodeBlockReplacement || Dt.isTableDeletion || Dt.isTableInsertion || Dt.isTableReplacement),
|
|
54461
|
-
te.isTextOnly && It && !te.includesCodeBlockInsertion ||
|
|
54487
|
+
const It = Z.some((Dt) => Dt.isImageDeletion || Dt.isImageReplacement || Dt.isImageInsertion || Dt.isCodeBlockDeletion || Dt.isCodeBlockInsertion || Dt.isCodeBlockReplacement || Dt.isTableDeletion || Dt.isTableInsertion || Dt.isTableReplacement), Wt = te.includesTableDeletion || te.isTableReplacedByText, Pt = te.includesCodeBlockDeletion || te.isCodeBlockReplacedByText, Bt = te.isCodeBlockDeletion || te.isCodeBlockInsertion || te.isCodeBlockReplacement, yt = te.isTableDeletion || te.isTableInsertion || te.isTableReplacement;
|
|
54488
|
+
te.isTextOnly && It && !te.includesCodeBlockInsertion || Wt || Pt || Bt || yt ? Ce.current !== je && (Ce.current = je, Oe((Dt) => Dt + 1)) : re(je);
|
|
54462
54489
|
},
|
|
54463
54490
|
onMouseLeave: () => {
|
|
54464
54491
|
$.current = !1, Ae.current = -1;
|
|
54465
|
-
const It = Z.some((Dt) => Dt.isImageDeletion || Dt.isImageReplacement || Dt.isImageInsertion || Dt.isCodeBlockDeletion || Dt.isCodeBlockInsertion || Dt.isCodeBlockReplacement || Dt.isTableDeletion || Dt.isTableInsertion || Dt.isTableReplacement),
|
|
54466
|
-
te.isTextOnly && It && !te.includesCodeBlockInsertion ||
|
|
54492
|
+
const It = Z.some((Dt) => Dt.isImageDeletion || Dt.isImageReplacement || Dt.isImageInsertion || Dt.isCodeBlockDeletion || Dt.isCodeBlockInsertion || Dt.isCodeBlockReplacement || Dt.isTableDeletion || Dt.isTableInsertion || Dt.isTableReplacement), Wt = te.includesTableDeletion || te.isTableReplacedByText, Pt = te.includesCodeBlockDeletion || te.isCodeBlockReplacedByText, Bt = te.isCodeBlockDeletion || te.isCodeBlockInsertion || te.isCodeBlockReplacement, yt = te.isTableDeletion || te.isTableInsertion || te.isTableReplacement;
|
|
54493
|
+
te.isTextOnly && It && !te.includesCodeBlockInsertion || Wt || Pt || Bt || yt ? (Ce.current = -1, Oe((Dt) => Dt + 1)) : re(-1);
|
|
54467
54494
|
},
|
|
54468
54495
|
children: [
|
|
54469
|
-
!
|
|
54496
|
+
!jt && /* @__PURE__ */ E("div", { className: "h-[1.5px] w-full pointer-events-none", style: { background: St ? "linear-gradient(270deg, #EF4444 34.89%, rgba(255, 255, 255, 0) 100%)" : "linear-gradient(270deg, #167858 34.89%, rgba(255, 255, 255, 0) 100%)" } }),
|
|
54470
54497
|
/* @__PURE__ */ fe("div", { className: "flex flex-row items-center shadow-[0_8px_32px_rgba(0,0,0,0.2)] rounded-bl-xl rounded-br-xl overflow-hidden h-[34px]", children: [
|
|
54471
54498
|
/* @__PURE__ */ E("button", { onClick: Ls, className: "px-5 py-1 bg-[#EDEEF3] hover:bg-[#E4E5EA] text-[12px] font-bold text-[#182234] font-['Inter'] h-full flex items-center justify-center transition-colors border border-[#EDEEF3] hover:border-[#E4E5EA]", children: St ? "Keep" : "Discard" }),
|
|
54472
54499
|
/* @__PURE__ */ E("button", { onClick: Ns, className: `px-5 py-1 ${St ? "bg-[#EF4444] hover:bg-[#EF4444] border-[#EF4444] hover:border-[#DC2626]" : "bg-[#167858] hover:bg-[#125f4a] border-[#167858] hover:border-[#125f4a]"} text-[12px] font-bold text-white font-['Inter'] h-full flex items-center justify-center transition-colors border`, children: St ? "Delete" : "Accept" })
|
|
@@ -54530,7 +54557,7 @@ const qG = "data:application/octet-stream;base64,UklWRQcAvcx4xAHsAe4DrQS2BMcE5QT
|
|
|
54530
54557
|
"/",
|
|
54531
54558
|
Z.length
|
|
54532
54559
|
] }),
|
|
54533
|
-
/* @__PURE__ */ E("button", { onClick:
|
|
54560
|
+
/* @__PURE__ */ E("button", { onClick: Yt, className: "w-6 h-6 flex items-center justify-center hover:bg-black/5 rounded transition-colors", children: /* @__PURE__ */ E(DB, { className: "w-4 h-4 text-[#323232]", strokeWidth: 1.5 }) })
|
|
54534
54561
|
]
|
|
54535
54562
|
}
|
|
54536
54563
|
)
|