@editora/core 1.0.18 → 1.0.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/{A11yCheckerPlugin.native-DIKuCeFw.mjs → A11yCheckerPlugin.native-qW_njhLY.mjs} +2 -2
- package/dist/{AnchorPlugin.native-DXZdK3zr.mjs → AnchorPlugin.native-Drmxhy98.mjs} +37 -37
- package/dist/{BlockquotePlugin.native-57_Xcjl1.mjs → BlockquotePlugin.native-D8jjGd0c.mjs} +19 -19
- package/dist/{CapitalizationPlugin.native-C-HRbXGh.mjs → CapitalizationPlugin.native-Mh-kUy-x.mjs} +17 -17
- package/dist/{ChecklistPlugin.native-NVrBUkaL.mjs → ChecklistPlugin.native-DLedNLsb.mjs} +31 -31
- package/dist/{CodePlugin.native-BH-K4xmW.mjs → CodePlugin.native-BcVqm5MS.mjs} +64 -65
- package/dist/{CodePlugin.native-hNgfXlfS.mjs → CodePlugin.native-Rgxx2Igx.mjs} +2708 -1225
- package/dist/{CollaborationPlugin.native-oSybCGPW.mjs → CollaborationPlugin.native-Bl3R9CRI.mjs} +1406 -1295
- package/dist/{CommentsPlugin.native-CLip9wAO.mjs → CommentsPlugin.native-DncTHiEe.mjs} +2 -2
- package/dist/{DirectionPlugin.native-Bl-QLFzO.mjs → DirectionPlugin.native-B-Zj-EAt.mjs} +33 -33
- package/dist/{DocumentManagerPlugin.native-iFip6s4Q.mjs → DocumentManagerPlugin.native-B8K-Oqom.mjs} +12 -11
- package/dist/{FontFamilyPlugin.native-M3cNQ0KA.mjs → FontFamilyPlugin.native-DLq9x046.mjs} +32 -32
- package/dist/{PreviewPlugin.native-CiR51jql.mjs → PreviewPlugin.native-Dv5OsffK.mjs} +49 -52
- package/dist/{SpellCheckPlugin.native-Bef2oTLB.mjs → SpellCheckPlugin.native-BGm2qPfn.mjs} +20 -20
- package/dist/{TablePlugin.native-BjIxYZ2X.mjs → TablePlugin.native-C1YZ372P.mjs} +156 -147
- package/dist/TemplatePlugin.native-Dwk8TgxI.mjs +628 -0
- package/dist/{documentManager-BcBIv5P-.mjs → documentManager-BWK_-KJp.mjs} +524 -526
- package/dist/editora.min.js +17 -17
- package/dist/editora.umd.js +17 -17
- package/dist/{index-XsYC_KdJ.mjs → index-BxlbmLsp.mjs} +428 -405
- package/dist/index-Cdy6TOCy.js +12 -0
- package/dist/index.cjs.js +4 -4
- package/dist/index.esm.js +19 -16
- package/dist/plugin-loader.js +13 -13
- package/dist/purify.es-BHa5gZB7.mjs +1481 -0
- package/dist/sanitizeHtml-DA0ajC6k.mjs +17 -0
- package/dist/webcomponent-core.js +466 -449
- package/dist/webcomponent-core.min.js +91 -89
- package/dist/webcomponent.cjs.js +1 -1
- package/dist/webcomponent.esm.js +2 -2
- package/dist/webcomponent.js +397 -380
- package/dist/webcomponent.min.js +968 -967
- package/index.d.ts +9 -0
- package/package.json +1 -1
- package/dist/TemplatePlugin.native-D6n5RUnC.mjs +0 -1176
- package/dist/index-_eKRBZPq.js +0 -12
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { p as bs } from "./sanitizeHtml-DA0ajC6k.mjs";
|
|
1
2
|
var wr = { exports: {} };
|
|
2
3
|
var ms;
|
|
3
|
-
function
|
|
4
|
-
return ms || (ms = 1, (function(dt,
|
|
5
|
-
(function(st,
|
|
6
|
-
dt.exports =
|
|
4
|
+
function ic() {
|
|
5
|
+
return ms || (ms = 1, (function(dt, xt) {
|
|
6
|
+
(function(st, gt) {
|
|
7
|
+
dt.exports = gt();
|
|
7
8
|
})(globalThis, (() => (() => {
|
|
8
9
|
var st = { 9742: (W, F) => {
|
|
9
10
|
F.byteLength = function(N) {
|
|
@@ -52,10 +53,10 @@ function oc() {
|
|
|
52
53
|
function S(s, w, R) {
|
|
53
54
|
if (typeof s == "string") return (function(Z, et) {
|
|
54
55
|
if (typeof et == "string" && et !== "" || (et = "utf8"), !p.isEncoding(et)) throw new TypeError("Unknown encoding: " + et);
|
|
55
|
-
const
|
|
56
|
-
let At = I(
|
|
56
|
+
const bt = 0 | g(Z, et);
|
|
57
|
+
let At = I(bt);
|
|
57
58
|
const It = At.write(Z, et);
|
|
58
|
-
return It !==
|
|
59
|
+
return It !== bt && (At = At.slice(0, It)), At;
|
|
59
60
|
})(s, w);
|
|
60
61
|
if (ArrayBuffer.isView(s)) return (function(Z) {
|
|
61
62
|
if (it(Z, Uint8Array)) {
|
|
@@ -71,10 +72,10 @@ function oc() {
|
|
|
71
72
|
if (j != null && j !== s) return p.from(j, w, R);
|
|
72
73
|
const X = (function(Z) {
|
|
73
74
|
if (p.isBuffer(Z)) {
|
|
74
|
-
const et = 0 | l(Z.length),
|
|
75
|
-
return
|
|
75
|
+
const et = 0 | l(Z.length), bt = I(et);
|
|
76
|
+
return bt.length === 0 || Z.copy(bt, 0, 0, et), bt;
|
|
76
77
|
}
|
|
77
|
-
return Z.length !== void 0 ? typeof Z.length != "number" ||
|
|
78
|
+
return Z.length !== void 0 ? typeof Z.length != "number" || yt(Z.length) ? I(0) : y(Z) : Z.type === "Buffer" && Array.isArray(Z.data) ? y(Z.data) : void 0;
|
|
78
79
|
})(s);
|
|
79
80
|
if (X) return X;
|
|
80
81
|
if (typeof Symbol != "undefined" && Symbol.toPrimitive != null && typeof s[Symbol.toPrimitive] == "function") return p.from(s[Symbol.toPrimitive]("string"), w, R);
|
|
@@ -163,7 +164,7 @@ function oc() {
|
|
|
163
164
|
}
|
|
164
165
|
function M(s, w, R, j, X) {
|
|
165
166
|
if (s.length === 0) return -1;
|
|
166
|
-
if (typeof R == "string" ? (j = R, R = 0) : R > 2147483647 ? R = 2147483647 : R < -2147483648 && (R = -2147483648),
|
|
167
|
+
if (typeof R == "string" ? (j = R, R = 0) : R > 2147483647 ? R = 2147483647 : R < -2147483648 && (R = -2147483648), yt(R = +R) && (R = X ? 0 : s.length - 1), R < 0 && (R = s.length + R), R >= s.length) {
|
|
167
168
|
if (X) return -1;
|
|
168
169
|
R = s.length - 1;
|
|
169
170
|
} else if (R < 0) {
|
|
@@ -175,20 +176,20 @@ function oc() {
|
|
|
175
176
|
throw new TypeError("val must be string, number or Buffer");
|
|
176
177
|
}
|
|
177
178
|
function d(s, w, R, j, X) {
|
|
178
|
-
let Z, et = 1,
|
|
179
|
+
let Z, et = 1, bt = s.length, At = w.length;
|
|
179
180
|
if (j !== void 0 && ((j = String(j).toLowerCase()) === "ucs2" || j === "ucs-2" || j === "utf16le" || j === "utf-16le")) {
|
|
180
181
|
if (s.length < 2 || w.length < 2) return -1;
|
|
181
|
-
et = 2,
|
|
182
|
+
et = 2, bt /= 2, At /= 2, R /= 2;
|
|
182
183
|
}
|
|
183
184
|
function It(Et, Rt) {
|
|
184
185
|
return et === 1 ? Et[Rt] : Et.readUInt16BE(Rt * et);
|
|
185
186
|
}
|
|
186
187
|
if (X) {
|
|
187
188
|
let Et = -1;
|
|
188
|
-
for (Z = R; Z <
|
|
189
|
+
for (Z = R; Z < bt; Z++) if (It(s, Z) === It(w, Et === -1 ? 0 : Z - Et)) {
|
|
189
190
|
if (Et === -1 && (Et = Z), Z - Et + 1 === At) return Et * et;
|
|
190
191
|
} else Et !== -1 && (Z -= Z - Et), Et = -1;
|
|
191
|
-
} else for (R + At >
|
|
192
|
+
} else for (R + At > bt && (R = bt - At), Z = R; Z >= 0; Z--) {
|
|
192
193
|
let Et = !0;
|
|
193
194
|
for (let Rt = 0; Rt < At; Rt++) if (It(s, Z + Rt) !== It(w, Rt)) {
|
|
194
195
|
Et = !1;
|
|
@@ -205,9 +206,9 @@ function oc() {
|
|
|
205
206
|
const Z = w.length;
|
|
206
207
|
let et;
|
|
207
208
|
for (j > Z / 2 && (j = Z / 2), et = 0; et < j; ++et) {
|
|
208
|
-
const
|
|
209
|
-
if (bt
|
|
210
|
-
s[R + et] =
|
|
209
|
+
const bt = parseInt(w.substr(2 * et, 2), 16);
|
|
210
|
+
if (yt(bt)) return et;
|
|
211
|
+
s[R + et] = bt;
|
|
211
212
|
}
|
|
212
213
|
return et;
|
|
213
214
|
}
|
|
@@ -226,9 +227,9 @@ function oc() {
|
|
|
226
227
|
}
|
|
227
228
|
function r(s, w, R, j) {
|
|
228
229
|
return nt((function(X, Z) {
|
|
229
|
-
let et,
|
|
230
|
+
let et, bt, At;
|
|
230
231
|
const It = [];
|
|
231
|
-
for (let Et = 0; Et < X.length && !((Z -= 2) < 0); ++Et) et = X.charCodeAt(Et),
|
|
232
|
+
for (let Et = 0; Et < X.length && !((Z -= 2) < 0); ++Et) et = X.charCodeAt(Et), bt = et >> 8, At = et % 256, It.push(At), It.push(bt);
|
|
232
233
|
return It;
|
|
233
234
|
})(w, s.length - R), s, R, j);
|
|
234
235
|
}
|
|
@@ -241,10 +242,10 @@ function oc() {
|
|
|
241
242
|
let X = w;
|
|
242
243
|
for (; X < R; ) {
|
|
243
244
|
const Z = s[X];
|
|
244
|
-
let et = null,
|
|
245
|
-
if (X +
|
|
245
|
+
let et = null, bt = Z > 239 ? 4 : Z > 223 ? 3 : Z > 191 ? 2 : 1;
|
|
246
|
+
if (X + bt <= R) {
|
|
246
247
|
let At, It, Et, Rt;
|
|
247
|
-
switch (
|
|
248
|
+
switch (bt) {
|
|
248
249
|
case 1:
|
|
249
250
|
Z < 128 && (et = Z);
|
|
250
251
|
break;
|
|
@@ -258,14 +259,14 @@ function oc() {
|
|
|
258
259
|
At = s[X + 1], It = s[X + 2], Et = s[X + 3], (192 & At) == 128 && (192 & It) == 128 && (192 & Et) == 128 && (Rt = (15 & Z) << 18 | (63 & At) << 12 | (63 & It) << 6 | 63 & Et, Rt > 65535 && Rt < 1114112 && (et = Rt));
|
|
259
260
|
}
|
|
260
261
|
}
|
|
261
|
-
et === null ? (et = 65533,
|
|
262
|
+
et === null ? (et = 65533, bt = 1) : et > 65535 && (et -= 65536, j.push(et >>> 10 & 1023 | 55296), et = 56320 | 1023 & et), j.push(et), X += bt;
|
|
262
263
|
}
|
|
263
264
|
return (function(Z) {
|
|
264
265
|
const et = Z.length;
|
|
265
266
|
if (et <= G) return String.fromCharCode.apply(String, Z);
|
|
266
|
-
let
|
|
267
|
-
for (; At < et; )
|
|
268
|
-
return
|
|
267
|
+
let bt = "", At = 0;
|
|
268
|
+
for (; At < et; ) bt += String.fromCharCode.apply(String, Z.slice(At, At += G));
|
|
269
|
+
return bt;
|
|
269
270
|
})(j);
|
|
270
271
|
}
|
|
271
272
|
F.kMaxLength = m, p.TYPED_ARRAY_SUPPORT = (function() {
|
|
@@ -369,8 +370,8 @@ function oc() {
|
|
|
369
370
|
if (w >= R) return 1;
|
|
370
371
|
if (this === s) return 0;
|
|
371
372
|
let Z = (X >>>= 0) - (j >>>= 0), et = (R >>>= 0) - (w >>>= 0);
|
|
372
|
-
const
|
|
373
|
-
for (let Et = 0; Et <
|
|
373
|
+
const bt = Math.min(Z, et), At = this.slice(j, X), It = s.slice(w, R);
|
|
374
|
+
for (let Et = 0; Et < bt; ++Et) if (At[Et] !== It[Et]) {
|
|
374
375
|
Z = At[Et], et = It[Et];
|
|
375
376
|
break;
|
|
376
377
|
}
|
|
@@ -433,7 +434,7 @@ function oc() {
|
|
|
433
434
|
const j = s.length;
|
|
434
435
|
(!w || w < 0) && (w = 0), (!R || R < 0 || R > j) && (R = j);
|
|
435
436
|
let X = "";
|
|
436
|
-
for (let Z = w; Z < R; ++Z) X +=
|
|
437
|
+
for (let Z = w; Z < R; ++Z) X += mt[s[Z]];
|
|
437
438
|
return X;
|
|
438
439
|
}
|
|
439
440
|
function c(s, w, R) {
|
|
@@ -582,16 +583,16 @@ function oc() {
|
|
|
582
583
|
return q(this, s, w, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
583
584
|
})), p.prototype.writeIntLE = function(s, w, R, j) {
|
|
584
585
|
if (s = +s, w >>>= 0, !j) {
|
|
585
|
-
const
|
|
586
|
-
U(this, s, w, R,
|
|
586
|
+
const bt = Math.pow(2, 8 * R - 1);
|
|
587
|
+
U(this, s, w, R, bt - 1, -bt);
|
|
587
588
|
}
|
|
588
589
|
let X = 0, Z = 1, et = 0;
|
|
589
590
|
for (this[w] = 255 & s; ++X < R && (Z *= 256); ) s < 0 && et === 0 && this[w + X - 1] !== 0 && (et = 1), this[w + X] = (s / Z >> 0) - et & 255;
|
|
590
591
|
return w + R;
|
|
591
592
|
}, p.prototype.writeIntBE = function(s, w, R, j) {
|
|
592
593
|
if (s = +s, w >>>= 0, !j) {
|
|
593
|
-
const
|
|
594
|
-
U(this, s, w, R,
|
|
594
|
+
const bt = Math.pow(2, 8 * R - 1);
|
|
595
|
+
U(this, s, w, R, bt - 1, -bt);
|
|
595
596
|
}
|
|
596
597
|
let X = R - 1, Z = 1, et = 0;
|
|
597
598
|
for (this[w + X] = 255 & s; --X >= 0 && (Z *= 256); ) s < 0 && et === 0 && this[w + X + 1] !== 0 && (et = 1), this[w + X] = (s / Z >> 0) - et & 255;
|
|
@@ -673,11 +674,11 @@ function oc() {
|
|
|
673
674
|
function i(s, w, R, j, X, Z) {
|
|
674
675
|
if (s > R || s < w) {
|
|
675
676
|
const et = typeof w == "bigint" ? "n" : "";
|
|
676
|
-
let
|
|
677
|
-
throw
|
|
677
|
+
let bt;
|
|
678
|
+
throw bt = w === 0 || w === BigInt(0) ? `>= 0${et} and < 2${et} ** ${8 * (Z + 1)}${et}` : `>= -(2${et} ** ${8 * (Z + 1) - 1}${et}) and < 2 ** ${8 * (Z + 1) - 1}${et}`, new $.ERR_OUT_OF_RANGE("value", bt, s);
|
|
678
679
|
}
|
|
679
|
-
(function(et,
|
|
680
|
-
v(
|
|
680
|
+
(function(et, bt, At) {
|
|
681
|
+
v(bt, "offset"), et[bt] !== void 0 && et[bt + At] !== void 0 || L(bt, et.length - (At + 1));
|
|
681
682
|
})(j, X, Z);
|
|
682
683
|
}
|
|
683
684
|
function v(s, w) {
|
|
@@ -753,10 +754,10 @@ function oc() {
|
|
|
753
754
|
function it(s, w) {
|
|
754
755
|
return s instanceof w || s != null && s.constructor != null && s.constructor.name != null && s.constructor.name === w.name;
|
|
755
756
|
}
|
|
756
|
-
function
|
|
757
|
+
function yt(s) {
|
|
757
758
|
return s != s;
|
|
758
759
|
}
|
|
759
|
-
const
|
|
760
|
+
const mt = (function() {
|
|
760
761
|
const s = "0123456789abcdef", w = new Array(256);
|
|
761
762
|
for (let R = 0; R < 16; ++R) {
|
|
762
763
|
const j = 16 * R;
|
|
@@ -2628,7 +2629,7 @@ function oc() {
|
|
|
2628
2629
|
F.inflateReset = l, F.inflateReset2 = g, F.inflateResetKeep = h, F.inflateInit = function(x) {
|
|
2629
2630
|
return E(x, 15);
|
|
2630
2631
|
}, F.inflateInit2 = E, F.inflate = function(x, D) {
|
|
2631
|
-
var r, B, Q, G, lt, rt, at, c, A, U, k, q, P, z, V, $, K, T, i, v, L, Y, ot, ht, nt = 0, it = new a.Buf8(4),
|
|
2632
|
+
var r, B, Q, G, lt, rt, at, c, A, U, k, q, P, z, V, $, K, T, i, v, L, Y, ot, ht, nt = 0, it = new a.Buf8(4), yt = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
2632
2633
|
if (!x || !x.state || !x.output || !x.input && x.avail_in !== 0) return p;
|
|
2633
2634
|
(r = x.state).mode === S && (r.mode = 13), lt = x.next_out, Q = x.output, at = x.avail_out, G = x.next_in, B = x.input, rt = x.avail_in, c = r.hold, A = r.bits, U = rt, k = at, Y = 0;
|
|
2634
2635
|
t: for (; ; ) switch (r.mode) {
|
|
@@ -2806,9 +2807,9 @@ function oc() {
|
|
|
2806
2807
|
if (rt === 0) break t;
|
|
2807
2808
|
rt--, c += B[G++] << A, A += 8;
|
|
2808
2809
|
}
|
|
2809
|
-
r.lens[
|
|
2810
|
+
r.lens[yt[r.have++]] = 7 & c, c >>>= 3, A -= 3;
|
|
2810
2811
|
}
|
|
2811
|
-
for (; r.have < 19; ) r.lens[
|
|
2812
|
+
for (; r.have < 19; ) r.lens[yt[r.have++]] = 0;
|
|
2812
2813
|
if (r.lencode = r.lendyn, r.lenbits = 7, ot = { bits: r.lenbits }, Y = I(0, r.lens, 0, 19, r.lencode, 0, r.work, ot), r.lenbits = ot.bits, Y) {
|
|
2813
2814
|
x.msg = "invalid code lengths set", r.mode = N;
|
|
2814
2815
|
break;
|
|
@@ -3122,15 +3123,15 @@ function oc() {
|
|
|
3122
3123
|
V = P.heap[1], P.heap[1] = P.heap[P.heap_len--], rt(P, T, 1), $ = P.heap[1], P.heap[--P.heap_max] = V, P.heap[--P.heap_max] = $, T[2 * K] = T[2 * V] + T[2 * $], P.depth[K] = (P.depth[V] >= P.depth[$] ? P.depth[V] : P.depth[$]) + 1, T[2 * V + 1] = T[2 * $ + 1] = K, P.heap[1] = K++, rt(P, T, 1);
|
|
3123
3124
|
while (P.heap_len >= 2);
|
|
3124
3125
|
P.heap[--P.heap_max] = P.heap[1], (function(ot, ht) {
|
|
3125
|
-
var nt, it,
|
|
3126
|
-
for (
|
|
3127
|
-
for (s[2 * ot.heap[ot.heap_max] + 1] = 0, nt = ot.heap_max + 1; nt < 573; nt++) (
|
|
3128
|
-
if (
|
|
3126
|
+
var nt, it, yt, mt, Tt, Ft, s = ht.dyn_tree, w = ht.max_code, R = ht.stat_desc.static_tree, j = ht.stat_desc.has_stree, X = ht.stat_desc.extra_bits, Z = ht.stat_desc.extra_base, et = ht.stat_desc.max_length, bt = 0;
|
|
3127
|
+
for (mt = 0; mt <= 15; mt++) ot.bl_count[mt] = 0;
|
|
3128
|
+
for (s[2 * ot.heap[ot.heap_max] + 1] = 0, nt = ot.heap_max + 1; nt < 573; nt++) (mt = s[2 * s[2 * (it = ot.heap[nt]) + 1] + 1] + 1) > et && (mt = et, bt++), s[2 * it + 1] = mt, it > w || (ot.bl_count[mt]++, Tt = 0, it >= Z && (Tt = X[it - Z]), Ft = s[2 * it], ot.opt_len += Ft * (mt + Tt), j && (ot.static_len += Ft * (R[2 * it + 1] + Tt)));
|
|
3129
|
+
if (bt !== 0) {
|
|
3129
3130
|
do {
|
|
3130
|
-
for (
|
|
3131
|
-
ot.bl_count[
|
|
3132
|
-
} while (
|
|
3133
|
-
for (
|
|
3131
|
+
for (mt = et - 1; ot.bl_count[mt] === 0; ) mt--;
|
|
3132
|
+
ot.bl_count[mt]--, ot.bl_count[mt + 1] += 2, ot.bl_count[et]--, bt -= 2;
|
|
3133
|
+
} while (bt > 0);
|
|
3134
|
+
for (mt = et; mt !== 0; mt--) for (it = ot.bl_count[mt]; it !== 0; ) (yt = ot.heap[--nt]) > w || (s[2 * yt + 1] !== mt && (ot.opt_len += (mt - s[2 * yt + 1]) * s[2 * yt], s[2 * yt + 1] = mt), it--);
|
|
3134
3135
|
}
|
|
3135
3136
|
})(P, z), B(T, Y, P.bl_count);
|
|
3136
3137
|
}
|
|
@@ -3486,9 +3487,9 @@ function oc() {
|
|
|
3486
3487
|
throw new Error(i, "Unknown state: " + i.state);
|
|
3487
3488
|
}
|
|
3488
3489
|
return i.position >= i.bufferCheckPosition && (function(it) {
|
|
3489
|
-
for (var
|
|
3490
|
+
for (var yt = Math.max(a.MAX_BUFFER_LENGTH, 10), mt = 0, Tt = 0, Ft = u.length; Tt < Ft; Tt++) {
|
|
3490
3491
|
var s = it[u[Tt]].length;
|
|
3491
|
-
if (s >
|
|
3492
|
+
if (s > yt) switch (u[Tt]) {
|
|
3492
3493
|
case "textNode":
|
|
3493
3494
|
lt(it);
|
|
3494
3495
|
break;
|
|
@@ -3501,9 +3502,9 @@ function oc() {
|
|
|
3501
3502
|
default:
|
|
3502
3503
|
at(it, "Max buffer length exceeded: " + u[Tt]);
|
|
3503
3504
|
}
|
|
3504
|
-
|
|
3505
|
+
mt = Math.max(mt, s);
|
|
3505
3506
|
}
|
|
3506
|
-
var w = a.MAX_BUFFER_LENGTH -
|
|
3507
|
+
var w = a.MAX_BUFFER_LENGTH - mt;
|
|
3507
3508
|
it.bufferCheckPosition = w + it.position;
|
|
3508
3509
|
})(i), i;
|
|
3509
3510
|
}, resume: function() {
|
|
@@ -3641,7 +3642,7 @@ Actual: ` + T.attribValue);
|
|
|
3641
3642
|
G(T, "onopennamespace", { prefix: R, uri: v.ns[R] });
|
|
3642
3643
|
}));
|
|
3643
3644
|
for (var ot = 0, ht = T.attribList.length; ot < ht; ot++) {
|
|
3644
|
-
var nt = T.attribList[ot], it = nt[0],
|
|
3645
|
+
var nt = T.attribList[ot], it = nt[0], yt = nt[1], mt = k(it, !0), Tt = mt.prefix, Ft = mt.local, s = Tt === "" ? "" : v.ns[Tt] || "", w = { name: it, value: yt, prefix: Tt, local: Ft, uri: s };
|
|
3645
3646
|
Tt && Tt !== "xmlns" && !s && (A(T, "Unbound namespace prefix: " + JSON.stringify(Tt)), w.uri = Tt), T.tag.attributes[it] = w, G(T, "onattribute", w);
|
|
3646
3647
|
}
|
|
3647
3648
|
T.attribList.length = 0;
|
|
@@ -3665,9 +3666,9 @@ Actual: ` + T.attribValue);
|
|
|
3665
3666
|
var ht = {};
|
|
3666
3667
|
for (var nt in ot.ns) ht[nt] = ot.ns[nt];
|
|
3667
3668
|
var it = T.tags[T.tags.length - 1] || T;
|
|
3668
|
-
T.opt.xmlns && ot.ns !== it.ns && Object.keys(ot.ns).forEach((function(
|
|
3669
|
-
var
|
|
3670
|
-
G(T, "onclosenamespace", { prefix:
|
|
3669
|
+
T.opt.xmlns && ot.ns !== it.ns && Object.keys(ot.ns).forEach((function(yt) {
|
|
3670
|
+
var mt = ot.ns[yt];
|
|
3671
|
+
G(T, "onclosenamespace", { prefix: yt, uri: mt });
|
|
3671
3672
|
}));
|
|
3672
3673
|
}
|
|
3673
3674
|
i === 0 && (T.closedRoot = !0), T.tagName = T.attribValue = T.attribName = "", T.attribList.length = 0, T.state = r.TEXT;
|
|
@@ -3908,18 +3909,18 @@ Actual: ` + T.attribValue);
|
|
|
3908
3909
|
function Q(i, v, L, Y, ot) {
|
|
3909
3910
|
u("readableAddChunk", v);
|
|
3910
3911
|
var ht, nt = i._readableState;
|
|
3911
|
-
if (v === null) nt.reading = !1, (function(it,
|
|
3912
|
-
if (u("onEofChunk"), !
|
|
3913
|
-
if (
|
|
3914
|
-
var
|
|
3915
|
-
|
|
3912
|
+
if (v === null) nt.reading = !1, (function(it, yt) {
|
|
3913
|
+
if (u("onEofChunk"), !yt.ended) {
|
|
3914
|
+
if (yt.decoder) {
|
|
3915
|
+
var mt = yt.decoder.end();
|
|
3916
|
+
mt && mt.length && (yt.buffer.push(mt), yt.length += yt.objectMode ? 1 : mt.length);
|
|
3916
3917
|
}
|
|
3917
|
-
|
|
3918
|
+
yt.ended = !0, yt.sync ? at(it) : (yt.needReadable = !1, yt.emittedReadable || (yt.emittedReadable = !0, c(it)));
|
|
3918
3919
|
}
|
|
3919
3920
|
})(i, nt);
|
|
3920
|
-
else if (ot || (ht = (function(it,
|
|
3921
|
-
var
|
|
3922
|
-
return Tt =
|
|
3921
|
+
else if (ot || (ht = (function(it, yt) {
|
|
3922
|
+
var mt, Tt;
|
|
3923
|
+
return Tt = yt, p.isBuffer(Tt) || Tt instanceof S || typeof yt == "string" || yt === void 0 || it.objectMode || (mt = new M("chunk", ["string", "Buffer", "Uint8Array"], yt)), mt;
|
|
3923
3924
|
})(nt, v)), ht) x(i, ht);
|
|
3924
3925
|
else if (nt.objectMode || v && v.length > 0) if (typeof v == "string" || nt.objectMode || Object.getPrototypeOf(v) === p.prototype || (v = (function(it) {
|
|
3925
3926
|
return p.from(it);
|
|
@@ -4038,7 +4039,7 @@ Actual: ` + T.attribValue);
|
|
|
4038
4039
|
u("onend"), i.end();
|
|
4039
4040
|
}
|
|
4040
4041
|
Y.endEmitted ? o.nextTick(ot) : L.once("end", ot), i.on("unpipe", (function w(R, j) {
|
|
4041
|
-
u("onunpipe"), R === L && j && j.hasUnpiped === !1 && (j.hasUnpiped = !0, u("cleanup"), i.removeListener("close", Tt), i.removeListener("finish", Ft), i.removeListener("drain", nt), i.removeListener("error",
|
|
4042
|
+
u("onunpipe"), R === L && j && j.hasUnpiped === !1 && (j.hasUnpiped = !0, u("cleanup"), i.removeListener("close", Tt), i.removeListener("finish", Ft), i.removeListener("drain", nt), i.removeListener("error", mt), i.removeListener("unpipe", w), L.removeListener("end", ht), L.removeListener("end", s), L.removeListener("data", yt), it = !0, !Y.awaitDrain || i._writableState && !i._writableState.needDrain || nt());
|
|
4042
4043
|
}));
|
|
4043
4044
|
var nt = /* @__PURE__ */ (function(w) {
|
|
4044
4045
|
return function() {
|
|
@@ -4048,13 +4049,13 @@ Actual: ` + T.attribValue);
|
|
|
4048
4049
|
})(L);
|
|
4049
4050
|
i.on("drain", nt);
|
|
4050
4051
|
var it = !1;
|
|
4051
|
-
function
|
|
4052
|
+
function yt(w) {
|
|
4052
4053
|
u("ondata");
|
|
4053
4054
|
var R = i.write(w);
|
|
4054
4055
|
u("dest.write", R), R === !1 && ((Y.pipesCount === 1 && Y.pipes === i || Y.pipesCount > 1 && T(Y.pipes, i) !== -1) && !it && (u("false write response, pause", Y.awaitDrain), Y.awaitDrain++), L.pause());
|
|
4055
4056
|
}
|
|
4056
|
-
function
|
|
4057
|
-
u("onerror", w), s(), i.removeListener("error",
|
|
4057
|
+
function mt(w) {
|
|
4058
|
+
u("onerror", w), s(), i.removeListener("error", mt), m(i, "error") === 0 && x(i, w);
|
|
4058
4059
|
}
|
|
4059
4060
|
function Tt() {
|
|
4060
4061
|
i.removeListener("finish", Ft), s();
|
|
@@ -4065,10 +4066,10 @@ Actual: ` + T.attribValue);
|
|
|
4065
4066
|
function s() {
|
|
4066
4067
|
u("unpipe"), L.unpipe(i);
|
|
4067
4068
|
}
|
|
4068
|
-
return L.on("data",
|
|
4069
|
+
return L.on("data", yt), (function(w, R, j) {
|
|
4069
4070
|
if (typeof w.prependListener == "function") return w.prependListener(R, j);
|
|
4070
4071
|
w._events && w._events.error ? Array.isArray(w._events.error) ? w._events.error.unshift(j) : w._events.error = [j, w._events.error] : w.on(R, j);
|
|
4071
|
-
})(i, "error",
|
|
4072
|
+
})(i, "error", mt), i.once("close", Tt), i.once("finish", Ft), i.emit("pipe", L), Y.flowing || (u("pipe resume"), L.resume()), i;
|
|
4072
4073
|
}, B.prototype.unpipe = function(i) {
|
|
4073
4074
|
var v = this._readableState, L = { hasUnpiped: !1 };
|
|
4074
4075
|
if (v.pipesCount === 0) return this;
|
|
@@ -4292,8 +4293,8 @@ Actual: ` + T.attribValue);
|
|
|
4292
4293
|
return T === null ? v = new d() : typeof T == "string" || K.objectMode || (v = new l("chunk", ["string", "Buffer"], T)), !v || (x($, v), o.nextTick(i, v), !1);
|
|
4293
4294
|
})(this, P, A, k)) && (P.pendingcb++, z = (function($, K, T, i, v, L) {
|
|
4294
4295
|
if (!T) {
|
|
4295
|
-
var Y = (function(it,
|
|
4296
|
-
return it.objectMode || it.decodeStrings === !1 || typeof
|
|
4296
|
+
var Y = (function(it, yt, mt) {
|
|
4297
|
+
return it.objectMode || it.decodeStrings === !1 || typeof yt != "string" || (yt = S.from(yt, mt)), yt;
|
|
4297
4298
|
})(K, i, v);
|
|
4298
4299
|
i !== Y && (T = !0, v = "buffer", i = Y);
|
|
4299
4300
|
}
|
|
@@ -5210,11 +5211,11 @@ Actual: ` + T.attribValue);
|
|
|
5210
5211
|
} };
|
|
5211
5212
|
return S;
|
|
5212
5213
|
};
|
|
5213
|
-
} },
|
|
5214
|
+
} }, gt = {};
|
|
5214
5215
|
function ct(W) {
|
|
5215
|
-
var F =
|
|
5216
|
+
var F = gt[W];
|
|
5216
5217
|
if (F !== void 0) return F.exports;
|
|
5217
|
-
var n =
|
|
5218
|
+
var n = gt[W] = { exports: {} };
|
|
5218
5219
|
return st[W].call(n.exports, n, n.exports, ct), n.exports;
|
|
5219
5220
|
}
|
|
5220
5221
|
ct.d = (W, F) => {
|
|
@@ -5231,7 +5232,7 @@ Actual: ` + T.attribValue);
|
|
|
5231
5232
|
};
|
|
5232
5233
|
var _t = {};
|
|
5233
5234
|
return (() => {
|
|
5234
|
-
ct.r(_t), ct.d(_t, { AbstractNumbering: () => dr, Alignment: () => A, AlignmentAttributes: () => c, AlignmentType: () => h, Attributes: () => u, BaseEmphasisMark: () =>
|
|
5235
|
+
ct.r(_t), ct.d(_t, { AbstractNumbering: () => dr, Alignment: () => A, AlignmentAttributes: () => c, AlignmentType: () => h, Attributes: () => u, BaseEmphasisMark: () => mt, BaseXmlComponent: () => W, Body: () => wn, Bookmark: () => $r, BookmarkEnd: () => qr, BookmarkStart: () => Xr, Border: () => q, BorderElement: () => U, BorderStyle: () => l, Column: () => Ho, ColumnAttributes: () => yn, ColumnBreak: () => So, Columns: () => Qr, ColumnsAttributes: () => Jr, Comment: () => Mr, CommentRangeEnd: () => Eo, CommentRangeStart: () => _o, CommentReference: () => To, Comments: () => Ur, ConcreteHyperlink: () => Ge, ConcreteNumbering: () => fr, DeletedTextRun: () => Ya, DocGridAttributes: () => tn, Document: () => os, DocumentAttributes: () => Qt, DocumentBackground: () => xn, DocumentBackgroundAttributes: () => bn, DocumentDefaults: () => rs, DocumentGrid: () => en, DocumentGridType: () => De, DotEmphasisMark: () => Ft, Drawing: () => Fr, DropCapType: () => $e, EMPTY_OBJECT: () => F, EmphasisMark: () => Tt, EmphasisMarkType: () => C, ExternalHyperlink: () => Vr, File: () => os, FootNoteReferenceRunAttributes: () => is, FootNotes: () => Xn, Footer: () => Ga, FooterWrapper: () => ar, FootnoteReference: () => as, FootnoteReferenceRun: () => Va, FrameAnchorType: () => Xe, FrameProperties: () => En, FramePropertiesAttributes: () => _n, FrameWrap: () => qe, GridSpan: () => Mn, Header: () => Ka, HeaderFooterReference: () => xe, HeaderFooterReferenceType: () => Wt, HeaderFooterType: () => ae, HeaderWrapper: () => ur, HeadingLevel: () => Ne, HeightRule: () => ir, HorizontalPosition: () => Sr, HorizontalPositionAlign: () => E, HorizontalPositionRelativeFrom: () => me, HpsMeasureElement: () => Q, HyperlinkType: () => ke, IgnoreIfEmptyXmlComponent: () => a, ImageRun: () => fo, ImportDotx: () => nc, ImportedRootElementAttributes: () => N, ImportedXmlComponent: () => S, Indent: () => V, InitializableXmlComponent: () => y, InsertedTextRun: () => $a, InternalHyperlink: () => Lo, LeaderType: () => Ce, Level: () => qn, LevelBase: () => pr, LevelForOverride: () => ua, LevelFormat: () => Ut, LevelOverride: () => Zn, LevelSuffix: () => hr, LineNumberAttributes: () => rn, LineNumberRestartFormat: () => Pe, LineNumberType: () => nn, LineRuleType: () => Jt, Math: () => Go, MathAccentCharacter: () => Sn, MathAngledBrackets: () => bi, MathBase: () => Mt, MathCurlyBrackets: () => yi, MathDegree: () => kn, MathDenominator: () => Tn, MathFraction: () => Xo, MathFunction: () => hi, MathFunctionName: () => Dn, MathFunctionProperties: () => Pn, MathIntegral: () => ri, MathLimitLocation: () => In, MathNAryProperties: () => Ze, MathNumerator: () => An, MathPreSubSuperScript: () => ii, MathPreSubSuperScriptProperties: () => On, MathRadical: () => li, MathRadicalProperties: () => Ln, MathRoundBrackets: () => gi, MathRun: () => $o, MathSquareBrackets: () => wi, MathSubScript: () => si, MathSubScriptElement: () => te, MathSubScriptProperties: () => Nn, MathSubSuperScript: () => oi, MathSubSuperScriptProperties: () => Cn, MathSum: () => ei, MathSuperScript: () => ni, MathSuperScriptElement: () => ee, MathSuperScriptProperties: () => Rn, Media: () => lr, NumberFormat: () => M, NumberProperties: () => Ke, NumberValueElement: () => lt, Numbering: () => Yn, OnOffElement: () => B, OutlineLevel: () => Zr, OverlapType: () => sr, Packer: () => us, PageBorderDisplay: () => Fe, PageBorderOffsetFrom: () => Be, PageBorderZOrder: () => Me, PageBorders: () => on, PageBreak: () => Ao, PageBreakBefore: () => zr, PageMargin: () => cn, PageMarginAttributes: () => an, PageNumber: () => D, PageNumberSeparator: () => Ue, PageNumberType: () => ln, PageNumberTypeAttributes: () => un, PageOrientation: () => ce, PageReference: () => Bo, PageSize: () => pn, PageSizeAttributes: () => hn, PageTextDirection: () => dn, PageTextDirectionType: () => He, Paragraph: () => jt, ParagraphProperties: () => qt, ParagraphPropertiesDefaults: () => ts, PrettifyType: () => gr, RelativeHorizontalPosition: () => rr, RelativeVerticalPosition: () => nr, Run: () => Bt, RunFonts: () => Z, RunProperties: () => Et, RunPropertiesChange: () => Rt, RunPropertiesDefaults: () => es, SectionProperties: () => gn, SectionType: () => ze, SectionTypeAttributes: () => fn, SequentialIdentifier: () => go, Shading: () => it, ShadingType: () => b, SimpleField: () => Br, SimpleMailMergeField: () => bo, SimplePos: () => Er, SpaceType: () => d, Spacing: () => Wr, StringContainer: () => at, StringEnumValueElement: () => rt, StringValueElement: () => G, Style: () => ue, StyleForCharacter: () => de, StyleForParagraph: () => pe, StyleLevel: () => ja, Styles: () => Ae, SymbolRun: () => Es, TDirection: () => Un, Tab: () => wo, TabAttributes: () => Kr, TabStop: () => jr, TabStopItem: () => Gr, TabStopPosition: () => Oe, TabStopType: () => ie, Table: () => Ni, TableAnchorType: () => er, TableBorders: () => tr, TableCell: () => Qe, TableCellBorders: () => Bn, TableFloatOptionsAttributes: () => Hn, TableFloatProperties: () => zn, TableLayout: () => Wn, TableLayoutType: () => or, TableOfContents: () => Wa, TableProperties: () => jn, TableRow: () => Ci, TableRowHeight: () => Gn, TableRowHeightAttributes: () => Kn, TableRowProperties: () => Vn, TableWidthElement: () => Vt, TextDirection: () => Ye, TextRun: () => Yt, TextWrappingSide: () => we, TextWrappingType: () => Xt, ThematicBreak: () => P, Type: () => mn, Underline: () => It, UnderlineType: () => x, VerticalAlign: () => Le, VerticalAlignAttributes: () => Yr, VerticalAlignElement: () => Ve, VerticalMerge: () => Je, VerticalMergeType: () => he, VerticalPosition: () => Ir, VerticalPositionAlign: () => O, VerticalPositionRelativeFrom: () => ge, WORKAROUND: () => Ma, WORKAROUND2: () => ra, WORKAROUND3: () => _, WORKAROUND4: () => ai, WidthType: () => re, WrapNone: () => We, WrapSquare: () => Nr, WrapTight: () => Cr, WrapTopAndBottom: () => Or, XmlAttributeComponent: () => o, XmlComponent: () => n, convertInchesToTwip: () => Ct.convertInchesToTwip, convertMillimetersToTwip: () => Ct.convertMillimetersToTwip, convertToXmlComponent: () => I, dateTimeValue: () => Ct.dateTimeValue, decimalNumber: () => Ct.decimalNumber, eighthPointMeasureValue: () => Ct.eighthPointMeasureValue, hexColorValue: () => Ct.hexColorValue, hpsMeasureValue: () => Ct.hpsMeasureValue, longHexNumber: () => Ct.longHexNumber, measurementOrPercentValue: () => Ct.measurementOrPercentValue, percentageValue: () => Ct.percentageValue, pointMeasureValue: () => Ct.pointMeasureValue, positiveUniversalMeasureValue: () => Ct.positiveUniversalMeasureValue, sectionMarginDefaults: () => Gt, sectionPageSizeDefaults: () => ve, shortHexNumber: () => Ct.shortHexNumber, signedHpsMeasureValue: () => Ct.signedHpsMeasureValue, signedTwipsMeasureValue: () => Ct.signedTwipsMeasureValue, twipsMeasureValue: () => Ct.twipsMeasureValue, uCharHexNumber: () => Ct.uCharHexNumber, uniqueId: () => Ct.uniqueId, uniqueNumericId: () => Ct.uniqueNumericId, universalMeasureValue: () => Ct.universalMeasureValue, unsignedDecimalNumber: () => Ct.unsignedDecimalNumber });
|
|
5235
5236
|
class W {
|
|
5236
5237
|
constructor(t) {
|
|
5237
5238
|
this.rootKey = t;
|
|
@@ -5471,7 +5472,7 @@ Actual: ` + T.attribValue);
|
|
|
5471
5472
|
(function(e) {
|
|
5472
5473
|
e.CLEAR = "clear", e.DIAGONAL_CROSS = "diagCross", e.DIAGONAL_STRIPE = "diagStripe", e.HORIZONTAL_CROSS = "horzCross", e.HORIZONTAL_STRIPE = "horzStripe", e.NIL = "nil", e.PERCENT_5 = "pct5", e.PERCENT_10 = "pct10", e.PERCENT_12 = "pct12", e.PERCENT_15 = "pct15", e.PERCENT_20 = "pct20", e.PERCENT_25 = "pct25", e.PERCENT_30 = "pct30", e.PERCENT_35 = "pct35", e.PERCENT_37 = "pct37", e.PERCENT_40 = "pct40", e.PERCENT_45 = "pct45", e.PERCENT_50 = "pct50", e.PERCENT_55 = "pct55", e.PERCENT_60 = "pct60", e.PERCENT_62 = "pct62", e.PERCENT_65 = "pct65", e.PERCENT_70 = "pct70", e.PERCENT_75 = "pct75", e.PERCENT_80 = "pct80", e.PERCENT_85 = "pct85", e.PERCENT_87 = "pct87", e.PERCENT_90 = "pct90", e.PERCENT_95 = "pct95", e.REVERSE_DIAGONAL_STRIPE = "reverseDiagStripe", e.SOLID = "solid", e.THIN_DIAGONAL_CROSS = "thinDiagCross", e.THIN_DIAGONAL_STRIPE = "thinDiagStripe", e.THIN_HORIZONTAL_CROSS = "thinHorzCross", e.THIN_REVERSE_DIAGONAL_STRIPE = "thinReverseDiagStripe", e.THIN_VERTICAL_STRIPE = "thinVertStripe", e.VERTICAL_STRIPE = "vertStripe";
|
|
5473
5474
|
})(b || (b = {}));
|
|
5474
|
-
class
|
|
5475
|
+
class yt extends o {
|
|
5475
5476
|
constructor() {
|
|
5476
5477
|
super(...arguments), this.xmlKeys = { id: "w:id", author: "w:author", date: "w:date" };
|
|
5477
5478
|
}
|
|
@@ -5479,17 +5480,17 @@ Actual: ` + T.attribValue);
|
|
|
5479
5480
|
(function(e) {
|
|
5480
5481
|
e.DOT = "dot";
|
|
5481
5482
|
})(C || (C = {}));
|
|
5482
|
-
class
|
|
5483
|
+
class mt extends n {
|
|
5483
5484
|
constructor(t) {
|
|
5484
5485
|
super("w:em"), this.root.push(new u({ val: t }));
|
|
5485
5486
|
}
|
|
5486
5487
|
}
|
|
5487
|
-
class Tt extends
|
|
5488
|
+
class Tt extends mt {
|
|
5488
5489
|
constructor(t = C.DOT) {
|
|
5489
5490
|
super(t);
|
|
5490
5491
|
}
|
|
5491
5492
|
}
|
|
5492
|
-
class Ft extends
|
|
5493
|
+
class Ft extends mt {
|
|
5493
5494
|
constructor() {
|
|
5494
5495
|
super(C.DOT);
|
|
5495
5496
|
}
|
|
@@ -5535,7 +5536,7 @@ Actual: ` + T.attribValue);
|
|
|
5535
5536
|
super("w:vertAlign"), this.root.push(new u({ val: t }));
|
|
5536
5537
|
}
|
|
5537
5538
|
}
|
|
5538
|
-
class
|
|
5539
|
+
class bt extends et {
|
|
5539
5540
|
constructor() {
|
|
5540
5541
|
super("superscript");
|
|
5541
5542
|
}
|
|
@@ -5559,7 +5560,7 @@ Actual: ` + T.attribValue);
|
|
|
5559
5560
|
if (super("w:rPr"), !t) return;
|
|
5560
5561
|
t.bold !== void 0 && this.push(new B("w:b", t.bold)), (t.boldComplexScript === void 0 && t.bold !== void 0 || t.boldComplexScript) && this.push(new B("w:bCs", (f = t.boldComplexScript) !== null && f !== void 0 ? f : t.bold)), t.italics !== void 0 && this.push(new B("w:i", t.italics)), (t.italicsComplexScript === void 0 && t.italics !== void 0 || t.italicsComplexScript) && this.push(new B("w:iCs", (H = t.italicsComplexScript) !== null && H !== void 0 ? H : t.italics)), t.underline && this.push(new It(t.underline.type, t.underline.color)), t.emphasisMark && this.push(new Tt(t.emphasisMark.type)), t.color && this.push(new w(t.color)), t.size !== void 0 && this.push(new Q("w:sz", t.size));
|
|
5561
5562
|
const J = t.sizeComplexScript === void 0 || t.sizeComplexScript === !0 ? t.size : t.sizeComplexScript;
|
|
5562
|
-
J && this.push(new Q("w:szCs", J)), t.rightToLeft !== void 0 && this.push(new B("w:rtl", t.rightToLeft)), t.smallCaps !== void 0 ? this.push(new B("w:smallCaps", t.smallCaps)) : t.allCaps !== void 0 && this.push(new B("w:caps", t.allCaps)), t.strike !== void 0 && this.push(new B("w:strike", t.strike)), t.doubleStrike !== void 0 && this.push(new B("w:dstrike", t.doubleStrike)), t.subScript && this.push(new At()), t.superScript && this.push(new
|
|
5563
|
+
J && this.push(new Q("w:szCs", J)), t.rightToLeft !== void 0 && this.push(new B("w:rtl", t.rightToLeft)), t.smallCaps !== void 0 ? this.push(new B("w:smallCaps", t.smallCaps)) : t.allCaps !== void 0 && this.push(new B("w:caps", t.allCaps)), t.strike !== void 0 && this.push(new B("w:strike", t.strike)), t.doubleStrike !== void 0 && this.push(new B("w:dstrike", t.doubleStrike)), t.subScript && this.push(new At()), t.superScript && this.push(new bt()), t.style && this.push(new G("w:rStyle", t.style)), t.font && (typeof t.font == "string" ? this.push(new Z(t.font)) : "name" in t.font ? this.push(new Z(t.font.name, t.font.hint)) : this.push(new Z(t.font))), t.highlight && this.push(new R(t.highlight));
|
|
5563
5564
|
const tt = t.highlightComplexScript === void 0 || t.highlightComplexScript === !0 ? t.highlight : t.highlightComplexScript;
|
|
5564
5565
|
tt && this.push(new j(tt)), t.characterSpacing && this.push(new s(t.characterSpacing)), t.emboss !== void 0 && this.push(new B("w:emboss", t.emboss)), t.imprint !== void 0 && this.push(new B("w:imprint", t.imprint)), t.shading && this.push(new it(t.shading)), t.revision && this.push(new Rt(t.revision)), t.border && this.push(new U("w:bdr", t.border)), t.vanish && this.push(new B("w:vanish", t.vanish)), t.specVanish && this.push(new B("w:specVanish", t.vanish)), t.scale !== void 0 && this.push(new lt("w:w", t.scale));
|
|
5565
5566
|
}
|
|
@@ -5569,7 +5570,7 @@ Actual: ` + T.attribValue);
|
|
|
5569
5570
|
}
|
|
5570
5571
|
class Rt extends n {
|
|
5571
5572
|
constructor(t) {
|
|
5572
|
-
super("w:rPrChange"), this.root.push(new
|
|
5573
|
+
super("w:rPrChange"), this.root.push(new yt({ id: t.id, author: t.author, date: t.date })), this.addChildElement(new Et(t));
|
|
5573
5574
|
}
|
|
5574
5575
|
}
|
|
5575
5576
|
class Re extends n {
|
|
@@ -5607,17 +5608,17 @@ Actual: ` + T.attribValue);
|
|
|
5607
5608
|
super(t);
|
|
5608
5609
|
}
|
|
5609
5610
|
}
|
|
5610
|
-
class
|
|
5611
|
+
class _s extends o {
|
|
5611
5612
|
constructor() {
|
|
5612
5613
|
super(...arguments), this.xmlKeys = { char: "w:char", symbolfont: "w:font" };
|
|
5613
5614
|
}
|
|
5614
5615
|
}
|
|
5615
5616
|
class _r extends n {
|
|
5616
5617
|
constructor(t = "", f = "Wingdings") {
|
|
5617
|
-
super("w:sym"), this.root.push(new
|
|
5618
|
+
super("w:sym"), this.root.push(new _s({ char: t, symbolfont: f }));
|
|
5618
5619
|
}
|
|
5619
5620
|
}
|
|
5620
|
-
class
|
|
5621
|
+
class Es extends Bt {
|
|
5621
5622
|
constructor(t) {
|
|
5622
5623
|
if (typeof t == "string") return super({}), this.root.push(new _r(t)), this;
|
|
5623
5624
|
super(t), this.root.push(new _r(t.char, t.symbolfont));
|
|
@@ -5629,14 +5630,14 @@ Actual: ` + T.attribValue);
|
|
|
5629
5630
|
})(me || (me = {})), (function(e) {
|
|
5630
5631
|
e.BOTTOM_MARGIN = "bottomMargin", e.INSIDE_MARGIN = "insideMargin", e.LINE = "line", e.MARGIN = "margin", e.OUTSIDE_MARGIN = "outsideMargin", e.PAGE = "page", e.PARAGRAPH = "paragraph", e.TOP_MARGIN = "topMargin";
|
|
5631
5632
|
})(ge || (ge = {}));
|
|
5632
|
-
class
|
|
5633
|
+
class Ts extends o {
|
|
5633
5634
|
constructor() {
|
|
5634
5635
|
super(...arguments), this.xmlKeys = { x: "x", y: "y" };
|
|
5635
5636
|
}
|
|
5636
5637
|
}
|
|
5637
5638
|
class Er extends n {
|
|
5638
5639
|
constructor() {
|
|
5639
|
-
super("wp:simplePos"), this.root.push(new
|
|
5640
|
+
super("wp:simplePos"), this.root.push(new Ts({ x: 0, y: 0 }));
|
|
5640
5641
|
}
|
|
5641
5642
|
}
|
|
5642
5643
|
class Tr extends n {
|
|
@@ -5649,178 +5650,178 @@ Actual: ` + T.attribValue);
|
|
|
5649
5650
|
super("wp:posOffset"), this.root.push(t.toString());
|
|
5650
5651
|
}
|
|
5651
5652
|
}
|
|
5652
|
-
class
|
|
5653
|
+
class As extends o {
|
|
5653
5654
|
constructor() {
|
|
5654
5655
|
super(...arguments), this.xmlKeys = { relativeFrom: "relativeFrom" };
|
|
5655
5656
|
}
|
|
5656
5657
|
}
|
|
5657
5658
|
class Sr extends n {
|
|
5658
5659
|
constructor(t) {
|
|
5659
|
-
if (super("wp:positionH"), this.root.push(new
|
|
5660
|
+
if (super("wp:positionH"), this.root.push(new As({ relativeFrom: t.relative || me.PAGE })), t.align) this.root.push(new Tr(t.align));
|
|
5660
5661
|
else {
|
|
5661
5662
|
if (t.offset === void 0) throw new Error("There is no configuration provided for floating position (Align or offset)");
|
|
5662
5663
|
this.root.push(new Ar(t.offset));
|
|
5663
5664
|
}
|
|
5664
5665
|
}
|
|
5665
5666
|
}
|
|
5666
|
-
class
|
|
5667
|
+
class Ss extends o {
|
|
5667
5668
|
constructor() {
|
|
5668
5669
|
super(...arguments), this.xmlKeys = { relativeFrom: "relativeFrom" };
|
|
5669
5670
|
}
|
|
5670
5671
|
}
|
|
5671
5672
|
class Ir extends n {
|
|
5672
5673
|
constructor(t) {
|
|
5673
|
-
if (super("wp:positionV"), this.root.push(new
|
|
5674
|
+
if (super("wp:positionV"), this.root.push(new Ss({ relativeFrom: t.relative || ge.PAGE })), t.align) this.root.push(new Tr(t.align));
|
|
5674
5675
|
else {
|
|
5675
5676
|
if (t.offset === void 0) throw new Error("There is no configuration provided for floating position (Align or offset)");
|
|
5676
5677
|
this.root.push(new Ar(t.offset));
|
|
5677
5678
|
}
|
|
5678
5679
|
}
|
|
5679
5680
|
}
|
|
5680
|
-
class
|
|
5681
|
+
class Is extends o {
|
|
5681
5682
|
constructor() {
|
|
5682
5683
|
super(...arguments), this.xmlKeys = { uri: "uri" };
|
|
5683
5684
|
}
|
|
5684
5685
|
}
|
|
5685
|
-
class
|
|
5686
|
+
class Rs extends o {
|
|
5686
5687
|
constructor() {
|
|
5687
5688
|
super(...arguments), this.xmlKeys = { embed: "r:embed", cstate: "cstate" };
|
|
5688
5689
|
}
|
|
5689
5690
|
}
|
|
5690
|
-
class
|
|
5691
|
+
class Ns extends n {
|
|
5691
5692
|
constructor(t) {
|
|
5692
|
-
super("a:blip"), this.root.push(new
|
|
5693
|
+
super("a:blip"), this.root.push(new Rs({ embed: `rId{${t.fileName}}`, cstate: "none" }));
|
|
5693
5694
|
}
|
|
5694
5695
|
}
|
|
5695
|
-
class
|
|
5696
|
+
class Cs extends n {
|
|
5696
5697
|
constructor() {
|
|
5697
5698
|
super("a:srcRect");
|
|
5698
5699
|
}
|
|
5699
5700
|
}
|
|
5700
|
-
class
|
|
5701
|
+
class Os extends n {
|
|
5701
5702
|
constructor() {
|
|
5702
5703
|
super("a:fillRect");
|
|
5703
5704
|
}
|
|
5704
5705
|
}
|
|
5705
|
-
class
|
|
5706
|
+
class ks extends n {
|
|
5706
5707
|
constructor() {
|
|
5707
|
-
super("a:stretch"), this.root.push(new
|
|
5708
|
+
super("a:stretch"), this.root.push(new Os());
|
|
5708
5709
|
}
|
|
5709
5710
|
}
|
|
5710
|
-
class
|
|
5711
|
+
class Ls extends n {
|
|
5711
5712
|
constructor(t) {
|
|
5712
|
-
super("pic:blipFill"), this.root.push(new
|
|
5713
|
+
super("pic:blipFill"), this.root.push(new Ns(t)), this.root.push(new Cs()), this.root.push(new ks());
|
|
5713
5714
|
}
|
|
5714
5715
|
}
|
|
5715
|
-
class
|
|
5716
|
+
class Ds extends o {
|
|
5716
5717
|
constructor() {
|
|
5717
5718
|
super(...arguments), this.xmlKeys = { noChangeAspect: "noChangeAspect", noChangeArrowheads: "noChangeArrowheads" };
|
|
5718
5719
|
}
|
|
5719
5720
|
}
|
|
5720
|
-
class
|
|
5721
|
+
class Ps extends n {
|
|
5721
5722
|
constructor() {
|
|
5722
|
-
super("a:picLocks"), this.root.push(new
|
|
5723
|
+
super("a:picLocks"), this.root.push(new Ds({ noChangeAspect: 1, noChangeArrowheads: 1 }));
|
|
5723
5724
|
}
|
|
5724
5725
|
}
|
|
5725
|
-
class
|
|
5726
|
+
class Fs extends n {
|
|
5726
5727
|
constructor() {
|
|
5727
|
-
super("pic:cNvPicPr"), this.root.push(new
|
|
5728
|
+
super("pic:cNvPicPr"), this.root.push(new Ps());
|
|
5728
5729
|
}
|
|
5729
5730
|
}
|
|
5730
|
-
class
|
|
5731
|
+
class Bs extends o {
|
|
5731
5732
|
constructor() {
|
|
5732
5733
|
super(...arguments), this.xmlKeys = { id: "id", name: "name", descr: "descr" };
|
|
5733
5734
|
}
|
|
5734
5735
|
}
|
|
5735
|
-
class
|
|
5736
|
+
class Ms extends n {
|
|
5736
5737
|
constructor() {
|
|
5737
|
-
super("pic:cNvPr"), this.root.push(new
|
|
5738
|
+
super("pic:cNvPr"), this.root.push(new Bs({ id: 0, name: "", descr: "" }));
|
|
5738
5739
|
}
|
|
5739
5740
|
}
|
|
5740
|
-
class
|
|
5741
|
+
class Us extends n {
|
|
5741
5742
|
constructor() {
|
|
5742
|
-
super("pic:nvPicPr"), this.root.push(new
|
|
5743
|
+
super("pic:nvPicPr"), this.root.push(new Ms()), this.root.push(new Fs());
|
|
5743
5744
|
}
|
|
5744
5745
|
}
|
|
5745
|
-
class
|
|
5746
|
+
class Hs extends o {
|
|
5746
5747
|
constructor() {
|
|
5747
5748
|
super(...arguments), this.xmlKeys = { xmlns: "xmlns:pic" };
|
|
5748
5749
|
}
|
|
5749
5750
|
}
|
|
5750
|
-
class
|
|
5751
|
+
class zs extends o {
|
|
5751
5752
|
constructor() {
|
|
5752
5753
|
super(...arguments), this.xmlKeys = { cx: "cx", cy: "cy" };
|
|
5753
5754
|
}
|
|
5754
5755
|
}
|
|
5755
|
-
class
|
|
5756
|
+
class Ws extends n {
|
|
5756
5757
|
constructor(t, f) {
|
|
5757
|
-
super("a:ext"), this.attributes = new
|
|
5758
|
+
super("a:ext"), this.attributes = new zs({ cx: t, cy: f }), this.root.push(this.attributes);
|
|
5758
5759
|
}
|
|
5759
5760
|
}
|
|
5760
|
-
class
|
|
5761
|
+
class js extends o {
|
|
5761
5762
|
constructor() {
|
|
5762
5763
|
super(...arguments), this.xmlKeys = { x: "x", y: "y" };
|
|
5763
5764
|
}
|
|
5764
5765
|
}
|
|
5765
|
-
class
|
|
5766
|
+
class Ks extends n {
|
|
5766
5767
|
constructor() {
|
|
5767
|
-
super("a:off"), this.root.push(new
|
|
5768
|
+
super("a:off"), this.root.push(new js({ x: 0, y: 0 }));
|
|
5768
5769
|
}
|
|
5769
5770
|
}
|
|
5770
|
-
class
|
|
5771
|
+
class Gs extends o {
|
|
5771
5772
|
constructor() {
|
|
5772
5773
|
super(...arguments), this.xmlKeys = { flipVertical: "flipV", flipHorizontal: "flipH", rotation: "rot" };
|
|
5773
5774
|
}
|
|
5774
5775
|
}
|
|
5775
|
-
class
|
|
5776
|
+
class Vs extends n {
|
|
5776
5777
|
constructor(t) {
|
|
5777
5778
|
var f, H;
|
|
5778
|
-
super("a:xfrm"), this.root.push(new
|
|
5779
|
+
super("a:xfrm"), this.root.push(new Gs({ flipVertical: (f = t.flip) === null || f === void 0 ? void 0 : f.vertical, flipHorizontal: (H = t.flip) === null || H === void 0 ? void 0 : H.horizontal, rotation: t.rotation })), this.extents = new Ws(t.emus.x, t.emus.y), this.root.push(new Ks()), this.root.push(this.extents);
|
|
5779
5780
|
}
|
|
5780
5781
|
}
|
|
5781
|
-
class
|
|
5782
|
+
class $s extends n {
|
|
5782
5783
|
constructor() {
|
|
5783
5784
|
super("a:avLst");
|
|
5784
5785
|
}
|
|
5785
5786
|
}
|
|
5786
|
-
class
|
|
5787
|
+
class Xs extends o {
|
|
5787
5788
|
constructor() {
|
|
5788
5789
|
super(...arguments), this.xmlKeys = { prst: "prst" };
|
|
5789
5790
|
}
|
|
5790
5791
|
}
|
|
5791
|
-
class
|
|
5792
|
+
class qs extends n {
|
|
5792
5793
|
constructor() {
|
|
5793
|
-
super("a:prstGeom"), this.root.push(new
|
|
5794
|
+
super("a:prstGeom"), this.root.push(new Xs({ prst: "rect" })), this.root.push(new $s());
|
|
5794
5795
|
}
|
|
5795
5796
|
}
|
|
5796
|
-
class
|
|
5797
|
+
class Zs extends o {
|
|
5797
5798
|
constructor() {
|
|
5798
5799
|
super(...arguments), this.xmlKeys = { bwMode: "bwMode" };
|
|
5799
5800
|
}
|
|
5800
5801
|
}
|
|
5801
|
-
class
|
|
5802
|
+
class Ys extends n {
|
|
5802
5803
|
constructor(t) {
|
|
5803
|
-
super("pic:spPr"), this.root.push(new
|
|
5804
|
+
super("pic:spPr"), this.root.push(new Zs({ bwMode: "auto" })), this.form = new Vs(t), this.root.push(this.form), this.root.push(new qs());
|
|
5804
5805
|
}
|
|
5805
5806
|
}
|
|
5806
|
-
class
|
|
5807
|
+
class Js extends n {
|
|
5807
5808
|
constructor(t, f) {
|
|
5808
|
-
super("pic:pic"), this.root.push(new
|
|
5809
|
+
super("pic:pic"), this.root.push(new Hs({ xmlns: "http://schemas.openxmlformats.org/drawingml/2006/picture" })), this.root.push(new Us()), this.root.push(new Ls(t)), this.root.push(new Ys(f));
|
|
5809
5810
|
}
|
|
5810
5811
|
}
|
|
5811
|
-
class
|
|
5812
|
+
class Qs extends n {
|
|
5812
5813
|
constructor(t, f) {
|
|
5813
|
-
super("a:graphicData"), this.root.push(new
|
|
5814
|
+
super("a:graphicData"), this.root.push(new Is({ uri: "http://schemas.openxmlformats.org/drawingml/2006/picture" })), this.pic = new Js(t, f), this.root.push(this.pic);
|
|
5814
5815
|
}
|
|
5815
5816
|
}
|
|
5816
|
-
class
|
|
5817
|
+
class to extends o {
|
|
5817
5818
|
constructor() {
|
|
5818
5819
|
super(...arguments), this.xmlKeys = { a: "xmlns:a" };
|
|
5819
5820
|
}
|
|
5820
5821
|
}
|
|
5821
5822
|
class Rr extends n {
|
|
5822
5823
|
constructor(t, f) {
|
|
5823
|
-
super("a:graphic"), this.root.push(new
|
|
5824
|
+
super("a:graphic"), this.root.push(new to({ a: "http://schemas.openxmlformats.org/drawingml/2006/main" })), this.data = new Qs(t, f), this.root.push(this.data);
|
|
5824
5825
|
}
|
|
5825
5826
|
}
|
|
5826
5827
|
(function(e) {
|
|
@@ -5833,91 +5834,91 @@ Actual: ` + T.attribValue);
|
|
|
5833
5834
|
super("wp:wrapNone");
|
|
5834
5835
|
}
|
|
5835
5836
|
}
|
|
5836
|
-
class
|
|
5837
|
+
class eo extends o {
|
|
5837
5838
|
constructor() {
|
|
5838
5839
|
super(...arguments), this.xmlKeys = { distT: "distT", distB: "distB", distL: "distL", distR: "distR", wrapText: "wrapText" };
|
|
5839
5840
|
}
|
|
5840
5841
|
}
|
|
5841
5842
|
class Nr extends n {
|
|
5842
5843
|
constructor(t, f = { top: 0, bottom: 0, left: 0, right: 0 }) {
|
|
5843
|
-
super("wp:wrapSquare"), this.root.push(new
|
|
5844
|
+
super("wp:wrapSquare"), this.root.push(new eo({ wrapText: t.side || we.BOTH_SIDES, distT: f.top, distB: f.bottom, distL: f.left, distR: f.right }));
|
|
5844
5845
|
}
|
|
5845
5846
|
}
|
|
5846
|
-
class
|
|
5847
|
+
class ro extends o {
|
|
5847
5848
|
constructor() {
|
|
5848
5849
|
super(...arguments), this.xmlKeys = { distT: "distT", distB: "distB" };
|
|
5849
5850
|
}
|
|
5850
5851
|
}
|
|
5851
5852
|
class Cr extends n {
|
|
5852
5853
|
constructor(t = { top: 0, bottom: 0 }) {
|
|
5853
|
-
super("wp:wrapTight"), this.root.push(new
|
|
5854
|
+
super("wp:wrapTight"), this.root.push(new ro({ distT: t.top, distB: t.bottom }));
|
|
5854
5855
|
}
|
|
5855
5856
|
}
|
|
5856
|
-
class
|
|
5857
|
+
class no extends o {
|
|
5857
5858
|
constructor() {
|
|
5858
5859
|
super(...arguments), this.xmlKeys = { distT: "distT", distB: "distB" };
|
|
5859
5860
|
}
|
|
5860
5861
|
}
|
|
5861
5862
|
class Or extends n {
|
|
5862
5863
|
constructor(t = { top: 0, bottom: 0 }) {
|
|
5863
|
-
super("wp:wrapTopAndBottom"), this.root.push(new
|
|
5864
|
+
super("wp:wrapTopAndBottom"), this.root.push(new no({ distT: t.top, distB: t.bottom }));
|
|
5864
5865
|
}
|
|
5865
5866
|
}
|
|
5866
|
-
class
|
|
5867
|
+
class so extends o {
|
|
5867
5868
|
constructor() {
|
|
5868
5869
|
super(...arguments), this.xmlKeys = { id: "id", name: "name", description: "descr", title: "title" };
|
|
5869
5870
|
}
|
|
5870
5871
|
}
|
|
5871
5872
|
class kr extends n {
|
|
5872
5873
|
constructor({ name: t, description: f, title: H } = { name: "", description: "", title: "" }) {
|
|
5873
|
-
super("wp:docPr"), this.root.push(new
|
|
5874
|
+
super("wp:docPr"), this.root.push(new so({ id: (0, Ot.NY)(), name: t, description: f, title: H }));
|
|
5874
5875
|
}
|
|
5875
5876
|
}
|
|
5876
|
-
class
|
|
5877
|
+
class oo extends o {
|
|
5877
5878
|
constructor() {
|
|
5878
5879
|
super(...arguments), this.xmlKeys = { b: "b", l: "l", r: "r", t: "t" };
|
|
5879
5880
|
}
|
|
5880
5881
|
}
|
|
5881
5882
|
class Lr extends n {
|
|
5882
5883
|
constructor() {
|
|
5883
|
-
super("wp:effectExtent"), this.root.push(new
|
|
5884
|
+
super("wp:effectExtent"), this.root.push(new oo({ b: 0, l: 0, r: 0, t: 0 }));
|
|
5884
5885
|
}
|
|
5885
5886
|
}
|
|
5886
|
-
class
|
|
5887
|
+
class io extends o {
|
|
5887
5888
|
constructor() {
|
|
5888
5889
|
super(...arguments), this.xmlKeys = { cx: "cx", cy: "cy" };
|
|
5889
5890
|
}
|
|
5890
5891
|
}
|
|
5891
5892
|
class Dr extends n {
|
|
5892
5893
|
constructor(t, f) {
|
|
5893
|
-
super("wp:extent"), this.attributes = new
|
|
5894
|
+
super("wp:extent"), this.attributes = new io({ cx: t, cy: f }), this.root.push(this.attributes);
|
|
5894
5895
|
}
|
|
5895
5896
|
}
|
|
5896
|
-
class
|
|
5897
|
+
class ao extends o {
|
|
5897
5898
|
constructor() {
|
|
5898
5899
|
super(...arguments), this.xmlKeys = { xmlns: "xmlns:a", noChangeAspect: "noChangeAspect" };
|
|
5899
5900
|
}
|
|
5900
5901
|
}
|
|
5901
|
-
class
|
|
5902
|
+
class co extends n {
|
|
5902
5903
|
constructor() {
|
|
5903
|
-
super("a:graphicFrameLocks"), this.root.push(new
|
|
5904
|
+
super("a:graphicFrameLocks"), this.root.push(new ao({ xmlns: "http://schemas.openxmlformats.org/drawingml/2006/main", noChangeAspect: 1 }));
|
|
5904
5905
|
}
|
|
5905
5906
|
}
|
|
5906
5907
|
class Pr extends n {
|
|
5907
5908
|
constructor() {
|
|
5908
|
-
super("wp:cNvGraphicFramePr"), this.root.push(new
|
|
5909
|
+
super("wp:cNvGraphicFramePr"), this.root.push(new co());
|
|
5909
5910
|
}
|
|
5910
5911
|
}
|
|
5911
|
-
class
|
|
5912
|
+
class uo extends o {
|
|
5912
5913
|
constructor() {
|
|
5913
5914
|
super(...arguments), this.xmlKeys = { distT: "distT", distB: "distB", distL: "distL", distR: "distR", allowOverlap: "allowOverlap", behindDoc: "behindDoc", layoutInCell: "layoutInCell", locked: "locked", relativeHeight: "relativeHeight", simplePos: "simplePos" };
|
|
5914
5915
|
}
|
|
5915
5916
|
}
|
|
5916
|
-
class
|
|
5917
|
+
class lo extends n {
|
|
5917
5918
|
constructor(t, f, H) {
|
|
5918
5919
|
super("wp:anchor");
|
|
5919
5920
|
const J = Object.assign({ allowOverlap: !0, behindDocument: !1, lockAnchor: !1, layoutInCell: !0, verticalPosition: {}, horizontalPosition: {} }, H.floating);
|
|
5920
|
-
if (this.root.push(new
|
|
5921
|
+
if (this.root.push(new uo({ distT: J.margins && J.margins.top || 0, distB: J.margins && J.margins.bottom || 0, distL: J.margins && J.margins.left || 0, distR: J.margins && J.margins.right || 0, simplePos: "0", allowOverlap: J.allowOverlap === !0 ? "1" : "0", behindDoc: J.behindDocument === !0 ? "1" : "0", locked: J.lockAnchor === !0 ? "1" : "0", layoutInCell: J.layoutInCell === !0 ? "1" : "0", relativeHeight: J.zIndex ? J.zIndex : f.emus.y })), this.root.push(new Er()), this.root.push(new Sr(J.horizontalPosition)), this.root.push(new Ir(J.verticalPosition)), this.root.push(new Dr(f.emus.x, f.emus.y)), this.root.push(new Lr()), H.floating !== void 0 && H.floating.wrap !== void 0) switch (H.floating.wrap.type) {
|
|
5921
5922
|
case Xt.SQUARE:
|
|
5922
5923
|
this.root.push(new Nr(H.floating.wrap, H.floating.margins));
|
|
5923
5924
|
break;
|
|
@@ -5935,22 +5936,22 @@ Actual: ` + T.attribValue);
|
|
|
5935
5936
|
this.root.push(new kr(H.docProperties)), this.root.push(new Pr()), this.root.push(new Rr(t, f));
|
|
5936
5937
|
}
|
|
5937
5938
|
}
|
|
5938
|
-
class
|
|
5939
|
+
class ho extends o {
|
|
5939
5940
|
constructor() {
|
|
5940
5941
|
super(...arguments), this.xmlKeys = { distT: "distT", distB: "distB", distL: "distL", distR: "distR" };
|
|
5941
5942
|
}
|
|
5942
5943
|
}
|
|
5943
|
-
class
|
|
5944
|
+
class po extends n {
|
|
5944
5945
|
constructor({ mediaData: t, transform: f, docProperties: H }) {
|
|
5945
|
-
super("wp:inline"), this.root.push(new
|
|
5946
|
+
super("wp:inline"), this.root.push(new ho({ distT: 0, distB: 0, distL: 0, distR: 0 })), this.extent = new Dr(f.emus.x, f.emus.y), this.graphic = new Rr(t, f), this.root.push(this.extent), this.root.push(new Lr()), this.root.push(new kr(H)), this.root.push(new Pr()), this.root.push(this.graphic);
|
|
5946
5947
|
}
|
|
5947
5948
|
}
|
|
5948
5949
|
class Fr extends n {
|
|
5949
5950
|
constructor(t, f = {}) {
|
|
5950
|
-
super("w:drawing"), f.floating ? this.root.push(new
|
|
5951
|
+
super("w:drawing"), f.floating ? this.root.push(new lo(t, t.transformation, f)) : (this.inline = new po({ mediaData: t, transform: t.transformation, docProperties: f.docProperties }), this.root.push(this.inline));
|
|
5951
5952
|
}
|
|
5952
5953
|
}
|
|
5953
|
-
class
|
|
5954
|
+
class fo extends Bt {
|
|
5954
5955
|
constructor(t) {
|
|
5955
5956
|
super({}), this.key = `${(0, Ot.EL)()}.png`;
|
|
5956
5957
|
const f = typeof t.data == "string" ? this.convertDataURIToBinary(t.data) : t.data;
|
|
@@ -5969,37 +5970,37 @@ Actual: ` + T.attribValue);
|
|
|
5969
5970
|
return new (ct(8764)).Buffer(t, "base64");
|
|
5970
5971
|
}
|
|
5971
5972
|
}
|
|
5972
|
-
class
|
|
5973
|
+
class mo extends n {
|
|
5973
5974
|
constructor(t) {
|
|
5974
5975
|
super("w:instrText"), this.root.push(new L({ space: d.PRESERVE })), this.root.push(`SEQ ${t}`);
|
|
5975
5976
|
}
|
|
5976
5977
|
}
|
|
5977
|
-
class
|
|
5978
|
+
class go extends Bt {
|
|
5978
5979
|
constructor(t) {
|
|
5979
|
-
super({}), this.root.push(new T(!0)), this.root.push(new
|
|
5980
|
+
super({}), this.root.push(new T(!0)), this.root.push(new mo(t)), this.root.push(new i()), this.root.push(new v());
|
|
5980
5981
|
}
|
|
5981
5982
|
}
|
|
5982
|
-
class
|
|
5983
|
+
class wo extends n {
|
|
5983
5984
|
constructor() {
|
|
5984
5985
|
super("w:tab");
|
|
5985
5986
|
}
|
|
5986
5987
|
}
|
|
5987
|
-
class
|
|
5988
|
+
class yo extends o {
|
|
5988
5989
|
constructor() {
|
|
5989
5990
|
super(...arguments), this.xmlKeys = { instr: "w:instr" };
|
|
5990
5991
|
}
|
|
5991
5992
|
}
|
|
5992
5993
|
class Br extends n {
|
|
5993
5994
|
constructor(t, f) {
|
|
5994
|
-
super("w:fldSimple"), this.root.push(new
|
|
5995
|
+
super("w:fldSimple"), this.root.push(new yo({ instr: t })), f !== void 0 && this.root.push(new Yt(f));
|
|
5995
5996
|
}
|
|
5996
5997
|
}
|
|
5997
|
-
class
|
|
5998
|
+
class bo extends Br {
|
|
5998
5999
|
constructor(t) {
|
|
5999
6000
|
super(` MERGEFIELD ${t} `, `«${t}»`);
|
|
6000
6001
|
}
|
|
6001
6002
|
}
|
|
6002
|
-
class
|
|
6003
|
+
class xo extends o {
|
|
6003
6004
|
constructor() {
|
|
6004
6005
|
super(...arguments), this.xmlKeys = { id: "w:id", initials: "w:initials", author: "w:author", date: "w:date" };
|
|
6005
6006
|
}
|
|
@@ -6009,34 +6010,34 @@ Actual: ` + T.attribValue);
|
|
|
6009
6010
|
super(...arguments), this.xmlKeys = { id: "w:id" };
|
|
6010
6011
|
}
|
|
6011
6012
|
}
|
|
6012
|
-
class
|
|
6013
|
+
class vo extends o {
|
|
6013
6014
|
constructor() {
|
|
6014
6015
|
super(...arguments), this.xmlKeys = { "xmlns:cx": "xmlns:cx", "xmlns:cx1": "xmlns:cx1", "xmlns:cx2": "xmlns:cx2", "xmlns:cx3": "xmlns:cx3", "xmlns:cx4": "xmlns:cx4", "xmlns:cx5": "xmlns:cx5", "xmlns:cx6": "xmlns:cx6", "xmlns:cx7": "xmlns:cx7", "xmlns:cx8": "xmlns:cx8", "xmlns:mc": "xmlns:mc", "xmlns:aink": "xmlns:aink", "xmlns:am3d": "xmlns:am3d", "xmlns:o": "xmlns:o", "xmlns:r": "xmlns:r", "xmlns:m": "xmlns:m", "xmlns:v": "xmlns:v", "xmlns:wp14": "xmlns:wp14", "xmlns:wp": "xmlns:wp", "xmlns:w10": "xmlns:w10", "xmlns:w": "xmlns:w", "xmlns:w14": "xmlns:w14", "xmlns:w15": "xmlns:w15", "xmlns:w16cex": "xmlns:w16cex", "xmlns:w16cid": "xmlns:w16cid", "xmlns:w16": "xmlns:w16", "xmlns:w16sdtdh": "xmlns:w16sdtdh", "xmlns:w16se": "xmlns:w16se", "xmlns:wpg": "xmlns:wpg", "xmlns:wpi": "xmlns:wpi", "xmlns:wne": "xmlns:wne", "xmlns:wps": "xmlns:wps" };
|
|
6015
6016
|
}
|
|
6016
6017
|
}
|
|
6017
|
-
class
|
|
6018
|
+
class _o extends n {
|
|
6018
6019
|
constructor(t) {
|
|
6019
6020
|
super("w:commentRangeStart"), this.root.push(new je({ id: t }));
|
|
6020
6021
|
}
|
|
6021
6022
|
}
|
|
6022
|
-
class
|
|
6023
|
+
class Eo extends n {
|
|
6023
6024
|
constructor(t) {
|
|
6024
6025
|
super("w:commentRangeEnd"), this.root.push(new je({ id: t }));
|
|
6025
6026
|
}
|
|
6026
6027
|
}
|
|
6027
|
-
class
|
|
6028
|
+
class To extends n {
|
|
6028
6029
|
constructor(t) {
|
|
6029
6030
|
super("w:commentReference"), this.root.push(new je({ id: t }));
|
|
6030
6031
|
}
|
|
6031
6032
|
}
|
|
6032
6033
|
class Mr extends n {
|
|
6033
6034
|
constructor({ id: t, initials: f, author: H, date: J = /* @__PURE__ */ new Date(), text: tt }) {
|
|
6034
|
-
super("w:comment"), this.root.push(new
|
|
6035
|
+
super("w:comment"), this.root.push(new xo({ id: t, initials: f, author: H, date: J.toISOString() })), this.root.push(new jt({ children: [new Yt(tt)] }));
|
|
6035
6036
|
}
|
|
6036
6037
|
}
|
|
6037
6038
|
class Ur extends n {
|
|
6038
6039
|
constructor({ children: t }) {
|
|
6039
|
-
super("w:comments"), this.root.push(new
|
|
6040
|
+
super("w:comments"), this.root.push(new vo({ "xmlns:cx": "http://schemas.microsoft.com/office/drawing/2014/chartex", "xmlns:cx1": "http://schemas.microsoft.com/office/drawing/2015/9/8/chartex", "xmlns:cx2": "http://schemas.microsoft.com/office/drawing/2015/10/21/chartex", "xmlns:cx3": "http://schemas.microsoft.com/office/drawing/2016/5/9/chartex", "xmlns:cx4": "http://schemas.microsoft.com/office/drawing/2016/5/10/chartex", "xmlns:cx5": "http://schemas.microsoft.com/office/drawing/2016/5/11/chartex", "xmlns:cx6": "http://schemas.microsoft.com/office/drawing/2016/5/12/chartex", "xmlns:cx7": "http://schemas.microsoft.com/office/drawing/2016/5/13/chartex", "xmlns:cx8": "http://schemas.microsoft.com/office/drawing/2016/5/14/chartex", "xmlns:mc": "http://schemas.openxmlformats.org/markup-compatibility/2006", "xmlns:aink": "http://schemas.microsoft.com/office/drawing/2016/ink", "xmlns:am3d": "http://schemas.microsoft.com/office/drawing/2017/model3d", "xmlns:o": "urn:schemas-microsoft-com:office:office", "xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships", "xmlns:m": "http://schemas.openxmlformats.org/officeDocument/2006/math", "xmlns:v": "urn:schemas-microsoft-com:vml", "xmlns:wp14": "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing", "xmlns:wp": "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", "xmlns:w10": "urn:schemas-microsoft-com:office:word", "xmlns:w": "http://schemas.openxmlformats.org/wordprocessingml/2006/main", "xmlns:w14": "http://schemas.microsoft.com/office/word/2010/wordml", "xmlns:w15": "http://schemas.microsoft.com/office/word/2012/wordml", "xmlns:w16cex": "http://schemas.microsoft.com/office/word/2018/wordml/cex", "xmlns:w16cid": "http://schemas.microsoft.com/office/word/2016/wordml/cid", "xmlns:w16": "http://schemas.microsoft.com/office/word/2018/wordml", "xmlns:w16sdtdh": "http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash", "xmlns:w16se": "http://schemas.microsoft.com/office/word/2015/wordml/symex", "xmlns:wpg": "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup", "xmlns:wpi": "http://schemas.microsoft.com/office/word/2010/wordprocessingInk", "xmlns:wne": "http://schemas.microsoft.com/office/word/2006/wordml", "xmlns:wps": "http://schemas.microsoft.com/office/word/2010/wordprocessingShape" }));
|
|
6040
6041
|
for (const f of t) this.root.push(new Mr(f));
|
|
6041
6042
|
}
|
|
6042
6043
|
}
|
|
@@ -6048,12 +6049,12 @@ Actual: ` + T.attribValue);
|
|
|
6048
6049
|
super("w:br"), this.root.push(new u({ type: t }));
|
|
6049
6050
|
}
|
|
6050
6051
|
}
|
|
6051
|
-
class
|
|
6052
|
+
class Ao extends Bt {
|
|
6052
6053
|
constructor() {
|
|
6053
6054
|
super({}), this.root.push(new Hr(ye.PAGE));
|
|
6054
6055
|
}
|
|
6055
6056
|
}
|
|
6056
|
-
class
|
|
6057
|
+
class So extends Bt {
|
|
6057
6058
|
constructor() {
|
|
6058
6059
|
super({}), this.root.push(new Hr(ye.COLUMN));
|
|
6059
6060
|
}
|
|
@@ -6066,14 +6067,14 @@ Actual: ` + T.attribValue);
|
|
|
6066
6067
|
(function(e) {
|
|
6067
6068
|
e.AT_LEAST = "atLeast", e.EXACTLY = "exactly", e.EXACT = "exact", e.AUTO = "auto";
|
|
6068
6069
|
})(Jt || (Jt = {}));
|
|
6069
|
-
class
|
|
6070
|
+
class Io extends o {
|
|
6070
6071
|
constructor() {
|
|
6071
6072
|
super(...arguments), this.xmlKeys = { after: "w:after", before: "w:before", line: "w:line", lineRule: "w:lineRule" };
|
|
6072
6073
|
}
|
|
6073
6074
|
}
|
|
6074
6075
|
class Wr extends n {
|
|
6075
6076
|
constructor(t) {
|
|
6076
|
-
super("w:spacing"), this.root.push(new
|
|
6077
|
+
super("w:spacing"), this.root.push(new Io(t));
|
|
6077
6078
|
}
|
|
6078
6079
|
}
|
|
6079
6080
|
(function(e) {
|
|
@@ -6109,21 +6110,21 @@ Actual: ` + T.attribValue);
|
|
|
6109
6110
|
}
|
|
6110
6111
|
class Ke extends n {
|
|
6111
6112
|
constructor(t, f) {
|
|
6112
|
-
super("w:numPr"), this.root.push(new
|
|
6113
|
+
super("w:numPr"), this.root.push(new Ro(f)), this.root.push(new No(t));
|
|
6113
6114
|
}
|
|
6114
6115
|
}
|
|
6115
|
-
class
|
|
6116
|
+
class Ro extends n {
|
|
6116
6117
|
constructor(t) {
|
|
6117
6118
|
if (super("w:ilvl"), t > 9) throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");
|
|
6118
6119
|
this.root.push(new u({ val: t }));
|
|
6119
6120
|
}
|
|
6120
6121
|
}
|
|
6121
|
-
class
|
|
6122
|
+
class No extends n {
|
|
6122
6123
|
constructor(t) {
|
|
6123
6124
|
super("w:numId"), this.root.push(new u({ val: typeof t == "string" ? `{${t}}` : t }));
|
|
6124
6125
|
}
|
|
6125
6126
|
}
|
|
6126
|
-
class
|
|
6127
|
+
class Co extends o {
|
|
6127
6128
|
constructor() {
|
|
6128
6129
|
super(...arguments), this.xmlKeys = { id: "Id", type: "Type", target: "Target", targetMode: "TargetMode" };
|
|
6129
6130
|
}
|
|
@@ -6131,12 +6132,12 @@ Actual: ` + T.attribValue);
|
|
|
6131
6132
|
(function(e) {
|
|
6132
6133
|
e.EXTERNAL = "External";
|
|
6133
6134
|
})(be || (be = {}));
|
|
6134
|
-
class
|
|
6135
|
+
class Oo extends n {
|
|
6135
6136
|
constructor(t, f, H, J) {
|
|
6136
|
-
super("Relationship"), this.root.push(new
|
|
6137
|
+
super("Relationship"), this.root.push(new Co({ id: t, type: f, target: H, targetMode: J }));
|
|
6137
6138
|
}
|
|
6138
6139
|
}
|
|
6139
|
-
class
|
|
6140
|
+
class ko extends o {
|
|
6140
6141
|
constructor() {
|
|
6141
6142
|
super(...arguments), this.xmlKeys = { id: "r:id", history: "w:history", anchor: "w:anchor" };
|
|
6142
6143
|
}
|
|
@@ -6147,13 +6148,13 @@ Actual: ` + T.attribValue);
|
|
|
6147
6148
|
class Ge extends n {
|
|
6148
6149
|
constructor(t, f, H) {
|
|
6149
6150
|
super("w:hyperlink"), this.linkId = f;
|
|
6150
|
-
const J = { history: 1, anchor: H || void 0, id: H ? void 0 : `rId${this.linkId}` }, tt = new
|
|
6151
|
+
const J = { history: 1, anchor: H || void 0, id: H ? void 0 : `rId${this.linkId}` }, tt = new ko(J);
|
|
6151
6152
|
this.root.push(tt), t.forEach(((ut) => {
|
|
6152
6153
|
this.root.push(ut);
|
|
6153
6154
|
}));
|
|
6154
6155
|
}
|
|
6155
6156
|
}
|
|
6156
|
-
class
|
|
6157
|
+
class Lo extends Ge {
|
|
6157
6158
|
constructor(t) {
|
|
6158
6159
|
super(t.children, (0, Ot.EL)(), t.anchor);
|
|
6159
6160
|
}
|
|
@@ -6163,12 +6164,12 @@ Actual: ` + T.attribValue);
|
|
|
6163
6164
|
super("w:externalHyperlink"), this.options = t;
|
|
6164
6165
|
}
|
|
6165
6166
|
}
|
|
6166
|
-
class
|
|
6167
|
+
class Do extends o {
|
|
6167
6168
|
constructor() {
|
|
6168
6169
|
super(...arguments), this.xmlKeys = { id: "w:id", name: "w:name" };
|
|
6169
6170
|
}
|
|
6170
6171
|
}
|
|
6171
|
-
class
|
|
6172
|
+
class Po extends o {
|
|
6172
6173
|
constructor() {
|
|
6173
6174
|
super(...arguments), this.xmlKeys = { id: "w:id" };
|
|
6174
6175
|
}
|
|
@@ -6182,14 +6183,14 @@ Actual: ` + T.attribValue);
|
|
|
6182
6183
|
class Xr extends n {
|
|
6183
6184
|
constructor(t, f) {
|
|
6184
6185
|
super("w:bookmarkStart");
|
|
6185
|
-
const H = new
|
|
6186
|
+
const H = new Do({ name: t, id: f });
|
|
6186
6187
|
this.root.push(H);
|
|
6187
6188
|
}
|
|
6188
6189
|
}
|
|
6189
6190
|
class qr extends n {
|
|
6190
6191
|
constructor(t) {
|
|
6191
6192
|
super("w:bookmarkEnd");
|
|
6192
|
-
const f = new
|
|
6193
|
+
const f = new Po({ id: t });
|
|
6193
6194
|
this.root.push(f);
|
|
6194
6195
|
}
|
|
6195
6196
|
}
|
|
@@ -6198,16 +6199,16 @@ Actual: ` + T.attribValue);
|
|
|
6198
6199
|
super("w:outlineLvl"), this.level = t, this.root.push(new u({ val: t }));
|
|
6199
6200
|
}
|
|
6200
6201
|
}
|
|
6201
|
-
class
|
|
6202
|
+
class Fo extends n {
|
|
6202
6203
|
constructor(t, f = {}) {
|
|
6203
6204
|
super("w:instrText"), this.root.push(new L({ space: d.PRESERVE }));
|
|
6204
6205
|
let H = `PAGEREF ${t}`;
|
|
6205
6206
|
f.hyperlink && (H = `${H} \\h`), f.useRelativePosition && (H = `${H} \\p`), this.root.push(H);
|
|
6206
6207
|
}
|
|
6207
6208
|
}
|
|
6208
|
-
class
|
|
6209
|
+
class Bo extends Bt {
|
|
6209
6210
|
constructor(t, f = {}) {
|
|
6210
|
-
super({ children: [new T(!0), new
|
|
6211
|
+
super({ children: [new T(!0), new Fo(t, f), new v()] });
|
|
6211
6212
|
}
|
|
6212
6213
|
}
|
|
6213
6214
|
(function(e) {
|
|
@@ -6226,7 +6227,7 @@ Actual: ` + T.attribValue);
|
|
|
6226
6227
|
(function(e) {
|
|
6227
6228
|
e.DEFAULT = "default", e.FIRST = "first", e.EVEN = "even";
|
|
6228
6229
|
})(Wt || (Wt = {}));
|
|
6229
|
-
class
|
|
6230
|
+
class Mo extends o {
|
|
6230
6231
|
constructor() {
|
|
6231
6232
|
super(...arguments), this.xmlKeys = { type: "w:type", id: "r:id" };
|
|
6232
6233
|
}
|
|
@@ -6236,7 +6237,7 @@ Actual: ` + T.attribValue);
|
|
|
6236
6237
|
})(ae || (ae = {}));
|
|
6237
6238
|
class xe extends n {
|
|
6238
6239
|
constructor(t, f) {
|
|
6239
|
-
super(t), this.root.push(new
|
|
6240
|
+
super(t), this.root.push(new Mo({ type: f.type || Wt.DEFAULT, id: `rId${f.id}` }));
|
|
6240
6241
|
}
|
|
6241
6242
|
}
|
|
6242
6243
|
class Jr extends o {
|
|
@@ -6334,14 +6335,14 @@ Actual: ` + T.attribValue);
|
|
|
6334
6335
|
(function(e) {
|
|
6335
6336
|
e.LEFT_TO_RIGHT_TOP_TO_BOTTOM = "lrTb", e.TOP_TO_BOTTOM_RIGHT_TO_LEFT = "tbRl";
|
|
6336
6337
|
})(He || (He = {}));
|
|
6337
|
-
class
|
|
6338
|
+
class Uo extends o {
|
|
6338
6339
|
constructor() {
|
|
6339
6340
|
super(...arguments), this.xmlKeys = { val: "w:val" };
|
|
6340
6341
|
}
|
|
6341
6342
|
}
|
|
6342
6343
|
class dn extends n {
|
|
6343
6344
|
constructor(t) {
|
|
6344
|
-
super("w:textDirection"), this.root.push(new
|
|
6345
|
+
super("w:textDirection"), this.root.push(new Uo({ val: t }));
|
|
6345
6346
|
}
|
|
6346
6347
|
}
|
|
6347
6348
|
(function(e) {
|
|
@@ -6359,8 +6360,8 @@ Actual: ` + T.attribValue);
|
|
|
6359
6360
|
}
|
|
6360
6361
|
const Gt = { TOP: "1in", RIGHT: "1in", BOTTOM: "1in", LEFT: "1in", HEADER: 708, FOOTER: 708, GUTTER: 0 }, ve = { WIDTH: 11906, HEIGHT: 16838, ORIENTATION: ce.PORTRAIT };
|
|
6361
6362
|
class gn extends n {
|
|
6362
|
-
constructor({ page: { size: { width: t = ve.WIDTH, height: f = ve.HEIGHT, orientation: H = ve.ORIENTATION } = {}, margin: { top: J = Gt.TOP, right: tt = Gt.RIGHT, bottom: ut = Gt.BOTTOM, left: ft = Gt.LEFT, header: vt = Gt.HEADER, footer: pt = Gt.FOOTER, gutter:
|
|
6363
|
-
super("w:sectPr"), this.addHeaderFooterGroup(ae.HEADER,
|
|
6363
|
+
constructor({ page: { size: { width: t = ve.WIDTH, height: f = ve.HEIGHT, orientation: H = ve.ORIENTATION } = {}, margin: { top: J = Gt.TOP, right: tt = Gt.RIGHT, bottom: ut = Gt.BOTTOM, left: ft = Gt.LEFT, header: vt = Gt.HEADER, footer: pt = Gt.FOOTER, gutter: wt = Gt.GUTTER } = {}, pageNumbers: Lt = {}, borders: St, textDirection: Dt } = {}, grid: { linePitch: zt = 360, charSpace: Pt, type: Kt } = {}, headerWrapperGroup: sc = {}, footerWrapperGroup: oc = {}, lineNumbers: ls, titlePage: hs, verticalAlign: ps, column: ds, type: fs } = {}) {
|
|
6364
|
+
super("w:sectPr"), this.addHeaderFooterGroup(ae.HEADER, sc), this.addHeaderFooterGroup(ae.FOOTER, oc), fs && this.root.push(new mn(fs)), this.root.push(new pn(t, f, H)), this.root.push(new cn(J, tt, ut, ft, vt, pt, wt)), St && this.root.push(new on(St)), ls && this.root.push(new nn(ls)), this.root.push(new ln(Lt)), ds && this.root.push(new Qr(ds)), ps && this.root.push(new Ve(ps)), hs !== void 0 && this.root.push(new B("w:titlePg", hs)), Dt && this.root.push(new dn(Dt)), this.root.push(new en(zt, Pt, Kt));
|
|
6364
6365
|
}
|
|
6365
6366
|
addHeaderFooterGroup(t, f) {
|
|
6366
6367
|
f.default && this.root.push(new xe(t, { type: Wt.DEFAULT, id: f.default.View.ReferenceId })), f.first && this.root.push(new xe(t, { type: Wt.FIRST, id: f.first.View.ReferenceId })), f.even && this.root.push(new xe(t, { type: Wt.EVEN, id: f.even.View.ReferenceId }));
|
|
@@ -6390,7 +6391,7 @@ Actual: ` + T.attribValue);
|
|
|
6390
6391
|
super(...arguments), this.xmlKeys = { width: "w:w", space: "w:space" };
|
|
6391
6392
|
}
|
|
6392
6393
|
}
|
|
6393
|
-
class
|
|
6394
|
+
class Ho extends n {
|
|
6394
6395
|
constructor({ width: t, space: f }) {
|
|
6395
6396
|
super("w:col"), this.root.push(new yn({ width: (0, r.Jd)(t), space: f === void 0 ? void 0 : (0, r.Jd)(f) }));
|
|
6396
6397
|
}
|
|
@@ -6410,7 +6411,7 @@ Actual: ` + T.attribValue);
|
|
|
6410
6411
|
super("w:background"), this.root.push(new bn({ color: t.color === void 0 ? void 0 : (0, r.dg)(t.color), themeColor: t.themeColor, themeShade: t.themeShade === void 0 ? void 0 : (0, r.xD)(t.themeShade), themeTint: t.themeTint === void 0 ? void 0 : (0, r.xD)(t.themeTint) }));
|
|
6411
6412
|
}
|
|
6412
6413
|
}
|
|
6413
|
-
class
|
|
6414
|
+
class zo extends n {
|
|
6414
6415
|
constructor(t) {
|
|
6415
6416
|
super("w:document"), this.root.push(new Qt({ wpc: "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas", mc: "http://schemas.openxmlformats.org/markup-compatibility/2006", o: "urn:schemas-microsoft-com:office:office", r: "http://schemas.openxmlformats.org/officeDocument/2006/relationships", m: "http://schemas.openxmlformats.org/officeDocument/2006/math", v: "urn:schemas-microsoft-com:vml", wp14: "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing", wp: "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", w10: "urn:schemas-microsoft-com:office:word", w: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", w14: "http://schemas.microsoft.com/office/word/2010/wordml", w15: "http://schemas.microsoft.com/office/word/2012/wordml", wpg: "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup", wpi: "http://schemas.microsoft.com/office/word/2010/wordprocessingInk", wne: "http://schemas.microsoft.com/office/word/2006/wordml", wps: "http://schemas.microsoft.com/office/word/2010/wordprocessingShape", cx: "http://schemas.microsoft.com/office/drawing/2014/chartex", cx1: "http://schemas.microsoft.com/office/drawing/2015/9/8/chartex", cx2: "http://schemas.microsoft.com/office/drawing/2015/10/21/chartex", cx3: "http://schemas.microsoft.com/office/drawing/2016/5/9/chartex", cx4: "http://schemas.microsoft.com/office/drawing/2016/5/10/chartex", cx5: "http://schemas.microsoft.com/office/drawing/2016/5/11/chartex", cx6: "http://schemas.microsoft.com/office/drawing/2016/5/12/chartex", cx7: "http://schemas.microsoft.com/office/drawing/2016/5/13/chartex", cx8: "http://schemas.microsoft.com/office/drawing/2016/5/14/chartex", aink: "http://schemas.microsoft.com/office/drawing/2016/ink", am3d: "http://schemas.microsoft.com/office/drawing/2017/model3d", w16cex: "http://schemas.microsoft.com/office/word/2018/wordml/cex", w16cid: "http://schemas.microsoft.com/office/word/2016/wordml/cid", w16: "http://schemas.microsoft.com/office/word/2018/wordml", w16sdtdh: "http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash", w16se: "http://schemas.microsoft.com/office/word/2015/wordml/symex", Ignorable: "w14 w15 wp14" })), this.body = new wn(), t.background && this.root.push(new xn(t.background)), this.root.push(this.body);
|
|
6416
6417
|
}
|
|
@@ -6421,20 +6422,20 @@ Actual: ` + T.attribValue);
|
|
|
6421
6422
|
return this.body;
|
|
6422
6423
|
}
|
|
6423
6424
|
}
|
|
6424
|
-
class
|
|
6425
|
+
class Wo extends o {
|
|
6425
6426
|
constructor() {
|
|
6426
6427
|
super(...arguments), this.xmlKeys = { xmlns: "xmlns" };
|
|
6427
6428
|
}
|
|
6428
6429
|
}
|
|
6429
6430
|
class le extends n {
|
|
6430
6431
|
constructor() {
|
|
6431
|
-
super("Relationships"), this.root.push(new
|
|
6432
|
+
super("Relationships"), this.root.push(new Wo({ xmlns: "http://schemas.openxmlformats.org/package/2006/relationships" }));
|
|
6432
6433
|
}
|
|
6433
6434
|
addRelationship(t) {
|
|
6434
6435
|
this.root.push(t);
|
|
6435
6436
|
}
|
|
6436
6437
|
createRelationship(t, f, H, J) {
|
|
6437
|
-
const tt = new
|
|
6438
|
+
const tt = new Oo(`rId${t}`, f, H, J);
|
|
6438
6439
|
return this.addRelationship(tt), tt;
|
|
6439
6440
|
}
|
|
6440
6441
|
get RelationshipCount() {
|
|
@@ -6443,7 +6444,7 @@ Actual: ` + T.attribValue);
|
|
|
6443
6444
|
}
|
|
6444
6445
|
class vn {
|
|
6445
6446
|
constructor(t) {
|
|
6446
|
-
this.document = new
|
|
6447
|
+
this.document = new zo(t), this.relationships = new le();
|
|
6447
6448
|
}
|
|
6448
6449
|
get View() {
|
|
6449
6450
|
return this.document;
|
|
@@ -6452,14 +6453,14 @@ Actual: ` + T.attribValue);
|
|
|
6452
6453
|
return this.relationships;
|
|
6453
6454
|
}
|
|
6454
6455
|
}
|
|
6455
|
-
class
|
|
6456
|
+
class jo extends o {
|
|
6456
6457
|
constructor() {
|
|
6457
6458
|
super(...arguments), this.xmlKeys = { val: "w:val" };
|
|
6458
6459
|
}
|
|
6459
6460
|
}
|
|
6460
|
-
class
|
|
6461
|
+
class Ko extends n {
|
|
6461
6462
|
constructor() {
|
|
6462
|
-
super("w:wordWrap"), this.root.push(new
|
|
6463
|
+
super("w:wordWrap"), this.root.push(new jo({ val: 0 }));
|
|
6463
6464
|
}
|
|
6464
6465
|
}
|
|
6465
6466
|
var $e, Xe, qe;
|
|
@@ -6485,7 +6486,7 @@ Actual: ` + T.attribValue);
|
|
|
6485
6486
|
constructor(t) {
|
|
6486
6487
|
var f, H;
|
|
6487
6488
|
if (super("w:pPr"), this.numberingReferences = [], !t) return this;
|
|
6488
|
-
t.heading && this.push(new ue(t.heading)), t.bullet && this.push(new ue("ListParagraph")), t.numbering && (t.style || t.heading || t.numbering.custom || this.push(new ue("ListParagraph"))), t.style && this.push(new ue(t.style)), t.keepNext !== void 0 && this.push(new B("w:keepNext", t.keepNext)), t.keepLines !== void 0 && this.push(new B("w:keepLines", t.keepLines)), t.pageBreakBefore && this.push(new zr()), t.frame && this.push(new En(t.frame)), t.widowControl !== void 0 && this.push(new B("w:widowControl", t.widowControl)), t.bullet && this.push(new Ke(1, t.bullet.level)), t.numbering && (this.numberingReferences.push({ reference: t.numbering.reference, instance: (f = t.numbering.instance) !== null && f !== void 0 ? f : 0 }), this.push(new Ke(`${t.numbering.reference}-${(H = t.numbering.instance) !== null && H !== void 0 ? H : 0}`, t.numbering.level))), t.border && this.push(new q(t.border)), t.thematicBreak && this.push(new P()), t.shading && this.push(new it(t.shading)), t.wordWrap && this.push(new
|
|
6489
|
+
t.heading && this.push(new ue(t.heading)), t.bullet && this.push(new ue("ListParagraph")), t.numbering && (t.style || t.heading || t.numbering.custom || this.push(new ue("ListParagraph"))), t.style && this.push(new ue(t.style)), t.keepNext !== void 0 && this.push(new B("w:keepNext", t.keepNext)), t.keepLines !== void 0 && this.push(new B("w:keepLines", t.keepLines)), t.pageBreakBefore && this.push(new zr()), t.frame && this.push(new En(t.frame)), t.widowControl !== void 0 && this.push(new B("w:widowControl", t.widowControl)), t.bullet && this.push(new Ke(1, t.bullet.level)), t.numbering && (this.numberingReferences.push({ reference: t.numbering.reference, instance: (f = t.numbering.instance) !== null && f !== void 0 ? f : 0 }), this.push(new Ke(`${t.numbering.reference}-${(H = t.numbering.instance) !== null && H !== void 0 ? H : 0}`, t.numbering.level))), t.border && this.push(new q(t.border)), t.thematicBreak && this.push(new P()), t.shading && this.push(new it(t.shading)), t.wordWrap && this.push(new Ko());
|
|
6489
6490
|
const J = [...t.rightTabStop ? [{ type: ie.RIGHT, position: t.rightTabStop }] : [], ...t.tabStops ? t.tabStops : [], ...t.leftTabStop ? [{ type: ie.LEFT, position: t.leftTabStop }] : []];
|
|
6490
6491
|
J.length > 0 && this.push(new jr(J)), t.bidirectional !== void 0 && this.push(new B("w:bidi", t.bidirectional)), t.spacing && this.push(new Wr(t.spacing)), t.indent && this.push(new V(t.indent)), t.contextualSpacing !== void 0 && this.push(new B("w:contextualSpacing", t.contextualSpacing)), t.alignment && this.push(new A(t.alignment)), t.outlineLevel !== void 0 && this.push(new Zr(t.outlineLevel)), t.suppressLineNumbers !== void 0 && this.push(new B("w:suppressLineNumbers", t.suppressLineNumbers));
|
|
6491
6492
|
}
|
|
@@ -6517,20 +6518,20 @@ Actual: ` + T.attribValue);
|
|
|
6517
6518
|
return this.root.splice(1, 0, t), this;
|
|
6518
6519
|
}
|
|
6519
6520
|
}
|
|
6520
|
-
class
|
|
6521
|
+
class Go extends n {
|
|
6521
6522
|
constructor(t) {
|
|
6522
6523
|
super("m:oMath");
|
|
6523
6524
|
for (const f of t.children) this.root.push(f);
|
|
6524
6525
|
}
|
|
6525
6526
|
}
|
|
6526
|
-
class
|
|
6527
|
+
class Vo extends n {
|
|
6527
6528
|
constructor(t) {
|
|
6528
6529
|
super("m:t"), this.root.push(t);
|
|
6529
6530
|
}
|
|
6530
6531
|
}
|
|
6531
|
-
class
|
|
6532
|
+
class $o extends n {
|
|
6532
6533
|
constructor(t) {
|
|
6533
|
-
super("m:r"), this.root.push(new
|
|
6534
|
+
super("m:r"), this.root.push(new Vo(t));
|
|
6534
6535
|
}
|
|
6535
6536
|
}
|
|
6536
6537
|
class Tn extends n {
|
|
@@ -6545,19 +6546,19 @@ Actual: ` + T.attribValue);
|
|
|
6545
6546
|
for (const f of t) this.root.push(f);
|
|
6546
6547
|
}
|
|
6547
6548
|
}
|
|
6548
|
-
class
|
|
6549
|
+
class Xo extends n {
|
|
6549
6550
|
constructor(t) {
|
|
6550
6551
|
super("m:f"), this.root.push(new An(t.numerator)), this.root.push(new Tn(t.denominator));
|
|
6551
6552
|
}
|
|
6552
6553
|
}
|
|
6553
|
-
class
|
|
6554
|
+
class qo extends o {
|
|
6554
6555
|
constructor() {
|
|
6555
6556
|
super(...arguments), this.xmlKeys = { accent: "m:val" };
|
|
6556
6557
|
}
|
|
6557
6558
|
}
|
|
6558
6559
|
class Sn extends n {
|
|
6559
6560
|
constructor(t) {
|
|
6560
|
-
super("m:chr"), this.root.push(new
|
|
6561
|
+
super("m:chr"), this.root.push(new qo({ accent: t }));
|
|
6561
6562
|
}
|
|
6562
6563
|
}
|
|
6563
6564
|
class Mt extends n {
|
|
@@ -6566,39 +6567,39 @@ Actual: ` + T.attribValue);
|
|
|
6566
6567
|
for (const f of t) this.root.push(f);
|
|
6567
6568
|
}
|
|
6568
6569
|
}
|
|
6569
|
-
class
|
|
6570
|
+
class Zo extends o {
|
|
6570
6571
|
constructor() {
|
|
6571
6572
|
super(...arguments), this.xmlKeys = { value: "m:val" };
|
|
6572
6573
|
}
|
|
6573
6574
|
}
|
|
6574
6575
|
class In extends n {
|
|
6575
6576
|
constructor() {
|
|
6576
|
-
super("m:limLoc"), this.root.push(new
|
|
6577
|
+
super("m:limLoc"), this.root.push(new Zo({ value: "undOvr" }));
|
|
6577
6578
|
}
|
|
6578
6579
|
}
|
|
6579
|
-
class
|
|
6580
|
+
class Yo extends o {
|
|
6580
6581
|
constructor() {
|
|
6581
6582
|
super(...arguments), this.xmlKeys = { hide: "m:val" };
|
|
6582
6583
|
}
|
|
6583
6584
|
}
|
|
6584
|
-
class
|
|
6585
|
+
class Jo extends n {
|
|
6585
6586
|
constructor() {
|
|
6586
|
-
super("m:subHide"), this.root.push(new
|
|
6587
|
+
super("m:subHide"), this.root.push(new Yo({ hide: 1 }));
|
|
6587
6588
|
}
|
|
6588
6589
|
}
|
|
6589
|
-
class
|
|
6590
|
+
class Qo extends o {
|
|
6590
6591
|
constructor() {
|
|
6591
6592
|
super(...arguments), this.xmlKeys = { hide: "m:val" };
|
|
6592
6593
|
}
|
|
6593
6594
|
}
|
|
6594
|
-
class
|
|
6595
|
+
class ti extends n {
|
|
6595
6596
|
constructor() {
|
|
6596
|
-
super("m:supHide"), this.root.push(new
|
|
6597
|
+
super("m:supHide"), this.root.push(new Qo({ hide: 1 }));
|
|
6597
6598
|
}
|
|
6598
6599
|
}
|
|
6599
6600
|
class Ze extends n {
|
|
6600
6601
|
constructor(t, f, H) {
|
|
6601
|
-
super("m:naryPr"), t && this.root.push(new Sn(t)), this.root.push(new In()), f || this.root.push(new
|
|
6602
|
+
super("m:naryPr"), t && this.root.push(new Sn(t)), this.root.push(new In()), f || this.root.push(new ti()), H || this.root.push(new Jo());
|
|
6602
6603
|
}
|
|
6603
6604
|
}
|
|
6604
6605
|
class te extends n {
|
|
@@ -6613,12 +6614,12 @@ Actual: ` + T.attribValue);
|
|
|
6613
6614
|
for (const f of t) this.root.push(f);
|
|
6614
6615
|
}
|
|
6615
6616
|
}
|
|
6616
|
-
class
|
|
6617
|
+
class ei extends n {
|
|
6617
6618
|
constructor(t) {
|
|
6618
6619
|
super("m:nary"), this.root.push(new Ze("∑", !!t.superScript, !!t.subScript)), t.subScript && this.root.push(new te(t.subScript)), t.superScript && this.root.push(new ee(t.superScript)), this.root.push(new Mt(t.children));
|
|
6619
6620
|
}
|
|
6620
6621
|
}
|
|
6621
|
-
class
|
|
6622
|
+
class ri extends n {
|
|
6622
6623
|
constructor(t) {
|
|
6623
6624
|
super("m:nary"), this.root.push(new Ze("", !!t.superScript, !!t.subScript)), t.subScript && this.root.push(new te(t.subScript)), t.superScript && this.root.push(new ee(t.superScript)), this.root.push(new Mt(t.children));
|
|
6624
6625
|
}
|
|
@@ -6628,7 +6629,7 @@ Actual: ` + T.attribValue);
|
|
|
6628
6629
|
super("m:sSupPr");
|
|
6629
6630
|
}
|
|
6630
6631
|
}
|
|
6631
|
-
class
|
|
6632
|
+
class ni extends n {
|
|
6632
6633
|
constructor(t) {
|
|
6633
6634
|
super("m:sSup"), this.root.push(new Rn()), this.root.push(new Mt(t.children)), this.root.push(new ee(t.superScript));
|
|
6634
6635
|
}
|
|
@@ -6638,7 +6639,7 @@ Actual: ` + T.attribValue);
|
|
|
6638
6639
|
super("m:sSubPr");
|
|
6639
6640
|
}
|
|
6640
6641
|
}
|
|
6641
|
-
class
|
|
6642
|
+
class si extends n {
|
|
6642
6643
|
constructor(t) {
|
|
6643
6644
|
super("m:sSub"), this.root.push(new Nn()), this.root.push(new Mt(t.children)), this.root.push(new te(t.subScript));
|
|
6644
6645
|
}
|
|
@@ -6648,7 +6649,7 @@ Actual: ` + T.attribValue);
|
|
|
6648
6649
|
super("m:sSubSupPr");
|
|
6649
6650
|
}
|
|
6650
6651
|
}
|
|
6651
|
-
class
|
|
6652
|
+
class oi extends n {
|
|
6652
6653
|
constructor(t) {
|
|
6653
6654
|
super("m:sSubSup"), this.root.push(new Cn()), this.root.push(new Mt(t.children)), this.root.push(new te(t.subScript)), this.root.push(new ee(t.superScript));
|
|
6654
6655
|
}
|
|
@@ -6658,33 +6659,33 @@ Actual: ` + T.attribValue);
|
|
|
6658
6659
|
super("m:sPrePr");
|
|
6659
6660
|
}
|
|
6660
6661
|
}
|
|
6661
|
-
class
|
|
6662
|
+
class ii extends n {
|
|
6662
6663
|
constructor(t) {
|
|
6663
6664
|
super("m:sPre"), this.root.push(new On()), this.root.push(new Mt(t.children)), this.root.push(new te(t.subScript)), this.root.push(new ee(t.superScript));
|
|
6664
6665
|
}
|
|
6665
6666
|
}
|
|
6666
|
-
const
|
|
6667
|
+
const ai = "";
|
|
6667
6668
|
class kn extends n {
|
|
6668
6669
|
constructor(t) {
|
|
6669
6670
|
if (super("m:deg"), t) for (const f of t) this.root.push(f);
|
|
6670
6671
|
}
|
|
6671
6672
|
}
|
|
6672
|
-
class
|
|
6673
|
+
class ci extends o {
|
|
6673
6674
|
constructor() {
|
|
6674
6675
|
super(...arguments), this.xmlKeys = { hide: "m:val" };
|
|
6675
6676
|
}
|
|
6676
6677
|
}
|
|
6677
|
-
class
|
|
6678
|
+
class ui extends n {
|
|
6678
6679
|
constructor() {
|
|
6679
|
-
super("m:degHide"), this.root.push(new
|
|
6680
|
+
super("m:degHide"), this.root.push(new ci({ hide: 1 }));
|
|
6680
6681
|
}
|
|
6681
6682
|
}
|
|
6682
6683
|
class Ln extends n {
|
|
6683
6684
|
constructor(t) {
|
|
6684
|
-
super("m:radPr"), t || this.root.push(new
|
|
6685
|
+
super("m:radPr"), t || this.root.push(new ui());
|
|
6685
6686
|
}
|
|
6686
6687
|
}
|
|
6687
|
-
class
|
|
6688
|
+
class li extends n {
|
|
6688
6689
|
constructor(t) {
|
|
6689
6690
|
super("m:rad"), this.root.push(new Ln(!!t.degree)), this.root.push(new kn(t.degree)), this.root.push(new Mt(t.children));
|
|
6690
6691
|
}
|
|
@@ -6700,77 +6701,77 @@ Actual: ` + T.attribValue);
|
|
|
6700
6701
|
super("m:funcPr");
|
|
6701
6702
|
}
|
|
6702
6703
|
}
|
|
6703
|
-
class
|
|
6704
|
+
class hi extends n {
|
|
6704
6705
|
constructor(t) {
|
|
6705
6706
|
super("m:func"), this.root.push(new Pn()), this.root.push(new Dn(t.name)), this.root.push(new Mt(t.children));
|
|
6706
6707
|
}
|
|
6707
6708
|
}
|
|
6708
|
-
class
|
|
6709
|
+
class pi extends o {
|
|
6709
6710
|
constructor() {
|
|
6710
6711
|
super(...arguments), this.xmlKeys = { character: "m:val" };
|
|
6711
6712
|
}
|
|
6712
6713
|
}
|
|
6713
|
-
class
|
|
6714
|
+
class di extends n {
|
|
6714
6715
|
constructor(t) {
|
|
6715
|
-
super("m:begChr"), this.root.push(new
|
|
6716
|
+
super("m:begChr"), this.root.push(new pi({ character: t }));
|
|
6716
6717
|
}
|
|
6717
6718
|
}
|
|
6718
|
-
class
|
|
6719
|
+
class fi extends o {
|
|
6719
6720
|
constructor() {
|
|
6720
6721
|
super(...arguments), this.xmlKeys = { character: "m:val" };
|
|
6721
6722
|
}
|
|
6722
6723
|
}
|
|
6723
|
-
class
|
|
6724
|
+
class mi extends n {
|
|
6724
6725
|
constructor(t) {
|
|
6725
|
-
super("m:endChr"), this.root.push(new
|
|
6726
|
+
super("m:endChr"), this.root.push(new fi({ character: t }));
|
|
6726
6727
|
}
|
|
6727
6728
|
}
|
|
6728
6729
|
class _e extends n {
|
|
6729
6730
|
constructor(t) {
|
|
6730
|
-
super("m:dPr"), t && (this.root.push(new
|
|
6731
|
+
super("m:dPr"), t && (this.root.push(new di(t.beginningCharacter)), this.root.push(new mi(t.endingCharacter)));
|
|
6731
6732
|
}
|
|
6732
6733
|
}
|
|
6733
|
-
class
|
|
6734
|
+
class gi extends n {
|
|
6734
6735
|
constructor(t) {
|
|
6735
6736
|
super("m:d"), this.root.push(new _e()), this.root.push(new Mt(t.children));
|
|
6736
6737
|
}
|
|
6737
6738
|
}
|
|
6738
|
-
class
|
|
6739
|
+
class wi extends n {
|
|
6739
6740
|
constructor(t) {
|
|
6740
6741
|
super("m:d"), this.root.push(new _e({ beginningCharacter: "[", endingCharacter: "]" })), this.root.push(new Mt(t.children));
|
|
6741
6742
|
}
|
|
6742
6743
|
}
|
|
6743
|
-
class
|
|
6744
|
+
class yi extends n {
|
|
6744
6745
|
constructor(t) {
|
|
6745
6746
|
super("m:d"), this.root.push(new _e({ beginningCharacter: "{", endingCharacter: "}" })), this.root.push(new Mt(t.children));
|
|
6746
6747
|
}
|
|
6747
6748
|
}
|
|
6748
|
-
class
|
|
6749
|
+
class bi extends n {
|
|
6749
6750
|
constructor(t) {
|
|
6750
6751
|
super("m:d"), this.root.push(new _e({ beginningCharacter: "〈", endingCharacter: "〉" })), this.root.push(new Mt(t.children));
|
|
6751
6752
|
}
|
|
6752
6753
|
}
|
|
6753
|
-
class
|
|
6754
|
+
class xi extends n {
|
|
6754
6755
|
constructor(t) {
|
|
6755
6756
|
super("w:tblGrid");
|
|
6756
|
-
for (const f of t) this.root.push(new
|
|
6757
|
+
for (const f of t) this.root.push(new _i(f));
|
|
6757
6758
|
}
|
|
6758
6759
|
}
|
|
6759
|
-
class
|
|
6760
|
+
class vi extends o {
|
|
6760
6761
|
constructor() {
|
|
6761
6762
|
super(...arguments), this.xmlKeys = { w: "w:w" };
|
|
6762
6763
|
}
|
|
6763
6764
|
}
|
|
6764
|
-
class
|
|
6765
|
+
class _i extends n {
|
|
6765
6766
|
constructor(t) {
|
|
6766
|
-
super("w:gridCol"), t !== void 0 && this.root.push(new
|
|
6767
|
+
super("w:gridCol"), t !== void 0 && this.root.push(new vi({ w: (0, r.Jd)(t) }));
|
|
6767
6768
|
}
|
|
6768
6769
|
}
|
|
6769
6770
|
var re, Ee, he, Ye;
|
|
6770
6771
|
(function(e) {
|
|
6771
6772
|
e.AUTO = "auto", e.DXA = "dxa", e.NIL = "nil", e.PERCENTAGE = "pct";
|
|
6772
6773
|
})(re || (re = {}));
|
|
6773
|
-
class
|
|
6774
|
+
class Ei extends o {
|
|
6774
6775
|
constructor() {
|
|
6775
6776
|
super(...arguments), this.xmlKeys = { type: "w:type", size: "w:w" };
|
|
6776
6777
|
}
|
|
@@ -6779,7 +6780,7 @@ Actual: ` + T.attribValue);
|
|
|
6779
6780
|
constructor(t, { type: f = re.AUTO, size: H }) {
|
|
6780
6781
|
super(t);
|
|
6781
6782
|
let J = H;
|
|
6782
|
-
f === re.PERCENTAGE && typeof H == "number" && (J = `${H}%`), this.root.push(new
|
|
6783
|
+
f === re.PERCENTAGE && typeof H == "number" && (J = `${H}%`), this.root.push(new Ei({ type: f, size: (0, r.aB)(J) }));
|
|
6783
6784
|
}
|
|
6784
6785
|
}
|
|
6785
6786
|
(function(e) {
|
|
@@ -6795,50 +6796,50 @@ Actual: ` + T.attribValue);
|
|
|
6795
6796
|
super("w:tcBorders"), t.top && this.root.push(new U("w:top", t.top)), t.start && this.root.push(new U("w:start", t.start)), t.left && this.root.push(new U("w:left", t.left)), t.bottom && this.root.push(new U("w:bottom", t.bottom)), t.end && this.root.push(new U("w:end", t.end)), t.right && this.root.push(new U("w:right", t.right));
|
|
6796
6797
|
}
|
|
6797
6798
|
}
|
|
6798
|
-
class
|
|
6799
|
+
class Ti extends o {
|
|
6799
6800
|
constructor() {
|
|
6800
6801
|
super(...arguments), this.xmlKeys = { val: "w:val" };
|
|
6801
6802
|
}
|
|
6802
6803
|
}
|
|
6803
6804
|
class Mn extends n {
|
|
6804
6805
|
constructor(t) {
|
|
6805
|
-
super("w:gridSpan"), this.root.push(new
|
|
6806
|
+
super("w:gridSpan"), this.root.push(new Ti({ val: (0, r.vH)(t) }));
|
|
6806
6807
|
}
|
|
6807
6808
|
}
|
|
6808
6809
|
(function(e) {
|
|
6809
6810
|
e.CONTINUE = "continue", e.RESTART = "restart";
|
|
6810
6811
|
})(he || (he = {}));
|
|
6811
|
-
class
|
|
6812
|
+
class Ai extends o {
|
|
6812
6813
|
constructor() {
|
|
6813
6814
|
super(...arguments), this.xmlKeys = { val: "w:val" };
|
|
6814
6815
|
}
|
|
6815
6816
|
}
|
|
6816
6817
|
class Je extends n {
|
|
6817
6818
|
constructor(t) {
|
|
6818
|
-
super("w:vMerge"), this.root.push(new
|
|
6819
|
+
super("w:vMerge"), this.root.push(new Ai({ val: t }));
|
|
6819
6820
|
}
|
|
6820
6821
|
}
|
|
6821
6822
|
(function(e) {
|
|
6822
6823
|
e.BOTTOM_TO_TOP_LEFT_TO_RIGHT = "btLr", e.LEFT_TO_RIGHT_TOP_TO_BOTTOM = "lrTb", e.TOP_TO_BOTTOM_RIGHT_TO_LEFT = "tbRl";
|
|
6823
6824
|
})(Ye || (Ye = {}));
|
|
6824
|
-
class
|
|
6825
|
+
class Si extends o {
|
|
6825
6826
|
constructor() {
|
|
6826
6827
|
super(...arguments), this.xmlKeys = { val: "w:val" };
|
|
6827
6828
|
}
|
|
6828
6829
|
}
|
|
6829
6830
|
class Un extends n {
|
|
6830
6831
|
constructor(t) {
|
|
6831
|
-
super("w:textDirection"), this.root.push(new
|
|
6832
|
+
super("w:textDirection"), this.root.push(new Si({ val: t }));
|
|
6832
6833
|
}
|
|
6833
6834
|
}
|
|
6834
|
-
class
|
|
6835
|
+
class Ii extends a {
|
|
6835
6836
|
constructor(t) {
|
|
6836
6837
|
super("w:tcPr"), t.width && this.root.push(new Vt("w:tcW", t.width)), t.columnSpan && this.root.push(new Mn(t.columnSpan)), t.verticalMerge ? this.root.push(new Je(t.verticalMerge)) : t.rowSpan && t.rowSpan > 1 && this.root.push(new Je(he.RESTART)), t.borders && this.root.push(new Bn(t.borders)), t.shading && this.root.push(new it(t.shading)), t.margins && this.root.push(new Fn(Ee.TABLE_CELL, t.margins)), t.textDirection && this.root.push(new Un(t.textDirection)), t.verticalAlign && this.root.push(new Ve(t.verticalAlign));
|
|
6837
6838
|
}
|
|
6838
6839
|
}
|
|
6839
6840
|
class Qe extends n {
|
|
6840
6841
|
constructor(t) {
|
|
6841
|
-
super("w:tc"), this.options = t, this.root.push(new
|
|
6842
|
+
super("w:tc"), this.options = t, this.root.push(new Ii(t));
|
|
6842
6843
|
for (const f of t.children) this.root.push(f);
|
|
6843
6844
|
}
|
|
6844
6845
|
prepForXml(t) {
|
|
@@ -6869,12 +6870,12 @@ Actual: ` + T.attribValue);
|
|
|
6869
6870
|
}
|
|
6870
6871
|
class zn extends n {
|
|
6871
6872
|
constructor(t) {
|
|
6872
|
-
var { leftFromText: f, rightFromText: H, topFromText: J, bottomFromText: tt, absoluteHorizontalPosition: ut, absoluteVerticalPosition: ft } = t, vt = (function(pt,
|
|
6873
|
+
var { leftFromText: f, rightFromText: H, topFromText: J, bottomFromText: tt, absoluteHorizontalPosition: ut, absoluteVerticalPosition: ft } = t, vt = (function(pt, wt) {
|
|
6873
6874
|
var Lt = {};
|
|
6874
|
-
for (var St in pt) Object.prototype.hasOwnProperty.call(pt, St) &&
|
|
6875
|
+
for (var St in pt) Object.prototype.hasOwnProperty.call(pt, St) && wt.indexOf(St) < 0 && (Lt[St] = pt[St]);
|
|
6875
6876
|
if (pt != null && typeof Object.getOwnPropertySymbols == "function") {
|
|
6876
6877
|
var Dt = 0;
|
|
6877
|
-
for (St = Object.getOwnPropertySymbols(pt); Dt < St.length; Dt++)
|
|
6878
|
+
for (St = Object.getOwnPropertySymbols(pt); Dt < St.length; Dt++) wt.indexOf(St[Dt]) < 0 && Object.prototype.propertyIsEnumerable.call(pt, St[Dt]) && (Lt[St[Dt]] = pt[St[Dt]]);
|
|
6878
6879
|
}
|
|
6879
6880
|
return Lt;
|
|
6880
6881
|
})(t, ["leftFromText", "rightFromText", "topFromText", "bottomFromText", "absoluteHorizontalPosition", "absoluteVerticalPosition"]);
|
|
@@ -6884,14 +6885,14 @@ Actual: ` + T.attribValue);
|
|
|
6884
6885
|
(function(e) {
|
|
6885
6886
|
e.AUTOFIT = "autofit", e.FIXED = "fixed";
|
|
6886
6887
|
})(or || (or = {}));
|
|
6887
|
-
class
|
|
6888
|
+
class Ri extends o {
|
|
6888
6889
|
constructor() {
|
|
6889
6890
|
super(...arguments), this.xmlKeys = { type: "w:type" };
|
|
6890
6891
|
}
|
|
6891
6892
|
}
|
|
6892
6893
|
class Wn extends n {
|
|
6893
6894
|
constructor(t) {
|
|
6894
|
-
super("w:tblLayout"), this.root.push(new
|
|
6895
|
+
super("w:tblLayout"), this.root.push(new Ri({ type: t }));
|
|
6895
6896
|
}
|
|
6896
6897
|
}
|
|
6897
6898
|
class jn extends a {
|
|
@@ -6899,9 +6900,9 @@ Actual: ` + T.attribValue);
|
|
|
6899
6900
|
super("w:tblPr"), t.style && this.root.push(new G("w:tblStyle", t.style)), t.float && this.root.push(new zn(t.float)), t.visuallyRightToLeft !== void 0 && this.root.push(new B("w:bidiVisual", t.visuallyRightToLeft)), t.width && this.root.push(new Vt("w:tblW", t.width)), t.alignment && this.root.push(new A(t.alignment)), t.indent && this.root.push(new Vt("w:tblInd", t.indent)), t.borders && this.root.push(new tr(t.borders)), t.shading && this.root.push(new it(t.shading)), t.layout && this.root.push(new Wn(t.layout)), t.cellMargin && this.root.push(new Fn(Ee.TABLE, t.cellMargin));
|
|
6900
6901
|
}
|
|
6901
6902
|
}
|
|
6902
|
-
class
|
|
6903
|
-
constructor({ rows: t, width: f, columnWidths: H = Array(Math.max(...t.map(((St) => St.CellCount)))).fill(100), margins: J, indent: tt, float: ut, layout: ft, style: vt, borders: pt, alignment:
|
|
6904
|
-
super("w:tbl"), this.root.push(new jn({ borders: pt != null ? pt : {}, width: f != null ? f : { size: 100 }, indent: tt, float: ut, layout: ft, style: vt, alignment:
|
|
6903
|
+
class Ni extends n {
|
|
6904
|
+
constructor({ rows: t, width: f, columnWidths: H = Array(Math.max(...t.map(((St) => St.CellCount)))).fill(100), margins: J, indent: tt, float: ut, layout: ft, style: vt, borders: pt, alignment: wt, visuallyRightToLeft: Lt }) {
|
|
6905
|
+
super("w:tbl"), this.root.push(new jn({ borders: pt != null ? pt : {}, width: f != null ? f : { size: 100 }, indent: tt, float: ut, layout: ft, style: vt, alignment: wt, cellMargin: J, visuallyRightToLeft: Lt })), this.root.push(new xi(H));
|
|
6905
6906
|
for (const St of t) this.root.push(St);
|
|
6906
6907
|
t.forEach(((St, Dt) => {
|
|
6907
6908
|
if (Dt === t.length - 1) return;
|
|
@@ -6934,7 +6935,7 @@ Actual: ` + T.attribValue);
|
|
|
6934
6935
|
super("w:trPr"), t.cantSplit !== void 0 && this.root.push(new B("w:cantSplit", t.cantSplit)), t.tableHeader !== void 0 && this.root.push(new B("w:tblHeader", t.tableHeader)), t.height && this.root.push(new Gn(t.height.value, t.height.rule));
|
|
6935
6936
|
}
|
|
6936
6937
|
}
|
|
6937
|
-
class
|
|
6938
|
+
class Ci extends n {
|
|
6938
6939
|
constructor(t) {
|
|
6939
6940
|
super("w:tr"), this.options = t, this.root.push(new Vn(t));
|
|
6940
6941
|
for (const f of t.children) this.root.push(f);
|
|
@@ -6972,44 +6973,44 @@ Actual: ` + T.attribValue);
|
|
|
6972
6973
|
return J - 1;
|
|
6973
6974
|
}
|
|
6974
6975
|
}
|
|
6975
|
-
class
|
|
6976
|
+
class Oi extends o {
|
|
6976
6977
|
constructor() {
|
|
6977
6978
|
super(...arguments), this.xmlKeys = { xmlns: "xmlns", vt: "xmlns:vt" };
|
|
6978
6979
|
}
|
|
6979
6980
|
}
|
|
6980
|
-
class
|
|
6981
|
+
class ki extends n {
|
|
6981
6982
|
constructor() {
|
|
6982
|
-
super("Properties"), this.root.push(new
|
|
6983
|
+
super("Properties"), this.root.push(new Oi({ xmlns: "http://schemas.openxmlformats.org/officeDocument/2006/extended-properties", vt: "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes" }));
|
|
6983
6984
|
}
|
|
6984
6985
|
}
|
|
6985
|
-
class
|
|
6986
|
+
class Li extends o {
|
|
6986
6987
|
constructor() {
|
|
6987
6988
|
super(...arguments), this.xmlKeys = { xmlns: "xmlns" };
|
|
6988
6989
|
}
|
|
6989
6990
|
}
|
|
6990
|
-
class
|
|
6991
|
+
class Di extends o {
|
|
6991
6992
|
constructor() {
|
|
6992
6993
|
super(...arguments), this.xmlKeys = { contentType: "ContentType", extension: "Extension" };
|
|
6993
6994
|
}
|
|
6994
6995
|
}
|
|
6995
6996
|
class Zt extends n {
|
|
6996
6997
|
constructor(t, f) {
|
|
6997
|
-
super("Default"), this.root.push(new
|
|
6998
|
+
super("Default"), this.root.push(new Di({ contentType: t, extension: f }));
|
|
6998
6999
|
}
|
|
6999
7000
|
}
|
|
7000
|
-
class
|
|
7001
|
+
class Pi extends o {
|
|
7001
7002
|
constructor() {
|
|
7002
7003
|
super(...arguments), this.xmlKeys = { contentType: "ContentType", partName: "PartName" };
|
|
7003
7004
|
}
|
|
7004
7005
|
}
|
|
7005
7006
|
class Ht extends n {
|
|
7006
7007
|
constructor(t, f) {
|
|
7007
|
-
super("Override"), this.root.push(new
|
|
7008
|
+
super("Override"), this.root.push(new Pi({ contentType: t, partName: f }));
|
|
7008
7009
|
}
|
|
7009
7010
|
}
|
|
7010
|
-
class
|
|
7011
|
+
class Fi extends n {
|
|
7011
7012
|
constructor() {
|
|
7012
|
-
super("Types"), this.root.push(new
|
|
7013
|
+
super("Types"), this.root.push(new Li({ xmlns: "http://schemas.openxmlformats.org/package/2006/content-types" })), this.root.push(new Zt("image/png", "png")), this.root.push(new Zt("image/jpeg", "jpeg")), this.root.push(new Zt("image/jpeg", "jpg")), this.root.push(new Zt("image/bmp", "bmp")), this.root.push(new Zt("image/gif", "gif")), this.root.push(new Zt("application/vnd.openxmlformats-package.relationships+xml", "rels")), this.root.push(new Zt("application/xml", "xml")), this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml", "/word/document.xml")), this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml", "/word/styles.xml")), this.root.push(new Ht("application/vnd.openxmlformats-package.core-properties+xml", "/docProps/core.xml")), this.root.push(new Ht("application/vnd.openxmlformats-officedocument.custom-properties+xml", "/docProps/custom.xml")), this.root.push(new Ht("application/vnd.openxmlformats-officedocument.extended-properties+xml", "/docProps/app.xml")), this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml", "/word/numbering.xml")), this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml", "/word/footnotes.xml")), this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml", "/word/settings.xml")), this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml", "/word/comments.xml"));
|
|
7013
7014
|
}
|
|
7014
7015
|
addFooter(t) {
|
|
7015
7016
|
this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml", `/word/footer${t}.xml`));
|
|
@@ -7018,7 +7019,7 @@ Actual: ` + T.attribValue);
|
|
|
7018
7019
|
this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml", `/word/header${t}.xml`));
|
|
7019
7020
|
}
|
|
7020
7021
|
}
|
|
7021
|
-
class
|
|
7022
|
+
class Bi extends n {
|
|
7022
7023
|
constructor(t) {
|
|
7023
7024
|
super("cp:coreProperties"), this.root.push(new Qt({ cp: "http://schemas.openxmlformats.org/package/2006/metadata/core-properties", dc: "http://purl.org/dc/elements/1.1/", dcterms: "http://purl.org/dc/terms/", dcmitype: "http://purl.org/dc/dcmitype/", xsi: "http://www.w3.org/2001/XMLSchema-instance" })), t.title && this.root.push(new at("dc:title", t.title)), t.subject && this.root.push(new at("dc:subject", t.subject)), t.creator && this.root.push(new at("dc:creator", t.creator)), t.keywords && this.root.push(new at("cp:keywords", t.keywords)), t.description && this.root.push(new at("dc:description", t.description)), t.lastModifiedBy && this.root.push(new at("cp:lastModifiedBy", t.lastModifiedBy)), t.revision && this.root.push(new at("cp:revision", String(t.revision))), this.root.push(new $n("dcterms:created")), this.root.push(new $n("dcterms:modified"));
|
|
7024
7025
|
}
|
|
@@ -7028,46 +7029,46 @@ Actual: ` + T.attribValue);
|
|
|
7028
7029
|
super(t), this.root.push(new Qt({ type: "dcterms:W3CDTF" })), this.root.push((0, r.sF)(/* @__PURE__ */ new Date()));
|
|
7029
7030
|
}
|
|
7030
7031
|
}
|
|
7031
|
-
class
|
|
7032
|
+
class Mi extends o {
|
|
7032
7033
|
constructor() {
|
|
7033
7034
|
super(...arguments), this.xmlKeys = { xmlns: "xmlns", vt: "xmlns:vt" };
|
|
7034
7035
|
}
|
|
7035
7036
|
}
|
|
7036
|
-
class
|
|
7037
|
+
class Ui extends o {
|
|
7037
7038
|
constructor() {
|
|
7038
7039
|
super(...arguments), this.xmlKeys = { fmtid: "fmtid", pid: "pid", name: "name" };
|
|
7039
7040
|
}
|
|
7040
7041
|
}
|
|
7041
|
-
class
|
|
7042
|
+
class Hi extends n {
|
|
7042
7043
|
constructor(t, f) {
|
|
7043
|
-
super("property"), this.root.push(new
|
|
7044
|
+
super("property"), this.root.push(new Ui({ fmtid: "{D5CDD505-2E9C-101B-9397-08002B2CF9AE}", pid: t.toString(), name: f.name })), this.root.push(new zi(f.value));
|
|
7044
7045
|
}
|
|
7045
7046
|
}
|
|
7046
|
-
class
|
|
7047
|
+
class zi extends n {
|
|
7047
7048
|
constructor(t) {
|
|
7048
7049
|
super("vt:lpwstr"), this.root.push(t);
|
|
7049
7050
|
}
|
|
7050
7051
|
}
|
|
7051
|
-
class
|
|
7052
|
+
class Wi extends n {
|
|
7052
7053
|
constructor(t) {
|
|
7053
|
-
super("Properties"), this.properties = [], this.root.push(new
|
|
7054
|
+
super("Properties"), this.properties = [], this.root.push(new Mi({ xmlns: "http://schemas.openxmlformats.org/officeDocument/2006/custom-properties", vt: "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes" })), this.nextId = 2;
|
|
7054
7055
|
for (const f of t) this.addCustomProperty(f);
|
|
7055
7056
|
}
|
|
7056
7057
|
prepForXml(t) {
|
|
7057
7058
|
return this.properties.forEach(((f) => this.root.push(f))), super.prepForXml(t);
|
|
7058
7059
|
}
|
|
7059
7060
|
addCustomProperty(t) {
|
|
7060
|
-
this.properties.push(new
|
|
7061
|
+
this.properties.push(new Hi(this.nextId++, t));
|
|
7061
7062
|
}
|
|
7062
7063
|
}
|
|
7063
|
-
class
|
|
7064
|
+
class ji extends o {
|
|
7064
7065
|
constructor() {
|
|
7065
7066
|
super(...arguments), this.xmlKeys = { wpc: "xmlns:wpc", mc: "xmlns:mc", o: "xmlns:o", r: "xmlns:r", m: "xmlns:m", v: "xmlns:v", wp14: "xmlns:wp14", wp: "xmlns:wp", w10: "xmlns:w10", w: "xmlns:w", w14: "xmlns:w14", w15: "xmlns:w15", wpg: "xmlns:wpg", wpi: "xmlns:wpi", wne: "xmlns:wne", wps: "xmlns:wps", cp: "xmlns:cp", dc: "xmlns:dc", dcterms: "xmlns:dcterms", dcmitype: "xmlns:dcmitype", xsi: "xmlns:xsi", type: "xsi:type" };
|
|
7066
7067
|
}
|
|
7067
7068
|
}
|
|
7068
|
-
class
|
|
7069
|
+
class Ki extends y {
|
|
7069
7070
|
constructor(t, f) {
|
|
7070
|
-
super("w:ftr", f), this.refId = t, f || this.root.push(new
|
|
7071
|
+
super("w:ftr", f), this.refId = t, f || this.root.push(new ji({ wpc: "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas", mc: "http://schemas.openxmlformats.org/markup-compatibility/2006", o: "urn:schemas-microsoft-com:office:office", r: "http://schemas.openxmlformats.org/officeDocument/2006/relationships", m: "http://schemas.openxmlformats.org/officeDocument/2006/math", v: "urn:schemas-microsoft-com:vml", wp14: "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing", wp: "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", w10: "urn:schemas-microsoft-com:office:word", w: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", w14: "http://schemas.microsoft.com/office/word/2010/wordml", w15: "http://schemas.microsoft.com/office/word/2012/wordml", wpg: "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup", wpi: "http://schemas.microsoft.com/office/word/2010/wordprocessingInk", wne: "http://schemas.microsoft.com/office/word/2006/wordml", wps: "http://schemas.microsoft.com/office/word/2010/wordprocessingShape" }));
|
|
7071
7072
|
}
|
|
7072
7073
|
get ReferenceId() {
|
|
7073
7074
|
return this.refId;
|
|
@@ -7078,7 +7079,7 @@ Actual: ` + T.attribValue);
|
|
|
7078
7079
|
}
|
|
7079
7080
|
class ar {
|
|
7080
7081
|
constructor(t, f, H) {
|
|
7081
|
-
this.media = t, this.footer = new
|
|
7082
|
+
this.media = t, this.footer = new Ki(f, H), this.relationships = new le();
|
|
7082
7083
|
}
|
|
7083
7084
|
add(t) {
|
|
7084
7085
|
this.footer.add(t);
|
|
@@ -7096,19 +7097,19 @@ Actual: ` + T.attribValue);
|
|
|
7096
7097
|
return this.media;
|
|
7097
7098
|
}
|
|
7098
7099
|
}
|
|
7099
|
-
class
|
|
7100
|
+
class Gi extends o {
|
|
7100
7101
|
constructor() {
|
|
7101
7102
|
super(...arguments), this.xmlKeys = { type: "w:type", id: "w:id" };
|
|
7102
7103
|
}
|
|
7103
7104
|
}
|
|
7104
|
-
class
|
|
7105
|
+
class Vi extends n {
|
|
7105
7106
|
constructor() {
|
|
7106
7107
|
super("w:footnoteRef");
|
|
7107
7108
|
}
|
|
7108
7109
|
}
|
|
7109
|
-
class
|
|
7110
|
+
class $i extends Bt {
|
|
7110
7111
|
constructor() {
|
|
7111
|
-
super({ style: "FootnoteReference" }), this.root.push(new
|
|
7112
|
+
super({ style: "FootnoteReference" }), this.root.push(new Vi());
|
|
7112
7113
|
}
|
|
7113
7114
|
}
|
|
7114
7115
|
(function(e) {
|
|
@@ -7116,44 +7117,44 @@ Actual: ` + T.attribValue);
|
|
|
7116
7117
|
})(Te || (Te = {}));
|
|
7117
7118
|
class cr extends n {
|
|
7118
7119
|
constructor(t) {
|
|
7119
|
-
super("w:footnote"), this.root.push(new
|
|
7120
|
+
super("w:footnote"), this.root.push(new Gi({ type: t.type, id: t.id }));
|
|
7120
7121
|
for (let f = 0; f < t.children.length; f++) {
|
|
7121
7122
|
const H = t.children[f];
|
|
7122
|
-
f === 0 && H.addRunToFront(new
|
|
7123
|
+
f === 0 && H.addRunToFront(new $i()), this.root.push(H);
|
|
7123
7124
|
}
|
|
7124
7125
|
}
|
|
7125
7126
|
}
|
|
7126
|
-
class
|
|
7127
|
+
class Xi extends n {
|
|
7127
7128
|
constructor() {
|
|
7128
7129
|
super("w:continuationSeparator");
|
|
7129
7130
|
}
|
|
7130
7131
|
}
|
|
7131
|
-
class
|
|
7132
|
+
class qi extends Bt {
|
|
7132
7133
|
constructor() {
|
|
7133
|
-
super({}), this.root.push(new
|
|
7134
|
+
super({}), this.root.push(new Xi());
|
|
7134
7135
|
}
|
|
7135
7136
|
}
|
|
7136
|
-
class
|
|
7137
|
+
class Zi extends n {
|
|
7137
7138
|
constructor() {
|
|
7138
7139
|
super("w:separator");
|
|
7139
7140
|
}
|
|
7140
7141
|
}
|
|
7141
|
-
class
|
|
7142
|
+
class Yi extends Bt {
|
|
7142
7143
|
constructor() {
|
|
7143
|
-
super({}), this.root.push(new
|
|
7144
|
+
super({}), this.root.push(new Zi());
|
|
7144
7145
|
}
|
|
7145
7146
|
}
|
|
7146
|
-
class
|
|
7147
|
+
class Ji extends o {
|
|
7147
7148
|
constructor() {
|
|
7148
7149
|
super(...arguments), this.xmlKeys = { wpc: "xmlns:wpc", mc: "xmlns:mc", o: "xmlns:o", r: "xmlns:r", m: "xmlns:m", v: "xmlns:v", wp14: "xmlns:wp14", wp: "xmlns:wp", w10: "xmlns:w10", w: "xmlns:w", w14: "xmlns:w14", w15: "xmlns:w15", wpg: "xmlns:wpg", wpi: "xmlns:wpi", wne: "xmlns:wne", wps: "xmlns:wps", Ignorable: "mc:Ignorable" };
|
|
7149
7150
|
}
|
|
7150
7151
|
}
|
|
7151
7152
|
class Xn extends n {
|
|
7152
7153
|
constructor() {
|
|
7153
|
-
super("w:footnotes"), this.root.push(new
|
|
7154
|
-
const t = new cr({ id: -1, type: Te.SEPERATOR, children: [new jt({ spacing: { after: 0, line: 240, lineRule: Jt.AUTO }, children: [new
|
|
7154
|
+
super("w:footnotes"), this.root.push(new Ji({ wpc: "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas", mc: "http://schemas.openxmlformats.org/markup-compatibility/2006", o: "urn:schemas-microsoft-com:office:office", r: "http://schemas.openxmlformats.org/officeDocument/2006/relationships", m: "http://schemas.openxmlformats.org/officeDocument/2006/math", v: "urn:schemas-microsoft-com:vml", wp14: "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing", wp: "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", w10: "urn:schemas-microsoft-com:office:word", w: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", w14: "http://schemas.microsoft.com/office/word/2010/wordml", w15: "http://schemas.microsoft.com/office/word/2012/wordml", wpg: "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup", wpi: "http://schemas.microsoft.com/office/word/2010/wordprocessingInk", wne: "http://schemas.microsoft.com/office/word/2006/wordml", wps: "http://schemas.microsoft.com/office/word/2010/wordprocessingShape", Ignorable: "w14 w15 wp14" }));
|
|
7155
|
+
const t = new cr({ id: -1, type: Te.SEPERATOR, children: [new jt({ spacing: { after: 0, line: 240, lineRule: Jt.AUTO }, children: [new Yi()] })] });
|
|
7155
7156
|
this.root.push(t);
|
|
7156
|
-
const f = new cr({ id: 0, type: Te.CONTINUATION_SEPERATOR, children: [new jt({ spacing: { after: 0, line: 240, lineRule: Jt.AUTO }, children: [new
|
|
7157
|
+
const f = new cr({ id: 0, type: Te.CONTINUATION_SEPERATOR, children: [new jt({ spacing: { after: 0, line: 240, lineRule: Jt.AUTO }, children: [new qi()] })] });
|
|
7157
7158
|
this.root.push(f);
|
|
7158
7159
|
}
|
|
7159
7160
|
createFootNote(t, f) {
|
|
@@ -7161,7 +7162,7 @@ Actual: ` + T.attribValue);
|
|
|
7161
7162
|
this.root.push(H);
|
|
7162
7163
|
}
|
|
7163
7164
|
}
|
|
7164
|
-
class
|
|
7165
|
+
class Qi {
|
|
7165
7166
|
constructor() {
|
|
7166
7167
|
this.footnotess = new Xn(), this.relationships = new le();
|
|
7167
7168
|
}
|
|
@@ -7172,14 +7173,14 @@ Actual: ` + T.attribValue);
|
|
|
7172
7173
|
return this.relationships;
|
|
7173
7174
|
}
|
|
7174
7175
|
}
|
|
7175
|
-
class
|
|
7176
|
+
class ta extends o {
|
|
7176
7177
|
constructor() {
|
|
7177
7178
|
super(...arguments), this.xmlKeys = { wpc: "xmlns:wpc", mc: "xmlns:mc", o: "xmlns:o", r: "xmlns:r", m: "xmlns:m", v: "xmlns:v", wp14: "xmlns:wp14", wp: "xmlns:wp", w10: "xmlns:w10", w: "xmlns:w", w14: "xmlns:w14", w15: "xmlns:w15", wpg: "xmlns:wpg", wpi: "xmlns:wpi", wne: "xmlns:wne", wps: "xmlns:wps", cp: "xmlns:cp", dc: "xmlns:dc", dcterms: "xmlns:dcterms", dcmitype: "xmlns:dcmitype", xsi: "xmlns:xsi", type: "xsi:type", cx: "xmlns:cx", cx1: "xmlns:cx1", cx2: "xmlns:cx2", cx3: "xmlns:cx3", cx4: "xmlns:cx4", cx5: "xmlns:cx5", cx6: "xmlns:cx6", cx7: "xmlns:cx7", cx8: "xmlns:cx8", w16cid: "xmlns:w16cid", w16se: "xmlns:w16se" };
|
|
7178
7179
|
}
|
|
7179
7180
|
}
|
|
7180
|
-
class
|
|
7181
|
+
class ea extends y {
|
|
7181
7182
|
constructor(t, f) {
|
|
7182
|
-
super("w:hdr", f), this.refId = t, f || this.root.push(new
|
|
7183
|
+
super("w:hdr", f), this.refId = t, f || this.root.push(new ta({ wpc: "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas", mc: "http://schemas.openxmlformats.org/markup-compatibility/2006", o: "urn:schemas-microsoft-com:office:office", r: "http://schemas.openxmlformats.org/officeDocument/2006/relationships", m: "http://schemas.openxmlformats.org/officeDocument/2006/math", v: "urn:schemas-microsoft-com:vml", wp14: "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing", wp: "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", w10: "urn:schemas-microsoft-com:office:word", w: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", w14: "http://schemas.microsoft.com/office/word/2010/wordml", w15: "http://schemas.microsoft.com/office/word/2012/wordml", wpg: "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup", wpi: "http://schemas.microsoft.com/office/word/2010/wordprocessingInk", wne: "http://schemas.microsoft.com/office/word/2006/wordml", wps: "http://schemas.microsoft.com/office/word/2010/wordprocessingShape", cx: "http://schemas.microsoft.com/office/drawing/2014/chartex", cx1: "http://schemas.microsoft.com/office/drawing/2015/9/8/chartex", cx2: "http://schemas.microsoft.com/office/drawing/2015/10/21/chartex", cx3: "http://schemas.microsoft.com/office/drawing/2016/5/9/chartex", cx4: "http://schemas.microsoft.com/office/drawing/2016/5/10/chartex", cx5: "http://schemas.microsoft.com/office/drawing/2016/5/11/chartex", cx6: "http://schemas.microsoft.com/office/drawing/2016/5/12/chartex", cx7: "http://schemas.microsoft.com/office/drawing/2016/5/13/chartex", cx8: "http://schemas.microsoft.com/office/drawing/2016/5/14/chartex", w16cid: "http://schemas.microsoft.com/office/word/2016/wordml/cid", w16se: "http://schemas.microsoft.com/office/word/2015/wordml/symex" }));
|
|
7183
7184
|
}
|
|
7184
7185
|
get ReferenceId() {
|
|
7185
7186
|
return this.refId;
|
|
@@ -7190,7 +7191,7 @@ Actual: ` + T.attribValue);
|
|
|
7190
7191
|
}
|
|
7191
7192
|
class ur {
|
|
7192
7193
|
constructor(t, f, H) {
|
|
7193
|
-
this.media = t, this.header = new
|
|
7194
|
+
this.media = t, this.header = new ea(f, H), this.relationships = new le();
|
|
7194
7195
|
}
|
|
7195
7196
|
add(t) {
|
|
7196
7197
|
return this.header.add(t), this;
|
|
@@ -7227,27 +7228,27 @@ Actual: ` + T.attribValue);
|
|
|
7227
7228
|
return typeof atob == "function" ? new Uint8Array(atob(t.substring(H)).split("").map(((J) => J.charCodeAt(0)))) : new (ct(8764)).Buffer(t, "base64");
|
|
7228
7229
|
}
|
|
7229
7230
|
}
|
|
7230
|
-
const
|
|
7231
|
+
const ra = "";
|
|
7231
7232
|
var Ut, hr;
|
|
7232
7233
|
(function(e) {
|
|
7233
7234
|
e.DECIMAL = "decimal", e.UPPER_ROMAN = "upperRoman", e.LOWER_ROMAN = "lowerRoman", e.UPPER_LETTER = "upperLetter", e.LOWER_LETTER = "lowerLetter", e.ORDINAL = "ordinal", e.CARDINAL_TEXT = "cardinalText", e.ORDINAL_TEXT = "ordinalText", e.HEX = "hex", e.CHICAGO = "chicago", e.IDEOGRAPH__DIGITAL = "ideographDigital", e.JAPANESE_COUNTING = "japaneseCounting", e.AIUEO = "aiueo", e.IROHA = "iroha", e.DECIMAL_FULL_WIDTH = "decimalFullWidth", e.DECIMAL_HALF_WIDTH = "decimalHalfWidth", e.JAPANESE_LEGAL = "japaneseLegal", e.JAPANESE_DIGITAL_TEN_THOUSAND = "japaneseDigitalTenThousand", e.DECIMAL_ENCLOSED_CIRCLE = "decimalEnclosedCircle", e.DECIMAL_FULL_WIDTH2 = "decimalFullWidth2", e.AIUEO_FULL_WIDTH = "aiueoFullWidth", e.IROHA_FULL_WIDTH = "irohaFullWidth", e.DECIMAL_ZERO = "decimalZero", e.BULLET = "bullet", e.GANADA = "ganada", e.CHOSUNG = "chosung", e.DECIMAL_ENCLOSED_FULLSTOP = "decimalEnclosedFullstop", e.DECIMAL_ENCLOSED_PARENTHESES = "decimalEnclosedParen", e.DECIMAL_ENCLOSED_CIRCLE_CHINESE = "decimalEnclosedCircleChinese", e.IDEOGRAPH_ENCLOSED_CIRCLE = "ideographEnclosedCircle", e.IDEOGRAPH_TRADITIONAL = "ideographTraditional", e.IDEOGRAPH_ZODIAC = "ideographZodiac", e.IDEOGRAPH_ZODIAC_TRADITIONAL = "ideographZodiacTraditional", e.TAIWANESE_COUNTING = "taiwaneseCounting", e.IDEOGRAPH_LEGAL_TRADITIONAL = "ideographLegalTraditional", e.TAIWANESE_COUNTING_THOUSAND = "taiwaneseCountingThousand", e.TAIWANESE_DIGITAL = "taiwaneseDigital", e.CHINESE_COUNTING = "chineseCounting", e.CHINESE_LEGAL_SIMPLIFIED = "chineseLegalSimplified", e.CHINESE_COUNTING_THOUSAND = "chineseCountingThousand", e.KOREAN_DIGITAL = "koreanDigital", e.KOREAN_COUNTING = "koreanCounting", e.KOREAN_LEGAL = "koreanLegal", e.KOREAN_DIGITAL2 = "koreanDigital2", e.VIETNAMESE_COUNTING = "vietnameseCounting", e.RUSSIAN_LOWER = "russianLower", e.RUSSIAN_UPPER = "russianUpper", e.NONE = "none", e.NUMBER_IN_DASH = "numberInDash", e.HEBREW1 = "hebrew1", e.HEBREW2 = "hebrew2", e.ARABIC_ALPHA = "arabicAlpha", e.ARABIC_ABJAD = "arabicAbjad", e.HINDI_VOWELS = "hindiVowels", e.HINDI_CONSONANTS = "hindiConsonants", e.HINDI_NUMBERS = "hindiNumbers", e.HINDI_COUNTING = "hindiCounting", e.THAI_LETTERS = "thaiLetters", e.THAI_NUMBERS = "thaiNumbers", e.THAI_COUNTING = "thaiCounting", e.BAHT_TEXT = "bahtText", e.DOLLAR_TEXT = "dollarText", e.CUSTOM = "custom";
|
|
7234
7235
|
})(Ut || (Ut = {}));
|
|
7235
|
-
class
|
|
7236
|
+
class na extends o {
|
|
7236
7237
|
constructor() {
|
|
7237
7238
|
super(...arguments), this.xmlKeys = { ilvl: "w:ilvl", tentative: "w15:tentative" };
|
|
7238
7239
|
}
|
|
7239
7240
|
}
|
|
7240
|
-
class
|
|
7241
|
+
class sa extends n {
|
|
7241
7242
|
constructor(t) {
|
|
7242
7243
|
super("w:numFmt"), this.root.push(new u({ val: t }));
|
|
7243
7244
|
}
|
|
7244
7245
|
}
|
|
7245
|
-
class
|
|
7246
|
+
class oa extends n {
|
|
7246
7247
|
constructor(t) {
|
|
7247
7248
|
super("w:lvlText"), this.root.push(new u({ val: t }));
|
|
7248
7249
|
}
|
|
7249
7250
|
}
|
|
7250
|
-
class
|
|
7251
|
+
class ia extends n {
|
|
7251
7252
|
constructor(t) {
|
|
7252
7253
|
super("w:lvlJc"), this.root.push(new u({ val: t }));
|
|
7253
7254
|
}
|
|
@@ -7255,75 +7256,75 @@ Actual: ` + T.attribValue);
|
|
|
7255
7256
|
(function(e) {
|
|
7256
7257
|
e.NOTHING = "nothing", e.SPACE = "space", e.TAB = "tab";
|
|
7257
7258
|
})(hr || (hr = {}));
|
|
7258
|
-
class
|
|
7259
|
+
class aa extends n {
|
|
7259
7260
|
constructor(t) {
|
|
7260
7261
|
super("w:suff"), this.root.push(new u({ val: t }));
|
|
7261
7262
|
}
|
|
7262
7263
|
}
|
|
7263
|
-
class
|
|
7264
|
+
class ca extends n {
|
|
7264
7265
|
constructor() {
|
|
7265
7266
|
super("w:isLgl");
|
|
7266
7267
|
}
|
|
7267
7268
|
}
|
|
7268
7269
|
class pr extends n {
|
|
7269
7270
|
constructor({ level: t, format: f, text: H, alignment: J = h.START, start: tt = 1, style: ut, suffix: ft, isLegalNumberingStyle: vt }) {
|
|
7270
|
-
if (super("w:lvl"), this.root.push(new lt("w:start", (0, r.vH)(tt))), f && this.root.push(new
|
|
7271
|
-
this.root.push(new
|
|
7271
|
+
if (super("w:lvl"), this.root.push(new lt("w:start", (0, r.vH)(tt))), f && this.root.push(new sa(f)), ft && this.root.push(new aa(ft)), vt && this.root.push(new ca()), H && this.root.push(new oa(H)), this.root.push(new ia(J)), this.paragraphProperties = new qt(ut && ut.paragraph), this.runProperties = new Et(ut && ut.run), this.root.push(this.paragraphProperties), this.root.push(this.runProperties), t > 9) throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");
|
|
7272
|
+
this.root.push(new na({ ilvl: (0, r.vH)(t), tentative: 1 }));
|
|
7272
7273
|
}
|
|
7273
7274
|
}
|
|
7274
7275
|
class qn extends pr {
|
|
7275
7276
|
}
|
|
7276
|
-
class
|
|
7277
|
+
class ua extends pr {
|
|
7277
7278
|
}
|
|
7278
|
-
class
|
|
7279
|
+
class la extends n {
|
|
7279
7280
|
constructor(t) {
|
|
7280
7281
|
super("w:multiLevelType"), this.root.push(new u({ val: t }));
|
|
7281
7282
|
}
|
|
7282
7283
|
}
|
|
7283
|
-
class
|
|
7284
|
+
class ha extends o {
|
|
7284
7285
|
constructor() {
|
|
7285
7286
|
super(...arguments), this.xmlKeys = { abstractNumId: "w:abstractNumId", restartNumberingAfterBreak: "w15:restartNumberingAfterBreak" };
|
|
7286
7287
|
}
|
|
7287
7288
|
}
|
|
7288
7289
|
class dr extends n {
|
|
7289
7290
|
constructor(t, f) {
|
|
7290
|
-
super("w:abstractNum"), this.root.push(new
|
|
7291
|
+
super("w:abstractNum"), this.root.push(new ha({ abstractNumId: (0, r.vH)(t), restartNumberingAfterBreak: 0 })), this.root.push(new la("hybridMultilevel")), this.id = t;
|
|
7291
7292
|
for (const H of f) this.root.push(new qn(H));
|
|
7292
7293
|
}
|
|
7293
7294
|
}
|
|
7294
|
-
class
|
|
7295
|
+
class pa extends n {
|
|
7295
7296
|
constructor(t) {
|
|
7296
7297
|
super("w:abstractNumId"), this.root.push(new u({ val: t }));
|
|
7297
7298
|
}
|
|
7298
7299
|
}
|
|
7299
|
-
class
|
|
7300
|
+
class da extends o {
|
|
7300
7301
|
constructor() {
|
|
7301
7302
|
super(...arguments), this.xmlKeys = { numId: "w:numId" };
|
|
7302
7303
|
}
|
|
7303
7304
|
}
|
|
7304
7305
|
class fr extends n {
|
|
7305
7306
|
constructor(t) {
|
|
7306
|
-
super("w:num"), this.numId = t.numId, this.reference = t.reference, this.instance = t.instance, this.root.push(new
|
|
7307
|
+
super("w:num"), this.numId = t.numId, this.reference = t.reference, this.instance = t.instance, this.root.push(new da({ numId: (0, r.vH)(t.numId) })), this.root.push(new pa((0, r.vH)(t.abstractNumId))), t.overrideLevel && this.root.push(new Zn(t.overrideLevel.num, t.overrideLevel.start));
|
|
7307
7308
|
}
|
|
7308
7309
|
}
|
|
7309
|
-
class
|
|
7310
|
+
class fa extends o {
|
|
7310
7311
|
constructor() {
|
|
7311
7312
|
super(...arguments), this.xmlKeys = { ilvl: "w:ilvl" };
|
|
7312
7313
|
}
|
|
7313
7314
|
}
|
|
7314
7315
|
class Zn extends n {
|
|
7315
7316
|
constructor(t, f) {
|
|
7316
|
-
super("w:lvlOverride"), this.root.push(new
|
|
7317
|
+
super("w:lvlOverride"), this.root.push(new fa({ ilvl: t })), f !== void 0 && this.root.push(new ga(f));
|
|
7317
7318
|
}
|
|
7318
7319
|
}
|
|
7319
|
-
class
|
|
7320
|
+
class ma extends o {
|
|
7320
7321
|
constructor() {
|
|
7321
7322
|
super(...arguments), this.xmlKeys = { val: "w:val" };
|
|
7322
7323
|
}
|
|
7323
7324
|
}
|
|
7324
|
-
class
|
|
7325
|
+
class ga extends n {
|
|
7325
7326
|
constructor(t) {
|
|
7326
|
-
super("w:startOverride"), this.root.push(new
|
|
7327
|
+
super("w:startOverride"), this.root.push(new ma({ val: t }));
|
|
7327
7328
|
}
|
|
7328
7329
|
}
|
|
7329
7330
|
class Yn extends n {
|
|
@@ -7353,30 +7354,30 @@ Actual: ` + T.attribValue);
|
|
|
7353
7354
|
return Array.from(this.referenceConfigMap.values());
|
|
7354
7355
|
}
|
|
7355
7356
|
}
|
|
7356
|
-
class
|
|
7357
|
+
class wa extends o {
|
|
7357
7358
|
constructor() {
|
|
7358
7359
|
super(...arguments), this.xmlKeys = { version: "w:val", name: "w:name", uri: "w:uri" };
|
|
7359
7360
|
}
|
|
7360
7361
|
}
|
|
7361
|
-
class
|
|
7362
|
+
class ya extends n {
|
|
7362
7363
|
constructor(t) {
|
|
7363
|
-
super("w:compatSetting"), this.root.push(new
|
|
7364
|
+
super("w:compatSetting"), this.root.push(new wa({ version: t, uri: "http://schemas.microsoft.com/office/word", name: "compatibilityMode" }));
|
|
7364
7365
|
}
|
|
7365
7366
|
}
|
|
7366
|
-
class
|
|
7367
|
+
class ba extends n {
|
|
7367
7368
|
constructor(t) {
|
|
7368
|
-
super("w:compat"), t.version && this.root.push(new
|
|
7369
|
+
super("w:compat"), t.version && this.root.push(new ya(t.version)), t.useSingleBorderforContiguousCells && this.root.push(new B("w:useSingleBorderforContiguousCells", t.useSingleBorderforContiguousCells)), t.wordPerfectJustification && this.root.push(new B("w:wpJustification", t.wordPerfectJustification)), t.noTabStopForHangingIndent && this.root.push(new B("w:noTabHangInd", t.noTabStopForHangingIndent)), t.noLeading && this.root.push(new B("w:noLeading", t.noLeading)), t.spaceForUnderline && this.root.push(new B("w:spaceForUL", t.spaceForUnderline)), t.noColumnBalance && this.root.push(new B("w:noColumnBalance", t.noColumnBalance)), t.balanceSingleByteDoubleByteWidth && this.root.push(new B("w:balanceSingleByteDoubleByteWidth", t.balanceSingleByteDoubleByteWidth)), t.noExtraLineSpacing && this.root.push(new B("w:noExtraLineSpacing", t.noExtraLineSpacing)), t.doNotLeaveBackslashAlone && this.root.push(new B("w:doNotLeaveBackslashAlone", t.doNotLeaveBackslashAlone)), t.underlineTrailingSpaces && this.root.push(new B("w:ulTrailSpace", t.underlineTrailingSpaces)), t.doNotExpandShiftReturn && this.root.push(new B("w:doNotExpandShiftReturn", t.doNotExpandShiftReturn)), t.spacingInWholePoints && this.root.push(new B("w:spacingInWholePoints", t.spacingInWholePoints)), t.lineWrapLikeWord6 && this.root.push(new B("w:lineWrapLikeWord6", t.lineWrapLikeWord6)), t.printBodyTextBeforeHeader && this.root.push(new B("w:printBodyTextBeforeHeader", t.printBodyTextBeforeHeader)), t.printColorsBlack && this.root.push(new B("w:printColBlack", t.printColorsBlack)), t.spaceWidth && this.root.push(new B("w:wpSpaceWidth", t.spaceWidth)), t.showBreaksInFrames && this.root.push(new B("w:showBreaksInFrames", t.showBreaksInFrames)), t.subFontBySize && this.root.push(new B("w:subFontBySize", t.subFontBySize)), t.suppressBottomSpacing && this.root.push(new B("w:suppressBottomSpacing", t.suppressBottomSpacing)), t.suppressTopSpacing && this.root.push(new B("w:suppressTopSpacing", t.suppressTopSpacing)), t.suppressSpacingAtTopOfPage && this.root.push(new B("w:suppressSpacingAtTopOfPage", t.suppressSpacingAtTopOfPage)), t.suppressTopSpacingWP && this.root.push(new B("w:suppressTopSpacingWP", t.suppressTopSpacingWP)), t.suppressSpBfAfterPgBrk && this.root.push(new B("w:suppressSpBfAfterPgBrk", t.suppressSpBfAfterPgBrk)), t.swapBordersFacingPages && this.root.push(new B("w:swapBordersFacingPages", t.swapBordersFacingPages)), t.convertMailMergeEsc && this.root.push(new B("w:convMailMergeEsc", t.convertMailMergeEsc)), t.truncateFontHeightsLikeWP6 && this.root.push(new B("w:truncateFontHeightsLikeWP6", t.truncateFontHeightsLikeWP6)), t.macWordSmallCaps && this.root.push(new B("w:mwSmallCaps", t.macWordSmallCaps)), t.usePrinterMetrics && this.root.push(new B("w:usePrinterMetrics", t.usePrinterMetrics)), t.doNotSuppressParagraphBorders && this.root.push(new B("w:doNotSuppressParagraphBorders", t.doNotSuppressParagraphBorders)), t.wrapTrailSpaces && this.root.push(new B("w:wrapTrailSpaces", t.wrapTrailSpaces)), t.footnoteLayoutLikeWW8 && this.root.push(new B("w:footnoteLayoutLikeWW8", t.footnoteLayoutLikeWW8)), t.shapeLayoutLikeWW8 && this.root.push(new B("w:shapeLayoutLikeWW8", t.shapeLayoutLikeWW8)), t.alignTablesRowByRow && this.root.push(new B("w:alignTablesRowByRow", t.alignTablesRowByRow)), t.forgetLastTabAlignment && this.root.push(new B("w:forgetLastTabAlignment", t.forgetLastTabAlignment)), t.adjustLineHeightInTable && this.root.push(new B("w:adjustLineHeightInTable", t.adjustLineHeightInTable)), t.autoSpaceLikeWord95 && this.root.push(new B("w:autoSpaceLikeWord95", t.autoSpaceLikeWord95)), t.noSpaceRaiseLower && this.root.push(new B("w:noSpaceRaiseLower", t.noSpaceRaiseLower)), t.doNotUseHTMLParagraphAutoSpacing && this.root.push(new B("w:doNotUseHTMLParagraphAutoSpacing", t.doNotUseHTMLParagraphAutoSpacing)), t.layoutRawTableWidth && this.root.push(new B("w:layoutRawTableWidth", t.layoutRawTableWidth)), t.layoutTableRowsApart && this.root.push(new B("w:layoutTableRowsApart", t.layoutTableRowsApart)), t.useWord97LineBreakRules && this.root.push(new B("w:useWord97LineBreakRules", t.useWord97LineBreakRules)), t.doNotBreakWrappedTables && this.root.push(new B("w:doNotBreakWrappedTables", t.doNotBreakWrappedTables)), t.doNotSnapToGridInCell && this.root.push(new B("w:doNotSnapToGridInCell", t.doNotSnapToGridInCell)), t.selectFieldWithFirstOrLastCharacter && this.root.push(new B("w:selectFldWithFirstOrLastChar", t.selectFieldWithFirstOrLastCharacter)), t.applyBreakingRules && this.root.push(new B("w:applyBreakingRules", t.applyBreakingRules)), t.doNotWrapTextWithPunctuation && this.root.push(new B("w:doNotWrapTextWithPunct", t.doNotWrapTextWithPunctuation)), t.doNotUseEastAsianBreakRules && this.root.push(new B("w:doNotUseEastAsianBreakRules", t.doNotUseEastAsianBreakRules)), t.useWord2002TableStyleRules && this.root.push(new B("w:useWord2002TableStyleRules", t.useWord2002TableStyleRules)), t.growAutofit && this.root.push(new B("w:growAutofit", t.growAutofit)), t.useFELayout && this.root.push(new B("w:useFELayout", t.useFELayout)), t.useNormalStyleForList && this.root.push(new B("w:useNormalStyleForList", t.useNormalStyleForList)), t.doNotUseIndentAsNumberingTabStop && this.root.push(new B("w:doNotUseIndentAsNumberingTabStop", t.doNotUseIndentAsNumberingTabStop)), t.useAlternateEastAsianLineBreakRules && this.root.push(new B("w:useAltKinsokuLineBreakRules", t.useAlternateEastAsianLineBreakRules)), t.allowSpaceOfSameStyleInTable && this.root.push(new B("w:allowSpaceOfSameStyleInTable", t.allowSpaceOfSameStyleInTable)), t.doNotSuppressIndentation && this.root.push(new B("w:doNotSuppressIndentation", t.doNotSuppressIndentation)), t.doNotAutofitConstrainedTables && this.root.push(new B("w:doNotAutofitConstrainedTables", t.doNotAutofitConstrainedTables)), t.autofitToFirstFixedWidthCell && this.root.push(new B("w:autofitToFirstFixedWidthCell", t.autofitToFirstFixedWidthCell)), t.underlineTabInNumberingList && this.root.push(new B("w:underlineTabInNumList", t.underlineTabInNumberingList)), t.displayHangulFixedWidth && this.root.push(new B("w:displayHangulFixedWidth", t.displayHangulFixedWidth)), t.splitPgBreakAndParaMark && this.root.push(new B("w:splitPgBreakAndParaMark", t.splitPgBreakAndParaMark)), t.doNotVerticallyAlignCellWithSp && this.root.push(new B("w:doNotVertAlignCellWithSp", t.doNotVerticallyAlignCellWithSp)), t.doNotBreakConstrainedForcedTable && this.root.push(new B("w:doNotBreakConstrainedForcedTable", t.doNotBreakConstrainedForcedTable)), t.ignoreVerticalAlignmentInTextboxes && this.root.push(new B("w:doNotVertAlignInTxbx", t.ignoreVerticalAlignmentInTextboxes)), t.useAnsiKerningPairs && this.root.push(new B("w:useAnsiKerningPairs", t.useAnsiKerningPairs)), t.cachedColumnBalance && this.root.push(new B("w:cachedColBalance", t.cachedColumnBalance));
|
|
7369
7370
|
}
|
|
7370
7371
|
}
|
|
7371
|
-
class
|
|
7372
|
+
class xa extends o {
|
|
7372
7373
|
constructor() {
|
|
7373
7374
|
super(...arguments), this.xmlKeys = { wpc: "xmlns:wpc", mc: "xmlns:mc", o: "xmlns:o", r: "xmlns:r", m: "xmlns:m", v: "xmlns:v", wp14: "xmlns:wp14", wp: "xmlns:wp", w10: "xmlns:w10", w: "xmlns:w", w14: "xmlns:w14", w15: "xmlns:w15", wpg: "xmlns:wpg", wpi: "xmlns:wpi", wne: "xmlns:wne", wps: "xmlns:wps", Ignorable: "mc:Ignorable" };
|
|
7374
7375
|
}
|
|
7375
7376
|
}
|
|
7376
|
-
class
|
|
7377
|
+
class va extends n {
|
|
7377
7378
|
constructor(t) {
|
|
7378
7379
|
var f, H, J, tt;
|
|
7379
|
-
super("w:settings"), this.root.push(new
|
|
7380
|
+
super("w:settings"), this.root.push(new xa({ wpc: "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas", mc: "http://schemas.openxmlformats.org/markup-compatibility/2006", o: "urn:schemas-microsoft-com:office:office", r: "http://schemas.openxmlformats.org/officeDocument/2006/relationships", m: "http://schemas.openxmlformats.org/officeDocument/2006/math", v: "urn:schemas-microsoft-com:vml", wp14: "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing", wp: "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", w10: "urn:schemas-microsoft-com:office:word", w: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", w14: "http://schemas.microsoft.com/office/word/2010/wordml", w15: "http://schemas.microsoft.com/office/word/2012/wordml", wpg: "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup", wpi: "http://schemas.microsoft.com/office/word/2010/wordprocessingInk", wne: "http://schemas.microsoft.com/office/word/2006/wordml", wps: "http://schemas.microsoft.com/office/word/2010/wordprocessingShape", Ignorable: "w14 w15 wp14" })), this.root.push(new B("w:displayBackgroundShape", !0)), t.trackRevisions !== void 0 && this.root.push(new B("w:trackRevisions", t.trackRevisions)), t.evenAndOddHeaders !== void 0 && this.root.push(new B("w:evenAndOddHeaders", t.evenAndOddHeaders)), t.updateFields !== void 0 && this.root.push(new B("w:updateFields", t.updateFields)), this.root.push(new ba(Object.assign(Object.assign({}, (f = t.compatibility) !== null && f !== void 0 ? f : {}), { version: (tt = (J = (H = t.compatibility) === null || H === void 0 ? void 0 : H.version) !== null && J !== void 0 ? J : t.compatibilityModeVersion) !== null && tt !== void 0 ? tt : 15 })));
|
|
7380
7381
|
}
|
|
7381
7382
|
}
|
|
7382
7383
|
class Jn extends o {
|
|
@@ -7384,24 +7385,24 @@ Actual: ` + T.attribValue);
|
|
|
7384
7385
|
super(...arguments), this.xmlKeys = { val: "w:val" };
|
|
7385
7386
|
}
|
|
7386
7387
|
}
|
|
7387
|
-
class
|
|
7388
|
+
class _a extends n {
|
|
7388
7389
|
constructor(t) {
|
|
7389
7390
|
super("w:name"), this.root.push(new Jn({ val: t }));
|
|
7390
7391
|
}
|
|
7391
7392
|
}
|
|
7392
|
-
class
|
|
7393
|
+
class Ea extends n {
|
|
7393
7394
|
constructor(t) {
|
|
7394
7395
|
super("w:uiPriority"), this.root.push(new Jn({ val: (0, r.vH)(t) }));
|
|
7395
7396
|
}
|
|
7396
7397
|
}
|
|
7397
|
-
class
|
|
7398
|
+
class Ta extends o {
|
|
7398
7399
|
constructor() {
|
|
7399
7400
|
super(...arguments), this.xmlKeys = { type: "w:type", styleId: "w:styleId", default: "w:default", customStyle: "w:customStyle" };
|
|
7400
7401
|
}
|
|
7401
7402
|
}
|
|
7402
7403
|
class Qn extends n {
|
|
7403
7404
|
constructor(t, f) {
|
|
7404
|
-
super("w:style"), this.root.push(new
|
|
7405
|
+
super("w:style"), this.root.push(new Ta(t)), f.name && this.root.push(new _a(f.name)), f.basedOn && this.root.push(new G("w:basedOn", f.basedOn)), f.next && this.root.push(new G("w:next", f.next)), f.link && this.root.push(new G("w:link", f.link)), f.uiPriority !== void 0 && this.root.push(new Ea(f.uiPriority)), f.semiHidden !== void 0 && this.root.push(new B("w:semiHidden", f.semiHidden)), f.unhideWhenUsed !== void 0 && this.root.push(new B("w:unhideWhenUsed", f.unhideWhenUsed)), f.quickFormat !== void 0 && this.root.push(new B("w:qFormat", f.quickFormat));
|
|
7405
7406
|
}
|
|
7406
7407
|
}
|
|
7407
7408
|
class pe extends Qn {
|
|
@@ -7419,67 +7420,67 @@ Actual: ` + T.attribValue);
|
|
|
7419
7420
|
super(Object.assign(Object.assign({}, t), { basedOn: "Normal", next: "Normal", quickFormat: !0 }));
|
|
7420
7421
|
}
|
|
7421
7422
|
}
|
|
7422
|
-
class
|
|
7423
|
+
class Aa extends $t {
|
|
7423
7424
|
constructor(t) {
|
|
7424
7425
|
super(Object.assign(Object.assign({}, t), { id: "Title", name: "Title" }));
|
|
7425
7426
|
}
|
|
7426
7427
|
}
|
|
7427
|
-
class
|
|
7428
|
+
class Sa extends $t {
|
|
7428
7429
|
constructor(t) {
|
|
7429
7430
|
super(Object.assign(Object.assign({}, t), { id: "Heading1", name: "Heading 1" }));
|
|
7430
7431
|
}
|
|
7431
7432
|
}
|
|
7432
|
-
class
|
|
7433
|
+
class Ia extends $t {
|
|
7433
7434
|
constructor(t) {
|
|
7434
7435
|
super(Object.assign(Object.assign({}, t), { id: "Heading2", name: "Heading 2" }));
|
|
7435
7436
|
}
|
|
7436
7437
|
}
|
|
7437
|
-
class
|
|
7438
|
+
class Ra extends $t {
|
|
7438
7439
|
constructor(t) {
|
|
7439
7440
|
super(Object.assign(Object.assign({}, t), { id: "Heading3", name: "Heading 3" }));
|
|
7440
7441
|
}
|
|
7441
7442
|
}
|
|
7442
|
-
class
|
|
7443
|
+
class Na extends $t {
|
|
7443
7444
|
constructor(t) {
|
|
7444
7445
|
super(Object.assign(Object.assign({}, t), { id: "Heading4", name: "Heading 4" }));
|
|
7445
7446
|
}
|
|
7446
7447
|
}
|
|
7447
|
-
class
|
|
7448
|
+
class Ca extends $t {
|
|
7448
7449
|
constructor(t) {
|
|
7449
7450
|
super(Object.assign(Object.assign({}, t), { id: "Heading5", name: "Heading 5" }));
|
|
7450
7451
|
}
|
|
7451
7452
|
}
|
|
7452
|
-
class
|
|
7453
|
+
class Oa extends $t {
|
|
7453
7454
|
constructor(t) {
|
|
7454
7455
|
super(Object.assign(Object.assign({}, t), { id: "Heading6", name: "Heading 6" }));
|
|
7455
7456
|
}
|
|
7456
7457
|
}
|
|
7457
|
-
class
|
|
7458
|
+
class ka extends $t {
|
|
7458
7459
|
constructor(t) {
|
|
7459
7460
|
super(Object.assign(Object.assign({}, t), { id: "Strong", name: "Strong" }));
|
|
7460
7461
|
}
|
|
7461
7462
|
}
|
|
7462
|
-
class
|
|
7463
|
+
class La extends pe {
|
|
7463
7464
|
constructor(t) {
|
|
7464
7465
|
super(Object.assign(Object.assign({}, t), { id: "ListParagraph", name: "List Paragraph", basedOn: "Normal", quickFormat: !0 }));
|
|
7465
7466
|
}
|
|
7466
7467
|
}
|
|
7467
|
-
class
|
|
7468
|
+
class Da extends pe {
|
|
7468
7469
|
constructor(t) {
|
|
7469
7470
|
super(Object.assign(Object.assign({}, t), { id: "FootnoteText", name: "footnote text", link: "FootnoteTextChar", basedOn: "Normal", uiPriority: 99, semiHidden: !0, unhideWhenUsed: !0, paragraph: { spacing: { after: 0, line: 240, lineRule: Jt.AUTO } }, run: { size: 20 } }));
|
|
7470
7471
|
}
|
|
7471
7472
|
}
|
|
7472
|
-
class
|
|
7473
|
+
class Pa extends de {
|
|
7473
7474
|
constructor(t) {
|
|
7474
7475
|
super(Object.assign(Object.assign({}, t), { id: "FootnoteReference", name: "footnote reference", basedOn: "DefaultParagraphFont", semiHidden: !0, run: { superScript: !0 } }));
|
|
7475
7476
|
}
|
|
7476
7477
|
}
|
|
7477
|
-
class
|
|
7478
|
+
class Fa extends de {
|
|
7478
7479
|
constructor(t) {
|
|
7479
7480
|
super(Object.assign(Object.assign({}, t), { id: "FootnoteTextChar", name: "Footnote Text Char", basedOn: "DefaultParagraphFont", link: "FootnoteText", semiHidden: !0, run: { size: 20 } }));
|
|
7480
7481
|
}
|
|
7481
7482
|
}
|
|
7482
|
-
class
|
|
7483
|
+
class Ba extends de {
|
|
7483
7484
|
constructor(t) {
|
|
7484
7485
|
super(Object.assign(Object.assign({}, t), { id: "Hyperlink", name: "Hyperlink", basedOn: "DefaultParagraphFont", run: { color: "0563C1", underline: { type: x.SINGLE } } }));
|
|
7485
7486
|
}
|
|
@@ -7519,30 +7520,30 @@ Actual: ` + T.attribValue);
|
|
|
7519
7520
|
class ss {
|
|
7520
7521
|
newInstance(t = {}) {
|
|
7521
7522
|
var f;
|
|
7522
|
-
return { initialStyles: new Qt({ mc: "http://schemas.openxmlformats.org/markup-compatibility/2006", r: "http://schemas.openxmlformats.org/officeDocument/2006/relationships", w: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", w14: "http://schemas.microsoft.com/office/word/2010/wordml", w15: "http://schemas.microsoft.com/office/word/2012/wordml", Ignorable: "w14 w15" }), importedStyles: [new rs((f = t.document) !== null && f !== void 0 ? f : {}), new
|
|
7523
|
+
return { initialStyles: new Qt({ mc: "http://schemas.openxmlformats.org/markup-compatibility/2006", r: "http://schemas.openxmlformats.org/officeDocument/2006/relationships", w: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", w14: "http://schemas.microsoft.com/office/word/2010/wordml", w15: "http://schemas.microsoft.com/office/word/2012/wordml", Ignorable: "w14 w15" }), importedStyles: [new rs((f = t.document) !== null && f !== void 0 ? f : {}), new Aa(Object.assign({ run: { size: 56 } }, t.title)), new Sa(Object.assign({ run: { color: "2E74B5", size: 32 } }, t.heading1)), new Ia(Object.assign({ run: { color: "2E74B5", size: 26 } }, t.heading2)), new Ra(Object.assign({ run: { color: "1F4D78", size: 24 } }, t.heading3)), new Na(Object.assign({ run: { color: "2E74B5", italics: !0 } }, t.heading4)), new Ca(Object.assign({ run: { color: "2E74B5" } }, t.heading5)), new Oa(Object.assign({ run: { color: "1F4D78" } }, t.heading6)), new ka(Object.assign({ run: { bold: !0 } }, t.strong)), new La(t.listParagraph || {}), new Ba(t.hyperlink || {}), new Pa(t.footnoteReference || {}), new Da(t.footnoteText || {}), new Fa(t.footnoteTextChar || {})] };
|
|
7523
7524
|
}
|
|
7524
7525
|
}
|
|
7525
7526
|
class os {
|
|
7526
7527
|
constructor(t, f = {}) {
|
|
7527
7528
|
var H, J, tt, ut, ft, vt, pt;
|
|
7528
|
-
if (this.currentRelationshipId = 1, this.headers = [], this.footers = [], this.coreProperties = new
|
|
7529
|
+
if (this.currentRelationshipId = 1, this.headers = [], this.footers = [], this.coreProperties = new Bi(Object.assign(Object.assign({}, t), { creator: (H = t.creator) !== null && H !== void 0 ? H : "Un-named", revision: (J = t.revision) !== null && J !== void 0 ? J : 1, lastModifiedBy: (tt = t.lastModifiedBy) !== null && tt !== void 0 ? tt : "Un-named" })), this.numbering = new Yn(t.numbering ? t.numbering : { config: [] }), this.comments = new Ur((ut = t.comments) !== null && ut !== void 0 ? ut : { children: [] }), this.fileRelationships = new le(), this.customProperties = new Wi((ft = t.customProperties) !== null && ft !== void 0 ? ft : []), this.appProperties = new ki(), this.footnotesWrapper = new Qi(), this.contentTypes = new Fi(), this.documentWrapper = new vn({ background: t.background }), this.settings = new va({ compatibilityModeVersion: t.compatabilityModeVersion, compatibility: t.compatibility, evenAndOddHeaders: !!t.evenAndOddHeaderAndFooters, trackRevisions: (vt = t.features) === null || vt === void 0 ? void 0 : vt.trackRevisions, updateFields: (pt = t.features) === null || pt === void 0 ? void 0 : pt.updateFields }), this.media = f.template && f.template.media ? f.template.media : new lr(), f.template && (this.currentRelationshipId = f.template.currentRelationshipId + 1), f.template && t.externalStyles) throw Error("can not use both template and external styles");
|
|
7529
7530
|
if (f.template && f.template.styles) {
|
|
7530
|
-
const
|
|
7531
|
-
this.styles =
|
|
7531
|
+
const wt = new ns();
|
|
7532
|
+
this.styles = wt.newInstance(f.template.styles);
|
|
7532
7533
|
} else if (t.externalStyles) {
|
|
7533
|
-
const
|
|
7534
|
-
this.styles =
|
|
7534
|
+
const wt = new ns();
|
|
7535
|
+
this.styles = wt.newInstance(t.externalStyles);
|
|
7535
7536
|
} else if (t.styles) {
|
|
7536
|
-
const
|
|
7537
|
-
this.styles = new Ae(Object.assign(Object.assign({},
|
|
7537
|
+
const wt = new ss().newInstance(t.styles.default);
|
|
7538
|
+
this.styles = new Ae(Object.assign(Object.assign({}, wt), t.styles));
|
|
7538
7539
|
} else {
|
|
7539
|
-
const
|
|
7540
|
-
this.styles = new Ae(
|
|
7540
|
+
const wt = new ss();
|
|
7541
|
+
this.styles = new Ae(wt.newInstance());
|
|
7541
7542
|
}
|
|
7542
|
-
if (this.addDefaultRelationships(), f.template && f.template.headers) for (const
|
|
7543
|
-
if (f.template && f.template.footers) for (const
|
|
7544
|
-
for (const
|
|
7545
|
-
if (t.footnotes) for (const
|
|
7543
|
+
if (this.addDefaultRelationships(), f.template && f.template.headers) for (const wt of f.template.headers) this.addHeaderToDocument(wt.header, wt.type);
|
|
7544
|
+
if (f.template && f.template.footers) for (const wt of f.template.footers) this.addFooterToDocument(wt.footer, wt.type);
|
|
7545
|
+
for (const wt of t.sections) this.addSection(wt);
|
|
7546
|
+
if (t.footnotes) for (const wt in t.footnotes) this.footnotesWrapper.View.createFootNote(parseFloat(wt), t.footnotes[wt].children);
|
|
7546
7547
|
}
|
|
7547
7548
|
addSection({ headers: t = {}, footers: f = {}, children: H, properties: J }) {
|
|
7548
7549
|
this.documentWrapper.View.Body.addSection(Object.assign(Object.assign({}, J), { headerWrapperGroup: { default: t.default ? this.createHeader(t.default) : void 0, first: t.first ? this.createHeader(t.first) : void 0, even: t.even ? this.createHeader(t.even) : void 0 }, footerWrapperGroup: { default: f.default ? this.createFooter(f.default) : void 0, first: f.first ? this.createFooter(f.first) : void 0, even: f.even ? this.createFooter(f.even) : void 0 } }));
|
|
@@ -7610,44 +7611,44 @@ Actual: ` + T.attribValue);
|
|
|
7610
7611
|
return this.comments;
|
|
7611
7612
|
}
|
|
7612
7613
|
}
|
|
7613
|
-
const
|
|
7614
|
-
class
|
|
7614
|
+
const Ma = "";
|
|
7615
|
+
class Ua extends n {
|
|
7615
7616
|
constructor(t = {}) {
|
|
7616
7617
|
super("w:instrText"), this.properties = t, this.root.push(new L({ space: d.PRESERVE }));
|
|
7617
7618
|
let f = "TOC";
|
|
7618
7619
|
this.properties.captionLabel && (f = `${f} \\a "${this.properties.captionLabel}"`), this.properties.entriesFromBookmark && (f = `${f} \\b "${this.properties.entriesFromBookmark}"`), this.properties.captionLabelIncludingNumbers && (f = `${f} \\c "${this.properties.captionLabelIncludingNumbers}"`), this.properties.sequenceAndPageNumbersSeparator && (f = `${f} \\d "${this.properties.sequenceAndPageNumbersSeparator}"`), this.properties.tcFieldIdentifier && (f = `${f} \\f "${this.properties.tcFieldIdentifier}"`), this.properties.hyperlink && (f = `${f} \\h`), this.properties.tcFieldLevelRange && (f = `${f} \\l "${this.properties.tcFieldLevelRange}"`), this.properties.pageNumbersEntryLevelsRange && (f = `${f} \\n "${this.properties.pageNumbersEntryLevelsRange}"`), this.properties.headingStyleRange && (f = `${f} \\o "${this.properties.headingStyleRange}"`), this.properties.entryAndPageNumberSeparator && (f = `${f} \\p "${this.properties.entryAndPageNumberSeparator}"`), this.properties.seqFieldIdentifierForPrefix && (f = `${f} \\s "${this.properties.seqFieldIdentifierForPrefix}"`), this.properties.stylesWithLevels && this.properties.stylesWithLevels.length && (f = `${f} \\t "${this.properties.stylesWithLevels.map(((H) => `${H.styleName},${H.level}`)).join(",")}"`), this.properties.useAppliedParagraphOutlineLevel && (f = `${f} \\u`), this.properties.preserveTabInEntries && (f = `${f} \\w`), this.properties.preserveNewLineInEntries && (f = `${f} \\x`), this.properties.hideTabAndPageNumbersInWebView && (f = `${f} \\z`), this.root.push(f);
|
|
7619
7620
|
}
|
|
7620
7621
|
}
|
|
7621
|
-
class
|
|
7622
|
+
class Ha extends n {
|
|
7622
7623
|
constructor() {
|
|
7623
7624
|
super("w:sdtContent");
|
|
7624
7625
|
}
|
|
7625
7626
|
}
|
|
7626
|
-
class
|
|
7627
|
+
class za extends n {
|
|
7627
7628
|
constructor(t) {
|
|
7628
7629
|
super("w:sdtPr"), this.root.push(new G("w:alias", t));
|
|
7629
7630
|
}
|
|
7630
7631
|
}
|
|
7631
|
-
class
|
|
7632
|
+
class Wa extends n {
|
|
7632
7633
|
constructor(t = "Table of Contents", f) {
|
|
7633
|
-
super("w:sdt"), this.root.push(new
|
|
7634
|
-
const H = new
|
|
7634
|
+
super("w:sdt"), this.root.push(new za(t));
|
|
7635
|
+
const H = new Ha(), J = new jt({ children: [new Bt({ children: [new T(!0), new Ua(f), new i()] })] });
|
|
7635
7636
|
H.addChildElement(J);
|
|
7636
7637
|
const tt = new jt({ children: [new Bt({ children: [new v()] })] });
|
|
7637
7638
|
H.addChildElement(tt), this.root.push(H);
|
|
7638
7639
|
}
|
|
7639
7640
|
}
|
|
7640
|
-
class
|
|
7641
|
+
class ja {
|
|
7641
7642
|
constructor(t, f) {
|
|
7642
7643
|
this.styleName = t, this.level = f;
|
|
7643
7644
|
}
|
|
7644
7645
|
}
|
|
7645
|
-
class
|
|
7646
|
+
class Ka {
|
|
7646
7647
|
constructor(t = { children: [] }) {
|
|
7647
7648
|
this.options = t;
|
|
7648
7649
|
}
|
|
7649
7650
|
}
|
|
7650
|
-
class
|
|
7651
|
+
class Ga {
|
|
7651
7652
|
constructor(t = { children: [] }) {
|
|
7652
7653
|
this.options = t;
|
|
7653
7654
|
}
|
|
@@ -7662,27 +7663,27 @@ Actual: ` + T.attribValue);
|
|
|
7662
7663
|
super("w:footnoteReference"), this.root.push(new is({ id: t }));
|
|
7663
7664
|
}
|
|
7664
7665
|
}
|
|
7665
|
-
class
|
|
7666
|
+
class Va extends Bt {
|
|
7666
7667
|
constructor(t) {
|
|
7667
7668
|
super({ style: "FootnoteReference" }), this.root.push(new as(t));
|
|
7668
7669
|
}
|
|
7669
7670
|
}
|
|
7670
|
-
class
|
|
7671
|
+
class $a extends n {
|
|
7671
7672
|
constructor(t) {
|
|
7672
|
-
super("w:ins"), this.root.push(new
|
|
7673
|
+
super("w:ins"), this.root.push(new yt({ id: t.id, author: t.author, date: t.date })), this.addChildElement(new Yt(t));
|
|
7673
7674
|
}
|
|
7674
7675
|
}
|
|
7675
|
-
class
|
|
7676
|
+
class Xa extends n {
|
|
7676
7677
|
constructor() {
|
|
7677
7678
|
super("w:delInstrText"), this.root.push(new L({ space: d.PRESERVE })), this.root.push("PAGE");
|
|
7678
7679
|
}
|
|
7679
7680
|
}
|
|
7680
|
-
class
|
|
7681
|
+
class qa extends n {
|
|
7681
7682
|
constructor() {
|
|
7682
7683
|
super("w:delInstrText"), this.root.push(new L({ space: d.PRESERVE })), this.root.push("NUMPAGES");
|
|
7683
7684
|
}
|
|
7684
7685
|
}
|
|
7685
|
-
class
|
|
7686
|
+
class Za extends n {
|
|
7686
7687
|
constructor() {
|
|
7687
7688
|
super("w:delInstrText"), this.root.push(new L({ space: d.PRESERVE })), this.root.push("SECTIONPAGES");
|
|
7688
7689
|
}
|
|
@@ -7692,23 +7693,23 @@ Actual: ` + T.attribValue);
|
|
|
7692
7693
|
super("w:delText"), this.root.push(new L({ space: d.PRESERVE })), this.root.push(t);
|
|
7693
7694
|
}
|
|
7694
7695
|
}
|
|
7695
|
-
class
|
|
7696
|
+
class Ya extends n {
|
|
7696
7697
|
constructor(t) {
|
|
7697
|
-
super("w:del"), this.root.push(new
|
|
7698
|
+
super("w:del"), this.root.push(new yt({ id: t.id, author: t.author, date: t.date })), this.deletedTextRunWrapper = new Ja(t), this.addChildElement(this.deletedTextRunWrapper);
|
|
7698
7699
|
}
|
|
7699
7700
|
}
|
|
7700
|
-
class
|
|
7701
|
+
class Ja extends n {
|
|
7701
7702
|
constructor(t) {
|
|
7702
7703
|
if (super("w:r"), this.root.push(new Et(t)), t.children) for (const f of t.children) if (typeof f != "string") this.root.push(f);
|
|
7703
7704
|
else switch (f) {
|
|
7704
7705
|
case D.CURRENT:
|
|
7705
|
-
this.root.push(new T()), this.root.push(new
|
|
7706
|
+
this.root.push(new T()), this.root.push(new Xa()), this.root.push(new i()), this.root.push(new v());
|
|
7706
7707
|
break;
|
|
7707
7708
|
case D.TOTAL_PAGES:
|
|
7708
|
-
this.root.push(new T()), this.root.push(new
|
|
7709
|
+
this.root.push(new T()), this.root.push(new qa()), this.root.push(new i()), this.root.push(new v());
|
|
7709
7710
|
break;
|
|
7710
7711
|
case D.TOTAL_PAGES_IN_SECTION:
|
|
7711
|
-
this.root.push(new T()), this.root.push(new
|
|
7712
|
+
this.root.push(new T()), this.root.push(new Za()), this.root.push(new i()), this.root.push(new v());
|
|
7712
7713
|
break;
|
|
7713
7714
|
default:
|
|
7714
7715
|
this.root.push(new cs(f));
|
|
@@ -7718,14 +7719,14 @@ Actual: ` + T.attribValue);
|
|
|
7718
7719
|
}
|
|
7719
7720
|
}
|
|
7720
7721
|
var mr = ct(6085), kt = ct(3479);
|
|
7721
|
-
class
|
|
7722
|
+
class Qa {
|
|
7722
7723
|
format(t, f = {}) {
|
|
7723
7724
|
const H = t.prepForXml(f);
|
|
7724
7725
|
if (H) return H;
|
|
7725
7726
|
throw Error("XMLComponent did not format correctly");
|
|
7726
7727
|
}
|
|
7727
7728
|
}
|
|
7728
|
-
class
|
|
7729
|
+
class tc {
|
|
7729
7730
|
replace(t, f, H) {
|
|
7730
7731
|
let J = t;
|
|
7731
7732
|
return f.forEach(((tt, ut) => {
|
|
@@ -7736,7 +7737,7 @@ Actual: ` + T.attribValue);
|
|
|
7736
7737
|
return f.Array.filter(((H) => t.search(`{${H.fileName}}`) > 0));
|
|
7737
7738
|
}
|
|
7738
7739
|
}
|
|
7739
|
-
class
|
|
7740
|
+
class ec {
|
|
7740
7741
|
replace(t, f) {
|
|
7741
7742
|
let H = t;
|
|
7742
7743
|
for (const J of f) H = H.replace(new RegExp(`{${J.reference}-${J.instance}}`, "g"), J.numId.toString());
|
|
@@ -7748,21 +7749,21 @@ Actual: ` + T.attribValue);
|
|
|
7748
7749
|
function ut(pt) {
|
|
7749
7750
|
try {
|
|
7750
7751
|
vt(H.next(pt));
|
|
7751
|
-
} catch (
|
|
7752
|
-
tt(
|
|
7752
|
+
} catch (wt) {
|
|
7753
|
+
tt(wt);
|
|
7753
7754
|
}
|
|
7754
7755
|
}
|
|
7755
7756
|
function ft(pt) {
|
|
7756
7757
|
try {
|
|
7757
7758
|
vt(H.throw(pt));
|
|
7758
|
-
} catch (
|
|
7759
|
-
tt(
|
|
7759
|
+
} catch (wt) {
|
|
7760
|
+
tt(wt);
|
|
7760
7761
|
}
|
|
7761
7762
|
}
|
|
7762
7763
|
function vt(pt) {
|
|
7763
|
-
var
|
|
7764
|
-
pt.done ? J(pt.value) : (
|
|
7765
|
-
Lt(
|
|
7764
|
+
var wt;
|
|
7765
|
+
pt.done ? J(pt.value) : (wt = pt.value, wt instanceof f ? wt : new f((function(Lt) {
|
|
7766
|
+
Lt(wt);
|
|
7766
7767
|
}))).then(ut, ft);
|
|
7767
7768
|
}
|
|
7768
7769
|
vt((H = H.apply(e, [])).next());
|
|
@@ -7798,7 +7799,7 @@ Actual: ` + T.attribValue);
|
|
|
7798
7799
|
}
|
|
7799
7800
|
us.compiler = new class {
|
|
7800
7801
|
constructor() {
|
|
7801
|
-
this.formatter = new
|
|
7802
|
+
this.formatter = new Qa(), this.imageReplacer = new tc(), this.numberingReplacer = new ec();
|
|
7802
7803
|
}
|
|
7803
7804
|
compile(e, t) {
|
|
7804
7805
|
const f = new mr(), H = this.xmlifyFile(e, t), J = new Map(Object.entries(H));
|
|
@@ -7844,32 +7845,32 @@ Actual: ` + T.attribValue);
|
|
|
7844
7845
|
function ut(pt) {
|
|
7845
7846
|
try {
|
|
7846
7847
|
vt(H.next(pt));
|
|
7847
|
-
} catch (
|
|
7848
|
-
tt(
|
|
7848
|
+
} catch (wt) {
|
|
7849
|
+
tt(wt);
|
|
7849
7850
|
}
|
|
7850
7851
|
}
|
|
7851
7852
|
function ft(pt) {
|
|
7852
7853
|
try {
|
|
7853
7854
|
vt(H.throw(pt));
|
|
7854
|
-
} catch (
|
|
7855
|
-
tt(
|
|
7855
|
+
} catch (wt) {
|
|
7856
|
+
tt(wt);
|
|
7856
7857
|
}
|
|
7857
7858
|
}
|
|
7858
7859
|
function vt(pt) {
|
|
7859
|
-
var
|
|
7860
|
-
pt.done ? J(pt.value) : (
|
|
7861
|
-
Lt(
|
|
7860
|
+
var wt;
|
|
7861
|
+
pt.done ? J(pt.value) : (wt = pt.value, wt instanceof f ? wt : new f((function(Lt) {
|
|
7862
|
+
Lt(wt);
|
|
7862
7863
|
}))).then(ut, ft);
|
|
7863
7864
|
}
|
|
7864
7865
|
vt((H = H.apply(e, [])).next());
|
|
7865
7866
|
}));
|
|
7866
7867
|
};
|
|
7867
|
-
const
|
|
7868
|
+
const rc = { "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header": "header", "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer": "footer", "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image": "image", "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink": "hyperlink" };
|
|
7868
7869
|
var Ie;
|
|
7869
7870
|
(function(e) {
|
|
7870
7871
|
e.HEADER = "header", e.FOOTER = "footer", e.IMAGE = "image", e.HYPERLINK = "hyperlink";
|
|
7871
7872
|
})(Ie || (Ie = {}));
|
|
7872
|
-
class
|
|
7873
|
+
class nc {
|
|
7873
7874
|
extract(t) {
|
|
7874
7875
|
return oe(this, void 0, void 0, (function* () {
|
|
7875
7876
|
const f = yield mr.loadAsync(t), H = yield f.files["word/document.xml"].async("text"), J = yield f.files["word/_rels/document.xml.rels"].async("text"), tt = this.extractDocumentRefs(H), ut = this.findReferenceFiles(J), ft = new lr();
|
|
@@ -7881,7 +7882,7 @@ Actual: ` + T.attribValue);
|
|
|
7881
7882
|
const ut = f.footers.map(((ft, vt) => oe(this, void 0, void 0, (function* () {
|
|
7882
7883
|
const pt = H.find(((Pt) => Pt.id === ft.id));
|
|
7883
7884
|
if (pt === null || !pt) throw new Error(`Can not find target file for id ${ft.id}`);
|
|
7884
|
-
const
|
|
7885
|
+
const wt = yield t.files[`word/${pt.target}`].async("text"), Lt = (0, m.xml2js)(wt, { compact: !1, captureSpacesBetweenElements: !0 });
|
|
7885
7886
|
if (!Lt.elements) return;
|
|
7886
7887
|
const St = Lt.elements.reduce(((Pt, Kt) => Kt.name === "w:ftr" ? Kt : Pt)), Dt = I(St), zt = new ar(J, tt + vt, Dt);
|
|
7887
7888
|
return yield this.addRelationshipToWrapper(pt, t, zt, J), { type: ft.type, footer: zt };
|
|
@@ -7894,7 +7895,7 @@ Actual: ` + T.attribValue);
|
|
|
7894
7895
|
const ut = f.headers.map(((ft, vt) => oe(this, void 0, void 0, (function* () {
|
|
7895
7896
|
const pt = H.find(((Pt) => Pt.id === ft.id));
|
|
7896
7897
|
if (pt === null || !pt) throw new Error(`Can not find target file for id ${ft.id}`);
|
|
7897
|
-
const
|
|
7898
|
+
const wt = yield t.files[`word/${pt.target}`].async("text"), Lt = (0, m.xml2js)(wt, { compact: !1, captureSpacesBetweenElements: !0 });
|
|
7898
7899
|
if (!Lt.elements) return;
|
|
7899
7900
|
const St = Lt.elements.reduce(((Pt, Kt) => Kt.name === "w:hdr" ? Kt : Pt)), Dt = I(St), zt = new ur(J, tt + vt, Dt);
|
|
7900
7901
|
return yield this.addRelationshipToWrapper(pt, t, zt, J), { type: ft.type, header: zt };
|
|
@@ -7908,7 +7909,7 @@ Actual: ` + T.attribValue);
|
|
|
7908
7909
|
if (!tt) return;
|
|
7909
7910
|
const ut = yield tt.async("text"), ft = this.findReferenceFiles(ut).filter(((pt) => pt.type === Ie.IMAGE)), vt = this.findReferenceFiles(ut).filter(((pt) => pt.type === Ie.HYPERLINK));
|
|
7910
7911
|
for (const pt of ft) {
|
|
7911
|
-
const
|
|
7912
|
+
const wt = mr.support.arraybuffer ? "arraybuffer" : "nodebuffer", Lt = yield f.files[`word/${pt.target}`].async(wt), St = J.addMedia(Lt, { width: 100, height: 100 });
|
|
7912
7913
|
H.Relationships.createRelationship(pt.id, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", `media/${St.fileName}`);
|
|
7913
7914
|
}
|
|
7914
7915
|
for (const pt of vt) H.Relationships.createRelationship(pt.id, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink", pt.target, be.EXTERNAL);
|
|
@@ -7918,7 +7919,7 @@ Actual: ` + T.attribValue);
|
|
|
7918
7919
|
const f = (0, m.xml2js)(t, { compact: !0 });
|
|
7919
7920
|
return (Array.isArray(f.Relationships.Relationship) ? f.Relationships.Relationship : [f.Relationships.Relationship]).map(((H) => {
|
|
7920
7921
|
if (H._attributes === void 0) throw Error("relationship element has no attributes");
|
|
7921
|
-
return { id: this.parseRefId(H._attributes.Id), type:
|
|
7922
|
+
return { id: this.parseRefId(H._attributes.Id), type: rc[H._attributes.Type], target: H._attributes.Target };
|
|
7922
7923
|
})).filter(((H) => H.type !== null));
|
|
7923
7924
|
}
|
|
7924
7925
|
extractDocumentRefs(t) {
|
|
@@ -7949,8 +7950,8 @@ Actual: ` + T.attribValue);
|
|
|
7949
7950
|
})()));
|
|
7950
7951
|
})(wr)), wr.exports;
|
|
7951
7952
|
}
|
|
7952
|
-
var Nt =
|
|
7953
|
-
const
|
|
7953
|
+
var Nt = ic();
|
|
7954
|
+
const ac = {
|
|
7954
7955
|
apiUrl: "http://localhost:3001/api/",
|
|
7955
7956
|
// Replace with your production API URL
|
|
7956
7957
|
headers: {
|
|
@@ -7959,18 +7960,18 @@ const ic = {
|
|
|
7959
7960
|
// 'X-API-Key': 'YOUR_API_KEY'
|
|
7960
7961
|
}
|
|
7961
7962
|
};
|
|
7962
|
-
let
|
|
7963
|
-
function
|
|
7964
|
-
return { ...
|
|
7963
|
+
let cc = { ...ac };
|
|
7964
|
+
function xs() {
|
|
7965
|
+
return { ...cc };
|
|
7965
7966
|
}
|
|
7966
|
-
function
|
|
7967
|
-
return
|
|
7967
|
+
function uc() {
|
|
7968
|
+
return xs().headers || {};
|
|
7968
7969
|
}
|
|
7969
|
-
function
|
|
7970
|
-
const st = dt.replace(/\/$/, ""),
|
|
7971
|
-
return `${st}/${
|
|
7970
|
+
function lc(dt, xt) {
|
|
7971
|
+
const st = dt.replace(/\/$/, ""), gt = xt.replace(/^\//, "");
|
|
7972
|
+
return `${st}/${gt}`;
|
|
7972
7973
|
}
|
|
7973
|
-
const
|
|
7974
|
+
const hc = {
|
|
7974
7975
|
apiEndpoints: {
|
|
7975
7976
|
exportWord: "/documents/export-word"
|
|
7976
7977
|
},
|
|
@@ -7982,48 +7983,48 @@ const lc = {
|
|
|
7982
7983
|
useClientSideFallback: !0
|
|
7983
7984
|
// Enable fallback by default
|
|
7984
7985
|
};
|
|
7985
|
-
let
|
|
7986
|
+
let pc = { ...hc };
|
|
7986
7987
|
function vr() {
|
|
7987
|
-
return { ...
|
|
7988
|
+
return { ...pc };
|
|
7988
7989
|
}
|
|
7989
|
-
function
|
|
7990
|
-
const
|
|
7991
|
-
return
|
|
7990
|
+
function dc(dt) {
|
|
7991
|
+
const xt = vr(), st = xs(), gt = xt.apiUrl || st.apiUrl;
|
|
7992
|
+
return lc(gt, xt.apiEndpoints[dt]);
|
|
7992
7993
|
}
|
|
7993
|
-
function
|
|
7994
|
-
const dt =
|
|
7994
|
+
function fc() {
|
|
7995
|
+
const dt = uc(), st = vr().headers || {};
|
|
7995
7996
|
return { ...dt, ...st };
|
|
7996
7997
|
}
|
|
7997
7998
|
let yr = null, br = null, xr = null;
|
|
7998
|
-
async function
|
|
7999
|
+
async function mc() {
|
|
7999
8000
|
return yr || (yr = import("./index-CavM-mEM.mjs").then((dt) => dt.i)), yr;
|
|
8000
8001
|
}
|
|
8001
|
-
async function
|
|
8002
|
+
async function gc() {
|
|
8002
8003
|
return br || (br = import("./jspdf.es.min-BsnKYYHL.mjs").then((dt) => dt.j)), br;
|
|
8003
8004
|
}
|
|
8004
|
-
async function
|
|
8005
|
+
async function wc() {
|
|
8005
8006
|
return xr || (xr = import("./html2canvas.esm-AYkPY5LS.mjs")), xr;
|
|
8006
8007
|
}
|
|
8007
|
-
async function
|
|
8008
|
-
const
|
|
8009
|
-
return new Promise((st,
|
|
8008
|
+
async function Rc(dt) {
|
|
8009
|
+
const xt = await mc();
|
|
8010
|
+
return new Promise((st, gt) => {
|
|
8010
8011
|
const ct = new FileReader();
|
|
8011
8012
|
ct.onload = async (_t) => {
|
|
8012
8013
|
var W;
|
|
8013
8014
|
try {
|
|
8014
|
-
const F = (W = _t.target) == null ? void 0 : W.result, n = await
|
|
8015
|
+
const F = (W = _t.target) == null ? void 0 : W.result, n = await xt.convertToHtml({ arrayBuffer: F });
|
|
8015
8016
|
st(n.value);
|
|
8016
8017
|
} catch (F) {
|
|
8017
|
-
|
|
8018
|
+
gt(new Error(`Failed to import Word document: ${F}`));
|
|
8018
8019
|
}
|
|
8019
|
-
}, ct.onerror = () =>
|
|
8020
|
+
}, ct.onerror = () => gt(new Error("Failed to read file")), ct.readAsArrayBuffer(dt);
|
|
8020
8021
|
});
|
|
8021
8022
|
}
|
|
8022
|
-
async function
|
|
8023
|
+
async function Nc(dt, xt = "document.docx") {
|
|
8023
8024
|
var ct;
|
|
8024
|
-
const
|
|
8025
|
+
const gt = (ct = vr().useClientSideFallback) != null ? ct : !0;
|
|
8025
8026
|
try {
|
|
8026
|
-
const _t =
|
|
8027
|
+
const _t = dc("exportWord"), W = fc(), F = await fetch(_t, {
|
|
8027
8028
|
method: "POST",
|
|
8028
8029
|
headers: {
|
|
8029
8030
|
"Content-Type": "application/json",
|
|
@@ -8031,7 +8032,7 @@ async function Ic(dt, mt = "document.docx") {
|
|
|
8031
8032
|
},
|
|
8032
8033
|
body: JSON.stringify({
|
|
8033
8034
|
htmlContent: dt,
|
|
8034
|
-
filename:
|
|
8035
|
+
filename: xt
|
|
8035
8036
|
})
|
|
8036
8037
|
});
|
|
8037
8038
|
if (!F.ok) {
|
|
@@ -8039,13 +8040,13 @@ async function Ic(dt, mt = "document.docx") {
|
|
|
8039
8040
|
throw new Error(a.error || "Failed to export document");
|
|
8040
8041
|
}
|
|
8041
8042
|
const n = await F.blob();
|
|
8042
|
-
ys(n,
|
|
8043
|
+
ys(n, xt);
|
|
8043
8044
|
} catch (_t) {
|
|
8044
|
-
if (
|
|
8045
|
+
if (gt) {
|
|
8045
8046
|
console.warn("API export failed, falling back to client-side generation:", _t);
|
|
8046
8047
|
try {
|
|
8047
|
-
const W =
|
|
8048
|
-
ys(F,
|
|
8048
|
+
const W = yc(dt), F = await Nt.Packer.toBlob(W);
|
|
8049
|
+
ys(F, xt), console.info("✅ Document exported successfully using client-side generation");
|
|
8049
8050
|
} catch (W) {
|
|
8050
8051
|
throw new Error(`Failed to export to Word (both API and client-side): ${W}`);
|
|
8051
8052
|
}
|
|
@@ -8053,9 +8054,9 @@ async function Ic(dt, mt = "document.docx") {
|
|
|
8053
8054
|
throw new Error(`Failed to export to Word via API: ${_t}`);
|
|
8054
8055
|
}
|
|
8055
8056
|
}
|
|
8056
|
-
async function
|
|
8057
|
+
async function Cc(dt, xt = "document.pdf", st) {
|
|
8057
8058
|
try {
|
|
8058
|
-
const ct = (await
|
|
8059
|
+
const ct = (await gc()).default, _t = new ct({
|
|
8059
8060
|
orientation: "portrait",
|
|
8060
8061
|
unit: "mm",
|
|
8061
8062
|
format: "a4"
|
|
@@ -8064,7 +8065,7 @@ async function Rc(dt, mt = "document.pdf", st) {
|
|
|
8064
8065
|
const u = st.style.position, m = st.style.overflow, I = st.style.height, p = st.style.maxHeight;
|
|
8065
8066
|
st.style.position = "relative", st.style.overflow = "visible", st.style.height = "auto", st.style.maxHeight = "none", st.offsetHeight;
|
|
8066
8067
|
try {
|
|
8067
|
-
const N = (await
|
|
8068
|
+
const N = (await wc()).default, _ = await N(st, {
|
|
8068
8069
|
scale: 2,
|
|
8069
8070
|
// High quality rendering
|
|
8070
8071
|
useCORS: !0,
|
|
@@ -8107,26 +8108,24 @@ async function Rc(dt, mt = "document.pdf", st) {
|
|
|
8107
8108
|
throw st.style.position = u, st.style.overflow = m, st.style.height = I, st.style.maxHeight = p, S;
|
|
8108
8109
|
}
|
|
8109
8110
|
} else {
|
|
8110
|
-
const u =
|
|
8111
|
+
const u = Sc(dt).split(`
|
|
8111
8112
|
`);
|
|
8112
8113
|
let m = W;
|
|
8113
8114
|
u.forEach((I) => {
|
|
8114
8115
|
m > n - W && (_t.addPage(), m = W), _t.text(I, W, m), m += 7;
|
|
8115
8116
|
});
|
|
8116
8117
|
}
|
|
8117
|
-
_t.save(
|
|
8118
|
-
} catch (
|
|
8119
|
-
throw new Error(`Failed to export to PDF: ${
|
|
8118
|
+
_t.save(xt);
|
|
8119
|
+
} catch (gt) {
|
|
8120
|
+
throw new Error(`Failed to export to PDF: ${gt}`);
|
|
8120
8121
|
}
|
|
8121
8122
|
}
|
|
8122
|
-
function
|
|
8123
|
-
const
|
|
8124
|
-
|
|
8125
|
-
const st = [];
|
|
8126
|
-
return Array.from(mt.children).forEach((wt) => {
|
|
8123
|
+
function yc(dt) {
|
|
8124
|
+
const xt = bs(dt), st = [];
|
|
8125
|
+
return Array.from(xt.children).forEach((gt) => {
|
|
8127
8126
|
var _t;
|
|
8128
|
-
const ct =
|
|
8129
|
-
ct.match(/^H[1-6]$/) ? st.push(
|
|
8127
|
+
const ct = gt.tagName;
|
|
8128
|
+
ct.match(/^H[1-6]$/) ? st.push(bc(gt)) : ct === "P" ? st.push(gs(gt)) : ct === "TABLE" ? st.push(Tc(gt)) : ct === "UL" || ct === "OL" ? st.push(...Ac(gt, ct === "OL")) : ct === "BLOCKQUOTE" ? st.push(xc(gt)) : ct === "PRE" || ct === "CODE" ? st.push(vc(gt)) : ct === "HR" ? st.push(_c()) : (_t = gt.textContent) != null && _t.trim() && st.push(gs(gt));
|
|
8130
8129
|
}), st.length === 0 && st.push(new Nt.Paragraph({ children: [new Nt.TextRun({ text: "" })] })), new Nt.Document({
|
|
8131
8130
|
sections: [{
|
|
8132
8131
|
properties: {},
|
|
@@ -8134,8 +8133,8 @@ function wc(dt) {
|
|
|
8134
8133
|
}]
|
|
8135
8134
|
});
|
|
8136
8135
|
}
|
|
8137
|
-
function
|
|
8138
|
-
const
|
|
8136
|
+
function bc(dt) {
|
|
8137
|
+
const xt = parseInt(dt.tagName.charAt(1)), st = fe(dt), gt = vs(dt), ct = {
|
|
8139
8138
|
1: 32,
|
|
8140
8139
|
// 16pt
|
|
8141
8140
|
2: 28,
|
|
@@ -8153,12 +8152,12 @@ function yc(dt) {
|
|
|
8153
8152
|
children: st.map((_t) => {
|
|
8154
8153
|
const W = new Nt.TextRun({
|
|
8155
8154
|
text: _t.text,
|
|
8156
|
-
bold: _t.bold ||
|
|
8155
|
+
bold: _t.bold || xt <= 3,
|
|
8157
8156
|
// H1-H3 are bold by default
|
|
8158
8157
|
italics: _t.italic,
|
|
8159
8158
|
underline: _t.underline ? {} : void 0,
|
|
8160
8159
|
color: _t.color,
|
|
8161
|
-
size: ct[
|
|
8160
|
+
size: ct[xt],
|
|
8162
8161
|
font: _t.font
|
|
8163
8162
|
});
|
|
8164
8163
|
return _t.link ? new Nt.TextRun({
|
|
@@ -8166,15 +8165,15 @@ function yc(dt) {
|
|
|
8166
8165
|
style: "Hyperlink"
|
|
8167
8166
|
}) : W;
|
|
8168
8167
|
}),
|
|
8169
|
-
heading: `Heading${
|
|
8170
|
-
alignment:
|
|
8168
|
+
heading: `Heading${xt}`,
|
|
8169
|
+
alignment: gt,
|
|
8171
8170
|
spacing: { before: 240, after: 120 }
|
|
8172
8171
|
});
|
|
8173
8172
|
}
|
|
8174
8173
|
function gs(dt) {
|
|
8175
|
-
const
|
|
8174
|
+
const xt = fe(dt), st = vs(dt), gt = Ec(dt);
|
|
8176
8175
|
return new Nt.Paragraph({
|
|
8177
|
-
children:
|
|
8176
|
+
children: xt.map((ct) => {
|
|
8178
8177
|
const _t = {
|
|
8179
8178
|
text: ct.text,
|
|
8180
8179
|
bold: ct.bold,
|
|
@@ -8189,13 +8188,13 @@ function gs(dt) {
|
|
|
8189
8188
|
return ct.link && (_t.style = "Hyperlink"), new Nt.TextRun(_t);
|
|
8190
8189
|
}),
|
|
8191
8190
|
alignment: st,
|
|
8192
|
-
indent:
|
|
8191
|
+
indent: gt
|
|
8193
8192
|
});
|
|
8194
8193
|
}
|
|
8195
|
-
function
|
|
8196
|
-
const
|
|
8194
|
+
function xc(dt) {
|
|
8195
|
+
const xt = fe(dt);
|
|
8197
8196
|
return new Nt.Paragraph({
|
|
8198
|
-
children:
|
|
8197
|
+
children: xt.map((st) => new Nt.TextRun({
|
|
8199
8198
|
text: st.text,
|
|
8200
8199
|
bold: st.bold,
|
|
8201
8200
|
italics: st.italic || !0,
|
|
@@ -8216,12 +8215,12 @@ function bc(dt) {
|
|
|
8216
8215
|
}
|
|
8217
8216
|
});
|
|
8218
8217
|
}
|
|
8219
|
-
function
|
|
8220
|
-
const
|
|
8218
|
+
function vc(dt) {
|
|
8219
|
+
const xt = dt.textContent || "";
|
|
8221
8220
|
return new Nt.Paragraph({
|
|
8222
8221
|
children: [
|
|
8223
8222
|
new Nt.TextRun({
|
|
8224
|
-
text:
|
|
8223
|
+
text: xt,
|
|
8225
8224
|
font: "Courier New",
|
|
8226
8225
|
size: 20
|
|
8227
8226
|
// 10pt
|
|
@@ -8237,7 +8236,7 @@ function xc(dt) {
|
|
|
8237
8236
|
spacing: { before: 120, after: 120 }
|
|
8238
8237
|
});
|
|
8239
8238
|
}
|
|
8240
|
-
function
|
|
8239
|
+
function _c() {
|
|
8241
8240
|
return new Nt.Paragraph({
|
|
8242
8241
|
children: [new Nt.TextRun({ text: "" })],
|
|
8243
8242
|
border: {
|
|
@@ -8252,13 +8251,13 @@ function vc() {
|
|
|
8252
8251
|
});
|
|
8253
8252
|
}
|
|
8254
8253
|
function fe(dt) {
|
|
8255
|
-
var
|
|
8256
|
-
const
|
|
8254
|
+
var gt;
|
|
8255
|
+
const xt = [];
|
|
8257
8256
|
function st(ct, _t = {}) {
|
|
8258
8257
|
var W, F;
|
|
8259
8258
|
if (ct.nodeType === Node.TEXT_NODE) {
|
|
8260
8259
|
const n = ct.textContent || "";
|
|
8261
|
-
(n.trim() || n.includes(" ")) &&
|
|
8260
|
+
(n.trim() || n.includes(" ")) && xt.push({
|
|
8262
8261
|
text: n,
|
|
8263
8262
|
..._t
|
|
8264
8263
|
});
|
|
@@ -8269,7 +8268,7 @@ function fe(dt) {
|
|
|
8269
8268
|
m && (a.link = m, a.color = "0563C1", a.underline = !0);
|
|
8270
8269
|
}
|
|
8271
8270
|
if (o === "BR") {
|
|
8272
|
-
|
|
8271
|
+
xt.push({ text: `
|
|
8273
8272
|
`, ..._t });
|
|
8274
8273
|
return;
|
|
8275
8274
|
}
|
|
@@ -8282,34 +8281,34 @@ function fe(dt) {
|
|
|
8282
8281
|
u.fontFamily && (a.font = u.fontFamily.replace(/['"]/g, "").split(",")[0].trim()), Array.from(n.childNodes).forEach((m) => st(m, a));
|
|
8283
8282
|
}
|
|
8284
8283
|
}
|
|
8285
|
-
return Array.from(dt.childNodes).forEach((ct) => st(ct)),
|
|
8284
|
+
return Array.from(dt.childNodes).forEach((ct) => st(ct)), xt.length === 0 && ((gt = dt.textContent) != null && gt.trim()) && xt.push({ text: dt.textContent.trim() }), xt;
|
|
8286
8285
|
}
|
|
8287
|
-
function
|
|
8286
|
+
function vs(dt) {
|
|
8288
8287
|
const st = dt.style.textAlign;
|
|
8289
8288
|
if (st === "center") return "center";
|
|
8290
8289
|
if (st === "right") return "right";
|
|
8291
8290
|
if (st === "justify") return "justify";
|
|
8292
8291
|
if (st === "left") return "left";
|
|
8293
8292
|
}
|
|
8294
|
-
function
|
|
8295
|
-
const st = dt.style,
|
|
8293
|
+
function Ec(dt) {
|
|
8294
|
+
const st = dt.style, gt = {};
|
|
8296
8295
|
if (st.marginLeft || st.paddingLeft) {
|
|
8297
8296
|
const ct = parseInt(st.marginLeft || st.paddingLeft);
|
|
8298
|
-
!isNaN(ct) && ct > 0 && (
|
|
8297
|
+
!isNaN(ct) && ct > 0 && (gt.left = Math.round(ct * 14.4));
|
|
8299
8298
|
}
|
|
8300
8299
|
if (st.marginRight || st.paddingRight) {
|
|
8301
8300
|
const ct = parseInt(st.marginRight || st.paddingRight);
|
|
8302
|
-
!isNaN(ct) && ct > 0 && (
|
|
8301
|
+
!isNaN(ct) && ct > 0 && (gt.right = Math.round(ct * 14.4));
|
|
8303
8302
|
}
|
|
8304
|
-
return Object.keys(
|
|
8303
|
+
return Object.keys(gt).length > 0 ? gt : void 0;
|
|
8305
8304
|
}
|
|
8306
8305
|
function ws(dt) {
|
|
8307
8306
|
if (dt.startsWith("#"))
|
|
8308
8307
|
return dt.substring(1).toUpperCase();
|
|
8309
|
-
const
|
|
8310
|
-
if (
|
|
8311
|
-
const
|
|
8312
|
-
return (
|
|
8308
|
+
const xt = dt.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);
|
|
8309
|
+
if (xt) {
|
|
8310
|
+
const gt = parseInt(xt[1]), ct = parseInt(xt[2]), _t = parseInt(xt[3]);
|
|
8311
|
+
return (gt << 16 | ct << 8 | _t).toString(16).padStart(6, "0").toUpperCase();
|
|
8313
8312
|
}
|
|
8314
8313
|
return {
|
|
8315
8314
|
black: "000000",
|
|
@@ -8324,11 +8323,11 @@ function ws(dt) {
|
|
|
8324
8323
|
grey: "808080"
|
|
8325
8324
|
}[dt.toLowerCase()] || "000000";
|
|
8326
8325
|
}
|
|
8327
|
-
function
|
|
8328
|
-
const
|
|
8329
|
-
return dt.querySelectorAll("tr").forEach((
|
|
8326
|
+
function Tc(dt) {
|
|
8327
|
+
const xt = [];
|
|
8328
|
+
return dt.querySelectorAll("tr").forEach((gt) => {
|
|
8330
8329
|
const ct = [];
|
|
8331
|
-
|
|
8330
|
+
gt.querySelectorAll("td, th").forEach((W) => {
|
|
8332
8331
|
const F = fe(W), n = W.tagName === "TH";
|
|
8333
8332
|
ct.push(
|
|
8334
8333
|
new Nt.TableCell({
|
|
@@ -8358,9 +8357,9 @@ function Ec(dt) {
|
|
|
8358
8357
|
} : void 0
|
|
8359
8358
|
})
|
|
8360
8359
|
);
|
|
8361
|
-
}),
|
|
8360
|
+
}), xt.push(new Nt.TableRow({ children: ct }));
|
|
8362
8361
|
}), new Nt.Table({
|
|
8363
|
-
rows:
|
|
8362
|
+
rows: xt,
|
|
8364
8363
|
width: {
|
|
8365
8364
|
size: 100,
|
|
8366
8365
|
type: "pct"
|
|
@@ -8368,10 +8367,10 @@ function Ec(dt) {
|
|
|
8368
8367
|
}
|
|
8369
8368
|
});
|
|
8370
8369
|
}
|
|
8371
|
-
function
|
|
8370
|
+
function Ac(dt, xt = !1) {
|
|
8372
8371
|
const st = [];
|
|
8373
8372
|
return dt.querySelectorAll("li").forEach((ct, _t) => {
|
|
8374
|
-
const W = fe(ct), F =
|
|
8373
|
+
const W = fe(ct), F = xt ? `${_t + 1}.` : "•";
|
|
8375
8374
|
st.push(
|
|
8376
8375
|
new Nt.Paragraph({
|
|
8377
8376
|
children: [
|
|
@@ -8401,18 +8400,17 @@ function Tc(dt, mt = !1) {
|
|
|
8401
8400
|
);
|
|
8402
8401
|
}), st;
|
|
8403
8402
|
}
|
|
8404
|
-
function
|
|
8405
|
-
|
|
8406
|
-
return mt.innerHTML = dt, mt.textContent || mt.innerText || "";
|
|
8403
|
+
function Sc(dt) {
|
|
8404
|
+
return bs(dt).textContent || "";
|
|
8407
8405
|
}
|
|
8408
|
-
function ys(dt,
|
|
8409
|
-
const st = URL.createObjectURL(dt),
|
|
8410
|
-
|
|
8406
|
+
function ys(dt, xt) {
|
|
8407
|
+
const st = URL.createObjectURL(dt), gt = document.createElement("a");
|
|
8408
|
+
gt.href = st, gt.download = xt, document.body.appendChild(gt), gt.click(), document.body.removeChild(gt), URL.revokeObjectURL(st);
|
|
8411
8409
|
}
|
|
8412
8410
|
export {
|
|
8413
|
-
|
|
8414
|
-
|
|
8415
|
-
|
|
8416
|
-
|
|
8411
|
+
Cc as exportToPdf,
|
|
8412
|
+
Nc as exportToWord,
|
|
8413
|
+
yc as htmlToDocx,
|
|
8414
|
+
Rc as importFromWord
|
|
8417
8415
|
};
|
|
8418
|
-
//# sourceMappingURL=documentManager-
|
|
8416
|
+
//# sourceMappingURL=documentManager-BWK_-KJp.mjs.map
|