@tricoteuses/tisseuse 0.13.7 → 0.13.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -35
- package/dist/{textes-BIJjrNwg.js → html-DhGw-Yqr.js} +3875 -5243
- package/dist/index.js +280 -147
- package/dist/resolver-DZS-DNp6.js +1848 -0
- package/dist/server-f-legi.js +532 -0
- package/dist/server.js +530 -2161
- package/dist/src/lib/extractors/links.d.ts +6 -4
- package/dist/src/lib/f_legi/resolver.d.ts +5 -7
- package/dist/src/lib/index.d.ts +2 -0
- package/dist/src/lib/legi/canutes_resolver.d.ts +5 -6
- package/dist/src/lib/legi/resolver.d.ts +15 -12
- package/dist/src/lib/legi/resolver.test.d.ts +1 -0
- package/dist/src/lib/legi/text_titles_infos.d.ts +26 -0
- package/dist/src/lib/linkers/html.d.ts +15 -4
- package/dist/src/lib/linkers/markdown.d.ts +4 -2
- package/dist/src/lib/server/databases/index.d.ts +1 -1
- package/dist/src/lib/server/f_legi/index.d.ts +1 -0
- package/dist/src/lib/server/index.d.ts +2 -1
- package/dist/src/lib/server/judilibre_search.d.ts +31 -0
- package/dist/src/lib/server/judilibre_search.test.d.ts +1 -0
- package/dist/src/lib/server/legi/resolvers.d.ts +2 -7
- package/dist/src/lib/server/linkers/html.d.ts +4 -2
- package/dist/src/scripts/enrich_senat_documents.d.ts +1 -0
- package/dist/src/scripts/index_postgres_judilibre.d.ts +1 -0
- package/package.json +8 -1
- package/dist/src/lib/f_legi/extractors/links.d.ts +0 -134
- package/dist/src/lib/f_legi/linkers/html.d.ts +0 -51
- package/dist/src/lib/server/f_legi/databases/index.d.ts +0 -2
- package/dist/src/lib/server/f_legi/linkers/html.d.ts +0 -20
- package/dist/src/scripts/f_legi/add_links_to_html_document.d.ts +0 -0
- /package/dist/src/{scripts/extract_texts_titles_infos.d.ts → lib/f_legi/resolver.test.d.ts} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { $ as e,
|
|
1
|
+
import { $ as e, A as t, B as n, C as r, D as i, E as a, G as o, H as s, I as c, J as l, K as u, L as d, M as f, N as p, O as m, P as ee, Q as te, R as ne, S as re, T as ie, U as ae, V as oe, W as se, X as h, Y as g, Z as ce, _ as le, _t as ue, a as de, at as fe, b as pe, c as _, ct as me, d as he, dt as ge, et as _e, f as ve, ft as ye, g as be, gt as xe, h as Se, ht as Ce, i as v, it as we, j as Te, k as Ee, l as De, lt as Oe, m as ke, mt as Ae, n as je, nt as Me, o as Ne, ot as Pe, p as Fe, pt as Ie, q as Le, r as Re, rt as ze, s as Be, st as Ve, t as He, tt as Ue, u as We, ut as Ge, v as Ke, vt as qe, w as Je, x as Ye, y as Xe, yt as Ze, z as Qe } from "./html-DhGw-Yqr.js";
|
|
2
|
+
import { $ as $e, A as et, At as tt, B as nt, C as rt, Ct as y, D as b, Dt as x, E as it, F as S, G as at, H as ot, I as C, J as st, K as ct, M as lt, Mt as ut, N as dt, Nt as w, O as ft, Ot as pt, P as mt, Q as T, S as ht, St as E, T as gt, W as _t, X as vt, Y as yt, Z as bt, _ as D, _t as xt, a as St, b as Ct, bt as wt, c as Tt, ct as Et, d as Dt, dt as Ot, f as kt, ft as At, g as jt, gt as Mt, h as Nt, i as Pt, it as Ft, j as It, jt as Lt, k as Rt, kt as O, l as zt, lt as Bt, m as Vt, mt as k, o as Ht, ot as Ut, p as Wt, q as Gt, r as Kt, s as qt, t as Jt, tt as Yt, u as Xt, ut as Zt, v as A, vt as Qt, w as $t, wt as j, x as en, xt as M, y as tn, z as nn } from "./resolver-DZS-DNp6.js";
|
|
2
3
|
//#region ../../node_modules/@tricoteuses/legifrance/dist/legal/index.js
|
|
3
|
-
function
|
|
4
|
+
function rn(e, t) {
|
|
4
5
|
if (e != null) {
|
|
5
6
|
if (!Array.isArray(e)) return e;
|
|
6
7
|
for (let n of e) if (n["@debut"] <= t && t <= n["@fin"]) return n;
|
|
@@ -8,132 +9,258 @@ function fn(e, t) {
|
|
|
8
9
|
}
|
|
9
10
|
}
|
|
10
11
|
//#endregion
|
|
11
|
-
//#region src/lib/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
//#region src/lib/loaders/legifrance.ts
|
|
13
|
+
function N({ data: e, num: t }) {
|
|
14
|
+
return t !== null && (e.num = t), e;
|
|
15
|
+
}
|
|
16
|
+
async function P(e, t, n) {
|
|
17
|
+
let r = t.get("ARTICLE");
|
|
18
|
+
r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("ARTICLE", r));
|
|
19
|
+
let i = r.get(n);
|
|
20
|
+
return i === void 0 && (i = (await e`
|
|
21
|
+
SELECT data, num
|
|
22
|
+
FROM legifrance.article
|
|
23
|
+
WHERE id = ${n}
|
|
24
|
+
`).map(N)[0], r.set(n, i ?? null)), i ?? void 0;
|
|
25
|
+
}
|
|
26
|
+
async function an(e, t, n) {
|
|
27
|
+
let r = t.get("JO");
|
|
28
|
+
r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("JO", r));
|
|
29
|
+
let i = r.get(n);
|
|
30
|
+
return i === void 0 && (i = (await e`
|
|
31
|
+
SELECT
|
|
32
|
+
data
|
|
33
|
+
FROM legifrance.jo
|
|
34
|
+
WHERE id = ${n}
|
|
35
|
+
`)[0]?.data, r.set(n, i ?? null)), i ?? void 0;
|
|
36
|
+
}
|
|
37
|
+
async function F(e, t, n) {
|
|
38
|
+
let r = t.get("SECTION_TA");
|
|
39
|
+
r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("SECTION_TA", r));
|
|
40
|
+
let i = r.get(n);
|
|
41
|
+
return i === void 0 && (i = (await e`
|
|
42
|
+
SELECT
|
|
43
|
+
data
|
|
44
|
+
FROM legifrance.section_ta
|
|
45
|
+
WHERE id = ${n}
|
|
46
|
+
`)[0]?.data, r.set(n, i ?? null)), i ?? void 0;
|
|
47
|
+
}
|
|
48
|
+
async function on(e, t, n) {
|
|
49
|
+
let r = t.get("SECTION_TA");
|
|
50
|
+
r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("SECTION_TA", r));
|
|
51
|
+
let i = new Set(n), a = [];
|
|
52
|
+
for (let e of i) {
|
|
53
|
+
let t = r.get(e);
|
|
54
|
+
t !== void 0 && (i.delete(e), t !== null && a.push(t));
|
|
55
|
+
}
|
|
56
|
+
if (i.size > 0) for (let t of (await e`
|
|
57
|
+
SELECT
|
|
58
|
+
data
|
|
59
|
+
FROM legifrance.section_ta
|
|
60
|
+
WHERE id IN ${e([...i])}
|
|
61
|
+
`).map(({ data: e }) => e)) r.set(t.ID, t), a.push(t);
|
|
62
|
+
return a;
|
|
63
|
+
}
|
|
64
|
+
async function sn(e, t, n) {
|
|
65
|
+
let r = t.get("TEXTELR");
|
|
66
|
+
r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("TEXTELR", r));
|
|
67
|
+
let i = r.get(n);
|
|
68
|
+
return i === void 0 && (i = (await e`
|
|
69
|
+
SELECT
|
|
70
|
+
data
|
|
71
|
+
FROM legifrance.textelr
|
|
72
|
+
WHERE id = ${n}
|
|
73
|
+
`)[0]?.data, r.set(n, i ?? null)), i ?? void 0;
|
|
74
|
+
}
|
|
75
|
+
async function cn(e, t, n) {
|
|
76
|
+
let r = t.get("TEXTEKALI");
|
|
77
|
+
r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("TEXTEKALI", r));
|
|
78
|
+
let i = r.get(n);
|
|
79
|
+
return i === void 0 && (i = (await e`
|
|
80
|
+
SELECT data
|
|
81
|
+
FROM legifrance.textekali
|
|
82
|
+
WHERE id = ${n}
|
|
83
|
+
`)[0]?.data, r.set(n, i ?? null)), i ?? void 0;
|
|
84
|
+
}
|
|
85
|
+
async function ln(e, t, n) {
|
|
86
|
+
let r = t.get("TEXTELR");
|
|
87
|
+
r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("TEXTELR", r));
|
|
88
|
+
let i = new Set(n), a = [];
|
|
89
|
+
for (let e of i) {
|
|
90
|
+
let t = r.get(e);
|
|
91
|
+
t !== void 0 && (i.delete(e), t !== null && a.push(t));
|
|
92
|
+
}
|
|
93
|
+
if (i.size > 0) for (let t of (await e`
|
|
94
|
+
SELECT data
|
|
95
|
+
FROM legifrance.textelr
|
|
96
|
+
WHERE id IN ${e([...i])}
|
|
97
|
+
`).map(({ data: e }) => e)) r.set(t.META.META_COMMUN.ID, t), a.push(t);
|
|
98
|
+
return a;
|
|
99
|
+
}
|
|
100
|
+
async function un(e, t, n) {
|
|
101
|
+
let r = t.get("TEXTE_VERSION");
|
|
102
|
+
r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("TEXTE_VERSION", r));
|
|
103
|
+
let i = new Set(n), a = [];
|
|
104
|
+
for (let e of i) {
|
|
105
|
+
let t = r.get(e);
|
|
106
|
+
t !== void 0 && (i.delete(e), t !== null && a.push(t));
|
|
107
|
+
}
|
|
108
|
+
if (i.size > 0) for (let t of (await e`
|
|
109
|
+
SELECT data
|
|
110
|
+
FROM legifrance.texte_version
|
|
111
|
+
WHERE id IN ${e([...i])}
|
|
112
|
+
`).map(({ data: e }) => e)) r.set(t.META.META_COMMUN.ID, t), a.push(t);
|
|
113
|
+
return a;
|
|
15
114
|
}
|
|
115
|
+
async function dn(e, t, n) {
|
|
116
|
+
let r = t.get("TEXTE_VERSION");
|
|
117
|
+
r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("TEXTE_VERSION", r));
|
|
118
|
+
let i = r.get(n);
|
|
119
|
+
return i === void 0 && (i = (await e`
|
|
120
|
+
SELECT
|
|
121
|
+
data
|
|
122
|
+
FROM legifrance.texte_version
|
|
123
|
+
WHERE id = ${n}
|
|
124
|
+
`)[0]?.data, r.set(n, i ?? null)), i ?? void 0;
|
|
125
|
+
}
|
|
126
|
+
async function fn(e, t, n) {
|
|
127
|
+
let r = t.get("ARTICLE");
|
|
128
|
+
r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("ARTICLE", r));
|
|
129
|
+
let i = [];
|
|
130
|
+
for (let t of (await e`
|
|
131
|
+
SELECT data, num
|
|
132
|
+
FROM legifrance.article
|
|
133
|
+
${n}
|
|
134
|
+
`).map(N)) r.set(t.META.META_COMMUN.ID, t), i.push(t);
|
|
135
|
+
return i;
|
|
136
|
+
}
|
|
137
|
+
//#endregion
|
|
138
|
+
//#region src/lib/articles.ts
|
|
139
|
+
var I = ["2222-02-22", "2999-01-01"];
|
|
16
140
|
function L(e) {
|
|
17
|
-
return e
|
|
141
|
+
return [e, ...e.TM === void 0 ? [] : L(e.TM)];
|
|
142
|
+
}
|
|
143
|
+
function R(e) {
|
|
144
|
+
return e !== void 0 && I.includes(e);
|
|
18
145
|
}
|
|
19
146
|
function pn({ dateDebut: e, sourceDateDebut: t, sourceDateFin: n }) {
|
|
20
|
-
return t !== void 0 && n !== void 0 && !
|
|
147
|
+
return t !== void 0 && n !== void 0 && !R(t) && !R(n) && n <= t ? "never_effective" : e === void 0 || R(e) ? "unknown" : n === "2999-01-01" ? "open_ended" : n === void 0 || R(n) ? "unknown" : n > e ? "dated" : "unknown";
|
|
21
148
|
}
|
|
22
149
|
var mn = (e) => {
|
|
23
150
|
if (e !== void 0) for (let t = 0; t < e.length; ++t) {
|
|
24
|
-
let n =
|
|
151
|
+
let n = T(new M(e, t));
|
|
25
152
|
if (typeof n == "string") return n;
|
|
26
153
|
}
|
|
27
|
-
},
|
|
154
|
+
}, z = (e) => (e === void 0 ? [] : Array.isArray(e) ? e : [e]).map((e) => mn(e["#text"])).find((e) => e !== void 0), hn = (e) => {
|
|
28
155
|
let t = e.META.META_SPEC.META_ARTICLE.DATE_DEBUT;
|
|
29
|
-
if (t !== void 0 && !
|
|
30
|
-
let n = e.CONTEXTE.TEXTE, r = n.TITRE_TXT, i = [...r === void 0 ? [] : (Array.isArray(r) ? r : [r]).map((e) => e["@debut"]), ...n.TM === void 0 ? [] :
|
|
156
|
+
if (t !== void 0 && !I.includes(t)) return t;
|
|
157
|
+
let n = e.CONTEXTE.TEXTE, r = n.TITRE_TXT, i = [...r === void 0 ? [] : (Array.isArray(r) ? r : [r]).map((e) => e["@debut"]), ...n.TM === void 0 ? [] : L(n.TM).map((e) => (Array.isArray(e.TITRE_TM) ? e.TITRE_TM : [e.TITRE_TM]).map((e) => e["@debut"])).flat()].filter((e) => !I.includes(e));
|
|
31
158
|
if (i.length > 0) return i.sort().at(-1);
|
|
32
159
|
let a = n["@date_publi"];
|
|
33
|
-
if (a !== void 0 && !
|
|
160
|
+
if (a !== void 0 && !I.includes(a)) return a;
|
|
34
161
|
let o = n["@date_signature"];
|
|
35
|
-
if (o !== void 0 && !
|
|
162
|
+
if (o !== void 0 && !I.includes(o)) return o;
|
|
36
163
|
let s = e.META.META_SPEC.META_ARTICLE.DATE_FIN;
|
|
37
|
-
if (s !== void 0 && !
|
|
38
|
-
let c =
|
|
164
|
+
if (s !== void 0 && !I.includes(s)) return s;
|
|
165
|
+
let c = z(r);
|
|
39
166
|
if (c !== void 0) return c;
|
|
40
|
-
if (
|
|
167
|
+
if (I.includes(t ?? "")) return t;
|
|
41
168
|
throw Error(`Missing date signature in article ${e.META.META_COMMUN.ID}`);
|
|
42
|
-
},
|
|
169
|
+
}, B = (e) => {
|
|
43
170
|
let t = e.META.META_SPEC.META_ARTICLE.DATE_DEBUT;
|
|
44
|
-
if (t !== void 0 && !
|
|
171
|
+
if (t !== void 0 && !I.includes(t)) return t;
|
|
45
172
|
let n = e.CONTEXTE.TEXTE, r = n["@date_signature"];
|
|
46
|
-
if (r !== void 0 && !
|
|
173
|
+
if (r !== void 0 && !I.includes(r)) return r;
|
|
47
174
|
let i = n["@date_publi"];
|
|
48
|
-
if (i !== void 0 && !
|
|
49
|
-
let a = n.TITRE_TXT, o = [...a === void 0 ? [] : (Array.isArray(a) ? a : [a]).map((e) => e["@debut"]), ...n.TM === void 0 ? [] :
|
|
175
|
+
if (i !== void 0 && !I.includes(i)) return i;
|
|
176
|
+
let a = n.TITRE_TXT, o = [...a === void 0 ? [] : (Array.isArray(a) ? a : [a]).map((e) => e["@debut"]), ...n.TM === void 0 ? [] : L(n.TM).map((e) => (Array.isArray(e.TITRE_TM) ? e.TITRE_TM : [e.TITRE_TM]).map((e) => e["@debut"])).flat()].filter((e) => !I.includes(e));
|
|
50
177
|
if (o.length > 0) return o.sort().at(-1);
|
|
51
178
|
let s = e.META.META_SPEC.META_ARTICLE.DATE_FIN;
|
|
52
|
-
if (s !== void 0 && !
|
|
53
|
-
let c =
|
|
179
|
+
if (s !== void 0 && !I.includes(s)) return s;
|
|
180
|
+
let c = z(a);
|
|
54
181
|
if (c !== void 0) return c;
|
|
55
|
-
if (
|
|
182
|
+
if (I.includes(t ?? "")) return t;
|
|
56
183
|
throw Error(`Missing date signature in article ${e.META.META_COMMUN.ID}`);
|
|
57
184
|
};
|
|
58
185
|
async function gn(e, t, n, r) {
|
|
59
|
-
let i = await
|
|
186
|
+
let i = await P(e, t, n);
|
|
60
187
|
if (i === void 0) return;
|
|
61
|
-
let a =
|
|
188
|
+
let a = B(i), o = i.META.META_COMMUN.ORIGINE;
|
|
62
189
|
if (o === "KALI") return;
|
|
63
190
|
let s = i.CONTEXTE.TEXTE;
|
|
64
191
|
if (s.TM === void 0) return;
|
|
65
|
-
let c =
|
|
192
|
+
let c = L(s.TM).reverse(), l;
|
|
66
193
|
switch (o) {
|
|
67
194
|
case "JORF":
|
|
68
195
|
l = c.map((e) => e.TITRE_TM["@id"]);
|
|
69
196
|
break;
|
|
70
197
|
case "LEGI":
|
|
71
|
-
l = c.map((e) =>
|
|
198
|
+
l = c.map((e) => rn(e.TITRE_TM, a)?.["@id"]);
|
|
72
199
|
break;
|
|
73
|
-
default:
|
|
200
|
+
default: w("getOrLoadArticleSiblingId origine", o);
|
|
74
201
|
}
|
|
75
|
-
return await (r === -1 ?
|
|
202
|
+
return await (r === -1 ? G : W)(e, t, n, a, i.num, l);
|
|
76
203
|
}
|
|
77
|
-
async function
|
|
78
|
-
let
|
|
79
|
-
if (
|
|
80
|
-
let
|
|
204
|
+
async function V(e, t, n, r, i, a) {
|
|
205
|
+
let o = r[n];
|
|
206
|
+
if (o === void 0) {
|
|
207
|
+
let s = await F(e, t, n);
|
|
208
|
+
if (s === void 0) return;
|
|
209
|
+
let c = s.STRUCTURE_TA;
|
|
81
210
|
if (c === void 0) return;
|
|
82
|
-
let l = c.STRUCTURE_TA;
|
|
83
|
-
if (l === void 0) return;
|
|
84
211
|
if (a === void 0) {
|
|
85
|
-
let e =
|
|
212
|
+
let e = c.LIEN_ART;
|
|
86
213
|
if (e === void 0) return;
|
|
87
214
|
let t = e.findIndex((e) => e["@id"] === i);
|
|
88
215
|
if (t === -1) return;
|
|
89
|
-
r[n] =
|
|
216
|
+
r[n] = o = {
|
|
90
217
|
area: "LIEN_ART",
|
|
91
218
|
index: t,
|
|
92
|
-
sectionTa:
|
|
219
|
+
sectionTa: s
|
|
93
220
|
};
|
|
94
221
|
} else {
|
|
95
|
-
let e =
|
|
222
|
+
let e = c.LIEN_SECTION_TA;
|
|
96
223
|
if (e === void 0) return;
|
|
97
224
|
let t = e.findIndex((e) => e["@id"] === a);
|
|
98
225
|
if (t === -1) return;
|
|
99
|
-
r[n] =
|
|
226
|
+
r[n] = o = {
|
|
100
227
|
area: "LIEN_SECTION_TA",
|
|
101
228
|
index: t,
|
|
102
|
-
sectionTa:
|
|
229
|
+
sectionTa: s
|
|
103
230
|
};
|
|
104
231
|
}
|
|
105
232
|
}
|
|
106
|
-
return
|
|
233
|
+
return o;
|
|
107
234
|
}
|
|
108
|
-
async function
|
|
109
|
-
let r = await
|
|
235
|
+
async function H(e, t, n) {
|
|
236
|
+
let r = await F(e, t, n);
|
|
110
237
|
if (r === void 0) return;
|
|
111
238
|
let i = r.STRUCTURE_TA;
|
|
112
239
|
if (i === void 0) return;
|
|
113
240
|
let a = i.LIEN_ART;
|
|
114
241
|
if (a !== void 0) return a[0]["@id"];
|
|
115
|
-
let
|
|
116
|
-
if (
|
|
117
|
-
let r = await
|
|
242
|
+
let o = i.LIEN_SECTION_TA;
|
|
243
|
+
if (o !== void 0) for (let n of o) {
|
|
244
|
+
let r = await H(e, t, n["@id"]);
|
|
118
245
|
if (r !== void 0) return r;
|
|
119
246
|
}
|
|
120
247
|
}
|
|
121
|
-
async function
|
|
122
|
-
let r = await
|
|
248
|
+
async function U(e, t, n) {
|
|
249
|
+
let r = await F(e, t, n);
|
|
123
250
|
if (r === void 0) return;
|
|
124
251
|
let i = r.STRUCTURE_TA;
|
|
125
252
|
if (i === void 0) return;
|
|
126
253
|
let a = i.LIEN_SECTION_TA;
|
|
127
254
|
if (a !== void 0) for (let n of a.toReversed()) {
|
|
128
|
-
let r = await
|
|
255
|
+
let r = await U(e, t, n["@id"]);
|
|
129
256
|
if (r !== void 0) return r;
|
|
130
257
|
}
|
|
131
258
|
return i.LIEN_ART?.at(-1)?.["@id"];
|
|
132
259
|
}
|
|
133
|
-
async function
|
|
260
|
+
async function W(e, t, n, r, i, a, o = 0, s = {}, c = void 0) {
|
|
134
261
|
let l = a[o];
|
|
135
262
|
if (l === void 0) return;
|
|
136
|
-
let u = await
|
|
263
|
+
let u = await V(e, t, l, s, n, c);
|
|
137
264
|
if (u === void 0) return;
|
|
138
265
|
let { area: d, index: f, sectionTa: p } = u, m = p.STRUCTURE_TA;
|
|
139
266
|
switch (d) {
|
|
@@ -142,32 +269,32 @@ async function U(e, t, n, r, i, a, o = 0, s = {}, c = void 0) {
|
|
|
142
269
|
for (let n = f + 1; n < c.length; n++) {
|
|
143
270
|
let a = c[n];
|
|
144
271
|
if (a["@num"] !== i) {
|
|
145
|
-
let n = await
|
|
146
|
-
if (n !== void 0 &&
|
|
272
|
+
let n = await P(e, t, a["@id"]);
|
|
273
|
+
if (n !== void 0 && B(n) <= r) return a["@id"];
|
|
147
274
|
}
|
|
148
275
|
}
|
|
149
276
|
let u = m.LIEN_SECTION_TA;
|
|
150
277
|
if (u !== void 0) for (let n of u) {
|
|
151
|
-
let r = await
|
|
278
|
+
let r = await H(e, t, n["@id"]);
|
|
152
279
|
if (r !== void 0) return r;
|
|
153
280
|
}
|
|
154
|
-
return await
|
|
281
|
+
return await W(e, t, n, r, i, a, o + 1, s, l);
|
|
155
282
|
}
|
|
156
283
|
case "LIEN_SECTION_TA": {
|
|
157
284
|
let c = m.LIEN_SECTION_TA;
|
|
158
285
|
for (let n = f + 1; n < c.length; n++) {
|
|
159
|
-
let r = await
|
|
286
|
+
let r = await H(e, t, c[n]["@id"]);
|
|
160
287
|
if (r !== void 0) return r;
|
|
161
288
|
}
|
|
162
|
-
return await
|
|
289
|
+
return await W(e, t, n, r, i, a, o + 1, s, l);
|
|
163
290
|
}
|
|
164
|
-
default:
|
|
291
|
+
default: w("moveToNextArticleId area", d);
|
|
165
292
|
}
|
|
166
293
|
}
|
|
167
|
-
async function
|
|
294
|
+
async function G(e, t, n, r, i, a, o = 0, s = {}, c = void 0) {
|
|
168
295
|
let l = a[o];
|
|
169
296
|
if (l === void 0) return;
|
|
170
|
-
let u = await
|
|
297
|
+
let u = await V(e, t, l, s, n, c);
|
|
171
298
|
if (u === void 0) return;
|
|
172
299
|
let { area: d, index: f, sectionTa: p } = u, m = p.STRUCTURE_TA;
|
|
173
300
|
switch (d) {
|
|
@@ -176,24 +303,24 @@ async function W(e, t, n, r, i, a, o = 0, s = {}, c = void 0) {
|
|
|
176
303
|
for (let n = f - 1; n >= 0; n--) {
|
|
177
304
|
let a = c[n];
|
|
178
305
|
if (a["@num"] !== i) {
|
|
179
|
-
let n = await
|
|
180
|
-
if (n !== void 0 &&
|
|
306
|
+
let n = await P(e, t, a["@id"]);
|
|
307
|
+
if (n !== void 0 && B(n) <= r) return a["@id"];
|
|
181
308
|
}
|
|
182
309
|
}
|
|
183
|
-
return await
|
|
310
|
+
return await G(e, t, n, r, i, a, o + 1, s, l);
|
|
184
311
|
}
|
|
185
312
|
case "LIEN_SECTION_TA": {
|
|
186
313
|
for (let n = f - 1; n >= 0; n--) {
|
|
187
|
-
let r = await
|
|
314
|
+
let r = await U(e, t, m.LIEN_SECTION_TA[n]["@id"]);
|
|
188
315
|
if (r !== void 0) return r;
|
|
189
316
|
}
|
|
190
317
|
let c = m.LIEN_ART;
|
|
191
|
-
return c === void 0 ? await
|
|
318
|
+
return c === void 0 ? await G(e, t, n, r, i, a, o + 1, s, l) : (u.area = "LIEN_ART", u.index = c.length, await G(e, t, n, r, i, a, o, s));
|
|
192
319
|
}
|
|
193
|
-
default:
|
|
320
|
+
default: w("moveToPreviousArticleId area", d);
|
|
194
321
|
}
|
|
195
322
|
}
|
|
196
|
-
var
|
|
323
|
+
var _n = (e) => (t, n) => {
|
|
197
324
|
let r = e(t), i = e(n);
|
|
198
325
|
if (r !== i) return r.localeCompare(i);
|
|
199
326
|
let a = t.META.META_COMMUN, o = a.ORIGINE, s = n.META.META_COMMUN, c = s.ORIGINE;
|
|
@@ -212,85 +339,91 @@ var G = (e) => (t, n) => {
|
|
|
212
339
|
if (m <= i) return 1;
|
|
213
340
|
}
|
|
214
341
|
throw Error(`TODO: Unable to sort articles ${a.ID} & ${s.ID} by date.`);
|
|
215
|
-
},
|
|
216
|
-
|
|
217
|
-
|
|
342
|
+
}, K = () => /* @__PURE__ */ new Map(), q = () => /* @__PURE__ */ new Map(), vn = () => ({
|
|
343
|
+
assemblee: K(),
|
|
344
|
+
legifrance: q()
|
|
345
|
+
}), yn = new Intl.DateTimeFormat("fr-FR", { dateStyle: "long" });
|
|
346
|
+
function bn(e) {
|
|
347
|
+
return yn.format(new Date(e)).replace(/^1 /, "1er ");
|
|
218
348
|
}
|
|
219
349
|
//#endregion
|
|
220
350
|
//#region src/lib/json.ts
|
|
221
|
-
var
|
|
351
|
+
var xn = (e, t) => t instanceof Object && !Array.isArray(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t;
|
|
222
352
|
//#endregion
|
|
223
353
|
//#region src/lib/markdown.ts
|
|
224
|
-
function
|
|
354
|
+
function J(e) {
|
|
225
355
|
return e?.replace(/\s+/g, " ").replaceAll("[", "\\[").replaceAll("]", "\\]");
|
|
226
356
|
}
|
|
227
357
|
//#endregion
|
|
228
358
|
//#region src/lib/linkers/markdown.ts
|
|
229
|
-
async function
|
|
230
|
-
let
|
|
231
|
-
s
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
359
|
+
async function Y({ canutesDb: e, legiResolver: t, date: n, linkBaseUrl: r, linkType: i, previousContext: a, text: o }) {
|
|
360
|
+
let s = t ?? (e === void 0 ? void 0 : new We(e));
|
|
361
|
+
if (s === void 0) throw Error("A Canutes database or legal resolver is required");
|
|
362
|
+
await s.preloadTextTitlesInfos();
|
|
363
|
+
let c = b(o), l = new M(c.output);
|
|
364
|
+
l.currentArticle = a?.currentArticle, l.currentText = a?.currentText;
|
|
365
|
+
let u = o, d = 0;
|
|
366
|
+
for await (let e of _({
|
|
367
|
+
legiResolver: s,
|
|
368
|
+
context: l,
|
|
369
|
+
date: n,
|
|
370
|
+
transformation: c
|
|
371
|
+
})) switch (e.type) {
|
|
239
372
|
case "article_definition": break;
|
|
240
373
|
case "external_article": {
|
|
241
|
-
let { articleId:
|
|
242
|
-
if (
|
|
243
|
-
if (
|
|
244
|
-
let a =
|
|
245
|
-
|
|
374
|
+
let { articleId: t, originalTransformation: n } = e;
|
|
375
|
+
if (t !== void 0) {
|
|
376
|
+
if (n === void 0) throw Error(`Missing originalTransformation attribute in external article link: ${JSON.stringify(e, null, 2)}`);
|
|
377
|
+
let a = C(n, `[${J(S(u, n, d))}](${v(i, r, t)})`);
|
|
378
|
+
u = u.slice(0, n.position.start + d) + a + u.slice(n.position.stop + d), d += a.length - (n.position.stop - n.position.start);
|
|
246
379
|
}
|
|
247
380
|
break;
|
|
248
381
|
}
|
|
249
382
|
case "external_division": {
|
|
250
|
-
let { originalTransformation:
|
|
251
|
-
if (
|
|
252
|
-
if (
|
|
253
|
-
let a =
|
|
254
|
-
|
|
383
|
+
let { originalTransformation: t, sectionTaId: n } = e;
|
|
384
|
+
if (n !== void 0) {
|
|
385
|
+
if (t === void 0) throw Error(`Missing originalTransformation attribute in external division link: ${JSON.stringify(e, null, 2)}`);
|
|
386
|
+
let a = C(t, `[${J(S(u, t, d))}](${v(i, r, n)})`);
|
|
387
|
+
u = u.slice(0, t.position.start + d) + a + u.slice(t.position.stop + d), d += a.length - (t.position.stop - t.position.start);
|
|
255
388
|
}
|
|
256
389
|
break;
|
|
257
390
|
}
|
|
258
391
|
case "external_text": {
|
|
259
|
-
let { originalTransformation:
|
|
260
|
-
if (
|
|
261
|
-
|
|
392
|
+
let { originalTransformation: t, text: n } = e;
|
|
393
|
+
if (n.cid === void 0) {
|
|
394
|
+
n.relative !== 0 && console.error(`Link to text "${l.text(n.position)}" without CID: ${JSON.stringify(n, null, 2)}`);
|
|
262
395
|
continue;
|
|
263
396
|
}
|
|
264
|
-
if (
|
|
265
|
-
let a =
|
|
266
|
-
|
|
397
|
+
if (t === void 0) throw Error(`Missing originalTransformation attribute in external text link: ${JSON.stringify(e, null, 2)}`);
|
|
398
|
+
let a = C(t, `[${J(S(u, t, d))}](${v(i, r, n.cid)})`);
|
|
399
|
+
u = u.slice(0, t.position.start + d) + a + u.slice(t.position.stop + d), d += a.length - (t.position.stop - t.position.start);
|
|
267
400
|
break;
|
|
268
401
|
}
|
|
269
402
|
case "internal_article": {
|
|
270
|
-
let { definition:
|
|
271
|
-
if (
|
|
272
|
-
let
|
|
273
|
-
|
|
403
|
+
let { definition: t, originalTransformation: n } = e;
|
|
404
|
+
if (n === void 0) throw Error(`Missing originalTransformation attribute in internal article link: ${JSON.stringify(e, null, 2)}`);
|
|
405
|
+
let r = C(n, `[${J(S(u, n, d))}](#definition_article_${t.textId}_${t.article.num.replaceAll(" ", "_")})`);
|
|
406
|
+
u = u.slice(0, n.position.start + d) + r + u.slice(n.position.stop + d), d += r.length - (n.position.stop - n.position.start);
|
|
274
407
|
break;
|
|
275
408
|
}
|
|
276
409
|
case "european_text": {
|
|
277
|
-
let { url:
|
|
278
|
-
if (
|
|
279
|
-
if (
|
|
280
|
-
let
|
|
281
|
-
|
|
410
|
+
let { url: t, originalTransformation: n } = e;
|
|
411
|
+
if (t === void 0) continue;
|
|
412
|
+
if (n === void 0) throw Error(`Missing originalTransformation attribute in european text link: ${JSON.stringify(e, null, 2)}`);
|
|
413
|
+
let r = C(n, `<a class="lien_texte_european" href="${t}" target="_blank">${S(u, n, d)}</a>`);
|
|
414
|
+
u = u.slice(0, n.position.start + d) + r + u.slice(n.position.stop + d), d += r.length - (n.position.stop - n.position.start);
|
|
282
415
|
break;
|
|
283
416
|
}
|
|
284
|
-
default:
|
|
417
|
+
default: w("Link", e);
|
|
285
418
|
}
|
|
286
419
|
return {
|
|
287
|
-
context:
|
|
288
|
-
output:
|
|
420
|
+
context: l,
|
|
421
|
+
output: u === o ? null : u
|
|
289
422
|
};
|
|
290
423
|
}
|
|
291
424
|
//#endregion
|
|
292
425
|
//#region src/lib/loaders/assemblee.ts
|
|
293
|
-
async function
|
|
426
|
+
async function Sn(e, t, n) {
|
|
294
427
|
let r = t.get("Document");
|
|
295
428
|
r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("Document", r));
|
|
296
429
|
let i = r.get(n);
|
|
@@ -300,7 +433,7 @@ async function bn(e, t, n) {
|
|
|
300
433
|
WHERE uid = ${n}
|
|
301
434
|
`)[0]?.data, r.set(n, i ?? null)), i ?? void 0;
|
|
302
435
|
}
|
|
303
|
-
async function
|
|
436
|
+
async function Cn(e, t, n) {
|
|
304
437
|
let r = t.get("Document");
|
|
305
438
|
return r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("Document", r)), (await e`
|
|
306
439
|
SELECT data, uid
|
|
@@ -308,7 +441,7 @@ async function xn(e, t, n) {
|
|
|
308
441
|
WHERE data ->> 'dossierRef' = ${n}
|
|
309
442
|
`).map(({ data: e, uid: t }) => (r.set(t, e ?? null), e));
|
|
310
443
|
}
|
|
311
|
-
async function
|
|
444
|
+
async function wn(e, t, n) {
|
|
312
445
|
let r = t.get("DossierParlementaire");
|
|
313
446
|
r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("DossierParlementaire", r));
|
|
314
447
|
let i = r.get(n);
|
|
@@ -320,15 +453,15 @@ async function Sn(e, t, n) {
|
|
|
320
453
|
}
|
|
321
454
|
//#endregion
|
|
322
455
|
//#region src/lib/text_parsers/search_queries.ts
|
|
323
|
-
var
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
456
|
+
var Tn = O("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i" }), X = y([
|
|
457
|
+
Tn,
|
|
458
|
+
x(k, { default: "" }),
|
|
459
|
+
E(g, h)
|
|
327
460
|
], { value: (e, t) => ({
|
|
328
461
|
num: e[2],
|
|
329
462
|
position: t.position(),
|
|
330
463
|
type: "article"
|
|
331
|
-
}) }),
|
|
464
|
+
}) }), En = E(O("c(?:ode|\\.)? ?civ(?:il)?", {
|
|
332
465
|
flags: "i",
|
|
333
466
|
value: (e, t) => ({
|
|
334
467
|
cid: "LEGITEXT000006070721",
|
|
@@ -337,7 +470,7 @@ var J = _("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i"
|
|
|
337
470
|
title: "Code civil",
|
|
338
471
|
type: "texte"
|
|
339
472
|
})
|
|
340
|
-
}),
|
|
473
|
+
}), O("c(?:ode|\\.)? ?trav(?:ail)?", {
|
|
341
474
|
flags: "i",
|
|
342
475
|
value: (e, t) => ({
|
|
343
476
|
cid: "LEGITEXT000006072050",
|
|
@@ -346,7 +479,7 @@ var J = _("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i"
|
|
|
346
479
|
title: "Code du travail",
|
|
347
480
|
type: "texte"
|
|
348
481
|
})
|
|
349
|
-
}),
|
|
482
|
+
}), O("c(?:ode|\\.)? ?p[eé]n(?:al)?", {
|
|
350
483
|
flags: "i",
|
|
351
484
|
value: (e, t) => ({
|
|
352
485
|
cid: "LEGITEXT000006070719",
|
|
@@ -355,7 +488,7 @@ var J = _("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i"
|
|
|
355
488
|
title: "Code pénal",
|
|
356
489
|
type: "texte"
|
|
357
490
|
})
|
|
358
|
-
}),
|
|
491
|
+
}), O("c(?:ode|\\.)? ?pr(?:oc(?:[eé]dure)?)? ?p[eé]n(?:al)?|cpp", {
|
|
359
492
|
flags: "i",
|
|
360
493
|
value: (e, t) => ({
|
|
361
494
|
cid: "LEGITEXT000006071154",
|
|
@@ -364,7 +497,7 @@ var J = _("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i"
|
|
|
364
497
|
title: "Code de procédure pénale",
|
|
365
498
|
type: "texte"
|
|
366
499
|
})
|
|
367
|
-
}),
|
|
500
|
+
}), O("c(?:ode|\\.)? ?pr(?:oc(?:[eé]dure)?)? ?civ(?:il)?|cpc", {
|
|
368
501
|
flags: "i",
|
|
369
502
|
value: (e, t) => ({
|
|
370
503
|
cid: "LEGITEXT000006070716",
|
|
@@ -373,7 +506,7 @@ var J = _("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i"
|
|
|
373
506
|
title: "Code de procédure civile",
|
|
374
507
|
type: "texte"
|
|
375
508
|
})
|
|
376
|
-
}),
|
|
509
|
+
}), O("c(?:ode|\\.)? ?s[eé]cur(?:it[eé])? ?soc(?:iale)?|css", {
|
|
377
510
|
flags: "i",
|
|
378
511
|
value: (e, t) => ({
|
|
379
512
|
cid: "LEGITEXT000006073189",
|
|
@@ -382,7 +515,7 @@ var J = _("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i"
|
|
|
382
515
|
title: "Code de la sécurité sociale",
|
|
383
516
|
type: "texte"
|
|
384
517
|
})
|
|
385
|
-
}),
|
|
518
|
+
}), O("c(?:ode|\\.)? ?rur(?:al)?(?: et de la p[êe]che maritime)?", {
|
|
386
519
|
flags: "i",
|
|
387
520
|
value: (e, t) => ({
|
|
388
521
|
cid: "LEGITEXT000006071367",
|
|
@@ -391,7 +524,7 @@ var J = _("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i"
|
|
|
391
524
|
title: "Code rural et de la pêche maritime",
|
|
392
525
|
type: "texte"
|
|
393
526
|
})
|
|
394
|
-
}),
|
|
527
|
+
}), O("c(?:ode|\\.)? ?env(?:ironnement)?", {
|
|
395
528
|
flags: "i",
|
|
396
529
|
value: (e, t) => ({
|
|
397
530
|
cid: "LEGITEXT000006074220",
|
|
@@ -400,7 +533,7 @@ var J = _("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i"
|
|
|
400
533
|
title: "Code de l'environnement",
|
|
401
534
|
type: "texte"
|
|
402
535
|
})
|
|
403
|
-
}),
|
|
536
|
+
}), O("c(?:ode|\\.)? ?urb(?:anisme)?", {
|
|
404
537
|
flags: "i",
|
|
405
538
|
value: (e, t) => ({
|
|
406
539
|
cid: "LEGITEXT000006074075",
|
|
@@ -409,7 +542,7 @@ var J = _("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i"
|
|
|
409
542
|
title: "Code de l'urbanisme",
|
|
410
543
|
type: "texte"
|
|
411
544
|
})
|
|
412
|
-
}),
|
|
545
|
+
}), O("c(?:ode|\\.)? ?jus(?:tice)? ?adm(?:in(?:istrative)?)?|cja", {
|
|
413
546
|
flags: "i",
|
|
414
547
|
value: (e, t) => ({
|
|
415
548
|
cid: "LEGITEXT000006070933",
|
|
@@ -418,7 +551,7 @@ var J = _("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i"
|
|
|
418
551
|
title: "Code de justice administrative",
|
|
419
552
|
type: "texte"
|
|
420
553
|
})
|
|
421
|
-
}),
|
|
554
|
+
}), O("cgi", {
|
|
422
555
|
flags: "i",
|
|
423
556
|
value: (e, t) => ({
|
|
424
557
|
cid: "LEGITEXT000006069577",
|
|
@@ -427,7 +560,7 @@ var J = _("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i"
|
|
|
427
560
|
title: "Code général des impôts",
|
|
428
561
|
type: "texte"
|
|
429
562
|
})
|
|
430
|
-
}),
|
|
563
|
+
}), O("c(?:ode|\\.)? ?com(?:merce)?", {
|
|
431
564
|
flags: "i",
|
|
432
565
|
value: (e, t) => ({
|
|
433
566
|
cid: "LEGITEXT000005634379",
|
|
@@ -436,30 +569,30 @@ var J = _("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i"
|
|
|
436
569
|
title: "Code de commerce",
|
|
437
570
|
type: "texte"
|
|
438
571
|
})
|
|
439
|
-
})), Z =
|
|
572
|
+
})), Z = E(En, j(A, { value: (e, t) => e === void 0 ? void 0 : {
|
|
440
573
|
...e,
|
|
441
574
|
position: t.position()
|
|
442
|
-
} }),
|
|
575
|
+
} }), j(D, { value: (e, t) => ({
|
|
443
576
|
...e,
|
|
444
577
|
position: t.position()
|
|
445
|
-
}) })), Q =
|
|
578
|
+
}) })), Q = x(O(" (?:du |de la |de l'|des |de |d')?", { flags: "i" }), { default: "" }), Dn = O(".+?(?=\\s*(?:du |de la |de l'|des |de |d')?\\s*(?:art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?))", {
|
|
446
579
|
flags: "i",
|
|
447
580
|
value: (e, t) => ({
|
|
448
581
|
type: "texte",
|
|
449
582
|
title: e[0].trim(),
|
|
450
583
|
position: t.position()
|
|
451
584
|
})
|
|
452
|
-
}), $ =
|
|
585
|
+
}), $ = O(".+", {
|
|
453
586
|
flags: "i",
|
|
454
587
|
value: (e, t) => ({
|
|
455
588
|
type: "texte",
|
|
456
589
|
title: e[0].trim(),
|
|
457
590
|
position: t.position()
|
|
458
591
|
})
|
|
459
|
-
}),
|
|
592
|
+
}), On = E(y([
|
|
460
593
|
Z,
|
|
461
594
|
Q,
|
|
462
|
-
|
|
595
|
+
X
|
|
463
596
|
], { value: (e, t) => {
|
|
464
597
|
let n = e[0];
|
|
465
598
|
return {
|
|
@@ -468,8 +601,8 @@ var J = _("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i"
|
|
|
468
601
|
position: t.position(),
|
|
469
602
|
type: "parent-enfant"
|
|
470
603
|
};
|
|
471
|
-
} }),
|
|
472
|
-
|
|
604
|
+
} }), y([
|
|
605
|
+
X,
|
|
473
606
|
Q,
|
|
474
607
|
Z
|
|
475
608
|
], { value: (e, t) => ({
|
|
@@ -477,10 +610,10 @@ var J = _("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i"
|
|
|
477
610
|
parent: e[2],
|
|
478
611
|
position: t.position(),
|
|
479
612
|
type: "parent-enfant"
|
|
480
|
-
}) }),
|
|
481
|
-
|
|
613
|
+
}) }), y([
|
|
614
|
+
Dn,
|
|
482
615
|
Q,
|
|
483
|
-
|
|
616
|
+
X
|
|
484
617
|
], { value: (e, t) => {
|
|
485
618
|
let n = e[0];
|
|
486
619
|
return {
|
|
@@ -489,8 +622,8 @@ var J = _("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i"
|
|
|
489
622
|
position: t.position(),
|
|
490
623
|
type: "parent-enfant"
|
|
491
624
|
};
|
|
492
|
-
} }),
|
|
493
|
-
|
|
625
|
+
} }), y([
|
|
626
|
+
X,
|
|
494
627
|
Q,
|
|
495
628
|
$
|
|
496
629
|
], { value: (e, t) => ({
|
|
@@ -498,6 +631,6 @@ var J = _("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i"
|
|
|
498
631
|
parent: e[2],
|
|
499
632
|
position: t.position(),
|
|
500
633
|
type: "parent-enfant"
|
|
501
|
-
}) }),
|
|
634
|
+
}) }), X, Z, $), kn = Y;
|
|
502
635
|
//#endregion
|
|
503
|
-
export {
|
|
636
|
+
export { Jt as LegiResolver, M as TextParserContext, i as action, be as actionDirective, me as actionTargets, Me as addChildLeftToLastChild, He as addLinksOrReferencesToHtmlPage, je as addLinksToHtml, Y as addLinksToMarkdown, kn as addLinksToText, de as addPositionsToTableOfContentsItems, Yt as adjectifNumeralCardinal, Ft as adjectifNumeralOrdinalCourt, at as adjectifTemporelSingulier, Ut as adverbeMultiplicatifLatin, nn as adverbeRelatif, E as alternatives, ae as article, se as articles, w as assertNever, ce as auPortion, te as auxPortions, Kt as buildAndInstallTextTitlesInfos, Te as buildArticlePortionTreeFromHtml, Pt as buildTextTitlesInfos, y as chain, et as chainTransformers, m as citation, Ee as citationLigne, t as citationSimple, pn as classifyArticleTemporalStatus, St as cleanTexteTitle, Oe as compoundReferencesSeparators, j as convert, Ct as convertHtmlElementsToText, ze as createEnumerationOrBoundedInterval, we as createParentChildTreeFromReferences, T as date, en as decodeNamedHtmlEntities, ht as decodeNumericHtmlEntities, o as definitionArticleDansCitation, u as definitionArticleDansProjetOuPropositionLoi, d as definitionDivision, zt as definitionTexteFrancais, Le as designationArticle, ne as designationDivision, ct as ditPluriel, Gt as ditSingulier, Qe as division, Ge as divisionTypes, n as divisions, $e as duDate, k as espace, nt as espaceAdverbeRelatif, ge as europeanLawNatures, N as extendLoadedArticle, he as extractActionDirectiveAstsFromText, ve as extractActionDirectivesFromHtml, Fe as extractActionDirectivesFromText, c as extractBillDefinitions, le as extractCitationReferences, f as extractPortionSelectors, Ke as extractReferences, Xe as extractReferencesWithOriginalTransformations, _ as extractTextLinks, bn as formatLongDate, ye as frenchLawNatures, hn as getArticleDateDebut, B as getArticleDateSignature, pe as getExtractedReferences, Ye as getExtractedReferencesWithOriginalTransformations, Ne as getExtractedTableOfContentsFromTextBill, P as getOrLoadArticle, gn as getOrLoadArticleSiblingId, Sn as getOrLoadDocument, Cn as getOrLoadDocumentsByDossierParlementaireUid, wn as getOrLoadDossierParlementaire, an as getOrLoadJo, F as getOrLoadSectionTa, on as getOrLoadSectionsTa, dn as getOrLoadTexteVersion, cn as getOrLoadTextekali, sn as getOrLoadTextelr, un as getOrLoadTextesVersions, ln as getOrLoadTexteslr, Ht as getTexteVersionDateDebut, qt as getTexteVersionDateSignature, Xt as identificationTexteEuropeen, Ie as internationalLawNatures, st as introPluriel, yt as introSingulier, p as isArticlePortionStructuralStart, R as isLegifranceSentinelDate, Ae as isTextAstAtomicReference, Ce as isTextAstDivision, xe as isTextAstPortion, fe as iterAtomicFirstParentReferences, Pe as iterAtomicReferences, Ve as iterIncludedReferences, De as iterReferenceLinks, xn as jsonReplacer, ue as lawNatures, Mt as lettreAscii, vt as liaisonPluriel, bt as liaisonSingulier, Re as linkTypes, l as listeArticles, re as listeReferencesSeules, fn as loadArticles, qe as localizationAdverbs, oe as natureDivisionSingulier, Dt as natureTexteFrancais, K as newAssembleeObjectCache, q as newLegifranceObjectCache, vn as newObjectCache, It as newReverseTransformationsMergedFromPositionsIterator, g as nomArticle, h as nomSpecialArticle, Et as nombreAsTextAstNumber, Bt as nombreCardinal, Zt as nombreRomainCardinal, Ot as nombreRomainOrdinal, At as nombreRomainOu0iAsTextAstNumber, xt as nonLettre, Qt as numero, s as numeroDivision, kt as numeroEtOuDateTexteFrancais, e as numeroPortion, Wt as numeroTexteEuropeen, Vt as numeroTexteFrancais, x as optional, Nt as optionalEspaceDuTerritoire, pt as parseText, Ze as portionTypes, _e as portions, r as reference, Je as referenceSeule, O as regExp, ot as relatifPlurielPrepose, _t as relatifSingulierPrepose, tt as repeat, rt as replaceHtmlPatterns, $t as replacePattern, gt as replaceTextPatterns, ke as resolveActionDirectivesFromHtml, Se as resolveActionDirectivesFromText, ee as resolvePortionSelector, lt as reversePositionsSplitFromPositions, dt as reverseTransformationFromPosition, mt as reverseTransformationsMergedFromPositions, S as reverseTransformedInnerFragment, C as reverseTransformedReplacement, X as searchArticle, Tn as searchArticleKeyword, On as searchQueryReference, Z as searchTexte, En as searchTexteAbbreviations, it as simplifyHtml, b as simplifyPlainText, ft as simplifyText, Rt as simplifyUnicodeCharacters, _n as sortArticlesByDate, Tt as sortTextesVersionsByDate, jt as texte, D as texteEuropeen, A as texteFrancais, tn as texteInternational, Ue as unePortion, ie as uniteBasePreciseeSingulier, a as uniteBaseSingulier, v as urlFromLegalId, Lt as variable, wt as virguleOuEspace, Be as walkTableOfContents, ut as wordsTree };
|