oasis-editor 0.0.376 → 0.0.378
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/{OasisEditorApp-DPmY6L3p.js → OasisEditorApp-DvBGpr7z.js} +1 -1
- package/dist/assets/{importDocxWorker-DmlXA3cz.js → importDocxWorker-B13OESgI.js} +787 -724
- package/dist/{defaultToolbar-wD164itI.js → defaultToolbar-CgJlrQ3u.js} +1 -1
- package/dist/import/docx/runs/fieldProjection.d.ts +4 -0
- package/dist/oasis-editor.js +1 -1
- package/dist/oasis-editor.umd.cjs +1 -1
- package/dist/ooxml/word/fieldInstruction.d.ts +20 -0
- package/dist/{sourcePackage-LObB-tI4.js → sourcePackage-DAQgLLKk.js} +1 -1
- package/package.json +1 -1
|
@@ -176,25 +176,25 @@
|
|
|
176
176
|
return n;
|
|
177
177
|
}
|
|
178
178
|
function o(e, t, r, o, a, u) {
|
|
179
|
-
var d, p, f = e.file, h = e.compression, m = u !== s.utf8encode, g = i.transformTo("string", u(f.name)), w = i.transformTo("string", s.utf8encode(f.name)), b = f.comment, v = i.transformTo("string", u(b)), y = i.transformTo("string", s.utf8encode(b)), x = w.length !== f.name.length,
|
|
179
|
+
var d, p, f = e.file, h = e.compression, m = u !== s.utf8encode, g = i.transformTo("string", u(f.name)), w = i.transformTo("string", s.utf8encode(f.name)), b = f.comment, v = i.transformTo("string", u(b)), y = i.transformTo("string", s.utf8encode(b)), x = w.length !== f.name.length, S = y.length !== b.length, E = "", N = "", k = "", T = f.dir, _ = f.date, I = {
|
|
180
180
|
crc32: 0,
|
|
181
181
|
compressedSize: 0,
|
|
182
182
|
uncompressedSize: 0
|
|
183
183
|
};
|
|
184
184
|
t && !r || (I.crc32 = e.crc32, I.compressedSize = e.compressedSize, I.uncompressedSize = e.uncompressedSize);
|
|
185
|
-
var
|
|
186
|
-
t && (
|
|
187
|
-
var
|
|
188
|
-
T && (
|
|
185
|
+
var C = 0;
|
|
186
|
+
t && (C |= 8), m || !x && !S || (C |= 2048);
|
|
187
|
+
var A = 0, R = 0;
|
|
188
|
+
T && (A |= 16), "UNIX" === a ? (R = 798, A |= function(e, t) {
|
|
189
189
|
var r = e;
|
|
190
190
|
return e || (r = t ? 16893 : 33204), (65535 & r) << 16;
|
|
191
|
-
}(f.unixPermissions, T)) : (R = 20,
|
|
191
|
+
}(f.unixPermissions, T)) : (R = 20, A |= function(e) {
|
|
192
192
|
return 63 & (e || 0);
|
|
193
|
-
}(f.dosPermissions)), d = _.getUTCHours(), d <<= 6, d |= _.getUTCMinutes(), d <<= 5, d |= _.getUTCSeconds() / 2, p = _.getUTCFullYear() - 1980, p <<= 4, p |= _.getUTCMonth() + 1, p <<= 5, p |= _.getUTCDate(), x && (N = n(1, 1) + n(l(g), 4) + w,
|
|
193
|
+
}(f.dosPermissions)), d = _.getUTCHours(), d <<= 6, d |= _.getUTCMinutes(), d <<= 5, d |= _.getUTCSeconds() / 2, p = _.getUTCFullYear() - 1980, p <<= 4, p |= _.getUTCMonth() + 1, p <<= 5, p |= _.getUTCDate(), x && (N = n(1, 1) + n(l(g), 4) + w, E += "up" + n(N.length, 2) + N), S && (k = n(1, 1) + n(l(v), 4) + y, E += "uc" + n(k.length, 2) + k);
|
|
194
194
|
var D = "";
|
|
195
|
-
return D += "\n\0", D += n(
|
|
196
|
-
fileRecord: c.LOCAL_FILE_HEADER + D + g +
|
|
197
|
-
dirRecord: c.CENTRAL_FILE_HEADER + n(R, 2) + D + n(v.length, 2) + "\0\0\0\0" + n(
|
|
195
|
+
return D += "\n\0", D += n(C, 2), D += h.magic, D += n(d, 2), D += n(p, 2), D += n(I.crc32, 4), D += n(I.compressedSize, 4), D += n(I.uncompressedSize, 4), D += n(g.length, 2), D += n(E.length, 2), {
|
|
196
|
+
fileRecord: c.LOCAL_FILE_HEADER + D + g + E,
|
|
197
|
+
dirRecord: c.CENTRAL_FILE_HEADER + n(R, 2) + D + n(v.length, 2) + "\0\0\0\0" + n(A, 4) + n(o, 4) + g + E + v
|
|
198
198
|
};
|
|
199
199
|
}
|
|
200
200
|
var i = e("../utils"), a = e("../stream/GenericWorker"), s = e("../utf8"), l = e("../crc32"), c = e("../signature");
|
|
@@ -1904,7 +1904,7 @@ while (c[++i] === c[++r] && c[++i] === c[++r] && c[++i] === c[++r] && c[++i] ===
|
|
|
1904
1904
|
if (c = e.strm, u = e.window, p = e.strstart + e.lookahead, h = void 0, (f = i) < (h = c.avail_in) && (h = f), r = 0 === h ? 0 : (c.avail_in -= h, o.arraySet(u, c.input, c.next_in, h, p), 1 === c.state.wrap ? c.adler = a(c.adler, u, h, p) : 2 === c.state.wrap && (c.adler = s(c.adler, u, h, p)), c.next_in += h, c.total_in += h, h), e.lookahead += r, e.lookahead + e.insert >= 3) for (l = e.strstart - e.insert, e.ins_h = e.window[l], e.ins_h = (e.ins_h << e.hash_shift ^ e.window[l + 1]) & e.hash_mask; e.insert && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[l + 3 - 1]) & e.hash_mask, e.prev[l & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = l, l++, e.insert--, !(e.lookahead + e.insert < 3)););
|
|
1905
1905
|
} while (e.lookahead < d && 0 !== e.strm.avail_in);
|
|
1906
1906
|
}
|
|
1907
|
-
function
|
|
1907
|
+
function S(e, t) {
|
|
1908
1908
|
for (var r, n;;) {
|
|
1909
1909
|
if (e.lookahead < d) {
|
|
1910
1910
|
if (x(e), e.lookahead < d && 0 === t) return 1;
|
|
@@ -1919,7 +1919,7 @@ while (c[++i] === c[++r] && c[++i] === c[++r] && c[++i] === c[++r] && c[++i] ===
|
|
|
1919
1919
|
}
|
|
1920
1920
|
return e.insert = e.strstart < 2 ? e.strstart : 2, 4 === t ? (w(e, !0), 0 === e.strm.avail_out ? 3 : 4) : e.last_lit && (w(e, !1), 0 === e.strm.avail_out) ? 1 : 2;
|
|
1921
1921
|
}
|
|
1922
|
-
function
|
|
1922
|
+
function E(e, t) {
|
|
1923
1923
|
for (var r, n, o;;) {
|
|
1924
1924
|
if (e.lookahead < d) {
|
|
1925
1925
|
if (x(e), e.lookahead < d && 0 === t) return 1;
|
|
@@ -1973,15 +1973,15 @@ while (c[++i] === c[++r] && c[++i] === c[++r] && c[++i] === c[++r] && c[++i] ===
|
|
|
1973
1973
|
}
|
|
1974
1974
|
return e.insert = 0, 4 === t ? (w(e, !0), 0 === e.strm.avail_out ? 3 : 4) : (e.strstart > e.block_start && (w(e, !1), e.strm.avail_out), 1);
|
|
1975
1975
|
}),
|
|
1976
|
-
new N(4, 4, 8, 4,
|
|
1977
|
-
new N(4, 5, 16, 8,
|
|
1978
|
-
new N(4, 6, 32, 32,
|
|
1979
|
-
new N(4, 4, 16, 16,
|
|
1980
|
-
new N(8, 16, 32, 32,
|
|
1981
|
-
new N(8, 16, 128, 128,
|
|
1982
|
-
new N(8, 32, 128, 256,
|
|
1983
|
-
new N(32, 128, 258, 1024,
|
|
1984
|
-
new N(32, 258, 258, 4096,
|
|
1976
|
+
new N(4, 4, 8, 4, S),
|
|
1977
|
+
new N(4, 5, 16, 8, S),
|
|
1978
|
+
new N(4, 6, 32, 32, S),
|
|
1979
|
+
new N(4, 4, 16, 16, E),
|
|
1980
|
+
new N(8, 16, 32, 32, E),
|
|
1981
|
+
new N(8, 16, 128, 128, E),
|
|
1982
|
+
new N(8, 32, 128, 256, E),
|
|
1983
|
+
new N(32, 128, 258, 1024, E),
|
|
1984
|
+
new N(32, 258, 258, 4096, E)
|
|
1985
1985
|
], r.deflateInit = function(e, t) {
|
|
1986
1986
|
return I(e, t, 8, 15, 8, 0);
|
|
1987
1987
|
}, r.deflateInit2 = I, r.deflateReset = _, r.deflateResetKeep = T, r.deflateSetHeader = function(e, t) {
|
|
@@ -2084,12 +2084,12 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
2084
2084
|
48: [function(e, t, r) {
|
|
2085
2085
|
"use strict";
|
|
2086
2086
|
t.exports = function(e, t) {
|
|
2087
|
-
var r, n, o, i, a, s, l, c, u, d, p, f, h, m, g, w, b, v, y, x,
|
|
2088
|
-
r = k + (e.avail_in - 5), n = e.next_out,
|
|
2087
|
+
var r, n, o, i, a, s, l, c, u, d, p, f, h, m, g, w, b, v, y, x, S, E, N = e.state, k = e.next_in, T = e.input;
|
|
2088
|
+
r = k + (e.avail_in - 5), n = e.next_out, E = e.output, o = n - (t - e.avail_out), i = n + (e.avail_out - 257), a = N.dmax, s = N.wsize, l = N.whave, c = N.wnext, u = N.window, d = N.hold, p = N.bits, f = N.lencode, h = N.distcode, m = (1 << N.lenbits) - 1, g = (1 << N.distbits) - 1;
|
|
2089
2089
|
e: do {
|
|
2090
2090
|
p < 15 && (d += T[k++] << p, p += 8, d += T[k++] << p, p += 8), w = f[d & m];
|
|
2091
2091
|
t: for (;;) {
|
|
2092
|
-
if (d >>>= b = w >>> 24, p -= b, 0 == (b = w >>> 16 & 255))
|
|
2092
|
+
if (d >>>= b = w >>> 24, p -= b, 0 == (b = w >>> 16 & 255)) E[n++] = 65535 & w;
|
|
2093
2093
|
else {
|
|
2094
2094
|
if (!(16 & b)) {
|
|
2095
2095
|
if (!(64 & b)) {
|
|
@@ -2122,28 +2122,28 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
2122
2122
|
e.msg = "invalid distance too far back", N.mode = 30;
|
|
2123
2123
|
break e;
|
|
2124
2124
|
}
|
|
2125
|
-
if (
|
|
2125
|
+
if (S = u, (x = 0) === c) {
|
|
2126
2126
|
if (x += s - b, b < v) {
|
|
2127
|
-
for (v -= b;
|
|
2128
|
-
x = n - y,
|
|
2127
|
+
for (v -= b; E[n++] = u[x++], --b;);
|
|
2128
|
+
x = n - y, S = E;
|
|
2129
2129
|
}
|
|
2130
2130
|
} else if (c < b) {
|
|
2131
2131
|
if (x += s + c - b, (b -= c) < v) {
|
|
2132
|
-
for (v -= b;
|
|
2132
|
+
for (v -= b; E[n++] = u[x++], --b;);
|
|
2133
2133
|
if (x = 0, c < v) {
|
|
2134
|
-
for (v -= b = c;
|
|
2135
|
-
x = n - y,
|
|
2134
|
+
for (v -= b = c; E[n++] = u[x++], --b;);
|
|
2135
|
+
x = n - y, S = E;
|
|
2136
2136
|
}
|
|
2137
2137
|
}
|
|
2138
2138
|
} else if (x += c - b, b < v) {
|
|
2139
|
-
for (v -= b;
|
|
2140
|
-
x = n - y,
|
|
2139
|
+
for (v -= b; E[n++] = u[x++], --b;);
|
|
2140
|
+
x = n - y, S = E;
|
|
2141
2141
|
}
|
|
2142
|
-
for (; 2 < v;)
|
|
2143
|
-
v && (
|
|
2142
|
+
for (; 2 < v;) E[n++] = S[x++], E[n++] = S[x++], E[n++] = S[x++], v -= 3;
|
|
2143
|
+
v && (E[n++] = S[x++], 1 < v && (E[n++] = S[x++]));
|
|
2144
2144
|
} else {
|
|
2145
|
-
for (x = n - y;
|
|
2146
|
-
v && (
|
|
2145
|
+
for (x = n - y; E[n++] = E[x++], E[n++] = E[x++], E[n++] = E[x++], 2 < (v -= 3););
|
|
2146
|
+
v && (E[n++] = E[x++], 1 < v && (E[n++] = E[x++]));
|
|
2147
2147
|
}
|
|
2148
2148
|
break;
|
|
2149
2149
|
}
|
|
@@ -2199,7 +2199,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
2199
2199
|
r.inflateReset = p, r.inflateReset2 = f, r.inflateResetKeep = d, r.inflateInit = function(e) {
|
|
2200
2200
|
return h(e, 15);
|
|
2201
2201
|
}, r.inflateInit2 = h, r.inflate = function(e, t) {
|
|
2202
|
-
var r, u, d, p, f, h, m, g, w, y, x,
|
|
2202
|
+
var r, u, d, p, f, h, m, g, w, y, x, S, E, N, k, T, _, I, C, A, R, D, $, P, F = 0, O = new n.Buf8(4), M = [
|
|
2203
2203
|
16,
|
|
2204
2204
|
17,
|
|
2205
2205
|
18,
|
|
@@ -2233,7 +2233,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
2233
2233
|
h--, g += u[p++] << w, w += 8;
|
|
2234
2234
|
}
|
|
2235
2235
|
if (2 & r.wrap && 35615 === g) {
|
|
2236
|
-
|
|
2236
|
+
O[r.check = 0] = 255 & g, O[1] = g >>> 8 & 255, r.check = i(r.check, O, 2, 0), w = g = 0, r.mode = 2;
|
|
2237
2237
|
break;
|
|
2238
2238
|
}
|
|
2239
2239
|
if (r.flags = 0, r.head && (r.head.done = !1), !(1 & r.wrap) || (((255 & g) << 8) + (g >> 8)) % 31) {
|
|
@@ -2264,43 +2264,43 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
2264
2264
|
e.msg = "unknown header flags set", r.mode = 30;
|
|
2265
2265
|
break;
|
|
2266
2266
|
}
|
|
2267
|
-
r.head && (r.head.text = g >> 8 & 1), 512 & r.flags && (
|
|
2267
|
+
r.head && (r.head.text = g >> 8 & 1), 512 & r.flags && (O[0] = 255 & g, O[1] = g >>> 8 & 255, r.check = i(r.check, O, 2, 0)), w = g = 0, r.mode = 3;
|
|
2268
2268
|
case 3:
|
|
2269
2269
|
for (; w < 32;) {
|
|
2270
2270
|
if (0 === h) break e;
|
|
2271
2271
|
h--, g += u[p++] << w, w += 8;
|
|
2272
2272
|
}
|
|
2273
|
-
r.head && (r.head.time = g), 512 & r.flags && (
|
|
2273
|
+
r.head && (r.head.time = g), 512 & r.flags && (O[0] = 255 & g, O[1] = g >>> 8 & 255, O[2] = g >>> 16 & 255, O[3] = g >>> 24 & 255, r.check = i(r.check, O, 4, 0)), w = g = 0, r.mode = 4;
|
|
2274
2274
|
case 4:
|
|
2275
2275
|
for (; w < 16;) {
|
|
2276
2276
|
if (0 === h) break e;
|
|
2277
2277
|
h--, g += u[p++] << w, w += 8;
|
|
2278
2278
|
}
|
|
2279
|
-
r.head && (r.head.xflags = 255 & g, r.head.os = g >> 8), 512 & r.flags && (
|
|
2279
|
+
r.head && (r.head.xflags = 255 & g, r.head.os = g >> 8), 512 & r.flags && (O[0] = 255 & g, O[1] = g >>> 8 & 255, r.check = i(r.check, O, 2, 0)), w = g = 0, r.mode = 5;
|
|
2280
2280
|
case 5:
|
|
2281
2281
|
if (1024 & r.flags) {
|
|
2282
2282
|
for (; w < 16;) {
|
|
2283
2283
|
if (0 === h) break e;
|
|
2284
2284
|
h--, g += u[p++] << w, w += 8;
|
|
2285
2285
|
}
|
|
2286
|
-
r.length = g, r.head && (r.head.extra_len = g), 512 & r.flags && (
|
|
2286
|
+
r.length = g, r.head && (r.head.extra_len = g), 512 & r.flags && (O[0] = 255 & g, O[1] = g >>> 8 & 255, r.check = i(r.check, O, 2, 0)), w = g = 0;
|
|
2287
2287
|
} else r.head && (r.head.extra = null);
|
|
2288
2288
|
r.mode = 6;
|
|
2289
2289
|
case 6:
|
|
2290
|
-
if (1024 & r.flags && (h < (
|
|
2290
|
+
if (1024 & r.flags && (h < (S = r.length) && (S = h), S && (r.head && (R = r.head.extra_len - r.length, r.head.extra || (r.head.extra = new Array(r.head.extra_len)), n.arraySet(r.head.extra, u, p, S, R)), 512 & r.flags && (r.check = i(r.check, u, S, p)), h -= S, p += S, r.length -= S), r.length)) break e;
|
|
2291
2291
|
r.length = 0, r.mode = 7;
|
|
2292
2292
|
case 7:
|
|
2293
2293
|
if (2048 & r.flags) {
|
|
2294
2294
|
if (0 === h) break e;
|
|
2295
|
-
for (
|
|
2296
|
-
if (512 & r.flags && (r.check = i(r.check, u,
|
|
2295
|
+
for (S = 0; R = u[p + S++], r.head && R && r.length < 65536 && (r.head.name += String.fromCharCode(R)), R && S < h;);
|
|
2296
|
+
if (512 & r.flags && (r.check = i(r.check, u, S, p)), h -= S, p += S, R) break e;
|
|
2297
2297
|
} else r.head && (r.head.name = null);
|
|
2298
2298
|
r.length = 0, r.mode = 8;
|
|
2299
2299
|
case 8:
|
|
2300
2300
|
if (4096 & r.flags) {
|
|
2301
2301
|
if (0 === h) break e;
|
|
2302
|
-
for (
|
|
2303
|
-
if (512 & r.flags && (r.check = i(r.check, u,
|
|
2302
|
+
for (S = 0; R = u[p + S++], r.head && R && r.length < 65536 && (r.head.comment += String.fromCharCode(R)), R && S < h;);
|
|
2303
|
+
if (512 & r.flags && (r.check = i(r.check, u, S, p)), h -= S, p += S, R) break e;
|
|
2304
2304
|
} else r.head && (r.head.comment = null);
|
|
2305
2305
|
r.mode = 9;
|
|
2306
2306
|
case 9:
|
|
@@ -2363,9 +2363,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
2363
2363
|
if (r.length = 65535 & g, w = g = 0, r.mode = 15, 6 === t) break e;
|
|
2364
2364
|
case 15: r.mode = 16;
|
|
2365
2365
|
case 16:
|
|
2366
|
-
if (
|
|
2367
|
-
if (h <
|
|
2368
|
-
n.arraySet(d, u, p,
|
|
2366
|
+
if (S = r.length) {
|
|
2367
|
+
if (h < S && (S = h), m < S && (S = m), 0 === S) break e;
|
|
2368
|
+
n.arraySet(d, u, p, S, f), h -= S, p += S, m -= S, f += S, r.length -= S;
|
|
2369
2369
|
break;
|
|
2370
2370
|
}
|
|
2371
2371
|
r.mode = 12;
|
|
@@ -2386,9 +2386,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
2386
2386
|
if (0 === h) break e;
|
|
2387
2387
|
h--, g += u[p++] << w, w += 8;
|
|
2388
2388
|
}
|
|
2389
|
-
r.lens[
|
|
2389
|
+
r.lens[M[r.have++]] = 7 & g, g >>>= 3, w -= 3;
|
|
2390
2390
|
}
|
|
2391
|
-
for (; r.have < 19;) r.lens[
|
|
2391
|
+
for (; r.have < 19;) r.lens[M[r.have++]] = 0;
|
|
2392
2392
|
if (r.lencode = r.lendyn, r.lenbits = 7, $ = { bits: r.lenbits }, D = s(0, r.lens, 0, 19, r.lencode, 0, r.work, $), r.lenbits = $.bits, D) {
|
|
2393
2393
|
e.msg = "invalid code lengths set", r.mode = 30;
|
|
2394
2394
|
break;
|
|
@@ -2411,25 +2411,25 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
2411
2411
|
e.msg = "invalid bit length repeat", r.mode = 30;
|
|
2412
2412
|
break;
|
|
2413
2413
|
}
|
|
2414
|
-
R = r.lens[r.have - 1],
|
|
2414
|
+
R = r.lens[r.have - 1], S = 3 + (3 & g), g >>>= 2, w -= 2;
|
|
2415
2415
|
} else if (17 === _) {
|
|
2416
2416
|
for (P = k + 3; w < P;) {
|
|
2417
2417
|
if (0 === h) break e;
|
|
2418
2418
|
h--, g += u[p++] << w, w += 8;
|
|
2419
2419
|
}
|
|
2420
|
-
w -= k, R = 0,
|
|
2420
|
+
w -= k, R = 0, S = 3 + (7 & (g >>>= k)), g >>>= 3, w -= 3;
|
|
2421
2421
|
} else {
|
|
2422
2422
|
for (P = k + 7; w < P;) {
|
|
2423
2423
|
if (0 === h) break e;
|
|
2424
2424
|
h--, g += u[p++] << w, w += 8;
|
|
2425
2425
|
}
|
|
2426
|
-
w -= k, R = 0,
|
|
2426
|
+
w -= k, R = 0, S = 11 + (127 & (g >>>= k)), g >>>= 7, w -= 7;
|
|
2427
2427
|
}
|
|
2428
|
-
if (r.have +
|
|
2428
|
+
if (r.have + S > r.nlen + r.ndist) {
|
|
2429
2429
|
e.msg = "invalid bit length repeat", r.mode = 30;
|
|
2430
2430
|
break;
|
|
2431
2431
|
}
|
|
2432
|
-
for (;
|
|
2432
|
+
for (; S--;) r.lens[r.have++] = R;
|
|
2433
2433
|
}
|
|
2434
2434
|
}
|
|
2435
2435
|
if (30 === r.mode) break;
|
|
@@ -2457,7 +2457,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
2457
2457
|
h--, g += u[p++] << w, w += 8;
|
|
2458
2458
|
}
|
|
2459
2459
|
if (T && !(240 & T)) {
|
|
2460
|
-
for (I = k,
|
|
2460
|
+
for (I = k, C = T, A = _; T = (F = r.lencode[A + ((g & (1 << I + C) - 1) >> I)]) >>> 16 & 255, _ = 65535 & F, !(I + (k = F >>> 24) <= w);) {
|
|
2461
2461
|
if (0 === h) break e;
|
|
2462
2462
|
h--, g += u[p++] << w, w += 8;
|
|
2463
2463
|
}
|
|
@@ -2491,7 +2491,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
2491
2491
|
h--, g += u[p++] << w, w += 8;
|
|
2492
2492
|
}
|
|
2493
2493
|
if (!(240 & T)) {
|
|
2494
|
-
for (I = k,
|
|
2494
|
+
for (I = k, C = T, A = _; T = (F = r.distcode[A + ((g & (1 << I + C) - 1) >> I)]) >>> 16 & 255, _ = 65535 & F, !(I + (k = F >>> 24) <= w);) {
|
|
2495
2495
|
if (0 === h) break e;
|
|
2496
2496
|
h--, g += u[p++] << w, w += 8;
|
|
2497
2497
|
}
|
|
@@ -2517,14 +2517,14 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
2517
2517
|
r.mode = 25;
|
|
2518
2518
|
case 25:
|
|
2519
2519
|
if (0 === m) break e;
|
|
2520
|
-
if (
|
|
2521
|
-
if ((
|
|
2520
|
+
if (S = x - m, r.offset > S) {
|
|
2521
|
+
if ((S = r.offset - S) > r.whave && r.sane) {
|
|
2522
2522
|
e.msg = "invalid distance too far back", r.mode = 30;
|
|
2523
2523
|
break;
|
|
2524
2524
|
}
|
|
2525
|
-
|
|
2526
|
-
} else N = d,
|
|
2527
|
-
for (m <
|
|
2525
|
+
E = S > r.wnext ? (S -= r.wnext, r.wsize - S) : r.wnext - S, S > r.length && (S = r.length), N = r.window;
|
|
2526
|
+
} else N = d, E = f - r.offset, S = r.length;
|
|
2527
|
+
for (m < S && (S = m), m -= S, r.length -= S; d[f++] = N[E++], --S;);
|
|
2528
2528
|
0 === r.length && (r.mode = 21);
|
|
2529
2529
|
break;
|
|
2530
2530
|
case 26:
|
|
@@ -2719,31 +2719,31 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
2719
2719
|
64
|
|
2720
2720
|
];
|
|
2721
2721
|
t.exports = function(e, t, r, l, c, u, d, p) {
|
|
2722
|
-
var f, h, m, g, w, b, v, y, x,
|
|
2723
|
-
for (
|
|
2722
|
+
var f, h, m, g, w, b, v, y, x, S = p.bits, E = 0, N = 0, k = 0, T = 0, _ = 0, I = 0, C = 0, A = 0, R = 0, D = 0, $ = null, P = 0, F = new n.Buf16(16), O = new n.Buf16(16), M = null, L = 0;
|
|
2723
|
+
for (E = 0; E <= 15; E++) F[E] = 0;
|
|
2724
2724
|
for (N = 0; N < l; N++) F[t[r + N]]++;
|
|
2725
|
-
for (_ =
|
|
2725
|
+
for (_ = S, T = 15; 1 <= T && 0 === F[T]; T--);
|
|
2726
2726
|
if (T < _ && (_ = T), 0 === T) return c[u++] = 20971520, c[u++] = 20971520, p.bits = 1, 0;
|
|
2727
2727
|
for (k = 1; k < T && 0 === F[k]; k++);
|
|
2728
|
-
for (_ < k && (_ = k),
|
|
2729
|
-
if (0 <
|
|
2730
|
-
for (
|
|
2731
|
-
for (N = 0; N < l; N++) 0 !== t[r + N] && (d[
|
|
2732
|
-
if (b = 0 === e ? ($ =
|
|
2728
|
+
for (_ < k && (_ = k), E = A = 1; E <= 15; E++) if (A <<= 1, (A -= F[E]) < 0) return -1;
|
|
2729
|
+
if (0 < A && (0 === e || 1 !== T)) return -1;
|
|
2730
|
+
for (O[1] = 0, E = 1; E < 15; E++) O[E + 1] = O[E] + F[E];
|
|
2731
|
+
for (N = 0; N < l; N++) 0 !== t[r + N] && (d[O[t[r + N]]++] = N);
|
|
2732
|
+
if (b = 0 === e ? ($ = M = d, 19) : 1 === e ? ($ = o, P -= 257, M = i, L -= 257, 256) : ($ = a, M = s, -1), E = k, w = u, C = N = D = 0, m = -1, g = (R = 1 << (I = _)) - 1, 1 === e && 852 < R || 2 === e && 592 < R) return 1;
|
|
2733
2733
|
for (;;) {
|
|
2734
|
-
for (v =
|
|
2735
|
-
for (f = 1 <<
|
|
2736
|
-
if (0 !== f ? (D &= f - 1, D += f) : D = 0, N++, 0 == --F[
|
|
2737
|
-
if (
|
|
2738
|
-
|
|
2734
|
+
for (v = E - C, x = d[N] < b ? (y = 0, d[N]) : d[N] > b ? (y = M[L + d[N]], $[P + d[N]]) : (y = 96, 0), f = 1 << E - C, k = h = 1 << I; c[w + (D >> C) + (h -= f)] = v << 24 | y << 16 | x, 0 !== h;);
|
|
2735
|
+
for (f = 1 << E - 1; D & f;) f >>= 1;
|
|
2736
|
+
if (0 !== f ? (D &= f - 1, D += f) : D = 0, N++, 0 == --F[E]) {
|
|
2737
|
+
if (E === T) break;
|
|
2738
|
+
E = t[r + d[N]];
|
|
2739
2739
|
}
|
|
2740
|
-
if (_ <
|
|
2741
|
-
for (0 ===
|
|
2740
|
+
if (_ < E && (D & g) !== m) {
|
|
2741
|
+
for (0 === C && (C = _), w += k, A = 1 << (I = E - C); I + C < T && !((A -= F[I + C]) <= 0);) I++, A <<= 1;
|
|
2742
2742
|
if (R += 1 << I, 1 === e && 852 < R || 2 === e && 592 < R) return 1;
|
|
2743
2743
|
c[m = D & g] = _ << 24 | I << 16 | w - u;
|
|
2744
2744
|
}
|
|
2745
2745
|
}
|
|
2746
|
-
return 0 !== D && (c[w + D] =
|
|
2746
|
+
return 0 !== D && (c[w + D] = E - C << 24 | 4194304), p.bits = _, 0;
|
|
2747
2747
|
};
|
|
2748
2748
|
}, { "../utils/common": 41 }],
|
|
2749
2749
|
51: [function(e, t, r) {
|
|
@@ -2878,10 +2878,10 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
2878
2878
|
var w = new Array(29);
|
|
2879
2879
|
o(w);
|
|
2880
2880
|
var b, v, y, x = new Array(s);
|
|
2881
|
-
function
|
|
2881
|
+
function S(e, t, r, n, o) {
|
|
2882
2882
|
this.static_tree = e, this.extra_bits = t, this.extra_base = r, this.elems = n, this.max_length = o, this.has_stree = e && e.length;
|
|
2883
2883
|
}
|
|
2884
|
-
function
|
|
2884
|
+
function E(e, t) {
|
|
2885
2885
|
this.dyn_tree = e, this.max_code = 0, this.stat_desc = t;
|
|
2886
2886
|
}
|
|
2887
2887
|
function N(e) {
|
|
@@ -2900,7 +2900,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
2900
2900
|
for (var r = 0; r |= 1 & e, e >>>= 1, r <<= 1, 0 < --t;);
|
|
2901
2901
|
return r >>> 1;
|
|
2902
2902
|
}
|
|
2903
|
-
function
|
|
2903
|
+
function C(e, t, r) {
|
|
2904
2904
|
var n, o, i = new Array(16), a = 0;
|
|
2905
2905
|
for (n = 1; n <= l; n++) i[n] = a = a + r[n - 1] << 1;
|
|
2906
2906
|
for (o = 0; o <= t; o++) {
|
|
@@ -2908,7 +2908,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
2908
2908
|
0 !== s && (e[2 * o] = I(i[s]++, s));
|
|
2909
2909
|
}
|
|
2910
2910
|
}
|
|
2911
|
-
function
|
|
2911
|
+
function A(e) {
|
|
2912
2912
|
for (var t = 0; t < a; t++) e.dyn_ltree[2 * t] = 0;
|
|
2913
2913
|
for (t = 0; t < s; t++) e.dyn_dtree[2 * t] = 0;
|
|
2914
2914
|
for (t = 0; t < 19; t++) e.bl_tree[2 * t] = 0;
|
|
@@ -2947,13 +2947,13 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
2947
2947
|
} while (0 < g);
|
|
2948
2948
|
for (i = m; 0 !== i; i--) for (n = e.bl_count[i]; 0 !== n;) u < (o = e.heap[--r]) || (c[2 * o + 1] !== i && (e.opt_len += (i - c[2 * o + 1]) * c[2 * o], c[2 * o + 1] = i), n--);
|
|
2949
2949
|
}
|
|
2950
|
-
}(e, t),
|
|
2950
|
+
}(e, t), C(i, u, e.bl_count);
|
|
2951
2951
|
}
|
|
2952
|
-
function
|
|
2952
|
+
function O(e, t, r) {
|
|
2953
2953
|
var n, o, i = -1, a = t[1], s = 0, l = 7, c = 4;
|
|
2954
2954
|
for (0 === a && (l = 138, c = 3), t[2 * (r + 1) + 1] = 65535, n = 0; n <= r; n++) o = a, a = t[2 * (n + 1) + 1], ++s < l && o === a || (s < c ? e.bl_tree[2 * o] += s : 0 !== o ? (o !== i && e.bl_tree[2 * o]++, e.bl_tree[32]++) : s <= 10 ? e.bl_tree[34]++ : e.bl_tree[36]++, i = o, c = (s = 0) === a ? (l = 138, 3) : o === a ? (l = 6, 3) : (l = 7, 4));
|
|
2955
2955
|
}
|
|
2956
|
-
function
|
|
2956
|
+
function M(e, t, r) {
|
|
2957
2957
|
var n, o, i = -1, a = t[1], s = 0, l = 7, c = 4;
|
|
2958
2958
|
for (0 === a && (l = 138, c = 3), n = 0; n <= r; n++) if (o = a, a = t[2 * (n + 1) + 1], !(++s < l && o === a)) {
|
|
2959
2959
|
if (s < c) for (; _(e, o, e.bl_tree), 0 != --s;);
|
|
@@ -2979,9 +2979,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
2979
2979
|
for (; e <= 255;) f[2 * e + 1] = 9, e++, i[9]++;
|
|
2980
2980
|
for (; e <= 279;) f[2 * e + 1] = 7, e++, i[7]++;
|
|
2981
2981
|
for (; e <= 287;) f[2 * e + 1] = 8, e++, i[8]++;
|
|
2982
|
-
for (
|
|
2983
|
-
b = new
|
|
2984
|
-
}(), L = !0), e.l_desc = new
|
|
2982
|
+
for (C(f, 287, i), e = 0; e < s; e++) h[2 * e + 1] = 5, h[2 * e] = I(e, 5);
|
|
2983
|
+
b = new S(f, c, 257, a, l), v = new S(h, u, 0, s, l), y = new S(new Array(0), d, 0, 19, 7);
|
|
2984
|
+
}(), L = !0), e.l_desc = new E(e.dyn_ltree, b), e.d_desc = new E(e.dyn_dtree, v), e.bl_desc = new E(e.bl_tree, y), e.bi_buf = 0, e.bi_valid = 0, A(e);
|
|
2985
2985
|
}, r._tr_stored_block = B, r._tr_flush_block = function(e, t, r, n) {
|
|
2986
2986
|
var o, a, s = 0;
|
|
2987
2987
|
0 < e.level ? (2 === e.strm.data_type && (e.strm.data_type = function(e) {
|
|
@@ -2992,13 +2992,13 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
2992
2992
|
return 0;
|
|
2993
2993
|
}(e)), F(e, e.l_desc), F(e, e.d_desc), s = function(e) {
|
|
2994
2994
|
var t;
|
|
2995
|
-
for (
|
|
2995
|
+
for (O(e, e.dyn_ltree, e.l_desc.max_code), O(e, e.dyn_dtree, e.d_desc.max_code), F(e, e.bl_desc), t = 18; 3 <= t && 0 === e.bl_tree[2 * p[t] + 1]; t--);
|
|
2996
2996
|
return e.opt_len += 3 * (t + 1) + 5 + 5 + 4, t;
|
|
2997
2997
|
}(e), o = e.opt_len + 3 + 7 >>> 3, (a = e.static_len + 3 + 7 >>> 3) <= o && (o = a)) : o = a = r + 5, r + 4 <= o && -1 !== t ? B(e, t, r, n) : 4 === e.strategy || a === o ? (T(e, 2 + (n ? 1 : 0), 3), P(e, f, h)) : (T(e, 4 + (n ? 1 : 0), 3), function(e, t, r, n) {
|
|
2998
2998
|
var o;
|
|
2999
2999
|
for (T(e, t - 257, 5), T(e, r - 1, 5), T(e, n - 4, 4), o = 0; o < n; o++) T(e, e.bl_tree[2 * p[o] + 1], 3);
|
|
3000
|
-
|
|
3001
|
-
}(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, s + 1), P(e, e.dyn_ltree, e.dyn_dtree)),
|
|
3000
|
+
M(e, e.dyn_ltree, t - 1), M(e, e.dyn_dtree, r - 1);
|
|
3001
|
+
}(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, s + 1), P(e, e.dyn_ltree, e.dyn_dtree)), A(e), n && R(e);
|
|
3002
3002
|
}, r._tr_tally = function(e, t, r) {
|
|
3003
3003
|
return e.pending_buf[e.d_buf + 2 * e.last_lit] = t >>> 8 & 255, e.pending_buf[e.d_buf + 2 * e.last_lit + 1] = 255 & t, e.pending_buf[e.l_buf + e.last_lit] = 255 & r, e.last_lit++, 0 === t ? e.dyn_ltree[2 * r]++ : (e.matches++, t--, e.dyn_ltree[2 * (g[r] + i + 1)]++, e.dyn_dtree[2 * N(t)]++), e.last_lit === e.lit_bufsize - 1;
|
|
3004
3004
|
}, r._tr_align = function(e) {
|
|
@@ -3325,8 +3325,8 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
3325
3325
|
r && (s = i("[", n(s), "\\u{10000}-\\u{10FFFF}", "]"));
|
|
3326
3326
|
var l = new RegExp("[^" + n(s) + "]", r ? "u" : ""), c = /[\x20\x09\x0D\x0A]/, u = n(c), d = i(c, "+"), p = i(c, "*"), f = /[:_a-zA-Z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;
|
|
3327
3327
|
r && (f = i("[", n(f), "\\u{10000}-\\u{10FFFF}", "]"));
|
|
3328
|
-
var h = i("[", n(f), n(/[-.0-9\xB7]/), n(/[\u0300-\u036F\u203F-\u2040]/), "]"), m = i(f, h, "*"), g = i("^", m, "$"), w = i(h, "+"), b = a(i("&", m, ";"), "|", a(/&#[0-9]+;|&#x[0-9a-fA-F]+;/)), v = i("%", m, ";"), y = a(i("\"", a(/[^%&"]/, "|", v, "|", b), "*", "\""), "|", i("'", a(/[^%&']/, "|", v, "|", b), "*", "'")), x = a("\"", a(/[^<&"]/, "|", b), "*", "\"", "|", "'", a(/[^<&']/, "|", b), "*", "'"),
|
|
3329
|
-
e.chars = n, e.chars_without = o, e.detectUnicodeSupport = t, e.reg = i, e.regg = a, e.ABOUT_LEGACY_COMPAT =
|
|
3328
|
+
var h = i("[", n(f), n(/[-.0-9\xB7]/), n(/[\u0300-\u036F\u203F-\u2040]/), "]"), m = i(f, h, "*"), g = i("^", m, "$"), w = i(h, "+"), b = a(i("&", m, ";"), "|", a(/&#[0-9]+;|&#x[0-9a-fA-F]+;/)), v = i("%", m, ";"), y = a(i("\"", a(/[^%&"]/, "|", v, "|", b), "*", "\""), "|", i("'", a(/[^%&']/, "|", v, "|", b), "*", "'")), x = a("\"", a(/[^<&"]/, "|", b), "*", "\"", "|", "'", a(/[^<&']/, "|", b), "*", "'"), S = i(o(f, ":"), o(h, ":"), "*"), E = i("^", S, "$"), N = i(S, a(":", S), "?"), k = i("^", N, "$"), T = i("(", N, ")"), _ = a(/"[^"]*"|'[^']*'/), I = i(/^<\?/, "(", m, ")", a(d, "(?!", c, ")(", s, "*?)"), "?", /\?>/), C = /[\x20\x0D\x0Aa-zA-Z0-9-'()+,./:=?;!*#@$_%]/, A = a("\"", C, "*\"", "|", "'", o(C, "'"), "*'"), R = "<!--", D = i(R, a(o(s, "-"), "|", i("-", o(s, "-"))), "*", "-->"), $ = "#PCDATA", P = a("EMPTY", "|", "ANY", "|", a(i(/\(/, p, $, a(p, /\|/, p, N), "*", p, /\)\*/), "|", i(/\(/, p, $, p, /\)/)), "|", i(/\([^>]+\)/, /[?*+]?/)), F = i("<!ELEMENT", d, a(N, "|", v), d, a(P, "|", v), p, ">"), O = i("<!ATTLIST", d, m, a(d, m, d, a(/CDATA|ID|IDREF|IDREFS|ENTITY|ENTITIES|NMTOKEN|NMTOKENS/, "|", a(i("NOTATION", d, /\(/, p, m, a(p, /\|/, p, m), "*", p, /\)/), "|", i(/\(/, p, w, a(p, /\|/, p, w), "*", p, /\)/))), d, a(/#REQUIRED|#IMPLIED/, "|", a(a("#FIXED", d), "?", x))), "*", p, ">"), M = "about:legacy-compat", L = a("\"" + M + "\"", "|", "'" + M + "'"), B = "SYSTEM", U = "PUBLIC", z = a(a(B, d, _), "|", a(U, d, A, d, _)), H = i("^", a(a(B, d, "(?<SystemLiteralOnly>", _, ")"), "|", a(U, d, "(?<PubidLiteral>", A, ")", d, "(?<SystemLiteral>", _, ")"))), j = i("^", A, "$"), q = i("^", _, "$"), W = a(y, "|", a(z, a(d, "NDATA", d, m), "?")), X = "<!ENTITY", G = a(i(X, d, m, d, W, p, ">"), "|", i(X, d, "%", d, m, d, a(y, "|", z), p, ">")), V = i("<!NOTATION", d, m, d, a(z, "|", i(U, d, A)), p, ">"), Z = i(p, "=", p), Y = /1[.]\d+/, Q = i(d, "version", Z, a("'", Y, "'", "|", "\"", Y, "\"")), K = /[A-Za-z][-A-Za-z0-9._]*/, J = i(/^<\?xml/, Q, a(d, "encoding", Z, a("\"", K, "\"", "|", "'", K, "'")), "?", a(d, "standalone", Z, a("'", a("yes", "|", "no"), "'", "|", "\"", a("yes", "|", "no"), "\"")), "?", p, /\?>/), ee = i(/<!\[CDATA\[/, i(s, "*?", /\]\]>/));
|
|
3329
|
+
e.chars = n, e.chars_without = o, e.detectUnicodeSupport = t, e.reg = i, e.regg = a, e.ABOUT_LEGACY_COMPAT = M, e.ABOUT_LEGACY_COMPAT_SystemLiteral = L, e.AttlistDecl = O, e.CDATA_START = "<![CDATA[", e.CDATA_END = "]]>", e.CDSect = ee, e.Char = s, e.Comment = D, e.COMMENT_START = R, e.COMMENT_END = "-->", e.DOCTYPE_DECL_START = "<!DOCTYPE", e.elementdecl = F, e.EntityDecl = G, e.EntityValue = y, e.ExternalID = z, e.ExternalID_match = H, e.Name = m, e.Name_exact = g, e.NCName_exact = E, e.NotationDecl = V, e.Reference = b, e.PEReference = v, e.PI = I, e.PUBLIC = U, e.PubidLiteral = A, e.PubidLiteral_match = j, e.QName = N, e.QName_exact = k, e.QName_group = T, e.S = d, e.SChar_s = u, e.S_OPT = p, e.SYSTEM = B, e.SystemLiteral = _, e.SystemLiteral_match = q, e.InvalidChar = l, e.UNICODE_REPLACEMENT_CHARACTER = "�", e.UNICODE_SUPPORT = r, e.XMLDecl = J;
|
|
3330
3330
|
}), p = a((e) => {
|
|
3331
3331
|
var t = c(), r = t.find, n = t.hasDefaultHTMLNamespace, o = t.hasOwn, i = t.isHTMLMimeType, a = t.isHTMLRawTextElement, s = t.isHTMLVoidElement, l = t.MIME_TYPE, p = t.NAMESPACE, f = Symbol(), h = u(), m = h.DOMException, g = h.DOMExceptionName, w = d();
|
|
3332
3332
|
function b(e) {
|
|
@@ -3345,11 +3345,11 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
3345
3345
|
}(e);
|
|
3346
3346
|
return Object.keys(t.reduce(y, {}));
|
|
3347
3347
|
}
|
|
3348
|
-
function
|
|
3348
|
+
function S(e) {
|
|
3349
3349
|
if (!w.QName_exact.test(e)) throw new m(m.INVALID_CHARACTER_ERR, "invalid character in qualified name \"" + e + "\"");
|
|
3350
3350
|
}
|
|
3351
|
-
function
|
|
3352
|
-
|
|
3351
|
+
function E(e, r) {
|
|
3352
|
+
S(r), e = e || null;
|
|
3353
3353
|
var n = null, o = r;
|
|
3354
3354
|
if (r.indexOf(":") >= 0) {
|
|
3355
3355
|
var i = r.split(":");
|
|
@@ -3376,7 +3376,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
3376
3376
|
}
|
|
3377
3377
|
r.constructor != e && ("function" != typeof e && console.error("unknown Class:" + e), r.constructor = e);
|
|
3378
3378
|
}
|
|
3379
|
-
var T = {}, _ = T.ELEMENT_NODE = 1, I = T.ATTRIBUTE_NODE = 2,
|
|
3379
|
+
var T = {}, _ = T.ELEMENT_NODE = 1, I = T.ATTRIBUTE_NODE = 2, C = T.TEXT_NODE = 3, A = T.CDATA_SECTION_NODE = 4, R = T.ENTITY_REFERENCE_NODE = 5, D = T.ENTITY_NODE = 6, $ = T.PROCESSING_INSTRUCTION_NODE = 7, P = T.COMMENT_NODE = 8, F = T.DOCUMENT_NODE = 9, O = T.DOCUMENT_TYPE_NODE = 10, M = T.DOCUMENT_FRAGMENT_NODE = 11, L = T.NOTATION_NODE = 12, B = t.freeze({
|
|
3380
3380
|
DOCUMENT_POSITION_DISCONNECTED: 1,
|
|
3381
3381
|
DOCUMENT_POSITION_PRECEDING: 2,
|
|
3382
3382
|
DOCUMENT_POSITION_FOLLOWING: 4,
|
|
@@ -3411,20 +3411,20 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
3411
3411
|
function W() {
|
|
3412
3412
|
this._nsIndex = Object.create(null), this._noNsIndex = Object.create(null);
|
|
3413
3413
|
}
|
|
3414
|
-
function
|
|
3414
|
+
function X(e, t) {
|
|
3415
3415
|
for (var r = 0; r < e.length;) {
|
|
3416
3416
|
if (e[r] === t) return r;
|
|
3417
3417
|
r++;
|
|
3418
3418
|
}
|
|
3419
3419
|
}
|
|
3420
|
-
function
|
|
3420
|
+
function G(e, t, r) {
|
|
3421
3421
|
if (!t) return e._noNsIndex;
|
|
3422
3422
|
var n = e._nsIndex[t];
|
|
3423
3423
|
return !n && r && (n = e._nsIndex[t] = Object.create(null)), n;
|
|
3424
3424
|
}
|
|
3425
3425
|
function V(e, t, r, n) {
|
|
3426
|
-
if (n ? t[
|
|
3427
|
-
|
|
3426
|
+
if (n ? t[X(t, n)] = r : (t[t.length] = r, t.length++), function(e, t) {
|
|
3427
|
+
G(e, t.namespaceURI, !0)[t.localName] = t;
|
|
3428
3428
|
}(t, r), e) {
|
|
3429
3429
|
r.ownerElement = e;
|
|
3430
3430
|
var o = e.ownerDocument;
|
|
@@ -3434,11 +3434,11 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
3434
3434
|
}
|
|
3435
3435
|
}
|
|
3436
3436
|
function Z(e, t, r) {
|
|
3437
|
-
var n =
|
|
3437
|
+
var n = X(t, r);
|
|
3438
3438
|
if (n >= 0) {
|
|
3439
3439
|
for (var o = t.length - 1; n <= o;) t[n] = t[++n];
|
|
3440
3440
|
if (t.length = o, function(e, t) {
|
|
3441
|
-
var r =
|
|
3441
|
+
var r = G(e, t.namespaceURI, !1);
|
|
3442
3442
|
r && delete r[t.localName];
|
|
3443
3443
|
}(t, r), e) {
|
|
3444
3444
|
var i = e.ownerDocument;
|
|
@@ -3571,7 +3571,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
3571
3571
|
function fe(e, t, r, n) {
|
|
3572
3572
|
ue(e, t, r), e.nodeType === Q.DOCUMENT_NODE && (n || de)(e, t, r);
|
|
3573
3573
|
var o = t.parentNode;
|
|
3574
|
-
if (o && o.removeChild(t), t.nodeType ===
|
|
3574
|
+
if (o && o.removeChild(t), t.nodeType === M) {
|
|
3575
3575
|
var i = t.firstChild;
|
|
3576
3576
|
if (null == i) return t;
|
|
3577
3577
|
var a = t.lastChild;
|
|
@@ -3581,7 +3581,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
3581
3581
|
do
|
|
3582
3582
|
i.parentNode = e;
|
|
3583
3583
|
while (i !== a && (i = i.nextSibling));
|
|
3584
|
-
return ne(e.ownerDocument || e, e, t), t.nodeType ==
|
|
3584
|
+
return ne(e.ownerDocument || e, e, t), t.nodeType == M && (t.firstChild = t.lastChild = null), t;
|
|
3585
3585
|
}
|
|
3586
3586
|
function he(e) {
|
|
3587
3587
|
b(e), this._nsMap = Object.create(null);
|
|
@@ -3607,10 +3607,10 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
3607
3607
|
function xe(e) {
|
|
3608
3608
|
b(e);
|
|
3609
3609
|
}
|
|
3610
|
-
function
|
|
3610
|
+
function Se(e) {
|
|
3611
3611
|
b(e);
|
|
3612
3612
|
}
|
|
3613
|
-
function
|
|
3613
|
+
function Ee(e) {
|
|
3614
3614
|
b(e);
|
|
3615
3615
|
}
|
|
3616
3616
|
function Ne(e) {
|
|
@@ -3639,7 +3639,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
3639
3639
|
namespace: i,
|
|
3640
3640
|
prefix: null
|
|
3641
3641
|
}];
|
|
3642
|
-
return
|
|
3642
|
+
return Ae(this, r, a, t), r.join("");
|
|
3643
3643
|
}
|
|
3644
3644
|
function Ie(e, t, r) {
|
|
3645
3645
|
var n = e.prefix || "", o = e.namespaceURI;
|
|
@@ -3651,11 +3651,11 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
3651
3651
|
}
|
|
3652
3652
|
return !0;
|
|
3653
3653
|
}
|
|
3654
|
-
function
|
|
3654
|
+
function Ce(e, t, r, n) {
|
|
3655
3655
|
if (n && !w.QName_exact.test(t)) throw new m("The attribute name \"" + t + "\" is not a valid XML QName", g.InvalidStateError);
|
|
3656
3656
|
e.push(" ", t, "=\"", r.replace(/[<>&"\t\n\r]/g, K), "\"");
|
|
3657
3657
|
}
|
|
3658
|
-
function
|
|
3658
|
+
function Ae(e, t, r, n) {
|
|
3659
3659
|
r || (r = []);
|
|
3660
3660
|
var o = n.nodeFilter, i = n.requireWellFormed, l = n.splitCDATASections, c = "html" === (e.nodeType === F ? e : e.ownerDocument).type;
|
|
3661
3661
|
ee(e, { ns: r }, {
|
|
@@ -3674,44 +3674,44 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
3674
3674
|
break;
|
|
3675
3675
|
}
|
|
3676
3676
|
if (!v) {
|
|
3677
|
-
for (var x = u.length - 1; x >= 0; x--) if ("" === (
|
|
3678
|
-
v =
|
|
3677
|
+
for (var x = u.length - 1; x >= 0; x--) if ("" === (S = u[x]).prefix && S.namespace === e.namespaceURI) {
|
|
3678
|
+
v = S.namespace;
|
|
3679
3679
|
break;
|
|
3680
3680
|
}
|
|
3681
3681
|
}
|
|
3682
3682
|
if (v !== e.namespaceURI) for (x = u.length - 1; x >= 0; x--) {
|
|
3683
|
-
var
|
|
3684
|
-
if ((
|
|
3685
|
-
|
|
3683
|
+
var S;
|
|
3684
|
+
if ((S = u[x]).namespace === e.namespaceURI) {
|
|
3685
|
+
S.prefix && (b = S.prefix + ":" + h);
|
|
3686
3686
|
break;
|
|
3687
3687
|
}
|
|
3688
3688
|
}
|
|
3689
3689
|
}
|
|
3690
3690
|
if (i && !w.QName_exact.test(b)) throw new m("The element name \"" + b + "\" is not a valid XML QName", g.InvalidStateError);
|
|
3691
3691
|
t.push("<", b);
|
|
3692
|
-
for (var
|
|
3692
|
+
for (var E = u.slice(), N = 0; N < f; N++) "xmlns" == (k = d.item(N)).prefix ? E.push({
|
|
3693
3693
|
prefix: k.localName,
|
|
3694
3694
|
namespace: k.value
|
|
3695
|
-
}) : "xmlns" == k.nodeName &&
|
|
3695
|
+
}) : "xmlns" == k.nodeName && E.push({
|
|
3696
3696
|
prefix: "",
|
|
3697
3697
|
namespace: k.value
|
|
3698
3698
|
});
|
|
3699
3699
|
for (N = 0; N < f; N++) {
|
|
3700
3700
|
var k;
|
|
3701
|
-
if (Ie(k = d.item(N), 0,
|
|
3701
|
+
if (Ie(k = d.item(N), 0, E)) {
|
|
3702
3702
|
var T = k.prefix || "", D = k.namespaceURI;
|
|
3703
|
-
|
|
3703
|
+
Ce(t, T ? "xmlns:" + T : "xmlns", D, i), E.push({
|
|
3704
3704
|
prefix: T,
|
|
3705
3705
|
namespace: D
|
|
3706
3706
|
});
|
|
3707
3707
|
}
|
|
3708
3708
|
var L = o ? o(k) : k;
|
|
3709
|
-
L && ("string" == typeof L ? t.push(L) :
|
|
3709
|
+
L && ("string" == typeof L ? t.push(L) : Ce(t, L.name, L.value, i));
|
|
3710
3710
|
}
|
|
3711
|
-
if (h === b && Ie(e, 0,
|
|
3711
|
+
if (h === b && Ie(e, 0, E)) {
|
|
3712
3712
|
var B = e.prefix || "";
|
|
3713
3713
|
D = e.namespaceURI;
|
|
3714
|
-
|
|
3714
|
+
Ce(t, B ? "xmlns:" + B : "xmlns", D, i), E.push({
|
|
3715
3715
|
prefix: B,
|
|
3716
3716
|
namespace: D
|
|
3717
3717
|
});
|
|
@@ -3719,22 +3719,22 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
3719
3719
|
var U = !e.firstChild;
|
|
3720
3720
|
if (U && (c || e.namespaceURI === p.HTML) && (U = s(h)), U) return t.push("/>"), null;
|
|
3721
3721
|
if (t.push(">"), c && a(h)) {
|
|
3722
|
-
for (var z = e.firstChild; z;) z.data ? t.push(z.data) :
|
|
3722
|
+
for (var z = e.firstChild; z;) z.data ? t.push(z.data) : Ae(z, t, E.slice(), n), z = z.nextSibling;
|
|
3723
3723
|
return t.push("</", b, ">"), null;
|
|
3724
3724
|
}
|
|
3725
3725
|
return {
|
|
3726
|
-
ns:
|
|
3726
|
+
ns: E,
|
|
3727
3727
|
tag: b
|
|
3728
3728
|
};
|
|
3729
3729
|
case F:
|
|
3730
|
-
case
|
|
3730
|
+
case M:
|
|
3731
3731
|
if (i && e.nodeType === F && null == e.documentElement) throw new m("The Document has no documentElement", g.InvalidStateError);
|
|
3732
3732
|
return { ns: u };
|
|
3733
|
-
case I: return
|
|
3734
|
-
case
|
|
3733
|
+
case I: return Ce(t, e.name, e.value, i), null;
|
|
3734
|
+
case C:
|
|
3735
3735
|
if (i && w.InvalidChar.test(e.data)) throw new m("The Text node data contains characters outside the XML Char production", g.InvalidStateError);
|
|
3736
3736
|
return t.push(e.data.replace(/[<&>]/g, K)), null;
|
|
3737
|
-
case
|
|
3737
|
+
case A:
|
|
3738
3738
|
if (i && -1 !== e.data.indexOf("]]>")) throw new m("The CDATASection data contains \"]]>\"", g.InvalidStateError);
|
|
3739
3739
|
return l ? t.push(w.CDATA_START, e.data.replace(/]]>/g, "]]]]><![CDATA[>"), w.CDATA_END) : t.push(w.CDATA_START, e.data, w.CDATA_END), null;
|
|
3740
3740
|
case P:
|
|
@@ -3743,7 +3743,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
3743
3743
|
if (-1 !== e.data.indexOf("--") || "-" === e.data[e.data.length - 1]) throw new m("The comment node data contains \"--\" or ends with \"-\"", g.InvalidStateError);
|
|
3744
3744
|
}
|
|
3745
3745
|
return t.push(w.COMMENT_START, e.data, w.COMMENT_END), null;
|
|
3746
|
-
case
|
|
3746
|
+
case O:
|
|
3747
3747
|
var H = e.publicId, j = e.systemId;
|
|
3748
3748
|
if (i) {
|
|
3749
3749
|
if (!w.Name_exact.test(e.name)) throw new m("The doctype name \"" + e.name + "\" is not a valid XML Name", g.InvalidStateError);
|
|
@@ -3817,7 +3817,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
3817
3817
|
splitCDATASections: !0,
|
|
3818
3818
|
nodeFilter: null
|
|
3819
3819
|
};
|
|
3820
|
-
for (var r = [], n = 0; n < this.length; n++)
|
|
3820
|
+
for (var r = [], n = 0; n < this.length; n++) Ae(this[n], r, null, t);
|
|
3821
3821
|
return r.join("");
|
|
3822
3822
|
},
|
|
3823
3823
|
filter: function(e) {
|
|
@@ -3856,7 +3856,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
3856
3856
|
setNamedItem: function(e) {
|
|
3857
3857
|
var t = e.ownerElement;
|
|
3858
3858
|
if (t && t !== this._ownerElement) throw new m(m.INUSE_ATTRIBUTE_ERR);
|
|
3859
|
-
var r, n, o, i, a = (r = this, n = e.namespaceURI, o = e.localName, (i =
|
|
3859
|
+
var r, n, o, i, a = (r = this, n = e.namespaceURI, o = e.localName, (i = G(r, n, !1)) && i[o] || null);
|
|
3860
3860
|
return a === e ? e : (V(this._ownerElement, this, e, a), a);
|
|
3861
3861
|
},
|
|
3862
3862
|
setNamedItemNS: function(e) {
|
|
@@ -3909,7 +3909,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
3909
3909
|
return o;
|
|
3910
3910
|
},
|
|
3911
3911
|
createDocumentType: function(e, t, r, n) {
|
|
3912
|
-
|
|
3912
|
+
S(e);
|
|
3913
3913
|
var o = new ye(f);
|
|
3914
3914
|
return o.name = e, o.nodeName = e, o.publicId = t || "", o.systemId = r || "", o.internalSubset = n || "", o.childNodes = new H(), o;
|
|
3915
3915
|
},
|
|
@@ -4037,8 +4037,8 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
4037
4037
|
ee(this, null, { enter: function(e) {
|
|
4038
4038
|
for (var t = e.firstChild; t;) {
|
|
4039
4039
|
var r = t.nextSibling;
|
|
4040
|
-
if (null !== r && r.nodeType ===
|
|
4041
|
-
for (var n = [], o = r; null !== o && o.nodeType ===
|
|
4040
|
+
if (null !== r && r.nodeType === C && t.nodeType === C) {
|
|
4041
|
+
for (var n = [], o = r; null !== o && o.nodeType === C;) n.push(o.data), o = o.nextSibling;
|
|
4042
4042
|
for (var i = t.nextSibling; i !== o;) {
|
|
4043
4043
|
var a = i.nextSibling;
|
|
4044
4044
|
i.parentNode = null, i.previousSibling = null, i.nextSibling = null, i = a;
|
|
@@ -4111,7 +4111,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
4111
4111
|
documentElement: null,
|
|
4112
4112
|
_inc: 1,
|
|
4113
4113
|
insertBefore: function(e, t) {
|
|
4114
|
-
if (e.nodeType ===
|
|
4114
|
+
if (e.nodeType === M) {
|
|
4115
4115
|
for (var r = e.firstChild; r;) {
|
|
4116
4116
|
var n = r.nextSibling;
|
|
4117
4117
|
this.insertBefore(r, t), r = n;
|
|
@@ -4178,15 +4178,15 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
4178
4178
|
createEntityReference: function(e) {
|
|
4179
4179
|
if (!w.Name_exact.test(e)) throw new m(m.INVALID_CHARACTER_ERR, "not a valid xml name \"" + e + "\"");
|
|
4180
4180
|
if ("html" === this.type) throw new m("document is an html document", g.NotSupportedError);
|
|
4181
|
-
var t = new
|
|
4181
|
+
var t = new Ee(f);
|
|
4182
4182
|
return t.ownerDocument = this, t.childNodes = new H(), t.nodeName = e, t;
|
|
4183
4183
|
},
|
|
4184
4184
|
createElementNS: function(e, t) {
|
|
4185
|
-
var r =
|
|
4185
|
+
var r = E(e, t), n = new he(f), o = n.attributes = new W();
|
|
4186
4186
|
return n.childNodes = new H(), n.ownerDocument = this, n.nodeName = t, n.tagName = t, n.namespaceURI = r[0], n.prefix = r[1], n.localName = r[2], o._ownerElement = n, n;
|
|
4187
4187
|
},
|
|
4188
4188
|
createAttributeNS: function(e, t) {
|
|
4189
|
-
var r =
|
|
4189
|
+
var r = E(e, t), n = new me(f);
|
|
4190
4190
|
return n.ownerDocument = this, n.childNodes = new H(), n.nodeName = t, n.name = t, n.specified = !0, n.namespaceURI = r[0], n.prefix = r[1], n.localName = r[2], n;
|
|
4191
4191
|
}
|
|
4192
4192
|
}, k(te, Q), he.prototype = {
|
|
@@ -4241,7 +4241,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
4241
4241
|
return r ? r.value : null;
|
|
4242
4242
|
},
|
|
4243
4243
|
setAttributeNS: function(e, t, r) {
|
|
4244
|
-
var n =
|
|
4244
|
+
var n = E(e, t)[2], o = this.getAttributeNodeNS(e, n);
|
|
4245
4245
|
o ? o.value = o.nodeValue = "" + r : ((o = this.ownerDocument.createAttributeNS(e, t)).value = o.nodeValue = "" + r, this.setAttributeNode(o));
|
|
4246
4246
|
},
|
|
4247
4247
|
getAttributeNodeNS: function(e, t) {
|
|
@@ -4305,7 +4305,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
4305
4305
|
}
|
|
4306
4306
|
}, k(ge, Q), we.prototype = {
|
|
4307
4307
|
nodeName: "#text",
|
|
4308
|
-
nodeType:
|
|
4308
|
+
nodeType: C,
|
|
4309
4309
|
splitText: function(e) {
|
|
4310
4310
|
var t = this.data, r = t.substring(e);
|
|
4311
4311
|
t = t.substring(0, e), this.data = this.nodeValue = t, this.length = t.length;
|
|
@@ -4317,8 +4317,8 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
4317
4317
|
nodeType: P
|
|
4318
4318
|
}, k(be, ge), ve.prototype = {
|
|
4319
4319
|
nodeName: "#cdata-section",
|
|
4320
|
-
nodeType:
|
|
4321
|
-
}, k(ve, we), ye.prototype.nodeType =
|
|
4320
|
+
nodeType: A
|
|
4321
|
+
}, k(ve, we), ye.prototype.nodeType = O, k(ye, Q), xe.prototype.nodeType = L, k(xe, Q), Se.prototype.nodeType = D, k(Se, Q), Ee.prototype.nodeType = R, k(Ee, Q), Ne.prototype.nodeName = "#document-fragment", Ne.prototype.nodeType = M, k(Ne, Q), ke.prototype.nodeType = $, k(ke, ge), Te.prototype.serializeToString = function(e, t) {
|
|
4322
4322
|
return _e.call(e, t);
|
|
4323
4323
|
}, Q.prototype.toString = _e;
|
|
4324
4324
|
try {
|
|
@@ -4326,10 +4326,10 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
4326
4326
|
return q(this), this.$$length;
|
|
4327
4327
|
} }), Object.defineProperty(Q.prototype, "textContent", {
|
|
4328
4328
|
get: function() {
|
|
4329
|
-
if (this.nodeType === _ || this.nodeType ===
|
|
4329
|
+
if (this.nodeType === _ || this.nodeType === M) {
|
|
4330
4330
|
var e = [];
|
|
4331
4331
|
return ee(this, null, { enter: function(t) {
|
|
4332
|
-
return t.nodeType === _ || t.nodeType ===
|
|
4332
|
+
return t.nodeType === _ || t.nodeType === M || (t.nodeType === $ || t.nodeType === P ? null : void e.push(t.nodeValue));
|
|
4333
4333
|
} }), e.join("");
|
|
4334
4334
|
}
|
|
4335
4335
|
return this.nodeValue;
|
|
@@ -4337,7 +4337,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
4337
4337
|
set: function(e) {
|
|
4338
4338
|
switch (this.nodeType) {
|
|
4339
4339
|
case _:
|
|
4340
|
-
case
|
|
4340
|
+
case M:
|
|
4341
4341
|
for (; this.firstChild;) this.removeChild(this.firstChild);
|
|
4342
4342
|
(e || String(e)) && this.appendChild(this.ownerDocument.createTextNode(e));
|
|
4343
4343
|
break;
|
|
@@ -4370,7 +4370,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
4370
4370
|
e["$$" + t] = r;
|
|
4371
4371
|
});
|
|
4372
4372
|
} catch (Pe) {}
|
|
4373
|
-
e._updateLiveList = q, e.Attr = me, e.CDATASection = ve, e.CharacterData = ge, e.Comment = be, e.Document = te, e.DocumentFragment = Ne, e.DocumentType = ye, e.DOMImplementation = Y, e.Element = he, e.Entity =
|
|
4373
|
+
e._updateLiveList = q, e.Attr = me, e.CDATASection = ve, e.CharacterData = ge, e.Comment = be, e.Document = te, e.DocumentFragment = Ne, e.DocumentType = ye, e.DOMImplementation = Y, e.Element = he, e.Entity = Se, e.EntityReference = Ee, e.LiveNodeList = j, e.NamedNodeMap = W, e.Node = Q, e.NodeList = H, e.Notation = xe, e.Text = we, e.ProcessingInstruction = ke, e.walkDOM = ee, e.XMLSerializer = Te;
|
|
4374
4374
|
}), f = a((e) => {
|
|
4375
4375
|
var t = c().freeze;
|
|
4376
4376
|
e.XML_ENTITIES = t({
|
|
@@ -6532,9 +6532,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
6532
6532
|
return s(o, i) ? o[i] : "#" === i.charAt(0) ? u(parseInt(i.substring(1).replace("x", "0x"))) : (l.error("entity not found:" + e), e);
|
|
6533
6533
|
}
|
|
6534
6534
|
function h(t) {
|
|
6535
|
-
if (t >
|
|
6536
|
-
var r = e.substring(
|
|
6537
|
-
T && _(
|
|
6535
|
+
if (t > A) {
|
|
6536
|
+
var r = e.substring(A, t).replace(m, d);
|
|
6537
|
+
T && _(A), a.characters(r, 0, t - A), A = t;
|
|
6538
6538
|
}
|
|
6539
6539
|
}
|
|
6540
6540
|
var y = 0, N = 0, k = /\r\n?|\n|$/g, T = a.locator;
|
|
@@ -6542,64 +6542,64 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
6542
6542
|
for (; t >= N && (r = k.exec(e));) y = N, N = r.index + r[0].length, T.lineNumber++;
|
|
6543
6543
|
T.columnNumber = t - y + 1;
|
|
6544
6544
|
}
|
|
6545
|
-
var I = [{ currentNSMap: n }],
|
|
6545
|
+
var I = [{ currentNSMap: n }], C = [], A = 0;
|
|
6546
6546
|
for (;;) {
|
|
6547
6547
|
try {
|
|
6548
|
-
var R = e.indexOf("<",
|
|
6548
|
+
var R = e.indexOf("<", A);
|
|
6549
6549
|
if (R < 0) {
|
|
6550
|
-
if (!c &&
|
|
6551
|
-
if (!e.substring(
|
|
6552
|
-
var D = a.doc, $ = D.createTextNode(e.substring(
|
|
6550
|
+
if (!c && C.length > 0) return l.fatalError("unclosed xml tag(s): " + C.join(", "));
|
|
6551
|
+
if (!e.substring(A).match(/^\s*$/)) {
|
|
6552
|
+
var D = a.doc, $ = D.createTextNode(e.substring(A));
|
|
6553
6553
|
if (D.documentElement) return l.error("Extra content at the end of the document");
|
|
6554
6554
|
D.appendChild($), a.currentElement = $;
|
|
6555
6555
|
}
|
|
6556
6556
|
return;
|
|
6557
6557
|
}
|
|
6558
|
-
if (R >
|
|
6559
|
-
var P = e.substring(
|
|
6560
|
-
c || 0 !==
|
|
6558
|
+
if (R > A) {
|
|
6559
|
+
var P = e.substring(A, R);
|
|
6560
|
+
c || 0 !== C.length || (P = P.replace(new RegExp(r.S_OPT.source, "g"), "")) && l.error("Unexpected content outside root element: '" + P + "'"), h(R);
|
|
6561
6561
|
}
|
|
6562
6562
|
switch (e.charAt(R + 1)) {
|
|
6563
6563
|
case "/":
|
|
6564
|
-
var F = e.indexOf(">", R + 2),
|
|
6565
|
-
if (!
|
|
6566
|
-
var
|
|
6564
|
+
var F = e.indexOf(">", R + 2), O = e.substring(R + 2, F > 0 ? F : void 0);
|
|
6565
|
+
if (!O) return l.fatalError("end tag name missing");
|
|
6566
|
+
var M = r.reg("^", r.QName_group, r.S_OPT, "$"), L = F > 0 && M.exec(O);
|
|
6567
6567
|
if (!L) {
|
|
6568
|
-
var B = F > 0 && r.reg("^", r.QName_group).exec(
|
|
6569
|
-
if (c && B) l.warning("end tag name contains invalid trailing characters: \"" +
|
|
6568
|
+
var B = F > 0 && r.reg("^", r.QName_group).exec(O);
|
|
6569
|
+
if (c && B) l.warning("end tag name contains invalid trailing characters: \"" + O + "\""), L = B;
|
|
6570
6570
|
else {
|
|
6571
|
-
if (!B || !new RegExp(
|
|
6572
|
-
l.error("end tag name is followed by a line break and trailing content: \"" +
|
|
6571
|
+
if (!B || !new RegExp(M.source, M.flags + "m").test(O)) return l.fatalError("end tag name contains invalid characters: \"" + O + "\"");
|
|
6572
|
+
l.error("end tag name is followed by a line break and trailing content: \"" + O + "\""), L = B;
|
|
6573
6573
|
}
|
|
6574
6574
|
}
|
|
6575
6575
|
if (!a.currentElement && !a.doc.documentElement) return;
|
|
6576
|
-
var U =
|
|
6576
|
+
var U = C[C.length - 1] || a.currentElement.tagName || a.doc.documentElement.tagName || "";
|
|
6577
6577
|
if (U !== L[1]) {
|
|
6578
6578
|
var z = L[1].toLowerCase();
|
|
6579
|
-
if (!c || U.toLowerCase() !== z) return l.fatalError("Opening and ending tag mismatch: \"" + U + "\" != \"" +
|
|
6579
|
+
if (!c || U.toLowerCase() !== z) return l.fatalError("Opening and ending tag mismatch: \"" + U + "\" != \"" + O + "\"");
|
|
6580
6580
|
}
|
|
6581
6581
|
var H = I.pop();
|
|
6582
|
-
|
|
6582
|
+
C.pop();
|
|
6583
6583
|
var j = H.localNSMap;
|
|
6584
6584
|
if (a.endElement(H.uri, H.localName, U), j) for (var q in j) s(j, q) && a.endPrefixMapping(q);
|
|
6585
6585
|
F++;
|
|
6586
6586
|
break;
|
|
6587
6587
|
case "?":
|
|
6588
|
-
T && _(R), F =
|
|
6588
|
+
T && _(R), F = S(e, R, a, l);
|
|
6589
6589
|
break;
|
|
6590
6590
|
case "!":
|
|
6591
6591
|
T && _(R), F = x(e, R, a, l, c);
|
|
6592
6592
|
break;
|
|
6593
6593
|
default:
|
|
6594
6594
|
T && _(R);
|
|
6595
|
-
var W = new
|
|
6596
|
-
if (W.closed || (c && t.isHTMLVoidElement(W.tagName) ? W.closed = !0 :
|
|
6597
|
-
for (var V = g(T, {}), Z = 0; Z <
|
|
6595
|
+
var W = new E(), X = I[I.length - 1].currentNSMap, G = (F = w(e, R, W, X, d, l, c), W.length);
|
|
6596
|
+
if (W.closed || (c && t.isHTMLVoidElement(W.tagName) ? W.closed = !0 : C.push(W.tagName)), T && G) {
|
|
6597
|
+
for (var V = g(T, {}), Z = 0; Z < G; Z++) {
|
|
6598
6598
|
var Y = W[Z];
|
|
6599
6599
|
_(Y.offset), Y.locator = g(T, {});
|
|
6600
6600
|
}
|
|
6601
|
-
a.locator = V, b(W, a,
|
|
6602
|
-
} else b(W, a,
|
|
6601
|
+
a.locator = V, b(W, a, X) && I.push(W), a.locator = T;
|
|
6602
|
+
} else b(W, a, X) && I.push(W);
|
|
6603
6603
|
c && !W.closed ? F = v(e, F, W.tagName, d, a) : F++;
|
|
6604
6604
|
}
|
|
6605
6605
|
} catch (Q) {
|
|
@@ -6607,7 +6607,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
6607
6607
|
if (Q instanceof f) return l.fatalError("Error constructing the DOM: " + Q.name + ": " + Q.message, Q);
|
|
6608
6608
|
l.error("element parse error: " + Q), F = -1;
|
|
6609
6609
|
}
|
|
6610
|
-
F >
|
|
6610
|
+
F > A ? A = F : h(Math.max(R, A) + 1);
|
|
6611
6611
|
}
|
|
6612
6612
|
}(e, n, o, a, this.errorHandler), a.endDocument();
|
|
6613
6613
|
} };
|
|
@@ -6833,7 +6833,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
6833
6833
|
default: return o.fatalError("Not well-formed XML starting with \"<!\" at position " + t);
|
|
6834
6834
|
}
|
|
6835
6835
|
}
|
|
6836
|
-
function
|
|
6836
|
+
function S(e, t, n, o) {
|
|
6837
6837
|
var i = e.substring(t).match(r.PI);
|
|
6838
6838
|
if (!i) return o.fatalError("Invalid processing instruction starting at position " + t);
|
|
6839
6839
|
if ("xml" === i[1].toLowerCase()) {
|
|
@@ -6842,10 +6842,10 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
6842
6842
|
}
|
|
6843
6843
|
return n.processingInstruction(i[1], i[2]), t + i[0].length;
|
|
6844
6844
|
}
|
|
6845
|
-
function
|
|
6845
|
+
function E() {
|
|
6846
6846
|
this.attributeNames = Object.create(null);
|
|
6847
6847
|
}
|
|
6848
|
-
|
|
6848
|
+
E.prototype = {
|
|
6849
6849
|
setTagName: function(e) {
|
|
6850
6850
|
if (!r.QName_exact.test(e)) throw new Error("invalid tagName:" + e);
|
|
6851
6851
|
this.tagName = e;
|
|
@@ -6888,10 +6888,10 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
6888
6888
|
var t = e || {};
|
|
6889
6889
|
this.mimeType = t.mimeType || m.XML_APPLICATION, this.defaultNamespace = t.defaultNamespace || null, this.cdata = !1, this.currentElement = void 0, this.doc = void 0, this.locator = void 0, this.onError = t.onError;
|
|
6890
6890
|
}
|
|
6891
|
-
function
|
|
6891
|
+
function S(e, t) {
|
|
6892
6892
|
t.lineNumber = e.lineNumber, t.columnNumber = e.columnNumber;
|
|
6893
6893
|
}
|
|
6894
|
-
function
|
|
6894
|
+
function E(e, t, r) {
|
|
6895
6895
|
return "string" == typeof e ? e.substr(t, r) : e.length >= t + r || t ? new java.lang.String(e, t, r) + "" : e;
|
|
6896
6896
|
}
|
|
6897
6897
|
function N(e, t) {
|
|
@@ -6916,11 +6916,11 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
6916
6916
|
},
|
|
6917
6917
|
startElement: function(e, t, r, n) {
|
|
6918
6918
|
var o = this.doc, i = o.createElementNS(e, r || t), a = n.length;
|
|
6919
|
-
N(this, i), this.currentElement = i, this.locator &&
|
|
6919
|
+
N(this, i), this.currentElement = i, this.locator && S(this.locator, i);
|
|
6920
6920
|
for (var s = 0; s < a; s++) {
|
|
6921
6921
|
e = n.getURI(s);
|
|
6922
6922
|
var l = n.getValue(s), c = (r = n.getQName(s), o.createAttributeNS(e, r));
|
|
6923
|
-
this.locator &&
|
|
6923
|
+
this.locator && S(n.getLocator(s), c), c.value = c.nodeValue = l, i.setAttributeNode(c);
|
|
6924
6924
|
}
|
|
6925
6925
|
},
|
|
6926
6926
|
endElement: function(e, t, r) {
|
|
@@ -6930,14 +6930,14 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
6930
6930
|
endPrefixMapping: function(e) {},
|
|
6931
6931
|
processingInstruction: function(e, t) {
|
|
6932
6932
|
var r = this.doc.createProcessingInstruction(e, t);
|
|
6933
|
-
this.locator &&
|
|
6933
|
+
this.locator && S(this.locator, r), N(this, r);
|
|
6934
6934
|
},
|
|
6935
6935
|
ignorableWhitespace: function(e, t, r) {},
|
|
6936
6936
|
characters: function(e, t, r) {
|
|
6937
|
-
if (e =
|
|
6937
|
+
if (e = E.apply(this, arguments)) {
|
|
6938
6938
|
if (this.cdata) var n = this.doc.createCDATASection(e);
|
|
6939
6939
|
else n = this.doc.createTextNode(e);
|
|
6940
|
-
this.currentElement ? this.currentElement.appendChild(n) : /^\s*$/.test(e) && this.doc.appendChild(n), this.locator &&
|
|
6940
|
+
this.currentElement ? this.currentElement.appendChild(n) : /^\s*$/.test(e) && this.doc.appendChild(n), this.locator && S(this.locator, n);
|
|
6941
6941
|
}
|
|
6942
6942
|
},
|
|
6943
6943
|
skippedEntity: function(e) {},
|
|
@@ -6948,9 +6948,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
6948
6948
|
e && (e.lineNumber = 0), this.locator = e;
|
|
6949
6949
|
},
|
|
6950
6950
|
comment: function(e, t, r) {
|
|
6951
|
-
e =
|
|
6951
|
+
e = E.apply(this, arguments);
|
|
6952
6952
|
var n = this.doc.createComment(e);
|
|
6953
|
-
this.locator &&
|
|
6953
|
+
this.locator && S(this.locator, n), N(this, n);
|
|
6954
6954
|
},
|
|
6955
6955
|
startCDATA: function() {
|
|
6956
6956
|
this.cdata = !0;
|
|
@@ -6962,7 +6962,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
6962
6962
|
var o = this.doc.implementation;
|
|
6963
6963
|
if (o && o.createDocumentType) {
|
|
6964
6964
|
var i = o.createDocumentType(e, t, r, n);
|
|
6965
|
-
this.locator &&
|
|
6965
|
+
this.locator && S(this.locator, i), N(this, i), this.doc.doctype = i;
|
|
6966
6966
|
}
|
|
6967
6967
|
},
|
|
6968
6968
|
reportError: function(e, t) {
|
|
@@ -7012,18 +7012,18 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
7012
7012
|
function x() {
|
|
7013
7013
|
return v("comment");
|
|
7014
7014
|
}
|
|
7015
|
-
function
|
|
7015
|
+
function S(e = "") {
|
|
7016
7016
|
return {
|
|
7017
7017
|
id: v("run"),
|
|
7018
7018
|
text: e,
|
|
7019
7019
|
kind: "text"
|
|
7020
7020
|
};
|
|
7021
7021
|
}
|
|
7022
|
-
function
|
|
7022
|
+
function E(e = "") {
|
|
7023
7023
|
return {
|
|
7024
7024
|
id: v("paragraph"),
|
|
7025
7025
|
type: "paragraph",
|
|
7026
|
-
runs: [
|
|
7026
|
+
runs: [S(e)]
|
|
7027
7027
|
};
|
|
7028
7028
|
}
|
|
7029
7029
|
function N(e) {
|
|
@@ -7047,13 +7047,13 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
7047
7047
|
...o,
|
|
7048
7048
|
kind: "text"
|
|
7049
7049
|
};
|
|
7050
|
-
}(e.text, e.styles, e.image, e.textBox)) : [
|
|
7050
|
+
}(e.text, e.styles, e.image, e.textBox)) : [S("")]
|
|
7051
7051
|
};
|
|
7052
7052
|
}
|
|
7053
7053
|
function k(e, t = 1, r) {
|
|
7054
7054
|
const n = {
|
|
7055
7055
|
id: v("table-cell"),
|
|
7056
|
-
blocks: e.length > 0 ? e : [
|
|
7056
|
+
blocks: e.length > 0 ? e : [E("")]
|
|
7057
7057
|
};
|
|
7058
7058
|
return t > 1 && (n.colSpan = t), r?.rowSpan && r.rowSpan > 1 && (n.rowSpan = r.rowSpan), r?.vMerge && (n.vMerge = r.vMerge), n;
|
|
7059
7059
|
}
|
|
@@ -7064,7 +7064,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
7064
7064
|
};
|
|
7065
7065
|
return t?.isHeader && (r.isHeader = !0), r;
|
|
7066
7066
|
}
|
|
7067
|
-
const _ = 96 / 72, I = 9525,
|
|
7067
|
+
const _ = 96 / 72, I = 9525, C = 12700, A = 1440, R = 1e5, D = 6e4, $ = 14.6667, P = (e) => ({
|
|
7068
7068
|
width: .5,
|
|
7069
7069
|
type: "solid",
|
|
7070
7070
|
color: e
|
|
@@ -7109,7 +7109,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
7109
7109
|
}
|
|
7110
7110
|
};
|
|
7111
7111
|
}
|
|
7112
|
-
const
|
|
7112
|
+
const O = {
|
|
7113
7113
|
TableNormal: {
|
|
7114
7114
|
id: "TableNormal",
|
|
7115
7115
|
name: "Table Normal",
|
|
@@ -7179,7 +7179,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
7179
7179
|
const r = t + 1, n = F(r, e, !1), o = F(r, e, !0);
|
|
7180
7180
|
return [[n.id, n], [o.id, o]];
|
|
7181
7181
|
}))
|
|
7182
|
-
},
|
|
7182
|
+
}, M = {
|
|
7183
7183
|
normal: {
|
|
7184
7184
|
id: "normal",
|
|
7185
7185
|
builtinStyle: "normal",
|
|
@@ -7316,7 +7316,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
7316
7316
|
italic: !0
|
|
7317
7317
|
}
|
|
7318
7318
|
},
|
|
7319
|
-
...
|
|
7319
|
+
...O
|
|
7320
7320
|
};
|
|
7321
7321
|
function L(e, t = "value") {
|
|
7322
7322
|
const r = e && "object" == typeof e && "type" in e ? e.type : e;
|
|
@@ -7434,7 +7434,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
7434
7434
|
borderBetween: null,
|
|
7435
7435
|
borderBar: null,
|
|
7436
7436
|
framePrXml: null
|
|
7437
|
-
}, W = 816,
|
|
7437
|
+
}, W = 816, X = 1056, G = "portrait", V = {
|
|
7438
7438
|
top: 96,
|
|
7439
7439
|
right: 96,
|
|
7440
7440
|
bottom: 96,
|
|
@@ -7467,8 +7467,8 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
7467
7467
|
const t = e.pageSettings;
|
|
7468
7468
|
return Z({
|
|
7469
7469
|
width: t?.width ?? W,
|
|
7470
|
-
height: t?.height ??
|
|
7471
|
-
orientation: t?.orientation ??
|
|
7470
|
+
height: t?.height ?? X,
|
|
7471
|
+
orientation: t?.orientation ?? G,
|
|
7472
7472
|
margins: {
|
|
7473
7473
|
top: t?.margins.top ?? V.top,
|
|
7474
7474
|
right: t?.margins.right ?? V.right,
|
|
@@ -7585,7 +7585,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
7585
7585
|
}
|
|
7586
7586
|
}();
|
|
7587
7587
|
function de(e) {
|
|
7588
|
-
const t = Object.fromEntries(Object.entries(
|
|
7588
|
+
const t = Object.fromEntries(Object.entries(O).filter(([t]) => !(t in e)));
|
|
7589
7589
|
return {
|
|
7590
7590
|
...e,
|
|
7591
7591
|
...t
|
|
@@ -7600,8 +7600,8 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
7600
7600
|
...t.columns ? { columns: t.columns } : {}
|
|
7601
7601
|
} : {
|
|
7602
7602
|
width: W,
|
|
7603
|
-
height:
|
|
7604
|
-
orientation:
|
|
7603
|
+
height: X,
|
|
7604
|
+
orientation: G,
|
|
7605
7605
|
margins: { ...V }
|
|
7606
7606
|
});
|
|
7607
7607
|
return {
|
|
@@ -7613,7 +7613,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
7613
7613
|
blocks: e,
|
|
7614
7614
|
pageSettings: a
|
|
7615
7615
|
}],
|
|
7616
|
-
styles: n ? de(n) : { ...
|
|
7616
|
+
styles: n ? de(n) : { ...M },
|
|
7617
7617
|
metadata: o ?? { title: "Untitled document" },
|
|
7618
7618
|
assets: i ?? void 0
|
|
7619
7619
|
};
|
|
@@ -7673,7 +7673,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
7673
7673
|
return Boolean(n && t.supportedNamespaces.has(n));
|
|
7674
7674
|
});
|
|
7675
7675
|
}
|
|
7676
|
-
function
|
|
7676
|
+
function Se(e, t) {
|
|
7677
7677
|
let r;
|
|
7678
7678
|
for (const n of me(e)) if ("http://schemas.openxmlformats.org/markup-compatibility/2006" === n.namespaceURI) {
|
|
7679
7679
|
if ("Choice" === n.localName && xe(n, t)) return n;
|
|
@@ -7681,7 +7681,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
7681
7681
|
}
|
|
7682
7682
|
return r;
|
|
7683
7683
|
}
|
|
7684
|
-
function
|
|
7684
|
+
function Ee(e, t = fe) {
|
|
7685
7685
|
const r = [], n = function(e) {
|
|
7686
7686
|
const t = /* @__PURE__ */ new Set();
|
|
7687
7687
|
for (const r of ve(e, "Ignorable")) {
|
|
@@ -7699,14 +7699,14 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
7699
7699
|
}(e);
|
|
7700
7700
|
for (const i of me(e)) {
|
|
7701
7701
|
if ("http://schemas.openxmlformats.org/markup-compatibility/2006" === i.namespaceURI && "AlternateContent" === i.localName) {
|
|
7702
|
-
const e =
|
|
7703
|
-
e && r.push(...
|
|
7702
|
+
const e = Se(i, t);
|
|
7703
|
+
e && r.push(...Ee(e, t));
|
|
7704
7704
|
continue;
|
|
7705
7705
|
}
|
|
7706
7706
|
const e = i.namespaceURI ?? "";
|
|
7707
7707
|
if (n.has(e) && !t.supportedNamespaces.has(e)) {
|
|
7708
7708
|
const n = `${e}\0${i.localName ?? i.tagName}`;
|
|
7709
|
-
o.has(n) && r.push(...
|
|
7709
|
+
o.has(n) && r.push(...Ee(i, t));
|
|
7710
7710
|
continue;
|
|
7711
7711
|
}
|
|
7712
7712
|
r.push(i);
|
|
@@ -7714,10 +7714,10 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
7714
7714
|
return r;
|
|
7715
7715
|
}
|
|
7716
7716
|
const Ne = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", ke = "http://schemas.openxmlformats.org/drawingml/2006/main", Te = "http://schemas.microsoft.com/office/word/2010/wordml", _e = he(fe, Te), Ie = he(fe, "http://schemas.microsoft.com/office/word/2012/wordml");
|
|
7717
|
-
function
|
|
7718
|
-
return e ?
|
|
7717
|
+
function Ce(e, t, r) {
|
|
7718
|
+
return e ? Ee(e).filter((e) => e.namespaceURI === t && e.localName === r) : [];
|
|
7719
7719
|
}
|
|
7720
|
-
const
|
|
7720
|
+
const Ae = [
|
|
7721
7721
|
"lrTb",
|
|
7722
7722
|
"tbRl",
|
|
7723
7723
|
"btLr",
|
|
@@ -7725,33 +7725,33 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
7725
7725
|
"tbRlV"
|
|
7726
7726
|
];
|
|
7727
7727
|
function Re(e) {
|
|
7728
|
-
return
|
|
7728
|
+
return Ae.includes(e) ? e : void 0;
|
|
7729
7729
|
}
|
|
7730
7730
|
function De(e, t, r) {
|
|
7731
|
-
return
|
|
7731
|
+
return Ce(e, t, r)[0] ?? null;
|
|
7732
7732
|
}
|
|
7733
7733
|
function $e(e, t) {
|
|
7734
|
-
return e ?
|
|
7734
|
+
return e ? Ee(e, _e).find((e) => "http://schemas.microsoft.com/office/word/2010/wordml" === e.namespaceURI && e.localName === t) ?? null : null;
|
|
7735
7735
|
}
|
|
7736
7736
|
function Pe(e, t) {
|
|
7737
|
-
return e ?
|
|
7737
|
+
return e ? Ee(e, Ie).find((e) => "http://schemas.microsoft.com/office/word/2012/wordml" === e.namespaceURI && e.localName === t) ?? null : null;
|
|
7738
7738
|
}
|
|
7739
7739
|
function Fe(e, t) {
|
|
7740
7740
|
return e ? e.getAttributeNS("http://schemas.openxmlformats.org/wordprocessingml/2006/main", t) ?? e.getAttributeNS("http://schemas.microsoft.com/office/word/2010/wordml", t) ?? e.getAttributeNS("http://schemas.microsoft.com/office/word/2012/wordml", t) ?? e.getAttribute(`w:${t}`) ?? e.getAttribute(`w14:${t}`) ?? e.getAttribute(`w15:${t}`) ?? e.getAttribute(t) : null;
|
|
7741
7741
|
}
|
|
7742
|
-
function
|
|
7742
|
+
function Oe(e, t) {
|
|
7743
7743
|
for (let r = 0; r < e.childNodes.length; r += 1) {
|
|
7744
7744
|
const n = e.childNodes[r];
|
|
7745
7745
|
if (1 === n?.nodeType) {
|
|
7746
7746
|
const e = n;
|
|
7747
7747
|
if (e.localName === t) return e;
|
|
7748
|
-
const r =
|
|
7748
|
+
const r = Oe(e, t);
|
|
7749
7749
|
if (r) return r;
|
|
7750
7750
|
}
|
|
7751
7751
|
}
|
|
7752
7752
|
return null;
|
|
7753
7753
|
}
|
|
7754
|
-
function
|
|
7754
|
+
function Me(e) {
|
|
7755
7755
|
const t = {}, r = e.attributes;
|
|
7756
7756
|
for (let n = 0; n < r.length; n += 1) {
|
|
7757
7757
|
const e = r[n];
|
|
@@ -7821,7 +7821,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
7821
7821
|
}, e.byPath.set(t, o), `${H}${o}`;
|
|
7822
7822
|
}(t, n, `data:${i};base64,${a}`);
|
|
7823
7823
|
}
|
|
7824
|
-
function
|
|
7824
|
+
function Xe(e) {
|
|
7825
7825
|
const t = /* @__PURE__ */ new Map();
|
|
7826
7826
|
if (!e) return t;
|
|
7827
7827
|
const r = new b.DOMParser().parseFromString(e, "application/xml").documentElement?.childNodes;
|
|
@@ -7838,9 +7838,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
7838
7838
|
}
|
|
7839
7839
|
return t;
|
|
7840
7840
|
}
|
|
7841
|
-
async function
|
|
7841
|
+
async function Ge(e, t) {
|
|
7842
7842
|
const r = t.lastIndexOf("/"), n = r >= 0 ? t.slice(0, r) : "", o = r >= 0 ? t.slice(r + 1) : t, i = n ? `${n}/_rels/${o}.rels` : `_rels/${o}.rels`;
|
|
7843
|
-
return
|
|
7843
|
+
return Xe(await e.file(i)?.async("string"));
|
|
7844
7844
|
}
|
|
7845
7845
|
const Ve = (e) => De(e, "http://schemas.openxmlformats.org/drawingml/2006/main", "latin")?.getAttribute("typeface")?.trim() || void 0, Ze = (e) => De(e, "http://schemas.openxmlformats.org/drawingml/2006/main", "cs")?.getAttribute("typeface")?.trim() || Ve(e), Ye = (e) => De(e, "http://schemas.openxmlformats.org/drawingml/2006/main", "ea")?.getAttribute("typeface")?.trim() || Ve(e);
|
|
7846
7846
|
function Qe(e, t) {
|
|
@@ -7849,7 +7849,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
7849
7849
|
}
|
|
7850
7850
|
function Ke(e, t) {
|
|
7851
7851
|
const r = e ? Number(e) : NaN;
|
|
7852
|
-
return Number.isFinite(r) ? Math.round(r /
|
|
7852
|
+
return Number.isFinite(r) ? Math.round(r / A * 96) : t;
|
|
7853
7853
|
}
|
|
7854
7854
|
function Je(e) {
|
|
7855
7855
|
const t = e ? Number(e) : NaN;
|
|
@@ -7930,7 +7930,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
7930
7930
|
fonts: {},
|
|
7931
7931
|
colors: {}
|
|
7932
7932
|
};
|
|
7933
|
-
const t = new b.DOMParser().parseFromString(e, "application/xml").documentElement, r = t ?
|
|
7933
|
+
const t = new b.DOMParser().parseFromString(e, "application/xml").documentElement, r = t ? Ce(t, "http://schemas.openxmlformats.org/drawingml/2006/main", "themeElements")[0] ?? null : null, n = function(e) {
|
|
7934
7934
|
const t = De(e, ke, "fontScheme"), r = De(t, ke, "majorFont"), n = De(t, ke, "minorFont");
|
|
7935
7935
|
return {
|
|
7936
7936
|
majorHAnsi: Ve(r),
|
|
@@ -7949,7 +7949,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
7949
7949
|
e && (r[n] = e);
|
|
7950
7950
|
}
|
|
7951
7951
|
return r;
|
|
7952
|
-
}(r), i = r ?
|
|
7952
|
+
}(r), i = r ? Ce(r, ke, "fmtScheme")[0] : void 0;
|
|
7953
7953
|
return {
|
|
7954
7954
|
fonts: n,
|
|
7955
7955
|
colors: o,
|
|
@@ -8160,7 +8160,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8160
8160
|
color: o
|
|
8161
8161
|
};
|
|
8162
8162
|
}
|
|
8163
|
-
function
|
|
8163
|
+
function St(e) {
|
|
8164
8164
|
return e ? {
|
|
8165
8165
|
borderTop: xt(De(e, Ne, "top")),
|
|
8166
8166
|
borderRight: xt(De(e, Ne, "right")),
|
|
@@ -8174,7 +8174,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8174
8174
|
borderBar: xt(De(e, Ne, "bar"))
|
|
8175
8175
|
} : {};
|
|
8176
8176
|
}
|
|
8177
|
-
function
|
|
8177
|
+
function Et(e) {
|
|
8178
8178
|
const t = Object.entries(e).filter(([, e]) => void 0 !== e);
|
|
8179
8179
|
return t.length > 0 ? Object.fromEntries(t) : void 0;
|
|
8180
8180
|
}
|
|
@@ -8250,10 +8250,10 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8250
8250
|
...void 0 !== a ? { alpha: a } : {}
|
|
8251
8251
|
};
|
|
8252
8252
|
}
|
|
8253
|
-
function
|
|
8253
|
+
function Ct(e, t) {
|
|
8254
8254
|
if (!e) return;
|
|
8255
|
-
const r = ie(e, t,
|
|
8256
|
-
return
|
|
8255
|
+
const r = ie(e, t, M), n = ie(void 0, t, M), o = (e, t) => e !== t ? e : void 0, i = (e, t, r) => void 0 !== e ? e : o(t, r);
|
|
8256
|
+
return Et({
|
|
8257
8257
|
styleId: e.styleId,
|
|
8258
8258
|
bold: i(e.bold, r.bold, n.bold),
|
|
8259
8259
|
italic: i(e.italic, r.italic, n.italic),
|
|
@@ -8306,11 +8306,11 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8306
8306
|
link: o(r.link, n.link),
|
|
8307
8307
|
propertyRevision: e.propertyRevision ? {
|
|
8308
8308
|
...e.propertyRevision,
|
|
8309
|
-
previous:
|
|
8309
|
+
previous: Ct(e.propertyRevision.previous, t) ?? {}
|
|
8310
8310
|
} : void 0
|
|
8311
8311
|
});
|
|
8312
8312
|
}
|
|
8313
|
-
function
|
|
8313
|
+
function At(e, t) {
|
|
8314
8314
|
if (!e) return;
|
|
8315
8315
|
const r = {}, n = Ue(e, "rStyle");
|
|
8316
8316
|
n && (r.styleId = n);
|
|
@@ -8344,10 +8344,10 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8344
8344
|
void 0 !== y && (r.outline = y);
|
|
8345
8345
|
const x = Be(e, "shadow");
|
|
8346
8346
|
void 0 !== x && (r.shadow = x);
|
|
8347
|
-
const
|
|
8348
|
-
void 0 !==
|
|
8349
|
-
const
|
|
8350
|
-
void 0 !==
|
|
8347
|
+
const S = Be(e, "emboss");
|
|
8348
|
+
void 0 !== S && (r.emboss = S);
|
|
8349
|
+
const E = Be(e, "imprint");
|
|
8350
|
+
void 0 !== E && (r.imprint = E);
|
|
8351
8351
|
const N = Fe(De(e, Ne, "em"), "val");
|
|
8352
8352
|
"dot" !== N && "comma" !== N && "circle" !== N && "underDot" !== N && "none" !== N || (r.emphasisMark = N);
|
|
8353
8353
|
const k = Fe(De(e, Ne, "fitText"), "val");
|
|
@@ -8364,9 +8364,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8364
8364
|
const e = Number(I);
|
|
8365
8365
|
Number.isFinite(e) && e > 0 && (r.characterScale = e);
|
|
8366
8366
|
}
|
|
8367
|
-
const
|
|
8368
|
-
if (
|
|
8369
|
-
const e = Je(
|
|
8367
|
+
const A = Fe(De(e, Ne, "spacing"), "val");
|
|
8368
|
+
if (A) {
|
|
8369
|
+
const e = Je(A);
|
|
8370
8370
|
void 0 !== e && (r.characterSpacing = e);
|
|
8371
8371
|
}
|
|
8372
8372
|
const $ = Fe(De(e, Ne, "position"), "val");
|
|
@@ -8381,10 +8381,10 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8381
8381
|
}
|
|
8382
8382
|
const F = Fe(De(e, Te, "ligatures"), "val");
|
|
8383
8383
|
"none" !== F && "standard" !== F && "contextual" !== F && "historical" !== F && "standardContextual" !== F || (r.ligatures = F);
|
|
8384
|
-
const
|
|
8385
|
-
"proportional" !==
|
|
8386
|
-
const
|
|
8387
|
-
"lining" !==
|
|
8384
|
+
const O = Fe(De(e, Te, "numSpacing"), "val");
|
|
8385
|
+
"proportional" !== O && "tabular" !== O || (r.numberSpacing = O);
|
|
8386
|
+
const M = Fe(De(e, Te, "numForm"), "val");
|
|
8387
|
+
"lining" !== M && "oldStyle" !== M || (r.numberForm = M);
|
|
8388
8388
|
const L = Fe(De(e, Te, "stylisticSets"), "val");
|
|
8389
8389
|
if (L) {
|
|
8390
8390
|
const e = /^[0-9a-fA-F]+$/.test(L) && L.length > 2 ? Number.parseInt(L, 16) : Number(L);
|
|
@@ -8423,10 +8423,10 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8423
8423
|
}(W);
|
|
8424
8424
|
null !== e && (r.fontSize = e);
|
|
8425
8425
|
}
|
|
8426
|
-
const
|
|
8427
|
-
if (
|
|
8428
|
-
else if ("auto" !==
|
|
8429
|
-
const e = it(
|
|
8426
|
+
const X = De(e, Ne, "color"), G = Fe(X, "val");
|
|
8427
|
+
if (G && "auto" !== G) r.color = et(G);
|
|
8428
|
+
else if ("auto" !== G) {
|
|
8429
|
+
const e = it(X, t.colors);
|
|
8430
8430
|
e && (r.color = e);
|
|
8431
8431
|
}
|
|
8432
8432
|
const V = $e(e, "textFill");
|
|
@@ -8436,7 +8436,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8436
8436
|
}
|
|
8437
8437
|
const Z = $e(e, "textOutline");
|
|
8438
8438
|
if (Z) {
|
|
8439
|
-
const e = Z.getAttributeNS(Te, "w"), t = null !== e ? Number(e) : NaN, n = { widthPt: Number.isFinite(t) && t > 0 ? t /
|
|
8439
|
+
const e = Z.getAttributeNS(Te, "w"), t = null !== e ? Number(e) : NaN, n = { widthPt: Number.isFinite(t) && t > 0 ? t / C : .5 }, o = _t(Z);
|
|
8440
8440
|
o && (n.fill = o, "solid" === o.type ? n.color = o.color : "gradient" === o.type && o.stops[0] && (n.color = o.stops[0].color)), r.textOutline = n;
|
|
8441
8441
|
}
|
|
8442
8442
|
const Y = $e(e, "shadow");
|
|
@@ -8444,7 +8444,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8444
8444
|
const e = function(e) {
|
|
8445
8445
|
const t = It(e);
|
|
8446
8446
|
if (!t) return null;
|
|
8447
|
-
const r = e.getAttributeNS(Te, "blurRad"), n = e.getAttributeNS(Te, "dist"), o = e.getAttributeNS(Te, "dir"), i = r ? Number(r) /
|
|
8447
|
+
const r = e.getAttributeNS(Te, "blurRad"), n = e.getAttributeNS(Te, "dist"), o = e.getAttributeNS(Te, "dir"), i = r ? Number(r) / C : 0, a = n ? Number(n) / C : 0, s = o ? Number(o) / D : 0;
|
|
8448
8448
|
return {
|
|
8449
8449
|
color: t.color,
|
|
8450
8450
|
...void 0 !== t.alpha ? { alpha: t.alpha } : {},
|
|
@@ -8460,7 +8460,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8460
8460
|
const e = function(e) {
|
|
8461
8461
|
const t = It(e);
|
|
8462
8462
|
if (!t) return null;
|
|
8463
|
-
const r = e.getAttributeNS(Te, "rad"), n = r ? Number(r) /
|
|
8463
|
+
const r = e.getAttributeNS(Te, "rad"), n = r ? Number(r) / C : 0;
|
|
8464
8464
|
return {
|
|
8465
8465
|
color: t.color,
|
|
8466
8466
|
...void 0 !== t.alpha ? { alpha: t.alpha } : {},
|
|
@@ -8473,12 +8473,12 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8473
8473
|
K && (r.reflection = function(e) {
|
|
8474
8474
|
const t = e.getAttributeNS(Te, "blurRad"), r = e.getAttributeNS(Te, "stA"), n = e.getAttributeNS(Te, "stPos"), o = e.getAttributeNS(Te, "endA"), i = e.getAttributeNS(Te, "endPos"), a = e.getAttributeNS(Te, "dist");
|
|
8475
8475
|
return {
|
|
8476
|
-
blurPt: t ? Number(t) /
|
|
8476
|
+
blurPt: t ? Number(t) / C : 0,
|
|
8477
8477
|
startAlpha: null !== r ? Number(r) / R : .55,
|
|
8478
8478
|
startPos: null !== n ? Number(n) / R : 0,
|
|
8479
8479
|
endAlpha: null !== o ? Number(o) / R : 0,
|
|
8480
8480
|
endPos: null !== i ? Number(i) / R : 1,
|
|
8481
|
-
distPt: a ? Number(a) /
|
|
8481
|
+
distPt: a ? Number(a) / C : 0
|
|
8482
8482
|
};
|
|
8483
8483
|
}(K));
|
|
8484
8484
|
const J = $e(e, "scene3d");
|
|
@@ -8498,7 +8498,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8498
8498
|
return ie && ae && (r.propertyRevision = {
|
|
8499
8499
|
...ie,
|
|
8500
8500
|
type: "property",
|
|
8501
|
-
previous:
|
|
8501
|
+
previous: At(ae, t) ?? {}
|
|
8502
8502
|
}), Nt(r);
|
|
8503
8503
|
}
|
|
8504
8504
|
const Rt = [
|
|
@@ -8546,7 +8546,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8546
8546
|
"1" === a || "true" === a || "on" === a ? n[o] = !0 : "0" === a || "false" === a || "off" === a ? n[o] = !1 : 12 === r.length && "1" === r[i] && (n[o] = !0);
|
|
8547
8547
|
}), Object.keys(n).length > 0 ? n : void 0;
|
|
8548
8548
|
}
|
|
8549
|
-
function
|
|
8549
|
+
function Ot(e) {
|
|
8550
8550
|
const t = Fe(e, "date"), r = t ? Date.parse(t) : NaN;
|
|
8551
8551
|
return {
|
|
8552
8552
|
id: Fe(e, "id") ?? `revision:${e.localName}`,
|
|
@@ -8554,11 +8554,11 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8554
8554
|
date: Number.isFinite(r) ? r : 0
|
|
8555
8555
|
};
|
|
8556
8556
|
}
|
|
8557
|
-
function
|
|
8557
|
+
function Mt(e) {
|
|
8558
8558
|
if (!e) return;
|
|
8559
8559
|
const t = De(e, Ne, "tblPrEx");
|
|
8560
8560
|
return t ? {
|
|
8561
|
-
...
|
|
8561
|
+
...Ot(e),
|
|
8562
8562
|
type: "property",
|
|
8563
8563
|
previous: Bt(t) ?? {}
|
|
8564
8564
|
} : void 0;
|
|
@@ -8589,7 +8589,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8589
8589
|
const c = $t(De(e, Ne, "tblCellSpacing"));
|
|
8590
8590
|
void 0 !== c && (r.cellSpacing = c);
|
|
8591
8591
|
const u = (d = De(e, Ne, "tblBorders")) ? {
|
|
8592
|
-
...
|
|
8592
|
+
...St(d),
|
|
8593
8593
|
borderInsideH: xt(De(d, Ne, "insideH")),
|
|
8594
8594
|
borderInsideV: xt(De(d, Ne, "insideV"))
|
|
8595
8595
|
} : {};
|
|
@@ -8645,7 +8645,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8645
8645
|
}
|
|
8646
8646
|
const v = De(e, Ne, "tblPrChange"), y = De(v, Ne, "tblPr");
|
|
8647
8647
|
return v && y && (r.revision = {
|
|
8648
|
-
...
|
|
8648
|
+
...Ot(v),
|
|
8649
8649
|
type: "property",
|
|
8650
8650
|
previous: Bt(y) ?? {}
|
|
8651
8651
|
}), Nt(r);
|
|
@@ -8676,13 +8676,13 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8676
8676
|
void 0 !== f && (t.hidden = f);
|
|
8677
8677
|
const h = De(e, Ne, "trPrChange"), m = De(h, Ne, "trPr");
|
|
8678
8678
|
h && m && (t.propertyRevision = {
|
|
8679
|
-
...
|
|
8679
|
+
...Ot(h),
|
|
8680
8680
|
type: "property",
|
|
8681
8681
|
previous: Ut(m) ?? {}
|
|
8682
8682
|
});
|
|
8683
8683
|
const g = De(e, Ne, "ins"), w = De(e, Ne, "del"), b = g ?? w;
|
|
8684
8684
|
return b && (t.revision = {
|
|
8685
|
-
...
|
|
8685
|
+
...Ot(b),
|
|
8686
8686
|
type: g ? "insert" : "delete"
|
|
8687
8687
|
}), Nt(t);
|
|
8688
8688
|
}
|
|
@@ -8750,7 +8750,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8750
8750
|
h && (n.headers = h);
|
|
8751
8751
|
const m = De(e, Ne, "tcPrChange"), g = De(m, Ne, "tcPr");
|
|
8752
8752
|
m && g && (n.propertyRevision = {
|
|
8753
|
-
...
|
|
8753
|
+
...Ot(m),
|
|
8754
8754
|
type: "property",
|
|
8755
8755
|
previous: qt(g, void 0, r) ?? {}
|
|
8756
8756
|
});
|
|
@@ -8760,24 +8760,24 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8760
8760
|
return "rest" === e || "restart" === e ? "restart" : "cont" === e || "continue" === e ? "continue" : void 0;
|
|
8761
8761
|
}(Fe(y, "vMergeOrig"));
|
|
8762
8762
|
n.revision = {
|
|
8763
|
-
...
|
|
8763
|
+
...Ot(y),
|
|
8764
8764
|
type: w ? "insert" : b ? "delete" : "merge",
|
|
8765
8765
|
...v && e ? { previous: { vMerge: e } } : {}
|
|
8766
8766
|
};
|
|
8767
8767
|
}
|
|
8768
|
-
for (const [x,
|
|
8769
|
-
return e ?
|
|
8770
|
-
}(e)))
|
|
8768
|
+
for (const [x, S] of Object.entries(function(e) {
|
|
8769
|
+
return e ? St(De(e, Ne, "tcBorders")) : {};
|
|
8770
|
+
}(e))) S && (n[x] = S);
|
|
8771
8771
|
return Nt(n);
|
|
8772
8772
|
}
|
|
8773
8773
|
function Wt(e) {
|
|
8774
8774
|
const t = De(e, Ne, "trPr");
|
|
8775
8775
|
return !!t && !0 === Be(t, "tblHeader");
|
|
8776
8776
|
}
|
|
8777
|
-
function
|
|
8777
|
+
function Xt(e) {
|
|
8778
8778
|
if (!e) return;
|
|
8779
|
-
const t = ae(e,
|
|
8780
|
-
return
|
|
8779
|
+
const t = ae(e, M), r = ae(void 0, M);
|
|
8780
|
+
return Et({
|
|
8781
8781
|
styleId: e.styleId,
|
|
8782
8782
|
align: t.align !== r.align ? t.align : void 0,
|
|
8783
8783
|
spacingBefore: t.spacingBefore !== r.spacingBefore ? t.spacingBefore : void 0,
|
|
@@ -8823,11 +8823,11 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8823
8823
|
framePrXml: e.framePrXml ?? void 0,
|
|
8824
8824
|
propertyRevision: e.propertyRevision ? {
|
|
8825
8825
|
...e.propertyRevision,
|
|
8826
|
-
previous:
|
|
8826
|
+
previous: Xt(e.propertyRevision.previous) ?? {}
|
|
8827
8827
|
} : void 0
|
|
8828
8828
|
});
|
|
8829
8829
|
}
|
|
8830
|
-
function
|
|
8830
|
+
function Gt(e) {
|
|
8831
8831
|
return void 0 !== e?.lineHeight ? e : {
|
|
8832
8832
|
...e ?? {},
|
|
8833
8833
|
lineHeight: 1.1
|
|
@@ -8851,7 +8851,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8851
8851
|
const t = De(e, Ne, "tabs");
|
|
8852
8852
|
if (!t) return [];
|
|
8853
8853
|
const r = [];
|
|
8854
|
-
for (const n of
|
|
8854
|
+
for (const n of Ce(t, Ne, "tab")) {
|
|
8855
8855
|
const e = Je(Fe(n, "pos"));
|
|
8856
8856
|
if (void 0 === e) continue;
|
|
8857
8857
|
const t = Fe(n, "val"), o = "center" === t || "right" === t || "decimal" === t || "bar" === t || "clear" === t ? t : "left", i = Fe(n, "leader"), a = "dot" === i || "hyphen" === i || "underscore" === i || "heavy" === i || "middleDot" === i ? i : "none" === i ? "none" : void 0;
|
|
@@ -8870,13 +8870,13 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8870
8870
|
void 0 !== y && (r.keepWithNext = y);
|
|
8871
8871
|
const x = Be(e, "keepLines");
|
|
8872
8872
|
void 0 !== x && (r.keepLinesTogether = x);
|
|
8873
|
-
const
|
|
8874
|
-
void 0 !==
|
|
8875
|
-
const
|
|
8876
|
-
void 0 !==
|
|
8873
|
+
const S = Be(e, "widowControl");
|
|
8874
|
+
void 0 !== S && (r.widowControl = S);
|
|
8875
|
+
const E = Be(e, "mirrorIndents");
|
|
8876
|
+
void 0 !== E && (r.mirrorIndents = E);
|
|
8877
8877
|
const N = De(e, Ne, "pBdr");
|
|
8878
8878
|
if (N) {
|
|
8879
|
-
const { borderTop: e, borderRight: t, borderBottom: n, borderLeft: o, borderBetween: i, borderBar: a } =
|
|
8879
|
+
const { borderTop: e, borderRight: t, borderBottom: n, borderLeft: o, borderBetween: i, borderBar: a } = St(N);
|
|
8880
8880
|
e && (r.borderTop = e), t && (r.borderRight = t), n && (r.borderBottom = n), o && (r.borderLeft = o), i && (r.borderBetween = i), a && (r.borderBar = a);
|
|
8881
8881
|
}
|
|
8882
8882
|
const k = Tt(De(e, Ne, "shd"), t);
|
|
@@ -8890,10 +8890,10 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8890
8890
|
}
|
|
8891
8891
|
const I = Be(e, "suppressLineNumbers");
|
|
8892
8892
|
void 0 !== I && (r.suppressLineNumbers = I);
|
|
8893
|
-
const
|
|
8894
|
-
void 0 !==
|
|
8895
|
-
const
|
|
8896
|
-
void 0 !==
|
|
8893
|
+
const C = Be(e, "suppressAutoHyphens");
|
|
8894
|
+
void 0 !== C && (r.suppressAutoHyphens = C);
|
|
8895
|
+
const A = Be(e, "bidi");
|
|
8896
|
+
void 0 !== A && (r.bidi = A);
|
|
8897
8897
|
const R = Be(e, "kinsoku");
|
|
8898
8898
|
void 0 !== R && (r.kinsoku = R);
|
|
8899
8899
|
const D = Be(e, "wordWrap");
|
|
@@ -8904,10 +8904,10 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8904
8904
|
void 0 !== P && (r.topLinePunct = P);
|
|
8905
8905
|
const F = Be(e, "autoSpaceDE");
|
|
8906
8906
|
void 0 !== F && (r.autoSpaceDE = F);
|
|
8907
|
-
const
|
|
8908
|
-
void 0 !==
|
|
8909
|
-
const
|
|
8910
|
-
void 0 !==
|
|
8907
|
+
const O = Be(e, "autoSpaceDN");
|
|
8908
|
+
void 0 !== O && (r.autoSpaceDN = O);
|
|
8909
|
+
const M = Be(e, "adjustRightInd");
|
|
8910
|
+
void 0 !== M && (r.adjustRightInd = M);
|
|
8911
8911
|
const L = Fe(De(e, Ne, "textAlignment"), "val");
|
|
8912
8912
|
"auto" !== L && "top" !== L && "center" !== L && "baseline" !== L && "bottom" !== L || (r.textAlignment = L);
|
|
8913
8913
|
const B = Fe(De(e, Ne, "textboxTightWrap"), "val");
|
|
@@ -8953,7 +8953,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8953
8953
|
if (!t) return;
|
|
8954
8954
|
const r = Number.parseInt(Fe(t, "num") ?? "1", 10);
|
|
8955
8955
|
if (!Number.isFinite(r) || r <= 1) return;
|
|
8956
|
-
const n = Ke(Fe(t, "space"), 0), o = Fe(t, "sep"), i = Fe(t, "equalWidth"), a =
|
|
8956
|
+
const n = Ke(Fe(t, "space"), 0), o = Fe(t, "sep"), i = Fe(t, "equalWidth"), a = Ce(t, Ne, "col").map((e) => ({
|
|
8957
8957
|
width: Ke(Fe(e, "w"), 0),
|
|
8958
8958
|
space: Ke(Fe(e, "space"), n)
|
|
8959
8959
|
})), s = null == i || Yt(i);
|
|
@@ -8993,7 +8993,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
8993
8993
|
}
|
|
8994
8994
|
const d = (t) => {
|
|
8995
8995
|
const r = {};
|
|
8996
|
-
for (const n of
|
|
8996
|
+
for (const n of Ce(e, Ne, t)) {
|
|
8997
8997
|
const e = n.getAttributeNS("http://schemas.openxmlformats.org/wordprocessingml/2006/main", "type") || "default";
|
|
8998
8998
|
if ("default" !== e && "first" !== e && "even" !== e) continue;
|
|
8999
8999
|
const t = n.getAttributeNS("http://schemas.openxmlformats.org/officeDocument/2006/relationships", "id");
|
|
@@ -9011,11 +9011,11 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9011
9011
|
...o ? { chapterSeparator: o } : {}
|
|
9012
9012
|
});
|
|
9013
9013
|
}
|
|
9014
|
-
const x = Fe(De(e, Ne, "vAlign"), "val"),
|
|
9014
|
+
const x = Fe(De(e, Ne, "vAlign"), "val"), S = "center" === x || "both" === x || "bottom" === x ? x : void 0, E = Be(e, "bidi"), N = De(e, Ne, "sectPrChange"), k = pt(N), T = De(N, Ne, "sectPr"), _ = k && T ? {
|
|
9015
9015
|
...k,
|
|
9016
9016
|
type: "property",
|
|
9017
|
-
previous: (I = Kt(T),
|
|
9018
|
-
pageSettings: I.pageSettings ??
|
|
9017
|
+
previous: (I = Kt(T), C = u, {
|
|
9018
|
+
pageSettings: I.pageSettings ?? C ?? Zt,
|
|
9019
9019
|
...I.pageBorder ? { pageBorder: I.pageBorder } : {},
|
|
9020
9020
|
...I.pageNumbering ? { pageNumbering: I.pageNumbering } : {},
|
|
9021
9021
|
...I.verticalAlignment ? { verticalAlignment: I.verticalAlignment } : {},
|
|
@@ -9023,7 +9023,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9023
9023
|
...I.breakType ? { nextBreakType: I.breakType } : {}
|
|
9024
9024
|
})
|
|
9025
9025
|
} : void 0;
|
|
9026
|
-
var I,
|
|
9026
|
+
var I, C;
|
|
9027
9027
|
return {
|
|
9028
9028
|
pageSettings: u,
|
|
9029
9029
|
...c ? { pageBorder: c } : {},
|
|
@@ -9034,8 +9034,8 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9034
9034
|
docGridType: m,
|
|
9035
9035
|
breakType: b,
|
|
9036
9036
|
pageNumbering: y,
|
|
9037
|
-
verticalAlignment:
|
|
9038
|
-
bidi:
|
|
9037
|
+
verticalAlignment: S,
|
|
9038
|
+
bidi: E,
|
|
9039
9039
|
propertyRevision: _
|
|
9040
9040
|
};
|
|
9041
9041
|
}
|
|
@@ -9143,7 +9143,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9143
9143
|
relativeHeight: t.getAttribute("relativeHeight") || void 0
|
|
9144
9144
|
};
|
|
9145
9145
|
}
|
|
9146
|
-
function
|
|
9146
|
+
function Sr(e, t, r) {
|
|
9147
9147
|
const n = [], o = [], i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set(), s = r.map((e) => ({
|
|
9148
9148
|
ownerPath: t,
|
|
9149
9149
|
id: e
|
|
@@ -9191,7 +9191,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9191
9191
|
issues: o
|
|
9192
9192
|
};
|
|
9193
9193
|
}
|
|
9194
|
-
function
|
|
9194
|
+
function Er(e, t) {
|
|
9195
9195
|
if (t === e.mainDocumentPart) return !0;
|
|
9196
9196
|
const r = e.parts[t]?.contentType ?? "";
|
|
9197
9197
|
return /wordprocessingml\.(?:header|footer|footnotes|endnotes|comments|document\.glossary)\+xml$/.test(r);
|
|
@@ -9231,7 +9231,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9231
9231
|
const t = [], r = [];
|
|
9232
9232
|
for (const o of Object.keys(e.parts).sort(hr)) {
|
|
9233
9233
|
const i = e.parts[o];
|
|
9234
|
-
if (
|
|
9234
|
+
if (Er(e, o) && "xml" === i.kind && /<(?:[\w.-]+:)?(?:drawing|pict|object)(?=[\s/>])/.test(i.data)) try {
|
|
9235
9235
|
if (/<!\s*(?:DOCTYPE|ENTITY)\b/i.test(i.data)) throw Error("DTD/entity declaration unsupported");
|
|
9236
9236
|
const n = new b.DOMParser().parseFromString(i.data, "application/xml").documentElement;
|
|
9237
9237
|
if (!n) throw Error("Missing story root");
|
|
@@ -9243,7 +9243,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9243
9243
|
a.push(...Nr(n).reverse());
|
|
9244
9244
|
continue;
|
|
9245
9245
|
}
|
|
9246
|
-
const l = wr(n), c =
|
|
9246
|
+
const l = wr(n), c = Sr(e, o, l), u = {
|
|
9247
9247
|
kind: i,
|
|
9248
9248
|
ownerPath: o,
|
|
9249
9249
|
ordinal: s++,
|
|
@@ -9280,7 +9280,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9280
9280
|
super("DOCX export blocked: opaque object preservation could not be established (" + e.length + " diagnostics)."), this.diagnostics = e, this.name = "OpaqueObjectPreservationError";
|
|
9281
9281
|
}
|
|
9282
9282
|
};
|
|
9283
|
-
const
|
|
9283
|
+
const Cr = [
|
|
9284
9284
|
{
|
|
9285
9285
|
id: "decimal",
|
|
9286
9286
|
label: "1, 2, 3, …"
|
|
@@ -9306,11 +9306,98 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9306
9306
|
label: "1st, 2nd, 3rd, …"
|
|
9307
9307
|
}
|
|
9308
9308
|
];
|
|
9309
|
-
|
|
9310
|
-
|
|
9309
|
+
const Ar = (e) => /\s/u.test(e);
|
|
9310
|
+
function Rr(e) {
|
|
9311
|
+
const t = function(e) {
|
|
9312
|
+
const t = [], r = (r) => ({
|
|
9313
|
+
raw: e,
|
|
9314
|
+
command: null,
|
|
9315
|
+
tokens: t,
|
|
9316
|
+
error: r
|
|
9317
|
+
});
|
|
9318
|
+
if (e.length > 65536) return r("length-limit");
|
|
9319
|
+
let n = 0;
|
|
9320
|
+
for (; n < e.length;) {
|
|
9321
|
+
if (Ar(e[n])) {
|
|
9322
|
+
n++;
|
|
9323
|
+
continue;
|
|
9324
|
+
}
|
|
9325
|
+
if (t.length >= 4096) return r("token-limit");
|
|
9326
|
+
const o = n;
|
|
9327
|
+
let i = "word", a = "";
|
|
9328
|
+
if ("\"" === e[n]) {
|
|
9329
|
+
i = "quoted", n++;
|
|
9330
|
+
let t = !1;
|
|
9331
|
+
for (; n < e.length;) {
|
|
9332
|
+
const r = e[n++];
|
|
9333
|
+
if ("\"" === r) {
|
|
9334
|
+
t = !0;
|
|
9335
|
+
break;
|
|
9336
|
+
}
|
|
9337
|
+
"\\" !== r || "\"" !== e[n] && "\\" !== e[n] ? a += r : a += e[n++];
|
|
9338
|
+
}
|
|
9339
|
+
if (!t) return r("unterminated-quote");
|
|
9340
|
+
if (n < e.length && !Ar(e[n]) && "\\" !== e[n]) return r("adjacent-quote");
|
|
9341
|
+
} else if ("\\" === e[n]) {
|
|
9342
|
+
i = "switch", n++;
|
|
9343
|
+
const t = e[n];
|
|
9344
|
+
if (!t || !/[A-Za-z*@#!]/.test(t)) return r("invalid-switch");
|
|
9345
|
+
if (n++, a = t, n < e.length && !Ar(e[n]) && "\"" !== e[n] && "\\" !== e[n]) for (; n < e.length && !Ar(e[n]) && "\"" !== e[n] && "\\" !== e[n];) a += e[n++];
|
|
9346
|
+
} else {
|
|
9347
|
+
for (; n < e.length && !Ar(e[n]) && "\\" !== e[n] && "\"" !== e[n];) n++;
|
|
9348
|
+
if ("\"" === e[n]) return r("adjacent-quote");
|
|
9349
|
+
a = e.slice(o, n);
|
|
9350
|
+
}
|
|
9351
|
+
t.push({
|
|
9352
|
+
kind: i,
|
|
9353
|
+
raw: e.slice(o, n),
|
|
9354
|
+
value: a,
|
|
9355
|
+
start: o,
|
|
9356
|
+
end: n
|
|
9357
|
+
});
|
|
9358
|
+
}
|
|
9359
|
+
const o = t[0];
|
|
9360
|
+
return o && "word" === o.kind && /^(?:[A-Za-z][A-Za-z0-9]*|=)$/.test(o.value) ? {
|
|
9361
|
+
raw: e,
|
|
9362
|
+
command: o.value.toUpperCase(),
|
|
9363
|
+
tokens: t
|
|
9364
|
+
} : r("missing-command");
|
|
9365
|
+
}(e);
|
|
9366
|
+
if (t.error) return;
|
|
9367
|
+
const r = t.tokens.slice(1), n = t.command;
|
|
9368
|
+
if ("PAGE" === n || "NUMPAGES" === n) {
|
|
9369
|
+
if (!r.length) return { type: n };
|
|
9370
|
+
if (2 !== r.length || "switch" !== r[0].kind || "*" !== r[0].value || "word" !== r[1].kind) return;
|
|
9371
|
+
const e = function(e) {
|
|
9372
|
+
if (e) return Cr.find((t) => t.id === e)?.id;
|
|
9373
|
+
}(r[1].value);
|
|
9374
|
+
return e ? {
|
|
9375
|
+
type: n,
|
|
9376
|
+
format: e
|
|
9377
|
+
} : void 0;
|
|
9378
|
+
}
|
|
9379
|
+
if ("DATE" === n) {
|
|
9380
|
+
if (!r.length) return { type: n };
|
|
9381
|
+
if (2 !== r.length || "switch" !== r[0].kind || "@" !== r[0].value || "quoted" !== r[1].kind) return;
|
|
9382
|
+
const e = r[1].value;
|
|
9383
|
+
if (!e || /["\\]/.test(e)) return;
|
|
9384
|
+
return {
|
|
9385
|
+
type: n,
|
|
9386
|
+
dateFormat: e
|
|
9387
|
+
};
|
|
9388
|
+
}
|
|
9389
|
+
if ("REF" === n || "PAGEREF" === n) {
|
|
9390
|
+
const e = r[0];
|
|
9391
|
+
if (!e || "switch" === e.kind || !e.value || /["\\]/.test(e.value)) return;
|
|
9392
|
+
if (1 !== r.length && (2 !== r.length || "switch" !== r[1].kind || "h" !== r[1].value.toLowerCase())) return;
|
|
9393
|
+
return {
|
|
9394
|
+
type: n,
|
|
9395
|
+
bookmark: e.value
|
|
9396
|
+
};
|
|
9397
|
+
}
|
|
9311
9398
|
}
|
|
9312
|
-
const
|
|
9313
|
-
function
|
|
9399
|
+
const Dr = new b.XMLSerializer();
|
|
9400
|
+
function $r(e, t) {
|
|
9314
9401
|
const r = [];
|
|
9315
9402
|
for (let n = 0; n < e.childNodes.length; n += 1) {
|
|
9316
9403
|
const o = e.childNodes[n];
|
|
@@ -9318,23 +9405,23 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9318
9405
|
}
|
|
9319
9406
|
return r;
|
|
9320
9407
|
}
|
|
9321
|
-
function $r(e, t) {
|
|
9322
|
-
return Dr(e, t)[0];
|
|
9323
|
-
}
|
|
9324
9408
|
function Pr(e, t) {
|
|
9409
|
+
return $r(e, t)[0];
|
|
9410
|
+
}
|
|
9411
|
+
function Fr(e, t) {
|
|
9325
9412
|
return e?.getAttributeNS("http://schemas.openxmlformats.org/officeDocument/2006/math", t) ?? e?.getAttribute(`m:${t}`) ?? e?.getAttribute(t) ?? void 0;
|
|
9326
9413
|
}
|
|
9327
|
-
function
|
|
9328
|
-
return e ?
|
|
9414
|
+
function Or(e) {
|
|
9415
|
+
return e ? $r(e).map(Mr) : [];
|
|
9329
9416
|
}
|
|
9330
9417
|
function Mr(e) {
|
|
9331
9418
|
switch (e.localName) {
|
|
9332
9419
|
case "r": return function(e) {
|
|
9333
|
-
const t =
|
|
9334
|
-
|
|
9335
|
-
|
|
9336
|
-
|
|
9337
|
-
|
|
9420
|
+
const t = Pr(e, "t")?.textContent ?? "", r = Pr(e, "rPr"), n = r ? {
|
|
9421
|
+
...Pr(r, "sty") ? { script: Fr(Pr(r, "sty"), "val") } : {},
|
|
9422
|
+
...Pr(r, "nor") ? { normalText: !0 } : {},
|
|
9423
|
+
...Pr(r, "b") ? { bold: "0" !== Fr(Pr(r, "b"), "val") } : {},
|
|
9424
|
+
...Pr(r, "i") ? { italic: "0" !== Fr(Pr(r, "i"), "val") } : {}
|
|
9338
9425
|
} : void 0;
|
|
9339
9426
|
return {
|
|
9340
9427
|
kind: "text",
|
|
@@ -9344,18 +9431,18 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9344
9431
|
}(e);
|
|
9345
9432
|
case "f": return {
|
|
9346
9433
|
kind: "fraction",
|
|
9347
|
-
numerator:
|
|
9348
|
-
denominator:
|
|
9434
|
+
numerator: Or(Pr(e, "num")),
|
|
9435
|
+
denominator: Or(Pr(e, "den"))
|
|
9349
9436
|
};
|
|
9350
9437
|
case "rad": return {
|
|
9351
9438
|
kind: "radical",
|
|
9352
|
-
radicand:
|
|
9353
|
-
|
|
9439
|
+
radicand: Or(Pr(e, "e")),
|
|
9440
|
+
...Pr(e, "deg") ? { degree: Or(Pr(e, "deg")) } : {}
|
|
9354
9441
|
};
|
|
9355
9442
|
case "sSub":
|
|
9356
9443
|
case "sSup":
|
|
9357
9444
|
case "sSubSup": return function(e, t) {
|
|
9358
|
-
const r =
|
|
9445
|
+
const r = Or(Pr(e, "e")), n = Or(Pr(e, "sub")), o = Or(Pr(e, "sup"));
|
|
9359
9446
|
return {
|
|
9360
9447
|
kind: t,
|
|
9361
9448
|
base: r,
|
|
@@ -9364,85 +9451,85 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9364
9451
|
};
|
|
9365
9452
|
}(e, "script");
|
|
9366
9453
|
case "d": {
|
|
9367
|
-
const t =
|
|
9454
|
+
const t = Pr(e, "dPr");
|
|
9368
9455
|
return {
|
|
9369
9456
|
kind: "delimiter",
|
|
9370
|
-
children:
|
|
9371
|
-
...Pr(
|
|
9372
|
-
...Pr(
|
|
9373
|
-
...Pr(
|
|
9374
|
-
grow: "0" !== Pr(
|
|
9457
|
+
children: $r(e, "e").map(Or),
|
|
9458
|
+
...Fr(Pr(t, "begChr"), "val") ? { begin: Fr(Pr(t, "begChr"), "val") } : {},
|
|
9459
|
+
...Fr(Pr(t, "endChr"), "val") ? { end: Fr(Pr(t, "endChr"), "val") } : {},
|
|
9460
|
+
...Fr(Pr(t, "sepChr"), "val") ? { separator: Fr(Pr(t, "sepChr"), "val") } : {},
|
|
9461
|
+
grow: "0" !== Fr(Pr(t, "grow"), "val")
|
|
9375
9462
|
};
|
|
9376
9463
|
}
|
|
9377
9464
|
case "acc": return {
|
|
9378
9465
|
kind: "accent",
|
|
9379
|
-
accent: Pr(
|
|
9380
|
-
children:
|
|
9466
|
+
accent: Fr(Pr(Pr(e, "accPr"), "chr"), "val") ?? "¯",
|
|
9467
|
+
children: Or(Pr(e, "e"))
|
|
9381
9468
|
};
|
|
9382
9469
|
case "nary": {
|
|
9383
|
-
const t =
|
|
9470
|
+
const t = Pr(e, "naryPr");
|
|
9384
9471
|
return {
|
|
9385
9472
|
kind: "nary",
|
|
9386
|
-
operator: Pr(
|
|
9387
|
-
children:
|
|
9388
|
-
|
|
9389
|
-
|
|
9390
|
-
grow: "0" !== Pr(
|
|
9473
|
+
operator: Fr(Pr(t, "chr"), "val") ?? "∑",
|
|
9474
|
+
children: Or(Pr(e, "e")),
|
|
9475
|
+
...$r(e, "sub").length > 0 ? { subscript: Or(Pr(e, "sub")) } : {},
|
|
9476
|
+
...$r(e, "sup").length > 0 ? { superscript: Or(Pr(e, "sup")) } : {},
|
|
9477
|
+
grow: "0" !== Fr(Pr(t, "grow"), "val")
|
|
9391
9478
|
};
|
|
9392
9479
|
}
|
|
9393
9480
|
case "limLow": return {
|
|
9394
9481
|
kind: "limit",
|
|
9395
9482
|
operator: "low",
|
|
9396
|
-
base:
|
|
9397
|
-
limit:
|
|
9483
|
+
base: Or(Pr(e, "e")),
|
|
9484
|
+
limit: Or(Pr(e, "lim"))
|
|
9398
9485
|
};
|
|
9399
9486
|
case "limUpp": return {
|
|
9400
9487
|
kind: "limit",
|
|
9401
9488
|
operator: "upper",
|
|
9402
|
-
base:
|
|
9403
|
-
limit:
|
|
9489
|
+
base: Or(Pr(e, "e")),
|
|
9490
|
+
limit: Or(Pr(e, "lim"))
|
|
9404
9491
|
};
|
|
9405
9492
|
case "m": return {
|
|
9406
9493
|
kind: "matrix",
|
|
9407
|
-
rows:
|
|
9494
|
+
rows: $r(e, "mr").map((e) => $r(e, "e").map(Or))
|
|
9408
9495
|
};
|
|
9409
9496
|
case "box":
|
|
9410
9497
|
case "borderBox": return {
|
|
9411
9498
|
kind: "box",
|
|
9412
|
-
children:
|
|
9499
|
+
children: Or(Pr(e, "e")),
|
|
9413
9500
|
border: !0
|
|
9414
9501
|
};
|
|
9415
9502
|
case "phant": return {
|
|
9416
9503
|
kind: "box",
|
|
9417
|
-
children:
|
|
9504
|
+
children: Or(Pr(e, "e")),
|
|
9418
9505
|
hidden: !0
|
|
9419
9506
|
};
|
|
9420
9507
|
case "groupChr": return {
|
|
9421
9508
|
kind: "accent",
|
|
9422
|
-
accent: Pr(
|
|
9423
|
-
children:
|
|
9509
|
+
accent: Fr(Pr(Pr(e, "groupChrPr"), "chr"), "val") ?? "¯",
|
|
9510
|
+
children: Or(Pr(e, "e"))
|
|
9424
9511
|
};
|
|
9425
9512
|
case "func": return {
|
|
9426
9513
|
kind: "group",
|
|
9427
|
-
children: [...
|
|
9514
|
+
children: [...Or(Pr(e, "fName")), ...Or(Pr(e, "e"))]
|
|
9428
9515
|
};
|
|
9429
9516
|
default: return {
|
|
9430
9517
|
kind: "raw",
|
|
9431
|
-
xml:
|
|
9518
|
+
xml: Dr.serializeToString(e),
|
|
9432
9519
|
fallbackText: e.textContent ?? ""
|
|
9433
9520
|
};
|
|
9434
9521
|
}
|
|
9435
9522
|
}
|
|
9436
|
-
function
|
|
9437
|
-
const t = "oMathPara" === e.localName ?
|
|
9523
|
+
function Lr(e) {
|
|
9524
|
+
const t = "oMathPara" === e.localName ? Pr(e, "oMath") : e;
|
|
9438
9525
|
return {
|
|
9439
9526
|
version: 1,
|
|
9440
|
-
children: t ?
|
|
9527
|
+
children: t ? $r(t).map(Mr) : [],
|
|
9441
9528
|
display: "oMathPara" === e.localName,
|
|
9442
|
-
sourceXml:
|
|
9529
|
+
sourceXml: Dr.serializeToString(e)
|
|
9443
9530
|
};
|
|
9444
9531
|
}
|
|
9445
|
-
const
|
|
9532
|
+
const Br = /* @__PURE__ */ new Set([
|
|
9446
9533
|
"alias",
|
|
9447
9534
|
"tag",
|
|
9448
9535
|
"id",
|
|
@@ -9465,8 +9552,8 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9465
9552
|
"equation",
|
|
9466
9553
|
"citation",
|
|
9467
9554
|
"bibliography"
|
|
9468
|
-
]),
|
|
9469
|
-
function
|
|
9555
|
+
]), Ur = /* @__PURE__ */ new Set(["repeatingSection", "repeatingSectionItem"]);
|
|
9556
|
+
function zr(e) {
|
|
9470
9557
|
if (!e) return {};
|
|
9471
9558
|
const t = {}, r = De(e, Ne, "alias");
|
|
9472
9559
|
if (r) {
|
|
@@ -9539,7 +9626,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9539
9626
|
const e = De(t, Ne, "lastSelectedValue");
|
|
9540
9627
|
return {
|
|
9541
9628
|
kind: "comboBox",
|
|
9542
|
-
listItems:
|
|
9629
|
+
listItems: Hr(t),
|
|
9543
9630
|
...e ? { lastSelectedValue: Fe(e, "val") ?? void 0 } : {}
|
|
9544
9631
|
};
|
|
9545
9632
|
}
|
|
@@ -9548,7 +9635,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9548
9635
|
const e = De(r, Ne, "lastSelectedValue");
|
|
9549
9636
|
return {
|
|
9550
9637
|
kind: "dropDownList",
|
|
9551
|
-
listItems:
|
|
9638
|
+
listItems: Hr(r),
|
|
9552
9639
|
...e ? { lastSelectedValue: Fe(e, "val") ?? void 0 } : {}
|
|
9553
9640
|
};
|
|
9554
9641
|
}
|
|
@@ -9608,21 +9695,21 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9608
9695
|
for (let r = 0; r < e.childNodes.length; r += 1) {
|
|
9609
9696
|
const n = e.childNodes[r];
|
|
9610
9697
|
if (n?.nodeType !== n.ELEMENT_NODE) continue;
|
|
9611
|
-
const o = n, i = o.localName && "http://schemas.openxmlformats.org/wordprocessingml/2006/main" === o.namespaceURI &&
|
|
9698
|
+
const o = n, i = o.localName && "http://schemas.openxmlformats.org/wordprocessingml/2006/main" === o.namespaceURI && Br.has(o.localName), a = o.localName && "http://schemas.microsoft.com/office/word/2012/wordml" === o.namespaceURI && Ur.has(o.localName);
|
|
9612
9699
|
i || a || (t += new b.XMLSerializer().serializeToString(o));
|
|
9613
9700
|
}
|
|
9614
9701
|
return t;
|
|
9615
9702
|
}(e);
|
|
9616
9703
|
return f.length > 0 && (t.unknownXml = f), t;
|
|
9617
9704
|
}
|
|
9618
|
-
function
|
|
9619
|
-
const t =
|
|
9705
|
+
function Hr(e) {
|
|
9706
|
+
const t = Ce(e, Ne, "listItem");
|
|
9620
9707
|
if (0 !== t.length) return t.map((e) => ({
|
|
9621
9708
|
displayText: Fe(e, "displayText") ?? void 0,
|
|
9622
9709
|
value: Fe(e, "value") ?? void 0
|
|
9623
9710
|
}));
|
|
9624
9711
|
}
|
|
9625
|
-
const
|
|
9712
|
+
const jr = new Set(Object.keys({
|
|
9626
9713
|
solid: [],
|
|
9627
9714
|
dot: [.75, 2.25],
|
|
9628
9715
|
sysDot: [.75, .75],
|
|
@@ -9650,10 +9737,10 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9650
9737
|
2.25
|
|
9651
9738
|
]
|
|
9652
9739
|
}));
|
|
9653
|
-
function
|
|
9654
|
-
return e &&
|
|
9740
|
+
function qr(e) {
|
|
9741
|
+
return e && jr.has(e) ? e : void 0;
|
|
9655
9742
|
}
|
|
9656
|
-
const
|
|
9743
|
+
const Wr = {
|
|
9657
9744
|
aliceblue: "F0F8FF",
|
|
9658
9745
|
antiquewhite: "FAEBD7",
|
|
9659
9746
|
aqua: "00FFFF",
|
|
@@ -9802,22 +9889,22 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9802
9889
|
whitesmoke: "F5F5F5",
|
|
9803
9890
|
yellow: "FFFF00",
|
|
9804
9891
|
yellowgreen: "9ACD32"
|
|
9805
|
-
},
|
|
9892
|
+
}, Xr = /^[0-9a-fA-F]{6}$/;
|
|
9806
9893
|
function Gr(e) {
|
|
9807
9894
|
return e.trim().replace(/^#/, "");
|
|
9808
9895
|
}
|
|
9809
|
-
function
|
|
9896
|
+
function Vr(e) {
|
|
9810
9897
|
if (!e) return null;
|
|
9811
9898
|
const t = Gr(e);
|
|
9812
|
-
return
|
|
9899
|
+
return Xr.test(t) ? t.toUpperCase() : null;
|
|
9813
9900
|
}
|
|
9814
|
-
function
|
|
9815
|
-
const t =
|
|
9901
|
+
function Zr(e) {
|
|
9902
|
+
const t = Vr(e);
|
|
9816
9903
|
if (t) return t;
|
|
9817
9904
|
const r = e?.trim();
|
|
9818
9905
|
if (!r) return null;
|
|
9819
9906
|
const n = r.toLowerCase();
|
|
9820
|
-
if (Object.hasOwn(
|
|
9907
|
+
if (Object.hasOwn(Wr, n)) return Wr[n];
|
|
9821
9908
|
const o = r.match(/^#([\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$/i)?.[1];
|
|
9822
9909
|
if (o) {
|
|
9823
9910
|
const e = o.length <= 4 ? [...o].map((e) => e + e).join("") : o;
|
|
@@ -9856,16 +9943,16 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9856
9943
|
return `#${n(e)}${n(t)}${n(r)}`;
|
|
9857
9944
|
}(c[0], c[1], c[2]).slice(1).toUpperCase();
|
|
9858
9945
|
}
|
|
9859
|
-
function
|
|
9860
|
-
const t =
|
|
9946
|
+
function Yr(e) {
|
|
9947
|
+
const t = Qr(e);
|
|
9861
9948
|
return void 0 === t ? void 0 : Math.round(t / I);
|
|
9862
9949
|
}
|
|
9863
|
-
function
|
|
9950
|
+
function Qr(e) {
|
|
9864
9951
|
if (null == e || "" === e) return;
|
|
9865
9952
|
const t = parseInt(e, 10);
|
|
9866
9953
|
return Number.isFinite(t) ? t : void 0;
|
|
9867
9954
|
}
|
|
9868
|
-
function
|
|
9955
|
+
function Kr(e) {
|
|
9869
9956
|
const t = e?.trim();
|
|
9870
9957
|
if (!t) return null;
|
|
9871
9958
|
const r = t.match(/^(-?\d+(?:\.\d+)?)(pt|px|in|cm|mm|pc)?$/i);
|
|
@@ -9881,11 +9968,11 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9881
9968
|
default: return Math.round(n);
|
|
9882
9969
|
}
|
|
9883
9970
|
}
|
|
9884
|
-
function
|
|
9885
|
-
const t =
|
|
9971
|
+
function Jr(e) {
|
|
9972
|
+
const t = Vr(e);
|
|
9886
9973
|
return t ? `#${t}` : void 0;
|
|
9887
9974
|
}
|
|
9888
|
-
function
|
|
9975
|
+
function en(e) {
|
|
9889
9976
|
for (let t = 0; t < e.childNodes.length; t += 1) {
|
|
9890
9977
|
const r = e.childNodes[t];
|
|
9891
9978
|
if (r?.nodeType !== r.ELEMENT_NODE) continue;
|
|
@@ -9896,28 +9983,28 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9896
9983
|
};
|
|
9897
9984
|
}
|
|
9898
9985
|
}
|
|
9899
|
-
function
|
|
9986
|
+
function tn(e) {
|
|
9900
9987
|
return "1" === e || "true" === e || "0" !== e && "false" !== e && void 0;
|
|
9901
9988
|
}
|
|
9902
|
-
function
|
|
9903
|
-
const r =
|
|
9989
|
+
function rn(e, t) {
|
|
9990
|
+
const r = Oe(e, t);
|
|
9904
9991
|
if (!r) return;
|
|
9905
|
-
const n =
|
|
9992
|
+
const n = Oe(r, "align")?.textContent?.trim(), o = Oe(r, "posOffset")?.textContent?.trim(), i = Qr(o), a = {
|
|
9906
9993
|
relativeFrom: r.getAttribute("relativeFrom") ?? void 0,
|
|
9907
9994
|
...n ? { align: n } : {},
|
|
9908
9995
|
...void 0 !== i ? { offset: i } : {}
|
|
9909
9996
|
};
|
|
9910
9997
|
return void 0 !== a.relativeFrom || void 0 !== a.align || void 0 !== a.offset ? a : void 0;
|
|
9911
9998
|
}
|
|
9912
|
-
function
|
|
9913
|
-
const t =
|
|
9914
|
-
return
|
|
9999
|
+
function nn(e) {
|
|
10000
|
+
const t = rn(e, "positionH"), r = rn(e, "positionV"), n = function(e) {
|
|
10001
|
+
return Oe(e, "wrapSquare") ? "square" : Oe(e, "wrapTight") ? "tight" : Oe(e, "wrapThrough") ? "through" : Oe(e, "wrapTopAndBottom") ? "topAndBottom" : Oe(e, "wrapNone") ? "none" : void 0;
|
|
9915
10002
|
}(e), o = function(e) {
|
|
9916
|
-
const t =
|
|
10003
|
+
const t = Oe(e, "wrapSquare") ?? Oe(e, "wrapTight") ?? Oe(e, "wrapThrough");
|
|
9917
10004
|
if (!t) return;
|
|
9918
10005
|
const r = t.getAttribute("wrapText");
|
|
9919
10006
|
return !r || "bothSides" === r || "left" !== r && "right" !== r && "largest" !== r && "bothSides" !== r ? void 0 : r;
|
|
9920
|
-
}(e), i =
|
|
10007
|
+
}(e), i = Qr(e.getAttribute("distT")), a = Qr(e.getAttribute("distB")), s = Qr(e.getAttribute("distL")), l = Qr(e.getAttribute("distR")), c = tn(e.getAttribute("simplePos")), u = Qr(e.getAttribute("relativeHeight")), d = tn(e.getAttribute("behindDoc")), p = tn(e.getAttribute("locked")), f = tn(e.getAttribute("layoutInCell")), h = tn(e.getAttribute("allowOverlap"));
|
|
9921
10008
|
return {
|
|
9922
10009
|
type: "floating",
|
|
9923
10010
|
...void 0 !== i ? { distT: i } : {},
|
|
@@ -9936,8 +10023,8 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9936
10023
|
...o ? { wrapText: o } : {}
|
|
9937
10024
|
};
|
|
9938
10025
|
}
|
|
9939
|
-
async function
|
|
9940
|
-
const o =
|
|
10026
|
+
async function on(e, t, r, n) {
|
|
10027
|
+
const o = Oe(e, "blip");
|
|
9941
10028
|
if (!o) return {
|
|
9942
10029
|
text: "",
|
|
9943
10030
|
image: void 0
|
|
@@ -9949,14 +10036,14 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9949
10036
|
n && ("embed" === n.localName || "r:embed" === n.name ? t.embed = n.value : "link" !== n.localName && "r:link" !== n.name || (t.link = n.value));
|
|
9950
10037
|
}
|
|
9951
10038
|
return t;
|
|
9952
|
-
}(o), s =
|
|
10039
|
+
}(o), s = en(e), l = s?.element ?? e, c = Oe(l, "extent"), u = Oe(l, "docPr");
|
|
9953
10040
|
let d = 300, p = 300;
|
|
9954
10041
|
if (c) {
|
|
9955
10042
|
const e = c.getAttribute("cx"), t = c.getAttribute("cy");
|
|
9956
10043
|
e && (d = Math.round(parseInt(e, 10) / I)), t && (p = Math.round(parseInt(t, 10) / I));
|
|
9957
10044
|
}
|
|
9958
10045
|
const f = u ? Fe(u, "descr") ?? Fe(u, "title") : null, h = function(e) {
|
|
9959
|
-
const t =
|
|
10046
|
+
const t = Oe(e, "srcRect");
|
|
9960
10047
|
if (!t) return;
|
|
9961
10048
|
const r = (e) => {
|
|
9962
10049
|
const r = t.getAttribute(e);
|
|
@@ -9971,7 +10058,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9971
10058
|
};
|
|
9972
10059
|
return void 0 !== n.left || void 0 !== n.top || void 0 !== n.right || void 0 !== n.bottom ? n : void 0;
|
|
9973
10060
|
}(e), m = function(e) {
|
|
9974
|
-
const t =
|
|
10061
|
+
const t = Oe(e, "pic"), r = t && Oe(t, "spPr");
|
|
9975
10062
|
if (!r) return;
|
|
9976
10063
|
let n = null;
|
|
9977
10064
|
for (let l = 0; l < r.childNodes.length; l += 1) {
|
|
@@ -9998,30 +10085,30 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9998
10085
|
};
|
|
9999
10086
|
return Object.keys(i).length > 0 && (s.adjustments = i), s;
|
|
10000
10087
|
}(e), g = function(e) {
|
|
10001
|
-
if (
|
|
10088
|
+
if (Oe(e, "tile")) return "tile";
|
|
10002
10089
|
}(e), w = function(e) {
|
|
10003
|
-
const t =
|
|
10090
|
+
const t = Oe(e, "pic"), r = t && Oe(t, "spPr");
|
|
10004
10091
|
if (r) for (let n = 0; n < r.childNodes.length; n += 1) {
|
|
10005
10092
|
const e = r.childNodes[n];
|
|
10006
10093
|
if (1 !== e?.nodeType) continue;
|
|
10007
10094
|
const t = e;
|
|
10008
10095
|
if ("ln" !== t.localName) continue;
|
|
10009
|
-
const o =
|
|
10096
|
+
const o = Jr(Oe(t, "srgbClr")?.getAttribute("val"));
|
|
10010
10097
|
if (!o) return;
|
|
10011
|
-
const i = { color: o }, a =
|
|
10012
|
-
void 0 !== a && (i.widthPt = Qe(a /
|
|
10013
|
-
const s =
|
|
10098
|
+
const i = { color: o }, a = Qr(t.getAttribute("w"));
|
|
10099
|
+
void 0 !== a && (i.widthPt = Qe(a / C, 2));
|
|
10100
|
+
const s = qr(Oe(t, "prstDash")?.getAttribute("val"));
|
|
10014
10101
|
return s && (i.dash = s), i;
|
|
10015
10102
|
}
|
|
10016
10103
|
}(e), v = function(e) {
|
|
10017
|
-
const t =
|
|
10104
|
+
const t = Oe(e, "alphaModFix");
|
|
10018
10105
|
if (!t) return;
|
|
10019
10106
|
const r = t.getAttribute("amt");
|
|
10020
10107
|
if (null === r || "" === r) return;
|
|
10021
10108
|
const n = parseInt(r, 10);
|
|
10022
10109
|
return Number.isFinite(n) ? Math.round(1e3 * (1 - Math.max(0, Math.min(R, n)) / R)) / 1e3 : void 0;
|
|
10023
10110
|
}(e), y = function(e) {
|
|
10024
|
-
const t =
|
|
10111
|
+
const t = Oe(e, "xfrm");
|
|
10025
10112
|
if (!t) return {};
|
|
10026
10113
|
const r = {}, n = t.getAttribute("rot");
|
|
10027
10114
|
if (n) {
|
|
@@ -10032,8 +10119,8 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10032
10119
|
"1" !== o && "true" !== o || (r.flipH = !0);
|
|
10033
10120
|
const i = t.getAttribute("flipV");
|
|
10034
10121
|
return "1" !== i && "true" !== i || (r.flipV = !0), r;
|
|
10035
|
-
}(e), x = "anchor" === s?.kind ?
|
|
10036
|
-
const t =
|
|
10122
|
+
}(e), x = "anchor" === s?.kind ? nn(s.element) : void 0, S = "anchor" === s?.kind ? function(e) {
|
|
10123
|
+
const t = Oe(e, "wrapPolygon");
|
|
10037
10124
|
if (!t) return;
|
|
10038
10125
|
const r = [];
|
|
10039
10126
|
for (let n = 0; n < t.childNodes.length; n += 1) {
|
|
@@ -10041,7 +10128,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10041
10128
|
if (1 !== e?.nodeType) continue;
|
|
10042
10129
|
const o = e;
|
|
10043
10130
|
if ("start" !== o.localName && "lineTo" !== o.localName) continue;
|
|
10044
|
-
const i =
|
|
10131
|
+
const i = Qr(o.getAttribute("x")), a = Qr(o.getAttribute("y"));
|
|
10045
10132
|
void 0 !== i && void 0 !== a && r.push({
|
|
10046
10133
|
x: i / 21600,
|
|
10047
10134
|
y: a / 21600
|
|
@@ -10052,7 +10139,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10052
10139
|
Math.abs(e.x - t.x) < 1e-6 && Math.abs(e.y - t.y) < 1e-6 && r.pop();
|
|
10053
10140
|
}
|
|
10054
10141
|
return r.length >= 3 ? r : void 0;
|
|
10055
|
-
}(s.element) : void 0,
|
|
10142
|
+
}(s.element) : void 0, E = {
|
|
10056
10143
|
width: d,
|
|
10057
10144
|
height: p,
|
|
10058
10145
|
...null !== f ? { alt: f } : {},
|
|
@@ -10068,7 +10155,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10068
10155
|
...y.flipH ? { flipH: !0 } : {},
|
|
10069
10156
|
...y.flipV ? { flipV: !0 } : {},
|
|
10070
10157
|
...x ? { floating: x } : {},
|
|
10071
|
-
...
|
|
10158
|
+
...S ? { wrapPolygon: S } : {}
|
|
10072
10159
|
}, N = i ? r.get(i) : void 0, k = a ? r.get(a) : void 0;
|
|
10073
10160
|
if (k && function(e) {
|
|
10074
10161
|
return /^[a-z][a-z0-9+.-]*:\/\//i.test(e) || e.startsWith("//");
|
|
@@ -10077,7 +10164,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10077
10164
|
image: {
|
|
10078
10165
|
src: "",
|
|
10079
10166
|
linkedSrc: k,
|
|
10080
|
-
...
|
|
10167
|
+
...E
|
|
10081
10168
|
}
|
|
10082
10169
|
};
|
|
10083
10170
|
const T = N ?? k;
|
|
@@ -10087,7 +10174,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10087
10174
|
text: "",
|
|
10088
10175
|
image: {
|
|
10089
10176
|
src: e,
|
|
10090
|
-
...
|
|
10177
|
+
...E
|
|
10091
10178
|
}
|
|
10092
10179
|
};
|
|
10093
10180
|
}
|
|
@@ -10096,7 +10183,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10096
10183
|
image: void 0
|
|
10097
10184
|
};
|
|
10098
10185
|
}
|
|
10099
|
-
function
|
|
10186
|
+
function an(e) {
|
|
10100
10187
|
const t = e?.trim();
|
|
10101
10188
|
if (!t) return;
|
|
10102
10189
|
if (t.endsWith("%")) {
|
|
@@ -10110,8 +10197,8 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10110
10197
|
const r = Number(t);
|
|
10111
10198
|
return Number.isFinite(r) && 0 !== r ? r / 65536 : void 0;
|
|
10112
10199
|
}
|
|
10113
|
-
async function
|
|
10114
|
-
const o =
|
|
10200
|
+
async function sn(e, t, r, n) {
|
|
10201
|
+
const o = Oe(e, "imagedata");
|
|
10115
10202
|
if (!o) return;
|
|
10116
10203
|
const i = function(e) {
|
|
10117
10204
|
for (let t = 0; t < e.attributes.length; t += 1) {
|
|
@@ -10128,20 +10215,20 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10128
10215
|
if (e < 0) continue;
|
|
10129
10216
|
const n = r.slice(0, e).trim().toLowerCase(), o = r.slice(e + 1).trim();
|
|
10130
10217
|
if ("width" === n) {
|
|
10131
|
-
const e =
|
|
10218
|
+
const e = Kr(o);
|
|
10132
10219
|
null !== e && (t.width = e);
|
|
10133
10220
|
} else if ("height" === n) {
|
|
10134
|
-
const e =
|
|
10221
|
+
const e = Kr(o);
|
|
10135
10222
|
null !== e && (t.height = e);
|
|
10136
10223
|
}
|
|
10137
10224
|
}
|
|
10138
10225
|
return t;
|
|
10139
|
-
}(
|
|
10226
|
+
}(Oe(e, "shape")?.getAttribute("style")), l = function(e) {
|
|
10140
10227
|
const t = {
|
|
10141
|
-
left:
|
|
10142
|
-
top:
|
|
10143
|
-
right:
|
|
10144
|
-
bottom:
|
|
10228
|
+
left: an(Fe(e, "cropleft")),
|
|
10229
|
+
top: an(Fe(e, "croptop")),
|
|
10230
|
+
right: an(Fe(e, "cropright")),
|
|
10231
|
+
bottom: an(Fe(e, "cropbottom"))
|
|
10145
10232
|
};
|
|
10146
10233
|
if (void 0 !== t.left || void 0 !== t.top || void 0 !== t.right || void 0 !== t.bottom) return t;
|
|
10147
10234
|
}(o), c = Fe(o, "title") ?? o.getAttribute("o:title"), u = await We(t, n, a);
|
|
@@ -10153,44 +10240,44 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10153
10240
|
...l ? { crop: l } : {}
|
|
10154
10241
|
} : void 0;
|
|
10155
10242
|
}
|
|
10156
|
-
async function
|
|
10157
|
-
const r =
|
|
10243
|
+
async function ln(e, t) {
|
|
10244
|
+
const r = Oe(e, "wsp");
|
|
10158
10245
|
if (!r) return;
|
|
10159
|
-
const n =
|
|
10160
|
-
const t =
|
|
10246
|
+
const n = en(e), o = n?.element ?? e, i = Oe(o, "extent"), a = Yr(i?.getAttribute("cx")) ?? 300, s = Yr(i?.getAttribute("cy")) ?? 300, l = Oe(o, "docPr"), c = l ? Fe(l, "name") : null, u = l ? Fe(l, "descr") ?? Fe(l, "title") : null, d = "anchor" === n?.kind ? nn(n.element) : void 0, p = Oe(r, "txbxContent"), f = p && t ? await t(p) : [], h = function(e) {
|
|
10247
|
+
const t = Oe(e, "spPr");
|
|
10161
10248
|
if (!t) return;
|
|
10162
|
-
const r = {}, n =
|
|
10249
|
+
const r = {}, n = Oe(t, "prstGeom")?.getAttribute("prst");
|
|
10163
10250
|
n && (r.preset = n);
|
|
10164
10251
|
for (let o = 0; o < t.childNodes.length; o += 1) {
|
|
10165
10252
|
const e = t.childNodes[o];
|
|
10166
10253
|
if (e?.nodeType !== e.ELEMENT_NODE) continue;
|
|
10167
10254
|
const n = e;
|
|
10168
10255
|
if ("solidFill" === n.localName) {
|
|
10169
|
-
const e =
|
|
10256
|
+
const e = Jr(Oe(n, "srgbClr")?.getAttribute("val"));
|
|
10170
10257
|
e && (r.fill = e);
|
|
10171
10258
|
} else if ("ln" === n.localName) {
|
|
10172
|
-
const e =
|
|
10173
|
-
void 0 !== e && (r.borderWidthPt = Qe(e /
|
|
10174
|
-
const t =
|
|
10259
|
+
const e = Qr(n.getAttribute("w"));
|
|
10260
|
+
void 0 !== e && (r.borderWidthPt = Qe(e / C, 2));
|
|
10261
|
+
const t = Jr(Oe(n, "srgbClr")?.getAttribute("val"));
|
|
10175
10262
|
t && (r.borderColor = t);
|
|
10176
10263
|
}
|
|
10177
10264
|
}
|
|
10178
10265
|
return Object.keys(r).length > 0 ? r : void 0;
|
|
10179
10266
|
}(r), m = function(e) {
|
|
10180
|
-
const t =
|
|
10267
|
+
const t = Oe(e, "bodyPr");
|
|
10181
10268
|
if (!t) return;
|
|
10182
|
-
const r = {}, n =
|
|
10269
|
+
const r = {}, n = Yr(t.getAttribute("lIns")), o = Yr(t.getAttribute("tIns")), i = Yr(t.getAttribute("rIns")), a = Yr(t.getAttribute("bIns"));
|
|
10183
10270
|
void 0 !== n && (r.paddingLeft = n), void 0 !== o && (r.paddingTop = o), void 0 !== i && (r.paddingRight = i), void 0 !== a && (r.paddingBottom = a);
|
|
10184
10271
|
const s = t.getAttribute("anchor");
|
|
10185
10272
|
s && (r.anchor = s);
|
|
10186
10273
|
const l = t.getAttribute("wrap");
|
|
10187
10274
|
l && (r.wrap = l);
|
|
10188
10275
|
const c = t.getAttribute("vert");
|
|
10189
|
-
return "vert" !== c && "vert270" !== c && "wordArtVert" !== c || (r.vert = c),
|
|
10276
|
+
return "vert" !== c && "vert270" !== c && "wordArtVert" !== c || (r.vert = c), Oe(t, "spAutoFit") && (r.autoFit = !0), Object.keys(r).length > 0 ? r : void 0;
|
|
10190
10277
|
}(r), g = function(e) {
|
|
10191
|
-
const t =
|
|
10278
|
+
const t = Oe(e, "spPr");
|
|
10192
10279
|
if (!t) return;
|
|
10193
|
-
const n =
|
|
10280
|
+
const n = Qr(Oe(t, "xfrm")?.getAttribute("rot"));
|
|
10194
10281
|
return void 0 !== n && 0 !== n && (Math.round(n / 6e4) % 360 + 360) % 360 || void 0;
|
|
10195
10282
|
}(r);
|
|
10196
10283
|
return {
|
|
@@ -10205,14 +10292,14 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10205
10292
|
...m ? { body: m } : {}
|
|
10206
10293
|
};
|
|
10207
10294
|
}
|
|
10208
|
-
function
|
|
10295
|
+
function cn(e) {
|
|
10209
10296
|
let t;
|
|
10210
10297
|
for (let r = 0; r < e.childNodes.length; r += 1) {
|
|
10211
10298
|
const n = e.childNodes[r];
|
|
10212
10299
|
if (n?.nodeType !== n.ELEMENT_NODE) continue;
|
|
10213
10300
|
const o = n;
|
|
10214
10301
|
if ("Choice" !== o.localName) continue;
|
|
10215
|
-
const i =
|
|
10302
|
+
const i = Oe(o, "drawing");
|
|
10216
10303
|
if (!i) continue;
|
|
10217
10304
|
void 0 === t && (t = i);
|
|
10218
10305
|
const a = o.getAttribute("Requires") ?? "";
|
|
@@ -10220,12 +10307,6 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10220
10307
|
}
|
|
10221
10308
|
return t;
|
|
10222
10309
|
}
|
|
10223
|
-
function cn(e) {
|
|
10224
|
-
const t = /\b(?:REF|PAGEREF)\s+([^\\]+?)(?:\s+\\|\s*$)/i.exec(e);
|
|
10225
|
-
if (!t) return;
|
|
10226
|
-
const r = t[1].replace(/^"|"$/g, "").trim();
|
|
10227
|
-
return r.length > 0 ? r : void 0;
|
|
10228
|
-
}
|
|
10229
10310
|
function un(e) {
|
|
10230
10311
|
const t = Fe(e, "id");
|
|
10231
10312
|
if (!t) return;
|
|
@@ -10321,14 +10402,14 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10321
10402
|
if ("proofErr" === i.localName || "commentReference" === i.localName || "permStart" === i.localName || "permEnd" === i.localName) continue;
|
|
10322
10403
|
if ("cr" === i.localName) f("\n");
|
|
10323
10404
|
else if ("drawing" === i.localName) {
|
|
10324
|
-
const e = await
|
|
10405
|
+
const e = await on(i, t, r, n);
|
|
10325
10406
|
if (e.image) f(e.text), s = e.image;
|
|
10326
10407
|
else {
|
|
10327
|
-
const e = await
|
|
10408
|
+
const e = await ln(i, o);
|
|
10328
10409
|
e && (f(""), l = e);
|
|
10329
10410
|
}
|
|
10330
10411
|
} else if ("pict" === i.localName) {
|
|
10331
|
-
const e = await
|
|
10412
|
+
const e = await sn(i, t, r, n);
|
|
10332
10413
|
e && (f(""), s = e);
|
|
10333
10414
|
} else if ("sym" === i.localName) {
|
|
10334
10415
|
const e = Fe(i, "font") ?? "", t = Fe(i, "char") ?? "", r = parseInt(t, 16);
|
|
@@ -10339,9 +10420,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10339
10420
|
}
|
|
10340
10421
|
}
|
|
10341
10422
|
else if ("AlternateContent" === i.localName) {
|
|
10342
|
-
const e =
|
|
10423
|
+
const e = cn(i);
|
|
10343
10424
|
if (e) {
|
|
10344
|
-
const t = await
|
|
10425
|
+
const t = await ln(e, o);
|
|
10345
10426
|
t && (f(""), l = t);
|
|
10346
10427
|
}
|
|
10347
10428
|
}
|
|
@@ -10384,26 +10465,15 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10384
10465
|
});
|
|
10385
10466
|
const e = c.pop();
|
|
10386
10467
|
e && ((e) => {
|
|
10387
|
-
const t =
|
|
10468
|
+
const t = Rr(e.instruction);
|
|
10388
10469
|
if (!t) return;
|
|
10389
|
-
const r =
|
|
10390
|
-
if (
|
|
10391
|
-
const
|
|
10392
|
-
l.length = e.beginIndex
|
|
10393
|
-
|
|
10394
|
-
|
|
10395
|
-
|
|
10396
|
-
} : { type: "DATE" } : "REF" === t || "PAGEREF" === t ? {
|
|
10397
|
-
type: t,
|
|
10398
|
-
bookmark: o
|
|
10399
|
-
} : r ? {
|
|
10400
|
-
type: t,
|
|
10401
|
-
format: r
|
|
10402
|
-
} : { type: t };
|
|
10403
|
-
l.push({
|
|
10404
|
-
text: s,
|
|
10405
|
-
...c ? { styles: c } : {},
|
|
10406
|
-
field: u
|
|
10470
|
+
const r = l.slice(e.beginIndex);
|
|
10471
|
+
if (r.some((e) => Boolean(e.bookmark || e.comment || e.opaque || e.image || e.textBox || e.math || e.sym || e.footnoteReference || e.endnoteReference || e.revision || e.sdtWrappers?.length))) return;
|
|
10472
|
+
const n = r.filter((e) => !e.fieldChar && void 0 === e.fieldInstruction), o = n.map((e) => e.text).join("") || "1", i = n.find((e) => e.styles)?.styles ?? e.beginStyles;
|
|
10473
|
+
l.length = e.beginIndex, l.push({
|
|
10474
|
+
text: o,
|
|
10475
|
+
...i ? { styles: i } : {},
|
|
10476
|
+
field: t
|
|
10407
10477
|
});
|
|
10408
10478
|
})(e);
|
|
10409
10479
|
}
|
|
@@ -10424,7 +10494,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10424
10494
|
if ("http://schemas.openxmlformats.org/officeDocument/2006/math" === h.namespaceURI && ("oMath" === h.localName || "oMathPara" === h.localName)) {
|
|
10425
10495
|
l.push({
|
|
10426
10496
|
text: "",
|
|
10427
|
-
math:
|
|
10497
|
+
math: Lr(h)
|
|
10428
10498
|
});
|
|
10429
10499
|
continue;
|
|
10430
10500
|
}
|
|
@@ -10469,7 +10539,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10469
10539
|
if (!e) continue;
|
|
10470
10540
|
const c = De(h, Ne, "sdtPr"), u = De(h, Ne, "sdtEndPr"), d = {
|
|
10471
10541
|
groupId: v("sdt"),
|
|
10472
|
-
sdtPr:
|
|
10542
|
+
sdtPr: zr(c),
|
|
10473
10543
|
...u ? { sdtEndPrXml: new b.XMLSerializer().serializeToString(u) } : {}
|
|
10474
10544
|
}, p = await gn(e, t, r, n, o, i, a, s);
|
|
10475
10545
|
for (const t of p) l.push({
|
|
@@ -10479,7 +10549,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10479
10549
|
continue;
|
|
10480
10550
|
}
|
|
10481
10551
|
if ("r" === h.localName) {
|
|
10482
|
-
const e =
|
|
10552
|
+
const e = At(De(h, Ne, "rPr"), i), t = Array.from(h.childNodes).filter((e) => 1 === e.nodeType && !("http://schemas.openxmlformats.org/wordprocessingml/2006/main" === e.namespaceURI && "rPr" === e.localName)), p = t.map((e) => ({
|
|
10483
10553
|
child: e,
|
|
10484
10554
|
opaque: Tr(e)
|
|
10485
10555
|
})), f = (e) => "http://schemas.openxmlformats.org/wordprocessingml/2006/main" === e.namespaceURI && [
|
|
@@ -10570,7 +10640,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10570
10640
|
c();
|
|
10571
10641
|
continue;
|
|
10572
10642
|
}
|
|
10573
|
-
if (
|
|
10643
|
+
if (Ce(h, "http://schemas.openxmlformats.org/wordprocessingml/2006/main", "fldChar").length > 0 || Ce(h, "http://schemas.openxmlformats.org/wordprocessingml/2006/main", "instrText").length > 0 || Ce(h, "http://schemas.openxmlformats.org/wordprocessingml/2006/main", "delInstrText").length > 0) {
|
|
10574
10644
|
for (let t = 0; t < h.childNodes.length; t += 1) {
|
|
10575
10645
|
const r = h.childNodes[t];
|
|
10576
10646
|
if (r?.nodeType !== r.ELEMENT_NODE) continue;
|
|
@@ -10611,16 +10681,16 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10611
10681
|
});
|
|
10612
10682
|
continue;
|
|
10613
10683
|
}
|
|
10614
|
-
const { text: b, image: v, textBox: y, innerBookmarks: x, innerComments:
|
|
10684
|
+
const { text: b, image: v, textBox: y, innerBookmarks: x, innerComments: S, sym: E } = await mn(h, r, n, o, s);
|
|
10615
10685
|
let N = e;
|
|
10616
|
-
|
|
10686
|
+
E && !N?.fontFamily && ((N ??= {}).fontFamily = E.font), a && ((N ??= {}).link = a);
|
|
10617
10687
|
const k = [...(x ?? []).map((e) => ({
|
|
10618
10688
|
offset: e.offset,
|
|
10619
10689
|
run: {
|
|
10620
10690
|
text: "",
|
|
10621
10691
|
bookmark: e.marker
|
|
10622
10692
|
}
|
|
10623
|
-
})), ...(
|
|
10693
|
+
})), ...(S ?? []).map((e) => ({
|
|
10624
10694
|
offset: e.offset,
|
|
10625
10695
|
run: {
|
|
10626
10696
|
text: "",
|
|
@@ -10649,7 +10719,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10649
10719
|
text: b,
|
|
10650
10720
|
...v ? { image: v } : {},
|
|
10651
10721
|
...y ? { textBox: y } : {},
|
|
10652
|
-
...
|
|
10722
|
+
...E ? { sym: E } : {},
|
|
10653
10723
|
...N ? { styles: N } : {}
|
|
10654
10724
|
}), x) for (const r of x) l.push({
|
|
10655
10725
|
text: "",
|
|
@@ -10658,22 +10728,13 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10658
10728
|
continue;
|
|
10659
10729
|
}
|
|
10660
10730
|
if ("fldSimple" === h.localName) {
|
|
10661
|
-
const e = h.getAttribute("w:instr") ?? h.getAttributeNS("http://schemas.openxmlformats.org/wordprocessingml/2006/main", "instr") ?? h.getAttribute("instr") ?? "", c =
|
|
10731
|
+
const e = h.getAttribute("w:instr") ?? h.getAttributeNS("http://schemas.openxmlformats.org/wordprocessingml/2006/main", "instr") ?? h.getAttribute("instr") ?? "", c = Rr(e), u = await gn(h, t, r, n, o, i, a, s);
|
|
10662
10732
|
if (c) {
|
|
10663
|
-
const e =
|
|
10664
|
-
type: "DATE",
|
|
10665
|
-
dateFormat: p
|
|
10666
|
-
} : { type: "DATE" } : "REF" === c || "PAGEREF" === c ? {
|
|
10667
|
-
type: c,
|
|
10668
|
-
bookmark: f
|
|
10669
|
-
} : d ? {
|
|
10670
|
-
type: c,
|
|
10671
|
-
format: d
|
|
10672
|
-
} : { type: c };
|
|
10733
|
+
const e = u.map((e) => e.text).join("") || "1", t = u.find((e) => e.styles)?.styles;
|
|
10673
10734
|
l.push({
|
|
10674
10735
|
text: e,
|
|
10675
10736
|
styles: t,
|
|
10676
|
-
field:
|
|
10737
|
+
field: c
|
|
10677
10738
|
});
|
|
10678
10739
|
} else l.push({
|
|
10679
10740
|
text: "",
|
|
@@ -10684,7 +10745,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10684
10745
|
}), l.push({
|
|
10685
10746
|
text: "",
|
|
10686
10747
|
fieldChar: { kind: "separate" }
|
|
10687
|
-
}), l.push(...
|
|
10748
|
+
}), l.push(...u), l.push({
|
|
10688
10749
|
text: "",
|
|
10689
10750
|
fieldChar: { kind: "end" }
|
|
10690
10751
|
});
|
|
@@ -10714,10 +10775,10 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10714
10775
|
function xn(e) {
|
|
10715
10776
|
return JSON.stringify(yn(e)) ?? "undefined";
|
|
10716
10777
|
}
|
|
10717
|
-
function
|
|
10778
|
+
function Sn(e) {
|
|
10718
10779
|
return /\br:(?:id|embed|link)\s*=/.test(e);
|
|
10719
10780
|
}
|
|
10720
|
-
function
|
|
10781
|
+
function En(e, t) {
|
|
10721
10782
|
const r = [];
|
|
10722
10783
|
for (let n = 0; n < e.childNodes.length; n += 1) {
|
|
10723
10784
|
const o = e.childNodes[n];
|
|
@@ -10726,7 +10787,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10726
10787
|
return r;
|
|
10727
10788
|
}
|
|
10728
10789
|
function Nn(e, t) {
|
|
10729
|
-
return
|
|
10790
|
+
return En(e, t)[0];
|
|
10730
10791
|
}
|
|
10731
10792
|
function kn(e) {
|
|
10732
10793
|
return e ? new b.XMLSerializer().serializeToString(e) : void 0;
|
|
@@ -10747,10 +10808,10 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10747
10808
|
structureSignature: _n(e)
|
|
10748
10809
|
};
|
|
10749
10810
|
}
|
|
10750
|
-
function
|
|
10811
|
+
function Cn(e) {
|
|
10751
10812
|
return e.ooxmlSource;
|
|
10752
10813
|
}
|
|
10753
|
-
function
|
|
10814
|
+
function An(e) {
|
|
10754
10815
|
return xn(e);
|
|
10755
10816
|
}
|
|
10756
10817
|
function Rn(e) {
|
|
@@ -10775,14 +10836,14 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10775
10836
|
gridRevision: e.gridRevision
|
|
10776
10837
|
});
|
|
10777
10838
|
}
|
|
10778
|
-
function
|
|
10839
|
+
function On(e) {
|
|
10779
10840
|
return xn({
|
|
10780
10841
|
isHeader: e.isHeader,
|
|
10781
10842
|
style: e.style,
|
|
10782
10843
|
conditionalStyle: e.conditionalStyle
|
|
10783
10844
|
});
|
|
10784
10845
|
}
|
|
10785
|
-
function
|
|
10846
|
+
function Mn(e) {
|
|
10786
10847
|
return xn({
|
|
10787
10848
|
propertyExceptions: e.propertyExceptions,
|
|
10788
10849
|
tblPrExChangeXml: e.tblPrExChangeXml
|
|
@@ -10802,23 +10863,23 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10802
10863
|
return e.ooxmlSource;
|
|
10803
10864
|
}
|
|
10804
10865
|
function Un(e, t) {
|
|
10805
|
-
const r = kn(Nn(t, "tblPr")), n = kn(Nn(t, "tblGrid")), o =
|
|
10866
|
+
const r = kn(Nn(t, "tblPr")), n = kn(Nn(t, "tblGrid")), o = En(t, "tr");
|
|
10806
10867
|
return o.length === e.rows.length && o.forEach((t, r) => {
|
|
10807
10868
|
const n = e.rows[r];
|
|
10808
10869
|
(function(e, t) {
|
|
10809
10870
|
const r = {};
|
|
10810
10871
|
t.rowPropertiesXml && (r.rowProperties = {
|
|
10811
10872
|
xml: t.rowPropertiesXml,
|
|
10812
|
-
semanticSignature:
|
|
10873
|
+
semanticSignature: On(e)
|
|
10813
10874
|
}), t.propertyExceptionsXml && (r.propertyExceptions = {
|
|
10814
10875
|
xml: t.propertyExceptionsXml,
|
|
10815
|
-
semanticSignature:
|
|
10876
|
+
semanticSignature: Mn(e)
|
|
10816
10877
|
}), (r.rowProperties || r.propertyExceptions) && (e.ooxmlSource = r);
|
|
10817
10878
|
})(n, {
|
|
10818
10879
|
rowPropertiesXml: kn(Nn(t, "trPr")),
|
|
10819
10880
|
propertyExceptionsXml: kn(Nn(t, "tblPrEx"))
|
|
10820
10881
|
});
|
|
10821
|
-
const o =
|
|
10882
|
+
const o = En(t, "tc");
|
|
10822
10883
|
o.length === n.cells.length && o.forEach((e, t) => {
|
|
10823
10884
|
const r = kn(Nn(e, "tcPr"));
|
|
10824
10885
|
r && function(e, t) {
|
|
@@ -10919,11 +10980,11 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10919
10980
|
runs: a
|
|
10920
10981
|
};
|
|
10921
10982
|
s.style = t ? { ...t } : void 0;
|
|
10922
|
-
for (const l of s.runs) l.styles =
|
|
10983
|
+
for (const l of s.runs) l.styles = Ct(l.styles, s.style?.styleId);
|
|
10923
10984
|
if (s.list = r ? { ...r } : void 0, s.numberingRevision = n ? { ...n } : void 0, i?.runXml?.length === s.runs.length) for (let l = 0; l < s.runs.length; l += 1) In(s.runs[l], i.runXml[l]);
|
|
10924
10985
|
return i && function(e, t) {
|
|
10925
10986
|
const r = {};
|
|
10926
|
-
t.xml && (r.xml = t.xml, r.semanticSignature =
|
|
10987
|
+
t.xml && (r.xml = t.xml, r.semanticSignature = An(e)), t.attributes && (r.attributes = t.attributes), t.paragraphPropertiesXml && (r.paragraphProperties = {
|
|
10927
10988
|
xml: t.paragraphPropertiesXml,
|
|
10928
10989
|
semanticSignature: Rn(e)
|
|
10929
10990
|
}), (r.xml || r.attributes || r.paragraphProperties) && (e.ooxmlSource = r);
|
|
@@ -10932,8 +10993,8 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10932
10993
|
function Wn(e) {
|
|
10933
10994
|
return e.some((e) => e.image || e.textBox || e.field || e.fieldChar || void 0 !== e.fieldInstruction || e.bookmark || e.comment || e.revisionRangeMarker || e.text.replace(/\s/g, "").length > 0);
|
|
10934
10995
|
}
|
|
10935
|
-
async function
|
|
10936
|
-
const l = De(e, Ne, "pPr"), c = await gn(e, t, r, n, o, i, void 0, a), u =
|
|
10996
|
+
async function Xn(e, t, r, n, o, i, a, s) {
|
|
10997
|
+
const l = De(e, Ne, "pPr"), c = await gn(e, t, r, n, o, i, void 0, a), u = Gt(Vt(l, i.colors)), d = At(De(l, Ne, "rPr"), i), p = function(e, t) {
|
|
10937
10998
|
if (!e) return;
|
|
10938
10999
|
const r = De(e, Ne, "numPr");
|
|
10939
11000
|
if (!r) return;
|
|
@@ -10992,7 +11053,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
10992
11053
|
...void 0 === r.indentHanging && void 0 !== t ? { indentHanging: t } : {}
|
|
10993
11054
|
};
|
|
10994
11055
|
}
|
|
10995
|
-
const g =
|
|
11056
|
+
const g = Xt(s ? {
|
|
10996
11057
|
...s,
|
|
10997
11058
|
...m ?? {}
|
|
10998
11059
|
} : m), w = function(e, t) {
|
|
@@ -11045,9 +11106,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11045
11106
|
};
|
|
11046
11107
|
const y = [];
|
|
11047
11108
|
let x = !1;
|
|
11048
|
-
for (let
|
|
11049
|
-
const e = b[
|
|
11050
|
-
if (
|
|
11109
|
+
for (let S = 0; S < b.length; S += 1) {
|
|
11110
|
+
const e = b[S];
|
|
11111
|
+
if (S > 0 && (x = !0), !Wn(e)) continue;
|
|
11051
11112
|
const t = x ? {
|
|
11052
11113
|
...g ?? {},
|
|
11053
11114
|
pageBreakBefore: !0
|
|
@@ -11059,11 +11120,11 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11059
11120
|
pageBreakAfter: x
|
|
11060
11121
|
};
|
|
11061
11122
|
}
|
|
11062
|
-
async function
|
|
11063
|
-
return (await
|
|
11123
|
+
async function Gn(e, t, r, n, o, i, a, s) {
|
|
11124
|
+
return (await Xn(e, t, r, n, o, i, a, s)).paragraphs[0] ?? N([{ text: "" }]);
|
|
11064
11125
|
}
|
|
11065
11126
|
function Vn(e, t, r, n) {
|
|
11066
|
-
for (const o of
|
|
11127
|
+
for (const o of Ee(e)) {
|
|
11067
11128
|
if ("http://schemas.openxmlformats.org/wordprocessingml/2006/main" !== o.namespaceURI) continue;
|
|
11068
11129
|
if (o.localName === t) {
|
|
11069
11130
|
n.push({
|
|
@@ -11077,7 +11138,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11077
11138
|
if (!e) continue;
|
|
11078
11139
|
const i = De(o, Ne, "sdtPr"), a = De(o, Ne, "sdtEndPr"), s = {
|
|
11079
11140
|
groupId: v("sdt"),
|
|
11080
|
-
sdtPr:
|
|
11141
|
+
sdtPr: zr(i),
|
|
11081
11142
|
...a ? { sdtEndPrXml: new b.XMLSerializer().serializeToString(a) } : {}
|
|
11082
11143
|
};
|
|
11083
11144
|
Vn(e, t, [...r, s], n);
|
|
@@ -11089,7 +11150,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11089
11150
|
}
|
|
11090
11151
|
function Yn(e, t) {
|
|
11091
11152
|
if (!t.every((e) => "paragraph" === e.type)) return;
|
|
11092
|
-
const r =
|
|
11153
|
+
const r = Ce(e, Ne, "p");
|
|
11093
11154
|
r.length === t.length && function(e, t) {
|
|
11094
11155
|
const r = (e) => e.style ??= {}, n = e.length - 1;
|
|
11095
11156
|
for (let o = 0; o < e.length; o += 1) {
|
|
@@ -11132,7 +11193,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11132
11193
|
}
|
|
11133
11194
|
async function Kn(e, t, r, n, o, i, a, s) {
|
|
11134
11195
|
const l = [], c = De(e, Ne, "tblGrid");
|
|
11135
|
-
if (c) for (const b of
|
|
11196
|
+
if (c) for (const b of Ce(c, Ne, "gridCol")) {
|
|
11136
11197
|
const e = Je(Fe(b, "w"));
|
|
11137
11198
|
void 0 !== e && l.push(e);
|
|
11138
11199
|
}
|
|
@@ -11166,12 +11227,12 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11166
11227
|
vMerge: c
|
|
11167
11228
|
} : c ? { vMerge: c } : void 0);
|
|
11168
11229
|
u && (d.style = u), d.conditionalStyle = Ft(r), e.sdtWrappers?.length && (d.sdtWrappers = [...e.sdtWrappers]);
|
|
11169
|
-
const f =
|
|
11230
|
+
const f = Me(t);
|
|
11170
11231
|
f && (d.extAttributes = f), Qn(d), "continue" === c && (d.blocks = []), s.push(d);
|
|
11171
11232
|
}
|
|
11172
11233
|
const l = T(s, Wt(t) ? { isHeader: !0 } : void 0), c = Ut(r);
|
|
11173
11234
|
c && (l.style = c), l.conditionalStyle = n, e.sdtWrappers?.length && (l.sdtWrappers = [...e.sdtWrappers]);
|
|
11174
|
-
const u =
|
|
11235
|
+
const u = Me(t);
|
|
11175
11236
|
u && (l.extAttributes = u);
|
|
11176
11237
|
const d = De(t, Ne, "tblPrEx");
|
|
11177
11238
|
if (d) {
|
|
@@ -11179,7 +11240,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11179
11240
|
e && (l.propertyExceptions = e);
|
|
11180
11241
|
const t = De(d, Ne, "tblPrExChange");
|
|
11181
11242
|
if (t) {
|
|
11182
|
-
const e =
|
|
11243
|
+
const e = Mt(t);
|
|
11183
11244
|
e && (l.propertyExceptionsRevision = e), l.tblPrExChangeXml = new b.XMLSerializer().serializeToString(t);
|
|
11184
11245
|
}
|
|
11185
11246
|
}
|
|
@@ -11208,7 +11269,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11208
11269
|
};
|
|
11209
11270
|
}(g, l.length > 0 ? l : void 0);
|
|
11210
11271
|
if (f && (w.style = f), w.style ? w.style.tblLook = h : p && (w.style = { tblLook: h }), u) {
|
|
11211
|
-
const e = De(u, Ne, "tblGrid"), t = e ?
|
|
11272
|
+
const e = De(u, Ne, "tblGrid"), t = e ? Ce(e, Ne, "gridCol").map((e) => Je(Fe(e, "w"))).filter((e) => void 0 !== e) : [], r = Fe(u, "date"), n = r ? Date.parse(r) : NaN;
|
|
11212
11273
|
w.gridRevision = {
|
|
11213
11274
|
id: Fe(u, "id") ?? "revision:grid",
|
|
11214
11275
|
author: Fe(u, "author") ?? "Unknown",
|
|
@@ -11240,12 +11301,12 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11240
11301
|
}(w, new b.XMLSerializer().serializeToString(e)), w;
|
|
11241
11302
|
}
|
|
11242
11303
|
async function Jn(e, t, r, n, o, i, a) {
|
|
11243
|
-
return "http://schemas.openxmlformats.org/wordprocessingml/2006/main" !== e.namespaceURI ? [] : "p" === e.localName ? (await
|
|
11304
|
+
return "http://schemas.openxmlformats.org/wordprocessingml/2006/main" !== e.namespaceURI ? [] : "p" === e.localName ? (await Xn(e, t, r, n, o, i, a)).paragraphs : "tbl" === e.localName ? [await Kn(e, 0, 0, 0, 0, i, a)] : "sdt" === e.localName ? eo(e, t, r, n, o, i, a) : [];
|
|
11244
11305
|
}
|
|
11245
11306
|
async function eo(e, t, r, n, o, i, a) {
|
|
11246
11307
|
const s = De(e, Ne, "sdtPr"), l = De(e, Ne, "sdtEndPr"), c = {
|
|
11247
11308
|
groupId: v("sdt"),
|
|
11248
|
-
sdtPr:
|
|
11309
|
+
sdtPr: zr(s),
|
|
11249
11310
|
...l ? { sdtEndPrXml: new b.XMLSerializer().serializeToString(l) } : {}
|
|
11250
11311
|
}, u = De(e, Ne, "sdtContent"), d = [];
|
|
11251
11312
|
if (u) for (let p = 0; p < u.childNodes.length; p += 1) {
|
|
@@ -11274,7 +11335,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11274
11335
|
const e = s.childNodes[u];
|
|
11275
11336
|
if (e?.nodeType !== e.ELEMENT_NODE) continue;
|
|
11276
11337
|
const a = e;
|
|
11277
|
-
"p" === a.localName && "http://schemas.openxmlformats.org/wordprocessingml/2006/main" === a.namespaceURI ? c.push(await
|
|
11338
|
+
"p" === a.localName && "http://schemas.openxmlformats.org/wordprocessingml/2006/main" === a.namespaceURI ? c.push(await Gn(a, t, r, n, o, i, l)) : "tbl" === a.localName && "http://schemas.openxmlformats.org/wordprocessingml/2006/main" === a.namespaceURI && c.push(await Kn(a, 0, 0, 0, 0, i, l));
|
|
11278
11339
|
}
|
|
11279
11340
|
return c;
|
|
11280
11341
|
}
|
|
@@ -11293,7 +11354,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11293
11354
|
if (!c) return l;
|
|
11294
11355
|
const u = {}, d = /* @__PURE__ */ new Map();
|
|
11295
11356
|
let p, f;
|
|
11296
|
-
const h =
|
|
11357
|
+
const h = Ce(c, Ne, e);
|
|
11297
11358
|
let m = 0;
|
|
11298
11359
|
const g = to(r, n, o, i, a);
|
|
11299
11360
|
for (const w of h) {
|
|
@@ -11302,7 +11363,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11302
11363
|
const t = w.childNodes[e];
|
|
11303
11364
|
if (t?.nodeType !== t.ELEMENT_NODE) continue;
|
|
11304
11365
|
const s = t;
|
|
11305
|
-
"http://schemas.openxmlformats.org/wordprocessingml/2006/main" === s.namespaceURI && ("p" === s.localName ? l.push(await
|
|
11366
|
+
"http://schemas.openxmlformats.org/wordprocessingml/2006/main" === s.namespaceURI && ("p" === s.localName ? l.push(await Gn(s, r, n, o, i, a, g)) : "tbl" === s.localName && l.push(await Kn(s, 0, 0, 0, 0, a, g)));
|
|
11306
11367
|
}
|
|
11307
11368
|
if (no.has(s)) {
|
|
11308
11369
|
"separator" === s ? p = l : "continuationSeparator" === s && (f = l);
|
|
@@ -11518,7 +11579,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11518
11579
|
}
|
|
11519
11580
|
}), r.value += 1) : (n += i.text.length, o.push(i));
|
|
11520
11581
|
}
|
|
11521
|
-
o.length !== e.runs.length && (e.runs = o.length > 0 ? o : [
|
|
11582
|
+
o.length !== e.runs.length && (e.runs = o.length > 0 ? o : [S("")]);
|
|
11522
11583
|
return;
|
|
11523
11584
|
}
|
|
11524
11585
|
for (const n of e.rows) for (const e of n.cells) for (const n of e.blocks) wo(n, t, r);
|
|
@@ -11565,7 +11626,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11565
11626
|
}
|
|
11566
11627
|
}), r.value += 1) : (n += i.text.length, o.push(i));
|
|
11567
11628
|
}
|
|
11568
|
-
o.length !== e.runs.length && (e.runs = o.length > 0 ? o : [
|
|
11629
|
+
o.length !== e.runs.length && (e.runs = o.length > 0 ? o : [S("")]);
|
|
11569
11630
|
return;
|
|
11570
11631
|
}
|
|
11571
11632
|
for (const n of e.rows) for (const e of n.cells) for (const n of e.blocks) vo(n, t, r);
|
|
@@ -11583,7 +11644,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11583
11644
|
return o;
|
|
11584
11645
|
}
|
|
11585
11646
|
const xo = "http://schemas.microsoft.com/office/word/2012/wordml";
|
|
11586
|
-
function
|
|
11647
|
+
function So(e) {
|
|
11587
11648
|
let t = "";
|
|
11588
11649
|
for (let r = 0; r < e.childNodes.length; r += 1) {
|
|
11589
11650
|
const n = e.childNodes[r];
|
|
@@ -11603,11 +11664,11 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11603
11664
|
continue;
|
|
11604
11665
|
}
|
|
11605
11666
|
}
|
|
11606
|
-
t +=
|
|
11667
|
+
t += So(o);
|
|
11607
11668
|
}
|
|
11608
11669
|
return t;
|
|
11609
11670
|
}
|
|
11610
|
-
function
|
|
11671
|
+
function Eo(e) {
|
|
11611
11672
|
if (!e) return;
|
|
11612
11673
|
const t = Date.parse(e);
|
|
11613
11674
|
return Number.isNaN(t) ? void 0 : t;
|
|
@@ -11622,7 +11683,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11622
11683
|
if (!e) return t;
|
|
11623
11684
|
const r = new b.DOMParser().parseFromString(e, "application/xml").documentElement;
|
|
11624
11685
|
if (!r) return t;
|
|
11625
|
-
for (const n of
|
|
11686
|
+
for (const n of Ce(r, xo, "commentEx")) {
|
|
11626
11687
|
const e = n.getAttributeNS(xo, "paraId");
|
|
11627
11688
|
if (!e) continue;
|
|
11628
11689
|
const r = n.getAttributeNS(xo, "done"), o = n.getAttributeNS(xo, "paraIdParent") || void 0;
|
|
@@ -11633,10 +11694,10 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11633
11694
|
}
|
|
11634
11695
|
return t;
|
|
11635
11696
|
}(t);
|
|
11636
|
-
for (const i of
|
|
11697
|
+
for (const i of Ce(n, Ne, "comment")) {
|
|
11637
11698
|
const e = Fe(i, "id");
|
|
11638
11699
|
if (null === e) continue;
|
|
11639
|
-
const t = Fe(i, "author") ?? "", n = Fe(i, "initials") ?? void 0, a =
|
|
11700
|
+
const t = Fe(i, "author") ?? "", n = Fe(i, "initials") ?? void 0, a = Eo(Fe(i, "date")), s = Eo(i.getAttributeNS("http://schemas.microsoft.com/office/word/2023/wordml/word16du", "dateUtc")), l = Ce(i, Ne, "p"), c = l.map((e) => So(e)).join("\n").trim(), u = l.length > 0 ? Fe(l[0], "paraId") ?? void 0 : void 0, d = void 0 !== u ? o.get(u) : void 0;
|
|
11640
11701
|
r.set(e, {
|
|
11641
11702
|
author: t,
|
|
11642
11703
|
...n ? { initials: n } : {},
|
|
@@ -11654,7 +11715,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11654
11715
|
t.onProgress?.("opening-docx");
|
|
11655
11716
|
const r = await w.default.loadAsync(e), n = await r.file("word/document.xml")?.async("string");
|
|
11656
11717
|
if (!n) throw new Error("Missing word/document.xml");
|
|
11657
|
-
const o =
|
|
11718
|
+
const o = Xe(await r.file("word/_rels/document.xml.rels")?.async("string")), i = function(e) {
|
|
11658
11719
|
const t = {
|
|
11659
11720
|
abstractLevels: /* @__PURE__ */ new Map(),
|
|
11660
11721
|
numOverrideLevels: /* @__PURE__ */ new Map(),
|
|
@@ -11667,7 +11728,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11667
11728
|
if (!r) return t;
|
|
11668
11729
|
for (const n of Array.from(r.getElementsByTagNameNS(Ne, "abstractNum"))) {
|
|
11669
11730
|
const e = Fe(n, "abstractNumId");
|
|
11670
|
-
if (e) for (const r of
|
|
11731
|
+
if (e) for (const r of Ce(n, Ne, "lvl")) {
|
|
11671
11732
|
const n = Fe(r, "ilvl") ?? "0";
|
|
11672
11733
|
t.abstractLevels.set(`${e}:${n}`, gt(r));
|
|
11673
11734
|
}
|
|
@@ -11676,7 +11737,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11676
11737
|
const e = Fe(n, "numId"), r = Fe(De(n, Ne, "abstractNumId"), "val");
|
|
11677
11738
|
if (e && r) {
|
|
11678
11739
|
t.numToAbstractId.set(e, r);
|
|
11679
|
-
for (const r of
|
|
11740
|
+
for (const r of Ce(n, Ne, "lvlOverride")) {
|
|
11680
11741
|
const n = Fe(r, "ilvl") ?? "0", o = De(r, Ne, "lvl");
|
|
11681
11742
|
o && t.numOverrideLevels.set(`${e}:${n}`, gt(o));
|
|
11682
11743
|
const i = ht(De(r, Ne, "startOverride"));
|
|
@@ -11723,7 +11784,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11723
11784
|
const t = new b.DOMParser().parseFromString(e, "application/xml").getElementsByTagNameNS(Ne, "fonts")[0];
|
|
11724
11785
|
if (!t) return;
|
|
11725
11786
|
const r = [];
|
|
11726
|
-
for (const n of
|
|
11787
|
+
for (const n of Ce(t, Ne, "font")) {
|
|
11727
11788
|
const e = Fe(n, "name");
|
|
11728
11789
|
if (!e) continue;
|
|
11729
11790
|
const t = { name: e }, o = Fe(De(n, Ne, "altName"), "val");
|
|
@@ -11755,10 +11816,10 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11755
11816
|
const n = De(r, Ne, "docDefaults"), o = De(De(n, Ne, "pPrDefault"), Ne, "pPr"), i = De(De(n, Ne, "rPrDefault"), Ne, "rPr"), a = o ? {
|
|
11756
11817
|
spacingBefore: 0,
|
|
11757
11818
|
spacingAfter: 0,
|
|
11758
|
-
...
|
|
11759
|
-
} :
|
|
11819
|
+
...Gt(Vt(o, t.colors))
|
|
11820
|
+
} : Gt(Vt(o, t.colors)), s = At(i, t), l = {};
|
|
11760
11821
|
let c;
|
|
11761
|
-
for (const u of
|
|
11822
|
+
for (const u of Ce(r, Ne, "style")) {
|
|
11762
11823
|
const e = Fe(u, "styleId"), r = Fe(u, "type");
|
|
11763
11824
|
if (!e || "paragraph" !== r && "character" !== r && "table" !== r) continue;
|
|
11764
11825
|
const n = Fe(De(u, "http://schemas.openxmlformats.org/wordprocessingml/2006/main", "name"), "val") ?? e, o = Fe(u, "customStyle"), i = null == o ? void 0 : Le(o), d = yt({
|
|
@@ -11766,17 +11827,17 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11766
11827
|
name: n,
|
|
11767
11828
|
type: r,
|
|
11768
11829
|
customStyle: i
|
|
11769
|
-
}), p = Fe(De(u, "http://schemas.openxmlformats.org/wordprocessingml/2006/main", "basedOn"), "val") ?? void 0, f = Fe(De(u, "http://schemas.openxmlformats.org/wordprocessingml/2006/main", "next"), "val") ?? void 0, h = Be(u, "qFormat"), m = Be(u, "semiHidden"), g = Be(u, "unhideWhenUsed"), w = Fe(De(u, Ne, "uiPriority"), "val"), b = null === w ? NaN : Number(w), v = Number.isInteger(b) && b >= 0 ? b : void 0, y =
|
|
11770
|
-
let
|
|
11830
|
+
}), p = Fe(De(u, "http://schemas.openxmlformats.org/wordprocessingml/2006/main", "basedOn"), "val") ?? void 0, f = Fe(De(u, "http://schemas.openxmlformats.org/wordprocessingml/2006/main", "next"), "val") ?? void 0, h = Be(u, "qFormat"), m = Be(u, "semiHidden"), g = Be(u, "unhideWhenUsed"), w = Fe(De(u, Ne, "uiPriority"), "val"), b = null === w ? NaN : Number(w), v = Number.isInteger(b) && b >= 0 ? b : void 0, y = Gt(Vt(De(u, Ne, "pPr"), t.colors)), x = At(De(u, Ne, "rPr"), t);
|
|
11831
|
+
let S;
|
|
11771
11832
|
if ("table" === r) {
|
|
11772
11833
|
const r = De(u, Ne, "tblPr"), n = (e) => {
|
|
11773
11834
|
const t = Fe(De(r, Ne, e), "val"), n = t ? Number(t) : NaN;
|
|
11774
11835
|
return Number.isFinite(n) && n > 0 ? Math.floor(n) : void 0;
|
|
11775
11836
|
}, o = n("tblStyleRowBandSize"), i = n("tblStyleColBandSize"), a = {};
|
|
11776
|
-
for (const e of
|
|
11837
|
+
for (const e of Ce(u, Ne, "tblStylePr")) {
|
|
11777
11838
|
const r = Fe(e, "type");
|
|
11778
11839
|
if (!r) continue;
|
|
11779
|
-
const n = De(e, Ne, "tcPr"), o = qt(n, void 0, t.colors), i = Bt(De(e, Ne, "tblPr")), s = Tt(De(n, Ne, "shd"), t.colors), l =
|
|
11840
|
+
const n = De(e, Ne, "tcPr"), o = qt(n, void 0, t.colors), i = Bt(De(e, Ne, "tblPr")), s = Tt(De(n, Ne, "shd"), t.colors), l = At(De(e, Ne, "rPr"), t), c = Nt(St(De(n, Ne, "tcBorders"))), u = Vt(De(e, Ne, "pPr"), t.colors), d = Ut(De(e, Ne, "trPr"));
|
|
11780
11841
|
(s || l || c || u || d || o || i) && (a[r] = {
|
|
11781
11842
|
...s ? { shading: s } : {},
|
|
11782
11843
|
...l ? { textStyle: l } : {},
|
|
@@ -11787,15 +11848,15 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11787
11848
|
...i ? { tableStyle: i } : {}
|
|
11788
11849
|
});
|
|
11789
11850
|
}
|
|
11790
|
-
|
|
11851
|
+
S = {
|
|
11791
11852
|
...Bt(r, e) ?? { styleId: e },
|
|
11792
11853
|
...void 0 !== o ? { rowBandSize: o } : {},
|
|
11793
11854
|
...void 0 !== i ? { colBandSize: i } : {},
|
|
11794
11855
|
...Object.keys(a).length > 0 ? { conditionalFormats: a } : {}
|
|
11795
11856
|
};
|
|
11796
11857
|
}
|
|
11797
|
-
const
|
|
11798
|
-
|
|
11858
|
+
const E = "paragraph" === r && Le(Fe(u, "default"));
|
|
11859
|
+
E && (c = e), l[e] = {
|
|
11799
11860
|
id: e,
|
|
11800
11861
|
name: n,
|
|
11801
11862
|
type: r,
|
|
@@ -11808,9 +11869,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11808
11869
|
uiPriority: v,
|
|
11809
11870
|
semiHidden: m,
|
|
11810
11871
|
unhideWhenUsed: g,
|
|
11811
|
-
paragraphStyle: "paragraph" === r &&
|
|
11812
|
-
textStyle: "paragraph" === r &&
|
|
11813
|
-
tableStyle:
|
|
11872
|
+
paragraphStyle: "paragraph" === r && E ? kt(a, y) : y,
|
|
11873
|
+
textStyle: "paragraph" === r && E ? kt(s, x) : x,
|
|
11874
|
+
tableStyle: S
|
|
11814
11875
|
};
|
|
11815
11876
|
}
|
|
11816
11877
|
return c && l[c] ? l : ((a || s) && (l.Normal = {
|
|
@@ -11831,13 +11892,13 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11831
11892
|
nextId: 1
|
|
11832
11893
|
};
|
|
11833
11894
|
let y = null;
|
|
11834
|
-
const
|
|
11895
|
+
const S = [], E = [[]];
|
|
11835
11896
|
let k = !1, T = null;
|
|
11836
11897
|
const _ = (e) => {
|
|
11837
11898
|
k && (e.style = {
|
|
11838
11899
|
...e.style ?? {},
|
|
11839
11900
|
pageBreakBefore: !0
|
|
11840
|
-
}, k = !1), T && "paragraph" === e.type && (e.dropCap = T, T = null),
|
|
11901
|
+
}, k = !1), T && "paragraph" === e.type && (e.dropCap = T, T = null), E[E.length - 1].push(e);
|
|
11841
11902
|
};
|
|
11842
11903
|
let I = 0;
|
|
11843
11904
|
for (let w = 0; w < g.childNodes.length; w += 1) {
|
|
@@ -11847,46 +11908,46 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11847
11908
|
"http://schemas.openxmlformats.org/wordprocessingml/2006/main" === t.namespaceURI && "sectPr" !== t.localName && (I += 1);
|
|
11848
11909
|
}
|
|
11849
11910
|
}
|
|
11850
|
-
let
|
|
11851
|
-
const
|
|
11852
|
-
|
|
11911
|
+
let C = 0;
|
|
11912
|
+
const A = () => {
|
|
11913
|
+
C += 1, I > 0 && t.onProgress?.("parsing-document", C / I);
|
|
11853
11914
|
}, R = to(i, r, o, v, d);
|
|
11854
11915
|
for (let w = 0; w < g.childNodes.length; w += 1) {
|
|
11855
11916
|
const e = g.childNodes[w];
|
|
11856
11917
|
if (e?.nodeType !== e.ELEMENT_NODE) continue;
|
|
11857
11918
|
const t = e;
|
|
11858
11919
|
if ("http://schemas.openxmlformats.org/wordprocessingml/2006/main" === t.namespaceURI) {
|
|
11859
|
-
if ("sectPr" === t.localName)
|
|
11920
|
+
if ("sectPr" === t.localName) S.push(Kt(t)), E.push([]), k = !1;
|
|
11860
11921
|
else if ("p" === t.localName) {
|
|
11861
|
-
const e = await
|
|
11922
|
+
const e = await Xn(t, i, r, o, v, d, R);
|
|
11862
11923
|
for (const t of e.paragraphs) _(t);
|
|
11863
11924
|
e.dropCapFrame && (T = e.dropCapFrame), e.pageBreakAfter && (k = !0);
|
|
11864
11925
|
const n = De(t, Ne, "pPr"), a = n ? De(n, Ne, "sectPr") : null;
|
|
11865
|
-
a && (
|
|
11866
|
-
} else if ("tbl" === t.localName) _(await Kn(t, 0, 0, 0, 0, d, R)),
|
|
11926
|
+
a && (S.push(Kt(a)), E.push([]), k = !1), A();
|
|
11927
|
+
} else if ("tbl" === t.localName) _(await Kn(t, 0, 0, 0, 0, d, R)), A();
|
|
11867
11928
|
else if ("sdt" === t.localName) {
|
|
11868
11929
|
for (const e of await eo(t, i, r, o, v, d, R)) _(e);
|
|
11869
|
-
|
|
11930
|
+
A();
|
|
11870
11931
|
}
|
|
11871
|
-
await ze(50,
|
|
11932
|
+
await ze(50, C);
|
|
11872
11933
|
}
|
|
11873
11934
|
}
|
|
11874
|
-
if (0 ===
|
|
11935
|
+
if (0 === S.length) {
|
|
11875
11936
|
const e = De(g, Ne, "sectPr");
|
|
11876
|
-
|
|
11937
|
+
S.push(e ? Kt(e) : {
|
|
11877
11938
|
pageSettings: Jt(g),
|
|
11878
11939
|
headerRIds: {},
|
|
11879
11940
|
footerRIds: {}
|
|
11880
11941
|
});
|
|
11881
11942
|
}
|
|
11882
11943
|
t.onProgress?.("parsing-headers-footers");
|
|
11883
|
-
const D = [], $ = (e) => Object.keys(e.headerRIds).length > 0 || Object.keys(e.footerRIds).length > 0, P =
|
|
11944
|
+
const D = [], $ = (e) => Object.keys(e.headerRIds).length > 0 || Object.keys(e.footerRIds).length > 0, P = S.filter($).length;
|
|
11884
11945
|
let F = 0;
|
|
11885
|
-
const
|
|
11946
|
+
const O = () => {
|
|
11886
11947
|
F += 1, P > 0 && t.onProgress?.("parsing-headers-footers", F / P);
|
|
11887
11948
|
};
|
|
11888
|
-
for (let w = 0; w <
|
|
11889
|
-
const e =
|
|
11949
|
+
for (let w = 0; w < S.length; w += 1) {
|
|
11950
|
+
const e = S[w], t = E[w] ?? [];
|
|
11890
11951
|
er(t, e.docGridLinePitchPx, e.docGridMode, e.docGridType, a);
|
|
11891
11952
|
const n = async (t) => {
|
|
11892
11953
|
if (!t) return [];
|
|
@@ -11894,7 +11955,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11894
11955
|
if (!n) return [];
|
|
11895
11956
|
let s = n.startsWith("/") ? n.slice(1) : n;
|
|
11896
11957
|
s.startsWith("word/") || (s = `word/${n}`);
|
|
11897
|
-
const l = await r.file(s)?.async("string"), c = await
|
|
11958
|
+
const l = await r.file(s)?.async("string"), c = await Ge(r, s);
|
|
11898
11959
|
if (!y && l) {
|
|
11899
11960
|
const e = l.match(/<v:textpath[^>]*string="([^"]+)"/i), t = l.match(/<v:shape\b([^>]*)>/i)?.[1] ?? "", n = (e) => t.match(new RegExp(`${e}="([^"]+)"`, "i"))?.[1], o = (e) => e.replace(/"/g, "\"").replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
11900
11961
|
if (e?.[1]) y = {
|
|
@@ -11921,7 +11982,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11921
11982
|
const u = await ro(l ?? null, i, r, c, v, d);
|
|
11922
11983
|
return er(u, e.docGridLinePitchPx, e.docGridMode, e.docGridType, a), u;
|
|
11923
11984
|
}, s = await n(e.headerRIds.default), l = await n(e.headerRIds.first), c = await n(e.headerRIds.even), u = await n(e.footerRIds.default), p = await n(e.footerRIds.first), f = await n(e.footerRIds.even);
|
|
11924
|
-
$(e) &&
|
|
11985
|
+
$(e) && O(), await ze(2, F);
|
|
11925
11986
|
const h = Z(e.pageSettings ?? {
|
|
11926
11987
|
width: 816,
|
|
11927
11988
|
height: 1056,
|
|
@@ -11935,7 +11996,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11935
11996
|
footer: 48,
|
|
11936
11997
|
gutter: 0
|
|
11937
11998
|
}
|
|
11938
|
-
}), m = w > 0 ?
|
|
11999
|
+
}), m = w > 0 ? S[w - 1]?.breakType : void 0, g = e.pageNumbering, b = e.verticalAlignment, x = e.bidi, k = e.propertyRevision ? {
|
|
11939
12000
|
...e.propertyRevision,
|
|
11940
12001
|
previous: {
|
|
11941
12002
|
...e.propertyRevision.previous,
|
|
@@ -11960,7 +12021,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11960
12021
|
...k ? { propertyRevision: k } : {}
|
|
11961
12022
|
});
|
|
11962
12023
|
}
|
|
11963
|
-
const
|
|
12024
|
+
const M = await r.file("word/footnotes.xml")?.async("string") ?? null, B = await async function(e, t, r, n, o, i) {
|
|
11964
12025
|
const a = await oo("footnote", e, t, r, n, o, i);
|
|
11965
12026
|
return {
|
|
11966
12027
|
byDocxId: a.byDocxId,
|
|
@@ -11968,7 +12029,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
11968
12029
|
separator: a.separator,
|
|
11969
12030
|
continuationSeparator: a.continuationSeparator
|
|
11970
12031
|
};
|
|
11971
|
-
}(
|
|
12032
|
+
}(M, i, r, M ? await Ge(r, "word/footnotes.xml") : /* @__PURE__ */ new Map(), v, d);
|
|
11972
12033
|
a.footnoteSettings && (B.footnotes.settings = a.footnoteSettings);
|
|
11973
12034
|
const U = Object.keys(B.footnotes.items).length > 0 || B.footnotes.separator || B.footnotes.continuationSeparator || B.footnotes.settings ? B.footnotes : void 0;
|
|
11974
12035
|
(function(e, t) {
|
|
@@ -12002,7 +12063,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
12002
12063
|
separator: a.separator,
|
|
12003
12064
|
continuationSeparator: a.continuationSeparator
|
|
12004
12065
|
};
|
|
12005
|
-
}(z, i, r, z ? await
|
|
12066
|
+
}(z, i, r, z ? await Ge(r, "word/endnotes.xml") : /* @__PURE__ */ new Map(), v, d);
|
|
12006
12067
|
a.endnoteSettings && (j.endnotes.settings = a.endnoteSettings);
|
|
12007
12068
|
const q = Object.keys(j.endnotes.items).length > 0 || j.endnotes.separator || j.endnotes.continuationSeparator || j.endnotes.settings ? j.endnotes : void 0;
|
|
12008
12069
|
(function(e, t) {
|
|
@@ -12028,7 +12089,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
12028
12089
|
};
|
|
12029
12090
|
To(e, r);
|
|
12030
12091
|
})(D, j.byDocxId);
|
|
12031
|
-
const W = bo(D),
|
|
12092
|
+
const W = bo(D), X = function(e, t) {
|
|
12032
12093
|
const r = /* @__PURE__ */ new Set([...e.keys(), ...t.keys()]);
|
|
12033
12094
|
if (0 === r.size) return;
|
|
12034
12095
|
const n = [...r].sort((e, t) => {
|
|
@@ -12064,7 +12125,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
12064
12125
|
items: a,
|
|
12065
12126
|
order: s
|
|
12066
12127
|
} : void 0;
|
|
12067
|
-
}(yo(D), No(await r.file("word/comments.xml")?.async("string") ?? null, await r.file("word/commentsExtended.xml")?.async("string") ?? null)),
|
|
12128
|
+
}(yo(D), No(await r.file("word/comments.xml")?.async("string") ?? null, await r.file("word/commentsExtended.xml")?.async("string") ?? null)), G = D.length > 1 || D.some((e) => (e.header?.length ?? 0) > 0 || (e.firstPageHeader?.length ?? 0) > 0 || (e.evenPageHeader?.length ?? 0) > 0 || (e.footer?.length ?? 0) > 0 || (e.firstPageFooter?.length ?? 0) > 0 || (e.evenPageFooter?.length ?? 0) > 0 || void 0 !== e.breakType || void 0 !== e.pageNumbering || void 0 !== e.verticalAlignment || void 0 !== e.bidi || void 0 !== e.pageBorder), V = Object.keys(v.assets).length > 0, Y = (e) => {
|
|
12068
12129
|
if (u) {
|
|
12069
12130
|
const t = d.data?.name?.toLowerCase() ?? "", r = [
|
|
12070
12131
|
"oasis",
|
|
@@ -12117,9 +12178,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
12117
12178
|
items: i ? o : t.items
|
|
12118
12179
|
}
|
|
12119
12180
|
} : e;
|
|
12120
|
-
}(r)), W && (r.bookmarks = W),
|
|
12181
|
+
}(r)), W && (r.bookmarks = W), X && (r.comments = X), r;
|
|
12121
12182
|
};
|
|
12122
|
-
if (
|
|
12183
|
+
if (G) {
|
|
12123
12184
|
const e = pe([]);
|
|
12124
12185
|
return e.sections = D, 1 === D.length && (e.pageSettings = D[0].pageSettings), p && (e.styles = p), V && (e.assets = v.assets), Y(e);
|
|
12125
12186
|
}
|
|
@@ -12135,7 +12196,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
12135
12196
|
function Io(e) {
|
|
12136
12197
|
return e.replaceAll("\\", "/").replace(/^\/+/, "");
|
|
12137
12198
|
}
|
|
12138
|
-
function
|
|
12199
|
+
function Co(e, t) {
|
|
12139
12200
|
const r = t.replaceAll("\\", "/"), n = e?.includes("/") ? e.slice(0, e.lastIndexOf("/") + 1) : "", o = r.startsWith("/") ? r.slice(1) : `${n}${r}`, i = [];
|
|
12140
12201
|
for (const a of o.split("/")) if (a && "." !== a) if (".." !== a) i.push(a);
|
|
12141
12202
|
else {
|
|
@@ -12144,7 +12205,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
12144
12205
|
}
|
|
12145
12206
|
return i.join("/");
|
|
12146
12207
|
}
|
|
12147
|
-
function
|
|
12208
|
+
function Ao(e) {
|
|
12148
12209
|
if ("_rels/.rels" === e) return null;
|
|
12149
12210
|
const t = e.lastIndexOf("/_rels/");
|
|
12150
12211
|
return t >= 0 && e.endsWith(".rels") ? `${e.slice(0, t)}/${e.slice(t + 7).slice(0, -5)}` : e.startsWith("_rels/") && e.endsWith(".rels") ? e.slice(6, -5) : void 0;
|
|
@@ -12183,28 +12244,28 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
12183
12244
|
...t,
|
|
12184
12245
|
resolvedTarget: void 0
|
|
12185
12246
|
};
|
|
12186
|
-
const n =
|
|
12247
|
+
const n = Co(e, t.target);
|
|
12187
12248
|
return n ? {
|
|
12188
12249
|
...t,
|
|
12189
12250
|
resolvedTarget: n
|
|
12190
12251
|
} : (r?.(t), t);
|
|
12191
12252
|
});
|
|
12192
12253
|
}
|
|
12193
|
-
const Po = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Fo = "http://schemas.openxmlformats.org/package/2006/relationships",
|
|
12254
|
+
const Po = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Fo = "http://schemas.openxmlformats.org/package/2006/relationships", Oo = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", Mo = "http://schemas.microsoft.com/office/word/2010/wordml";
|
|
12194
12255
|
function Lo(e) {
|
|
12195
12256
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
12196
12257
|
}
|
|
12197
12258
|
function Bo(e, t) {
|
|
12198
|
-
return Number.isFinite(e) ? Math.max(0, Math.round(e / 96 *
|
|
12259
|
+
return Number.isFinite(e) ? Math.max(0, Math.round(e / 96 * A)) : t;
|
|
12199
12260
|
}
|
|
12200
12261
|
function Uo(e) {
|
|
12201
|
-
return null != e && Number.isFinite(e) ? Math.round(e / 96 *
|
|
12262
|
+
return null != e && Number.isFinite(e) ? Math.round(e / 96 * A) : null;
|
|
12202
12263
|
}
|
|
12203
12264
|
function zo(e) {
|
|
12204
12265
|
return null != e && Number.isFinite(e) ? Math.max(0, Math.round(20 * e)) : null;
|
|
12205
12266
|
}
|
|
12206
12267
|
function Ho(e, t = "000000") {
|
|
12207
|
-
return
|
|
12268
|
+
return Zr(e) ?? t;
|
|
12208
12269
|
}
|
|
12209
12270
|
function jo(e) {
|
|
12210
12271
|
return `<w:shd w:val="clear" w:color="auto" w:fill="${Ho(e, "FFFFFF")}"/>`;
|
|
@@ -12221,14 +12282,14 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
12221
12282
|
case "reference": return `<w:r><w:commentReference w:id="${e.wId}"/></w:r>`;
|
|
12222
12283
|
}
|
|
12223
12284
|
}
|
|
12224
|
-
const
|
|
12225
|
-
function
|
|
12285
|
+
const Xo = `xmlns:w="${Po}" xmlns:w14="${Mo}" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16du="http://schemas.microsoft.com/office/word/2023/wordml/word16du"`;
|
|
12286
|
+
function Go(e) {
|
|
12226
12287
|
const t = e.comments.map(({ comment: e, wId: t, paraId: r }) => {
|
|
12227
12288
|
const n = void 0 !== e.date ? ` w:date="${new Date(e.date).toISOString().replace(/\.\d{3}Z$/, "Z")}"` : "", o = void 0 !== e.dateUtc ? ` w16du:dateUtc="${new Date(e.dateUtc).toISOString().replace(/\.\d{3}Z$/, "Z")}"` : "", i = e.initials ? ` w:initials="${Lo(e.initials)}"` : "";
|
|
12228
12289
|
return `<w:comment w:id="${t}" w:author="${Lo(e.author)}"${n}${o}${i}><w:p w14:paraId="${r}">${a = e.text, `<w:r>${a.split("\n").map((e, t) => `${t > 0 ? "<w:br/>" : ""}<w:t xml:space="preserve">${Lo(e)}</w:t>`).join("")}</w:r>`}</w:p></w:comment>`;
|
|
12229
12290
|
var a;
|
|
12230
12291
|
}).join("");
|
|
12231
|
-
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:comments ${
|
|
12292
|
+
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:comments ${Xo}>${t}</w:comments>`;
|
|
12232
12293
|
}
|
|
12233
12294
|
function Vo(e) {
|
|
12234
12295
|
return void 0 !== e && Number.isSafeInteger(e) && e >= 1;
|
|
@@ -12633,7 +12694,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
12633
12694
|
}
|
|
12634
12695
|
return n.length > 0 ? `<w:tblPrEx>${n.join("")}</w:tblPrEx>` : "";
|
|
12635
12696
|
}
|
|
12636
|
-
function
|
|
12697
|
+
function Si(e, t) {
|
|
12637
12698
|
const r = function(e) {
|
|
12638
12699
|
const t = [], r = [];
|
|
12639
12700
|
for (let n = 0; n < e.rows.length; n += 1) {
|
|
@@ -12681,7 +12742,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
12681
12742
|
}).join(""), i = e.gridCols ? `<w:tblGrid>${e.gridCols.map((e) => `<w:gridCol w:w="${zo(e) ?? 0}"/>`).join("")}${e.gridRevision ? `<w:tblGridChange ${si(e.gridRevision)}><w:tblGrid>${e.gridRevision.previous.map((e) => `<w:gridCol w:w="${zo(e) ?? 0}"/>`).join("")}</w:tblGrid></w:tblGridChange>` : ""}</w:tblGrid>` : "";
|
|
12682
12743
|
return `<w:tbl>${yi(e)}${i}${o}</w:tbl>`;
|
|
12683
12744
|
}
|
|
12684
|
-
const
|
|
12745
|
+
const Ei = "xmlns:w15=\"http://schemas.microsoft.com/office/word/2012/wordml\"";
|
|
12685
12746
|
function Ni(e) {
|
|
12686
12747
|
if (!(void 0 !== e.alias || void 0 !== e.tag || void 0 !== e.id || void 0 !== e.lock || void 0 !== e.appearance || void 0 !== e.showingPlcHdr || void 0 !== e.temporary || void 0 !== e.color || void 0 !== e.placeholderDocPart || void 0 !== e.dataBinding || void 0 !== e.subtype || void 0 !== e.repeatingSectionProperties || (e.unknownXml ?? "").length > 0)) return "<w:sdtPr/>";
|
|
12687
12748
|
let t = "";
|
|
@@ -12704,9 +12765,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
12704
12765
|
let t = "";
|
|
12705
12766
|
void 0 !== e?.sectionTitle && (t += `<w15:sectionTitle w15:val="${Lo(e.sectionTitle)}"/>`);
|
|
12706
12767
|
void 0 !== e?.doNotAllowInsertDeleteSection && (t += `<w15:doNotAllowInsertDeleteSection w15:val="${e.doNotAllowInsertDeleteSection ? "1" : "0"}"/>`);
|
|
12707
|
-
return t ? `<w15:repeatingSection ${
|
|
12768
|
+
return t ? `<w15:repeatingSection ${Ei}>${t}</w15:repeatingSection>` : `<w15:repeatingSection ${Ei}/>`;
|
|
12708
12769
|
}(t);
|
|
12709
|
-
case "repeatingSectionItem": return `<w15:repeatingSectionItem ${
|
|
12770
|
+
case "repeatingSectionItem": return `<w15:repeatingSectionItem ${Ei}/>`;
|
|
12710
12771
|
case "comboBox":
|
|
12711
12772
|
case "dropDownList": {
|
|
12712
12773
|
const t = (e.listItems ?? []).map(ki).join(""), r = void 0 !== e.lastSelectedValue ? `<w:lastSelectedValue w:val="${Lo(e.lastSelectedValue)}"/>` : "";
|
|
@@ -12759,7 +12820,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
12759
12820
|
content: i
|
|
12760
12821
|
};
|
|
12761
12822
|
}
|
|
12762
|
-
function
|
|
12823
|
+
function Ci(e, t) {
|
|
12763
12824
|
let r = 0;
|
|
12764
12825
|
for (; r < t.length;) {
|
|
12765
12826
|
const n = t[r].wrappers[0];
|
|
@@ -12783,10 +12844,10 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
12783
12844
|
wrappers: r.wrappers.slice(1)
|
|
12784
12845
|
});
|
|
12785
12846
|
}
|
|
12786
|
-
|
|
12847
|
+
Ci(i.content, a), r = o;
|
|
12787
12848
|
}
|
|
12788
12849
|
}
|
|
12789
|
-
function
|
|
12850
|
+
function Ai(e) {
|
|
12790
12851
|
const t = [];
|
|
12791
12852
|
for (let r = 0; r < e.childNodes.length; r += 1) {
|
|
12792
12853
|
const n = e.childNodes[r];
|
|
@@ -12814,7 +12875,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
12814
12875
|
(n.namespaceURI ? t.hasAttributeNS(n.namespaceURI, o) : t.hasAttribute(n.name)) || (n.namespaceURI ? t.setAttributeNS(n.namespaceURI, n.name, n.value) : t.setAttribute(n.name, n.value));
|
|
12815
12876
|
}
|
|
12816
12877
|
})(e, t);
|
|
12817
|
-
const r =
|
|
12878
|
+
const r = Ai(e), n = Ai(t);
|
|
12818
12879
|
r.forEach((e, o) => {
|
|
12819
12880
|
const i = Di(r, o, n);
|
|
12820
12881
|
if ("http://schemas.openxmlformats.org/wordprocessingml/2006/main" === e.namespaceURI) return void (i && $i(e, i));
|
|
@@ -12841,7 +12902,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
12841
12902
|
"tblCaption",
|
|
12842
12903
|
"tblDescription",
|
|
12843
12904
|
"tblPrChange"
|
|
12844
|
-
]), Fi = /* @__PURE__ */ new Set(["gridCol", "tblGridChange"]),
|
|
12905
|
+
]), Fi = /* @__PURE__ */ new Set(["gridCol", "tblGridChange"]), Oi = /* @__PURE__ */ new Set([
|
|
12845
12906
|
"tblW",
|
|
12846
12907
|
"jc",
|
|
12847
12908
|
"tblCellSpacing",
|
|
@@ -12850,7 +12911,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
12850
12911
|
"tblLayout",
|
|
12851
12912
|
"tblCellMar",
|
|
12852
12913
|
"tblPrExChange"
|
|
12853
|
-
]),
|
|
12914
|
+
]), Mi = /* @__PURE__ */ new Set([
|
|
12854
12915
|
"cnfStyle",
|
|
12855
12916
|
"gridBefore",
|
|
12856
12917
|
"gridAfter",
|
|
@@ -12905,7 +12966,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
12905
12966
|
}
|
|
12906
12967
|
function ji(e, t, r, n, o) {
|
|
12907
12968
|
if (!e || function(e) {
|
|
12908
|
-
return Boolean(e &&
|
|
12969
|
+
return Boolean(e && Sn(e.xml));
|
|
12909
12970
|
}(e)) return t;
|
|
12910
12971
|
if (e.semanticSignature === o) return e.xml;
|
|
12911
12972
|
const i = Hi(e.xml, r), a = function(e, t) {
|
|
@@ -12960,10 +13021,10 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
12960
13021
|
function Wi(e, t) {
|
|
12961
13022
|
return qi(e).filter((e) => "http://schemas.openxmlformats.org/wordprocessingml/2006/main" === e.namespaceURI && e.localName === t);
|
|
12962
13023
|
}
|
|
12963
|
-
function
|
|
13024
|
+
function Xi(e, t) {
|
|
12964
13025
|
return Wi(e, t)[0];
|
|
12965
13026
|
}
|
|
12966
|
-
function
|
|
13027
|
+
function Gi(e, t) {
|
|
12967
13028
|
const r = new b.DOMParser().parseFromString(`<oasis:root xmlns:oasis="urn:oasis:docx" xmlns:w="${Po}">${e}</oasis:root>`, "application/xml").documentElement;
|
|
12968
13029
|
if (r) return r ? qi(r).find((e) => "http://schemas.openxmlformats.org/wordprocessingml/2006/main" === e.namespaceURI && e.localName === t) : void 0;
|
|
12969
13030
|
}
|
|
@@ -12981,39 +13042,39 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
12981
13042
|
}
|
|
12982
13043
|
function Qi(e, t, r, n, o) {
|
|
12983
13044
|
if (!r) return void (t && e.removeChild(t));
|
|
12984
|
-
const i =
|
|
13045
|
+
const i = Gi(r, n);
|
|
12985
13046
|
i && (t ? e.replaceChild(i.cloneNode(!0), t) : e.insertBefore(i.cloneNode(!0), o));
|
|
12986
13047
|
}
|
|
12987
13048
|
function Ki(e, t) {
|
|
12988
|
-
const r =
|
|
13049
|
+
const r = Xi(t, "tblPr"), n = Xi(t, "tblGrid"), o = Xi(t, "tr") ?? null;
|
|
12989
13050
|
Qi(t, r, function(e, t) {
|
|
12990
13051
|
return ji(zn(e)?.tableProperties, t, "tblPr", Pi, Pn(e));
|
|
12991
13052
|
}(e, Vi(r)), "tblPr", n ?? o);
|
|
12992
|
-
const i =
|
|
13053
|
+
const i = Xi(t, "tblGrid");
|
|
12993
13054
|
Qi(t, i, function(e, t) {
|
|
12994
13055
|
return ji(zn(e)?.tableGrid, t, "tblGrid", Fi, Fn(e));
|
|
12995
|
-
}(e, Vi(i)), "tblGrid",
|
|
13056
|
+
}(e, Vi(i)), "tblGrid", Xi(t, "tr") ?? null);
|
|
12996
13057
|
}
|
|
12997
13058
|
function Ji(e, t) {
|
|
12998
13059
|
const r = Wi(t, "tr");
|
|
12999
13060
|
r.length === e.rows.length && r.forEach((t, r) => {
|
|
13000
|
-
const n = e.rows[r], o =
|
|
13061
|
+
const n = e.rows[r], o = Xi(t, "tblPrEx"), i = Xi(t, "trPr"), a = Xi(t, "tc") ?? null;
|
|
13001
13062
|
Qi(t, o, function(e, t) {
|
|
13002
|
-
return ji(Bn(e)?.propertyExceptions, t, "tblPrEx",
|
|
13063
|
+
return ji(Bn(e)?.propertyExceptions, t, "tblPrEx", Oi, Mn(e));
|
|
13003
13064
|
}(n, Vi(o)), "tblPrEx", i ?? a);
|
|
13004
|
-
const s =
|
|
13065
|
+
const s = Xi(t, "trPr");
|
|
13005
13066
|
var l;
|
|
13006
13067
|
Qi(t, s, (l = function(e, t) {
|
|
13007
|
-
return ji(Bn(e)?.rowProperties, t, "trPr",
|
|
13008
|
-
}(n, Vi(s)), l.replace(/(<w:jc\b[^>]*\bw:val=")(?<value>start|end)("[^>]*\/?>)/g, (e, t, r, n) => `${t}${"start" === r ? "left" : "right"}${n}`)), "trPr",
|
|
13068
|
+
return ji(Bn(e)?.rowProperties, t, "trPr", Mi, On(e));
|
|
13069
|
+
}(n, Vi(s)), l.replace(/(<w:jc\b[^>]*\bw:val=")(?<value>start|end)("[^>]*\/?>)/g, (e, t, r, n) => `${t}${"start" === r ? "left" : "right"}${n}`)), "trPr", Xi(t, "tc") ?? null);
|
|
13009
13070
|
const c = Wi(t, "tc");
|
|
13010
13071
|
c.length === n.cells.length && c.forEach((e, t) => {
|
|
13011
|
-
const r = n.cells[t], o =
|
|
13072
|
+
const r = n.cells[t], o = Xi(e, "tcPr");
|
|
13012
13073
|
Qi(e, o, function(e, t) {
|
|
13013
13074
|
return ji(function(e) {
|
|
13014
13075
|
return e.ooxmlSource;
|
|
13015
13076
|
}(e)?.cellProperties, t, "tcPr", Li, Ln(e));
|
|
13016
|
-
}(r, Vi(o)), "tcPr",
|
|
13077
|
+
}(r, Vi(o)), "tcPr", Xi(e, "p") ?? Xi(e, "tbl") ?? null);
|
|
13017
13078
|
});
|
|
13018
13079
|
});
|
|
13019
13080
|
}
|
|
@@ -13028,11 +13089,11 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
13028
13089
|
}
|
|
13029
13090
|
}
|
|
13030
13091
|
function ta(e, t) {
|
|
13031
|
-
const r =
|
|
13092
|
+
const r = Si(e, t), n = Gi(r, "tbl");
|
|
13032
13093
|
return n ? (function(e, t) {
|
|
13033
13094
|
const r = zn(e)?.xml;
|
|
13034
13095
|
if (!r) return;
|
|
13035
|
-
const n =
|
|
13096
|
+
const n = Gi(r, "tbl");
|
|
13036
13097
|
if (!n) return;
|
|
13037
13098
|
(function(e, t) {
|
|
13038
13099
|
for (let r = 0; r < e.attributes.length; r += 1) {
|
|
@@ -13057,12 +13118,12 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
13057
13118
|
if (r.length === e.rows.length) {
|
|
13058
13119
|
for (let t = 0; t < r.length; t += 1) {
|
|
13059
13120
|
const n = r[t], o = e.rows[t], i = Ti(n, "tc");
|
|
13060
|
-
i.length === o.cells.length &&
|
|
13121
|
+
i.length === o.cells.length && Ci(n, i.map((e, t) => ({
|
|
13061
13122
|
element: e,
|
|
13062
13123
|
wrappers: o.cells[t].sdtWrappers ?? []
|
|
13063
13124
|
})));
|
|
13064
13125
|
}
|
|
13065
|
-
|
|
13126
|
+
Ci(t, r.map((t, r) => ({
|
|
13066
13127
|
element: t,
|
|
13067
13128
|
wrappers: e.rows[r].sdtWrappers ?? []
|
|
13068
13129
|
})));
|
|
@@ -13346,13 +13407,13 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
13346
13407
|
function xa(e) {
|
|
13347
13408
|
return `<mc:AlternateContent xmlns:mc="${wa}"><mc:Choice Requires="w14">${e}</mc:Choice><mc:Fallback/></mc:AlternateContent>`;
|
|
13348
13409
|
}
|
|
13349
|
-
function
|
|
13410
|
+
function Sa(e) {
|
|
13350
13411
|
return null != e && Number.isFinite(e) ? Math.round(20 * e) : null;
|
|
13351
13412
|
}
|
|
13352
|
-
const
|
|
13413
|
+
const Ea = function(e) {
|
|
13353
13414
|
if (!e) return null;
|
|
13354
13415
|
const t = Gr(e);
|
|
13355
|
-
return
|
|
13416
|
+
return Xr.test(t) ? [
|
|
13356
13417
|
Number.parseInt(t.slice(0, 2), 16),
|
|
13357
13418
|
Number.parseInt(t.slice(2, 4), 16),
|
|
13358
13419
|
Number.parseInt(t.slice(4, 6), 16)
|
|
@@ -13370,7 +13431,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
13370
13431
|
t.push(`<w:u w:val="${Lo(r)}"${n}/>`);
|
|
13371
13432
|
} else !1 === e.underline && t.push("<w:u w:val=\"none\"/>");
|
|
13372
13433
|
if (r(e.strike, "strike"), r(e.doubleStrike, "dstrike"), r(e.outline, "outline"), r(e.shadow, "shadow"), r(e.emboss, "emboss"), r(e.imprint, "imprint"), r(e.smallCaps, "smallCaps"), r(e.allCaps, "caps"), r(e.hidden, "vanish"), r(e.noProof, "noProof"), r(e.webHidden, "webHidden"), r(e.specVanish, "specVanish"), !1 === e.snapToGrid && t.push("<w:snapToGrid w:val=\"0\"/>"), e.textEffect && t.push(`<w:effect w:val="${Lo(e.textEffect)}"/>`), e.textBorder && t.push(`<w:bdr ${ni(e.textBorder)}`), void 0 !== e.characterScale && null !== e.characterScale && Number.isFinite(e.characterScale) && t.push(`<w:w w:val="${Math.max(1, Math.round(e.characterScale))}"/>`), void 0 !== e.characterSpacing && null !== e.characterSpacing) {
|
|
13373
|
-
const r =
|
|
13434
|
+
const r = Sa(e.characterSpacing);
|
|
13374
13435
|
null !== r && t.push(`<w:spacing w:val="${r}"/>`);
|
|
13375
13436
|
}
|
|
13376
13437
|
void 0 !== e.baselineShift && null !== e.baselineShift && Number.isFinite(e.baselineShift) && t.push(`<w:position w:val="${Math.round(2 * e.baselineShift)}"/>`), void 0 !== e.kerningThreshold && null !== e.kerningThreshold && Number.isFinite(e.kerningThreshold) && t.push(`<w:kern w:val="${Math.max(0, Math.round(2 * e.kerningThreshold))}"/>`);
|
|
@@ -13418,22 +13479,22 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
13418
13479
|
}(e.textFill, r ?? null));
|
|
13419
13480
|
} else e.color && t.push(`<w:color w:val="${Ho(e.color, "auto")}"/>`);
|
|
13420
13481
|
if (e.textOutline && t.push(function(e) {
|
|
13421
|
-
const t = Math.round(Math.max(0, e.widthPt) *
|
|
13482
|
+
const t = Math.round(Math.max(0, e.widthPt) * C), r = e.fill ? va(e.fill) : e.color ? ba(e.color) : "";
|
|
13422
13483
|
return `<mc:AlternateContent xmlns:mc="${wa}"><mc:Choice Requires="w14"><w14:textOutline w14:w="${t}" w14:cap="flat" w14:cmpd="sng" w14:algn="ctr">` + r + "</w14:textOutline></mc:Choice><mc:Fallback><w:outline/></mc:Fallback></mc:AlternateContent>";
|
|
13423
13484
|
}(e.textOutline)), e.textShadow && t.push(function(e) {
|
|
13424
|
-
const t = Math.round(Math.max(0, e.blurPt) *
|
|
13485
|
+
const t = Math.round(Math.max(0, e.blurPt) * C), r = Math.round(Math.max(0, e.distPt) * C), n = Math.round(e.dirDeg * D), o = ya(e.color, e.alpha);
|
|
13425
13486
|
return `<mc:AlternateContent xmlns:mc="${wa}"><mc:Choice Requires="w14"><w14:shadow w14:blurRad="${t}" w14:dist="${r}" w14:dir="${n}" w14:sx="100000" w14:sy="100000" w14:kx="0" w14:ky="0" w14:algn="ctr">` + o + "</w14:shadow></mc:Choice><mc:Fallback><w:shadow/></mc:Fallback></mc:AlternateContent>";
|
|
13426
13487
|
}(e.textShadow)), e.glow && t.push(function(e) {
|
|
13427
|
-
const t = Math.round(Math.max(0, e.radiusPt) *
|
|
13488
|
+
const t = Math.round(Math.max(0, e.radiusPt) * C), r = ya(e.color, e.alpha);
|
|
13428
13489
|
return `<mc:AlternateContent xmlns:mc="${wa}"><mc:Choice Requires="w14"><w14:glow w14:rad="${t}">${r}</w14:glow></mc:Choice><mc:Fallback/></mc:AlternateContent>`;
|
|
13429
13490
|
}(e.glow)), e.reflection && t.push(function(e) {
|
|
13430
|
-
const t = Math.round(Math.max(0, e.blurPt) *
|
|
13491
|
+
const t = Math.round(Math.max(0, e.blurPt) * C), r = Math.round(e.startAlpha * R), n = Math.round(e.startPos * R), o = Math.round(e.endAlpha * R), i = Math.round(e.endPos * R), a = Math.round(Math.max(0, e.distPt) * C);
|
|
13431
13492
|
return `<mc:AlternateContent xmlns:mc="${wa}"><mc:Choice Requires="w14"><w14:reflection w14:blurRad="${t}" w14:stA="${r}" w14:stPos="${n}" w14:endA="${o}" w14:endPos="${i}" w14:dist="${a}" w14:dir="5400000" w14:fadeDir="5400000" w14:sx="100000" w14:sy="-100000" w14:kx="0" w14:ky="0" w14:algn="bl"/></mc:Choice><mc:Fallback/></mc:AlternateContent>`;
|
|
13432
13493
|
}(e.reflection)), e.scene3dXml && t.push(xa(e.scene3dXml)), e.props3dXml && t.push(xa(e.props3dXml)), e.highlight && t.push(`<w:highlight w:val="${Lo(function(e) {
|
|
13433
13494
|
if (e in ma) return e;
|
|
13434
|
-
const t = (
|
|
13495
|
+
const t = (Zr(e) ?? e).trim().replace(/^#/, "").toLowerCase(), r = ga[t];
|
|
13435
13496
|
if (r) return r;
|
|
13436
|
-
const n =
|
|
13497
|
+
const n = Ea(t);
|
|
13437
13498
|
if (!n) return "yellow";
|
|
13438
13499
|
let o = "yellow", i = Number.POSITIVE_INFINITY;
|
|
13439
13500
|
for (const [a, s] of Object.entries(ma)) {
|
|
@@ -13442,7 +13503,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
13442
13503
|
}
|
|
13443
13504
|
return o;
|
|
13444
13505
|
}(e.highlight))}"/>`), e.shading && t.push(jo(e.shading)), void 0 !== e.fitText && null !== e.fitText && Number.isFinite(e.fitText)) {
|
|
13445
|
-
const r =
|
|
13506
|
+
const r = Sa(e.fitText);
|
|
13446
13507
|
null !== r && r > 0 && t.push(`<w:fitText w:val="${r}"/>`);
|
|
13447
13508
|
}
|
|
13448
13509
|
if (r(e.rtl, "rtl"), r(e.complexScript, "cs"), e.emphasisMark && t.push(`<w:em w:val="${Lo(e.emphasisMark)}"/>`), e.language) {
|
|
@@ -13471,7 +13532,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
13471
13532
|
const n = Lo(t?.relativeFrom ?? r);
|
|
13472
13533
|
return t?.align ? `<wp:${e} relativeFrom="${n}"><wp:align>${Lo(t.align)}</wp:align></wp:${e}>` : `<wp:${e} relativeFrom="${n}"><wp:posOffset>${t?.offset ?? 0}</wp:posOffset></wp:${e}>`;
|
|
13473
13534
|
}
|
|
13474
|
-
function
|
|
13535
|
+
function Ca(e) {
|
|
13475
13536
|
if (!e || e.length < 3) return "";
|
|
13476
13537
|
const t = (e) => Math.round(21600 * Math.min(1, Math.max(0, e))), r = (e, r) => `<wp:${r} x="${t(e.x)}" y="${t(e.y)}"/>`, n = e[0];
|
|
13477
13538
|
return `<wp:wrapPolygon edited="0">${[
|
|
@@ -13480,7 +13541,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
13480
13541
|
r(n, "lineTo")
|
|
13481
13542
|
].join("")}</wp:wrapPolygon>`;
|
|
13482
13543
|
}
|
|
13483
|
-
function
|
|
13544
|
+
function Aa(e) {
|
|
13484
13545
|
const { cx: t, cy: r, floating: n, docPrId: o, docPrName: i, altAttr: a, graphicXml: s } = e, l = Lo(i);
|
|
13485
13546
|
if (!n) return `<w:drawing><wp:inline distT="0" distB="0" distL="0" distR="0"><wp:extent cx="${t}" cy="${r}"/><wp:effectExtent l="0" t="0" r="0" b="0"/><wp:docPr id="${o}" name="${l}"${a}/>${s}</wp:inline></w:drawing>`;
|
|
13486
13547
|
const c = n.distT ?? 0, u = n.distB ?? 0, d = n.distL ?? 0, p = n.distR ?? 0, f = Ia("positionH", n.positionH, "column"), h = Ia("positionV", n.positionV, "paragraph"), m = function(e, t, r) {
|
|
@@ -13488,11 +13549,11 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
13488
13549
|
switch (e) {
|
|
13489
13550
|
case "square": return `<wp:wrapSquare${n}/>`;
|
|
13490
13551
|
case "tight": {
|
|
13491
|
-
const e =
|
|
13552
|
+
const e = Ca(r);
|
|
13492
13553
|
return e ? `<wp:wrapTight${n}>${e}</wp:wrapTight>` : `<wp:wrapTight${n}/>`;
|
|
13493
13554
|
}
|
|
13494
13555
|
case "through": {
|
|
13495
|
-
const e =
|
|
13556
|
+
const e = Ca(r);
|
|
13496
13557
|
return e ? `<wp:wrapThrough${n}>${e}</wp:wrapThrough>` : `<wp:wrapThrough${n}/>`;
|
|
13497
13558
|
}
|
|
13498
13559
|
case "topAndBottom": return "<wp:wrapTopAndBottom/>";
|
|
@@ -13515,7 +13576,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
13515
13576
|
if (!e) return "";
|
|
13516
13577
|
const t = (e) => e ? Math.round(e * R) : 0, r = t(e.left), n = t(e.top), o = t(e.right), i = t(e.bottom);
|
|
13517
13578
|
return 0 === r && 0 === n && 0 === o && 0 === i ? "" : `<a:srcRect l="${r}" t="${n}" r="${o}" b="${i}"/>`;
|
|
13518
|
-
}(o.crop), c = (u = o.border) ? `<a:ln${void 0 !== u.widthPt ? ` w="${Math.round(u.widthPt *
|
|
13579
|
+
}(o.crop), c = (u = o.border) ? `<a:ln${void 0 !== u.widthPt ? ` w="${Math.round(u.widthPt * C)}"` : ""}><a:solidFill><a:srgbClr val="${Lo(u.color.replace(/^#/, ""))}"/></a:solidFill>${u.dash ? `<a:prstDash val="${u.dash}"/>` : ""}</a:ln>` : "";
|
|
13519
13580
|
var u;
|
|
13520
13581
|
const d = "tile" === o.fillMode ? "<a:tile/>" : "<a:stretch><a:fillRect/></a:stretch>", p = "linked" === o.kind ? `r:link="${t}"` : `r:embed="${t}"`, f = void 0 !== o.transparency && o.transparency > 0 ? `<a:alphaModFix amt="${Math.round((1 - Math.max(0, Math.min(1, o.transparency))) * R)}"/>` : "", h = function(e) {
|
|
13521
13582
|
if (!e) return "<a:prstGeom prst=\"rect\"><a:avLst/></a:prstGeom>";
|
|
@@ -13524,7 +13585,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
13524
13585
|
return `<a:prstGeom prst="${Lo(e.preset)}">${r}</a:prstGeom>`;
|
|
13525
13586
|
}(o.cropShape);
|
|
13526
13587
|
return `<w:r>${n}${function(e, t, r, n) {
|
|
13527
|
-
return
|
|
13588
|
+
return Aa({
|
|
13528
13589
|
cx: e.cx,
|
|
13529
13590
|
cy: e.cy,
|
|
13530
13591
|
floating: e.floating,
|
|
@@ -13534,19 +13595,19 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
13534
13595
|
graphicXml: n,
|
|
13535
13596
|
wrapPolygon: e.wrapPolygon
|
|
13536
13597
|
});
|
|
13537
|
-
}(o, i, a, `<a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"><a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/picture"><pic:pic xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture"><pic:nvPicPr><pic:cNvPr id="0" name="Picture"${a}/><pic:cNvPicPr/></pic:nvPicPr><pic:blipFill><a:blip ${p} xmlns:r="${
|
|
13598
|
+
}(o, i, a, `<a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"><a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/picture"><pic:pic xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture"><pic:nvPicPr><pic:cNvPr id="0" name="Picture"${a}/><pic:cNvPicPr/></pic:nvPicPr><pic:blipFill><a:blip ${p} xmlns:r="${Oo}">${f}</a:blip>${l}${d}</pic:blipFill><pic:spPr><a:xfrm${s}><a:off x="0" y="0"/><a:ext cx="${o.cx}" cy="${o.cy}"/></a:xfrm>${h}${c}</pic:spPr></pic:pic></a:graphicData></a:graphic>`)}</w:r>`;
|
|
13538
13599
|
}
|
|
13539
13600
|
function Da(e, t, r, n, o, i) {
|
|
13540
13601
|
const a = Math.round(t.width * I), s = Math.round(t.height * I), l = r.textBoxDocPrIds.get(e.id) ?? 1, c = t.name ?? "Text Box", u = void 0 !== t.alt ? ` descr="${Lo(t.alt)}" title="${Lo(t.alt)}"` : "", d = function(e, t, r, n, o, i) {
|
|
13541
13602
|
const a = e.shape, s = Lo(a?.preset ?? "rect"), l = e.rotation ? Math.round(e.rotation * D) : 0, c = 0 !== l ? ` rot="${l}"` : "", u = a?.fill ? `<a:solidFill><a:srgbClr val="${Lo(a.fill.replace(/^#/, ""))}"/></a:solidFill>` : "";
|
|
13542
13603
|
let d = "";
|
|
13543
|
-
(a?.borderColor || void 0 !== a?.borderWidthPt) && (d = `<a:ln${void 0 !== a?.borderWidthPt ? ` w="${Math.round(a.borderWidthPt *
|
|
13604
|
+
(a?.borderColor || void 0 !== a?.borderWidthPt) && (d = `<a:ln${void 0 !== a?.borderWidthPt ? ` w="${Math.round(a.borderWidthPt * C)}"` : ""}>${a?.borderColor ? `<a:solidFill><a:srgbClr val="${Lo(a.borderColor.replace(/^#/, ""))}"/></a:solidFill>` : ""}<a:miter lim="800000"/></a:ln>`);
|
|
13544
13605
|
const p = e.body, f = ["rot=\"0\"", `vert="${Lo(p?.vert ?? "horz")}"`];
|
|
13545
13606
|
f.push(`wrap="${Lo(p?.wrap ?? "square")}"`), void 0 !== p?.paddingLeft && f.push(`lIns="${Math.round(p.paddingLeft * I)}"`), void 0 !== p?.paddingTop && f.push(`tIns="${Math.round(p.paddingTop * I)}"`), void 0 !== p?.paddingRight && f.push(`rIns="${Math.round(p.paddingRight * I)}"`), void 0 !== p?.paddingBottom && f.push(`bIns="${Math.round(p.paddingBottom * I)}"`), f.push(`anchor="${Lo(p?.anchor ?? "t")}"`), f.push("anchorCtr=\"0\"");
|
|
13546
13607
|
const h = p?.autoFit ? "<a:spAutoFit/>" : "", m = e.blocks.length > 0, g = m ? i(e.blocks, n, o) : "";
|
|
13547
13608
|
return "<a:graphic xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\"><a:graphicData uri=\"http://schemas.microsoft.com/office/word/2010/wordprocessingShape\"><wps:wsp>" + (m ? "<wps:cNvSpPr txBox=\"1\"><a:spLocks noChangeArrowheads=\"1\"/></wps:cNvSpPr>" : "<wps:cNvSpPr/>") + `<wps:spPr bwMode="auto"><a:xfrm${c}><a:off x="0" y="0"/><a:ext cx="${t}" cy="${r}"/></a:xfrm><a:prstGeom prst="${s}"><a:avLst/></a:prstGeom>` + u + d + "</wps:spPr>" + (m ? `<wps:txbx><w:txbxContent>${g}</w:txbxContent></wps:txbx>` : "") + `<wps:bodyPr ${f.join(" ")}>${h}</wps:bodyPr></wps:wsp></a:graphicData></a:graphic>`;
|
|
13548
13609
|
}(t, a, s, r, n, i);
|
|
13549
|
-
return `<w:r>${o}${
|
|
13610
|
+
return `<w:r>${o}${Aa({
|
|
13550
13611
|
cx: a,
|
|
13551
13612
|
cy: s,
|
|
13552
13613
|
floating: t.floating,
|
|
@@ -13574,10 +13635,10 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
13574
13635
|
}, a = t.customMark ? " w:customMarkFollows=\"1\"" : "", s = t.customMark ? `<w:t xml:space="preserve">${Lo(t.customMark)}</w:t>` : "";
|
|
13575
13636
|
return `<w:r>${Na(i)}<w:${e}Reference${a} w:id="${o}"/>${s}</w:r>`;
|
|
13576
13637
|
}
|
|
13577
|
-
function
|
|
13638
|
+
function Oa(e, t) {
|
|
13578
13639
|
return void 0 === t ? "" : ` m:${e}="${Lo(String(t))}"`;
|
|
13579
13640
|
}
|
|
13580
|
-
function
|
|
13641
|
+
function Ma(e) {
|
|
13581
13642
|
return e.map(La).join("");
|
|
13582
13643
|
}
|
|
13583
13644
|
function La(e) {
|
|
@@ -13586,19 +13647,19 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
13586
13647
|
const t = e.style;
|
|
13587
13648
|
return `<m:r>${t ? `<m:rPr>${t.bold ? "<m:b/>" : ""}${t.italic ? "<m:i/>" : ""}${t.normalText ? "<m:nor/>" : ""}${t.script ? `<m:sty m:val="${Lo(t.script)}"/>` : ""}</m:rPr>` : ""}<m:t xml:space="preserve">${Lo(e.value)}</m:t></m:r>`;
|
|
13588
13649
|
}(e);
|
|
13589
|
-
case "fraction": return `<m:f>${!1 === e.bar ? "<m:fPr><m:type m:val=\"noBar\"/></m:fPr>" : ""}<m:num>${
|
|
13590
|
-
case "radical": return e.degree ? `<m:rad><m:deg>${
|
|
13650
|
+
case "fraction": return `<m:f>${!1 === e.bar ? "<m:fPr><m:type m:val=\"noBar\"/></m:fPr>" : ""}<m:num>${Ma(e.numerator)}</m:num><m:den>${Ma(e.denominator)}</m:den></m:f>`;
|
|
13651
|
+
case "radical": return e.degree ? `<m:rad><m:deg>${Ma(e.degree)}</m:deg><m:e>${Ma(e.radicand)}</m:e></m:rad>` : `<m:rad><m:e>${Ma(e.radicand)}</m:e></m:rad>`;
|
|
13591
13652
|
case "script": {
|
|
13592
13653
|
const t = e.subscript && e.superscript ? "sSubSup" : e.subscript ? "sSub" : "sSup";
|
|
13593
|
-
return `<m:${t}><m:e>${
|
|
13594
|
-
}
|
|
13595
|
-
case "delimiter": return `<m:d><m:dPr>${
|
|
13596
|
-
case "accent": return `<m:acc><m:accPr><m:chr${
|
|
13597
|
-
case "nary": return `<m:nary><m:naryPr><m:chr${
|
|
13598
|
-
case "limit": return "low" === e.operator ? `<m:limLow><m:e>${
|
|
13599
|
-
case "matrix": return `<m:m>${e.rows.map((e) => `<m:mr>${e.map((e) => `<m:e>${
|
|
13600
|
-
case "box": return `<m:${e.hidden ? "phant" : e.border ? "borderBox" : "box"}><m:e>${
|
|
13601
|
-
case "group": return
|
|
13654
|
+
return `<m:${t}><m:e>${Ma(e.base)}</m:e>${e.subscript ? `<m:sub>${Ma(e.subscript)}</m:sub>` : ""}${e.superscript ? `<m:sup>${Ma(e.superscript)}</m:sup>` : ""}</m:${t}>`;
|
|
13655
|
+
}
|
|
13656
|
+
case "delimiter": return `<m:d><m:dPr>${Oa("begChr", e.begin)}${Oa("endChr", e.end)}${Oa("sepChr", e.separator)}${!1 === e.grow ? "<m:grow m:val=\"0\"/>" : ""}</m:dPr>${e.children.map((e) => `<m:e>${Ma(e)}</m:e>`).join("")}</m:d>`;
|
|
13657
|
+
case "accent": return `<m:acc><m:accPr><m:chr${Oa("val", e.accent)}/></m:accPr><m:e>${Ma(e.children)}</m:e></m:acc>`;
|
|
13658
|
+
case "nary": return `<m:nary><m:naryPr><m:chr${Oa("val", e.operator)}/>${!1 === e.grow ? "<m:grow m:val=\"0\"/>" : ""}</m:naryPr>${e.subscript ? `<m:sub>${Ma(e.subscript)}</m:sub>` : ""}${e.superscript ? `<m:sup>${Ma(e.superscript)}</m:sup>` : ""}<m:e>${Ma(e.children)}</m:e></m:nary>`;
|
|
13659
|
+
case "limit": return "low" === e.operator ? `<m:limLow><m:e>${Ma(e.base)}</m:e><m:lim>${Ma(e.limit)}</m:lim></m:limLow>` : `<m:limUpp><m:e>${Ma(e.base)}</m:e><m:lim>${Ma(e.limit)}</m:lim></m:limUpp>`;
|
|
13660
|
+
case "matrix": return `<m:m>${e.rows.map((e) => `<m:mr>${e.map((e) => `<m:e>${Ma(e)}</m:e>`).join("")}</m:mr>`).join("")}</m:m>`;
|
|
13661
|
+
case "box": return `<m:${e.hidden ? "phant" : e.border ? "borderBox" : "box"}><m:e>${Ma(e.children)}</m:e></m:${e.hidden ? "phant" : e.border ? "borderBox" : "box"}>`;
|
|
13662
|
+
case "group": return Ma(e.children);
|
|
13602
13663
|
case "raw": return e.xml;
|
|
13603
13664
|
}
|
|
13604
13665
|
}
|
|
@@ -13685,24 +13746,24 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
13685
13746
|
}
|
|
13686
13747
|
return t;
|
|
13687
13748
|
}
|
|
13688
|
-
function
|
|
13749
|
+
function Xa(e) {
|
|
13689
13750
|
return e.localName ?? e.tagName;
|
|
13690
13751
|
}
|
|
13691
|
-
function
|
|
13692
|
-
return Wa(e).find((e) => e.namespaceURI === t &&
|
|
13752
|
+
function Ga(e, t, r) {
|
|
13753
|
+
return Wa(e).find((e) => e.namespaceURI === t && Xa(e) === r);
|
|
13693
13754
|
}
|
|
13694
13755
|
function Va(e) {
|
|
13695
|
-
return `${e.namespaceURI ?? ""}\0${
|
|
13756
|
+
return `${e.namespaceURI ?? ""}\0${Xa(e)}`;
|
|
13696
13757
|
}
|
|
13697
13758
|
function Za(e) {
|
|
13698
13759
|
const t = new b.DOMParser().parseFromString(e, "application/xml").documentElement;
|
|
13699
|
-
return t && "r" ===
|
|
13760
|
+
return t && "r" === Xa(t) ? t : void 0;
|
|
13700
13761
|
}
|
|
13701
13762
|
function Ya(e) {
|
|
13702
|
-
const t = new b.DOMParser().parseFromString(`<oasis:root xmlns:oasis="urn:oasis:docx" xmlns:w="${Po}" xmlns:w14="${
|
|
13763
|
+
const t = new b.DOMParser().parseFromString(`<oasis:root xmlns:oasis="urn:oasis:docx" xmlns:w="${Po}" xmlns:w14="${Mo}" xmlns:r="${Oo}" xmlns:mc="${Ba}" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape">${e}</oasis:root>`, "application/xml").documentElement;
|
|
13703
13764
|
if (!t) return;
|
|
13704
13765
|
const r = Wa(t);
|
|
13705
|
-
return 1 === r.length && "r" ===
|
|
13766
|
+
return 1 === r.length && "r" === Xa(r[0]) ? r[0] : void 0;
|
|
13706
13767
|
}
|
|
13707
13768
|
function Qa(e) {
|
|
13708
13769
|
return "http://www.w3.org/2000/xmlns/" === e.namespaceURI || "xmlns" === e.prefix || "xmlns" === e.name;
|
|
@@ -13715,16 +13776,16 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
13715
13776
|
return !1;
|
|
13716
13777
|
}
|
|
13717
13778
|
function Ja(e) {
|
|
13718
|
-
const t =
|
|
13779
|
+
const t = Xa(e);
|
|
13719
13780
|
return "http://schemas.openxmlformats.org/wordprocessingml/2006/main" === e.namespaceURI ? Ha.has(t) : "http://schemas.microsoft.com/office/word/2010/wordml" === e.namespaceURI ? ja.has(t) : e.namespaceURI === Ba && "AlternateContent" === t;
|
|
13720
13781
|
}
|
|
13721
13782
|
function es(e, t) {
|
|
13722
|
-
const r =
|
|
13783
|
+
const r = Ga(e, Po, "rPr");
|
|
13723
13784
|
if (!r) return;
|
|
13724
|
-
const n = Wa(r), o =
|
|
13785
|
+
const n = Wa(r), o = Ga(t, Po, "rPr"), i = o ? Wa(o) : [], a = new Set(i.map(Va)), s = n.filter((e) => !Ja(e) && !a.has(Va(e)));
|
|
13725
13786
|
if (0 === s.length) return;
|
|
13726
13787
|
const l = function(e) {
|
|
13727
|
-
const t =
|
|
13788
|
+
const t = Ga(e, Po, "rPr");
|
|
13728
13789
|
if (t) return t;
|
|
13729
13790
|
const r = e.ownerDocument.createElementNS(Po, "w:rPr");
|
|
13730
13791
|
return e.insertBefore(r, e.firstChild), r;
|
|
@@ -13735,17 +13796,17 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
13735
13796
|
}
|
|
13736
13797
|
}
|
|
13737
13798
|
function ts(e) {
|
|
13738
|
-
const t =
|
|
13799
|
+
const t = Xa(e);
|
|
13739
13800
|
return e.namespaceURI === Ba && "AlternateContent" === t ? function(e) {
|
|
13740
13801
|
const t = (e) => Wa(e).some((e) => {
|
|
13741
|
-
const r =
|
|
13802
|
+
const r = Xa(e);
|
|
13742
13803
|
return !("http://schemas.openxmlformats.org/wordprocessingml/2006/main" !== e.namespaceURI || !za.has(r)) || t(e);
|
|
13743
13804
|
});
|
|
13744
13805
|
return t(e);
|
|
13745
13806
|
}(e) : "http://schemas.openxmlformats.org/wordprocessingml/2006/main" === e.namespaceURI && ("rPr" === t || za.has(t));
|
|
13746
13807
|
}
|
|
13747
13808
|
function rs(e) {
|
|
13748
|
-
const t =
|
|
13809
|
+
const t = Cn(e);
|
|
13749
13810
|
if (t && !qa(t.xml) && (r = t.xml, !bn.test(r))) {
|
|
13750
13811
|
var r;
|
|
13751
13812
|
if (t.semanticSignature === Tn(e)) return t.xml;
|
|
@@ -13753,7 +13814,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
13753
13814
|
if ("text" !== e.kind) return;
|
|
13754
13815
|
const r = Za(t);
|
|
13755
13816
|
if (!r) return;
|
|
13756
|
-
const n = Wa(r), o = n.filter((e) => "http://schemas.openxmlformats.org/wordprocessingml/2006/main" === e.namespaceURI && Ua.has(
|
|
13817
|
+
const n = Wa(r), o = n.filter((e) => "http://schemas.openxmlformats.org/wordprocessingml/2006/main" === e.namespaceURI && Ua.has(Xa(e))), i = o[0] ?? n.find((e) => !("http://schemas.openxmlformats.org/wordprocessingml/2006/main" === e.namespaceURI && "rPr" === Xa(e))) ?? null, a = Ya(`<w:r>${Ta(e.text)}</w:r>`);
|
|
13757
13818
|
if (!a) return;
|
|
13758
13819
|
const s = Wa(a);
|
|
13759
13820
|
for (const l of s) r.insertBefore(l.cloneNode(!0), i);
|
|
@@ -13763,12 +13824,12 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
13763
13824
|
}
|
|
13764
13825
|
}
|
|
13765
13826
|
function ns(e, t) {
|
|
13766
|
-
const r =
|
|
13827
|
+
const r = Cn(e);
|
|
13767
13828
|
if (!r || qa(r.xml)) return t;
|
|
13768
13829
|
const n = Za(r.xml);
|
|
13769
13830
|
if (!n || !function(e) {
|
|
13770
13831
|
if (Ka(e)) return !0;
|
|
13771
|
-
const t =
|
|
13832
|
+
const t = Ga(e, Po, "rPr");
|
|
13772
13833
|
return !(!t || !Ka(t) && !Wa(t).some((e) => !Ja(e))) || Wa(e).some((e) => !ts(e));
|
|
13773
13834
|
}(n)) return t;
|
|
13774
13835
|
const o = Ya(t);
|
|
@@ -13883,8 +13944,10 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
13883
13944
|
field: (e) => function(e, t, r = "1") {
|
|
13884
13945
|
let n;
|
|
13885
13946
|
if ("DATE" === e.type) n = ` DATE \\@ "${e.dateFormat ?? "M/d/yyyy"}" `;
|
|
13886
|
-
else if ("REF" === e.type || "PAGEREF" === e.type)
|
|
13887
|
-
|
|
13947
|
+
else if ("REF" === e.type || "PAGEREF" === e.type) {
|
|
13948
|
+
const t = e.bookmark ?? "", r = /\s/.test(t) ? `"${t}"` : t;
|
|
13949
|
+
n = ` ${e.type} ${r} \\h `;
|
|
13950
|
+
} else {
|
|
13888
13951
|
const t = "PAGE" === e.type ? " PAGE " : " NUMPAGES ", r = function(e) {
|
|
13889
13952
|
if (e && "decimal" !== e) return e;
|
|
13890
13953
|
}(e.format);
|
|
@@ -13903,7 +13966,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
13903
13966
|
},
|
|
13904
13967
|
sym: (e) => `<w:r>${s()}<w:sym w:font="${Lo(e.sym.font)}" w:char="${e.sym.char}"/></w:r>`,
|
|
13905
13968
|
math: (e) => function(e) {
|
|
13906
|
-
const t = `<m:oMath>${
|
|
13969
|
+
const t = `<m:oMath>${Ma(e.children)}</m:oMath>`;
|
|
13907
13970
|
return e.display ? `<m:oMathPara>${t}</m:oMathPara>` : t;
|
|
13908
13971
|
}(e.math),
|
|
13909
13972
|
opaque: () => {
|
|
@@ -14070,7 +14133,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
14070
14133
|
return e.localName ?? e.tagName;
|
|
14071
14134
|
}
|
|
14072
14135
|
function gs(e, t) {
|
|
14073
|
-
const r = new b.DOMParser().parseFromString(`<oasis:root xmlns:oasis="urn:oasis:docx" xmlns:w="${Po}" xmlns:w14="${
|
|
14136
|
+
const r = new b.DOMParser().parseFromString(`<oasis:root xmlns:oasis="urn:oasis:docx" xmlns:w="${Po}" xmlns:w14="${Mo}" xmlns:r="${Oo}" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape">${e}</oasis:root>`, "application/xml").documentElement;
|
|
14074
14137
|
if (!r) return;
|
|
14075
14138
|
const n = hs(r);
|
|
14076
14139
|
return 1 === n.length && "http://schemas.openxmlformats.org/wordprocessingml/2006/main" === n[0].namespaceURI && ms(n[0]) === t ? n[0] : void 0;
|
|
@@ -14131,20 +14194,20 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
14131
14194
|
}
|
|
14132
14195
|
function xs(e, t, r) {
|
|
14133
14196
|
switch (e.type) {
|
|
14134
|
-
case "paragraph": return
|
|
14197
|
+
case "paragraph": return Es(e, t, r);
|
|
14135
14198
|
case "table": return (e.style?.pageBreakBefore ? "<w:p><w:r><w:br w:type=\"page\"/></w:r></w:p>" : "") + ((function(e) {
|
|
14136
14199
|
const t = zn(e)?.xml;
|
|
14137
14200
|
return Boolean(t && /<w:trPr(?:\s|>)[\s\S]*?<w:jc\b[^>]*\bw:val="(?:start|end)"/.test(t));
|
|
14138
14201
|
}(e) ? void 0 : function(e, t) {
|
|
14139
14202
|
const r = zn(e);
|
|
14140
|
-
if (r && !t.hasBoundaryTokens && !
|
|
14203
|
+
if (r && !t.hasBoundaryTokens && !Sn(r.xml)) return r.semanticSignature === $n(e) ? r.xml : void 0;
|
|
14141
14204
|
}(e, { hasBoundaryTokens: ys(e, t) })) ?? ta(e, (e, n) => function(e, t, r, n) {
|
|
14142
|
-
return "paragraph" === e.type ?
|
|
14205
|
+
return "paragraph" === e.type ? Es(e, r, n, { align: t.style?.horizontalAlign }) : xs(e, r, n);
|
|
14143
14206
|
}(e, n, t, r)));
|
|
14144
14207
|
default: return L(e, "block");
|
|
14145
14208
|
}
|
|
14146
14209
|
}
|
|
14147
|
-
function
|
|
14210
|
+
function Ss(e, t, r) {
|
|
14148
14211
|
let n = "", o = 0;
|
|
14149
14212
|
for (; o < e.length;) {
|
|
14150
14213
|
const i = e[o], a = i.sdtWrappers?.[0];
|
|
@@ -14161,12 +14224,12 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
14161
14224
|
sdtWrappers: t.length > 0 ? t : void 0
|
|
14162
14225
|
}), l += 1;
|
|
14163
14226
|
}
|
|
14164
|
-
const c =
|
|
14227
|
+
const c = Ss(s, t, r);
|
|
14165
14228
|
n += `<w:sdt>${Ni(a.sdtPr)}${a.sdtEndPrXml ?? ""}<w:sdtContent>${c}</w:sdtContent></w:sdt>`, o = l;
|
|
14166
14229
|
}
|
|
14167
14230
|
return n;
|
|
14168
14231
|
}
|
|
14169
|
-
function
|
|
14232
|
+
function Es(e, t, r, n) {
|
|
14170
14233
|
const o = e.runs.length > 0 ? e.runs : [{
|
|
14171
14234
|
id: "",
|
|
14172
14235
|
text: "",
|
|
@@ -14185,13 +14248,13 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
14185
14248
|
xml: Wo(e)
|
|
14186
14249
|
}))], c = function(e, t) {
|
|
14187
14250
|
const r = Dn(e);
|
|
14188
|
-
if (!(!r?.xml || !r.semanticSignature || t.hasOverrides || t.hasBoundaryTokens ||
|
|
14251
|
+
if (!(!r?.xml || !r.semanticSignature || t.hasOverrides || t.hasBoundaryTokens || Sn(r.xml) || bn.test(r.xml) || vn.test(r.xml))) return r.semanticSignature === An(e) ? r.xml : void 0;
|
|
14189
14252
|
}(e, {
|
|
14190
14253
|
hasOverrides: Boolean(n),
|
|
14191
14254
|
hasBoundaryTokens: l.length > 0
|
|
14192
14255
|
});
|
|
14193
14256
|
if (c) return c;
|
|
14194
|
-
const u = (n) => is(n, t, e.style?.styleId, r,
|
|
14257
|
+
const u = (n) => is(n, t, e.style?.styleId, r, Ss), d = 0 === l.length ? o.map(u) : void 0, p = 0 === l.length ? as(o, u) : function(e, t, r, n, o) {
|
|
14195
14258
|
const i = [...t].sort((e, t) => e.offset - t.offset || e.seq - t.seq);
|
|
14196
14259
|
let a = 0, s = 0, l = as(e, (e) => {
|
|
14197
14260
|
let t = "";
|
|
@@ -14206,13 +14269,13 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
14206
14269
|
c.offset > s && (t += is({
|
|
14207
14270
|
...e,
|
|
14208
14271
|
text: e.text.slice(s - l, c.offset - l)
|
|
14209
|
-
}, r, n, o,
|
|
14272
|
+
}, r, n, o, Ss)), t += c.xml, a += 1, s = c.offset;
|
|
14210
14273
|
}
|
|
14211
14274
|
s < c && (t += is({
|
|
14212
14275
|
...e,
|
|
14213
14276
|
text: e.text.slice(s - l)
|
|
14214
|
-
}, r, n, o,
|
|
14215
|
-
} else t += is(e, r, n, o,
|
|
14277
|
+
}, r, n, o, Ss));
|
|
14278
|
+
} else t += is(e, r, n, o, Ss);
|
|
14216
14279
|
return s = c, t;
|
|
14217
14280
|
});
|
|
14218
14281
|
for (; a < i.length;) l += i[a].xml, a += 1;
|
|
@@ -14316,10 +14379,10 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
14316
14379
|
return Array.from(r.values());
|
|
14317
14380
|
}
|
|
14318
14381
|
function Is(e) {
|
|
14319
|
-
if (0 === e.length) return [
|
|
14382
|
+
if (0 === e.length) return [Cs()];
|
|
14320
14383
|
const [t, ...r] = e;
|
|
14321
14384
|
return "paragraph" !== t.type ? [
|
|
14322
|
-
|
|
14385
|
+
Cs(!0),
|
|
14323
14386
|
t,
|
|
14324
14387
|
...r
|
|
14325
14388
|
] : [(n = t, {
|
|
@@ -14341,7 +14404,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
14341
14404
|
}), ...r];
|
|
14342
14405
|
var n;
|
|
14343
14406
|
}
|
|
14344
|
-
function
|
|
14407
|
+
function Cs(e = !0) {
|
|
14345
14408
|
return {
|
|
14346
14409
|
id: "synthetic:endnote-body-empty",
|
|
14347
14410
|
type: "paragraph",
|
|
@@ -14362,7 +14425,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
14362
14425
|
style: { styleId: "EndnoteText" }
|
|
14363
14426
|
};
|
|
14364
14427
|
}
|
|
14365
|
-
const
|
|
14428
|
+
const As = [
|
|
14366
14429
|
"wholeTable",
|
|
14367
14430
|
"band1Horz",
|
|
14368
14431
|
"band2Horz",
|
|
@@ -14455,7 +14518,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
14455
14518
|
if ("table" === e.type && e.tableStyle) {
|
|
14456
14519
|
const r = e.tableStyle, n = $s(r);
|
|
14457
14520
|
if (n && t.push(n), r.conditionalFormats) {
|
|
14458
|
-
const e = [...
|
|
14521
|
+
const e = [...As.filter((e) => e in r.conditionalFormats), ...Object.keys(r.conditionalFormats).filter((e) => !As.includes(e))];
|
|
14459
14522
|
for (const n of e) {
|
|
14460
14523
|
const e = r.conditionalFormats[n];
|
|
14461
14524
|
if (e) {
|
|
@@ -14467,7 +14530,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
14467
14530
|
}
|
|
14468
14531
|
return `<w:style w:type="${"character" === e.type ? "character" : "table" === e.type ? "table" : "paragraph"}" w:styleId="${Lo(e.id)}"${e.isDefault ? " w:default=\"1\"" : ""}${void 0 !== e.customStyle ? ` w:customStyle="${e.customStyle ? "1" : "0"}"` : ""}>${ri(t, Jo)}</w:style>`;
|
|
14469
14532
|
}
|
|
14470
|
-
function
|
|
14533
|
+
function Os(e, t, r, n, o, i, a, s, l, c = !1) {
|
|
14471
14534
|
const u = n.map((e) => {
|
|
14472
14535
|
const t = "header" === e.kind ? "application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml" : "application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml";
|
|
14473
14536
|
return `<Override PartName="/word/${e.path}" ContentType="${t}"/>`;
|
|
@@ -14484,7 +14547,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
14484
14547
|
return r;
|
|
14485
14548
|
}(t)}<Override PartName="/word/document.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"/>${a ? "<Override PartName=\"/word/styles.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml\"/>" : ""}${e ? "<Override PartName=\"/word/numbering.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml\"/>" : ""}${r ? "<Override PartName=\"/word/settings.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml\"/>" : ""}${o ? "<Override PartName=\"/word/footnotes.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml\"/>" : ""}${i ? "<Override PartName=\"/word/endnotes.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml\"/>" : ""}${s ? "<Override PartName=\"/word/comments.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml\"/><Override PartName=\"/word/commentsExtended.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.wordprocessingml.commentsExtended+xml\"/>" : ""}${l ? "<Override PartName=\"/word/fontTable.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml\"/>" : ""}${c ? "<Override PartName=\"/word/theme/theme1.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.theme+xml\"/>" : ""}${u}</Types>`;
|
|
14486
14549
|
}
|
|
14487
|
-
const
|
|
14550
|
+
const Ms = {
|
|
14488
14551
|
decimal: "decimal",
|
|
14489
14552
|
lowerRoman: "lowerRoman",
|
|
14490
14553
|
upperRoman: "upperRoman",
|
|
@@ -14498,14 +14561,14 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
14498
14561
|
function Bs(e, t) {
|
|
14499
14562
|
if (!t) return null;
|
|
14500
14563
|
const r = [];
|
|
14501
|
-
return t.numberFormat && r.push(`<w:numFmt w:val="${
|
|
14564
|
+
return t.numberFormat && r.push(`<w:numFmt w:val="${Ms[t.numberFormat]}"/>`), void 0 !== t.startAt && r.push(`<w:numStart w:val="${Math.max(1, t.startAt)}"/>`), t.restart && r.push(`<w:numRestart w:val="${Ls[t.restart]}"/>`), r.length > 0 ? `<w:${e}>${r.join("")}</w:${e}>` : null;
|
|
14502
14565
|
}
|
|
14503
14566
|
function Us(e, t) {
|
|
14504
14567
|
let r = "";
|
|
14505
|
-
for (const n of t) r += `<Relationship Id="${n.rId}" Type="${
|
|
14568
|
+
for (const n of t) r += `<Relationship Id="${n.rId}" Type="${Oo}/hyperlink" Target="${Lo(n.href)}" TargetMode="External"/>`;
|
|
14506
14569
|
for (const n of e) {
|
|
14507
14570
|
const e = "linked" === n.kind ? " TargetMode=\"External\"" : "";
|
|
14508
|
-
r += `<Relationship Id="${n.rId}" Type="${
|
|
14571
|
+
r += `<Relationship Id="${n.rId}" Type="${Oo}/image" Target="${Lo(n.target)}"${e}/>`;
|
|
14509
14572
|
}
|
|
14510
14573
|
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="${Fo}">${r}</Relationships>`;
|
|
14511
14574
|
}
|
|
@@ -14545,7 +14608,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
14545
14608
|
function Ws(e, t) {
|
|
14546
14609
|
return void 0 !== e && Number.isSafeInteger(e) && e >= t;
|
|
14547
14610
|
}
|
|
14548
|
-
function
|
|
14611
|
+
function Xs(e) {
|
|
14549
14612
|
const t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), n = [], o = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), a = function(e) {
|
|
14550
14613
|
const t = e.sourcePackage;
|
|
14551
14614
|
if (!t) return;
|
|
@@ -14607,7 +14670,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
14607
14670
|
definitions: n
|
|
14608
14671
|
};
|
|
14609
14672
|
}
|
|
14610
|
-
const
|
|
14673
|
+
const Gs = `xmlns:w="${Po}" xmlns:w14="${Mo}" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" xmlns:r="${Oo}"`;
|
|
14611
14674
|
function Vs(e, t, r, n) {
|
|
14612
14675
|
const o = Bo(e.width, 12240), i = Bo(e.height, 15840), a = e.margins, s = "landscape" === e.orientation ? " w:orient=\"landscape\"" : "", l = [
|
|
14613
14676
|
t?.header?.first ? `<w:headerReference w:type="first" r:id="${t.header.first.relId}"/>` : "",
|
|
@@ -14644,12 +14707,12 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
14644
14707
|
return `<w:sectPr>${l}${c}${u}<w:pgSz w:w="${o}" w:h="${i}"${s}/><w:pgMar w:top="${Bo(a.top, 1440)}" w:right="${Bo(a.right, 1440)}" w:bottom="${Bo(a.bottom, 1440)}" w:left="${Bo(a.left, 1440)}" w:header="${Bo(a.header, 720)}" w:footer="${Bo(a.footer, 720)}" w:gutter="${Bo(a.gutter, 0)}"/>${h}${p}${m}${g}${v}${y}</w:sectPr>`;
|
|
14645
14708
|
}
|
|
14646
14709
|
function Zs(e, t, r) {
|
|
14647
|
-
const n = ce(e), o = n.map((o, i) =>
|
|
14648
|
-
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:document ${
|
|
14710
|
+
const n = ce(e), o = n.map((o, i) => Ss(o.blocks, t, e.styles) + Vs(o.pageSettings, r[i], o, n[i + 1]?.breakType)).join(""), i = e.design?.pageColor?.replace("#", "").toUpperCase();
|
|
14711
|
+
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:document ${Gs}>${i ? `<w:background w:color="${i}"/>` : ""}<w:body>${o}</w:body></w:document>`;
|
|
14649
14712
|
}
|
|
14650
14713
|
function Ys(e, t, r, n, o) {
|
|
14651
14714
|
const i = "header" === e ? "hdr" : "ftr", a = "header" === e && "text" === o?.kind && o.text ? `<w:pict xmlns:v="urn:schemas-microsoft-com:vml"><v:shape type="#_x0000_t136" style="position:absolute;margin-left:0;margin-top:0;width:468pt;height:216pt;z-index:-251654144;rotation:${o.rotation ?? -45}" fillcolor="${o.color ?? "#94a3b8"}" fillopacity="${o.opacity ?? .25}"><v:textpath on="true" string="${Lo(o.text)}" style="font-family:${Lo(o.fontFamily ?? "Arial")};font-size:${o.fontSize ?? 48}pt"/></v:shape></w:pict>` : "header" === e && "image" === o?.kind && r.images.some((e) => "__watermark" === e.runId) ? `<w:pict xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><v:shape type="#_x0000_t75" style="position:absolute;margin-left:0;margin-top:0;width:468pt;height:216pt;z-index:-251654144;rotation:${o.rotation ?? -45}" fillcolor="${o.color ?? "#ffffff"}" fillopacity="${o.opacity ?? .25}" stroked="f"><v:imagedata r:id="rIdWatermark" o:title="Watermark"/></v:shape></w:pict>` : "";
|
|
14652
|
-
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:${i} ${
|
|
14715
|
+
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:${i} ${Gs}>${a}${Ss(t, r, n)}</w:${i}>`;
|
|
14653
14716
|
}
|
|
14654
14717
|
function Qs(e) {
|
|
14655
14718
|
if (e) return {
|
|
@@ -14683,7 +14746,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
14683
14746
|
sdtWrappers: e.sdtWrappers ? [...e.sdtWrappers] : void 0
|
|
14684
14747
|
};
|
|
14685
14748
|
return function(e, t) {
|
|
14686
|
-
const r =
|
|
14749
|
+
const r = Cn(e);
|
|
14687
14750
|
return r && (t.ooxmlSource = { ...r }), t;
|
|
14688
14751
|
}(e, z(e, {
|
|
14689
14752
|
text: () => ({
|
|
@@ -14925,7 +14988,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
14925
14988
|
const r = e.split("/").slice(0, -1), n = t.split("/");
|
|
14926
14989
|
for (; r.length && n.length && r[0] === n[0];) r.shift(), n.shift();
|
|
14927
14990
|
const o = "../".repeat(r.length) + n.join("/");
|
|
14928
|
-
if (
|
|
14991
|
+
if (Co(e, o) !== t) throw Error("Cannot rebase target");
|
|
14929
14992
|
return o;
|
|
14930
14993
|
}
|
|
14931
14994
|
function fl(e, t, r, n) {
|
|
@@ -15035,7 +15098,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
15035
15098
|
}, v = /* @__PURE__ */ new Map(), y = [];
|
|
15036
15099
|
for (const N of i.relationshipIds) {
|
|
15037
15100
|
const t = f.filter((e) => e.id === N), n = 1 === t.length ? t[0] : void 0;
|
|
15038
|
-
if (!(n && "External" !== n.targetMode && n.resolvedTarget && cl(n.target) && ll(n.resolvedTarget) && sl(e, n.resolvedTarget) &&
|
|
15101
|
+
if (!(n && "External" !== n.targetMode && n.resolvedTarget && cl(n.target) && ll(n.resolvedTarget) && sl(e, n.resolvedTarget) && Co(i.ownerPath, n.target) === n.resolvedTarget)) throw Error("Unsupported or ambiguous direct relationship " + N);
|
|
15039
15102
|
const o = b();
|
|
15040
15103
|
v.set(N, o), y.push({
|
|
15041
15104
|
...n,
|
|
@@ -15054,9 +15117,9 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
15054
15117
|
}
|
|
15055
15118
|
}
|
|
15056
15119
|
if (x.size !== v.size) throw Error("Source relationship reference missing");
|
|
15057
|
-
const
|
|
15058
|
-
if (!
|
|
15059
|
-
const
|
|
15120
|
+
const S = Tr(c);
|
|
15121
|
+
if (!S || S.objectKind !== i.kind) throw Error("Relocation changed object kind");
|
|
15122
|
+
const E = Sr({
|
|
15060
15123
|
...e,
|
|
15061
15124
|
parts: {
|
|
15062
15125
|
...e.parts,
|
|
@@ -15065,14 +15128,14 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
15065
15128
|
relationships: [...h, ...y]
|
|
15066
15129
|
}
|
|
15067
15130
|
}
|
|
15068
|
-
}, r,
|
|
15069
|
-
if (
|
|
15131
|
+
}, r, S.relationshipIds);
|
|
15132
|
+
if (E.issues.length || JSON.stringify(E.partPaths) !== JSON.stringify(i.partPaths)) throw Error("Relocated relationship closure differs");
|
|
15070
15133
|
return {
|
|
15071
15134
|
sourceOwner: i.ownerPath,
|
|
15072
15135
|
destinationOwner: r,
|
|
15073
15136
|
sourceOrdinal: i.ordinal,
|
|
15074
15137
|
sourceSignature: i.signature,
|
|
15075
|
-
destinationRun:
|
|
15138
|
+
destinationRun: S,
|
|
15076
15139
|
addedRelationships: y,
|
|
15077
15140
|
idMapping: [...v].map(([e, t]) => ({
|
|
15078
15141
|
from: e,
|
|
@@ -15100,7 +15163,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
15100
15163
|
sections: r
|
|
15101
15164
|
};
|
|
15102
15165
|
}(e);
|
|
15103
|
-
const r = new w.default(), n =
|
|
15166
|
+
const r = new w.default(), n = Xs(e), o = {
|
|
15104
15167
|
authorizedOpaqueFragments: t,
|
|
15105
15168
|
nextImageId: 1,
|
|
15106
15169
|
nextTextBoxDocPrId: 1000001
|
|
@@ -15214,11 +15277,11 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
15214
15277
|
comments: s
|
|
15215
15278
|
};
|
|
15216
15279
|
}(e), m = (e) => (e.footnoteIdMap = l, e.endnoteIdMap = d, e.bookmarkEventsByParagraph = f, e.commentEventsByParagraph = h?.eventsByParagraph, e), g = m(fl(i.flatMap((e) => e.blocks), n, o, e)), b = void 0 !== h, v = [], y = i.map(() => ({}));
|
|
15217
|
-
let x = 1,
|
|
15280
|
+
let x = 1, S = 1;
|
|
15218
15281
|
i.forEach((t, r) => {
|
|
15219
15282
|
const i = (t, i, s) => {
|
|
15220
15283
|
if (!(s && 0 !== s.length || "header" === t && "text" === e.design?.watermark?.kind || "header" === t && void 0 !== a)) return;
|
|
15221
|
-
const l = s ?? [], c = "header" === t ? x :
|
|
15284
|
+
const l = s ?? [], c = "header" === t ? x : S, u = `${t}${c}.xml`, d = `rId${"header" === t ? "Header" : "Footer"}${c}`, p = m(fl(l, n, o, e));
|
|
15222
15285
|
"header" === t && a && p.images.push({ ...a }), v.push({
|
|
15223
15286
|
kind: t,
|
|
15224
15287
|
type: i,
|
|
@@ -15228,19 +15291,19 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
15228
15291
|
context: p
|
|
15229
15292
|
});
|
|
15230
15293
|
const f = "header" === t ? "header" : "footer";
|
|
15231
|
-
(y[r][f] ??= {})[i] = { relId: d }, "header" === t ? x += 1 :
|
|
15294
|
+
(y[r][f] ??= {})[i] = { relId: d }, "header" === t ? x += 1 : S += 1;
|
|
15232
15295
|
};
|
|
15233
15296
|
i("header", "first", t.firstPageHeader), i("header", "even", t.evenPageHeader), i("header", "default", t.header), i("footer", "first", t.firstPageFooter), i("footer", "even", t.evenPageFooter), i("footer", "default", t.footer);
|
|
15234
15297
|
});
|
|
15235
|
-
const
|
|
15298
|
+
const E = n.definitions.length > 0, N = i.some((e) => (e.evenPageHeader?.length ?? 0) > 0 || (e.evenPageFooter?.length ?? 0) > 0), k = N || void 0 !== e.settings?.defaultTabStop || void 0 !== e.settings?.allowSpaceOfSameStyleInTable || void 0 !== e.settings?.autoHyphenation || void 0 !== e.settings?.consecutiveHyphenLimit || void 0 !== e.settings?.hyphenationZone || void 0 !== e.settings?.doNotHyphenateCaps || void 0 !== e.footnotes?.settings || void 0 !== e.endnotes?.settings, T = [...g.images, ...v.flatMap((e) => e.context.images)], _ = c ? function(e, t, r, n, o, i, a) {
|
|
15236
15299
|
const s = o(t.flatMap((e) => ks(e.footnote.blocks)));
|
|
15237
15300
|
s.footnoteIdMap = a;
|
|
15238
15301
|
const l = t.map((e) => {
|
|
15239
|
-
const t =
|
|
15302
|
+
const t = Ss(ks(e.footnote.blocks), s, i);
|
|
15240
15303
|
return `<w:footnote w:id="${e.docxId}">${t}</w:footnote>`;
|
|
15241
15304
|
}).join("");
|
|
15242
15305
|
return {
|
|
15243
|
-
xml: `<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:footnotes xmlns:w="${Po}" xmlns:w14="${
|
|
15306
|
+
xml: `<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:footnotes xmlns:w="${Po}" xmlns:w14="${Mo}" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture" xmlns:r="${Oo}"><w:footnote w:type="separator" w:id="-1"><w:p><w:r><w:separator/></w:r></w:p></w:footnote><w:footnote w:type="continuationSeparator" w:id="0"><w:p><w:r><w:continuationSeparator/></w:r></w:p></w:footnote>${l}</w:footnotes>`,
|
|
15244
15307
|
partContext: s
|
|
15245
15308
|
};
|
|
15246
15309
|
}(0, s, 0, 0, (t) => fl(t, n, o, e), e.styles, l) : null;
|
|
@@ -15249,39 +15312,39 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
15249
15312
|
const s = o(t.flatMap((e) => Is(e.endnote.blocks)));
|
|
15250
15313
|
s.endnoteIdMap = a;
|
|
15251
15314
|
const l = t.map((e) => {
|
|
15252
|
-
const t =
|
|
15315
|
+
const t = Ss(Is(e.endnote.blocks), s, i);
|
|
15253
15316
|
return `<w:endnote w:id="${e.docxId}">${t}</w:endnote>`;
|
|
15254
15317
|
}).join("");
|
|
15255
15318
|
return {
|
|
15256
|
-
xml: `<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:endnotes xmlns:w="${Po}" xmlns:w14="${
|
|
15319
|
+
xml: `<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:endnotes xmlns:w="${Po}" xmlns:w14="${Mo}" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture" xmlns:r="${Oo}"><w:endnote w:type="separator" w:id="-1"><w:p><w:r><w:separator/></w:r></w:p></w:endnote><w:endnote w:type="continuationSeparator" w:id="0"><w:p><w:r><w:continuationSeparator/></w:r></w:p></w:endnote>${l}</w:endnotes>`,
|
|
15257
15320
|
partContext: s
|
|
15258
15321
|
};
|
|
15259
15322
|
}(0, u, 0, 0, (t) => fl(t, n, o, e), e.styles, d) : null;
|
|
15260
15323
|
I && T.push(...I.partContext.images);
|
|
15261
|
-
const
|
|
15262
|
-
r.file("[Content_Types].xml",
|
|
15324
|
+
const C = T.filter((e) => "embedded" === e.kind).map((e) => e.target.split(".").pop()?.toLowerCase()).filter((e) => Boolean(e)), A = null != e.styles && Object.keys(e.styles).length > 0, R = (e.fontTable?.length ?? 0) > 0, D = void 0 !== e.design;
|
|
15325
|
+
r.file("[Content_Types].xml", Os(E, C, k, v, c, p, A, b, R, D)), r.file("_rels/.rels", `<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="${Fo}"><Relationship Id="rId1" Type="${Oo}/officeDocument" Target="word/document.xml"/></Relationships>`), r.file("word/document.xml", Zs(e, g, y)), A && r.file("word/styles.xml", function(e) {
|
|
15263
15326
|
const t = Object.values(e).map(Fs).join("");
|
|
15264
|
-
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:styles xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="${
|
|
15265
|
-
}(e.styles)),
|
|
15327
|
+
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:styles xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="${Mo}">${t}</w:styles>`;
|
|
15328
|
+
}(e.styles)), E && r.file("word/numbering.xml", function(e) {
|
|
15266
15329
|
const t = e.map(({ abstractNumId: e, levels: t }) => `<w:abstractNum w:abstractNumId="${e}">${t.sort((e, t) => e.level - t.level).map(({ kind: e, level: t, format: r, startAt: n, levelText: o, suffix: i, alignment: a, legal: s, bulletGlyph: l, bulletFont: c, ooxml: u }) => {
|
|
15267
15330
|
const d = "bullet" === e ? "bullet" : u?.format ?? r ?? "decimal", p = o ?? ("bullet" === e ? l ?? "" : `%${t + 1}.`), f = n ?? 1, h = "bullet" === e ? c ?? "Symbol" : void 0, m = h ? `<w:rPr><w:rFonts w:ascii="${Lo(h)}" w:hAnsi="${Lo(h)}" w:hint="default"/></w:rPr>` : "", g = i && "tab" !== i ? `<w:suff w:val="${i}"/>` : "", w = s ? "<w:isLgl/>" : "", b = void 0 !== u?.restartAfterLevel ? `<w:lvlRestart w:val="${u.restartAfterLevel}"/>` : "", v = u?.paragraphStyleId ? `<w:pStyle w:val="${Lo(u.paragraphStyleId)}"/>` : "";
|
|
15268
15331
|
return `<w:lvl w:ilvl="${t}"><w:start w:val="${f}"/><w:numFmt w:val="${Lo(d)}"/>${b}${v}<w:lvlText w:val="${Lo(p)}"/><w:lvlJc w:val="${a ?? "left"}"/>${g}${w}${m}</w:lvl>`;
|
|
15269
15332
|
}).join("")}</w:abstractNum>`).join(""), r = e.map(({ abstractNumId: e, numId: t }) => `<w:num w:numId="${t}"><w:abstractNumId w:val="${e}"/></w:num>`).join("");
|
|
15270
15333
|
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:numbering xmlns:w="${Po}">${t}${r}</w:numbering>`;
|
|
15271
|
-
}(n.definitions)), (
|
|
15334
|
+
}(n.definitions)), (A || E || k || g.images.length > 0 || g.hyperlinks.length > 0 || v.length > 0 || c || p || b || R || D) && r.file("word/_rels/document.xml.rels", function(e, t, r, n, o, i, a, s, l, c, u = !1) {
|
|
15272
15335
|
let d = "";
|
|
15273
|
-
s && (d += `<Relationship Id="rIdStyles" Type="${
|
|
15274
|
-
for (const p of n) d += `<Relationship Id="${p.rId}" Type="${
|
|
15336
|
+
s && (d += `<Relationship Id="rIdStyles" Type="${Oo}/styles" Target="styles.xml"/>`), e && (d += `<Relationship Id="rIdNum" Type="${Oo}/numbering" Target="numbering.xml"/>`), t && (d += `<Relationship Id="rIdSettings" Type="${Oo}/settings" Target="settings.xml"/>`);
|
|
15337
|
+
for (const p of n) d += `<Relationship Id="${p.rId}" Type="${Oo}/hyperlink" Target="${Lo(p.href)}" TargetMode="External"/>`;
|
|
15275
15338
|
for (const p of r) {
|
|
15276
15339
|
const e = "linked" === p.kind ? " TargetMode=\"External\"" : "";
|
|
15277
|
-
d += `<Relationship Id="${p.rId}" Type="${
|
|
15340
|
+
d += `<Relationship Id="${p.rId}" Type="${Oo}/image" Target="${Lo(p.target)}"${e}/>`;
|
|
15278
15341
|
}
|
|
15279
15342
|
for (const p of o) {
|
|
15280
15343
|
const e = "header" === p.kind ? "header" : "footer";
|
|
15281
|
-
d += `<Relationship Id="${p.relId}" Type="${
|
|
15344
|
+
d += `<Relationship Id="${p.relId}" Type="${Oo}/${e}" Target="${p.path}"/>`;
|
|
15282
15345
|
}
|
|
15283
|
-
return i && (d += `<Relationship Id="rIdFootnotes" Type="${
|
|
15284
|
-
}(
|
|
15346
|
+
return i && (d += `<Relationship Id="rIdFootnotes" Type="${Oo}/footnotes" Target="footnotes.xml"/>`), a && (d += `<Relationship Id="rIdEndnotes" Type="${Oo}/endnotes" Target="endnotes.xml"/>`), l && (d += `<Relationship Id="rIdComments" Type="${Oo}/comments" Target="comments.xml"/>`, d += "<Relationship Id=\"rIdCommentsExtended\" Type=\"http://schemas.microsoft.com/office/2011/relationships/commentsExtended\" Target=\"commentsExtended.xml\"/>"), c && (d += `<Relationship Id="rIdFontTable" Type="${Oo}/fontTable" Target="fontTable.xml"/>`), u && (d += `<Relationship Id="rIdTheme" Type="${Oo}/theme" Target="theme/theme1.xml"/>`), `<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="${Fo}">${d}</Relationships>`;
|
|
15347
|
+
}(E, k, g.images, g.hyperlinks, v, c, p, A, b, R, D)), R && r.file("word/fontTable.xml", function(e) {
|
|
15285
15348
|
const t = e.map((e) => {
|
|
15286
15349
|
const t = [];
|
|
15287
15350
|
if (e.altName && t.push(`<w:altName w:val="${Lo(e.altName)}"/>`), e.panose1 && t.push(`<w:panose1 w:val="${Lo(e.panose1)}"/>`), e.charset && t.push(`<w:charset w:val="${Lo(e.charset)}"/>`), e.family && t.push(`<w:family w:val="${Lo(e.family)}"/>`), e.pitch && t.push(`<w:pitch w:val="${Lo(e.pitch)}"/>`), e.sig) {
|
|
@@ -15325,12 +15388,12 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
15325
15388
|
doNotHyphenateCaps: e.settings?.doNotHyphenateCaps
|
|
15326
15389
|
}));
|
|
15327
15390
|
for (const w of v) r.file(`word/${w.path}`, Ys(w.kind, w.blocks, w.context, e.styles, e.design?.watermark)), (w.context.images.length > 0 || w.context.hyperlinks.length > 0) && r.file(`word/_rels/${w.path}.rels`, Us(w.context.images, w.context.hyperlinks));
|
|
15328
|
-
hl(r, "footnotes", _), hl(r, "endnotes", I), h && (r.file("word/comments.xml",
|
|
15391
|
+
hl(r, "footnotes", _), hl(r, "endnotes", I), h && (r.file("word/comments.xml", Go(h)), r.file("word/commentsExtended.xml", function(e) {
|
|
15329
15392
|
const t = new Map(e.comments.map(({ comment: e, paraId: t }) => [e.id, t])), r = e.comments.map(({ comment: e, paraId: r }) => {
|
|
15330
15393
|
const n = e.parentId ? t.get(e.parentId) : void 0;
|
|
15331
15394
|
return `<w15:commentEx w15:paraId="${r}"${n ? ` w15:paraIdParent="${n}"` : ""} w15:done="${e.resolved ? "1" : "0"}"/>`;
|
|
15332
15395
|
}).join("");
|
|
15333
|
-
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w15:commentsEx ${
|
|
15396
|
+
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w15:commentsEx ${Xo}>${r}</w15:commentsEx>`;
|
|
15334
15397
|
}(h)));
|
|
15335
15398
|
for (const w of T) "embedded" === w.kind && w.base64 && r.file(`word/${w.target}`, w.base64, { base64: !0 });
|
|
15336
15399
|
return r.generateAsync({ type: "arraybuffer" });
|
|
@@ -15359,10 +15422,10 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
15359
15422
|
const n = e.includes(".") ? e.slice(e.lastIndexOf(".") + 1).toLowerCase() : "";
|
|
15360
15423
|
return t.defaults[n];
|
|
15361
15424
|
}
|
|
15362
|
-
function
|
|
15425
|
+
function Sl(e, t) {
|
|
15363
15426
|
return !(!e.endsWith(".xml") && !e.endsWith(".rels")) || "application/xml" === t || Boolean(t?.endsWith("+xml"));
|
|
15364
15427
|
}
|
|
15365
|
-
async function
|
|
15428
|
+
async function El(e) {
|
|
15366
15429
|
const t = await w.default.loadAsync(e), r = [], n = await t.file("[Content_Types].xml")?.async("string"), o = function(e) {
|
|
15367
15430
|
const t = {
|
|
15368
15431
|
defaults: {},
|
|
@@ -15393,7 +15456,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
15393
15456
|
const i = {};
|
|
15394
15457
|
for (const [u, d] of Object.entries(t.files)) {
|
|
15395
15458
|
if (d.dir) continue;
|
|
15396
|
-
const e = Io(u), t = xl(e, o), r =
|
|
15459
|
+
const e = Io(u), t = xl(e, o), r = Sl(e, t) ? "xml" : "binary", n = "xml" === r ? await d.async("string") : await d.async("base64");
|
|
15397
15460
|
i[e] = {
|
|
15398
15461
|
path: e,
|
|
15399
15462
|
...t ? { contentType: t } : {},
|
|
@@ -15405,7 +15468,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
15405
15468
|
}
|
|
15406
15469
|
let a = [];
|
|
15407
15470
|
for (const [u, d] of Object.entries(i)) {
|
|
15408
|
-
const e =
|
|
15471
|
+
const e = Ao(u);
|
|
15409
15472
|
if (void 0 === e || "xml" !== d.kind) continue;
|
|
15410
15473
|
const t = $o(e, Ro(d.data), (t) => {
|
|
15411
15474
|
r.push({
|
|
@@ -15468,14 +15531,14 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
15468
15531
|
function Il(e) {
|
|
15469
15532
|
return `word/__oasis_source__/${e}`;
|
|
15470
15533
|
}
|
|
15471
|
-
function
|
|
15534
|
+
function Cl(e) {
|
|
15472
15535
|
return e ? e.map((e) => "External" !== e.targetMode && e.resolvedTarget ? {
|
|
15473
15536
|
...e,
|
|
15474
15537
|
target: `/${Il(e.resolvedTarget)}`,
|
|
15475
15538
|
resolvedTarget: void 0
|
|
15476
15539
|
} : e) : [];
|
|
15477
15540
|
}
|
|
15478
|
-
function
|
|
15541
|
+
function Al(e) {
|
|
15479
15542
|
for (const [t, r] of Object.entries(kl)) if (e.type.endsWith(t)) return r;
|
|
15480
15543
|
}
|
|
15481
15544
|
async function Rl(e, t) {
|
|
@@ -15483,7 +15546,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
15483
15546
|
if (e.mainDocumentPart !== Nl) return !0;
|
|
15484
15547
|
const t = e.parts[e.mainDocumentPart];
|
|
15485
15548
|
return Boolean(t?.relationships?.some((e) => {
|
|
15486
|
-
const t =
|
|
15549
|
+
const t = Al(e);
|
|
15487
15550
|
return Boolean(t && e.resolvedTarget && e.resolvedTarget !== t);
|
|
15488
15551
|
}));
|
|
15489
15552
|
}(t)) return e;
|
|
@@ -15493,20 +15556,20 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
15493
15556
|
if (i.path.endsWith(".rels") || "[Content_Types].xml" === i.path) continue;
|
|
15494
15557
|
const e = Il(i.path);
|
|
15495
15558
|
_l(r, e, i);
|
|
15496
|
-
const t =
|
|
15559
|
+
const t = Cl(i.relationships);
|
|
15497
15560
|
t.length > 0 && r.file(Tl(e), Do(t));
|
|
15498
15561
|
}
|
|
15499
15562
|
const n = t.parts[t.mainDocumentPart];
|
|
15500
15563
|
if (!n) throw new Error(`DOCX source package is missing its main part: ${t.mainDocumentPart}`);
|
|
15501
15564
|
_l(r, Nl, n);
|
|
15502
|
-
const o =
|
|
15565
|
+
const o = Cl(n.relationships);
|
|
15503
15566
|
o.length > 0 && r.file(Tl(Nl), Do(o));
|
|
15504
15567
|
for (const i of n.relationships ?? []) {
|
|
15505
15568
|
if ("External" === i.targetMode || !i.resolvedTarget) continue;
|
|
15506
|
-
const e =
|
|
15569
|
+
const e = Al(i), n = t.parts[i.resolvedTarget];
|
|
15507
15570
|
if (!e || !n) continue;
|
|
15508
15571
|
_l(r, e, n);
|
|
15509
|
-
const o =
|
|
15572
|
+
const o = Cl(n.relationships);
|
|
15510
15573
|
o.length > 0 && r.file(Tl(e), Do(o));
|
|
15511
15574
|
}
|
|
15512
15575
|
return r.generateAsync({ type: "arraybuffer" });
|
|
@@ -15517,7 +15580,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
15517
15580
|
globalThis.addEventListener("message", async (e) => {
|
|
15518
15581
|
const t = e.data;
|
|
15519
15582
|
if ("import-docx" === t?.type) try {
|
|
15520
|
-
const e = await
|
|
15583
|
+
const e = await El(t.buffer), n = await ko(await Rl(t.buffer, e), { onProgress: (e, r) => {
|
|
15521
15584
|
Dl({
|
|
15522
15585
|
type: "progress",
|
|
15523
15586
|
id: t.id,
|