@harbour-enterprises/superdoc 0.10.57 → 0.10.59
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-D_TIl24d.cjs → super-editor.es-dV6e-64I.cjs} +20 -20
- package/dist/chunks/{super-editor.es-B82tt5cN.es.js → super-editor.es-zactM06E.es.js} +213 -200
- package/dist/super-editor/ai-writer.es.js +1 -1
- package/dist/super-editor/chunks/{converter-BLaf95a-.js → converter-Cs71TBnr.js} +130 -117
- package/dist/super-editor/chunks/{docx-zipper-BptDxzYU.js → docx-zipper-6jKpuHRM.js} +1 -1
- package/dist/super-editor/chunks/{editor-DAN1wR0i.js → editor-D2wFJ3Vj.js} +5 -5
- package/dist/super-editor/chunks/{toolbar-Divb8gUl.js → toolbar-BdbU1Nep.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/super-converter/helpers.d.ts +1 -1
- package/dist/super-editor/core/super-converter/helpers.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/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 +3 -3
- package/dist/superdoc.es.js +3 -3
- package/dist/superdoc.umd.js +146 -133
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/superdoc.umd.js
CHANGED
|
@@ -7345,7 +7345,7 @@
|
|
|
7345
7345
|
throw TypeError(r22);
|
|
7346
7346
|
};
|
|
7347
7347
|
var Iu$2 = (r22, e, t) => e in r22 ? Nu$2(r22, e, { enumerable: true, configurable: true, writable: true, value: t }) : r22[e] = t;
|
|
7348
|
-
var
|
|
7348
|
+
var qt$2 = (r22, e, t) => Iu$2(r22, typeof e != "symbol" ? e + "" : e, t), Ru$2 = (r22, e, t) => e.has(r22) || _i$2("Cannot " + t);
|
|
7349
7349
|
var Ir$1 = (r22, e, t) => e.has(r22) ? _i$2("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r22) : e.set(r22, t);
|
|
7350
7350
|
var Ke = (r22, e, t) => (Ru$2(r22, e, "access private method"), t);
|
|
7351
7351
|
var Je$2 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -8390,7 +8390,7 @@
|
|
|
8390
8390
|
throw new Error("BigInt not supported");
|
|
8391
8391
|
}
|
|
8392
8392
|
})(Fe$2);
|
|
8393
|
-
const
|
|
8393
|
+
const vt$1 = Fe$2.Buffer, Vu$2 = Fe$2.Blob, zu$2 = Fe$2.BlobOptions, Gu$2 = Fe$2.Buffer, Wu$2 = Fe$2.File, Ju$2 = Fe$2.FileOptions, $u$2 = Fe$2.INSPECT_MAX_BYTES, Ku$2 = Fe$2.SlowBuffer, Xu$2 = Fe$2.TranscodeEncoding, Yu$2 = Fe$2.atob, Zu$2 = Fe$2.btoa, Qu$2 = Fe$2.constants, el$1 = Fe$2.isAscii, tl$2 = Fe$2.isUtf8, rl$2 = Fe$2.kMaxLength, nl$2 = Fe$2.kStringMaxLength, il$2 = Fe$2.resolveObjectURL, sl$2 = Fe$2.transcode, ol$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8394
8394
|
__proto__: null,
|
|
8395
8395
|
Blob: Vu$2,
|
|
8396
8396
|
BlobOptions: zu$2,
|
|
@@ -8403,7 +8403,7 @@
|
|
|
8403
8403
|
atob: Yu$2,
|
|
8404
8404
|
btoa: Zu$2,
|
|
8405
8405
|
constants: Qu$2,
|
|
8406
|
-
default:
|
|
8406
|
+
default: vt$1,
|
|
8407
8407
|
isAscii: el$1,
|
|
8408
8408
|
isUtf8: tl$2,
|
|
8409
8409
|
kMaxLength: rl$2,
|
|
@@ -8695,20 +8695,20 @@
|
|
|
8695
8695
|
}
|
|
8696
8696
|
}
|
|
8697
8697
|
}
|
|
8698
|
-
var ot$2 = [],
|
|
8698
|
+
var ot$2 = [], Ct$3 = false, pt$1, ar$2 = -1;
|
|
8699
8699
|
function ll$2() {
|
|
8700
|
-
!
|
|
8700
|
+
!Ct$3 || !pt$1 || (Ct$3 = false, pt$1.length ? ot$2 = pt$1.concat(ot$2) : ar$2 = -1, ot$2.length && zo$2());
|
|
8701
8701
|
}
|
|
8702
8702
|
function zo$2() {
|
|
8703
|
-
if (!
|
|
8703
|
+
if (!Ct$3) {
|
|
8704
8704
|
var r22 = Vo$2(ll$2);
|
|
8705
|
-
|
|
8705
|
+
Ct$3 = true;
|
|
8706
8706
|
for (var e = ot$2.length; e; ) {
|
|
8707
8707
|
for (pt$1 = ot$2, ot$2 = []; ++ar$2 < e; )
|
|
8708
8708
|
pt$1 && pt$1[ar$2].run();
|
|
8709
8709
|
ar$2 = -1, e = ot$2.length;
|
|
8710
8710
|
}
|
|
8711
|
-
pt$1 = null,
|
|
8711
|
+
pt$1 = null, Ct$3 = false, ul$2(r22);
|
|
8712
8712
|
}
|
|
8713
8713
|
}
|
|
8714
8714
|
Ee$2.nextTick = function(r22) {
|
|
@@ -8716,7 +8716,7 @@
|
|
|
8716
8716
|
if (arguments.length > 1)
|
|
8717
8717
|
for (var t = 1; t < arguments.length; t++)
|
|
8718
8718
|
e[t - 1] = arguments[t];
|
|
8719
|
-
ot$2.push(new Go$1(r22, e)), ot$2.length === 1 && !
|
|
8719
|
+
ot$2.push(new Go$1(r22, e)), ot$2.length === 1 && !Ct$3 && Vo$2(zo$2);
|
|
8720
8720
|
};
|
|
8721
8721
|
function Go$1(r22, e) {
|
|
8722
8722
|
this.fun = r22, this.array = e;
|
|
@@ -8878,7 +8878,7 @@
|
|
|
8878
8878
|
return ss$2 || (ss$2 = 1, tn$2 = Object.getOwnPropertyDescriptor), tn$2;
|
|
8879
8879
|
}
|
|
8880
8880
|
var rn$3, os$2;
|
|
8881
|
-
function
|
|
8881
|
+
function Ot$2() {
|
|
8882
8882
|
if (os$2) return rn$3;
|
|
8883
8883
|
os$2 = 1;
|
|
8884
8884
|
var r22 = vl$2();
|
|
@@ -9009,7 +9009,7 @@
|
|
|
9009
9009
|
function Fl$2() {
|
|
9010
9010
|
if (ys$1) return hn$2;
|
|
9011
9011
|
ys$1 = 1;
|
|
9012
|
-
var r22 = Ei$2(), e =
|
|
9012
|
+
var r22 = Ei$2(), e = Ot$2(), t;
|
|
9013
9013
|
try {
|
|
9014
9014
|
t = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
9015
9015
|
[].__proto__ === Array.prototype;
|
|
@@ -9060,7 +9060,7 @@
|
|
|
9060
9060
|
return F3('"use strict"; return (' + I3 + ").constructor;")();
|
|
9061
9061
|
} catch {
|
|
9062
9062
|
}
|
|
9063
|
-
}, B =
|
|
9063
|
+
}, B = Ot$2(), R = Cr$2(), D3 = function() {
|
|
9064
9064
|
throw new a();
|
|
9065
9065
|
}, k = B ? function() {
|
|
9066
9066
|
try {
|
|
@@ -9321,7 +9321,7 @@
|
|
|
9321
9321
|
function kl$2() {
|
|
9322
9322
|
if (vs$1) return An$2;
|
|
9323
9323
|
vs$1 = 1;
|
|
9324
|
-
var r22 = Xt$2(), e = vr$2()(), t = Qo$1(), n =
|
|
9324
|
+
var r22 = Xt$2(), e = vr$2()(), t = Qo$1(), n = Ot$2(), i3;
|
|
9325
9325
|
if (e) {
|
|
9326
9326
|
var s = r22("RegExp.prototype.exec"), o = {}, a = function() {
|
|
9327
9327
|
throw o;
|
|
@@ -9535,7 +9535,7 @@
|
|
|
9535
9535
|
function _l$2() {
|
|
9536
9536
|
if (Ns$1) return Bn$2;
|
|
9537
9537
|
Ns$1 = 1;
|
|
9538
|
-
var r22 = Cr$2(), e = Ko$2(), t = $t$1(), n =
|
|
9538
|
+
var r22 = Cr$2(), e = Ko$2(), t = $t$1(), n = Ot$2();
|
|
9539
9539
|
return Bn$2 = function(s, o, a) {
|
|
9540
9540
|
if (!s || typeof s != "object" && typeof s != "function")
|
|
9541
9541
|
throw new t("`obj` must be an object or a function`");
|
|
@@ -9584,7 +9584,7 @@
|
|
|
9584
9584
|
function Ml$2() {
|
|
9585
9585
|
if (Rs$1) return Nn$3;
|
|
9586
9586
|
Rs$1 = 1;
|
|
9587
|
-
var r22 = ea$1(), e = _l$2(), t = ql$2()(), n =
|
|
9587
|
+
var r22 = ea$1(), e = _l$2(), t = ql$2()(), n = Ot$2(), i3 = $t$1(), s = r22("%Math.floor%");
|
|
9588
9588
|
return Nn$3 = function(a, u) {
|
|
9589
9589
|
if (typeof a != "function")
|
|
9590
9590
|
throw new i3("`fn` is not a function");
|
|
@@ -9637,7 +9637,7 @@
|
|
|
9637
9637
|
function ta$2() {
|
|
9638
9638
|
if (Ls$1) return Rn$3;
|
|
9639
9639
|
Ls$1 = 1;
|
|
9640
|
-
var r22 = Pl$2(), e = Ll$2(), t = jl$2(), n = Xt$2(), i3 =
|
|
9640
|
+
var r22 = Pl$2(), e = Ll$2(), t = jl$2(), n = Xt$2(), i3 = Ot$2(), s = vi$2(), o = n("Object.prototype.toString"), a = vr$2()(), u = typeof globalThis > "u" ? Je$2 : globalThis, f3 = e(), l = n("String.prototype.slice"), h3 = n("Array.prototype.indexOf", true) || function(F3, w) {
|
|
9641
9641
|
for (var B = 0; B < F3.length; B += 1)
|
|
9642
9642
|
if (F3[B] === w)
|
|
9643
9643
|
return B;
|
|
@@ -10497,7 +10497,7 @@
|
|
|
10497
10497
|
}, _n$3;
|
|
10498
10498
|
}
|
|
10499
10499
|
var qn$2 = {}, Vs$1;
|
|
10500
|
-
function
|
|
10500
|
+
function Lt$1() {
|
|
10501
10501
|
if (Vs$1) return qn$2;
|
|
10502
10502
|
Vs$1 = 1;
|
|
10503
10503
|
function r22(a, u) {
|
|
@@ -10561,7 +10561,7 @@
|
|
|
10561
10561
|
function ia$1() {
|
|
10562
10562
|
if (zs$1) return Mn$2;
|
|
10563
10563
|
zs$1 = 1;
|
|
10564
|
-
var r22 =
|
|
10564
|
+
var r22 = Lt$1().codes.ERR_INVALID_OPT_VALUE;
|
|
10565
10565
|
function e(n, i3, s) {
|
|
10566
10566
|
return n.highWaterMark != null ? n.highWaterMark : i3 ? n[s] : null;
|
|
10567
10567
|
}
|
|
@@ -10631,12 +10631,12 @@
|
|
|
10631
10631
|
function a(P) {
|
|
10632
10632
|
return i3.isBuffer(P) || P instanceof s;
|
|
10633
10633
|
}
|
|
10634
|
-
var u = na$1(), f3 = ia$1(), l = f3.getHighWaterMark, h3 =
|
|
10634
|
+
var u = na$1(), f3 = ia$1(), l = f3.getHighWaterMark, h3 = Lt$1().codes, g = h3.ERR_INVALID_ARG_TYPE, v = h3.ERR_METHOD_NOT_IMPLEMENTED, A = h3.ERR_MULTIPLE_CALLBACK, E3 = h3.ERR_STREAM_CANNOT_PIPE, F3 = h3.ERR_STREAM_DESTROYED, w = h3.ERR_STREAM_NULL_VALUES, B = h3.ERR_STREAM_WRITE_AFTER_END, R = h3.ERR_UNKNOWN_ENCODING, D3 = u.errorOrDestroy;
|
|
10635
10635
|
bt$2()(M, n);
|
|
10636
10636
|
function k() {
|
|
10637
10637
|
}
|
|
10638
10638
|
function N3(P, p3, m) {
|
|
10639
|
-
e = e ||
|
|
10639
|
+
e = e || Ft$2(), P = P || {}, typeof m != "boolean" && (m = p3 instanceof e), this.objectMode = !!P.objectMode, m && (this.objectMode = this.objectMode || !!P.writableObjectMode), this.highWaterMark = l(this, P, "writableHighWaterMark", m), this.finalCalled = false, this.needDrain = false, this.ending = false, this.ended = false, this.finished = false, this.destroyed = false;
|
|
10640
10640
|
var I3 = P.decodeStrings === false;
|
|
10641
10641
|
this.decodeStrings = !I3, this.defaultEncoding = P.defaultEncoding || "utf8", this.length = 0, this.writing = false, this.corked = 0, this.sync = true, this.bufferProcessing = false, this.onwrite = function(S3) {
|
|
10642
10642
|
ie2(p3, S3);
|
|
@@ -10665,7 +10665,7 @@
|
|
|
10665
10665
|
return p3 instanceof this;
|
|
10666
10666
|
};
|
|
10667
10667
|
function M(P) {
|
|
10668
|
-
e = e ||
|
|
10668
|
+
e = e || Ft$2();
|
|
10669
10669
|
var p3 = this instanceof e;
|
|
10670
10670
|
if (!p3 && !q3.call(M, this)) return new M(P);
|
|
10671
10671
|
this._writableState = new N3(P, this, p3), this.writable = true, P && (typeof P.write == "function" && (this._write = P.write), typeof P.writev == "function" && (this._writev = P.writev), typeof P.destroy == "function" && (this._destroy = P.destroy), typeof P.final == "function" && (this._final = P.final)), n.call(this);
|
|
@@ -10837,7 +10837,7 @@
|
|
|
10837
10837
|
}, jn$2;
|
|
10838
10838
|
}
|
|
10839
10839
|
var Hn$3, Js$1;
|
|
10840
|
-
function
|
|
10840
|
+
function Ft$2() {
|
|
10841
10841
|
if (Js$1) return Hn$3;
|
|
10842
10842
|
Js$1 = 1;
|
|
10843
10843
|
var r22 = Object.keys || function(f3) {
|
|
@@ -11094,7 +11094,7 @@
|
|
|
11094
11094
|
function Ci$2() {
|
|
11095
11095
|
if (Xs$1) return zn$3;
|
|
11096
11096
|
Xs$1 = 1;
|
|
11097
|
-
var r22 =
|
|
11097
|
+
var r22 = Lt$1().codes.ERR_STREAM_PREMATURE_CLOSE;
|
|
11098
11098
|
function e(s) {
|
|
11099
11099
|
var o = false;
|
|
11100
11100
|
return function() {
|
|
@@ -11288,7 +11288,7 @@
|
|
|
11288
11288
|
var a = ra$1(), u;
|
|
11289
11289
|
a && a.debuglog ? u = a.debuglog("stream") : u = function() {
|
|
11290
11290
|
};
|
|
11291
|
-
var f3 = Gl$2(), l = na$1(), h3 = ia$1(), g = h3.getHighWaterMark, v =
|
|
11291
|
+
var f3 = Gl$2(), l = na$1(), h3 = ia$1(), g = h3.getHighWaterMark, v = Lt$1().codes, A = v.ERR_INVALID_ARG_TYPE, E3 = v.ERR_STREAM_PUSH_AFTER_EOF, F3 = v.ERR_METHOD_NOT_IMPLEMENTED, w = v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, B, R, D3;
|
|
11292
11292
|
bt$2()(C3, t);
|
|
11293
11293
|
var k = l.errorOrDestroy, N3 = ["error", "close", "destroy", "pause", "resume"];
|
|
11294
11294
|
function q3(b, x, _3) {
|
|
@@ -11296,10 +11296,10 @@
|
|
|
11296
11296
|
!b._events || !b._events[x] ? b.on(x, _3) : Array.isArray(b._events[x]) ? b._events[x].unshift(_3) : b._events[x] = [_3, b._events[x]];
|
|
11297
11297
|
}
|
|
11298
11298
|
function M(b, x, _3) {
|
|
11299
|
-
r22 = r22 ||
|
|
11299
|
+
r22 = r22 || Ft$2(), b = b || {}, typeof _3 != "boolean" && (_3 = x instanceof r22), this.objectMode = !!b.objectMode, _3 && (this.objectMode = this.objectMode || !!b.readableObjectMode), this.highWaterMark = g(this, b, "readableHighWaterMark", _3), this.buffer = new f3(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = false, this.endEmitted = false, this.reading = false, this.sync = true, this.needReadable = false, this.emittedReadable = false, this.readableListening = false, this.resumeScheduled = false, this.paused = true, this.emitClose = b.emitClose !== false, this.autoDestroy = !!b.autoDestroy, this.destroyed = false, this.defaultEncoding = b.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = false, this.decoder = null, this.encoding = null, b.encoding && (B || (B = li$2().StringDecoder), this.decoder = new B(b.encoding), this.encoding = b.encoding);
|
|
11300
11300
|
}
|
|
11301
11301
|
function C3(b) {
|
|
11302
|
-
if (r22 = r22 ||
|
|
11302
|
+
if (r22 = r22 || Ft$2(), !(this instanceof C3)) return new C3(b);
|
|
11303
11303
|
var x = this instanceof r22;
|
|
11304
11304
|
this._readableState = new M(b, this, x), this.readable = true, b && (typeof b.read == "function" && (this._read = b.read), typeof b.destroy == "function" && (this._destroy = b.destroy)), t.call(this);
|
|
11305
11305
|
}
|
|
@@ -11611,7 +11611,7 @@
|
|
|
11611
11611
|
function aa$1() {
|
|
11612
11612
|
if (eo$3) return $n$3;
|
|
11613
11613
|
eo$3 = 1, $n$3 = a;
|
|
11614
|
-
var r22 =
|
|
11614
|
+
var r22 = Lt$1().codes, e = r22.ERR_METHOD_NOT_IMPLEMENTED, t = r22.ERR_MULTIPLE_CALLBACK, n = r22.ERR_TRANSFORM_ALREADY_TRANSFORMING, i3 = r22.ERR_TRANSFORM_WITH_LENGTH_0, s = Ft$2();
|
|
11615
11615
|
bt$2()(a, s);
|
|
11616
11616
|
function o(l, h3) {
|
|
11617
11617
|
var g = this._transformState;
|
|
@@ -11691,7 +11691,7 @@
|
|
|
11691
11691
|
v || (v = true, g.apply(void 0, arguments));
|
|
11692
11692
|
};
|
|
11693
11693
|
}
|
|
11694
|
-
var t =
|
|
11694
|
+
var t = Lt$1().codes, n = t.ERR_MISSING_ARGS, i3 = t.ERR_STREAM_DESTROYED;
|
|
11695
11695
|
function s(g) {
|
|
11696
11696
|
if (g) throw g;
|
|
11697
11697
|
}
|
|
@@ -11749,7 +11749,7 @@
|
|
|
11749
11749
|
if (no$3) return Yn$3;
|
|
11750
11750
|
no$3 = 1, Yn$3 = t;
|
|
11751
11751
|
var r22 = xi$2().EventEmitter, e = bt$2();
|
|
11752
|
-
e(t, r22), t.Readable = oa$1(), t.Writable = sa$1(), t.Duplex =
|
|
11752
|
+
e(t, r22), t.Readable = oa$1(), t.Writable = sa$1(), t.Duplex = Ft$2(), t.Transform = aa$1(), t.PassThrough = Xl$2(), t.finished = Ci$2(), t.pipeline = Yl$2(), t.Stream = t;
|
|
11753
11753
|
function t() {
|
|
11754
11754
|
r22.call(this);
|
|
11755
11755
|
}
|
|
@@ -11925,7 +11925,7 @@
|
|
|
11925
11925
|
value: l
|
|
11926
11926
|
}
|
|
11927
11927
|
}), l.prototype.write = function(p3) {
|
|
11928
|
-
if (typeof
|
|
11928
|
+
if (typeof vt$1 == "function" && typeof vt$1.isBuffer == "function" && vt$1.isBuffer(p3)) {
|
|
11929
11929
|
if (!this._decoder) {
|
|
11930
11930
|
var m = li$2().StringDecoder;
|
|
11931
11931
|
this._decoder = new m("utf8");
|
|
@@ -12693,7 +12693,7 @@ Actual: ` + p3.attribValue
|
|
|
12693
12693
|
checkFnExists: function(r22, e) {
|
|
12694
12694
|
return r22 + "Fn" in e;
|
|
12695
12695
|
}
|
|
12696
|
-
}, ec$2 = jo$2, me$1 = Ti$2,
|
|
12696
|
+
}, ec$2 = jo$2, me$1 = Ti$2, St$1 = Si$2.isArray, U$1, le$3;
|
|
12697
12697
|
function tc$1(r22) {
|
|
12698
12698
|
return U$1 = me$1.copyOptions(r22), me$1.ensureFlagExists("ignoreDeclaration", U$1), me$1.ensureFlagExists("ignoreInstruction", U$1), me$1.ensureFlagExists("ignoreAttributes", U$1), me$1.ensureFlagExists("ignoreText", U$1), me$1.ensureFlagExists("ignoreComment", U$1), me$1.ensureFlagExists("ignoreCdata", U$1), me$1.ensureFlagExists("ignoreDoctype", U$1), me$1.ensureFlagExists("compact", U$1), me$1.ensureFlagExists("alwaysChildren", U$1), me$1.ensureFlagExists("addParent", U$1), me$1.ensureFlagExists("trim", U$1), me$1.ensureFlagExists("nativeType", U$1), me$1.ensureFlagExists("nativeTypeAttributes", U$1), me$1.ensureFlagExists("sanitize", U$1), me$1.ensureFlagExists("instructionHasAttributes", U$1), me$1.ensureFlagExists("captureSpacesBetweenElements", U$1), me$1.ensureAlwaysArrayExists(U$1), me$1.ensureKeyExists("declaration", U$1), me$1.ensureKeyExists("instruction", U$1), me$1.ensureKeyExists("attributes", U$1), me$1.ensureKeyExists("text", U$1), me$1.ensureKeyExists("comment", U$1), me$1.ensureKeyExists("cdata", U$1), me$1.ensureKeyExists("doctype", U$1), me$1.ensureKeyExists("type", U$1), me$1.ensureKeyExists("name", U$1), me$1.ensureKeyExists("elements", U$1), me$1.ensureKeyExists("parent", U$1), U$1;
|
|
12699
12699
|
}
|
|
@@ -12707,7 +12707,7 @@ Actual: ` + p3.attribValue
|
|
|
12707
12707
|
function Yt$3(r22, e) {
|
|
12708
12708
|
var t;
|
|
12709
12709
|
if (U$1.compact) {
|
|
12710
|
-
if (!le$3[U$1[r22 + "Key"]] && (
|
|
12710
|
+
if (!le$3[U$1[r22 + "Key"]] && (St$1(U$1.alwaysArray) ? U$1.alwaysArray.indexOf(U$1[r22 + "Key"]) !== -1 : U$1.alwaysArray) && (le$3[U$1[r22 + "Key"]] = []), le$3[U$1[r22 + "Key"]] && !St$1(le$3[U$1[r22 + "Key"]]) && (le$3[U$1[r22 + "Key"]] = [le$3[U$1[r22 + "Key"]]]), r22 + "Fn" in U$1 && typeof e == "string" && (e = U$1[r22 + "Fn"](e, le$3)), r22 === "instruction" && ("instructionFn" in U$1 || "instructionNameFn" in U$1)) {
|
|
12711
12711
|
for (t in e)
|
|
12712
12712
|
if (e.hasOwnProperty(t))
|
|
12713
12713
|
if ("instructionFn" in U$1)
|
|
@@ -12717,7 +12717,7 @@ Actual: ` + p3.attribValue
|
|
|
12717
12717
|
delete e[t], e[U$1.instructionNameFn(t, n, le$3)] = n;
|
|
12718
12718
|
}
|
|
12719
12719
|
}
|
|
12720
|
-
|
|
12720
|
+
St$1(le$3[U$1[r22 + "Key"]]) ? le$3[U$1[r22 + "Key"]].push(e) : le$3[U$1[r22 + "Key"]] = e;
|
|
12721
12721
|
} else {
|
|
12722
12722
|
le$3[U$1.elementsKey] || (le$3[U$1.elementsKey] = []);
|
|
12723
12723
|
var i3 = {};
|
|
@@ -12770,7 +12770,7 @@ Actual: ` + p3.attribValue
|
|
|
12770
12770
|
for (n in e)
|
|
12771
12771
|
e.hasOwnProperty(n) && (t[U$1.attributesKey][n] = e[n]);
|
|
12772
12772
|
}
|
|
12773
|
-
!(r22 in le$3) && (
|
|
12773
|
+
!(r22 in le$3) && (St$1(U$1.alwaysArray) ? U$1.alwaysArray.indexOf(r22) !== -1 : U$1.alwaysArray) && (le$3[r22] = []), le$3[r22] && !St$1(le$3[r22]) && (le$3[r22] = [le$3[r22]]), St$1(le$3[r22]) ? le$3[r22].push(t) : le$3[r22] = t;
|
|
12774
12774
|
} else
|
|
12775
12775
|
le$3[U$1.elementsKey] || (le$3[U$1.elementsKey] = []), t = {}, t[U$1.typeKey] = "element", t[U$1.nameKey] = r22, !U$1.ignoreAttributes && e && Object.keys(e).length && (t[U$1.attributesKey] = e), U$1.alwaysChildren && (t[U$1.elementsKey] = []), le$3[U$1.elementsKey].push(t);
|
|
12776
12776
|
t[U$1.parentKey] = le$3, le$3 = t;
|
|
@@ -12996,7 +12996,7 @@ Actual: ` + p3.attribValue
|
|
|
12996
12996
|
var t = [];
|
|
12997
12997
|
return Re$2 = r22, Pe$1 = "_root_", e.compact ? t.push(ya$2(r22, e, 0, true)) : (r22[e.declarationKey] && t.push(fa$2(r22[e.declarationKey], e, 0)), r22[e.elementsKey] && r22[e.elementsKey].length && t.push(ga$2(r22[e.elementsKey], e, 0, !t.length))), t.join("");
|
|
12998
12998
|
}, yc$2 = ba$2, bc$2 = function(r22, e) {
|
|
12999
|
-
r22 instanceof
|
|
12999
|
+
r22 instanceof vt$1 && (r22 = r22.toString());
|
|
13000
13000
|
var t = null;
|
|
13001
13001
|
if (typeof r22 == "string")
|
|
13002
13002
|
try {
|
|
@@ -16406,7 +16406,7 @@ Actual: ` + p3.attribValue
|
|
|
16406
16406
|
return new ft2(this.pos, this.mark);
|
|
16407
16407
|
}
|
|
16408
16408
|
}
|
|
16409
|
-
return new
|
|
16409
|
+
return new Bt$2(this.pos, this.mark);
|
|
16410
16410
|
}
|
|
16411
16411
|
map(e) {
|
|
16412
16412
|
let t = e.mapResult(this.pos, 1);
|
|
@@ -16425,7 +16425,7 @@ Actual: ` + p3.attribValue
|
|
|
16425
16425
|
}
|
|
16426
16426
|
};
|
|
16427
16427
|
Oe$2.jsonID("addNodeMark", ft$1);
|
|
16428
|
-
let
|
|
16428
|
+
let Bt$2 = class Bt2 extends Oe$2 {
|
|
16429
16429
|
/**
|
|
16430
16430
|
Create a mark-removing step.
|
|
16431
16431
|
*/
|
|
@@ -16445,7 +16445,7 @@ Actual: ` + p3.attribValue
|
|
|
16445
16445
|
}
|
|
16446
16446
|
map(e) {
|
|
16447
16447
|
let t = e.mapResult(this.pos, 1);
|
|
16448
|
-
return t.deletedAfter ? null : new
|
|
16448
|
+
return t.deletedAfter ? null : new Bt2(t.pos, this.mark);
|
|
16449
16449
|
}
|
|
16450
16450
|
toJSON() {
|
|
16451
16451
|
return { stepType: "removeNodeMark", pos: this.pos, mark: this.mark.toJSON() };
|
|
@@ -16456,10 +16456,10 @@ Actual: ` + p3.attribValue
|
|
|
16456
16456
|
static fromJSON(e, t) {
|
|
16457
16457
|
if (typeof t.pos != "number")
|
|
16458
16458
|
throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");
|
|
16459
|
-
return new
|
|
16459
|
+
return new Bt2(t.pos, e.markFromJSON(t.mark));
|
|
16460
16460
|
}
|
|
16461
16461
|
};
|
|
16462
|
-
Oe$2.jsonID("removeNodeMark",
|
|
16462
|
+
Oe$2.jsonID("removeNodeMark", Bt$2);
|
|
16463
16463
|
let Ie$2 = class Ie2 extends Oe$2 {
|
|
16464
16464
|
/**
|
|
16465
16465
|
The given `slice` should fit the 'gap' between `from` and
|
|
@@ -16953,9 +16953,9 @@ Actual: ` + p3.attribValue
|
|
|
16953
16953
|
let { content: e, openStart: t, openEnd: n } = this.unplaced, i3 = ri$1(e, t);
|
|
16954
16954
|
if (i3.childCount <= 1 && t > 0) {
|
|
16955
16955
|
let s = e.size - t <= t + i3.size;
|
|
16956
|
-
this.unplaced = new ae$2(
|
|
16956
|
+
this.unplaced = new ae$2(Ut$2(e, t - 1, 1), t - 1, s ? t - 1 : n);
|
|
16957
16957
|
} else
|
|
16958
|
-
this.unplaced = new ae$2(
|
|
16958
|
+
this.unplaced = new ae$2(Ut$2(e, t, 1), t, n);
|
|
16959
16959
|
}
|
|
16960
16960
|
// Move content from the unplaced slice at `sliceDepth` to the
|
|
16961
16961
|
// frontier node at `frontierDepth`. Close that frontier node when
|
|
@@ -16980,12 +16980,12 @@ Actual: ` + p3.attribValue
|
|
|
16980
16980
|
f3++, (f3 > 1 || u == 0 || E3.content.size) && (h3 = F3, l.push($a$2(E3.mark(g.allowedMarks(E3.marks)), f3 == 1 ? u : 0, f3 == a.childCount ? v : -1)));
|
|
16981
16981
|
}
|
|
16982
16982
|
let A = f3 == a.childCount;
|
|
16983
|
-
A || (v = -1), this.placed =
|
|
16983
|
+
A || (v = -1), this.placed = jt$3(this.placed, t, ee$2.from(l)), this.frontier[t].match = h3, A && v < 0 && n && n.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
|
|
16984
16984
|
for (let E3 = 0, F3 = a; E3 < v; E3++) {
|
|
16985
16985
|
let w = F3.lastChild;
|
|
16986
16986
|
this.frontier.push({ type: w.type, match: w.contentMatchAt(w.childCount) }), F3 = w.content;
|
|
16987
16987
|
}
|
|
16988
|
-
this.unplaced = A ? e == 0 ? ae$2.empty : new ae$2(
|
|
16988
|
+
this.unplaced = A ? e == 0 ? ae$2.empty : new ae$2(Ut$2(o.content, e - 1, 1), e - 1, v < 0 ? o.openEnd : e - 1) : new ae$2(Ut$2(o.content, e, f3), o.openStart, o.openEnd);
|
|
16989
16989
|
}
|
|
16990
16990
|
mustMoveInline() {
|
|
16991
16991
|
if (!this.$to.parent.isTextblock)
|
|
@@ -17017,7 +17017,7 @@ Actual: ` + p3.attribValue
|
|
|
17017
17017
|
return null;
|
|
17018
17018
|
for (; this.depth > t.depth; )
|
|
17019
17019
|
this.closeFrontierNode();
|
|
17020
|
-
t.fit.childCount && (this.placed =
|
|
17020
|
+
t.fit.childCount && (this.placed = jt$3(this.placed, t.depth, t.fit)), e = t.move;
|
|
17021
17021
|
for (let n = t.depth + 1; n <= e.depth; n++) {
|
|
17022
17022
|
let i3 = e.node(n), s = i3.type.contentMatch.fillBefore(i3.content, true, e.index(n));
|
|
17023
17023
|
this.openFrontierNode(i3.type, i3.attrs, s);
|
|
@@ -17026,18 +17026,18 @@ Actual: ` + p3.attribValue
|
|
|
17026
17026
|
}
|
|
17027
17027
|
openFrontierNode(e, t = null, n) {
|
|
17028
17028
|
let i3 = this.frontier[this.depth];
|
|
17029
|
-
i3.match = i3.match.matchType(e), this.placed =
|
|
17029
|
+
i3.match = i3.match.matchType(e), this.placed = jt$3(this.placed, this.depth, ee$2.from(e.create(t, n))), this.frontier.push({ type: e, match: e.contentMatch });
|
|
17030
17030
|
}
|
|
17031
17031
|
closeFrontierNode() {
|
|
17032
17032
|
let t = this.frontier.pop().match.fillBefore(ee$2.empty, true);
|
|
17033
|
-
t.childCount && (this.placed =
|
|
17033
|
+
t.childCount && (this.placed = jt$3(this.placed, this.frontier.length, t));
|
|
17034
17034
|
}
|
|
17035
17035
|
};
|
|
17036
|
-
function Mt(r22, e, t) {
|
|
17037
|
-
return e == 0 ? r22.cutByIndex(t, r22.childCount) : r22.replaceChild(0, r22.firstChild.copy(Mt(r22.firstChild.content, e - 1, t)));
|
|
17038
|
-
}
|
|
17039
17036
|
function Ut$2(r22, e, t) {
|
|
17040
|
-
return e == 0 ? r22.
|
|
17037
|
+
return e == 0 ? r22.cutByIndex(t, r22.childCount) : r22.replaceChild(0, r22.firstChild.copy(Ut$2(r22.firstChild.content, e - 1, t)));
|
|
17038
|
+
}
|
|
17039
|
+
function jt$3(r22, e, t) {
|
|
17040
|
+
return e == 0 ? r22.append(t) : r22.replaceChild(r22.childCount - 1, r22.lastChild.copy(jt$3(r22.lastChild.content, e - 1, t)));
|
|
17041
17041
|
}
|
|
17042
17042
|
function ri$1(r22, e) {
|
|
17043
17043
|
for (let t = 0; t < e; t++)
|
|
@@ -17155,7 +17155,7 @@ Actual: ` + p3.attribValue
|
|
|
17155
17155
|
}
|
|
17156
17156
|
return t;
|
|
17157
17157
|
}
|
|
17158
|
-
let
|
|
17158
|
+
let Tt$2 = class Tt2 extends Oe$2 {
|
|
17159
17159
|
/**
|
|
17160
17160
|
Construct an attribute step.
|
|
17161
17161
|
*/
|
|
@@ -17177,11 +17177,11 @@ Actual: ` + p3.attribValue
|
|
|
17177
17177
|
return je$3.empty;
|
|
17178
17178
|
}
|
|
17179
17179
|
invert(e) {
|
|
17180
|
-
return new
|
|
17180
|
+
return new Tt2(this.pos, this.attr, e.nodeAt(this.pos).attrs[this.attr]);
|
|
17181
17181
|
}
|
|
17182
17182
|
map(e) {
|
|
17183
17183
|
let t = e.mapResult(this.pos, 1);
|
|
17184
|
-
return t.deletedAfter ? null : new
|
|
17184
|
+
return t.deletedAfter ? null : new Tt2(t.pos, this.attr, this.value);
|
|
17185
17185
|
}
|
|
17186
17186
|
toJSON() {
|
|
17187
17187
|
return { stepType: "attr", pos: this.pos, attr: this.attr, value: this.value };
|
|
@@ -17189,10 +17189,10 @@ Actual: ` + p3.attribValue
|
|
|
17189
17189
|
static fromJSON(e, t) {
|
|
17190
17190
|
if (typeof t.pos != "number" || typeof t.attr != "string")
|
|
17191
17191
|
throw new RangeError("Invalid input for AttrStep.fromJSON");
|
|
17192
|
-
return new
|
|
17192
|
+
return new Tt2(t.pos, t.attr, t.value);
|
|
17193
17193
|
}
|
|
17194
17194
|
};
|
|
17195
|
-
Oe$2.jsonID("attr",
|
|
17195
|
+
Oe$2.jsonID("attr", Tt$2);
|
|
17196
17196
|
let Wt$2 = class Wt2 extends Oe$2 {
|
|
17197
17197
|
/**
|
|
17198
17198
|
Construct an attribute step.
|
|
@@ -17227,15 +17227,15 @@ Actual: ` + p3.attribValue
|
|
|
17227
17227
|
}
|
|
17228
17228
|
};
|
|
17229
17229
|
Oe$2.jsonID("docAttr", Wt$2);
|
|
17230
|
-
let
|
|
17230
|
+
let kt$3 = class kt extends Error {
|
|
17231
17231
|
};
|
|
17232
|
-
|
|
17232
|
+
kt$3 = function r(e) {
|
|
17233
17233
|
let t = Error.call(this, e);
|
|
17234
17234
|
return t.__proto__ = r.prototype, t;
|
|
17235
17235
|
};
|
|
17236
|
-
|
|
17237
|
-
|
|
17238
|
-
|
|
17236
|
+
kt$3.prototype = Object.create(Error.prototype);
|
|
17237
|
+
kt$3.prototype.constructor = kt$3;
|
|
17238
|
+
kt$3.prototype.name = "TransformError";
|
|
17239
17239
|
let Sf$1 = class Sf {
|
|
17240
17240
|
/**
|
|
17241
17241
|
Create a transform that starts with the given document.
|
|
@@ -17256,7 +17256,7 @@ Actual: ` + p3.attribValue
|
|
|
17256
17256
|
step(e) {
|
|
17257
17257
|
let t = this.maybeStep(e);
|
|
17258
17258
|
if (t.failed)
|
|
17259
|
-
throw new
|
|
17259
|
+
throw new kt$3(t.failed);
|
|
17260
17260
|
return this;
|
|
17261
17261
|
}
|
|
17262
17262
|
/**
|
|
@@ -17393,7 +17393,7 @@ Actual: ` + p3.attribValue
|
|
|
17393
17393
|
to set attributes on the document itself.
|
|
17394
17394
|
*/
|
|
17395
17395
|
setNodeAttribute(e, t, n) {
|
|
17396
|
-
return this.step(new
|
|
17396
|
+
return this.step(new Tt$2(e, t, n)), this;
|
|
17397
17397
|
}
|
|
17398
17398
|
/**
|
|
17399
17399
|
Set a single attribute on the document to a new value.
|
|
@@ -17419,7 +17419,7 @@ Actual: ` + p3.attribValue
|
|
|
17419
17419
|
if (t = t.isInSet(n.marks), !t)
|
|
17420
17420
|
return this;
|
|
17421
17421
|
}
|
|
17422
|
-
return this.step(new
|
|
17422
|
+
return this.step(new Bt$2(e, t)), this;
|
|
17423
17423
|
}
|
|
17424
17424
|
/**
|
|
17425
17425
|
Split the node at the given position, and optionally, if `depth` is
|
|
@@ -18006,13 +18006,13 @@ Actual: ` + p3.attribValue
|
|
|
18006
18006
|
function vo$2(r22, e) {
|
|
18007
18007
|
return !e || !r22 ? r22 : r22.bind(e);
|
|
18008
18008
|
}
|
|
18009
|
-
let
|
|
18009
|
+
let Ht$1 = class Ht {
|
|
18010
18010
|
constructor(e, t, n) {
|
|
18011
18011
|
this.name = e, this.init = vo$2(t.init, n), this.apply = vo$2(t.apply, n);
|
|
18012
18012
|
}
|
|
18013
18013
|
};
|
|
18014
18014
|
const kf$1 = [
|
|
18015
|
-
new
|
|
18015
|
+
new Ht$1("doc", {
|
|
18016
18016
|
init(r22) {
|
|
18017
18017
|
return r22.doc || r22.schema.topNodeType.createAndFill();
|
|
18018
18018
|
},
|
|
@@ -18020,7 +18020,7 @@ Actual: ` + p3.attribValue
|
|
|
18020
18020
|
return r22.doc;
|
|
18021
18021
|
}
|
|
18022
18022
|
}),
|
|
18023
|
-
new
|
|
18023
|
+
new Ht$1("selection", {
|
|
18024
18024
|
init(r22, e) {
|
|
18025
18025
|
return r22.selection || ve$2.atStart(e.doc);
|
|
18026
18026
|
},
|
|
@@ -18028,7 +18028,7 @@ Actual: ` + p3.attribValue
|
|
|
18028
18028
|
return r22.selection;
|
|
18029
18029
|
}
|
|
18030
18030
|
}),
|
|
18031
|
-
new
|
|
18031
|
+
new Ht$1("storedMarks", {
|
|
18032
18032
|
init(r22) {
|
|
18033
18033
|
return r22.storedMarks || null;
|
|
18034
18034
|
},
|
|
@@ -18036,7 +18036,7 @@ Actual: ` + p3.attribValue
|
|
|
18036
18036
|
return n.selection.$cursor ? r22.storedMarks : null;
|
|
18037
18037
|
}
|
|
18038
18038
|
}),
|
|
18039
|
-
new
|
|
18039
|
+
new Ht$1("scrollToSelection", {
|
|
18040
18040
|
init() {
|
|
18041
18041
|
return 0;
|
|
18042
18042
|
},
|
|
@@ -18050,7 +18050,7 @@ Actual: ` + p3.attribValue
|
|
|
18050
18050
|
this.schema = e, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = kf$1.slice(), t && t.forEach((n) => {
|
|
18051
18051
|
if (this.pluginsByKey[n.key])
|
|
18052
18052
|
throw new RangeError("Adding different instances of a keyed plugin (" + n.key + ")");
|
|
18053
|
-
this.plugins.push(n), this.pluginsByKey[n.key] = n, n.spec.state && this.fields.push(new
|
|
18053
|
+
this.plugins.push(n), this.pluginsByKey[n.key] = n, n.spec.state && this.fields.push(new Ht$1(n.key, n.spec.state, n));
|
|
18054
18054
|
});
|
|
18055
18055
|
}
|
|
18056
18056
|
};
|
|
@@ -18314,7 +18314,7 @@ Actual: ` + p3.attribValue
|
|
|
18314
18314
|
function Wp$1(r22 = 0, e = 0, t = 0) {
|
|
18315
18315
|
return Math.min(Math.max(r22, e), t);
|
|
18316
18316
|
}
|
|
18317
|
-
function
|
|
18317
|
+
function Nt$3(r22) {
|
|
18318
18318
|
if (r22 != null)
|
|
18319
18319
|
return typeof r22 == "string" && (r22 = parseFloat(r22)), Math.round(r22 * 1440);
|
|
18320
18320
|
}
|
|
@@ -18328,7 +18328,7 @@ Actual: ` + p3.attribValue
|
|
|
18328
18328
|
}
|
|
18329
18329
|
function Te$1(r22) {
|
|
18330
18330
|
if (r22 != null)
|
|
18331
|
-
return r22 = r22 / 96,
|
|
18331
|
+
return r22 = r22 / 96, Nt$3(r22);
|
|
18332
18332
|
}
|
|
18333
18333
|
function Ii$2(r22) {
|
|
18334
18334
|
if (r22 != null)
|
|
@@ -18348,7 +18348,7 @@ Actual: ` + p3.attribValue
|
|
|
18348
18348
|
const e = r22 * 96 / 914400;
|
|
18349
18349
|
return Math.round(e);
|
|
18350
18350
|
}
|
|
18351
|
-
function
|
|
18351
|
+
function Mt(r22) {
|
|
18352
18352
|
if (r22 != null)
|
|
18353
18353
|
return typeof r22 == "string" && (r22 = parseFloat(r22)), Math.round(r22 * 9525);
|
|
18354
18354
|
}
|
|
@@ -18367,7 +18367,20 @@ Actual: ` + p3.attribValue
|
|
|
18367
18367
|
if (r22 != null)
|
|
18368
18368
|
return r22 * 20;
|
|
18369
18369
|
}
|
|
18370
|
-
const qf$2 = async (r22) =>
|
|
18370
|
+
const qf$2 = async (r22) => {
|
|
18371
|
+
const e = r22.includes(",") ? r22.split(",", 2)[1] : r22;
|
|
18372
|
+
if (typeof globalThis.atob == "function") {
|
|
18373
|
+
const n = globalThis.atob(e), i3 = n.length, s = new Uint8Array(i3);
|
|
18374
|
+
for (let o = 0; o < i3; o++)
|
|
18375
|
+
s[o] = n.charCodeAt(o);
|
|
18376
|
+
return s.buffer;
|
|
18377
|
+
}
|
|
18378
|
+
const t = vt$1.from(e, "base64");
|
|
18379
|
+
return t.buffer.slice(
|
|
18380
|
+
t.byteOffset,
|
|
18381
|
+
t.byteOffset + t.byteLength
|
|
18382
|
+
);
|
|
18383
|
+
}, Jp$1 = (r22) => {
|
|
18371
18384
|
const n = new window.DOMParser().parseFromString(r22, "text/xml").querySelectorAll("Default");
|
|
18372
18385
|
return Array.from(n).map((i3) => i3.getAttribute("Extension"));
|
|
18373
18386
|
}, Mf$1 = (r22) => (/* @__PURE__ */ new Map([
|
|
@@ -21062,7 +21075,7 @@ Actual: ` + p3.attribValue
|
|
|
21062
21075
|
colgroupValues: g
|
|
21063
21076
|
};
|
|
21064
21077
|
};
|
|
21065
|
-
function
|
|
21078
|
+
function _t$2(r22) {
|
|
21066
21079
|
const { type: e } = r22.node || {}, t = {
|
|
21067
21080
|
doc: gd$2,
|
|
21068
21081
|
body: pd$2,
|
|
@@ -21093,7 +21106,7 @@ Actual: ` + p3.attribValue
|
|
|
21093
21106
|
if (r22.converter) {
|
|
21094
21107
|
const n = r22.converter.pageStyles.pageMargins, i3 = e.elements.find((o) => o.name === "w:pgMar"), { attributes: s } = i3;
|
|
21095
21108
|
Object.entries(n).forEach(([o, a]) => {
|
|
21096
|
-
const u =
|
|
21109
|
+
const u = Nt$3(a);
|
|
21097
21110
|
s[`w:${o}`] = u;
|
|
21098
21111
|
}), i3.attributes = s;
|
|
21099
21112
|
}
|
|
@@ -21139,7 +21152,7 @@ Actual: ` + p3.attribValue
|
|
|
21139
21152
|
}
|
|
21140
21153
|
if (s) {
|
|
21141
21154
|
const { left: A, right: E3, firstLine: F3, hanging: w } = s, B = {};
|
|
21142
|
-
(A || A === 0) && (B["w:left"] = Te$1(A)), (E3 || E3 === 0) && (B["w:right"] = Te$1(E3)), (F3 || F3 === 0) && (B["w:firstLine"] = Te$1(F3)), (w || w === 0) && (B["w:hanging"] = Te$1(w)), a && !B["w:left"] && (B["w:left"] =
|
|
21155
|
+
(A || A === 0) && (B["w:left"] = Te$1(A)), (E3 || E3 === 0) && (B["w:right"] = Te$1(E3)), (F3 || F3 === 0) && (B["w:firstLine"] = Te$1(F3)), (w || w === 0) && (B["w:hanging"] = Te$1(w)), a && !B["w:left"] && (B["w:left"] = Nt$3(a));
|
|
21143
21156
|
const R = {
|
|
21144
21157
|
name: "w:ind",
|
|
21145
21158
|
attributes: B
|
|
@@ -21149,7 +21162,7 @@ Actual: ` + p3.attribValue
|
|
|
21149
21162
|
const A = {
|
|
21150
21163
|
name: "w:ind",
|
|
21151
21164
|
attributes: {
|
|
21152
|
-
"w:left":
|
|
21165
|
+
"w:left": Nt$3(a)
|
|
21153
21166
|
}
|
|
21154
21167
|
};
|
|
21155
21168
|
t.push(A);
|
|
@@ -21194,7 +21207,7 @@ Actual: ` + p3.attribValue
|
|
|
21194
21207
|
};
|
|
21195
21208
|
return [{
|
|
21196
21209
|
name: "w:document",
|
|
21197
|
-
elements: [
|
|
21210
|
+
elements: [_t$2({ ...r22, node: e })],
|
|
21198
21211
|
attributes: zf$1
|
|
21199
21212
|
}, r22];
|
|
21200
21213
|
}
|
|
@@ -21203,7 +21216,7 @@ Actual: ` + p3.attribValue
|
|
|
21203
21216
|
if (!e) return [];
|
|
21204
21217
|
const t = [];
|
|
21205
21218
|
return e.forEach((n) => {
|
|
21206
|
-
const i3 =
|
|
21219
|
+
const i3 = _t$2({ ...r22, node: n });
|
|
21207
21220
|
i3 instanceof Array ? t.push(...i3) : t.push(i3);
|
|
21208
21221
|
}), t.filter((n) => n);
|
|
21209
21222
|
}
|
|
@@ -21267,7 +21280,7 @@ Actual: ` + p3.attribValue
|
|
|
21267
21280
|
function bd$2(r22) {
|
|
21268
21281
|
const { node: e } = r22, t = e.marks, n = [xr$2, Pi$2, Oi$2], i3 = t.find((f3) => n.includes(f3.type)), s = i3.type === xr$2, o = yd$2(t);
|
|
21269
21282
|
e.marks = t.filter((f3) => !n.includes(f3.type)), o && e.marks.push(o);
|
|
21270
|
-
const a =
|
|
21283
|
+
const a = _t$2({ ...r22, node: e });
|
|
21271
21284
|
if (!s) {
|
|
21272
21285
|
const f3 = a.elements.find((l) => l.name === "w:t");
|
|
21273
21286
|
f3.name = "w:delText";
|
|
@@ -21307,7 +21320,7 @@ Actual: ` + p3.attribValue
|
|
|
21307
21320
|
const { node: e } = r22, t = e.marks.find((a) => a.type === "link"), n = t.attrs.href;
|
|
21308
21321
|
let i3 = t.attrs.rId;
|
|
21309
21322
|
i3 || (i3 = uu$2(r22, n)), e.marks = e.marks.filter((a) => a.type !== "link");
|
|
21310
|
-
const s =
|
|
21323
|
+
const s = _t$2({ ...r22, node: e });
|
|
21311
21324
|
return {
|
|
21312
21325
|
name: "w:hyperlink",
|
|
21313
21326
|
type: "element",
|
|
@@ -21352,7 +21365,7 @@ Actual: ` + p3.attribValue
|
|
|
21352
21365
|
...F3.attrs,
|
|
21353
21366
|
...i3.attrs
|
|
21354
21367
|
};
|
|
21355
|
-
const w =
|
|
21368
|
+
const w = _t$2({ ...r22, node: F3 });
|
|
21356
21369
|
w.elements || (w.elements = []);
|
|
21357
21370
|
const B = w.elements.findIndex((N3) => N3.name === "w:pPr");
|
|
21358
21371
|
if (!w.elements.filter((N3) => N3.name !== "w:pPr").length) {
|
|
@@ -21627,7 +21640,7 @@ Actual: ` + p3.attribValue
|
|
|
21627
21640
|
function Od$2(r22) {
|
|
21628
21641
|
const e = [], { attrs: t } = r22, { colwidth: n = [], cellWidthType: i3 = "dxa", background: s = {}, colspan: o, rowspan: a, widthUnit: u } = t, f3 = n.reduce((E3, F3) => E3 + F3, 0), l = {
|
|
21629
21642
|
name: "w:tcW",
|
|
21630
|
-
attributes: { "w:w": u === "px" ? Te$1(f3) :
|
|
21643
|
+
attributes: { "w:w": u === "px" ? Te$1(f3) : Nt$3(f3), "w:type": i3 }
|
|
21631
21644
|
};
|
|
21632
21645
|
if (e.push(l), o) {
|
|
21633
21646
|
const E3 = {
|
|
@@ -21720,7 +21733,7 @@ Actual: ` + p3.attribValue
|
|
|
21720
21733
|
return [e, t];
|
|
21721
21734
|
}
|
|
21722
21735
|
function Bo$2(r22) {
|
|
21723
|
-
const e =
|
|
21736
|
+
const e = Pt$2.markTypes.find((s) => s.type === r22.type);
|
|
21724
21737
|
if (!e)
|
|
21725
21738
|
return {};
|
|
21726
21739
|
const t = { name: e.name, attributes: {} }, { attrs: n } = r22;
|
|
@@ -21749,7 +21762,7 @@ Actual: ` + p3.attribValue
|
|
|
21749
21762
|
t.attributes["w:val"] = n.textAlign;
|
|
21750
21763
|
break;
|
|
21751
21764
|
case "textIndent":
|
|
21752
|
-
t.attributes["w:firstline"] =
|
|
21765
|
+
t.attributes["w:firstline"] = Nt$3(n.textIndent);
|
|
21753
21766
|
break;
|
|
21754
21767
|
case "lineHeight":
|
|
21755
21768
|
t.attributes["w:line"] = pi$2(n.lineHeight);
|
|
@@ -21786,18 +21799,18 @@ Actual: ` + p3.attribValue
|
|
|
21786
21799
|
let s = t.rId;
|
|
21787
21800
|
const o = t.src || t.imageSrc, { originalWidth: a, originalHeight: u } = qd$2(o);
|
|
21788
21801
|
let f3 = t.size ? {
|
|
21789
|
-
w:
|
|
21790
|
-
h:
|
|
21802
|
+
w: Mt(t.size.width),
|
|
21803
|
+
h: Mt(t.size.height)
|
|
21791
21804
|
} : e;
|
|
21792
21805
|
if (a && u) {
|
|
21793
21806
|
const v = Me$2(f3.w), A = Me$2(f3.h), { scaledWidth: E3, scaledHeight: F3 } = Md$2(a, u, v, A);
|
|
21794
21807
|
f3 = {
|
|
21795
|
-
w:
|
|
21796
|
-
h:
|
|
21808
|
+
w: Mt(E3),
|
|
21809
|
+
h: Mt(F3)
|
|
21797
21810
|
};
|
|
21798
21811
|
}
|
|
21799
21812
|
if (i3) {
|
|
21800
|
-
const v = i3.attrs.colwidth.reduce((R, D3) => R + D3, 0), A = i3.attrs.cellMargins?.left || 8, E3 = i3.attrs.cellMargins?.right || 8, F3 =
|
|
21813
|
+
const v = i3.attrs.colwidth.reduce((R, D3) => R + D3, 0), A = i3.attrs.cellMargins?.left || 8, E3 = i3.attrs.cellMargins?.right || 8, F3 = Mt(v - (A + E3)), { width: w, height: B } = Xd$2(f3.w, f3.h, F3);
|
|
21801
21814
|
w && B && (f3 = { w, h: B });
|
|
21802
21815
|
}
|
|
21803
21816
|
if (r22.node.type === "image" && !s) {
|
|
@@ -22493,10 +22506,10 @@ Actual: ` + p3.attribValue
|
|
|
22493
22506
|
handlerName: "drawingNodeHandler",
|
|
22494
22507
|
handler: am$1
|
|
22495
22508
|
};
|
|
22496
|
-
function
|
|
22509
|
+
function It$1(r22, e = [], t = null) {
|
|
22497
22510
|
const n = [], i3 = /* @__PURE__ */ new Set();
|
|
22498
22511
|
return r22?.elements?.forEach((s) => {
|
|
22499
|
-
const o =
|
|
22512
|
+
const o = Pt$2.markTypes.filter((a) => a.name === s.name);
|
|
22500
22513
|
o.length || [
|
|
22501
22514
|
"w:shd",
|
|
22502
22515
|
"w:rStyle",
|
|
@@ -22534,7 +22547,7 @@ Actual: ` + p3.attribValue
|
|
|
22534
22547
|
date: n["w:date"],
|
|
22535
22548
|
author: n["w:author"],
|
|
22536
22549
|
authorEmail: n["w:authorEmail"]
|
|
22537
|
-
}, s =
|
|
22550
|
+
}, s = It$1(t);
|
|
22538
22551
|
return [{ type: Oi$2, attrs: { ...i3, before: s, after: [...e] } }];
|
|
22539
22552
|
}
|
|
22540
22553
|
function wi$2(r22) {
|
|
@@ -22586,7 +22599,7 @@ Actual: ` + p3.attribValue
|
|
|
22586
22599
|
}
|
|
22587
22600
|
function yt$2(r22, e) {
|
|
22588
22601
|
const t = [], n = [], { attributes: i3 = {}, elements: s = [] } = r22, { nodes: o, paragraphProperties: a = {}, runProperties: u = {} } = wm$1(s);
|
|
22589
|
-
return s.find((l) => l.name === "w:r") && (a.elements = a?.elements?.filter((l) => l.name !== "w:rPr")), u && u?.elements?.length && t.push(...
|
|
22602
|
+
return s.find((l) => l.name === "w:r") && (a.elements = a?.elements?.filter((l) => l.name !== "w:rPr")), u && u?.elements?.length && t.push(...It$1(u, n)), a && a.elements?.length && t.push(...It$1(a, n)), t.push(...fm$1(u, t)), a && a.elements?.length && (i3.paragraphProperties = a), t && r22.name === "w:p" && t.forEach((l) => {
|
|
22590
22603
|
const h3 = Object.keys(l.attrs ?? {})[0];
|
|
22591
22604
|
if (h3) {
|
|
22592
22605
|
const g = l.attrs[h3];
|
|
@@ -22604,9 +22617,9 @@ Actual: ` + p3.attribValue
|
|
|
22604
22617
|
};
|
|
22605
22618
|
}
|
|
22606
22619
|
function fr$1(r22) {
|
|
22607
|
-
return
|
|
22620
|
+
return Pt$2.allowedElements[r22.name || r22.type];
|
|
22608
22621
|
}
|
|
22609
|
-
const ym$1 = (r22) => !!
|
|
22622
|
+
const ym$1 = (r22) => !!Pt$2.propertyTypes[r22.name || r22.type];
|
|
22610
22623
|
function hu$2(r22) {
|
|
22611
22624
|
return r22.filter((n) => n.name === "w:r").some((n) => n.elements.some((i3) => i3.name === "w:t"));
|
|
22612
22625
|
}
|
|
@@ -22758,7 +22771,7 @@ Actual: ` + p3.attribValue
|
|
|
22758
22771
|
if (!A)
|
|
22759
22772
|
return console.error("Standard node handler not found"), { nodes: [], consumed: 0 };
|
|
22760
22773
|
const w = r22[0].elements.find((k) => k.name === "w:pPr")?.elements?.find((k) => k.name === "w:pStyle")?.attributes["w:val"], B = Nr$1({ node: r22[0], styleId: w, docx: u });
|
|
22761
|
-
s =
|
|
22774
|
+
s = Rt$1(B), i3 = parseInt(B?.elements?.find((k) => k.name === "w:ilvl")?.attributes["w:val"]) || 0, i3 === void 0 && (i3 = yu$1(w, u));
|
|
22762
22775
|
let R = 0;
|
|
22763
22776
|
for (let [k, N3] of r22.entries()) {
|
|
22764
22777
|
if (N3.seen) continue;
|
|
@@ -22874,20 +22887,20 @@ Actual: ` + p3.attribValue
|
|
|
22874
22887
|
const { elements: t } = r22, n = t?.find((u) => u.name === "w:pPr");
|
|
22875
22888
|
if (!n) return false;
|
|
22876
22889
|
const i3 = n.elements?.find((u) => u.name === "w:pStyle");
|
|
22877
|
-
let s = n.elements?.find((u) => u.name === "w:numPr"), o =
|
|
22890
|
+
let s = n.elements?.find((u) => u.name === "w:numPr"), o = Rt$1(s);
|
|
22878
22891
|
const a = i3?.attributes["w:val"];
|
|
22879
|
-
return a && !o && (s = Nr$1({ node: r22, styleId: a, docx: e }), o =
|
|
22892
|
+
return a && !o && (s = Nr$1({ node: r22, styleId: a, docx: e }), o = Rt$1(s)), !!o;
|
|
22880
22893
|
}
|
|
22881
|
-
const
|
|
22894
|
+
const Rt$1 = (r22) => r22?.elements?.find((e) => e.name === "w:numId")?.attributes["w:val"];
|
|
22882
22895
|
function Li$2(r22, e) {
|
|
22883
22896
|
const t = e["word/styles.xml"];
|
|
22884
22897
|
return t ? t.elements.find((o) => o.name === "w:styles").elements.filter((o) => o.name === "w:style").find((o) => o.attributes["w:styleId"] === r22) : {};
|
|
22885
22898
|
}
|
|
22886
22899
|
function Nr$1({ node: r22, styleId: e, docx: t, seenStyleIds: n = /* @__PURE__ */ new Set() }) {
|
|
22887
|
-
let o = r22?.elements?.find((h3) => h3.name === "w:pPr")?.elements?.find((h3) => h3.name === "w:numPr"), a =
|
|
22900
|
+
let o = r22?.elements?.find((h3) => h3.name === "w:pPr")?.elements?.find((h3) => h3.name === "w:numPr"), a = Rt$1(o);
|
|
22888
22901
|
if (a) return o;
|
|
22889
22902
|
const u = Li$2(e, t);
|
|
22890
|
-
o = u?.elements?.find((h3) => h3.name === "w:pPr")?.elements?.find((h3) => h3.name === "w:numPr"), a =
|
|
22903
|
+
o = u?.elements?.find((h3) => h3.name === "w:pPr")?.elements?.find((h3) => h3.name === "w:numPr"), a = Rt$1(o);
|
|
22891
22904
|
const l = u?.elements?.find((h3) => h3.name === "w:basedOn");
|
|
22892
22905
|
if (!a && !n.has(e)) {
|
|
22893
22906
|
const h3 = l?.attributes["w:val"];
|
|
@@ -22951,7 +22964,7 @@ Actual: ` + p3.attribValue
|
|
|
22951
22964
|
if (!o) return null;
|
|
22952
22965
|
let a = o?.elements?.find((E3) => E3.name === "w:numPr");
|
|
22953
22966
|
if (!a) return null;
|
|
22954
|
-
let u = a?.elements?.find((E3) => E3.name === "w:numId") || {}, f3 =
|
|
22967
|
+
let u = a?.elements?.find((E3) => E3.name === "w:numId") || {}, f3 = Rt$1(a), l = a?.elements?.find((E3) => E3.name === "w:ilvl"), h3 = l?.attributes?.["w:val"];
|
|
22955
22968
|
const v = s?.elements?.find((E3) => E3.name === "w:basedOn")?.attributes?.["w:val"];
|
|
22956
22969
|
let A = 0;
|
|
22957
22970
|
for (; a && !f3 && A < 10; )
|
|
@@ -23056,7 +23069,7 @@ Actual: ` + p3.attribValue
|
|
|
23056
23069
|
l.nodes.length === 1 && (o = l.nodes[0]);
|
|
23057
23070
|
const h3 = s.elements?.find((D3) => D3.name === "w:pPr"), g = h3?.elements?.find((D3) => D3.name === "w:pStyle"), v = h3?.elements?.find((D3) => D3.name === "w:rPr"), A = h3?.elements?.find((D3) => D3.name === "w:framePr");
|
|
23058
23071
|
if (v) {
|
|
23059
|
-
let D3 =
|
|
23072
|
+
let D3 = It$1(v, []);
|
|
23060
23073
|
if (!o.content?.length) {
|
|
23061
23074
|
let k = D3?.findIndex((N3) => N3.type === "highlight");
|
|
23062
23075
|
k !== -1 && D3.splice(k, 1);
|
|
@@ -23167,7 +23180,7 @@ Actual: ` + p3.attribValue
|
|
|
23167
23180
|
outlineLevel: N3 ? parseInt(q3) : null,
|
|
23168
23181
|
pageBreakBefore: !!C3,
|
|
23169
23182
|
pageBreakAfter: !!oe2
|
|
23170
|
-
}, ce2 = o.elements.find((ie2) => ie2.name === "w:rPr"), de2 =
|
|
23183
|
+
}, ce2 = o.elements.find((ie2) => ie2.name === "w:rPr"), de2 = It$1(ce2, [], e) || {}, Y3 = {
|
|
23171
23184
|
spacing: { lineSpaceAfter: A, lineSpaceBefore: v, line: E3 },
|
|
23172
23185
|
textAlign: F3,
|
|
23173
23186
|
indent: { leftIndent: w, rightIndent: B, firstLine: R }
|
|
@@ -23295,7 +23308,7 @@ Actual: ` + p3.attribValue
|
|
|
23295
23308
|
}, Gm$1 = (r22 = {}) => {
|
|
23296
23309
|
const t = r22.elements?.find((a) => a.name === "w:r")?.elements?.find((a) => a.name === "w:rPr");
|
|
23297
23310
|
if (!t) return {};
|
|
23298
|
-
const i3 =
|
|
23311
|
+
const i3 = It$1(t, []) || [], s = [];
|
|
23299
23312
|
i3.forEach((a) => {
|
|
23300
23313
|
const { type: u } = a;
|
|
23301
23314
|
if (u === "textStyle") {
|
|
@@ -23903,7 +23916,7 @@ Actual: ` + p3.attribValue
|
|
|
23903
23916
|
return;
|
|
23904
23917
|
}
|
|
23905
23918
|
}
|
|
23906
|
-
static updateDocumentVersion(e = this.convertedXml, t = "0.10.
|
|
23919
|
+
static updateDocumentVersion(e = this.convertedXml, t = "0.10.59") {
|
|
23907
23920
|
const n = "docProps/custom.xml";
|
|
23908
23921
|
e[n] || (e[n] = Fu$2());
|
|
23909
23922
|
const i3 = e["docProps/custom.xml"];
|
|
@@ -24044,7 +24057,7 @@ Actual: ` + p3.attribValue
|
|
|
24044
24057
|
isFinalDoc: o = false,
|
|
24045
24058
|
editor: a
|
|
24046
24059
|
}) {
|
|
24047
|
-
const u = this.savedTagsToRestore.find((h3) => h3.name === "w:body"), [f3, l] =
|
|
24060
|
+
const u = this.savedTagsToRestore.find((h3) => h3.name === "w:body"), [f3, l] = _t$2({
|
|
24048
24061
|
node: e,
|
|
24049
24062
|
bodyNode: u,
|
|
24050
24063
|
relationships: [],
|
|
@@ -24099,7 +24112,7 @@ Actual: ` + p3.attribValue
|
|
|
24099
24112
|
...this.convertedXml.media,
|
|
24100
24113
|
...t
|
|
24101
24114
|
}, this.media = this.convertedXml.media, this.addedMedia = t;
|
|
24102
|
-
},
|
|
24115
|
+
}, qt$2(mt$3, "allowedElements", Object.freeze({
|
|
24103
24116
|
"w:document": "doc",
|
|
24104
24117
|
"w:body": "body",
|
|
24105
24118
|
"w:p": "paragraph",
|
|
@@ -24120,7 +24133,7 @@ Actual: ` + p3.attribValue
|
|
|
24120
24133
|
"w:commentRangeStart": "commentRangeStart",
|
|
24121
24134
|
"w:commentRangeEnd": "commentRangeEnd",
|
|
24122
24135
|
"w:commentReference": "commentReference"
|
|
24123
|
-
})),
|
|
24136
|
+
})), qt$2(mt$3, "markTypes", [
|
|
24124
24137
|
{ name: "w:b", type: "bold" },
|
|
24125
24138
|
{ name: "w:bCs", type: "bold" },
|
|
24126
24139
|
{ name: "w:i", type: "italic" },
|
|
@@ -24137,14 +24150,14 @@ Actual: ` + p3.attribValue
|
|
|
24137
24150
|
{ name: "link", type: "link", mark: "link", property: "href" },
|
|
24138
24151
|
{ name: "w:highlight", type: "highlight", mark: "highlight", property: "color" },
|
|
24139
24152
|
{ name: "w:shd", type: "highlight", mark: "highlight", property: "color" }
|
|
24140
|
-
]),
|
|
24153
|
+
]), qt$2(mt$3, "propertyTypes", Object.freeze({
|
|
24141
24154
|
"w:pPr": "paragraphProperties",
|
|
24142
24155
|
"w:rPr": "runProperties",
|
|
24143
24156
|
"w:sectPr": "sectionProperties",
|
|
24144
24157
|
"w:numPr": "numberingProperties",
|
|
24145
24158
|
"w:tcPr": "tableCellProperties"
|
|
24146
|
-
})),
|
|
24147
|
-
let
|
|
24159
|
+
})), qt$2(mt$3, "elements", /* @__PURE__ */ new Set(["w:document", "w:body", "w:p", "w:r", "w:t", "w:delText"]));
|
|
24160
|
+
let Pt$2 = mt$3;
|
|
24148
24161
|
function vp$1(r22) {
|
|
24149
24162
|
const e = "docProps/custom.xml";
|
|
24150
24163
|
r22[e] || (r22[e] = Fu$2());
|
|
@@ -24164,7 +24177,7 @@ Actual: ` + p3.attribValue
|
|
|
24164
24177
|
function Fu$2() {
|
|
24165
24178
|
return Gf$2;
|
|
24166
24179
|
}
|
|
24167
|
-
function Bu$2(r22 = 2, e = "0.10.
|
|
24180
|
+
function Bu$2(r22 = 2, e = "0.10.59") {
|
|
24168
24181
|
return {
|
|
24169
24182
|
type: "element",
|
|
24170
24183
|
name: "property",
|
|
@@ -24473,16 +24486,16 @@ Actual: ` + p3.attribValue
|
|
|
24473
24486
|
this._helper.resume();
|
|
24474
24487
|
}, R.exports = a;
|
|
24475
24488
|
}, { "../utils": 32, "readable-stream": 16 }], 14: [function(_3, R, y) {
|
|
24476
|
-
R.exports = { isNode: typeof
|
|
24477
|
-
if (
|
|
24489
|
+
R.exports = { isNode: typeof vt$1 < "u", newBufferFrom: function(l, a) {
|
|
24490
|
+
if (vt$1.from && vt$1.from !== Uint8Array.from) return vt$1.from(l, a);
|
|
24478
24491
|
if (typeof l == "number") throw new Error('The "data" argument must not be a number');
|
|
24479
|
-
return new
|
|
24492
|
+
return new vt$1(l, a);
|
|
24480
24493
|
}, allocBuffer: function(l) {
|
|
24481
|
-
if (
|
|
24482
|
-
var a = new
|
|
24494
|
+
if (vt$1.alloc) return vt$1.alloc(l);
|
|
24495
|
+
var a = new vt$1(l);
|
|
24483
24496
|
return a.fill(0), a;
|
|
24484
24497
|
}, isBuffer: function(l) {
|
|
24485
|
-
return
|
|
24498
|
+
return vt$1.isBuffer(l);
|
|
24486
24499
|
}, isStream: function(l) {
|
|
24487
24500
|
return l && typeof l.on == "function" && typeof l.pause == "function" && typeof l.resume == "function";
|
|
24488
24501
|
} };
|
|
@@ -24809,7 +24822,7 @@ Actual: ` + p3.attribValue
|
|
|
24809
24822
|
for (V = new Uint8Array(g), O = 0; O < j.length; O++) V.set(j[O], W3), W3 += j[O].length;
|
|
24810
24823
|
return V;
|
|
24811
24824
|
case "nodebuffer":
|
|
24812
|
-
return
|
|
24825
|
+
return vt$1.concat(j);
|
|
24813
24826
|
default:
|
|
24814
24827
|
throw new Error("concat : unsupported type '" + I3 + "'");
|
|
24815
24828
|
}
|
|
@@ -24856,7 +24869,7 @@ Actual: ` + p3.attribValue
|
|
|
24856
24869
|
return new c3(this, { objectMode: this._outputType !== "nodebuffer" }, d);
|
|
24857
24870
|
} }, R.exports = i3;
|
|
24858
24871
|
}, { "../base64": 1, "../external": 6, "../nodejs/NodejsStreamOutputAdapter": 13, "../support": 30, "../utils": 32, "./ConvertWorker": 24, "./GenericWorker": 28 }], 30: [function(_3, R, y) {
|
|
24859
|
-
if (y.base64 = true, y.array = true, y.string = true, y.arraybuffer = typeof ArrayBuffer < "u" && typeof Uint8Array < "u", y.nodebuffer = typeof
|
|
24872
|
+
if (y.base64 = true, y.array = true, y.string = true, y.arraybuffer = typeof ArrayBuffer < "u" && typeof Uint8Array < "u", y.nodebuffer = typeof vt$1 < "u", y.uint8array = typeof Uint8Array < "u", typeof ArrayBuffer > "u") y.blob = false;
|
|
24860
24873
|
else {
|
|
24861
24874
|
var l = new ArrayBuffer(0);
|
|
24862
24875
|
try {
|
|
@@ -26601,7 +26614,7 @@ Actual: ` + p3.attribValue
|
|
|
26601
26614
|
const r = _3[a];
|
|
26602
26615
|
l.file(a, r);
|
|
26603
26616
|
}), Object.keys(R).forEach((a) => {
|
|
26604
|
-
const r =
|
|
26617
|
+
const r = vt$1.from(R[a], "base64");
|
|
26605
26618
|
l.file(`word/media/${a}`, r);
|
|
26606
26619
|
});
|
|
26607
26620
|
for (const [a, r] of Object.entries(y))
|
|
@@ -31172,7 +31185,7 @@ Actual: ` + p3.attribValue
|
|
|
31172
31185
|
for (let n = 0; n < e.byteLength; n++)
|
|
31173
31186
|
t += Hh$1(e[n]);
|
|
31174
31187
|
return btoa(t);
|
|
31175
|
-
}, _m = (e) =>
|
|
31188
|
+
}, _m = (e) => vt$1.from(e.buffer, e.byteOffset, e.byteLength).toString("base64"), $m = Gc$1 ? zm : _m, Vm = (e) => Zh$1((t) => Ii$1(t, e)), Hm = (e) => {
|
|
31176
31189
|
for (let n = 6; n < e.length; n++)
|
|
31177
31190
|
e[n % 6] = e[n % 6] ^ e[n];
|
|
31178
31191
|
return e.slice(0, 6);
|
|
@@ -36510,10 +36523,10 @@ Actual: ` + p3.attribValue
|
|
|
36510
36523
|
return [i3, s, o.mediaFiles, o.fonts];
|
|
36511
36524
|
}
|
|
36512
36525
|
static getDocumentVersion(n) {
|
|
36513
|
-
return
|
|
36526
|
+
return Pt$2.getStoredSuperdocVersion(n);
|
|
36514
36527
|
}
|
|
36515
36528
|
static updateDocumentVersion(n, r) {
|
|
36516
|
-
return
|
|
36529
|
+
return Pt$2.updateDocumentVersion(n, r);
|
|
36517
36530
|
}
|
|
36518
36531
|
/**
|
|
36519
36532
|
* Creates all node views.
|
|
@@ -36674,7 +36687,7 @@ Actual: ` + p3.attribValue
|
|
|
36674
36687
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
36675
36688
|
*/
|
|
36676
36689
|
processCollaborationMigrations() {
|
|
36677
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.10.
|
|
36690
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.10.59"), !this.options.ydoc) return;
|
|
36678
36691
|
let r = this.options.ydoc.getMap("meta").get("version");
|
|
36679
36692
|
r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
|
|
36680
36693
|
const o = ol$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
|
|
@@ -36750,7 +36763,7 @@ Actual: ` + p3.attribValue
|
|
|
36750
36763
|
* Creates a SuperConverter.
|
|
36751
36764
|
*/
|
|
36752
36765
|
Qi$1 = function() {
|
|
36753
|
-
this.options.converter ? this.converter = this.options.converter : this.converter = new
|
|
36766
|
+
this.options.converter ? this.converter = this.options.converter : this.converter = new Pt$2({
|
|
36754
36767
|
docx: this.options.content,
|
|
36755
36768
|
media: this.options.mediaFiles,
|
|
36756
36769
|
fonts: this.options.fonts,
|
|
@@ -38567,7 +38580,7 @@ Actual: ` + p3.attribValue
|
|
|
38567
38580
|
}
|
|
38568
38581
|
l.push({ key: f3.type.name, value: f3.attrs[a] });
|
|
38569
38582
|
});
|
|
38570
|
-
const c3 = l.find((f3) => f3.key === a), d = Object.keys(n?.attrs
|
|
38583
|
+
const c3 = l.find((f3) => f3.key === a), d = Object.keys(n?.attrs?.indent || {}), u = Object.keys(n?.attrs?.spacing || {});
|
|
38571
38584
|
if (!c3)
|
|
38572
38585
|
if (a === "spacing" && r && !u) {
|
|
38573
38586
|
const f3 = a0$1(s);
|
|
@@ -38664,7 +38677,7 @@ Actual: ` + p3.attribValue
|
|
|
38664
38677
|
class: {
|
|
38665
38678
|
renderDOM: (e) => e.dropcap ? { class: "super-doc-dropcap" } : null
|
|
38666
38679
|
},
|
|
38667
|
-
styleId: {
|
|
38680
|
+
styleId: {},
|
|
38668
38681
|
attributes: {
|
|
38669
38682
|
rendered: false
|
|
38670
38683
|
},
|
|
@@ -69928,7 +69941,7 @@ ${style2}
|
|
|
69928
69941
|
this.config.colors = shuffleArray(this.config.colors);
|
|
69929
69942
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
69930
69943
|
this.colorIndex = 0;
|
|
69931
|
-
this.version = "0.10.
|
|
69944
|
+
this.version = "0.10.59";
|
|
69932
69945
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
69933
69946
|
this.superdocId = config.superdocId || v4();
|
|
69934
69947
|
this.colors = this.config.colors;
|
|
@@ -70354,7 +70367,7 @@ ${style2}
|
|
|
70354
70367
|
exports2.Editor = qi$1;
|
|
70355
70368
|
exports2.HTML = HTML;
|
|
70356
70369
|
exports2.PDF = PDF;
|
|
70357
|
-
exports2.SuperConverter =
|
|
70370
|
+
exports2.SuperConverter = Pt$2;
|
|
70358
70371
|
exports2.SuperDoc = SuperDoc;
|
|
70359
70372
|
exports2.compareVersions = compareVersions;
|
|
70360
70373
|
exports2.createZip = c$3;
|