@tricoteuses/tisseuse 0.19.3 → 0.20.0

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.
@@ -905,16 +905,36 @@ function L(e, t) {
905
905
  };
906
906
  };
907
907
  }
908
+ function Ye(e) {
909
+ return (t) => {
910
+ let n = [], r = [], i = 0, a = 0;
911
+ for (let { start: o, stop: s } of e) {
912
+ if (o < i || s <= o || s > t.length) throw RangeError("Source ranges must be ordered, disjoint and nonempty");
913
+ n.push(t.slice(i, o)), a += o - i, r.push({
914
+ inputIndex: o,
915
+ inputLength: s - o,
916
+ outputIndex: a,
917
+ outputLength: 0
918
+ }), i = s;
919
+ }
920
+ return n.push(t.slice(i)), {
921
+ input: t,
922
+ output: n.join(""),
923
+ sourceMap: r,
924
+ title: "Omission des éléments de présentation"
925
+ };
926
+ };
927
+ }
908
928
  function* R(e) {
909
929
  if (e.transformations === void 0) yield e;
910
930
  else for (let t of e.transformations) yield* R(t);
911
931
  }
912
- function* Ye(e) {
932
+ function* Xe(e) {
913
933
  let t = [...R(e)].reverse(), n = { position: {
914
934
  start: 0,
915
935
  stop: 0
916
936
  } }, r = t.map((e) => {
917
- let t = Xe(e);
937
+ let t = Ze(e);
918
938
  return t.next(n), t;
919
939
  }), i = yield n;
920
940
  for (; i !== void 0;) {
@@ -928,7 +948,7 @@ function* Ye(e) {
928
948
  }
929
949
  for (let e of r) e.next(void 0);
930
950
  }
931
- function* Xe(e) {
951
+ function* Ze(e) {
932
952
  let t = yield { position: {
933
953
  start: 0,
934
954
  stop: 0
@@ -1032,19 +1052,19 @@ function* Xe(e) {
1032
1052
  }).filter(([, e]) => e !== void 0));
1033
1053
  }
1034
1054
  }
1035
- function Ze(e) {
1036
- let t = Ye(e);
1055
+ function Qe(e) {
1056
+ let t = Xe(e);
1037
1057
  return t.next({
1038
1058
  start: 0,
1039
1059
  stop: 0
1040
1060
  }), t;
1041
1061
  }
1042
- function Qe(e, t) {
1062
+ function $e(e, t) {
1043
1063
  let n = t.map((e) => [e]);
1044
- for (let { sourceMap: t } of [...R(e)].reverse()) n = $e(t, n);
1064
+ for (let { sourceMap: t } of [...R(e)].reverse()) n = et(t, n);
1045
1065
  return n;
1046
1066
  }
1047
- function $e(e, t) {
1067
+ function et(e, t) {
1048
1068
  let n = [];
1049
1069
  e = [
1050
1070
  {
@@ -1109,16 +1129,16 @@ function $e(e, t) {
1109
1129
  }
1110
1130
  return n;
1111
1131
  }
1112
- function et(e, t) {
1113
- let n = Ze(e);
1114
- return t.map((e) => tt(n, e));
1115
- }
1116
1132
  function tt(e, t) {
1133
+ let n = Qe(e);
1134
+ return t.map((e) => nt(n, e));
1135
+ }
1136
+ function nt(e, t) {
1117
1137
  let n = e.next(t);
1118
1138
  if (n.done) throw Error(`Reverse transformation of position failed: ${t}`);
1119
1139
  return n.value;
1120
1140
  }
1121
- var nt = (e, t, n = 0) => t === void 0 ? e : (t.innerPrefix ?? "") + e.slice(t.position.start + n, t.position.stop + n) + (t.innerSuffix ?? ""), rt = (e, t) => (e.outerPrefix ?? "") + t + (e.outerSuffix ?? ""), it = {
1141
+ var rt = (e, t, n = 0) => t === void 0 ? e : (t.innerPrefix ?? "") + e.slice(t.position.start + n, t.position.stop + n) + (t.innerSuffix ?? ""), it = (e, t) => (e.outerPrefix ?? "") + t + (e.outerSuffix ?? ""), at = {
1122
1142
  amp: "&",
1123
1143
  apos: "'",
1124
1144
  asymp: "≈",
@@ -1136,7 +1156,7 @@ var nt = (e, t, n = 0) => t === void 0 ? e : (t.innerPrefix ?? "") + e.slice(t.p
1136
1156
  reg: "®",
1137
1157
  trade: "™"
1138
1158
  };
1139
- function at({ removeAWithHref: e } = {}) {
1159
+ function ot({ removeAWithHref: e } = {}) {
1140
1160
  return (t) => {
1141
1161
  let n = 0, r = 0, i = [], a = [], o = [], s = "Conversion des éléments HTML en texte";
1142
1162
  for (; n < t.length;) {
@@ -1331,12 +1351,12 @@ function at({ removeAWithHref: e } = {}) {
1331
1351
  };
1332
1352
  };
1333
1353
  }
1334
- function ot(e) {
1354
+ function st(e) {
1335
1355
  let t = 0, n = [];
1336
1356
  return {
1337
1357
  input: e,
1338
1358
  output: e.replace(/&(amp|apos|asymp|copy|deg|euro|gt|lt|mdash|nbsp|ndash|ne|pound|quot|reg|trade);/gi, (e, r, i) => {
1339
- let a = it[r.toLowerCase()];
1359
+ let a = at[r.toLowerCase()];
1340
1360
  return n.push({
1341
1361
  inputIndex: i,
1342
1362
  inputLength: e.length,
@@ -1348,7 +1368,7 @@ function ot(e) {
1348
1368
  title: "Décodage des entités HTML nommées"
1349
1369
  };
1350
1370
  }
1351
- function st(e) {
1371
+ function ct(e) {
1352
1372
  let t = 0, n = [];
1353
1373
  return {
1354
1374
  input: e,
@@ -1365,7 +1385,7 @@ function st(e) {
1365
1385
  title: "Décodage des entités HTML numériques"
1366
1386
  };
1367
1387
  }
1368
- function ct(e) {
1388
+ function lt(e) {
1369
1389
  let t = [], n = e;
1370
1390
  for (let [e, r] of [
1371
1391
  [/<!--.*?-->/gs, ""],
@@ -1419,18 +1439,18 @@ function B(e) {
1419
1439
  transformations: t
1420
1440
  };
1421
1441
  }
1422
- function lt({ removeAWithHref: e } = {}) {
1442
+ function ut({ removeAWithHref: e } = {}) {
1423
1443
  return (t) => L("Simplification du HTML", [
1424
- ot,
1425
1444
  st,
1426
1445
  ct,
1446
+ lt,
1427
1447
  B,
1428
1448
  H,
1429
- at({ removeAWithHref: e }),
1449
+ ot({ removeAWithHref: e }),
1430
1450
  V
1431
1451
  ])(t);
1432
1452
  }
1433
- function ut(e) {
1453
+ function dt(e) {
1434
1454
  return L("Simplification du texte brut", [
1435
1455
  B,
1436
1456
  H,
@@ -1535,17 +1555,17 @@ function H(e) {
1535
1555
  }
1536
1556
  //#endregion
1537
1557
  //#region src/lib/text_parsers/texts.ts
1538
- var U = {}, dt = {}, ft = {}, pt = {}, mt = {}, ht = {};
1539
- function gt(e) {
1558
+ var U = {}, ft = {}, pt = {}, mt = {}, ht = {}, gt = {};
1559
+ function _t(e) {
1540
1560
  let t = e ?? {};
1541
- W(dt, t.codeTitleVersionsByCid ?? {}), W(ft, t.textCidByOtherTitleWordsTree ?? {}), W(pt, t.textCidByTitleRestWordsTree ?? {}), W(U, Object.fromEntries(Object.entries(t.textInfosByCid ?? {}).map(([e, t]) => [e, Array.isArray(t) ? {
1561
+ W(ft, t.codeTitleVersionsByCid ?? {}), W(pt, t.textCidByOtherTitleWordsTree ?? {}), W(mt, t.textCidByTitleRestWordsTree ?? {}), W(U, Object.fromEntries(Object.entries(t.textInfosByCid ?? {}).map(([e, t]) => [e, Array.isArray(t) ? {
1542
1562
  nature: t[0],
1543
1563
  title: t[1]
1544
- } : t]))), W(mt, t.textsCidsByNatureAndDate ?? {}), W(ht, t.textsCidsByNatureAndNum ?? {});
1564
+ } : t]))), W(ht, t.textsCidsByNatureAndDate ?? {}), W(gt, t.textsCidsByNatureAndNum ?? {});
1545
1565
  }
1546
- function _t(e, t) {
1566
+ function vt(e, t) {
1547
1567
  let n = (e) => {
1548
- let n = dt[e] ?? [], r = n.filter(({ debut: e, fin: n }) => e <= t && t < n), i = (r.length > 0 ? r : n.filter(({ debut: e }) => e <= t)).toSorted((e, t) => t.fin.localeCompare(e.fin) || t.debut.localeCompare(e.debut))[0];
1568
+ let n = ft[e] ?? [], r = n.filter(({ debut: e, fin: n }) => e <= t && t < n), i = (r.length > 0 ? r : n.filter(({ debut: e }) => e <= t)).toSorted((e, t) => t.fin.localeCompare(e.fin) || t.debut.localeCompare(e.debut))[0];
1549
1569
  return [
1550
1570
  +(r.length > 0),
1551
1571
  i?.fin ?? "",
@@ -1562,7 +1582,7 @@ function W(e, t) {
1562
1582
  for (let e of Object.keys(n)) delete n[e];
1563
1583
  Object.assign(e, t);
1564
1584
  }
1565
- var vt = (e) => Array.isArray(e) ? e : [e], G = v(g(S("Constitution", { value: "CONSTITUTION" }), S("arrêtés?|circulaires?|code professionnel local|code|décret-loi|décrets?|livre(?= des procédures fiscales)|loi constitutionnelle|loi d'orientation quinquennale|loi d'orientation|loi de programme|loi locale|loi organique|loi quinquennale|loi|ordonnance (?:du Roi|locale|ministérielle|royale)|ordonnance", {
1585
+ var yt = (e) => Array.isArray(e) ? e : [e], G = v(g(S("Constitution", { value: "CONSTITUTION" }), S("arrêtés?|circulaires?|code professionnel local|code|décret-loi|décrets?|livre(?= des procédures fiscales)|loi constitutionnelle|loi d'orientation quinquennale|loi d'orientation|loi de programme|loi locale|loi organique|loi quinquennale|loi|ordonnance (?:du Roi|locale|ministérielle|royale)|ordonnance", {
1566
1586
  flags: "i",
1567
1587
  value: (e) => {
1568
1588
  let t = e[0].toLowerCase();
@@ -1571,7 +1591,7 @@ var vt = (e) => Array.isArray(e) ? e : [e], G = v(g(S("Constitution", { value: "
1571
1591
  })), { value: (e) => ({
1572
1592
  nature: e,
1573
1593
  type: "texte"
1574
- }) }), yt = _([x(E, { default: null }), S(String.raw`\d+(-\d+)?`)], { value: (e) => e[1] }), K = g(M, _([yt, x(Pe, { default: null })], { value: (e) => e[1] === null ? { num: e[0] } : {
1594
+ }) }), bt = _([x(E, { default: null }), S(String.raw`\d+(-\d+)?`)], { value: (e) => e[1] }), K = g(M, _([bt, x(Pe, { default: null })], { value: (e) => e[1] === null ? { num: e[0] } : {
1575
1595
  ...e[1],
1576
1596
  num: e[0]
1577
1597
  } }));
@@ -1583,7 +1603,7 @@ S("décision( du Conseil constitutionnel)? (?<numero>[-/0-9A-Z]+ (QPC|DC|AN|D|EL
1583
1603
  type: "décision du Conseil constitutionnel"
1584
1604
  })
1585
1605
  });
1586
- var q = x(g(S(" de la République française", { flags: "i" }), S(" du pays", { flags: "i" })), { default: null }), bt = g(_([
1606
+ var q = x(g(S(" de la République française", { flags: "i" }), S(" du pays", { flags: "i" })), { default: null }), xt = g(_([
1587
1607
  G,
1588
1608
  q,
1589
1609
  T,
@@ -1623,7 +1643,7 @@ var q = x(g(S(" de la République française", { flags: "i" }), S(" du pays", {
1623
1643
  default: null,
1624
1644
  value: (e) => e[1]
1625
1645
  }),
1626
- x([T, v(w(pt), { value: (e, t) => ({
1646
+ x([T, v(w(mt), { value: (e, t) => ({
1627
1647
  ...e,
1628
1648
  titleRest: t.text()
1629
1649
  }) })], {
@@ -1644,16 +1664,16 @@ var q = x(g(S(" de la République française", { flags: "i" }), S(" du pays", {
1644
1664
  if (a === void 0 && r === void 0 && i === void 0) return;
1645
1665
  let s = /* @__PURE__ */ new Set();
1646
1666
  if (r !== void 0) {
1647
- let e = mt[t]?.[r];
1667
+ let e = ht[t]?.[r];
1648
1668
  if (e !== void 0) {
1649
- let t = vt(e);
1669
+ let t = yt(e);
1650
1670
  s = s.size === 0 ? new Set(t) : s.intersection(new Set(t));
1651
1671
  }
1652
1672
  }
1653
1673
  if (i !== void 0) {
1654
- let e = ht[t]?.[i];
1674
+ let e = gt[t]?.[i];
1655
1675
  if (e !== void 0) {
1656
- let t = vt(e);
1676
+ let t = yt(e);
1657
1677
  s = s.size === 0 ? new Set(t) : s.intersection(new Set(t));
1658
1678
  }
1659
1679
  }
@@ -1672,22 +1692,22 @@ var q = x(g(S(" de la République française", { flags: "i" }), S(" du pays", {
1672
1692
  titleRest: o,
1673
1693
  type: n
1674
1694
  }).filter(([, e]) => e !== void 0));
1675
- } }), _([w(ft), x(We, { default: "" })], { value: (e) => {
1695
+ } }), _([w(pt), x(We, { default: "" })], { value: (e) => {
1676
1696
  let { cid: t } = e[0], n = typeof t == "string" ? U[t] : void 0;
1677
1697
  return Object.fromEntries(Object.entries({
1678
1698
  cid: t,
1679
1699
  ...n ?? {},
1680
1700
  type: "texte"
1681
1701
  }).filter(([, e]) => e !== void 0));
1682
- } })), xt = _([
1702
+ } })), St = _([
1683
1703
  O,
1684
1704
  S("/"),
1685
1705
  O,
1686
1706
  x(S(" ?/ ?(CEE?)", { value: (e) => e[1] }), { default: "" })
1687
- ], { value: (e) => `${e[0]}/${e[2]}${e[3] ? `/${e[3]}` : ""}` }), St = _([x(E, { default: "" }), xt], { value: (e) => e[1] }), Y = g(_([St, x(Pe, { default: null })], { value: (e) => e[1] === null ? { num: e[0] } : {
1707
+ ], { value: (e) => `${e[0]}/${e[2]}${e[3] ? `/${e[3]}` : ""}` }), Y = _([x(E, { default: "" }), St], { value: (e) => e[1] }), Ct = g(_([Y, x(Pe, { default: null })], { value: (e) => e[1] === null ? { num: e[0] } : {
1688
1708
  ...e[1],
1689
1709
  num: e[0]
1690
- } }), M), Ct = _([S("arrêtés?|arrêts?|avis|décisions?|déclarations?|délibérations?|directive(?: d'exécution|déléguée)?|informations?|instructions?|lettres?|règlement(?: d'exécution)?", {
1710
+ } }), M), wt = _([S("arrêtés?|arrêts?|avis|décisions?|déclarations?|délibérations?|directive(?: d'exécution|déléguée)?|informations?|instructions?|lettres?|règlement(?: d'exécution)?", {
1691
1711
  flags: "i",
1692
1712
  value: (e) => {
1693
1713
  let t = e[0].toLowerCase();
@@ -1698,9 +1718,9 @@ var q = x(g(S(" de la République française", { flags: "i" }), S(" du pays", {
1698
1718
  legislation: "UE",
1699
1719
  type: "texte"
1700
1720
  }) }), X = _([
1701
- Ct,
1721
+ wt,
1702
1722
  T,
1703
- Y
1723
+ Ct
1704
1724
  ], { value: (e) => ({
1705
1725
  ...e[2],
1706
1726
  ...e[0]
@@ -1711,10 +1731,10 @@ var q = x(g(S(" de la République française", { flags: "i" }), S(" du pays", {
1711
1731
  legislation: "international",
1712
1732
  type: "texte"
1713
1733
  }
1714
- }), wt = _([x(Ve, { default: !1 }), g(_([
1734
+ }), Tt = _([x(Ve, { default: !1 }), g(_([
1715
1735
  Je,
1716
1736
  T,
1717
- g(J, X, Z, G, Ct)
1737
+ g(J, X, Z, G, wt)
1718
1738
  ], { value: (e) => ({
1719
1739
  ...e[2],
1720
1740
  ...e[0] === void 0 ? {} : e[0]
@@ -1725,16 +1745,16 @@ var q = x(g(S(" de la République française", { flags: "i" }), S(" du pays", {
1725
1745
  position: t.position()
1726
1746
  };
1727
1747
  return t.currentText = n, n;
1728
- } }), Q = (e) => e?.replace(/\n/g, " ").replace(/ {2,}/g, " ").replace(/ \(\d+\)\.?$/, "").replace(/\.$/, ""), Tt = (e) => {
1748
+ } }), Q = (e) => e?.replace(/\n/g, " ").replace(/ {2,}/g, " ").replace(/ \(\d+\)\.?$/, "").replace(/\.$/, ""), Et = (e) => {
1729
1749
  let t = e.META.META_SPEC.META_TEXTE_VERSION.DATE_DEBUT;
1730
1750
  return t === void 0 || ["2222-02-22", "2999-01-01"].includes(t) ? e.META.META_SPEC.META_TEXTE_CHRONICLE.DATE_PUBLI : t;
1731
- }, Et = (e) => {
1751
+ }, Dt = (e) => {
1732
1752
  let t = e.META.META_SPEC.META_TEXTE_CHRONICLE.DATE_TEXTE;
1733
1753
  if (!["2222-02-22", "2999-01-01"].includes(t)) return t;
1734
1754
  let n = e.META.META_SPEC.META_TEXTE_VERSION.DATE_DEBUT;
1735
1755
  if (n !== void 0 && !["2222-02-22", "2999-01-01"].includes(n)) return n;
1736
1756
  throw Error(`Missing date signature in text ${e.META.META_COMMUN.ID}`);
1737
- }, Dt = (e) => (t, n) => {
1757
+ }, Ot = (e) => (t, n) => {
1738
1758
  let r = e(t), i = e(n);
1739
1759
  if (r !== i) return r.localeCompare(i);
1740
1760
  let a = t.META.META_COMMUN, o = a.ORIGINE, s = n.META.META_COMMUN, c = s.ORIGINE;
@@ -1743,16 +1763,16 @@ var q = x(g(S(" de la République française", { flags: "i" }), S(" du pays", {
1743
1763
  if (c === "JORF") return 1;
1744
1764
  }
1745
1765
  throw Error(`TODO: Unable to sort texts ${a.ID} & ${s.ID} by date.`);
1746
- }, Ot = class {
1766
+ }, kt = class {
1747
1767
  label;
1748
1768
  enabled;
1749
1769
  metrics = [];
1750
1770
  startedAt = performance.now();
1751
- constructor(e, t = kt()) {
1771
+ constructor(e, t = At()) {
1752
1772
  this.label = e, this.enabled = t;
1753
1773
  }
1754
1774
  add(e) {
1755
- this.enabled && (this.metrics.push(e), At() && console.info(`[timing:${this.label}]`, JSON.stringify(e)));
1775
+ this.enabled && (this.metrics.push(e), jt() && console.info(`[timing:${this.label}]`, JSON.stringify(e)));
1756
1776
  }
1757
1777
  async time(e, t, n) {
1758
1778
  if (!this.enabled) return t();
@@ -1791,36 +1811,36 @@ var q = x(g(S(" de la République française", { flags: "i" }), S(" du pays", {
1791
1811
  }, null, 2));
1792
1812
  }
1793
1813
  };
1794
- function kt() {
1814
+ function At() {
1795
1815
  let e = globalThis.process?.env;
1796
1816
  return e?.PJL_BUILD_TIMINGS === "1" || e?.PJL_BUILD_TIMINGS === "true";
1797
1817
  }
1798
- function At() {
1818
+ function jt() {
1799
1819
  let e = globalThis.process?.env;
1800
1820
  return e?.PJL_BUILD_TIMINGS_PROGRESS === "1" || e?.PJL_BUILD_TIMINGS_PROGRESS === "true";
1801
1821
  }
1802
1822
  //#endregion
1803
1823
  //#region src/lib/legi/text_titles_infos.ts
1804
- var jt = "current";
1805
- function Mt(e, t, n, r) {
1824
+ var Mt = "current";
1825
+ function Nt(e, t, n, r) {
1806
1826
  n != null && ((e[t] ??= {})[n] ??= []).push(r);
1807
1827
  }
1808
- function Nt(e) {
1809
- return ut(e).output;
1828
+ function Pt(e) {
1829
+ return dt(e).output;
1810
1830
  }
1811
- function Pt(e, t, n) {
1812
- let r = Nt(Q(t).replace(/[,()]/g, " ")).split(" ").map((e) => /^[IVX]+$/gi.test(e) ? d(e).toString() : e.toLowerCase().replace(/^no$/, "n°")), i = e;
1831
+ function Ft(e, t, n) {
1832
+ let r = Pt(Q(t).replace(/[,()]/g, " ")).split(" ").map((e) => /^[IVX]+$/gi.test(e) ? d(e).toString() : e.toLowerCase().replace(/^no$/, "n°")), i = e;
1813
1833
  for (let e of r) i = i[e] ??= {};
1814
1834
  i.cid === void 0 ? i.cid = n : Array.isArray(i.cid) ? i.cid.push(n) : i.cid = [i.cid, n];
1815
1835
  }
1816
- async function Ft(e, t = {}) {
1817
- It(await Lt(e, t));
1836
+ async function It(e, t = {}) {
1837
+ Lt(await Rt(e, t));
1818
1838
  }
1819
- function It(e) {
1820
- gt(e);
1839
+ function Lt(e) {
1840
+ _t(e);
1821
1841
  }
1822
- async function Lt(e, { onProgress: t } = {}) {
1823
- let n = new Ot("legi.buildTextTitlesInfos"), r = {}, i = {}, a = {}, o = {}, s = {}, c = {}, l = {
1842
+ async function Rt(e, { onProgress: t } = {}) {
1843
+ let n = new kt("legi.buildTextTitlesInfos"), r = {}, i = {}, a = {}, o = {}, s = {}, c = {}, l = {
1824
1844
  addOtherTitleWordsTreeMs: 0,
1825
1845
  addTitleRestWordsTreeMs: 0,
1826
1846
  cleanTitleMs: 0,
@@ -1893,7 +1913,7 @@ async function Lt(e, { onProgress: t } = {}) {
1893
1913
  }
1894
1914
  }), u.otherTitleCount += y.size;
1895
1915
  for (let e of b) {
1896
- let t = d("parseTitleMs", () => bt(new h(Nt(e))));
1916
+ let t = d("parseTitleMs", () => xt(new h(Pt(e))));
1897
1917
  if (t === void 0 && g === "DECRET" && (u.fallbackDecretTitleCount++, t = {
1898
1918
  date: m ?? void 0,
1899
1919
  nature: g,
@@ -1902,16 +1922,16 @@ async function Lt(e, { onProgress: t } = {}) {
1902
1922
  type: "texte"
1903
1923
  }), t === void 0) throw Error(`Unparsable title of ${g} n° ${_ ?? ""} du ${m ?? ""} (${l}): ${e}`);
1904
1924
  if (u.parsedTitleCount++, d("indexNatureDateNumMs", () => {
1905
- Mt(s, g, t.date, l), Mt(c, g, t.num, l);
1925
+ Nt(s, g, t.date, l), Nt(c, g, t.num, l);
1906
1926
  }), t.titleRest !== void 0) {
1907
1927
  let { titleRest: e } = t;
1908
1928
  u.titleRestCount++, d("addTitleRestWordsTreeMs", () => {
1909
- Pt(i, e, l);
1929
+ Ft(i, e, l);
1910
1930
  });
1911
1931
  }
1912
1932
  }
1913
1933
  for (let e of y) d("addOtherTitleWordsTreeMs", () => {
1914
- Pt(r, e, l);
1934
+ Ft(r, e, l);
1915
1935
  });
1916
1936
  }
1917
1937
  t?.({
@@ -1923,8 +1943,8 @@ async function Lt(e, { onProgress: t } = {}) {
1923
1943
  textCidByOtherTitleWordsTree: $(r),
1924
1944
  textCidByTitleRestWordsTree: $(i),
1925
1945
  textInfosByCid: a,
1926
- textsCidsByNatureAndDate: Rt(s),
1927
- textsCidsByNatureAndNum: Rt(c)
1946
+ textsCidsByNatureAndDate: zt(s),
1947
+ textsCidsByNatureAndNum: zt(c)
1928
1948
  }));
1929
1949
  t?.({ phase: "compact:done" });
1930
1950
  for (let [e, t] of Object.entries(l)) n.add({
@@ -1936,7 +1956,7 @@ async function Lt(e, { onProgress: t } = {}) {
1936
1956
  ...u
1937
1957
  }), f;
1938
1958
  }
1939
- function Rt(e) {
1959
+ function zt(e) {
1940
1960
  return Object.fromEntries(Object.entries(e).map(([e, t]) => [e, Object.fromEntries(Object.entries(t).map(([e, t]) => [e, t.length === 1 ? t[0] : t]))]));
1941
1961
  }
1942
1962
  function $(e) {
@@ -1955,7 +1975,7 @@ function $(e) {
1955
1975
  }
1956
1976
  //#endregion
1957
1977
  //#region src/lib/legi/resolver.ts
1958
- var zt = class {
1978
+ var Bt = class {
1959
1979
  getArticleHistoryInfo(e) {
1960
1980
  return Promise.resolve(void 0);
1961
1981
  }
@@ -1967,4 +1987,4 @@ var zt = class {
1967
1987
  }
1968
1988
  };
1969
1989
  //#endregion
1970
- export { Le as $, ut as A, v as At, N as B, c as Bt, at as C, oe as Ct, z as D, h as Dt, ct as E, le as Et, Qe as F, S as Ft, Ke as G, F as H, u as Ht, tt as I, te as It, He as J, qe as K, et as L, C as Lt, H as M, b as Mt, L as N, x as Nt, B as O, g as Ot, Ze as P, ee as Pt, Ie as Q, nt as R, w as Rt, Z as S, ae as St, st as T, ce as Tt, Ue as U, d as Ut, P as V, l as Vt, Ge as W, Ve as X, Be as Y, Fe as Z, q as _, xe as _t, jt as a, ve as at, X as b, T as bt, Tt as c, de as ct, bt as d, Te as dt, ze as et, Y as f, ue as ft, yt as g, me as gt, St as h, pe as ht, It as i, je as it, V as j, y as jt, lt as k, _ as kt, Et as l, ye as lt, K as m, fe as mt, Ft as n, j as nt, Ot as o, k as ot, G as p, O as pt, Je as q, Lt as r, M as rt, Q as s, be as st, zt as t, Re as tt, Dt as u, Ee as ut, _t as v, Ce as vt, ot as w, E as wt, J as x, ie as xt, wt as y, re as yt, rt as z, m as zt };
1990
+ export { Ie as $, dt as A, _ as At, it as B, m as Bt, ot as C, ae as Ct, z as D, le as Dt, lt as E, ce as Et, Ye as F, ee as Ft, Ge as G, P as H, l as Ht, $e as I, S as It, Je as J, Ke as K, nt as L, te as Lt, H as M, y as Mt, L as N, b as Nt, B as O, h as Ot, Qe as P, x as Pt, Fe as Q, tt as R, C as Rt, Z as S, ie as St, ct as T, E as Tt, F as U, u as Ut, N as V, c as Vt, Ue as W, d as Wt, Be as X, He as Y, Ve as Z, q as _, me as _t, Mt as a, je as at, X as b, re as bt, Et as c, be as ct, xt as d, Ee as dt, Le as et, Ct as f, Te as ft, bt as g, pe as gt, Y as h, fe as ht, Lt as i, M as it, V as j, v as jt, ut as k, g as kt, Dt as l, de as lt, K as m, O as mt, It as n, Re as nt, kt as o, ve as ot, G as p, ue as pt, qe as q, Rt as r, j as rt, Q as s, k as st, Bt as t, ze as tt, Ot as u, ye as ut, vt as v, xe as vt, st as w, oe as wt, J as x, T as xt, Tt as y, Ce as yt, rt as z, w as zt };
@@ -1,4 +1,4 @@
1
- import { a as e, i as t, o as n, r, t as i } from "./resolver-tBQRf8TL.js";
1
+ import { a as e, i as t, o as n, r, t as i } from "./resolver-4v_fWVor.js";
2
2
  //#region src/lib/f_legi/resolver.ts
3
3
  var a = [
4
4
  "article_location_diffs",