@harbour-enterprises/superdoc 0.9.31 → 0.10.1

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.
@@ -1,17 +1,17 @@
1
- var Bu = Object.defineProperty;
1
+ var ku = Object.defineProperty;
2
2
  var Oi = (r) => {
3
3
  throw TypeError(r);
4
4
  };
5
- var ku = (r, e, t) => e in r ? Bu(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
6
- var _t = (r, e, t) => ku(r, typeof e != "symbol" ? e + "" : e, t), Nu = (r, e, t) => e.has(r) || Oi("Cannot " + t);
5
+ var Nu = (r, e, t) => e in r ? ku(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
6
+ var _t = (r, e, t) => Nu(r, typeof e != "symbol" ? e + "" : e, t), Iu = (r, e, t) => e.has(r) || Oi("Cannot " + t);
7
7
  var Nr = (r, e, t) => e.has(r) ? Oi("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t);
8
- var Ke = (r, e, t) => (Nu(r, e, "access private method"), t);
8
+ var Ke = (r, e, t) => (Iu(r, e, "access private method"), t);
9
9
  import "vue";
10
10
  var We = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
11
- function Lo(r) {
11
+ function _o(r) {
12
12
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
13
13
  }
14
- function Iu(r) {
14
+ function Ru(r) {
15
15
  if (r.__esModule) return r;
16
16
  var e = r.default;
17
17
  if (typeof e == "function") {
@@ -31,15 +31,15 @@ function Iu(r) {
31
31
  }), t;
32
32
  }
33
33
  var Se = {}, Ar = {};
34
- Ar.byteLength = Ou;
35
- Ar.toByteArray = _u;
36
- Ar.fromByteArray = Uu;
37
- var Ze = [], Ve = [], Ru = typeof Uint8Array < "u" ? Uint8Array : Array, Ir = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
38
- for (var bt = 0, Pu = Ir.length; bt < Pu; ++bt)
34
+ Ar.byteLength = Lu;
35
+ Ar.toByteArray = qu;
36
+ Ar.fromByteArray = ju;
37
+ var Ze = [], Ve = [], Pu = typeof Uint8Array < "u" ? Uint8Array : Array, Ir = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
38
+ for (var bt = 0, Ou = Ir.length; bt < Ou; ++bt)
39
39
  Ze[bt] = Ir[bt], Ve[Ir.charCodeAt(bt)] = bt;
40
40
  Ve[45] = 62;
41
41
  Ve[95] = 63;
42
- function _o(r) {
42
+ function qo(r) {
43
43
  var e = r.length;
44
44
  if (e % 4 > 0)
45
45
  throw new Error("Invalid string. Length must be a multiple of 4");
@@ -48,30 +48,30 @@ function _o(r) {
48
48
  var n = t === e ? 0 : 4 - t % 4;
49
49
  return [t, n];
50
50
  }
51
- function Ou(r) {
52
- var e = _o(r), t = e[0], n = e[1];
51
+ function Lu(r) {
52
+ var e = qo(r), t = e[0], n = e[1];
53
53
  return (t + n) * 3 / 4 - n;
54
54
  }
55
- function Lu(r, e, t) {
55
+ function _u(r, e, t) {
56
56
  return (e + t) * 3 / 4 - t;
57
57
  }
58
- function _u(r) {
59
- var e, t = _o(r), n = t[0], i = t[1], s = new Ru(Lu(r, n, i)), o = 0, a = i > 0 ? n - 4 : n, u;
58
+ function qu(r) {
59
+ var e, t = qo(r), n = t[0], i = t[1], s = new Pu(_u(r, n, i)), o = 0, a = i > 0 ? n - 4 : n, u;
60
60
  for (u = 0; u < a; u += 4)
61
61
  e = Ve[r.charCodeAt(u)] << 18 | Ve[r.charCodeAt(u + 1)] << 12 | Ve[r.charCodeAt(u + 2)] << 6 | Ve[r.charCodeAt(u + 3)], s[o++] = e >> 16 & 255, s[o++] = e >> 8 & 255, s[o++] = e & 255;
62
62
  return i === 2 && (e = Ve[r.charCodeAt(u)] << 2 | Ve[r.charCodeAt(u + 1)] >> 4, s[o++] = e & 255), i === 1 && (e = Ve[r.charCodeAt(u)] << 10 | Ve[r.charCodeAt(u + 1)] << 4 | Ve[r.charCodeAt(u + 2)] >> 2, s[o++] = e >> 8 & 255, s[o++] = e & 255), s;
63
63
  }
64
- function qu(r) {
64
+ function Mu(r) {
65
65
  return Ze[r >> 18 & 63] + Ze[r >> 12 & 63] + Ze[r >> 6 & 63] + Ze[r & 63];
66
66
  }
67
- function Mu(r, e, t) {
67
+ function Uu(r, e, t) {
68
68
  for (var n, i = [], s = e; s < t; s += 3)
69
- n = (r[s] << 16 & 16711680) + (r[s + 1] << 8 & 65280) + (r[s + 2] & 255), i.push(qu(n));
69
+ n = (r[s] << 16 & 16711680) + (r[s + 1] << 8 & 65280) + (r[s + 2] & 255), i.push(Mu(n));
70
70
  return i.join("");
71
71
  }
72
- function Uu(r) {
72
+ function ju(r) {
73
73
  for (var e, t = r.length, n = t % 3, i = [], s = 16383, o = 0, a = t - n; o < a; o += s)
74
- i.push(Mu(r, o, o + s > a ? a : o + s));
74
+ i.push(Uu(r, o, o + s > a ? a : o + s));
75
75
  return n === 1 ? (e = r[t - 1], i.push(
76
76
  Ze[e >> 2] + Ze[e << 4 & 63] + "=="
77
77
  )) : n === 2 && (e = (r[t - 2] << 8) + r[t - 1], i.push(
@@ -1043,34 +1043,34 @@ wi.write = function(r, e, t, n, i, s) {
1043
1043
  return l;
1044
1044
  }();
1045
1045
  function Le(y) {
1046
- return typeof BigInt > "u" ? Fu : y;
1046
+ return typeof BigInt > "u" ? Bu : y;
1047
1047
  }
1048
- function Fu() {
1048
+ function Bu() {
1049
1049
  throw new Error("BigInt not supported");
1050
1050
  }
1051
1051
  })(Se);
1052
- const Ht = Se.Buffer, ju = Se.Blob, Hu = Se.BlobOptions, Vu = Se.Buffer, zu = Se.File, Gu = Se.FileOptions, Wu = Se.INSPECT_MAX_BYTES, Ju = Se.SlowBuffer, Ku = Se.TranscodeEncoding, $u = Se.atob, Xu = Se.btoa, Yu = Se.constants, Qu = Se.isAscii, Zu = Se.isUtf8, el = Se.kMaxLength, tl = Se.kStringMaxLength, rl = Se.resolveObjectURL, nl = Se.transcode, il = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1052
+ const Ht = Se.Buffer, Hu = Se.Blob, Vu = Se.BlobOptions, zu = Se.Buffer, Gu = Se.File, Wu = Se.FileOptions, Ju = Se.INSPECT_MAX_BYTES, Ku = Se.SlowBuffer, $u = Se.TranscodeEncoding, Xu = Se.atob, Yu = Se.btoa, Qu = Se.constants, Zu = Se.isAscii, el = Se.isUtf8, tl = Se.kMaxLength, rl = Se.kStringMaxLength, nl = Se.resolveObjectURL, il = Se.transcode, sl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1053
1053
  __proto__: null,
1054
- Blob: ju,
1055
- BlobOptions: Hu,
1056
- Buffer: Vu,
1057
- File: zu,
1058
- FileOptions: Gu,
1059
- INSPECT_MAX_BYTES: Wu,
1060
- SlowBuffer: Ju,
1061
- TranscodeEncoding: Ku,
1062
- atob: $u,
1063
- btoa: Xu,
1064
- constants: Yu,
1054
+ Blob: Hu,
1055
+ BlobOptions: Vu,
1056
+ Buffer: zu,
1057
+ File: Gu,
1058
+ FileOptions: Wu,
1059
+ INSPECT_MAX_BYTES: Ju,
1060
+ SlowBuffer: Ku,
1061
+ TranscodeEncoding: $u,
1062
+ atob: Xu,
1063
+ btoa: Yu,
1064
+ constants: Qu,
1065
1065
  default: Ht,
1066
- isAscii: Qu,
1067
- isUtf8: Zu,
1068
- kMaxLength: el,
1069
- kStringMaxLength: tl,
1070
- resolveObjectURL: rl,
1071
- transcode: nl
1066
+ isAscii: Zu,
1067
+ isUtf8: el,
1068
+ kMaxLength: tl,
1069
+ kStringMaxLength: rl,
1070
+ resolveObjectURL: nl,
1071
+ transcode: il
1072
1072
  }, Symbol.toStringTag, { value: "Module" }));
1073
- var qo = {}, Yt = { exports: {} }, Li;
1073
+ var Mo = {}, Yt = { exports: {} }, Li;
1074
1074
  function yi() {
1075
1075
  if (Li) return Yt.exports;
1076
1076
  Li = 1;
@@ -1302,10 +1302,10 @@ function yt() {
1302
1302
  }
1303
1303
  }), Qt.exports;
1304
1304
  }
1305
- function sl(r) {
1305
+ function ol(r) {
1306
1306
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
1307
1307
  }
1308
- var Mo = { exports: {} }, Ee = Mo.exports = {}, Xe, Ye;
1308
+ var Uo = { exports: {} }, Ee = Uo.exports = {}, Xe, Ye;
1309
1309
  function oi() {
1310
1310
  throw new Error("setTimeout has not been defined");
1311
1311
  }
@@ -1324,7 +1324,7 @@ function ai() {
1324
1324
  Ye = ai;
1325
1325
  }
1326
1326
  })();
1327
- function Uo(r) {
1327
+ function jo(r) {
1328
1328
  if (Xe === setTimeout)
1329
1329
  return setTimeout(r, 0);
1330
1330
  if ((Xe === oi || !Xe) && setTimeout)
@@ -1339,7 +1339,7 @@ function Uo(r) {
1339
1339
  }
1340
1340
  }
1341
1341
  }
1342
- function ol(r) {
1342
+ function al(r) {
1343
1343
  if (Ye === clearTimeout)
1344
1344
  return clearTimeout(r);
1345
1345
  if ((Ye === ai || !Ye) && clearTimeout)
@@ -1355,19 +1355,19 @@ function ol(r) {
1355
1355
  }
1356
1356
  }
1357
1357
  var ot = [], Et = !1, mt, sr = -1;
1358
- function al() {
1359
- !Et || !mt || (Et = !1, mt.length ? ot = mt.concat(ot) : sr = -1, ot.length && jo());
1358
+ function ul() {
1359
+ !Et || !mt || (Et = !1, mt.length ? ot = mt.concat(ot) : sr = -1, ot.length && Ho());
1360
1360
  }
1361
- function jo() {
1361
+ function Ho() {
1362
1362
  if (!Et) {
1363
- var r = Uo(al);
1363
+ var r = jo(ul);
1364
1364
  Et = !0;
1365
1365
  for (var e = ot.length; e; ) {
1366
1366
  for (mt = ot, ot = []; ++sr < e; )
1367
1367
  mt && mt[sr].run();
1368
1368
  sr = -1, e = ot.length;
1369
1369
  }
1370
- mt = null, Et = !1, ol(r);
1370
+ mt = null, Et = !1, al(r);
1371
1371
  }
1372
1372
  }
1373
1373
  Ee.nextTick = function(r) {
@@ -1375,12 +1375,12 @@ Ee.nextTick = function(r) {
1375
1375
  if (arguments.length > 1)
1376
1376
  for (var t = 1; t < arguments.length; t++)
1377
1377
  e[t - 1] = arguments[t];
1378
- ot.push(new Ho(r, e)), ot.length === 1 && !Et && Uo(jo);
1378
+ ot.push(new Vo(r, e)), ot.length === 1 && !Et && jo(Ho);
1379
1379
  };
1380
- function Ho(r, e) {
1380
+ function Vo(r, e) {
1381
1381
  this.fun = r, this.array = e;
1382
1382
  }
1383
- Ho.prototype.run = function() {
1383
+ Vo.prototype.run = function() {
1384
1384
  this.fun.apply(null, this.array);
1385
1385
  };
1386
1386
  Ee.title = "browser";
@@ -1415,15 +1415,15 @@ Ee.chdir = function(r) {
1415
1415
  Ee.umask = function() {
1416
1416
  return 0;
1417
1417
  };
1418
- var ul = Mo.exports;
1419
- const me = /* @__PURE__ */ sl(ul);
1418
+ var ll = Uo.exports;
1419
+ const me = /* @__PURE__ */ ol(ll);
1420
1420
  var Rr, qi;
1421
- function Vo() {
1421
+ function zo() {
1422
1422
  return qi || (qi = 1, Rr = yi().EventEmitter), Rr;
1423
1423
  }
1424
- const Dr = /* @__PURE__ */ Iu(il);
1424
+ const Dr = /* @__PURE__ */ Ru(sl);
1425
1425
  var Pr = {}, Or = {}, Lr, Mi;
1426
- function zo() {
1426
+ function Go() {
1427
1427
  return Mi || (Mi = 1, Lr = function() {
1428
1428
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
1429
1429
  return !1;
@@ -1456,33 +1456,33 @@ var _r, Ui;
1456
1456
  function Er() {
1457
1457
  if (Ui) return _r;
1458
1458
  Ui = 1;
1459
- var r = zo();
1459
+ var r = Go();
1460
1460
  return _r = function() {
1461
1461
  return r() && !!Symbol.toStringTag;
1462
1462
  }, _r;
1463
1463
  }
1464
1464
  var qr, ji;
1465
- function Go() {
1465
+ function Wo() {
1466
1466
  return ji || (ji = 1, qr = Object), qr;
1467
1467
  }
1468
1468
  var Mr, Hi;
1469
- function ll() {
1469
+ function cl() {
1470
1470
  return Hi || (Hi = 1, Mr = Error), Mr;
1471
1471
  }
1472
1472
  var Ur, Vi;
1473
- function cl() {
1473
+ function fl() {
1474
1474
  return Vi || (Vi = 1, Ur = EvalError), Ur;
1475
1475
  }
1476
1476
  var jr, zi;
1477
- function fl() {
1477
+ function dl() {
1478
1478
  return zi || (zi = 1, jr = RangeError), jr;
1479
1479
  }
1480
1480
  var Hr, Gi;
1481
- function dl() {
1481
+ function ml() {
1482
1482
  return Gi || (Gi = 1, Hr = ReferenceError), Hr;
1483
1483
  }
1484
1484
  var Vr, Wi;
1485
- function Wo() {
1485
+ function Jo() {
1486
1486
  return Wi || (Wi = 1, Vr = SyntaxError), Vr;
1487
1487
  }
1488
1488
  var zr, Ji;
@@ -1490,57 +1490,57 @@ function Jt() {
1490
1490
  return Ji || (Ji = 1, zr = TypeError), zr;
1491
1491
  }
1492
1492
  var Gr, Ki;
1493
- function ml() {
1493
+ function pl() {
1494
1494
  return Ki || (Ki = 1, Gr = URIError), Gr;
1495
1495
  }
1496
1496
  var Wr, $i;
1497
- function pl() {
1497
+ function hl() {
1498
1498
  return $i || ($i = 1, Wr = Math.abs), Wr;
1499
1499
  }
1500
1500
  var Jr, Xi;
1501
- function hl() {
1501
+ function gl() {
1502
1502
  return Xi || (Xi = 1, Jr = Math.floor), Jr;
1503
1503
  }
1504
1504
  var Kr, Yi;
1505
- function gl() {
1505
+ function wl() {
1506
1506
  return Yi || (Yi = 1, Kr = Math.max), Kr;
1507
1507
  }
1508
1508
  var $r, Qi;
1509
- function wl() {
1509
+ function yl() {
1510
1510
  return Qi || (Qi = 1, $r = Math.min), $r;
1511
1511
  }
1512
1512
  var Xr, Zi;
1513
- function yl() {
1513
+ function bl() {
1514
1514
  return Zi || (Zi = 1, Xr = Math.pow), Xr;
1515
1515
  }
1516
1516
  var Yr, es;
1517
- function bl() {
1517
+ function xl() {
1518
1518
  return es || (es = 1, Yr = Math.round), Yr;
1519
1519
  }
1520
1520
  var Qr, ts;
1521
- function xl() {
1521
+ function Al() {
1522
1522
  return ts || (ts = 1, Qr = Number.isNaN || function(e) {
1523
1523
  return e !== e;
1524
1524
  }), Qr;
1525
1525
  }
1526
1526
  var Zr, rs;
1527
- function Al() {
1527
+ function Dl() {
1528
1528
  if (rs) return Zr;
1529
1529
  rs = 1;
1530
- var r = xl();
1530
+ var r = Al();
1531
1531
  return Zr = function(t) {
1532
1532
  return r(t) || t === 0 ? t : t < 0 ? -1 : 1;
1533
1533
  }, Zr;
1534
1534
  }
1535
1535
  var en, ns;
1536
- function Dl() {
1536
+ function El() {
1537
1537
  return ns || (ns = 1, en = Object.getOwnPropertyDescriptor), en;
1538
1538
  }
1539
1539
  var tn, is;
1540
1540
  function It() {
1541
1541
  if (is) return tn;
1542
1542
  is = 1;
1543
- var r = Dl();
1543
+ var r = El();
1544
1544
  if (r)
1545
1545
  try {
1546
1546
  r([], "length");
@@ -1563,27 +1563,27 @@ function vr() {
1563
1563
  return rn = r, rn;
1564
1564
  }
1565
1565
  var nn, os;
1566
- function El() {
1566
+ function vl() {
1567
1567
  if (os) return nn;
1568
1568
  os = 1;
1569
- var r = typeof Symbol < "u" && Symbol, e = zo();
1569
+ var r = typeof Symbol < "u" && Symbol, e = Go();
1570
1570
  return nn = function() {
1571
1571
  return typeof r != "function" || typeof Symbol != "function" || typeof r("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
1572
1572
  }, nn;
1573
1573
  }
1574
1574
  var sn, as;
1575
- function Jo() {
1575
+ function Ko() {
1576
1576
  return as || (as = 1, sn = typeof Reflect < "u" && Reflect.getPrototypeOf || null), sn;
1577
1577
  }
1578
1578
  var on, us;
1579
- function Ko() {
1579
+ function $o() {
1580
1580
  if (us) return on;
1581
1581
  us = 1;
1582
- var r = Go();
1582
+ var r = Wo();
1583
1583
  return on = r.getPrototypeOf || null, on;
1584
1584
  }
1585
1585
  var an, ls;
1586
- function vl() {
1586
+ function Cl() {
1587
1587
  if (ls) return an;
1588
1588
  ls = 1;
1589
1589
  var r = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, t = Math.max, n = "[object Function]", i = function(u, f) {
@@ -1631,7 +1631,7 @@ var un, cs;
1631
1631
  function Kt() {
1632
1632
  if (cs) return un;
1633
1633
  cs = 1;
1634
- var r = vl();
1634
+ var r = Cl();
1635
1635
  return un = Function.prototype.bind || r, un;
1636
1636
  }
1637
1637
  var ln, fs;
@@ -1643,21 +1643,21 @@ function xi() {
1643
1643
  return ds || (ds = 1, cn = Function.prototype.apply), cn;
1644
1644
  }
1645
1645
  var fn, ms;
1646
- function Cl() {
1646
+ function Sl() {
1647
1647
  return ms || (ms = 1, fn = typeof Reflect < "u" && Reflect && Reflect.apply), fn;
1648
1648
  }
1649
1649
  var dn, ps;
1650
- function $o() {
1650
+ function Xo() {
1651
1651
  if (ps) return dn;
1652
1652
  ps = 1;
1653
- var r = Kt(), e = xi(), t = bi(), n = Cl();
1653
+ var r = Kt(), e = xi(), t = bi(), n = Sl();
1654
1654
  return dn = n || r.call(t, e), dn;
1655
1655
  }
1656
1656
  var mn, hs;
1657
1657
  function Ai() {
1658
1658
  if (hs) return mn;
1659
1659
  hs = 1;
1660
- var r = Kt(), e = Jt(), t = bi(), n = $o();
1660
+ var r = Kt(), e = Jt(), t = bi(), n = Xo();
1661
1661
  return mn = function(s) {
1662
1662
  if (s.length < 1 || typeof s[0] != "function")
1663
1663
  throw new e("a function is required");
@@ -1665,7 +1665,7 @@ function Ai() {
1665
1665
  }, mn;
1666
1666
  }
1667
1667
  var pn, gs;
1668
- function Sl() {
1668
+ function Tl() {
1669
1669
  if (gs) return pn;
1670
1670
  gs = 1;
1671
1671
  var r = Ai(), e = It(), t;
@@ -1692,7 +1692,7 @@ var hn, ws;
1692
1692
  function Di() {
1693
1693
  if (ws) return hn;
1694
1694
  ws = 1;
1695
- var r = Jo(), e = Ko(), t = Sl();
1695
+ var r = Ko(), e = $o(), t = Tl();
1696
1696
  return hn = r ? function(i) {
1697
1697
  return r(i);
1698
1698
  } : e ? function(i) {
@@ -1704,17 +1704,17 @@ function Di() {
1704
1704
  } : null, hn;
1705
1705
  }
1706
1706
  var gn, ys;
1707
- function Xo() {
1707
+ function Yo() {
1708
1708
  if (ys) return gn;
1709
1709
  ys = 1;
1710
1710
  var r = Function.prototype.call, e = Object.prototype.hasOwnProperty, t = Kt();
1711
1711
  return gn = t.call(r, e), gn;
1712
1712
  }
1713
1713
  var wn, bs;
1714
- function Yo() {
1714
+ function Qo() {
1715
1715
  if (bs) return wn;
1716
1716
  bs = 1;
1717
- var r, e = Go(), t = ll(), n = cl(), i = fl(), s = dl(), o = Wo(), a = Jt(), u = ml(), f = pl(), c = hl(), h = gl(), g = wl(), S = yl(), T = bl(), A = Al(), B = Function, w = function(I) {
1717
+ var r, e = Wo(), t = cl(), n = fl(), i = dl(), s = ml(), o = Jo(), a = Jt(), u = pl(), f = hl(), c = gl(), h = wl(), g = yl(), S = bl(), T = xl(), A = Dl(), B = Function, w = function(I) {
1718
1718
  try {
1719
1719
  return B('"use strict"; return (' + I + ").constructor;")();
1720
1720
  } catch {
@@ -1731,7 +1731,7 @@ function Yo() {
1731
1731
  return C;
1732
1732
  }
1733
1733
  }
1734
- }() : C, N = El()(), M = Di(), q = Ko(), D = Jo(), $ = xi(), ie = bi(), ee = {}, X = typeof Uint8Array > "u" || !M ? r : M(Uint8Array), ce = {
1734
+ }() : C, N = vl()(), M = Di(), q = $o(), D = Ko(), $ = xi(), ie = bi(), ee = {}, X = typeof Uint8Array > "u" || !M ? r : M(Uint8Array), ce = {
1735
1735
  __proto__: null,
1736
1736
  "%AggregateError%": typeof AggregateError > "u" ? r : AggregateError,
1737
1737
  "%Array%": Array,
@@ -1891,7 +1891,7 @@ function Yo() {
1891
1891
  "%URIErrorPrototype%": ["URIError", "prototype"],
1892
1892
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
1893
1893
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
1894
- }, pe = Kt(), J = Xo(), ne = pe.call(ie, Array.prototype.concat), ae = pe.call($, Array.prototype.splice), L = pe.call(ie, String.prototype.replace), H = pe.call(ie, String.prototype.slice), V = pe.call(ie, RegExp.prototype.exec), K = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, P = /\\(\\)?/g, p = function(E) {
1894
+ }, pe = Kt(), J = Yo(), ne = pe.call(ie, Array.prototype.concat), ae = pe.call($, Array.prototype.splice), L = pe.call(ie, String.prototype.replace), H = pe.call(ie, String.prototype.slice), V = pe.call(ie, RegExp.prototype.exec), K = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, P = /\\(\\)?/g, p = function(E) {
1895
1895
  var b = H(E, 0, 1), x = H(E, -1);
1896
1896
  if (b === "%" && x !== "%")
1897
1897
  throw new o("invalid intrinsic syntax, expected closing `%`");
@@ -1951,7 +1951,7 @@ var yn, xs;
1951
1951
  function $t() {
1952
1952
  if (xs) return yn;
1953
1953
  xs = 1;
1954
- var r = Yo(), e = Ai(), t = e([r("%String.prototype.indexOf%")]);
1954
+ var r = Qo(), e = Ai(), t = e([r("%String.prototype.indexOf%")]);
1955
1955
  return yn = function(i, s) {
1956
1956
  var o = (
1957
1957
  /** @type {(this: unknown, ...args: unknown[]) => unknown} */
@@ -1964,7 +1964,7 @@ function $t() {
1964
1964
  }, yn;
1965
1965
  }
1966
1966
  var bn, As;
1967
- function Tl() {
1967
+ function Fl() {
1968
1968
  if (As) return bn;
1969
1969
  As = 1;
1970
1970
  var r = Er()(), e = $t(), t = e("Object.prototype.toString"), n = function(a) {
@@ -1977,10 +1977,10 @@ function Tl() {
1977
1977
  return n.isLegacyArguments = i, bn = s ? n : i, bn;
1978
1978
  }
1979
1979
  var xn, Ds;
1980
- function Fl() {
1980
+ function Bl() {
1981
1981
  if (Ds) return xn;
1982
1982
  Ds = 1;
1983
- var r = $t(), e = Er()(), t = Xo(), n = It(), i;
1983
+ var r = $t(), e = Er()(), t = Yo(), n = It(), i;
1984
1984
  if (e) {
1985
1985
  var s = r("RegExp.prototype.exec"), o = {}, a = function() {
1986
1986
  throw o;
@@ -2021,10 +2021,10 @@ function Fl() {
2021
2021
  return xn = i, xn;
2022
2022
  }
2023
2023
  var An, Es;
2024
- function Bl() {
2024
+ function kl() {
2025
2025
  if (Es) return An;
2026
2026
  Es = 1;
2027
- var r = $t(), e = Fl(), t = r("RegExp.prototype.exec"), n = Jt();
2027
+ var r = $t(), e = Bl(), t = r("RegExp.prototype.exec"), n = Jt();
2028
2028
  return An = function(s) {
2029
2029
  if (!e(s))
2030
2030
  throw new n("`regex` must be a RegExp");
@@ -2034,10 +2034,10 @@ function Bl() {
2034
2034
  }, An;
2035
2035
  }
2036
2036
  var Dn, vs;
2037
- function kl() {
2037
+ function Nl() {
2038
2038
  if (vs) return Dn;
2039
2039
  vs = 1;
2040
- var r = $t(), e = Bl(), t = e(/^\s*(?:function)?\*/), n = Er()(), i = Di(), s = r("Object.prototype.toString"), o = r("Function.prototype.toString"), a = function() {
2040
+ var r = $t(), e = kl(), t = e(/^\s*(?:function)?\*/), n = Er()(), i = Di(), s = r("Object.prototype.toString"), o = r("Function.prototype.toString"), a = function() {
2041
2041
  if (!n)
2042
2042
  return !1;
2043
2043
  try {
@@ -2067,7 +2067,7 @@ function kl() {
2067
2067
  }, Dn;
2068
2068
  }
2069
2069
  var En, Cs;
2070
- function Nl() {
2070
+ function Il() {
2071
2071
  if (Cs) return En;
2072
2072
  Cs = 1;
2073
2073
  var r = Function.prototype.toString, e = typeof Reflect == "object" && Reflect !== null && Reflect.apply, t, n;
@@ -2139,10 +2139,10 @@ function Nl() {
2139
2139
  }, En;
2140
2140
  }
2141
2141
  var vn, Ss;
2142
- function Il() {
2142
+ function Rl() {
2143
2143
  if (Ss) return vn;
2144
2144
  Ss = 1;
2145
- var r = Nl(), e = Object.prototype.toString, t = Object.prototype.hasOwnProperty, n = function(u, f, c) {
2145
+ var r = Il(), e = Object.prototype.toString, t = Object.prototype.hasOwnProperty, n = function(u, f, c) {
2146
2146
  for (var h = 0, g = u.length; h < g; h++)
2147
2147
  t.call(u, h) && (c == null ? f(u[h], h, u) : f.call(c, u[h], h, u));
2148
2148
  }, i = function(u, f, c) {
@@ -2163,7 +2163,7 @@ function Il() {
2163
2163
  }, vn;
2164
2164
  }
2165
2165
  var Cn, Ts;
2166
- function Rl() {
2166
+ function Pl() {
2167
2167
  return Ts || (Ts = 1, Cn = [
2168
2168
  "Float16Array",
2169
2169
  "Float32Array",
@@ -2180,10 +2180,10 @@ function Rl() {
2180
2180
  ]), Cn;
2181
2181
  }
2182
2182
  var Sn, Fs;
2183
- function Pl() {
2183
+ function Ol() {
2184
2184
  if (Fs) return Sn;
2185
2185
  Fs = 1;
2186
- var r = Rl(), e = typeof globalThis > "u" ? We : globalThis;
2186
+ var r = Pl(), e = typeof globalThis > "u" ? We : globalThis;
2187
2187
  return Sn = function() {
2188
2188
  for (var n = [], i = 0; i < r.length; i++)
2189
2189
  typeof e[r[i]] == "function" && (n[n.length] = r[i]);
@@ -2191,10 +2191,10 @@ function Pl() {
2191
2191
  }, Sn;
2192
2192
  }
2193
2193
  var Tn = { exports: {} }, Fn, Bs;
2194
- function Ol() {
2194
+ function Ll() {
2195
2195
  if (Bs) return Fn;
2196
2196
  Bs = 1;
2197
- var r = vr(), e = Wo(), t = Jt(), n = It();
2197
+ var r = vr(), e = Jo(), t = Jt(), n = It();
2198
2198
  return Fn = function(s, o, a) {
2199
2199
  if (!s || typeof s != "object" && typeof s != "function")
2200
2200
  throw new t("`obj` must be an object or a function`");
@@ -2223,7 +2223,7 @@ function Ol() {
2223
2223
  }, Fn;
2224
2224
  }
2225
2225
  var Bn, ks;
2226
- function Ll() {
2226
+ function _l() {
2227
2227
  if (ks) return Bn;
2228
2228
  ks = 1;
2229
2229
  var r = vr(), e = function() {
@@ -2240,10 +2240,10 @@ function Ll() {
2240
2240
  }, Bn = e, Bn;
2241
2241
  }
2242
2242
  var kn, Ns;
2243
- function _l() {
2243
+ function ql() {
2244
2244
  if (Ns) return kn;
2245
2245
  Ns = 1;
2246
- var r = Yo(), e = Ol(), t = Ll()(), n = It(), i = Jt(), s = r("%Math.floor%");
2246
+ var r = Qo(), e = Ll(), t = _l()(), n = It(), i = Jt(), s = r("%Math.floor%");
2247
2247
  return kn = function(a, u) {
2248
2248
  if (typeof a != "function")
2249
2249
  throw new i("`fn` is not a function");
@@ -2270,18 +2270,18 @@ function _l() {
2270
2270
  }, kn;
2271
2271
  }
2272
2272
  var Nn, Is;
2273
- function ql() {
2273
+ function Ml() {
2274
2274
  if (Is) return Nn;
2275
2275
  Is = 1;
2276
- var r = Kt(), e = xi(), t = $o();
2276
+ var r = Kt(), e = xi(), t = Xo();
2277
2277
  return Nn = function() {
2278
2278
  return t(r, e, arguments);
2279
2279
  }, Nn;
2280
2280
  }
2281
2281
  var Rs;
2282
- function Ml() {
2282
+ function Ul() {
2283
2283
  return Rs || (Rs = 1, function(r) {
2284
- var e = _l(), t = vr(), n = Ai(), i = ql();
2284
+ var e = ql(), t = vr(), n = Ai(), i = Ml();
2285
2285
  r.exports = function(o) {
2286
2286
  var a = n(arguments), u = o.length - (arguments.length - 1);
2287
2287
  return e(
@@ -2293,10 +2293,10 @@ function Ml() {
2293
2293
  }(Tn)), Tn.exports;
2294
2294
  }
2295
2295
  var In, Ps;
2296
- function Qo() {
2296
+ function Zo() {
2297
2297
  if (Ps) return In;
2298
2298
  Ps = 1;
2299
- var r = Il(), e = Pl(), t = Ml(), n = $t(), i = It(), s = Di(), o = n("Object.prototype.toString"), a = Er()(), u = typeof globalThis > "u" ? We : globalThis, f = e(), c = n("String.prototype.slice"), h = n("Array.prototype.indexOf", !0) || function(B, w) {
2299
+ var r = Rl(), e = Ol(), t = Ul(), n = $t(), i = It(), s = Di(), o = n("Object.prototype.toString"), a = Er()(), u = typeof globalThis > "u" ? We : globalThis, f = e(), c = n("String.prototype.slice"), h = n("Array.prototype.indexOf", !0) || function(B, w) {
2300
2300
  for (var k = 0; k < B.length; k += 1)
2301
2301
  if (B[k] === w)
2302
2302
  return k;
@@ -2363,18 +2363,18 @@ function Qo() {
2363
2363
  }, In;
2364
2364
  }
2365
2365
  var Rn, Os;
2366
- function Ul() {
2366
+ function jl() {
2367
2367
  if (Os) return Rn;
2368
2368
  Os = 1;
2369
- var r = Qo();
2369
+ var r = Zo();
2370
2370
  return Rn = function(t) {
2371
2371
  return !!r(t);
2372
2372
  }, Rn;
2373
2373
  }
2374
2374
  var Ls;
2375
- function jl() {
2375
+ function Hl() {
2376
2376
  return Ls || (Ls = 1, function(r) {
2377
- var e = Tl(), t = kl(), n = Qo(), i = Ul();
2377
+ var e = Fl(), t = Nl(), n = Zo(), i = jl();
2378
2378
  function s(z) {
2379
2379
  return z.call.bind(z);
2380
2380
  }
@@ -2559,13 +2559,13 @@ function jl() {
2559
2559
  }(Or)), Or;
2560
2560
  }
2561
2561
  var Pn, _s;
2562
- function Hl() {
2562
+ function Vl() {
2563
2563
  return _s || (_s = 1, Pn = function(e) {
2564
2564
  return e && typeof e == "object" && typeof e.copy == "function" && typeof e.fill == "function" && typeof e.readUInt8 == "function";
2565
2565
  }), Pn;
2566
2566
  }
2567
2567
  var qs;
2568
- function Zo() {
2568
+ function ea() {
2569
2569
  return qs || (qs = 1, function(r) {
2570
2570
  var e = Object.getOwnPropertyDescriptors || function(H) {
2571
2571
  for (var V = Object.keys(H), K = {}, P = 0; P < V.length; P++)
@@ -2785,7 +2785,7 @@ function Zo() {
2785
2785
  `) + " " + L.join(`,
2786
2786
  `) + " " + V[1] : V[0] + H + " " + L.join(", ") + " " + V[1];
2787
2787
  }
2788
- r.types = jl();
2788
+ r.types = Hl();
2789
2789
  function B(L) {
2790
2790
  return Array.isArray(L);
2791
2791
  }
@@ -2842,7 +2842,7 @@ function Zo() {
2842
2842
  return L === null || typeof L == "boolean" || typeof L == "number" || typeof L == "string" || typeof L == "symbol" || // ES6 symbol
2843
2843
  typeof L > "u";
2844
2844
  }
2845
- r.isPrimitive = X, r.isBuffer = Hl();
2845
+ r.isPrimitive = X, r.isBuffer = Vl();
2846
2846
  function ce(L) {
2847
2847
  return Object.prototype.toString.call(L);
2848
2848
  }
@@ -2959,7 +2959,7 @@ function Zo() {
2959
2959
  }(Pr)), Pr;
2960
2960
  }
2961
2961
  var On, Ms;
2962
- function Vl() {
2962
+ function zl() {
2963
2963
  if (Ms) return On;
2964
2964
  Ms = 1;
2965
2965
  function r(T, A) {
@@ -3013,7 +3013,7 @@ function Vl() {
3013
3013
  }
3014
3014
  return String(T);
3015
3015
  }
3016
- var u = Dr, f = u.Buffer, c = Zo(), h = c.inspect, g = h && h.custom || "inspect";
3016
+ var u = Dr, f = u.Buffer, c = ea(), h = c.inspect, g = h && h.custom || "inspect";
3017
3017
  function S(T, A, B) {
3018
3018
  f.prototype.copy.call(T, A, B);
3019
3019
  }
@@ -3124,7 +3124,7 @@ function Vl() {
3124
3124
  }(), On;
3125
3125
  }
3126
3126
  var Ln, Us;
3127
- function ea() {
3127
+ function ta() {
3128
3128
  if (Us) return Ln;
3129
3129
  Us = 1;
3130
3130
  function r(o, a) {
@@ -3217,7 +3217,7 @@ function Rt() {
3217
3217
  }, TypeError), t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event"), _n.codes = e, _n;
3218
3218
  }
3219
3219
  var qn, Hs;
3220
- function ta() {
3220
+ function ra() {
3221
3221
  if (Hs) return qn;
3222
3222
  Hs = 1;
3223
3223
  var r = Rt().codes.ERR_INVALID_OPT_VALUE;
@@ -3240,7 +3240,7 @@ function ta() {
3240
3240
  }, qn;
3241
3241
  }
3242
3242
  var Mn, Vs;
3243
- function zl() {
3243
+ function Gl() {
3244
3244
  if (Vs) return Mn;
3245
3245
  Vs = 1, Mn = r;
3246
3246
  function r(t, n) {
@@ -3269,7 +3269,7 @@ function zl() {
3269
3269
  return Mn;
3270
3270
  }
3271
3271
  var Un, zs;
3272
- function ra() {
3272
+ function na() {
3273
3273
  if (zs) return Un;
3274
3274
  zs = 1, Un = q;
3275
3275
  function r(P) {
@@ -3281,8 +3281,8 @@ function ra() {
3281
3281
  var e;
3282
3282
  q.WritableState = N;
3283
3283
  var t = {
3284
- deprecate: zl()
3285
- }, n = Vo(), i = Dr.Buffer, s = (typeof We < "u" ? We : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
3284
+ deprecate: Gl()
3285
+ }, n = zo(), i = Dr.Buffer, s = (typeof We < "u" ? We : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
3286
3286
  };
3287
3287
  function o(P) {
3288
3288
  return i.from(P);
@@ -3290,7 +3290,7 @@ function ra() {
3290
3290
  function a(P) {
3291
3291
  return i.isBuffer(P) || P instanceof s;
3292
3292
  }
3293
- var u = ea(), f = ta(), c = f.getHighWaterMark, h = Rt().codes, g = h.ERR_INVALID_ARG_TYPE, S = h.ERR_METHOD_NOT_IMPLEMENTED, T = h.ERR_MULTIPLE_CALLBACK, A = h.ERR_STREAM_CANNOT_PIPE, B = h.ERR_STREAM_DESTROYED, w = h.ERR_STREAM_NULL_VALUES, k = h.ERR_STREAM_WRITE_AFTER_END, R = h.ERR_UNKNOWN_ENCODING, C = u.errorOrDestroy;
3293
+ var u = ta(), f = ra(), c = f.getHighWaterMark, h = Rt().codes, g = h.ERR_INVALID_ARG_TYPE, S = h.ERR_METHOD_NOT_IMPLEMENTED, T = h.ERR_MULTIPLE_CALLBACK, A = h.ERR_STREAM_CANNOT_PIPE, B = h.ERR_STREAM_DESTROYED, w = h.ERR_STREAM_NULL_VALUES, k = h.ERR_STREAM_WRITE_AFTER_END, R = h.ERR_UNKNOWN_ENCODING, C = u.errorOrDestroy;
3294
3294
  yt()(q, n);
3295
3295
  function F() {
3296
3296
  }
@@ -3505,7 +3505,7 @@ function St() {
3505
3505
  return c;
3506
3506
  };
3507
3507
  jn = o;
3508
- var e = na(), t = ra();
3508
+ var e = ia(), t = na();
3509
3509
  yt()(o, e);
3510
3510
  for (var n = r(t.prototype), i = 0; i < n.length; i++) {
3511
3511
  var s = n[i];
@@ -3560,7 +3560,7 @@ function St() {
3560
3560
  }), jn;
3561
3561
  }
3562
3562
  var Hn = {}, Zt = { exports: {} }, Ws;
3563
- function Gl() {
3563
+ function Wl() {
3564
3564
  return Ws || (Ws = 1, function(r, e) {
3565
3565
  var t = Dr, n = t.Buffer;
3566
3566
  function i(o, a) {
@@ -3595,7 +3595,7 @@ var Js;
3595
3595
  function ui() {
3596
3596
  if (Js) return Hn;
3597
3597
  Js = 1;
3598
- var r = Gl().Buffer, e = r.isEncoding || function(w) {
3598
+ var r = Wl().Buffer, e = r.isEncoding || function(w) {
3599
3599
  switch (w = "" + w, w && w.toLowerCase()) {
3600
3600
  case "hex":
3601
3601
  case "utf8":
@@ -3797,7 +3797,7 @@ function Ei() {
3797
3797
  return Vn = i, Vn;
3798
3798
  }
3799
3799
  var zn, $s;
3800
- function Wl() {
3800
+ function Jl() {
3801
3801
  if ($s) return zn;
3802
3802
  $s = 1;
3803
3803
  var r;
@@ -3923,20 +3923,20 @@ function Wl() {
3923
3923
  return zn = k, zn;
3924
3924
  }
3925
3925
  var Gn, Xs;
3926
- function Jl() {
3926
+ function Kl() {
3927
3927
  return Xs || (Xs = 1, Gn = function() {
3928
3928
  throw new Error("Readable.from is not available in the browser");
3929
3929
  }), Gn;
3930
3930
  }
3931
3931
  var Wn, Ys;
3932
- function na() {
3932
+ function ia() {
3933
3933
  if (Ys) return Wn;
3934
3934
  Ys = 1, Wn = D;
3935
3935
  var r;
3936
3936
  D.ReadableState = q, yi().EventEmitter;
3937
3937
  var e = function(x, _) {
3938
3938
  return x.listeners(_).length;
3939
- }, t = Vo(), n = Dr.Buffer, i = (typeof We < "u" ? We : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
3939
+ }, t = zo(), n = Dr.Buffer, i = (typeof We < "u" ? We : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
3940
3940
  };
3941
3941
  function s(b) {
3942
3942
  return n.from(b);
@@ -3944,10 +3944,10 @@ function na() {
3944
3944
  function o(b) {
3945
3945
  return n.isBuffer(b) || b instanceof i;
3946
3946
  }
3947
- var a = Zo(), u;
3947
+ var a = ea(), u;
3948
3948
  a && a.debuglog ? u = a.debuglog("stream") : u = function() {
3949
3949
  };
3950
- var f = Vl(), c = ea(), h = ta(), g = h.getHighWaterMark, S = Rt().codes, T = S.ERR_INVALID_ARG_TYPE, A = S.ERR_STREAM_PUSH_AFTER_EOF, B = S.ERR_METHOD_NOT_IMPLEMENTED, w = S.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, k, R, C;
3950
+ var f = zl(), c = ta(), h = ra(), g = h.getHighWaterMark, S = Rt().codes, T = S.ERR_INVALID_ARG_TYPE, A = S.ERR_STREAM_PUSH_AFTER_EOF, B = S.ERR_METHOD_NOT_IMPLEMENTED, w = S.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, k, R, C;
3951
3951
  yt()(D, t);
3952
3952
  var F = c.errorOrDestroy, N = ["error", "close", "destroy", "pause", "resume"];
3953
3953
  function M(b, x, _) {
@@ -4204,7 +4204,7 @@ function na() {
4204
4204
  u("wrapped _read", re), W && (W = !1, b.resume());
4205
4205
  }, this;
4206
4206
  }, typeof Symbol == "function" && (D.prototype[Symbol.asyncIterator] = function() {
4207
- return R === void 0 && (R = Wl()), R(this);
4207
+ return R === void 0 && (R = Jl()), R(this);
4208
4208
  }), Object.defineProperty(D.prototype, "readableHighWaterMark", {
4209
4209
  // making it explicit this property is not enumerable
4210
4210
  // because otherwise some prototype manipulation in
@@ -4257,7 +4257,7 @@ function na() {
4257
4257
  }
4258
4258
  }
4259
4259
  typeof Symbol == "function" && (D.from = function(b, x) {
4260
- return C === void 0 && (C = Jl()), C(D, b, x);
4260
+ return C === void 0 && (C = Kl()), C(D, b, x);
4261
4261
  });
4262
4262
  function E(b, x) {
4263
4263
  for (var _ = 0, W = b.length; _ < W; _++)
@@ -4267,7 +4267,7 @@ function na() {
4267
4267
  return Wn;
4268
4268
  }
4269
4269
  var Jn, Qs;
4270
- function ia() {
4270
+ function sa() {
4271
4271
  if (Qs) return Jn;
4272
4272
  Qs = 1, Jn = a;
4273
4273
  var r = Rt().codes, e = r.ERR_METHOD_NOT_IMPLEMENTED, t = r.ERR_MULTIPLE_CALLBACK, n = r.ERR_TRANSFORM_ALREADY_TRANSFORMING, i = r.ERR_TRANSFORM_WITH_LENGTH_0, s = St();
@@ -4326,10 +4326,10 @@ function ia() {
4326
4326
  return Jn;
4327
4327
  }
4328
4328
  var Kn, Zs;
4329
- function Kl() {
4329
+ function $l() {
4330
4330
  if (Zs) return Kn;
4331
4331
  Zs = 1, Kn = e;
4332
- var r = ia();
4332
+ var r = sa();
4333
4333
  yt()(e, r);
4334
4334
  function e(t) {
4335
4335
  if (!(this instanceof e)) return new e(t);
@@ -4340,7 +4340,7 @@ function Kl() {
4340
4340
  }, Kn;
4341
4341
  }
4342
4342
  var $n, eo;
4343
- function $l() {
4343
+ function Xl() {
4344
4344
  if (eo) return $n;
4345
4345
  eo = 1;
4346
4346
  var r;
@@ -4404,11 +4404,11 @@ function $l() {
4404
4404
  return $n = h, $n;
4405
4405
  }
4406
4406
  var Xn, to;
4407
- function Xl() {
4407
+ function Yl() {
4408
4408
  if (to) return Xn;
4409
4409
  to = 1, Xn = t;
4410
4410
  var r = yi().EventEmitter, e = yt();
4411
- e(t, r), t.Readable = na(), t.Writable = ra(), t.Duplex = St(), t.Transform = ia(), t.PassThrough = Kl(), t.finished = Ei(), t.pipeline = $l(), t.Stream = t;
4411
+ e(t, r), t.Readable = ia(), t.Writable = na(), t.Duplex = St(), t.Transform = sa(), t.PassThrough = $l(), t.finished = Ei(), t.pipeline = Xl(), t.Stream = t;
4412
4412
  function t() {
4413
4413
  r.call(this);
4414
4414
  }
@@ -4542,7 +4542,7 @@ function Xl() {
4542
4542
  };
4543
4543
  var a;
4544
4544
  try {
4545
- a = Xl().Stream;
4545
+ a = Yl().Stream;
4546
4546
  } catch {
4547
4547
  a = function() {
4548
4548
  };
@@ -5325,12 +5325,12 @@ Actual: ` + p.attribValue
5325
5325
  }) : String.fromCodePoint = I;
5326
5326
  }();
5327
5327
  })(r);
5328
- })(qo);
5328
+ })(Mo);
5329
5329
  var vi = {
5330
5330
  isArray: function(r) {
5331
5331
  return Array.isArray ? Array.isArray(r) : Object.prototype.toString.call(r) === "[object Array]";
5332
5332
  }
5333
- }, Yl = vi.isArray, Ci = {
5333
+ }, Ql = vi.isArray, Ci = {
5334
5334
  copyOptions: function(r) {
5335
5335
  var e, t = {};
5336
5336
  for (e in r)
@@ -5344,7 +5344,7 @@ var vi = {
5344
5344
  (!("spaces" in r) || typeof r.spaces != "number" && typeof r.spaces != "string") && (r.spaces = 0);
5345
5345
  },
5346
5346
  ensureAlwaysArrayExists: function(r) {
5347
- (!("alwaysArray" in r) || typeof r.alwaysArray != "boolean" && !Yl(r.alwaysArray)) && (r.alwaysArray = !1);
5347
+ (!("alwaysArray" in r) || typeof r.alwaysArray != "boolean" && !Ql(r.alwaysArray)) && (r.alwaysArray = !1);
5348
5348
  },
5349
5349
  ensureKeyExists: function(r, e) {
5350
5350
  (!(r + "Key" in e) || typeof e[r + "Key"] != "string") && (e[r + "Key"] = e.compact ? "_" + r : r);
@@ -5352,11 +5352,11 @@ var vi = {
5352
5352
  checkFnExists: function(r, e) {
5353
5353
  return r + "Fn" in e;
5354
5354
  }
5355
- }, Ql = qo, le = Ci, vt = vi.isArray, U, ue;
5356
- function Zl(r) {
5355
+ }, Zl = Mo, le = Ci, vt = vi.isArray, U, ue;
5356
+ function ec(r) {
5357
5357
  return U = le.copyOptions(r), le.ensureFlagExists("ignoreDeclaration", U), le.ensureFlagExists("ignoreInstruction", U), le.ensureFlagExists("ignoreAttributes", U), le.ensureFlagExists("ignoreText", U), le.ensureFlagExists("ignoreComment", U), le.ensureFlagExists("ignoreCdata", U), le.ensureFlagExists("ignoreDoctype", U), le.ensureFlagExists("compact", U), le.ensureFlagExists("alwaysChildren", U), le.ensureFlagExists("addParent", U), le.ensureFlagExists("trim", U), le.ensureFlagExists("nativeType", U), le.ensureFlagExists("nativeTypeAttributes", U), le.ensureFlagExists("sanitize", U), le.ensureFlagExists("instructionHasAttributes", U), le.ensureFlagExists("captureSpacesBetweenElements", U), le.ensureAlwaysArrayExists(U), le.ensureKeyExists("declaration", U), le.ensureKeyExists("instruction", U), le.ensureKeyExists("attributes", U), le.ensureKeyExists("text", U), le.ensureKeyExists("comment", U), le.ensureKeyExists("cdata", U), le.ensureKeyExists("doctype", U), le.ensureKeyExists("type", U), le.ensureKeyExists("name", U), le.ensureKeyExists("elements", U), le.ensureKeyExists("parent", U), le.checkFnExists("doctype", U), le.checkFnExists("instruction", U), le.checkFnExists("cdata", U), le.checkFnExists("comment", U), le.checkFnExists("text", U), le.checkFnExists("instructionName", U), le.checkFnExists("elementName", U), le.checkFnExists("attributeName", U), le.checkFnExists("attributeValue", U), le.checkFnExists("attributes", U), U;
5358
5358
  }
5359
- function sa(r) {
5359
+ function oa(r) {
5360
5360
  var e = Number(r);
5361
5361
  if (!isNaN(e))
5362
5362
  return e;
@@ -5390,23 +5390,23 @@ function Xt(r, e) {
5390
5390
  U.addParent && (i[U.parentKey] = ue), ue[U.elementsKey].push(i);
5391
5391
  }
5392
5392
  }
5393
- function oa(r) {
5393
+ function aa(r) {
5394
5394
  if ("attributesFn" in U && r && (r = U.attributesFn(r, ue)), (U.trim || "attributeValueFn" in U || "attributeNameFn" in U || U.nativeTypeAttributes) && r) {
5395
5395
  var e;
5396
5396
  for (e in r)
5397
- if (r.hasOwnProperty(e) && (U.trim && (r[e] = r[e].trim()), U.nativeTypeAttributes && (r[e] = sa(r[e])), "attributeValueFn" in U && (r[e] = U.attributeValueFn(r[e], e, ue)), "attributeNameFn" in U)) {
5397
+ if (r.hasOwnProperty(e) && (U.trim && (r[e] = r[e].trim()), U.nativeTypeAttributes && (r[e] = oa(r[e])), "attributeValueFn" in U && (r[e] = U.attributeValueFn(r[e], e, ue)), "attributeNameFn" in U)) {
5398
5398
  var t = r[e];
5399
5399
  delete r[e], r[U.attributeNameFn(e, r[e], ue)] = t;
5400
5400
  }
5401
5401
  }
5402
5402
  return r;
5403
5403
  }
5404
- function ec(r) {
5404
+ function tc(r) {
5405
5405
  var e = {};
5406
5406
  if (r.body && (r.name.toLowerCase() === "xml" || U.instructionHasAttributes)) {
5407
5407
  for (var t = /([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g, n; (n = t.exec(r.body)) !== null; )
5408
5408
  e[n[1]] = n[2] || n[3] || n[4];
5409
- e = oa(e);
5409
+ e = aa(e);
5410
5410
  }
5411
5411
  if (r.name.toLowerCase() === "xml") {
5412
5412
  if (U.ignoreDeclaration)
@@ -5420,9 +5420,9 @@ function ec(r) {
5420
5420
  U.instructionHasAttributes && Object.keys(e).length ? (i[r.name] = {}, i[r.name][U.attributesKey] = e) : i[r.name] = r.body, Xt("instruction", i);
5421
5421
  }
5422
5422
  }
5423
- function tc(r, e) {
5423
+ function rc(r, e) {
5424
5424
  var t;
5425
- if (typeof r == "object" && (e = r.attributes, r = r.name), e = oa(e), "elementNameFn" in U && (r = U.elementNameFn(r, ue)), U.compact) {
5425
+ if (typeof r == "object" && (e = r.attributes, r = r.name), e = aa(e), "elementNameFn" in U && (r = U.elementNameFn(r, ue)), U.compact) {
5426
5426
  if (t = {}, !U.ignoreAttributes && e && Object.keys(e).length) {
5427
5427
  t[U.attributesKey] = {};
5428
5428
  var n;
@@ -5434,44 +5434,44 @@ function tc(r, e) {
5434
5434
  ue[U.elementsKey] || (ue[U.elementsKey] = []), t = {}, t[U.typeKey] = "element", t[U.nameKey] = r, !U.ignoreAttributes && e && Object.keys(e).length && (t[U.attributesKey] = e), U.alwaysChildren && (t[U.elementsKey] = []), ue[U.elementsKey].push(t);
5435
5435
  t[U.parentKey] = ue, ue = t;
5436
5436
  }
5437
- function rc(r) {
5438
- U.ignoreText || !r.trim() && !U.captureSpacesBetweenElements || (U.trim && (r = r.trim()), U.nativeType && (r = sa(r)), U.sanitize && (r = r.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;")), Xt("text", r));
5439
- }
5440
5437
  function nc(r) {
5441
- U.ignoreComment || (U.trim && (r = r.trim()), Xt("comment", r));
5438
+ U.ignoreText || !r.trim() && !U.captureSpacesBetweenElements || (U.trim && (r = r.trim()), U.nativeType && (r = oa(r)), U.sanitize && (r = r.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;")), Xt("text", r));
5442
5439
  }
5443
5440
  function ic(r) {
5441
+ U.ignoreComment || (U.trim && (r = r.trim()), Xt("comment", r));
5442
+ }
5443
+ function sc(r) {
5444
5444
  var e = ue[U.parentKey];
5445
5445
  U.addParent || delete ue[U.parentKey], ue = e;
5446
5446
  }
5447
- function sc(r) {
5447
+ function oc(r) {
5448
5448
  U.ignoreCdata || (U.trim && (r = r.trim()), Xt("cdata", r));
5449
5449
  }
5450
- function oc(r) {
5450
+ function ac(r) {
5451
5451
  U.ignoreDoctype || (r = r.replace(/^ /, ""), U.trim && (r = r.trim()), Xt("doctype", r));
5452
5452
  }
5453
- function ac(r) {
5453
+ function uc(r) {
5454
5454
  r.note = r;
5455
5455
  }
5456
- var aa = function(r, e) {
5457
- var t = Ql.parser(!0, {}), n = {};
5458
- if (ue = n, U = Zl(e), t.opt = { strictEntities: !0 }, t.onopentag = tc, t.ontext = rc, t.oncomment = nc, t.onclosetag = ic, t.onerror = ac, t.oncdata = sc, t.ondoctype = oc, t.onprocessinginstruction = ec, t.write(r).close(), n[U.elementsKey]) {
5456
+ var ua = function(r, e) {
5457
+ var t = Zl.parser(!0, {}), n = {};
5458
+ if (ue = n, U = ec(e), t.opt = { strictEntities: !0 }, t.onopentag = rc, t.ontext = nc, t.oncomment = ic, t.onclosetag = sc, t.onerror = uc, t.oncdata = oc, t.ondoctype = ac, t.onprocessinginstruction = tc, t.write(r).close(), n[U.elementsKey]) {
5459
5459
  var i = n[U.elementsKey];
5460
5460
  delete n[U.elementsKey], n[U.elementsKey] = i, delete n.text;
5461
5461
  }
5462
5462
  return n;
5463
- }, ro = Ci, uc = aa;
5464
- function lc(r) {
5463
+ }, ro = Ci, lc = ua;
5464
+ function cc(r) {
5465
5465
  var e = ro.copyOptions(r);
5466
5466
  return ro.ensureSpacesExists(e), e;
5467
5467
  }
5468
- var cc = function(r, e) {
5468
+ var fc = function(r, e) {
5469
5469
  var t, n, i, s;
5470
- return t = lc(e), n = uc(r, t), s = "compact" in t && t.compact ? "_parent" : "parent", "addParent" in t && t.addParent ? i = JSON.stringify(n, function(o, a) {
5470
+ return t = cc(e), n = lc(r, t), s = "compact" in t && t.compact ? "_parent" : "parent", "addParent" in t && t.addParent ? i = JSON.stringify(n, function(o, a) {
5471
5471
  return o === s ? "_" : a;
5472
5472
  }, t.spaces) : i = JSON.stringify(n, null, t.spaces), i.replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
5473
- }, de = Ci, fc = vi.isArray, Re, Pe;
5474
- function dc(r) {
5473
+ }, de = Ci, dc = vi.isArray, Re, Pe;
5474
+ function mc(r) {
5475
5475
  var e = de.copyOptions(r);
5476
5476
  return de.ensureFlagExists("ignoreDeclaration", e), de.ensureFlagExists("ignoreInstruction", e), de.ensureFlagExists("ignoreAttributes", e), de.ensureFlagExists("ignoreText", e), de.ensureFlagExists("ignoreComment", e), de.ensureFlagExists("ignoreCdata", e), de.ensureFlagExists("ignoreDoctype", e), de.ensureFlagExists("compact", e), de.ensureFlagExists("indentText", e), de.ensureFlagExists("indentCdata", e), de.ensureFlagExists("indentAttributes", e), de.ensureFlagExists("indentInstruction", e), de.ensureFlagExists("fullTagEmptyElement", e), de.ensureFlagExists("noQuotesForNativeAttributes", e), de.ensureSpacesExists(e), typeof e.spaces == "number" && (e.spaces = Array(e.spaces + 1).join(" ")), de.ensureKeyExists("declaration", e), de.ensureKeyExists("instruction", e), de.ensureKeyExists("attributes", e), de.ensureKeyExists("text", e), de.ensureKeyExists("comment", e), de.ensureKeyExists("cdata", e), de.ensureKeyExists("doctype", e), de.ensureKeyExists("type", e), de.ensureKeyExists("name", e), de.ensureKeyExists("elements", e), de.checkFnExists("doctype", e), de.checkFnExists("instruction", e), de.checkFnExists("cdata", e), de.checkFnExists("comment", e), de.checkFnExists("text", e), de.checkFnExists("instructionName", e), de.checkFnExists("elementName", e), de.checkFnExists("attributeName", e), de.checkFnExists("attributeValue", e), de.checkFnExists("attributes", e), de.checkFnExists("fullTagEmptyElement", e), e;
5477
5477
  }
@@ -5488,10 +5488,10 @@ function Cr(r, e, t) {
5488
5488
  r.hasOwnProperty(n) && r[n] !== null && r[n] !== void 0 && (o = e.noQuotesForNativeAttributes && typeof r[n] != "string" ? "" : '"', i = "" + r[n], i = i.replace(/"/g, "&quot;"), s = "attributeNameFn" in e ? e.attributeNameFn(n, i, Pe, Re) : n, a.push(e.spaces && e.indentAttributes ? Qe(e, t + 1, !1) : " "), a.push(s + "=" + o + ("attributeValueFn" in e ? e.attributeValueFn(i, n, Pe, Re) : i) + o));
5489
5489
  return r && Object.keys(r).length && e.spaces && e.indentAttributes && a.push(Qe(e, t, !1)), a.join("");
5490
5490
  }
5491
- function ua(r, e, t) {
5491
+ function la(r, e, t) {
5492
5492
  return Re = r, Pe = "xml", e.ignoreDeclaration ? "" : "<?xml" + Cr(r[e.attributesKey], e, t) + "?>";
5493
5493
  }
5494
- function la(r, e, t) {
5494
+ function ca(r, e, t) {
5495
5495
  if (e.ignoreInstruction)
5496
5496
  return "";
5497
5497
  var n;
@@ -5504,19 +5504,19 @@ function la(r, e, t) {
5504
5504
  var s = r[n] ? r[n] : "";
5505
5505
  return "instructionFn" in e && (s = e.instructionFn(s, n, Pe, Re)), "<?" + i + (s ? " " + s : "") + "?>";
5506
5506
  }
5507
- function ca(r, e) {
5507
+ function fa(r, e) {
5508
5508
  return e.ignoreComment ? "" : "<!--" + ("commentFn" in e ? e.commentFn(r, Pe, Re) : r) + "-->";
5509
5509
  }
5510
- function fa(r, e) {
5510
+ function da(r, e) {
5511
5511
  return e.ignoreCdata ? "" : "<![CDATA[" + ("cdataFn" in e ? e.cdataFn(r, Pe, Re) : r.replace("]]>", "]]]]><![CDATA[>")) + "]]>";
5512
5512
  }
5513
- function da(r, e) {
5513
+ function ma(r, e) {
5514
5514
  return e.ignoreDoctype ? "" : "<!DOCTYPE " + ("doctypeFn" in e ? e.doctypeFn(r, Pe, Re) : r) + ">";
5515
5515
  }
5516
5516
  function Si(r, e) {
5517
5517
  return e.ignoreText ? "" : (r = "" + r, r = r.replace(/&amp;/g, "&"), r = r.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), "textFn" in e ? e.textFn(r, Pe, Re) : r);
5518
5518
  }
5519
- function mc(r, e) {
5519
+ function pc(r, e) {
5520
5520
  var t;
5521
5521
  if (r.elements && r.elements.length)
5522
5522
  for (t = 0; t < r.elements.length; ++t)
@@ -5542,35 +5542,35 @@ function mc(r, e) {
5542
5542
  }
5543
5543
  return !1;
5544
5544
  }
5545
- function pc(r, e, t) {
5545
+ function hc(r, e, t) {
5546
5546
  Re = r, Pe = r.name;
5547
5547
  var n = [], i = "elementNameFn" in e ? e.elementNameFn(r.name, r) : r.name;
5548
5548
  n.push("<" + i), r[e.attributesKey] && n.push(Cr(r[e.attributesKey], e, t));
5549
5549
  var s = r[e.elementsKey] && r[e.elementsKey].length || r[e.attributesKey] && r[e.attributesKey]["xml:space"] === "preserve";
5550
- return s || ("fullTagEmptyElementFn" in e ? s = e.fullTagEmptyElementFn(r.name, r) : s = e.fullTagEmptyElement), s ? (n.push(">"), r[e.elementsKey] && r[e.elementsKey].length && (n.push(ma(r[e.elementsKey], e, t + 1)), Re = r, Pe = r.name), n.push(e.spaces && mc(r, e) ? `
5550
+ return s || ("fullTagEmptyElementFn" in e ? s = e.fullTagEmptyElementFn(r.name, r) : s = e.fullTagEmptyElement), s ? (n.push(">"), r[e.elementsKey] && r[e.elementsKey].length && (n.push(pa(r[e.elementsKey], e, t + 1)), Re = r, Pe = r.name), n.push(e.spaces && pc(r, e) ? `
5551
5551
  ` + Array(t + 1).join(e.spaces) : ""), n.push("</" + i + ">")) : n.push("/>"), n.join("");
5552
5552
  }
5553
- function ma(r, e, t, n) {
5553
+ function pa(r, e, t, n) {
5554
5554
  return r.reduce(function(i, s) {
5555
5555
  var o = Qe(e, t, n && !i);
5556
5556
  switch (s.type) {
5557
5557
  case "element":
5558
- return i + o + pc(s, e, t);
5558
+ return i + o + hc(s, e, t);
5559
5559
  case "comment":
5560
- return i + o + ca(s[e.commentKey], e);
5560
+ return i + o + fa(s[e.commentKey], e);
5561
5561
  case "doctype":
5562
- return i + o + da(s[e.doctypeKey], e);
5562
+ return i + o + ma(s[e.doctypeKey], e);
5563
5563
  case "cdata":
5564
- return i + (e.indentCdata ? o : "") + fa(s[e.cdataKey], e);
5564
+ return i + (e.indentCdata ? o : "") + da(s[e.cdataKey], e);
5565
5565
  case "text":
5566
5566
  return i + (e.indentText ? o : "") + Si(s[e.textKey], e);
5567
5567
  case "instruction":
5568
5568
  var a = {};
5569
- return a[s[e.nameKey]] = s[e.attributesKey] ? s : s[e.instructionKey], i + (e.indentInstruction ? o : "") + la(a, e, t);
5569
+ return a[s[e.nameKey]] = s[e.attributesKey] ? s : s[e.instructionKey], i + (e.indentInstruction ? o : "") + ca(a, e, t);
5570
5570
  }
5571
5571
  }, "");
5572
5572
  }
5573
- function pa(r, e, t) {
5573
+ function ha(r, e, t) {
5574
5574
  var n;
5575
5575
  for (n in r)
5576
5576
  if (r.hasOwnProperty(n))
@@ -5598,7 +5598,7 @@ function pa(r, e, t) {
5598
5598
  }
5599
5599
  return !1;
5600
5600
  }
5601
- function hc(r, e, t, n, i) {
5601
+ function gc(r, e, t, n, i) {
5602
5602
  Re = r, Pe = e;
5603
5603
  var s = "elementNameFn" in t ? t.elementNameFn(e, r) : e;
5604
5604
  if (typeof r > "u" || r === null || r === "")
@@ -5608,25 +5608,25 @@ function hc(r, e, t, n, i) {
5608
5608
  if (o.push("<" + s), typeof r != "object")
5609
5609
  return o.push(">" + Si(r, t) + "</" + s + ">"), o.join("");
5610
5610
  r[t.attributesKey] && o.push(Cr(r[t.attributesKey], t, n));
5611
- var a = pa(r, t, !0) || r[t.attributesKey] && r[t.attributesKey]["xml:space"] === "preserve";
5611
+ var a = ha(r, t, !0) || r[t.attributesKey] && r[t.attributesKey]["xml:space"] === "preserve";
5612
5612
  if (a || ("fullTagEmptyElementFn" in t ? a = t.fullTagEmptyElementFn(e, r) : a = t.fullTagEmptyElement), a)
5613
5613
  o.push(">");
5614
5614
  else
5615
5615
  return o.push("/>"), o.join("");
5616
5616
  }
5617
- return o.push(ha(r, t, n + 1, !1)), Re = r, Pe = e, e && o.push((i ? Qe(t, n, !1) : "") + "</" + s + ">"), o.join("");
5617
+ return o.push(ga(r, t, n + 1, !1)), Re = r, Pe = e, e && o.push((i ? Qe(t, n, !1) : "") + "</" + s + ">"), o.join("");
5618
5618
  }
5619
- function ha(r, e, t, n) {
5619
+ function ga(r, e, t, n) {
5620
5620
  var i, s, o, a = [];
5621
5621
  for (s in r)
5622
5622
  if (r.hasOwnProperty(s))
5623
- for (o = fc(r[s]) ? r[s] : [r[s]], i = 0; i < o.length; ++i) {
5623
+ for (o = dc(r[s]) ? r[s] : [r[s]], i = 0; i < o.length; ++i) {
5624
5624
  switch (s) {
5625
5625
  case e.declarationKey:
5626
- a.push(ua(o[i], e, t));
5626
+ a.push(la(o[i], e, t));
5627
5627
  break;
5628
5628
  case e.instructionKey:
5629
- a.push((e.indentInstruction ? Qe(e, t, n) : "") + la(o[i], e, t));
5629
+ a.push((e.indentInstruction ? Qe(e, t, n) : "") + ca(o[i], e, t));
5630
5630
  break;
5631
5631
  case e.attributesKey:
5632
5632
  case e.parentKey:
@@ -5635,26 +5635,26 @@ function ha(r, e, t, n) {
5635
5635
  a.push((e.indentText ? Qe(e, t, n) : "") + Si(o[i], e));
5636
5636
  break;
5637
5637
  case e.cdataKey:
5638
- a.push((e.indentCdata ? Qe(e, t, n) : "") + fa(o[i], e));
5638
+ a.push((e.indentCdata ? Qe(e, t, n) : "") + da(o[i], e));
5639
5639
  break;
5640
5640
  case e.doctypeKey:
5641
- a.push(Qe(e, t, n) + da(o[i], e));
5641
+ a.push(Qe(e, t, n) + ma(o[i], e));
5642
5642
  break;
5643
5643
  case e.commentKey:
5644
- a.push(Qe(e, t, n) + ca(o[i], e));
5644
+ a.push(Qe(e, t, n) + fa(o[i], e));
5645
5645
  break;
5646
5646
  default:
5647
- a.push(Qe(e, t, n) + hc(o[i], s, e, t, pa(o[i], e)));
5647
+ a.push(Qe(e, t, n) + gc(o[i], s, e, t, ha(o[i], e)));
5648
5648
  }
5649
5649
  n = n && !a.length;
5650
5650
  }
5651
5651
  return a.join("");
5652
5652
  }
5653
- var ga = function(r, e) {
5654
- e = dc(e);
5653
+ var wa = function(r, e) {
5654
+ e = mc(e);
5655
5655
  var t = [];
5656
- return Re = r, Pe = "_root_", e.compact ? t.push(ha(r, e, 0, !0)) : (r[e.declarationKey] && t.push(ua(r[e.declarationKey], e, 0)), r[e.elementsKey] && r[e.elementsKey].length && t.push(ma(r[e.elementsKey], e, 0, !t.length))), t.join("");
5657
- }, gc = ga, wc = function(r, e) {
5656
+ return Re = r, Pe = "_root_", e.compact ? t.push(ga(r, e, 0, !0)) : (r[e.declarationKey] && t.push(la(r[e.declarationKey], e, 0)), r[e.elementsKey] && r[e.elementsKey].length && t.push(pa(r[e.elementsKey], e, 0, !t.length))), t.join("");
5657
+ }, wc = wa, yc = function(r, e) {
5658
5658
  r instanceof Ht && (r = r.toString());
5659
5659
  var t = null;
5660
5660
  if (typeof r == "string")
@@ -5665,37 +5665,37 @@ var ga = function(r, e) {
5665
5665
  }
5666
5666
  else
5667
5667
  t = r;
5668
- return gc(t, e);
5669
- }, yc = aa, bc = cc, xc = ga, Ac = wc, Dc = {
5670
- xml2js: yc,
5671
- xml2json: bc,
5672
- js2xml: xc,
5673
- json2xml: Ac
5668
+ return wc(t, e);
5669
+ }, bc = ua, xc = fc, Ac = wa, Dc = yc, Ec = {
5670
+ xml2js: bc,
5671
+ xml2json: xc,
5672
+ js2xml: Ac,
5673
+ json2xml: Dc
5674
5674
  };
5675
- const wa = /* @__PURE__ */ Lo(Dc);
5676
- var er, Ec = new Uint8Array(16);
5677
- function vc() {
5675
+ const ya = /* @__PURE__ */ _o(Ec);
5676
+ var er, vc = new Uint8Array(16);
5677
+ function Cc() {
5678
5678
  if (!er && (er = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), !er))
5679
5679
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
5680
- return er(Ec);
5680
+ return er(vc);
5681
5681
  }
5682
- const Cc = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
5683
- function Sc(r) {
5684
- return typeof r == "string" && Cc.test(r);
5682
+ const Sc = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
5683
+ function Tc(r) {
5684
+ return typeof r == "string" && Sc.test(r);
5685
5685
  }
5686
5686
  var ke = [];
5687
5687
  for (var Yn = 0; Yn < 256; ++Yn)
5688
5688
  ke.push((Yn + 256).toString(16).substr(1));
5689
- function Tc(r) {
5689
+ function Fc(r) {
5690
5690
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, t = (ke[r[e + 0]] + ke[r[e + 1]] + ke[r[e + 2]] + ke[r[e + 3]] + "-" + ke[r[e + 4]] + ke[r[e + 5]] + "-" + ke[r[e + 6]] + ke[r[e + 7]] + "-" + ke[r[e + 8]] + ke[r[e + 9]] + "-" + ke[r[e + 10]] + ke[r[e + 11]] + ke[r[e + 12]] + ke[r[e + 13]] + ke[r[e + 14]] + ke[r[e + 15]]).toLowerCase();
5691
- if (!Sc(t))
5691
+ if (!Tc(t))
5692
5692
  throw TypeError("Stringified UUID is invalid");
5693
5693
  return t;
5694
5694
  }
5695
- function ya(r, e, t) {
5695
+ function ba(r, e, t) {
5696
5696
  r = r || {};
5697
- var n = r.random || (r.rng || vc)();
5698
- return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, Tc(n);
5697
+ var n = r.random || (r.rng || Cc)();
5698
+ return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, Fc(n);
5699
5699
  }
5700
5700
  var cr = { exports: {} };
5701
5701
  /*! https://mths.be/he v1.2.0 by @mathias | MIT license */
@@ -5807,8 +5807,8 @@ cr.exports;
5807
5807
  t.he = Q;
5808
5808
  })(We);
5809
5809
  })(cr, cr.exports);
5810
- var Fc = cr.exports;
5811
- const Bc = /* @__PURE__ */ Lo(Fc);
5810
+ var Bc = cr.exports;
5811
+ const kc = /* @__PURE__ */ _o(Bc);
5812
5812
  function Ne(r) {
5813
5813
  this.content = r;
5814
5814
  }
@@ -5909,7 +5909,7 @@ Ne.from = function(r) {
5909
5909
  if (r) for (var t in r) e.push(t, r[t]);
5910
5910
  return new Ne(e);
5911
5911
  };
5912
- function ba(r, e, t) {
5912
+ function xa(r, e, t) {
5913
5913
  for (let n = 0; ; n++) {
5914
5914
  if (n == r.childCount || n == e.childCount)
5915
5915
  return r.childCount == e.childCount ? null : t;
@@ -5926,14 +5926,14 @@ function ba(r, e, t) {
5926
5926
  return t;
5927
5927
  }
5928
5928
  if (i.content.size || s.content.size) {
5929
- let o = ba(i.content, s.content, t + 1);
5929
+ let o = xa(i.content, s.content, t + 1);
5930
5930
  if (o != null)
5931
5931
  return o;
5932
5932
  }
5933
5933
  t += i.nodeSize;
5934
5934
  }
5935
5935
  }
5936
- function xa(r, e, t, n) {
5936
+ function Aa(r, e, t, n) {
5937
5937
  for (let i = r.childCount, s = e.childCount; ; ) {
5938
5938
  if (i == 0 || s == 0)
5939
5939
  return i == s ? null : { a: t, b: n };
@@ -5951,7 +5951,7 @@ function xa(r, e, t, n) {
5951
5951
  return { a: t, b: n };
5952
5952
  }
5953
5953
  if (o.content.size || a.content.size) {
5954
- let f = xa(o.content, a.content, t - 1, n - 1);
5954
+ let f = Aa(o.content, a.content, t - 1, n - 1);
5955
5955
  if (f)
5956
5956
  return f;
5957
5957
  }
@@ -6120,7 +6120,7 @@ class Z {
6120
6120
  fragment differ, or `null` if they are the same.
6121
6121
  */
6122
6122
  findDiffStart(e, t = 0) {
6123
- return ba(this, e, t);
6123
+ return xa(this, e, t);
6124
6124
  }
6125
6125
  /**
6126
6126
  Find the first position, searching from the end, at which this
@@ -6129,7 +6129,7 @@ class Z {
6129
6129
  nodes, an object with two separate positions is returned.
6130
6130
  */
6131
6131
  findDiffEnd(e, t = this.size, n = e.size) {
6132
- return xa(this, e, t, n);
6132
+ return Aa(this, e, t, n);
6133
6133
  }
6134
6134
  /**
6135
6135
  Find the index and inner offset corresponding to a given relative
@@ -6373,14 +6373,14 @@ class oe {
6373
6373
  @internal
6374
6374
  */
6375
6375
  insertAt(e, t) {
6376
- let n = Da(this.content, e + this.openStart, t);
6376
+ let n = Ea(this.content, e + this.openStart, t);
6377
6377
  return n && new oe(n, this.openStart, this.openEnd);
6378
6378
  }
6379
6379
  /**
6380
6380
  @internal
6381
6381
  */
6382
6382
  removeBetween(e, t) {
6383
- return new oe(Aa(this.content, e + this.openStart, t + this.openStart), this.openStart, this.openEnd);
6383
+ return new oe(Da(this.content, e + this.openStart, t + this.openStart), this.openStart, this.openEnd);
6384
6384
  }
6385
6385
  /**
6386
6386
  Tests whether this slice is equal to another slice.
@@ -6428,7 +6428,7 @@ class oe {
6428
6428
  }
6429
6429
  }
6430
6430
  oe.empty = new oe(Z.empty, 0, 0);
6431
- function Aa(r, e, t) {
6431
+ function Da(r, e, t) {
6432
6432
  let { index: n, offset: i } = r.findIndex(e), s = r.maybeChild(n), { index: o, offset: a } = r.findIndex(t);
6433
6433
  if (i == e || s.isText) {
6434
6434
  if (a != t && !r.child(o).isText)
@@ -6437,44 +6437,44 @@ function Aa(r, e, t) {
6437
6437
  }
6438
6438
  if (n != o)
6439
6439
  throw new RangeError("Removing non-flat range");
6440
- return r.replaceChild(n, s.copy(Aa(s.content, e - i - 1, t - i - 1)));
6440
+ return r.replaceChild(n, s.copy(Da(s.content, e - i - 1, t - i - 1)));
6441
6441
  }
6442
- function Da(r, e, t, n) {
6442
+ function Ea(r, e, t, n) {
6443
6443
  let { index: i, offset: s } = r.findIndex(e), o = r.maybeChild(i);
6444
6444
  if (s == e || o.isText)
6445
6445
  return r.cut(0, e).append(t).append(r.cut(e));
6446
- let a = Da(o.content, e - s - 1, t);
6446
+ let a = Ea(o.content, e - s - 1, t);
6447
6447
  return a && r.replaceChild(i, o.copy(a));
6448
6448
  }
6449
- function kc(r, e, t) {
6449
+ function Nc(r, e, t) {
6450
6450
  if (t.openStart > r.depth)
6451
6451
  throw new dr("Inserted content deeper than insertion position");
6452
6452
  if (r.depth - t.openStart != e.depth - t.openEnd)
6453
6453
  throw new dr("Inconsistent open depths");
6454
- return Ea(r, e, t, 0);
6454
+ return va(r, e, t, 0);
6455
6455
  }
6456
- function Ea(r, e, t, n) {
6456
+ function va(r, e, t, n) {
6457
6457
  let i = r.index(n), s = r.node(n);
6458
6458
  if (i == e.index(n) && n < r.depth - t.openStart) {
6459
- let o = Ea(r, e, t, n + 1);
6459
+ let o = va(r, e, t, n + 1);
6460
6460
  return s.copy(s.content.replaceChild(i, o));
6461
6461
  } else if (t.content.size)
6462
6462
  if (!t.openStart && !t.openEnd && r.depth == n && e.depth == n) {
6463
6463
  let o = r.parent, a = o.content;
6464
6464
  return ht(o, a.cut(0, r.parentOffset).append(t.content).append(a.cut(e.parentOffset)));
6465
6465
  } else {
6466
- let { start: o, end: a } = Nc(t, r);
6467
- return ht(s, Ca(r, o, a, e, n));
6466
+ let { start: o, end: a } = Ic(t, r);
6467
+ return ht(s, Sa(r, o, a, e, n));
6468
6468
  }
6469
6469
  else return ht(s, mr(r, e, n));
6470
6470
  }
6471
- function va(r, e) {
6471
+ function Ca(r, e) {
6472
6472
  if (!e.type.compatibleContent(r.type))
6473
6473
  throw new dr("Cannot join " + e.type.name + " onto " + r.type.name);
6474
6474
  }
6475
6475
  function li(r, e, t) {
6476
6476
  let n = r.node(t);
6477
- return va(n, e.node(t)), n;
6477
+ return Ca(n, e.node(t)), n;
6478
6478
  }
6479
6479
  function pt(r, e) {
6480
6480
  let t = e.length - 1;
@@ -6490,9 +6490,9 @@ function Vt(r, e, t, n) {
6490
6490
  function ht(r, e) {
6491
6491
  return r.type.checkContent(e), r.copy(e);
6492
6492
  }
6493
- function Ca(r, e, t, n, i) {
6493
+ function Sa(r, e, t, n, i) {
6494
6494
  let s = r.depth > i && li(r, e, i + 1), o = n.depth > i && li(t, n, i + 1), a = [];
6495
- return Vt(null, r, i, a), s && o && e.index(i) == t.index(i) ? (va(s, o), pt(ht(s, Ca(r, e, t, n, i + 1)), a)) : (s && pt(ht(s, mr(r, e, i + 1)), a), Vt(e, t, i, a), o && pt(ht(o, mr(t, n, i + 1)), a)), Vt(n, null, i, a), new Z(a);
6495
+ return Vt(null, r, i, a), s && o && e.index(i) == t.index(i) ? (Ca(s, o), pt(ht(s, Sa(r, e, t, n, i + 1)), a)) : (s && pt(ht(s, mr(r, e, i + 1)), a), Vt(e, t, i, a), o && pt(ht(o, mr(t, n, i + 1)), a)), Vt(n, null, i, a), new Z(a);
6496
6496
  }
6497
6497
  function mr(r, e, t) {
6498
6498
  let n = [];
@@ -6502,7 +6502,7 @@ function mr(r, e, t) {
6502
6502
  }
6503
6503
  return Vt(e, null, t, n), new Z(n);
6504
6504
  }
6505
- function Nc(r, e) {
6505
+ function Ic(r, e) {
6506
6506
  let t = e.depth - r.openStart, i = e.node(t).copy(r.content);
6507
6507
  for (let s = t - 1; s >= 0; s--)
6508
6508
  i = e.node(s).copy(Z.from(i));
@@ -6696,7 +6696,7 @@ class zt {
6696
6696
  return e.blockRange(this);
6697
6697
  for (let n = this.depth - (this.parent.inlineContent || this.pos == e.pos ? 1 : 0); n >= 0; n--)
6698
6698
  if (e.pos <= this.end(n) && (!t || t(this.node(n))))
6699
- return new Pc(this, e, n);
6699
+ return new Oc(this, e, n);
6700
6700
  return null;
6701
6701
  }
6702
6702
  /**
@@ -6753,18 +6753,18 @@ class zt {
6753
6753
  return o;
6754
6754
  }
6755
6755
  else
6756
- no.set(e, n = new Ic());
6756
+ no.set(e, n = new Rc());
6757
6757
  let i = n.elts[n.i] = zt.resolve(e, t);
6758
- return n.i = (n.i + 1) % Rc, i;
6758
+ return n.i = (n.i + 1) % Pc, i;
6759
6759
  }
6760
6760
  }
6761
- class Ic {
6761
+ class Rc {
6762
6762
  constructor() {
6763
6763
  this.elts = [], this.i = 0;
6764
6764
  }
6765
6765
  }
6766
- const Rc = 12, no = /* @__PURE__ */ new WeakMap();
6767
- class Pc {
6766
+ const Pc = 12, no = /* @__PURE__ */ new WeakMap();
6767
+ class Oc {
6768
6768
  /**
6769
6769
  Construct a node range. `$from` and `$to` should point into the
6770
6770
  same node until at least the given `depth`, since a node range
@@ -6804,7 +6804,7 @@ class Pc {
6804
6804
  return this.$to.indexAfter(this.depth);
6805
6805
  }
6806
6806
  }
6807
- const Oc = /* @__PURE__ */ Object.create(null);
6807
+ const Lc = /* @__PURE__ */ Object.create(null);
6808
6808
  class rt {
6809
6809
  /**
6810
6810
  @internal
@@ -6923,7 +6923,7 @@ class rt {
6923
6923
  attributes, and marks.
6924
6924
  */
6925
6925
  hasMarkup(e, t, n) {
6926
- return this.type == e && fr(this.attrs, t || e.defaultAttrs || Oc) && ge.sameSet(this.marks, n || ge.none);
6926
+ return this.type == e && fr(this.attrs, t || e.defaultAttrs || Lc) && ge.sameSet(this.marks, n || ge.none);
6927
6927
  }
6928
6928
  /**
6929
6929
  Create a new node with the same markup as this node, containing
@@ -6966,7 +6966,7 @@ class rt {
6966
6966
  [`ReplaceError`](https://prosemirror.net/docs/ref/#model.ReplaceError) is thrown.
6967
6967
  */
6968
6968
  replace(e, t, n) {
6969
- return kc(this.resolve(e), this.resolve(t), n);
6969
+ return Nc(this.resolve(e), this.resolve(t), n);
6970
6970
  }
6971
6971
  /**
6972
6972
  Find the node directly after the given position.
@@ -7081,7 +7081,7 @@ class rt {
7081
7081
  if (this.type.spec.toDebugString)
7082
7082
  return this.type.spec.toDebugString(this);
7083
7083
  let e = this.type.name;
7084
- return this.content.size && (e += "(" + this.content.toStringInner() + ")"), Sa(this.marks, e);
7084
+ return this.content.size && (e += "(" + this.content.toStringInner() + ")"), Ta(this.marks, e);
7085
7085
  }
7086
7086
  /**
7087
7087
  Get the content match in this node at the given index.
@@ -7185,7 +7185,7 @@ class pr extends rt {
7185
7185
  this.text = n;
7186
7186
  }
7187
7187
  toString() {
7188
- return this.type.spec.toDebugString ? this.type.spec.toDebugString(this) : Sa(this.marks, JSON.stringify(this.text));
7188
+ return this.type.spec.toDebugString ? this.type.spec.toDebugString(this) : Ta(this.marks, JSON.stringify(this.text));
7189
7189
  }
7190
7190
  get textContent() {
7191
7191
  return this.text;
@@ -7213,7 +7213,7 @@ class pr extends rt {
7213
7213
  return e.text = this.text, e;
7214
7214
  }
7215
7215
  }
7216
- function Sa(r, e) {
7216
+ function Ta(r, e) {
7217
7217
  for (let t = r.length - 1; t >= 0; t--)
7218
7218
  e = r[t].type.name + "(" + e + ")";
7219
7219
  return e;
@@ -7229,13 +7229,13 @@ class gt {
7229
7229
  @internal
7230
7230
  */
7231
7231
  static parse(e, t) {
7232
- let n = new Lc(e, t);
7232
+ let n = new _c(e, t);
7233
7233
  if (n.next == null)
7234
7234
  return gt.empty;
7235
- let i = Ta(n);
7235
+ let i = Fa(n);
7236
7236
  n.next && n.err("Unexpected trailing text");
7237
- let s = Vc(Hc(i));
7238
- return zc(s, n), s;
7237
+ let s = zc(Vc(i));
7238
+ return Gc(s, n), s;
7239
7239
  }
7240
7240
  /**
7241
7241
  Match a node type, returning a match after that node if
@@ -7381,7 +7381,7 @@ class gt {
7381
7381
  }
7382
7382
  }
7383
7383
  gt.empty = new gt(!0);
7384
- class Lc {
7384
+ class _c {
7385
7385
  constructor(e, t) {
7386
7386
  this.string = e, this.nodeTypes = t, this.inline = null, this.pos = 0, this.tokens = e.split(/\s*(?=\b|\W|$)/), this.tokens[this.tokens.length - 1] == "" && this.tokens.pop(), this.tokens[0] == "" && this.tokens.shift();
7387
7387
  }
@@ -7395,22 +7395,22 @@ class Lc {
7395
7395
  throw new SyntaxError(e + " (in content expression '" + this.string + "')");
7396
7396
  }
7397
7397
  }
7398
- function Ta(r) {
7398
+ function Fa(r) {
7399
7399
  let e = [];
7400
7400
  do
7401
- e.push(_c(r));
7401
+ e.push(qc(r));
7402
7402
  while (r.eat("|"));
7403
7403
  return e.length == 1 ? e[0] : { type: "choice", exprs: e };
7404
7404
  }
7405
- function _c(r) {
7405
+ function qc(r) {
7406
7406
  let e = [];
7407
7407
  do
7408
- e.push(qc(r));
7408
+ e.push(Mc(r));
7409
7409
  while (r.next && r.next != ")" && r.next != "|");
7410
7410
  return e.length == 1 ? e[0] : { type: "seq", exprs: e };
7411
7411
  }
7412
- function qc(r) {
7413
- let e = jc(r);
7412
+ function Mc(r) {
7413
+ let e = Hc(r);
7414
7414
  for (; ; )
7415
7415
  if (r.eat("+"))
7416
7416
  e = { type: "plus", expr: e };
@@ -7419,7 +7419,7 @@ function qc(r) {
7419
7419
  else if (r.eat("?"))
7420
7420
  e = { type: "opt", expr: e };
7421
7421
  else if (r.eat("{"))
7422
- e = Mc(r, e);
7422
+ e = Uc(r, e);
7423
7423
  else
7424
7424
  break;
7425
7425
  return e;
@@ -7429,11 +7429,11 @@ function io(r) {
7429
7429
  let e = Number(r.next);
7430
7430
  return r.pos++, e;
7431
7431
  }
7432
- function Mc(r, e) {
7432
+ function Uc(r, e) {
7433
7433
  let t = io(r), n = t;
7434
7434
  return r.eat(",") && (r.next != "}" ? n = io(r) : n = -1), r.eat("}") || r.err("Unclosed braced range"), { type: "range", min: t, max: n, expr: e };
7435
7435
  }
7436
- function Uc(r, e) {
7436
+ function jc(r, e) {
7437
7437
  let t = r.nodeTypes, n = t[e];
7438
7438
  if (n)
7439
7439
  return [n];
@@ -7444,18 +7444,18 @@ function Uc(r, e) {
7444
7444
  }
7445
7445
  return i.length == 0 && r.err("No node type or group '" + e + "' found"), i;
7446
7446
  }
7447
- function jc(r) {
7447
+ function Hc(r) {
7448
7448
  if (r.eat("(")) {
7449
- let e = Ta(r);
7449
+ let e = Fa(r);
7450
7450
  return r.eat(")") || r.err("Missing closing paren"), e;
7451
7451
  } else if (/\W/.test(r.next))
7452
7452
  r.err("Unexpected token '" + r.next + "'");
7453
7453
  else {
7454
- let e = Uc(r, r.next).map((t) => (r.inline == null ? r.inline = t.isInline : r.inline != t.isInline && r.err("Mixing inline and block content"), { type: "name", value: t }));
7454
+ let e = jc(r, r.next).map((t) => (r.inline == null ? r.inline = t.isInline : r.inline != t.isInline && r.err("Mixing inline and block content"), { type: "name", value: t }));
7455
7455
  return r.pos++, e.length == 1 ? e[0] : { type: "choice", exprs: e };
7456
7456
  }
7457
7457
  }
7458
- function Hc(r) {
7458
+ function Vc(r) {
7459
7459
  let e = [[]];
7460
7460
  return i(s(r, 0), t()), e;
7461
7461
  function t() {
@@ -7509,12 +7509,12 @@ function Hc(r) {
7509
7509
  }
7510
7510
  }
7511
7511
  }
7512
- function Fa(r, e) {
7512
+ function Ba(r, e) {
7513
7513
  return e - r;
7514
7514
  }
7515
7515
  function so(r, e) {
7516
7516
  let t = [];
7517
- return n(e), t.sort(Fa);
7517
+ return n(e), t.sort(Ba);
7518
7518
  function n(i) {
7519
7519
  let s = r[i];
7520
7520
  if (s.length == 1 && !s[0].term)
@@ -7526,7 +7526,7 @@ function so(r, e) {
7526
7526
  }
7527
7527
  }
7528
7528
  }
7529
- function Vc(r) {
7529
+ function zc(r) {
7530
7530
  let e = /* @__PURE__ */ Object.create(null);
7531
7531
  return t(so(r, 0));
7532
7532
  function t(n) {
@@ -7545,13 +7545,13 @@ function Vc(r) {
7545
7545
  });
7546
7546
  let s = e[n.join(",")] = new gt(n.indexOf(r.length - 1) > -1);
7547
7547
  for (let o = 0; o < i.length; o++) {
7548
- let a = i[o][1].sort(Fa);
7548
+ let a = i[o][1].sort(Ba);
7549
7549
  s.next.push({ type: i[o][0], next: e[a.join(",")] || t(a) });
7550
7550
  }
7551
7551
  return s;
7552
7552
  }
7553
7553
  }
7554
- function zc(r, e) {
7554
+ function Gc(r, e) {
7555
7555
  for (let t = 0, n = [r]; t < n.length; t++) {
7556
7556
  let i = n[t], s = !i.validEnd, o = [];
7557
7557
  for (let a = 0; a < i.next.length; a++) {
@@ -7561,7 +7561,7 @@ function zc(r, e) {
7561
7561
  s && e.err("Only non-generatable nodes (" + o.join(", ") + ") in a required position (see https://prosemirror.net/docs/guide/#generatable)");
7562
7562
  }
7563
7563
  }
7564
- function Ba(r) {
7564
+ function ka(r) {
7565
7565
  let e = /* @__PURE__ */ Object.create(null);
7566
7566
  for (let t in r) {
7567
7567
  let n = r[t];
@@ -7571,7 +7571,7 @@ function Ba(r) {
7571
7571
  }
7572
7572
  return e;
7573
7573
  }
7574
- function ka(r, e) {
7574
+ function Na(r, e) {
7575
7575
  let t = /* @__PURE__ */ Object.create(null);
7576
7576
  for (let n in r) {
7577
7577
  let i = e && e[n];
@@ -7586,7 +7586,7 @@ function ka(r, e) {
7586
7586
  }
7587
7587
  return t;
7588
7588
  }
7589
- function Na(r, e, t, n) {
7589
+ function Ia(r, e, t, n) {
7590
7590
  for (let i in e)
7591
7591
  if (!(i in r))
7592
7592
  throw new RangeError(`Unsupported attribute ${i} for ${t} of type ${i}`);
@@ -7595,11 +7595,11 @@ function Na(r, e, t, n) {
7595
7595
  s.validate && s.validate(e[i]);
7596
7596
  }
7597
7597
  }
7598
- function Ia(r, e) {
7598
+ function Ra(r, e) {
7599
7599
  let t = /* @__PURE__ */ Object.create(null);
7600
7600
  if (e)
7601
7601
  for (let n in e)
7602
- t[n] = new Wc(r, n, e[n]);
7602
+ t[n] = new Jc(r, n, e[n]);
7603
7603
  return t;
7604
7604
  }
7605
7605
  class hr {
@@ -7607,7 +7607,7 @@ class hr {
7607
7607
  @internal
7608
7608
  */
7609
7609
  constructor(e, t, n) {
7610
- this.name = e, this.schema = t, this.spec = n, this.markSet = null, this.groups = n.group ? n.group.split(" ") : [], this.attrs = Ia(e, n.attrs), this.defaultAttrs = Ba(this.attrs), this.contentMatch = null, this.inlineContent = null, this.isBlock = !(n.inline || e == "text"), this.isText = e == "text";
7610
+ this.name = e, this.schema = t, this.spec = n, this.markSet = null, this.groups = n.group ? n.group.split(" ") : [], this.attrs = Ra(e, n.attrs), this.defaultAttrs = ka(this.attrs), this.contentMatch = null, this.inlineContent = null, this.isBlock = !(n.inline || e == "text"), this.isText = e == "text";
7611
7611
  }
7612
7612
  /**
7613
7613
  True if this is an inline type.
@@ -7668,7 +7668,7 @@ class hr {
7668
7668
  @internal
7669
7669
  */
7670
7670
  computeAttrs(e) {
7671
- return !e && this.defaultAttrs ? this.defaultAttrs : ka(this.attrs, e);
7671
+ return !e && this.defaultAttrs ? this.defaultAttrs : Na(this.attrs, e);
7672
7672
  }
7673
7673
  /**
7674
7674
  Create a `Node` of this type. The given attributes are
@@ -7735,7 +7735,7 @@ class hr {
7735
7735
  @internal
7736
7736
  */
7737
7737
  checkAttrs(e) {
7738
- Na(this.attrs, e, "node", this.name);
7738
+ Ia(this.attrs, e, "node", this.name);
7739
7739
  }
7740
7740
  /**
7741
7741
  Check whether the given mark type is allowed in this node.
@@ -7781,7 +7781,7 @@ class hr {
7781
7781
  return n;
7782
7782
  }
7783
7783
  }
7784
- function Gc(r, e, t) {
7784
+ function Wc(r, e, t) {
7785
7785
  let n = t.split("|");
7786
7786
  return (i) => {
7787
7787
  let s = i === null ? "null" : typeof i;
@@ -7789,9 +7789,9 @@ function Gc(r, e, t) {
7789
7789
  throw new RangeError(`Expected value of type ${n} for attribute ${e} on type ${r}, got ${s}`);
7790
7790
  };
7791
7791
  }
7792
- class Wc {
7792
+ class Jc {
7793
7793
  constructor(e, t, n) {
7794
- this.hasDefault = Object.prototype.hasOwnProperty.call(n, "default"), this.default = n.default, this.validate = typeof n.validate == "string" ? Gc(e, t, n.validate) : n.validate;
7794
+ this.hasDefault = Object.prototype.hasOwnProperty.call(n, "default"), this.default = n.default, this.validate = typeof n.validate == "string" ? Wc(e, t, n.validate) : n.validate;
7795
7795
  }
7796
7796
  get isRequired() {
7797
7797
  return !this.hasDefault;
@@ -7802,8 +7802,8 @@ class Sr {
7802
7802
  @internal
7803
7803
  */
7804
7804
  constructor(e, t, n, i) {
7805
- this.name = e, this.rank = t, this.schema = n, this.spec = i, this.attrs = Ia(e, i.attrs), this.excluded = null;
7806
- let s = Ba(this.attrs);
7805
+ this.name = e, this.rank = t, this.schema = n, this.spec = i, this.attrs = Ra(e, i.attrs), this.excluded = null;
7806
+ let s = ka(this.attrs);
7807
7807
  this.instance = s ? new ge(this, s) : null;
7808
7808
  }
7809
7809
  /**
@@ -7812,7 +7812,7 @@ class Sr {
7812
7812
  they have defaults, will be added.
7813
7813
  */
7814
7814
  create(e = null) {
7815
- return !e && this.instance ? this.instance : new ge(this, ka(this.attrs, e));
7815
+ return !e && this.instance ? this.instance : new ge(this, Na(this.attrs, e));
7816
7816
  }
7817
7817
  /**
7818
7818
  @internal
@@ -7842,7 +7842,7 @@ class Sr {
7842
7842
  @internal
7843
7843
  */
7844
7844
  checkAttrs(e) {
7845
- Na(this.attrs, e, "mark", this.name);
7845
+ Ia(this.attrs, e, "mark", this.name);
7846
7846
  }
7847
7847
  /**
7848
7848
  Queries whether a given mark type is
@@ -7951,10 +7951,10 @@ function oo(r, e) {
7951
7951
  }
7952
7952
  return t;
7953
7953
  }
7954
- function Jc(r) {
7954
+ function Kc(r) {
7955
7955
  return r.tag != null;
7956
7956
  }
7957
- function Kc(r) {
7957
+ function $c(r) {
7958
7958
  return r.style != null;
7959
7959
  }
7960
7960
  class gr {
@@ -7966,9 +7966,9 @@ class gr {
7966
7966
  this.schema = e, this.rules = t, this.tags = [], this.styles = [];
7967
7967
  let n = this.matchedStyles = [];
7968
7968
  t.forEach((i) => {
7969
- if (Jc(i))
7969
+ if (Kc(i))
7970
7970
  this.tags.push(i);
7971
- else if (Kc(i)) {
7971
+ else if ($c(i)) {
7972
7972
  let s = /[^=]*/.exec(i.style)[0];
7973
7973
  n.indexOf(s) < 0 && n.push(s), this.styles.push(i);
7974
7974
  }
@@ -8004,7 +8004,7 @@ class gr {
8004
8004
  matchTag(e, t, n) {
8005
8005
  for (let i = n ? this.tags.indexOf(n) + 1 : 0; i < this.tags.length; i++) {
8006
8006
  let s = this.tags[i];
8007
- if (Yc(e, s.tag) && (s.namespace === void 0 || e.namespaceURI == s.namespace) && (!s.context || t.matchesContext(s.context))) {
8007
+ if (Qc(e, s.tag) && (s.namespace === void 0 || e.namespaceURI == s.namespace) && (!s.context || t.matchesContext(s.context))) {
8008
8008
  if (s.getAttrs) {
8009
8009
  let o = s.getAttrs(e);
8010
8010
  if (o === !1)
@@ -8072,7 +8072,7 @@ class gr {
8072
8072
  return e.cached.domParser || (e.cached.domParser = new gr(e, gr.schemaRules(e)));
8073
8073
  }
8074
8074
  }
8075
- const Ra = {
8075
+ const Pa = {
8076
8076
  address: !0,
8077
8077
  article: !0,
8078
8078
  aside: !0,
@@ -8105,14 +8105,14 @@ const Ra = {
8105
8105
  table: !0,
8106
8106
  tfoot: !0,
8107
8107
  ul: !0
8108
- }, $c = {
8108
+ }, Xc = {
8109
8109
  head: !0,
8110
8110
  noscript: !0,
8111
8111
  object: !0,
8112
8112
  script: !0,
8113
8113
  style: !0,
8114
8114
  title: !0
8115
- }, Pa = { ol: !0, ul: !0 }, Gt = 1, ci = 2, or = 4;
8115
+ }, Oa = { ol: !0, ul: !0 }, Gt = 1, ci = 2, or = 4;
8116
8116
  function ao(r, e, t) {
8117
8117
  return e != null ? (e ? Gt : 0) | (e === "full" ? ci : 0) : r && r.whitespace == "pre" ? Gt | ci : t & -5;
8118
8118
  }
@@ -8146,7 +8146,7 @@ class rr {
8146
8146
  return !e && this.match && (t = t.append(this.match.fillBefore(Z.empty, !0))), this.type ? this.type.create(this.attrs, t, this.marks) : t;
8147
8147
  }
8148
8148
  inlineContext(e) {
8149
- return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !Ra.hasOwnProperty(e.parentNode.nodeName.toLowerCase());
8149
+ return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !Pa.hasOwnProperty(e.parentNode.nodeName.toLowerCase());
8150
8150
  }
8151
8151
  }
8152
8152
  class uo {
@@ -8184,14 +8184,14 @@ class uo {
8184
8184
  let i = this.localPreserveWS, s = this.top;
8185
8185
  (e.tagName == "PRE" || /pre/.test(e.style && e.style.whiteSpace)) && (this.localPreserveWS = !0);
8186
8186
  let o = e.nodeName.toLowerCase(), a;
8187
- Pa.hasOwnProperty(o) && this.parser.normalizeLists && Xc(e);
8187
+ Oa.hasOwnProperty(o) && this.parser.normalizeLists && Yc(e);
8188
8188
  let u = this.options.ruleFromNode && this.options.ruleFromNode(e) || (a = this.parser.matchTag(e, this, n));
8189
- e: if (u ? u.ignore : $c.hasOwnProperty(o))
8189
+ e: if (u ? u.ignore : Xc.hasOwnProperty(o))
8190
8190
  this.findInside(e), this.ignoreFallback(e, t);
8191
8191
  else if (!u || u.skip || u.closeParent) {
8192
8192
  u && u.closeParent ? this.open = Math.max(0, this.open - 1) : u && u.skip.nodeType && (e = u.skip);
8193
8193
  let f, c = this.needsBlock;
8194
- if (Ra.hasOwnProperty(o))
8194
+ if (Pa.hasOwnProperty(o))
8195
8195
  s.content.length && s.content[0].isInline && this.open && (this.open--, s = this.top), f = !0, s.type || (this.needsBlock = !0);
8196
8196
  else if (!e.firstChild) {
8197
8197
  this.leafFallback(e, t);
@@ -8418,13 +8418,13 @@ class uo {
8418
8418
  }
8419
8419
  }
8420
8420
  }
8421
- function Xc(r) {
8421
+ function Yc(r) {
8422
8422
  for (let e = r.firstChild, t = null; e; e = e.nextSibling) {
8423
8423
  let n = e.nodeType == 1 ? e.nodeName.toLowerCase() : null;
8424
- n && Pa.hasOwnProperty(n) && t ? (t.appendChild(e), e = t) : n == "li" ? t = e : n && (t = null);
8424
+ n && Oa.hasOwnProperty(n) && t ? (t.appendChild(e), e = t) : n == "li" ? t = e : n && (t = null);
8425
8425
  }
8426
8426
  }
8427
- function Yc(r, e) {
8427
+ function Qc(r, e) {
8428
8428
  return (r.matches || r.msMatchesSelector || r.webkitMatchesSelector || r.mozMatchesSelector).call(r, e);
8429
8429
  }
8430
8430
  function lo(r) {
@@ -8451,7 +8451,7 @@ function co(r, e) {
8451
8451
  return !0;
8452
8452
  }
8453
8453
  }
8454
- class Oa {
8454
+ class La {
8455
8455
  /**
8456
8456
  Create a serializer. `nodes` should map node names to functions
8457
8457
  that take a node and return a description of the corresponding
@@ -8538,7 +8538,7 @@ class Oa {
8538
8538
  properties in a schema's node and mark specs.
8539
8539
  */
8540
8540
  static fromSchema(e) {
8541
- return e.cached.domSerializer || (e.cached.domSerializer = new Oa(this.nodesFromSchema(e), this.marksFromSchema(e)));
8541
+ return e.cached.domSerializer || (e.cached.domSerializer = new La(this.nodesFromSchema(e), this.marksFromSchema(e)));
8542
8542
  }
8543
8543
  /**
8544
8544
  Gather the serializers in a schema's node specs into an object.
@@ -8567,11 +8567,11 @@ function Zn(r) {
8567
8567
  return r.document || window.document;
8568
8568
  }
8569
8569
  const mo = /* @__PURE__ */ new WeakMap();
8570
- function Qc(r) {
8570
+ function Zc(r) {
8571
8571
  let e = mo.get(r);
8572
- return e === void 0 && mo.set(r, e = Zc(r)), e;
8572
+ return e === void 0 && mo.set(r, e = ef(r)), e;
8573
8573
  }
8574
- function Zc(r) {
8574
+ function ef(r) {
8575
8575
  let e = null;
8576
8576
  function t(n) {
8577
8577
  if (n && typeof n == "object")
@@ -8597,7 +8597,7 @@ function ar(r, e, t, n) {
8597
8597
  let i = e[0], s;
8598
8598
  if (typeof i != "string")
8599
8599
  throw new RangeError("Invalid array passed to renderSpec");
8600
- if (n && (s = Qc(n)) && s.indexOf(e) > -1)
8600
+ if (n && (s = Zc(n)) && s.indexOf(e) > -1)
8601
8601
  throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");
8602
8602
  let o = i.indexOf(" ");
8603
8603
  o > 0 && (t = i.slice(0, o), i = i.slice(o + 1));
@@ -8627,17 +8627,17 @@ function ar(r, e, t, n) {
8627
8627
  }
8628
8628
  return { dom: u, contentDOM: a };
8629
8629
  }
8630
- const La = 65535, _a = Math.pow(2, 16);
8631
- function ef(r, e) {
8632
- return r + e * _a;
8630
+ const _a = 65535, qa = Math.pow(2, 16);
8631
+ function tf(r, e) {
8632
+ return r + e * qa;
8633
8633
  }
8634
8634
  function po(r) {
8635
- return r & La;
8635
+ return r & _a;
8636
8636
  }
8637
- function tf(r) {
8638
- return (r - (r & La)) / _a;
8637
+ function rf(r) {
8638
+ return (r - (r & _a)) / qa;
8639
8639
  }
8640
- const qa = 1, Ma = 2, ur = 4, Ua = 8;
8640
+ const Ma = 1, Ua = 2, ur = 4, ja = 8;
8641
8641
  class fi {
8642
8642
  /**
8643
8643
  @internal
@@ -8651,19 +8651,19 @@ class fi {
8651
8651
  argument from the document.
8652
8652
  */
8653
8653
  get deleted() {
8654
- return (this.delInfo & Ua) > 0;
8654
+ return (this.delInfo & ja) > 0;
8655
8655
  }
8656
8656
  /**
8657
8657
  Tells you whether the token before the mapped position was deleted.
8658
8658
  */
8659
8659
  get deletedBefore() {
8660
- return (this.delInfo & (qa | ur)) > 0;
8660
+ return (this.delInfo & (Ma | ur)) > 0;
8661
8661
  }
8662
8662
  /**
8663
8663
  True when the token after the mapped position was deleted.
8664
8664
  */
8665
8665
  get deletedAfter() {
8666
- return (this.delInfo & (Ma | ur)) > 0;
8666
+ return (this.delInfo & (Ua | ur)) > 0;
8667
8667
  }
8668
8668
  /**
8669
8669
  Tells whether any of the steps mapped through deletes across the
@@ -8692,7 +8692,7 @@ class Ue {
8692
8692
  if (!this.inverted)
8693
8693
  for (let i = 0; i < n; i++)
8694
8694
  t += this.ranges[i * 3 + 2] - this.ranges[i * 3 + 1];
8695
- return this.ranges[n * 3] + t + tf(e);
8695
+ return this.ranges[n * 3] + t + rf(e);
8696
8696
  }
8697
8697
  mapResult(e, t = 1) {
8698
8698
  return this._map(e, t, !1);
@@ -8714,8 +8714,8 @@ class Ue {
8714
8714
  let g = f ? e == u ? -1 : e == h ? 1 : t : t, S = u + i + (g < 0 ? 0 : c);
8715
8715
  if (n)
8716
8716
  return S;
8717
- let T = e == (t < 0 ? u : h) ? null : ef(a / 3, e - u), A = e == u ? Ma : e == h ? qa : ur;
8718
- return (t < 0 ? e != u : e != h) && (A |= Ua), new fi(S, A, T);
8717
+ let T = e == (t < 0 ? u : h) ? null : tf(a / 3, e - u), A = e == u ? Ua : e == h ? Ma : ur;
8718
+ return (t < 0 ? e != u : e != h) && (A |= ja), new fi(S, A, T);
8719
8719
  }
8720
8720
  i += c - f;
8721
8721
  }
@@ -9243,7 +9243,7 @@ function di(r, e, t) {
9243
9243
  }
9244
9244
  return !1;
9245
9245
  }
9246
- function rf(r, e, t, n) {
9246
+ function nf(r, e, t, n) {
9247
9247
  let i = [], s = [], o, a;
9248
9248
  r.doc.nodesBetween(e, t, (u, f, c) => {
9249
9249
  if (!u.isInline)
@@ -9257,7 +9257,7 @@ function rf(r, e, t, n) {
9257
9257
  }
9258
9258
  }), i.forEach((u) => r.step(u)), s.forEach((u) => r.step(u));
9259
9259
  }
9260
- function nf(r, e, t, n) {
9260
+ function sf(r, e, t, n) {
9261
9261
  let i = [], s = 0;
9262
9262
  r.doc.nodesBetween(e, t, (o, a) => {
9263
9263
  if (!o.isInline)
@@ -9307,7 +9307,7 @@ function Fi(r, e, t, n = t.contentMatch, i = !0) {
9307
9307
  for (let u = o.length - 1; u >= 0; u--)
9308
9308
  r.step(o[u]);
9309
9309
  }
9310
- function sf(r, e, t) {
9310
+ function of(r, e, t) {
9311
9311
  return (e == 0 || r.canReplace(e, r.childCount)) && (t == r.childCount || r.canReplace(0, t));
9312
9312
  }
9313
9313
  function up(r) {
@@ -9316,12 +9316,12 @@ function up(r) {
9316
9316
  let i = r.$from.node(n), s = r.$from.index(n), o = r.$to.indexAfter(n);
9317
9317
  if (n < r.depth && i.canReplace(s, o, t))
9318
9318
  return n;
9319
- if (n == 0 || i.type.spec.isolating || !sf(i, s, o))
9319
+ if (n == 0 || i.type.spec.isolating || !of(i, s, o))
9320
9320
  break;
9321
9321
  }
9322
9322
  return null;
9323
9323
  }
9324
- function of(r, e, t) {
9324
+ function af(r, e, t) {
9325
9325
  let { $from: n, $to: i, depth: s } = e, o = n.before(s + 1), a = i.after(s + 1), u = o, f = a, c = Z.empty, h = 0;
9326
9326
  for (let T = s, A = !1; T > t; T--)
9327
9327
  A || n.index(T) > 0 ? (A = !0, c = Z.from(n.node(T).copy(c)), h++) : u--;
@@ -9331,20 +9331,20 @@ function of(r, e, t) {
9331
9331
  r.step(new Je(u, f, o, a, new oe(c.append(g), h, S), c.size - h, !0));
9332
9332
  }
9333
9333
  function lp(r, e, t = null, n = r) {
9334
- let i = af(r, e), s = i && uf(n, e);
9334
+ let i = uf(r, e), s = i && lf(n, e);
9335
9335
  return s ? i.map(ho).concat({ type: e, attrs: t }).concat(s.map(ho)) : null;
9336
9336
  }
9337
9337
  function ho(r) {
9338
9338
  return { type: r, attrs: null };
9339
9339
  }
9340
- function af(r, e) {
9340
+ function uf(r, e) {
9341
9341
  let { parent: t, startIndex: n, endIndex: i } = r, s = t.contentMatchAt(n).findWrapping(e);
9342
9342
  if (!s)
9343
9343
  return null;
9344
9344
  let o = s.length ? s[0] : e;
9345
9345
  return t.canReplaceWith(n, i, o) ? s : null;
9346
9346
  }
9347
- function uf(r, e) {
9347
+ function lf(r, e) {
9348
9348
  let { parent: t, startIndex: n, endIndex: i } = r, s = t.child(n), o = e.contentMatch.findWrapping(s.type);
9349
9349
  if (!o)
9350
9350
  return null;
@@ -9353,7 +9353,7 @@ function uf(r, e) {
9353
9353
  u = u.matchType(t.child(f).type);
9354
9354
  return !u || !u.validEnd ? null : o;
9355
9355
  }
9356
- function lf(r, e, t) {
9356
+ function cf(r, e, t) {
9357
9357
  let n = Z.empty;
9358
9358
  for (let o = t.length - 1; o >= 0; o--) {
9359
9359
  if (n.size) {
@@ -9366,25 +9366,25 @@ function lf(r, e, t) {
9366
9366
  let i = e.start, s = e.end;
9367
9367
  r.step(new Je(i, s, i, s, new oe(n, 0, 0), t.length, !0));
9368
9368
  }
9369
- function cf(r, e, t, n, i) {
9369
+ function ff(r, e, t, n, i) {
9370
9370
  if (!n.isTextblock)
9371
9371
  throw new RangeError("Type given to setBlockType should be a textblock");
9372
9372
  let s = r.steps.length;
9373
9373
  r.doc.nodesBetween(e, t, (o, a) => {
9374
9374
  let u = typeof i == "function" ? i(o) : i;
9375
- if (o.isTextblock && !o.hasMarkup(n, u) && ff(r.doc, r.mapping.slice(s).map(a), n)) {
9375
+ if (o.isTextblock && !o.hasMarkup(n, u) && df(r.doc, r.mapping.slice(s).map(a), n)) {
9376
9376
  let f = null;
9377
9377
  if (n.schema.linebreakReplacement) {
9378
9378
  let S = n.whitespace == "pre", T = !!n.contentMatch.matchType(n.schema.linebreakReplacement);
9379
9379
  S && !T ? f = !1 : !S && T && (f = !0);
9380
9380
  }
9381
- f === !1 && Ha(r, o, a, s), Fi(r, r.mapping.slice(s).map(a, 1), n, void 0, f === null);
9381
+ f === !1 && Va(r, o, a, s), Fi(r, r.mapping.slice(s).map(a, 1), n, void 0, f === null);
9382
9382
  let c = r.mapping.slice(s), h = c.map(a, 1), g = c.map(a + o.nodeSize, 1);
9383
- return r.step(new Je(h, g, h + 1, g - 1, new oe(Z.from(n.create(u, null, o.marks)), 0, 0), 1, !0)), f === !0 && ja(r, o, a, s), !1;
9383
+ return r.step(new Je(h, g, h + 1, g - 1, new oe(Z.from(n.create(u, null, o.marks)), 0, 0), 1, !0)), f === !0 && Ha(r, o, a, s), !1;
9384
9384
  }
9385
9385
  });
9386
9386
  }
9387
- function ja(r, e, t, n) {
9387
+ function Ha(r, e, t, n) {
9388
9388
  e.forEach((i, s) => {
9389
9389
  if (i.isText) {
9390
9390
  let o, a = /\r?\n|\r/g;
@@ -9395,7 +9395,7 @@ function ja(r, e, t, n) {
9395
9395
  }
9396
9396
  });
9397
9397
  }
9398
- function Ha(r, e, t, n) {
9398
+ function Va(r, e, t, n) {
9399
9399
  e.forEach((i, s) => {
9400
9400
  if (i.type == i.type.schema.linebreakReplacement) {
9401
9401
  let o = r.mapping.slice(n).map(t + 1 + s);
@@ -9404,11 +9404,11 @@ function Ha(r, e, t, n) {
9404
9404
  }
9405
9405
  });
9406
9406
  }
9407
- function ff(r, e, t) {
9407
+ function df(r, e, t) {
9408
9408
  let n = r.resolve(e), i = n.index();
9409
9409
  return n.parent.canReplaceWith(i, i + 1, t);
9410
9410
  }
9411
- function df(r, e, t, n, i) {
9411
+ function mf(r, e, t, n, i) {
9412
9412
  let s = r.doc.nodeAt(e);
9413
9413
  if (!s)
9414
9414
  throw new RangeError("No node at given position");
@@ -9437,7 +9437,7 @@ function cp(r, e, t = 1, n) {
9437
9437
  let a = i.indexAfter(s), u = n && n[0];
9438
9438
  return i.node(s).canReplaceWith(a, a, u ? u.type : i.node(s + 1).type);
9439
9439
  }
9440
- function mf(r, e, t = 1, n) {
9440
+ function pf(r, e, t = 1, n) {
9441
9441
  let i = r.doc.resolve(e), s = Z.empty, o = Z.empty;
9442
9442
  for (let a = i.depth, u = i.depth - t, f = t - 1; a > u; a--, f--) {
9443
9443
  s = Z.from(i.node(a).copy(s));
@@ -9448,9 +9448,9 @@ function mf(r, e, t = 1, n) {
9448
9448
  }
9449
9449
  function fp(r, e) {
9450
9450
  let t = r.resolve(e), n = t.index();
9451
- return Va(t.nodeBefore, t.nodeAfter) && t.parent.canReplace(n, n + 1);
9451
+ return za(t.nodeBefore, t.nodeAfter) && t.parent.canReplace(n, n + 1);
9452
9452
  }
9453
- function pf(r, e) {
9453
+ function hf(r, e) {
9454
9454
  e.content.size || r.type.compatibleContent(e.type);
9455
9455
  let t = r.contentMatchAt(r.childCount), { linebreakReplacement: n } = r.type.schema;
9456
9456
  for (let i = 0; i < e.childCount; i++) {
@@ -9460,21 +9460,21 @@ function pf(r, e) {
9460
9460
  }
9461
9461
  return t.validEnd;
9462
9462
  }
9463
- function Va(r, e) {
9464
- return !!(r && e && !r.isLeaf && pf(r, e));
9463
+ function za(r, e) {
9464
+ return !!(r && e && !r.isLeaf && hf(r, e));
9465
9465
  }
9466
9466
  function dp(r, e, t = -1) {
9467
9467
  let n = r.resolve(e);
9468
9468
  for (let i = n.depth; ; i--) {
9469
9469
  let s, o, a = n.index(i);
9470
- if (i == n.depth ? (s = n.nodeBefore, o = n.nodeAfter) : t > 0 ? (s = n.node(i + 1), a++, o = n.node(i).maybeChild(a)) : (s = n.node(i).maybeChild(a - 1), o = n.node(i + 1)), s && !s.isTextblock && Va(s, o) && n.node(i).canReplace(a, a + 1))
9470
+ if (i == n.depth ? (s = n.nodeBefore, o = n.nodeAfter) : t > 0 ? (s = n.node(i + 1), a++, o = n.node(i).maybeChild(a)) : (s = n.node(i).maybeChild(a - 1), o = n.node(i + 1)), s && !s.isTextblock && za(s, o) && n.node(i).canReplace(a, a + 1))
9471
9471
  return e;
9472
9472
  if (i == 0)
9473
9473
  break;
9474
9474
  e = t < 0 ? n.before(i) : n.after(i);
9475
9475
  }
9476
9476
  }
9477
- function hf(r, e, t) {
9477
+ function gf(r, e, t) {
9478
9478
  let n = null, { linebreakReplacement: i } = r.doc.type.schema, s = r.doc.resolve(e - t), o = s.node().type;
9479
9479
  if (i && o.inlineContent) {
9480
9480
  let c = o.whitespace == "pre", h = !!o.contentMatch.matchType(i);
@@ -9483,17 +9483,17 @@ function hf(r, e, t) {
9483
9483
  let a = r.steps.length;
9484
9484
  if (n === !1) {
9485
9485
  let c = r.doc.resolve(e + t);
9486
- Ha(r, c.node(), c.before(), a);
9486
+ Va(r, c.node(), c.before(), a);
9487
9487
  }
9488
9488
  o.inlineContent && Fi(r, e + t - 1, o, s.node().contentMatchAt(s.index()), n == null);
9489
9489
  let u = r.mapping.slice(a), f = u.map(e - t);
9490
9490
  if (r.step(new Ie(f, u.map(e + t, -1), oe.empty, !0)), n === !0) {
9491
9491
  let c = r.doc.resolve(f);
9492
- ja(r, c.node(), c.before(), r.steps.length);
9492
+ Ha(r, c.node(), c.before(), r.steps.length);
9493
9493
  }
9494
9494
  return r;
9495
9495
  }
9496
- function gf(r, e, t) {
9496
+ function wf(r, e, t) {
9497
9497
  let n = r.resolve(e);
9498
9498
  if (n.parent.canReplaceWith(n.index(), n.index(), t))
9499
9499
  return e;
@@ -9536,16 +9536,16 @@ function mp(r, e, t) {
9536
9536
  }
9537
9537
  return null;
9538
9538
  }
9539
- function wf(r, e, t = e, n = oe.empty) {
9539
+ function yf(r, e, t = e, n = oe.empty) {
9540
9540
  if (e == t && !n.size)
9541
9541
  return null;
9542
9542
  let i = r.resolve(e), s = r.resolve(t);
9543
- return za(i, s, n) ? new Ie(e, t, n) : new yf(i, s, n).fit();
9543
+ return Ga(i, s, n) ? new Ie(e, t, n) : new bf(i, s, n).fit();
9544
9544
  }
9545
- function za(r, e, t) {
9545
+ function Ga(r, e, t) {
9546
9546
  return !t.openStart && !t.openEnd && r.start() == e.start() && r.parent.canReplace(r.index(), e.index(), t.content);
9547
9547
  }
9548
- class yf {
9548
+ class bf {
9549
9549
  constructor(e, t, n) {
9550
9550
  this.$from = e, this.$to = t, this.unplaced = n, this.frontier = [], this.placed = Z.empty;
9551
9551
  for (let i = 0; i <= e.depth; i++) {
@@ -9636,7 +9636,7 @@ class yf {
9636
9636
  let A = a.child(f), B = h.matchType(A.type);
9637
9637
  if (!B)
9638
9638
  break;
9639
- f++, (f > 1 || u == 0 || A.content.size) && (h = B, c.push(Ga(A.mark(g.allowedMarks(A.marks)), f == 1 ? u : 0, f == a.childCount ? S : -1)));
9639
+ f++, (f > 1 || u == 0 || A.content.size) && (h = B, c.push(Wa(A.mark(g.allowedMarks(A.marks)), f == 1 ? u : 0, f == a.childCount ? S : -1)));
9640
9640
  }
9641
9641
  let T = f == a.childCount;
9642
9642
  T || (S = -1), this.placed = Ut(this.placed, t, Z.from(c)), this.frontier[t].match = h, T && S < 0 && n && n.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
@@ -9703,35 +9703,35 @@ function ti(r, e) {
9703
9703
  r = r.firstChild.content;
9704
9704
  return r;
9705
9705
  }
9706
- function Ga(r, e, t) {
9706
+ function Wa(r, e, t) {
9707
9707
  if (e <= 0)
9708
9708
  return r;
9709
9709
  let n = r.content;
9710
- return e > 1 && (n = n.replaceChild(0, Ga(n.firstChild, e - 1, n.childCount == 1 ? t - 1 : 0))), e > 0 && (n = r.type.contentMatch.fillBefore(n).append(n), t <= 0 && (n = n.append(r.type.contentMatch.matchFragment(n).fillBefore(Z.empty, !0)))), r.copy(n);
9710
+ return e > 1 && (n = n.replaceChild(0, Wa(n.firstChild, e - 1, n.childCount == 1 ? t - 1 : 0))), e > 0 && (n = r.type.contentMatch.fillBefore(n).append(n), t <= 0 && (n = n.append(r.type.contentMatch.matchFragment(n).fillBefore(Z.empty, !0)))), r.copy(n);
9711
9711
  }
9712
9712
  function ri(r, e, t, n, i) {
9713
9713
  let s = r.node(e), o = i ? r.indexAfter(e) : r.index(e);
9714
9714
  if (o == s.childCount && !t.compatibleContent(s.type))
9715
9715
  return null;
9716
9716
  let a = n.fillBefore(s.content, !0, o);
9717
- return a && !bf(t, s.content, o) ? a : null;
9717
+ return a && !xf(t, s.content, o) ? a : null;
9718
9718
  }
9719
- function bf(r, e, t) {
9719
+ function xf(r, e, t) {
9720
9720
  for (let n = t; n < e.childCount; n++)
9721
9721
  if (!r.allowsMarks(e.child(n).marks))
9722
9722
  return !0;
9723
9723
  return !1;
9724
9724
  }
9725
- function xf(r) {
9725
+ function Af(r) {
9726
9726
  return r.spec.defining || r.spec.definingForContent;
9727
9727
  }
9728
- function Af(r, e, t, n) {
9728
+ function Df(r, e, t, n) {
9729
9729
  if (!n.size)
9730
9730
  return r.deleteRange(e, t);
9731
9731
  let i = r.doc.resolve(e), s = r.doc.resolve(t);
9732
- if (za(i, s, n))
9732
+ if (Ga(i, s, n))
9733
9733
  return r.step(new Ie(e, t, n));
9734
- let o = Ja(i, r.doc.resolve(t));
9734
+ let o = Ka(i, r.doc.resolve(t));
9735
9735
  o[o.length - 1] == 0 && o.pop();
9736
9736
  let a = -(i.depth + 1);
9737
9737
  o.unshift(a);
@@ -9749,7 +9749,7 @@ function Af(r, e, t, n) {
9749
9749
  g = T.content;
9750
9750
  }
9751
9751
  for (let g = c - 1; g >= 0; g--) {
9752
- let S = f[g], T = xf(S.type);
9752
+ let S = f[g], T = Af(S.type);
9753
9753
  if (T && !S.sameMarkup(i.node(Math.abs(a) - 1)))
9754
9754
  c = g;
9755
9755
  else if (T || !S.type.isTextblock)
@@ -9763,7 +9763,7 @@ function Af(r, e, t, n) {
9763
9763
  B < 0 && (w = !1, B = -B);
9764
9764
  let k = i.node(B - 1), R = i.index(B - 1);
9765
9765
  if (k.canReplaceWith(R, R, T.type, T.marks))
9766
- return r.replace(i.before(B), w ? s.after(B) : t, new oe(Wa(n.content, 0, n.openStart, S), S, n.openEnd));
9766
+ return r.replace(i.before(B), w ? s.after(B) : t, new oe(Ja(n.content, 0, n.openStart, S), S, n.openEnd));
9767
9767
  }
9768
9768
  }
9769
9769
  let h = r.steps.length;
@@ -9772,10 +9772,10 @@ function Af(r, e, t, n) {
9772
9772
  S < 0 || (e = i.before(S), t = s.after(S));
9773
9773
  }
9774
9774
  }
9775
- function Wa(r, e, t, n, i) {
9775
+ function Ja(r, e, t, n, i) {
9776
9776
  if (e < t) {
9777
9777
  let s = r.firstChild;
9778
- r = r.replaceChild(0, s.copy(Wa(s.content, e + 1, t, n, s)));
9778
+ r = r.replaceChild(0, s.copy(Ja(s.content, e + 1, t, n, s)));
9779
9779
  }
9780
9780
  if (e > n) {
9781
9781
  let s = i.contentMatchAt(0), o = s.fillBefore(r).append(r);
@@ -9783,15 +9783,15 @@ function Wa(r, e, t, n, i) {
9783
9783
  }
9784
9784
  return r;
9785
9785
  }
9786
- function Df(r, e, t, n) {
9786
+ function Ef(r, e, t, n) {
9787
9787
  if (!n.isInline && e == t && r.doc.resolve(e).parent.content.size) {
9788
- let i = gf(r.doc, e, n.type);
9788
+ let i = wf(r.doc, e, n.type);
9789
9789
  i != null && (e = t = i);
9790
9790
  }
9791
9791
  r.replaceRange(e, t, new oe(Z.from(n), 0, 0));
9792
9792
  }
9793
- function Ef(r, e, t) {
9794
- let n = r.doc.resolve(e), i = r.doc.resolve(t), s = Ja(n, i);
9793
+ function vf(r, e, t) {
9794
+ let n = r.doc.resolve(e), i = r.doc.resolve(t), s = Ka(n, i);
9795
9795
  for (let o = 0; o < s.length; o++) {
9796
9796
  let a = s[o], u = o == s.length - 1;
9797
9797
  if (u && a == 0 || n.node(a).type.contentMatch.validEnd)
@@ -9804,7 +9804,7 @@ function Ef(r, e, t) {
9804
9804
  return r.delete(n.before(o), t);
9805
9805
  r.delete(e, t);
9806
9806
  }
9807
- function Ja(r, e) {
9807
+ function Ka(r, e) {
9808
9808
  let t = [], n = Math.min(r.depth, e.depth);
9809
9809
  for (let i = n; i >= 0; i--) {
9810
9810
  let s = r.start(i);
@@ -9895,7 +9895,7 @@ Ft = function r(e) {
9895
9895
  Ft.prototype = Object.create(Error.prototype);
9896
9896
  Ft.prototype.constructor = Ft;
9897
9897
  Ft.prototype.name = "TransformError";
9898
- class vf {
9898
+ class Cf {
9899
9899
  /**
9900
9900
  Create a transform that starts with the given document.
9901
9901
  */
@@ -9944,7 +9944,7 @@ class vf {
9944
9944
  given `slice`.
9945
9945
  */
9946
9946
  replace(e, t = e, n = oe.empty) {
9947
- let i = wf(this.doc, e, t, n);
9947
+ let i = yf(this.doc, e, t, n);
9948
9948
  return i && this.step(i), this;
9949
9949
  }
9950
9950
  /**
@@ -9986,7 +9986,7 @@ class vf {
9986
9986
  control over what happens.
9987
9987
  */
9988
9988
  replaceRange(e, t, n) {
9989
- return Af(this, e, t, n), this;
9989
+ return Df(this, e, t, n), this;
9990
9990
  }
9991
9991
  /**
9992
9992
  Replace the given range with a node, but use `from` and `to` as
@@ -9998,14 +9998,14 @@ class vf {
9998
9998
  that parent node.
9999
9999
  */
10000
10000
  replaceRangeWith(e, t, n) {
10001
- return Df(this, e, t, n), this;
10001
+ return Ef(this, e, t, n), this;
10002
10002
  }
10003
10003
  /**
10004
10004
  Delete the given range, expanding it to cover fully covered
10005
10005
  parent nodes until a valid replace is found.
10006
10006
  */
10007
10007
  deleteRange(e, t) {
10008
- return Ef(this, e, t), this;
10008
+ return vf(this, e, t), this;
10009
10009
  }
10010
10010
  /**
10011
10011
  Split the content in the given range off from its parent, if there
@@ -10015,14 +10015,14 @@ class vf {
10015
10015
  sure the lift is valid.
10016
10016
  */
10017
10017
  lift(e, t) {
10018
- return of(this, e, t), this;
10018
+ return af(this, e, t), this;
10019
10019
  }
10020
10020
  /**
10021
10021
  Join the blocks around the given position. If depth is 2, their
10022
10022
  last and first siblings are also joined, and so on.
10023
10023
  */
10024
10024
  join(e, t = 1) {
10025
- return hf(this, e, t), this;
10025
+ return gf(this, e, t), this;
10026
10026
  }
10027
10027
  /**
10028
10028
  Wrap the given [range](https://prosemirror.net/docs/ref/#model.NodeRange) in the given set of wrappers.
@@ -10030,21 +10030,21 @@ class vf {
10030
10030
  probably be computed with [`findWrapping`](https://prosemirror.net/docs/ref/#transform.findWrapping).
10031
10031
  */
10032
10032
  wrap(e, t) {
10033
- return lf(this, e, t), this;
10033
+ return cf(this, e, t), this;
10034
10034
  }
10035
10035
  /**
10036
10036
  Set the type of all textblocks (partly) between `from` and `to` to
10037
10037
  the given node type with the given attributes.
10038
10038
  */
10039
10039
  setBlockType(e, t = e, n, i = null) {
10040
- return cf(this, e, t, n, i), this;
10040
+ return ff(this, e, t, n, i), this;
10041
10041
  }
10042
10042
  /**
10043
10043
  Change the type, attributes, and/or marks of the node at `pos`.
10044
10044
  When `type` isn't given, the existing node type is preserved,
10045
10045
  */
10046
10046
  setNodeMarkup(e, t, n = null, i) {
10047
- return df(this, e, t, n, i), this;
10047
+ return mf(this, e, t, n, i), this;
10048
10048
  }
10049
10049
  /**
10050
10050
  Set a single attribute on a given node to a new value.
@@ -10088,13 +10088,13 @@ class vf {
10088
10088
  use after the split (with the outermost nodes coming first).
10089
10089
  */
10090
10090
  split(e, t = 1, n) {
10091
- return mf(this, e, t, n), this;
10091
+ return pf(this, e, t, n), this;
10092
10092
  }
10093
10093
  /**
10094
10094
  Add the given mark to the inline content between `from` and `to`.
10095
10095
  */
10096
10096
  addMark(e, t, n) {
10097
- return rf(this, e, t, n), this;
10097
+ return nf(this, e, t, n), this;
10098
10098
  }
10099
10099
  /**
10100
10100
  Remove marks from inline nodes between `from` and `to`. When
@@ -10103,7 +10103,7 @@ class vf {
10103
10103
  remove all marks of any type.
10104
10104
  */
10105
10105
  removeMark(e, t, n) {
10106
- return nf(this, e, t, n), this;
10106
+ return sf(this, e, t, n), this;
10107
10107
  }
10108
10108
  /**
10109
10109
  Removes all marks and nodes from the content of the node at
@@ -10123,7 +10123,7 @@ class ve {
10123
10123
  `$head`.
10124
10124
  */
10125
10125
  constructor(e, t, n) {
10126
- this.$anchor = e, this.$head = t, this.ranges = n || [new Cf(e.min(t), e.max(t))];
10126
+ this.$anchor = e, this.$head = t, this.ranges = n || [new Sf(e.min(t), e.max(t))];
10127
10127
  }
10128
10128
  /**
10129
10129
  The selection's anchor, as an unresolved position.
@@ -10281,7 +10281,7 @@ class ve {
10281
10281
  }
10282
10282
  }
10283
10283
  ve.prototype.visible = !0;
10284
- class Cf {
10284
+ class Sf {
10285
10285
  /**
10286
10286
  Create a range.
10287
10287
  */
@@ -10469,11 +10469,11 @@ class at extends ve {
10469
10469
  return e instanceof at;
10470
10470
  }
10471
10471
  getBookmark() {
10472
- return Sf;
10472
+ return Tf;
10473
10473
  }
10474
10474
  }
10475
10475
  ve.jsonID("all", at);
10476
- const Sf = {
10476
+ const Tf = {
10477
10477
  map() {
10478
10478
  return this;
10479
10479
  },
@@ -10511,7 +10511,7 @@ function yo(r, e, t) {
10511
10511
  }), r.setSelection(ve.near(r.doc.resolve(o), t));
10512
10512
  }
10513
10513
  const bo = 1, xo = 2, Ao = 4;
10514
- class Tf extends vf {
10514
+ class Ff extends Cf {
10515
10515
  /**
10516
10516
  @internal
10517
10517
  */
@@ -10670,7 +10670,7 @@ class jt {
10670
10670
  this.name = e, this.init = Do(t.init, n), this.apply = Do(t.apply, n);
10671
10671
  }
10672
10672
  }
10673
- const Ff = [
10673
+ const Bf = [
10674
10674
  new jt("doc", {
10675
10675
  init(r) {
10676
10676
  return r.doc || r.schema.topNodeType.createAndFill();
@@ -10706,7 +10706,7 @@ const Ff = [
10706
10706
  ];
10707
10707
  class ii {
10708
10708
  constructor(e, t) {
10709
- this.schema = e, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = Ff.slice(), t && t.forEach((n) => {
10709
+ this.schema = e, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = Bf.slice(), t && t.forEach((n) => {
10710
10710
  if (this.pluginsByKey[n.key])
10711
10711
  throw new RangeError("Adding different instances of a keyed plugin (" + n.key + ")");
10712
10712
  this.plugins.push(n), this.pluginsByKey[n.key] = n, n.spec.state && this.fields.push(new jt(n.key, n.spec.state, n));
@@ -10799,7 +10799,7 @@ class Dt {
10799
10799
  Start a [transaction](https://prosemirror.net/docs/ref/#state.Transaction) from this state.
10800
10800
  */
10801
10801
  get tr() {
10802
- return new Tf(this);
10802
+ return new Ff(this);
10803
10803
  }
10804
10804
  /**
10805
10805
  Create a new state.
@@ -10878,10 +10878,10 @@ class Dt {
10878
10878
  }), s;
10879
10879
  }
10880
10880
  }
10881
- function Ka(r, e, t) {
10881
+ function $a(r, e, t) {
10882
10882
  for (let n in r) {
10883
10883
  let i = r[n];
10884
- i instanceof Function ? i = i.bind(e) : n == "handleDOMEvents" && (i = Ka(i, e, {})), t[n] = i;
10884
+ i instanceof Function ? i = i.bind(e) : n == "handleDOMEvents" && (i = $a(i, e, {})), t[n] = i;
10885
10885
  }
10886
10886
  return t;
10887
10887
  }
@@ -10890,7 +10890,7 @@ class pp {
10890
10890
  Create a plugin.
10891
10891
  */
10892
10892
  constructor(e) {
10893
- this.spec = e, this.props = {}, e.props && Ka(e.props, this, this.props), this.key = e.key ? e.key.key : $a("plugin");
10893
+ this.spec = e, this.props = {}, e.props && $a(e.props, this, this.props), this.key = e.key ? e.key.key : Xa("plugin");
10894
10894
  }
10895
10895
  /**
10896
10896
  Extract the plugin's state field from an editor state.
@@ -10900,7 +10900,7 @@ class pp {
10900
10900
  }
10901
10901
  }
10902
10902
  const si = /* @__PURE__ */ Object.create(null);
10903
- function $a(r) {
10903
+ function Xa(r) {
10904
10904
  return r in si ? r + "$" + ++si[r] : (si[r] = 0, r + "$");
10905
10905
  }
10906
10906
  class hp {
@@ -10908,7 +10908,7 @@ class hp {
10908
10908
  Create a plugin key.
10909
10909
  */
10910
10910
  constructor(e = "key") {
10911
- this.key = $a(e);
10911
+ this.key = Xa(e);
10912
10912
  }
10913
10913
  /**
10914
10914
  Get the active plugin with this key, if any, from an editor
@@ -10924,7 +10924,7 @@ class hp {
10924
10924
  return e[this.key];
10925
10925
  }
10926
10926
  }
10927
- const Xa = (r) => r.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), gp = (r) => Xa(r), wp = Object.freeze({
10927
+ const Ya = (r) => r.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), gp = (r) => Ya(r), wp = Object.freeze({
10928
10928
  RESOLVED: "resolved",
10929
10929
  NEW: "new",
10930
10930
  ADD: "add",
@@ -10968,11 +10968,11 @@ function ki(r) {
10968
10968
  if (r != null)
10969
10969
  return r / 240;
10970
10970
  }
10971
- function Ya(r) {
10971
+ function Qa(r) {
10972
10972
  if (r != null)
10973
10973
  return r * 240;
10974
10974
  }
10975
- function Bf(r) {
10975
+ function kf(r) {
10976
10976
  if (r != null)
10977
10977
  return Math.round(r / 2);
10978
10978
  }
@@ -10986,17 +10986,17 @@ function qt(r) {
10986
10986
  if (r != null)
10987
10987
  return typeof r == "string" && (r = parseFloat(r)), Math.round(r * 9525);
10988
10988
  }
10989
- function Qa(r) {
10989
+ function Za(r) {
10990
10990
  return r == null ? void 0 : parseFloat(r) / 8 * 1.3333;
10991
10991
  }
10992
- function Za(r) {
10992
+ function eu(r) {
10993
10993
  if (r != null)
10994
10994
  return Math.round(r * 6);
10995
10995
  }
10996
- const kf = async (r) => await (await fetch(r)).arrayBuffer(), bp = (r) => {
10996
+ const Nf = async (r) => await (await fetch(r)).arrayBuffer(), bp = (r) => {
10997
10997
  const n = new window.DOMParser().parseFromString(r, "text/xml").querySelectorAll("Default");
10998
10998
  return Array.from(n).map((i) => i.getAttribute("Extension"));
10999
- }, Nf = (r) => (/* @__PURE__ */ new Map([
10999
+ }, If = (r) => (/* @__PURE__ */ new Map([
11000
11000
  ["yellow", "#ffff00"],
11001
11001
  ["green", "#00ff00"],
11002
11002
  ["blue", "#0000FFFF"],
@@ -11013,7 +11013,7 @@ const kf = async (r) => await (await fetch(r)).arrayBuffer(), bp = (r) => {
11013
11013
  ["lightGray", "#C0C0C0FF"],
11014
11014
  ["black", "#000"]
11015
11015
  ])).get(r) || null;
11016
- function If(r) {
11016
+ function Rf(r) {
11017
11017
  if (!r || typeof r != "string") return !1;
11018
11018
  switch (r.length) {
11019
11019
  case 3:
@@ -11026,10 +11026,10 @@ function If(r) {
11026
11026
  return !1;
11027
11027
  }
11028
11028
  }
11029
- const Rf = (r) => {
11029
+ const Pf = (r) => {
11030
11030
  const e = Number(r).toString(16);
11031
11031
  return e.length === 1 ? "0" + e : e;
11032
- }, Pf = (r) => "#" + r.match(/\d+/g).map(Rf).join("");
11032
+ }, Of = (r) => "#" + r.match(/\d+/g).map(Pf).join("");
11033
11033
  function Ni(r = 8) {
11034
11034
  const e = "0123456789abcdef";
11035
11035
  let t = [];
@@ -11039,10 +11039,10 @@ function Ni(r = 8) {
11039
11039
  }
11040
11040
  return t.join("");
11041
11041
  }
11042
- function eu() {
11042
+ function tu() {
11043
11043
  return Math.floor(Math.random() * 2147483647).toString(16).toUpperCase().padStart(8, "0");
11044
11044
  }
11045
- const Of = {
11045
+ const Lf = {
11046
11046
  "xmlns:wpc": "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",
11047
11047
  "xmlns:cx": "http://schemas.microsoft.com/office/drawing/2014/chartex",
11048
11048
  "xmlns:cx1": "http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",
@@ -11079,7 +11079,7 @@ const Of = {
11079
11079
  "xmlns:wne": "http://schemas.microsoft.com/office/word/2006/wordml",
11080
11080
  "xmlns:wps": "http://schemas.microsoft.com/office/word/2010/wordprocessingShape",
11081
11081
  "mc:Ignorable": "w14 w15 w16se w16cid w16 w16cex w16sdtdh w16sdtfl w16du wp14"
11082
- }, Lf = {
11082
+ }, _f = {
11083
11083
  elements: [
11084
11084
  {
11085
11085
  type: "element",
@@ -11091,7 +11091,7 @@ const Of = {
11091
11091
  elements: []
11092
11092
  }
11093
11093
  ]
11094
- }, _f = {
11094
+ }, qf = {
11095
11095
  elements: [{
11096
11096
  type: "element",
11097
11097
  name: "w:settings",
@@ -11100,7 +11100,7 @@ const Of = {
11100
11100
  },
11101
11101
  elements: []
11102
11102
  }]
11103
- }, qf = {
11103
+ }, Mf = {
11104
11104
  type: "element",
11105
11105
  name: "w:r",
11106
11106
  elements: [
@@ -11776,7 +11776,7 @@ const Of = {
11776
11776
  }
11777
11777
  ]
11778
11778
  }
11779
- }, Mf = {
11779
+ }, Uf = {
11780
11780
  declaration: {
11781
11781
  attributes: {
11782
11782
  version: "1.0",
@@ -11829,7 +11829,7 @@ const Of = {
11829
11829
  elements: []
11830
11830
  }
11831
11831
  ]
11832
- }, Uf = {
11832
+ }, jf = {
11833
11833
  declaration: {
11834
11834
  attributes: {
11835
11835
  version: "1.0",
@@ -11882,7 +11882,7 @@ const Of = {
11882
11882
  elements: []
11883
11883
  }
11884
11884
  ]
11885
- }, jf = {
11885
+ }, Hf = {
11886
11886
  declaration: {
11887
11887
  attributes: {
11888
11888
  version: "1.0",
@@ -11936,7 +11936,7 @@ const Of = {
11936
11936
  elements: []
11937
11937
  }
11938
11938
  ]
11939
- }, Hf = {
11939
+ }, Vf = {
11940
11940
  declaration: {
11941
11941
  attributes: {
11942
11942
  version: "1.0",
@@ -11989,7 +11989,7 @@ const Of = {
11989
11989
  elements: []
11990
11990
  }
11991
11991
  ]
11992
- }, Vf = {
11992
+ }, zf = {
11993
11993
  elements: [
11994
11994
  {
11995
11995
  type: "element",
@@ -12091,7 +12091,7 @@ const Of = {
12091
12091
  ]
12092
12092
  }
12093
12093
  ]
12094
- }, zf = {
12094
+ }, Gf = {
12095
12095
  declaration: {
12096
12096
  attributes: {
12097
12097
  version: "1.0",
@@ -12239,12 +12239,12 @@ const Of = {
12239
12239
  }
12240
12240
  ]
12241
12241
  }, At = {
12242
- COMMENTS_XML_DEF: Mf,
12243
- COMMENTS_EXTENDED_XML_DEF: Uf,
12244
- COMMENTS_EXTENSIBLE_XML_DEF: jf,
12245
- COMMENTS_IDS_XML_DEF: Hf,
12246
- DOCUMENT_RELS_XML_DEF: Vf,
12247
- CONTENT_TYPES: zf
12242
+ COMMENTS_XML_DEF: Uf,
12243
+ COMMENTS_EXTENDED_XML_DEF: jf,
12244
+ COMMENTS_EXTENSIBLE_XML_DEF: Hf,
12245
+ COMMENTS_IDS_XML_DEF: Vf,
12246
+ DOCUMENT_RELS_XML_DEF: zf,
12247
+ CONTENT_TYPES: Gf
12248
12248
  }, yr = "trackInsert", Ii = "trackDelete", Ri = "trackFormat", je = (r) => {
12249
12249
  if (r)
12250
12250
  try {
@@ -12253,7 +12253,7 @@ const Of = {
12253
12253
  console.error("Error in carbonCopy", r, e);
12254
12254
  return;
12255
12255
  }
12256
- }, tu = {
12256
+ }, ru = {
12257
12257
  declaration: {
12258
12258
  attributes: {
12259
12259
  version: "1.0",
@@ -13503,7 +13503,7 @@ function vo(r, e) {
13503
13503
  u && (f = r.comments.find((S) => S.commentId === u || S.importedId === u));
13504
13504
  const c = f?.isInternal || o.isInternal;
13505
13505
  if (n === "external" && c || !!o.resolvedTime) return;
13506
- let g = Gf(e, a);
13506
+ let g = Wf(e, a);
13507
13507
  if (e === "End") {
13508
13508
  const S = {
13509
13509
  name: "w:r",
@@ -13513,21 +13513,21 @@ function vo(r, e) {
13513
13513
  }
13514
13514
  return g;
13515
13515
  }
13516
- const Gf = (r, e) => ({
13516
+ const Wf = (r, e) => ({
13517
13517
  name: `w:commentRange${r}`,
13518
13518
  attributes: {
13519
13519
  "w:id": String(e)
13520
13520
  }
13521
- }), Wf = (r) => ({
13521
+ }), Jf = (r) => ({
13522
13522
  ...r,
13523
- commentParaId: eu()
13524
- }), Jf = (r, e, t) => {
13525
- const n = nu({ node: r.commentJSON }), i = {
13523
+ commentParaId: tu()
13524
+ }), Kf = (r, e, t) => {
13525
+ const n = iu({ node: r.commentJSON }), i = {
13526
13526
  "w:id": String(e),
13527
13527
  "w:author": r.creatorName || r.importedAuthor?.name,
13528
13528
  "w:email": r.creatorEmail || r.importedAuthor?.email,
13529
- "w:date": ru(r.createdTime),
13530
- "w:initials": Kf(r.creatorName),
13529
+ "w:date": nu(r.createdTime),
13530
+ "w:initials": $f(r.creatorName),
13531
13531
  "w:done": r.resolvedTime ? "1" : "0",
13532
13532
  "w15:paraId": r.commentParaId,
13533
13533
  "custom:internalId": r.commentId || r.internalId,
@@ -13546,10 +13546,10 @@ const Gf = (r, e) => ({
13546
13546
  attributes: i,
13547
13547
  elements: [n]
13548
13548
  };
13549
- }, Kf = (r) => r ? r.replace("(imported)", "").trim().split(" ").map((n) => n[0]).join("") : null, ru = (r) => new Date(r || Date.now()).toISOString().replace(/\.\d{3}Z$/, "Z"), $f = (r = [], e) => {
13549
+ }, $f = (r) => r ? r.replace("(imported)", "").trim().split(" ").map((n) => n[0]).join("") : null, nu = (r) => new Date(r || Date.now()).toISOString().replace(/\.\d{3}Z$/, "Z"), Xf = (r = [], e) => {
13550
13550
  const t = je(e);
13551
13551
  return r.forEach((n) => {
13552
- n.elements[0].elements.unshift(qf);
13552
+ n.elements[0].elements.unshift(Mf);
13553
13553
  const s = n.attributes["w15:paraId"];
13554
13554
  n.elements[0].attributes["w14:paraId"] = s, n.attributes = {
13555
13555
  "w:id": n.attributes["w:id"],
@@ -13565,7 +13565,7 @@ const Gf = (r, e) => ({
13565
13565
  "xmlns:custom": "http://schemas.openxmlformats.org/wordprocessingml/2006/main"
13566
13566
  };
13567
13567
  }), t.elements[0].elements = r, t;
13568
- }, Xf = (r = [], e) => {
13568
+ }, Yf = (r = [], e) => {
13569
13569
  const t = je(e), n = r.map((i) => {
13570
13570
  const s = {
13571
13571
  "w15:paraId": i.commentParaId,
@@ -13582,10 +13582,10 @@ const Gf = (r, e) => ({
13582
13582
  };
13583
13583
  });
13584
13584
  return t.elements[0].elements = n, t;
13585
- }, Yf = (r = [], e, t) => {
13585
+ }, Qf = (r = [], e, t) => {
13586
13586
  const n = je(e), i = je(t);
13587
13587
  return n.elements[0].elements = [], i.elements[0].elements = [], r.forEach((s) => {
13588
- const o = eu(), a = {
13588
+ const o = tu(), a = {
13589
13589
  type: "element",
13590
13590
  name: "w16cid:commentId",
13591
13591
  attributes: {
@@ -13599,7 +13599,7 @@ const Gf = (r, e) => ({
13599
13599
  name: "w16cex:commentExtensible",
13600
13600
  attributes: {
13601
13601
  "w16cex:durableId": o,
13602
- "w16cex:dateUtc": ru()
13602
+ "w16cex:dateUtc": nu()
13603
13603
  }
13604
13604
  };
13605
13605
  i.elements[0].elements.push(u);
@@ -13607,13 +13607,13 @@ const Gf = (r, e) => ({
13607
13607
  documentIdsUpdated: n,
13608
13608
  extensibleUpdated: i
13609
13609
  };
13610
- }, Qf = (r) => {
13610
+ }, Zf = (r) => {
13611
13611
  const e = je(r);
13612
13612
  return e["word/comments.xml"] = At.COMMENTS_XML_DEF, e["word/commentsExtended.xml"] = At.COMMENTS_EXTENDED_XML_DEF, e["word/commentsExtensible.xml"] = At.COMMENTS_EXTENSIBLE_XML_DEF, e["word/commentsIds.xml"] = At.COMMENTS_IDS_XML_DEF, e["[Content_Types].xml"] = At.CONTENT_TYPES, e;
13613
- }, Zf = (r) => {
13613
+ }, ed = (r) => {
13614
13614
  const e = je(r);
13615
13615
  return delete e["word/comments.xml"], delete e["word/commentsExtended.xml"], delete e["word/commentsExtensible.xml"], delete e["word/commentsIds.xml"], e;
13616
- }, nr = (r) => ({ ...At.DOCUMENT_RELS_XML_DEF.elements[0].elements.find((n) => n.attributes.Target === r) }), ed = ({
13616
+ }, nr = (r) => ({ ...At.DOCUMENT_RELS_XML_DEF.elements[0].elements.find((n) => n.attributes.Target === r) }), td = ({
13617
13617
  convertedXml: r,
13618
13618
  defs: e,
13619
13619
  commentsWithParaIds: t,
@@ -13622,16 +13622,16 @@ const Gf = (r, e) => ({
13622
13622
  }) => {
13623
13623
  const s = [];
13624
13624
  if (n === "clean")
13625
- return { documentXml: Zf(r), relationships: s };
13626
- const o = Qf(r);
13627
- o["word/comments.xml"] = $f(
13625
+ return { documentXml: ed(r), relationships: s };
13626
+ const o = Zf(r);
13627
+ o["word/comments.xml"] = Xf(
13628
13628
  e,
13629
13629
  o["word/comments.xml"]
13630
- ), s.push(nr("comments.xml")), o["word/commentsExtended.xml"] = Xf(
13630
+ ), s.push(nr("comments.xml")), o["word/commentsExtended.xml"] = Yf(
13631
13631
  t,
13632
13632
  o["word/commentsExtended.xml"]
13633
13633
  ), s.push(nr("commentsExtended.xml"));
13634
- const { documentIdsUpdated: a, extensibleUpdated: u } = Yf(
13634
+ const { documentIdsUpdated: a, extensibleUpdated: u } = Qf(
13635
13635
  t,
13636
13636
  o["word/commentsIds.xml"],
13637
13637
  o["word/commentsExtensible.xml"]
@@ -13643,28 +13643,28 @@ const Gf = (r, e) => ({
13643
13643
  };
13644
13644
  function Pt(r) {
13645
13645
  const { type: e } = r.node || {}, t = {
13646
- doc: nd,
13647
- body: td,
13648
- paragraph: nu,
13649
- text: id,
13646
+ doc: id,
13647
+ body: rd,
13648
+ paragraph: iu,
13649
+ text: sd,
13650
13650
  bulletList: So,
13651
13651
  orderedList: So,
13652
- lineBreak: fd,
13653
- table: dd,
13654
- tableRow: yd,
13655
- tableCell: xd,
13656
- bookmarkStart: Ed,
13657
- fieldAnnotation: Nd,
13658
- tab: pd,
13659
- image: ou,
13660
- hardBreak: Id,
13652
+ lineBreak: dd,
13653
+ table: md,
13654
+ tableRow: bd,
13655
+ tableCell: Ad,
13656
+ bookmarkStart: vd,
13657
+ fieldAnnotation: Id,
13658
+ tab: hd,
13659
+ image: au,
13660
+ hardBreak: Rd,
13661
13661
  commentRangeStart: () => vo(r, "Start"),
13662
13662
  commentRangeEnd: () => vo(r, "End"),
13663
13663
  commentReference: () => null
13664
13664
  };
13665
13665
  return t[e] ? t[e](r) : (console.error("No translation function found for node type:", e), null);
13666
13666
  }
13667
- function td(r) {
13667
+ function rd(r) {
13668
13668
  const e = r.bodyNode?.elements.find((n) => n.name === "w:sectPr") || {};
13669
13669
  if (r.converter) {
13670
13670
  const n = r.converter.pageStyles.pageMargins, i = e.elements.find((o) => o.name === "w:pgMar"), { attributes: s } = i;
@@ -13678,11 +13678,11 @@ function td(r) {
13678
13678
  elements: [...Ot(r), e]
13679
13679
  };
13680
13680
  }
13681
- function nu(r) {
13681
+ function iu(r) {
13682
13682
  const e = Ot(r), t = e.find((s) => s.name === "htmlAnnotation");
13683
13683
  if (e.length === 1 && t)
13684
13684
  return t.elements;
13685
- const n = rd(r.node);
13685
+ const n = nd(r.node);
13686
13686
  n && e.unshift(n);
13687
13687
  let i = {};
13688
13688
  return r.node.attrs?.rsidRDefault && (i["w:rsidRDefault"] = r.node.attrs.rsidRDefault), {
@@ -13691,13 +13691,13 @@ function nu(r) {
13691
13691
  attributes: i
13692
13692
  };
13693
13693
  }
13694
- function rd(r) {
13694
+ function nd(r) {
13695
13695
  const { attrs: e = {} } = r, t = [], { styleId: n } = e;
13696
13696
  n && t.push({ name: "w:pStyle", attributes: { "w:val": n } });
13697
13697
  const { spacing: i, indent: s, textAlign: o, textIndent: a, marksAttrs: u, keepLines: f, keepNext: c } = e;
13698
13698
  if (i) {
13699
13699
  const { lineSpaceBefore: h, lineSpaceAfter: g, line: S, lineRule: T } = i, A = {};
13700
- h >= 0 && (A["w:before"] = Fe(h)), g >= 0 && (A["w:after"] = Fe(g)), S && (A["w:line"] = Ya(S)), A["w:lineRule"] = T || "auto";
13700
+ h >= 0 && (A["w:before"] = Fe(h)), g >= 0 && (A["w:after"] = Fe(g)), S && (A["w:line"] = Qa(S)), A["w:lineRule"] = T || "auto";
13701
13701
  const B = {
13702
13702
  name: "w:spacing",
13703
13703
  attributes: A
@@ -13729,7 +13729,7 @@ function rd(r) {
13729
13729
  t.push(h);
13730
13730
  }
13731
13731
  if (u) {
13732
- const h = Br(u), g = iu(h);
13732
+ const h = Br(u), g = su(h);
13733
13733
  t.push(g);
13734
13734
  }
13735
13735
  return f && t.push({
@@ -13743,7 +13743,7 @@ function rd(r) {
13743
13743
  elements: t
13744
13744
  } : null;
13745
13745
  }
13746
- function nd(r) {
13746
+ function id(r) {
13747
13747
  const e = {
13748
13748
  type: "body",
13749
13749
  content: r.node.content
@@ -13751,7 +13751,7 @@ function nd(r) {
13751
13751
  return [{
13752
13752
  name: "w:document",
13753
13753
  elements: [Pt({ ...r, node: e })],
13754
- attributes: Of
13754
+ attributes: Lf
13755
13755
  }, r];
13756
13756
  }
13757
13757
  function Ot(r) {
@@ -13771,14 +13771,14 @@ function Fr(r, e) {
13771
13771
  attributes: i
13772
13772
  }, s);
13773
13773
  }
13774
- function id(r) {
13774
+ function sd(r) {
13775
13775
  const { node: e } = r, t = [yr, Ii];
13776
- if (e.marks?.some((a) => t.includes(a.type))) return od(r);
13777
- if (e.marks?.some((a) => a.type === "link")) return ad(r);
13776
+ if (e.marks?.some((a) => t.includes(a.type))) return ad(r);
13777
+ if (e.marks?.some((a) => a.type === "link")) return ud(r);
13778
13778
  const { text: s, marks: o = [] } = e;
13779
13779
  return Fr(s, o);
13780
13780
  }
13781
- function sd(r) {
13781
+ function od(r) {
13782
13782
  const e = r.find((t) => t.type === Ri);
13783
13783
  if (e)
13784
13784
  return {
@@ -13793,8 +13793,8 @@ function sd(r) {
13793
13793
  elements: e.attrs.before.map((n) => Br([n])).filter((n) => n !== void 0)
13794
13794
  };
13795
13795
  }
13796
- function od(r) {
13797
- const { node: e } = r, t = e.marks, n = [yr, Ii, Ri], i = t.find((f) => n.includes(f.type)), s = i.type === yr, o = sd(t);
13796
+ function ad(r) {
13797
+ const { node: e } = r, t = e.marks, n = [yr, Ii, Ri], i = t.find((f) => n.includes(f.type)), s = i.type === yr, o = od(t);
13798
13798
  e.marks = t.filter((f) => !n.includes(f.type)), o && e.marks.push(o);
13799
13799
  const a = Pt({ ...r, node: e });
13800
13800
  if (!s) {
@@ -13815,12 +13815,12 @@ function od(r) {
13815
13815
  }
13816
13816
  function Pi(r, e) {
13817
13817
  const t = [r];
13818
- return e && e.length && t.unshift(iu(e)), {
13818
+ return e && e.length && t.unshift(su(e)), {
13819
13819
  name: "w:r",
13820
13820
  elements: t
13821
13821
  };
13822
13822
  }
13823
- function iu(r = []) {
13823
+ function su(r = []) {
13824
13824
  return {
13825
13825
  name: "w:rPr",
13826
13826
  elements: r.filter((e) => !!Object.keys(e).length)
@@ -13832,10 +13832,10 @@ function Br(r = []) {
13832
13832
  return To(i);
13833
13833
  }) : To(e));
13834
13834
  }
13835
- function ad(r) {
13835
+ function ud(r) {
13836
13836
  const { node: e } = r, t = e.marks.find((a) => a.type === "link"), n = t.attrs.href;
13837
13837
  let i = t.attrs.rId;
13838
- i || (i = su(r, n)), e.marks = e.marks.filter((a) => a.type !== "link");
13838
+ i || (i = ou(r, n)), e.marks = e.marks.filter((a) => a.type !== "link");
13839
13839
  const s = Pt({ ...r, node: e });
13840
13840
  return {
13841
13841
  name: "w:hyperlink",
@@ -13846,7 +13846,7 @@ function ad(r) {
13846
13846
  elements: [s]
13847
13847
  };
13848
13848
  }
13849
- function su(r, e) {
13849
+ function ou(r, e) {
13850
13850
  const t = "rId" + Ni();
13851
13851
  return (!r.relationships || !Array.isArray(r.relationships)) && (r.relationships = []), r.relationships.push({
13852
13852
  type: "element",
@@ -13872,9 +13872,9 @@ function Co(r, e) {
13872
13872
  return r.relationships.push(n), t;
13873
13873
  }
13874
13874
  function So(r) {
13875
- const { type: e } = r.node, t = cd(r), n = [];
13875
+ const { type: e } = r.node, t = fd(r), n = [];
13876
13876
  return t.forEach((i) => {
13877
- const { level: s, listType: o, pPrs: a, content: u, attrs: f = {} } = i, g = (i.attrs.numId || i.listId) ?? ud(r), S = ld(s, g, a);
13877
+ const { level: s, listType: o, pPrs: a, content: u, attrs: f = {} } = i, g = (i.attrs.numId || i.listId) ?? ld(r), S = cd(s, g, a);
13878
13878
  u.forEach((T, A) => {
13879
13879
  const B = Object.assign({}, T);
13880
13880
  B.attrs = {
@@ -13905,7 +13905,7 @@ function So(r) {
13905
13905
  });
13906
13906
  }), n;
13907
13907
  }
13908
- function ud({ abstractId: r, listId: e }) {
13908
+ function ld({ abstractId: r, listId: e }) {
13909
13909
  const t = {
13910
13910
  ...definition,
13911
13911
  attributes: {
@@ -13928,7 +13928,7 @@ function ud({ abstractId: r, listId: e }) {
13928
13928
  newNumDef: n
13929
13929
  };
13930
13930
  }
13931
- function ld(r, e, t = []) {
13931
+ function cd(r, e, t = []) {
13932
13932
  return {
13933
13933
  name: "w:pPr",
13934
13934
  type: "element",
@@ -13953,7 +13953,7 @@ function ld(r, e, t = []) {
13953
13953
  ]
13954
13954
  };
13955
13955
  }
13956
- function cd({ node: r }) {
13956
+ function fd({ node: r }) {
13957
13957
  const { content: e, attrs: t = {} } = r, { listId: n, syncId: i } = r.attrs || {}, s = r.attrs["list-style-type"], { attributes: o = {} } = t, a = o?.parentAttributes?.paragraphProperties?.elements?.filter((c) => c.name !== "w:numPr") || [], u = [];
13958
13958
  function f(c, h = 0) {
13959
13959
  !c || !c.length || c.forEach((g) => {
@@ -13974,22 +13974,22 @@ function cd({ node: r }) {
13974
13974
  }
13975
13975
  return f(e), u;
13976
13976
  }
13977
- function fd(r) {
13977
+ function dd(r) {
13978
13978
  const e = {}, { lineBreakType: t } = r.node?.attrs || {};
13979
13979
  return t && (e["w:type"] = t), {
13980
13980
  name: "w:br",
13981
13981
  attributes: e
13982
13982
  };
13983
13983
  }
13984
- function dd(r) {
13985
- r.node = md(r.node, r);
13986
- const e = Ot(r), t = hd(r.node), n = wd(r.node);
13984
+ function md(r) {
13985
+ r.node = pd(r.node, r);
13986
+ const e = Ot(r), t = gd(r.node), n = yd(r.node);
13987
13987
  return e.unshift(t), e.unshift(n), {
13988
13988
  name: "w:tbl",
13989
13989
  elements: e
13990
13990
  };
13991
13991
  }
13992
- function md(r, { editorSchema: e }) {
13992
+ function pd(r, { editorSchema: e }) {
13993
13993
  const { content: t } = r;
13994
13994
  for (let n = 0; n < t.length; n++) {
13995
13995
  const i = t[n];
@@ -14025,13 +14025,13 @@ function md(r, { editorSchema: e }) {
14025
14025
  }
14026
14026
  return r;
14027
14027
  }
14028
- function pd(r) {
14028
+ function hd(r) {
14029
14029
  const { marks: e = [] } = r.node, t = Br(e);
14030
14030
  return Pi({
14031
14031
  name: "w:tab"
14032
14032
  }, t);
14033
14033
  }
14034
- function hd(r) {
14034
+ function gd(r) {
14035
14035
  const e = [], { attrs: t } = r, { tableWidth: n, tableWidthType: i, tableStyleId: s, borders: o, tableIndent: a, tableLayout: u, tableCellSpacing: f } = t;
14036
14036
  if (s) {
14037
14037
  const c = {
@@ -14041,7 +14041,7 @@ function hd(r) {
14041
14041
  e.push(c);
14042
14042
  }
14043
14043
  if (o) {
14044
- const c = gd(r);
14044
+ const c = wd(r);
14045
14045
  e.push(c);
14046
14046
  }
14047
14047
  if (a) {
@@ -14076,7 +14076,7 @@ function hd(r) {
14076
14076
  elements: e
14077
14077
  };
14078
14078
  }
14079
- function gd(r) {
14079
+ function wd(r) {
14080
14080
  const { borders: e } = r.attrs, t = [];
14081
14081
  return e ? (["top", "bottom", "left", "right", "insideH", "insideV"].forEach((i) => {
14082
14082
  const s = e[i];
@@ -14086,7 +14086,7 @@ function gd(r) {
14086
14086
  "w:val": "nil"
14087
14087
  } : o = {
14088
14088
  "w:val": "single",
14089
- "w:sz": Za(s.size),
14089
+ "w:sz": eu(s.size),
14090
14090
  "w:space": s.space || 0,
14091
14091
  "w:color": s?.color?.substring(1) || "000000"
14092
14092
  };
@@ -14100,7 +14100,7 @@ function gd(r) {
14100
14100
  elements: t
14101
14101
  }) : void 0;
14102
14102
  }
14103
- function wd(r) {
14103
+ function yd(r) {
14104
14104
  const { gridColumnWidths: e } = r.attrs, t = [];
14105
14105
  return e?.forEach((n) => {
14106
14106
  t.push({
@@ -14112,14 +14112,14 @@ function wd(r) {
14112
14112
  elements: t
14113
14113
  };
14114
14114
  }
14115
- function yd(r) {
14116
- const e = Ot(r), t = bd(r.node);
14115
+ function bd(r) {
14116
+ const e = Ot(r), t = xd(r.node);
14117
14117
  return t.elements.length && e.unshift(t), {
14118
14118
  name: "w:tr",
14119
14119
  elements: e
14120
14120
  };
14121
14121
  }
14122
- function bd(r) {
14122
+ function xd(r) {
14123
14123
  const { attrs: e } = r, t = [], { rowHeight: n, rowHeightType: i } = e;
14124
14124
  if (n) {
14125
14125
  const s = { "w:val": Fe(n) };
@@ -14135,17 +14135,17 @@ function bd(r) {
14135
14135
  elements: t
14136
14136
  };
14137
14137
  }
14138
- function xd(r) {
14138
+ function Ad(r) {
14139
14139
  const e = Ot({
14140
14140
  ...r,
14141
14141
  tableCell: r.node
14142
- }), t = Ad(r.node);
14142
+ }), t = Dd(r.node);
14143
14143
  return e.unshift(t), {
14144
14144
  name: "w:tc",
14145
14145
  elements: e
14146
14146
  };
14147
14147
  }
14148
- function Ad(r) {
14148
+ function Dd(r) {
14149
14149
  const e = [], { attrs: t } = r, { colwidth: n = [], cellWidthType: i = "dxa", background: s = {}, colspan: o, rowspan: a, widthUnit: u } = t, f = n.reduce((A, B) => A + B, 0), c = {
14150
14150
  name: "w:tcW",
14151
14151
  attributes: { "w:w": u === "px" ? Fe(f) : wt(f), "w:type": i }
@@ -14169,7 +14169,7 @@ function Ad(r) {
14169
14169
  if (g) {
14170
14170
  const A = {
14171
14171
  name: "w:tcMar",
14172
- elements: Dd(g)
14172
+ elements: Ed(g)
14173
14173
  };
14174
14174
  e.push(A);
14175
14175
  }
@@ -14204,7 +14204,7 @@ function Ad(r) {
14204
14204
  attributes: {
14205
14205
  "w:val": "single",
14206
14206
  "w:color": w.color ? w.color.substring(1) : "auto",
14207
- "w:sz": Za(w.size),
14207
+ "w:sz": eu(w.size),
14208
14208
  "w:space": w.space || 0
14209
14209
  }
14210
14210
  } : {
@@ -14221,11 +14221,11 @@ function Ad(r) {
14221
14221
  elements: e
14222
14222
  };
14223
14223
  }
14224
- function Dd(r) {
14224
+ function Ed(r) {
14225
14225
  const e = [], { top: t, right: n, bottom: i, left: s } = r;
14226
14226
  return t != null && e.push({ name: "w:top", attributes: { "w:w": Fe(t) } }), n != null && e.push({ name: "w:right", attributes: { "w:w": Fe(n) } }), i != null && e.push({ name: "w:bottom", attributes: { "w:w": Fe(i) } }), s != null && e.push({ name: "w:left", attributes: { "w:w": Fe(s) } }), e;
14227
14227
  }
14228
- function Ed(r) {
14228
+ function vd(r) {
14229
14229
  const e = {
14230
14230
  name: "w:bookmarkStart",
14231
14231
  attributes: {
@@ -14264,7 +14264,7 @@ function To(r) {
14264
14264
  break;
14265
14265
  case "color":
14266
14266
  let s = n.color.replace(/^#/, "").replace(/;$/, "");
14267
- s.startsWith("rgb") && (s = Pf(s)), t.attributes["w:val"] = s;
14267
+ s.startsWith("rgb") && (s = Of(s)), t.attributes["w:val"] = s;
14268
14268
  break;
14269
14269
  case "textAlign":
14270
14270
  t.attributes["w:val"] = n.textAlign;
@@ -14273,7 +14273,7 @@ function To(r) {
14273
14273
  t.attributes["w:firstline"] = wt(n.textIndent);
14274
14274
  break;
14275
14275
  case "lineHeight":
14276
- t.attributes["w:line"] = Ya(n.lineHeight);
14276
+ t.attributes["w:line"] = Qa(n.lineHeight);
14277
14277
  break;
14278
14278
  case "highlight":
14279
14279
  t.attributes["w:fill"] = n.color?.substring(1), t.attributes["w:color"] = "auto", t.attributes["w:val"] = "clear", t.name = "w:shd";
@@ -14281,7 +14281,7 @@ function To(r) {
14281
14281
  }
14282
14282
  return t;
14283
14283
  }
14284
- function vd(r) {
14284
+ function Cd(r) {
14285
14285
  if (!r) return {};
14286
14286
  const e = r.split(";")[0].split("/")[1];
14287
14287
  if (!r || e !== "png")
@@ -14295,30 +14295,30 @@ function vd(r) {
14295
14295
  originalHeight: i.getInt32(20)
14296
14296
  };
14297
14297
  }
14298
- function Cd(r, e, t, n) {
14298
+ function Sd(r, e, t, n) {
14299
14299
  let i = r, s = e, o = Math.min(t / r, n / e);
14300
14300
  return i = Math.round(i * o), s = Math.round(s * o), { scaledWidth: i, scaledHeight: s };
14301
14301
  }
14302
- function ou(r, e) {
14302
+ function au(r, e) {
14303
14303
  const {
14304
14304
  node: { attrs: t = {}, marks: n = [] },
14305
14305
  tableCell: i
14306
14306
  } = r;
14307
14307
  let s = t.rId;
14308
- const o = t.src || t.imageSrc, { originalWidth: a, originalHeight: u } = vd(o);
14308
+ const o = t.src || t.imageSrc, { originalWidth: a, originalHeight: u } = Cd(o);
14309
14309
  let f = t.size ? {
14310
14310
  w: qt(t.size.width),
14311
14311
  h: qt(t.size.height)
14312
14312
  } : e;
14313
14313
  if (a && u) {
14314
- const S = $e(f.w), T = $e(f.h), { scaledWidth: A, scaledHeight: B } = Cd(a, u, S, T);
14314
+ const S = $e(f.w), T = $e(f.h), { scaledWidth: A, scaledHeight: B } = Sd(a, u, S, T);
14315
14315
  f = {
14316
14316
  w: qt(A),
14317
14317
  h: qt(B)
14318
14318
  };
14319
14319
  }
14320
14320
  if (i) {
14321
- const S = i.attrs.colwidth.reduce((R, C) => R + C, 0), T = i.attrs.cellMargins?.left || 8, A = i.attrs.cellMargins?.right || 8, B = qt(S - (T + A)), { width: w, height: k } = Rd(f.w, f.h, B);
14321
+ const S = i.attrs.colwidth.reduce((R, C) => R + C, 0), T = i.attrs.cellMargins?.left || 8, A = i.attrs.cellMargins?.right || 8, B = qt(S - (T + A)), { width: w, height: k } = Pd(f.w, f.h, B);
14322
14322
  w && k && (f = { w, h: k });
14323
14323
  }
14324
14324
  if (r.node.type === "image" && !s) {
@@ -14327,7 +14327,7 @@ function ou(r, e) {
14327
14327
  } else if (r.node.type === "fieldAnnotation" && !s) {
14328
14328
  const S = o?.split(";")[0].split("/")[1];
14329
14329
  if (!S)
14330
- return au(r);
14330
+ return uu(r);
14331
14331
  const T = Ni(4), A = t.fieldId.replace("-", "_"), B = `media/${A}_${T}.${S}`;
14332
14332
  s = Co(r, B), r.media[`${A}_${T}.${S}`] = o;
14333
14333
  }
@@ -14482,19 +14482,19 @@ function ou(r, e) {
14482
14482
  []
14483
14483
  );
14484
14484
  }
14485
- function au(r) {
14485
+ function uu(r) {
14486
14486
  const {
14487
14487
  node: { attrs: e = {}, marks: t = [] }
14488
- } = r, n = kd(e);
14488
+ } = r, n = Nd(e);
14489
14489
  return Fr(e.displayLabel, [...t, ...n]);
14490
14490
  }
14491
- function Sd(r) {
14491
+ function Td(r) {
14492
14492
  const {
14493
14493
  node: { attrs: e = {}, marks: t = [] }
14494
- } = r, n = Bc.decode(e.displayLabel);
14494
+ } = r, n = kc.decode(e.displayLabel);
14495
14495
  return Fr(n, t);
14496
14496
  }
14497
- function Td(r) {
14497
+ function Fd(r) {
14498
14498
  const {
14499
14499
  node: { attrs: e = {} }
14500
14500
  } = r, n = new window.DOMParser().parseFromString(e.rawHtml, "text/html"), s = Dt.create({
@@ -14508,12 +14508,12 @@ function Td(r) {
14508
14508
  };
14509
14509
  }
14510
14510
  function Fo(r, e) {
14511
- return ou(r, e);
14511
+ return au(r, e);
14512
14512
  }
14513
- function Fd(r) {
14513
+ function Bd(r) {
14514
14514
  const {
14515
14515
  node: { attrs: e = {}, marks: t = [] }
14516
- } = r, n = su(r, e.linkUrl), i = Fr(e.linkUrl, t);
14516
+ } = r, n = ou(r, e.linkUrl), i = Fr(e.linkUrl, t);
14517
14517
  return {
14518
14518
  name: "w:hyperlink",
14519
14519
  type: "element",
@@ -14524,7 +14524,7 @@ function Fd(r) {
14524
14524
  elements: [i]
14525
14525
  };
14526
14526
  }
14527
- function Bd(r) {
14527
+ function kd(r) {
14528
14528
  const e = {
14529
14529
  w: 4286250,
14530
14530
  h: 4286250
@@ -14533,15 +14533,15 @@ function Bd(r) {
14533
14533
  h: 495e3
14534
14534
  };
14535
14535
  return {
14536
- text: au,
14536
+ text: uu,
14537
14537
  image: (i) => Fo(i, e),
14538
14538
  signature: (i) => Fo(i, t),
14539
- checkbox: Sd,
14540
- html: Td,
14541
- link: Fd
14539
+ checkbox: Td,
14540
+ html: Fd,
14541
+ link: Bd
14542
14542
  }[r];
14543
14543
  }
14544
- const kd = (r = {}) => {
14544
+ const Nd = (r = {}) => {
14545
14545
  const {
14546
14546
  fontFamily: e,
14547
14547
  fontSize: t,
@@ -14551,8 +14551,8 @@ const kd = (r = {}) => {
14551
14551
  } = r, o = [];
14552
14552
  return e && o.push({ type: "fontFamily", attrs: { fontFamily: e } }), t && o.push({ type: "fontSize", attrs: { fontSize: t } }), n && o.push({ type: "bold", attrs: {} }), i && o.push({ type: "underline", attrs: {} }), s && o.push({ type: "italic", attrs: {} }), o;
14553
14553
  };
14554
- function Nd(r) {
14555
- const { node: e, isFinalDoc: t } = r, { attrs: n = {} } = e, i = Bd(n.type);
14554
+ function Id(r) {
14555
+ const { node: e, isFinalDoc: t } = r, { attrs: n = {} } = e, i = kd(n.type);
14556
14556
  if (!i) return {};
14557
14557
  let s, o;
14558
14558
  if (t)
@@ -14604,7 +14604,7 @@ function Nd(r) {
14604
14604
  ]
14605
14605
  };
14606
14606
  }
14607
- function Id() {
14607
+ function Rd() {
14608
14608
  return {
14609
14609
  name: "w:r",
14610
14610
  elements: [{
@@ -14614,17 +14614,17 @@ function Id() {
14614
14614
  }]
14615
14615
  };
14616
14616
  }
14617
- var nt, uu, mi, pi;
14617
+ var nt, lu, mi, pi;
14618
14618
  class Bo {
14619
14619
  constructor(e) {
14620
14620
  Nr(this, nt);
14621
14621
  this.converter = e;
14622
14622
  }
14623
14623
  schemaToXml(e, t = !1) {
14624
- return Ke(this, nt, uu).call(this, e, t).join("");
14624
+ return Ke(this, nt, lu).call(this, e, t).join("");
14625
14625
  }
14626
14626
  }
14627
- nt = new WeakSet(), uu = function(e, t = falase) {
14627
+ nt = new WeakSet(), lu = function(e, t = falase) {
14628
14628
  const n = JSON.parse(JSON.stringify(e)), i = this.converter.declaration.attributes, s = `<?xml${Object.entries(i).map(([u, f]) => ` ${u}="${f}"`).join("")}?>`, o = Ke(this, nt, pi).call(this, n, t);
14629
14629
  return [s, ...o];
14630
14630
  }, mi = function(e) {
@@ -14656,29 +14656,29 @@ nt = new WeakSet(), uu = function(e, t = falase) {
14656
14656
  }
14657
14657
  return a || u.push(`</${n}>`), u;
14658
14658
  };
14659
- function Rd(r, e, t) {
14659
+ function Pd(r, e, t) {
14660
14660
  if (r > t) {
14661
14661
  let n = t / r, i = Math.round(e * n);
14662
14662
  return { width: t, height: i };
14663
14663
  }
14664
14664
  return { width: r, height: e };
14665
14665
  }
14666
- const Pd = '<w:document xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" xmlns:cx1="http://schemas.microsoft.com/office/drawing/2015/9/8/chartex" xmlns:cx2="http://schemas.microsoft.com/office/drawing/2015/10/21/chartex" xmlns:cx3="http://schemas.microsoft.com/office/drawing/2016/5/9/chartex" xmlns:cx4="http://schemas.microsoft.com/office/drawing/2016/5/10/chartex" xmlns:cx5="http://schemas.microsoft.com/office/drawing/2016/5/11/chartex" xmlns:cx6="http://schemas.microsoft.com/office/drawing/2016/5/12/chartex" xmlns:cx7="http://schemas.microsoft.com/office/drawing/2016/5/13/chartex" xmlns:cx8="http://schemas.microsoft.com/office/drawing/2016/5/14/chartex" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:aink="http://schemas.microsoft.com/office/drawing/2016/ink" xmlns:am3d="http://schemas.microsoft.com/office/drawing/2017/model3d" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:oel="http://schemas.microsoft.com/office/2019/extlst" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16sdtdh="http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex w16sdtdh wp14"><w:body></w:body></w:document>', Od = (r) => JSON.parse(wa.xml2json(r, null, 2)), Ld = (r, e = Pd) => r["word/document.xml"] || Od(e), _d = (r) => {
14666
+ const Od = '<w:document xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" xmlns:cx1="http://schemas.microsoft.com/office/drawing/2015/9/8/chartex" xmlns:cx2="http://schemas.microsoft.com/office/drawing/2015/10/21/chartex" xmlns:cx3="http://schemas.microsoft.com/office/drawing/2016/5/9/chartex" xmlns:cx4="http://schemas.microsoft.com/office/drawing/2016/5/10/chartex" xmlns:cx5="http://schemas.microsoft.com/office/drawing/2016/5/11/chartex" xmlns:cx6="http://schemas.microsoft.com/office/drawing/2016/5/12/chartex" xmlns:cx7="http://schemas.microsoft.com/office/drawing/2016/5/13/chartex" xmlns:cx8="http://schemas.microsoft.com/office/drawing/2016/5/14/chartex" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:aink="http://schemas.microsoft.com/office/drawing/2016/ink" xmlns:am3d="http://schemas.microsoft.com/office/drawing/2017/model3d" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:oel="http://schemas.microsoft.com/office/2019/extlst" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16sdtdh="http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex w16sdtdh wp14"><w:body></w:body></w:document>', Ld = (r) => JSON.parse(ya.xml2json(r, null, 2)), _d = (r, e = Od) => r["word/document.xml"] || Ld(e), qd = (r) => {
14667
14667
  const { nodes: e } = r;
14668
14668
  if (e.length === 0)
14669
14669
  return { nodes: [], consumed: 0 };
14670
14670
  const t = e[0];
14671
14671
  switch (t.name) {
14672
14672
  case "w:tbl":
14673
- return { nodes: [Md(t, r)], consumed: 1 };
14673
+ return { nodes: [Ud(t, r)], consumed: 1 };
14674
14674
  }
14675
14675
  return { nodes: [], consumed: 0 };
14676
- }, qd = {
14676
+ }, Md = {
14677
14677
  handlerName: "tableNodeHandler",
14678
- handler: _d
14678
+ handler: qd
14679
14679
  };
14680
- function Md(r, e) {
14681
- const { docx: t, nodeListHandler: n } = e, i = r.elements.find((F) => F.name === "w:tblPr"), o = i.elements.find((F) => F.name === "w:tblBorders")?.elements || [], { borders: a, rowBorders: u } = cu(o), f = i.elements.find((F) => F.name === "w:tblStyle"), h = { tableStyleId: f?.attributes["w:val"] }, g = i?.elements.find((F) => F.name === "w:tblInd");
14680
+ function Ud(r, e) {
14681
+ const { docx: t, nodeListHandler: n } = e, i = r.elements.find((F) => F.name === "w:tblPr"), o = i.elements.find((F) => F.name === "w:tblBorders")?.elements || [], { borders: a, rowBorders: u } = fu(o), f = i.elements.find((F) => F.name === "w:tblStyle"), h = { tableStyleId: f?.attributes["w:val"] }, g = i?.elements.find((F) => F.name === "w:tblInd");
14682
14682
  if (g) {
14683
14683
  const { "w:w": F, "w:type": N } = g.attributes;
14684
14684
  h.tableIndent = { width: xe(F), type: N };
@@ -14688,7 +14688,7 @@ function Md(r, e) {
14688
14688
  const { "w:type": F } = S.attributes;
14689
14689
  h.tableLayout = F;
14690
14690
  }
14691
- const T = lu(f, t), A = i.elements.find((F) => F.name === "w:tblW");
14691
+ const T = cu(f, t), A = i.elements.find((F) => F.name === "w:tblW");
14692
14692
  A && (h.tableWidth = {
14693
14693
  width: xe(A.attributes["w:w"]),
14694
14694
  type: A.attributes["w:type"]
@@ -14702,7 +14702,7 @@ function Md(r, e) {
14702
14702
  h.borders = k;
14703
14703
  const C = [];
14704
14704
  return w.forEach((F) => {
14705
- const N = Hd(F, r, R, f, e);
14705
+ const N = Vd(F, r, R, f, e);
14706
14706
  N.content?.length && C.push(N);
14707
14707
  }), {
14708
14708
  type: "table",
@@ -14710,17 +14710,17 @@ function Md(r, e) {
14710
14710
  attrs: h
14711
14711
  };
14712
14712
  }
14713
- function Ud(r, e, t, n, i = null, s, o) {
14714
- const { docx: a, nodeListHandler: u } = o, f = r.elements.find((X) => X.name === "w:tcPr"), c = f?.elements?.find((X) => X.name === "w:tcBorders"), h = jd(c, n);
14715
- fu(t);
14713
+ function jd(r, e, t, n, i = null, s, o) {
14714
+ const { docx: a, nodeListHandler: u } = o, f = r.elements.find((X) => X.name === "w:tcPr"), c = f?.elements?.find((X) => X.name === "w:tcBorders"), h = Hd(c, n);
14715
+ du(t);
14716
14716
  const g = f?.elements?.find((X) => X.name === "w:tcW");
14717
14717
  let S = g ? xe(g.attributes["w:w"]) : null;
14718
14718
  const T = g?.attributes["w:type"];
14719
14719
  !S && i && (S = i);
14720
14720
  const A = ko(r), { attributes: B } = A || {}, k = {
14721
14721
  color: f?.elements?.find((X) => X.name === "w:shd")?.attributes["w:fill"]
14722
- }, C = f?.elements?.find((X) => X.name === "w:gridSpan")?.attributes["w:val"], F = f?.elements?.find((X) => X.name === "w:tcMar"), M = f?.elements?.find((X) => X.name === "w:vAlign")?.attributes["w:val"] || "top", q = {}, D = lu(s, a) || {};
14723
- q.cellMargins = Vd(F, D);
14722
+ }, C = f?.elements?.find((X) => X.name === "w:gridSpan")?.attributes["w:val"], F = f?.elements?.find((X) => X.name === "w:tcMar"), M = f?.elements?.find((X) => X.name === "w:vAlign")?.attributes["w:val"] || "top", q = {}, D = cu(s, a) || {};
14723
+ q.cellMargins = zd(F, D);
14724
14724
  const { fontSize: $, fonts: ie = {} } = D, ee = ie.ascii;
14725
14725
  if (S && (q.colwidth = [S], q.widthUnit = "px"), T && (q.widthType = T), C && (q.colspan = Number(C)), k && (q.background = k), q.verticalAlign = M, $ && (q.fontSize = $), ee && (q.fontFamily = ee.ascii), n && (q.borders = { ...n }), h && (q.borders = Object.assign(q.borders || {}, h)), B && B["w:val"] === "restart") {
14726
14726
  const X = t.elements.filter((J) => J.name === "w:tr"), ce = X.findIndex((J) => J === e), he = X.slice(ce + 1);
@@ -14747,14 +14747,14 @@ const ko = (r) => r.elements.find((n) => n.name === "w:tcPr")?.elements?.find((n
14747
14747
  const i = {}, s = n["w:color"];
14748
14748
  s && (i.color = s === "auto" ? "#000000" : `#${s}`);
14749
14749
  const o = n["w:sz"];
14750
- return o && (i.size = Qa(o)), i;
14750
+ return o && (i.size = Za(o)), i;
14751
14751
  }
14752
14752
  if (n && n["w:val"] === "nil") {
14753
14753
  const i = Object.assign({}, t[e] || {});
14754
14754
  return Object.keys(i) ? (i.val = "none", i) : null;
14755
14755
  }
14756
14756
  return null;
14757
- }, jd = (r, e) => {
14757
+ }, Hd = (r, e) => {
14758
14758
  if (!r) return null;
14759
14759
  const t = {}, n = ir(r, "bottom", e);
14760
14760
  n && (t.bottom = n);
@@ -14765,7 +14765,7 @@ const ko = (r) => r.elements.find((n) => n.name === "w:tcPr")?.elements?.find((n
14765
14765
  const o = ir(r, "right", e);
14766
14766
  return o && (t.right = o), t;
14767
14767
  };
14768
- function lu(r, e, t) {
14768
+ function cu(r, e, t) {
14769
14769
  if (!r) return null;
14770
14770
  const n = {}, { attributes: i = {} } = r, s = i["w:val"];
14771
14771
  if (!s) return null;
@@ -14792,12 +14792,12 @@ function lu(r, e, t) {
14792
14792
  n.fonts = { ascii: w, hAnsi: k, cs: R };
14793
14793
  }
14794
14794
  const B = S.elements.find((w) => w.name === "w:sz");
14795
- B?.attributes && (n.fontSize = Bf(B.attributes["w:val"]) + "pt");
14795
+ B?.attributes && (n.fontSize = kf(B.attributes["w:val"]) + "pt");
14796
14796
  }
14797
14797
  const T = f.elements.find((A) => A.name === "w:tblPr");
14798
14798
  if (T && T.elements) {
14799
14799
  h && h.elements && T.elements.push(...h.elements);
14800
- const A = T?.elements?.find((C) => C.name === "w:tblBorders"), { elements: B = [] } = A || {}, { borders: w, rowBorders: k } = cu(B);
14800
+ const A = T?.elements?.find((C) => C.name === "w:tblBorders"), { elements: B = [] } = A || {}, { borders: w, rowBorders: k } = fu(B);
14801
14801
  w && (n.borders = w), k && (n.rowBorders = k);
14802
14802
  const R = T?.elements.find((C) => C.name === "w:tblCellMar");
14803
14803
  if (R) {
@@ -14812,32 +14812,32 @@ function lu(r, e, t) {
14812
14812
  }
14813
14813
  return n;
14814
14814
  }
14815
- function cu(r) {
14815
+ function fu(r) {
14816
14816
  const e = {}, t = {};
14817
14817
  return r.forEach((n) => {
14818
14818
  const { name: i } = n, s = i.split("w:")[1], { attributes: o } = n, a = {}, u = o["w:color"], f = o["w:sz"];
14819
- u && u !== "auto" && (a.color = u.startsWith("#") ? u : `#${u}`), f && f !== "auto" && (a.size = Qa(f)), ["insideH", "insideV"].includes(s) && (t[s] = a), e[s] = a;
14819
+ u && u !== "auto" && (a.color = u.startsWith("#") ? u : `#${u}`), f && f !== "auto" && (a.size = Za(f)), ["insideH", "insideV"].includes(s) && (t[s] = a), e[s] = a;
14820
14820
  }), {
14821
14821
  borders: e,
14822
14822
  rowBorders: t
14823
14823
  };
14824
14824
  }
14825
- function Hd(r, e, t, n, i) {
14825
+ function Vd(r, e, t, n, i) {
14826
14826
  const s = {}, a = r.elements.find((T) => T.name === "w:trPr")?.elements?.find((T) => T.name === "w:trHeight"), u = a?.attributes["w:val"];
14827
14827
  a?.attributes["w:hRule"];
14828
14828
  const f = {};
14829
14829
  t?.insideH && (f.bottom = t.insideH), t?.insideV && (f.right = t.insideV), s.borders = f, u && (s.rowHeight = xe(u));
14830
- const c = fu(e), h = r.elements.filter((T) => T.name === "w:tc");
14830
+ const c = du(e), h = r.elements.filter((T) => T.name === "w:tc");
14831
14831
  return {
14832
14832
  type: "tableRow",
14833
14833
  content: h?.map((T, A) => {
14834
14834
  const B = h.length > 1 ? c[A] : null;
14835
- return Ud(T, r, e, f, B, n, i);
14835
+ return jd(T, r, e, f, B, n, i);
14836
14836
  }) || [],
14837
14837
  attrs: s
14838
14838
  };
14839
14839
  }
14840
- const Vd = (r, e) => {
14840
+ const zd = (r, e) => {
14841
14841
  const t = r?.elements?.find((B) => B.name === "w:left"), n = r?.elements?.find((B) => B.name === "w:right"), i = r?.elements?.find((B) => B.name === "w:top"), s = r?.elements?.find((B) => B.name === "w:bottom"), o = t?.attributes["w:w"], a = n?.attributes["w:w"], u = i?.attributes["w:w"], f = s?.attributes["w:w"], { cellMargins: c = {} } = e, {
14842
14842
  marginLeft: h,
14843
14843
  marginRight: g,
@@ -14850,7 +14850,7 @@ const Vd = (r, e) => {
14850
14850
  top: xe(u ?? S),
14851
14851
  bottom: xe(f ?? T)
14852
14852
  };
14853
- }, fu = (r) => r.elements.find((t) => t.name === "w:tblGrid")?.elements?.flatMap((t) => t.name !== "w:gridCol" ? [] : xe(t.attributes["w:w"])) || {}, zd = (r) => {
14853
+ }, du = (r) => r.elements.find((t) => t.name === "w:tblGrid")?.elements?.flatMap((t) => t.name !== "w:gridCol" ? [] : xe(t.attributes["w:w"])) || {}, Gd = (r) => {
14854
14854
  const { nodes: e, filename: t } = r;
14855
14855
  if (e.length === 0 || e[0].name !== "w:drawing")
14856
14856
  return { nodes: [], consumed: 0 };
@@ -14898,9 +14898,9 @@ function No(r, e, t) {
14898
14898
  }
14899
14899
  };
14900
14900
  }
14901
- const Gd = {
14901
+ const Wd = {
14902
14902
  handlerName: "drawingNodeHandler",
14903
- handler: zd
14903
+ handler: Gd
14904
14904
  };
14905
14905
  function Bt(r, e = [], t = null) {
14906
14906
  const n = [], i = /* @__PURE__ */ new Set();
@@ -14925,7 +14925,7 @@ function Bt(r, e = [], t = null) {
14925
14925
  const { attributes: u = {} } = s, f = { type: a.type };
14926
14926
  if (!(u["w:val"] == "0" || u["w:val"] === "none")) {
14927
14927
  if (a.mark && (f.type = a.mark), Object.keys(u).length) {
14928
- const c = Jd(a.type, u, t);
14928
+ const c = Kd(a.type, u, t);
14929
14929
  if (c == null) return;
14930
14930
  f.attrs = {}, f.attrs[a.property] = c;
14931
14931
  }
@@ -14934,7 +14934,7 @@ function Bt(r, e = [], t = null) {
14934
14934
  });
14935
14935
  }), hi(n);
14936
14936
  }
14937
- function Wd(r, e) {
14937
+ function Jd(r, e) {
14938
14938
  const t = r.elements?.find((o) => o.name === "w:rPrChange");
14939
14939
  if (!t)
14940
14940
  return [];
@@ -14955,25 +14955,25 @@ function hi(r) {
14955
14955
  });
14956
14956
  }), [...t, { type: "textStyle", attrs: n }];
14957
14957
  }
14958
- function Jd(r, e, t) {
14958
+ function Kd(r, e, t) {
14959
14959
  r === "tabs" && (r = "textIndent");
14960
14960
  const n = {
14961
14961
  color: () => `#${e["w:val"]}`,
14962
14962
  fontSize: () => `${e["w:val"] / 2}pt`,
14963
- textIndent: () => $d(e),
14964
- fontFamily: () => Kd(e, t),
14965
- lineHeight: () => Xd(e),
14963
+ textIndent: () => Xd(e),
14964
+ fontFamily: () => $d(e, t),
14965
+ lineHeight: () => Yd(e),
14966
14966
  textAlign: () => e["w:val"],
14967
14967
  link: () => e.href,
14968
14968
  underline: () => e["w:val"],
14969
14969
  bold: () => e?.["w:val"] || null,
14970
14970
  italic: () => e?.["w:val"] || null,
14971
- highlight: () => Yd(e)
14971
+ highlight: () => Qd(e)
14972
14972
  };
14973
14973
  if (r in n || console.debug("❗️❗️ No value mapper for:", r, "Attributes:", e), r in n)
14974
14974
  return n[r], n[r]();
14975
14975
  }
14976
- function Kd(r, e) {
14976
+ function $d(r, e) {
14977
14977
  const t = r["w:ascii"], n = r["w:asciiTheme"];
14978
14978
  if (!e || !n) return t;
14979
14979
  const i = e["word/theme/theme1.xml"];
@@ -14981,20 +14981,20 @@ function Kd(r, e) {
14981
14981
  const { elements: s } = i, { elements: o } = s[0];
14982
14982
  return o.find((g) => g.name === "a:themeElements").elements.find((g) => g.name === "a:fontScheme").elements.find((g) => g.name === "a:majorFont").elements.find((g) => g.name === "a:latin").attributes.typeface;
14983
14983
  }
14984
- function $d(r) {
14984
+ function Xd(r) {
14985
14985
  let e = r["w:left"];
14986
14986
  return e ? `${qe(e)}in` : null;
14987
14987
  }
14988
- function Xd(r) {
14988
+ function Yd(r) {
14989
14989
  let e = r["w:line"];
14990
14990
  return !e || e === "0" ? null : `${ki(e)}`;
14991
14991
  }
14992
- function Yd(r) {
14993
- return r["w:fill"] ? `#${r["w:fill"]}` : If(r?.["w:val"]) ? `#${r["w:val"]}` : Nf(r?.["w:val"]) || null;
14992
+ function Qd(r) {
14993
+ return r["w:fill"] ? `#${r["w:fill"]}` : Rf(r?.["w:val"]) ? `#${r["w:val"]}` : If(r?.["w:val"]) || null;
14994
14994
  }
14995
14995
  function Lt(r, e) {
14996
- const t = [], n = [], { attributes: i = {}, elements: s = [] } = r, { nodes: o, paragraphProperties: a = {}, runProperties: u = {} } = Qd(s);
14997
- return s.find((c) => c.name === "w:r") && (a.elements = a?.elements?.filter((c) => c.name !== "w:rPr")), u && u?.elements?.length && t.push(...Bt(u, n)), a && a.elements?.length && t.push(...Bt(a, n)), t.push(...Wd(u, t)), a && a.elements?.length && (i.paragraphProperties = a), t && r.name === "w:p" && t.forEach((c) => {
14996
+ const t = [], n = [], { attributes: i = {}, elements: s = [] } = r, { nodes: o, paragraphProperties: a = {}, runProperties: u = {} } = Zd(s);
14997
+ return s.find((c) => c.name === "w:r") && (a.elements = a?.elements?.filter((c) => c.name !== "w:rPr")), u && u?.elements?.length && t.push(...Bt(u, n)), a && a.elements?.length && t.push(...Bt(a, n)), t.push(...Jd(u, t)), a && a.elements?.length && (i.paragraphProperties = a), t && r.name === "w:p" && t.forEach((c) => {
14998
14998
  const h = Object.keys(c.attrs ?? {})[0];
14999
14999
  if (h) {
15000
15000
  const g = c.attrs[h];
@@ -15002,7 +15002,7 @@ function Lt(r, e) {
15002
15002
  }
15003
15003
  }), { elements: o, attributes: i, marks: t, unknownMarks: n };
15004
15004
  }
15005
- function Qd(r) {
15005
+ function Zd(r) {
15006
15006
  const e = r.find((s) => s.name === "w:pPr"), t = r.find((s) => s.name === "w:rPr"), n = r.find((s) => s.name === "w:sectPr");
15007
15007
  return {
15008
15008
  nodes: r.filter((s) => s.name !== "w:pPr" && s.name !== "w:rPr" && s.name !== "w:sectPr"),
@@ -15014,11 +15014,11 @@ function Qd(r) {
15014
15014
  function lr(r) {
15015
15015
  return Nt.allowedElements[r.name || r.type];
15016
15016
  }
15017
- const Zd = (r) => !!Nt.propertyTypes[r.name || r.type];
15018
- function du(r) {
15017
+ const em = (r) => !!Nt.propertyTypes[r.name || r.type];
15018
+ function mu(r) {
15019
15019
  return r.filter((n) => n.name === "w:r").some((n) => n.elements.some((i) => i.name === "w:t"));
15020
15020
  }
15021
- const em = (r) => {
15021
+ const tm = (r) => {
15022
15022
  const { nodes: e, nodeListHandler: t } = r;
15023
15023
  if (e.length === 0 || !(e[0].name === "w:del" || e[0].name === "w:ins"))
15024
15024
  return { nodes: [], consumed: 0 };
@@ -15031,10 +15031,10 @@ const em = (r) => {
15031
15031
  return a.forEach((c) => {
15032
15032
  c.marks === void 0 && (c.marks = []), c.marks.push({ type: u, attrs: f });
15033
15033
  }), { nodes: a, consumed: 1 };
15034
- }, tm = {
15034
+ }, rm = {
15035
15035
  handlerName: "trackChangeNodeHandler",
15036
- handler: em
15037
- }, rm = (r) => {
15036
+ handler: tm
15037
+ }, nm = (r) => {
15038
15038
  const { nodes: e, docx: t, nodeListHandler: n } = r;
15039
15039
  if (e.length === 0 || e[0].name !== "w:hyperlink")
15040
15040
  return { nodes: [], consumed: 0 };
@@ -15053,31 +15053,31 @@ const em = (r) => {
15053
15053
  }
15054
15054
  }
15055
15055
  return { nodes: n.handler({ ...r, nodes: T }), consumed: 1 };
15056
- }, nm = {
15056
+ }, im = {
15057
15057
  handlerName: "hyperlinkNodeHandler",
15058
- handler: rm
15059
- }, im = (r) => {
15058
+ handler: nm
15059
+ }, sm = (r) => {
15060
15060
  const { nodes: e, nodeListHandler: t, parentStyleId: n, docx: i } = r;
15061
15061
  if (e.length === 0 || e[0].name !== "w:r")
15062
15062
  return { nodes: [], consumed: 0 };
15063
15063
  const s = e[0], o = { ...r, nodes: s.elements };
15064
15064
  let a = t.handler(o)?.filter((c) => c) || [];
15065
- const u = s.elements?.some((c) => c.name === "w:rPr"), f = sm(i, n);
15065
+ const u = s.elements?.some((c) => c.name === "w:rPr"), f = om(i, n);
15066
15066
  if (u) {
15067
15067
  const { marks: c = [], attributes: h = {} } = Lt(s), g = c.find((T) => T.type === "textStyle"), S = g && Object.keys(g.attrs).length > 0;
15068
15068
  f.marks && !S && c.push(...f.marks), s.marks && c.push(...s.marks), a = a.map((T) => ({ ...T, marks: hi(c), attributes: h }));
15069
15069
  } else f.marks && (a = a.map((c) => ({ ...c, marks: hi(f.marks) })));
15070
15070
  return { nodes: a, consumed: 1 };
15071
- }, sm = (r, e) => {
15071
+ }, om = (r, e) => {
15072
15072
  const t = r?.["word/styles.xml"];
15073
15073
  if (!t)
15074
15074
  return {};
15075
15075
  const i = t.elements[0].elements.filter((s) => s.name === "w:style").find((s) => s.attributes["w:styleId"] === e) || {};
15076
15076
  return i ? Lt(i) : {};
15077
- }, om = {
15077
+ }, am = {
15078
15078
  handlerName: "runNodeHandler",
15079
- handler: im
15080
- }, am = (r) => {
15079
+ handler: sm
15080
+ }, um = (r) => {
15081
15081
  const { nodes: e, insideTrackChange: t } = r;
15082
15082
  if (e.length === 0 || !(e[0].name === "w:t" || t && e[0].name === "w:delText"))
15083
15083
  return { nodes: [], consumed: 0 };
@@ -15098,64 +15098,64 @@ const em = (r) => {
15098
15098
  ],
15099
15099
  consumed: 1
15100
15100
  };
15101
- }, um = {
15101
+ }, lm = {
15102
15102
  handlerName: "textNodeHandler",
15103
- handler: am
15104
- }, lm = (r) => Object.prototype.toString.call(r) === "[object RegExp]";
15105
- function cm(r, e, t = { strict: !0 }) {
15103
+ handler: um
15104
+ }, cm = (r) => Object.prototype.toString.call(r) === "[object RegExp]";
15105
+ function fm(r, e, t = { strict: !0 }) {
15106
15106
  const n = Object.keys(e);
15107
- return n.length ? n.every((i) => t.strict ? e[i] === r[i] : lm(e[i]) ? e[i].test(r[i]) : e[i] === r[i]) : !0;
15107
+ return n.length ? n.every((i) => t.strict ? e[i] === r[i] : cm(e[i]) ? e[i].test(r[i]) : e[i] === r[i]) : !0;
15108
15108
  }
15109
- const mu = (r) => {
15109
+ const pu = (r) => {
15110
15110
  if (!r || !Array.isArray(r))
15111
15111
  return r;
15112
15112
  let e = [], t = null;
15113
15113
  for (let n of r)
15114
- n.type === "text" ? t && fm(t, n) ? t = {
15114
+ n.type === "text" ? t && dm(t, n) ? t = {
15115
15115
  ...t,
15116
15116
  text: t.text += n.text
15117
15117
  } : (t && e.push(t), t = { ...n }) : (t && (e.push(t), t = null), e.push(n));
15118
15118
  return t && e.push(t), e;
15119
- }, fm = (r, e) => {
15119
+ }, dm = (r, e) => {
15120
15120
  if (!r || !e) return !1;
15121
15121
  let t = r.marks ?? [], n = e.marks ?? [];
15122
15122
  if (t.length !== n.length)
15123
15123
  return !1;
15124
15124
  for (let i = 0; i < t.length; i++)
15125
- if (t[i].type !== n[i].type || !dm(t[i].attrs, n[i].attrs))
15125
+ if (t[i].type !== n[i].type || !mm(t[i].attrs, n[i].attrs))
15126
15126
  return !1;
15127
15127
  return !0;
15128
- }, dm = (r = {}, e = {}) => cm(r, e);
15129
- function pu(r, e, t) {
15128
+ }, mm = (r = {}, e = {}) => fm(r, e);
15129
+ function hu(r, e, t) {
15130
15130
  this.name = r, this.message = e || "", this.details = t;
15131
15131
  const n = new Error(this.message);
15132
15132
  this.stack = n.stack, n.name = this.name;
15133
15133
  }
15134
- pu.prototype = Object.create(Error.prototype);
15135
- const mm = (r) => {
15134
+ hu.prototype = Object.create(Error.prototype);
15135
+ const pm = (r) => {
15136
15136
  const { nodes: e, lists: t, docx: n } = r;
15137
15137
  if (e.length === 0 || e[0].name !== "w:p")
15138
15138
  return { nodes: [], consumed: 0 };
15139
- const i = je(e[0]), s = xu(i.elements);
15139
+ const i = je(e[0]), s = Au(i.elements);
15140
15140
  i.elements = s;
15141
15141
  const o = i.elements.find((a) => a.name === "w:pPr");
15142
15142
  if (gi(i, n)) {
15143
15143
  const a = je(e), u = [];
15144
15144
  let f = a.shift();
15145
15145
  for (; f && gi(f, n); )
15146
- u.push(f), f = a.shift(), f?.elements && !du(f.elements) && (u.push(f), f = a.shift());
15146
+ u.push(f), f = a.shift(), f?.elements && !mu(f.elements) && (u.push(f), f = a.shift());
15147
15147
  return {
15148
- nodes: [hu({ listItems: u, params: r, originalPpr: o })],
15148
+ nodes: [gu({ listItems: u, params: r, originalPpr: o })],
15149
15149
  consumed: u.filter((h) => h.seen).length,
15150
15150
  lists: t
15151
15151
  };
15152
15152
  } else
15153
15153
  return { nodes: [], consumed: 0, lists: t };
15154
- }, pm = {
15154
+ }, hm = {
15155
15155
  handlerName: "listHandler",
15156
- handler: mm
15156
+ handler: pm
15157
15157
  };
15158
- function hu({
15158
+ function gu({
15159
15159
  listItems: r,
15160
15160
  originalPpr: e,
15161
15161
  params: t,
@@ -15173,11 +15173,11 @@ function hu({
15173
15173
  if (!T)
15174
15174
  return console.error("Standard node handler not found"), { nodes: [], consumed: 0 };
15175
15175
  const w = r[0].elements.find((F) => F.name === "w:pPr")?.elements?.find((F) => F.name === "w:pStyle")?.attributes["w:val"], k = kr({ node: r[0], styleId: w, docx: u });
15176
- s = kt(k), i = parseInt(k?.elements?.find((F) => F.name === "w:ilvl")?.attributes["w:val"]) || 0, i === void 0 && (i = gu(w, u));
15176
+ s = kt(k), i = parseInt(k?.elements?.find((F) => F.name === "w:ilvl")?.attributes["w:val"]) || 0, i === void 0 && (i = wu(w, u));
15177
15177
  let R = 0;
15178
15178
  for (let [F, N] of r.entries()) {
15179
15179
  if (N.seen) continue;
15180
- if (N.elements && !du(N.elements)) {
15180
+ if (N.elements && !mu(N.elements)) {
15181
15181
  const P = T({ ...t, nodes: [N] }).nodes[0];
15182
15182
  P && h[h.length - 1]?.content.push(P), N.seen = !0;
15183
15183
  continue;
@@ -15192,9 +15192,9 @@ function hu({
15192
15192
  lvlText: Q,
15193
15193
  lvlJc: pe,
15194
15194
  numId: J
15195
- } = ym(N, n, u);
15195
+ } = bm(N, n, u);
15196
15196
  S = ee;
15197
- const ne = parseInt(X), ae = i === ne && J === s, L = wm({
15197
+ const ne = parseInt(X), ae = i === ne && J === s, L = ym({
15198
15198
  firstListId: J,
15199
15199
  secondListId: s,
15200
15200
  level: ne,
@@ -15216,7 +15216,7 @@ function hu({
15216
15216
  textAlign: $?.attrs.textAlign || null,
15217
15217
  rsidRDefault: M?.["w:rsidRDefault"] || null
15218
15218
  },
15219
- content: mu(p.content)
15219
+ content: pu(p.content)
15220
15220
  }), P.push(p), R = n;
15221
15221
  let m = [];
15222
15222
  if (S !== "bullet" && (m = [...o, c[s][n]]), !o.length && i > 0) {
@@ -15237,11 +15237,11 @@ function hu({
15237
15237
  parentAttributes: N?.attributes || null
15238
15238
  };
15239
15239
  const b = e?.elements?.find((_) => _.name === "w:rPr");
15240
- b && (K.attributes.originalInlineRunProps = b), K.numId = J, u && (K.spacing = yu(N, u));
15240
+ b && (K.attributes.originalInlineRunProps = b), K.numId = J, u && (K.spacing = bu(N, u));
15241
15241
  const x = Io(P, K, []);
15242
15242
  h.push(x);
15243
15243
  } else if (V) {
15244
- const P = [...o, c[s][n]], p = hu({
15244
+ const P = [...o, c[s][n]], p = gu({
15245
15245
  listItems: r.slice(F),
15246
15246
  originalPpr: e,
15247
15247
  params: t,
@@ -15276,8 +15276,8 @@ function hu({
15276
15276
  };
15277
15277
  return a && (C.lastNestedListLevel = R), C;
15278
15278
  }
15279
- const gu = (r, e) => {
15280
- const i = wu(r, e)?.elements?.find((s) => s.name === "w:pPr")?.elements?.find((s) => s.name === "w:outlineLvl");
15279
+ const wu = (r, e) => {
15280
+ const i = yu(r, e)?.elements?.find((s) => s.name === "w:pPr")?.elements?.find((s) => s.name === "w:outlineLvl");
15281
15281
  try {
15282
15282
  return parseInt(i?.attributes["w:val"]);
15283
15283
  } catch {
@@ -15292,13 +15292,13 @@ function gi(r, e) {
15292
15292
  return a && !o && (s = kr({ node: r, styleId: a, docx: e }), o = kt(s)), !!o;
15293
15293
  }
15294
15294
  const kt = (r) => r?.elements?.find((e) => e.name === "w:numId")?.attributes["w:val"];
15295
- function wu(r, e) {
15295
+ function yu(r, e) {
15296
15296
  return e["word/styles.xml"].elements.find((o) => o.name === "w:styles").elements.filter((o) => o.name === "w:style").find((o) => o.attributes["w:styleId"] === r);
15297
15297
  }
15298
15298
  function kr({ node: r, styleId: e, docx: t, seenStyleIds: n = /* @__PURE__ */ new Set() }) {
15299
15299
  let o = r?.elements?.find((h) => h.name === "w:pPr")?.elements?.find((h) => h.name === "w:numPr"), a = kt(o);
15300
15300
  if (a) return o;
15301
- const u = wu(e, t);
15301
+ const u = yu(e, t);
15302
15302
  o = u?.elements?.find((h) => h.name === "w:pPr")?.elements?.find((h) => h.name === "w:numPr"), a = kt(o);
15303
15303
  const c = u?.elements?.find((h) => h.name === "w:basedOn");
15304
15304
  if (!a && !n.has(e)) {
@@ -15315,7 +15315,7 @@ function Io(r, e, t) {
15315
15315
  marks: t
15316
15316
  };
15317
15317
  }
15318
- const hm = [
15318
+ const gm = [
15319
15319
  "decimal",
15320
15320
  // eg: 1, 2, 3, 4, 5, ...
15321
15321
  "decimalZero",
@@ -15340,7 +15340,7 @@ const hm = [
15340
15340
  // eg: (0, 1, 2, ..., 9, 10, 11, 12, ..., 19, 1A, 1B, 1C, ..., 1Z, 20, 21, ..., 2Z)
15341
15341
  "none"
15342
15342
  // No bullet
15343
- ], gm = [
15343
+ ], wm = [
15344
15344
  "bullet",
15345
15345
  // A standard bullet point (•)
15346
15346
  "square",
@@ -15349,7 +15349,7 @@ const hm = [
15349
15349
  // Circle bullets (◦)
15350
15350
  "disc"
15351
15351
  // Disc bullets (●)
15352
- ], wm = ({ firstListId: r, secondListId: e, level: t, pStyleId: n, docx: i }) => {
15352
+ ], ym = ({ firstListId: r, secondListId: e, level: t, pStyleId: n, docx: i }) => {
15353
15353
  const { numFmt: s, lvlText: o, lvlJc: a } = br(r, t, n, i), {
15354
15354
  numFmt: u,
15355
15355
  lvlText: f,
@@ -15379,7 +15379,7 @@ const hm = [
15379
15379
  }
15380
15380
  const a = o.elements, u = a.filter((N) => N.name === "w:abstractNum"), h = a.filter((N) => N.name === "w:num").find((N) => N.attributes["w:numId"] === r)?.elements[0].attributes["w:val"], g = u?.find(
15381
15381
  (N) => N.attributes["w:abstractNumId"] === h
15382
- ), S = bm(g, e), A = g?.elements?.find((N) => N.name === "w:numStyleLink")?.attributes["w:val"];
15382
+ ), S = xm(g, e), A = g?.elements?.find((N) => N.name === "w:numStyleLink")?.attributes["w:val"];
15383
15383
  if (A) {
15384
15384
  const N = Ro(A, n);
15385
15385
  return br(N.numId, e, null, n);
@@ -15387,11 +15387,11 @@ const hm = [
15387
15387
  const B = S?.elements?.find((N) => N.name === "w:start")?.attributes["w:val"], w = S?.elements?.find((N) => N.name === "w:numFmt")?.attributes["w:val"], k = S?.elements?.find((N) => N.name === "w:lvlText").attributes["w:val"], R = S?.elements?.find((N) => N.name === "w:lvlJc").attributes["w:val"], C = S?.elements?.find((N) => N.name === "w:pPr"), F = S?.elements?.find((N) => N.name === "w:rPr");
15388
15388
  return { start: B, numFmt: w, lvlText: k, lvlJc: R, pPr: C, rPr: F };
15389
15389
  };
15390
- function ym(r, e, t) {
15390
+ function bm(r, e, t) {
15391
15391
  if (!r) return;
15392
15392
  const { attributes: n } = r, { paragraphProperties: i = {} } = n, { elements: s = [] } = i, u = r.elements.find((D) => D.name === "w:pPr")?.elements?.find((D) => D.name === "w:pStyle")?.attributes["w:val"], f = kr({ node: r, styleId: u, docx: t });
15393
15393
  if (!f) return {};
15394
- const h = f?.elements.find((D) => D.name === "w:numId")?.attributes["w:val"], S = f?.elements.find((D) => D.name === "w:ilvl")?.attributes["w:val"] || gu(u, t), A = s.find((D) => D.name === "w:pStyle")?.attributes["w:val"], {
15394
+ const h = f?.elements.find((D) => D.name === "w:numId")?.attributes["w:val"], S = f?.elements.find((D) => D.name === "w:ilvl")?.attributes["w:val"] || wu(u, t), A = s.find((D) => D.name === "w:pStyle")?.attributes["w:val"], {
15395
15395
  start: B,
15396
15396
  numFmt: w,
15397
15397
  lvlText: k,
@@ -15400,12 +15400,12 @@ function ym(r, e, t) {
15400
15400
  rPr: F
15401
15401
  } = br(h, e, A, t);
15402
15402
  let N, M;
15403
- C && (N = xm(C)), F && (M = Am(F));
15403
+ C && (N = Am(C)), F && (M = Dm(F));
15404
15404
  let q;
15405
- if (gm.includes(w?.toLowerCase())) q = "bulletList";
15406
- else if (hm.includes(w)) q = "orderedList";
15405
+ if (wm.includes(w?.toLowerCase())) q = "bulletList";
15406
+ else if (gm.includes(w)) q = "orderedList";
15407
15407
  else
15408
- throw new pu("ListParsingError", `Unknown list type found during import: ${w}`, {
15408
+ throw new hu("ListParsingError", `Unknown list type found during import: ${w}`, {
15409
15409
  listOrderingType: w,
15410
15410
  ilvl: S,
15411
15411
  numId: h,
@@ -15417,10 +15417,10 @@ function ym(r, e, t) {
15417
15417
  });
15418
15418
  return { listType: q, listOrderingType: w, ilvl: S, numId: h, listrPrs: M, listpPrs: N, start: B, lvlText: k, lvlJc: R };
15419
15419
  }
15420
- function bm(r, e) {
15420
+ function xm(r, e) {
15421
15421
  return r?.elements?.find((t) => Number(t.attributes["w:ilvl"]) === e);
15422
15422
  }
15423
- function xm(r) {
15423
+ function Am(r) {
15424
15424
  const { elements: e } = r, t = ["w:ind", "w:jc", "w:tabs"], n = {};
15425
15425
  return e && e.forEach((i) => {
15426
15426
  t.includes(i.name);
@@ -15430,7 +15430,7 @@ function xm(r) {
15430
15430
  });
15431
15431
  }), n;
15432
15432
  }
15433
- function Am(r) {
15433
+ function Dm(r) {
15434
15434
  const { elements: e } = r, t = [
15435
15435
  "w:rFonts",
15436
15436
  "w:b",
@@ -15461,12 +15461,12 @@ function Am(r) {
15461
15461
  });
15462
15462
  }), n;
15463
15463
  }
15464
- const Dm = (r) => {
15464
+ const Em = (r) => {
15465
15465
  const { nodes: e, docx: t, nodeListHandler: n, filename: i } = r;
15466
15466
  if (e.length === 0 || e[0].name !== "w:p")
15467
15467
  return { nodes: [], consumed: 0 };
15468
15468
  const s = je(e[0]);
15469
- let o, a = xu(s.elements);
15469
+ let o, a = Au(s.elements);
15470
15470
  if (s.elements = a, gi(s, t))
15471
15471
  return { nodes: [], consumed: 0 };
15472
15472
  const u = n.handlerEntities.find(
@@ -15478,7 +15478,7 @@ const Dm = (r) => {
15478
15478
  c.nodes.length === 1 && (o = c.nodes[0]);
15479
15479
  const h = s.elements?.find((w) => w.name === "w:pPr"), g = h?.elements?.find((w) => w.name === "w:pStyle"), S = h?.elements?.find((w) => w.name === "w:rPr");
15480
15480
  if (S && (o.attrs.marksAttrs = Bt(S, [])), g && (o.attrs.styleId = g.attributes["w:val"]), t) {
15481
- const w = Em(s, t, o.attrs.styleId);
15481
+ const w = vm(s, t, o.attrs.styleId);
15482
15482
  o.attrs.indent || (o.attrs.indent = {}), w.left && (o.attrs.indent.left = w.left), w.right && (o.attrs.indent.right = w.right), w.firstLine && (o.attrs.indent.firstLine = w.firstLine), w.hanging && (o.attrs.indent.hanging = w.hanging), w.textIndent && (o.attrs.textIndent = `${w.textIndent}in`);
15483
15483
  }
15484
15484
  const T = h?.elements?.find((w) => w.name === "w:jc");
@@ -15488,30 +15488,30 @@ const Dm = (r) => {
15488
15488
  const B = h?.elements?.find((w) => w.name === "w:keepNext");
15489
15489
  if (B && B.attributes && (o.attrs.keepNext = B.attributes["w:val"]), t) {
15490
15490
  const w = s.attributes?.["w:rsidRDefault"];
15491
- o.attrs.spacing = yu(s, t, o.attrs.styleId, o.attrs.marksAttrs), o.attrs.rsidRDefault = w;
15491
+ o.attrs.spacing = bu(s, t, o.attrs.styleId, o.attrs.marksAttrs), o.attrs.rsidRDefault = w;
15492
15492
  }
15493
15493
  return o.attrs.filename = i, o && o.content && (o = {
15494
15494
  ...o,
15495
- content: mu(o.content)
15495
+ content: pu(o.content)
15496
15496
  }), { nodes: o ? [o] : [], consumed: 1 };
15497
- }, Em = (r, e, t = "") => {
15497
+ }, vm = (r, e, t = "") => {
15498
15498
  const n = {
15499
15499
  left: 0,
15500
15500
  right: 0,
15501
15501
  firstLine: 0,
15502
15502
  hanging: 0,
15503
15503
  textIndent: 0
15504
- }, { indent: i = {} } = bu(e, t), a = r.elements?.find((S) => S.name === "w:pPr")?.elements?.find((S) => S.name === "w:ind")?.attributes || {}, u = a?.["w:left"] || i?.["w:left"], f = a?.["w:right"] || i?.["w:right"], c = a?.["w:firstLine"] || i?.["w:firstLine"], h = a?.["w:hanging"] || i?.["w:hanging"];
15504
+ }, { indent: i = {} } = xu(e, t), a = r.elements?.find((S) => S.name === "w:pPr")?.elements?.find((S) => S.name === "w:ind")?.attributes || {}, u = a?.["w:left"] || i?.["w:left"], f = a?.["w:right"] || i?.["w:right"], c = a?.["w:firstLine"] || i?.["w:firstLine"], h = a?.["w:hanging"] || i?.["w:hanging"];
15505
15505
  u && (n.left = xe(u)), f && (n.right = xe(f)), c && (n.firstLine = xe(c)), h && (n.hanging = xe(h));
15506
15506
  const g = u - parseInt(h || 0) || 0;
15507
15507
  return g && (n.textIndent = qe(g)), n;
15508
- }, yu = (r, e, t = "", n = []) => {
15508
+ }, bu = (r, e, t = "", n = []) => {
15509
15509
  const i = {
15510
15510
  lineSpaceAfter: 0,
15511
15511
  lineSpaceBefore: 0,
15512
15512
  line: 0,
15513
15513
  lineRule: null
15514
- }, { spacing: s = {} } = bu(e, t);
15514
+ }, { spacing: s = {} } = xu(e, t);
15515
15515
  let o, a, u, f;
15516
15516
  const g = r.elements?.find((F) => F.name === "w:pPr")?.elements?.find((F) => F.name === "w:spacing")?.attributes || {}, T = n.find((F) => F.type === "textStyle")?.attrs?.fontSize, A = g?.["w:line"] || u || s?.["w:line"];
15517
15517
  A && (i.line = ki(A));
@@ -15521,7 +15521,7 @@ const Dm = (r) => {
15521
15521
  k && (i.lineSpaceAfter = xe(k)), g?.["w:afterAutospacing"] === "1" && T && (i.lineSpaceAfter += Math.round(parseInt(T) * 0.5 * 96 / 72));
15522
15522
  const C = g?.["w:lineRule"] || f || s?.["w:lineRule"];
15523
15523
  return C && (i.lineRule = C), i;
15524
- }, bu = (r, e = "") => {
15524
+ }, xu = (r, e = "") => {
15525
15525
  const t = r["word/styles.xml"];
15526
15526
  if (!t)
15527
15527
  return {};
@@ -15536,11 +15536,11 @@ const Dm = (r) => {
15536
15536
  spacing: B || T || A,
15537
15537
  indent: R || w || k
15538
15538
  };
15539
- }, vm = {
15539
+ }, Cm = {
15540
15540
  handlerName: "paragraphNodeHandler",
15541
- handler: Dm
15541
+ handler: Em
15542
15542
  };
15543
- function Cm(r, e) {
15543
+ function Sm(r, e) {
15544
15544
  const t = { lineSpaceBefore: null, lineSpaceAfter: null };
15545
15545
  if (!r) return t;
15546
15546
  const n = e["word/styles.xml"];
@@ -15580,7 +15580,7 @@ function Cm(r, e) {
15580
15580
  const { type: Q, attrs: pe } = se;
15581
15581
  if (Q === "textStyle") {
15582
15582
  Object.entries(pe).forEach(([J, ne]) => {
15583
- he[Xa(J)] = ne;
15583
+ he[Ya(J)] = ne;
15584
15584
  });
15585
15585
  return;
15586
15586
  }
@@ -15590,26 +15590,30 @@ function Cm(r, e) {
15590
15590
  styles: he
15591
15591
  };
15592
15592
  }
15593
- function xu(r) {
15593
+ function Au(r) {
15594
15594
  let e = [], t = [], n = !1;
15595
15595
  return r?.forEach((i) => {
15596
15596
  if (i.seen) return;
15597
15597
  i.seen = !0;
15598
- const s = i.elements?.find((o) => o.name === "w:fldChar");
15599
- if (s) {
15600
- const o = s.attributes["w:fldCharType"];
15601
- if (o === "begin")
15602
- n = !0, t.push(i);
15603
- else if (o === "end") {
15604
- n = !1, t.push(i);
15605
- const a = Sm(t);
15606
- e.push(...a), t = [];
15598
+ const s = i.elements?.filter((o) => o.name === "w:fldChar") || [];
15599
+ if (s.length)
15600
+ if (s.length > 1) {
15601
+ const o = Po([i]);
15602
+ e.push(...o);
15603
+ } else {
15604
+ const o = s[0].attributes["w:fldCharType"];
15605
+ if (o === "begin")
15606
+ n = !0, t.push(i);
15607
+ else if (o === "end") {
15608
+ n = !1, t.push(i);
15609
+ const a = Po(t);
15610
+ e.push(...a), t = [];
15611
+ }
15607
15612
  }
15608
- }
15609
15613
  n ? t.push(i) : e.push(i);
15610
15614
  }), e;
15611
15615
  }
15612
- const Sm = (r = []) => {
15616
+ const Po = (r = []) => {
15613
15617
  let e = [], t = !1, n = !1;
15614
15618
  const i = r.findIndex(
15615
15619
  (h) => h.elements?.some((g) => g.name === "w:fldChar" && g.attributes["w:fldCharType"] === "separate")
@@ -15653,14 +15657,14 @@ const Sm = (r = []) => {
15653
15657
  const t = e[0], o = t.elements.find((c) => c.name === "w:sdtPr")?.elements.find((c) => c.name === "w:docPartObj")?.elements.find((c) => c.name === "w:docPartGallery")?.attributes["w:val"];
15654
15658
  if (!o)
15655
15659
  return { nodes: [], consumed: 0 };
15656
- if (!Po[o])
15660
+ if (!Oo[o])
15657
15661
  return { nodes: [], consumed: 0 };
15658
- const a = t?.elements.find((c) => c.name === "w:sdtContent"), u = Po[o];
15662
+ const a = t?.elements.find((c) => c.name === "w:sdtContent"), u = Oo[o];
15659
15663
  return {
15660
15664
  nodes: u({ ...r, nodes: [a] }),
15661
15665
  consumed: 1
15662
15666
  };
15663
- }, Po = {
15667
+ }, Oo = {
15664
15668
  "Table of Contents": Tm
15665
15669
  }, Bm = (r) => {
15666
15670
  const { nodes: e, docx: t, nodeListHandler: n, insideTrackChange: i } = r;
@@ -15724,7 +15728,7 @@ const Sm = (r = []) => {
15724
15728
  const i = e[0], { name: s } = i, { attributes: o, elements: a, marks: u = [] } = Lt(i);
15725
15729
  if (s === "w:sdt")
15726
15730
  return { nodes: [], consumed: 0 };
15727
- if (Zd(i))
15731
+ if (em(i))
15728
15732
  return {
15729
15733
  nodes: [{
15730
15734
  type: lr(i),
@@ -15830,7 +15834,7 @@ function Gm({ docx: r }) {
15830
15834
  docx: r
15831
15835
  }), { attrs: D } = q[0], $ = D["w14:paraId"];
15832
15836
  return {
15833
- commentId: T || ya(),
15837
+ commentId: T || ba(),
15834
15838
  importedId: f,
15835
15839
  creatorName: c,
15836
15840
  creatorEmail: h,
@@ -15865,7 +15869,7 @@ const Wm = ({ docx: r, comments: e }) => {
15865
15869
  const { attributes: e } = r, t = e["w15:paraId"], n = e["w15:done"] === "1", i = e["w15:paraIdParent"];
15866
15870
  return { paraId: t, isDone: n, paraIdParent: i };
15867
15871
  }, Km = (r, e, t) => {
15868
- const n = je(Ld(r));
15872
+ const n = je(_d(r));
15869
15873
  if (!n) return null;
15870
15874
  if (e?.telemetry) {
15871
15875
  const o = Object.keys(r).map((a) => {
@@ -15922,17 +15926,17 @@ const Wm = ({ docx: r, comments: e }) => {
15922
15926
  return null;
15923
15927
  }, xr = () => {
15924
15928
  const r = [
15925
- om,
15926
- vm,
15927
- pm,
15928
- um,
15929
+ am,
15930
+ Cm,
15931
+ hm,
15932
+ lm,
15929
15933
  Lm,
15930
15934
  Nm,
15931
15935
  qm,
15932
- nm,
15933
- Gd,
15934
- tm,
15935
- qd,
15936
+ im,
15937
+ Wd,
15938
+ rm,
15939
+ Md,
15936
15940
  zm,
15937
15941
  Um,
15938
15942
  Hm,
@@ -16078,7 +16082,7 @@ function Ym(r) {
16078
16082
  });
16079
16083
  const s = [];
16080
16084
  return n.forEach((o) => {
16081
- const a = o.attributes["w:styleId"], u = Cm(a, r), f = {
16085
+ const a = o.attributes["w:styleId"], u = Sm(a, r), f = {
16082
16086
  id: o.attributes["w:styleId"],
16083
16087
  type: o.attributes["w:type"],
16084
16088
  definition: u,
@@ -16098,9 +16102,9 @@ function Qm(r) {
16098
16102
  }), e;
16099
16103
  }
16100
16104
  const Zm = (r, e, t) => {
16101
- const i = r["word/_rels/document.xml.rels"].elements.find((g) => g.name === "Relationships"), { elements: s } = i, o = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header", a = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer", u = s.filter((g) => g.attributes.Type === o), f = s.filter((g) => g.attributes.Type === a), h = (Au(r["word/document.xml"]) || []).flatMap((g) => g.elements);
16105
+ const i = r["word/_rels/document.xml.rels"].elements.find((g) => g.name === "Relationships"), { elements: s } = i, o = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header", a = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer", u = s.filter((g) => g.attributes.Type === o), f = s.filter((g) => g.attributes.Type === a), h = (Du(r["word/document.xml"]) || []).flatMap((g) => g.elements);
16102
16106
  u.forEach((g) => {
16103
- const { rId: S, referenceFile: T, currentFileName: A } = Oo(g, r), w = h.find((C) => C.name === "w:headerReference" && C.attributes["r:id"] === S)?.attributes["w:type"], k = xr(), R = k.handler({
16107
+ const { rId: S, referenceFile: T, currentFileName: A } = Lo(g, r), w = h.find((C) => C.name === "w:headerReference" && C.attributes["r:id"] === S)?.attributes["w:type"], k = xr(), R = k.handler({
16104
16108
  nodes: T.elements[0].elements,
16105
16109
  nodeListHandler: k,
16106
16110
  docx: r,
@@ -16110,7 +16114,7 @@ const Zm = (r, e, t) => {
16110
16114
  });
16111
16115
  e.headers[S] = { type: "doc", content: [...R] }, e.headerIds[w] = S;
16112
16116
  }), f.forEach((g) => {
16113
- const { rId: S, referenceFile: T, currentFileName: A } = Oo(g, r), w = h.find((C) => C.name === "w:footerReference" && C.attributes["r:id"] === S)?.attributes["w:type"], k = xr(), R = k.handler({
16117
+ const { rId: S, referenceFile: T, currentFileName: A } = Lo(g, r), w = h.find((C) => C.name === "w:footerReference" && C.attributes["r:id"] === S)?.attributes["w:type"], k = xr(), R = k.handler({
16114
16118
  nodes: T.elements[0].elements,
16115
16119
  nodeListHandler: k,
16116
16120
  docx: r,
@@ -16120,11 +16124,11 @@ const Zm = (r, e, t) => {
16120
16124
  });
16121
16125
  e.footers[S] = { type: "doc", content: [...R] }, e.footerIds[w] = S;
16122
16126
  });
16123
- }, Au = (r, e = []) => {
16127
+ }, Du = (r, e = []) => {
16124
16128
  for (const t in r)
16125
- r[t] === "w:sectPr" ? e.push(r) : typeof r[t] == "object" && Au(r[t], e);
16129
+ r[t] === "w:sectPr" ? e.push(r) : typeof r[t] == "object" && Du(r[t], e);
16126
16130
  return e;
16127
- }, Oo = (r, e) => {
16131
+ }, Lo = (r, e) => {
16128
16132
  const t = r.attributes.Id, n = r.attributes.Target, i = e[`word/${n}`];
16129
16133
  return {
16130
16134
  rId: t,
@@ -16134,7 +16138,7 @@ const Zm = (r, e, t) => {
16134
16138
  };
16135
16139
  function ep(r) {
16136
16140
  let e = r["word/numbering.xml"];
16137
- (!e || !e.elements?.length || !e.elements[0].elements?.length) && (e = tu);
16141
+ (!e || !e.elements?.length || !e.elements[0].elements?.length) && (e = ru);
16138
16142
  const t = e.elements[0].elements, n = t.filter((a) => a.name === "w:abstractNum"), i = t.filter((a) => a.name === "w:num"), s = {};
16139
16143
  n.forEach((a) => {
16140
16144
  const u = Number(a.attributes["w:abstractNumId"]);
@@ -16155,7 +16159,7 @@ const tp = (r) => {
16155
16159
  const { elements: t = [] } = e.elements[0];
16156
16160
  return !!t.find((i) => i.name === "w:evenAndOddHeaders");
16157
16161
  };
16158
- var it, Du, Eu, vu, Cu;
16162
+ var it, Eu, vu, Cu, Su;
16159
16163
  const dt = class dt {
16160
16164
  constructor(e = null) {
16161
16165
  Nr(this, it);
@@ -16167,7 +16171,7 @@ const dt = class dt {
16167
16171
  }), this.initialJSON = this.convertedXml["word/document.xml"], this.initialJSON || (this.initialJSON = this.parseXmlToJson(this.xml)), this.declaration = this.initialJSON?.declaration;
16168
16172
  }
16169
16173
  parseXmlToJson(e) {
16170
- return JSON.parse(wa.xml2json(e, null, 2));
16174
+ return JSON.parse(ya.xml2json(e, null, 2));
16171
16175
  }
16172
16176
  static getStoredSuperdocVersion(e) {
16173
16177
  try {
@@ -16182,9 +16186,9 @@ const dt = class dt {
16182
16186
  return;
16183
16187
  }
16184
16188
  }
16185
- static updateDocumentVersion(e = this.convertedXml, t = "0.9.31") {
16189
+ static updateDocumentVersion(e = this.convertedXml, t = "0.10.1") {
16186
16190
  const n = "docProps/custom.xml";
16187
- e[n] || (e[n] = Su());
16191
+ e[n] || (e[n] = Tu());
16188
16192
  const i = e["docProps/custom.xml"];
16189
16193
  if (!i) return;
16190
16194
  const s = i.elements.find((a) => a.name === "Properties");
@@ -16193,7 +16197,7 @@ const dt = class dt {
16193
16197
  if (o)
16194
16198
  o.elements[0].elements[0].elements[0].text = t;
16195
16199
  else {
16196
- const a = Tu();
16200
+ const a = Fu();
16197
16201
  s.elements.push(a);
16198
16202
  }
16199
16203
  return e;
@@ -16217,7 +16221,7 @@ const dt = class dt {
16217
16221
  }
16218
16222
  getDocumentInternalId() {
16219
16223
  const e = "word/settings.xml";
16220
- this.convertedXml[e] || (this.convertedXml[e] = _f);
16224
+ this.convertedXml[e] || (this.convertedXml[e] = qf);
16221
16225
  const t = Object.assign({}, this.convertedXml[e]);
16222
16226
  if (!t.elements[0]?.elements?.length) {
16223
16227
  const i = this.createDocumentIdElement(t);
@@ -16230,7 +16234,7 @@ const dt = class dt {
16230
16234
  this.documentInternalId = n?.attributes["w15:val"];
16231
16235
  }
16232
16236
  createDocumentIdElement() {
16233
- const e = ya().toUpperCase();
16237
+ const e = ba().toUpperCase();
16234
16238
  return this.documentInternalId = e, {
16235
16239
  type: "element",
16236
16240
  name: "w15:docId",
@@ -16256,7 +16260,7 @@ const dt = class dt {
16256
16260
  return new Bo(this).schemaToXml(e, t);
16257
16261
  }
16258
16262
  async exportToDocx(e, t, n, i = !1, s, o = []) {
16259
- const a = o.map((A) => Wf(A)), u = a.map((A, B) => Jf(A, B, a)), { result: f, params: c } = this.exportToXmlJson({
16263
+ const a = o.map((A) => Jf(A)), u = a.map((A, B) => Kf(A, B, a)), { result: f, params: c } = this.exportToXmlJson({
16260
16264
  data: e,
16261
16265
  editorSchema: t,
16262
16266
  comments: o,
@@ -16264,21 +16268,21 @@ const dt = class dt {
16264
16268
  commentsExportType: s,
16265
16269
  isFinalDoc: i
16266
16270
  }), g = new Bo(this).schemaToXml(f);
16267
- await Ke(this, it, Cu).call(this, {
16271
+ await Ke(this, it, Su).call(this, {
16268
16272
  ...n,
16269
16273
  ...c.media,
16270
16274
  ...this.media
16271
16275
  });
16272
16276
  let S = { ...this.convertedXml }, T = [];
16273
16277
  if (o.length) {
16274
- const { documentXml: A, relationships: B } = Ke(this, it, Eu).call(this, {
16278
+ const { documentXml: A, relationships: B } = Ke(this, it, vu).call(this, {
16275
16279
  defs: c.exportedCommentDefs,
16276
16280
  exportType: s,
16277
16281
  commentsWithParaIds: a
16278
16282
  });
16279
16283
  S = { ...A }, T = B;
16280
16284
  }
16281
- return this.convertedXml = { ...this.convertedXml, ...S }, Ke(this, it, vu).call(this, [...c.relationships, ...T]), rp(this.convertedXml), Ke(this, it, Du).call(this, c), g;
16285
+ return this.convertedXml = { ...this.convertedXml, ...S }, Ke(this, it, Cu).call(this, [...c.relationships, ...T]), rp(this.convertedXml), Ke(this, it, Eu).call(this, c), g;
16282
16286
  }
16283
16287
  exportToXmlJson({
16284
16288
  data: e,
@@ -16305,18 +16309,18 @@ const dt = class dt {
16305
16309
  return { result: u, params: f };
16306
16310
  }
16307
16311
  };
16308
- it = new WeakSet(), Du = function(e) {
16312
+ it = new WeakSet(), Eu = function(e) {
16309
16313
  const t = "word/numbering.xml";
16310
16314
  let n = this.convertedXml[t];
16311
16315
  const i = this.numbering;
16312
- n || (n = tu);
16316
+ n || (n = ru);
16313
16317
  const s = n.elements[0], o = Object.values(i.abstracts).map((u) => u), a = Object.values(i.definitions).map((u) => u);
16314
16318
  s.elements = [...o, ...a], this.convertedXml[t] = n;
16315
16319
  }, /**
16316
16320
  * Update comments files and relationships depending on export type
16317
16321
  */
16318
- Eu = function({ defs: e, exportType: t, commentsWithParaIds: n }) {
16319
- const { documentXml: i, relationships: s } = ed({
16322
+ vu = function({ defs: e, exportType: t, commentsWithParaIds: n }) {
16323
+ const { documentXml: i, relationships: s } = td({
16320
16324
  exportType: t,
16321
16325
  convertedXml: this.convertedXml,
16322
16326
  defs: e,
@@ -16324,19 +16328,19 @@ Eu = function({ defs: e, exportType: t, commentsWithParaIds: n }) {
16324
16328
  converter: this
16325
16329
  });
16326
16330
  return { documentXml: i, relationships: s };
16327
- }, vu = function(e = []) {
16331
+ }, Cu = function(e = []) {
16328
16332
  const t = this.convertedXml["word/_rels/document.xml.rels"], n = t.elements.find((a) => a.name === "Relationships"), i = [], s = /rId|mi/g;
16329
16333
  let o = Math.max(...n.elements.map((a) => Number(a.attributes.Id.replace(s, ""))));
16330
16334
  e.forEach((a) => {
16331
16335
  const u = a.attributes.Id, f = n.elements.find((h) => h.attributes.Target === a.attributes.Target), c = a.attributes.Target?.startsWith("media/") && u.length > 6;
16332
16336
  f && !c || (a.attributes.Target = a.attributes?.Target?.replace(/&/g, "&amp;"), a.attributes.Id = u.length > 6 ? u : `rId${++o}`, i.push(a));
16333
16337
  }), n.elements = [...n.elements, ...i], this.convertedXml["word/_rels/document.xml.rels"] = t;
16334
- }, Cu = async function(e) {
16338
+ }, Su = async function(e) {
16335
16339
  const t = {};
16336
16340
  for (const n in e) {
16337
16341
  if (typeof e[n] != "string") return;
16338
16342
  const i = n.split("/").pop();
16339
- t[i] = await kf(e[n]);
16343
+ t[i] = await Nf(e[n]);
16340
16344
  }
16341
16345
  this.convertedXml.media = {
16342
16346
  ...this.convertedXml.media,
@@ -16390,7 +16394,7 @@ Eu = function({ defs: e, exportType: t, commentsWithParaIds: n }) {
16390
16394
  let Nt = dt;
16391
16395
  function rp(r) {
16392
16396
  const e = "docProps/custom.xml";
16393
- r[e] || (r[e] = Su());
16397
+ r[e] || (r[e] = Tu());
16394
16398
  const n = r[e].elements.find((a) => a.name === "Properties");
16395
16399
  n.elements || (n.elements = []);
16396
16400
  const i = n.elements, s = i.filter((a) => typeof a == "object" && a !== null).filter((a) => {
@@ -16402,12 +16406,12 @@ function rp(r) {
16402
16406
  o = s.length ? Math.max(...i.map((a) => a.attributes.pid)) + 1 : 2;
16403
16407
  } catch {
16404
16408
  }
16405
- return s.push(Tu(o)), n.elements = s, r;
16409
+ return s.push(Fu(o)), n.elements = s, r;
16406
16410
  }
16407
- function Su() {
16408
- return Lf;
16411
+ function Tu() {
16412
+ return _f;
16409
16413
  }
16410
- function Tu(r = 2, e = "0.9.31") {
16414
+ function Fu(r = 2, e = "0.10.1") {
16411
16415
  return {
16412
16416
  type: "element",
16413
16417
  name: "property",
@@ -16434,20 +16438,20 @@ export {
16434
16438
  at as A,
16435
16439
  Ht as B,
16436
16440
  ki as C,
16437
- Oa as D,
16441
+ La as D,
16438
16442
  Fe as E,
16439
16443
  Z as F,
16440
16444
  Nt as G,
16441
16445
  Dt as H,
16442
16446
  gp as I,
16443
- Xa as J,
16444
- Cf as K,
16445
- vf as L,
16447
+ Ya as J,
16448
+ Sf as K,
16449
+ Cf as L,
16446
16450
  wr as M,
16447
16451
  Ge as N,
16448
16452
  We as O,
16449
16453
  hp as P,
16450
- Lo as Q,
16454
+ _o as Q,
16451
16455
  Je as R,
16452
16456
  ve as S,
16453
16457
  tt as T,
@@ -16461,20 +16465,20 @@ export {
16461
16465
  op as f,
16462
16466
  cp as g,
16463
16467
  fp as h,
16464
- lm as i,
16468
+ cm as i,
16465
16469
  dp as j,
16466
16470
  Ie as k,
16467
16471
  up as l,
16468
- Pc as m,
16472
+ Oc as m,
16469
16473
  lp as n,
16470
- cm as o,
16474
+ fm as o,
16471
16475
  me as p,
16472
16476
  Ii as q,
16473
- wf as r,
16477
+ yf as r,
16474
16478
  yr as s,
16475
16479
  Ni as t,
16476
- eu as u,
16477
- ya as v,
16480
+ tu as u,
16481
+ ba as v,
16478
16482
  Ri as w,
16479
16483
  wp as x,
16480
16484
  ct as y,