@harbour-enterprises/superdoc 0.11.18 → 0.11.20
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/chunks/{super-editor.es-DE2LvQ4V.es.js → super-editor.es-Du1kHoDA.es.js} +492 -476
- package/dist/chunks/{super-editor.es-D8ziHk1x.cjs → super-editor.es-DvREqt6O.cjs} +25 -25
- package/dist/super-editor/ai-writer.es.js +1 -1
- package/dist/super-editor/chunks/{converter-B25jWkqJ.js → converter-CwMvN1V7.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-DNmQADIe.js → docx-zipper-CW3YnwaW.js} +1 -1
- package/dist/super-editor/chunks/{editor-DKyTaWEI.js → editor-CR8riiuL.js} +538 -522
- package/dist/super-editor/chunks/{toolbar-C6UiTU1Z.js → toolbar-BZ4Xi416.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/extensions/keymap.d.ts +3 -3
- package/dist/super-editor/core/extensions/keymap.d.ts.map +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/extensions/search/search.d.ts.map +1 -1
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/super-editor.es.js +6 -6
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +3 -3
- package/dist/superdoc.umd.js +476 -460
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as De from "yjs";
|
|
2
2
|
import { UndoManager as KS, Item as JS, ContentType as XS, Text as YS, XmlElement as ZS } from "yjs";
|
|
3
|
-
import { g as Lh, c as Nb, r as me, a as Ce, b as Ee, o as xe, F as yt, d as In, n as cn, w as An, e as nt, t as tn, f as Pe, i as xt, h as mf, j as gn, k as qn, l as kn, m as bt, q as ji, s as Fb, u as gf, v as Hr, x as Ot, y as
|
|
3
|
+
import { g as Lh, c as Nb, r as me, a as Ce, b as Ee, o as xe, F as yt, d as In, n as cn, w as An, e as nt, t as tn, f as Pe, i as xt, h as mf, j as gn, k as qn, l as kn, m as bt, q as ji, s as Fb, u as gf, v as Hr, x as Ot, y as Re, z as Zi, A as to, B as Zt, C as we, D as Rt, E as zn, G as qi, H as QS, T as eE, I as Ar, J as ki, K as yf, L as zs, M as Ol, N as Pd, O as Ml, P as Dl, Q as tE, R as wf, S as nE, U as rE, V as oE, W as iE, X as Rb } from "./vue-DXpzqXur.es.js";
|
|
4
4
|
var sE = Object.defineProperty, Lb = (t) => {
|
|
5
5
|
throw TypeError(t);
|
|
6
6
|
}, aE = (t, e, n) => e in t ? sE(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, $a = (t, e, n) => aE(t, typeof e != "symbol" ? e + "" : e, n), lE = (t, e, n) => e.has(t) || Lb("Cannot " + n), Bb = (t, e, n) => e.has(t) ? Lb("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), wr = (t, e, n) => (lE(t, e, "access private method"), n), Qt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof Lh < "u" ? Lh : typeof self < "u" ? self : {};
|
|
@@ -1279,7 +1279,7 @@ function vf() {
|
|
|
1279
1279
|
return Ta.exports;
|
|
1280
1280
|
}
|
|
1281
1281
|
var Wc = { exports: {} }, Ph;
|
|
1282
|
-
function
|
|
1282
|
+
function Ho() {
|
|
1283
1283
|
return Ph || (Ph = 1, typeof Object.create == "function" ? Wc.exports = function(t, e) {
|
|
1284
1284
|
e && (t.super_ = e, t.prototype = Object.create(e.prototype, {
|
|
1285
1285
|
constructor: {
|
|
@@ -1350,20 +1350,20 @@ function LE(t) {
|
|
|
1350
1350
|
}
|
|
1351
1351
|
}
|
|
1352
1352
|
}
|
|
1353
|
-
var br = [], mi = !1,
|
|
1353
|
+
var br = [], mi = !1, vo, il = -1;
|
|
1354
1354
|
function BE() {
|
|
1355
|
-
!mi || !
|
|
1355
|
+
!mi || !vo || (mi = !1, vo.length ? br = vo.concat(br) : il = -1, br.length && Ub());
|
|
1356
1356
|
}
|
|
1357
1357
|
function Ub() {
|
|
1358
1358
|
if (!mi) {
|
|
1359
1359
|
var t = qb(BE);
|
|
1360
1360
|
mi = !0;
|
|
1361
1361
|
for (var e = br.length; e; ) {
|
|
1362
|
-
for (
|
|
1363
|
-
|
|
1362
|
+
for (vo = br, br = []; ++il < e; )
|
|
1363
|
+
vo && vo[il].run();
|
|
1364
1364
|
il = -1, e = br.length;
|
|
1365
1365
|
}
|
|
1366
|
-
|
|
1366
|
+
vo = null, mi = !1, LE(t);
|
|
1367
1367
|
}
|
|
1368
1368
|
}
|
|
1369
1369
|
vt.nextTick = function(t) {
|
|
@@ -2869,7 +2869,7 @@ function t1() {
|
|
|
2869
2869
|
}
|
|
2870
2870
|
t.log = function() {
|
|
2871
2871
|
console.log("%s - %s", W(), t.format.apply(t, arguments));
|
|
2872
|
-
}, t.inherits =
|
|
2872
|
+
}, t.inherits = Ho(), t._extend = function(F, Q) {
|
|
2873
2873
|
if (!Q || !k(Q)) return F;
|
|
2874
2874
|
for (var ee = Object.keys(Q), ie = ee.length; ie--; )
|
|
2875
2875
|
F[ee[ie]] = Q[ee[ie]];
|
|
@@ -3287,7 +3287,7 @@ function o1() {
|
|
|
3287
3287
|
return o.isBuffer(J) || J instanceof i;
|
|
3288
3288
|
}
|
|
3289
3289
|
var l = n1(), c = r1(), u = c.getHighWaterMark, d = Hi().codes, p = d.ERR_INVALID_ARG_TYPE, f = d.ERR_METHOD_NOT_IMPLEMENTED, h = d.ERR_MULTIPLE_CALLBACK, m = d.ERR_STREAM_CANNOT_PIPE, y = d.ERR_STREAM_DESTROYED, g = d.ERR_STREAM_NULL_VALUES, v = d.ERR_STREAM_WRITE_AFTER_END, x = d.ERR_UNKNOWN_ENCODING, w = l.errorOrDestroy;
|
|
3290
|
-
|
|
3290
|
+
Ho()(N, r);
|
|
3291
3291
|
function C() {
|
|
3292
3292
|
}
|
|
3293
3293
|
function M(J, T, E) {
|
|
@@ -3502,7 +3502,7 @@ function Si() {
|
|
|
3502
3502
|
};
|
|
3503
3503
|
$u = s;
|
|
3504
3504
|
var e = i1(), n = o1();
|
|
3505
|
-
|
|
3505
|
+
Ho()(s, e);
|
|
3506
3506
|
for (var r = t(n.prototype), o = 0; o < r.length; o++) {
|
|
3507
3507
|
var i = r[o];
|
|
3508
3508
|
s.prototype[i] || (s.prototype[i] = n.prototype[i]);
|
|
@@ -3944,7 +3944,7 @@ function i1() {
|
|
|
3944
3944
|
a && a.debuglog ? l = a.debuglog("stream") : l = function() {
|
|
3945
3945
|
};
|
|
3946
3946
|
var c = vC(), u = n1(), d = r1(), p = d.getHighWaterMark, f = Hi().codes, h = f.ERR_INVALID_ARG_TYPE, m = f.ERR_STREAM_PUSH_AFTER_EOF, y = f.ERR_METHOD_NOT_IMPLEMENTED, g = f.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, v, x, w;
|
|
3947
|
-
|
|
3947
|
+
Ho()(k, n);
|
|
3948
3948
|
var C = u.errorOrDestroy, M = ["error", "close", "destroy", "pause", "resume"];
|
|
3949
3949
|
function O(I, R, ae) {
|
|
3950
3950
|
if (typeof I.prependListener == "function") return I.prependListener(R, ae);
|
|
@@ -4267,7 +4267,7 @@ function s1() {
|
|
|
4267
4267
|
if (Tg) return Iu;
|
|
4268
4268
|
Tg = 1, Iu = a;
|
|
4269
4269
|
var t = Hi().codes, e = t.ERR_METHOD_NOT_IMPLEMENTED, n = t.ERR_MULTIPLE_CALLBACK, r = t.ERR_TRANSFORM_ALREADY_TRANSFORMING, o = t.ERR_TRANSFORM_WITH_LENGTH_0, i = Si();
|
|
4270
|
-
|
|
4270
|
+
Ho()(a, i);
|
|
4271
4271
|
function s(u, d) {
|
|
4272
4272
|
var p = this._transformState;
|
|
4273
4273
|
p.transforming = !1;
|
|
@@ -4326,7 +4326,7 @@ function CC() {
|
|
|
4326
4326
|
if (Og) return Nu;
|
|
4327
4327
|
Og = 1, Nu = e;
|
|
4328
4328
|
var t = s1();
|
|
4329
|
-
|
|
4329
|
+
Ho()(e, t);
|
|
4330
4330
|
function e(n) {
|
|
4331
4331
|
if (!(this instanceof e)) return new e(n);
|
|
4332
4332
|
t.call(this, n);
|
|
@@ -4403,7 +4403,7 @@ var Ru, Dg;
|
|
|
4403
4403
|
function $C() {
|
|
4404
4404
|
if (Dg) return Ru;
|
|
4405
4405
|
Dg = 1, Ru = n;
|
|
4406
|
-
var t = vf().EventEmitter, e =
|
|
4406
|
+
var t = vf().EventEmitter, e = Ho();
|
|
4407
4407
|
e(n, t), n.Readable = i1(), n.Writable = o1(), n.Duplex = Si(), n.Transform = s1(), n.PassThrough = CC(), n.finished = Cf(), n.pipeline = AC(), n.Stream = n;
|
|
4408
4408
|
function n() {
|
|
4409
4409
|
t.call(this);
|
|
@@ -5348,9 +5348,9 @@ var Af = {
|
|
|
5348
5348
|
checkFnExists: function(t, e) {
|
|
5349
5349
|
return t + "Fn" in e;
|
|
5350
5350
|
}
|
|
5351
|
-
}, OC = zb,
|
|
5351
|
+
}, OC = zb, Ye = $f, gi = Af.isArray, de, Ue;
|
|
5352
5352
|
function MC(t) {
|
|
5353
|
-
return de =
|
|
5353
|
+
return de = Ye.copyOptions(t), Ye.ensureFlagExists("ignoreDeclaration", de), Ye.ensureFlagExists("ignoreInstruction", de), Ye.ensureFlagExists("ignoreAttributes", de), Ye.ensureFlagExists("ignoreText", de), Ye.ensureFlagExists("ignoreComment", de), Ye.ensureFlagExists("ignoreCdata", de), Ye.ensureFlagExists("ignoreDoctype", de), Ye.ensureFlagExists("compact", de), Ye.ensureFlagExists("alwaysChildren", de), Ye.ensureFlagExists("addParent", de), Ye.ensureFlagExists("trim", de), Ye.ensureFlagExists("nativeType", de), Ye.ensureFlagExists("nativeTypeAttributes", de), Ye.ensureFlagExists("sanitize", de), Ye.ensureFlagExists("instructionHasAttributes", de), Ye.ensureFlagExists("captureSpacesBetweenElements", de), Ye.ensureAlwaysArrayExists(de), Ye.ensureKeyExists("declaration", de), Ye.ensureKeyExists("instruction", de), Ye.ensureKeyExists("attributes", de), Ye.ensureKeyExists("text", de), Ye.ensureKeyExists("comment", de), Ye.ensureKeyExists("cdata", de), Ye.ensureKeyExists("doctype", de), Ye.ensureKeyExists("type", de), Ye.ensureKeyExists("name", de), Ye.ensureKeyExists("elements", de), Ye.ensureKeyExists("parent", de), de;
|
|
5354
5354
|
}
|
|
5355
5355
|
function a1(t) {
|
|
5356
5356
|
var e = Number(t);
|
|
@@ -5688,7 +5688,7 @@ function oA(t) {
|
|
|
5688
5688
|
throw TypeError("Stringified UUID is invalid");
|
|
5689
5689
|
return n;
|
|
5690
5690
|
}
|
|
5691
|
-
function
|
|
5691
|
+
function so(t, e, n) {
|
|
5692
5692
|
t = t || {};
|
|
5693
5693
|
var r = t.random || (t.rng || tA)();
|
|
5694
5694
|
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, oA(r);
|
|
@@ -6456,12 +6456,12 @@ function E1(t, e, n, r) {
|
|
|
6456
6456
|
} else if (n.content.size)
|
|
6457
6457
|
if (!n.openStart && !n.openEnd && t.depth == r && e.depth == r) {
|
|
6458
6458
|
let s = t.parent, a = s.content;
|
|
6459
|
-
return
|
|
6459
|
+
return $o(s, a.cut(0, t.parentOffset).append(n.content).append(a.cut(e.parentOffset)));
|
|
6460
6460
|
} else {
|
|
6461
6461
|
let { start: s, end: a } = lA(n, t);
|
|
6462
|
-
return
|
|
6462
|
+
return $o(i, A1(t, s, a, e, r));
|
|
6463
6463
|
}
|
|
6464
|
-
else return
|
|
6464
|
+
else return $o(i, Fl(t, e, r));
|
|
6465
6465
|
}
|
|
6466
6466
|
function C1(t, e) {
|
|
6467
6467
|
if (!e.type.compatibleContent(t.type))
|
|
@@ -6471,29 +6471,29 @@ function Hd(t, e, n) {
|
|
|
6471
6471
|
let r = t.node(n);
|
|
6472
6472
|
return C1(r, e.node(n)), r;
|
|
6473
6473
|
}
|
|
6474
|
-
function
|
|
6474
|
+
function Ao(t, e) {
|
|
6475
6475
|
let n = e.length - 1;
|
|
6476
6476
|
n >= 0 && t.isText && t.sameMarkup(e[n]) ? e[n] = t.withText(e[n].text + t.text) : e.push(t);
|
|
6477
6477
|
}
|
|
6478
6478
|
function Es(t, e, n, r) {
|
|
6479
6479
|
let o = (e || t).node(n), i = 0, s = e ? e.index(n) : o.childCount;
|
|
6480
|
-
t && (i = t.index(n), t.depth > n ? i++ : t.textOffset && (
|
|
6480
|
+
t && (i = t.index(n), t.depth > n ? i++ : t.textOffset && (Ao(t.nodeAfter, r), i++));
|
|
6481
6481
|
for (let a = i; a < s; a++)
|
|
6482
|
-
|
|
6483
|
-
e && e.depth == n && e.textOffset &&
|
|
6482
|
+
Ao(o.child(a), r);
|
|
6483
|
+
e && e.depth == n && e.textOffset && Ao(e.nodeBefore, r);
|
|
6484
6484
|
}
|
|
6485
|
-
function
|
|
6485
|
+
function $o(t, e) {
|
|
6486
6486
|
return t.type.checkContent(e), t.copy(e);
|
|
6487
6487
|
}
|
|
6488
6488
|
function A1(t, e, n, r, o) {
|
|
6489
6489
|
let i = t.depth > o && Hd(t, e, o + 1), s = r.depth > o && Hd(n, r, o + 1), a = [];
|
|
6490
|
-
return Es(null, t, o, a), i && s && e.index(o) == n.index(o) ? (C1(i, s),
|
|
6490
|
+
return Es(null, t, o, a), i && s && e.index(o) == n.index(o) ? (C1(i, s), Ao($o(i, A1(t, e, n, r, o + 1)), a)) : (i && Ao($o(i, Fl(t, e, o + 1)), a), Es(e, n, o, a), s && Ao($o(s, Fl(n, r, o + 1)), a)), Es(r, null, o, a), new ge(a);
|
|
6491
6491
|
}
|
|
6492
6492
|
function Fl(t, e, n) {
|
|
6493
6493
|
let r = [];
|
|
6494
6494
|
if (Es(null, t, n, r), t.depth > n) {
|
|
6495
6495
|
let o = Hd(t, e, n + 1);
|
|
6496
|
-
|
|
6496
|
+
Ao($o(o, Fl(t, e, n + 1)), r);
|
|
6497
6497
|
}
|
|
6498
6498
|
return Es(e, null, n, r), new ge(r);
|
|
6499
6499
|
}
|
|
@@ -6799,7 +6799,7 @@ let Rl = class {
|
|
|
6799
6799
|
}
|
|
6800
6800
|
};
|
|
6801
6801
|
const dA = /* @__PURE__ */ Object.create(null);
|
|
6802
|
-
let
|
|
6802
|
+
let To = class Wd {
|
|
6803
6803
|
/**
|
|
6804
6804
|
@internal
|
|
6805
6805
|
*/
|
|
@@ -7168,8 +7168,8 @@ let $o = class Wd {
|
|
|
7168
7168
|
return i.type.checkAttrs(i.attrs), i;
|
|
7169
7169
|
}
|
|
7170
7170
|
};
|
|
7171
|
-
|
|
7172
|
-
let pA = class Gd extends
|
|
7171
|
+
To.prototype.text = void 0;
|
|
7172
|
+
let pA = class Gd extends To {
|
|
7173
7173
|
/**
|
|
7174
7174
|
@internal
|
|
7175
7175
|
*/
|
|
@@ -7675,7 +7675,7 @@ let Lg = class F1 {
|
|
|
7675
7675
|
create(e = null, n, r) {
|
|
7676
7676
|
if (this.isText)
|
|
7677
7677
|
throw new Error("NodeType.create can't construct text nodes");
|
|
7678
|
-
return new
|
|
7678
|
+
return new To(this, this.computeAttrs(e), ge.from(n), rt.setFrom(r));
|
|
7679
7679
|
}
|
|
7680
7680
|
/**
|
|
7681
7681
|
Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but check the given content
|
|
@@ -7683,7 +7683,7 @@ let Lg = class F1 {
|
|
|
7683
7683
|
if it doesn't match.
|
|
7684
7684
|
*/
|
|
7685
7685
|
createChecked(e = null, n, r) {
|
|
7686
|
-
return n = ge.from(n), this.checkContent(n), new
|
|
7686
|
+
return n = ge.from(n), this.checkContent(n), new To(this, this.computeAttrs(e), n, rt.setFrom(r));
|
|
7687
7687
|
}
|
|
7688
7688
|
/**
|
|
7689
7689
|
Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but see if it is
|
|
@@ -7701,7 +7701,7 @@ let Lg = class F1 {
|
|
|
7701
7701
|
n = s.append(n);
|
|
7702
7702
|
}
|
|
7703
7703
|
let o = this.contentMatch.matchFragment(n), i = o && o.fillBefore(ge.empty, !0);
|
|
7704
|
-
return i ? new
|
|
7704
|
+
return i ? new To(this, e, n.append(i), rt.setFrom(r)) : null;
|
|
7705
7705
|
}
|
|
7706
7706
|
/**
|
|
7707
7707
|
Returns true if the given fragment is valid content for this node
|
|
@@ -7908,7 +7908,7 @@ let SA = class {
|
|
|
7908
7908
|
bound.
|
|
7909
7909
|
*/
|
|
7910
7910
|
nodeFromJSON(e) {
|
|
7911
|
-
return
|
|
7911
|
+
return To.fromJSON(this, e);
|
|
7912
7912
|
}
|
|
7913
7913
|
/**
|
|
7914
7914
|
Deserialize a mark from its JSON representation. This method is
|
|
@@ -8664,7 +8664,7 @@ let Xd = class {
|
|
|
8664
8664
|
get deletedAcross() {
|
|
8665
8665
|
return (this.delInfo & ll) > 0;
|
|
8666
8666
|
}
|
|
8667
|
-
},
|
|
8667
|
+
}, Ro = class ii {
|
|
8668
8668
|
/**
|
|
8669
8669
|
Create a position map. The modifications to the document are
|
|
8670
8670
|
represented as an array of numbers, in which each group of three
|
|
@@ -8760,7 +8760,7 @@ let Xd = class {
|
|
|
8760
8760
|
return e == 0 ? ii.empty : new ii(e < 0 ? [0, -e, 0] : [0, 0, e]);
|
|
8761
8761
|
}
|
|
8762
8762
|
};
|
|
8763
|
-
|
|
8763
|
+
Ro.empty = new Ro([]);
|
|
8764
8764
|
let Ei = class Yd {
|
|
8765
8765
|
/**
|
|
8766
8766
|
Create a new mapping with the given position maps.
|
|
@@ -8876,7 +8876,7 @@ let Kt = class {
|
|
|
8876
8876
|
and the new document.
|
|
8877
8877
|
*/
|
|
8878
8878
|
getMap() {
|
|
8879
|
-
return
|
|
8879
|
+
return Ro.empty;
|
|
8880
8880
|
}
|
|
8881
8881
|
/**
|
|
8882
8882
|
Try to merge this step with another one, to be applied directly
|
|
@@ -9108,7 +9108,7 @@ let Df = class Zd extends Kt {
|
|
|
9108
9108
|
}
|
|
9109
9109
|
};
|
|
9110
9110
|
Kt.jsonID("removeNodeMark", Df);
|
|
9111
|
-
let Pt = class
|
|
9111
|
+
let Pt = class mo extends Kt {
|
|
9112
9112
|
/**
|
|
9113
9113
|
The given `slice` should fit the 'gap' between `from` and
|
|
9114
9114
|
`to`—the depths must line up, and the surrounding nodes must be
|
|
@@ -9125,24 +9125,24 @@ let Pt = class ho extends Kt {
|
|
|
9125
9125
|
return this.structure && Qd(e, this.from, this.to) ? en.fail("Structure replace would overwrite content") : en.fromReplace(e, this.from, this.to, this.slice);
|
|
9126
9126
|
}
|
|
9127
9127
|
getMap() {
|
|
9128
|
-
return new
|
|
9128
|
+
return new Ro([this.from, this.to - this.from, this.slice.size]);
|
|
9129
9129
|
}
|
|
9130
9130
|
invert(e) {
|
|
9131
|
-
return new
|
|
9131
|
+
return new mo(this.from, this.from + this.slice.size, e.slice(this.from, this.to));
|
|
9132
9132
|
}
|
|
9133
9133
|
map(e) {
|
|
9134
9134
|
let n = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1);
|
|
9135
|
-
return n.deletedAcross && r.deletedAcross ? null : new
|
|
9135
|
+
return n.deletedAcross && r.deletedAcross ? null : new mo(n.pos, Math.max(n.pos, r.pos), this.slice);
|
|
9136
9136
|
}
|
|
9137
9137
|
merge(e) {
|
|
9138
|
-
if (!(e instanceof
|
|
9138
|
+
if (!(e instanceof mo) || e.structure || this.structure)
|
|
9139
9139
|
return null;
|
|
9140
9140
|
if (this.from + this.slice.size == e.from && !this.slice.openEnd && !e.slice.openStart) {
|
|
9141
9141
|
let n = this.slice.size + e.slice.size == 0 ? ve.empty : new ve(this.slice.content.append(e.slice.content), this.slice.openStart, e.slice.openEnd);
|
|
9142
|
-
return new
|
|
9142
|
+
return new mo(this.from, this.to + (e.to - e.from), n, this.structure);
|
|
9143
9143
|
} else if (e.to == this.from && !this.slice.openStart && !e.slice.openEnd) {
|
|
9144
9144
|
let n = this.slice.size + e.slice.size == 0 ? ve.empty : new ve(e.slice.content.append(this.slice.content), e.slice.openStart, this.slice.openEnd);
|
|
9145
|
-
return new
|
|
9145
|
+
return new mo(e.from, this.to, n, this.structure);
|
|
9146
9146
|
} else
|
|
9147
9147
|
return null;
|
|
9148
9148
|
}
|
|
@@ -9156,7 +9156,7 @@ let Pt = class ho extends Kt {
|
|
|
9156
9156
|
static fromJSON(e, n) {
|
|
9157
9157
|
if (typeof n.from != "number" || typeof n.to != "number")
|
|
9158
9158
|
throw new RangeError("Invalid input for ReplaceStep.fromJSON");
|
|
9159
|
-
return new
|
|
9159
|
+
return new mo(n.from, n.to, ve.fromJSON(e, n.slice), !!n.structure);
|
|
9160
9160
|
}
|
|
9161
9161
|
};
|
|
9162
9162
|
Kt.jsonID("replace", Pt);
|
|
@@ -9180,7 +9180,7 @@ let hn = class cl extends Kt {
|
|
|
9180
9180
|
return r ? en.fromReplace(e, this.from, this.to, r) : en.fail("Content does not fit in gap");
|
|
9181
9181
|
}
|
|
9182
9182
|
getMap() {
|
|
9183
|
-
return new
|
|
9183
|
+
return new Ro([
|
|
9184
9184
|
this.from,
|
|
9185
9185
|
this.gapFrom - this.from,
|
|
9186
9186
|
this.insert,
|
|
@@ -9435,7 +9435,7 @@ function UA(t, e, n = 1, r) {
|
|
|
9435
9435
|
}
|
|
9436
9436
|
t.step(new Pt(e, e, new ve(i.append(s), n, n), !0));
|
|
9437
9437
|
}
|
|
9438
|
-
function
|
|
9438
|
+
function ao(t, e) {
|
|
9439
9439
|
let n = t.resolve(e), r = n.index();
|
|
9440
9440
|
return X1(n.nodeBefore, n.nodeAfter) && n.parent.canReplace(r, r + 1);
|
|
9441
9441
|
}
|
|
@@ -9822,7 +9822,7 @@ let rv = class ul extends Kt {
|
|
|
9822
9822
|
return en.fromReplace(e, this.pos, this.pos + 1, new ve(ge.from(o), 0, n.isLeaf ? 0 : 1));
|
|
9823
9823
|
}
|
|
9824
9824
|
getMap() {
|
|
9825
|
-
return
|
|
9825
|
+
return Ro.empty;
|
|
9826
9826
|
}
|
|
9827
9827
|
invert(e) {
|
|
9828
9828
|
return new ul(this.pos, this.attr, e.nodeAt(this.pos).attrs[this.attr]);
|
|
@@ -9857,7 +9857,7 @@ let ov = class ep extends Kt {
|
|
|
9857
9857
|
return en.ok(r);
|
|
9858
9858
|
}
|
|
9859
9859
|
getMap() {
|
|
9860
|
-
return
|
|
9860
|
+
return Ro.empty;
|
|
9861
9861
|
}
|
|
9862
9862
|
invert(e) {
|
|
9863
9863
|
return new ep(this.attr, e.attrs[this.attr]);
|
|
@@ -10844,7 +10844,7 @@ let Hu = class {
|
|
|
10844
10844
|
let o = new Hu(e.schema, e.plugins), i = new ms(o);
|
|
10845
10845
|
return o.fields.forEach((s) => {
|
|
10846
10846
|
if (s.name == "doc")
|
|
10847
|
-
i.doc =
|
|
10847
|
+
i.doc = To.fromJSON(e.schema, n.doc);
|
|
10848
10848
|
else if (s.name == "selection")
|
|
10849
10849
|
i.selection = Ve.fromJSON(i.doc, n.selection);
|
|
10850
10850
|
else if (s.name == "storedMarks")
|
|
@@ -10870,7 +10870,7 @@ function uv(t, e, n) {
|
|
|
10870
10870
|
}
|
|
10871
10871
|
return n;
|
|
10872
10872
|
}
|
|
10873
|
-
let
|
|
10873
|
+
let Xe = class {
|
|
10874
10874
|
/**
|
|
10875
10875
|
Create a plugin.
|
|
10876
10876
|
*/
|
|
@@ -10888,7 +10888,7 @@ const Vu = /* @__PURE__ */ Object.create(null);
|
|
|
10888
10888
|
function dv(t) {
|
|
10889
10889
|
return t in Vu ? t + "$" + ++Vu[t] : (Vu[t] = 0, t + "$");
|
|
10890
10890
|
}
|
|
10891
|
-
let
|
|
10891
|
+
let Ze = class {
|
|
10892
10892
|
/**
|
|
10893
10893
|
Create a plugin key.
|
|
10894
10894
|
*/
|
|
@@ -10933,7 +10933,7 @@ const Ll = (t) => t.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), r4 = (t) =>
|
|
|
10933
10933
|
document.removeEventListener("click", t.__clickOutsideHandler), delete t.__clickOutsideHandler;
|
|
10934
10934
|
}
|
|
10935
10935
|
};
|
|
10936
|
-
function
|
|
10936
|
+
function Qe(t, e = null, ...n) {
|
|
10937
10937
|
return typeof t == "function" ? e ? t.bind(e)(...n) : t(...n) : t;
|
|
10938
10938
|
}
|
|
10939
10939
|
function i4(t = {}) {
|
|
@@ -10992,7 +10992,7 @@ function ln(t) {
|
|
|
10992
10992
|
const e = t * 96 / 914400;
|
|
10993
10993
|
return Math.round(e);
|
|
10994
10994
|
}
|
|
10995
|
-
function
|
|
10995
|
+
function fo(t) {
|
|
10996
10996
|
if (t != null)
|
|
10997
10997
|
return typeof t == "string" && (t = parseFloat(t)), Math.round(t * 9525);
|
|
10998
10998
|
}
|
|
@@ -13756,11 +13756,11 @@ function j4(t) {
|
|
|
13756
13756
|
}
|
|
13757
13757
|
return {
|
|
13758
13758
|
name: "w:body",
|
|
13759
|
-
elements: [...
|
|
13759
|
+
elements: [...lo(t), e]
|
|
13760
13760
|
};
|
|
13761
13761
|
}
|
|
13762
13762
|
function bv(t) {
|
|
13763
|
-
const e =
|
|
13763
|
+
const e = lo(t), n = e.find((i) => i.name === "htmlAnnotation");
|
|
13764
13764
|
if (e.length === 1 && n)
|
|
13765
13765
|
return n.elements;
|
|
13766
13766
|
const r = q4(t.node);
|
|
@@ -13855,7 +13855,7 @@ function U4(t) {
|
|
|
13855
13855
|
attributes: b4
|
|
13856
13856
|
}, t];
|
|
13857
13857
|
}
|
|
13858
|
-
function
|
|
13858
|
+
function lo(t) {
|
|
13859
13859
|
const { content: e } = t.node;
|
|
13860
13860
|
if (!e) return [];
|
|
13861
13861
|
const n = [];
|
|
@@ -14105,7 +14105,7 @@ function Z4(t) {
|
|
|
14105
14105
|
}
|
|
14106
14106
|
function Q4(t) {
|
|
14107
14107
|
t.node = e6(t.node, t);
|
|
14108
|
-
const e =
|
|
14108
|
+
const e = lo(t), n = n6(t.node), r = o6(t.node, t);
|
|
14109
14109
|
return e.unshift(n), e.unshift(r), {
|
|
14110
14110
|
name: "w:tbl",
|
|
14111
14111
|
elements: e
|
|
@@ -14246,7 +14246,7 @@ function o6(t, e) {
|
|
|
14246
14246
|
};
|
|
14247
14247
|
}
|
|
14248
14248
|
function i6(t) {
|
|
14249
|
-
const e =
|
|
14249
|
+
const e = lo(t), n = s6(t.node);
|
|
14250
14250
|
return n.elements.length && e.unshift(n), {
|
|
14251
14251
|
name: "w:tr",
|
|
14252
14252
|
elements: e
|
|
@@ -14269,7 +14269,7 @@ function s6(t) {
|
|
|
14269
14269
|
};
|
|
14270
14270
|
}
|
|
14271
14271
|
function a6(t) {
|
|
14272
|
-
const e =
|
|
14272
|
+
const e = lo({
|
|
14273
14273
|
...t,
|
|
14274
14274
|
tableCell: t.node
|
|
14275
14275
|
}), n = l6(t.node);
|
|
@@ -14374,7 +14374,7 @@ function u6(t) {
|
|
|
14374
14374
|
return [e, n];
|
|
14375
14375
|
}
|
|
14376
14376
|
function iy(t) {
|
|
14377
|
-
const e =
|
|
14377
|
+
const e = Bo.markTypes.find((i) => i.type === t.type);
|
|
14378
14378
|
if (!e)
|
|
14379
14379
|
return {};
|
|
14380
14380
|
const n = { name: e.name, attributes: {} }, { attrs: r } = t;
|
|
@@ -14440,18 +14440,18 @@ function kv(t, e) {
|
|
|
14440
14440
|
let i = n.rId;
|
|
14441
14441
|
const s = n.src || n.imageSrc, { originalWidth: a, originalHeight: l } = d6(s);
|
|
14442
14442
|
let c = n.size ? {
|
|
14443
|
-
w:
|
|
14444
|
-
h:
|
|
14443
|
+
w: fo(n.size.width),
|
|
14444
|
+
h: fo(n.size.height)
|
|
14445
14445
|
} : e;
|
|
14446
14446
|
if (a && l) {
|
|
14447
14447
|
const m = ln(c.w), y = ln(c.h), { scaledWidth: g, scaledHeight: v } = p6(a, l, m, y);
|
|
14448
14448
|
c = {
|
|
14449
|
-
w:
|
|
14450
|
-
h:
|
|
14449
|
+
w: fo(g),
|
|
14450
|
+
h: fo(v)
|
|
14451
14451
|
};
|
|
14452
14452
|
}
|
|
14453
14453
|
if (o) {
|
|
14454
|
-
const m = o.attrs.colwidth.reduce((C, M) => C + M, 0), y = o.attrs.cellMargins?.left || 8, g = o.attrs.cellMargins?.right || 8, v =
|
|
14454
|
+
const m = o.attrs.colwidth.reduce((C, M) => C + M, 0), y = o.attrs.cellMargins?.left || 8, g = o.attrs.cellMargins?.right || 8, v = fo(m - (y + g)), { width: x, height: w } = k6(c.w, c.h, v);
|
|
14455
14455
|
x && w && (c = { w: x, h: w });
|
|
14456
14456
|
}
|
|
14457
14457
|
if (t.node.type === "image" && !i) {
|
|
@@ -14496,7 +14496,7 @@ function kv(t, e) {
|
|
|
14496
14496
|
name: "wp:posOffset",
|
|
14497
14497
|
elements: [{
|
|
14498
14498
|
type: "text",
|
|
14499
|
-
text:
|
|
14499
|
+
text: fo(n.marginOffset.left).toString()
|
|
14500
14500
|
}]
|
|
14501
14501
|
}]
|
|
14502
14502
|
},
|
|
@@ -14519,7 +14519,7 @@ function kv(t, e) {
|
|
|
14519
14519
|
name: "wp:posOffset",
|
|
14520
14520
|
elements: [{
|
|
14521
14521
|
type: "text",
|
|
14522
|
-
text:
|
|
14522
|
+
text: fo(n.marginOffset.top).toString()
|
|
14523
14523
|
}]
|
|
14524
14524
|
}]
|
|
14525
14525
|
},
|
|
@@ -14710,7 +14710,7 @@ function h6(t) {
|
|
|
14710
14710
|
const l = a.doc.toJSON();
|
|
14711
14711
|
return {
|
|
14712
14712
|
name: "htmlAnnotation",
|
|
14713
|
-
elements:
|
|
14713
|
+
elements: lo({
|
|
14714
14714
|
...t,
|
|
14715
14715
|
node: l
|
|
14716
14716
|
})
|
|
@@ -14839,7 +14839,7 @@ function w6(t) {
|
|
|
14839
14839
|
};
|
|
14840
14840
|
}
|
|
14841
14841
|
function b6(t) {
|
|
14842
|
-
const { node: e } = t, n =
|
|
14842
|
+
const { node: e } = t, n = lo(t), r = {
|
|
14843
14843
|
name: "v:shape",
|
|
14844
14844
|
attributes: {
|
|
14845
14845
|
...e.attrs.attributes,
|
|
@@ -14867,7 +14867,7 @@ function b6(t) {
|
|
|
14867
14867
|
function v6(t) {
|
|
14868
14868
|
const { node: e } = t, n = {
|
|
14869
14869
|
name: "w:txbxContent",
|
|
14870
|
-
elements:
|
|
14870
|
+
elements: lo(t)
|
|
14871
14871
|
};
|
|
14872
14872
|
return {
|
|
14873
14873
|
name: "v:textbox",
|
|
@@ -14896,17 +14896,17 @@ function x6(t) {
|
|
|
14896
14896
|
})]
|
|
14897
14897
|
};
|
|
14898
14898
|
}
|
|
14899
|
-
var
|
|
14899
|
+
var wo, Cv, Wu, Gu;
|
|
14900
14900
|
let ay = class {
|
|
14901
14901
|
constructor(e) {
|
|
14902
|
-
Bb(this,
|
|
14902
|
+
Bb(this, wo), this.converter = e;
|
|
14903
14903
|
}
|
|
14904
14904
|
schemaToXml(e, n = !1) {
|
|
14905
|
-
return wr(this,
|
|
14905
|
+
return wr(this, wo, Cv).call(this, e, n).join("");
|
|
14906
14906
|
}
|
|
14907
14907
|
};
|
|
14908
|
-
|
|
14909
|
-
const n = JSON.parse(JSON.stringify(t)), r = this.converter.declaration.attributes, o = `<?xml${Object.entries(r).map(([s, a]) => ` ${s}="${a}"`).join("")}?>`, i = wr(this,
|
|
14908
|
+
wo = /* @__PURE__ */ new WeakSet(), Cv = function(t, e = falase) {
|
|
14909
|
+
const n = JSON.parse(JSON.stringify(t)), r = this.converter.declaration.attributes, o = `<?xml${Object.entries(r).map(([s, a]) => ` ${s}="${a}"`).join("")}?>`, i = wr(this, wo, Gu).call(this, n, e);
|
|
14910
14910
|
return [o, ...i];
|
|
14911
14911
|
}, Wu = function(t) {
|
|
14912
14912
|
if (t)
|
|
@@ -14917,7 +14917,7 @@ yo = /* @__PURE__ */ new WeakSet(), Cv = function(t, e = falase) {
|
|
|
14917
14917
|
const { elements: r, attributes: o } = t;
|
|
14918
14918
|
let i = `<${n}`;
|
|
14919
14919
|
for (let l in o) {
|
|
14920
|
-
const c = typeof o[l] == "string" ? wr(this,
|
|
14920
|
+
const c = typeof o[l] == "string" ? wr(this, wo, Wu).call(this, o[l]) : o[l];
|
|
14921
14921
|
i += ` ${l}="${c}"`;
|
|
14922
14922
|
}
|
|
14923
14923
|
const s = n && (!r || !r.length);
|
|
@@ -14928,11 +14928,11 @@ yo = /* @__PURE__ */ new WeakSet(), Cv = function(t, e = falase) {
|
|
|
14928
14928
|
if (n === "w:instrText")
|
|
14929
14929
|
a.push(r[0].text);
|
|
14930
14930
|
else if (n === "w:t" || n === "w:delText" || n === "wp:posOffset") {
|
|
14931
|
-
const l = wr(this,
|
|
14931
|
+
const l = wr(this, wo, Wu).call(this, r[0].text);
|
|
14932
14932
|
a.push(l);
|
|
14933
14933
|
} else if (r)
|
|
14934
14934
|
for (let l of r) {
|
|
14935
|
-
const c = wr(this,
|
|
14935
|
+
const c = wr(this, wo, Gu).call(this, l);
|
|
14936
14936
|
if (!c) continue;
|
|
14937
14937
|
if (typeof c == "string") {
|
|
14938
14938
|
a.push(c);
|
|
@@ -15284,7 +15284,7 @@ const F6 = (t, e, n) => {
|
|
|
15284
15284
|
function Ti(t, e = [], n = null) {
|
|
15285
15285
|
const r = [], o = /* @__PURE__ */ new Set();
|
|
15286
15286
|
return t?.elements?.forEach((i) => {
|
|
15287
|
-
const s =
|
|
15287
|
+
const s = Bo.markTypes.filter((a) => a.name === i.name);
|
|
15288
15288
|
s.length || [
|
|
15289
15289
|
"w:shd",
|
|
15290
15290
|
"w:rStyle",
|
|
@@ -15372,7 +15372,7 @@ function U6(t) {
|
|
|
15372
15372
|
const e = t["w:fill"];
|
|
15373
15373
|
return e && e !== "auto" ? `#${e}` : m4(t?.["w:val"]) ? `#${t["w:val"]}` : h4(t?.["w:val"]) || null;
|
|
15374
15374
|
}
|
|
15375
|
-
function
|
|
15375
|
+
function Lo(t, e) {
|
|
15376
15376
|
const n = [], r = [], { attributes: o = {}, elements: i = [] } = t, { nodes: s, paragraphProperties: a = {}, runProperties: l = {} } = H6(i);
|
|
15377
15377
|
return i.find((c) => c.name === "w:r") && (a.elements = a?.elements?.filter((c) => c.name !== "w:rPr")), l && l?.elements?.length && n.push(...Ti(l, r)), a && a.elements?.length && n.push(...Ti(a, r)), n.push(...B6(l, n)), a && a.elements?.length && (o.paragraphProperties = a), n && t.name === "w:p" && n.forEach((c) => {
|
|
15378
15378
|
const u = Object.keys(c.attrs ?? {})[0];
|
|
@@ -15392,9 +15392,9 @@ function H6(t) {
|
|
|
15392
15392
|
};
|
|
15393
15393
|
}
|
|
15394
15394
|
function fl(t) {
|
|
15395
|
-
return
|
|
15395
|
+
return Bo.allowedElements[t.name || t.type];
|
|
15396
15396
|
}
|
|
15397
|
-
const V6 = (t) => !!
|
|
15397
|
+
const V6 = (t) => !!Bo.propertyTypes[t.name || t.type];
|
|
15398
15398
|
function Ov(t) {
|
|
15399
15399
|
return t.filter((e) => e.name === "w:r").some((e) => e.elements.some((n) => n.name === "w:t"));
|
|
15400
15400
|
}
|
|
@@ -15412,7 +15412,7 @@ const W6 = (t) => {
|
|
|
15412
15412
|
}
|
|
15413
15413
|
if (!o)
|
|
15414
15414
|
return { nodes: [], consumed: 0 };
|
|
15415
|
-
const { name: i } = o, { attributes: s, elements: a } =
|
|
15415
|
+
const { name: i } = o, { attributes: s, elements: a } = Lo(o), l = n.handler({ ...t, insideTrackChange: !0, nodes: a }), c = i === "w:del" ? wt : Wt, u = {
|
|
15416
15416
|
id: s["w:id"],
|
|
15417
15417
|
date: s["w:date"],
|
|
15418
15418
|
author: s["w:author"],
|
|
@@ -15454,7 +15454,7 @@ const W6 = (t) => {
|
|
|
15454
15454
|
let a = n.handler(s)?.filter((u) => u) || [];
|
|
15455
15455
|
const l = i.elements?.some((u) => u.name === "w:rPr"), c = Y6(o, r);
|
|
15456
15456
|
if (l) {
|
|
15457
|
-
const { marks: u = [], attributes: d = {} } =
|
|
15457
|
+
const { marks: u = [], attributes: d = {} } = Lo(i), p = u.find((m) => m.type === "textStyle"), f = p && Object.keys(p.attrs).length > 0;
|
|
15458
15458
|
c.marks && !f && u.push(...c.marks), i.marks && u.push(...i.marks);
|
|
15459
15459
|
const h = rp(u);
|
|
15460
15460
|
a = a.map((m) => {
|
|
@@ -15468,7 +15468,7 @@ const W6 = (t) => {
|
|
|
15468
15468
|
if (!n)
|
|
15469
15469
|
return {};
|
|
15470
15470
|
const r = n.elements[0].elements.filter((o) => o.name === "w:style").find((o) => o.attributes["w:styleId"] === e) || {};
|
|
15471
|
-
return r ?
|
|
15471
|
+
return r ? Lo(r) : {};
|
|
15472
15472
|
}, Z6 = {
|
|
15473
15473
|
handlerName: "runNodeHandler",
|
|
15474
15474
|
handler: X6
|
|
@@ -15476,7 +15476,7 @@ const W6 = (t) => {
|
|
|
15476
15476
|
const { nodes: e, insideTrackChange: n } = t;
|
|
15477
15477
|
if (e.length === 0 || !(e[0].name === "w:t" || n && e[0].name === "w:delText"))
|
|
15478
15478
|
return { nodes: [], consumed: 0 };
|
|
15479
|
-
const r = e[0], { type: o } = r, { attributes: i, elements: s, marks: a = [] } =
|
|
15479
|
+
const r = e[0], { type: o } = r, { attributes: i, elements: s, marks: a = [] } = Lo(r);
|
|
15480
15480
|
let l;
|
|
15481
15481
|
if (s.length === 1) l = s[0].text;
|
|
15482
15482
|
else if (!s.length && "attributes" in r && r.attributes["xml:space"] === "preserve")
|
|
@@ -15565,7 +15565,7 @@ function Dv({
|
|
|
15565
15565
|
T && d[d.length - 1]?.content.push(T), w.seen = !0;
|
|
15566
15566
|
continue;
|
|
15567
15567
|
}
|
|
15568
|
-
const { attributes: C, elements: M, marks: O = [] } =
|
|
15568
|
+
const { attributes: C, elements: M, marks: O = [] } = Lo(w), N = Ff(m, l) || {}, { marks: k } = Lo(N), q = O.find((T) => T.type === "textStyle"), re = k?.find((T) => T.type === "textStyle"), {
|
|
15569
15569
|
listType: _,
|
|
15570
15570
|
listOrderingType: V,
|
|
15571
15571
|
ilvl: $,
|
|
@@ -16121,7 +16121,7 @@ const py = (t = []) => {
|
|
|
16121
16121
|
const { nodes: e, docx: n, nodeListHandler: r } = t;
|
|
16122
16122
|
if (!e || e.length === 0)
|
|
16123
16123
|
return { nodes: [], consumed: 0 };
|
|
16124
|
-
const o = e[0], { name: i } = o, { attributes: s, elements: a, marks: l = [] } =
|
|
16124
|
+
const o = e[0], { name: i } = o, { attributes: s, elements: a, marks: l = [] } = Lo(o);
|
|
16125
16125
|
if (i === "w:sdt")
|
|
16126
16126
|
return { nodes: [], consumed: 0 };
|
|
16127
16127
|
if (V6(o))
|
|
@@ -16349,7 +16349,7 @@ function z$({ docx: t }) {
|
|
|
16349
16349
|
docx: t
|
|
16350
16350
|
}), { attrs: O } = M[0], N = O["w14:paraId"];
|
|
16351
16351
|
return {
|
|
16352
|
-
commentId: f ||
|
|
16352
|
+
commentId: f || so(),
|
|
16353
16353
|
importedId: l,
|
|
16354
16354
|
creatorName: c,
|
|
16355
16355
|
creatorEmail: u,
|
|
@@ -16705,7 +16705,7 @@ const gs = class qv {
|
|
|
16705
16705
|
return;
|
|
16706
16706
|
}
|
|
16707
16707
|
}
|
|
16708
|
-
static updateDocumentVersion(e = this.convertedXml, n = "0.11.
|
|
16708
|
+
static updateDocumentVersion(e = this.convertedXml, n = "0.11.20") {
|
|
16709
16709
|
const r = "docProps/custom.xml";
|
|
16710
16710
|
e[r] || (e[r] = Uv());
|
|
16711
16711
|
const o = e["docProps/custom.xml"];
|
|
@@ -16788,7 +16788,7 @@ const gs = class qv {
|
|
|
16788
16788
|
this.documentInternalId = r?.attributes["w15:val"];
|
|
16789
16789
|
}
|
|
16790
16790
|
createDocumentIdElement() {
|
|
16791
|
-
const e =
|
|
16791
|
+
const e = so().toUpperCase();
|
|
16792
16792
|
return this.documentInternalId = e, {
|
|
16793
16793
|
type: "element",
|
|
16794
16794
|
name: "w15:docId",
|
|
@@ -16948,7 +16948,7 @@ Pv = function({ defs: t, exportType: e, commentsWithParaIds: n }) {
|
|
|
16948
16948
|
"w:numPr": "numberingProperties",
|
|
16949
16949
|
"w:tcPr": "tableCellProperties"
|
|
16950
16950
|
})), $a(gs, "elements", /* @__PURE__ */ new Set(["w:document", "w:body", "w:p", "w:r", "w:t", "w:delText"]));
|
|
16951
|
-
let
|
|
16951
|
+
let Bo = gs;
|
|
16952
16952
|
function Y$(t) {
|
|
16953
16953
|
const e = "docProps/custom.xml";
|
|
16954
16954
|
t[e] || (t[e] = Uv());
|
|
@@ -16968,7 +16968,7 @@ function Y$(t) {
|
|
|
16968
16968
|
function Uv() {
|
|
16969
16969
|
return v4;
|
|
16970
16970
|
}
|
|
16971
|
-
function Hv(t = 2, e = "0.11.
|
|
16971
|
+
function Hv(t = 2, e = "0.11.20") {
|
|
16972
16972
|
return {
|
|
16973
16973
|
type: "element",
|
|
16974
16974
|
name: "property",
|
|
@@ -19794,12 +19794,12 @@ function hl(t) {
|
|
|
19794
19794
|
}
|
|
19795
19795
|
return Ju;
|
|
19796
19796
|
}
|
|
19797
|
-
const Sr = new
|
|
19797
|
+
const Sr = new Ze("history"), cT = new Ze("closeHistory");
|
|
19798
19798
|
function uT(t = {}) {
|
|
19799
19799
|
return t = {
|
|
19800
19800
|
depth: t.depth || 100,
|
|
19801
19801
|
newGroupDelay: t.newGroupDelay || 500
|
|
19802
|
-
}, new
|
|
19802
|
+
}, new Xe({
|
|
19803
19803
|
key: Sr,
|
|
19804
19804
|
state: {
|
|
19805
19805
|
init() {
|
|
@@ -19851,11 +19851,11 @@ let ct = class e2 {
|
|
|
19851
19851
|
}), this.config = {
|
|
19852
19852
|
...this.config,
|
|
19853
19853
|
...e
|
|
19854
|
-
}, this.name = this.config.name, this.config.addOptions && (this.options =
|
|
19854
|
+
}, this.name = this.config.name, this.config.addOptions && (this.options = Qe(
|
|
19855
19855
|
Be(this, "addOptions", {
|
|
19856
19856
|
name: this.name
|
|
19857
19857
|
})
|
|
19858
|
-
)), this.storage =
|
|
19858
|
+
)), this.storage = Qe(
|
|
19859
19859
|
Be(this, "addStorage", {
|
|
19860
19860
|
name: this.name,
|
|
19861
19861
|
options: this.options
|
|
@@ -19895,7 +19895,7 @@ const t2 = ct.create({
|
|
|
19895
19895
|
"Mod-y": () => this.editor.commands.redo()
|
|
19896
19896
|
};
|
|
19897
19897
|
}
|
|
19898
|
-
}),
|
|
19898
|
+
}), xo = globalThis || void 0 || self, Lt = function(t) {
|
|
19899
19899
|
for (var e = 0; ; e++)
|
|
19900
19900
|
if (t = t.previousSibling, !t)
|
|
19901
19901
|
return e;
|
|
@@ -19909,7 +19909,7 @@ const hr = function(t, e, n) {
|
|
|
19909
19909
|
return r.setEnd(t, n ?? t.nodeValue.length), r.setStart(t, e || 0), r;
|
|
19910
19910
|
}, fT = function() {
|
|
19911
19911
|
sp = null;
|
|
19912
|
-
},
|
|
19912
|
+
}, Po = function(t, e, n, r) {
|
|
19913
19913
|
return n && (by(t, e, n, r, -1) || by(t, e, n, r, 1));
|
|
19914
19914
|
}, hT = /^(img|br|input|textarea|hr)$/i;
|
|
19915
19915
|
function by(t, e, n, r, o) {
|
|
@@ -19977,9 +19977,9 @@ function wa(t) {
|
|
|
19977
19977
|
return e && e.node && e.node.isBlock && (e.dom == t || e.contentDOM == t);
|
|
19978
19978
|
}
|
|
19979
19979
|
const Tc = function(t) {
|
|
19980
|
-
return t.focusNode &&
|
|
19980
|
+
return t.focusNode && Po(t.focusNode, t.focusOffset, t.anchorNode, t.anchorOffset);
|
|
19981
19981
|
};
|
|
19982
|
-
function
|
|
19982
|
+
function bo(t, e) {
|
|
19983
19983
|
let n = document.createEvent("Event");
|
|
19984
19984
|
return n.initEvent("keydown", !0, !0), n.keyCode = t, n.key = n.code = e, n;
|
|
19985
19985
|
}
|
|
@@ -20003,9 +20003,9 @@ function bT(t, e, n) {
|
|
|
20003
20003
|
return { node: r.startContainer, offset: Math.min(_n(r.startContainer), r.startOffset) };
|
|
20004
20004
|
}
|
|
20005
20005
|
}
|
|
20006
|
-
const rr = typeof navigator < "u" ? navigator : null, vy = typeof document < "u" ? document : null,
|
|
20007
|
-
jn && +(/Firefox\/(\d+)/.exec(
|
|
20008
|
-
const cp = !un && /Chrome\/(\d+)/.exec(
|
|
20006
|
+
const rr = typeof navigator < "u" ? navigator : null, vy = typeof document < "u" ? document : null, co = rr && rr.userAgent || "", ap = /Edge\/(\d+)/.exec(co), n2 = /MSIE \d/.exec(co), lp = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(co), un = !!(n2 || lp || ap), Yr = n2 ? document.documentMode : lp ? +lp[1] : ap ? +ap[1] : 0, jn = !un && /gecko\/(\d+)/i.test(co);
|
|
20007
|
+
jn && +(/Firefox\/(\d+)/.exec(co) || [0, 0])[1];
|
|
20008
|
+
const cp = !un && /Chrome\/(\d+)/.exec(co), Ut = !!cp, r2 = cp ? +cp[1] : 0, nn = !un && !!rr && /Apple Computer/.test(rr.vendor), Di = nn && (/Mobile\/\w+/.test(co) || !!rr && rr.maxTouchPoints > 2), Dn = Di || (rr ? /Mac/.test(rr.platform) : !1), vT = rr ? /Win/.test(rr.platform) : !1, vr = /Android \d/.test(co), ba = !!vy && "webkitFontSmoothing" in vy.documentElement.style, xT = ba ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
20009
20009
|
function kT(t) {
|
|
20010
20010
|
let e = t.defaultView && t.defaultView.visualViewport;
|
|
20011
20011
|
return e ? {
|
|
@@ -20339,7 +20339,7 @@ let Sy = null, Ey = null, Cy = !1;
|
|
|
20339
20339
|
function RT(t, e, n) {
|
|
20340
20340
|
return Sy == e && Ey == n ? Cy : (Sy = e, Ey = n, Cy = n == "up" || n == "down" ? IT(t, e, n) : FT(t, e, n));
|
|
20341
20341
|
}
|
|
20342
|
-
const Nn = 0, Ay = 1,
|
|
20342
|
+
const Nn = 0, Ay = 1, ko = 2, or = 3;
|
|
20343
20343
|
class va {
|
|
20344
20344
|
constructor(e, n, r, o) {
|
|
20345
20345
|
this.parent = e, this.children = n, this.dom = r, this.contentDOM = o, this.dirty = Nn, r.pmViewDesc = this;
|
|
@@ -20622,7 +20622,7 @@ class va {
|
|
|
20622
20622
|
let f = u.focusNode.childNodes[u.focusOffset];
|
|
20623
20623
|
f && f.contentEditable == "false" && (o = !0);
|
|
20624
20624
|
}
|
|
20625
|
-
if (!(o || d && nn) &&
|
|
20625
|
+
if (!(o || d && nn) && Po(a.node, a.offset, u.anchorNode, u.anchorOffset) && Po(l.node, l.offset, u.focusNode, u.focusOffset))
|
|
20626
20626
|
return;
|
|
20627
20627
|
let p = !1;
|
|
20628
20628
|
if ((c.extend || e == n) && !d) {
|
|
@@ -20655,19 +20655,19 @@ class va {
|
|
|
20655
20655
|
if (r == s ? e <= s && n >= r : e < s && n > r) {
|
|
20656
20656
|
let a = r + i.border, l = s - i.border;
|
|
20657
20657
|
if (e >= a && n <= l) {
|
|
20658
|
-
this.dirty = e == r || n == s ?
|
|
20658
|
+
this.dirty = e == r || n == s ? ko : Ay, e == a && n == l && (i.contentLost || i.dom.parentNode != this.contentDOM) ? i.dirty = or : i.markDirty(e - a, n - a);
|
|
20659
20659
|
return;
|
|
20660
20660
|
} else
|
|
20661
|
-
i.dirty = i.dom == i.contentDOM && i.dom.parentNode == this.contentDOM && !i.children.length ?
|
|
20661
|
+
i.dirty = i.dom == i.contentDOM && i.dom.parentNode == this.contentDOM && !i.children.length ? ko : or;
|
|
20662
20662
|
}
|
|
20663
20663
|
r = s;
|
|
20664
20664
|
}
|
|
20665
|
-
this.dirty =
|
|
20665
|
+
this.dirty = ko;
|
|
20666
20666
|
}
|
|
20667
20667
|
markParentsDirty() {
|
|
20668
20668
|
let e = 1;
|
|
20669
20669
|
for (let n = this.parent; n; n = n.parent, e++) {
|
|
20670
|
-
let r = e == 1 ?
|
|
20670
|
+
let r = e == 1 ? ko : Ay;
|
|
20671
20671
|
n.dirty < r && (n.dirty = r);
|
|
20672
20672
|
}
|
|
20673
20673
|
}
|
|
@@ -20844,7 +20844,7 @@ let jl = class up extends va {
|
|
|
20844
20844
|
l.syncToMarks(c.marks, r, e);
|
|
20845
20845
|
let f;
|
|
20846
20846
|
l.findNodeMatch(c, u, d, p) || a && e.state.selection.from > o && e.state.selection.to < o + c.nodeSize && (f = l.findIndexWithChild(i.node)) > -1 && l.updateNodeAt(c, u, d, f, e) || l.updateNextNode(c, u, d, e, p, o) || l.addNode(c, u, d, e, o), o += c.nodeSize;
|
|
20847
|
-
}), l.syncToMarks([], r, e), this.node.isTextblock && l.addTextblockHacks(), l.destroyRest(), (l.changed || this.dirty ==
|
|
20847
|
+
}), l.syncToMarks([], r, e), this.node.isTextblock && l.addTextblockHacks(), l.destroyRest(), (l.changed || this.dirty == ko) && (s && this.protectLocalComposition(e, s), m2(this.contentDOM, this.children, e), Di && HT(this.dom));
|
|
20848
20848
|
}
|
|
20849
20849
|
localCompositionInfo(e, n) {
|
|
20850
20850
|
let { from: r, to: o } = e.state.selection;
|
|
@@ -21017,11 +21017,11 @@ const As = function(t) {
|
|
|
21017
21017
|
t && (this.nodeName = t);
|
|
21018
21018
|
};
|
|
21019
21019
|
As.prototype = /* @__PURE__ */ Object.create(null);
|
|
21020
|
-
const
|
|
21020
|
+
const So = [new As()];
|
|
21021
21021
|
function dp(t, e, n) {
|
|
21022
21022
|
if (t.length == 0)
|
|
21023
|
-
return
|
|
21024
|
-
let r = n ?
|
|
21023
|
+
return So;
|
|
21024
|
+
let r = n ? So[0] : new As(), o = [r];
|
|
21025
21025
|
for (let i = 0; i < t.length; i++) {
|
|
21026
21026
|
let s = t[i].type.attrs;
|
|
21027
21027
|
if (s) {
|
|
@@ -21035,16 +21035,16 @@ function dp(t, e, n) {
|
|
|
21035
21035
|
return o;
|
|
21036
21036
|
}
|
|
21037
21037
|
function g2(t, e, n, r) {
|
|
21038
|
-
if (n ==
|
|
21038
|
+
if (n == So && r == So)
|
|
21039
21039
|
return e;
|
|
21040
21040
|
let o = e;
|
|
21041
21041
|
for (let i = 0; i < r.length; i++) {
|
|
21042
21042
|
let s = r[i], a = n[i];
|
|
21043
21043
|
if (i) {
|
|
21044
21044
|
let l;
|
|
21045
|
-
a && a.nodeName == s.nodeName && o != t && (l = o.parentNode) && l.nodeName.toLowerCase() == s.nodeName || (l = document.createElement(s.nodeName), l.pmIsDeco = !0, l.appendChild(o), a =
|
|
21045
|
+
a && a.nodeName == s.nodeName && o != t && (l = o.parentNode) && l.nodeName.toLowerCase() == s.nodeName || (l = document.createElement(s.nodeName), l.pmIsDeco = !0, l.appendChild(o), a = So[0]), o = l;
|
|
21046
21046
|
}
|
|
21047
|
-
PT(o, a ||
|
|
21047
|
+
PT(o, a || So[0], s);
|
|
21048
21048
|
}
|
|
21049
21049
|
return o;
|
|
21050
21050
|
}
|
|
@@ -21071,7 +21071,7 @@ function PT(t, e, n) {
|
|
|
21071
21071
|
}
|
|
21072
21072
|
}
|
|
21073
21073
|
function y2(t, e, n) {
|
|
21074
|
-
return g2(t, t,
|
|
21074
|
+
return g2(t, t, So, dp(e, n, t.nodeType != 1));
|
|
21075
21075
|
}
|
|
21076
21076
|
function ql(t, e) {
|
|
21077
21077
|
if (t.length != e.length)
|
|
@@ -21147,7 +21147,7 @@ class zT {
|
|
|
21147
21147
|
}
|
|
21148
21148
|
updateNodeAt(e, n, r, o, i) {
|
|
21149
21149
|
let s = this.top.children[o];
|
|
21150
|
-
return s.dirty == or && s.dom == s.contentDOM && (s.dirty =
|
|
21150
|
+
return s.dirty == or && s.dom == s.contentDOM && (s.dirty = ko), s.update(e, n, r, i) ? (this.destroyBetween(this.index, o), this.index++, !0) : !1;
|
|
21151
21151
|
}
|
|
21152
21152
|
findIndexWithChild(e) {
|
|
21153
21153
|
for (; ; ) {
|
|
@@ -21179,7 +21179,7 @@ class zT {
|
|
|
21179
21179
|
if (!p && l.update(e, n, r, o))
|
|
21180
21180
|
return this.destroyBetween(this.index, a), l.dom != u && (this.changed = !0), this.index++, !0;
|
|
21181
21181
|
if (!p && (d = this.recreateWrapper(l, e, n, r, o, s)))
|
|
21182
|
-
return this.destroyBetween(this.index, a), this.top.children[this.index] = d, d.contentDOM && (d.dirty =
|
|
21182
|
+
return this.destroyBetween(this.index, a), this.top.children[this.index] = d, d.contentDOM && (d.dirty = ko, d.updateChildren(o, s + 1), d.dirty = Nn), this.changed = !0, this.index++, !0;
|
|
21183
21183
|
break;
|
|
21184
21184
|
}
|
|
21185
21185
|
}
|
|
@@ -21397,7 +21397,7 @@ function Er(t, e = !1) {
|
|
|
21397
21397
|
if (b2(t, n), !!w2(t)) {
|
|
21398
21398
|
if (!e && t.input.mouseDown && t.input.mouseDown.allowDefault && Ut) {
|
|
21399
21399
|
let r = t.domSelectionRange(), o = t.domObserver.currentSelection;
|
|
21400
|
-
if (r.anchorNode && o.anchorNode &&
|
|
21400
|
+
if (r.anchorNode && o.anchorNode && Po(r.anchorNode, r.anchorOffset, o.anchorNode, o.anchorOffset)) {
|
|
21401
21401
|
t.input.mouseDown.delayedSelectionSync = !0, t.domObserver.setCurSelection();
|
|
21402
21402
|
return;
|
|
21403
21403
|
}
|
|
@@ -21474,7 +21474,7 @@ function v2(t) {
|
|
|
21474
21474
|
}
|
|
21475
21475
|
function KT(t) {
|
|
21476
21476
|
let e = t.docView.domFromPos(t.state.selection.anchor, 0), n = t.domSelectionRange();
|
|
21477
|
-
return
|
|
21477
|
+
return Po(e.node, e.offset, n.anchorNode, n.anchorOffset);
|
|
21478
21478
|
}
|
|
21479
21479
|
function fp(t, e) {
|
|
21480
21480
|
let { $anchor: n, $head: r } = t.selection, o = e > 0 ? n.max(r) : n.min(r), i = o.parent.inlineContent ? o.depth ? t.doc.resolve(e > 0 ? o.after() : o.before()) : null : o;
|
|
@@ -21971,7 +21971,7 @@ on.keydown = (t, e) => {
|
|
|
21971
21971
|
if (n.keyCode != 229 && t.domObserver.forceFlush(), Di && n.keyCode == 13 && !n.ctrlKey && !n.altKey && !n.metaKey) {
|
|
21972
21972
|
let r = Date.now();
|
|
21973
21973
|
t.input.lastIOSEnter = r, t.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
|
|
21974
|
-
t.input.lastIOSEnter == r && (t.someProp("handleKeyDown", (o) => o(t,
|
|
21974
|
+
t.input.lastIOSEnter == r && (t.someProp("handleKeyDown", (o) => o(t, bo(13, "Enter"))), t.input.lastIOSEnter = 0);
|
|
21975
21975
|
}, 200);
|
|
21976
21976
|
} else t.someProp("handleKeyDown", (r) => r(t, n)) || t5(t, n) ? n.preventDefault() : Vr(t, "key");
|
|
21977
21977
|
};
|
|
@@ -22335,7 +22335,7 @@ rn.beforeinput = (t, e) => {
|
|
|
22335
22335
|
t.domObserver.flushSoon();
|
|
22336
22336
|
let { domChangeCount: n } = t.input;
|
|
22337
22337
|
setTimeout(() => {
|
|
22338
|
-
if (t.input.domChangeCount != n || (t.dom.blur(), t.focus(), t.someProp("handleKeyDown", (o) => o(t,
|
|
22338
|
+
if (t.input.domChangeCount != n || (t.dom.blur(), t.focus(), t.someProp("handleKeyDown", (o) => o(t, bo(8, "Backspace")))))
|
|
22339
22339
|
return;
|
|
22340
22340
|
let { $cursor: r } = t.state.selection;
|
|
22341
22341
|
r && r.pos > 0 && t.dispatch(t.state.tr.delete(r.pos - 1, r.pos).scrollIntoView());
|
|
@@ -22357,7 +22357,7 @@ function Gs(t, e) {
|
|
|
22357
22357
|
}
|
|
22358
22358
|
let jy = class F2 {
|
|
22359
22359
|
constructor(e, n) {
|
|
22360
|
-
this.toDOM = e, this.spec = n ||
|
|
22360
|
+
this.toDOM = e, this.spec = n || Oo, this.side = this.spec.side || 0;
|
|
22361
22361
|
}
|
|
22362
22362
|
map(e, n, r, o) {
|
|
22363
22363
|
let { pos: i, deleted: s } = e.mapResult(n.from + o, this.side < 0 ? -1 : 1);
|
|
@@ -22374,7 +22374,7 @@ let jy = class F2 {
|
|
|
22374
22374
|
}
|
|
22375
22375
|
}, Ts = class yp {
|
|
22376
22376
|
constructor(e, n) {
|
|
22377
|
-
this.attrs = e, this.spec = n ||
|
|
22377
|
+
this.attrs = e, this.spec = n || Oo;
|
|
22378
22378
|
}
|
|
22379
22379
|
map(e, n, r, o) {
|
|
22380
22380
|
let i = e.map(n.from + o, this.spec.inclusiveStart ? -1 : 1) - r, s = e.map(n.to + o, this.spec.inclusiveEnd ? 1 : -1) - r;
|
|
@@ -22394,7 +22394,7 @@ let jy = class F2 {
|
|
|
22394
22394
|
};
|
|
22395
22395
|
class Hf {
|
|
22396
22396
|
constructor(e, n) {
|
|
22397
|
-
this.attrs = e, this.spec = n ||
|
|
22397
|
+
this.attrs = e, this.spec = n || Oo;
|
|
22398
22398
|
}
|
|
22399
22399
|
map(e, n, r, o) {
|
|
22400
22400
|
let i = e.mapResult(n.from + o, 1);
|
|
@@ -22484,8 +22484,8 @@ let Ge = class ys {
|
|
|
22484
22484
|
return this.type instanceof jy;
|
|
22485
22485
|
}
|
|
22486
22486
|
};
|
|
22487
|
-
const ui = [],
|
|
22488
|
-
class
|
|
22487
|
+
const ui = [], Oo = {};
|
|
22488
|
+
class Fe {
|
|
22489
22489
|
/**
|
|
22490
22490
|
@internal
|
|
22491
22491
|
*/
|
|
@@ -22498,7 +22498,7 @@ class Re {
|
|
|
22498
22498
|
you must make a copy if you want need to preserve that.
|
|
22499
22499
|
*/
|
|
22500
22500
|
static create(e, n) {
|
|
22501
|
-
return n.length ? Vl(n, e, 0,
|
|
22501
|
+
return n.length ? Vl(n, e, 0, Oo) : jt;
|
|
22502
22502
|
}
|
|
22503
22503
|
/**
|
|
22504
22504
|
Find all decorations in this set which touch the given range
|
|
@@ -22528,7 +22528,7 @@ class Re {
|
|
|
22528
22528
|
document.
|
|
22529
22529
|
*/
|
|
22530
22530
|
map(e, n, r) {
|
|
22531
|
-
return this == jt || e.maps.length == 0 ? this : this.mapInner(e, n, 0, 0, r ||
|
|
22531
|
+
return this == jt || e.maps.length == 0 ? this : this.mapInner(e, n, 0, 0, r || Oo);
|
|
22532
22532
|
}
|
|
22533
22533
|
/**
|
|
22534
22534
|
@internal
|
|
@@ -22539,7 +22539,7 @@ class Re {
|
|
|
22539
22539
|
let l = this.local[a].map(e, r, o);
|
|
22540
22540
|
l && l.type.valid(n, l) ? (s || (s = [])).push(l) : i.onRemove && i.onRemove(this.local[a].spec);
|
|
22541
22541
|
}
|
|
22542
|
-
return this.children.length ? O5(this.children, s || [], e, n, r, o, i) : s ? new
|
|
22542
|
+
return this.children.length ? O5(this.children, s || [], e, n, r, o, i) : s ? new Fe(s.sort(Mo), ui) : jt;
|
|
22543
22543
|
}
|
|
22544
22544
|
/**
|
|
22545
22545
|
Add the given array of decorations to the ones in the set,
|
|
@@ -22548,7 +22548,7 @@ class Re {
|
|
|
22548
22548
|
structure.
|
|
22549
22549
|
*/
|
|
22550
22550
|
add(e, n) {
|
|
22551
|
-
return n.length ? this == jt ?
|
|
22551
|
+
return n.length ? this == jt ? Fe.create(e, n) : this.addInner(e, n, 0) : this;
|
|
22552
22552
|
}
|
|
22553
22553
|
addInner(e, n, r) {
|
|
22554
22554
|
let o, i = 0;
|
|
@@ -22557,13 +22557,13 @@ class Re {
|
|
|
22557
22557
|
if (u = B2(n, a, c)) {
|
|
22558
22558
|
for (o || (o = this.children.slice()); i < o.length && o[i] < l; )
|
|
22559
22559
|
i += 3;
|
|
22560
|
-
o[i] == l ? o[i + 2] = o[i + 2].addInner(a, u, c + 1) : o.splice(i, 0, l, l + a.nodeSize, Vl(u, a, c + 1,
|
|
22560
|
+
o[i] == l ? o[i + 2] = o[i + 2].addInner(a, u, c + 1) : o.splice(i, 0, l, l + a.nodeSize, Vl(u, a, c + 1, Oo)), i += 3;
|
|
22561
22561
|
}
|
|
22562
22562
|
});
|
|
22563
22563
|
let s = L2(i ? P2(n) : n, -r);
|
|
22564
22564
|
for (let a = 0; a < s.length; a++)
|
|
22565
22565
|
s[a].type.valid(e, s[a]) || s.splice(a--, 1);
|
|
22566
|
-
return new
|
|
22566
|
+
return new Fe(s.length ? this.local.concat(s).sort(Mo) : this.local, o || this.children);
|
|
22567
22567
|
}
|
|
22568
22568
|
/**
|
|
22569
22569
|
Create a new set that contains the decorations in this set, minus
|
|
@@ -22590,13 +22590,13 @@ class Re {
|
|
|
22590
22590
|
for (let a = 0; a < o.length; a++)
|
|
22591
22591
|
o[a].eq(s, n) && (o == this.local && (o = this.local.slice()), o.splice(a--, 1));
|
|
22592
22592
|
}
|
|
22593
|
-
return r == this.children && o == this.local ? this : o.length || r.length ? new
|
|
22593
|
+
return r == this.children && o == this.local ? this : o.length || r.length ? new Fe(o, r) : jt;
|
|
22594
22594
|
}
|
|
22595
22595
|
forChild(e, n) {
|
|
22596
22596
|
if (this == jt)
|
|
22597
22597
|
return this;
|
|
22598
22598
|
if (n.isLeaf)
|
|
22599
|
-
return
|
|
22599
|
+
return Fe.empty;
|
|
22600
22600
|
let r, o;
|
|
22601
22601
|
for (let a = 0; a < this.children.length; a += 3)
|
|
22602
22602
|
if (this.children[a] >= e) {
|
|
@@ -22612,7 +22612,7 @@ class Re {
|
|
|
22612
22612
|
}
|
|
22613
22613
|
}
|
|
22614
22614
|
if (o) {
|
|
22615
|
-
let a = new
|
|
22615
|
+
let a = new Fe(o.sort(Mo), ui);
|
|
22616
22616
|
return r ? new R2([a, r]) : a;
|
|
22617
22617
|
}
|
|
22618
22618
|
return r || jt;
|
|
@@ -22623,7 +22623,7 @@ class Re {
|
|
|
22623
22623
|
eq(e) {
|
|
22624
22624
|
if (this == e)
|
|
22625
22625
|
return !0;
|
|
22626
|
-
if (!(e instanceof
|
|
22626
|
+
if (!(e instanceof Fe) || this.local.length != e.local.length || this.children.length != e.children.length)
|
|
22627
22627
|
return !1;
|
|
22628
22628
|
for (let n = 0; n < this.local.length; n++)
|
|
22629
22629
|
if (!this.local[n].eq(e.local[n]))
|
|
@@ -22656,20 +22656,20 @@ class Re {
|
|
|
22656
22656
|
e(this);
|
|
22657
22657
|
}
|
|
22658
22658
|
}
|
|
22659
|
-
|
|
22660
|
-
|
|
22661
|
-
const jt =
|
|
22659
|
+
Fe.empty = new Fe([], []);
|
|
22660
|
+
Fe.removeOverlap = Vf;
|
|
22661
|
+
const jt = Fe.empty;
|
|
22662
22662
|
let R2 = class di {
|
|
22663
22663
|
constructor(e) {
|
|
22664
22664
|
this.members = e;
|
|
22665
22665
|
}
|
|
22666
22666
|
map(e, n) {
|
|
22667
|
-
const r = this.members.map((o) => o.map(e, n,
|
|
22667
|
+
const r = this.members.map((o) => o.map(e, n, Oo));
|
|
22668
22668
|
return di.from(r);
|
|
22669
22669
|
}
|
|
22670
22670
|
forChild(e, n) {
|
|
22671
22671
|
if (n.isLeaf)
|
|
22672
|
-
return
|
|
22672
|
+
return Fe.empty;
|
|
22673
22673
|
let r = [];
|
|
22674
22674
|
for (let o = 0; o < this.members.length; o++) {
|
|
22675
22675
|
let i = this.members[o].forChild(e, n);
|
|
@@ -22698,7 +22698,7 @@ let R2 = class di {
|
|
|
22698
22698
|
n.push(i[s]);
|
|
22699
22699
|
}
|
|
22700
22700
|
}
|
|
22701
|
-
return n ? Vf(r ? n : n.sort(
|
|
22701
|
+
return n ? Vf(r ? n : n.sort(Mo)) : ui;
|
|
22702
22702
|
}
|
|
22703
22703
|
// Create a group for the given array of decoration sets, or return
|
|
22704
22704
|
// a single set when possible.
|
|
@@ -22709,7 +22709,7 @@ let R2 = class di {
|
|
|
22709
22709
|
case 1:
|
|
22710
22710
|
return e[0];
|
|
22711
22711
|
default:
|
|
22712
|
-
return new di(e.every((n) => n instanceof
|
|
22712
|
+
return new di(e.every((n) => n instanceof Fe) ? e : e.reduce((n, r) => n.concat(r instanceof Fe ? r : r.members), []));
|
|
22713
22713
|
}
|
|
22714
22714
|
}
|
|
22715
22715
|
forEachSet(e) {
|
|
@@ -22764,7 +22764,7 @@ function O5(t, e, n, r, o, i, s) {
|
|
|
22764
22764
|
a.splice(p, 0, u.children[d], u.children[d + 1], u.children[d + 2]);
|
|
22765
22765
|
}
|
|
22766
22766
|
}
|
|
22767
|
-
return new
|
|
22767
|
+
return new Fe(e.sort(Mo), a);
|
|
22768
22768
|
}
|
|
22769
22769
|
function L2(t, e) {
|
|
22770
22770
|
if (!e || !t.length)
|
|
@@ -22813,12 +22813,12 @@ function Vl(t, e, n, r) {
|
|
|
22813
22813
|
u != jt && o.push(l, l + a.nodeSize, u);
|
|
22814
22814
|
}
|
|
22815
22815
|
});
|
|
22816
|
-
let s = L2(i ? P2(t) : t, -n).sort(
|
|
22816
|
+
let s = L2(i ? P2(t) : t, -n).sort(Mo);
|
|
22817
22817
|
for (let a = 0; a < s.length; a++)
|
|
22818
22818
|
s[a].type.valid(e, s[a]) || (r.onRemove && r.onRemove(s[a].spec), s.splice(a--, 1));
|
|
22819
|
-
return s.length || o.length ? new
|
|
22819
|
+
return s.length || o.length ? new Fe(s, o) : jt;
|
|
22820
22820
|
}
|
|
22821
|
-
function
|
|
22821
|
+
function Mo(t, e) {
|
|
22822
22822
|
return t.from - e.from || t.to - e.to;
|
|
22823
22823
|
}
|
|
22824
22824
|
function Vf(t) {
|
|
@@ -22840,7 +22840,7 @@ function Vf(t) {
|
|
|
22840
22840
|
return e;
|
|
22841
22841
|
}
|
|
22842
22842
|
function qy(t, e, n) {
|
|
22843
|
-
for (; e < t.length &&
|
|
22843
|
+
for (; e < t.length && Mo(n, t[e]) > 0; )
|
|
22844
22844
|
e++;
|
|
22845
22845
|
t.splice(e, 0, n);
|
|
22846
22846
|
}
|
|
@@ -22849,7 +22849,7 @@ function Qu(t) {
|
|
|
22849
22849
|
return t.someProp("decorations", (n) => {
|
|
22850
22850
|
let r = n(t.state);
|
|
22851
22851
|
r && r != jt && e.push(r);
|
|
22852
|
-
}), t.cursorWrapper && e.push(
|
|
22852
|
+
}), t.cursorWrapper && e.push(Fe.create(t.state.doc, [t.cursorWrapper.deco])), R2.from(e);
|
|
22853
22853
|
}
|
|
22854
22854
|
const D5 = {
|
|
22855
22855
|
childList: !0,
|
|
@@ -22920,7 +22920,7 @@ let I5 = class {
|
|
|
22920
22920
|
return Er(this.view);
|
|
22921
22921
|
if (un && Yr <= 11 && !this.view.state.selection.empty) {
|
|
22922
22922
|
let e = this.view.domSelectionRange();
|
|
22923
|
-
if (e.focusNode &&
|
|
22923
|
+
if (e.focusNode && Po(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset))
|
|
22924
22924
|
return this.flushSoon();
|
|
22925
22925
|
}
|
|
22926
22926
|
this.flush();
|
|
@@ -23023,7 +23023,7 @@ function F5(t) {
|
|
|
23023
23023
|
}
|
|
23024
23024
|
function Vy(t, e) {
|
|
23025
23025
|
let n = e.startContainer, r = e.startOffset, o = e.endContainer, i = e.endOffset, s = t.domAtPos(t.state.selection.anchor);
|
|
23026
|
-
return
|
|
23026
|
+
return Po(s.node, s.offset, o, i) && ([n, r, o, i] = [o, i, n, r]), { anchorNode: n, anchorOffset: r, focusNode: o, focusOffset: i };
|
|
23027
23027
|
}
|
|
23028
23028
|
function R5(t, e) {
|
|
23029
23029
|
if (e.getComposedRanges) {
|
|
@@ -23094,7 +23094,7 @@ function j5(t, e, n, r, o) {
|
|
|
23094
23094
|
if (t.input.compositionPendingChanges = 0, e < 0) {
|
|
23095
23095
|
let k = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, q = Bf(t, k);
|
|
23096
23096
|
if (q && !t.state.selection.eq(q)) {
|
|
23097
|
-
if (Ut && vr && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (_) => _(t,
|
|
23097
|
+
if (Ut && vr && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (_) => _(t, bo(13, "Enter"))))
|
|
23098
23098
|
return;
|
|
23099
23099
|
let re = t.state.tr.setSelection(q);
|
|
23100
23100
|
k == "pointer" ? re.setMeta("pointer", !0) : k == "key" && re.scrollIntoView(), i && re.setMeta("composition", i), t.dispatch(re);
|
|
@@ -23106,7 +23106,7 @@ function j5(t, e, n, r, o) {
|
|
|
23106
23106
|
let l = t.state.selection, c = B5(t, e, n), u = t.state.doc, d = u.slice(c.from, c.to), p, f;
|
|
23107
23107
|
t.input.lastKeyCode === 8 && Date.now() - 100 < t.input.lastKeyCodeTime ? (p = t.state.selection.to, f = "end") : (p = t.state.selection.from, f = "start"), t.input.lastKeyCode = null;
|
|
23108
23108
|
let h = H5(d.content, c.doc.content, c.from, p, f);
|
|
23109
|
-
if (h && t.input.domChangeCount++, (Di && t.input.lastIOSEnter > Date.now() - 225 || vr) && o.some((k) => k.nodeType == 1 && !z5.test(k.nodeName)) && (!h || h.endA >= h.endB) && t.someProp("handleKeyDown", (k) => k(t,
|
|
23109
|
+
if (h && t.input.domChangeCount++, (Di && t.input.lastIOSEnter > Date.now() - 225 || vr) && o.some((k) => k.nodeType == 1 && !z5.test(k.nodeName)) && (!h || h.endA >= h.endB) && t.someProp("handleKeyDown", (k) => k(t, bo(13, "Enter")))) {
|
|
23110
23110
|
t.input.lastIOSEnter = 0;
|
|
23111
23111
|
return;
|
|
23112
23112
|
}
|
|
@@ -23125,17 +23125,17 @@ function j5(t, e, n, r, o) {
|
|
|
23125
23125
|
}
|
|
23126
23126
|
t.state.selection.from < t.state.selection.to && h.start == h.endB && t.state.selection instanceof We && (h.start > t.state.selection.from && h.start <= t.state.selection.from + 2 && t.state.selection.from >= c.from ? h.start = t.state.selection.from : h.endA < t.state.selection.to && h.endA >= t.state.selection.to - 2 && t.state.selection.to <= c.to && (h.endB += t.state.selection.to - h.endA, h.endA = t.state.selection.to)), un && Yr <= 11 && h.endB == h.start + 1 && h.endA == h.start && h.start > c.from && c.doc.textBetween(h.start - c.from - 1, h.start - c.from + 1) == " " && (h.start--, h.endA--, h.endB--);
|
|
23127
23127
|
let m = c.doc.resolveNoCache(h.start - c.from), y = c.doc.resolveNoCache(h.endB - c.from), g = u.resolve(h.start), v = m.sameParent(y) && m.parent.inlineContent && g.end() >= h.endA, x;
|
|
23128
|
-
if ((Di && t.input.lastIOSEnter > Date.now() - 225 && (!v || o.some((k) => k.nodeName == "DIV" || k.nodeName == "P")) || !v && m.pos < c.doc.content.size && (!m.sameParent(y) || !m.parent.inlineContent) && (x = Ve.findFrom(c.doc.resolve(m.pos + 1), 1, !0)) && x.head > m.pos) && t.someProp("handleKeyDown", (k) => k(t,
|
|
23128
|
+
if ((Di && t.input.lastIOSEnter > Date.now() - 225 && (!v || o.some((k) => k.nodeName == "DIV" || k.nodeName == "P")) || !v && m.pos < c.doc.content.size && (!m.sameParent(y) || !m.parent.inlineContent) && (x = Ve.findFrom(c.doc.resolve(m.pos + 1), 1, !0)) && x.head > m.pos) && t.someProp("handleKeyDown", (k) => k(t, bo(13, "Enter")))) {
|
|
23129
23129
|
t.input.lastIOSEnter = 0;
|
|
23130
23130
|
return;
|
|
23131
23131
|
}
|
|
23132
|
-
if (t.state.selection.anchor > h.start && U5(u, h.start, h.endA, m, y) && t.someProp("handleKeyDown", (k) => k(t,
|
|
23132
|
+
if (t.state.selection.anchor > h.start && U5(u, h.start, h.endA, m, y) && t.someProp("handleKeyDown", (k) => k(t, bo(8, "Backspace")))) {
|
|
23133
23133
|
vr && Ut && t.domObserver.suppressSelectionUpdates();
|
|
23134
23134
|
return;
|
|
23135
23135
|
}
|
|
23136
23136
|
Ut && h.endB == h.start && (t.input.lastChromeDelete = Date.now()), vr && !v && m.start() != y.start() && y.parentOffset == 0 && m.depth == y.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == h.endA && (h.endB -= 2, y = c.doc.resolveNoCache(h.endB - c.from), setTimeout(() => {
|
|
23137
23137
|
t.someProp("handleKeyDown", function(k) {
|
|
23138
|
-
return k(t,
|
|
23138
|
+
return k(t, bo(13, "Enter"));
|
|
23139
23139
|
});
|
|
23140
23140
|
}, 20));
|
|
23141
23141
|
let w = h.start, C = h.endA, M, O, N;
|
|
@@ -23770,7 +23770,7 @@ Xs.encodeInto ? yO : wO, bO = (t, e) => {
|
|
|
23770
23770
|
remove: t.length - n - r,
|
|
23771
23771
|
insert: e.slice(n, e.length - r)
|
|
23772
23772
|
};
|
|
23773
|
-
}, _O = DO, dt = new
|
|
23773
|
+
}, _O = DO, dt = new Ze("y-sync"), Qr = new Ze("y-undo"), Fa = new Ze("yjs-cursor"), IO = Math.random, NO = (t) => t[Ks(IO() * t.length)], FO = (t) => t === void 0 ? null : t;
|
|
23774
23774
|
class RO {
|
|
23775
23775
|
constructor() {
|
|
23776
23776
|
this.map = /* @__PURE__ */ new Map();
|
|
@@ -23989,7 +23989,7 @@ e.sv.get(t.id.client) > t.id.clock && !De.isDeleted(e.ds, t.id), iM = [{ light:
|
|
|
23989
23989
|
mapping: i
|
|
23990
23990
|
} = {}) => {
|
|
23991
23991
|
let s = !1;
|
|
23992
|
-
const a = new cM(t, i), l = new
|
|
23992
|
+
const a = new cM(t, i), l = new Xe({
|
|
23993
23993
|
props: {
|
|
23994
23994
|
editable: (c) => {
|
|
23995
23995
|
const u = dt.getState(c);
|
|
@@ -24748,7 +24748,7 @@ const yM = () => {
|
|
|
24748
24748
|
class: "ProseMirror-yjs-selection"
|
|
24749
24749
|
}), CM = /^#[0-9a-fA-F]{6}$/, iw = (t, e, n, r, o) => {
|
|
24750
24750
|
const i = dt.getState(t), s = i.doc, a = [];
|
|
24751
|
-
return i.snapshot != null || i.prevSnapshot != null || i.binding.mapping.size === 0 ?
|
|
24751
|
+
return i.snapshot != null || i.prevSnapshot != null || i.binding.mapping.size === 0 ? Fe.create(t.doc, []) : (e.getStates().forEach((l, c) => {
|
|
24752
24752
|
if (n(s.clientID, c, l) && l.cursor != null) {
|
|
24753
24753
|
const u = l.user || {};
|
|
24754
24754
|
u.color == null ? u.color = "#ffa500" : CM.test(u.color) || console.warn("A user uses an unsupported color format", u), u.name == null && (u.name = `User: ${c}`);
|
|
@@ -24780,13 +24780,13 @@ const yM = () => {
|
|
|
24780
24780
|
);
|
|
24781
24781
|
}
|
|
24782
24782
|
}
|
|
24783
|
-
}),
|
|
24783
|
+
}), Fe.create(t.doc, a));
|
|
24784
24784
|
}, AM = (t, {
|
|
24785
24785
|
awarenessStateFilter: e = kM,
|
|
24786
24786
|
cursorBuilder: n = SM,
|
|
24787
24787
|
selectionBuilder: r = EM,
|
|
24788
24788
|
getSelection: o = (s) => s.selection
|
|
24789
|
-
} = {}, i = "cursor") => new
|
|
24789
|
+
} = {}, i = "cursor") => new Xe({
|
|
24790
24790
|
key: Fa,
|
|
24791
24791
|
state: {
|
|
24792
24792
|
init(s, a) {
|
|
@@ -24859,7 +24859,7 @@ const yM = () => {
|
|
|
24859
24859
|
const e = Qr.getState(t).undoManager;
|
|
24860
24860
|
if (e != null)
|
|
24861
24861
|
return e.redo(), !0;
|
|
24862
|
-
}, OM = /* @__PURE__ */ new Set(["paragraph"]), MM = (t, e) => !(t instanceof JS) || !(t.content instanceof XS) || !(t.content.type instanceof YS || t.content.type instanceof ZS && e.has(t.content.type.nodeName)) || t.content.type._length === 0, DM = ({ protectedNodes: t = OM, trackedOrigins: e = [], undoManager: n = null } = {}) => new
|
|
24862
|
+
}, OM = /* @__PURE__ */ new Set(["paragraph"]), MM = (t, e) => !(t instanceof JS) || !(t.content instanceof XS) || !(t.content.type instanceof YS || t.content.type instanceof ZS && e.has(t.content.type.nodeName)) || t.content.type._length === 0, DM = ({ protectedNodes: t = OM, trackedOrigins: e = [], undoManager: n = null } = {}) => new Xe({
|
|
24863
24863
|
key: Qr,
|
|
24864
24864
|
state: {
|
|
24865
24865
|
init: (r, o) => {
|
|
@@ -25072,7 +25072,7 @@ function rd(t, e, n = !0) {
|
|
|
25072
25072
|
return e.altKey && (t = "Alt-" + t), e.ctrlKey && (t = "Ctrl-" + t), e.metaKey && (t = "Meta-" + t), n && e.shiftKey && (t = "Shift-" + t), t;
|
|
25073
25073
|
}
|
|
25074
25074
|
function PM(t) {
|
|
25075
|
-
return new
|
|
25075
|
+
return new Xe({ props: { handleKeyDown: Jf(t) } });
|
|
25076
25076
|
}
|
|
25077
25077
|
function Jf(t) {
|
|
25078
25078
|
let e = BM(t);
|
|
@@ -25328,19 +25328,19 @@ Yl = /* @__PURE__ */ new WeakSet(), ex = function(t, e, n) {
|
|
|
25328
25328
|
...m ? m(o) : {}
|
|
25329
25329
|
};
|
|
25330
25330
|
}, {}), c = Ap({
|
|
25331
|
-
content:
|
|
25332
|
-
group:
|
|
25333
|
-
marks:
|
|
25334
|
-
inline:
|
|
25335
|
-
atom:
|
|
25336
|
-
selectable:
|
|
25337
|
-
draggable:
|
|
25338
|
-
code:
|
|
25339
|
-
defining:
|
|
25340
|
-
isolating:
|
|
25331
|
+
content: Qe(Be(o, "content", s)),
|
|
25332
|
+
group: Qe(Be(o, "group", s)),
|
|
25333
|
+
marks: Qe(Be(o, "marks", s)),
|
|
25334
|
+
inline: Qe(Be(o, "inline", s)),
|
|
25335
|
+
atom: Qe(Be(o, "atom", s)),
|
|
25336
|
+
selectable: Qe(Be(o, "selectable", s)),
|
|
25337
|
+
draggable: Qe(Be(o, "draggable", s)),
|
|
25338
|
+
code: Qe(Be(o, "code", s)),
|
|
25339
|
+
defining: Qe(Be(o, "defining", s)),
|
|
25340
|
+
isolating: Qe(Be(o, "isolating", s)),
|
|
25341
25341
|
attrs: a,
|
|
25342
25342
|
...l
|
|
25343
|
-
}), u =
|
|
25343
|
+
}), u = Qe(Be(o, "parseDOM", s));
|
|
25344
25344
|
u && (c.parseDOM = u.map((f) => Oe.insertExtensionAttrsToParseRule(f, i)));
|
|
25345
25345
|
const d = Be(o, "renderDOM", s);
|
|
25346
25346
|
d && (c.toDOM = (f) => d({
|
|
@@ -25361,13 +25361,13 @@ Yl = /* @__PURE__ */ new WeakSet(), ex = function(t, e, n) {
|
|
|
25361
25361
|
}, a = Object.fromEntries(
|
|
25362
25362
|
i.map((d) => [d.name, { default: d?.attribute?.default }])
|
|
25363
25363
|
), l = Ap({
|
|
25364
|
-
group:
|
|
25365
|
-
inclusive:
|
|
25366
|
-
excludes:
|
|
25367
|
-
spanning:
|
|
25368
|
-
code:
|
|
25364
|
+
group: Qe(Be(o, "group", s)),
|
|
25365
|
+
inclusive: Qe(Be(o, "inclusive", s)),
|
|
25366
|
+
excludes: Qe(Be(o, "excludes", s)),
|
|
25367
|
+
spanning: Qe(Be(o, "spanning", s)),
|
|
25368
|
+
code: Qe(Be(o, "code", s)),
|
|
25369
25369
|
attrs: a
|
|
25370
|
-
}), c =
|
|
25370
|
+
}), c = Qe(Be(o, "parseDOM", s));
|
|
25371
25371
|
c && (l.parseDOM = c.map((d) => Oe.insertExtensionAttrsToParseRule(d, i)));
|
|
25372
25372
|
const u = Be(o, "renderDOM", s);
|
|
25373
25373
|
return u && (l.toDOM = (d) => u({
|
|
@@ -25580,8 +25580,8 @@ const VM = (t, e) => {
|
|
|
25580
25580
|
}), a.dispatch(f), c = !0);
|
|
25581
25581
|
}), c;
|
|
25582
25582
|
}, WM = ({ editor: t, rules: e }) => {
|
|
25583
|
-
const n = new
|
|
25584
|
-
key: new
|
|
25583
|
+
const n = new Xe({
|
|
25584
|
+
key: new Ze("inputRulesPlugin"),
|
|
25585
25585
|
state: {
|
|
25586
25586
|
init() {
|
|
25587
25587
|
return null;
|
|
@@ -25811,7 +25811,7 @@ ix = function() {
|
|
|
25811
25811
|
editor: this.editor,
|
|
25812
25812
|
type: ea(t.name, this.schema)
|
|
25813
25813
|
};
|
|
25814
|
-
t.type === "mark" && (
|
|
25814
|
+
t.type === "mark" && (Qe(Be(t, "keepOnSplit", e)) ?? !0) && this.splittableMarks.push(t.name), Ie(this, Zl, sw).call(this, t);
|
|
25815
25815
|
}
|
|
25816
25816
|
}, /**
|
|
25817
25817
|
* Attach editor events to extension
|
|
@@ -25952,7 +25952,7 @@ function dx(t) {
|
|
|
25952
25952
|
const oD = (t, e) => {
|
|
25953
25953
|
let n = t.selection, r = n instanceof ze, o;
|
|
25954
25954
|
if (r) {
|
|
25955
|
-
if (n.node.isTextblock || !
|
|
25955
|
+
if (n.node.isTextblock || !ao(t.doc, n.from))
|
|
25956
25956
|
return !1;
|
|
25957
25957
|
o = n.from;
|
|
25958
25958
|
} else if (o = Y1(t.doc, n.from, -1), o == null)
|
|
@@ -25965,7 +25965,7 @@ const oD = (t, e) => {
|
|
|
25965
25965
|
}, iD = (t, e) => {
|
|
25966
25966
|
let n = t.selection, r;
|
|
25967
25967
|
if (n instanceof ze) {
|
|
25968
|
-
if (n.node.isTextblock || !
|
|
25968
|
+
if (n.node.isTextblock || !ao(t.doc, n.to))
|
|
25969
25969
|
return !1;
|
|
25970
25970
|
r = n.to;
|
|
25971
25971
|
} else if (r = Y1(t.doc, n.to, 1), r == null)
|
|
@@ -26050,7 +26050,7 @@ function aD(t) {
|
|
|
26050
26050
|
const lD = aD(), cD = (t, e) => (e && e(t.tr.setSelection(new Qn(t.doc))), !0);
|
|
26051
26051
|
function uD(t, e, n) {
|
|
26052
26052
|
let r = e.nodeBefore, o = e.nodeAfter, i = e.index();
|
|
26053
|
-
return !r || !o || !r.type.compatibleContent(o.type) ? !1 : !r.content.size && e.parent.canReplace(i - 1, i) ? (n && n(t.tr.delete(e.pos - r.nodeSize, e.pos).scrollIntoView()), !0) : !e.parent.canReplace(i, i + 1) || !(o.isTextblock ||
|
|
26053
|
+
return !r || !o || !r.type.compatibleContent(o.type) ? !1 : !r.content.size && e.parent.canReplace(i - 1, i) ? (n && n(t.tr.delete(e.pos - r.nodeSize, e.pos).scrollIntoView()), !0) : !e.parent.canReplace(i, i + 1) || !(o.isTextblock || ao(t.doc, e.pos)) ? !1 : (n && n(t.tr.join(e.pos).scrollIntoView()), !0);
|
|
26054
26054
|
}
|
|
26055
26055
|
function mx(t, e, n, r) {
|
|
26056
26056
|
let o = e.nodeBefore, i = e.nodeAfter, s, a, l = o.type.spec.isolating || i.type.spec.isolating;
|
|
@@ -26064,7 +26064,7 @@ function mx(t, e, n, r) {
|
|
|
26064
26064
|
h = ge.from(s[g].create(null, h));
|
|
26065
26065
|
h = ge.from(o.copy(h));
|
|
26066
26066
|
let m = t.tr.step(new hn(e.pos - 1, f, e.pos, f, new ve(h, 1, 0), s.length, !0)), y = m.doc.resolve(f + 2 * s.length);
|
|
26067
|
-
y.nodeAfter && y.nodeAfter.type == o.type &&
|
|
26067
|
+
y.nodeAfter && y.nodeAfter.type == o.type && ao(m.doc, y.pos) && m.join(y.pos), n(m.scrollIntoView());
|
|
26068
26068
|
}
|
|
26069
26069
|
return !0;
|
|
26070
26070
|
}
|
|
@@ -26535,7 +26535,7 @@ function KD(t, e, n, r) {
|
|
|
26535
26535
|
return !1;
|
|
26536
26536
|
o.lift(r, a);
|
|
26537
26537
|
let l = o.doc.resolve(o.mapping.map(i, -1) - 1);
|
|
26538
|
-
return
|
|
26538
|
+
return ao(o.doc, l.pos) && l.nodeBefore.type == l.nodeAfter.type && o.join(l.pos), e(o.scrollIntoView()), !0;
|
|
26539
26539
|
}
|
|
26540
26540
|
function JD(t, e, n) {
|
|
26541
26541
|
let r = t.tr, o = n.parent;
|
|
@@ -26589,7 +26589,7 @@ const YD = (t, e = {}) => ({ state: n, dispatch: r }) => {
|
|
|
26589
26589
|
name: n.name,
|
|
26590
26590
|
options: n.options,
|
|
26591
26591
|
storage: n.storage
|
|
26592
|
-
}, o =
|
|
26592
|
+
}, o = Qe(Be(n, "group", r));
|
|
26593
26593
|
return typeof o != "string" ? !1 : o.split(" ").includes("list");
|
|
26594
26594
|
}, ZD = {
|
|
26595
26595
|
type: "element",
|
|
@@ -27740,14 +27740,14 @@ const YD = (t, e = {}) => ({ state: n, dispatch: r }) => {
|
|
|
27740
27740
|
const r = t.doc.resolve(Math.max(0, n.pos - 1)).before(n.depth);
|
|
27741
27741
|
if (r === void 0) return !0;
|
|
27742
27742
|
const o = t.doc.nodeAt(r);
|
|
27743
|
-
return n.node.type === o?.type &&
|
|
27743
|
+
return n.node.type === o?.type && ao(t.doc, n.pos) && t.join(n.pos), !0;
|
|
27744
27744
|
}, sd = (t, e) => {
|
|
27745
27745
|
const n = dn((i) => i.type === e)(t.selection);
|
|
27746
27746
|
if (!n) return !0;
|
|
27747
27747
|
const r = t.doc.resolve(n.start).after(n.depth);
|
|
27748
27748
|
if (r === void 0) return !0;
|
|
27749
27749
|
const o = t.doc.nodeAt(r);
|
|
27750
|
-
return n.node.type === o?.type &&
|
|
27750
|
+
return n.node.type === o?.type && ao(t.doc, r) && t.join(r), !0;
|
|
27751
27751
|
}, e8 = (t, e, n, r = {}) => (o) => {
|
|
27752
27752
|
const { editor: i, tr: s, state: a, dispatch: l, chain: c, can: u, commands: d } = o, { extensions: p, splittableMarks: f } = i.extensionService, h = Ct(t, a.schema), m = Ct(e, a.schema), { selection: y, storedMarks: g } = a, { $from: v, $to: x } = y, w = v.blockRange(x), C = g || y.$to.parentOffset && y.$from.marks();
|
|
27753
27753
|
if (!w) return !1;
|
|
@@ -27895,28 +27895,22 @@ const YD = (t, e = {}) => ({ state: n, dispatch: r }) => {
|
|
|
27895
27895
|
addCommands() {
|
|
27896
27896
|
return { ...s8 };
|
|
27897
27897
|
}
|
|
27898
|
-
}), l8 = (t) => {
|
|
27899
|
-
|
|
27900
|
-
|
|
27901
|
-
|
|
27902
|
-
|
|
27903
|
-
|
|
27904
|
-
|
|
27905
|
-
|
|
27906
|
-
|
|
27907
|
-
|
|
27908
|
-
|
|
27909
|
-
|
|
27910
|
-
|
|
27911
|
-
|
|
27912
|
-
|
|
27913
|
-
|
|
27914
|
-
t.commands.first(({ commands: e }) => [
|
|
27915
|
-
() => e.deleteSelection(),
|
|
27916
|
-
() => e.joinForward(),
|
|
27917
|
-
() => e.selectNodeForward()
|
|
27918
|
-
]);
|
|
27919
|
-
}, c8 = ct.create({
|
|
27898
|
+
}), l8 = (t) => t.commands.first(({ commands: e }) => [
|
|
27899
|
+
() => e.newlineInCode(),
|
|
27900
|
+
() => e.createParagraphNear(),
|
|
27901
|
+
() => e.liftEmptyBlock(),
|
|
27902
|
+
() => e.splitBlock()
|
|
27903
|
+
]), es = (t) => t.commands.first(({ commands: e, tr: n }) => [
|
|
27904
|
+
() => e.undoInputRule(),
|
|
27905
|
+
() => (n.setMeta("inputType", "deleteContentBackward"), !1),
|
|
27906
|
+
() => e.deleteSelection(),
|
|
27907
|
+
() => e.joinBackward(),
|
|
27908
|
+
() => e.selectNodeBackward()
|
|
27909
|
+
]), Zo = (t) => t.commands.first(({ commands: e }) => [
|
|
27910
|
+
() => e.deleteSelection(),
|
|
27911
|
+
() => e.joinForward(),
|
|
27912
|
+
() => e.selectNodeForward()
|
|
27913
|
+
]), c8 = ct.create({
|
|
27920
27914
|
name: "keymap",
|
|
27921
27915
|
addShortcuts() {
|
|
27922
27916
|
const t = {
|
|
@@ -27948,8 +27942,8 @@ const YD = (t, e = {}) => ({ state: n, dispatch: r }) => {
|
|
|
27948
27942
|
}), u8 = ct.create({
|
|
27949
27943
|
name: "editable",
|
|
27950
27944
|
addPmPlugins() {
|
|
27951
|
-
return [new
|
|
27952
|
-
key: new
|
|
27945
|
+
return [new Xe({
|
|
27946
|
+
key: new Ze("editable"),
|
|
27953
27947
|
props: {
|
|
27954
27948
|
editable: () => this.editor.options.editable
|
|
27955
27949
|
}
|
|
@@ -27959,8 +27953,8 @@ const YD = (t, e = {}) => ({ state: n, dispatch: r }) => {
|
|
|
27959
27953
|
name: "editorFocus",
|
|
27960
27954
|
addPmPlugins() {
|
|
27961
27955
|
const t = this.editor;
|
|
27962
|
-
return [new
|
|
27963
|
-
key: new
|
|
27956
|
+
return [new Xe({
|
|
27957
|
+
key: new Ze("editorFocus"),
|
|
27964
27958
|
props: {
|
|
27965
27959
|
handleDOMEvents: {
|
|
27966
27960
|
focus: (e, n) => {
|
|
@@ -28024,7 +28018,7 @@ const th = ({
|
|
|
28024
28018
|
markName: Wt,
|
|
28025
28019
|
attrs: { authorEmail: r.email }
|
|
28026
28020
|
}), s;
|
|
28027
|
-
i ? s = i.mark.attrs.id : s =
|
|
28021
|
+
i ? s = i.mark.attrs.id : s = so();
|
|
28028
28022
|
const a = t.doc.type.schema.marks[Wt].create({
|
|
28029
28023
|
id: s,
|
|
28030
28024
|
author: r.name,
|
|
@@ -28045,7 +28039,7 @@ const th = ({
|
|
|
28045
28039
|
markName: wt,
|
|
28046
28040
|
attrs: { authorEmail: r.email }
|
|
28047
28041
|
}), s;
|
|
28048
|
-
i ? s = i.mark.attrs.id : s =
|
|
28042
|
+
i ? s = i.mark.attrs.id : s = so();
|
|
28049
28043
|
const a = t.doc.type.schema.marks[wt].create({
|
|
28050
28044
|
id: s,
|
|
28051
28045
|
author: r.name,
|
|
@@ -28245,7 +28239,7 @@ const rh = (t) => {
|
|
|
28245
28239
|
});
|
|
28246
28240
|
});
|
|
28247
28241
|
}), e ? n.filter(({ mark: o }) => o.attrs.id === e) : n) : n;
|
|
28248
|
-
}, Tt = new
|
|
28242
|
+
}, Tt = new Ze("TrackChangesBase"), g8 = (t = {}) => new Xe({
|
|
28249
28243
|
key: Tt,
|
|
28250
28244
|
state: {
|
|
28251
28245
|
init(e, n) {
|
|
@@ -28300,7 +28294,7 @@ const rh = (t) => {
|
|
|
28300
28294
|
}
|
|
28301
28295
|
}), Qo = (t, e, n) => {
|
|
28302
28296
|
if (!t.doc || !t.doc.nodeSize || n && e)
|
|
28303
|
-
return
|
|
28297
|
+
return Fe.empty;
|
|
28304
28298
|
const r = [], o = ih(t);
|
|
28305
28299
|
return o.length ? (o.forEach(({ mark: i, from: s, to: a }) => {
|
|
28306
28300
|
if (i.type.name === Wt)
|
|
@@ -28364,7 +28358,7 @@ const rh = (t) => {
|
|
|
28364
28358
|
});
|
|
28365
28359
|
r.push(l);
|
|
28366
28360
|
}
|
|
28367
|
-
}),
|
|
28361
|
+
}), Fe.create(t.doc, r)) : Fe.empty;
|
|
28368
28362
|
}, Sn = "commentMark", cw = ({ commentId: t, state: e, tr: n, dispatch: r }) => {
|
|
28369
28363
|
y8(t, e.doc).forEach(({ from: o, to: i }) => {
|
|
28370
28364
|
n.removeMark(o, i, e.schema.marks[Sn]);
|
|
@@ -28474,7 +28468,7 @@ const rh = (t) => {
|
|
|
28474
28468
|
if (!r.options.isInternal && n) return "transparent";
|
|
28475
28469
|
const o = Ft.getState(r.state), i = n ? o.internalColor : o.externalColor, s = t == e ? "44" : "22";
|
|
28476
28470
|
return `${i}${s}`;
|
|
28477
|
-
}, eo = new
|
|
28471
|
+
}, eo = new Ze("paginationPlugin"), k8 = async (t) => {
|
|
28478
28472
|
if (!t.converter) return;
|
|
28479
28473
|
const e = { headers: {}, footers: {} }, n = t.converter.headerIds.ids, r = t.converter.footerIds.ids;
|
|
28480
28474
|
for (let o in n) {
|
|
@@ -28540,7 +28534,7 @@ const rh = (t) => {
|
|
|
28540
28534
|
}), n({ height: u, sectionEditor: c, sectionContainer: r });
|
|
28541
28535
|
});
|
|
28542
28536
|
});
|
|
28543
|
-
}) : {}, sh = [Wt, wt, Mt], Ft = new
|
|
28537
|
+
}) : {}, sh = [Wt, wt, Mt], Ft = new Ze("comments"), S8 = ct.create({
|
|
28544
28538
|
name: "comments",
|
|
28545
28539
|
addCommands() {
|
|
28546
28540
|
return {
|
|
@@ -28589,7 +28583,7 @@ const rh = (t) => {
|
|
|
28589
28583
|
addPmPlugins() {
|
|
28590
28584
|
const t = this.editor;
|
|
28591
28585
|
let e, n;
|
|
28592
|
-
return t.options.isHeadless ? [] : [new
|
|
28586
|
+
return t.options.isHeadless ? [] : [new Xe({
|
|
28593
28587
|
key: Ft,
|
|
28594
28588
|
state: {
|
|
28595
28589
|
init() {
|
|
@@ -28597,7 +28591,7 @@ const rh = (t) => {
|
|
|
28597
28591
|
activeThreadId: null,
|
|
28598
28592
|
externalColor: "#B1124B",
|
|
28599
28593
|
internalColor: "#078383",
|
|
28600
|
-
decorations:
|
|
28594
|
+
decorations: Fe.empty,
|
|
28601
28595
|
allCommentPositions: {},
|
|
28602
28596
|
allCommentIds: [],
|
|
28603
28597
|
changedActiveThread: !1,
|
|
@@ -28692,7 +28686,7 @@ const rh = (t) => {
|
|
|
28692
28686
|
});
|
|
28693
28687
|
}
|
|
28694
28688
|
});
|
|
28695
|
-
const p =
|
|
28689
|
+
const p = Fe.create(l, u);
|
|
28696
28690
|
if (!Ft.getState(a).decorations.eq(p)) {
|
|
28697
28691
|
const f = a.tr.setMeta(Ft, {
|
|
28698
28692
|
decorations: p,
|
|
@@ -28922,7 +28916,7 @@ const Mx = ({ state: t, tr: e, step: n, newTr: r, map: o, doc: i, user: s, date:
|
|
|
28922
28916
|
return;
|
|
28923
28917
|
if (c.marks.find((f) => f.type.name === wt))
|
|
28924
28918
|
return !1;
|
|
28925
|
-
const d = c.marks.find((f) => [wt, Mt].includes(f.type.name)), p = d ? d.attrs.id :
|
|
28919
|
+
const d = c.marks.find((f) => [wt, Mt].includes(f.type.name)), p = d ? d.attrs.id : so();
|
|
28926
28920
|
if (r.addMark(Math.max(n.from, u), Math.min(n.to, u + c.nodeSize), n.mark), ["bold", "italic", "strike", "underline", "textStyle"].includes(n.mark.type.name) && !c.marks.find((f) => f.type === n.mark.type)) {
|
|
28927
28921
|
const f = c.marks.find((y) => y.type.name === Mt);
|
|
28928
28922
|
let h = [], m = [];
|
|
@@ -28982,7 +28976,7 @@ const Mx = ({ state: t, tr: e, step: n, newTr: r, map: o, doc: i, user: s, date:
|
|
|
28982
28976
|
}
|
|
28983
28977
|
]), p.length || f.length) {
|
|
28984
28978
|
const h = t.schema.marks[Mt].create({
|
|
28985
|
-
id:
|
|
28979
|
+
id: so(),
|
|
28986
28980
|
author: s.name,
|
|
28987
28981
|
authorEmail: s.email,
|
|
28988
28982
|
date: a,
|
|
@@ -29278,10 +29272,10 @@ const I8 = class zx extends _M {
|
|
|
29278
29272
|
return [o, i, r.mediaFiles, r.fonts];
|
|
29279
29273
|
}
|
|
29280
29274
|
static getDocumentVersion(e) {
|
|
29281
|
-
return
|
|
29275
|
+
return Bo.getStoredSuperdocVersion(e);
|
|
29282
29276
|
}
|
|
29283
29277
|
static updateDocumentVersion(e, n) {
|
|
29284
|
-
return
|
|
29278
|
+
return Bo.updateDocumentVersion(e, n);
|
|
29285
29279
|
}
|
|
29286
29280
|
/**
|
|
29287
29281
|
* Creates all node views.
|
|
@@ -29442,7 +29436,7 @@ const I8 = class zx extends _M {
|
|
|
29442
29436
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
29443
29437
|
*/
|
|
29444
29438
|
processCollaborationMigrations() {
|
|
29445
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.11.
|
|
29439
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.11.20"), !this.options.ydoc) return;
|
|
29446
29440
|
let e = this.options.ydoc.getMap("meta").get("version");
|
|
29447
29441
|
e || (e = "initial"), console.debug("[checkVersionMigrations] Document version", e);
|
|
29448
29442
|
const n = fw(e) || [], r = this.state.plugins.find((i) => i.key.startsWith("y-sync"));
|
|
@@ -29495,7 +29489,7 @@ hi = /* @__PURE__ */ new WeakMap(), Nx = /* @__PURE__ */ new WeakMap(), He = /*
|
|
|
29495
29489
|
}, ad = function({ editor: t, event: e }) {
|
|
29496
29490
|
this.toolbar?.setActiveEditor(t), this.options.onFocus({ editor: t, event: e });
|
|
29497
29491
|
}, Lx = function(t) {
|
|
29498
|
-
t.isHeadless && (typeof navigator > "u" && (
|
|
29492
|
+
t.isHeadless && (typeof navigator > "u" && (xo.navigator = { isHeadless: !0 }), t.mockDocument && (xo.document = t.mockDocument, xo.window = t.mockWindow));
|
|
29499
29493
|
}, /**
|
|
29500
29494
|
* Replace the current document with new data. Necessary for initializing a new collaboration file,
|
|
29501
29495
|
* since we need to insert the data only after the provider has synced.
|
|
@@ -29529,7 +29523,7 @@ cd = function() {
|
|
|
29529
29523
|
* Creates a SuperConverter.
|
|
29530
29524
|
*/
|
|
29531
29525
|
Ip = function() {
|
|
29532
|
-
this.options.converter ? this.converter = this.options.converter : this.converter = new
|
|
29526
|
+
this.options.converter ? this.converter = this.options.converter : this.converter = new Bo({
|
|
29533
29527
|
docx: this.options.content,
|
|
29534
29528
|
media: this.options.mediaFiles,
|
|
29535
29529
|
fonts: this.options.fonts,
|
|
@@ -29703,11 +29697,11 @@ let tc = I8, et = class jx {
|
|
|
29703
29697
|
}), this.config = {
|
|
29704
29698
|
...this.config,
|
|
29705
29699
|
...e
|
|
29706
|
-
}, this.name = this.config.name, this.config.addOptions && (this.options =
|
|
29700
|
+
}, this.name = this.config.name, this.config.addOptions && (this.options = Qe(
|
|
29707
29701
|
Be(this, "addOptions", {
|
|
29708
29702
|
name: this.name
|
|
29709
29703
|
})
|
|
29710
|
-
)), this.storage =
|
|
29704
|
+
)), this.storage = Qe(
|
|
29711
29705
|
Be(this, "addStorage", {
|
|
29712
29706
|
name: this.name,
|
|
29713
29707
|
options: this.options
|
|
@@ -29728,11 +29722,11 @@ let tc = I8, et = class jx {
|
|
|
29728
29722
|
}), this.config = {
|
|
29729
29723
|
...this.config,
|
|
29730
29724
|
...e
|
|
29731
|
-
}, this.name = this.config.name, this.isExternal = !!this.config.isExternal, this.config.addOptions && (this.options =
|
|
29725
|
+
}, this.name = this.config.name, this.isExternal = !!this.config.isExternal, this.config.addOptions && (this.options = Qe(
|
|
29732
29726
|
Be(this, "addOptions", {
|
|
29733
29727
|
name: this.name
|
|
29734
29728
|
})
|
|
29735
|
-
)), this.storage =
|
|
29729
|
+
)), this.storage = Qe(
|
|
29736
29730
|
Be(this, "addStorage", {
|
|
29737
29731
|
name: this.name,
|
|
29738
29732
|
options: this.options
|
|
@@ -30028,7 +30022,7 @@ const Ux = ct.create({
|
|
|
30028
30022
|
}
|
|
30029
30023
|
});
|
|
30030
30024
|
function N8(t = {}) {
|
|
30031
|
-
return new
|
|
30025
|
+
return new Xe({
|
|
30032
30026
|
view(e) {
|
|
30033
30027
|
return new F8(e, t);
|
|
30034
30028
|
}
|
|
@@ -30254,7 +30248,7 @@ function L8(t) {
|
|
|
30254
30248
|
return !0;
|
|
30255
30249
|
}
|
|
30256
30250
|
function B8() {
|
|
30257
|
-
return new
|
|
30251
|
+
return new Xe({
|
|
30258
30252
|
props: {
|
|
30259
30253
|
decorations: q8,
|
|
30260
30254
|
createSelectionBetween(t, e, n) {
|
|
@@ -30310,7 +30304,7 @@ function q8(t) {
|
|
|
30310
30304
|
if (!(t.selection instanceof mn))
|
|
30311
30305
|
return null;
|
|
30312
30306
|
let e = document.createElement("div");
|
|
30313
|
-
return e.className = "ProseMirror-gapcursor",
|
|
30307
|
+
return e.className = "ProseMirror-gapcursor", Fe.create(t.doc, [Ge.widget(t.selection.head, e, { key: "gapcursor" })]);
|
|
30314
30308
|
}
|
|
30315
30309
|
const U8 = ct.create({
|
|
30316
30310
|
name: "gapCursor",
|
|
@@ -30321,14 +30315,14 @@ const U8 = ct.create({
|
|
|
30321
30315
|
},
|
|
30322
30316
|
extendNodeSchema(t) {
|
|
30323
30317
|
return {
|
|
30324
|
-
allowGapCursor:
|
|
30318
|
+
allowGapCursor: Qe(Be(t, "allowGapCursor", {
|
|
30325
30319
|
name: t.name,
|
|
30326
30320
|
options: t.options,
|
|
30327
30321
|
storage: t.storage
|
|
30328
30322
|
})) ?? null
|
|
30329
30323
|
};
|
|
30330
30324
|
}
|
|
30331
|
-
}), H8 = new
|
|
30325
|
+
}), H8 = new Ze("collaboration"), V8 = ct.create({
|
|
30332
30326
|
name: "collaboration",
|
|
30333
30327
|
priority: 1e3,
|
|
30334
30328
|
addOptions() {
|
|
@@ -30482,7 +30476,7 @@ const U8 = ct.create({
|
|
|
30482
30476
|
renderDOM({ htmlAttributes: t }) {
|
|
30483
30477
|
return [Ba, Oe.mergeAttributes(this.options.htmlAttributes, t)];
|
|
30484
30478
|
}
|
|
30485
|
-
}), e_ = new
|
|
30479
|
+
}), e_ = new Ze("ai"), Yx = ct.create({
|
|
30486
30480
|
name: "ai",
|
|
30487
30481
|
addCommands() {
|
|
30488
30482
|
return {
|
|
@@ -30514,19 +30508,19 @@ const U8 = ct.create({
|
|
|
30514
30508
|
},
|
|
30515
30509
|
addPmPlugins() {
|
|
30516
30510
|
const t = this.editor;
|
|
30517
|
-
return [new
|
|
30511
|
+
return [new Xe({
|
|
30518
30512
|
key: e_,
|
|
30519
30513
|
state: {
|
|
30520
30514
|
init() {
|
|
30521
30515
|
return {
|
|
30522
|
-
decorations:
|
|
30516
|
+
decorations: Fe.empty,
|
|
30523
30517
|
highlightColor: "#6366f1"
|
|
30524
30518
|
// Indigo color, matches AiLayer
|
|
30525
30519
|
};
|
|
30526
30520
|
},
|
|
30527
30521
|
apply(e, n, r, o) {
|
|
30528
30522
|
if (!e.docChanged) return n;
|
|
30529
|
-
const { decorations: i } = t_(t, o.doc, n.highlightColor) || {}, s =
|
|
30523
|
+
const { decorations: i } = t_(t, o.doc, n.highlightColor) || {}, s = Fe.create(o.doc, i);
|
|
30530
30524
|
return {
|
|
30531
30525
|
...n,
|
|
30532
30526
|
decorations: s
|
|
@@ -30605,7 +30599,7 @@ function nc(t) {
|
|
|
30605
30599
|
match: r,
|
|
30606
30600
|
chain: o
|
|
30607
30601
|
}) => {
|
|
30608
|
-
const i =
|
|
30602
|
+
const i = Qe(t.getAttributes, null, r) || {}, s = e.tr.delete(n.from, n.to), a = s.doc.resolve(n.from).blockRange(), l = a && G1(a, t.type, i);
|
|
30609
30603
|
if (!l)
|
|
30610
30604
|
return null;
|
|
30611
30605
|
if (s.wrap(a, l), t.keepMarks && t.editor) {
|
|
@@ -30620,7 +30614,7 @@ function nc(t) {
|
|
|
30620
30614
|
o().updateAttributes(u, i).run();
|
|
30621
30615
|
}
|
|
30622
30616
|
const c = s.doc.resolve(n.from - 1).nodeBefore;
|
|
30623
|
-
c && c.type === t.type &&
|
|
30617
|
+
c && c.type === t.type && ao(s.doc, n.from - 1) && (!t.joinPredicate || t.joinPredicate(r, c)) && s.join(n.from - 1);
|
|
30624
30618
|
}
|
|
30625
30619
|
});
|
|
30626
30620
|
}
|
|
@@ -30691,8 +30685,8 @@ const ww = /^\s*([-+*])\s$/, e3 = et.create({
|
|
|
30691
30685
|
}
|
|
30692
30686
|
});
|
|
30693
30687
|
function r_(t = {}) {
|
|
30694
|
-
return new
|
|
30695
|
-
key: new
|
|
30688
|
+
return new Xe({
|
|
30689
|
+
key: new Ze("orderedListSync"),
|
|
30696
30690
|
appendTransaction: (e, n, r) => {
|
|
30697
30691
|
if (!(e.some((l) => l.docChanged) && !n.doc.eq(r.doc)))
|
|
30698
30692
|
return;
|
|
@@ -30731,8 +30725,8 @@ function o_() {
|
|
|
30731
30725
|
return Math.floor(Math.random() * 4294967295).toString();
|
|
30732
30726
|
}
|
|
30733
30727
|
function i_(t) {
|
|
30734
|
-
return new
|
|
30735
|
-
key: new
|
|
30728
|
+
return new Xe({
|
|
30729
|
+
key: new Ze("orderedListMarker"),
|
|
30736
30730
|
appendTransaction: (e, n, r) => {
|
|
30737
30731
|
if (!(e.some((l) => l.docChanged) && !n.doc.eq(r.doc)))
|
|
30738
30732
|
return;
|
|
@@ -31042,15 +31036,15 @@ const vw = /^(\d+)\.\s$/, n3 = et.create({
|
|
|
31042
31036
|
return e;
|
|
31043
31037
|
};
|
|
31044
31038
|
function w_(t = {}) {
|
|
31045
|
-
return new
|
|
31046
|
-
key: new
|
|
31039
|
+
return new Xe({
|
|
31040
|
+
key: new Ze("styledListMarker"),
|
|
31047
31041
|
state: {
|
|
31048
31042
|
init(e, n) {
|
|
31049
31043
|
const r = [
|
|
31050
31044
|
...xw(n),
|
|
31051
31045
|
...kw(n)
|
|
31052
31046
|
];
|
|
31053
|
-
return
|
|
31047
|
+
return Fe.create(n.doc, r);
|
|
31054
31048
|
},
|
|
31055
31049
|
apply(e, n, r, o) {
|
|
31056
31050
|
if (!e.docChanged || e.getMeta("orderedListMarker")) return n;
|
|
@@ -31058,7 +31052,7 @@ function w_(t = {}) {
|
|
|
31058
31052
|
...xw(o, i),
|
|
31059
31053
|
...kw(o)
|
|
31060
31054
|
];
|
|
31061
|
-
return
|
|
31055
|
+
return Fe.create(o.doc, s);
|
|
31062
31056
|
}
|
|
31063
31057
|
},
|
|
31064
31058
|
props: {
|
|
@@ -31253,7 +31247,7 @@ const i3 = et.create({
|
|
|
31253
31247
|
addPmPlugins() {
|
|
31254
31248
|
return [w_()];
|
|
31255
31249
|
}
|
|
31256
|
-
}), wl = new
|
|
31250
|
+
}), wl = new Ze("linkedStyles"), x_ = ct.create({
|
|
31257
31251
|
name: "linkedStyles",
|
|
31258
31252
|
addPmPlugins() {
|
|
31259
31253
|
return [k_(this.editor)];
|
|
@@ -31276,7 +31270,7 @@ const i3 = et.create({
|
|
|
31276
31270
|
}
|
|
31277
31271
|
};
|
|
31278
31272
|
}
|
|
31279
|
-
}), k_ = (t) => new
|
|
31273
|
+
}), k_ = (t) => new Xe({
|
|
31280
31274
|
key: wl,
|
|
31281
31275
|
state: {
|
|
31282
31276
|
init(e, { doc: n, selection: r }) {
|
|
@@ -31289,7 +31283,7 @@ const i3 = et.create({
|
|
|
31289
31283
|
},
|
|
31290
31284
|
apply(e, n, r, o) {
|
|
31291
31285
|
if (!t.converter || t.options.mode !== "docx") return { ...n };
|
|
31292
|
-
let i = n.decorations ||
|
|
31286
|
+
let i = n.decorations || Fe.empty;
|
|
31293
31287
|
if (e.docChanged) {
|
|
31294
31288
|
const s = wl.getState(t.state).styles;
|
|
31295
31289
|
i = Sw(o, s);
|
|
@@ -31315,7 +31309,7 @@ const i3 = et.create({
|
|
|
31315
31309
|
if (!u) return;
|
|
31316
31310
|
const d = Ge.inline(s, s + i.nodeSize, { style: u });
|
|
31317
31311
|
n.push(d);
|
|
31318
|
-
}),
|
|
31312
|
+
}), Fe.create(o, n);
|
|
31319
31313
|
}, s3 = (t, e, n, r = !0) => {
|
|
31320
31314
|
if (!t?.definition?.styles) return "";
|
|
31321
31315
|
const o = {};
|
|
@@ -31465,17 +31459,17 @@ const i3 = et.create({
|
|
|
31465
31459
|
},
|
|
31466
31460
|
addPmPlugins() {
|
|
31467
31461
|
const { view: t } = this.editor;
|
|
31468
|
-
return [new
|
|
31462
|
+
return [new Xe({
|
|
31469
31463
|
name: "dropcapPlugin",
|
|
31470
|
-
key: new
|
|
31464
|
+
key: new Ze("dropcapPlugin"),
|
|
31471
31465
|
state: {
|
|
31472
31466
|
init(e, n) {
|
|
31473
31467
|
let r = Ew(n, t);
|
|
31474
|
-
return
|
|
31468
|
+
return Fe.create(n.doc, r);
|
|
31475
31469
|
},
|
|
31476
31470
|
apply(e, n, r, o) {
|
|
31477
31471
|
const i = Ew(o, t);
|
|
31478
|
-
return
|
|
31472
|
+
return Fe.create(o.doc, i);
|
|
31479
31473
|
}
|
|
31480
31474
|
},
|
|
31481
31475
|
props: {
|
|
@@ -31691,17 +31685,17 @@ const c3 = et.create({
|
|
|
31691
31685
|
},
|
|
31692
31686
|
addPmPlugins() {
|
|
31693
31687
|
const { view: t } = this.editor;
|
|
31694
|
-
return [new
|
|
31688
|
+
return [new Xe({
|
|
31695
31689
|
name: "tabPlugin",
|
|
31696
|
-
key: new
|
|
31690
|
+
key: new Ze("tabPlugin"),
|
|
31697
31691
|
state: {
|
|
31698
31692
|
init(e, n) {
|
|
31699
31693
|
let r = Cw(n, t);
|
|
31700
|
-
return
|
|
31694
|
+
return Fe.create(n.doc, r);
|
|
31701
31695
|
},
|
|
31702
31696
|
apply(e, n, r, o) {
|
|
31703
31697
|
const i = Cw(o, t);
|
|
31704
|
-
return
|
|
31698
|
+
return Fe.create(o.doc, i);
|
|
31705
31699
|
}
|
|
31706
31700
|
},
|
|
31707
31701
|
props: {
|
|
@@ -32094,7 +32088,7 @@ function Gt(t) {
|
|
|
32094
32088
|
}
|
|
32095
32089
|
return e;
|
|
32096
32090
|
}
|
|
32097
|
-
var Ur = new
|
|
32091
|
+
var Ur = new Ze("selectingCells");
|
|
32098
32092
|
function Gi(t) {
|
|
32099
32093
|
for (let e = t.depth - 1; e > 0; e--)
|
|
32100
32094
|
if (t.node(e).type.spec.tableRole == "row")
|
|
@@ -32149,7 +32143,7 @@ function p3(t, e, n) {
|
|
|
32149
32143
|
const r = t.node(-1), o = gt.get(r), i = t.start(-1), s = o.nextCell(t.pos - i, e, n);
|
|
32150
32144
|
return s == null ? null : t.node(0).resolve(i + s);
|
|
32151
32145
|
}
|
|
32152
|
-
function
|
|
32146
|
+
function zo(t, e, n = 1) {
|
|
32153
32147
|
const r = { ...t, colspan: t.colspan - n };
|
|
32154
32148
|
return r.colwidth && (r.colwidth = r.colwidth.slice(), r.colwidth.splice(e, n), r.colwidth.some((o) => o > 0) || (r.colwidth = null)), r;
|
|
32155
32149
|
}
|
|
@@ -32219,7 +32213,7 @@ var st = class fr extends Ve {
|
|
|
32219
32213
|
const m = o.left - f.left, y = f.right - o.right;
|
|
32220
32214
|
if (m > 0 || y > 0) {
|
|
32221
32215
|
let g = h.attrs;
|
|
32222
|
-
if (m > 0 && (g =
|
|
32216
|
+
if (m > 0 && (g = zo(g, 0, m)), y > 0 && (g = zo(
|
|
32223
32217
|
g,
|
|
32224
32218
|
g.colspan - y,
|
|
32225
32219
|
y
|
|
@@ -32353,7 +32347,7 @@ function G_(t) {
|
|
|
32353
32347
|
e.push(
|
|
32354
32348
|
Ge.node(r, r + n.nodeSize, { class: "selectedCell" })
|
|
32355
32349
|
);
|
|
32356
|
-
}),
|
|
32350
|
+
}), Fe.create(t.doc, e);
|
|
32357
32351
|
}
|
|
32358
32352
|
function K_({ $from: t, $to: e }) {
|
|
32359
32353
|
if (t.pos == e.pos || t.pos < e.pos - 6) return !1;
|
|
@@ -32398,7 +32392,7 @@ function X_(t, e, n) {
|
|
|
32398
32392
|
} else r instanceof We && K_(r) ? i = We.create(o, r.from) : r instanceof We && J_(r) && (i = We.create(o, r.$from.start(), r.$from.end()));
|
|
32399
32393
|
return i && (e || (e = t.tr)).setSelection(i), e;
|
|
32400
32394
|
}
|
|
32401
|
-
var Y_ = new
|
|
32395
|
+
var Y_ = new Ze("fix-tables");
|
|
32402
32396
|
function m3(t, e, n, r) {
|
|
32403
32397
|
const o = t.childCount, i = e.childCount;
|
|
32404
32398
|
e: for (let s = 0, a = 0; s < i; s++) {
|
|
@@ -32434,7 +32428,7 @@ function Z_(t, e, n, r) {
|
|
|
32434
32428
|
r.setNodeMarkup(
|
|
32435
32429
|
r.mapping.map(n + 1 + c.pos),
|
|
32436
32430
|
null,
|
|
32437
|
-
|
|
32431
|
+
zo(d, d.colspan - c.n, c.n)
|
|
32438
32432
|
);
|
|
32439
32433
|
} else if (c.type == "missing")
|
|
32440
32434
|
i[c.row] += c.n;
|
|
@@ -32527,7 +32521,7 @@ function tI(t, { map: e, table: n, tableStart: r }, o) {
|
|
|
32527
32521
|
t.setNodeMarkup(
|
|
32528
32522
|
t.mapping.slice(i).map(r + l),
|
|
32529
32523
|
null,
|
|
32530
|
-
|
|
32524
|
+
zo(u, o - e.colCount(l))
|
|
32531
32525
|
);
|
|
32532
32526
|
else {
|
|
32533
32527
|
const d = t.mapping.slice(i).map(r + l);
|
|
@@ -32971,7 +32965,7 @@ function yI({ width: t, height: e, rows: n }, r, o) {
|
|
|
32971
32965
|
for (let u = i[a] || 0, d = 0; u < r; d++) {
|
|
32972
32966
|
let p = l.child(d % l.childCount);
|
|
32973
32967
|
u + p.attrs.colspan > r && (p = p.type.createChecked(
|
|
32974
|
-
|
|
32968
|
+
zo(
|
|
32975
32969
|
p.attrs,
|
|
32976
32970
|
p.attrs.colspan,
|
|
32977
32971
|
u + p.attrs.colspan - r
|
|
@@ -33065,7 +33059,7 @@ function Rw(t, e, n, r, o, i, s, a) {
|
|
|
33065
33059
|
t.setNodeMarkup(
|
|
33066
33060
|
h,
|
|
33067
33061
|
null,
|
|
33068
|
-
|
|
33062
|
+
zo(
|
|
33069
33063
|
p.attrs,
|
|
33070
33064
|
s - f,
|
|
33071
33065
|
p.attrs.colspan - (s - f)
|
|
@@ -33073,7 +33067,7 @@ function Rw(t, e, n, r, o, i, s, a) {
|
|
|
33073
33067
|
), t.insert(
|
|
33074
33068
|
h + p.nodeSize,
|
|
33075
33069
|
p.type.createAndFill(
|
|
33076
|
-
|
|
33070
|
+
zo(p.attrs, 0, s - f)
|
|
33077
33071
|
)
|
|
33078
33072
|
), c += p.attrs.rowspan - 1;
|
|
33079
33073
|
}
|
|
@@ -33312,7 +33306,7 @@ function Pp(t, e, n, r, o, i) {
|
|
|
33312
33306
|
l ? (n.style.width = a + "px", n.style.minWidth = "") : (n.style.width = "", n.style.minWidth = a + "px");
|
|
33313
33307
|
}
|
|
33314
33308
|
}
|
|
33315
|
-
var vn = new
|
|
33309
|
+
var vn = new Ze(
|
|
33316
33310
|
"tableColumnResizing"
|
|
33317
33311
|
);
|
|
33318
33312
|
function EI({
|
|
@@ -33322,7 +33316,7 @@ function EI({
|
|
|
33322
33316
|
View: r = SI,
|
|
33323
33317
|
lastColumnResizable: o = !0
|
|
33324
33318
|
} = {}) {
|
|
33325
|
-
const i = new
|
|
33319
|
+
const i = new Xe({
|
|
33326
33320
|
key: vn,
|
|
33327
33321
|
state: {
|
|
33328
33322
|
init(s, a) {
|
|
@@ -33514,7 +33508,7 @@ function II(t, e) {
|
|
|
33514
33508
|
var n;
|
|
33515
33509
|
const r = [], o = t.doc.resolve(e), i = o.node(-1);
|
|
33516
33510
|
if (!i)
|
|
33517
|
-
return
|
|
33511
|
+
return Fe.empty;
|
|
33518
33512
|
const s = gt.get(i), a = o.start(-1), l = s.colCount(o.pos - a) + o.nodeAfter.attrs.colspan - 1;
|
|
33519
33513
|
for (let c = 0; c < s.height; c++) {
|
|
33520
33514
|
const u = l + c * s.width;
|
|
@@ -33531,12 +33525,12 @@ function II(t, e) {
|
|
|
33531
33525
|
), r.push(Ge.widget(p, f));
|
|
33532
33526
|
}
|
|
33533
33527
|
}
|
|
33534
|
-
return
|
|
33528
|
+
return Fe.create(t.doc, r);
|
|
33535
33529
|
}
|
|
33536
33530
|
function NI({
|
|
33537
33531
|
allowTableNodeSelection: t = !1
|
|
33538
33532
|
} = {}) {
|
|
33539
|
-
return new
|
|
33533
|
+
return new Xe({
|
|
33540
33534
|
key: Ur,
|
|
33541
33535
|
// This piece of state is used to remember when a mouse-drag
|
|
33542
33536
|
// cell-selection is happening, so that it can continue even as
|
|
@@ -33789,7 +33783,7 @@ const FI = (t) => t instanceof st, qa = ({ editor: t }) => {
|
|
|
33789
33783
|
},
|
|
33790
33784
|
extendNodeSchema(t) {
|
|
33791
33785
|
return {
|
|
33792
|
-
tableRole:
|
|
33786
|
+
tableRole: Qe(Be(t, "tableRole", {
|
|
33793
33787
|
name: t.name,
|
|
33794
33788
|
options: t.options,
|
|
33795
33789
|
storage: t.storage
|
|
@@ -33939,7 +33933,7 @@ const FI = (t) => t instanceof st, qa = ({ editor: t }) => {
|
|
|
33939
33933
|
return ["td", Oe.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
33940
33934
|
}
|
|
33941
33935
|
});
|
|
33942
|
-
var Br,
|
|
33936
|
+
var Br, go;
|
|
33943
33937
|
class jI {
|
|
33944
33938
|
constructor(e) {
|
|
33945
33939
|
Xr(this, Br), je(this, "editor"), je(this, "node"), je(this, "decorations"), je(this, "getPos"), je(this, "htmlAttributes"), je(this, "dom"), je(this, "annotationClass"), je(this, "annotationContentClass"), je(this, "borderColor"), this.editor = e.editor, this.node = e.node, this.decorations = e.decorations, this.getPos = e.getPos, this.htmlAttributes = e.htmlAttributes, this.annotationClass = e.annotationClass, this.annotationContentClass = e.annotationContentClass, this.borderColor = e.borderColor, this.handleAnnotationClick = this.handleAnnotationClick.bind(this), this.handleAnnotationDoubleClick = this.handleAnnotationDoubleClick.bind(this), this.handleSelectionUpdate = this.handleSelectionUpdate.bind(this), this.buildView(), this.attachEventListeners();
|
|
@@ -33957,13 +33951,13 @@ class jI {
|
|
|
33957
33951
|
(n[e] ?? n.default)();
|
|
33958
33952
|
}
|
|
33959
33953
|
buildTextView() {
|
|
33960
|
-
let { displayLabel: e } = this.node.attrs, { annotation: n } = Ie(this, Br,
|
|
33954
|
+
let { displayLabel: e } = this.node.attrs, { annotation: n } = Ie(this, Br, go).call(this, {
|
|
33961
33955
|
displayLabel: e
|
|
33962
33956
|
});
|
|
33963
33957
|
this.dom = n;
|
|
33964
33958
|
}
|
|
33965
33959
|
buildImageView() {
|
|
33966
|
-
let { displayLabel: e, imageSrc: n } = this.node.attrs, { annotation: r, content: o } = Ie(this, Br,
|
|
33960
|
+
let { displayLabel: e, imageSrc: n } = this.node.attrs, { annotation: r, content: o } = Ie(this, Br, go).call(this);
|
|
33967
33961
|
if (n) {
|
|
33968
33962
|
let i = document.createElement("img");
|
|
33969
33963
|
i.src = n, i.alt = e, i.style.height = "auto", i.style.maxWidth = "100%", i.style.pointerEvents = "none", i.style.verticalAlign = "middle", o.append(i), r.style.display = "inline-block", o.style.display = "inline-block";
|
|
@@ -33974,7 +33968,7 @@ class jI {
|
|
|
33974
33968
|
buildSignatureView() {
|
|
33975
33969
|
let { displayLabel: e, imageSrc: n } = this.node.attrs;
|
|
33976
33970
|
e = e || "Signature";
|
|
33977
|
-
let { annotation: r, content: o } = Ie(this, Br,
|
|
33971
|
+
let { annotation: r, content: o } = Ie(this, Br, go).call(this);
|
|
33978
33972
|
if (n) {
|
|
33979
33973
|
let i = document.createElement("img");
|
|
33980
33974
|
i.src = n, i.alt = e, i.style.height = "auto", i.style.maxWidth = "100%", i.style.maxHeight = "28px", i.style.pointerEvents = "none", i.style.verticalAlign = "middle", o.append(i), r.style.display = "inline-block", o.style.display = "inline-block";
|
|
@@ -33983,17 +33977,17 @@ class jI {
|
|
|
33983
33977
|
this.dom = r;
|
|
33984
33978
|
}
|
|
33985
33979
|
buildCheckboxView() {
|
|
33986
|
-
let { displayLabel: e } = this.node.attrs, { annotation: n } = Ie(this, Br,
|
|
33980
|
+
let { displayLabel: e } = this.node.attrs, { annotation: n } = Ie(this, Br, go).call(this, {
|
|
33987
33981
|
displayLabel: e
|
|
33988
33982
|
});
|
|
33989
33983
|
this.dom = n;
|
|
33990
33984
|
}
|
|
33991
33985
|
buildHTMLView() {
|
|
33992
|
-
let { displayLabel: e, rawHtml: n } = this.node.attrs, { annotation: r, content: o } = Ie(this, Br,
|
|
33986
|
+
let { displayLabel: e, rawHtml: n } = this.node.attrs, { annotation: r, content: o } = Ie(this, Br, go).call(this);
|
|
33993
33987
|
n ? (o.innerHTML = n.trim(), r.style.display = "inline-block", o.style.display = "inline-block") : o.textContent = e, this.dom = r;
|
|
33994
33988
|
}
|
|
33995
33989
|
buildLinkView() {
|
|
33996
|
-
let { displayLabel: e, linkUrl: n } = this.node.attrs, { annotation: r, content: o } = Ie(this, Br,
|
|
33990
|
+
let { displayLabel: e, linkUrl: n } = this.node.attrs, { annotation: r, content: o } = Ie(this, Br, go).call(this);
|
|
33997
33991
|
if (n) {
|
|
33998
33992
|
let i = document.createElement("a");
|
|
33999
33993
|
i.href = n, i.target = "_blank", i.textContent = n, i.style.textDecoration = "none", o.append(i), o.style.pointerEvents = "all";
|
|
@@ -34060,7 +34054,7 @@ class jI {
|
|
|
34060
34054
|
}), !0));
|
|
34061
34055
|
}
|
|
34062
34056
|
}
|
|
34063
|
-
Br = /* @__PURE__ */ new WeakSet(),
|
|
34057
|
+
Br = /* @__PURE__ */ new WeakSet(), go = function({ displayLabel: t } = {}) {
|
|
34064
34058
|
let { highlighted: e } = this.node.attrs, n = document.createElement("span");
|
|
34065
34059
|
n.classList.add(this.annotationClass);
|
|
34066
34060
|
let r = document.createElement("span");
|
|
@@ -34103,8 +34097,8 @@ function Wr(t) {
|
|
|
34103
34097
|
}
|
|
34104
34098
|
const UI = (t = {}) => {
|
|
34105
34099
|
let { editor: e, annotationClass: n } = t;
|
|
34106
|
-
return new
|
|
34107
|
-
key: new
|
|
34100
|
+
return new Xe({
|
|
34101
|
+
key: new Ze("fieldAnnotation"),
|
|
34108
34102
|
state: {
|
|
34109
34103
|
init() {
|
|
34110
34104
|
return null;
|
|
@@ -34824,15 +34818,15 @@ function lN(t) {
|
|
|
34824
34818
|
}
|
|
34825
34819
|
return e;
|
|
34826
34820
|
}
|
|
34827
|
-
const
|
|
34828
|
-
key:
|
|
34821
|
+
const Do = new Ze("ImagePlaceholder"), cN = (t = {}) => new Xe({
|
|
34822
|
+
key: Do,
|
|
34829
34823
|
state: {
|
|
34830
34824
|
init() {
|
|
34831
|
-
return
|
|
34825
|
+
return Fe.empty;
|
|
34832
34826
|
},
|
|
34833
34827
|
apply(e, n, r, o) {
|
|
34834
34828
|
n = n.map(e.mapping, e.doc);
|
|
34835
|
-
let i = e.getMeta(
|
|
34829
|
+
let i = e.getMeta(Do);
|
|
34836
34830
|
if (i?.type === "add") {
|
|
34837
34831
|
let s = document.createElement("placeholder"), a = Ge.widget(i.pos, s, {
|
|
34838
34832
|
id: i.id
|
|
@@ -34848,21 +34842,21 @@ const Mo = new Qe("ImagePlaceholder"), cN = (t = {}) => new Ye({
|
|
|
34848
34842
|
}
|
|
34849
34843
|
}
|
|
34850
34844
|
}), uN = (t, e) => {
|
|
34851
|
-
let n =
|
|
34845
|
+
let n = Do.getState(t)?.find(null, null, (r) => r.id === e);
|
|
34852
34846
|
return n?.length ? n[0].from : null;
|
|
34853
|
-
}, Hw = new
|
|
34847
|
+
}, Hw = new Ze("ImagePosition"), dN = ({ editor: t }) => {
|
|
34854
34848
|
const { view: e } = t;
|
|
34855
34849
|
let n = !1;
|
|
34856
|
-
return new
|
|
34850
|
+
return new Xe({
|
|
34857
34851
|
name: "ImagePositionPlugin",
|
|
34858
34852
|
key: Hw,
|
|
34859
34853
|
state: {
|
|
34860
34854
|
init(r, o) {
|
|
34861
|
-
return
|
|
34855
|
+
return Fe.empty;
|
|
34862
34856
|
},
|
|
34863
34857
|
apply(r, o, i, s) {
|
|
34864
34858
|
const a = Vw(s, e);
|
|
34865
|
-
return
|
|
34859
|
+
return Fe.create(s.doc, a);
|
|
34866
34860
|
}
|
|
34867
34861
|
},
|
|
34868
34862
|
view: (r) => ({
|
|
@@ -35880,15 +35874,15 @@ const vN = "track-insert", P3 = yn.create({
|
|
|
35880
35874
|
},
|
|
35881
35875
|
addPmPlugins() {
|
|
35882
35876
|
const t = (e) => {
|
|
35883
|
-
if (e.doc.textBetween(0, e.doc.content.size, " ", " ") !== "") return
|
|
35877
|
+
if (e.doc.textBetween(0, e.doc.content.size, " ", " ") !== "") return Fe.empty;
|
|
35884
35878
|
const { $from: n } = e.selection, r = Ge.node(n.before(), n.after(), {
|
|
35885
35879
|
"data-placeholder": this.options.placeholder,
|
|
35886
35880
|
class: "sd-editor-placeholder"
|
|
35887
35881
|
});
|
|
35888
|
-
return
|
|
35882
|
+
return Fe.create(e.doc, [r]);
|
|
35889
35883
|
};
|
|
35890
|
-
return [new
|
|
35891
|
-
key: new
|
|
35884
|
+
return [new Xe({
|
|
35885
|
+
key: new Ze("placeholder"),
|
|
35892
35886
|
state: {
|
|
35893
35887
|
init: (e, n) => t(n),
|
|
35894
35888
|
apply: (e, n, r, o) => t(o)
|
|
@@ -35918,7 +35912,7 @@ function Tn(t) {
|
|
|
35918
35912
|
}
|
|
35919
35913
|
return t;
|
|
35920
35914
|
}
|
|
35921
|
-
function
|
|
35915
|
+
function jo(t) {
|
|
35922
35916
|
var e = Tn(t).Element;
|
|
35923
35917
|
return t instanceof e || t instanceof Element;
|
|
35924
35918
|
}
|
|
@@ -35977,7 +35971,7 @@ const V3 = {
|
|
|
35977
35971
|
function tr(t) {
|
|
35978
35972
|
return t.split("-")[0];
|
|
35979
35973
|
}
|
|
35980
|
-
var
|
|
35974
|
+
var _o = Math.max, rc = Math.min, Ri = Math.round;
|
|
35981
35975
|
function Up() {
|
|
35982
35976
|
var t = navigator.userAgentData;
|
|
35983
35977
|
return t != null && t.brands && Array.isArray(t.brands) ? t.brands.map(function(e) {
|
|
@@ -35991,7 +35985,7 @@ function Li(t, e, n) {
|
|
|
35991
35985
|
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
35992
35986
|
var r = t.getBoundingClientRect(), o = 1, i = 1;
|
|
35993
35987
|
e && Fn(t) && (o = t.offsetWidth > 0 && Ri(r.width) / t.offsetWidth || 1, i = t.offsetHeight > 0 && Ri(r.height) / t.offsetHeight || 1);
|
|
35994
|
-
var s =
|
|
35988
|
+
var s = jo(t) ? Tn(t) : window, a = s.visualViewport, l = !W3() && n, c = (r.left + (l && a ? a.offsetLeft : 0)) / o, u = (r.top + (l && a ? a.offsetTop : 0)) / i, d = r.width / o, p = r.height / i;
|
|
35995
35989
|
return {
|
|
35996
35990
|
width: d,
|
|
35997
35991
|
height: p,
|
|
@@ -36032,8 +36026,8 @@ function $r(t) {
|
|
|
36032
36026
|
function BN(t) {
|
|
36033
36027
|
return ["table", "td", "th"].indexOf(ir(t)) >= 0;
|
|
36034
36028
|
}
|
|
36035
|
-
function
|
|
36036
|
-
return ((
|
|
36029
|
+
function uo(t) {
|
|
36030
|
+
return ((jo(t) ? t.ownerDocument : (
|
|
36037
36031
|
// $FlowFixMe[prop-missing]
|
|
36038
36032
|
t.document
|
|
36039
36033
|
)) || window.document).documentElement;
|
|
@@ -36047,7 +36041,7 @@ function _c(t) {
|
|
|
36047
36041
|
t.parentNode || // DOM Element detected
|
|
36048
36042
|
(dh(t) ? t.host : null) || // ShadowRoot detected
|
|
36049
36043
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
36050
|
-
|
|
36044
|
+
uo(t)
|
|
36051
36045
|
);
|
|
36052
36046
|
}
|
|
36053
36047
|
function Jw(t) {
|
|
@@ -36079,7 +36073,7 @@ function fh(t) {
|
|
|
36079
36073
|
return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
|
|
36080
36074
|
}
|
|
36081
36075
|
function _s(t, e, n) {
|
|
36082
|
-
return
|
|
36076
|
+
return _o(t, rc(e, n));
|
|
36083
36077
|
}
|
|
36084
36078
|
function zN(t, e, n) {
|
|
36085
36079
|
var r = _s(t, e, n);
|
|
@@ -36154,7 +36148,7 @@ function Xw(t) {
|
|
|
36154
36148
|
var g = s.hasOwnProperty("x"), v = s.hasOwnProperty("y"), x = fn, w = pn, C = window;
|
|
36155
36149
|
if (c) {
|
|
36156
36150
|
var M = Ea(n), O = "clientHeight", N = "clientWidth";
|
|
36157
|
-
if (M === Tn(n) && (M =
|
|
36151
|
+
if (M === Tn(n) && (M = uo(n), $r(M).position !== "static" && a === "absolute" && (O = "scrollHeight", N = "scrollWidth")), M = M, o === pn || (o === fn || o === Ln) && i === ra) {
|
|
36158
36152
|
w = Rn;
|
|
36159
36153
|
var k = d && M === C && C.visualViewport ? C.visualViewport.height : (
|
|
36160
36154
|
// $FlowFixMe[prop-missing]
|
|
@@ -36266,10 +36260,10 @@ function hh(t) {
|
|
|
36266
36260
|
};
|
|
36267
36261
|
}
|
|
36268
36262
|
function mh(t) {
|
|
36269
|
-
return Li(
|
|
36263
|
+
return Li(uo(t)).left + hh(t).scrollLeft;
|
|
36270
36264
|
}
|
|
36271
36265
|
function QN(t, e) {
|
|
36272
|
-
var n = Tn(t), r =
|
|
36266
|
+
var n = Tn(t), r = uo(t), o = n.visualViewport, i = r.clientWidth, s = r.clientHeight, a = 0, l = 0;
|
|
36273
36267
|
if (o) {
|
|
36274
36268
|
i = o.width, s = o.height;
|
|
36275
36269
|
var c = W3();
|
|
@@ -36283,8 +36277,8 @@ function QN(t, e) {
|
|
|
36283
36277
|
};
|
|
36284
36278
|
}
|
|
36285
36279
|
function eF(t) {
|
|
36286
|
-
var e, n =
|
|
36287
|
-
return $r(o || n).direction === "rtl" && (a +=
|
|
36280
|
+
var e, n = uo(t), r = hh(t), o = (e = t.ownerDocument) == null ? void 0 : e.body, i = _o(n.scrollWidth, n.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), s = _o(n.scrollHeight, n.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), a = -r.scrollLeft + mh(t), l = -r.scrollTop;
|
|
36281
|
+
return $r(o || n).direction === "rtl" && (a += _o(n.clientWidth, o ? o.clientWidth : 0) - i), {
|
|
36288
36282
|
width: i,
|
|
36289
36283
|
height: s,
|
|
36290
36284
|
x: a,
|
|
@@ -36320,18 +36314,18 @@ function tF(t, e) {
|
|
|
36320
36314
|
return n.top = n.top + t.clientTop, n.left = n.left + t.clientLeft, n.bottom = n.top + t.clientHeight, n.right = n.left + t.clientWidth, n.width = t.clientWidth, n.height = t.clientHeight, n.x = n.left, n.y = n.top, n;
|
|
36321
36315
|
}
|
|
36322
36316
|
function Zw(t, e, n) {
|
|
36323
|
-
return e === U3 ? Hp(QN(t, n)) :
|
|
36317
|
+
return e === U3 ? Hp(QN(t, n)) : jo(e) ? tF(e, n) : Hp(eF(uo(t)));
|
|
36324
36318
|
}
|
|
36325
36319
|
function nF(t) {
|
|
36326
36320
|
var e = Is(_c(t)), n = ["absolute", "fixed"].indexOf($r(t).position) >= 0, r = n && Fn(t) ? Ea(t) : t;
|
|
36327
|
-
return
|
|
36328
|
-
return
|
|
36321
|
+
return jo(r) ? e.filter(function(o) {
|
|
36322
|
+
return jo(o) && G3(o, r) && ir(o) !== "body";
|
|
36329
36323
|
}) : [];
|
|
36330
36324
|
}
|
|
36331
36325
|
function rF(t, e, n, r) {
|
|
36332
36326
|
var o = e === "clippingParents" ? nF(t) : [].concat(e), i = [].concat(o, [n]), s = i[0], a = i.reduce(function(l, c) {
|
|
36333
36327
|
var u = Zw(t, c, r);
|
|
36334
|
-
return l.top =
|
|
36328
|
+
return l.top = _o(u.top, l.top), l.right = rc(u.right, l.right), l.bottom = rc(u.bottom, l.bottom), l.left = _o(u.left, l.left), l;
|
|
36335
36329
|
}, Zw(t, s, r));
|
|
36336
36330
|
return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
|
|
36337
36331
|
}
|
|
@@ -36384,7 +36378,7 @@ function Z3(t) {
|
|
|
36384
36378
|
}
|
|
36385
36379
|
function oa(t, e) {
|
|
36386
36380
|
e === void 0 && (e = {});
|
|
36387
|
-
var n = e, r = n.placement, o = r === void 0 ? t.placement : r, i = n.strategy, s = i === void 0 ? t.strategy : i, a = n.boundary, l = a === void 0 ? EN : a, c = n.rootBoundary, u = c === void 0 ? U3 : c, d = n.elementContext, p = d === void 0 ? ts : d, f = n.altBoundary, h = f === void 0 ? !1 : f, m = n.padding, y = m === void 0 ? 0 : m, g = J3(typeof y != "number" ? y : X3(y, Sa)), v = p === ts ? CN : ts, x = t.rects.popper, w = t.elements[h ? v : p], C = rF(
|
|
36381
|
+
var n = e, r = n.placement, o = r === void 0 ? t.placement : r, i = n.strategy, s = i === void 0 ? t.strategy : i, a = n.boundary, l = a === void 0 ? EN : a, c = n.rootBoundary, u = c === void 0 ? U3 : c, d = n.elementContext, p = d === void 0 ? ts : d, f = n.altBoundary, h = f === void 0 ? !1 : f, m = n.padding, y = m === void 0 ? 0 : m, g = J3(typeof y != "number" ? y : X3(y, Sa)), v = p === ts ? CN : ts, x = t.rects.popper, w = t.elements[h ? v : p], C = rF(jo(w) ? w : w.contextElement || uo(t.elements.popper), l, u, s), M = Li(t.elements.reference), O = Z3({
|
|
36388
36382
|
reference: M,
|
|
36389
36383
|
element: x,
|
|
36390
36384
|
placement: o
|
|
@@ -36592,7 +36586,7 @@ function gF(t) {
|
|
|
36592
36586
|
var V, $ = w === "y" ? pn : fn, K = w === "y" ? Rn : Ln, oe = w === "y" ? "height" : "width", W = M[w], le = W + y[$], G = W - y[K], ce = f ? -N[oe] / 2 : 0, Y = v === Fi ? O[oe] : N[oe], F = v === Fi ? -N[oe] : -O[oe], Q = e.elements.arrow, ee = f && Q ? ph(Q) : {
|
|
36593
36587
|
width: 0,
|
|
36594
36588
|
height: 0
|
|
36595
|
-
}, ie = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : K3(), J = ie[$], T = ie[K], E = _s(0, O[oe], ee[oe]), U = x ? O[oe] / 2 - ce - E - J - q.mainAxis : Y - E - J - q.mainAxis, B = x ? -O[oe] / 2 + ce + E + T + q.mainAxis : F + E + T + q.mainAxis, I = e.elements.arrow && Ea(e.elements.arrow), R = I ? w === "y" ? I.clientTop || 0 : I.clientLeft || 0 : 0, ae = (V = re?.[w]) != null ? V : 0, S = W + U - ae - R, ne = W + B - ae, Z = _s(f ? rc(le, S) : le, W, f ?
|
|
36589
|
+
}, ie = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : K3(), J = ie[$], T = ie[K], E = _s(0, O[oe], ee[oe]), U = x ? O[oe] / 2 - ce - E - J - q.mainAxis : Y - E - J - q.mainAxis, B = x ? -O[oe] / 2 + ce + E + T + q.mainAxis : F + E + T + q.mainAxis, I = e.elements.arrow && Ea(e.elements.arrow), R = I ? w === "y" ? I.clientTop || 0 : I.clientLeft || 0 : 0, ae = (V = re?.[w]) != null ? V : 0, S = W + U - ae - R, ne = W + B - ae, Z = _s(f ? rc(le, S) : le, W, f ? _o(G, ne) : G);
|
|
36596
36590
|
M[w] = Z, _[w] = Z - W;
|
|
36597
36591
|
}
|
|
36598
36592
|
if (a) {
|
|
@@ -36624,7 +36618,7 @@ function vF(t) {
|
|
|
36624
36618
|
}
|
|
36625
36619
|
function xF(t, e, n) {
|
|
36626
36620
|
n === void 0 && (n = !1);
|
|
36627
|
-
var r = Fn(e), o = Fn(e) && vF(e), i =
|
|
36621
|
+
var r = Fn(e), o = Fn(e) && vF(e), i = uo(e), s = Li(t, o, n), a = {
|
|
36628
36622
|
scrollLeft: 0,
|
|
36629
36623
|
scrollTop: 0
|
|
36630
36624
|
}, l = {
|
|
@@ -36721,7 +36715,7 @@ function AF(t) {
|
|
|
36721
36715
|
setOptions: function(m) {
|
|
36722
36716
|
var y = typeof m == "function" ? m(c.options) : m;
|
|
36723
36717
|
h(), c.options = Object.assign({}, i, c.options, y), c.scrollParents = {
|
|
36724
|
-
reference:
|
|
36718
|
+
reference: jo(s) ? Is(s) : s.contextElement ? Is(s.contextElement) : [],
|
|
36725
36719
|
popper: Is(a)
|
|
36726
36720
|
};
|
|
36727
36721
|
var g = SF(CF([].concat(r, c.options.modifiers)));
|
|
@@ -36801,7 +36795,7 @@ function AF(t) {
|
|
|
36801
36795
|
}
|
|
36802
36796
|
var $F = [XN, hF, KN, V3, pF, aF, yF, HN, cF], TF = /* @__PURE__ */ AF({
|
|
36803
36797
|
defaultModifiers: $F
|
|
36804
|
-
}), OF = "tippy-box", Q3 = "tippy-content", MF = "tippy-backdrop", ek = "tippy-arrow", tk = "tippy-svg-arrow",
|
|
36798
|
+
}), OF = "tippy-box", Q3 = "tippy-content", MF = "tippy-backdrop", ek = "tippy-arrow", tk = "tippy-svg-arrow", yo = {
|
|
36805
36799
|
passive: !0,
|
|
36806
36800
|
capture: !0
|
|
36807
36801
|
}, nk = function() {
|
|
@@ -36942,7 +36936,7 @@ function UF() {
|
|
|
36942
36936
|
}
|
|
36943
36937
|
}
|
|
36944
36938
|
function HF() {
|
|
36945
|
-
document.addEventListener("touchstart", qF,
|
|
36939
|
+
document.addEventListener("touchstart", qF, yo), window.addEventListener("blur", UF);
|
|
36946
36940
|
}
|
|
36947
36941
|
var VF = typeof window < "u" && typeof document < "u", WF = VF ? (
|
|
36948
36942
|
// @ts-ignore
|
|
@@ -37296,11 +37290,11 @@ function nR(t, e) {
|
|
|
37296
37290
|
}
|
|
37297
37291
|
function ie() {
|
|
37298
37292
|
var j = $();
|
|
37299
|
-
j.addEventListener("mousedown", F, !0), j.addEventListener("touchend", F,
|
|
37293
|
+
j.addEventListener("mousedown", F, !0), j.addEventListener("touchend", F, yo), j.addEventListener("touchstart", ee, yo), j.addEventListener("touchmove", Q, yo);
|
|
37300
37294
|
}
|
|
37301
37295
|
function J() {
|
|
37302
37296
|
var j = $();
|
|
37303
|
-
j.removeEventListener("mousedown", F, !0), j.removeEventListener("touchend", F,
|
|
37297
|
+
j.removeEventListener("mousedown", F, !0), j.removeEventListener("touchend", F, yo), j.removeEventListener("touchstart", ee, yo), j.removeEventListener("touchmove", Q, yo);
|
|
37304
37298
|
}
|
|
37305
37299
|
function T(j, H) {
|
|
37306
37300
|
U(j, function() {
|
|
@@ -37675,10 +37669,10 @@ const kt = (t, e) => {
|
|
|
37675
37669
|
], 42, rR))), 128))
|
|
37676
37670
|
], 544));
|
|
37677
37671
|
}
|
|
37678
|
-
}, cR = /* @__PURE__ */ kt(lR, [["__scopeId", "data-v-0a2a8b4e"]]), f0 = new
|
|
37672
|
+
}, cR = /* @__PURE__ */ kt(lR, [["__scopeId", "data-v-0a2a8b4e"]]), f0 = new Ze("popoverPlugin"), uR = ct.create({
|
|
37679
37673
|
name: "popoverPlugin",
|
|
37680
37674
|
addPmPlugins() {
|
|
37681
|
-
return [new
|
|
37675
|
+
return [new Xe({
|
|
37682
37676
|
key: f0,
|
|
37683
37677
|
state: {
|
|
37684
37678
|
init: () => ({}),
|
|
@@ -37805,21 +37799,21 @@ const pR = !1, fR = ct.create({
|
|
|
37805
37799
|
addPmPlugins() {
|
|
37806
37800
|
const t = this.editor;
|
|
37807
37801
|
let e = !1, n = !1, r = !1, o = !1;
|
|
37808
|
-
return [new
|
|
37802
|
+
return [new Xe({
|
|
37809
37803
|
key: eo,
|
|
37810
37804
|
state: {
|
|
37811
37805
|
isReadyToInit: !1,
|
|
37812
37806
|
init(i, s) {
|
|
37813
37807
|
return {
|
|
37814
37808
|
isReadyToInit: !1,
|
|
37815
|
-
decorations:
|
|
37809
|
+
decorations: Fe.empty,
|
|
37816
37810
|
isDebugging: pR
|
|
37817
37811
|
};
|
|
37818
37812
|
},
|
|
37819
37813
|
apply(i, s, a, l) {
|
|
37820
37814
|
const c = i.getMeta(eo);
|
|
37821
37815
|
c && c.isReadyToInit && (n = !0, o = c.isReadyToInit);
|
|
37822
|
-
const u = i.getMeta(
|
|
37816
|
+
const u = i.getMeta(Do);
|
|
37823
37817
|
if (u) {
|
|
37824
37818
|
if (u.type === "remove") {
|
|
37825
37819
|
const p = u.pos, f = t.view.domAtPos(p).node.querySelector("img");
|
|
@@ -37845,7 +37839,7 @@ const pR = !1, fR = ct.create({
|
|
|
37845
37839
|
},
|
|
37846
37840
|
/* The view method is the most important part of the plugin */
|
|
37847
37841
|
view: (i) => {
|
|
37848
|
-
let s =
|
|
37842
|
+
let s = Fe.empty;
|
|
37849
37843
|
return {
|
|
37850
37844
|
update: (a) => {
|
|
37851
37845
|
!n || e || (e = !0, r = !0, hR(t, a, s), e = !1, n = !1);
|
|
@@ -37859,7 +37853,7 @@ const pR = !1, fR = ct.create({
|
|
|
37859
37853
|
}
|
|
37860
37854
|
})];
|
|
37861
37855
|
}
|
|
37862
|
-
}),
|
|
37856
|
+
}), ho = (t, e, n, r = null) => {
|
|
37863
37857
|
const { alternateHeaders: o } = n.converter.pageStyles, i = n.converter[e];
|
|
37864
37858
|
if (r && r.attrs?.paragraphProperties?.sectPr) {
|
|
37865
37859
|
const d = r.attrs?.paragraphProperties?.sectPr;
|
|
@@ -37886,9 +37880,9 @@ const pR = !1, fR = ct.create({
|
|
|
37886
37880
|
}
|
|
37887
37881
|
t.emit("paginationUpdate");
|
|
37888
37882
|
}, mR = (t, e, n) => {
|
|
37889
|
-
if (!e.converter) return
|
|
37883
|
+
if (!e.converter) return Fe.empty;
|
|
37890
37884
|
const r = e.converter.pageStyles?.pageSize, { width: o, height: i } = r;
|
|
37891
|
-
if (!o || !i) return
|
|
37885
|
+
if (!o || !i) return Fe.empty;
|
|
37892
37886
|
const s = [H8, eo], { state: a } = t, l = Cs.create({
|
|
37893
37887
|
schema: a.schema,
|
|
37894
37888
|
doc: a.doc,
|
|
@@ -37905,15 +37899,15 @@ const pR = !1, fR = ct.create({
|
|
|
37905
37899
|
});
|
|
37906
37900
|
e.initDefaultStyles(c);
|
|
37907
37901
|
const f = gR(l.doc, p, e, n);
|
|
37908
|
-
return p.destroy(), document.body.removeChild(c),
|
|
37902
|
+
return p.destroy(), document.body.removeChild(c), Fe.create(t.state.doc, f);
|
|
37909
37903
|
};
|
|
37910
37904
|
function gR(t, e, n, r) {
|
|
37911
37905
|
const o = [], { pageSize: i, pageMargins: s } = n.converter.pageStyles, a = i.height * 96;
|
|
37912
37906
|
n.options.scale;
|
|
37913
37907
|
let l = 1, c = a, u = null, d = null;
|
|
37914
|
-
const p =
|
|
37908
|
+
const p = ho(l, "headerIds", n), f = Va(s, i, r, p), h = Wa({ editor: n, header: f, isFirstHeader: !0 });
|
|
37915
37909
|
o.push(Ge.widget(0, h, { key: "stable-key" }));
|
|
37916
|
-
const m =
|
|
37910
|
+
const m = ho(l, "footerIds", n), y = bd(s, i, r, m);
|
|
37917
37911
|
c -= f.headerHeight + y.footerHeight;
|
|
37918
37912
|
let g = e?.coordsAtPos(t.content.size);
|
|
37919
37913
|
if (!g) return [];
|
|
@@ -37922,7 +37916,7 @@ function gR(t, e, n, r) {
|
|
|
37922
37916
|
if (g = e?.coordsAtPos(V), !g) return;
|
|
37923
37917
|
let $ = g.bottom > c, K = _.type.name === "hardBreak";
|
|
37924
37918
|
if (_.attrs?.pageBreakSource === "sectPr" && (t.nodeAt(V + _.nodeSize)?.attrs?.pageBreakSource === "sectPr" || (K = !0), l === 1)) {
|
|
37925
|
-
const oe =
|
|
37919
|
+
const oe = ho(l, "headerIds", n, _);
|
|
37926
37920
|
o.pop();
|
|
37927
37921
|
const W = Va(s, i, r, oe), le = Wa({ editor: n, header: W, isFirstHeader: !0 });
|
|
37928
37922
|
o.push(Ge.widget(0, le, { key: "stable-key" }));
|
|
@@ -37941,9 +37935,9 @@ function gR(t, e, n, r) {
|
|
|
37941
37935
|
top: le,
|
|
37942
37936
|
bottom: G,
|
|
37943
37937
|
pos: ce
|
|
37944
|
-
} = yR(e, V, c), Y =
|
|
37938
|
+
} = yR(e, V, c), Y = ho(l, "footerIds", n, _);
|
|
37945
37939
|
l++;
|
|
37946
|
-
const F =
|
|
37940
|
+
const F = ho(l, "headerIds", n);
|
|
37947
37941
|
d = Va(s, i, r, F), u = bd(s, i, r, Y, l - 1);
|
|
37948
37942
|
const Q = c - G, { node: ee } = h0(Q), ie = Ge.widget(ce, ee, { key: "stable-key" });
|
|
37949
37943
|
o.push(ie);
|
|
@@ -37952,7 +37946,7 @@ function gR(t, e, n, r) {
|
|
|
37952
37946
|
}
|
|
37953
37947
|
});
|
|
37954
37948
|
let v = t.content.size;
|
|
37955
|
-
const x = e.coordsAtPos(v), w =
|
|
37949
|
+
const x = e.coordsAtPos(v), w = ho(l, "headerIds", n), C = ho(l, "footerIds", n);
|
|
37956
37950
|
d = Va(s, i, r, w), u = bd(s, i, r, C, l);
|
|
37957
37951
|
const M = c - x.bottom, { node: O } = h0(M), N = Ge.widget(t.content.size, O, { key: "stable-key" });
|
|
37958
37952
|
o.push(N);
|
|
@@ -38237,7 +38231,7 @@ let vd = class {
|
|
|
38237
38231
|
};
|
|
38238
38232
|
function xd(t, e, n) {
|
|
38239
38233
|
if (!e.valid)
|
|
38240
|
-
return
|
|
38234
|
+
return Fe.empty;
|
|
38241
38235
|
let r = [], o = t.selection;
|
|
38242
38236
|
for (let i = n ? n.from : 0, s = n ? n.to : t.doc.content.size; ; ) {
|
|
38243
38237
|
let a = e.findNext(t, i, s);
|
|
@@ -38246,11 +38240,11 @@ function xd(t, e, n) {
|
|
|
38246
38240
|
let l = a.from == o.from && a.to == o.to ? "ProseMirror-active-search-match" : "ProseMirror-search-match";
|
|
38247
38241
|
r.push(Ge.inline(a.from, a.to, { class: l })), i = a.to;
|
|
38248
38242
|
}
|
|
38249
|
-
return
|
|
38243
|
+
return Fe.create(t.doc, r);
|
|
38250
38244
|
}
|
|
38251
|
-
const Fs = new
|
|
38245
|
+
const Fs = new Ze("search");
|
|
38252
38246
|
function ER(t = {}) {
|
|
38253
|
-
return new
|
|
38247
|
+
return new Xe({
|
|
38254
38248
|
key: Fs,
|
|
38255
38249
|
state: {
|
|
38256
38250
|
init(e, n) {
|
|
@@ -38279,14 +38273,35 @@ function ER(t = {}) {
|
|
|
38279
38273
|
}
|
|
38280
38274
|
function w0(t) {
|
|
38281
38275
|
let e = Fs.getState(t);
|
|
38282
|
-
return e ? e.deco :
|
|
38276
|
+
return e ? e.deco : Fe.empty;
|
|
38283
38277
|
}
|
|
38284
38278
|
function CR(t, e, n = null) {
|
|
38285
38279
|
return t.setMeta(Fs, { query: e, range: n });
|
|
38286
38280
|
}
|
|
38287
38281
|
const AR = ct.create({
|
|
38282
|
+
addStorage() {
|
|
38283
|
+
return {
|
|
38284
|
+
searchResults: []
|
|
38285
|
+
};
|
|
38286
|
+
},
|
|
38288
38287
|
addPmPlugins() {
|
|
38289
|
-
|
|
38288
|
+
const t = this.editor, e = this.storage, n = new Xe({
|
|
38289
|
+
key: new Ze("customSearchHighlights"),
|
|
38290
|
+
props: {
|
|
38291
|
+
decorations(r) {
|
|
38292
|
+
if (!t) return null;
|
|
38293
|
+
const o = e?.searchResults;
|
|
38294
|
+
if (!o?.length) return null;
|
|
38295
|
+
const i = o.map(
|
|
38296
|
+
(s, a) => Ge.inline(s.from, s.to, {
|
|
38297
|
+
id: `search-match-${s.id}`
|
|
38298
|
+
})
|
|
38299
|
+
);
|
|
38300
|
+
return Fe.create(r.doc, i);
|
|
38301
|
+
}
|
|
38302
|
+
}
|
|
38303
|
+
});
|
|
38304
|
+
return [ER(), n];
|
|
38290
38305
|
},
|
|
38291
38306
|
addCommands() {
|
|
38292
38307
|
return {
|
|
@@ -38296,29 +38311,30 @@ const AR = ct.create({
|
|
|
38296
38311
|
const o = r.children.find((s) => s.local), i = r.children[0] + o.local[0].from + 1;
|
|
38297
38312
|
e.view.domAtPos(i)?.node?.scrollIntoView(!0);
|
|
38298
38313
|
},
|
|
38299
|
-
search: (t) => ({ state: e,
|
|
38300
|
-
let
|
|
38301
|
-
const
|
|
38314
|
+
search: (t) => ({ state: e, editor: n, dispatch: r }) => {
|
|
38315
|
+
let o, i = !1, s = !1;
|
|
38316
|
+
const a = !1;
|
|
38302
38317
|
if (t instanceof RegExp)
|
|
38303
|
-
|
|
38318
|
+
s = !0, o = t.source, i = !t.flags.includes("i");
|
|
38304
38319
|
else if (typeof t == "string" && /^\/(.+)\/([gimsuy]*)$/.test(t)) {
|
|
38305
|
-
const [,
|
|
38306
|
-
|
|
38320
|
+
const [, f, h] = t.match(/^\/(.+)\/([gimsuy]*)$/);
|
|
38321
|
+
s = !0, o = f, i = !h.includes("i");
|
|
38307
38322
|
} else
|
|
38308
|
-
|
|
38309
|
-
const
|
|
38310
|
-
search:
|
|
38311
|
-
caseSensitive:
|
|
38312
|
-
regexp:
|
|
38313
|
-
wholeWord:
|
|
38314
|
-
}),
|
|
38315
|
-
|
|
38316
|
-
const
|
|
38317
|
-
|
|
38318
|
-
|
|
38319
|
-
|
|
38320
|
-
|
|
38323
|
+
o = String(t);
|
|
38324
|
+
const l = new uk({
|
|
38325
|
+
search: o,
|
|
38326
|
+
caseSensitive: i,
|
|
38327
|
+
regexp: s,
|
|
38328
|
+
wholeWord: a
|
|
38329
|
+
}), c = CR(e.tr, l);
|
|
38330
|
+
r(c);
|
|
38331
|
+
const u = e.apply(c), d = w0(u), p = (d ? d.find() : []).map((f) => ({
|
|
38332
|
+
from: f.from,
|
|
38333
|
+
to: f.to,
|
|
38334
|
+
text: u.doc.textBetween(f.from, f.to),
|
|
38335
|
+
id: so()
|
|
38321
38336
|
}));
|
|
38337
|
+
return this.storage.searchResults = p, p;
|
|
38322
38338
|
},
|
|
38323
38339
|
goToSearchResult: (t) => ({ state: e, dispatch: n, editor: r }) => {
|
|
38324
38340
|
const { from: o, to: i } = t;
|
|
@@ -38594,31 +38610,31 @@ const AR = ct.create({
|
|
|
38594
38610
|
g.value = k.replace(/[^0-9]/g, "");
|
|
38595
38611
|
}, O = Ce(() => i.value ? En.dropdownCaretUp : En.dropdownCaretDown);
|
|
38596
38612
|
return (N, k) => (xe(), Ee("div", {
|
|
38597
|
-
class: cn(["toolbar-item",
|
|
38613
|
+
class: cn(["toolbar-item", Re(y).className]),
|
|
38598
38614
|
style: Zt(C.value)
|
|
38599
38615
|
}, [
|
|
38600
38616
|
Pe("div", {
|
|
38601
38617
|
onClick: x,
|
|
38602
|
-
class: cn(["toolbar-button", { active:
|
|
38618
|
+
class: cn(["toolbar-button", { active: Re(i), disabled: Re(d), narrow: t.isNarrow, wide: t.isWide, "has-inline-text-input": Re(f) }])
|
|
38603
38619
|
}, [
|
|
38604
|
-
|
|
38620
|
+
Re(s) ? (xe(), Hr(vL, {
|
|
38605
38621
|
key: 0,
|
|
38606
|
-
color:
|
|
38622
|
+
color: Re(c),
|
|
38607
38623
|
class: "toolbar-icon",
|
|
38608
|
-
icon:
|
|
38609
|
-
name:
|
|
38624
|
+
icon: Re(s),
|
|
38625
|
+
name: Re(o)
|
|
38610
38626
|
}, null, 8, ["color", "icon", "name"])) : nt("", !0),
|
|
38611
|
-
|
|
38612
|
-
|
|
38613
|
-
|
|
38627
|
+
Re(a) && !Re(l) && !Re(p) ? (xe(), Ee("div", xL, tn(Re(a)), 1)) : nt("", !0),
|
|
38628
|
+
Re(p) ? (xe(), Ee("span", kL, [
|
|
38629
|
+
Re(o) === "fontSize" ? Ar((xe(), Ee("input", {
|
|
38614
38630
|
key: 0,
|
|
38615
38631
|
"onUpdate:modelValue": k[0] || (k[0] = (q) => g.value = q),
|
|
38616
38632
|
onInput: M,
|
|
38617
|
-
placeholder:
|
|
38633
|
+
placeholder: Re(a),
|
|
38618
38634
|
onKeydown: Ol(An(w, ["prevent"]), ["enter"]),
|
|
38619
38635
|
type: "text",
|
|
38620
38636
|
class: "button-text-input",
|
|
38621
|
-
id: "inlineTextInput-" +
|
|
38637
|
+
id: "inlineTextInput-" + Re(o),
|
|
38622
38638
|
autoccomplete: "off",
|
|
38623
38639
|
ref_key: "inlineInput",
|
|
38624
38640
|
ref: v
|
|
@@ -38627,11 +38643,11 @@ const AR = ct.create({
|
|
|
38627
38643
|
]) : Ar((xe(), Ee("input", {
|
|
38628
38644
|
key: 1,
|
|
38629
38645
|
"onUpdate:modelValue": k[1] || (k[1] = (q) => g.value = q),
|
|
38630
|
-
placeholder:
|
|
38646
|
+
placeholder: Re(a),
|
|
38631
38647
|
onKeydown: Ol(An(w, ["prevent"]), ["enter"]),
|
|
38632
38648
|
type: "text",
|
|
38633
38649
|
class: "button-text-input",
|
|
38634
|
-
id: "inlineTextInput-" +
|
|
38650
|
+
id: "inlineTextInput-" + Re(o),
|
|
38635
38651
|
autoccomplete: "off",
|
|
38636
38652
|
ref_key: "inlineInput",
|
|
38637
38653
|
ref: v
|
|
@@ -38639,11 +38655,11 @@ const AR = ct.create({
|
|
|
38639
38655
|
[zs, g.value]
|
|
38640
38656
|
])
|
|
38641
38657
|
])) : nt("", !0),
|
|
38642
|
-
|
|
38658
|
+
Re(u) ? (xe(), Ee("div", {
|
|
38643
38659
|
key: 3,
|
|
38644
38660
|
class: "dropdown-caret",
|
|
38645
38661
|
innerHTML: O.value,
|
|
38646
|
-
style: Zt({ opacity:
|
|
38662
|
+
style: Zt({ opacity: Re(d) ? 0.6 : 1 })
|
|
38647
38663
|
}, null, 12, CL)) : nt("", !0)
|
|
38648
38664
|
], 2)
|
|
38649
38665
|
], 6));
|
|
@@ -39269,7 +39285,7 @@ function aB(t, e, n) {
|
|
|
39269
39285
|
let r = e * Math.min(n, 1 - n), o = (i, s = (i + t / 30) % 12) => n - r * Math.max(Math.min(s - 3, 9 - s, 1), -1);
|
|
39270
39286
|
return [o(0) * 255, o(8) * 255, o(4) * 255];
|
|
39271
39287
|
}
|
|
39272
|
-
const ar = "^\\s*", lr = "\\s*$", ro = "\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*", Cn = "\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",
|
|
39288
|
+
const ar = "^\\s*", lr = "\\s*$", ro = "\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*", Cn = "\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*", Eo = "([0-9A-Fa-f])", Co = "([0-9A-Fa-f]{2})", xk = new RegExp(`${ar}hsl\\s*\\(${Cn},${ro},${ro}\\)${lr}`), kk = new RegExp(`${ar}hsv\\s*\\(${Cn},${ro},${ro}\\)${lr}`), Sk = new RegExp(`${ar}hsla\\s*\\(${Cn},${ro},${ro},${Cn}\\)${lr}`), Ek = new RegExp(`${ar}hsva\\s*\\(${Cn},${ro},${ro},${Cn}\\)${lr}`), lB = new RegExp(`${ar}rgb\\s*\\(${Cn},${Cn},${Cn}\\)${lr}`), cB = new RegExp(`${ar}rgba\\s*\\(${Cn},${Cn},${Cn},${Cn}\\)${lr}`), uB = new RegExp(`${ar}#${Eo}${Eo}${Eo}${lr}`), dB = new RegExp(`${ar}#${Co}${Co}${Co}${lr}`), pB = new RegExp(`${ar}#${Eo}${Eo}${Eo}${Eo}${lr}`), fB = new RegExp(`${ar}#${Co}${Co}${Co}${Co}${lr}`);
|
|
39273
39289
|
function sn(t) {
|
|
39274
39290
|
return parseInt(t, 16);
|
|
39275
39291
|
}
|
|
@@ -39281,7 +39297,7 @@ function hB(t) {
|
|
|
39281
39297
|
ac(e[1]),
|
|
39282
39298
|
Gr(e[5]),
|
|
39283
39299
|
Gr(e[9]),
|
|
39284
|
-
|
|
39300
|
+
Io(e[13])
|
|
39285
39301
|
];
|
|
39286
39302
|
if (e = xk.exec(t))
|
|
39287
39303
|
return [ac(e[1]), Gr(e[5]), Gr(e[9]), 1];
|
|
@@ -39298,7 +39314,7 @@ function mB(t) {
|
|
|
39298
39314
|
ac(e[1]),
|
|
39299
39315
|
Gr(e[5]),
|
|
39300
39316
|
Gr(e[9]),
|
|
39301
|
-
|
|
39317
|
+
Io(e[13])
|
|
39302
39318
|
];
|
|
39303
39319
|
if (e = kk.exec(t))
|
|
39304
39320
|
return [ac(e[1]), Gr(e[5]), Gr(e[9]), 1];
|
|
@@ -39307,7 +39323,7 @@ function mB(t) {
|
|
|
39307
39323
|
throw e;
|
|
39308
39324
|
}
|
|
39309
39325
|
}
|
|
39310
|
-
function
|
|
39326
|
+
function qo(t) {
|
|
39311
39327
|
try {
|
|
39312
39328
|
let e;
|
|
39313
39329
|
if (e = dB.exec(t))
|
|
@@ -39319,7 +39335,7 @@ function jo(t) {
|
|
|
39319
39335
|
qt(e[1]),
|
|
39320
39336
|
qt(e[5]),
|
|
39321
39337
|
qt(e[9]),
|
|
39322
|
-
|
|
39338
|
+
Io(e[13])
|
|
39323
39339
|
];
|
|
39324
39340
|
if (e = uB.exec(t))
|
|
39325
39341
|
return [
|
|
@@ -39333,17 +39349,17 @@ function jo(t) {
|
|
|
39333
39349
|
sn(e[1]),
|
|
39334
39350
|
sn(e[2]),
|
|
39335
39351
|
sn(e[3]),
|
|
39336
|
-
|
|
39352
|
+
Io(sn(e[4]) / 255)
|
|
39337
39353
|
];
|
|
39338
39354
|
if (e = pB.exec(t))
|
|
39339
39355
|
return [
|
|
39340
39356
|
sn(e[1] + e[1]),
|
|
39341
39357
|
sn(e[2] + e[2]),
|
|
39342
39358
|
sn(e[3] + e[3]),
|
|
39343
|
-
|
|
39359
|
+
Io(sn(e[4] + e[4]) / 255)
|
|
39344
39360
|
];
|
|
39345
39361
|
if (t in T0)
|
|
39346
|
-
return
|
|
39362
|
+
return qo(T0[t]);
|
|
39347
39363
|
if (xk.test(t) || Sk.test(t)) {
|
|
39348
39364
|
const [n, r, o, i] = hB(t);
|
|
39349
39365
|
return [...aB(n, r, o), i];
|
|
@@ -39366,19 +39382,19 @@ function Sd(t, e, n, r, o) {
|
|
|
39366
39382
|
return qt((t * e * (1 - r) + n * r) / o);
|
|
39367
39383
|
}
|
|
39368
39384
|
function Ck(t, e) {
|
|
39369
|
-
Array.isArray(t) || (t =
|
|
39370
|
-
const n = t[3], r = e[3], o =
|
|
39385
|
+
Array.isArray(t) || (t = qo(t)), Array.isArray(e) || (e = qo(e));
|
|
39386
|
+
const n = t[3], r = e[3], o = Io(n + r - n * r);
|
|
39371
39387
|
return Yp(Sd(t[0], n, e[0], r, o), Sd(t[1], n, e[1], r, o), Sd(t[2], n, e[2], r, o), o);
|
|
39372
39388
|
}
|
|
39373
39389
|
function yB(t, e) {
|
|
39374
|
-
const [n, r, o, i = 1] = Array.isArray(t) ? t :
|
|
39390
|
+
const [n, r, o, i = 1] = Array.isArray(t) ? t : qo(t);
|
|
39375
39391
|
return typeof e.alpha == "number" ? Yp(n, r, o, e.alpha) : Yp(n, r, o, i);
|
|
39376
39392
|
}
|
|
39377
39393
|
function Xa(t, e) {
|
|
39378
|
-
const [n, r, o, i = 1] = Array.isArray(t) ? t :
|
|
39394
|
+
const [n, r, o, i = 1] = Array.isArray(t) ? t : qo(t), { lightness: s = 1, alpha: a = 1 } = e;
|
|
39379
39395
|
return wB([n * s, r * s, o * s, i * a]);
|
|
39380
39396
|
}
|
|
39381
|
-
function
|
|
39397
|
+
function Io(t) {
|
|
39382
39398
|
const e = Math.round(Number(t) * 100) / 100;
|
|
39383
39399
|
return e > 1 ? 1 : e < 0 ? 0 : e;
|
|
39384
39400
|
}
|
|
@@ -39396,7 +39412,7 @@ function Gr(t) {
|
|
|
39396
39412
|
}
|
|
39397
39413
|
function wB(t) {
|
|
39398
39414
|
const [e, n, r] = t;
|
|
39399
|
-
return 3 in t ? `rgba(${qt(e)}, ${qt(n)}, ${qt(r)}, ${
|
|
39415
|
+
return 3 in t ? `rgba(${qt(e)}, ${qt(n)}, ${qt(r)}, ${Io(t[3])})` : `rgba(${qt(e)}, ${qt(n)}, ${qt(r)}, 1)`;
|
|
39400
39416
|
}
|
|
39401
39417
|
function bB(t = 8) {
|
|
39402
39418
|
return Math.random().toString(16).slice(2, 2 + t);
|
|
@@ -40559,12 +40575,12 @@ const r9 = Ya([
|
|
|
40559
40575
|
});
|
|
40560
40576
|
}
|
|
40561
40577
|
});
|
|
40562
|
-
var
|
|
40563
|
-
return
|
|
40578
|
+
var No = [], o9 = function() {
|
|
40579
|
+
return No.some(function(t) {
|
|
40564
40580
|
return t.activeTargets.length > 0;
|
|
40565
40581
|
});
|
|
40566
40582
|
}, i9 = function() {
|
|
40567
|
-
return
|
|
40583
|
+
return No.some(function(t) {
|
|
40568
40584
|
return t.skippedTargets.length > 0;
|
|
40569
40585
|
});
|
|
40570
40586
|
}, L0 = "ResizeObserver loop completed with undelivered notifications.", s9 = function() {
|
|
@@ -40576,16 +40592,16 @@ var Io = [], o9 = function() {
|
|
|
40576
40592
|
(function(t) {
|
|
40577
40593
|
t.BORDER_BOX = "border-box", t.CONTENT_BOX = "content-box", t.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box";
|
|
40578
40594
|
})(la || (la = {}));
|
|
40579
|
-
var
|
|
40595
|
+
var Fo = function(t) {
|
|
40580
40596
|
return Object.freeze(t);
|
|
40581
40597
|
}, a9 = /* @__PURE__ */ function() {
|
|
40582
40598
|
function t(e, n) {
|
|
40583
|
-
this.inlineSize = e, this.blockSize = n,
|
|
40599
|
+
this.inlineSize = e, this.blockSize = n, Fo(this);
|
|
40584
40600
|
}
|
|
40585
40601
|
return t;
|
|
40586
40602
|
}(), Rk = function() {
|
|
40587
40603
|
function t(e, n, r, o) {
|
|
40588
|
-
return this.x = e, this.y = n, this.width = r, this.height = o, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width,
|
|
40604
|
+
return this.x = e, this.y = n, this.width = r, this.height = o, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, Fo(this);
|
|
40589
40605
|
}
|
|
40590
40606
|
return t.prototype.toJSON = function() {
|
|
40591
40607
|
var e = this, n = e.x, r = e.y, o = e.top, i = e.right, s = e.bottom, a = e.left, l = e.width, c = e.height;
|
|
@@ -40627,7 +40643,7 @@ var No = function(t) {
|
|
|
40627
40643
|
return parseFloat(t || "0");
|
|
40628
40644
|
}, xi = function(t, e, n) {
|
|
40629
40645
|
return t === void 0 && (t = 0), e === void 0 && (e = 0), n === void 0 && (n = !1), new a9((n ? e : t) || 0, (n ? t : e) || 0);
|
|
40630
|
-
}, z0 =
|
|
40646
|
+
}, z0 = Fo({
|
|
40631
40647
|
devicePixelContentBoxSize: xi(),
|
|
40632
40648
|
borderBoxSize: xi(),
|
|
40633
40649
|
contentBoxSize: xi(),
|
|
@@ -40637,7 +40653,7 @@ var No = function(t) {
|
|
|
40637
40653
|
return Qa.get(t);
|
|
40638
40654
|
if (Lk(t))
|
|
40639
40655
|
return Qa.set(t, z0), z0;
|
|
40640
|
-
var n = getComputedStyle(t), r = vh(t) && t.ownerSVGElement && t.getBBox(), o = !u9 && n.boxSizing === "border-box", i = c9.test(n.writingMode || ""), s = !r && P0.test(n.overflowY || ""), a = !r && P0.test(n.overflowX || ""), l = r ? 0 : Wn(n.paddingTop), c = r ? 0 : Wn(n.paddingRight), u = r ? 0 : Wn(n.paddingBottom), d = r ? 0 : Wn(n.paddingLeft), p = r ? 0 : Wn(n.borderTopWidth), f = r ? 0 : Wn(n.borderRightWidth), h = r ? 0 : Wn(n.borderBottomWidth), m = r ? 0 : Wn(n.borderLeftWidth), y = d + c, g = l + u, v = m + f, x = p + h, w = a ? t.offsetHeight - x - t.clientHeight : 0, C = s ? t.offsetWidth - v - t.clientWidth : 0, M = o ? y + v : 0, O = o ? g + x : 0, N = r ? r.width : Wn(n.width) - M - C, k = r ? r.height : Wn(n.height) - O - w, q = N + y + C + v, re = k + g + w + x, _ =
|
|
40656
|
+
var n = getComputedStyle(t), r = vh(t) && t.ownerSVGElement && t.getBBox(), o = !u9 && n.boxSizing === "border-box", i = c9.test(n.writingMode || ""), s = !r && P0.test(n.overflowY || ""), a = !r && P0.test(n.overflowX || ""), l = r ? 0 : Wn(n.paddingTop), c = r ? 0 : Wn(n.paddingRight), u = r ? 0 : Wn(n.paddingBottom), d = r ? 0 : Wn(n.paddingLeft), p = r ? 0 : Wn(n.borderTopWidth), f = r ? 0 : Wn(n.borderRightWidth), h = r ? 0 : Wn(n.borderBottomWidth), m = r ? 0 : Wn(n.borderLeftWidth), y = d + c, g = l + u, v = m + f, x = p + h, w = a ? t.offsetHeight - x - t.clientHeight : 0, C = s ? t.offsetWidth - v - t.clientWidth : 0, M = o ? y + v : 0, O = o ? g + x : 0, N = r ? r.width : Wn(n.width) - M - C, k = r ? r.height : Wn(n.height) - O - w, q = N + y + C + v, re = k + g + w + x, _ = Fo({
|
|
40641
40657
|
devicePixelContentBoxSize: xi(Math.round(N * devicePixelRatio), Math.round(k * devicePixelRatio), i),
|
|
40642
40658
|
borderBoxSize: xi(q, re, i),
|
|
40643
40659
|
contentBoxSize: xi(N, k, i),
|
|
@@ -40657,7 +40673,7 @@ var No = function(t) {
|
|
|
40657
40673
|
}, d9 = /* @__PURE__ */ function() {
|
|
40658
40674
|
function t(e) {
|
|
40659
40675
|
var n = Bk(e);
|
|
40660
|
-
this.target = e, this.contentRect = n.contentRect, this.borderBoxSize =
|
|
40676
|
+
this.target = e, this.contentRect = n.contentRect, this.borderBoxSize = Fo([n.borderBoxSize]), this.contentBoxSize = Fo([n.contentBoxSize]), this.devicePixelContentBoxSize = Fo([n.devicePixelContentBoxSize]);
|
|
40661
40677
|
}
|
|
40662
40678
|
return t;
|
|
40663
40679
|
}(), zk = function(t) {
|
|
@@ -40668,7 +40684,7 @@ var No = function(t) {
|
|
|
40668
40684
|
return e;
|
|
40669
40685
|
}, p9 = function() {
|
|
40670
40686
|
var t = 1 / 0, e = [];
|
|
40671
|
-
|
|
40687
|
+
No.forEach(function(i) {
|
|
40672
40688
|
if (i.activeTargets.length !== 0) {
|
|
40673
40689
|
var s = [];
|
|
40674
40690
|
i.activeTargets.forEach(function(a) {
|
|
@@ -40685,7 +40701,7 @@ var No = function(t) {
|
|
|
40685
40701
|
}
|
|
40686
40702
|
return t;
|
|
40687
40703
|
}, j0 = function(t) {
|
|
40688
|
-
|
|
40704
|
+
No.forEach(function(e) {
|
|
40689
40705
|
e.activeTargets.splice(0, e.activeTargets.length), e.skippedTargets.splice(0, e.skippedTargets.length), e.observationTargets.forEach(function(n) {
|
|
40690
40706
|
n.isActive() && (zk(n.target) > t ? e.activeTargets.push(n) : e.skippedTargets.push(n));
|
|
40691
40707
|
});
|
|
@@ -40806,10 +40822,10 @@ var No = function(t) {
|
|
|
40806
40822
|
el.set(e, r);
|
|
40807
40823
|
}, t.observe = function(e, n, r) {
|
|
40808
40824
|
var o = el.get(e), i = o.observationTargets.length === 0;
|
|
40809
|
-
V0(o.observationTargets, n) < 0 && (i &&
|
|
40825
|
+
V0(o.observationTargets, n) < 0 && (i && No.push(o), o.observationTargets.push(new k9(n, r && r.box)), H0(1), ef.schedule());
|
|
40810
40826
|
}, t.unobserve = function(e, n) {
|
|
40811
40827
|
var r = el.get(e), o = V0(r.observationTargets, n), i = r.observationTargets.length === 1;
|
|
40812
|
-
o >= 0 && (i &&
|
|
40828
|
+
o >= 0 && (i && No.splice(No.indexOf(r), 1), r.observationTargets.splice(o, 1), H0(-1));
|
|
40813
40829
|
}, t.disconnect = function(e) {
|
|
40814
40830
|
var n = this, r = el.get(e);
|
|
40815
40831
|
r.observationTargets.slice().forEach(function(o) {
|
|
@@ -41226,7 +41242,7 @@ function Lc(t, e, n, r) {
|
|
|
41226
41242
|
}
|
|
41227
41243
|
};
|
|
41228
41244
|
}
|
|
41229
|
-
var Gk = typeof
|
|
41245
|
+
var Gk = typeof xo == "object" && xo && xo.Object === Object && xo, N9 = typeof self == "object" && self && self.Object === Object && self, cr = Gk || N9 || Function("return this")(), oo = cr.Symbol, Kk = Object.prototype, F9 = Kk.hasOwnProperty, R9 = Kk.toString, is = oo ? oo.toStringTag : void 0;
|
|
41230
41246
|
function L9(t) {
|
|
41231
41247
|
var e = F9.call(t, is), n = t[is];
|
|
41232
41248
|
try {
|
|
@@ -41268,7 +41284,7 @@ function Xk(t) {
|
|
|
41268
41284
|
var e = t + "";
|
|
41269
41285
|
return e == "0" && 1 / t == -1 / 0 ? "-0" : e;
|
|
41270
41286
|
}
|
|
41271
|
-
function
|
|
41287
|
+
function po(t) {
|
|
41272
41288
|
var e = typeof t;
|
|
41273
41289
|
return t != null && (e == "object" || e == "function");
|
|
41274
41290
|
}
|
|
@@ -41277,7 +41293,7 @@ function Sh(t) {
|
|
|
41277
41293
|
}
|
|
41278
41294
|
var H9 = "[object AsyncFunction]", V9 = "[object Function]", W9 = "[object GeneratorFunction]", G9 = "[object Proxy]";
|
|
41279
41295
|
function Eh(t) {
|
|
41280
|
-
if (!
|
|
41296
|
+
if (!po(t))
|
|
41281
41297
|
return !1;
|
|
41282
41298
|
var e = Vo(t);
|
|
41283
41299
|
return e == V9 || e == W9 || e == H9 || e == G9;
|
|
@@ -41307,7 +41323,7 @@ var Y9 = /[\\^$.*+?()[\]{}|]/g, Z9 = /^\[object .+?Constructor\]$/, Q9 = Functio
|
|
|
41307
41323
|
"^" + t7.call(n7).replace(Y9, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
41308
41324
|
);
|
|
41309
41325
|
function o7(t) {
|
|
41310
|
-
if (!
|
|
41326
|
+
if (!po(t) || K9(t))
|
|
41311
41327
|
return !1;
|
|
41312
41328
|
var e = Eh(t) ? r7 : Z9;
|
|
41313
41329
|
return e.test(Wo(t));
|
|
@@ -41323,7 +41339,7 @@ var nf = Go(cr, "WeakMap"), rb = Object.create, s7 = /* @__PURE__ */ function()
|
|
|
41323
41339
|
function t() {
|
|
41324
41340
|
}
|
|
41325
41341
|
return function(e) {
|
|
41326
|
-
if (!
|
|
41342
|
+
if (!po(e))
|
|
41327
41343
|
return {};
|
|
41328
41344
|
if (rb)
|
|
41329
41345
|
return rb(e);
|
|
@@ -41434,7 +41450,7 @@ function Ji(t) {
|
|
|
41434
41450
|
return t != null && $h(t.length) && !Eh(t);
|
|
41435
41451
|
}
|
|
41436
41452
|
function C7(t, e, n) {
|
|
41437
|
-
if (!
|
|
41453
|
+
if (!po(n))
|
|
41438
41454
|
return !1;
|
|
41439
41455
|
var r = typeof e;
|
|
41440
41456
|
return (r == "number" ? Ji(n) && Ch(e, n.length) : r == "string" && e in n) ? Aa(n[e], t) : !1;
|
|
@@ -41525,7 +41541,7 @@ function hP(t) {
|
|
|
41525
41541
|
}
|
|
41526
41542
|
var mP = Object.prototype, gP = mP.hasOwnProperty;
|
|
41527
41543
|
function yP(t) {
|
|
41528
|
-
if (!
|
|
41544
|
+
if (!po(t))
|
|
41529
41545
|
return hP(t);
|
|
41530
41546
|
var e = Th(t), n = [];
|
|
41531
41547
|
for (var r in t)
|
|
@@ -41569,18 +41585,18 @@ function MP(t, e) {
|
|
|
41569
41585
|
var n = this.__data__;
|
|
41570
41586
|
return this.size += this.has(t) ? 0 : 1, n[t] = ca && e === void 0 ? OP : e, this;
|
|
41571
41587
|
}
|
|
41572
|
-
function
|
|
41588
|
+
function Uo(t) {
|
|
41573
41589
|
var e = -1, n = t == null ? 0 : t.length;
|
|
41574
41590
|
for (this.clear(); ++e < n; ) {
|
|
41575
41591
|
var r = t[e];
|
|
41576
41592
|
this.set(r[0], r[1]);
|
|
41577
41593
|
}
|
|
41578
41594
|
}
|
|
41579
|
-
|
|
41580
|
-
|
|
41581
|
-
|
|
41582
|
-
|
|
41583
|
-
|
|
41595
|
+
Uo.prototype.clear = vP;
|
|
41596
|
+
Uo.prototype.delete = xP;
|
|
41597
|
+
Uo.prototype.get = CP;
|
|
41598
|
+
Uo.prototype.has = TP;
|
|
41599
|
+
Uo.prototype.set = MP;
|
|
41584
41600
|
function DP() {
|
|
41585
41601
|
this.__data__ = [], this.size = 0;
|
|
41586
41602
|
}
|
|
@@ -41624,9 +41640,9 @@ Mr.prototype.set = LP;
|
|
|
41624
41640
|
var ua = Go(cr, "Map");
|
|
41625
41641
|
function BP() {
|
|
41626
41642
|
this.size = 0, this.__data__ = {
|
|
41627
|
-
hash: new
|
|
41643
|
+
hash: new Uo(),
|
|
41628
41644
|
map: new (ua || Mr)(),
|
|
41629
|
-
string: new
|
|
41645
|
+
string: new Uo()
|
|
41630
41646
|
};
|
|
41631
41647
|
}
|
|
41632
41648
|
function PP(t) {
|
|
@@ -42003,7 +42019,7 @@ function sj(t, e, n, r) {
|
|
|
42003
42019
|
return !0;
|
|
42004
42020
|
}
|
|
42005
42021
|
function cS(t) {
|
|
42006
|
-
return t === t && !
|
|
42022
|
+
return t === t && !po(t);
|
|
42007
42023
|
}
|
|
42008
42024
|
function aj(t) {
|
|
42009
42025
|
for (var e = Mh(t), n = e.length; n--; ) {
|
|
@@ -42110,13 +42126,13 @@ function Cj(t, e, n, r, o, i, s) {
|
|
|
42110
42126
|
var u = i ? i(a, l, n + "", t, e, s) : void 0, d = u === void 0;
|
|
42111
42127
|
if (d) {
|
|
42112
42128
|
var p = Bn(l), f = !p && pc(l), h = !p && !f && Oh(l);
|
|
42113
|
-
u = l, p || f || h ? Bn(a) ? u = a : Sj(a) ? u = l7(a) : f ? (d = !1, u = pz(l)) : h ? (d = !1, u = Az(l)) : u = [] : oz(l) || dc(l) ? (u = a, dc(a) ? u = Ej(a) : (!
|
|
42129
|
+
u = l, p || f || h ? Bn(a) ? u = a : Sj(a) ? u = l7(a) : f ? (d = !1, u = pz(l)) : h ? (d = !1, u = Az(l)) : u = [] : oz(l) || dc(l) ? (u = a, dc(a) ? u = Ej(a) : (!po(a) || Eh(a)) && (u = $z(l))) : d = !1;
|
|
42114
42130
|
}
|
|
42115
42131
|
d && (s.set(l, u), o(u, l, r, i, s), s.delete(l)), af(t, n, u);
|
|
42116
42132
|
}
|
|
42117
42133
|
function pS(t, e, n, r, o) {
|
|
42118
42134
|
t !== e && dS(e, function(i, s) {
|
|
42119
|
-
if (o || (o = new nr()),
|
|
42135
|
+
if (o || (o = new nr()), po(i))
|
|
42120
42136
|
Cj(t, e, s, n, pS, r, o);
|
|
42121
42137
|
else {
|
|
42122
42138
|
var a = r ? r(lf(t, s), i, s + "", t, e, o) : void 0;
|
|
@@ -42361,7 +42377,7 @@ const Ne = {
|
|
|
42361
42377
|
successDefault: "#18a058",
|
|
42362
42378
|
successActive: "#0c7a43",
|
|
42363
42379
|
successSuppl: "#36ad6a"
|
|
42364
|
-
}, Fj =
|
|
42380
|
+
}, Fj = qo(Ne.neutralBase), fS = qo(Ne.neutralInvertBase), Rj = `rgba(${fS.slice(0, 3).join(", ")}, `;
|
|
42365
42381
|
function Eb(t) {
|
|
42366
42382
|
return `${Rj + String(t)})`;
|
|
42367
42383
|
}
|
|
@@ -45670,7 +45686,7 @@ const Wq = {
|
|
|
45670
45686
|
key: 0,
|
|
45671
45687
|
style: { width: "20px" }
|
|
45672
45688
|
})) : nt("", !0),
|
|
45673
|
-
c(x) && x.nestedOptions?.value?.length ? (xe(), Hr(
|
|
45689
|
+
c(x) && x.nestedOptions?.value?.length ? (xe(), Hr(Re(Hq), {
|
|
45674
45690
|
key: 1,
|
|
45675
45691
|
options: x.nestedOptions.value,
|
|
45676
45692
|
trigger: x.disabled.value ? null : "click",
|
|
@@ -45683,7 +45699,7 @@ const Wq = {
|
|
|
45683
45699
|
style: Zt(x.dropdownStyles.value)
|
|
45684
45700
|
}, {
|
|
45685
45701
|
default: Zi(() => [
|
|
45686
|
-
Ot(
|
|
45702
|
+
Ot(Re(Ob), {
|
|
45687
45703
|
trigger: "hover",
|
|
45688
45704
|
disabled: !x.tooltip?.value
|
|
45689
45705
|
}, {
|
|
@@ -45704,7 +45720,7 @@ const Wq = {
|
|
|
45704
45720
|
}, 1032, ["disabled"])
|
|
45705
45721
|
]),
|
|
45706
45722
|
_: 2
|
|
45707
|
-
}, 1032, ["options", "trigger", "show", "onSelect", "style"])) : l(x) ? (xe(), Hr(
|
|
45723
|
+
}, 1032, ["options", "trigger", "show", "onSelect", "style"])) : l(x) ? (xe(), Hr(Re(Ob), {
|
|
45708
45724
|
key: 2,
|
|
45709
45725
|
trigger: "hover",
|
|
45710
45726
|
class: "sd-editor-toolbar-tooltip"
|
|
@@ -45757,9 +45773,9 @@ const Wq = {
|
|
|
45757
45773
|
};
|
|
45758
45774
|
return (d, p) => (xe(), Ee("div", {
|
|
45759
45775
|
class: "superdoc-toolbar",
|
|
45760
|
-
key:
|
|
45776
|
+
key: Re(r)
|
|
45761
45777
|
}, [
|
|
45762
|
-
|
|
45778
|
+
Re(o) ? (xe(), Hr(Tl, {
|
|
45763
45779
|
key: 0,
|
|
45764
45780
|
"toolbar-items": a("left"),
|
|
45765
45781
|
position: "left",
|
|
@@ -45768,11 +45784,11 @@ const Wq = {
|
|
|
45768
45784
|
}, null, 8, ["toolbar-items"])) : nt("", !0),
|
|
45769
45785
|
Ot(Tl, {
|
|
45770
45786
|
"toolbar-items": a("center"),
|
|
45771
|
-
"overflow-items":
|
|
45787
|
+
"overflow-items": Re(n).$toolbar.overflowItems,
|
|
45772
45788
|
position: "center",
|
|
45773
45789
|
onCommand: u
|
|
45774
45790
|
}, null, 8, ["toolbar-items", "overflow-items"]),
|
|
45775
|
-
|
|
45791
|
+
Re(i) ? (xe(), Hr(Tl, {
|
|
45776
45792
|
key: 1,
|
|
45777
45793
|
"toolbar-items": a("right"),
|
|
45778
45794
|
position: "right",
|
|
@@ -46025,7 +46041,7 @@ const iU = `<!-- @note: includes color gradient for inline svg AI Writer -->
|
|
|
46025
46041
|
Pe("div", cU, [
|
|
46026
46042
|
Pe("span", {
|
|
46027
46043
|
class: "ai-textarea-icon",
|
|
46028
|
-
innerHTML:
|
|
46044
|
+
innerHTML: Re(iU)
|
|
46029
46045
|
}, null, 8, uU),
|
|
46030
46046
|
Ar(Pe("textarea", {
|
|
46031
46047
|
ref_key: "editableRef",
|
|
@@ -46042,16 +46058,16 @@ const iU = `<!-- @note: includes color gradient for inline svg AI Writer -->
|
|
|
46042
46058
|
]),
|
|
46043
46059
|
Pe("div", pU, [
|
|
46044
46060
|
f.value ? (xe(), Ee("span", fU, [
|
|
46045
|
-
Pe("span", { innerHTML:
|
|
46061
|
+
Pe("span", { innerHTML: Re(lU) }, null, 8, hU)
|
|
46046
46062
|
])) : h.value ? (xe(), Ee("span", {
|
|
46047
46063
|
key: 1,
|
|
46048
46064
|
class: "ai-textarea-icon error",
|
|
46049
|
-
innerHTML:
|
|
46065
|
+
innerHTML: Re(aU)
|
|
46050
46066
|
}, null, 8, mU)) : m.value ? (xe(), Ee("span", {
|
|
46051
46067
|
key: 2,
|
|
46052
46068
|
class: "ai-textarea-icon ai-submit-button",
|
|
46053
46069
|
onClick: An(M, ["stop"]),
|
|
46054
|
-
innerHTML:
|
|
46070
|
+
innerHTML: Re(sU)
|
|
46055
46071
|
}, null, 8, gU)) : nt("", !0)
|
|
46056
46072
|
])
|
|
46057
46073
|
], 544));
|
|
@@ -46197,7 +46213,7 @@ const Je = (t) => {
|
|
|
46197
46213
|
throw new Error("Toolbar button item needs either icon or label - " + t.name);
|
|
46198
46214
|
if (!t.name)
|
|
46199
46215
|
throw new Error("Invalid toolbar item name - " + t.name);
|
|
46200
|
-
const e = me(
|
|
46216
|
+
const e = me(so()), n = t.type, r = me(t.name), o = t.command, i = t.noArgumentCommand, s = me(t.icon), a = me(t.group || "center"), l = me(t.allowWithoutEditor), c = me(t.attributes || {}), u = t.disabled || !1, d = me(t.disabled), p = me(!1), f = me(!1), h = me(t.style), m = me(t.isNarrow), y = me(t.isWide), g = me(t.minWidth), v = me(t.suppressActiveHighlight || !1), x = me(t.argument), w = me(null), C = me(null), M = me(t.iconColor), O = me(t.hasCaret), N = me(t.dropdownStyles), k = me(t.tooltip), q = me(t.tooltipVisible), re = me(t.tooltipTimeout), _ = me(t.defaultLabel), V = me(t.label), $ = me(t.hideLabel), K = me(t.inlineTextInputVisible), oe = me(t.hasInlineTextInput), W = me(t.markName), le = me(t.labelAttr), G = me(t.selectedValue), ce = me(t.dropdownValueKey), Y = me(t.inputRef || null), F = me([]);
|
|
46201
46217
|
if (t.options) {
|
|
46202
46218
|
if (!Array.isArray(t.options)) throw new Error("Invalid toolbar item options - " + t.options);
|
|
46203
46219
|
F.value.push(...t.options);
|
|
@@ -46274,22 +46290,22 @@ const Je = (t) => {
|
|
|
46274
46290
|
Pe("div", {
|
|
46275
46291
|
class: "button-icon",
|
|
46276
46292
|
onClick: i[0] || (i[0] = (s) => r("left")),
|
|
46277
|
-
innerHTML:
|
|
46293
|
+
innerHTML: Re(En).alignLeft
|
|
46278
46294
|
}, null, 8, AU),
|
|
46279
46295
|
Pe("div", {
|
|
46280
46296
|
class: "button-icon",
|
|
46281
46297
|
onClick: i[1] || (i[1] = (s) => r("center")),
|
|
46282
|
-
innerHTML:
|
|
46298
|
+
innerHTML: Re(En).alignCenter
|
|
46283
46299
|
}, null, 8, $U),
|
|
46284
46300
|
Pe("div", {
|
|
46285
46301
|
class: "button-icon",
|
|
46286
46302
|
onClick: i[2] || (i[2] = (s) => r("right")),
|
|
46287
|
-
innerHTML:
|
|
46303
|
+
innerHTML: Re(En).alignRight
|
|
46288
46304
|
}, null, 8, TU),
|
|
46289
46305
|
Pe("div", {
|
|
46290
46306
|
class: "button-icon",
|
|
46291
46307
|
onClick: i[3] || (i[3] = (s) => r("justify")),
|
|
46292
|
-
innerHTML:
|
|
46308
|
+
innerHTML: Re(En).alignJustify
|
|
46293
46309
|
}, null, 8, OU)
|
|
46294
46310
|
]));
|
|
46295
46311
|
}
|
|
@@ -46367,7 +46383,7 @@ const Je = (t) => {
|
|
|
46367
46383
|
Pe("div", LU, [
|
|
46368
46384
|
Pe("div", {
|
|
46369
46385
|
class: "input-icon",
|
|
46370
|
-
innerHTML:
|
|
46386
|
+
innerHTML: Re(En).linkInput
|
|
46371
46387
|
}, null, 8, BU),
|
|
46372
46388
|
Ar(Pe("input", {
|
|
46373
46389
|
type: "text",
|
|
@@ -46383,7 +46399,7 @@ const Je = (t) => {
|
|
|
46383
46399
|
]),
|
|
46384
46400
|
Pe("div", {
|
|
46385
46401
|
class: cn(["open-link-icon", { disabled: !d.value }]),
|
|
46386
|
-
innerHTML:
|
|
46402
|
+
innerHTML: Re(En).openLink,
|
|
46387
46403
|
onClick: g
|
|
46388
46404
|
}, null, 10, zU)
|
|
46389
46405
|
]),
|
|
@@ -46395,7 +46411,7 @@ const Je = (t) => {
|
|
|
46395
46411
|
}, [
|
|
46396
46412
|
Pe("div", {
|
|
46397
46413
|
class: "remove-btn__icon",
|
|
46398
|
-
innerHTML:
|
|
46414
|
+
innerHTML: Re(En).removeLink
|
|
46399
46415
|
}, null, 8, qU),
|
|
46400
46416
|
w[3] || (w[3] = to(" Remove "))
|
|
46401
46417
|
])) : nt("", !0),
|
|
@@ -46459,13 +46475,13 @@ const Je = (t) => {
|
|
|
46459
46475
|
n("select", i);
|
|
46460
46476
|
};
|
|
46461
46477
|
return (i, s) => r.editor ? (xe(), Ee("div", tH, [
|
|
46462
|
-
(xe(!0), Ee(yt, null, In(
|
|
46478
|
+
(xe(!0), Ee(yt, null, In(Re(a3)(t.editor), (a) => (xe(), Ee("div", {
|
|
46463
46479
|
class: "style-item",
|
|
46464
46480
|
onClick: (l) => o(a)
|
|
46465
46481
|
}, [
|
|
46466
46482
|
Pe("div", {
|
|
46467
46483
|
class: "style-name",
|
|
46468
|
-
style: Zt(
|
|
46484
|
+
style: Zt(Re(s3)(a, null, !1))
|
|
46469
46485
|
}, tn(a.definition.attrs.name), 5)
|
|
46470
46486
|
], 8, nH))), 256))
|
|
46471
46487
|
])) : nt("", !0);
|
|
@@ -46506,7 +46522,7 @@ const Je = (t) => {
|
|
|
46506
46522
|
o.value(d) ? (xe(), Ee("div", {
|
|
46507
46523
|
key: 0,
|
|
46508
46524
|
class: "option__check",
|
|
46509
|
-
innerHTML:
|
|
46525
|
+
innerHTML: Re(En).colorOptionCheck,
|
|
46510
46526
|
style: Zt(i(d.value, p))
|
|
46511
46527
|
}, null, 12, aH)) : nt("", !0)
|
|
46512
46528
|
], 8, iH))), 128))
|
|
@@ -46545,7 +46561,7 @@ const Je = (t) => {
|
|
|
46545
46561
|
onClick: i[0] || (i[0] = (s) => r("none"))
|
|
46546
46562
|
}, [
|
|
46547
46563
|
Pe("span", {
|
|
46548
|
-
innerHTML:
|
|
46564
|
+
innerHTML: Re(cH),
|
|
46549
46565
|
class: "none-icon"
|
|
46550
46566
|
}, null, 8, dH),
|
|
46551
46567
|
i[1] || (i[1] = to(" None "))
|
|
@@ -47602,7 +47618,7 @@ const Je = (t) => {
|
|
|
47602
47618
|
pos: a.selection.from,
|
|
47603
47619
|
id: s
|
|
47604
47620
|
};
|
|
47605
|
-
a.setMeta(
|
|
47621
|
+
a.setMeta(Do, c), e.dispatch(a), r(n).then(
|
|
47606
47622
|
(u) => {
|
|
47607
47623
|
let d = n.name.replace(" ", "_"), p = uN(e.state, s);
|
|
47608
47624
|
if (p == null)
|
|
@@ -47612,12 +47628,12 @@ const Je = (t) => {
|
|
|
47612
47628
|
size: { width: o, height: i }
|
|
47613
47629
|
});
|
|
47614
47630
|
t.storage.image.media = Object.assign(t.storage.image.media, { [h]: u }), t.options.ydoc && t.commands.addImageToCollaboration({ mediaPath: h, fileData: u }), e.dispatch(
|
|
47615
|
-
e.state.tr.replaceWith(p, p, m).setMeta(
|
|
47631
|
+
e.state.tr.replaceWith(p, p, m).setMeta(Do, f)
|
|
47616
47632
|
);
|
|
47617
47633
|
},
|
|
47618
47634
|
() => {
|
|
47619
47635
|
let u = { type: "remove", id: s };
|
|
47620
|
-
e.dispatch(a.setMeta(
|
|
47636
|
+
e.dispatch(a.setMeta(Do, u));
|
|
47621
47637
|
}
|
|
47622
47638
|
);
|
|
47623
47639
|
};
|
|
@@ -48135,45 +48151,45 @@ const UH = (t, e) => {
|
|
|
48135
48151
|
], 544),
|
|
48136
48152
|
o.value ? nt("", !0) : (xe(), Ee("div", JH, [
|
|
48137
48153
|
Pe("div", XH, [
|
|
48138
|
-
Ot(
|
|
48154
|
+
Ot(Re(Gn), {
|
|
48139
48155
|
text: "",
|
|
48140
48156
|
style: { width: "60%" }
|
|
48141
48157
|
})
|
|
48142
48158
|
]),
|
|
48143
|
-
Ot(
|
|
48159
|
+
Ot(Re(Gn), {
|
|
48144
48160
|
text: "",
|
|
48145
48161
|
repeat: 6
|
|
48146
48162
|
}),
|
|
48147
|
-
Ot(
|
|
48163
|
+
Ot(Re(Gn), {
|
|
48148
48164
|
text: "",
|
|
48149
48165
|
style: { width: "60%" }
|
|
48150
48166
|
}),
|
|
48151
|
-
Ot(
|
|
48167
|
+
Ot(Re(Gn), {
|
|
48152
48168
|
text: "",
|
|
48153
48169
|
repeat: 6,
|
|
48154
48170
|
style: { width: "30%", display: "block", margin: "20px" }
|
|
48155
48171
|
}),
|
|
48156
|
-
Ot(
|
|
48172
|
+
Ot(Re(Gn), {
|
|
48157
48173
|
text: "",
|
|
48158
48174
|
style: { width: "60%" }
|
|
48159
48175
|
}),
|
|
48160
|
-
Ot(
|
|
48176
|
+
Ot(Re(Gn), {
|
|
48161
48177
|
text: "",
|
|
48162
48178
|
repeat: 5
|
|
48163
48179
|
}),
|
|
48164
|
-
Ot(
|
|
48180
|
+
Ot(Re(Gn), {
|
|
48165
48181
|
text: "",
|
|
48166
48182
|
style: { width: "30%" }
|
|
48167
48183
|
}),
|
|
48168
|
-
Ot(
|
|
48184
|
+
Ot(Re(Gn), {
|
|
48169
48185
|
text: "",
|
|
48170
48186
|
style: { "margin-top": "50px" }
|
|
48171
48187
|
}),
|
|
48172
|
-
Ot(
|
|
48188
|
+
Ot(Re(Gn), {
|
|
48173
48189
|
text: "",
|
|
48174
48190
|
repeat: 6
|
|
48175
48191
|
}),
|
|
48176
|
-
Ot(
|
|
48192
|
+
Ot(Re(Gn), {
|
|
48177
48193
|
text: "",
|
|
48178
48194
|
style: { width: "70%" }
|
|
48179
48195
|
})
|
|
@@ -48265,7 +48281,7 @@ const UH = (t, e) => {
|
|
|
48265
48281
|
Node: et,
|
|
48266
48282
|
Attribute: Oe,
|
|
48267
48283
|
Extension: ct,
|
|
48268
|
-
Plugin:
|
|
48284
|
+
Plugin: Xe,
|
|
48269
48285
|
Mark: yn
|
|
48270
48286
|
};
|
|
48271
48287
|
export {
|
|
@@ -48277,7 +48293,7 @@ export {
|
|
|
48277
48293
|
NV as L,
|
|
48278
48294
|
zV as M,
|
|
48279
48295
|
my as N,
|
|
48280
|
-
|
|
48296
|
+
Bo as O,
|
|
48281
48297
|
eU as P,
|
|
48282
48298
|
tc as Q,
|
|
48283
48299
|
pk as S,
|