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